vue-data-ui 3.0.23 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as A, computed as v, ref as r, toRefs as yt, watch as U, shallowRef as Be, onMounted as bt, onBeforeUnmount as kt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as D, normalizeClass as W, createBlock as I, createCommentVNode as g, createElementVNode as S, createVNode as re, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as z, guardReactiveProps as N, Fragment as Y, renderList as E, toDisplayString as M, Teleport as wt, resolveDynamicComponent as Ct, mergeProps as $t, createTextVNode as Ve, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as xt, c as Tt, t as Ot, a as _t, p as Ye, b as At, d as It, o as Ee, f as ie, e as St, X as Pt, i as X, k as ce, y as Xe, v as Ft, w as Dt, z as Mt } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { t as Rt, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Nt, B as Bt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Lt } from "./usePrinter-BzuXiubT.js";
|
|
6
|
+
import { u as Ge } from "./useNestedProp-aBOhgs4U.js";
|
|
7
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Yt } from "./useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js";
|
|
10
|
+
import Et from "./img-gBDz7xQQ.js";
|
|
11
|
+
import Xt from "./Title-Dz-j6ERs.js";
|
|
12
|
+
import Gt from "./Legend-8_V5egWW.js";
|
|
13
|
+
import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Wt = ["id"], jt = ["id"], qt = ["xmlns", "viewBox"], Jt = ["width", "height"], Kt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Qt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Zt = ["id"], ea = ["stdDeviation"], ta = ["filter"], aa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], la = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], oa = { key: 2 }, na = ["onMouseenter", "onMouseleave", "onClick"], sa = ["x", "y", "font-size", "fill", "font-weight"], ua = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ra = ["id"], ia = ["onClick"], ca = ["innerHTML"], va = {
|
|
18
18
|
__name: "vue-ui-onion",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,14 +31,14 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(He, { expose: We, emit: je }) {
|
|
35
|
+
const qe = A(() => import("./Tooltip-BTGOEC7w.js")), Je = A(() => import("./BaseIcon-DLesaZpW.js")), Ke = A(() => import("./vue-ui-accordion-B5QeV3BK.js")), Qe = A(() => import("./DataTable-BAf4Obr9.js")), Ze = A(() => import("./UserOptions-CsDlFB0L.js")), et = A(() => import("./PenAndPaper-B6OvfyHH.js")), tt = A(() => import("./PackageVersion-Cv_ypT0N.js")), at = A(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_onion: lt } = xt(), C = He, ve = v(() => !!C.dataset && C.dataset.length), y = r(Tt()), ot = r(null), de = r(0), j = r(!1), q = r(""), b = r([]), $ = r(null), he = r(null), pe = r(null), fe = r(null), ge = r(null), me = r(0), ye = r(0), be = r(0), x = r(!1), ke = r(!1), B = r(null), e = r(Z()), { loading: k, FINAL_DATASET: we, manualLoading: J } = Nt({
|
|
36
|
+
...yt(C),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: Z,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
41
|
+
await Ue(), Se();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -47,7 +47,7 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
47
47
|
{ name: "_", percentage: 50, value: 1, color: "#ADADAD" },
|
|
48
48
|
{ name: "_", percentage: 50, value: 1, color: "#969696" }
|
|
49
49
|
],
|
|
50
|
-
skeletonConfig:
|
|
50
|
+
skeletonConfig: Ot({
|
|
51
51
|
defaultConfig: e.value,
|
|
52
52
|
userConfig: {
|
|
53
53
|
userOptions: { show: !1 },
|
|
@@ -68,32 +68,32 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible:
|
|
72
|
-
function
|
|
73
|
-
const t =
|
|
74
|
-
userConfig:
|
|
75
|
-
defaultConfig:
|
|
71
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Vt({ config: e.value }), { svgRef: Q } = Ut({ config: e.value.style.chart.title });
|
|
72
|
+
function Z() {
|
|
73
|
+
const t = Ge({
|
|
74
|
+
userConfig: C.config,
|
|
75
|
+
defaultConfig: lt
|
|
76
76
|
});
|
|
77
77
|
return t.theme ? {
|
|
78
|
-
...
|
|
79
|
-
userConfig:
|
|
78
|
+
...Ge({
|
|
79
|
+
userConfig: At.vue_ui_onion[t.theme] || C.config,
|
|
80
80
|
defaultConfig: t
|
|
81
81
|
}),
|
|
82
|
-
customPalette:
|
|
82
|
+
customPalette: _t[t.theme] || Ye
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
k.value || (e.value =
|
|
85
|
+
U(() => C.config, (t) => {
|
|
86
|
+
k.value || (e.value = Z()), K.value = !e.value.userOptions.showOnChartHover, Ie(), me.value += 1, ye.value += 1, be.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
87
|
}, { deep: !0 });
|
|
88
|
-
const { isPrinting:
|
|
88
|
+
const { isPrinting: xe, isImaging: Te, generatePdf: Oe, generateImage: _e } = Lt({
|
|
89
89
|
elementId: `vue-ui-onion_${y.value}`,
|
|
90
90
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
91
91
|
options: e.value.userOptions.print
|
|
92
|
-
}),
|
|
92
|
+
}), nt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), st = v(() => It(e.value.customPalette)), m = r({
|
|
93
93
|
showTable: e.value.table.show,
|
|
94
94
|
showTooltip: e.value.style.chart.tooltip.show
|
|
95
95
|
});
|
|
96
|
-
|
|
96
|
+
U(e, () => {
|
|
97
97
|
m.value = {
|
|
98
98
|
showTable: e.value.table.show,
|
|
99
99
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -109,50 +109,50 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
109
109
|
bottom: 64
|
|
110
110
|
},
|
|
111
111
|
minRadius: 64
|
|
112
|
-
}), O =
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
}), O = Be(null), R = Be(null);
|
|
113
|
+
bt(() => {
|
|
114
|
+
ke.value = !0, Ie();
|
|
115
115
|
});
|
|
116
|
-
const
|
|
116
|
+
const ut = v({
|
|
117
117
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
118
118
|
set: (t) => t
|
|
119
|
-
}), { autoSizeLabels:
|
|
120
|
-
svgRef:
|
|
119
|
+
}), { autoSizeLabels: Ae } = Yt({
|
|
120
|
+
svgRef: Q,
|
|
121
121
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
122
122
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
123
|
-
sizeRef:
|
|
123
|
+
sizeRef: ut,
|
|
124
124
|
labelClass: ".vue-ui-onion-label"
|
|
125
|
-
}),
|
|
126
|
-
let
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
125
|
+
}), rt = v(() => e.value.debug);
|
|
126
|
+
let ee = null;
|
|
127
|
+
function Ie() {
|
|
128
|
+
if (Ee(C.dataset) && (ie({
|
|
129
129
|
componentName: "VueUiOnion",
|
|
130
130
|
type: "dataset",
|
|
131
|
-
debug:
|
|
132
|
-
}),
|
|
133
|
-
const o =
|
|
134
|
-
|
|
135
|
-
let { width: a, height: l } =
|
|
136
|
-
chart:
|
|
137
|
-
title: e.value.style.chart.title.text ?
|
|
138
|
-
legend: e.value.style.chart.legend.show ?
|
|
139
|
-
source:
|
|
140
|
-
noTitle:
|
|
131
|
+
debug: rt.value
|
|
132
|
+
}), J.value = !0), Ee(C.dataset) || (J.value = e.value.loading), e.value.responsive) {
|
|
133
|
+
const o = Rt(() => {
|
|
134
|
+
ee && clearTimeout(ee), x.value = !0;
|
|
135
|
+
let { width: a, height: l } = zt({
|
|
136
|
+
chart: $.value,
|
|
137
|
+
title: e.value.style.chart.title.text ? he.value : null,
|
|
138
|
+
legend: e.value.style.chart.legend.show ? pe.value : null,
|
|
139
|
+
source: fe.value,
|
|
140
|
+
noTitle: ge.value
|
|
141
141
|
});
|
|
142
142
|
l -= 12, requestAnimationFrame(async () => {
|
|
143
|
-
n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125,
|
|
144
|
-
|
|
143
|
+
n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, ee = setTimeout(() => {
|
|
144
|
+
x.value = !1, Ae();
|
|
145
145
|
}, 0);
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
O.value && (
|
|
148
|
+
O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect()), O.value = new ResizeObserver(o), R.value = $.value.parentNode, O.value.observe(R.value);
|
|
149
149
|
}
|
|
150
|
-
requestAnimationFrame(
|
|
150
|
+
requestAnimationFrame(Ae);
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
O.value && (
|
|
152
|
+
kt(() => {
|
|
153
|
+
O.value && (R.value && O.value.unobserve(R.value), O.value.disconnect());
|
|
154
154
|
});
|
|
155
|
-
const c =
|
|
155
|
+
const c = v(() => ({
|
|
156
156
|
top: n.value.padding.top,
|
|
157
157
|
left: n.value.padding.left,
|
|
158
158
|
right: n.value.width - n.value.padding.right,
|
|
@@ -163,82 +163,82 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
163
163
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
164
164
|
minRadius: n.value.minRadius,
|
|
165
165
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
166
|
-
})),
|
|
167
|
-
[null, void 0].includes(t.name) &&
|
|
166
|
+
})), f = v(() => (we.value.forEach((t, o) => {
|
|
167
|
+
[null, void 0].includes(t.name) && ie({
|
|
168
168
|
componentName: "VueUiOnion",
|
|
169
169
|
type: "datasetSerieAttribute",
|
|
170
170
|
property: "name",
|
|
171
171
|
index: o
|
|
172
|
-
}), [void 0].includes(t.percentage) &&
|
|
172
|
+
}), [void 0].includes(t.percentage) && ie({
|
|
173
173
|
componentName: "VueUiOnion",
|
|
174
174
|
type: "datasetSerieAttribute",
|
|
175
175
|
property: "percentage",
|
|
176
176
|
index: o
|
|
177
177
|
});
|
|
178
|
-
}),
|
|
178
|
+
}), we.value.map((t, o) => {
|
|
179
179
|
const a = `onion_serie_${o}_${y.value}`;
|
|
180
180
|
return {
|
|
181
181
|
...t,
|
|
182
182
|
percentage: t.percentage || 0,
|
|
183
183
|
targetPercentage: t.percentage || 0,
|
|
184
|
-
color:
|
|
184
|
+
color: St(t.color) || st.value[o] || Ye[o],
|
|
185
185
|
id: a,
|
|
186
186
|
shape: "circle",
|
|
187
187
|
opacity: b.value.includes(a) ? 0.5 : 1,
|
|
188
188
|
absoluteIndex: o,
|
|
189
|
-
segregate: () =>
|
|
189
|
+
segregate: () => Pe(a),
|
|
190
190
|
isSegregated: b.value.includes(a)
|
|
191
191
|
};
|
|
192
|
-
}))), L = r(
|
|
193
|
-
|
|
194
|
-
Array.isArray(t) && t.length > 0 && (
|
|
192
|
+
}))), L = r(f.value), it = v(() => e.value.useStartAnimation), ct = r(null), vt = v(() => Math.max(...f.value.map((t) => t.percentage))), te = r(!1);
|
|
193
|
+
U(() => f.value, Se, { immediate: !0, deep: !0 }), U(() => C.dataset, (t) => {
|
|
194
|
+
Array.isArray(t) && t.length > 0 && (J.value = !1);
|
|
195
195
|
}, { deep: !0 });
|
|
196
|
-
function
|
|
197
|
-
if (
|
|
196
|
+
function Se() {
|
|
197
|
+
if (it.value && !te.value && !k.value) {
|
|
198
198
|
let o = function() {
|
|
199
|
-
t >=
|
|
199
|
+
t >= vt.value ? (cancelAnimationFrame(ct.value), L.value = f.value, te.value = !0) : (L.value = f.value.map((a) => ({
|
|
200
200
|
...a,
|
|
201
201
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
202
|
-
})), t += 1, requestAnimationFrame(o),
|
|
202
|
+
})), t += 1, requestAnimationFrame(o), te.value = !0);
|
|
203
203
|
};
|
|
204
|
-
L.value =
|
|
204
|
+
L.value = f.value.map((a) => ({
|
|
205
205
|
...a,
|
|
206
206
|
percentage: 0
|
|
207
207
|
}));
|
|
208
208
|
let t = 0;
|
|
209
209
|
o();
|
|
210
210
|
} else
|
|
211
|
-
L.value =
|
|
211
|
+
L.value = f.value;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const dt = v(() => ({
|
|
214
214
|
cy: "onion-div-legend",
|
|
215
215
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
216
216
|
color: e.value.style.chart.legend.color,
|
|
217
217
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
218
218
|
paddingBottom: 12,
|
|
219
219
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
220
|
-
})),
|
|
221
|
-
const t = Math.min(c.value.width, c.value.height) / 2 /
|
|
220
|
+
})), ht = v(() => f.value.filter((t) => !b.value.includes(t.id)).length), P = v(() => {
|
|
221
|
+
const t = Math.min(c.value.width, c.value.height) / 2 / f.value.length;
|
|
222
222
|
return {
|
|
223
223
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
224
224
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
225
225
|
};
|
|
226
|
-
}),
|
|
227
|
-
const a = (c.value.maxRadius -
|
|
226
|
+
}), T = v(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
|
|
227
|
+
const a = (c.value.maxRadius - P.value.track) / ht.value / 2 * (1 + o), l = c.value.centerY - a;
|
|
228
228
|
return {
|
|
229
229
|
percentage: t.percentage || 0,
|
|
230
230
|
...t,
|
|
231
231
|
labelY: l,
|
|
232
232
|
radius: a,
|
|
233
|
-
path:
|
|
233
|
+
path: pt(a, t.percentage || 0)
|
|
234
234
|
};
|
|
235
235
|
}));
|
|
236
|
-
function
|
|
237
|
-
const a = 2 * Math.PI * t, l = a * 0.75,
|
|
236
|
+
function pt(t, o) {
|
|
237
|
+
const a = 2 * Math.PI * t, l = a * 0.75, h = `${l} ${a}`, w = l * (1 - o / 100);
|
|
238
238
|
return {
|
|
239
239
|
bgDashArray: `${l} ${a}`,
|
|
240
240
|
bgDashOffset: 0,
|
|
241
|
-
dashArray:
|
|
241
|
+
dashArray: h,
|
|
242
242
|
dashOffset: w,
|
|
243
243
|
fullOffset: 0,
|
|
244
244
|
active: `
|
|
@@ -248,22 +248,22 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
248
248
|
`.trim()
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t),
|
|
251
|
+
const ft = je;
|
|
252
|
+
function Pe(t) {
|
|
253
|
+
b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), ft("selectLegend", T.value);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
255
|
+
function gt() {
|
|
256
|
+
return T.value;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o =
|
|
258
|
+
const ae = v(() => {
|
|
259
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = T.value.map((a) => [
|
|
260
260
|
a.name,
|
|
261
261
|
a.percentage,
|
|
262
262
|
a.value
|
|
263
263
|
]);
|
|
264
264
|
return { head: t, body: o };
|
|
265
|
-
}),
|
|
266
|
-
const t =
|
|
265
|
+
}), G = v(() => {
|
|
266
|
+
const t = ae.value.head, o = T.value.map((l) => [
|
|
267
267
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
268
268
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
269
269
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -282,76 +282,76 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
282
282
|
};
|
|
283
283
|
return { head: t, body: o, config: a, colNames: t };
|
|
284
284
|
});
|
|
285
|
-
function
|
|
286
|
-
|
|
287
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
288
|
-
t ? t(w) :
|
|
285
|
+
function le(t = null) {
|
|
286
|
+
Ue(() => {
|
|
287
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ae.value.head, l = ae.value.body, h = o.concat([a]).concat(l), w = Ft(h);
|
|
288
|
+
t ? t(w) : Dt({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
|
-
const _ = r(void 0),
|
|
292
|
-
function
|
|
293
|
-
|
|
291
|
+
const _ = r(void 0), F = r(!1);
|
|
292
|
+
function Fe(t) {
|
|
293
|
+
F.value = t, de.value += 1;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function De({ datapoint: t }) {
|
|
296
296
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
_.value = void 0,
|
|
298
|
+
function Me({ datapoint: t }) {
|
|
299
|
+
_.value = void 0, j.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
function
|
|
301
|
+
const oe = r(null);
|
|
302
|
+
function Re({ datapoint: t, seriesIndex: o, show: a = !0 }) {
|
|
303
303
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
304
304
|
const l = t.absoluteIndex;
|
|
305
|
-
_.value = o,
|
|
305
|
+
_.value = o, oe.value = {
|
|
306
306
|
datapoint: t,
|
|
307
307
|
seriesIndex: l,
|
|
308
|
-
series:
|
|
308
|
+
series: f.value,
|
|
309
309
|
config: e.value
|
|
310
|
-
},
|
|
311
|
-
let
|
|
310
|
+
}, j.value = a;
|
|
311
|
+
let h = "";
|
|
312
312
|
const w = e.value.style.chart.tooltip.customFormat;
|
|
313
|
-
if (
|
|
313
|
+
if (Xe(w) && Mt(() => w({
|
|
314
314
|
seriesIndex: l,
|
|
315
315
|
datapoint: t,
|
|
316
|
-
series:
|
|
316
|
+
series: f.value,
|
|
317
317
|
config: e.value
|
|
318
318
|
})))
|
|
319
|
-
|
|
319
|
+
q.value = w({
|
|
320
320
|
seriesIndex: l,
|
|
321
321
|
datapoint: t,
|
|
322
|
-
series:
|
|
322
|
+
series: f.value,
|
|
323
323
|
config: e.value
|
|
324
324
|
});
|
|
325
325
|
else {
|
|
326
|
-
const
|
|
327
|
-
|
|
326
|
+
const se = e.value.style.chart.tooltip.showPercentage, ue = e.value.style.chart.tooltip.showValue;
|
|
327
|
+
h += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, h += `<div style="width:100%;text-align:left;"><b>${se ? X({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${se && ue ? "(" : ""}${ue ? ce(
|
|
328
328
|
e.value.style.chart.layout.labels.value.formatter,
|
|
329
329
|
t.value,
|
|
330
|
-
|
|
330
|
+
X({
|
|
331
331
|
p: t.prefix || "",
|
|
332
332
|
v: t.value,
|
|
333
333
|
s: t.suffix || "",
|
|
334
334
|
r: e.value.style.chart.tooltip.roundingValue
|
|
335
335
|
}),
|
|
336
336
|
{ datapoint: t, seriesIndex: o }
|
|
337
|
-
) : ""}${
|
|
337
|
+
) : ""}${se && ue ? ")" : ""}</div>`, q.value = `<div>${h}</div>`;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ze() {
|
|
341
341
|
m.value.showTable = !m.value.showTable;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Ne() {
|
|
344
344
|
m.value.showTooltip = !m.value.showTooltip;
|
|
345
345
|
}
|
|
346
|
-
const
|
|
347
|
-
function
|
|
348
|
-
|
|
346
|
+
const H = r(!1);
|
|
347
|
+
function ne() {
|
|
348
|
+
H.value = !H.value;
|
|
349
349
|
}
|
|
350
|
-
async function
|
|
351
|
-
if (
|
|
352
|
-
const { width: o, height: a } =
|
|
350
|
+
async function mt({ scale: t = 2 } = {}) {
|
|
351
|
+
if (!$.value) return;
|
|
352
|
+
const { width: o, height: a } = $.value.getBoundingClientRect(), l = o / a, { imageUri: h, base64: w } = await Et({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
353
353
|
return {
|
|
354
|
-
imageUri:
|
|
354
|
+
imageUri: h,
|
|
355
355
|
base64: w,
|
|
356
356
|
title: e.value.style.chart.title.text,
|
|
357
357
|
width: o,
|
|
@@ -359,48 +359,80 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
359
359
|
aspectRatio: l
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
362
|
+
const V = v(() => {
|
|
363
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
|
|
364
|
+
return {
|
|
365
|
+
component: t ? at : Ke,
|
|
366
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
367
|
+
props: t ? {
|
|
368
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
369
|
+
color: e.value.table.th.color,
|
|
370
|
+
headerColor: e.value.table.th.color,
|
|
371
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
372
|
+
isFullscreen: F.value,
|
|
373
|
+
fullscreenParent: $.value,
|
|
374
|
+
forcedWidth: Math.min(600, window.innerWidth * 0.8)
|
|
375
|
+
} : {
|
|
376
|
+
hideDetails: !0,
|
|
377
|
+
config: {
|
|
378
|
+
open: o,
|
|
379
|
+
maxHeight: 1e4,
|
|
380
|
+
body: {
|
|
381
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
|
+
color: e.value.style.chart.color
|
|
383
|
+
},
|
|
384
|
+
head: {
|
|
385
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
386
|
+
color: e.value.style.chart.color
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
});
|
|
392
|
+
return U(() => m.value.showTable, (t) => {
|
|
393
|
+
e.value.table.show || (t && e.value.table.useDialog && B.value ? B.value.open() : "close" in B.value && B.value.close());
|
|
394
|
+
}), We({
|
|
395
|
+
getData: gt,
|
|
396
|
+
getImage: mt,
|
|
397
|
+
generatePdf: Oe,
|
|
398
|
+
generateCsv: le,
|
|
399
|
+
generateImage: _e,
|
|
400
|
+
toggleTable: ze,
|
|
401
|
+
toggleTooltip: Ne,
|
|
402
|
+
toggleAnnotator: ne,
|
|
403
|
+
toggleFullscreen: Fe
|
|
372
404
|
}), (t, o) => (u(), i("div", {
|
|
373
|
-
class:
|
|
405
|
+
class: W(`vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
374
406
|
ref_key: "onionChart",
|
|
375
|
-
ref:
|
|
407
|
+
ref: $,
|
|
376
408
|
id: `vue-ui-onion_${y.value}`,
|
|
377
|
-
style:
|
|
378
|
-
onMouseenter: o[
|
|
379
|
-
onMouseleave: o[
|
|
409
|
+
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
410
|
+
onMouseenter: o[4] || (o[4] = () => s(Ce)(!0)),
|
|
411
|
+
onMouseleave: o[5] || (o[5] = () => s(Ce)(!1))
|
|
380
412
|
}, [
|
|
381
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
413
|
+
e.value.userOptions.buttons.annotator ? (u(), I(s(et), {
|
|
382
414
|
key: 0,
|
|
383
|
-
svgRef: s(
|
|
415
|
+
svgRef: s(Q),
|
|
384
416
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
385
417
|
color: e.value.style.chart.color,
|
|
386
|
-
active:
|
|
387
|
-
onClose:
|
|
388
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
389
|
-
|
|
418
|
+
active: H.value,
|
|
419
|
+
onClose: ne
|
|
420
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
421
|
+
nt.value ? (u(), i("div", {
|
|
390
422
|
key: 1,
|
|
391
423
|
ref_key: "noTitle",
|
|
392
|
-
ref:
|
|
424
|
+
ref: ge,
|
|
393
425
|
class: "vue-data-ui-no-title-space",
|
|
394
426
|
style: "height:36px; width: 100%;background:transparent"
|
|
395
|
-
}, null, 512)) :
|
|
427
|
+
}, null, 512)) : g("", !0),
|
|
396
428
|
e.value.style.chart.title.text ? (u(), i("div", {
|
|
397
429
|
key: 2,
|
|
398
430
|
ref_key: "chartTitle",
|
|
399
|
-
ref:
|
|
431
|
+
ref: he,
|
|
400
432
|
style: "width:100%;background:transparent"
|
|
401
433
|
}, [
|
|
402
|
-
(u(),
|
|
403
|
-
key: `title_${
|
|
434
|
+
(u(), I(Xt, {
|
|
435
|
+
key: `title_${me.value}`,
|
|
404
436
|
config: {
|
|
405
437
|
title: {
|
|
406
438
|
cy: "onion-div-title",
|
|
@@ -412,18 +444,18 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
412
444
|
}
|
|
413
445
|
}
|
|
414
446
|
}, null, 8, ["config"]))
|
|
415
|
-
], 512)) :
|
|
416
|
-
|
|
447
|
+
], 512)) : g("", !0),
|
|
448
|
+
S("div", {
|
|
417
449
|
id: `legend-top-${y.value}`
|
|
418
|
-
}, null, 8,
|
|
419
|
-
e.value.userOptions.show &&
|
|
450
|
+
}, null, 8, jt),
|
|
451
|
+
e.value.userOptions.show && ve.value && (s($e) || s(K)) ? (u(), I(s(Ze), {
|
|
420
452
|
ref_key: "details",
|
|
421
|
-
ref:
|
|
422
|
-
key: `user_options${
|
|
453
|
+
ref: ot,
|
|
454
|
+
key: `user_options${de.value}`,
|
|
423
455
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
424
456
|
color: e.value.style.chart.color,
|
|
425
|
-
isImaging: s(
|
|
426
|
-
isPrinting: s(
|
|
457
|
+
isImaging: s(Te),
|
|
458
|
+
isPrinting: s(xe),
|
|
427
459
|
uid: y.value,
|
|
428
460
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
429
461
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -431,92 +463,92 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
431
463
|
hasXls: e.value.userOptions.buttons.csv,
|
|
432
464
|
hasTable: e.value.userOptions.buttons.table,
|
|
433
465
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
434
|
-
isFullscreen:
|
|
466
|
+
isFullscreen: F.value,
|
|
435
467
|
isTooltip: m.value.showTooltip,
|
|
436
468
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
437
|
-
chartElement:
|
|
469
|
+
chartElement: $.value,
|
|
438
470
|
position: e.value.userOptions.position,
|
|
439
471
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
440
|
-
isAnnotation:
|
|
472
|
+
isAnnotation: H.value,
|
|
441
473
|
callbacks: e.value.userOptions.callbacks,
|
|
442
474
|
printScale: e.value.userOptions.print.scale,
|
|
443
|
-
onToggleFullscreen:
|
|
444
|
-
onGeneratePdf: s(
|
|
445
|
-
onGenerateCsv:
|
|
446
|
-
onGenerateImage: s(
|
|
447
|
-
onToggleTable:
|
|
448
|
-
onToggleTooltip:
|
|
449
|
-
onToggleAnnotator:
|
|
450
|
-
style:
|
|
451
|
-
visibility: s(
|
|
475
|
+
onToggleFullscreen: Fe,
|
|
476
|
+
onGeneratePdf: s(Oe),
|
|
477
|
+
onGenerateCsv: le,
|
|
478
|
+
onGenerateImage: s(_e),
|
|
479
|
+
onToggleTable: ze,
|
|
480
|
+
onToggleTooltip: Ne,
|
|
481
|
+
onToggleAnnotator: ne,
|
|
482
|
+
style: D({
|
|
483
|
+
visibility: s($e) ? s(K) ? "visible" : "hidden" : "visible"
|
|
452
484
|
})
|
|
453
|
-
},
|
|
485
|
+
}, Le({ _: 2 }, [
|
|
454
486
|
t.$slots.menuIcon ? {
|
|
455
487
|
name: "menuIcon",
|
|
456
|
-
fn:
|
|
457
|
-
|
|
488
|
+
fn: d(({ isOpen: a, color: l }) => [
|
|
489
|
+
p(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
|
|
458
490
|
]),
|
|
459
491
|
key: "0"
|
|
460
492
|
} : void 0,
|
|
461
493
|
t.$slots.optionTooltip ? {
|
|
462
494
|
name: "optionTooltip",
|
|
463
|
-
fn:
|
|
464
|
-
|
|
495
|
+
fn: d(() => [
|
|
496
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
465
497
|
]),
|
|
466
498
|
key: "1"
|
|
467
499
|
} : void 0,
|
|
468
500
|
t.$slots.optionPdf ? {
|
|
469
501
|
name: "optionPdf",
|
|
470
|
-
fn:
|
|
471
|
-
|
|
502
|
+
fn: d(() => [
|
|
503
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
472
504
|
]),
|
|
473
505
|
key: "2"
|
|
474
506
|
} : void 0,
|
|
475
507
|
t.$slots.optionCsv ? {
|
|
476
508
|
name: "optionCsv",
|
|
477
|
-
fn:
|
|
478
|
-
|
|
509
|
+
fn: d(() => [
|
|
510
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
479
511
|
]),
|
|
480
512
|
key: "3"
|
|
481
513
|
} : void 0,
|
|
482
514
|
t.$slots.optionImg ? {
|
|
483
515
|
name: "optionImg",
|
|
484
|
-
fn:
|
|
485
|
-
|
|
516
|
+
fn: d(() => [
|
|
517
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
486
518
|
]),
|
|
487
519
|
key: "4"
|
|
488
520
|
} : void 0,
|
|
489
521
|
t.$slots.optionTable ? {
|
|
490
522
|
name: "optionTable",
|
|
491
|
-
fn:
|
|
492
|
-
|
|
523
|
+
fn: d(() => [
|
|
524
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
493
525
|
]),
|
|
494
526
|
key: "5"
|
|
495
527
|
} : void 0,
|
|
496
528
|
t.$slots.optionFullscreen ? {
|
|
497
529
|
name: "optionFullscreen",
|
|
498
|
-
fn:
|
|
499
|
-
|
|
530
|
+
fn: d(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
531
|
+
p(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
500
532
|
]),
|
|
501
533
|
key: "6"
|
|
502
534
|
} : void 0,
|
|
503
535
|
t.$slots.optionAnnotator ? {
|
|
504
536
|
name: "optionAnnotator",
|
|
505
|
-
fn:
|
|
506
|
-
|
|
537
|
+
fn: d(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
538
|
+
p(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
507
539
|
]),
|
|
508
540
|
key: "7"
|
|
509
541
|
} : void 0
|
|
510
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
542
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
511
543
|
(u(), i("svg", {
|
|
512
544
|
ref_key: "svgRef",
|
|
513
|
-
ref:
|
|
514
|
-
xmlns: s(
|
|
515
|
-
class:
|
|
545
|
+
ref: Q,
|
|
546
|
+
xmlns: s(Pt),
|
|
547
|
+
class: W({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: x.value }),
|
|
516
548
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
517
|
-
style:
|
|
549
|
+
style: D(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
518
550
|
}, [
|
|
519
|
-
|
|
551
|
+
re(s(tt)),
|
|
520
552
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
521
553
|
key: 0,
|
|
522
554
|
x: 0,
|
|
@@ -527,86 +559,86 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
527
559
|
pointerEvents: "none"
|
|
528
560
|
}
|
|
529
561
|
}, [
|
|
530
|
-
|
|
531
|
-
], 8,
|
|
532
|
-
(u(!0), i(
|
|
562
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
563
|
+
], 8, Jt)) : g("", !0),
|
|
564
|
+
(u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
|
|
533
565
|
cx: c.value.centerX,
|
|
534
566
|
cy: c.value.centerY,
|
|
535
567
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
536
568
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
537
|
-
"stroke-width":
|
|
569
|
+
"stroke-width": P.value.gutter,
|
|
538
570
|
fill: "none",
|
|
539
571
|
"stroke-dasharray": a.path.bgDashArray,
|
|
540
572
|
"stroke-dashoffset": a.path.fullOffset,
|
|
541
573
|
"stroke-linecap": "round",
|
|
542
|
-
class:
|
|
543
|
-
style:
|
|
574
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
|
|
575
|
+
style: D({
|
|
544
576
|
transform: "rotate(-90deg)",
|
|
545
577
|
transformOrigin: "50% 50%",
|
|
546
|
-
transition:
|
|
547
|
-
animation:
|
|
578
|
+
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
579
|
+
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
548
580
|
})
|
|
549
|
-
}, null, 14,
|
|
550
|
-
(u(!0), i(
|
|
581
|
+
}, null, 14, Kt))), 256)),
|
|
582
|
+
(u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
|
|
551
583
|
cx: c.value.centerX,
|
|
552
584
|
cy: c.value.centerY,
|
|
553
585
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
554
586
|
stroke: `${a.color}`,
|
|
555
|
-
"stroke-width":
|
|
587
|
+
"stroke-width": P.value.track,
|
|
556
588
|
fill: "none",
|
|
557
589
|
"stroke-dasharray": a.path.dashArray,
|
|
558
590
|
"stroke-dashoffset": a.path.dashOffset,
|
|
559
|
-
class:
|
|
591
|
+
class: W({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
|
|
560
592
|
"stroke-linecap": "round",
|
|
561
|
-
style:
|
|
593
|
+
style: D({
|
|
562
594
|
transform: "rotate(-90deg)",
|
|
563
595
|
transformOrigin: "50% 50%",
|
|
564
|
-
transition:
|
|
565
|
-
animation:
|
|
596
|
+
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
597
|
+
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
566
598
|
})
|
|
567
|
-
}, null, 14,
|
|
568
|
-
|
|
569
|
-
|
|
599
|
+
}, null, 14, Qt))), 256)),
|
|
600
|
+
S("defs", null, [
|
|
601
|
+
S("filter", {
|
|
570
602
|
id: `blur_${y.value}`,
|
|
571
603
|
x: "-50%",
|
|
572
604
|
y: "-50%",
|
|
573
605
|
width: "200%",
|
|
574
606
|
height: "200%"
|
|
575
607
|
}, [
|
|
576
|
-
|
|
608
|
+
S("feGaussianBlur", {
|
|
577
609
|
in: "SourceGraphic",
|
|
578
610
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
579
|
-
}, null, 8,
|
|
580
|
-
], 8,
|
|
611
|
+
}, null, 8, ea)
|
|
612
|
+
], 8, Zt)
|
|
581
613
|
]),
|
|
582
614
|
e.value.style.chart.useGradient ? (u(), i("g", {
|
|
583
615
|
key: 1,
|
|
584
616
|
filter: `url(#blur_${y.value})`
|
|
585
617
|
}, [
|
|
586
|
-
(u(!0), i(
|
|
618
|
+
(u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
|
|
587
619
|
cx: c.value.centerX,
|
|
588
620
|
cy: c.value.centerY,
|
|
589
621
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
590
622
|
stroke: "white",
|
|
591
|
-
"stroke-width":
|
|
623
|
+
"stroke-width": P.value.track / 3,
|
|
592
624
|
fill: "none",
|
|
593
625
|
"stroke-linecap": "round",
|
|
594
626
|
"stroke-dasharray": a.path.dashArray,
|
|
595
627
|
"stroke-dashoffset": a.path.dashOffset,
|
|
596
|
-
style:
|
|
628
|
+
style: D({
|
|
597
629
|
transform: "rotate(-90deg)",
|
|
598
630
|
transformOrigin: "50% 50%",
|
|
599
|
-
transition:
|
|
600
|
-
animation:
|
|
631
|
+
transition: x.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
|
|
632
|
+
animation: x.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
|
|
601
633
|
})
|
|
602
|
-
}, null, 12,
|
|
603
|
-
], 8,
|
|
604
|
-
(u(!0), i(
|
|
634
|
+
}, null, 12, aa))), 256))
|
|
635
|
+
], 8, ta)) : g("", !0),
|
|
636
|
+
(u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("circle", {
|
|
605
637
|
cx: c.value.centerX,
|
|
606
638
|
cy: c.value.centerY,
|
|
607
639
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
608
640
|
stroke: "transparent",
|
|
609
|
-
"stroke-width": Math.max(
|
|
641
|
+
"stroke-width": Math.max(P.value.track, P.value.gutter),
|
|
610
642
|
fill: "none",
|
|
611
643
|
"stroke-dasharray": a.path.bgDashArray,
|
|
612
644
|
"stroke-dashoffset": a.path.fullOffset,
|
|
@@ -616,107 +648,107 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
616
648
|
transform: "rotate(-90deg)",
|
|
617
649
|
transformOrigin: "50% 50%"
|
|
618
650
|
},
|
|
619
|
-
onMouseenter: (
|
|
651
|
+
onMouseenter: (h) => Re({
|
|
620
652
|
datapoint: a,
|
|
621
653
|
show: !0,
|
|
622
654
|
seriesIndex: l
|
|
623
655
|
}),
|
|
624
|
-
onMouseleave: (
|
|
625
|
-
onClick: (
|
|
626
|
-
}, null, 40,
|
|
627
|
-
e.value.style.chart.layout.labels.show ? (u(), i("g",
|
|
628
|
-
(u(!0), i(
|
|
629
|
-
onMouseenter: (
|
|
656
|
+
onMouseleave: (h) => Me({ datapoint: a }),
|
|
657
|
+
onClick: (h) => De({ datapoint: a })
|
|
658
|
+
}, null, 40, la))), 256)),
|
|
659
|
+
e.value.style.chart.layout.labels.show ? (u(), i("g", oa, [
|
|
660
|
+
(u(!0), i(Y, null, E(T.value, (a, l) => (u(), i("g", {
|
|
661
|
+
onMouseenter: (h) => Re({
|
|
630
662
|
datapoint: a,
|
|
631
663
|
show: !0,
|
|
632
664
|
seriesIndex: l
|
|
633
665
|
}),
|
|
634
|
-
onMouseleave: (
|
|
635
|
-
onClick: (
|
|
666
|
+
onMouseleave: (h) => Me({ datapoint: a }),
|
|
667
|
+
onClick: (h) => De({ datapoint: a })
|
|
636
668
|
}, [
|
|
637
|
-
b.value.includes(a.id) ?
|
|
669
|
+
b.value.includes(a.id) ? g("", !0) : (u(), i("text", {
|
|
638
670
|
key: 0,
|
|
639
671
|
class: "vue-ui-onion-label",
|
|
640
|
-
x: n.value.width / 2 -
|
|
672
|
+
x: n.value.width / 2 - P.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
641
673
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
642
674
|
"text-anchor": "end",
|
|
643
675
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
644
676
|
fill: e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value === l ? a.color : e.value.style.chart.layout.labels.color,
|
|
645
677
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
646
|
-
},
|
|
678
|
+
}, M(a.name ? a.name + ": " : "") + " " + M(e.value.style.chart.layout.labels.percentage.show ? s(X)({
|
|
647
679
|
v: a.percentage,
|
|
648
680
|
s: "%",
|
|
649
681
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
650
|
-
}) : "") + " " +
|
|
682
|
+
}) : "") + " " + M(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(ce)(
|
|
651
683
|
e.value.style.chart.layout.labels.value.formatter,
|
|
652
684
|
a.value,
|
|
653
|
-
s(
|
|
685
|
+
s(X)({
|
|
654
686
|
p: a.prefix || "",
|
|
655
687
|
v: a.value || 0,
|
|
656
688
|
s: a.suffix || "",
|
|
657
689
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
658
690
|
}),
|
|
659
691
|
{ datapoint: a, seriesIndex: l }
|
|
660
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(
|
|
692
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${s(ce)(
|
|
661
693
|
e.value.style.chart.layout.labels.value.formatter,
|
|
662
694
|
a.value,
|
|
663
|
-
s(
|
|
695
|
+
s(X)({
|
|
664
696
|
p: a.prefix || "",
|
|
665
697
|
v: a.value || 0,
|
|
666
698
|
s: a.suffix || "",
|
|
667
699
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
668
700
|
}),
|
|
669
701
|
{ datapoint: a, seriesIndex: l }
|
|
670
|
-
)})` : ""}`), 9,
|
|
671
|
-
], 40,
|
|
672
|
-
])) :
|
|
673
|
-
|
|
674
|
-
], 14,
|
|
675
|
-
t.$slots.watermark ? (u(), i("div",
|
|
676
|
-
|
|
677
|
-
])) :
|
|
678
|
-
|
|
702
|
+
)})` : ""}`), 9, sa))
|
|
703
|
+
], 40, na))), 256))
|
|
704
|
+
])) : g("", !0),
|
|
705
|
+
p(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
706
|
+
], 14, qt)),
|
|
707
|
+
t.$slots.watermark ? (u(), i("div", ua, [
|
|
708
|
+
p(t.$slots, "watermark", z(N({ isPrinting: s(xe) || s(Te) })), void 0, !0)
|
|
709
|
+
])) : g("", !0),
|
|
710
|
+
S("div", {
|
|
679
711
|
id: `legend-bottom-${y.value}`
|
|
680
|
-
}, null, 8,
|
|
681
|
-
|
|
712
|
+
}, null, 8, ra),
|
|
713
|
+
ke.value ? (u(), I(wt, {
|
|
682
714
|
key: 5,
|
|
683
715
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
684
716
|
}, [
|
|
685
|
-
|
|
717
|
+
S("div", {
|
|
686
718
|
ref_key: "chartLegend",
|
|
687
|
-
ref:
|
|
719
|
+
ref: pe
|
|
688
720
|
}, [
|
|
689
|
-
e.value.style.chart.legend.show ? (u(),
|
|
690
|
-
key: `legend_${
|
|
691
|
-
legendSet:
|
|
692
|
-
config:
|
|
693
|
-
onClickMarker: o[0] || (o[0] = ({ legend: a }) =>
|
|
721
|
+
e.value.style.chart.legend.show ? (u(), I(Gt, {
|
|
722
|
+
key: `legend_${be.value}`,
|
|
723
|
+
legendSet: f.value,
|
|
724
|
+
config: dt.value,
|
|
725
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => Pe(a.id))
|
|
694
726
|
}, {
|
|
695
|
-
item:
|
|
696
|
-
s(k) ?
|
|
727
|
+
item: d(({ legend: a }) => [
|
|
728
|
+
s(k) ? g("", !0) : (u(), i("div", {
|
|
697
729
|
key: 0,
|
|
698
730
|
"data-cy-legend-item": "",
|
|
699
731
|
onClick: (l) => a.segregate(),
|
|
700
|
-
style:
|
|
701
|
-
},
|
|
732
|
+
style: D(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
|
|
733
|
+
}, M(a.name ? a.name + ": " : "") + " " + M((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, ia))
|
|
702
734
|
]),
|
|
703
735
|
_: 1
|
|
704
|
-
}, 8, ["legendSet", "config"])) :
|
|
736
|
+
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
705
737
|
key: 1,
|
|
706
|
-
legend:
|
|
738
|
+
legend: f.value
|
|
707
739
|
}, void 0, !0)
|
|
708
740
|
], 512)
|
|
709
|
-
], 8, ["to"])) :
|
|
741
|
+
], 8, ["to"])) : g("", !0),
|
|
710
742
|
t.$slots.source ? (u(), i("div", {
|
|
711
743
|
key: 6,
|
|
712
744
|
ref_key: "source",
|
|
713
|
-
ref:
|
|
745
|
+
ref: fe,
|
|
714
746
|
dir: "auto"
|
|
715
747
|
}, [
|
|
716
|
-
|
|
717
|
-
], 512)) :
|
|
718
|
-
|
|
719
|
-
show: m.value.showTooltip &&
|
|
748
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
749
|
+
], 512)) : g("", !0),
|
|
750
|
+
re(s(qe), {
|
|
751
|
+
show: m.value.showTooltip && j.value,
|
|
720
752
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
721
753
|
color: e.value.style.chart.tooltip.color,
|
|
722
754
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -726,62 +758,76 @@ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
726
758
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
727
759
|
position: e.value.style.chart.tooltip.position,
|
|
728
760
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
729
|
-
parent:
|
|
730
|
-
content:
|
|
731
|
-
isFullscreen:
|
|
732
|
-
isCustom: s(
|
|
761
|
+
parent: $.value,
|
|
762
|
+
content: q.value,
|
|
763
|
+
isFullscreen: F.value,
|
|
764
|
+
isCustom: s(Xe)(e.value.style.chart.tooltip.customFormat),
|
|
733
765
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
734
766
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
735
767
|
}, {
|
|
736
|
-
"tooltip-before":
|
|
737
|
-
|
|
768
|
+
"tooltip-before": d(() => [
|
|
769
|
+
p(t.$slots, "tooltip-before", z(N({ ...oe.value })), void 0, !0)
|
|
738
770
|
]),
|
|
739
|
-
"tooltip-after":
|
|
740
|
-
|
|
771
|
+
"tooltip-after": d(() => [
|
|
772
|
+
p(t.$slots, "tooltip-after", z(N({ ...oe.value })), void 0, !0)
|
|
741
773
|
]),
|
|
742
774
|
_: 3
|
|
743
775
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}, {
|
|
760
|
-
content: g(() => [
|
|
761
|
-
(u(), A(s(He), {
|
|
762
|
-
key: `table_${pe.value}`,
|
|
763
|
-
colNames: E.value.colNames,
|
|
764
|
-
head: E.value.head,
|
|
765
|
-
body: E.value.body,
|
|
766
|
-
config: E.value.config,
|
|
767
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
768
|
-
onClose: o[1] || (o[1] = (a) => m.value.showTable = !1)
|
|
776
|
+
ve.value ? (u(), I(Ct(V.value.component), $t({ key: 7 }, V.value.props, {
|
|
777
|
+
ref_key: "tableUnit",
|
|
778
|
+
ref: B,
|
|
779
|
+
onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
|
|
780
|
+
}), Le({
|
|
781
|
+
content: d(() => [
|
|
782
|
+
(u(), I(s(Qe), {
|
|
783
|
+
key: `table_${ye.value}`,
|
|
784
|
+
colNames: G.value.colNames,
|
|
785
|
+
head: G.value.head,
|
|
786
|
+
body: G.value.body,
|
|
787
|
+
config: G.value.config,
|
|
788
|
+
title: e.value.table.useDialog ? "" : V.value.title,
|
|
789
|
+
withCloseButton: !e.value.table.useDialog,
|
|
790
|
+
onClose: o[2] || (o[2] = (a) => m.value.showTable = !1)
|
|
769
791
|
}, {
|
|
770
|
-
th:
|
|
771
|
-
|
|
792
|
+
th: d(({ th: a }) => [
|
|
793
|
+
Ve(M(a), 1)
|
|
772
794
|
]),
|
|
773
|
-
td:
|
|
774
|
-
|
|
795
|
+
td: d(({ td: a }) => [
|
|
796
|
+
S("div", { innerHTML: a }, null, 8, ca)
|
|
775
797
|
]),
|
|
776
798
|
_: 1
|
|
777
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
799
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
778
800
|
]),
|
|
779
|
-
_:
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
|
|
801
|
+
_: 2
|
|
802
|
+
}, [
|
|
803
|
+
e.value.table.useDialog ? {
|
|
804
|
+
name: "title",
|
|
805
|
+
fn: d(() => [
|
|
806
|
+
Ve(M(V.value.title), 1)
|
|
807
|
+
]),
|
|
808
|
+
key: "0"
|
|
809
|
+
} : void 0,
|
|
810
|
+
e.value.table.useDialog ? {
|
|
811
|
+
name: "actions",
|
|
812
|
+
fn: d(() => [
|
|
813
|
+
S("button", {
|
|
814
|
+
tabindex: "0",
|
|
815
|
+
class: "vue-ui-user-options-button",
|
|
816
|
+
onClick: o[1] || (o[1] = (a) => le(e.value.userOptions.callbacks.csv))
|
|
817
|
+
}, [
|
|
818
|
+
re(s(Je), {
|
|
819
|
+
name: "excel",
|
|
820
|
+
stroke: V.value.props.color
|
|
821
|
+
}, null, 8, ["stroke"])
|
|
822
|
+
])
|
|
823
|
+
]),
|
|
824
|
+
key: "1"
|
|
825
|
+
} : void 0
|
|
826
|
+
]), 1040)) : g("", !0),
|
|
827
|
+
s(k) ? (u(), I(Bt, { key: 8 })) : g("", !0)
|
|
828
|
+
], 46, Wt));
|
|
783
829
|
}
|
|
784
|
-
},
|
|
830
|
+
}, Ta = /* @__PURE__ */ Ht(va, [["__scopeId", "data-v-3aead0b6"]]);
|
|
785
831
|
export {
|
|
786
|
-
|
|
832
|
+
Ta as default
|
|
787
833
|
};
|