vue-data-ui 3.4.9 → 3.5.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 +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- 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-bullet.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-dashboard.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-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-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-strip-plot.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/{vue-data-ui-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, useSlots as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as O, useSlots as St, ref as r, computed as c, toRefs as xt, watch as q, shallowRef as Ue, onMounted as Ot, onBeforeUnmount as At, createElementBlock as f, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as G, createBlock as A, createCommentVNode as b, createElementVNode as C, createVNode as Q, createSlots as ie, withCtx as d, renderSlot as h, normalizeProps as B, guardReactiveProps as M, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as Ft, toDisplayString as de, resolveDynamicComponent as It, createTextVNode as Ee, nextTick as Pt } from "vue";
|
|
2
|
+
import { c as We, t as Lt, b as Nt, p as D, o as Ge, f as he, g as Dt, e as Rt, a1 as Vt, h as He, a as je, d as R, X as Bt, s as Mt, i as Ut, x as J, P as zt, Q as Et, G as Wt, H as Gt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as Ht, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Xt, a as Xe } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as Yt } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
+
import { u as qt, B as Qt } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as Jt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import el from "./img-BecE5qXd.js";
|
|
11
|
+
import { _ as tl } from "./Shape-CNXKB8O0.js";
|
|
12
|
+
import ll from "./Title-l36lOBMx.js";
|
|
13
|
+
import { t as ol } from "./themes-AUNCOb2G.js";
|
|
14
|
+
import al from "./Legend-G6GMcdAc.js";
|
|
15
|
+
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const nl = ["id"], ul = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = ["id"], cl = ["stop-color"], dl = ["stop-color"], hl = { key: 1 }, pl = ["stroke", "cx", "cy", "r", "fill"], gl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], fl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], yl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ml = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, bl = ["id"], kl = ["onClick"], wl = ["innerHTML"], Cl = {
|
|
20
20
|
__name: "vue-ui-rings",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,11 +33,11 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
...
|
|
36
|
+
setup(Ye, { expose: qe, emit: Qe }) {
|
|
37
|
+
const Je = O(() => import("./Tooltip-oWCO1HKy.js")), Ke = O(() => import("./BaseIcon-BmMbm4d0.js")), Ze = O(() => import("./vue-ui-accordion-CZ0thhxa.js")), et = O(() => import("./DataTable-BT7VF2ua.js")), tt = O(() => import("./PenAndPaper-DSvu9dwa.js")), lt = O(() => import("./UserOptions-CGnQt6Fd.js")), ot = O(() => import("./PackageVersion-Cyx_s25h.js")), at = O(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_rings: st } = Xt(), nt = St(), k = Ye, F = r(!1), pe = c(() => !!k.dataset && k.dataset.length), m = r(We()), H = r(!1), K = r(""), T = r(null), ge = r(0), _ = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Z = r(!1), $e = r(!1), U = r(null), ee = r(null), e = r(oe()), { loading: I, FINAL_DATASET: Te, manualLoading: j } = qt({
|
|
38
|
+
...xt(k),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
|
-
prepareConfig:
|
|
40
|
+
prepareConfig: oe,
|
|
41
41
|
skeletonDataset: [
|
|
42
42
|
{ name: "_", values: [13], color: "#808080" },
|
|
43
43
|
{ name: "_", values: [8], color: "#969696" },
|
|
@@ -45,7 +45,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
45
45
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
46
46
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
47
47
|
],
|
|
48
|
-
skeletonConfig:
|
|
48
|
+
skeletonConfig: Lt({
|
|
49
49
|
defaultConfig: e.value,
|
|
50
50
|
userConfig: {
|
|
51
51
|
userOptions: { show: !1 },
|
|
@@ -68,56 +68,56 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible:
|
|
72
|
-
function
|
|
73
|
-
const t =
|
|
71
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: _e, keepUserOptionState: Se } = Kt({ config: e.value }), { svgRef: le } = Zt({ config: e.value.style.chart.title });
|
|
72
|
+
function oe() {
|
|
73
|
+
const t = Xe({
|
|
74
74
|
userConfig: k.config,
|
|
75
|
-
defaultConfig:
|
|
75
|
+
defaultConfig: st
|
|
76
76
|
});
|
|
77
77
|
return t.theme ? {
|
|
78
|
-
...
|
|
79
|
-
userConfig:
|
|
78
|
+
...Xe({
|
|
79
|
+
userConfig: ol.vue_ui_rings[t.theme] || k.config,
|
|
80
80
|
defaultConfig: t
|
|
81
81
|
}),
|
|
82
|
-
customPalette:
|
|
82
|
+
customPalette: Nt[t.theme] || D
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
I.value || (e.value =
|
|
87
|
-
}, { deep: !0 }),
|
|
88
|
-
Array.isArray(t) && t.length > 0 && (
|
|
85
|
+
q(() => k.config, (t) => {
|
|
86
|
+
I.value || (e.value = oe()), te.value = !e.value.userOptions.showOnChartHover, xe(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
|
+
}, { deep: !0 }), q(() => k.dataset, (t) => {
|
|
88
|
+
Array.isArray(t) && t.length > 0 && (j.value = !1);
|
|
89
89
|
}, { deep: !0 });
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
$e.value = !0,
|
|
90
|
+
const S = Ue(null), V = Ue(null);
|
|
91
|
+
Ot(() => {
|
|
92
|
+
$e.value = !0, xe();
|
|
93
93
|
});
|
|
94
|
-
const
|
|
95
|
-
function
|
|
96
|
-
if (
|
|
94
|
+
const ae = c(() => !!e.value.debug);
|
|
95
|
+
function xe() {
|
|
96
|
+
if (Ge(k.dataset) ? (he({
|
|
97
97
|
componentName: "VueUiRings",
|
|
98
98
|
type: "dataset",
|
|
99
|
-
debug:
|
|
100
|
-
}),
|
|
101
|
-
t.values.length || (
|
|
99
|
+
debug: ae.value
|
|
100
|
+
}), j.value = !0) : k.dataset.forEach((t, o) => {
|
|
101
|
+
t.values.length || (he({
|
|
102
102
|
componentName: "VueUiRings",
|
|
103
103
|
type: "dataset",
|
|
104
|
-
debug:
|
|
105
|
-
}),
|
|
104
|
+
debug: ae.value
|
|
105
|
+
}), j.value = !0), Dt({
|
|
106
106
|
datasetObject: t,
|
|
107
107
|
requiredAttributes: ["name", "values"]
|
|
108
108
|
}).forEach((l) => {
|
|
109
|
-
|
|
109
|
+
he({
|
|
110
110
|
componentName: "VueUiRings",
|
|
111
111
|
type: "datasetSerieAttribute",
|
|
112
112
|
property: l,
|
|
113
113
|
index: o,
|
|
114
|
-
debug:
|
|
114
|
+
debug: ae.value
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
|
-
}),
|
|
118
|
-
const t =
|
|
119
|
-
|
|
120
|
-
const { width: o, height: l } =
|
|
117
|
+
}), Ge(k.dataset) || (j.value = e.value.loading), e.value.responsive) {
|
|
118
|
+
const t = Ht(() => {
|
|
119
|
+
Z.value = !0;
|
|
120
|
+
const { width: o, height: l } = jt({
|
|
121
121
|
chart: _.value,
|
|
122
122
|
title: e.value.style.chart.title.text ? fe.value : null,
|
|
123
123
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
@@ -125,27 +125,27 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
125
125
|
noTitle: be.value
|
|
126
126
|
});
|
|
127
127
|
requestAnimationFrame(() => {
|
|
128
|
-
u.value.width = o, u.value.height = l - 12,
|
|
128
|
+
u.value.width = o, u.value.height = l - 12, Z.value = !1;
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
|
|
131
|
+
S.value && (V.value && S.value.unobserve(V.value), S.value.disconnect()), S.value = new ResizeObserver(t), V.value = _.value.parentNode, S.value.observe(V.value);
|
|
132
132
|
}
|
|
133
133
|
setTimeout(() => {
|
|
134
134
|
F.value = !0;
|
|
135
135
|
}, 600);
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
At(() => {
|
|
138
|
+
S.value && (V.value && S.value.unobserve(V.value), S.value.disconnect());
|
|
139
139
|
});
|
|
140
|
-
const { isPrinting: Oe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } =
|
|
141
|
-
elementId: `rings_${
|
|
140
|
+
const { isPrinting: Oe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } = Yt({
|
|
141
|
+
elementId: `rings_${m.value}`,
|
|
142
142
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
143
143
|
options: e.value.userOptions.print
|
|
144
|
-
}),
|
|
144
|
+
}), ut = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = c(() => Rt(e.value.customPalette)), w = r({
|
|
145
145
|
showTable: e.value.table.show,
|
|
146
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
147
147
|
});
|
|
148
|
-
|
|
148
|
+
q(e, () => {
|
|
149
149
|
w.value = {
|
|
150
150
|
showTable: e.value.table.show,
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -154,61 +154,81 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
154
154
|
const u = r({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 360
|
|
157
|
-
}),
|
|
158
|
-
function
|
|
159
|
-
|
|
157
|
+
}), rt = c(() => Math.min(u.value.height, u.value.width)), it = Qe, p = r([]);
|
|
158
|
+
function z(t) {
|
|
159
|
+
if (p.value.includes(t))
|
|
160
|
+
p.value = p.value.filter((o) => o !== t);
|
|
161
|
+
else {
|
|
162
|
+
if (p.value.length === P.value.length - 1) return;
|
|
163
|
+
p.value.push(t);
|
|
164
|
+
}
|
|
165
|
+
it("selectLegend", y.value.map((o) => ({
|
|
160
166
|
name: o.name,
|
|
161
167
|
color: o.color,
|
|
162
168
|
value: o.value
|
|
163
169
|
})));
|
|
164
170
|
}
|
|
165
|
-
const it = c(() => Math.max(
|
|
166
|
-
...H.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
|
|
167
|
-
));
|
|
168
171
|
function Le(t) {
|
|
169
|
-
|
|
172
|
+
if (!P.value.length)
|
|
173
|
+
return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
|
|
174
|
+
const o = P.value.find((l) => l.name === t);
|
|
175
|
+
return o || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
|
|
170
176
|
}
|
|
171
|
-
|
|
172
|
-
const
|
|
177
|
+
function vt(t) {
|
|
178
|
+
const o = Le(t);
|
|
179
|
+
o !== null && p.value.includes(o.uid) && z(o.uid);
|
|
180
|
+
}
|
|
181
|
+
function ct(t) {
|
|
182
|
+
const o = Le(t);
|
|
183
|
+
o !== null && (p.value.includes(o.uid) || z(o.uid));
|
|
184
|
+
}
|
|
185
|
+
const dt = c(() => Math.max(
|
|
186
|
+
...P.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t)
|
|
187
|
+
));
|
|
188
|
+
function Ne(t) {
|
|
189
|
+
return t / dt.value;
|
|
190
|
+
}
|
|
191
|
+
const P = c(() => Te.value.map(({ values: t, name: o, color: l = null }, a) => {
|
|
192
|
+
const n = Vt(t).reduce((v, W) => v + W, 0);
|
|
173
193
|
return {
|
|
174
194
|
name: o,
|
|
175
|
-
color: l ||
|
|
195
|
+
color: l || He(l) || Pe.value[a] || D[a] || D[a % D.length],
|
|
176
196
|
value: n,
|
|
177
|
-
proportion: n / Te.value.map((v) => (v.values || []).reduce((
|
|
178
|
-
uid:
|
|
197
|
+
proportion: n / Te.value.map((v) => (v.values || []).reduce((W, _t) => W + _t, 0)).reduce((v, W) => v + W, 0),
|
|
198
|
+
uid: We(),
|
|
179
199
|
absoluteIndex: a
|
|
180
200
|
};
|
|
181
|
-
})), se = c(() =>
|
|
201
|
+
})), se = c(() => P.value.map((t, o) => ({
|
|
182
202
|
...t,
|
|
183
203
|
shape: "circle",
|
|
184
|
-
opacity:
|
|
185
|
-
segregate: () =>
|
|
186
|
-
isSegregated:
|
|
187
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
204
|
+
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
205
|
+
segregate: () => z(t.uid),
|
|
206
|
+
isSegregated: p.value.includes(t.uid),
|
|
207
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? je(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, R({
|
|
188
208
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
189
209
|
v: t.value,
|
|
190
210
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
191
211
|
r: e.value.style.chart.legend.roundingValue
|
|
192
|
-
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
193
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
212
|
+
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? p.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / $.value) ? "-" : R({ v: t.value / $.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
213
|
+
})).toSorted((t, o) => o.value - t.value)), ht = c(() => ({
|
|
194
214
|
cy: "rings-div-legend",
|
|
195
215
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
196
216
|
color: e.value.style.chart.legend.color,
|
|
197
217
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
198
218
|
paddingBottom: 12,
|
|
199
219
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
200
|
-
})), $ = c(() =>
|
|
220
|
+
})), $ = c(() => P.value.filter((t) => !p.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), y = c(() => P.value.filter((t) => !p.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: n }, v) => ({
|
|
201
221
|
absoluteIndex: n,
|
|
202
222
|
uid: a,
|
|
203
223
|
name: t,
|
|
204
|
-
color: l ||
|
|
224
|
+
color: l || He(l) || Pe.value[v] || D[v] || D[v % D.length],
|
|
205
225
|
value: o,
|
|
206
|
-
proportion:
|
|
226
|
+
proportion: Ne(o),
|
|
207
227
|
percentage: o / $.value * 100,
|
|
208
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
228
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ne(o)
|
|
209
229
|
})).toSorted((t, o) => o.value - t.value));
|
|
210
|
-
function
|
|
211
|
-
return
|
|
230
|
+
function pt() {
|
|
231
|
+
return y.value.map(
|
|
212
232
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: n }) => ({
|
|
213
233
|
name: t,
|
|
214
234
|
color: o,
|
|
@@ -218,41 +238,41 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
218
238
|
})
|
|
219
239
|
);
|
|
220
240
|
}
|
|
221
|
-
const
|
|
222
|
-
function
|
|
241
|
+
const g = c(() => rt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
242
|
+
function gt(t, o) {
|
|
223
243
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
224
244
|
}
|
|
225
|
-
function
|
|
226
|
-
T.value = null,
|
|
245
|
+
function ft(t, o) {
|
|
246
|
+
T.value = null, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
227
247
|
}
|
|
228
248
|
const ne = r(null);
|
|
229
|
-
function
|
|
230
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }),
|
|
249
|
+
function yt(t, o) {
|
|
250
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), p.value.length === k.dataset.length) return;
|
|
231
251
|
ne.value = {
|
|
232
252
|
datapoint: t,
|
|
233
253
|
seriesIndex: o,
|
|
234
|
-
series:
|
|
254
|
+
series: y.value,
|
|
235
255
|
config: e.value
|
|
236
256
|
}, T.value = o;
|
|
237
|
-
const l =
|
|
238
|
-
if (
|
|
257
|
+
const l = y.value[o], a = e.value.style.chart.tooltip.customFormat;
|
|
258
|
+
if (Wt(a) && Gt(() => a({
|
|
239
259
|
seriesIndex: o,
|
|
240
260
|
datapoint: t,
|
|
241
|
-
series:
|
|
261
|
+
series: y.value,
|
|
242
262
|
config: e.value
|
|
243
263
|
})))
|
|
244
|
-
|
|
264
|
+
K.value = a({
|
|
245
265
|
seriesIndex: o,
|
|
246
266
|
datapoint: t,
|
|
247
|
-
series:
|
|
267
|
+
series: y.value,
|
|
248
268
|
config: e.value
|
|
249
269
|
});
|
|
250
270
|
else {
|
|
251
271
|
let n = "";
|
|
252
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${
|
|
272
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${nt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (n += `<b>${je(
|
|
253
273
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
254
274
|
l.value,
|
|
255
|
-
|
|
275
|
+
R({
|
|
256
276
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
257
277
|
v: l.value,
|
|
258
278
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -260,36 +280,36 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
260
280
|
}),
|
|
261
281
|
{ datapoint: t, seriesIndex: o }
|
|
262
282
|
)}
|
|
263
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${
|
|
283
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${R({
|
|
264
284
|
v: l.value / $.value * 100,
|
|
265
285
|
s: "%",
|
|
266
286
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
267
|
-
})})</span></div>` : n += `<b>${
|
|
287
|
+
})})</span></div>` : n += `<b>${R({
|
|
268
288
|
v: l.value / $.value * 100,
|
|
269
289
|
s: "%",
|
|
270
290
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
271
|
-
})}</b></div>`),
|
|
291
|
+
})}</b></div>`), K.value = n;
|
|
272
292
|
}
|
|
273
|
-
|
|
293
|
+
H.value = !0;
|
|
274
294
|
}
|
|
275
|
-
const
|
|
276
|
-
const t =
|
|
295
|
+
const x = c(() => {
|
|
296
|
+
const t = y.value.map((l) => ({
|
|
277
297
|
name: l.name,
|
|
278
298
|
color: l.color
|
|
279
|
-
})), o =
|
|
299
|
+
})), o = y.value.map((l) => l.value);
|
|
280
300
|
return { head: t, body: o };
|
|
281
|
-
}),
|
|
301
|
+
}), X = c(() => {
|
|
282
302
|
const t = [
|
|
283
303
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
284
|
-
|
|
304
|
+
R({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
285
305
|
"100%"
|
|
286
|
-
], o =
|
|
306
|
+
], o = x.value.head.map((n, v) => [
|
|
287
307
|
{
|
|
288
308
|
color: n.color,
|
|
289
309
|
name: n.name
|
|
290
310
|
},
|
|
291
|
-
|
|
292
|
-
isNaN(
|
|
311
|
+
R({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
312
|
+
isNaN(x.value.body[v] / $.value) ? "-" : (x.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
293
313
|
]), l = {
|
|
294
314
|
th: {
|
|
295
315
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -315,30 +335,30 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
315
335
|
};
|
|
316
336
|
});
|
|
317
337
|
function ue(t = null) {
|
|
318
|
-
|
|
319
|
-
const o =
|
|
338
|
+
Pt(() => {
|
|
339
|
+
const o = x.value.head.map((n, v) => [[
|
|
320
340
|
n.name
|
|
321
|
-
], [
|
|
322
|
-
t ? t(a) :
|
|
341
|
+
], [x.value.body[v]], [isNaN(x.value.body[v] / $.value) ? "-" : x.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = zt(l);
|
|
342
|
+
t ? t(a) : Et({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
323
343
|
});
|
|
324
344
|
}
|
|
325
|
-
const
|
|
326
|
-
function
|
|
327
|
-
|
|
345
|
+
const L = r(!1);
|
|
346
|
+
function De(t) {
|
|
347
|
+
L.value = t, ge.value += 1;
|
|
328
348
|
}
|
|
329
|
-
function
|
|
349
|
+
function Re() {
|
|
330
350
|
w.value.showTable = !w.value.showTable;
|
|
331
351
|
}
|
|
332
|
-
function
|
|
352
|
+
function Ve() {
|
|
333
353
|
w.value.showTooltip = !w.value.showTooltip;
|
|
334
354
|
}
|
|
335
|
-
const
|
|
355
|
+
const Y = r(!1);
|
|
336
356
|
function re() {
|
|
337
|
-
|
|
357
|
+
Y.value = !Y.value;
|
|
338
358
|
}
|
|
339
|
-
async function
|
|
359
|
+
async function mt({ scale: t = 2 } = {}) {
|
|
340
360
|
if (!_.value) return;
|
|
341
|
-
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await
|
|
361
|
+
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await el({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
342
362
|
return {
|
|
343
363
|
imageUri: n,
|
|
344
364
|
base64: v,
|
|
@@ -348,17 +368,17 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
348
368
|
aspectRatio: a
|
|
349
369
|
};
|
|
350
370
|
}
|
|
351
|
-
const
|
|
371
|
+
const E = c(() => {
|
|
352
372
|
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
353
373
|
return {
|
|
354
|
-
component: t ?
|
|
374
|
+
component: t ? at : Ze,
|
|
355
375
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
356
376
|
props: t ? {
|
|
357
377
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
358
378
|
color: e.value.table.th.color,
|
|
359
379
|
headerColor: e.value.table.th.color,
|
|
360
380
|
headerBg: e.value.table.th.backgroundColor,
|
|
361
|
-
isFullscreen:
|
|
381
|
+
isFullscreen: L.value,
|
|
362
382
|
fullscreenParent: _.value,
|
|
363
383
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
364
384
|
} : {
|
|
@@ -378,73 +398,75 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
378
398
|
}
|
|
379
399
|
};
|
|
380
400
|
});
|
|
381
|
-
|
|
382
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
401
|
+
q(() => w.value.showTable, (t) => {
|
|
402
|
+
e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
383
403
|
});
|
|
384
404
|
function Be() {
|
|
385
|
-
w.value.showTable = !1,
|
|
405
|
+
w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
386
406
|
}
|
|
387
|
-
const
|
|
407
|
+
const bt = c(() => se.value.map((t) => ({
|
|
388
408
|
...t,
|
|
389
409
|
name: t.display
|
|
390
|
-
}))),
|
|
391
|
-
svg:
|
|
392
|
-
title:
|
|
393
|
-
legend:
|
|
394
|
-
legendItems:
|
|
395
|
-
backgroundColor:
|
|
410
|
+
}))), kt = c(() => e.value.style.chart.backgroundColor), wt = c(() => e.value.style.chart.legend), Ct = c(() => e.value.style.chart.title), { exportSvg: $t, getSvg: Tt } = Jt({
|
|
411
|
+
svg: le,
|
|
412
|
+
title: Ct,
|
|
413
|
+
legend: wt,
|
|
414
|
+
legendItems: bt,
|
|
415
|
+
backgroundColor: kt
|
|
396
416
|
});
|
|
397
|
-
async function
|
|
417
|
+
async function Me({ isCb: t }) {
|
|
398
418
|
if (t) {
|
|
399
|
-
const { blob: o, url: l, text: a, dataUrl: n } = await
|
|
419
|
+
const { blob: o, url: l, text: a, dataUrl: n } = await Tt();
|
|
400
420
|
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: n });
|
|
401
421
|
} else
|
|
402
|
-
|
|
422
|
+
$t();
|
|
403
423
|
}
|
|
404
|
-
return
|
|
405
|
-
getData:
|
|
406
|
-
getImage:
|
|
424
|
+
return qe({
|
|
425
|
+
getData: pt,
|
|
426
|
+
getImage: mt,
|
|
407
427
|
generatePdf: Fe,
|
|
408
428
|
generateCsv: ue,
|
|
409
429
|
generateImage: Ie,
|
|
410
|
-
generateSvg:
|
|
411
|
-
|
|
412
|
-
|
|
430
|
+
generateSvg: Me,
|
|
431
|
+
hideSeries: ct,
|
|
432
|
+
showSeries: vt,
|
|
433
|
+
toggleTable: Re,
|
|
434
|
+
toggleTooltip: Ve,
|
|
413
435
|
toggleAnnotator: re,
|
|
414
|
-
toggleFullscreen:
|
|
415
|
-
}), (t, o) => (i(),
|
|
436
|
+
toggleFullscreen: De
|
|
437
|
+
}), (t, o) => (i(), f("div", {
|
|
416
438
|
ref_key: "ringsChart",
|
|
417
439
|
ref: _,
|
|
418
|
-
class:
|
|
419
|
-
style:
|
|
420
|
-
id: `rings_${
|
|
440
|
+
class: G(`vue-data-ui-component vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
441
|
+
style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
442
|
+
id: `rings_${m.value}`,
|
|
421
443
|
onMouseleave: o[2] || (o[2] = (l) => {
|
|
422
|
-
T.value = null,
|
|
444
|
+
T.value = null, H.value = !1, s(_e)(!1);
|
|
423
445
|
}),
|
|
424
446
|
onMouseenter: o[3] || (o[3] = () => s(_e)(!0))
|
|
425
447
|
}, [
|
|
426
|
-
e.value.userOptions.buttons.annotator ? (i(), A(s(
|
|
448
|
+
e.value.userOptions.buttons.annotator ? (i(), A(s(tt), {
|
|
427
449
|
key: 0,
|
|
428
|
-
svgRef: s(
|
|
450
|
+
svgRef: s(le),
|
|
429
451
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
430
452
|
color: e.value.style.chart.color,
|
|
431
|
-
active:
|
|
453
|
+
active: Y.value,
|
|
432
454
|
onClose: re
|
|
433
455
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
434
|
-
|
|
456
|
+
ut.value ? (i(), f("div", {
|
|
435
457
|
key: 1,
|
|
436
458
|
ref_key: "noTitle",
|
|
437
459
|
ref: be,
|
|
438
460
|
class: "vue-data-ui-no-title-space",
|
|
439
461
|
style: "height:36px; width: 100%;background:transparent"
|
|
440
462
|
}, null, 512)) : b("", !0),
|
|
441
|
-
e.value.style.chart.title.text ? (i(),
|
|
463
|
+
e.value.style.chart.title.text ? (i(), f("div", {
|
|
442
464
|
key: 2,
|
|
443
465
|
ref_key: "chartTitle",
|
|
444
466
|
ref: fe,
|
|
445
467
|
style: "width:100%;background:transparent"
|
|
446
468
|
}, [
|
|
447
|
-
(i(), A(
|
|
469
|
+
(i(), A(ll, {
|
|
448
470
|
key: `title_${ke.value}`,
|
|
449
471
|
config: {
|
|
450
472
|
title: {
|
|
@@ -459,17 +481,17 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
459
481
|
}, null, 8, ["config"]))
|
|
460
482
|
], 512)) : b("", !0),
|
|
461
483
|
C("div", {
|
|
462
|
-
id: `legend-top-${
|
|
463
|
-
}, null, 8,
|
|
464
|
-
e.value.userOptions.show &&
|
|
484
|
+
id: `legend-top-${m.value}`
|
|
485
|
+
}, null, 8, ul),
|
|
486
|
+
e.value.userOptions.show && pe.value && (s(Se) || s(te)) ? (i(), A(s(lt), {
|
|
465
487
|
ref_key: "userOptionsRef",
|
|
466
|
-
ref:
|
|
488
|
+
ref: ee,
|
|
467
489
|
key: `user_options_${ge.value}`,
|
|
468
490
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
469
491
|
color: e.value.style.chart.color,
|
|
470
492
|
isPrinting: s(Oe),
|
|
471
493
|
isImaging: s(Ae),
|
|
472
|
-
uid:
|
|
494
|
+
uid: m.value,
|
|
473
495
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
474
496
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
475
497
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -478,101 +500,101 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
478
500
|
hasTable: e.value.userOptions.buttons.table,
|
|
479
501
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
480
502
|
isTooltip: w.value.showTooltip,
|
|
481
|
-
isFullscreen:
|
|
503
|
+
isFullscreen: L.value,
|
|
482
504
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
483
505
|
chartElement: _.value,
|
|
484
506
|
position: e.value.userOptions.position,
|
|
485
507
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
486
|
-
isAnnotation:
|
|
508
|
+
isAnnotation: Y.value,
|
|
487
509
|
callbacks: e.value.userOptions.callbacks,
|
|
488
510
|
printScale: e.value.userOptions.print.scale,
|
|
489
511
|
tableDialog: e.value.table.useDialog,
|
|
490
|
-
onToggleFullscreen:
|
|
512
|
+
onToggleFullscreen: De,
|
|
491
513
|
onGeneratePdf: s(Fe),
|
|
492
514
|
onGenerateCsv: ue,
|
|
493
515
|
onGenerateImage: s(Ie),
|
|
494
|
-
onGenerateSvg:
|
|
495
|
-
onToggleTable:
|
|
496
|
-
onToggleTooltip:
|
|
516
|
+
onGenerateSvg: Me,
|
|
517
|
+
onToggleTable: Re,
|
|
518
|
+
onToggleTooltip: Ve,
|
|
497
519
|
onToggleAnnotator: re,
|
|
498
|
-
style:
|
|
499
|
-
visibility: s(
|
|
520
|
+
style: N({
|
|
521
|
+
visibility: s(Se) ? s(te) ? "visible" : "hidden" : "visible"
|
|
500
522
|
})
|
|
501
523
|
}, ie({ _: 2 }, [
|
|
502
524
|
t.$slots.menuIcon ? {
|
|
503
525
|
name: "menuIcon",
|
|
504
526
|
fn: d(({ isOpen: l, color: a }) => [
|
|
505
|
-
|
|
527
|
+
h(t.$slots, "menuIcon", B(M({ isOpen: l, color: a })), void 0, !0)
|
|
506
528
|
]),
|
|
507
529
|
key: "0"
|
|
508
530
|
} : void 0,
|
|
509
531
|
t.$slots.optionTooltip ? {
|
|
510
532
|
name: "optionTooltip",
|
|
511
533
|
fn: d(() => [
|
|
512
|
-
|
|
534
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
513
535
|
]),
|
|
514
536
|
key: "1"
|
|
515
537
|
} : void 0,
|
|
516
538
|
t.$slots.optionPdf ? {
|
|
517
539
|
name: "optionPdf",
|
|
518
540
|
fn: d(() => [
|
|
519
|
-
|
|
541
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
520
542
|
]),
|
|
521
543
|
key: "2"
|
|
522
544
|
} : void 0,
|
|
523
545
|
t.$slots.optionCsv ? {
|
|
524
546
|
name: "optionCsv",
|
|
525
547
|
fn: d(() => [
|
|
526
|
-
|
|
548
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
527
549
|
]),
|
|
528
550
|
key: "3"
|
|
529
551
|
} : void 0,
|
|
530
552
|
t.$slots.optionImg ? {
|
|
531
553
|
name: "optionImg",
|
|
532
554
|
fn: d(() => [
|
|
533
|
-
|
|
555
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
534
556
|
]),
|
|
535
557
|
key: "4"
|
|
536
558
|
} : void 0,
|
|
537
559
|
t.$slots.optionSvg ? {
|
|
538
560
|
name: "optionSvg",
|
|
539
561
|
fn: d(() => [
|
|
540
|
-
|
|
562
|
+
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
541
563
|
]),
|
|
542
564
|
key: "5"
|
|
543
565
|
} : void 0,
|
|
544
566
|
t.$slots.optionTable ? {
|
|
545
567
|
name: "optionTable",
|
|
546
568
|
fn: d(() => [
|
|
547
|
-
|
|
569
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
548
570
|
]),
|
|
549
571
|
key: "6"
|
|
550
572
|
} : void 0,
|
|
551
573
|
t.$slots.optionFullscreen ? {
|
|
552
574
|
name: "optionFullscreen",
|
|
553
575
|
fn: d(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
554
|
-
|
|
576
|
+
h(t.$slots, "optionFullscreen", B(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
555
577
|
]),
|
|
556
578
|
key: "7"
|
|
557
579
|
} : void 0,
|
|
558
580
|
t.$slots.optionAnnotator ? {
|
|
559
581
|
name: "optionAnnotator",
|
|
560
582
|
fn: d(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
561
|
-
|
|
583
|
+
h(t.$slots, "optionAnnotator", B(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
562
584
|
]),
|
|
563
585
|
key: "8"
|
|
564
586
|
} : void 0
|
|
565
587
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
566
|
-
(i(),
|
|
588
|
+
(i(), f("svg", {
|
|
567
589
|
ref_key: "svgRef",
|
|
568
|
-
ref:
|
|
569
|
-
xmlns: s(
|
|
570
|
-
class:
|
|
590
|
+
ref: le,
|
|
591
|
+
xmlns: s(Bt),
|
|
592
|
+
class: G({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value, resizing: Z.value || s(I) }),
|
|
571
593
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
572
|
-
style:
|
|
594
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
573
595
|
}, [
|
|
574
|
-
|
|
575
|
-
t.$slots["chart-background"] ? (i(),
|
|
596
|
+
Q(s(ot)),
|
|
597
|
+
t.$slots["chart-background"] ? (i(), f("foreignObject", {
|
|
576
598
|
key: 0,
|
|
577
599
|
x: 0,
|
|
578
600
|
y: 0,
|
|
@@ -582,148 +604,148 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
582
604
|
pointerEvents: "none"
|
|
583
605
|
}
|
|
584
606
|
}, [
|
|
585
|
-
|
|
586
|
-
], 8,
|
|
607
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
608
|
+
], 8, il)) : b("", !0),
|
|
587
609
|
C("defs", null, [
|
|
588
|
-
(i(!0),
|
|
610
|
+
(i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("radialGradient", {
|
|
589
611
|
cx: "50%",
|
|
590
612
|
cy: "30%",
|
|
591
613
|
r: "50%",
|
|
592
614
|
fx: "50%",
|
|
593
615
|
fy: "50%",
|
|
594
|
-
id: `gradient_${
|
|
616
|
+
id: `gradient_${m.value}_${a}`
|
|
595
617
|
}, [
|
|
596
618
|
C("stop", {
|
|
597
619
|
offset: "0%",
|
|
598
|
-
"stop-color": s(
|
|
599
|
-
}, null, 8,
|
|
620
|
+
"stop-color": s(Mt)(s(Ut)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
621
|
+
}, null, 8, cl),
|
|
600
622
|
C("stop", {
|
|
601
623
|
offset: "100%",
|
|
602
624
|
"stop-color": l.color
|
|
603
|
-
}, null, 8,
|
|
604
|
-
], 8,
|
|
625
|
+
}, null, 8, dl)
|
|
626
|
+
], 8, vl))), 256))
|
|
605
627
|
]),
|
|
606
|
-
t.$slots.pattern ? (i(),
|
|
607
|
-
(i(!0),
|
|
608
|
-
|
|
628
|
+
t.$slots.pattern ? (i(), f("g", hl, [
|
|
629
|
+
(i(!0), f(ve, null, ce(y.value, (l) => (i(), f("defs", null, [
|
|
630
|
+
h(t.$slots, "pattern", ze({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${m.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
609
631
|
]))), 256))
|
|
610
632
|
])) : b("", !0),
|
|
611
|
-
(i(!0),
|
|
633
|
+
(i(!0), f(ve, null, ce(y.value, (l, a) => (i(), f("g", null, [
|
|
612
634
|
C("circle", {
|
|
613
|
-
class:
|
|
635
|
+
class: G({
|
|
614
636
|
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
615
637
|
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
616
638
|
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
617
639
|
}),
|
|
618
|
-
style:
|
|
640
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
619
641
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
620
642
|
cx: u.value.width / 2,
|
|
621
|
-
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 +
|
|
622
|
-
r: s(
|
|
643
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
644
|
+
r: s(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
623
645
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
624
|
-
}, null, 14,
|
|
646
|
+
}, null, 14, pl),
|
|
625
647
|
C("circle", {
|
|
626
|
-
class:
|
|
648
|
+
class: G({
|
|
627
649
|
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
628
650
|
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
629
651
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
630
652
|
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
631
653
|
}),
|
|
632
|
-
style:
|
|
654
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
633
655
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
634
656
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
635
657
|
cx: u.value.width / 2,
|
|
636
|
-
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 +
|
|
637
|
-
r: s(
|
|
638
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
639
|
-
}, null, 14,
|
|
640
|
-
t.$slots.pattern ? (i(),
|
|
658
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
659
|
+
r: s(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
660
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${m.value}_${a})` : l.color
|
|
661
|
+
}, null, 14, gl),
|
|
662
|
+
t.$slots.pattern ? (i(), f("circle", {
|
|
641
663
|
key: 0,
|
|
642
|
-
class:
|
|
664
|
+
class: G({
|
|
643
665
|
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
644
666
|
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
645
667
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
646
668
|
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
647
669
|
}),
|
|
648
|
-
style:
|
|
670
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
649
671
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
650
672
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
651
673
|
cx: u.value.width / 2,
|
|
652
|
-
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 +
|
|
653
|
-
r: s(
|
|
654
|
-
fill: `url(#pattern_${
|
|
655
|
-
}, null, 14,
|
|
674
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
675
|
+
r: s(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
676
|
+
fill: `url(#pattern_${m.value}_${l.absoluteIndex})`
|
|
677
|
+
}, null, 14, fl)) : b("", !0),
|
|
656
678
|
C("circle", {
|
|
657
679
|
stroke: "none",
|
|
658
680
|
cx: u.value.width / 2,
|
|
659
|
-
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 +
|
|
660
|
-
r: s(
|
|
681
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + g.value * y.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
682
|
+
r: s(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
661
683
|
fill: "transparent",
|
|
662
|
-
onMouseenter: (n) =>
|
|
663
|
-
onMouseleave: (n) =>
|
|
664
|
-
onClick: (n) =>
|
|
665
|
-
}, null, 40,
|
|
684
|
+
onMouseenter: (n) => yt(l, a),
|
|
685
|
+
onMouseleave: (n) => ft(l, a),
|
|
686
|
+
onClick: (n) => gt(l, a)
|
|
687
|
+
}, null, 40, yl)
|
|
666
688
|
]))), 256)),
|
|
667
|
-
|
|
668
|
-
], 14,
|
|
669
|
-
t.$slots.watermark ? (i(),
|
|
670
|
-
|
|
689
|
+
h(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
690
|
+
], 14, rl)),
|
|
691
|
+
t.$slots.watermark ? (i(), f("div", ml, [
|
|
692
|
+
h(t.$slots, "watermark", B(M({ isPrinting: s(Oe) || s(Ae) })), void 0, !0)
|
|
671
693
|
])) : b("", !0),
|
|
672
694
|
C("div", {
|
|
673
|
-
id: `legend-bottom-${
|
|
674
|
-
}, null, 8,
|
|
675
|
-
$e.value ? (i(), A(
|
|
695
|
+
id: `legend-bottom-${m.value}`
|
|
696
|
+
}, null, 8, bl),
|
|
697
|
+
$e.value ? (i(), A(Ft, {
|
|
676
698
|
key: 5,
|
|
677
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
699
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
678
700
|
}, [
|
|
679
701
|
C("div", {
|
|
680
702
|
ref_key: "chartLegend",
|
|
681
703
|
ref: ye
|
|
682
704
|
}, [
|
|
683
|
-
e.value.style.chart.legend.show ? (i(), A(
|
|
705
|
+
e.value.style.chart.legend.show ? (i(), A(al, {
|
|
684
706
|
key: `legend_${Ce.value}`,
|
|
685
707
|
legendSet: se.value,
|
|
686
|
-
config:
|
|
687
|
-
onClickMarker: o[0] || (o[0] = ({ legend: l }) =>
|
|
708
|
+
config: ht.value,
|
|
709
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => z(l.uid))
|
|
688
710
|
}, ie({
|
|
689
711
|
item: d(({ legend: l, index: a }) => [
|
|
690
|
-
s(I) ? b("", !0) : (i(),
|
|
712
|
+
s(I) ? b("", !0) : (i(), f("div", {
|
|
691
713
|
key: 0,
|
|
692
|
-
onClick: (n) =>
|
|
693
|
-
style:
|
|
694
|
-
}, de(l.display), 13,
|
|
714
|
+
onClick: (n) => z(l.uid),
|
|
715
|
+
style: N(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
716
|
+
}, de(l.display), 13, kl))
|
|
695
717
|
]),
|
|
696
718
|
_: 2
|
|
697
719
|
}, [
|
|
698
720
|
t.$slots.pattern ? {
|
|
699
721
|
name: "legend-pattern",
|
|
700
722
|
fn: d(({ legend: l, index: a }) => [
|
|
701
|
-
|
|
723
|
+
Q(tl, {
|
|
702
724
|
shape: l.shape,
|
|
703
725
|
radius: 30,
|
|
704
726
|
stroke: "none",
|
|
705
727
|
plot: { x: 30, y: 30 },
|
|
706
|
-
fill: `url(#pattern_${
|
|
728
|
+
fill: `url(#pattern_${m.value}_${a})`
|
|
707
729
|
}, null, 8, ["shape", "fill"])
|
|
708
730
|
]),
|
|
709
731
|
key: "0"
|
|
710
732
|
} : void 0
|
|
711
|
-
]), 1032, ["legendSet", "config"])) :
|
|
733
|
+
]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
712
734
|
key: 1,
|
|
713
735
|
legend: se.value
|
|
714
736
|
}, void 0, !0)
|
|
715
737
|
], 512)
|
|
716
738
|
], 8, ["to"])) : b("", !0),
|
|
717
|
-
t.$slots.source ? (i(),
|
|
739
|
+
t.$slots.source ? (i(), f("div", {
|
|
718
740
|
key: 6,
|
|
719
741
|
ref_key: "source",
|
|
720
742
|
ref: me,
|
|
721
743
|
dir: "auto"
|
|
722
744
|
}, [
|
|
723
|
-
|
|
745
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
724
746
|
], 512)) : b("", !0),
|
|
725
|
-
|
|
726
|
-
show: w.value.showTooltip &&
|
|
747
|
+
Q(s(Je), {
|
|
748
|
+
show: w.value.showTooltip && H.value && p.value.length < k.dataset.length,
|
|
727
749
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
728
750
|
color: e.value.style.chart.tooltip.color,
|
|
729
751
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -734,8 +756,8 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
734
756
|
position: e.value.style.chart.tooltip.position,
|
|
735
757
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
736
758
|
parent: _.value,
|
|
737
|
-
content:
|
|
738
|
-
isFullscreen:
|
|
759
|
+
content: K.value,
|
|
760
|
+
isFullscreen: L.value,
|
|
739
761
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
740
762
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
741
763
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -743,26 +765,26 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
743
765
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
744
766
|
}, {
|
|
745
767
|
"tooltip-before": d(() => [
|
|
746
|
-
|
|
768
|
+
h(t.$slots, "tooltip-before", B(M({ ...ne.value })), void 0, !0)
|
|
747
769
|
]),
|
|
748
770
|
"tooltip-after": d(() => [
|
|
749
|
-
|
|
771
|
+
h(t.$slots, "tooltip-after", B(M({ ...ne.value })), void 0, !0)
|
|
750
772
|
]),
|
|
751
773
|
_: 3
|
|
752
774
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
753
|
-
|
|
775
|
+
pe.value && e.value.userOptions.buttons.table ? (i(), A(It(E.value.component), ze({ key: 7 }, E.value.props, {
|
|
754
776
|
ref_key: "tableUnit",
|
|
755
|
-
ref:
|
|
777
|
+
ref: U,
|
|
756
778
|
onClose: Be
|
|
757
779
|
}), ie({
|
|
758
780
|
content: d(() => [
|
|
759
|
-
(i(), A(s(
|
|
781
|
+
(i(), A(s(et), {
|
|
760
782
|
key: `table_${we.value}`,
|
|
761
|
-
colNames:
|
|
762
|
-
head:
|
|
763
|
-
body:
|
|
764
|
-
config:
|
|
765
|
-
title: e.value.table.useDialog ? "" :
|
|
783
|
+
colNames: X.value.colNames,
|
|
784
|
+
head: X.value.head,
|
|
785
|
+
body: X.value.body,
|
|
786
|
+
config: X.value.config,
|
|
787
|
+
title: e.value.table.useDialog ? "" : E.value.title,
|
|
766
788
|
withCloseButton: !e.value.table.useDialog,
|
|
767
789
|
onClose: Be
|
|
768
790
|
}, {
|
|
@@ -770,7 +792,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
770
792
|
C("div", {
|
|
771
793
|
innerHTML: l,
|
|
772
794
|
style: { display: "flex", "align-items": "center" }
|
|
773
|
-
}, null, 8,
|
|
795
|
+
}, null, 8, wl)
|
|
774
796
|
]),
|
|
775
797
|
td: d(({ td: l }) => [
|
|
776
798
|
Ee(de(l.name || l), 1)
|
|
@@ -783,7 +805,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
783
805
|
e.value.table.useDialog ? {
|
|
784
806
|
name: "title",
|
|
785
807
|
fn: d(() => [
|
|
786
|
-
Ee(de(
|
|
808
|
+
Ee(de(E.value.title), 1)
|
|
787
809
|
]),
|
|
788
810
|
key: "0"
|
|
789
811
|
} : void 0,
|
|
@@ -795,19 +817,19 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
795
817
|
class: "vue-ui-user-options-button",
|
|
796
818
|
onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
|
|
797
819
|
}, [
|
|
798
|
-
|
|
820
|
+
Q(s(Ke), {
|
|
799
821
|
name: "excel",
|
|
800
|
-
stroke:
|
|
822
|
+
stroke: E.value.props.color
|
|
801
823
|
}, null, 8, ["stroke"])
|
|
802
824
|
])
|
|
803
825
|
]),
|
|
804
826
|
key: "1"
|
|
805
827
|
} : void 0
|
|
806
828
|
]), 1040)) : b("", !0),
|
|
807
|
-
s(I) ? (i(), A(
|
|
808
|
-
], 46,
|
|
829
|
+
s(I) ? (i(), A(Qt, { key: 8 })) : b("", !0)
|
|
830
|
+
], 46, nl));
|
|
809
831
|
}
|
|
810
|
-
},
|
|
832
|
+
}, Bl = /* @__PURE__ */ sl(Cl, [["__scopeId", "data-v-c57c82f5"]]);
|
|
811
833
|
export {
|
|
812
|
-
|
|
834
|
+
Bl as default
|
|
813
835
|
};
|