vue-data-ui 3.17.1 → 3.17.3
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 +4 -3
- package/dist/{PackageVersion-BsoZuuHw.js → PackageVersion-DP_kfXUM.js} +1 -1
- package/dist/{RecursiveLinks-BYh0tHDW.js → RecursiveLinks-BDwyYfP-.js} +33 -28
- 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-bump.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-dag.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-geo.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-pattern-seed.js +5 -0
- 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-stackline.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/patternUtils-DtjWtDHU.js +532 -0
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +49 -1
- package/dist/types/vue-data-ui.d.ts +20 -7
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/{useConfig-ChRble71.js → useConfig-C40HvGpD.js} +3 -1
- package/dist/{useObjectBindings-BVFCsss5.js → useObjectBindings-DOokNdQ_.js} +1 -1
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-QwRPnKF7.js → vue-data-ui-kiw3y7gG.js} +67 -67
- package/dist/vue-data-ui.js +102 -98
- package/dist/{vue-ui-3d-bar-BfNCTkJM.js → vue-ui-3d-bar-CWaSxiqw.js} +2 -2
- package/dist/{vue-ui-accordion-CnDW2UQL.js → vue-ui-accordion-DDuJT1xA.js} +1 -1
- package/dist/{vue-ui-age-pyramid-xeDAxQtf.js → vue-ui-age-pyramid-B6S8XYmi.js} +2 -2
- package/dist/{vue-ui-annotator-BA4hRkfX.js → vue-ui-annotator-BdmTltyl.js} +2 -2
- package/dist/{vue-ui-bullet-wZd5-rn-.js → vue-ui-bullet-_zHE8JoR.js} +2 -2
- package/dist/{vue-ui-bump-z7nLFbIM.js → vue-ui-bump-BX-bnhix.js} +2 -2
- package/dist/{vue-ui-candlestick-HMOUtySY.js → vue-ui-candlestick-CgtRA-EI.js} +2 -2
- package/dist/{vue-ui-carousel-table-DMuP07s-.js → vue-ui-carousel-table-BnwS5nMG.js} +2 -2
- package/dist/{vue-ui-chestnut-B4irb5V2.js → vue-ui-chestnut-3JG1dMba.js} +2 -2
- package/dist/{vue-ui-chord-BrW7tRqY.js → vue-ui-chord-DsA-qrl6.js} +2 -2
- package/dist/{vue-ui-circle-pack-QxFpROdc.js → vue-ui-circle-pack-BSHUo-L7.js} +2 -2
- package/dist/{vue-ui-cursor-DFp4uEMQ.js → vue-ui-cursor-Gqh_JBGA.js} +2 -2
- package/dist/{vue-ui-dag-Dr369vOS.js → vue-ui-dag-BTB1DCrs.js} +2 -2
- package/dist/{vue-ui-dashboard-NRPnkhg3.js → vue-ui-dashboard-xAW1vWaB.js} +65 -65
- package/dist/{vue-ui-digits-DnFPYC_f.js → vue-ui-digits-D2wQOhMt.js} +2 -2
- package/dist/{vue-ui-donut-CarXGPCp.js → vue-ui-donut-UUgV1d0_.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B6JpnTLM.js → vue-ui-donut-evolution-B0EEKpQC.js} +2 -2
- package/dist/{vue-ui-dumbbell-B77a5xel.js → vue-ui-dumbbell-Ct2RXkIX.js} +2 -2
- package/dist/{vue-ui-flow-u-d87wQV.js → vue-ui-flow-Ci_h8KNf.js} +2 -2
- package/dist/{vue-ui-funnel-CtLaACja.js → vue-ui-funnel-Ciy-udDH.js} +2 -2
- package/dist/{vue-ui-galaxy-WHdw5nGN.js → vue-ui-galaxy-DJ6_911b.js} +2 -2
- package/dist/{vue-ui-gauge-Bz5mj8lp.js → vue-ui-gauge-CJ5OH_wa.js} +2 -2
- package/dist/{vue-ui-geo-_xkrOV2I.js → vue-ui-geo-B-8UJvBt.js} +2 -2
- package/dist/{vue-ui-gizmo-DHJflepE.js → vue-ui-gizmo-BgdUIouA.js} +2 -2
- package/dist/{vue-ui-heatmap-ZwHHJWae.js → vue-ui-heatmap-ZdZ22EDj.js} +3 -3
- package/dist/{vue-ui-history-plot-CrjjEQ7W.js → vue-ui-history-plot-D1vpgQ8I.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-mNda_AP8.js → vue-ui-horizontal-bar-C1gYSz7t.js} +3 -3
- package/dist/{vue-ui-kpi-Dw9tUq7D.js → vue-ui-kpi-B0sOyO7s.js} +2 -2
- package/dist/{vue-ui-mini-loader-CPfZsqWP.js → vue-ui-mini-loader-DrROXJIX.js} +1 -1
- package/dist/{vue-ui-molecule-KD4eBVpd.js → vue-ui-molecule-C2wW_JqJ.js} +110 -109
- package/dist/{vue-ui-mood-radar-CFaoRvfp.js → vue-ui-mood-radar-Bgd30qfN.js} +2 -2
- package/dist/{vue-ui-nested-donuts-goSM60if.js → vue-ui-nested-donuts-CDtrnUDs.js} +2 -2
- package/dist/{vue-ui-onion-hzfd8mmr.js → vue-ui-onion-CeLy3EjT.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-KimsvB0z.js → vue-ui-parallel-coordinate-plot-rRuHDWD1.js} +2 -2
- package/dist/vue-ui-pattern-seed-lL5yS7nX.js +36 -0
- package/dist/{vue-ui-quadrant-BBCRnDi3.js → vue-ui-quadrant-CqcWTgh-.js} +2 -2
- package/dist/{vue-ui-quick-chart-Bestt35B.js → vue-ui-quick-chart-Bbdoq3j3.js} +2 -2
- package/dist/{vue-ui-radar-Cg-blCRM.js → vue-ui-radar-BF2eWMEl.js} +2 -2
- package/dist/{vue-ui-rating-DiLLVHq3.js → vue-ui-rating-C1f6x_PD.js} +1 -1
- package/dist/{vue-ui-relation-circle-C1hu5buI.js → vue-ui-relation-circle-D3jsasRD.js} +2 -2
- package/dist/{vue-ui-ridgeline-CihubDmE.js → vue-ui-ridgeline-Lhxi4BNZ.js} +2 -2
- package/dist/{vue-ui-rings-CuoGouLA.js → vue-ui-rings-D0tnHXEe.js} +2 -2
- package/dist/{vue-ui-scatter-D7XDXi9q.js → vue-ui-scatter-CIK8j5sT.js} +2 -2
- package/dist/{vue-ui-skeleton-Df9kRTno.js → vue-ui-skeleton-BD5hXmIt.js} +2 -2
- package/dist/{vue-ui-smiley-BioqmYwT.js → vue-ui-smiley-M5Gn70_Z.js} +1 -1
- package/dist/{vue-ui-spark-trend-CoIhut26.js → vue-ui-spark-trend-exj63CUB.js} +2 -2
- package/dist/{vue-ui-sparkbar-hzFfEGbB.js → vue-ui-sparkbar-D3UXwhmT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CUYvDR0P.js → vue-ui-sparkgauge-BsQY5Cwp.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-CUhHTlT2.js → vue-ui-sparkhistogram-4oHi6IHt.js} +2 -2
- package/dist/{vue-ui-sparkline-DLprVCRI.js → vue-ui-sparkline-BypShxpX.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-BAiNL0YG.js → vue-ui-sparkstackbar-8dpxOXr_.js} +2 -2
- package/dist/{vue-ui-stackbar-CW5vdT-C.js → vue-ui-stackbar-BKLo9L3P.js} +2 -2
- package/dist/{vue-ui-stackline-6Ck5Pcab.js → vue-ui-stackline-CSBogzBf.js} +2 -2
- package/dist/{vue-ui-strip-plot-DwWEI_oX.js → vue-ui-strip-plot-BQiNmxPk.js} +2 -2
- package/dist/{vue-ui-table-B4XcIRq_.js → vue-ui-table-CKlHkISC.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Da6sqBlI.js → vue-ui-table-heatmap-C6rSAGDu.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CD4I2kGA.js → vue-ui-table-sparkline-DHPemUVJ.js} +2 -2
- package/dist/{vue-ui-thermometer-BsedVnae.js → vue-ui-thermometer-Cy1oHbQ-.js} +2 -2
- package/dist/{vue-ui-timer-DkAprhb_.js → vue-ui-timer-DsYVGo-1.js} +2 -2
- package/dist/{vue-ui-tiremarks-DLP287zM.js → vue-ui-tiremarks-BvEM8AvM.js} +2 -2
- package/dist/{vue-ui-treemap-Cy-WXcRy.js → vue-ui-treemap-5qrvks6n.js} +2 -2
- package/dist/{vue-ui-waffle-CdrJhbWb.js → vue-ui-waffle-Uo1RM5Yy.js} +2 -2
- package/dist/{vue-ui-wheel-D8NMMTEo.js → vue-ui-wheel-Cood5EN7.js} +2 -2
- package/dist/{vue-ui-word-cloud-CD6qLQQ3.js → vue-ui-word-cloud-BrQKo4eQ.js} +2 -2
- package/dist/{vue-ui-world-DP1bH4Zv.js → vue-ui-world-Cjm9SD0h.js} +2 -2
- package/dist/{vue-ui-xy-CgwzrN2l.js → vue-ui-xy-BAlrZ3W9.js} +3 -3
- package/dist/{vue-ui-xy-canvas-DFhxqDzK.js → vue-ui-xy-canvas-BR-Qogdl.js} +2 -2
- package/package.json +5 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useCssVars as St, defineAsyncComponent as
|
|
2
|
-
import { o as Bt, q as Ut, j as Ee, t as Re, m as Zt, p as ze, n as Et, ag as Rt, X as zt, x as
|
|
3
|
-
import { u as jt } from "./useConfig-
|
|
1
|
+
import { useCssVars as St, defineAsyncComponent as g, computed as f, onMounted as It, ref as u, toRefs as Dt, watch as x, nextTick as Z, openBlock as d, createElementBlock as A, unref as a, normalizeStyle as E, normalizeClass as Le, createBlock as T, withCtx as i, renderSlot as r, normalizeProps as p, guardReactiveProps as h, createCommentVNode as k, createSlots as Be, createVNode as D, createElementVNode as _, Fragment as _t, renderList as Ft, resolveDynamicComponent as Nt, mergeProps as Lt, createTextVNode as Ue, toDisplayString as Ze } from "vue";
|
|
2
|
+
import { o as Bt, q as Ut, j as Ee, t as Re, m as Zt, p as ze, n as Et, ag as Rt, X as zt, x as Mt, A as Vt, s as Me, a0 as Ht, a1 as Gt, T as Wt, U as xt } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { u as jt } from "./useConfig-C40HvGpD.js";
|
|
4
4
|
import { u as Xt, B as Yt } from "./BaseScanner-BhhkKVoj.js";
|
|
5
5
|
import { u as qt } from "./usePrinter-CEpYU3r5.js";
|
|
6
6
|
import { u as Jt } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -20,10 +20,10 @@ const so = ["id"], no = {
|
|
|
20
20
|
}, ro = {
|
|
21
21
|
key: 2,
|
|
22
22
|
style: "width:100%;background:transparent;"
|
|
23
|
-
}, io = ["xmlns", "viewBox"], uo = ["width", "height"], co = ["id"], vo = ["stop-color"], po = ["stop-color"],
|
|
23
|
+
}, io = ["xmlns", "viewBox"], uo = ["width", "height"], co = ["id"], vo = ["stop-color"], po = ["stop-color"], ho = {
|
|
24
24
|
key: 4,
|
|
25
25
|
class: "vue-data-ui-watermark"
|
|
26
|
-
},
|
|
26
|
+
}, fo = {
|
|
27
27
|
key: 5,
|
|
28
28
|
"data-dom-to-png-ignore": "",
|
|
29
29
|
class: "reset-wrapper"
|
|
@@ -48,15 +48,15 @@ const so = ["id"], no = {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
emits: ["selectNode", "copyAlt"],
|
|
51
|
-
setup(
|
|
51
|
+
setup(Ve, { expose: He, emit: Ge }) {
|
|
52
52
|
St((t) => ({
|
|
53
|
-
|
|
53
|
+
v7e245e77: t.slicerColor
|
|
54
54
|
}));
|
|
55
|
-
const
|
|
55
|
+
const We = g(() => import("./Title-BeMKE1cj.js")), xe = g(() => import("./Tooltip-C8KGyqQk.js")), re = g(() => import("./BaseIcon-Cb3zzG6s.js")), je = g(() => import("./vue-ui-accordion-DDuJT1xA.js")), Xe = g(() => import("./DataTable-DT2kIdQ6.js")), Ye = g(() => import("./PenAndPaper-Ct3qJ4lA.js")), qe = g(() => import("./UserOptions-rW2fRf3V.js")), Je = g(() => import("./PackageVersion-DP_kfXUM.js")), Ke = g(() => import("./RecursiveLinks-BDwyYfP-.js")), Qe = g(() => import("./RecursiveLabels-BhQMS9Sm.js")), et = g(() => import("./RecursiveCircles-BE6GoMmo.js")), tt = g(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_molecule: ot } = jt(), { isThemeValid: lt, warnInvalidTheme: at } = Kt(), w = Ve, ie = Ge, ue = f(() => !!w.dataset && w.dataset.length);
|
|
56
56
|
It(() => {
|
|
57
57
|
ce();
|
|
58
58
|
});
|
|
59
|
-
const st =
|
|
59
|
+
const st = f(() => e.value.debug);
|
|
60
60
|
function ce() {
|
|
61
61
|
Bt(w.dataset) && Ut({
|
|
62
62
|
componentName: "VueUiMolecule",
|
|
@@ -64,7 +64,7 @@ const so = ["id"], no = {
|
|
|
64
64
|
debug: st.value
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const j = u(Ee()), X = u(!1), R = u(""), $ = u(null), ve = u(0), de = u(0), pe = u(0), F = u(null), Y = u(null), z = u(!1), M = u(!1), e = u(Q()), P = f(() => e.value.userOptions.useCursorPointer), nt = f(() => Re({
|
|
68
68
|
defaultConfig: {
|
|
69
69
|
userOptions: { show: !1 },
|
|
70
70
|
table: { show: !1 },
|
|
@@ -77,10 +77,10 @@ const so = ["id"], no = {
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
userConfig: e.value.skeletonConfig ?? {}
|
|
80
|
-
})), { loading:
|
|
80
|
+
})), { loading: q, FINAL_DATASET: J } = Xt({
|
|
81
81
|
...Dt(w),
|
|
82
82
|
FINAL_CONFIG: e,
|
|
83
|
-
prepareConfig:
|
|
83
|
+
prepareConfig: Q,
|
|
84
84
|
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
85
85
|
{
|
|
86
86
|
name: "_",
|
|
@@ -123,8 +123,8 @@ const so = ["id"], no = {
|
|
|
123
123
|
defaultConfig: e.value,
|
|
124
124
|
userConfig: nt.value
|
|
125
125
|
})
|
|
126
|
-
}), { userOptionsVisible:
|
|
127
|
-
function
|
|
126
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: fe } = Qt({ config: e.value }), { svgRef: N } = eo({ config: e.value.style.chart.title });
|
|
127
|
+
function Q() {
|
|
128
128
|
const t = ne({
|
|
129
129
|
userConfig: w.config,
|
|
130
130
|
defaultConfig: ot
|
|
@@ -145,19 +145,19 @@ const so = ["id"], no = {
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
x(() => w.config, (t) => {
|
|
148
|
-
e.value =
|
|
148
|
+
e.value = Q(), K.value = !e.value.userOptions.showOnChartHover, ce(), de.value += 1, pe.value += 1, c.value.showTable = e.value.table.show, c.value.showTooltip = e.value.style.chart.tooltip.show, c.value.showZoom = e.value.style.chart.zoom.show;
|
|
149
149
|
}, { deep: !0 });
|
|
150
150
|
const me = u(0), rt = () => {
|
|
151
151
|
me.value += 1;
|
|
152
152
|
};
|
|
153
|
-
x([() =>
|
|
154
|
-
t || (await Z(),
|
|
153
|
+
x([() => q.value, () => J.value], async ([t]) => {
|
|
154
|
+
t || (await Z(), C.value = ye(), await Z(), rt(), await Z(), bt({ x: 0, y: 0, width: 400, height: 400 }), ae(!1));
|
|
155
155
|
}, { flush: "post", deep: !1 });
|
|
156
|
-
const { isPrinting:
|
|
157
|
-
elementId: `cluster_${
|
|
156
|
+
const { isPrinting: ee, isImaging: te, generatePdf: ge, generateImage: Ce } = qt({
|
|
157
|
+
elementId: `cluster_${j.value}`,
|
|
158
158
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
159
159
|
options: e.value.userOptions.print
|
|
160
|
-
}), it =
|
|
160
|
+
}), it = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ut = f(() => Et(e.value.customPalette)), c = u({
|
|
161
161
|
showTable: e.value.table.show,
|
|
162
162
|
showDataLabels: !0,
|
|
163
163
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
@@ -175,7 +175,7 @@ const so = ["id"], no = {
|
|
|
175
175
|
return Array.isArray(t) && t.length > 0 && t[0].nodes ? be(t[0].nodes, l + 1) : l;
|
|
176
176
|
}
|
|
177
177
|
function ye() {
|
|
178
|
-
const t = be(
|
|
178
|
+
const t = be(J.value);
|
|
179
179
|
let l = 100, o = l;
|
|
180
180
|
for (let s = 0; s < t; s += 1)
|
|
181
181
|
l /= 1, o += l;
|
|
@@ -184,30 +184,30 @@ const so = ["id"], no = {
|
|
|
184
184
|
width: o
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
function ke(t, l = { x: -
|
|
187
|
+
const C = u(ye());
|
|
188
|
+
function ke(t, l = { x: -C.value.width / 2.43, y: C.value.height / 2 }, o = C.value.width / 1.1, s = 24, n = 0, v = 0, y = "#BBBBBB", W = 0) {
|
|
189
189
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
190
|
-
const Ot =
|
|
190
|
+
const Ot = Vt({
|
|
191
191
|
plot: l,
|
|
192
192
|
radius: o,
|
|
193
193
|
sides: t.length,
|
|
194
194
|
rotation: n
|
|
195
195
|
});
|
|
196
|
-
return t.forEach((
|
|
197
|
-
const Fe = Ot.coordinates[_e], Ne =
|
|
198
|
-
let se =
|
|
196
|
+
return t.forEach((m, _e) => {
|
|
197
|
+
const Fe = Ot.coordinates[_e], Ne = m.color ? (() => {
|
|
198
|
+
let se = Me(m.color);
|
|
199
199
|
return se.startsWith("#") ? se : `#${se}`;
|
|
200
200
|
})() : null;
|
|
201
201
|
let I;
|
|
202
|
-
Ne ? I = Ne :
|
|
203
|
-
|
|
202
|
+
Ne ? I = Ne : W === 0 ? I = y : W === 1 ? (I = ut.value[v] || ze[v] || y, v += 1) : I = y, m.polygonPath = { coordinates: [Fe] }, m.circleRadius = s, m.color = I, m.strokeWidth = Math.min(e.value.style.chart.links.strokeWidth / (W + 1), s / 2), m.uid = Ee(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = ke(
|
|
203
|
+
m.nodes,
|
|
204
204
|
Fe,
|
|
205
205
|
o / 2.9,
|
|
206
206
|
s / 2.2,
|
|
207
|
-
n + Math.PI * _e /
|
|
207
|
+
n + Math.PI * _e / m.nodes.length,
|
|
208
208
|
v,
|
|
209
209
|
I,
|
|
210
|
-
|
|
210
|
+
W + 1
|
|
211
211
|
));
|
|
212
212
|
}), t;
|
|
213
213
|
}
|
|
@@ -216,8 +216,8 @@ const so = ["id"], no = {
|
|
|
216
216
|
function o(n) {
|
|
217
217
|
n.forEach((v) => {
|
|
218
218
|
if (!v.color) return;
|
|
219
|
-
let
|
|
220
|
-
/^#?[0-9A-F]{6}$/i.test(
|
|
219
|
+
let y = v.color;
|
|
220
|
+
/^#?[0-9A-F]{6}$/i.test(y) || (y = Me(y)), y.startsWith("#") || (y = `#${y}`), l.add(y), Array.isArray(v.nodes) && v.nodes.length && o(v.nodes);
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
o(t);
|
|
@@ -227,29 +227,29 @@ const so = ["id"], no = {
|
|
|
227
227
|
s[n] = `gradient_${v}`;
|
|
228
228
|
}), s;
|
|
229
229
|
}
|
|
230
|
-
const vt =
|
|
231
|
-
const t = Rt(
|
|
230
|
+
const vt = f(() => ct(b.value)), b = f(() => {
|
|
231
|
+
const t = Rt(J.value);
|
|
232
232
|
return ke(t);
|
|
233
|
-
}),
|
|
233
|
+
}), V = u(null);
|
|
234
234
|
function dt(t) {
|
|
235
|
-
|
|
235
|
+
V.value = {
|
|
236
236
|
datapoint: t,
|
|
237
237
|
seriesIndex: -1,
|
|
238
|
-
series:
|
|
238
|
+
series: b.value,
|
|
239
239
|
config: e.value
|
|
240
240
|
};
|
|
241
241
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
242
|
-
if (
|
|
242
|
+
if (Wt(l) && xt(() => l({
|
|
243
243
|
seriesIndex: -1,
|
|
244
244
|
datapoint: t,
|
|
245
|
-
series:
|
|
245
|
+
series: b.value,
|
|
246
246
|
config: e.value
|
|
247
247
|
})))
|
|
248
248
|
R.value = l({
|
|
249
249
|
seriesIndex: -1,
|
|
250
250
|
// well, ok
|
|
251
251
|
datapoint: t,
|
|
252
|
-
series:
|
|
252
|
+
series: b.value,
|
|
253
253
|
config: e.value
|
|
254
254
|
});
|
|
255
255
|
else {
|
|
@@ -259,9 +259,9 @@ const so = ["id"], no = {
|
|
|
259
259
|
}
|
|
260
260
|
const H = u(null), L = u(null), Ae = u(null);
|
|
261
261
|
function pt(t) {
|
|
262
|
-
Ae.value = H.value, H.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: Ae.value || H.value, seriesIndex: -1 }), t ? (
|
|
262
|
+
Ae.value = H.value, H.value = t, t ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: Ae.value || H.value, seriesIndex: -1 }), t ? (X.value = !0, dt(t), L.value = t.uid) : (X.value = !1, R.value = "", L.value = null);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function ht(t) {
|
|
265
265
|
const l = [];
|
|
266
266
|
function o(s) {
|
|
267
267
|
s.forEach((n) => {
|
|
@@ -276,12 +276,12 @@ const so = ["id"], no = {
|
|
|
276
276
|
}
|
|
277
277
|
return o(t), l;
|
|
278
278
|
}
|
|
279
|
-
const
|
|
279
|
+
const ft = f(() => ht(b.value)), O = f(() => {
|
|
280
280
|
const t = [
|
|
281
281
|
e.value.table.translations.nodeName,
|
|
282
282
|
e.value.table.translations.details,
|
|
283
283
|
e.value.table.translations.ancestor
|
|
284
|
-
], l =
|
|
284
|
+
], l = ft.value.map((n, v) => [
|
|
285
285
|
{
|
|
286
286
|
color: n.color,
|
|
287
287
|
name: n.name
|
|
@@ -312,14 +312,14 @@ const so = ["id"], no = {
|
|
|
312
312
|
colNames: s
|
|
313
313
|
};
|
|
314
314
|
});
|
|
315
|
-
function
|
|
315
|
+
function oe(t = null) {
|
|
316
316
|
Z(() => {
|
|
317
317
|
const l = O.value.body.map((n, v) => [[n[0].name], [n[1]], [n[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...O.value.head]]].concat(l), s = Ht(o);
|
|
318
318
|
t ? t(s) : Gt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
function mt() {
|
|
322
|
-
return
|
|
322
|
+
return b.value;
|
|
323
323
|
}
|
|
324
324
|
const S = u(!1);
|
|
325
325
|
function we(t) {
|
|
@@ -338,14 +338,14 @@ const so = ["id"], no = {
|
|
|
338
338
|
c.value.showZoom = !c.value.showZoom;
|
|
339
339
|
}
|
|
340
340
|
const B = u(!1);
|
|
341
|
-
function
|
|
341
|
+
function le() {
|
|
342
342
|
B.value = !B.value;
|
|
343
343
|
}
|
|
344
|
-
const gt =
|
|
344
|
+
const gt = f(() => !B.value && c.value.showZoom), { viewBox: G, resetZoom: ae, isZoom: Ct, setInitialViewBox: bt } = lo(N, {
|
|
345
345
|
x: 0,
|
|
346
346
|
y: 0,
|
|
347
|
-
width: Math.max(10,
|
|
348
|
-
height: Math.max(10,
|
|
347
|
+
width: Math.max(10, C.value.width),
|
|
348
|
+
height: Math.max(10, C.value.height)
|
|
349
349
|
}, e.value.style.chart.zoom.speed, gt);
|
|
350
350
|
function yt(t) {
|
|
351
351
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: -1 }), ie("selectNode", t);
|
|
@@ -362,7 +362,7 @@ const so = ["id"], no = {
|
|
|
362
362
|
aspectRatio: s
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
const U =
|
|
365
|
+
const U = f(() => {
|
|
366
366
|
const t = e.value.table.useDialog && !e.value.table.show, l = c.value.showTable;
|
|
367
367
|
return {
|
|
368
368
|
component: t ? tt : je,
|
|
@@ -397,15 +397,15 @@ const so = ["id"], no = {
|
|
|
397
397
|
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
398
398
|
});
|
|
399
399
|
function Se() {
|
|
400
|
-
c.value.showTable = !1,
|
|
400
|
+
c.value.showTable = !1, Y.value && Y.value.setTableIconState(!1);
|
|
401
401
|
}
|
|
402
|
-
const At =
|
|
402
|
+
const At = f(() => e.value.style.chart.backgroundColor), wt = f(() => e.value.style.chart.title), { exportSvg: $t, getSvg: Tt } = Jt({
|
|
403
403
|
svg: N,
|
|
404
404
|
title: wt,
|
|
405
405
|
backgroundColor: At
|
|
406
406
|
});
|
|
407
407
|
async function Ie({ isCb: t }) {
|
|
408
|
-
|
|
408
|
+
M.value = !0, await Z();
|
|
409
409
|
try {
|
|
410
410
|
if (t) {
|
|
411
411
|
const { blob: l, url: o, text: s, dataUrl: n } = await Tt();
|
|
@@ -413,7 +413,7 @@ const so = ["id"], no = {
|
|
|
413
413
|
} else
|
|
414
414
|
await Promise.resolve($t());
|
|
415
415
|
} finally {
|
|
416
|
-
|
|
416
|
+
M.value = !1;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
function Pt(t) {
|
|
@@ -430,27 +430,27 @@ const so = ["id"], no = {
|
|
|
430
430
|
async function De() {
|
|
431
431
|
if (ie("copyAlt", {
|
|
432
432
|
config: e.value,
|
|
433
|
-
dataset:
|
|
433
|
+
dataset: b.value
|
|
434
434
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
435
435
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
438
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
439
439
|
config: e.value,
|
|
440
|
-
dataset:
|
|
440
|
+
dataset: b.value
|
|
441
441
|
}));
|
|
442
442
|
}
|
|
443
443
|
return He({
|
|
444
444
|
getData: mt,
|
|
445
445
|
getImage: kt,
|
|
446
446
|
generatePdf: ge,
|
|
447
|
-
generateCsv:
|
|
447
|
+
generateCsv: oe,
|
|
448
448
|
generateImage: Ce,
|
|
449
449
|
generateSvg: Ie,
|
|
450
450
|
toggleTable: $e,
|
|
451
451
|
toggleLabels: Te,
|
|
452
452
|
toggleTooltip: Pe,
|
|
453
|
-
toggleAnnotator:
|
|
453
|
+
toggleAnnotator: le,
|
|
454
454
|
toggleFullscreen: we,
|
|
455
455
|
toggleZoom: Oe,
|
|
456
456
|
copyAlt: De
|
|
@@ -459,11 +459,11 @@ const so = ["id"], no = {
|
|
|
459
459
|
ref: $,
|
|
460
460
|
class: Le(`vue-data-ui-component vue-ui-molecule ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
461
461
|
style: E(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
462
|
-
id: `cluster_${
|
|
462
|
+
id: `cluster_${j.value}`,
|
|
463
463
|
onMouseleave: l[2] || (l[2] = (o) => {
|
|
464
|
-
H.value = null, L.value = null, a(
|
|
464
|
+
H.value = null, L.value = null, a(he)(!1);
|
|
465
465
|
}),
|
|
466
|
-
onMouseenter: l[3] || (l[3] = () => a(
|
|
466
|
+
onMouseenter: l[3] || (l[3] = () => a(he)(!0))
|
|
467
467
|
}, [
|
|
468
468
|
e.value.userOptions.buttons.annotator && a(N) ? (d(), T(a(Ye), {
|
|
469
469
|
key: 0,
|
|
@@ -472,31 +472,31 @@ const so = ["id"], no = {
|
|
|
472
472
|
color: e.value.style.chart.color,
|
|
473
473
|
active: B.value,
|
|
474
474
|
isCursorPointer: P.value,
|
|
475
|
-
onClose:
|
|
475
|
+
onClose: le
|
|
476
476
|
}, {
|
|
477
477
|
"annotator-action-close": i(() => [
|
|
478
478
|
r(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
479
479
|
]),
|
|
480
480
|
"annotator-action-color": i(({ color: o }) => [
|
|
481
|
-
r(t.$slots, "annotator-action-color", p(
|
|
481
|
+
r(t.$slots, "annotator-action-color", p(h({ color: o })), void 0, !0)
|
|
482
482
|
]),
|
|
483
483
|
"annotator-action-draw": i(({ mode: o }) => [
|
|
484
|
-
r(t.$slots, "annotator-action-draw", p(
|
|
484
|
+
r(t.$slots, "annotator-action-draw", p(h({ mode: o })), void 0, !0)
|
|
485
485
|
]),
|
|
486
486
|
"annotator-action-undo": i(({ disabled: o }) => [
|
|
487
|
-
r(t.$slots, "annotator-action-undo", p(
|
|
487
|
+
r(t.$slots, "annotator-action-undo", p(h({ disabled: o })), void 0, !0)
|
|
488
488
|
]),
|
|
489
489
|
"annotator-action-redo": i(({ disabled: o }) => [
|
|
490
|
-
r(t.$slots, "annotator-action-redo", p(
|
|
490
|
+
r(t.$slots, "annotator-action-redo", p(h({ disabled: o })), void 0, !0)
|
|
491
491
|
]),
|
|
492
492
|
"annotator-action-delete": i(({ disabled: o }) => [
|
|
493
|
-
r(t.$slots, "annotator-action-delete", p(
|
|
493
|
+
r(t.$slots, "annotator-action-delete", p(h({ disabled: o })), void 0, !0)
|
|
494
494
|
]),
|
|
495
495
|
_: 3
|
|
496
496
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : k("", !0),
|
|
497
497
|
it.value ? (d(), A("div", no, null, 512)) : k("", !0),
|
|
498
498
|
e.value.style.chart.title.text ? (d(), A("div", ro, [
|
|
499
|
-
(d(), T(a(
|
|
499
|
+
(d(), T(a(We), {
|
|
500
500
|
key: `title_${de.value}`,
|
|
501
501
|
config: {
|
|
502
502
|
title: {
|
|
@@ -510,15 +510,15 @@ const so = ["id"], no = {
|
|
|
510
510
|
}
|
|
511
511
|
}, null, 8, ["config"]))
|
|
512
512
|
])) : k("", !0),
|
|
513
|
-
e.value.userOptions.show && ue.value && (a(
|
|
513
|
+
e.value.userOptions.show && ue.value && (a(fe) || a(K)) ? (d(), T(a(qe), {
|
|
514
514
|
ref_key: "userOptionsRef",
|
|
515
|
-
ref:
|
|
515
|
+
ref: Y,
|
|
516
516
|
key: `user_options_${ve.value}`,
|
|
517
517
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
518
518
|
color: e.value.style.chart.color,
|
|
519
|
-
isPrinting: a(
|
|
520
|
-
isImaging: a(
|
|
521
|
-
uid:
|
|
519
|
+
isPrinting: a(ee),
|
|
520
|
+
isImaging: a(te),
|
|
521
|
+
uid: j.value,
|
|
522
522
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
523
523
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
524
524
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -542,23 +542,23 @@ const so = ["id"], no = {
|
|
|
542
542
|
isCursorPointer: P.value,
|
|
543
543
|
onToggleFullscreen: we,
|
|
544
544
|
onGeneratePdf: a(ge),
|
|
545
|
-
onGenerateCsv:
|
|
545
|
+
onGenerateCsv: oe,
|
|
546
546
|
onGenerateImage: Pt,
|
|
547
547
|
onGenerateSvg: Ie,
|
|
548
548
|
onToggleTable: $e,
|
|
549
549
|
onToggleLabels: Te,
|
|
550
550
|
onToggleTooltip: Pe,
|
|
551
|
-
onToggleAnnotator:
|
|
551
|
+
onToggleAnnotator: le,
|
|
552
552
|
onToggleZoom: Oe,
|
|
553
553
|
onCopyAlt: De,
|
|
554
554
|
style: E({
|
|
555
|
-
visibility: a(
|
|
555
|
+
visibility: a(fe) ? a(K) ? "visible" : "hidden" : "visible"
|
|
556
556
|
})
|
|
557
557
|
}, Be({ _: 2 }, [
|
|
558
558
|
t.$slots.menuIcon ? {
|
|
559
559
|
name: "menuIcon",
|
|
560
560
|
fn: i(({ isOpen: o, color: s }) => [
|
|
561
|
-
r(t.$slots, "menuIcon", p(
|
|
561
|
+
r(t.$slots, "menuIcon", p(h({ isOpen: o, color: s })), void 0, !0)
|
|
562
562
|
]),
|
|
563
563
|
key: "0"
|
|
564
564
|
} : void 0,
|
|
@@ -614,28 +614,28 @@ const so = ["id"], no = {
|
|
|
614
614
|
t.$slots.optionFullscreen ? {
|
|
615
615
|
name: "optionFullscreen",
|
|
616
616
|
fn: i(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
617
|
-
r(t.$slots, "optionFullscreen", p(
|
|
617
|
+
r(t.$slots, "optionFullscreen", p(h({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
618
618
|
]),
|
|
619
619
|
key: "8"
|
|
620
620
|
} : void 0,
|
|
621
621
|
t.$slots.optionAnnotator ? {
|
|
622
622
|
name: "optionAnnotator",
|
|
623
623
|
fn: i(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
624
|
-
r(t.$slots, "optionAnnotator", p(
|
|
624
|
+
r(t.$slots, "optionAnnotator", p(h({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
625
625
|
]),
|
|
626
626
|
key: "9"
|
|
627
627
|
} : void 0,
|
|
628
628
|
t.$slots.optionZoom ? {
|
|
629
629
|
name: "optionZoom",
|
|
630
630
|
fn: i(({ toggleZoom: o, isZoomLocked: s }) => [
|
|
631
|
-
r(t.$slots, "optionZoom", p(
|
|
631
|
+
r(t.$slots, "optionZoom", p(h({ toggleZoom: o, isZoomLocked: s })), void 0, !0)
|
|
632
632
|
]),
|
|
633
633
|
key: "10"
|
|
634
634
|
} : void 0,
|
|
635
635
|
t.$slots.optionAltCopy ? {
|
|
636
636
|
name: "optionAltCopy",
|
|
637
637
|
fn: i(({ altCopy: o }) => [
|
|
638
|
-
r(t.$slots, "optionAltCopy", p(
|
|
638
|
+
r(t.$slots, "optionAltCopy", p(h({ altCopy: o })), void 0, !0)
|
|
639
639
|
]),
|
|
640
640
|
key: "11"
|
|
641
641
|
} : void 0
|
|
@@ -654,8 +654,8 @@ const so = ["id"], no = {
|
|
|
654
654
|
key: 0,
|
|
655
655
|
x: 0,
|
|
656
656
|
y: 0,
|
|
657
|
-
width:
|
|
658
|
-
height:
|
|
657
|
+
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
658
|
+
height: C.value.height <= 0 ? 10 : C.value.height,
|
|
659
659
|
style: {
|
|
660
660
|
pointerEvents: "none"
|
|
661
661
|
}
|
|
@@ -673,7 +673,7 @@ const so = ["id"], no = {
|
|
|
673
673
|
}, [
|
|
674
674
|
_("stop", {
|
|
675
675
|
offset: "0%",
|
|
676
|
-
"stop-color": a(
|
|
676
|
+
"stop-color": a(Mt)(o, 0.5)
|
|
677
677
|
}, null, 8, vo),
|
|
678
678
|
_("stop", {
|
|
679
679
|
offset: "100%",
|
|
@@ -682,12 +682,13 @@ const so = ["id"], no = {
|
|
|
682
682
|
], 8, co))), 256))
|
|
683
683
|
]),
|
|
684
684
|
D(a(Ke), {
|
|
685
|
-
dataset:
|
|
685
|
+
dataset: b.value,
|
|
686
686
|
color: e.value.style.chart.links.stroke,
|
|
687
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
688
|
-
|
|
687
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
688
|
+
useChildColor: e.value.style.chart.links.useChildColor
|
|
689
|
+
}, null, 8, ["dataset", "color", "backgroundColor", "useChildColor"]),
|
|
689
690
|
D(a(et), {
|
|
690
|
-
dataset:
|
|
691
|
+
dataset: b.value,
|
|
691
692
|
hoveredUid: L.value,
|
|
692
693
|
stroke: e.value.style.chart.nodes.stroke,
|
|
693
694
|
strokeHovered: e.value.style.chart.nodes.strokeHovered,
|
|
@@ -695,29 +696,29 @@ const so = ["id"], no = {
|
|
|
695
696
|
onHover: pt
|
|
696
697
|
}, {
|
|
697
698
|
node: i(({ node: o }) => [
|
|
698
|
-
r(t.$slots, "node", p(
|
|
699
|
+
r(t.$slots, "node", p(h({ node: o })), void 0, !0)
|
|
699
700
|
]),
|
|
700
701
|
_: 3
|
|
701
702
|
}, 8, ["dataset", "hoveredUid", "stroke", "strokeHovered"]),
|
|
702
|
-
c.value.showDataLabels && !a(
|
|
703
|
+
c.value.showDataLabels && !a(q) ? (d(), T(a(Qe), {
|
|
703
704
|
key: 1,
|
|
704
|
-
dataset:
|
|
705
|
+
dataset: b.value,
|
|
705
706
|
color: e.value.style.chart.color,
|
|
706
707
|
hoveredUid: L.value
|
|
707
708
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : k("", !0),
|
|
708
709
|
r(t.$slots, "svg", {
|
|
709
710
|
svg: {
|
|
710
|
-
...
|
|
711
|
-
isPrintingImg: a(
|
|
712
|
-
isPrintingSvg:
|
|
711
|
+
...C.value,
|
|
712
|
+
isPrintingImg: a(ee) | a(te) | z.value,
|
|
713
|
+
isPrintingSvg: M.value
|
|
713
714
|
}
|
|
714
715
|
}, void 0, !0)
|
|
715
716
|
], 14, io)),
|
|
716
|
-
t.$slots.watermark ? (d(), A("div",
|
|
717
|
-
r(t.$slots, "watermark", p(
|
|
717
|
+
t.$slots.watermark ? (d(), A("div", ho, [
|
|
718
|
+
r(t.$slots, "watermark", p(h({ isPrinting: a(ee) || a(te) || z.value || M.value })), void 0, !0)
|
|
718
719
|
])) : k("", !0),
|
|
719
|
-
a(Ct) ? (d(), A("div",
|
|
720
|
-
r(t.$slots, "reset-action", { reset: a(
|
|
720
|
+
a(Ct) ? (d(), A("div", fo, [
|
|
721
|
+
r(t.$slots, "reset-action", { reset: a(ae) }, () => [
|
|
721
722
|
_("button", {
|
|
722
723
|
"data-cy-reset": "",
|
|
723
724
|
tabindex: "0",
|
|
@@ -727,7 +728,7 @@ const so = ["id"], no = {
|
|
|
727
728
|
background: e.value.style.chart.backgroundColor,
|
|
728
729
|
cursor: P.value ? "pointer" : "default"
|
|
729
730
|
}),
|
|
730
|
-
onClick: l[0] || (l[0] = (o) => a(
|
|
731
|
+
onClick: l[0] || (l[0] = (o) => a(ae)(!0))
|
|
731
732
|
}, [
|
|
732
733
|
D(a(re), {
|
|
733
734
|
name: "refresh",
|
|
@@ -739,9 +740,9 @@ const so = ["id"], no = {
|
|
|
739
740
|
t.$slots.source ? (d(), A("div", mo, [
|
|
740
741
|
r(t.$slots, "source", {}, void 0, !0)
|
|
741
742
|
], 512)) : k("", !0),
|
|
742
|
-
D(a(
|
|
743
|
+
D(a(xe), {
|
|
743
744
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
744
|
-
show: c.value.showTooltip &&
|
|
745
|
+
show: c.value.showTooltip && X.value,
|
|
745
746
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
746
747
|
color: e.value.style.chart.tooltip.color,
|
|
747
748
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -761,13 +762,13 @@ const so = ["id"], no = {
|
|
|
761
762
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
762
763
|
}, {
|
|
763
764
|
"tooltip-before": i(() => [
|
|
764
|
-
r(t.$slots, "tooltip-before", p(
|
|
765
|
+
r(t.$slots, "tooltip-before", p(h({ ...V.value })), void 0, !0)
|
|
765
766
|
]),
|
|
766
767
|
tooltip: i(() => [
|
|
767
|
-
r(t.$slots, "tooltip", p(
|
|
768
|
+
r(t.$slots, "tooltip", p(h({ ...V.value })), void 0, !0)
|
|
768
769
|
]),
|
|
769
770
|
"tooltip-after": i(() => [
|
|
770
|
-
r(t.$slots, "tooltip-after", p(
|
|
771
|
+
r(t.$slots, "tooltip-after", p(h({ ...V.value })), void 0, !0)
|
|
771
772
|
]),
|
|
772
773
|
_: 3
|
|
773
774
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -815,7 +816,7 @@ const so = ["id"], no = {
|
|
|
815
816
|
_("button", {
|
|
816
817
|
tabindex: "0",
|
|
817
818
|
class: "vue-ui-user-options-button",
|
|
818
|
-
onClick: l[1] || (l[1] = (o) =>
|
|
819
|
+
onClick: l[1] || (l[1] = (o) => oe(e.value.userOptions.callbacks.csv)),
|
|
819
820
|
style: E({ cursor: P.value ? "pointer" : "default" })
|
|
820
821
|
}, [
|
|
821
822
|
D(a(re), {
|
|
@@ -828,11 +829,11 @@ const so = ["id"], no = {
|
|
|
828
829
|
} : void 0
|
|
829
830
|
]), 1040)) : k("", !0),
|
|
830
831
|
r(t.$slots, "skeleton", {}, () => [
|
|
831
|
-
a(
|
|
832
|
+
a(q) ? (d(), T(Yt, { key: 0 })) : k("", !0)
|
|
832
833
|
], !0)
|
|
833
834
|
], 46, so));
|
|
834
835
|
}
|
|
835
|
-
}, No = /* @__PURE__ */ ao(Co, [["__scopeId", "data-v-
|
|
836
|
+
}, No = /* @__PURE__ */ ao(Co, [["__scopeId", "data-v-56428ce1"]]);
|
|
836
837
|
export {
|
|
837
838
|
No as default
|
|
838
839
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as N, ref as i, computed as d, toRefs as Mt, onMounted as Nt, watch as Be, openBlock as u, createElementBlock as m, normalizeStyle as B, normalizeClass as Ee, createElementVNode as n, toDisplayString as E, createBlock as k, createCommentVNode as f, unref as l, withCtx as y, renderSlot as v, normalizeProps as C, guardReactiveProps as w, createVNode as te, createSlots as Re, Fragment as Ve, renderList as Ke, Teleport as Lt, resolveDynamicComponent as Dt, mergeProps as It, createTextVNode as Ue, nextTick as fe } from "vue";
|
|
2
2
|
import { j as Ft, t as je, o as Bt, q as We, A as Et, k as he, l as R, X as Rt, u as T, v as Vt, ah as Kt, a0 as Ut, a1 as jt } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Wt, u as zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Gt } from "./useConfig-
|
|
4
|
+
import { u as Gt } from "./useConfig-C40HvGpD.js";
|
|
5
5
|
import { u as Ht, B as Xt } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as qt } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as Yt } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -41,7 +41,7 @@ const so = ["id"], ro = ["id"], uo = ["id"], io = { style: { position: "relative
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["copyAlt"],
|
|
43
43
|
setup(ze, { expose: Ge, emit: He }) {
|
|
44
|
-
const L = N(() => import("./BaseIcon-Cb3zzG6s.js")), Xe = N(() => import("./vue-ui-accordion-
|
|
44
|
+
const L = N(() => import("./BaseIcon-Cb3zzG6s.js")), Xe = N(() => import("./vue-ui-accordion-DDuJT1xA.js")), qe = N(() => import("./DataTable-DT2kIdQ6.js")), Ye = N(() => import("./PenAndPaper-Ct3qJ4lA.js")), Je = N(() => import("./UserOptions-rW2fRf3V.js")), Qe = N(() => import("./PackageVersion-DP_kfXUM.js")), Ze = N(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_mood_radar: et } = Gt(), { isThemeValid: tt, warnInvalidTheme: ot } = Jt(), $ = ze, at = He, b = i(Ft()), A = i(null), p = i(null), pe = i(null), lt = i(0), nt = i(0), me = i(0), be = i(null), ke = i(null), V = i(null), Y = i(null), Ce = i(null), we = i(!1), K = i(null), oe = i(null), J = i(!1), Q = i(!1), O = i(null), ae = i(!1), $e = d(() => !!$.dataset && Object.keys($.dataset).length), e = i(se()), D = d(() => e.value.userOptions.useCursorPointer), st = d(() => je({
|
|
45
45
|
defaultConfig: {
|
|
46
46
|
userOptions: { show: !1 },
|
|
47
47
|
table: { show: !1 },
|
|
@@ -2,7 +2,7 @@ import { defineAsyncComponent as G, computed as $, ref as h, toRefs as Ol, watch
|
|
|
2
2
|
import { j as zl, t as zt, m as Bl, p as qe, o as El, q as oe, n as Ul, a8 as Y, s as Rl, a4 as je, k as Le, l as D, X as Gl, u as Yl, a as Bt, a6 as Et, a7 as xe, B as Ut, T as Rt, a0 as Wl, a1 as Kl, U as Xl, ai as Gt, K as Je } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { b as Hl } from "./labelUtils-CqTHa20R.js";
|
|
4
4
|
import { t as ql, u as jl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Jl } from "./useConfig-
|
|
5
|
+
import { u as Jl } from "./useConfig-C40HvGpD.js";
|
|
6
6
|
import { u as Ql, B as Zl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
7
|
import { u as ea } from "./usePrinter-CEpYU3r5.js";
|
|
8
8
|
import { u as ta } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -46,7 +46,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
48
48
|
setup(Yt, { expose: Wt, emit: Kt }) {
|
|
49
|
-
const Xt = G(() => import("./Tooltip-C8KGyqQk.js")), Ht = G(() => import("./BaseIcon-Cb3zzG6s.js")), qt = G(() => import("./vue-ui-accordion-
|
|
49
|
+
const Xt = G(() => import("./Tooltip-C8KGyqQk.js")), Ht = G(() => import("./BaseIcon-Cb3zzG6s.js")), qt = G(() => import("./vue-ui-accordion-DDuJT1xA.js")), jt = G(() => import("./DataTable-DT2kIdQ6.js")), Jt = G(() => import("./UserOptions-rW2fRf3V.js")), Qt = G(() => import("./PenAndPaper-Ct3qJ4lA.js")), Zt = G(() => import("./PackageVersion-DP_kfXUM.js")), el = G(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_nested_donuts: tl } = Jl(), { isThemeValid: ll, warnInvalidTheme: al } = la(), I = Yt, Te = $({
|
|
50
50
|
get() {
|
|
51
51
|
return !!I.dataset && I.dataset.length;
|
|
52
52
|
},
|