vue-data-ui 3.4.9 → 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 +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.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-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.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-D73uIOPm.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-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.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-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- 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-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.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-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.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-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as So, u as
|
|
4
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as G, ref as u, computed as h, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as y, openBlock as c, unref as r, normalizeStyle as U, normalizeClass as Ot, createBlock as J, createCommentVNode as T, createElementVNode as Y, createVNode as Oe, withCtx as d, renderSlot as f, normalizeProps as M, guardReactiveProps as B, createSlots as _t, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
|
|
2
|
+
import { c as _e, t as mo, o as Et, f as yo, b as bo, p as z, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as So, u as Oo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as _o, a as Pt } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as No } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as Fo, B as Eo } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Io } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,7 +9,7 @@ import { u as Po } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as Mo } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { t as Bo } from "./themes-AUNCOb2G.js";
|
|
11
11
|
import Do from "./Legend-G6GMcdAc.js";
|
|
12
|
-
import Lo from "./Title-
|
|
12
|
+
import Lo from "./Title-isbiM8i8.js";
|
|
13
13
|
import zo from "./img-BecE5qXd.js";
|
|
14
14
|
import { _ as Ro } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Ho = ["id"], Wo = {
|
|
@@ -37,13 +37,13 @@ const Ho = ["id"], Wo = {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(Mt, { expose: Bt }) {
|
|
40
|
-
const Dt =
|
|
40
|
+
const Dt = G(() => import("./Tooltip-oWCO1HKy.js")), Lt = G(() => import("./BaseIcon-BmMbm4d0.js")), zt = G(() => import("./vue-ui-accordion-CqhVCfc2.js")), Rt = G(() => import("./DataTable-BT7VF2ua.js")), Ht = G(() => import("./PenAndPaper-SZQIAgkg.js")), Wt = G(() => import("./UserOptions-CGnQt6Fd.js")), Gt = G(() => import("./PackageVersion-DQvyATVa.js")), Ut = G(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = _o(), E = Mt, j = u(_e()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = h(() => !!E.dataset && E.dataset.length);
|
|
41
41
|
vo(() => {
|
|
42
42
|
ot.value = !0, nt();
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
function at(
|
|
46
|
-
|
|
44
|
+
const V = u(!1);
|
|
45
|
+
function at(o) {
|
|
46
|
+
V.value = o, Je.value += 1;
|
|
47
47
|
}
|
|
48
48
|
const e = u(ze()), { loading: Me, FINAL_DATASET: ge, manualLoading: Be } = Fo({
|
|
49
49
|
...ho(E),
|
|
@@ -89,59 +89,59 @@ const Ho = ["id"], Wo = {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
|
-
}), jt =
|
|
92
|
+
}), jt = h(() => !!e.value.debug);
|
|
93
93
|
function nt() {
|
|
94
94
|
if (Et(E.dataset) && (yo({
|
|
95
95
|
componentName: "VueUiFlow",
|
|
96
96
|
type: "dataset",
|
|
97
97
|
debug: jt.value
|
|
98
98
|
}), Be.value = !0), Et(E.dataset) || (Be.value = e.value.loading), e.value.responsive) {
|
|
99
|
-
const
|
|
100
|
-
const { width: l, height:
|
|
99
|
+
const o = So(() => {
|
|
100
|
+
const { width: l, height: t } = Oo({
|
|
101
101
|
chart: I.value,
|
|
102
102
|
title: e.value.style.chart.title.text ? et.value : null,
|
|
103
103
|
legend: e.value.style.chart.legend.show ? Ze.value : null,
|
|
104
104
|
source: tt.value
|
|
105
105
|
});
|
|
106
106
|
requestAnimationFrame(() => {
|
|
107
|
-
ut.value = l, it.value =
|
|
107
|
+
ut.value = l, it.value = t;
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
|
-
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(
|
|
110
|
+
oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = I.value.parentNode, oe.value.observe(pe.value);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const { userOptionsVisible: De, setUserOptionsVisibility: st, keepUserOptionState: rt } = Po({ config: e.value }), { svgRef: Le } = Mo({
|
|
114
114
|
config: e.value.style.chart.title
|
|
115
115
|
});
|
|
116
116
|
function ze() {
|
|
117
|
-
const
|
|
117
|
+
const o = Pt({
|
|
118
118
|
userConfig: E.config,
|
|
119
119
|
defaultConfig: Yt
|
|
120
120
|
});
|
|
121
|
-
let l =
|
|
122
|
-
return
|
|
121
|
+
let l = o;
|
|
122
|
+
return o.theme ? l = {
|
|
123
123
|
...Pt({
|
|
124
|
-
userConfig: Bo.vue_ui_flow[
|
|
125
|
-
defaultConfig:
|
|
124
|
+
userConfig: Bo.vue_ui_flow[o.theme] || E.config,
|
|
125
|
+
defaultConfig: o
|
|
126
126
|
}),
|
|
127
|
-
customPalette: bo[
|
|
128
|
-
} : l =
|
|
127
|
+
customPalette: bo[o.theme] || z
|
|
128
|
+
} : l = o, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
|
|
129
129
|
}
|
|
130
130
|
const ut = u(e.value.style.chart.width), it = u(e.value.style.chart.height);
|
|
131
131
|
Se(
|
|
132
132
|
() => E.config,
|
|
133
|
-
(
|
|
133
|
+
(o) => {
|
|
134
134
|
Me.value || (e.value = ze()), De.value = !e.value.userOptions.showOnChartHover, nt(), Qe.value += 1, S.value.showTable = e.value.table.show;
|
|
135
135
|
},
|
|
136
136
|
{ deep: !0 }
|
|
137
|
-
), Se(() => E.dataset, (
|
|
138
|
-
Array.isArray(
|
|
137
|
+
), Se(() => E.dataset, (o) => {
|
|
138
|
+
Array.isArray(o) && o.length > 0 && (Be.value = !1);
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const { isPrinting: ct, isImaging: vt, generatePdf: dt, generateImage: ht } = No({
|
|
141
|
-
elementId: `flow_${
|
|
141
|
+
elementId: `flow_${j.value}`,
|
|
142
142
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
143
143
|
options: e.value.userOptions.print
|
|
144
|
-
}), Vt =
|
|
144
|
+
}), Vt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = h(() => Co(e.value.customPalette)), ye = h(() => e.value.style.chart.nodes.width), S = u({
|
|
145
145
|
showTable: e.value.table.show,
|
|
146
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
147
147
|
});
|
|
@@ -151,14 +151,14 @@ const Ho = ["id"], Wo = {
|
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
152
152
|
};
|
|
153
153
|
}, { immediate: !0 });
|
|
154
|
-
const ft =
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
x(
|
|
158
|
-
|
|
154
|
+
const ft = h(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
|
|
155
|
+
o[0],
|
|
156
|
+
o[1],
|
|
157
|
+
x(o[2]),
|
|
158
|
+
o[3] ? ko(o[3]) : me.value[l] || me.value[l % me.value.length] || z[l] || z[l % z.length]
|
|
159
159
|
]));
|
|
160
|
-
function Xt(
|
|
161
|
-
const l = {},
|
|
160
|
+
function Xt(o) {
|
|
161
|
+
const l = {}, t = {};
|
|
162
162
|
function a(n, i) {
|
|
163
163
|
l[n] || (l[n] = {
|
|
164
164
|
level: null,
|
|
@@ -166,147 +166,147 @@ const Ho = ["id"], Wo = {
|
|
|
166
166
|
outflow: 0,
|
|
167
167
|
children: [],
|
|
168
168
|
color: null,
|
|
169
|
-
uid:
|
|
170
|
-
}), l[n].level === null && (l[n].level = i),
|
|
169
|
+
uid: _e()
|
|
170
|
+
}), l[n].level === null && (l[n].level = i), t[i] || (t[i] = []), t[i].includes(n) || t[i].push(n);
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
a(n,
|
|
172
|
+
o.forEach(([n, i, p]) => {
|
|
173
|
+
const g = l[n]?.level ?? 0, _ = g + 1;
|
|
174
|
+
a(n, g), a(i, _), l[n].children.push({ target: i, value: p }), l[n].outflow += p, l[i].inflow += p;
|
|
175
175
|
});
|
|
176
|
-
const s = new Set(
|
|
177
|
-
|
|
178
|
-
ue[n] = me.value[i] ||
|
|
176
|
+
const s = new Set(o.map(([n]) => n)), $ = new Set(o.map(([, n]) => n)), Z = Array.from(s).filter((n) => !$.has(n)), ue = {};
|
|
177
|
+
Z.forEach((n, i) => {
|
|
178
|
+
ue[n] = me.value[i] || z[i % z.length];
|
|
179
179
|
});
|
|
180
180
|
const ie = {};
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
o.forEach(([n, i, p, g]) => {
|
|
182
|
+
g && (ie[n] = g, ie[i] = g);
|
|
183
183
|
}), Object.keys(l).forEach((n, i) => {
|
|
184
|
-
const
|
|
185
|
-
l[n].color = ie[n] ||
|
|
184
|
+
const p = e.value.nodeCategories?.[n], g = p ? e.value.nodeCategoryColors?.[p] : null;
|
|
185
|
+
l[n].color = ie[n] || g || (Z.includes(n) ? ue[n] : null) || z[i % z.length];
|
|
186
186
|
}), Object.keys(l).forEach((n) => {
|
|
187
187
|
l[n].value = Math.max(l[n].inflow, l[n].outflow);
|
|
188
188
|
});
|
|
189
|
-
const Ae = ae.value, Ye = mt.value.width,
|
|
189
|
+
const Ae = ae.value, Ye = mt.value.width, ee = mt.value.height, L = Object.keys(t).map(Number).sort((n, i) => n - i), Te = L.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), D = Number(
|
|
190
190
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
191
191
|
), ce = Number(e.value.style.chart.nodes.minHeight || 0);
|
|
192
192
|
function v(n) {
|
|
193
|
-
const i =
|
|
194
|
-
if (!
|
|
195
|
-
const
|
|
196
|
-
let k = 0, N = i.map((
|
|
197
|
-
for (let
|
|
198
|
-
const F =
|
|
193
|
+
const i = t[n], p = i.length;
|
|
194
|
+
if (!p) return 1 / 0;
|
|
195
|
+
const g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0);
|
|
196
|
+
let k = 0, N = i.map((m) => l[m].value || 0), C = N.reduce((m, F) => m + F, 0);
|
|
197
|
+
for (let m = 0; m < 12; m += 1) {
|
|
198
|
+
const F = C > 0 ? (_ - k) / C : 0, H = [];
|
|
199
199
|
for (let P = 0; P < N.length; P += 1) {
|
|
200
|
-
const
|
|
201
|
-
|
|
200
|
+
const W = N[P];
|
|
201
|
+
W < 0 || W * F < R && H.push(P);
|
|
202
202
|
}
|
|
203
|
-
if (!
|
|
204
|
-
for (const P of
|
|
205
|
-
k +=
|
|
206
|
-
if (
|
|
203
|
+
if (!H.length) return Math.max(0, F);
|
|
204
|
+
for (const P of H)
|
|
205
|
+
k += R, C -= N[P], N[P] = -1;
|
|
206
|
+
if (C <= 0) return 0;
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return C > 0 ? Math.max(0, (_ - k) / C) : 0;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const i =
|
|
213
|
-
(
|
|
214
|
-
), N = k.reduce((
|
|
215
|
-
let
|
|
216
|
-
i.forEach((
|
|
217
|
-
const
|
|
218
|
-
|
|
210
|
+
const b = L.map(v), q = b.length ? Math.min(...b) : 0, K = {};
|
|
211
|
+
L.forEach((n) => {
|
|
212
|
+
const i = t[n], p = i.length, g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0), k = i.map(
|
|
213
|
+
(m) => Math.max(R, (l[m].value || 0) * q)
|
|
214
|
+
), N = k.reduce((m, F) => m + F, 0) + g;
|
|
215
|
+
let C = Math.max(0, (ee - N) / 2);
|
|
216
|
+
i.forEach((m, F) => {
|
|
217
|
+
const H = k[F], P = Ae.left + n * je, W = C;
|
|
218
|
+
K[m] = {
|
|
219
219
|
x: P,
|
|
220
|
-
y:
|
|
221
|
-
absoluteY:
|
|
222
|
-
height:
|
|
220
|
+
y: W,
|
|
221
|
+
absoluteY: W,
|
|
222
|
+
height: H,
|
|
223
223
|
i: F,
|
|
224
|
-
color: l[
|
|
225
|
-
value: l[
|
|
226
|
-
id:
|
|
227
|
-
},
|
|
224
|
+
color: l[m].color,
|
|
225
|
+
value: l[m].value,
|
|
226
|
+
id: _e()
|
|
227
|
+
}, C += H, F < p - 1 && (C += D);
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
const Tt = [], ve = Ae.top, Ve = {}, Xe = {};
|
|
231
231
|
Object.keys(l).forEach((n) => {
|
|
232
|
-
Ve[n] =
|
|
232
|
+
Ve[n] = K[n]?.y ?? 0, Xe[n] = 0;
|
|
233
233
|
});
|
|
234
234
|
const so = 1e-6, ro = 0.25;
|
|
235
|
-
return
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
if (!
|
|
239
|
-
let
|
|
240
|
-
|
|
241
|
-
const
|
|
242
|
-
let xe = xt +
|
|
235
|
+
return L.forEach((n) => {
|
|
236
|
+
t[n].forEach((p) => {
|
|
237
|
+
const g = l[p], _ = K[p];
|
|
238
|
+
if (!g.children || !g.children.length) return;
|
|
239
|
+
let R = _.y;
|
|
240
|
+
g.children.forEach(({ target: k, value: N }) => {
|
|
241
|
+
const C = K[k], m = l[k], F = g.outflow > 0 ? N / g.outflow : 0, H = m.inflow > 0 ? N / m.inflow : 0, P = x(R + ve), W = x(R + F * _.height + ve), xt = Ve[k];
|
|
242
|
+
let xe = xt + H * C.height;
|
|
243
243
|
Xe[k] += N;
|
|
244
|
-
const uo =
|
|
244
|
+
const uo = m.inflow > 0 && Xe[k] >= m.inflow - so, St = C.y + C.height;
|
|
245
245
|
(uo || xe > St - ro) && (xe = St);
|
|
246
246
|
const io = x(xt + ve), co = x(xe + ve);
|
|
247
247
|
Tt.push({
|
|
248
|
-
id:
|
|
249
|
-
source:
|
|
248
|
+
id: _e(),
|
|
249
|
+
source: p,
|
|
250
250
|
target: k,
|
|
251
|
-
path: `M ${x(
|
|
251
|
+
path: `M ${x(_.x + A)} ${P} L ${x(_.x + A)} ${W} L ${x(C.x)} ${co} L ${x(C.x)} ${io} Z`,
|
|
252
252
|
value: N,
|
|
253
|
-
sourceColor:
|
|
253
|
+
sourceColor: g.color,
|
|
254
254
|
targetColor: l[k].color
|
|
255
|
-
}),
|
|
255
|
+
}), R = W - ve, Ve[k] = xe;
|
|
256
256
|
});
|
|
257
257
|
});
|
|
258
|
-
}), { nodeCoordinates:
|
|
258
|
+
}), { nodeCoordinates: K, links: Tt };
|
|
259
259
|
}
|
|
260
|
-
const
|
|
261
|
-
const
|
|
260
|
+
const O = h(() => {
|
|
261
|
+
const o = Xt(ge.value);
|
|
262
262
|
return {
|
|
263
|
-
nodes: Object.keys(
|
|
264
|
-
...
|
|
263
|
+
nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
|
|
264
|
+
...o.nodeCoordinates[l],
|
|
265
265
|
name: l
|
|
266
266
|
})),
|
|
267
|
-
links:
|
|
267
|
+
links: o.links
|
|
268
268
|
};
|
|
269
|
-
}), pt =
|
|
269
|
+
}), pt = h(() => ut.value), gt = h(() => it.value), ae = h(() => e.value.style.chart.padding), mt = h(() => ({
|
|
270
270
|
width: Math.max(0, pt.value - 40 - ae.value.right - ae.value.left),
|
|
271
271
|
height: Math.max(0, gt.value - ae.value.top - ae.value.bottom)
|
|
272
|
-
})), ne =
|
|
272
|
+
})), ne = h(() => ({
|
|
273
273
|
width: pt.value,
|
|
274
274
|
height: gt.value
|
|
275
275
|
}));
|
|
276
|
-
function qt(
|
|
277
|
-
const l = {},
|
|
278
|
-
return ft.value.forEach(([s, $,
|
|
279
|
-
l[s] || (l[s] = []),
|
|
280
|
-
}), l[
|
|
276
|
+
function qt(o) {
|
|
277
|
+
const l = {}, t = {}, a = /* @__PURE__ */ new Set();
|
|
278
|
+
return ft.value.forEach(([s, $, Z]) => {
|
|
279
|
+
l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
|
|
280
|
+
}), l[o] && l[o].forEach((s) => a.add(s)), t[o] && t[o].forEach((s) => a.add(s)), Array.from(a).concat(o);
|
|
281
281
|
}
|
|
282
|
-
const w = u(null),
|
|
283
|
-
function yt(
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
let s = 0, $ = 0,
|
|
287
|
-
const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)),
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}), a.forEach(([v,
|
|
291
|
-
|
|
282
|
+
const w = u(null), Q = u(null), se = u(null), be = u(!1), Ce = u(null);
|
|
283
|
+
function yt(o, l) {
|
|
284
|
+
X.value = [], w.value = qt(o.name), Q.value = o.name, Ce.value = o.id;
|
|
285
|
+
const t = o.name, a = ft.value;
|
|
286
|
+
let s = 0, $ = 0, Z = [], ue = [];
|
|
287
|
+
const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), ee = a.filter(([v]) => Ye.includes(v)).reduce((v, [b, q, K]) => v + K, 0), L = {};
|
|
288
|
+
O.value.nodes.forEach((v) => {
|
|
289
|
+
L[v.name] = v.color;
|
|
290
|
+
}), a.forEach(([v, b, q]) => {
|
|
291
|
+
b === t && (s += q, Z.push({ source: v, value: q, color: L[v] })), v === t && ($ += q, ue.push({ target: b, value: q, color: L[b] }));
|
|
292
292
|
});
|
|
293
|
-
const Te = Math.max(s, $), je =
|
|
294
|
-
name:
|
|
293
|
+
const Te = Math.max(s, $), je = ee > 0 ? Te / ee * 100 : 0, A = {
|
|
294
|
+
name: t,
|
|
295
295
|
inflow: s,
|
|
296
296
|
outflow: $,
|
|
297
|
-
from:
|
|
297
|
+
from: Z,
|
|
298
298
|
to: ue,
|
|
299
299
|
percentOfTotal: je,
|
|
300
|
-
color:
|
|
300
|
+
color: L[t] || "#000000"
|
|
301
301
|
};
|
|
302
302
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, Fe.value = !0;
|
|
303
|
-
let
|
|
303
|
+
let D = "";
|
|
304
304
|
const ce = e.value.style.chart.tooltip.customFormat;
|
|
305
305
|
if (be.value = !1, xo(ce))
|
|
306
306
|
try {
|
|
307
307
|
const v = ce({
|
|
308
308
|
datapoint: A,
|
|
309
|
-
series:
|
|
309
|
+
series: O.value,
|
|
310
310
|
config: e.value
|
|
311
311
|
});
|
|
312
312
|
typeof v == "string" && (Ee.value = v, be.value = !0);
|
|
@@ -320,52 +320,52 @@ const Ho = ["id"], Wo = {
|
|
|
320
320
|
s: "%",
|
|
321
321
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
322
322
|
})}</div>` : "";
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
D += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (D += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((b) => {
|
|
324
|
+
D += `<div><span style="color:${b.color}">⏹←</span> ${b.source}: ${Ne(
|
|
325
325
|
e.value.style.chart.nodes.labels.formatter,
|
|
326
|
-
|
|
326
|
+
b.value,
|
|
327
327
|
te({
|
|
328
328
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
329
|
-
v:
|
|
329
|
+
v: b.value,
|
|
330
330
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
331
331
|
r: e.value.style.chart.nodes.labels.rounding
|
|
332
332
|
})
|
|
333
333
|
)}</div>`;
|
|
334
|
-
})), A.to.length && (
|
|
335
|
-
|
|
334
|
+
})), A.to.length && (D += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((b) => {
|
|
335
|
+
D += `<div><span style="color:${b.color}">⏹→</span> ${b.target}: ${Ne(
|
|
336
336
|
e.value.style.chart.nodes.labels.formatter,
|
|
337
|
-
|
|
337
|
+
b.value,
|
|
338
338
|
te({
|
|
339
339
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
340
|
-
v:
|
|
340
|
+
v: b.value,
|
|
341
341
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
342
342
|
r: e.value.style.chart.nodes.labels.rounding
|
|
343
343
|
})
|
|
344
344
|
)}</div>`;
|
|
345
|
-
})), Ee.value =
|
|
345
|
+
})), Ee.value = D;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function ke(
|
|
348
|
+
function ke(o) {
|
|
349
349
|
Ce.value = null;
|
|
350
350
|
const l = se.value;
|
|
351
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex:
|
|
351
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, Q.value = null, Fe.value = !1;
|
|
352
352
|
}
|
|
353
|
-
function Re(
|
|
353
|
+
function Re(o) {
|
|
354
354
|
const l = se.value;
|
|
355
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex:
|
|
355
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
|
|
356
356
|
}
|
|
357
|
-
const bt =
|
|
358
|
-
({ source:
|
|
359
|
-
source:
|
|
357
|
+
const bt = h(() => O.value.links.map(
|
|
358
|
+
({ source: o, target: l, sourceColor: t, targetColor: a, value: s }) => ({
|
|
359
|
+
source: o,
|
|
360
360
|
target: l,
|
|
361
|
-
sourceColor:
|
|
361
|
+
sourceColor: t,
|
|
362
362
|
targetColor: a,
|
|
363
363
|
value: s
|
|
364
364
|
})
|
|
365
365
|
));
|
|
366
|
-
function He(
|
|
366
|
+
function He(o = null) {
|
|
367
367
|
Ft(() => {
|
|
368
|
-
const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]),
|
|
368
|
+
const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
|
|
369
369
|
[e.value.style.chart.title.text],
|
|
370
370
|
[e.value.style.chart.title.subtitle.text],
|
|
371
371
|
[
|
|
@@ -373,15 +373,15 @@ const Ho = ["id"], Wo = {
|
|
|
373
373
|
[e.value.table.columnNames.target],
|
|
374
374
|
[e.value.table.columnNames.value]
|
|
375
375
|
]
|
|
376
|
-
].concat(l), a = Ao(
|
|
377
|
-
|
|
376
|
+
].concat(l), a = Ao(t);
|
|
377
|
+
o ? o(a) : To({
|
|
378
378
|
csvContent: a,
|
|
379
379
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
380
380
|
});
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
const we =
|
|
384
|
-
const
|
|
383
|
+
const we = h(() => {
|
|
384
|
+
const o = [
|
|
385
385
|
e.value.table.columnNames.source,
|
|
386
386
|
e.value.table.columnNames.target,
|
|
387
387
|
e.value.table.columnNames.value
|
|
@@ -402,7 +402,7 @@ const Ho = ["id"], Wo = {
|
|
|
402
402
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
403
403
|
r: e.value.style.chart.nodes.labels.rounding
|
|
404
404
|
})
|
|
405
|
-
]),
|
|
405
|
+
]), t = {
|
|
406
406
|
th: {
|
|
407
407
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
408
408
|
color: e.value.table.th.color,
|
|
@@ -421,13 +421,13 @@ const Ho = ["id"], Wo = {
|
|
|
421
421
|
e.value.table.columnNames.target,
|
|
422
422
|
e.value.table.columnNames.value
|
|
423
423
|
],
|
|
424
|
-
head:
|
|
424
|
+
head: o,
|
|
425
425
|
body: l,
|
|
426
|
-
config:
|
|
426
|
+
config: t
|
|
427
427
|
};
|
|
428
428
|
});
|
|
429
429
|
function Kt() {
|
|
430
|
-
return
|
|
430
|
+
return O.value;
|
|
431
431
|
}
|
|
432
432
|
function Ct() {
|
|
433
433
|
S.value.showTable = !S.value.showTable;
|
|
@@ -439,39 +439,39 @@ const Ho = ["id"], Wo = {
|
|
|
439
439
|
function kt() {
|
|
440
440
|
S.value.showTooltip = !S.value.showTooltip;
|
|
441
441
|
}
|
|
442
|
-
const wt =
|
|
443
|
-
const
|
|
444
|
-
|
|
442
|
+
const wt = h(() => {
|
|
443
|
+
const o = new Set(
|
|
444
|
+
O.value.nodes.map(
|
|
445
445
|
(l) => e.value.nodeCategories[l.name] || "__uncategorized__"
|
|
446
446
|
)
|
|
447
447
|
);
|
|
448
|
-
return Array.from(
|
|
448
|
+
return Array.from(o).map((l) => ({
|
|
449
449
|
name: l,
|
|
450
|
-
color: e.value.nodeCategoryColors[l] ||
|
|
450
|
+
color: e.value.nodeCategoryColors[l] || z[0],
|
|
451
451
|
shape: "square",
|
|
452
|
-
count:
|
|
453
|
-
(
|
|
452
|
+
count: O.value.nodes.filter(
|
|
453
|
+
(t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
|
|
454
454
|
).length
|
|
455
|
-
})).map((l,
|
|
455
|
+
})).map((l, t) => ({
|
|
456
456
|
...l,
|
|
457
|
-
segregate: () => Ue({ legend: l, i:
|
|
458
|
-
opacity:
|
|
457
|
+
segregate: () => Ue({ legend: l, i: t }),
|
|
458
|
+
opacity: X.value.length ? X.value.includes(t) ? 1 : 0.5 : 1,
|
|
459
459
|
display: `${l.name} (${l.count})`
|
|
460
460
|
}));
|
|
461
|
-
}), Ge =
|
|
462
|
-
() => wt.value.filter((
|
|
463
|
-
),
|
|
464
|
-
function Ue({ legend:
|
|
465
|
-
const
|
|
461
|
+
}), Ge = h(
|
|
462
|
+
() => wt.value.filter((o) => o.name !== "__uncategorized__")
|
|
463
|
+
), X = u([]);
|
|
464
|
+
function Ue({ legend: o, i: l }) {
|
|
465
|
+
const t = o.name;
|
|
466
466
|
if (w.value?.every(
|
|
467
|
-
(a) => e.value.nodeCategories[a] ===
|
|
467
|
+
(a) => e.value.nodeCategories[a] === t
|
|
468
468
|
)) {
|
|
469
|
-
w.value = null,
|
|
469
|
+
w.value = null, Q.value = null, X.value = [];
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
|
|
472
|
+
X.value = [l], w.value = O.value.nodes.filter((a) => e.value.nodeCategories[a.name] === t).map((a) => a.name), Q.value = null;
|
|
473
473
|
}
|
|
474
|
-
const Jt =
|
|
474
|
+
const Jt = h(() => ({
|
|
475
475
|
cy: "flow-legend",
|
|
476
476
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
477
477
|
color: e.value.style.chart.legend.color,
|
|
@@ -479,29 +479,29 @@ const Ho = ["id"], Wo = {
|
|
|
479
479
|
paddingBottom: e.value.style.chart.legend.paddingBottom,
|
|
480
480
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
481
481
|
}));
|
|
482
|
-
async function Qt({ scale:
|
|
482
|
+
async function Qt({ scale: o = 2 } = {}) {
|
|
483
483
|
if (!I.value) return;
|
|
484
|
-
const { width: l, height:
|
|
484
|
+
const { width: l, height: t } = I.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: o });
|
|
485
485
|
return {
|
|
486
486
|
imageUri: s,
|
|
487
487
|
base64: $,
|
|
488
488
|
title: e.value.style.chart.title.text,
|
|
489
489
|
width: l,
|
|
490
|
-
height:
|
|
490
|
+
height: t,
|
|
491
491
|
aspectRatio: a
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
const re =
|
|
495
|
-
const
|
|
494
|
+
const re = h(() => {
|
|
495
|
+
const o = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
|
|
496
496
|
return {
|
|
497
|
-
component:
|
|
497
|
+
component: o ? Ut : zt,
|
|
498
498
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
499
|
-
props:
|
|
499
|
+
props: o ? {
|
|
500
500
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
501
501
|
color: e.value.table.th.color,
|
|
502
502
|
headerColor: e.value.table.th.color,
|
|
503
503
|
headerBg: e.value.table.th.backgroundColor,
|
|
504
|
-
isFullscreen:
|
|
504
|
+
isFullscreen: V.value,
|
|
505
505
|
fullscreenParent: I.value,
|
|
506
506
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
507
507
|
} : {
|
|
@@ -521,33 +521,33 @@ const Ho = ["id"], Wo = {
|
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
});
|
|
524
|
-
Se(() => S.value.showTable, (
|
|
525
|
-
e.value.table.show || (
|
|
524
|
+
Se(() => S.value.showTable, (o) => {
|
|
525
|
+
e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
526
526
|
});
|
|
527
527
|
function $t() {
|
|
528
528
|
S.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
529
529
|
}
|
|
530
|
-
const Zt =
|
|
531
|
-
...
|
|
532
|
-
name:
|
|
533
|
-
}))), eo =
|
|
530
|
+
const Zt = h(() => Ge.value.map((o) => ({
|
|
531
|
+
...o,
|
|
532
|
+
name: o.display
|
|
533
|
+
}))), eo = h(() => e.value.style.chart.backgroundColor), to = h(() => e.value.style.chart.legend), oo = h(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
|
|
534
534
|
svg: Le,
|
|
535
535
|
title: oo,
|
|
536
536
|
legend: to,
|
|
537
537
|
legendItems: Zt,
|
|
538
538
|
backgroundColor: eo
|
|
539
539
|
});
|
|
540
|
-
async function At({ isCb:
|
|
541
|
-
if (
|
|
542
|
-
const { blob: l, url:
|
|
543
|
-
e.value.userOptions.callbacks.svg({ blob: l, url:
|
|
540
|
+
async function At({ isCb: o }) {
|
|
541
|
+
if (o) {
|
|
542
|
+
const { blob: l, url: t, text: a, dataUrl: s } = await ao();
|
|
543
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: a, dataUrl: s });
|
|
544
544
|
} else
|
|
545
545
|
lo();
|
|
546
546
|
}
|
|
547
|
-
async function no(
|
|
548
|
-
if (yt(
|
|
549
|
-
const { left:
|
|
550
|
-
Pe.value.placeTooltip({ x: (
|
|
547
|
+
async function no(o, l) {
|
|
548
|
+
if (yt(o, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
|
|
549
|
+
const { left: t, top: a } = I.value.getBoundingClientRect();
|
|
550
|
+
Pe.value.placeTooltip({ x: (t ?? 0) + 12, y: (a ?? 0) + 12 });
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
return Bt({
|
|
@@ -563,31 +563,51 @@ const Ho = ["id"], Wo = {
|
|
|
563
563
|
drillCategory: Ue,
|
|
564
564
|
unselectNode: ke,
|
|
565
565
|
toggleFullscreen: at
|
|
566
|
-
}), (
|
|
566
|
+
}), (o, l) => (c(), y("div", {
|
|
567
567
|
ref_key: "flowChart",
|
|
568
568
|
ref: I,
|
|
569
|
-
class:
|
|
570
|
-
style:
|
|
571
|
-
id: `flow_${
|
|
569
|
+
class: Ot(`vue-data-ui-component vue-ui-flow ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
570
|
+
style: U(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
571
|
+
id: `flow_${j.value}`,
|
|
572
572
|
onMouseenter: l[2] || (l[2] = () => r(st)(!0)),
|
|
573
573
|
onMouseleave: l[3] || (l[3] = () => r(st)(!1))
|
|
574
574
|
}, [
|
|
575
|
-
e.value.userOptions.buttons.annotator ? (c(),
|
|
575
|
+
e.value.userOptions.buttons.annotator ? (c(), J(r(Ht), {
|
|
576
576
|
key: 0,
|
|
577
577
|
svgRef: r(Le),
|
|
578
578
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
579
579
|
color: e.value.style.chart.color,
|
|
580
580
|
active: $e.value,
|
|
581
581
|
onClose: We
|
|
582
|
-
},
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
}, {
|
|
583
|
+
"annotator-action-close": d(() => [
|
|
584
|
+
f(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
585
|
+
]),
|
|
586
|
+
"annotator-action-color": d(({ color: t }) => [
|
|
587
|
+
f(o.$slots, "annotator-action-color", M(B({ color: t })), void 0, !0)
|
|
588
|
+
]),
|
|
589
|
+
"annotator-action-draw": d(({ mode: t }) => [
|
|
590
|
+
f(o.$slots, "annotator-action-draw", M(B({ mode: t })), void 0, !0)
|
|
591
|
+
]),
|
|
592
|
+
"annotator-action-undo": d(({ disabled: t }) => [
|
|
593
|
+
f(o.$slots, "annotator-action-undo", M(B({ disabled: t })), void 0, !0)
|
|
594
|
+
]),
|
|
595
|
+
"annotator-action-redo": d(({ disabled: t }) => [
|
|
596
|
+
f(o.$slots, "annotator-action-redo", M(B({ disabled: t })), void 0, !0)
|
|
597
|
+
]),
|
|
598
|
+
"annotator-action-delete": d(({ disabled: t }) => [
|
|
599
|
+
f(o.$slots, "annotator-action-delete", M(B({ disabled: t })), void 0, !0)
|
|
600
|
+
]),
|
|
601
|
+
_: 3
|
|
602
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
|
|
603
|
+
Vt.value ? (c(), y("div", Wo, null, 512)) : T("", !0),
|
|
604
|
+
e.value.style.chart.title.text ? (c(), y("div", {
|
|
585
605
|
key: 2,
|
|
586
606
|
ref_key: "chartTitle",
|
|
587
607
|
ref: et,
|
|
588
608
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
589
609
|
}, [
|
|
590
|
-
(c(),
|
|
610
|
+
(c(), J(Lo, {
|
|
591
611
|
key: `title_${Qe.value}`,
|
|
592
612
|
config: {
|
|
593
613
|
title: {
|
|
@@ -601,10 +621,10 @@ const Ho = ["id"], Wo = {
|
|
|
601
621
|
}
|
|
602
622
|
}, null, 8, ["config"]))
|
|
603
623
|
], 512)) : T("", !0),
|
|
604
|
-
|
|
605
|
-
id: `legend-top-${
|
|
624
|
+
Y("div", {
|
|
625
|
+
id: `legend-top-${j.value}`
|
|
606
626
|
}, null, 8, Go),
|
|
607
|
-
e.value.userOptions.show && lt.value && (r(rt) || r(De)) ? (c(),
|
|
627
|
+
e.value.userOptions.show && lt.value && (r(rt) || r(De)) ? (c(), J(r(Wt), {
|
|
608
628
|
ref_key: "userOptionsRef",
|
|
609
629
|
ref: Ie,
|
|
610
630
|
key: `user_option_${Je.value}`,
|
|
@@ -612,7 +632,7 @@ const Ho = ["id"], Wo = {
|
|
|
612
632
|
color: e.value.style.chart.color,
|
|
613
633
|
isPrinting: r(ct),
|
|
614
634
|
isImaging: r(vt),
|
|
615
|
-
uid:
|
|
635
|
+
uid: j.value,
|
|
616
636
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
617
637
|
hasXls: e.value.userOptions.buttons.csv,
|
|
618
638
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -620,7 +640,7 @@ const Ho = ["id"], Wo = {
|
|
|
620
640
|
hasTable: e.value.userOptions.buttons.table,
|
|
621
641
|
callbacks: e.value.userOptions.callbacks,
|
|
622
642
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
623
|
-
isFullscreen:
|
|
643
|
+
isFullscreen: V.value,
|
|
624
644
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
625
645
|
chartElement: I.value,
|
|
626
646
|
position: e.value.userOptions.position,
|
|
@@ -638,92 +658,92 @@ const Ho = ["id"], Wo = {
|
|
|
638
658
|
onGenerateSvg: At,
|
|
639
659
|
onToggleTable: Ct,
|
|
640
660
|
onToggleAnnotator: We,
|
|
641
|
-
style:
|
|
661
|
+
style: U({
|
|
642
662
|
visibility: r(rt) ? r(De) ? "visible" : "hidden" : "visible"
|
|
643
663
|
})
|
|
644
|
-
},
|
|
645
|
-
|
|
664
|
+
}, _t({ _: 2 }, [
|
|
665
|
+
o.$slots.menuIcon ? {
|
|
646
666
|
name: "menuIcon",
|
|
647
|
-
fn:
|
|
648
|
-
|
|
667
|
+
fn: d(({ isOpen: t, color: a }) => [
|
|
668
|
+
f(o.$slots, "menuIcon", M(B({ isOpen: t, color: a })), void 0, !0)
|
|
649
669
|
]),
|
|
650
670
|
key: "0"
|
|
651
671
|
} : void 0,
|
|
652
|
-
|
|
672
|
+
o.$slots.optionTooltip ? {
|
|
653
673
|
name: "optionTooltip",
|
|
654
|
-
fn:
|
|
655
|
-
|
|
674
|
+
fn: d(() => [
|
|
675
|
+
f(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
656
676
|
]),
|
|
657
677
|
key: "1"
|
|
658
678
|
} : void 0,
|
|
659
|
-
|
|
679
|
+
o.$slots.optionPdf ? {
|
|
660
680
|
name: "optionPdf",
|
|
661
|
-
fn:
|
|
662
|
-
|
|
681
|
+
fn: d(() => [
|
|
682
|
+
f(o.$slots, "optionPdf", {}, void 0, !0)
|
|
663
683
|
]),
|
|
664
684
|
key: "2"
|
|
665
685
|
} : void 0,
|
|
666
|
-
|
|
686
|
+
o.$slots.optionCsv ? {
|
|
667
687
|
name: "optionCsv",
|
|
668
|
-
fn:
|
|
669
|
-
|
|
688
|
+
fn: d(() => [
|
|
689
|
+
f(o.$slots, "optionCsv", {}, void 0, !0)
|
|
670
690
|
]),
|
|
671
691
|
key: "3"
|
|
672
692
|
} : void 0,
|
|
673
|
-
|
|
693
|
+
o.$slots.optionImg ? {
|
|
674
694
|
name: "optionImg",
|
|
675
|
-
fn:
|
|
676
|
-
|
|
695
|
+
fn: d(() => [
|
|
696
|
+
f(o.$slots, "optionImg", {}, void 0, !0)
|
|
677
697
|
]),
|
|
678
698
|
key: "4"
|
|
679
699
|
} : void 0,
|
|
680
|
-
|
|
700
|
+
o.$slots.optionSvg ? {
|
|
681
701
|
name: "optionSvg",
|
|
682
|
-
fn:
|
|
683
|
-
|
|
702
|
+
fn: d(() => [
|
|
703
|
+
f(o.$slots, "optionSvg", {}, void 0, !0)
|
|
684
704
|
]),
|
|
685
705
|
key: "5"
|
|
686
706
|
} : void 0,
|
|
687
|
-
|
|
707
|
+
o.$slots.optionTable ? {
|
|
688
708
|
name: "optionTable",
|
|
689
|
-
fn:
|
|
690
|
-
|
|
709
|
+
fn: d(() => [
|
|
710
|
+
f(o.$slots, "optionTable", {}, void 0, !0)
|
|
691
711
|
]),
|
|
692
712
|
key: "6"
|
|
693
713
|
} : void 0,
|
|
694
|
-
|
|
714
|
+
o.$slots.optionFullscreen ? {
|
|
695
715
|
name: "optionFullscreen",
|
|
696
|
-
fn:
|
|
697
|
-
|
|
716
|
+
fn: d(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
717
|
+
f(o.$slots, "optionFullscreen", M(B({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
698
718
|
]),
|
|
699
719
|
key: "7"
|
|
700
720
|
} : void 0,
|
|
701
|
-
|
|
721
|
+
o.$slots.optionAnnotator ? {
|
|
702
722
|
name: "optionAnnotator",
|
|
703
|
-
fn:
|
|
704
|
-
|
|
723
|
+
fn: d(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
724
|
+
f(o.$slots, "optionAnnotator", M(B({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
705
725
|
]),
|
|
706
726
|
key: "8"
|
|
707
727
|
} : void 0
|
|
708
728
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
|
|
709
|
-
(c(),
|
|
729
|
+
(c(), y("svg", {
|
|
710
730
|
ref_key: "svgRef",
|
|
711
731
|
ref: Le,
|
|
712
732
|
xmlns: r(wo),
|
|
713
733
|
viewBox: `0 0 ${ne.value.width} ${ne.value.height}`,
|
|
714
|
-
class:
|
|
715
|
-
"vue-data-ui-fullscreen--on":
|
|
716
|
-
"vue-data-ui-fulscreen--off": !
|
|
734
|
+
class: Ot({
|
|
735
|
+
"vue-data-ui-fullscreen--on": V.value,
|
|
736
|
+
"vue-data-ui-fulscreen--off": !V.value
|
|
717
737
|
}),
|
|
718
|
-
style:
|
|
738
|
+
style: U({
|
|
719
739
|
maxWidth: "100%",
|
|
720
740
|
overflow: "visible",
|
|
721
741
|
background: "transparent",
|
|
722
742
|
color: e.value.style.chart.color
|
|
723
743
|
})
|
|
724
744
|
}, [
|
|
725
|
-
|
|
726
|
-
|
|
745
|
+
Oe(r(Gt)),
|
|
746
|
+
o.$slots["chart-background"] ? (c(), y("foreignObject", {
|
|
727
747
|
key: 0,
|
|
728
748
|
x: 0,
|
|
729
749
|
y: 0,
|
|
@@ -733,65 +753,65 @@ const Ho = ["id"], Wo = {
|
|
|
733
753
|
pointerEvents: "none"
|
|
734
754
|
}
|
|
735
755
|
}, [
|
|
736
|
-
|
|
756
|
+
f(o.$slots, "chart-background", {}, void 0, !0)
|
|
737
757
|
], 8, Yo)) : T("", !0),
|
|
738
|
-
|
|
739
|
-
(c(!0),
|
|
740
|
-
id:
|
|
758
|
+
Y("defs", null, [
|
|
759
|
+
(c(!0), y(de, null, he(O.value.links, (t, a) => (c(), y("linearGradient", {
|
|
760
|
+
id: t.id,
|
|
741
761
|
x1: "0%",
|
|
742
762
|
y1: "0%",
|
|
743
763
|
x2: "100%",
|
|
744
764
|
y2: "0%"
|
|
745
765
|
}, [
|
|
746
|
-
|
|
766
|
+
Y("stop", {
|
|
747
767
|
offset: "0%",
|
|
748
|
-
"stop-color":
|
|
768
|
+
"stop-color": t.sourceColor
|
|
749
769
|
}, null, 8, Vo),
|
|
750
|
-
|
|
770
|
+
Y("stop", {
|
|
751
771
|
offset: "100%",
|
|
752
|
-
"stop-color":
|
|
772
|
+
"stop-color": t.targetColor
|
|
753
773
|
}, null, 8, Xo)
|
|
754
774
|
], 8, jo))), 256))
|
|
755
775
|
]),
|
|
756
|
-
(c(!0),
|
|
776
|
+
(c(!0), y(de, null, he(O.value.links, (t) => (c(), y("path", {
|
|
757
777
|
class: "vue-ui-flow-link",
|
|
758
|
-
d:
|
|
778
|
+
d: t.path,
|
|
759
779
|
"stroke-linejoin": "round",
|
|
760
780
|
"stroke-miterlimit": "1",
|
|
761
|
-
fill: `url(#${
|
|
781
|
+
fill: `url(#${t.id})`,
|
|
762
782
|
stroke: e.value.style.chart.links.stroke,
|
|
763
783
|
"stroke-width": e.value.style.chart.links.strokeWidth,
|
|
764
|
-
style:
|
|
765
|
-
opacity:${w.value ? w.value.includes(
|
|
784
|
+
style: U(`
|
|
785
|
+
opacity:${w.value ? w.value.includes(t.source) && w.value.includes(t.target) ? 1 : 0.3 : Q.value ? [t.target, t.source].includes(Q.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
|
|
766
786
|
`)
|
|
767
787
|
}, null, 12, qo))), 256)),
|
|
768
|
-
(c(!0),
|
|
788
|
+
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("rect", {
|
|
769
789
|
class: "vue-ui-flow-node",
|
|
770
|
-
x:
|
|
771
|
-
y: r(x)(
|
|
772
|
-
height: r(x)(
|
|
790
|
+
x: t.x,
|
|
791
|
+
y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
|
|
792
|
+
height: r(x)(t.height),
|
|
773
793
|
width: ye.value,
|
|
774
|
-
fill:
|
|
794
|
+
fill: t.color,
|
|
775
795
|
stroke: e.value.style.chart.nodes.stroke,
|
|
776
796
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
777
797
|
rx: e.value.style.chart.nodes.borderRadius,
|
|
778
|
-
style:
|
|
779
|
-
opacity: w.value ? w.value.includes(
|
|
780
|
-
outline: Ce.value !== null && Ce.value ===
|
|
798
|
+
style: U({
|
|
799
|
+
opacity: w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1,
|
|
800
|
+
outline: Ce.value !== null && Ce.value === t.id ? "2px solid currentColor" : void 0
|
|
781
801
|
}),
|
|
782
802
|
role: "button",
|
|
783
803
|
tabindex: "0",
|
|
784
|
-
"aria-label": `${
|
|
804
|
+
"aria-label": `${t.name}: ${r(Ne)(
|
|
785
805
|
e.value.style.chart.nodes.labels.formatter,
|
|
786
|
-
|
|
806
|
+
t.value,
|
|
787
807
|
r(te)({
|
|
788
808
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
789
|
-
v:
|
|
809
|
+
v: t.value,
|
|
790
810
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
791
811
|
r: e.value.style.chart.nodes.labels.rounding
|
|
792
812
|
})
|
|
793
813
|
)}`,
|
|
794
|
-
onMouseenter: (s) => yt(
|
|
814
|
+
onMouseenter: (s) => yt(t, a),
|
|
795
815
|
onMouseleave: (s) => ke(a),
|
|
796
816
|
onClick: (s) => Re(a),
|
|
797
817
|
onKeydown: [
|
|
@@ -799,87 +819,87 @@ const Ho = ["id"], Wo = {
|
|
|
799
819
|
qe(Ke((s) => Re(a), ["prevent"]), ["space"]),
|
|
800
820
|
qe(Ke((s) => ke(a), ["prevent"]), ["esc"])
|
|
801
821
|
],
|
|
802
|
-
onFocus: (s) => no(
|
|
822
|
+
onFocus: (s) => no(t, a),
|
|
803
823
|
onBlur: (s) => ke(a)
|
|
804
824
|
}, null, 44, Ko))), 256)),
|
|
805
|
-
e.value.style.chart.nodes.labels.show ? (c(),
|
|
806
|
-
(c(!0),
|
|
807
|
-
x:
|
|
825
|
+
e.value.style.chart.nodes.labels.show ? (c(), y("g", Jo, [
|
|
826
|
+
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
|
|
827
|
+
x: t.x + ye.value / 2,
|
|
808
828
|
y: r(x)(
|
|
809
|
-
|
|
829
|
+
t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
810
830
|
) + e.value.style.chart.padding.top,
|
|
811
831
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
812
|
-
fill: r(It)(
|
|
832
|
+
fill: r(It)(t.color),
|
|
813
833
|
"text-anchor": "middle",
|
|
814
|
-
style:
|
|
834
|
+
style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
815
835
|
}, fe(e.value.style.chart.nodes.labels.abbreviation.use ? r($o)({
|
|
816
|
-
source:
|
|
836
|
+
source: t.name,
|
|
817
837
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
818
|
-
}) :
|
|
819
|
-
(c(!0),
|
|
820
|
-
x:
|
|
838
|
+
}) : t.name), 13, Qo))), 256)),
|
|
839
|
+
(c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
|
|
840
|
+
x: t.x + ye.value / 2,
|
|
821
841
|
y: r(x)(
|
|
822
|
-
|
|
842
|
+
t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
|
|
823
843
|
) + e.value.style.chart.padding.top,
|
|
824
844
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
825
|
-
fill: r(It)(
|
|
845
|
+
fill: r(It)(t.color),
|
|
826
846
|
"text-anchor": "middle",
|
|
827
|
-
style:
|
|
847
|
+
style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
|
|
828
848
|
}, fe(r(Ne)(
|
|
829
849
|
e.value.style.chart.nodes.labels.formatter,
|
|
830
|
-
|
|
850
|
+
t.value,
|
|
831
851
|
r(te)({
|
|
832
852
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
833
|
-
v:
|
|
853
|
+
v: t.value,
|
|
834
854
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
835
855
|
r: e.value.style.chart.nodes.labels.rounding
|
|
836
856
|
}),
|
|
837
|
-
{ datapoint:
|
|
857
|
+
{ datapoint: t, seriesIndex: a }
|
|
838
858
|
)), 13, Zo))), 256))
|
|
839
859
|
])) : T("", !0),
|
|
840
|
-
|
|
860
|
+
f(o.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
841
861
|
], 14, Uo)),
|
|
842
|
-
|
|
843
|
-
|
|
862
|
+
o.$slots.watermark ? (c(), y("div", el, [
|
|
863
|
+
f(o.$slots, "watermark", M(B({ isPrinting: r(ct) || r(vt) })), void 0, !0)
|
|
844
864
|
])) : T("", !0),
|
|
845
|
-
|
|
846
|
-
id: `legend-bottom-${
|
|
865
|
+
Y("div", {
|
|
866
|
+
id: `legend-bottom-${j.value}`
|
|
847
867
|
}, null, 8, tl),
|
|
848
|
-
ot.value ? (c(),
|
|
868
|
+
ot.value ? (c(), J(fo, {
|
|
849
869
|
key: 5,
|
|
850
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
870
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
|
|
851
871
|
}, [
|
|
852
|
-
|
|
872
|
+
Y("div", {
|
|
853
873
|
ref_key: "chartLegend",
|
|
854
874
|
ref: Ze
|
|
855
875
|
}, [
|
|
856
|
-
e.value.style.chart.legend.show && Ge.value.length ? (c(),
|
|
876
|
+
e.value.style.chart.legend.show && Ge.value.length ? (c(), J(Do, {
|
|
857
877
|
key: 0,
|
|
858
878
|
legendSet: Ge.value,
|
|
859
879
|
config: Jt.value,
|
|
860
|
-
onClickMarker: l[0] || (l[0] = (
|
|
880
|
+
onClickMarker: l[0] || (l[0] = (t) => Ue(t))
|
|
861
881
|
}, {
|
|
862
|
-
item:
|
|
863
|
-
r(Me) ? T("", !0) : (c(),
|
|
882
|
+
item: d(({ legend: t, index: a }) => [
|
|
883
|
+
r(Me) ? T("", !0) : (c(), y("div", {
|
|
864
884
|
key: 0,
|
|
865
|
-
onClick: (s) =>
|
|
866
|
-
style:
|
|
867
|
-
}, fe(
|
|
885
|
+
onClick: (s) => t.segregate(),
|
|
886
|
+
style: U(`opacity:${X.value.length ? X.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
887
|
+
}, fe(t.display), 13, ol))
|
|
868
888
|
]),
|
|
869
889
|
_: 1
|
|
870
890
|
}, 8, ["legendSet", "config"])) : T("", !0),
|
|
871
|
-
|
|
891
|
+
f(o.$slots, "legend", { legend: wt.value }, void 0, !0)
|
|
872
892
|
], 512)
|
|
873
893
|
], 8, ["to"])) : T("", !0),
|
|
874
|
-
|
|
894
|
+
o.$slots.source ? (c(), y("div", {
|
|
875
895
|
key: 6,
|
|
876
896
|
ref_key: "source",
|
|
877
897
|
ref: tt,
|
|
878
898
|
dir: "auto"
|
|
879
899
|
}, [
|
|
880
|
-
|
|
900
|
+
f(o.$slots, "source", {}, void 0, !0)
|
|
881
901
|
], 512)) : T("", !0),
|
|
882
|
-
|
|
902
|
+
Oe(r(Dt), {
|
|
883
903
|
ref_key: "tooltip",
|
|
884
904
|
ref: Pe,
|
|
885
905
|
show: S.value.showTooltip && Fe.value,
|
|
@@ -895,27 +915,27 @@ const Ho = ["id"], Wo = {
|
|
|
895
915
|
parent: I.value,
|
|
896
916
|
content: Ee.value,
|
|
897
917
|
isCustom: be.value,
|
|
898
|
-
isFullscreen:
|
|
918
|
+
isFullscreen: V.value,
|
|
899
919
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
900
920
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
901
921
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
902
922
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
903
923
|
}, {
|
|
904
|
-
"tooltip-before":
|
|
905
|
-
|
|
924
|
+
"tooltip-before": d(() => [
|
|
925
|
+
f(o.$slots, "tooltip-before", M(B({ ...se.value })), void 0, !0)
|
|
906
926
|
]),
|
|
907
|
-
"tooltip-after":
|
|
908
|
-
|
|
927
|
+
"tooltip-after": d(() => [
|
|
928
|
+
f(o.$slots, "tooltip-after", M(B({ ...se.value })), void 0, !0)
|
|
909
929
|
]),
|
|
910
930
|
_: 3
|
|
911
931
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
912
|
-
lt.value && e.value.userOptions.buttons.table ? (c(),
|
|
932
|
+
lt.value && e.value.userOptions.buttons.table ? (c(), J(po(re.value.component), go({ key: 7 }, re.value.props, {
|
|
913
933
|
ref_key: "tableUnit",
|
|
914
934
|
ref: le,
|
|
915
935
|
onClose: $t
|
|
916
|
-
}),
|
|
917
|
-
content:
|
|
918
|
-
|
|
936
|
+
}), _t({
|
|
937
|
+
content: d(() => [
|
|
938
|
+
Oe(r(Rt), {
|
|
919
939
|
colNames: we.value.colNames,
|
|
920
940
|
head: we.value.head,
|
|
921
941
|
body: we.value.body,
|
|
@@ -924,14 +944,14 @@ const Ho = ["id"], Wo = {
|
|
|
924
944
|
withCloseButton: !e.value.table.useDialog,
|
|
925
945
|
onClose: $t
|
|
926
946
|
}, {
|
|
927
|
-
th:
|
|
928
|
-
|
|
929
|
-
innerHTML:
|
|
947
|
+
th: d(({ th: t }) => [
|
|
948
|
+
Y("div", {
|
|
949
|
+
innerHTML: t,
|
|
930
950
|
style: { display: "flex", "align-items": "center" }
|
|
931
951
|
}, null, 8, ll)
|
|
932
952
|
]),
|
|
933
|
-
td:
|
|
934
|
-
Nt(fe(
|
|
953
|
+
td: d(({ td: t }) => [
|
|
954
|
+
Nt(fe(t.name || t), 1)
|
|
935
955
|
]),
|
|
936
956
|
_: 1
|
|
937
957
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
@@ -940,20 +960,20 @@ const Ho = ["id"], Wo = {
|
|
|
940
960
|
}, [
|
|
941
961
|
e.value.table.useDialog ? {
|
|
942
962
|
name: "title",
|
|
943
|
-
fn:
|
|
963
|
+
fn: d(() => [
|
|
944
964
|
Nt(fe(re.value.title), 1)
|
|
945
965
|
]),
|
|
946
966
|
key: "0"
|
|
947
967
|
} : void 0,
|
|
948
968
|
e.value.table.useDialog ? {
|
|
949
969
|
name: "actions",
|
|
950
|
-
fn:
|
|
951
|
-
|
|
970
|
+
fn: d(() => [
|
|
971
|
+
Y("button", {
|
|
952
972
|
tabindex: "0",
|
|
953
973
|
class: "vue-ui-user-options-button",
|
|
954
|
-
onClick: l[1] || (l[1] = (
|
|
974
|
+
onClick: l[1] || (l[1] = (t) => He(e.value.userOptions.callbacks.csv))
|
|
955
975
|
}, [
|
|
956
|
-
|
|
976
|
+
Oe(r(Lt), {
|
|
957
977
|
name: "excel",
|
|
958
978
|
stroke: re.value.props.color
|
|
959
979
|
}, null, 8, ["stroke"])
|
|
@@ -962,10 +982,10 @@ const Ho = ["id"], Wo = {
|
|
|
962
982
|
key: "1"
|
|
963
983
|
} : void 0
|
|
964
984
|
]), 1040)) : T("", !0),
|
|
965
|
-
r(Me) ? (c(),
|
|
985
|
+
r(Me) ? (c(), J(Eo, { key: 8 })) : T("", !0)
|
|
966
986
|
], 46, Ho));
|
|
967
987
|
}
|
|
968
|
-
}, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-
|
|
988
|
+
}, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-dc61c391"]]);
|
|
969
989
|
export {
|
|
970
990
|
bl as default
|
|
971
991
|
};
|