vue-data-ui 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as P, computed as v, ref as r, toRefs as It, watch as E, shallowRef as Ue, onMounted as Pt, onBeforeUnmount as _t, createElementBlock as d, openBlock as u, unref as s, normalizeStyle as R, normalizeClass as q, createBlock as _, createCommentVNode as f, createElementVNode as F, createVNode as ce, withCtx as i, renderSlot as c, normalizeProps as b, guardReactiveProps as k, createSlots as Ee, Fragment as Y, renderList as X, toDisplayString as z, Teleport as Ft, resolveDynamicComponent as Dt, mergeProps as Mt, createTextVNode as Ye, nextTick as Xe } from "vue";
|
|
2
2
|
import { c as Rt, t as Lt, b as zt, p as Ge, e as Bt, o as He, f as ve, h as Nt, d as B, X as Vt, a as de, G as We, P as Ut, Q as Et, H as Yt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Xt, u as Gt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ht, a as je } from "./useNestedProp-
|
|
4
|
+
import { u as Ht, a as je } from "./useNestedProp-CReNavA0.js";
|
|
5
5
|
import { u as Wt, B as jt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as qt } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as Qt } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,14 +9,14 @@ import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as Zt } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
11
|
import ea from "./img-BecE5qXd.js";
|
|
12
|
-
import ta from "./Title-
|
|
12
|
+
import ta from "./Title-BzH_LEA3.js";
|
|
13
13
|
import aa from "./Legend-G6GMcdAc.js";
|
|
14
14
|
import { t as la } from "./themes-AUNCOb2G.js";
|
|
15
15
|
import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ca = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], va = ["id"], da = ["stdDeviation"], ha = ["filter"], ga = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], pa = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], fa = { key: 2 }, ma = ["onMouseenter", "onMouseleave", "onClick"], ya = ["x", "y", "font-size", "fill", "font-weight"], ba = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
}, ka = ["id"], wa = ["onClick"],
|
|
19
|
+
}, ka = ["id"], wa = ["onClick"], $a = ["innerHTML"], Ca = {
|
|
20
20
|
__name: "vue-ui-onion",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -34,8 +34,8 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(qe, { expose: Qe, emit: Je }) {
|
|
37
|
-
const Ke =
|
|
38
|
-
...
|
|
37
|
+
const Ke = P(() => import("./Tooltip-oWCO1HKy.js")), Ze = P(() => import("./BaseIcon-BmMbm4d0.js")), et = P(() => import("./vue-ui-accordion-BmFTVF1a.js")), tt = P(() => import("./DataTable-BT7VF2ua.js")), at = P(() => import("./UserOptions-CGnQt6Fd.js")), lt = P(() => import("./PenAndPaper-SZQIAgkg.js")), ot = P(() => import("./PackageVersion-Y7t79Jtq.js")), nt = P(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_onion: st } = Ht(), T = qe, he = v(() => !!T.dataset && T.dataset.length), w = r(Rt()), ut = r(null), ge = r(0), Q = r(!1), J = r(""), m = r([]), x = r(null), pe = r(null), fe = r(null), me = r(null), ye = r(null), be = r(0), ke = r(0), we = r(0), S = r(!1), $e = r(!1), N = r(null), e = r(ee()), { loading: $, FINAL_DATASET: Ce, manualLoading: K } = Wt({
|
|
38
|
+
...It(T),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: ee,
|
|
41
41
|
callback: () => {
|
|
@@ -73,25 +73,25 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
73
73
|
}), { userOptionsVisible: Z, setUserOptionsVisibility: Te, keepUserOptionState: xe } = Jt({ config: e.value }), { svgRef: G } = Kt({ config: e.value.style.chart.title });
|
|
74
74
|
function ee() {
|
|
75
75
|
const t = je({
|
|
76
|
-
userConfig:
|
|
76
|
+
userConfig: T.config,
|
|
77
77
|
defaultConfig: st
|
|
78
78
|
});
|
|
79
79
|
return t.theme ? {
|
|
80
80
|
...je({
|
|
81
|
-
userConfig: la.vue_ui_onion[t.theme] ||
|
|
81
|
+
userConfig: la.vue_ui_onion[t.theme] || T.config,
|
|
82
82
|
defaultConfig: t
|
|
83
83
|
}),
|
|
84
84
|
customPalette: zt[t.theme] || Ge
|
|
85
85
|
} : t;
|
|
86
86
|
}
|
|
87
|
-
E(() =>
|
|
88
|
-
|
|
87
|
+
E(() => T.config, (t) => {
|
|
88
|
+
$.value || (e.value = ee()), Z.value = !e.value.userOptions.showOnChartHover, _e(), be.value += 1, ke.value += 1, we.value += 1, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
89
89
|
}, { deep: !0 });
|
|
90
|
-
const { isPrinting: Se, isImaging: Oe, generatePdf: Ae, generateImage:
|
|
91
|
-
elementId: `vue-ui-onion_${
|
|
90
|
+
const { isPrinting: Se, isImaging: Oe, generatePdf: Ae, generateImage: Ie } = qt({
|
|
91
|
+
elementId: `vue-ui-onion_${w.value}`,
|
|
92
92
|
fileName: e.value.style.chart.title.text || "vue-ui-onion",
|
|
93
93
|
options: e.value.userOptions.print
|
|
94
|
-
}), rt =
|
|
94
|
+
}), rt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), it = v(() => Bt(e.value.customPalette)), y = r({
|
|
95
95
|
showTable: e.value.table.show,
|
|
96
96
|
showTooltip: e.value.style.chart.tooltip.show
|
|
97
97
|
});
|
|
@@ -111,31 +111,31 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
111
111
|
bottom: 64
|
|
112
112
|
},
|
|
113
113
|
minRadius: 64
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}), A = Ue(null), L = Ue(null);
|
|
115
|
+
Pt(() => {
|
|
116
|
+
$e.value = !0, _e();
|
|
117
117
|
});
|
|
118
|
-
const ct =
|
|
118
|
+
const ct = v({
|
|
119
119
|
get: () => e.value.style.chart.layout.labels.fontSize,
|
|
120
120
|
set: (t) => t
|
|
121
|
-
}), { autoSizeLabels:
|
|
121
|
+
}), { autoSizeLabels: Pe } = Zt({
|
|
122
122
|
svgRef: G,
|
|
123
123
|
fontSize: e.value.style.chart.layout.labels.fontSize,
|
|
124
124
|
minFontSize: e.value.style.chart.layout.labels.minFontSize,
|
|
125
125
|
sizeRef: ct,
|
|
126
126
|
labelClass: ".vue-ui-onion-label"
|
|
127
|
-
}), vt =
|
|
127
|
+
}), vt = v(() => e.value.debug);
|
|
128
128
|
let te = null;
|
|
129
|
-
function
|
|
130
|
-
if (He(
|
|
129
|
+
function _e() {
|
|
130
|
+
if (He(T.dataset) && (ve({
|
|
131
131
|
componentName: "VueUiOnion",
|
|
132
132
|
type: "dataset",
|
|
133
133
|
debug: vt.value
|
|
134
|
-
}), K.value = !0), He(
|
|
134
|
+
}), K.value = !0), He(T.dataset) || (K.value = e.value.loading), e.value.responsive) {
|
|
135
135
|
const l = Xt(() => {
|
|
136
|
-
te && clearTimeout(te),
|
|
136
|
+
te && clearTimeout(te), S.value = !0;
|
|
137
137
|
let { width: a, height: o } = Gt({
|
|
138
|
-
chart:
|
|
138
|
+
chart: x.value,
|
|
139
139
|
title: e.value.style.chart.title.text ? pe.value : null,
|
|
140
140
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
141
141
|
source: me.value,
|
|
@@ -143,18 +143,18 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
143
143
|
});
|
|
144
144
|
o -= 12, requestAnimationFrame(async () => {
|
|
145
145
|
n.value.width = a, n.value.height = o, n.value.padding.top = Math.max(a, o) * 0.125, n.value.padding.right = Math.max(a, o) * 0.125, n.value.padding.bottom = Math.max(a, o) * 0.125, n.value.padding.left = Math.max(a, o) * 0.125, n.value.minRadius = Math.min(a, o) * 0.125, te = setTimeout(() => {
|
|
146
|
-
|
|
146
|
+
S.value = !1, Pe();
|
|
147
147
|
}, 0);
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
A.value && (L.value && A.value.unobserve(L.value), A.value.disconnect()), A.value = new ResizeObserver(l), L.value = x.value.parentNode, A.value.observe(L.value);
|
|
151
151
|
}
|
|
152
|
-
requestAnimationFrame(
|
|
152
|
+
requestAnimationFrame(Pe);
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
_t(() => {
|
|
155
|
+
A.value && (L.value && A.value.unobserve(L.value), A.value.disconnect());
|
|
156
156
|
});
|
|
157
|
-
const
|
|
157
|
+
const g = v(() => ({
|
|
158
158
|
top: n.value.padding.top,
|
|
159
159
|
left: n.value.padding.left,
|
|
160
160
|
right: n.value.width - n.value.padding.right,
|
|
@@ -165,7 +165,7 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
165
165
|
height: n.value.height - n.value.padding.bottom - n.value.padding.top,
|
|
166
166
|
minRadius: n.value.minRadius,
|
|
167
167
|
maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
|
|
168
|
-
})),
|
|
168
|
+
})), p = v(() => (Ce.value.forEach((t, l) => {
|
|
169
169
|
[null, void 0].includes(t.name) && ve({
|
|
170
170
|
componentName: "VueUiOnion",
|
|
171
171
|
type: "datasetSerieAttribute",
|
|
@@ -177,8 +177,8 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
177
177
|
property: "percentage",
|
|
178
178
|
index: l
|
|
179
179
|
});
|
|
180
|
-
}),
|
|
181
|
-
const a = `onion_serie_${l}_${
|
|
180
|
+
}), Ce.value.map((t, l) => {
|
|
181
|
+
const a = `onion_serie_${l}_${w.value}`;
|
|
182
182
|
return {
|
|
183
183
|
...t,
|
|
184
184
|
percentage: t.percentage || 0,
|
|
@@ -191,49 +191,49 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
191
191
|
segregate: () => H(a),
|
|
192
192
|
isSegregated: m.value.includes(a)
|
|
193
193
|
};
|
|
194
|
-
}))), ae =
|
|
194
|
+
}))), ae = v(() => p.value.map((t, l) => ({
|
|
195
195
|
...t,
|
|
196
196
|
display: `${t.name ? t.name + ": " : ""}${B({
|
|
197
197
|
v: t.percentage ?? 0,
|
|
198
198
|
s: "%",
|
|
199
199
|
r: e.value.style.chart.legend.roundingPercentage
|
|
200
200
|
})}`
|
|
201
|
-
}))), V = r(
|
|
202
|
-
E(() =>
|
|
201
|
+
}))), V = r(p.value), dt = v(() => e.value.useStartAnimation), ht = r(null), gt = v(() => Math.max(...p.value.map((t) => t.percentage))), le = r(!1);
|
|
202
|
+
E(() => p.value, Fe, { immediate: !0, deep: !0 }), E(() => T.dataset, (t) => {
|
|
203
203
|
Array.isArray(t) && t.length > 0 && (K.value = !1);
|
|
204
204
|
}, { deep: !0 });
|
|
205
205
|
function Fe() {
|
|
206
|
-
if (dt.value && !le.value &&
|
|
206
|
+
if (dt.value && !le.value && !$.value) {
|
|
207
207
|
let l = function() {
|
|
208
|
-
t >= gt.value ? (cancelAnimationFrame(ht.value), V.value =
|
|
208
|
+
t >= gt.value ? (cancelAnimationFrame(ht.value), V.value = p.value, le.value = !0) : (V.value = p.value.map((a) => ({
|
|
209
209
|
...a,
|
|
210
210
|
percentage: t < a.targetPercentage ? t : a.targetPercentage
|
|
211
211
|
})), t += 1, requestAnimationFrame(l), le.value = !0);
|
|
212
212
|
};
|
|
213
|
-
V.value =
|
|
213
|
+
V.value = p.value.map((a) => ({
|
|
214
214
|
...a,
|
|
215
215
|
percentage: 0
|
|
216
216
|
}));
|
|
217
217
|
let t = 0;
|
|
218
218
|
l();
|
|
219
219
|
} else
|
|
220
|
-
V.value =
|
|
220
|
+
V.value = p.value;
|
|
221
221
|
}
|
|
222
|
-
const pt =
|
|
222
|
+
const pt = v(() => ({
|
|
223
223
|
cy: "onion-div-legend",
|
|
224
224
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
225
225
|
color: e.value.style.chart.legend.color,
|
|
226
226
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
227
227
|
paddingBottom: 12,
|
|
228
228
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
229
|
-
})), ft =
|
|
230
|
-
const t = Math.min(
|
|
229
|
+
})), ft = v(() => p.value.filter((t) => !m.value.includes(t.id)).length), D = v(() => {
|
|
230
|
+
const t = Math.min(g.value.width, g.value.height) / 2 / p.value.length;
|
|
231
231
|
return {
|
|
232
232
|
gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
|
|
233
233
|
track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
|
|
234
234
|
};
|
|
235
|
-
}),
|
|
236
|
-
const a = (
|
|
235
|
+
}), O = v(() => V.value.filter((t) => !m.value.includes(t.id)).map((t, l) => {
|
|
236
|
+
const a = (g.value.maxRadius - D.value.track) / ft.value / 2 * (1 + l), o = g.value.centerY - a;
|
|
237
237
|
return {
|
|
238
238
|
percentage: t.percentage || 0,
|
|
239
239
|
...t,
|
|
@@ -243,17 +243,17 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
243
243
|
};
|
|
244
244
|
}));
|
|
245
245
|
function mt(t, l) {
|
|
246
|
-
const a = 2 * Math.PI * t, o = a * 0.75,
|
|
246
|
+
const a = 2 * Math.PI * t, o = a * 0.75, h = `${o} ${a}`, C = o * (1 - l / 100);
|
|
247
247
|
return {
|
|
248
248
|
bgDashArray: `${o} ${a}`,
|
|
249
249
|
bgDashOffset: 0,
|
|
250
|
-
dashArray:
|
|
251
|
-
dashOffset:
|
|
250
|
+
dashArray: h,
|
|
251
|
+
dashOffset: C,
|
|
252
252
|
fullOffset: 0,
|
|
253
253
|
active: `
|
|
254
|
-
M ${
|
|
254
|
+
M ${g.value.centerX},${g.value.centerY - t}
|
|
255
255
|
A ${t},${t} 0 1 1
|
|
256
|
-
${
|
|
256
|
+
${g.value.centerX + t * Math.cos(Math.PI * 3 / 4)},${g.value.centerY + t * Math.sin(Math.PI * 3 / 4)}
|
|
257
257
|
`.trim()
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -262,15 +262,15 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
262
262
|
if (m.value.includes(t))
|
|
263
263
|
m.value = m.value.filter((l) => l !== t);
|
|
264
264
|
else {
|
|
265
|
-
if (m.value.length ===
|
|
265
|
+
if (m.value.length === p.value.length - 1) return;
|
|
266
266
|
m.value.push(t);
|
|
267
267
|
}
|
|
268
|
-
yt("selectLegend",
|
|
268
|
+
yt("selectLegend", O.value);
|
|
269
269
|
}
|
|
270
270
|
function De(t) {
|
|
271
|
-
if (!
|
|
271
|
+
if (!p.value.length)
|
|
272
272
|
return e.value.debug && console.warn("VueUiOnion - There are no series to show."), null;
|
|
273
|
-
const l =
|
|
273
|
+
const l = p.value.find((a) => a.name === t);
|
|
274
274
|
return l || (e.value.debug && console.warn(`VueUiOnion - Series name not found "${t}"`), null);
|
|
275
275
|
}
|
|
276
276
|
function bt(t) {
|
|
@@ -282,17 +282,17 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
282
282
|
l !== null && (m.value.includes(l.id) || H(l.id));
|
|
283
283
|
}
|
|
284
284
|
function wt() {
|
|
285
|
-
return
|
|
285
|
+
return O.value;
|
|
286
286
|
}
|
|
287
|
-
const oe =
|
|
288
|
-
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l =
|
|
287
|
+
const oe = v(() => {
|
|
288
|
+
const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], l = O.value.map((a) => [
|
|
289
289
|
a.name,
|
|
290
290
|
a.percentage,
|
|
291
291
|
a.value
|
|
292
292
|
]);
|
|
293
293
|
return { head: t, body: l };
|
|
294
|
-
}), W =
|
|
295
|
-
const t = oe.value.head, l =
|
|
294
|
+
}), W = v(() => {
|
|
295
|
+
const t = oe.value.head, l = O.value.map((o) => [
|
|
296
296
|
`<span style="color:${o.color}">⬤</span> ${o.name}`,
|
|
297
297
|
`${Number(o.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
298
298
|
`${o.prefix || ""}${[null, void 0, NaN, "NaN"].includes(o.value) ? "-" : o.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${o.suffix || ""}`
|
|
@@ -313,47 +313,47 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
313
313
|
});
|
|
314
314
|
function ne(t = null) {
|
|
315
315
|
Xe(() => {
|
|
316
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = oe.value.head, o = oe.value.body,
|
|
317
|
-
t ? t(
|
|
316
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = oe.value.head, o = oe.value.body, h = l.concat([a]).concat(o), C = Ut(h);
|
|
317
|
+
t ? t(C) : Et({ csvContent: C, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const I = r(void 0), M = r(!1);
|
|
321
321
|
function Me(t) {
|
|
322
|
-
|
|
322
|
+
M.value = t, ge.value += 1;
|
|
323
323
|
}
|
|
324
324
|
function Re({ datapoint: t }) {
|
|
325
325
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
326
326
|
}
|
|
327
327
|
function Le({ datapoint: t }) {
|
|
328
|
-
|
|
328
|
+
I.value = void 0, Q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
329
329
|
}
|
|
330
330
|
const se = r(null);
|
|
331
331
|
function ze({ datapoint: t, seriesIndex: l, show: a = !0 }) {
|
|
332
332
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
333
333
|
const o = t.absoluteIndex;
|
|
334
|
-
|
|
334
|
+
I.value = l, se.value = {
|
|
335
335
|
datapoint: t,
|
|
336
336
|
seriesIndex: o,
|
|
337
|
-
series:
|
|
337
|
+
series: p.value,
|
|
338
338
|
config: e.value
|
|
339
339
|
}, Q.value = a;
|
|
340
|
-
let
|
|
341
|
-
const
|
|
342
|
-
if (We(
|
|
340
|
+
let h = "";
|
|
341
|
+
const C = e.value.style.chart.tooltip.customFormat;
|
|
342
|
+
if (We(C) && Yt(() => C({
|
|
343
343
|
seriesIndex: o,
|
|
344
344
|
datapoint: t,
|
|
345
|
-
series:
|
|
345
|
+
series: p.value,
|
|
346
346
|
config: e.value
|
|
347
347
|
})))
|
|
348
|
-
J.value =
|
|
348
|
+
J.value = C({
|
|
349
349
|
seriesIndex: o,
|
|
350
350
|
datapoint: t,
|
|
351
|
-
series:
|
|
351
|
+
series: p.value,
|
|
352
352
|
config: e.value
|
|
353
353
|
});
|
|
354
354
|
else {
|
|
355
355
|
const re = e.value.style.chart.tooltip.showPercentage, ie = e.value.style.chart.tooltip.showValue;
|
|
356
|
-
|
|
356
|
+
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>${re ? B({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${re && ie ? "(" : ""}${ie ? de(
|
|
357
357
|
e.value.style.chart.layout.labels.value.formatter,
|
|
358
358
|
t.value,
|
|
359
359
|
B({
|
|
@@ -363,7 +363,7 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
363
363
|
r: e.value.style.chart.tooltip.roundingValue
|
|
364
364
|
}),
|
|
365
365
|
{ datapoint: t, seriesIndex: l }
|
|
366
|
-
) : ""}${re && ie ? ")" : ""}</div>`, J.value = `<div>${
|
|
366
|
+
) : ""}${re && ie ? ")" : ""}</div>`, J.value = `<div>${h}</div>`;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
function Be() {
|
|
@@ -376,19 +376,19 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
376
376
|
function ue() {
|
|
377
377
|
j.value = !j.value;
|
|
378
378
|
}
|
|
379
|
-
async function
|
|
380
|
-
if (
|
|
381
|
-
const { width: l, height: a } =
|
|
379
|
+
async function $t({ scale: t = 2 } = {}) {
|
|
380
|
+
if (!x.value) return;
|
|
381
|
+
const { width: l, height: a } = x.value.getBoundingClientRect(), o = l / a, { imageUri: h, base64: C } = await ea({ domElement: x.value, base64: !0, img: !0, scale: t });
|
|
382
382
|
return {
|
|
383
|
-
imageUri:
|
|
384
|
-
base64:
|
|
383
|
+
imageUri: h,
|
|
384
|
+
base64: C,
|
|
385
385
|
title: e.value.style.chart.title.text,
|
|
386
386
|
width: l,
|
|
387
387
|
height: a,
|
|
388
388
|
aspectRatio: o
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
const U =
|
|
391
|
+
const U = v(() => {
|
|
392
392
|
const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
|
|
393
393
|
return {
|
|
394
394
|
component: t ? nt : et,
|
|
@@ -398,8 +398,8 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
398
398
|
color: e.value.table.th.color,
|
|
399
399
|
headerColor: e.value.table.th.color,
|
|
400
400
|
headerBg: e.value.table.th.backgroundColor,
|
|
401
|
-
isFullscreen:
|
|
402
|
-
fullscreenParent:
|
|
401
|
+
isFullscreen: M.value,
|
|
402
|
+
fullscreenParent: x.value,
|
|
403
403
|
forcedWidth: Math.min(600, window.innerWidth * 0.8)
|
|
404
404
|
} : {
|
|
405
405
|
hideDetails: !0,
|
|
@@ -421,29 +421,29 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
421
421
|
E(() => y.value.showTable, (t) => {
|
|
422
422
|
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
423
423
|
});
|
|
424
|
-
const
|
|
424
|
+
const Ct = v(() => ae.value.map((t) => ({
|
|
425
425
|
...t,
|
|
426
426
|
name: t.display
|
|
427
|
-
}))), Tt =
|
|
427
|
+
}))), Tt = v(() => e.value.style.chart.backgroundColor), xt = v(() => e.value.style.chart.legend), St = v(() => e.value.style.chart.title), { exportSvg: Ot, getSvg: At } = Qt({
|
|
428
428
|
svg: G,
|
|
429
429
|
title: St,
|
|
430
430
|
legend: xt,
|
|
431
|
-
legendItems:
|
|
431
|
+
legendItems: Ct,
|
|
432
432
|
backgroundColor: Tt
|
|
433
433
|
});
|
|
434
434
|
async function Ve({ isCb: t }) {
|
|
435
435
|
if (t) {
|
|
436
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
437
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
436
|
+
const { blob: l, url: a, text: o, dataUrl: h } = await At();
|
|
437
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: h });
|
|
438
438
|
} else
|
|
439
439
|
Ot();
|
|
440
440
|
}
|
|
441
441
|
return Qe({
|
|
442
442
|
getData: wt,
|
|
443
|
-
getImage:
|
|
443
|
+
getImage: $t,
|
|
444
444
|
generatePdf: Ae,
|
|
445
445
|
generateCsv: ne,
|
|
446
|
-
generateImage:
|
|
446
|
+
generateImage: Ie,
|
|
447
447
|
generateSvg: Ve,
|
|
448
448
|
hideSeries: kt,
|
|
449
449
|
showSeries: bt,
|
|
@@ -451,12 +451,12 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
451
451
|
toggleTooltip: Ne,
|
|
452
452
|
toggleAnnotator: ue,
|
|
453
453
|
toggleFullscreen: Me
|
|
454
|
-
}), (t, l) => (u(),
|
|
455
|
-
class: q(`vue-data-ui-component vue-ui-onion ${
|
|
454
|
+
}), (t, l) => (u(), d("div", {
|
|
455
|
+
class: q(`vue-data-ui-component vue-ui-onion ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
456
456
|
ref_key: "onionChart",
|
|
457
|
-
ref:
|
|
458
|
-
id: `vue-ui-onion_${
|
|
459
|
-
style:
|
|
457
|
+
ref: x,
|
|
458
|
+
id: `vue-ui-onion_${w.value}`,
|
|
459
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
460
460
|
onMouseenter: l[4] || (l[4] = () => s(Te)(!0)),
|
|
461
461
|
onMouseleave: l[5] || (l[5] = () => s(Te)(!1))
|
|
462
462
|
}, [
|
|
@@ -467,15 +467,35 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
467
467
|
color: e.value.style.chart.color,
|
|
468
468
|
active: j.value,
|
|
469
469
|
onClose: ue
|
|
470
|
-
},
|
|
471
|
-
|
|
470
|
+
}, {
|
|
471
|
+
"annotator-action-close": i(() => [
|
|
472
|
+
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
473
|
+
]),
|
|
474
|
+
"annotator-action-color": i(({ color: a }) => [
|
|
475
|
+
c(t.$slots, "annotator-action-color", b(k({ color: a })), void 0, !0)
|
|
476
|
+
]),
|
|
477
|
+
"annotator-action-draw": i(({ mode: a }) => [
|
|
478
|
+
c(t.$slots, "annotator-action-draw", b(k({ mode: a })), void 0, !0)
|
|
479
|
+
]),
|
|
480
|
+
"annotator-action-undo": i(({ disabled: a }) => [
|
|
481
|
+
c(t.$slots, "annotator-action-undo", b(k({ disabled: a })), void 0, !0)
|
|
482
|
+
]),
|
|
483
|
+
"annotator-action-redo": i(({ disabled: a }) => [
|
|
484
|
+
c(t.$slots, "annotator-action-redo", b(k({ disabled: a })), void 0, !0)
|
|
485
|
+
]),
|
|
486
|
+
"annotator-action-delete": i(({ disabled: a }) => [
|
|
487
|
+
c(t.$slots, "annotator-action-delete", b(k({ disabled: a })), void 0, !0)
|
|
488
|
+
]),
|
|
489
|
+
_: 3
|
|
490
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
491
|
+
rt.value ? (u(), d("div", {
|
|
472
492
|
key: 1,
|
|
473
493
|
ref_key: "noTitle",
|
|
474
494
|
ref: ye,
|
|
475
495
|
class: "vue-data-ui-no-title-space",
|
|
476
496
|
style: "height:36px; width: 100%;background:transparent"
|
|
477
497
|
}, null, 512)) : f("", !0),
|
|
478
|
-
e.value.style.chart.title.text ? (u(),
|
|
498
|
+
e.value.style.chart.title.text ? (u(), d("div", {
|
|
479
499
|
key: 2,
|
|
480
500
|
ref_key: "chartTitle",
|
|
481
501
|
ref: pe,
|
|
@@ -495,8 +515,8 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
495
515
|
}
|
|
496
516
|
}, null, 8, ["config"]))
|
|
497
517
|
], 512)) : f("", !0),
|
|
498
|
-
|
|
499
|
-
id: `legend-top-${
|
|
518
|
+
F("div", {
|
|
519
|
+
id: `legend-top-${w.value}`
|
|
500
520
|
}, null, 8, sa),
|
|
501
521
|
e.value.userOptions.show && he.value && (s(xe) || s(Z)) ? (u(), _(s(at), {
|
|
502
522
|
ref_key: "details",
|
|
@@ -506,7 +526,7 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
506
526
|
color: e.value.style.chart.color,
|
|
507
527
|
isImaging: s(Oe),
|
|
508
528
|
isPrinting: s(Se),
|
|
509
|
-
uid:
|
|
529
|
+
uid: w.value,
|
|
510
530
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
511
531
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
512
532
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -514,10 +534,10 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
514
534
|
hasXls: e.value.userOptions.buttons.csv,
|
|
515
535
|
hasTable: e.value.userOptions.buttons.table,
|
|
516
536
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
517
|
-
isFullscreen:
|
|
537
|
+
isFullscreen: M.value,
|
|
518
538
|
isTooltip: y.value.showTooltip,
|
|
519
539
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
520
|
-
chartElement:
|
|
540
|
+
chartElement: x.value,
|
|
521
541
|
position: e.value.userOptions.position,
|
|
522
542
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
523
543
|
isAnnotation: j.value,
|
|
@@ -527,89 +547,89 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
527
547
|
onToggleFullscreen: Me,
|
|
528
548
|
onGeneratePdf: s(Ae),
|
|
529
549
|
onGenerateCsv: ne,
|
|
530
|
-
onGenerateImage: s(
|
|
550
|
+
onGenerateImage: s(Ie),
|
|
531
551
|
onGenerateSvg: Ve,
|
|
532
552
|
onToggleTable: Be,
|
|
533
553
|
onToggleTooltip: Ne,
|
|
534
554
|
onToggleAnnotator: ue,
|
|
535
|
-
style:
|
|
555
|
+
style: R({
|
|
536
556
|
visibility: s(xe) ? s(Z) ? "visible" : "hidden" : "visible"
|
|
537
557
|
})
|
|
538
558
|
}, Ee({ _: 2 }, [
|
|
539
559
|
t.$slots.menuIcon ? {
|
|
540
560
|
name: "menuIcon",
|
|
541
|
-
fn:
|
|
542
|
-
|
|
561
|
+
fn: i(({ isOpen: a, color: o }) => [
|
|
562
|
+
c(t.$slots, "menuIcon", b(k({ isOpen: a, color: o })), void 0, !0)
|
|
543
563
|
]),
|
|
544
564
|
key: "0"
|
|
545
565
|
} : void 0,
|
|
546
566
|
t.$slots.optionTooltip ? {
|
|
547
567
|
name: "optionTooltip",
|
|
548
|
-
fn:
|
|
549
|
-
|
|
568
|
+
fn: i(() => [
|
|
569
|
+
c(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
550
570
|
]),
|
|
551
571
|
key: "1"
|
|
552
572
|
} : void 0,
|
|
553
573
|
t.$slots.optionPdf ? {
|
|
554
574
|
name: "optionPdf",
|
|
555
|
-
fn:
|
|
556
|
-
|
|
575
|
+
fn: i(() => [
|
|
576
|
+
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
557
577
|
]),
|
|
558
578
|
key: "2"
|
|
559
579
|
} : void 0,
|
|
560
580
|
t.$slots.optionCsv ? {
|
|
561
581
|
name: "optionCsv",
|
|
562
|
-
fn:
|
|
563
|
-
|
|
582
|
+
fn: i(() => [
|
|
583
|
+
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
564
584
|
]),
|
|
565
585
|
key: "3"
|
|
566
586
|
} : void 0,
|
|
567
587
|
t.$slots.optionImg ? {
|
|
568
588
|
name: "optionImg",
|
|
569
|
-
fn:
|
|
570
|
-
|
|
589
|
+
fn: i(() => [
|
|
590
|
+
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
571
591
|
]),
|
|
572
592
|
key: "4"
|
|
573
593
|
} : void 0,
|
|
574
594
|
t.$slots.optionSvg ? {
|
|
575
595
|
name: "optionSvg",
|
|
576
|
-
fn:
|
|
577
|
-
|
|
596
|
+
fn: i(() => [
|
|
597
|
+
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
578
598
|
]),
|
|
579
599
|
key: "5"
|
|
580
600
|
} : void 0,
|
|
581
601
|
t.$slots.optionTable ? {
|
|
582
602
|
name: "optionTable",
|
|
583
|
-
fn:
|
|
584
|
-
|
|
603
|
+
fn: i(() => [
|
|
604
|
+
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
585
605
|
]),
|
|
586
606
|
key: "6"
|
|
587
607
|
} : void 0,
|
|
588
608
|
t.$slots.optionFullscreen ? {
|
|
589
609
|
name: "optionFullscreen",
|
|
590
|
-
fn:
|
|
591
|
-
|
|
610
|
+
fn: i(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
611
|
+
c(t.$slots, "optionFullscreen", b(k({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
592
612
|
]),
|
|
593
613
|
key: "7"
|
|
594
614
|
} : void 0,
|
|
595
615
|
t.$slots.optionAnnotator ? {
|
|
596
616
|
name: "optionAnnotator",
|
|
597
|
-
fn:
|
|
598
|
-
|
|
617
|
+
fn: i(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
618
|
+
c(t.$slots, "optionAnnotator", b(k({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
599
619
|
]),
|
|
600
620
|
key: "8"
|
|
601
621
|
} : void 0
|
|
602
622
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
603
|
-
(u(),
|
|
623
|
+
(u(), d("svg", {
|
|
604
624
|
ref_key: "svgRef",
|
|
605
625
|
ref: G,
|
|
606
626
|
xmlns: s(Vt),
|
|
607
|
-
class: q({ "vue-data-ui-fullscreen--on":
|
|
627
|
+
class: q({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value, resizing: S.value }),
|
|
608
628
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
609
|
-
style:
|
|
629
|
+
style: R(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
610
630
|
}, [
|
|
611
631
|
ce(s(ot)),
|
|
612
|
-
t.$slots["chart-background"] ? (u(),
|
|
632
|
+
t.$slots["chart-background"] ? (u(), d("foreignObject", {
|
|
613
633
|
key: 0,
|
|
614
634
|
x: 0,
|
|
615
635
|
y: 0,
|
|
@@ -619,86 +639,86 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
619
639
|
pointerEvents: "none"
|
|
620
640
|
}
|
|
621
641
|
}, [
|
|
622
|
-
|
|
642
|
+
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
623
643
|
], 8, ra)) : f("", !0),
|
|
624
|
-
(u(!0),
|
|
625
|
-
cx:
|
|
626
|
-
cy:
|
|
644
|
+
(u(!0), d(Y, null, X(O.value, (a, o) => (u(), d("circle", {
|
|
645
|
+
cx: g.value.centerX,
|
|
646
|
+
cy: g.value.centerY,
|
|
627
647
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
628
648
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
629
|
-
"stroke-width":
|
|
649
|
+
"stroke-width": D.value.gutter,
|
|
630
650
|
fill: "none",
|
|
631
651
|
"stroke-dasharray": a.path.bgDashArray,
|
|
632
652
|
"stroke-dashoffset": a.path.fullOffset,
|
|
633
653
|
"stroke-linecap": "round",
|
|
634
|
-
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(
|
|
635
|
-
style:
|
|
654
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== o }),
|
|
655
|
+
style: R({
|
|
636
656
|
transform: "rotate(-90deg)",
|
|
637
657
|
transformOrigin: "50% 50%",
|
|
638
|
-
transition:
|
|
639
|
-
animation:
|
|
658
|
+
transition: S.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
659
|
+
animation: S.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
640
660
|
})
|
|
641
661
|
}, null, 14, ia))), 256)),
|
|
642
|
-
(u(!0),
|
|
643
|
-
cx:
|
|
644
|
-
cy:
|
|
662
|
+
(u(!0), d(Y, null, X(O.value, (a, o) => (u(), d("circle", {
|
|
663
|
+
cx: g.value.centerX,
|
|
664
|
+
cy: g.value.centerY,
|
|
645
665
|
r: a.radius < 0 ? 1e-4 : a.radius,
|
|
646
666
|
stroke: `${a.color}`,
|
|
647
|
-
"stroke-width":
|
|
667
|
+
"stroke-width": D.value.track,
|
|
648
668
|
fill: "none",
|
|
649
669
|
"stroke-dasharray": a.path.dashArray,
|
|
650
670
|
"stroke-dashoffset": a.path.dashOffset,
|
|
651
|
-
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(
|
|
671
|
+
class: q({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== o }),
|
|
652
672
|
"stroke-linecap": "round",
|
|
653
|
-
style:
|
|
673
|
+
style: R({
|
|
654
674
|
transform: "rotate(-90deg)",
|
|
655
675
|
transformOrigin: "50% 50%",
|
|
656
|
-
transition:
|
|
657
|
-
animation:
|
|
676
|
+
transition: S.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
677
|
+
animation: S.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
658
678
|
})
|
|
659
679
|
}, null, 14, ca))), 256)),
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
id: `blur_${
|
|
680
|
+
F("defs", null, [
|
|
681
|
+
F("filter", {
|
|
682
|
+
id: `blur_${w.value}`,
|
|
663
683
|
x: "-50%",
|
|
664
684
|
y: "-50%",
|
|
665
685
|
width: "200%",
|
|
666
686
|
height: "200%"
|
|
667
687
|
}, [
|
|
668
|
-
|
|
688
|
+
F("feGaussianBlur", {
|
|
669
689
|
in: "SourceGraphic",
|
|
670
690
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
671
691
|
}, null, 8, da)
|
|
672
692
|
], 8, va)
|
|
673
693
|
]),
|
|
674
|
-
e.value.style.chart.useGradient ? (u(),
|
|
694
|
+
e.value.style.chart.useGradient ? (u(), d("g", {
|
|
675
695
|
key: 1,
|
|
676
|
-
filter: `url(#blur_${
|
|
696
|
+
filter: `url(#blur_${w.value})`
|
|
677
697
|
}, [
|
|
678
|
-
(u(!0),
|
|
679
|
-
cx:
|
|
680
|
-
cy:
|
|
698
|
+
(u(!0), d(Y, null, X(O.value, (a, o) => (u(), d("circle", {
|
|
699
|
+
cx: g.value.centerX,
|
|
700
|
+
cy: g.value.centerY,
|
|
681
701
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
682
702
|
stroke: "white",
|
|
683
|
-
"stroke-width":
|
|
703
|
+
"stroke-width": D.value.track / 3,
|
|
684
704
|
fill: "none",
|
|
685
705
|
"stroke-linecap": "round",
|
|
686
706
|
"stroke-dasharray": a.path.dashArray,
|
|
687
707
|
"stroke-dashoffset": a.path.dashOffset,
|
|
688
|
-
style:
|
|
708
|
+
style: R({
|
|
689
709
|
transform: "rotate(-90deg)",
|
|
690
710
|
transformOrigin: "50% 50%",
|
|
691
|
-
transition:
|
|
692
|
-
animation:
|
|
711
|
+
transition: S.value || s($) ? "none" : "all 0.3s ease-in-out !important",
|
|
712
|
+
animation: S.value || s($) ? "none" : "xyAnimation 0.5s ease-in"
|
|
693
713
|
})
|
|
694
714
|
}, null, 12, ga))), 256))
|
|
695
715
|
], 8, ha)) : f("", !0),
|
|
696
|
-
(u(!0),
|
|
697
|
-
cx:
|
|
698
|
-
cy:
|
|
716
|
+
(u(!0), d(Y, null, X(O.value, (a, o) => (u(), d("circle", {
|
|
717
|
+
cx: g.value.centerX,
|
|
718
|
+
cy: g.value.centerY,
|
|
699
719
|
r: a.radius <= 0 ? 1e-4 : a.radius,
|
|
700
720
|
stroke: "transparent",
|
|
701
|
-
"stroke-width": Math.max(
|
|
721
|
+
"stroke-width": Math.max(D.value.track, D.value.gutter),
|
|
702
722
|
fill: "none",
|
|
703
723
|
"stroke-dasharray": a.path.bgDashArray,
|
|
704
724
|
"stroke-dashoffset": a.path.fullOffset,
|
|
@@ -708,32 +728,32 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
708
728
|
transform: "rotate(-90deg)",
|
|
709
729
|
transformOrigin: "50% 50%"
|
|
710
730
|
},
|
|
711
|
-
onMouseenter: (
|
|
731
|
+
onMouseenter: (h) => ze({
|
|
712
732
|
datapoint: a,
|
|
713
733
|
show: !0,
|
|
714
734
|
seriesIndex: o
|
|
715
735
|
}),
|
|
716
|
-
onMouseleave: (
|
|
717
|
-
onClick: (
|
|
736
|
+
onMouseleave: (h) => Le({ datapoint: a }),
|
|
737
|
+
onClick: (h) => Re({ datapoint: a })
|
|
718
738
|
}, null, 40, pa))), 256)),
|
|
719
|
-
e.value.style.chart.layout.labels.show ? (u(),
|
|
720
|
-
(u(!0),
|
|
721
|
-
onMouseenter: (
|
|
739
|
+
e.value.style.chart.layout.labels.show ? (u(), d("g", fa, [
|
|
740
|
+
(u(!0), d(Y, null, X(O.value, (a, o) => (u(), d("g", {
|
|
741
|
+
onMouseenter: (h) => ze({
|
|
722
742
|
datapoint: a,
|
|
723
743
|
show: !0,
|
|
724
744
|
seriesIndex: o
|
|
725
745
|
}),
|
|
726
|
-
onMouseleave: (
|
|
727
|
-
onClick: (
|
|
746
|
+
onMouseleave: (h) => Le({ datapoint: a }),
|
|
747
|
+
onClick: (h) => Re({ datapoint: a })
|
|
728
748
|
}, [
|
|
729
|
-
m.value.includes(a.id) ? f("", !0) : (u(),
|
|
749
|
+
m.value.includes(a.id) ? f("", !0) : (u(), d("text", {
|
|
730
750
|
key: 0,
|
|
731
751
|
class: "vue-ui-onion-label",
|
|
732
|
-
x: n.value.width / 2 -
|
|
752
|
+
x: n.value.width / 2 - D.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
733
753
|
y: a.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
734
754
|
"text-anchor": "end",
|
|
735
755
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
736
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
756
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value === o ? a.color : e.value.style.chart.layout.labels.color,
|
|
737
757
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
738
758
|
}, z(a.name ? a.name + ": " : "") + " " + z(e.value.style.chart.layout.labels.percentage.show ? s(B)({
|
|
739
759
|
v: a.percentage,
|
|
@@ -762,19 +782,19 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
762
782
|
)})` : ""}`), 9, ya))
|
|
763
783
|
], 40, ma))), 256))
|
|
764
784
|
])) : f("", !0),
|
|
765
|
-
|
|
785
|
+
c(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
766
786
|
], 14, ua)),
|
|
767
|
-
t.$slots.watermark ? (u(),
|
|
768
|
-
|
|
787
|
+
t.$slots.watermark ? (u(), d("div", ba, [
|
|
788
|
+
c(t.$slots, "watermark", b(k({ isPrinting: s(Se) || s(Oe) })), void 0, !0)
|
|
769
789
|
])) : f("", !0),
|
|
770
|
-
|
|
771
|
-
id: `legend-bottom-${
|
|
790
|
+
F("div", {
|
|
791
|
+
id: `legend-bottom-${w.value}`
|
|
772
792
|
}, null, 8, ka),
|
|
773
|
-
|
|
793
|
+
$e.value ? (u(), _(Ft, {
|
|
774
794
|
key: 5,
|
|
775
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
795
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
|
|
776
796
|
}, [
|
|
777
|
-
|
|
797
|
+
F("div", {
|
|
778
798
|
ref_key: "chartLegend",
|
|
779
799
|
ref: fe
|
|
780
800
|
}, [
|
|
@@ -784,28 +804,28 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
784
804
|
config: pt.value,
|
|
785
805
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => H(a.id))
|
|
786
806
|
}, {
|
|
787
|
-
item:
|
|
788
|
-
s(
|
|
807
|
+
item: i(({ legend: a }) => [
|
|
808
|
+
s($) ? f("", !0) : (u(), d("div", {
|
|
789
809
|
key: 0,
|
|
790
810
|
"data-cy-legend-item": "",
|
|
791
811
|
onClick: (o) => a.segregate(),
|
|
792
|
-
style:
|
|
812
|
+
style: R(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
|
|
793
813
|
}, z(a.display), 13, wa))
|
|
794
814
|
]),
|
|
795
815
|
_: 1
|
|
796
|
-
}, 8, ["legendSet", "config"])) :
|
|
816
|
+
}, 8, ["legendSet", "config"])) : c(t.$slots, "legend", {
|
|
797
817
|
key: 1,
|
|
798
818
|
legend: ae.value
|
|
799
819
|
}, void 0, !0)
|
|
800
820
|
], 512)
|
|
801
821
|
], 8, ["to"])) : f("", !0),
|
|
802
|
-
t.$slots.source ? (u(),
|
|
822
|
+
t.$slots.source ? (u(), d("div", {
|
|
803
823
|
key: 6,
|
|
804
824
|
ref_key: "source",
|
|
805
825
|
ref: me,
|
|
806
826
|
dir: "auto"
|
|
807
827
|
}, [
|
|
808
|
-
|
|
828
|
+
c(t.$slots, "source", {}, void 0, !0)
|
|
809
829
|
], 512)) : f("", !0),
|
|
810
830
|
ce(s(Ke), {
|
|
811
831
|
show: y.value.showTooltip && Q.value,
|
|
@@ -818,20 +838,20 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
818
838
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
819
839
|
position: e.value.style.chart.tooltip.position,
|
|
820
840
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
821
|
-
parent:
|
|
841
|
+
parent: x.value,
|
|
822
842
|
content: J.value,
|
|
823
|
-
isFullscreen:
|
|
843
|
+
isFullscreen: M.value,
|
|
824
844
|
isCustom: s(We)(e.value.style.chart.tooltip.customFormat),
|
|
825
845
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
826
846
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
827
847
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
828
848
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
829
849
|
}, {
|
|
830
|
-
"tooltip-before":
|
|
831
|
-
|
|
850
|
+
"tooltip-before": i(() => [
|
|
851
|
+
c(t.$slots, "tooltip-before", b(k({ ...se.value })), void 0, !0)
|
|
832
852
|
]),
|
|
833
|
-
"tooltip-after":
|
|
834
|
-
|
|
853
|
+
"tooltip-after": i(() => [
|
|
854
|
+
c(t.$slots, "tooltip-after", b(k({ ...se.value })), void 0, !0)
|
|
835
855
|
]),
|
|
836
856
|
_: 3
|
|
837
857
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -840,7 +860,7 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
840
860
|
ref: N,
|
|
841
861
|
onClose: l[3] || (l[3] = (a) => y.value.showTable = !1)
|
|
842
862
|
}), Ee({
|
|
843
|
-
content:
|
|
863
|
+
content: i(() => [
|
|
844
864
|
(u(), _(s(tt), {
|
|
845
865
|
key: `table_${ke.value}`,
|
|
846
866
|
colNames: W.value.colNames,
|
|
@@ -851,11 +871,11 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
851
871
|
withCloseButton: !e.value.table.useDialog,
|
|
852
872
|
onClose: l[2] || (l[2] = (a) => y.value.showTable = !1)
|
|
853
873
|
}, {
|
|
854
|
-
th:
|
|
874
|
+
th: i(({ th: a }) => [
|
|
855
875
|
Ye(z(a), 1)
|
|
856
876
|
]),
|
|
857
|
-
td:
|
|
858
|
-
|
|
877
|
+
td: i(({ td: a }) => [
|
|
878
|
+
F("div", { innerHTML: a }, null, 8, $a)
|
|
859
879
|
]),
|
|
860
880
|
_: 1
|
|
861
881
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -864,15 +884,15 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
864
884
|
}, [
|
|
865
885
|
e.value.table.useDialog ? {
|
|
866
886
|
name: "title",
|
|
867
|
-
fn:
|
|
887
|
+
fn: i(() => [
|
|
868
888
|
Ye(z(U.value.title), 1)
|
|
869
889
|
]),
|
|
870
890
|
key: "0"
|
|
871
891
|
} : void 0,
|
|
872
892
|
e.value.table.useDialog ? {
|
|
873
893
|
name: "actions",
|
|
874
|
-
fn:
|
|
875
|
-
|
|
894
|
+
fn: i(() => [
|
|
895
|
+
F("button", {
|
|
876
896
|
tabindex: "0",
|
|
877
897
|
class: "vue-ui-user-options-button",
|
|
878
898
|
onClick: l[1] || (l[1] = (a) => ne(e.value.userOptions.callbacks.csv))
|
|
@@ -886,10 +906,10 @@ const na = ["id"], sa = ["id"], ua = ["xmlns", "viewBox"], ra = ["width", "heigh
|
|
|
886
906
|
key: "1"
|
|
887
907
|
} : void 0
|
|
888
908
|
]), 1040)) : f("", !0),
|
|
889
|
-
s(
|
|
909
|
+
s($) ? (u(), _(jt, { key: 8 })) : f("", !0)
|
|
890
910
|
], 46, na));
|
|
891
911
|
}
|
|
892
|
-
}, Na = /* @__PURE__ */ oa(
|
|
912
|
+
}, Na = /* @__PURE__ */ oa(Ca, [["__scopeId", "data-v-1e413e91"]]);
|
|
893
913
|
export {
|
|
894
914
|
Na as default
|
|
895
915
|
};
|