vue-data-ui 3.5.0 → 3.5.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/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-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.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 { useCssVars as bt, defineAsyncComponent as p, computed as h, onMounted as Ct, ref as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
1
|
+
import { useCssVars as bt, defineAsyncComponent as p, computed as h, onMounted as Ct, ref as u, toRefs as yt, watch as x, nextTick as H, createElementBlock as k, openBlock as v, unref as a, normalizeStyle as M, normalizeClass as Oe, createBlock as T, createCommentVNode as y, createVNode as D, withCtx as r, renderSlot as i, normalizeProps as f, guardReactiveProps as g, createSlots as Se, createElementVNode as P, Fragment as kt, renderList as At, resolveDynamicComponent as wt, mergeProps as $t, createTextVNode as De, toDisplayString as Pe } from "vue";
|
|
2
|
+
import { o as Tt, f as _t, c as Ie, t as Ot, b as St, p as Fe, e as Dt, a7 as Pt, X as It, S as Ft, k as Nt, h as Ne, P as Lt, Q as Bt, G as Et, H as Rt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { u as Ut, a as Le } from "./useNestedProp-DjGXw6S9.js";
|
|
4
|
+
import { u as xt, B as Ht } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { u as Mt } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as Gt } from "./useSvgExport-DrjCWun4.js";
|
|
7
7
|
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
@@ -46,24 +46,24 @@ const Zt = ["id"], Qt = {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectNode"],
|
|
49
|
-
setup(Be, { expose:
|
|
49
|
+
setup(Be, { expose: Ee, emit: Re }) {
|
|
50
50
|
bt((t) => ({
|
|
51
|
-
|
|
51
|
+
f4051c3a: t.slicerColor
|
|
52
52
|
}));
|
|
53
|
-
const
|
|
53
|
+
const Ue = p(() => import("./Title-isbiM8i8.js")), xe = p(() => import("./Tooltip-oWCO1HKy.js")), te = p(() => import("./BaseIcon-BmMbm4d0.js")), He = p(() => import("./vue-ui-accordion-CqhVCfc2.js")), Me = p(() => import("./DataTable-BT7VF2ua.js")), Ge = p(() => import("./PenAndPaper-SZQIAgkg.js")), Ve = p(() => import("./UserOptions-CGnQt6Fd.js")), ze = p(() => import("./PackageVersion-DQvyATVa.js")), We = p(() => import("./RecursiveLinks-00zGWPf9.js")), Xe = p(() => import("./RecursiveLabels-Bgcv0pzu.js")), je = p(() => import("./RecursiveCircles-BcLb1aRS.js")), Ye = p(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_molecule: Ze } = Ut(), w = Be, Qe = Re, oe = h(() => !!w.dataset && w.dataset.length);
|
|
54
54
|
Ct(() => {
|
|
55
55
|
le();
|
|
56
56
|
});
|
|
57
57
|
const qe = h(() => e.value.debug);
|
|
58
58
|
function le() {
|
|
59
|
-
|
|
59
|
+
Tt(w.dataset) && _t({
|
|
60
60
|
componentName: "VueUiMolecule",
|
|
61
61
|
type: "dataset",
|
|
62
62
|
debug: qe.value
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
const G =
|
|
66
|
-
...yt(
|
|
65
|
+
const G = u(Ie()), V = u(!1), B = u(""), $ = u(null), ae = u(0), se = u(0), ne = u(0), I = u(null), z = u(null), e = u(Y()), { loading: W, FINAL_DATASET: X } = xt({
|
|
66
|
+
...yt(w),
|
|
67
67
|
FINAL_CONFIG: e,
|
|
68
68
|
prepareConfig: Y,
|
|
69
69
|
skeletonDataset: [
|
|
@@ -118,39 +118,39 @@ const Zt = ["id"], Qt = {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
})
|
|
121
|
-
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = Vt({ config: e.value }), { svgRef:
|
|
121
|
+
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = Vt({ config: e.value }), { svgRef: E } = zt({ config: e.value.style.chart.title });
|
|
122
122
|
function Y() {
|
|
123
123
|
const t = Le({
|
|
124
|
-
userConfig:
|
|
124
|
+
userConfig: w.config,
|
|
125
125
|
defaultConfig: Ze
|
|
126
126
|
});
|
|
127
127
|
return t.theme ? {
|
|
128
128
|
...Le({
|
|
129
|
-
userConfig: Xt.vue_ui_molecule[t.theme] ||
|
|
129
|
+
userConfig: Xt.vue_ui_molecule[t.theme] || w.config,
|
|
130
130
|
defaultConfig: t
|
|
131
131
|
}),
|
|
132
132
|
customPalette: St[t.theme] || Fe
|
|
133
133
|
} : t;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
x(() => w.config, (t) => {
|
|
136
136
|
e.value = Y(), j.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;
|
|
137
137
|
}, { deep: !0 });
|
|
138
|
-
const ue =
|
|
138
|
+
const ue = u(0), Je = () => {
|
|
139
139
|
ue.value += 1;
|
|
140
140
|
};
|
|
141
|
-
|
|
142
|
-
t || (await H(),
|
|
141
|
+
x([() => W.value, () => X.value], async ([t]) => {
|
|
142
|
+
t || (await H(), m.value = fe(), await H(), Je(), await H(), ct({ x: 0, y: 0, width: 400, height: 400 }), J(!1));
|
|
143
143
|
}, { flush: "post", deep: !1 });
|
|
144
144
|
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: pe } = Mt({
|
|
145
145
|
elementId: `cluster_${G.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}), Ke = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = h(() => Dt(e.value.customPalette)), d =
|
|
148
|
+
}), Ke = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = h(() => Dt(e.value.customPalette)), d = u({
|
|
149
149
|
showTable: e.value.table.show,
|
|
150
150
|
showDataLabels: !0,
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
152
152
|
});
|
|
153
|
-
|
|
153
|
+
x(e, () => {
|
|
154
154
|
d.value = {
|
|
155
155
|
showTable: e.value.table.show,
|
|
156
156
|
showDataLabels: !0,
|
|
@@ -170,8 +170,8 @@ const Zt = ["id"], Qt = {
|
|
|
170
170
|
width: o
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
function ge(t, l = { x: -
|
|
173
|
+
const m = u(fe());
|
|
174
|
+
function ge(t, l = { x: -m.value.width / 2.43, y: m.value.height / 2 }, o = m.value.width / 1.1, n = 24, s = 0, c = 0, b = "#BBBBBB", K = 0) {
|
|
175
175
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
176
176
|
const mt = Nt({
|
|
177
177
|
plot: l,
|
|
@@ -179,19 +179,19 @@ const Zt = ["id"], Qt = {
|
|
|
179
179
|
sides: t.length,
|
|
180
180
|
rotation: s
|
|
181
181
|
});
|
|
182
|
-
return t.forEach((
|
|
183
|
-
const
|
|
184
|
-
let ee = Ne(
|
|
182
|
+
return t.forEach((C, $e) => {
|
|
183
|
+
const Te = mt.coordinates[$e], _e = C.color ? (() => {
|
|
184
|
+
let ee = Ne(C.color);
|
|
185
185
|
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
186
186
|
})() : null;
|
|
187
187
|
let S;
|
|
188
|
-
_e ? S = _e : K === 0 ? S =
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
_e ? S = _e : K === 0 ? S = b : K === 1 ? (S = et.value[c] || Fe[c] || b, c += 1) : S = b, C.polygonPath = { coordinates: [Te] }, C.circleRadius = n, C.color = S, C.uid = Ie(), Array.isArray(C.nodes) && C.nodes.length && (C.nodes = ge(
|
|
189
|
+
C.nodes,
|
|
190
|
+
Te,
|
|
191
191
|
o / 2.9,
|
|
192
192
|
n / 2.2,
|
|
193
|
-
s + Math.PI *
|
|
194
|
-
|
|
193
|
+
s + Math.PI * $e / C.nodes.length,
|
|
194
|
+
c,
|
|
195
195
|
S,
|
|
196
196
|
K + 1
|
|
197
197
|
));
|
|
@@ -200,42 +200,42 @@ const Zt = ["id"], Qt = {
|
|
|
200
200
|
function tt(t) {
|
|
201
201
|
const l = /* @__PURE__ */ new Set();
|
|
202
202
|
function o(s) {
|
|
203
|
-
s.forEach((
|
|
204
|
-
if (!
|
|
205
|
-
let
|
|
206
|
-
/^#?[0-9A-F]{6}$/i.test(
|
|
203
|
+
s.forEach((c) => {
|
|
204
|
+
if (!c.color) return;
|
|
205
|
+
let b = c.color;
|
|
206
|
+
/^#?[0-9A-F]{6}$/i.test(b) || (b = Ne(b)), b.startsWith("#") || (b = `#${b}`), l.add(b), Array.isArray(c.nodes) && c.nodes.length && o(c.nodes);
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
o(t);
|
|
210
210
|
const n = {};
|
|
211
211
|
return Array.from(l).forEach((s) => {
|
|
212
|
-
const
|
|
213
|
-
n[s] = `gradient_${
|
|
212
|
+
const c = s.slice(1);
|
|
213
|
+
n[s] = `gradient_${c}`;
|
|
214
214
|
}), n;
|
|
215
215
|
}
|
|
216
|
-
const ot = h(() => tt(
|
|
216
|
+
const ot = h(() => tt(A.value)), A = h(() => {
|
|
217
217
|
const t = Pt(X.value);
|
|
218
218
|
return ge(t);
|
|
219
|
-
}), Z =
|
|
219
|
+
}), Z = u(null);
|
|
220
220
|
function lt(t) {
|
|
221
221
|
Z.value = {
|
|
222
222
|
datapoint: t,
|
|
223
223
|
seriesIndex: -1,
|
|
224
|
-
series:
|
|
224
|
+
series: A.value,
|
|
225
225
|
config: e.value
|
|
226
226
|
};
|
|
227
227
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
228
|
-
if (
|
|
228
|
+
if (Et(l) && Rt(() => l({
|
|
229
229
|
seriesIndex: -1,
|
|
230
230
|
datapoint: t,
|
|
231
|
-
series:
|
|
231
|
+
series: A.value,
|
|
232
232
|
config: e.value
|
|
233
233
|
})))
|
|
234
234
|
B.value = l({
|
|
235
235
|
seriesIndex: -1,
|
|
236
236
|
// well, ok
|
|
237
237
|
datapoint: t,
|
|
238
|
-
series:
|
|
238
|
+
series: A.value,
|
|
239
239
|
config: e.value
|
|
240
240
|
});
|
|
241
241
|
else {
|
|
@@ -243,31 +243,31 @@ const Zt = ["id"], Qt = {
|
|
|
243
243
|
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>`;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
const
|
|
246
|
+
const R = u(null), F = u(null), me = u(null);
|
|
247
247
|
function at(t) {
|
|
248
|
-
me.value =
|
|
248
|
+
me.value = R.value, R.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 || R.value, seriesIndex: -1 }), t ? (V.value = !0, lt(t), F.value = t.uid) : (V.value = !1, B.value = "", F.value = null);
|
|
249
249
|
}
|
|
250
250
|
function st(t) {
|
|
251
251
|
const l = [];
|
|
252
252
|
function o(n) {
|
|
253
253
|
n.forEach((s) => {
|
|
254
|
-
const
|
|
254
|
+
const c = {
|
|
255
255
|
name: s.name,
|
|
256
256
|
details: s.details || "-",
|
|
257
257
|
ancestor: s.ancestor && s.ancestor.name || "-",
|
|
258
258
|
color: s.color || ""
|
|
259
259
|
};
|
|
260
|
-
l.push(
|
|
260
|
+
l.push(c), s.nodes && s.nodes.length > 0 && o(s.nodes, s.name);
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
return o(t), l;
|
|
264
264
|
}
|
|
265
|
-
const nt = h(() => st(
|
|
265
|
+
const nt = h(() => st(A.value)), _ = h(() => {
|
|
266
266
|
const t = [
|
|
267
267
|
e.value.table.translations.nodeName,
|
|
268
268
|
e.value.table.translations.details,
|
|
269
269
|
e.value.table.translations.ancestor
|
|
270
|
-
], l = nt.value.map((s,
|
|
270
|
+
], l = nt.value.map((s, c) => [
|
|
271
271
|
{
|
|
272
272
|
color: s.color,
|
|
273
273
|
name: s.name
|
|
@@ -300,14 +300,14 @@ const Zt = ["id"], Qt = {
|
|
|
300
300
|
});
|
|
301
301
|
function Q(t = null) {
|
|
302
302
|
H(() => {
|
|
303
|
-
const l = _.value.body.map((s,
|
|
303
|
+
const l = _.value.body.map((s, c) => [[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 = Lt(o);
|
|
304
304
|
t ? t(n) : Bt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
function rt() {
|
|
308
|
-
return
|
|
308
|
+
return A.value;
|
|
309
309
|
}
|
|
310
|
-
const O =
|
|
310
|
+
const O = u(!1);
|
|
311
311
|
function be(t) {
|
|
312
312
|
O.value = t, ae.value += 1;
|
|
313
313
|
}
|
|
@@ -320,25 +320,25 @@ const Zt = ["id"], Qt = {
|
|
|
320
320
|
function ke() {
|
|
321
321
|
d.value.showTooltip = !d.value.showTooltip;
|
|
322
322
|
}
|
|
323
|
-
const N =
|
|
323
|
+
const N = u(!1);
|
|
324
324
|
function q() {
|
|
325
325
|
N.value = !N.value;
|
|
326
326
|
}
|
|
327
|
-
const it = h(() => !N.value), { viewBox:
|
|
327
|
+
const it = h(() => !N.value), { viewBox: U, resetZoom: J, isZoom: ut, setInitialViewBox: ct } = jt(E, {
|
|
328
328
|
x: 0,
|
|
329
329
|
y: 0,
|
|
330
|
-
width: Math.max(10,
|
|
331
|
-
height: Math.max(10,
|
|
330
|
+
width: Math.max(10, m.value.width),
|
|
331
|
+
height: Math.max(10, m.value.height)
|
|
332
332
|
}, e.value.style.chart.zoom.speed, it);
|
|
333
333
|
function vt(t) {
|
|
334
334
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), Qe("selectNode", t);
|
|
335
335
|
}
|
|
336
336
|
async function dt({ scale: t = 2 } = {}) {
|
|
337
|
-
if (
|
|
338
|
-
const { width: l, height: o } =
|
|
337
|
+
if (!$.value) return;
|
|
338
|
+
const { width: l, height: o } = $.value.getBoundingClientRect(), n = l / o, { imageUri: s, base64: c } = await Wt({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
339
339
|
return {
|
|
340
340
|
imageUri: s,
|
|
341
|
-
base64:
|
|
341
|
+
base64: c,
|
|
342
342
|
title: e.value.style.chart.title.text,
|
|
343
343
|
width: l,
|
|
344
344
|
height: o,
|
|
@@ -356,7 +356,7 @@ const Zt = ["id"], Qt = {
|
|
|
356
356
|
headerColor: e.value.table.th.color,
|
|
357
357
|
headerBg: e.value.table.th.backgroundColor,
|
|
358
358
|
isFullscreen: O.value,
|
|
359
|
-
fullscreenParent:
|
|
359
|
+
fullscreenParent: $.value,
|
|
360
360
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
361
361
|
} : {
|
|
362
362
|
hideDetails: !0,
|
|
@@ -375,14 +375,14 @@ const Zt = ["id"], Qt = {
|
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
});
|
|
378
|
-
|
|
378
|
+
x(() => d.value.showTable, (t) => {
|
|
379
379
|
e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
380
380
|
});
|
|
381
381
|
function Ae() {
|
|
382
382
|
d.value.showTable = !1, z.value && z.value.setTableIconState(!1);
|
|
383
383
|
}
|
|
384
384
|
const pt = h(() => e.value.style.chart.backgroundColor), ht = h(() => e.value.style.chart.title), { exportSvg: ft, getSvg: gt } = Gt({
|
|
385
|
-
svg:
|
|
385
|
+
svg: E,
|
|
386
386
|
title: ht,
|
|
387
387
|
backgroundColor: pt
|
|
388
388
|
});
|
|
@@ -393,7 +393,7 @@ const Zt = ["id"], Qt = {
|
|
|
393
393
|
} else
|
|
394
394
|
ft();
|
|
395
395
|
}
|
|
396
|
-
return
|
|
396
|
+
return Ee({
|
|
397
397
|
getData: rt,
|
|
398
398
|
getImage: dt,
|
|
399
399
|
generatePdf: de,
|
|
@@ -405,28 +405,48 @@ const Zt = ["id"], Qt = {
|
|
|
405
405
|
toggleTooltip: ke,
|
|
406
406
|
toggleAnnotator: q,
|
|
407
407
|
toggleFullscreen: be
|
|
408
|
-
}), (t, l) => (v(),
|
|
408
|
+
}), (t, l) => (v(), k("div", {
|
|
409
409
|
ref_key: "moleculeChart",
|
|
410
|
-
ref:
|
|
410
|
+
ref: $,
|
|
411
411
|
class: Oe(`vue-data-ui-component vue-ui-molecule ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
412
412
|
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
413
413
|
id: `cluster_${G.value}`,
|
|
414
414
|
onMouseleave: l[2] || (l[2] = (o) => {
|
|
415
|
-
|
|
415
|
+
R.value = null, F.value = null, a(re)(!1);
|
|
416
416
|
}),
|
|
417
417
|
onMouseenter: l[3] || (l[3] = () => a(re)(!0))
|
|
418
418
|
}, [
|
|
419
|
-
e.value.userOptions.buttons.annotator ? (v(),
|
|
419
|
+
e.value.userOptions.buttons.annotator ? (v(), T(a(Ge), {
|
|
420
420
|
key: 0,
|
|
421
|
-
svgRef: a(
|
|
421
|
+
svgRef: a(E),
|
|
422
422
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
423
423
|
color: e.value.style.chart.color,
|
|
424
424
|
active: N.value,
|
|
425
425
|
onClose: q
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
426
|
+
}, {
|
|
427
|
+
"annotator-action-close": r(() => [
|
|
428
|
+
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
429
|
+
]),
|
|
430
|
+
"annotator-action-color": r(({ color: o }) => [
|
|
431
|
+
i(t.$slots, "annotator-action-color", f(g({ color: o })), void 0, !0)
|
|
432
|
+
]),
|
|
433
|
+
"annotator-action-draw": r(({ mode: o }) => [
|
|
434
|
+
i(t.$slots, "annotator-action-draw", f(g({ mode: o })), void 0, !0)
|
|
435
|
+
]),
|
|
436
|
+
"annotator-action-undo": r(({ disabled: o }) => [
|
|
437
|
+
i(t.$slots, "annotator-action-undo", f(g({ disabled: o })), void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
"annotator-action-redo": r(({ disabled: o }) => [
|
|
440
|
+
i(t.$slots, "annotator-action-redo", f(g({ disabled: o })), void 0, !0)
|
|
441
|
+
]),
|
|
442
|
+
"annotator-action-delete": r(({ disabled: o }) => [
|
|
443
|
+
i(t.$slots, "annotator-action-delete", f(g({ disabled: o })), void 0, !0)
|
|
444
|
+
]),
|
|
445
|
+
_: 3
|
|
446
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
447
|
+
Ke.value ? (v(), k("div", Qt, null, 512)) : y("", !0),
|
|
448
|
+
e.value.style.chart.title.text ? (v(), k("div", qt, [
|
|
449
|
+
(v(), T(a(Ue), {
|
|
430
450
|
key: `title_${se.value}`,
|
|
431
451
|
config: {
|
|
432
452
|
title: {
|
|
@@ -439,8 +459,8 @@ const Zt = ["id"], Qt = {
|
|
|
439
459
|
}
|
|
440
460
|
}
|
|
441
461
|
}, null, 8, ["config"]))
|
|
442
|
-
])) :
|
|
443
|
-
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (v(),
|
|
462
|
+
])) : y("", !0),
|
|
463
|
+
e.value.userOptions.show && oe.value && (a(ie) || a(j)) ? (v(), T(a(Ve), {
|
|
444
464
|
ref_key: "userOptionsRef",
|
|
445
465
|
ref: z,
|
|
446
466
|
key: `user_options_${ae.value}`,
|
|
@@ -459,7 +479,7 @@ const Zt = ["id"], Qt = {
|
|
|
459
479
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
460
480
|
isTooltip: d.value.showTooltip,
|
|
461
481
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
462
|
-
chartElement:
|
|
482
|
+
chartElement: $.value,
|
|
463
483
|
position: e.value.userOptions.position,
|
|
464
484
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
465
485
|
isAnnotation: N.value,
|
|
@@ -481,99 +501,99 @@ const Zt = ["id"], Qt = {
|
|
|
481
501
|
}, Se({ _: 2 }, [
|
|
482
502
|
t.$slots.menuIcon ? {
|
|
483
503
|
name: "menuIcon",
|
|
484
|
-
fn:
|
|
485
|
-
|
|
504
|
+
fn: r(({ isOpen: o, color: n }) => [
|
|
505
|
+
i(t.$slots, "menuIcon", f(g({ isOpen: o, color: n })), void 0, !0)
|
|
486
506
|
]),
|
|
487
507
|
key: "0"
|
|
488
508
|
} : void 0,
|
|
489
509
|
t.$slots.optionTooltip ? {
|
|
490
510
|
name: "optionTooltip",
|
|
491
|
-
fn:
|
|
492
|
-
|
|
511
|
+
fn: r(() => [
|
|
512
|
+
i(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
493
513
|
]),
|
|
494
514
|
key: "1"
|
|
495
515
|
} : void 0,
|
|
496
516
|
t.$slots.optionPdf ? {
|
|
497
517
|
name: "optionPdf",
|
|
498
|
-
fn:
|
|
499
|
-
|
|
518
|
+
fn: r(() => [
|
|
519
|
+
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
500
520
|
]),
|
|
501
521
|
key: "2"
|
|
502
522
|
} : void 0,
|
|
503
523
|
t.$slots.optionCsv ? {
|
|
504
524
|
name: "optionCsv",
|
|
505
|
-
fn:
|
|
506
|
-
|
|
525
|
+
fn: r(() => [
|
|
526
|
+
i(t.$slots, "optionCsv", {}, void 0, !0)
|
|
507
527
|
]),
|
|
508
528
|
key: "3"
|
|
509
529
|
} : void 0,
|
|
510
530
|
t.$slots.optionImg ? {
|
|
511
531
|
name: "optionImg",
|
|
512
|
-
fn:
|
|
513
|
-
|
|
532
|
+
fn: r(() => [
|
|
533
|
+
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
514
534
|
]),
|
|
515
535
|
key: "4"
|
|
516
536
|
} : void 0,
|
|
517
537
|
t.$slots.optionSvg ? {
|
|
518
538
|
name: "optionSvg",
|
|
519
|
-
fn:
|
|
520
|
-
|
|
539
|
+
fn: r(() => [
|
|
540
|
+
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
521
541
|
]),
|
|
522
542
|
key: "5"
|
|
523
543
|
} : void 0,
|
|
524
544
|
t.$slots.optionTable ? {
|
|
525
545
|
name: "optionTable",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
546
|
+
fn: r(() => [
|
|
547
|
+
i(t.$slots, "optionTable", {}, void 0, !0)
|
|
528
548
|
]),
|
|
529
549
|
key: "6"
|
|
530
550
|
} : void 0,
|
|
531
551
|
t.$slots.optionLabels ? {
|
|
532
552
|
name: "optionLabels",
|
|
533
|
-
fn:
|
|
534
|
-
|
|
553
|
+
fn: r(() => [
|
|
554
|
+
i(t.$slots, "optionLabels", {}, void 0, !0)
|
|
535
555
|
]),
|
|
536
556
|
key: "7"
|
|
537
557
|
} : void 0,
|
|
538
558
|
t.$slots.optionFullscreen ? {
|
|
539
559
|
name: "optionFullscreen",
|
|
540
|
-
fn:
|
|
541
|
-
|
|
560
|
+
fn: r(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
561
|
+
i(t.$slots, "optionFullscreen", f(g({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
542
562
|
]),
|
|
543
563
|
key: "8"
|
|
544
564
|
} : void 0,
|
|
545
565
|
t.$slots.optionAnnotator ? {
|
|
546
566
|
name: "optionAnnotator",
|
|
547
|
-
fn:
|
|
548
|
-
|
|
567
|
+
fn: r(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
568
|
+
i(t.$slots, "optionAnnotator", f(g({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
549
569
|
]),
|
|
550
570
|
key: "9"
|
|
551
571
|
} : void 0
|
|
552
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
553
|
-
(v(),
|
|
572
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
573
|
+
(v(), k("svg", {
|
|
554
574
|
ref_key: "svgRef",
|
|
555
|
-
ref:
|
|
575
|
+
ref: E,
|
|
556
576
|
key: `svg_${ue.value}`,
|
|
557
577
|
xmlns: a(It),
|
|
558
|
-
viewBox: `${a(
|
|
578
|
+
viewBox: `${a(U).x} ${a(U).y} ${a(U).width} ${a(U).height}`,
|
|
559
579
|
class: Oe({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
560
580
|
style: M(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
561
581
|
}, [
|
|
562
582
|
D(a(ze)),
|
|
563
|
-
t.$slots["chart-background"] ? (v(),
|
|
583
|
+
t.$slots["chart-background"] ? (v(), k("foreignObject", {
|
|
564
584
|
key: 0,
|
|
565
585
|
x: 0,
|
|
566
586
|
y: 0,
|
|
567
|
-
width:
|
|
568
|
-
height:
|
|
587
|
+
width: m.value.width <= 0 ? 10 : m.value.width,
|
|
588
|
+
height: m.value.height <= 0 ? 10 : m.value.height,
|
|
569
589
|
style: {
|
|
570
590
|
pointerEvents: "none"
|
|
571
591
|
}
|
|
572
592
|
}, [
|
|
573
|
-
|
|
574
|
-
], 8, Kt)) :
|
|
593
|
+
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
594
|
+
], 8, Kt)) : y("", !0),
|
|
575
595
|
P("defs", null, [
|
|
576
|
-
(v(!0),
|
|
596
|
+
(v(!0), k(kt, null, At(Object.keys(ot.value), (o) => (v(), k("radialGradient", {
|
|
577
597
|
id: `gradient_${o}`,
|
|
578
598
|
cx: "50%",
|
|
579
599
|
cy: "30%",
|
|
@@ -592,36 +612,36 @@ const Zt = ["id"], Qt = {
|
|
|
592
612
|
], 8, eo))), 256))
|
|
593
613
|
]),
|
|
594
614
|
D(a(We), {
|
|
595
|
-
dataset:
|
|
615
|
+
dataset: A.value,
|
|
596
616
|
color: e.value.style.chart.links.stroke,
|
|
597
617
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
598
618
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
599
619
|
D(a(je), {
|
|
600
|
-
dataset:
|
|
620
|
+
dataset: A.value,
|
|
601
621
|
hoveredUid: F.value,
|
|
602
622
|
stroke: e.value.style.chart.nodes.stroke,
|
|
603
623
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
604
624
|
onClick: vt,
|
|
605
625
|
onHover: at
|
|
606
626
|
}, {
|
|
607
|
-
node:
|
|
608
|
-
|
|
627
|
+
node: r(({ node: o }) => [
|
|
628
|
+
i(t.$slots, "node", f(g({ node: o })), void 0, !0)
|
|
609
629
|
]),
|
|
610
630
|
_: 3
|
|
611
631
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
612
|
-
d.value.showDataLabels && !a(W) ? (v(),
|
|
632
|
+
d.value.showDataLabels && !a(W) ? (v(), T(a(Xe), {
|
|
613
633
|
key: 1,
|
|
614
|
-
dataset:
|
|
634
|
+
dataset: A.value,
|
|
615
635
|
color: e.value.style.chart.color,
|
|
616
636
|
hoveredUid: F.value
|
|
617
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) :
|
|
618
|
-
|
|
637
|
+
}, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0),
|
|
638
|
+
i(t.$slots, "svg", { svg: m.value }, void 0, !0)
|
|
619
639
|
], 14, Jt)),
|
|
620
|
-
t.$slots.watermark ? (v(),
|
|
621
|
-
|
|
622
|
-
])) :
|
|
623
|
-
a(ut) ? (v(),
|
|
624
|
-
|
|
640
|
+
t.$slots.watermark ? (v(), k("div", lo, [
|
|
641
|
+
i(t.$slots, "watermark", f(g({ isPrinting: a(ce) || a(ve) })), void 0, !0)
|
|
642
|
+
])) : y("", !0),
|
|
643
|
+
a(ut) ? (v(), k("div", ao, [
|
|
644
|
+
i(t.$slots, "reset-action", { reset: a(J) }, () => [
|
|
625
645
|
P("button", {
|
|
626
646
|
"data-cy-reset": "",
|
|
627
647
|
tabindex: "0",
|
|
@@ -638,11 +658,11 @@ const Zt = ["id"], Qt = {
|
|
|
638
658
|
}, null, 8, ["stroke"])
|
|
639
659
|
], 4)
|
|
640
660
|
], !0)
|
|
641
|
-
])) :
|
|
642
|
-
t.$slots.source ? (v(),
|
|
643
|
-
|
|
644
|
-
], 512)) :
|
|
645
|
-
D(a(
|
|
661
|
+
])) : y("", !0),
|
|
662
|
+
t.$slots.source ? (v(), k("div", so, [
|
|
663
|
+
i(t.$slots, "source", {}, void 0, !0)
|
|
664
|
+
], 512)) : y("", !0),
|
|
665
|
+
D(a(xe), {
|
|
646
666
|
show: d.value.showTooltip && V.value,
|
|
647
667
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
648
668
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -653,7 +673,7 @@ const Zt = ["id"], Qt = {
|
|
|
653
673
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
654
674
|
position: e.value.style.chart.tooltip.position,
|
|
655
675
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
656
|
-
parent:
|
|
676
|
+
parent: $.value,
|
|
657
677
|
content: B.value,
|
|
658
678
|
isFullscreen: O.value,
|
|
659
679
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
@@ -662,21 +682,21 @@ const Zt = ["id"], Qt = {
|
|
|
662
682
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
663
683
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
664
684
|
}, {
|
|
665
|
-
"tooltip-before":
|
|
666
|
-
|
|
685
|
+
"tooltip-before": r(() => [
|
|
686
|
+
i(t.$slots, "tooltip-before", f(g({ ...Z.value })), void 0, !0)
|
|
667
687
|
]),
|
|
668
|
-
"tooltip-after":
|
|
669
|
-
|
|
688
|
+
"tooltip-after": r(() => [
|
|
689
|
+
i(t.$slots, "tooltip-after", f(g({ ...Z.value })), void 0, !0)
|
|
670
690
|
]),
|
|
671
691
|
_: 3
|
|
672
692
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
673
|
-
oe.value && e.value.userOptions.buttons.table ? (v(),
|
|
693
|
+
oe.value && e.value.userOptions.buttons.table ? (v(), T(wt(L.value.component), $t({ key: 7 }, L.value.props, {
|
|
674
694
|
ref_key: "tableUnit",
|
|
675
695
|
ref: I,
|
|
676
696
|
onClose: Ae
|
|
677
697
|
}), Se({
|
|
678
|
-
content:
|
|
679
|
-
(v(),
|
|
698
|
+
content: r(() => [
|
|
699
|
+
(v(), T(a(Me), {
|
|
680
700
|
key: `table_${ne.value}`,
|
|
681
701
|
colNames: _.value.colNames,
|
|
682
702
|
head: _.value.head,
|
|
@@ -686,13 +706,13 @@ const Zt = ["id"], Qt = {
|
|
|
686
706
|
withCloseButton: !e.value.table.useDialog,
|
|
687
707
|
onClose: Ae
|
|
688
708
|
}, {
|
|
689
|
-
th:
|
|
709
|
+
th: r(({ th: o }) => [
|
|
690
710
|
P("div", {
|
|
691
711
|
innerHTML: o,
|
|
692
712
|
style: { display: "flex", "align-items": "center" }
|
|
693
713
|
}, null, 8, no)
|
|
694
714
|
]),
|
|
695
|
-
td:
|
|
715
|
+
td: r(({ td: o }) => [
|
|
696
716
|
De(Pe(o.name || o), 1)
|
|
697
717
|
]),
|
|
698
718
|
_: 1
|
|
@@ -702,14 +722,14 @@ const Zt = ["id"], Qt = {
|
|
|
702
722
|
}, [
|
|
703
723
|
e.value.table.useDialog ? {
|
|
704
724
|
name: "title",
|
|
705
|
-
fn:
|
|
725
|
+
fn: r(() => [
|
|
706
726
|
De(Pe(L.value.title), 1)
|
|
707
727
|
]),
|
|
708
728
|
key: "0"
|
|
709
729
|
} : void 0,
|
|
710
730
|
e.value.table.useDialog ? {
|
|
711
731
|
name: "actions",
|
|
712
|
-
fn:
|
|
732
|
+
fn: r(() => [
|
|
713
733
|
P("button", {
|
|
714
734
|
tabindex: "0",
|
|
715
735
|
class: "vue-ui-user-options-button",
|
|
@@ -723,11 +743,11 @@ const Zt = ["id"], Qt = {
|
|
|
723
743
|
]),
|
|
724
744
|
key: "1"
|
|
725
745
|
} : void 0
|
|
726
|
-
]), 1040)) :
|
|
727
|
-
a(W) ? (v(),
|
|
746
|
+
]), 1040)) : y("", !0),
|
|
747
|
+
a(W) ? (v(), T(Ht, { key: 8 })) : y("", !0)
|
|
728
748
|
], 46, Zt));
|
|
729
749
|
}
|
|
730
|
-
}, ko = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-
|
|
750
|
+
}, ko = /* @__PURE__ */ Yt(ro, [["__scopeId", "data-v-834b0111"]]);
|
|
731
751
|
export {
|
|
732
752
|
ko as default
|
|
733
753
|
};
|