vue-data-ui 3.1.1 → 3.1.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/dist/{Arrow-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
1
|
+
import { useCssVars as pt, defineAsyncComponent as p, computed as b, onMounted as ht, ref as r, toRefs as ft, watch as E, nextTick as U, createElementBlock as C, openBlock as u, unref as a, normalizeStyle as M, normalizeClass as _e, createBlock as w, createCommentVNode as g, createVNode as I, createSlots as Oe, withCtx as c, renderSlot as v, normalizeProps as $, guardReactiveProps as T, createElementVNode as P, Fragment as mt, renderList as gt, resolveDynamicComponent as bt, mergeProps as Ct, createTextVNode as De, toDisplayString as Ie } from "vue";
|
|
2
|
+
import { u as yt, o as At, f as kt, c as Pe, t as wt, a as $t, p as Fe, b as Tt, d as _t, Q as Ot, X as Dt, l as It, R as Pt, e as Ne, v as Ft, w as Nt, y as Lt, z as St } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { u as Bt, B as xt } from "./BaseScanner-BgWxam9d.js";
|
|
4
|
+
import { u as Rt } from "./usePrinter-DDIKRiOp.js";
|
|
5
|
+
import { u as Le } from "./useNestedProp-BSZCnuGl.js";
|
|
6
6
|
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
7
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Mt from "./img-DvuphHeJ.js";
|
|
9
|
+
import { u as zt } from "./usePanZoom-BVca3eMk.js";
|
|
10
|
+
import { _ as Ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Vt = ["id"], Gt = {
|
|
12
12
|
key: 1,
|
|
13
13
|
ref: "noTitle",
|
|
14
14
|
class: "vue-data-ui-no-title-space",
|
|
15
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
16
|
-
},
|
|
16
|
+
}, Wt = {
|
|
17
17
|
key: 2,
|
|
18
18
|
style: "width:100%;background:transparent;"
|
|
19
|
-
},
|
|
19
|
+
}, Xt = ["xmlns", "viewBox"], jt = ["width", "height"], Yt = ["id"], Zt = ["stop-color"], Qt = ["stop-color"], qt = {
|
|
20
20
|
key: 4,
|
|
21
21
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
22
|
+
}, Jt = {
|
|
23
23
|
key: 5,
|
|
24
24
|
"data-dom-to-png-ignore": "",
|
|
25
25
|
class: "reset-wrapper"
|
|
26
|
-
},
|
|
26
|
+
}, Kt = {
|
|
27
27
|
key: 6,
|
|
28
28
|
ref: "source",
|
|
29
29
|
dir: "auto"
|
|
30
|
-
},
|
|
30
|
+
}, eo = ["innerHTML"], to = {
|
|
31
31
|
__name: "vue-ui-molecule",
|
|
32
32
|
props: {
|
|
33
33
|
config: {
|
|
@@ -44,26 +44,26 @@ const Ht = ["id"], Vt = {
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectNode"],
|
|
47
|
-
setup(
|
|
48
|
-
|
|
49
|
-
"
|
|
47
|
+
setup(Se, { expose: Be, emit: xe }) {
|
|
48
|
+
pt((t) => ({
|
|
49
|
+
"924669b2": t.slicerColor
|
|
50
50
|
}));
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const Re = p(() => import("./Title-AGmmsSi_.js")), Ee = p(() => import("./Tooltip-le0yZk_t.js")), te = p(() => import("./BaseIcon-BLg8FaQ2.js")), Ue = p(() => import("./vue-ui-accordion-Cv747Pg6.js")), Me = p(() => import("./DataTable-BRN1-1ob.js")), ze = p(() => import("./PenAndPaper-TgGWddgD.js")), He = p(() => import("./UserOptions-DEFwuQIo.js")), Ve = p(() => import("./PackageVersion-Jz9FlNXl.js")), Ge = p(() => import("./RecursiveLinks-00zGWPf9.js")), We = p(() => import("./RecursiveLabels-Bgcv0pzu.js")), Xe = p(() => import("./RecursiveCircles-BcLb1aRS.js")), je = p(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_molecule: Ye } = yt(), A = Se, Ze = xe, oe = b(() => !!A.dataset && A.dataset.length);
|
|
52
|
+
ht(() => {
|
|
53
|
+
le();
|
|
54
54
|
});
|
|
55
|
-
const
|
|
56
|
-
function
|
|
57
|
-
|
|
55
|
+
const Qe = b(() => e.value.debug);
|
|
56
|
+
function le() {
|
|
57
|
+
At(A.dataset) && kt({
|
|
58
58
|
componentName: "VueUiMolecule",
|
|
59
59
|
type: "dataset",
|
|
60
|
-
debug:
|
|
60
|
+
debug: Qe.value
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
const z = r(Pe()),
|
|
64
|
-
...
|
|
63
|
+
const z = r(Pe()), H = r(!1), B = r(""), k = r(null), ae = r(0), se = r(0), ne = r(0), F = r(null), V = r(null), e = r(Y()), { loading: G, FINAL_DATASET: W } = Bt({
|
|
64
|
+
...ft(A),
|
|
65
65
|
FINAL_CONFIG: e,
|
|
66
|
-
prepareConfig:
|
|
66
|
+
prepareConfig: Y,
|
|
67
67
|
skeletonDataset: [
|
|
68
68
|
{
|
|
69
69
|
name: "_",
|
|
@@ -102,7 +102,7 @@ const Ht = ["id"], Vt = {
|
|
|
102
102
|
]
|
|
103
103
|
}
|
|
104
104
|
],
|
|
105
|
-
skeletonConfig:
|
|
105
|
+
skeletonConfig: wt({
|
|
106
106
|
defaultConfig: e.value,
|
|
107
107
|
userConfig: {
|
|
108
108
|
userOptions: { show: !1 },
|
|
@@ -116,50 +116,50 @@ const Ht = ["id"], Vt = {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
119
|
-
}), { userOptionsVisible:
|
|
120
|
-
function
|
|
121
|
-
const t =
|
|
119
|
+
}), { userOptionsVisible: X, setUserOptionsVisibility: re, keepUserOptionState: ie } = Et({ config: e.value }), { svgRef: j } = Ut({ config: e.value.style.chart.title });
|
|
120
|
+
function Y() {
|
|
121
|
+
const t = Le({
|
|
122
122
|
userConfig: A.config,
|
|
123
|
-
defaultConfig:
|
|
123
|
+
defaultConfig: Ye
|
|
124
124
|
});
|
|
125
125
|
return t.theme ? {
|
|
126
|
-
...
|
|
127
|
-
userConfig:
|
|
126
|
+
...Le({
|
|
127
|
+
userConfig: Tt.vue_ui_molecule[t.theme] || A.config,
|
|
128
128
|
defaultConfig: t
|
|
129
129
|
}),
|
|
130
|
-
customPalette:
|
|
130
|
+
customPalette: $t[t.theme] || Fe
|
|
131
131
|
} : t;
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
e.value =
|
|
133
|
+
E(() => A.config, (t) => {
|
|
134
|
+
e.value = Y(), X.value = !e.value.userOptions.showOnChartHover, le(), se.value += 1, ne.value += 1, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
135
135
|
}, { deep: !0 });
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
const ue = r(0), qe = () => {
|
|
137
|
+
ue.value += 1;
|
|
138
138
|
};
|
|
139
|
-
|
|
140
|
-
t || (await U(), h.value =
|
|
139
|
+
E([() => G.value, () => W.value], async ([t]) => {
|
|
140
|
+
t || (await U(), h.value = fe(), await U(), qe(), await U(), ut({ x: 0, y: 0, width: 400, height: 400 }), J(!1));
|
|
141
141
|
}, { flush: "post", deep: !1 });
|
|
142
|
-
const { isPrinting:
|
|
142
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: pe } = Rt({
|
|
143
143
|
elementId: `cluster_${z.value}`,
|
|
144
144
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
145
145
|
options: e.value.userOptions.print
|
|
146
|
-
}),
|
|
146
|
+
}), Je = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ke = b(() => _t(e.value.customPalette)), d = r({
|
|
147
147
|
showTable: e.value.table.show,
|
|
148
148
|
showDataLabels: !0,
|
|
149
149
|
showTooltip: e.value.style.chart.tooltip.show
|
|
150
150
|
});
|
|
151
|
-
|
|
151
|
+
E(e, () => {
|
|
152
152
|
d.value = {
|
|
153
153
|
showTable: e.value.table.show,
|
|
154
154
|
showDataLabels: !0,
|
|
155
155
|
showTooltip: e.value.style.chart.tooltip.show
|
|
156
156
|
};
|
|
157
157
|
}, { immediate: !0 });
|
|
158
|
-
function
|
|
159
|
-
return Array.isArray(t) && t.length > 0 && t[0].nodes ?
|
|
158
|
+
function he(t, l = 0) {
|
|
159
|
+
return Array.isArray(t) && t.length > 0 && t[0].nodes ? he(t[0].nodes, l + 1) : l;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
162
|
-
const t =
|
|
161
|
+
function fe() {
|
|
162
|
+
const t = he(W.value);
|
|
163
163
|
let l = 100, o = l;
|
|
164
164
|
for (let n = 0; n < t; n += 1)
|
|
165
165
|
l /= 1, o += l;
|
|
@@ -168,40 +168,40 @@ const Ht = ["id"], Vt = {
|
|
|
168
168
|
width: o
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
const h = r(
|
|
172
|
-
function
|
|
171
|
+
const h = r(fe());
|
|
172
|
+
function me(t, l = { x: -h.value.width / 2.43, y: h.value.height / 2 }, o = h.value.width / 1.1, n = 24, s = 0, i = 0, f = "#BBBBBB", K = 0) {
|
|
173
173
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
174
|
-
const
|
|
174
|
+
const dt = Pt({
|
|
175
175
|
plot: l,
|
|
176
176
|
radius: o,
|
|
177
177
|
sides: t.length,
|
|
178
178
|
rotation: s
|
|
179
179
|
});
|
|
180
|
-
return t.forEach((m,
|
|
181
|
-
const
|
|
182
|
-
let
|
|
183
|
-
return
|
|
180
|
+
return t.forEach((m, we) => {
|
|
181
|
+
const $e = dt.coordinates[we], Te = m.color ? (() => {
|
|
182
|
+
let ee = Ne(m.color);
|
|
183
|
+
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
184
184
|
})() : null;
|
|
185
|
-
let
|
|
186
|
-
|
|
185
|
+
let D;
|
|
186
|
+
Te ? D = Te : K === 0 ? D = f : K === 1 ? (D = Ke.value[i] || Fe[i] || f, i += 1) : D = f, m.polygonPath = { coordinates: [$e] }, m.circleRadius = n, m.color = D, m.uid = Pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = me(
|
|
187
187
|
m.nodes,
|
|
188
|
-
|
|
188
|
+
$e,
|
|
189
189
|
o / 2.9,
|
|
190
190
|
n / 2.2,
|
|
191
|
-
s + Math.PI *
|
|
191
|
+
s + Math.PI * we / m.nodes.length,
|
|
192
192
|
i,
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
D,
|
|
194
|
+
K + 1
|
|
195
195
|
));
|
|
196
196
|
}), t;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function et(t) {
|
|
199
199
|
const l = /* @__PURE__ */ new Set();
|
|
200
200
|
function o(s) {
|
|
201
201
|
s.forEach((i) => {
|
|
202
202
|
if (!i.color) return;
|
|
203
203
|
let f = i.color;
|
|
204
|
-
/^#?[0-9A-F]{6}$/i.test(f) || (f =
|
|
204
|
+
/^#?[0-9A-F]{6}$/i.test(f) || (f = Ne(f)), f.startsWith("#") || (f = `#${f}`), l.add(f), Array.isArray(i.nodes) && i.nodes.length && o(i.nodes);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
o(t);
|
|
@@ -211,19 +211,19 @@ const Ht = ["id"], Vt = {
|
|
|
211
211
|
n[s] = `gradient_${i}`;
|
|
212
212
|
}), n;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
const t =
|
|
216
|
-
return
|
|
217
|
-
}),
|
|
218
|
-
function
|
|
219
|
-
|
|
214
|
+
const tt = b(() => et(y.value)), y = b(() => {
|
|
215
|
+
const t = Ot(W.value);
|
|
216
|
+
return me(t);
|
|
217
|
+
}), Z = r(null);
|
|
218
|
+
function ot(t) {
|
|
219
|
+
Z.value = {
|
|
220
220
|
datapoint: t,
|
|
221
221
|
seriesIndex: -1,
|
|
222
222
|
series: y.value,
|
|
223
223
|
config: e.value
|
|
224
224
|
};
|
|
225
225
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
226
|
-
if (
|
|
226
|
+
if (Lt(l) && St(() => l({
|
|
227
227
|
seriesIndex: -1,
|
|
228
228
|
datapoint: t,
|
|
229
229
|
series: y.value,
|
|
@@ -241,11 +241,11 @@ const Ht = ["id"], Vt = {
|
|
|
241
241
|
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), B.value = `<div style="font-family:inherit">${o}</div>`;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
const x = r(null), N = r(null),
|
|
245
|
-
function ot(t) {
|
|
246
|
-
me.value = x.value, x.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: me.value || x.value, seriesIndex: -1 }), t ? (H.value = !0, tt(t), N.value = t.uid) : (H.value = !1, B.value = "", N.value = null);
|
|
247
|
-
}
|
|
244
|
+
const x = r(null), N = r(null), ge = r(null);
|
|
248
245
|
function lt(t) {
|
|
246
|
+
ge.value = x.value, x.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: ge.value || x.value, seriesIndex: -1 }), t ? (H.value = !0, ot(t), N.value = t.uid) : (H.value = !1, B.value = "", N.value = null);
|
|
247
|
+
}
|
|
248
|
+
function at(t) {
|
|
249
249
|
const l = [];
|
|
250
250
|
function o(n) {
|
|
251
251
|
n.forEach((s) => {
|
|
@@ -260,12 +260,12 @@ const Ht = ["id"], Vt = {
|
|
|
260
260
|
}
|
|
261
261
|
return o(t), l;
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const st = b(() => at(y.value)), _ = b(() => {
|
|
264
264
|
const t = [
|
|
265
265
|
e.value.table.translations.nodeName,
|
|
266
266
|
e.value.table.translations.details,
|
|
267
267
|
e.value.table.translations.ancestor
|
|
268
|
-
], l =
|
|
268
|
+
], l = st.value.map((s, i) => [
|
|
269
269
|
{
|
|
270
270
|
color: s.color,
|
|
271
271
|
name: s.name
|
|
@@ -296,44 +296,44 @@ const Ht = ["id"], Vt = {
|
|
|
296
296
|
colNames: n
|
|
297
297
|
};
|
|
298
298
|
});
|
|
299
|
-
function
|
|
299
|
+
function Q(t = null) {
|
|
300
300
|
U(() => {
|
|
301
|
-
const l = _.value.body.map((s, i) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(l), n =
|
|
302
|
-
t ? t(n) :
|
|
301
|
+
const l = _.value.body.map((s, i) => [[s[0].name], [s[1]], [s[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[..._.value.head]]].concat(l), n = Ft(o);
|
|
302
|
+
t ? t(n) : Nt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function nt() {
|
|
306
306
|
return y.value;
|
|
307
307
|
}
|
|
308
308
|
const O = r(!1);
|
|
309
|
-
function
|
|
310
|
-
O.value = t,
|
|
309
|
+
function be(t) {
|
|
310
|
+
O.value = t, ae.value += 1;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Ce() {
|
|
313
313
|
d.value.showTable = !d.value.showTable;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function ye() {
|
|
316
316
|
d.value.showDataLabels = !d.value.showDataLabels;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ae() {
|
|
319
319
|
d.value.showTooltip = !d.value.showTooltip;
|
|
320
320
|
}
|
|
321
321
|
const L = r(!1);
|
|
322
|
-
function
|
|
322
|
+
function q() {
|
|
323
323
|
L.value = !L.value;
|
|
324
324
|
}
|
|
325
|
-
const
|
|
325
|
+
const rt = b(() => !L.value), { viewBox: R, resetZoom: J, isZoom: it, setInitialViewBox: ut } = zt(j, {
|
|
326
326
|
x: 0,
|
|
327
327
|
y: 0,
|
|
328
328
|
width: Math.max(10, h.value.width),
|
|
329
329
|
height: Math.max(10, h.value.height)
|
|
330
|
-
}, e.value.style.chart.zoom.speed,
|
|
331
|
-
function
|
|
332
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }),
|
|
330
|
+
}, e.value.style.chart.zoom.speed, rt);
|
|
331
|
+
function ct(t) {
|
|
332
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), Ze("selectNode", t);
|
|
333
333
|
}
|
|
334
|
-
async function
|
|
334
|
+
async function vt({ scale: t = 2 } = {}) {
|
|
335
335
|
if (!k.value) return;
|
|
336
|
-
const { width: l, height: o } = k.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: i } = await
|
|
336
|
+
const { width: l, height: o } = k.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: i } = await Mt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
337
337
|
return {
|
|
338
338
|
imageUri: s,
|
|
339
339
|
base64: i,
|
|
@@ -346,7 +346,7 @@ const Ht = ["id"], Vt = {
|
|
|
346
346
|
const S = b(() => {
|
|
347
347
|
const t = e.value.table.useDialog && !e.value.table.show, l = d.value.showTable;
|
|
348
348
|
return {
|
|
349
|
-
component: t ?
|
|
349
|
+
component: t ? je : Ue,
|
|
350
350
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
351
351
|
props: t ? {
|
|
352
352
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -373,42 +373,46 @@ const Ht = ["id"], Vt = {
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
});
|
|
376
|
-
|
|
376
|
+
E(() => d.value.showTable, (t) => {
|
|
377
377
|
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
378
|
-
})
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
378
|
+
});
|
|
379
|
+
function ke() {
|
|
380
|
+
d.value.showTable = !1, V.value && V.value.setTableIconState(!1);
|
|
381
|
+
}
|
|
382
|
+
return Be({
|
|
383
|
+
getData: nt,
|
|
384
|
+
getImage: vt,
|
|
385
|
+
generatePdf: de,
|
|
386
|
+
generateCsv: Q,
|
|
387
|
+
generateImage: pe,
|
|
388
|
+
toggleTable: Ce,
|
|
389
|
+
toggleLabels: ye,
|
|
390
|
+
toggleTooltip: Ae,
|
|
391
|
+
toggleAnnotator: q,
|
|
392
|
+
toggleFullscreen: be
|
|
389
393
|
}), (t, l) => (u(), C("div", {
|
|
390
394
|
ref_key: "moleculeChart",
|
|
391
395
|
ref: k,
|
|
392
|
-
class:
|
|
396
|
+
class: _e(`vue-ui-molecule ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
393
397
|
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
394
398
|
id: `cluster_${z.value}`,
|
|
395
|
-
onMouseleave: l[
|
|
396
|
-
x.value = null, N.value = null, a(
|
|
399
|
+
onMouseleave: l[2] || (l[2] = (o) => {
|
|
400
|
+
x.value = null, N.value = null, a(re)(!1);
|
|
397
401
|
}),
|
|
398
|
-
onMouseenter: l[
|
|
402
|
+
onMouseenter: l[3] || (l[3] = () => a(re)(!0))
|
|
399
403
|
}, [
|
|
400
|
-
e.value.userOptions.buttons.annotator ? (u(), w(a(
|
|
404
|
+
e.value.userOptions.buttons.annotator ? (u(), w(a(ze), {
|
|
401
405
|
key: 0,
|
|
402
|
-
svgRef: a(
|
|
406
|
+
svgRef: a(j),
|
|
403
407
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
404
408
|
color: e.value.style.chart.color,
|
|
405
409
|
active: L.value,
|
|
406
|
-
onClose:
|
|
410
|
+
onClose: q
|
|
407
411
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
408
|
-
|
|
409
|
-
e.value.style.chart.title.text ? (u(), C("div",
|
|
410
|
-
(u(), w(a(
|
|
411
|
-
key: `title_${
|
|
412
|
+
Je.value ? (u(), C("div", Gt, null, 512)) : g("", !0),
|
|
413
|
+
e.value.style.chart.title.text ? (u(), C("div", Wt, [
|
|
414
|
+
(u(), w(a(Re), {
|
|
415
|
+
key: `title_${se.value}`,
|
|
412
416
|
config: {
|
|
413
417
|
title: {
|
|
414
418
|
cy: "molecule-div-title",
|
|
@@ -421,14 +425,14 @@ const Ht = ["id"], Vt = {
|
|
|
421
425
|
}
|
|
422
426
|
}, null, 8, ["config"]))
|
|
423
427
|
])) : g("", !0),
|
|
424
|
-
e.value.userOptions.show &&
|
|
425
|
-
ref_key: "
|
|
426
|
-
ref:
|
|
427
|
-
key: `user_options_${
|
|
428
|
+
e.value.userOptions.show && oe.value && (a(ie) || a(X)) ? (u(), w(a(He), {
|
|
429
|
+
ref_key: "userOptionsRef",
|
|
430
|
+
ref: V,
|
|
431
|
+
key: `user_options_${ae.value}`,
|
|
428
432
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
429
433
|
color: e.value.style.chart.color,
|
|
430
|
-
isPrinting: a(
|
|
431
|
-
isImaging: a(
|
|
434
|
+
isPrinting: a(ce),
|
|
435
|
+
isImaging: a(ve),
|
|
432
436
|
uid: z.value,
|
|
433
437
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
434
438
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -445,18 +449,19 @@ const Ht = ["id"], Vt = {
|
|
|
445
449
|
isAnnotation: L.value,
|
|
446
450
|
callbacks: e.value.userOptions.callbacks,
|
|
447
451
|
printScale: e.value.userOptions.print.scale,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
452
|
+
tableDialog: e.value.table.useDialog,
|
|
453
|
+
onToggleFullscreen: be,
|
|
454
|
+
onGeneratePdf: a(de),
|
|
455
|
+
onGenerateCsv: Q,
|
|
456
|
+
onGenerateImage: a(pe),
|
|
457
|
+
onToggleTable: Ce,
|
|
458
|
+
onToggleLabels: ye,
|
|
459
|
+
onToggleTooltip: Ae,
|
|
460
|
+
onToggleAnnotator: q,
|
|
456
461
|
style: M({
|
|
457
|
-
visibility: a(
|
|
462
|
+
visibility: a(ie) ? a(X) ? "visible" : "hidden" : "visible"
|
|
458
463
|
})
|
|
459
|
-
},
|
|
464
|
+
}, Oe({ _: 2 }, [
|
|
460
465
|
t.$slots.menuIcon ? {
|
|
461
466
|
name: "menuIcon",
|
|
462
467
|
fn: c(({ isOpen: o, color: n }) => [
|
|
@@ -520,17 +525,17 @@ const Ht = ["id"], Vt = {
|
|
|
520
525
|
]),
|
|
521
526
|
key: "8"
|
|
522
527
|
} : void 0
|
|
523
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
528
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
524
529
|
(u(), C("svg", {
|
|
525
530
|
ref_key: "svgRef",
|
|
526
|
-
ref:
|
|
527
|
-
key: `svg_${
|
|
528
|
-
xmlns: a(
|
|
529
|
-
viewBox: `${a(
|
|
530
|
-
class:
|
|
531
|
+
ref: j,
|
|
532
|
+
key: `svg_${ue.value}`,
|
|
533
|
+
xmlns: a(Dt),
|
|
534
|
+
viewBox: `${a(R).x} ${a(R).y} ${a(R).width} ${a(R).height}`,
|
|
535
|
+
class: _e({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
531
536
|
style: M(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
532
537
|
}, [
|
|
533
|
-
I(a(
|
|
538
|
+
I(a(Ve)),
|
|
534
539
|
t.$slots["chart-background"] ? (u(), C("foreignObject", {
|
|
535
540
|
key: 0,
|
|
536
541
|
x: 0,
|
|
@@ -542,9 +547,9 @@ const Ht = ["id"], Vt = {
|
|
|
542
547
|
}
|
|
543
548
|
}, [
|
|
544
549
|
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
545
|
-
], 8,
|
|
546
|
-
|
|
547
|
-
(u(!0), C(
|
|
550
|
+
], 8, jt)) : g("", !0),
|
|
551
|
+
P("defs", null, [
|
|
552
|
+
(u(!0), C(mt, null, gt(Object.keys(tt.value), (o) => (u(), C("radialGradient", {
|
|
548
553
|
id: `gradient_${o}`,
|
|
549
554
|
cx: "50%",
|
|
550
555
|
cy: "30%",
|
|
@@ -552,48 +557,48 @@ const Ht = ["id"], Vt = {
|
|
|
552
557
|
fx: "50%",
|
|
553
558
|
fy: "50%"
|
|
554
559
|
}, [
|
|
555
|
-
|
|
560
|
+
P("stop", {
|
|
556
561
|
offset: "0%",
|
|
557
|
-
"stop-color": a(
|
|
558
|
-
}, null, 8,
|
|
559
|
-
|
|
562
|
+
"stop-color": a(It)(o, 0.5)
|
|
563
|
+
}, null, 8, Zt),
|
|
564
|
+
P("stop", {
|
|
560
565
|
offset: "100%",
|
|
561
566
|
"stop-color": o
|
|
562
|
-
}, null, 8,
|
|
563
|
-
], 8,
|
|
567
|
+
}, null, 8, Qt)
|
|
568
|
+
], 8, Yt))), 256))
|
|
564
569
|
]),
|
|
565
|
-
I(a(
|
|
570
|
+
I(a(Ge), {
|
|
566
571
|
dataset: y.value,
|
|
567
572
|
color: e.value.style.chart.links.stroke,
|
|
568
573
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
569
574
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
570
|
-
I(a(
|
|
575
|
+
I(a(Xe), {
|
|
571
576
|
dataset: y.value,
|
|
572
577
|
hoveredUid: N.value,
|
|
573
578
|
stroke: e.value.style.chart.nodes.stroke,
|
|
574
579
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
575
|
-
onClick:
|
|
576
|
-
onHover:
|
|
580
|
+
onClick: ct,
|
|
581
|
+
onHover: lt
|
|
577
582
|
}, {
|
|
578
583
|
node: c(({ node: o }) => [
|
|
579
584
|
v(t.$slots, "node", $(T({ node: o })), void 0, !0)
|
|
580
585
|
]),
|
|
581
586
|
_: 3
|
|
582
587
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
583
|
-
d.value.showDataLabels && !a(
|
|
588
|
+
d.value.showDataLabels && !a(G) ? (u(), w(a(We), {
|
|
584
589
|
key: 1,
|
|
585
590
|
dataset: y.value,
|
|
586
591
|
color: e.value.style.chart.color,
|
|
587
592
|
hoveredUid: N.value
|
|
588
593
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : g("", !0),
|
|
589
594
|
v(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
590
|
-
], 14,
|
|
591
|
-
t.$slots.watermark ? (u(), C("div",
|
|
592
|
-
v(t.$slots, "watermark", $(T({ isPrinting: a(
|
|
595
|
+
], 14, Xt)),
|
|
596
|
+
t.$slots.watermark ? (u(), C("div", qt, [
|
|
597
|
+
v(t.$slots, "watermark", $(T({ isPrinting: a(ce) || a(ve) })), void 0, !0)
|
|
593
598
|
])) : g("", !0),
|
|
594
|
-
a(
|
|
595
|
-
v(t.$slots, "reset-action", { reset: a(
|
|
596
|
-
|
|
599
|
+
a(it) ? (u(), C("div", Jt, [
|
|
600
|
+
v(t.$slots, "reset-action", { reset: a(J) }, () => [
|
|
601
|
+
P("button", {
|
|
597
602
|
"data-cy-reset": "",
|
|
598
603
|
tabindex: "0",
|
|
599
604
|
role: "button",
|
|
@@ -601,19 +606,19 @@ const Ht = ["id"], Vt = {
|
|
|
601
606
|
style: M({
|
|
602
607
|
background: e.value.style.chart.backgroundColor
|
|
603
608
|
}),
|
|
604
|
-
onClick: l[0] || (l[0] = (o) => a(
|
|
609
|
+
onClick: l[0] || (l[0] = (o) => a(J)(!0))
|
|
605
610
|
}, [
|
|
606
|
-
I(a(
|
|
611
|
+
I(a(te), {
|
|
607
612
|
name: "refresh",
|
|
608
613
|
stroke: e.value.style.chart.color
|
|
609
614
|
}, null, 8, ["stroke"])
|
|
610
615
|
], 4)
|
|
611
616
|
], !0)
|
|
612
617
|
])) : g("", !0),
|
|
613
|
-
t.$slots.source ? (u(), C("div",
|
|
618
|
+
t.$slots.source ? (u(), C("div", Kt, [
|
|
614
619
|
v(t.$slots, "source", {}, void 0, !0)
|
|
615
620
|
], 512)) : g("", !0),
|
|
616
|
-
I(a(
|
|
621
|
+
I(a(Ee), {
|
|
617
622
|
show: d.value.showTooltip && H.value,
|
|
618
623
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
619
624
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -632,37 +637,37 @@ const Ht = ["id"], Vt = {
|
|
|
632
637
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
633
638
|
}, {
|
|
634
639
|
"tooltip-before": c(() => [
|
|
635
|
-
v(t.$slots, "tooltip-before", $(T({ ...
|
|
640
|
+
v(t.$slots, "tooltip-before", $(T({ ...Z.value })), void 0, !0)
|
|
636
641
|
]),
|
|
637
642
|
"tooltip-after": c(() => [
|
|
638
|
-
v(t.$slots, "tooltip-after", $(T({ ...
|
|
643
|
+
v(t.$slots, "tooltip-after", $(T({ ...Z.value })), void 0, !0)
|
|
639
644
|
]),
|
|
640
645
|
_: 3
|
|
641
646
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
642
|
-
|
|
647
|
+
oe.value ? (u(), w(bt(S.value.component), Ct({ key: 7 }, S.value.props, {
|
|
643
648
|
ref_key: "tableUnit",
|
|
644
649
|
ref: F,
|
|
645
|
-
onClose:
|
|
646
|
-
}),
|
|
650
|
+
onClose: ke
|
|
651
|
+
}), Oe({
|
|
647
652
|
content: c(() => [
|
|
648
|
-
(u(), w(a(
|
|
649
|
-
key: `table_${
|
|
653
|
+
(u(), w(a(Me), {
|
|
654
|
+
key: `table_${ne.value}`,
|
|
650
655
|
colNames: _.value.colNames,
|
|
651
656
|
head: _.value.head,
|
|
652
657
|
body: _.value.body,
|
|
653
658
|
config: _.value.config,
|
|
654
659
|
title: e.value.table.useDialog ? "" : S.value.title,
|
|
655
660
|
withCloseButton: !e.value.table.useDialog,
|
|
656
|
-
onClose:
|
|
661
|
+
onClose: ke
|
|
657
662
|
}, {
|
|
658
663
|
th: c(({ th: o }) => [
|
|
659
|
-
|
|
664
|
+
P("div", {
|
|
660
665
|
innerHTML: o,
|
|
661
666
|
style: { display: "flex", "align-items": "center" }
|
|
662
|
-
}, null, 8,
|
|
667
|
+
}, null, 8, eo)
|
|
663
668
|
]),
|
|
664
669
|
td: c(({ td: o }) => [
|
|
665
|
-
|
|
670
|
+
De(Ie(o.name || o), 1)
|
|
666
671
|
]),
|
|
667
672
|
_: 1
|
|
668
673
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -672,19 +677,19 @@ const Ht = ["id"], Vt = {
|
|
|
672
677
|
e.value.table.useDialog ? {
|
|
673
678
|
name: "title",
|
|
674
679
|
fn: c(() => [
|
|
675
|
-
|
|
680
|
+
De(Ie(S.value.title), 1)
|
|
676
681
|
]),
|
|
677
682
|
key: "0"
|
|
678
683
|
} : void 0,
|
|
679
684
|
e.value.table.useDialog ? {
|
|
680
685
|
name: "actions",
|
|
681
686
|
fn: c(() => [
|
|
682
|
-
|
|
687
|
+
P("button", {
|
|
683
688
|
tabindex: "0",
|
|
684
689
|
class: "vue-ui-user-options-button",
|
|
685
|
-
onClick: l[1] || (l[1] = (o) =>
|
|
690
|
+
onClick: l[1] || (l[1] = (o) => Q(e.value.userOptions.callbacks.csv))
|
|
686
691
|
}, [
|
|
687
|
-
I(a(
|
|
692
|
+
I(a(te), {
|
|
688
693
|
name: "excel",
|
|
689
694
|
stroke: S.value.props.color
|
|
690
695
|
}, null, 8, ["stroke"])
|
|
@@ -693,10 +698,10 @@ const Ht = ["id"], Vt = {
|
|
|
693
698
|
key: "1"
|
|
694
699
|
} : void 0
|
|
695
700
|
]), 1040)) : g("", !0),
|
|
696
|
-
a(
|
|
697
|
-
], 46,
|
|
701
|
+
a(G) ? (u(), w(xt, { key: 8 })) : g("", !0)
|
|
702
|
+
], 46, Vt));
|
|
698
703
|
}
|
|
699
|
-
},
|
|
704
|
+
}, po = /* @__PURE__ */ Ht(to, [["__scopeId", "data-v-148e098e"]]);
|
|
700
705
|
export {
|
|
701
|
-
|
|
706
|
+
po as default
|
|
702
707
|
};
|