vue-data-ui 3.16.4 → 3.17.0
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 +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, ref as r, computed as i, onMounted as Xo, toRefs as qo, watch as Re, openBlock as c, createElementBlock as b, unref as u, normalizeStyle as X, normalizeClass as eo, createElementVNode as H, toDisplayString as
|
|
2
|
-
import { j as Ue, t as lo, o as ao, q as el, m as tl, p as q, n as ol, K as
|
|
1
|
+
import { defineAsyncComponent as te, ref as r, computed as i, onMounted as Xo, toRefs as qo, watch as Re, openBlock as c, createElementBlock as b, unref as u, normalizeStyle as X, normalizeClass as eo, createElementVNode as H, toDisplayString as pe, createBlock as oe, createCommentVNode as w, withCtx as f, renderSlot as v, normalizeProps as S, guardReactiveProps as P, createSlots as to, createVNode as He, Fragment as Pe, renderList as Ie, Teleport as Zo, resolveDynamicComponent as Jo, mergeProps as Qo, createTextVNode as oo, nextTick as dt } from "vue";
|
|
2
|
+
import { j as Ue, t as lo, o as ao, q as el, m as tl, p as q, n as ol, K as I, s as ll, l as ge, X as al, k as We, W as no, a as nl, a0 as sl, a1 as rl, T as ul } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as il, u as cl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as dl } from "./useConfig-
|
|
4
|
+
import { u as dl } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as vl } from "./usePrinter-CEpYU3r5.js";
|
|
6
6
|
import { u as fl, B as hl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
7
|
import { u as pl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -46,7 +46,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["copyAlt"],
|
|
48
48
|
setup(so, { expose: ro, emit: uo }) {
|
|
49
|
-
const io = te(() => import("./Tooltip-
|
|
49
|
+
const io = te(() => import("./Tooltip-C8KGyqQk.js")), co = te(() => import("./BaseIcon-Cb3zzG6s.js")), vo = te(() => import("./vue-ui-accordion-CnDW2UQL.js")), fo = te(() => import("./DataTable-DT2kIdQ6.js")), ho = te(() => import("./PenAndPaper-Ct3qJ4lA.js")), po = te(() => import("./UserOptions-rW2fRf3V.js")), go = te(() => import("./PackageVersion-B3kmPxTR.js")), yo = te(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_flow: mo } = dl(), { isThemeValid: bo, warnInvalidTheme: Co } = gl(), N = so, ko = uo, U = r(Ue()), V = r(null), ft = r(0), ht = r(0), Ne = r(!1), Ve = r(""), pt = r(null), gt = r(null), yt = r(null), ye = r(null), Oe = r(null), mt = r(!1), me = r(null), Ge = r(null), wo = r(null), Ee = r(!1), _e = r(!1), be = r(null), de = r(null), bt = r({ x: 0, y: 0 }), je = r("pointer"), Fe = r(!1), Ct = i(() => !!N.dataset && N.dataset.length);
|
|
50
50
|
Xo(() => {
|
|
51
51
|
mt.value = !0, wt();
|
|
52
52
|
});
|
|
@@ -86,10 +86,10 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
86
86
|
},
|
|
87
87
|
userConfig: e.value.skeletonConfig ?? {}
|
|
88
88
|
})), { loading: Ke, FINAL_DATASET: Me, manualLoading: Xe } = fl({
|
|
89
|
-
...qo(
|
|
89
|
+
...qo(N),
|
|
90
90
|
FINAL_CONFIG: e,
|
|
91
91
|
prepareConfig: Ze,
|
|
92
|
-
skeletonDataset:
|
|
92
|
+
skeletonDataset: N.config?.skeletonDataset ?? [
|
|
93
93
|
["A", "B", 2, "#CACACA"],
|
|
94
94
|
["B", "C", 1, "#CACACA"],
|
|
95
95
|
["C", "D", 0.5, "#CACACA"],
|
|
@@ -103,11 +103,11 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
103
103
|
})
|
|
104
104
|
}), Ao = i(() => !!e.value.debug);
|
|
105
105
|
function wt() {
|
|
106
|
-
if (ao(
|
|
106
|
+
if (ao(N.dataset) && (el({
|
|
107
107
|
componentName: "VueUiFlow",
|
|
108
108
|
type: "dataset",
|
|
109
109
|
debug: Ao.value
|
|
110
|
-
}), Xe.value = !0), ao(
|
|
110
|
+
}), Xe.value = !0), ao(N.dataset) || (Xe.value = e.value.loading), e.value.responsive) {
|
|
111
111
|
const t = il(() => {
|
|
112
112
|
const { width: l, height: o } = cl({
|
|
113
113
|
chart: V.value,
|
|
@@ -119,7 +119,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
119
119
|
xt.value = l, Tt.value = o;
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
ye.value && (Oe.value && ye.value.unobserve(Oe.value), ye.value.disconnect()), ye.value = new ResizeObserver(t), Oe.value = V.value.parentNode, ye.value.observe(Oe.value);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
const { userOptionsVisible: qe, setUserOptionsVisibility: $t, keepUserOptionState: At } = yl({ config: e.value }), { svgRef: ae } = ml({
|
|
@@ -127,7 +127,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
127
127
|
});
|
|
128
128
|
function Ze() {
|
|
129
129
|
const t = vt({
|
|
130
|
-
userConfig:
|
|
130
|
+
userConfig: N.config,
|
|
131
131
|
defaultConfig: mo
|
|
132
132
|
});
|
|
133
133
|
let l = t;
|
|
@@ -137,12 +137,12 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
137
137
|
Co(t), l = t;
|
|
138
138
|
else {
|
|
139
139
|
const a = vt({
|
|
140
|
-
userConfig: kl[o] ||
|
|
140
|
+
userConfig: kl[o] || N.config,
|
|
141
141
|
defaultConfig: t
|
|
142
142
|
});
|
|
143
143
|
l = {
|
|
144
144
|
...vt({
|
|
145
|
-
userConfig:
|
|
145
|
+
userConfig: N.config,
|
|
146
146
|
defaultConfig: a
|
|
147
147
|
}),
|
|
148
148
|
customPalette: t.customPalette.length ? t.customPalette : tl[o] || q
|
|
@@ -150,23 +150,23 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
150
150
|
}
|
|
151
151
|
else
|
|
152
152
|
l = t;
|
|
153
|
-
return l.nodeCategories =
|
|
153
|
+
return l.nodeCategories = N.config.nodeCategories || {}, l.nodeCategoryColors = N.config.nodeCategoryColors || {}, l;
|
|
154
154
|
}
|
|
155
155
|
const xt = r(e.value.style.chart.width), Tt = r(e.value.style.chart.height);
|
|
156
156
|
Re(
|
|
157
|
-
() =>
|
|
157
|
+
() => N.config,
|
|
158
158
|
(t) => {
|
|
159
159
|
Ke.value || (e.value = Ze()), qe.value = !e.value.userOptions.showOnChartHover, wt(), ht.value += 1, Y.value.showTable = e.value.table.show;
|
|
160
160
|
},
|
|
161
161
|
{ deep: !0 }
|
|
162
|
-
), Re(() =>
|
|
162
|
+
), Re(() => N.dataset, (t) => {
|
|
163
163
|
Array.isArray(t) && t.length > 0 && (Xe.value = !1);
|
|
164
164
|
}, { deep: !0 });
|
|
165
165
|
const { isPrinting: Je, isImaging: Qe, generatePdf: St, generateImage: Pt } = vl({
|
|
166
166
|
elementId: `flow_${U.value}`,
|
|
167
167
|
fileName: e.value.style.chart.title.text || "vue-ui-flow",
|
|
168
168
|
options: e.value.userOptions.print
|
|
169
|
-
}), xo = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), De = i(() => ol(e.value.customPalette)),
|
|
169
|
+
}), xo = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), De = i(() => ol(e.value.customPalette)), Ce = i(() => e.value.style.chart.nodes.width), Y = r({
|
|
170
170
|
showTable: e.value.table.show,
|
|
171
171
|
showTooltip: e.value.style.chart.tooltip.show
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
179
179
|
const It = i(() => !Me.value || !Me.value.length ? [] : Me.value.map((t, l) => [
|
|
180
180
|
t[0],
|
|
181
181
|
t[1],
|
|
182
|
-
|
|
182
|
+
I(t[2]),
|
|
183
183
|
t[3] ? ll(t[3]) : De.value[l] || De.value[l % De.value.length] || q[l] || q[l % q.length]
|
|
184
184
|
]));
|
|
185
185
|
function To(t) {
|
|
@@ -198,8 +198,8 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
198
198
|
const m = l[s]?.level ?? 0, R = m + 1;
|
|
199
199
|
a(s, m), a(d, R), l[s].children.push({ target: d, value: g }), l[s].outflow += g, l[d].inflow += g;
|
|
200
200
|
});
|
|
201
|
-
const n = new Set(t.map(([s]) => s)), p = new Set(t.map(([, s]) => s)),
|
|
202
|
-
|
|
201
|
+
const n = new Set(t.map(([s]) => s)), p = new Set(t.map(([, s]) => s)), O = Array.from(n).filter((s) => !p.has(s)), F = {};
|
|
202
|
+
O.forEach((s, d) => {
|
|
203
203
|
F[s] = De.value[d] || q[d % q.length];
|
|
204
204
|
});
|
|
205
205
|
const z = {};
|
|
@@ -207,19 +207,19 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
207
207
|
m && (z[s] = m, z[d] = m);
|
|
208
208
|
}), Object.keys(l).forEach((s, d) => {
|
|
209
209
|
const g = e.value.nodeCategories?.[s], m = g ? e.value.nodeCategoryColors?.[g] : null;
|
|
210
|
-
l[s].color = z[s] || m || (
|
|
210
|
+
l[s].color = z[s] || m || (O.includes(s) ? F[s] : null) || q[d % q.length];
|
|
211
211
|
}), Object.keys(l).forEach((s) => {
|
|
212
212
|
l[s].value = Math.max(l[s].inflow, l[s].outflow);
|
|
213
213
|
});
|
|
214
|
-
const W =
|
|
214
|
+
const W = ke.value, G = Et.value.width, j = Et.value.height, C = Object.keys(o).map(Number).sort((s, d) => s - d), E = C.length || 1, M = E > 1 ? G / (E - 1) : 0, rt = Number(Ce.value), Te = Number(
|
|
215
215
|
e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
|
|
216
|
-
),
|
|
216
|
+
), _ = Number(
|
|
217
217
|
e.value.style.chart.nodes.minHeight || 0
|
|
218
218
|
);
|
|
219
219
|
function Z(s) {
|
|
220
220
|
const d = o[s], g = d.length;
|
|
221
221
|
if (!g) return 1 / 0;
|
|
222
|
-
const m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(
|
|
222
|
+
const m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(_, g ? R / g : 0);
|
|
223
223
|
let x = 0, D = d.map((k) => l[k].value || 0), T = D.reduce((k, L) => k + L, 0);
|
|
224
224
|
for (let k = 0; k < 12; k += 1) {
|
|
225
225
|
const L = T > 0 ? (R - x) / T : 0, ee = [];
|
|
@@ -234,10 +234,10 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
234
234
|
}
|
|
235
235
|
return T > 0 ? Math.max(0, (R - x) / T) : 0;
|
|
236
236
|
}
|
|
237
|
-
const Se = C.map(Z),
|
|
237
|
+
const Se = C.map(Z), h = Se.length ? Math.min(...Se) : 0, y = {};
|
|
238
238
|
C.forEach((s) => {
|
|
239
|
-
const d = o[s], g = d.length, m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(
|
|
240
|
-
(k) => Math.max(Q, (l[k].value || 0) *
|
|
239
|
+
const d = o[s], g = d.length, m = Math.max(0, (g - 1) * Te), R = Math.max(0, j - m), Q = Math.min(_, g ? R / g : 0), x = d.map(
|
|
240
|
+
(k) => Math.max(Q, (l[k].value || 0) * h)
|
|
241
241
|
), D = x.reduce((k, L) => k + L, 0) + m;
|
|
242
242
|
let T = Math.max(0, (j - D) / 2);
|
|
243
243
|
d.forEach((k, L) => {
|
|
@@ -265,19 +265,19 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
265
265
|
if (!m.children || !m.children.length) return;
|
|
266
266
|
let Q = R.y;
|
|
267
267
|
m.children.forEach(({ target: x, value: D }) => {
|
|
268
|
-
const T = y[x], k = l[x], L = m.outflow > 0 ? D / m.outflow : 0, ee = k.inflow > 0 ? D / k.inflow : 0, B =
|
|
268
|
+
const T = y[x], k = l[x], L = m.outflow > 0 ? D / m.outflow : 0, ee = k.inflow > 0 ? D / k.inflow : 0, B = I(Q + ue), K = I(
|
|
269
269
|
Q + L * R.height + ue
|
|
270
270
|
), Ut = ut[x];
|
|
271
271
|
let ze = Ut + ee * T.height;
|
|
272
272
|
it[x] += D;
|
|
273
273
|
const Ko = k.inflow > 0 && it[x] >= k.inflow - Vo, Wt = T.y + T.height;
|
|
274
274
|
(Ko || ze > Wt - Go) && (ze = Wt);
|
|
275
|
-
const Vt =
|
|
275
|
+
const Vt = I(Ut + ue), Gt = I(ze + ue), ie = I(R.x + rt), ce = I(T.x);
|
|
276
276
|
let ct;
|
|
277
277
|
if (!jo || ce <= ie)
|
|
278
278
|
ct = `M ${ie} ${B} L ${ie} ${K} L ${ce} ${Gt} L ${ce} ${Vt} Z`;
|
|
279
279
|
else {
|
|
280
|
-
const jt = ce - ie, Kt =
|
|
280
|
+
const jt = ce - ie, Kt = I(ie + jt * Ht), Xt = I(ce - jt * Ht), qt = B, Zt = Vt, Jt = K, Qt = Gt;
|
|
281
281
|
ct = `M ${ie} ${qt} C ${Kt} ${qt}, ${Xt} ${Zt}, ${ce} ${Zt} L ${ce} ${Qt} C ${Xt} ${Qt}, ${Kt} ${Jt}, ${ie} ${Jt} Z`;
|
|
282
282
|
}
|
|
283
283
|
J.push({
|
|
@@ -302,22 +302,22 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
302
302
|
})),
|
|
303
303
|
links: t.links
|
|
304
304
|
};
|
|
305
|
-
}), Nt = i(() => xt.value), Ot = i(() => Tt.value),
|
|
306
|
-
width: Math.max(0, Nt.value - 40 -
|
|
307
|
-
height: Math.max(0, Ot.value -
|
|
308
|
-
})),
|
|
305
|
+
}), Nt = i(() => xt.value), Ot = i(() => Tt.value), ke = i(() => e.value.style.chart.padding), Et = i(() => ({
|
|
306
|
+
width: Math.max(0, Nt.value - 40 - ke.value.right - ke.value.left),
|
|
307
|
+
height: Math.max(0, Ot.value - ke.value.top - ke.value.bottom)
|
|
308
|
+
})), we = i(() => ({
|
|
309
309
|
width: Nt.value,
|
|
310
310
|
height: Ot.value
|
|
311
311
|
}));
|
|
312
312
|
function So(t) {
|
|
313
313
|
const l = {}, o = {}, a = /* @__PURE__ */ new Set();
|
|
314
|
-
return It.value.forEach(([n, p,
|
|
314
|
+
return It.value.forEach(([n, p, O]) => {
|
|
315
315
|
l[n] || (l[n] = []), o[p] || (o[p] = []), l[n].push(p), o[p].push(n);
|
|
316
316
|
}), l[t] && l[t].forEach((n) => a.add(n)), o[t] && o[t].forEach((n) => a.add(n)), Array.from(a).concat(t);
|
|
317
317
|
}
|
|
318
|
-
const A = r(null), ne = r(null),
|
|
318
|
+
const A = r(null), ne = r(null), fe = r(null), Le = r(!1), $e = r(null);
|
|
319
319
|
function et() {
|
|
320
|
-
$e.value = null, A.value = null, ne.value = null, Ne.value = !1,
|
|
320
|
+
$e.value = null, A.value = null, ne.value = null, Ne.value = !1, be.value = null, de.value = null;
|
|
321
321
|
}
|
|
322
322
|
function Po(t) {
|
|
323
323
|
if (!ae.value || !t) return;
|
|
@@ -330,61 +330,61 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
function tt(t, l, o = "pointer", a = null) {
|
|
333
|
-
re.value = [], A.value = So(t.name), ne.value = t.name, $e.value = t.id, je.value = o,
|
|
333
|
+
re.value = [], A.value = So(t.name), ne.value = t.name, $e.value = t.id, je.value = o, be.value = a, de.value = t.id;
|
|
334
334
|
const n = t.name, p = It.value;
|
|
335
|
-
let
|
|
336
|
-
const G = new Set(p.map(([
|
|
337
|
-
$.value.nodes.forEach((
|
|
338
|
-
M[
|
|
339
|
-
}), p.forEach(([
|
|
340
|
-
y === n && (
|
|
335
|
+
let O = 0, F = 0, z = [], W = [];
|
|
336
|
+
const G = new Set(p.map(([h]) => h)), j = new Set(p.map(([, h]) => h)), C = Array.from(G).filter((h) => !j.has(h)), E = p.filter(([h]) => C.includes(h)).reduce((h, [y, J, ue]) => h + ue, 0), M = {};
|
|
337
|
+
$.value.nodes.forEach((h) => {
|
|
338
|
+
M[h.name] = h.color;
|
|
339
|
+
}), p.forEach(([h, y, J]) => {
|
|
340
|
+
y === n && (O += J, z.push({ source: h, value: J, color: M[h] })), h === n && (F += J, W.push({ target: y, value: J, color: M[y] }));
|
|
341
341
|
});
|
|
342
|
-
const rt = Math.max(
|
|
342
|
+
const rt = Math.max(O, F), Te = E > 0 ? rt / E * 100 : 0, _ = {
|
|
343
343
|
name: n,
|
|
344
|
-
inflow:
|
|
344
|
+
inflow: O,
|
|
345
345
|
outflow: F,
|
|
346
346
|
from: z,
|
|
347
347
|
to: W,
|
|
348
348
|
percentOfTotal: Te,
|
|
349
349
|
color: M[n] || "#000000"
|
|
350
350
|
};
|
|
351
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
351
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: _, seriesIndex: l }), fe.value = { datapoint: _ }, Ne.value = !0;
|
|
352
352
|
let Z = "";
|
|
353
353
|
const Se = e.value.style.chart.tooltip.customFormat;
|
|
354
354
|
if (Le.value = !1, ul(Se))
|
|
355
355
|
try {
|
|
356
|
-
const
|
|
357
|
-
datapoint:
|
|
356
|
+
const h = Se({
|
|
357
|
+
datapoint: _,
|
|
358
358
|
series: $.value,
|
|
359
359
|
config: e.value
|
|
360
360
|
});
|
|
361
|
-
typeof
|
|
361
|
+
typeof h == "string" && (Ve.value = h, Le.value = !0);
|
|
362
362
|
} catch {
|
|
363
363
|
console.warn("Custom format cannot be applied.");
|
|
364
364
|
}
|
|
365
365
|
if (!Le.value) {
|
|
366
|
-
const
|
|
366
|
+
const h = e.value.style.chart.tooltip.showPercentage ? `<div>${ge({
|
|
367
367
|
p: e.value.style.chart.tooltip.translations.percentOfTotal,
|
|
368
|
-
v:
|
|
368
|
+
v: _.percentOfTotal,
|
|
369
369
|
s: "%",
|
|
370
370
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
371
371
|
})}</div>` : "";
|
|
372
|
-
Z += `<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:${
|
|
372
|
+
Z += `<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:${_.color}">⏹</span>${_.name}${h}</div>`, _.from.length && (Z += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, _.from.forEach((y) => {
|
|
373
373
|
Z += `<div><span style="color:${y.color}">⏹←</span> ${y.source}: ${We(
|
|
374
374
|
e.value.style.chart.nodes.labels.formatter,
|
|
375
375
|
y.value,
|
|
376
|
-
|
|
376
|
+
ge({
|
|
377
377
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
378
378
|
v: y.value,
|
|
379
379
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
380
380
|
r: e.value.style.chart.nodes.labels.rounding
|
|
381
381
|
})
|
|
382
382
|
)}</div>`;
|
|
383
|
-
})),
|
|
383
|
+
})), _.to.length && (Z += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, _.to.forEach((y) => {
|
|
384
384
|
Z += `<div><span style="color:${y.color}">⏹→</span> ${y.target}: ${We(
|
|
385
385
|
e.value.style.chart.nodes.labels.formatter,
|
|
386
386
|
y.value,
|
|
387
|
-
|
|
387
|
+
ge({
|
|
388
388
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
389
389
|
v: y.value,
|
|
390
390
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -398,11 +398,11 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
function _t(t) {
|
|
401
|
-
const l =
|
|
401
|
+
const l = fe.value;
|
|
402
402
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), !(je.value === "keyboard" && de.value) && ($e.value = null, A.value = null, ne.value = null, Ne.value = !1);
|
|
403
403
|
}
|
|
404
404
|
function Ft(t) {
|
|
405
|
-
const l =
|
|
405
|
+
const l = fe.value;
|
|
406
406
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t });
|
|
407
407
|
}
|
|
408
408
|
const Mt = i(() => $.value.links.map(
|
|
@@ -431,7 +431,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
431
431
|
});
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
|
-
const
|
|
434
|
+
const he = i(() => {
|
|
435
435
|
const t = [
|
|
436
436
|
e.value.table.columnNames.source,
|
|
437
437
|
e.value.table.columnNames.target,
|
|
@@ -447,7 +447,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
447
447
|
name: n.target,
|
|
448
448
|
shape: "square"
|
|
449
449
|
},
|
|
450
|
-
|
|
450
|
+
ge({
|
|
451
451
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
452
452
|
v: n.value,
|
|
453
453
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -477,13 +477,13 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
477
477
|
config: o
|
|
478
478
|
};
|
|
479
479
|
}), lt = i(() => {
|
|
480
|
-
const t =
|
|
480
|
+
const t = he.value?.colNames ?? [], l = he.value?.body ?? [];
|
|
481
481
|
return { headers: t, rows: l };
|
|
482
482
|
}), Be = i(() => [...$.value.nodes].map((t, l) => ({
|
|
483
483
|
...t,
|
|
484
484
|
index: l,
|
|
485
|
-
centerX: t.x +
|
|
486
|
-
centerY:
|
|
485
|
+
centerX: t.x + Ce.value / 2,
|
|
486
|
+
centerY: I(t.absoluteY) + e.value.style.chart.padding.top + t.height / 2
|
|
487
487
|
})).sort((t, l) => t.x === l.x ? t.absoluteY - l.absoluteY : t.x - l.x)), se = i(() => {
|
|
488
488
|
const l = [];
|
|
489
489
|
return Be.value.forEach((o) => {
|
|
@@ -598,7 +598,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
598
598
|
};
|
|
599
599
|
});
|
|
600
600
|
Re(() => Y.value.showTable, (t) => {
|
|
601
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
601
|
+
e.value.table.show || (t && e.value.table.useDialog && me.value ? me.value.open() : "close" in me.value && me.value.close());
|
|
602
602
|
});
|
|
603
603
|
function Yt() {
|
|
604
604
|
Y.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
|
|
@@ -663,35 +663,35 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
663
663
|
if (!o || !o.nodes.length) return null;
|
|
664
664
|
let a = o.nodes[0], n = Math.abs(a.centerY - l);
|
|
665
665
|
for (let p = 1; p < o.nodes.length; p += 1) {
|
|
666
|
-
const
|
|
667
|
-
F < n && (a =
|
|
666
|
+
const O = o.nodes[p], F = Math.abs(O.centerY - l);
|
|
667
|
+
F < n && (a = O, n = F);
|
|
668
668
|
}
|
|
669
669
|
return a;
|
|
670
670
|
}
|
|
671
671
|
function Ho() {
|
|
672
|
-
|
|
672
|
+
be.value = null, de.value = null, Fe.value = !0;
|
|
673
673
|
}
|
|
674
674
|
function Uo() {
|
|
675
675
|
et(), Fe.value = !1;
|
|
676
676
|
}
|
|
677
677
|
function Wo(t) {
|
|
678
678
|
if (!ae.value || Ae.value || document.activeElement !== ae.value || !Be.value.length) return;
|
|
679
|
-
const l = t.key === "ArrowLeft", o = t.key === "ArrowRight", a = t.key === "ArrowUp", n = t.key === "ArrowDown", p = t.key === "Enter" || t.key === " ",
|
|
680
|
-
if (!l && !o && !a && !n && !p && !
|
|
681
|
-
if (t.preventDefault(), t.stopPropagation(),
|
|
679
|
+
const l = t.key === "ArrowLeft", o = t.key === "ArrowRight", a = t.key === "ArrowUp", n = t.key === "ArrowDown", p = t.key === "Enter" || t.key === " ", O = t.key === "Escape";
|
|
680
|
+
if (!l && !o && !a && !n && !p && !O) return;
|
|
681
|
+
if (t.preventDefault(), t.stopPropagation(), O) {
|
|
682
682
|
et();
|
|
683
683
|
return;
|
|
684
684
|
}
|
|
685
685
|
if (p) {
|
|
686
|
-
if (
|
|
687
|
-
Ft(
|
|
686
|
+
if (be.value === null) return;
|
|
687
|
+
Ft(be.value);
|
|
688
688
|
return;
|
|
689
689
|
}
|
|
690
690
|
if (de.value === null) {
|
|
691
691
|
const C = se.value[0]?.nodes?.[0];
|
|
692
692
|
if (!C) return;
|
|
693
|
-
const
|
|
694
|
-
tt(C,
|
|
693
|
+
const E = Ye.value.get(C.id) ?? 0;
|
|
694
|
+
tt(C, E, "keyboard", E);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
697
|
const F = Ye.value.get(de.value);
|
|
@@ -704,10 +704,10 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
704
704
|
if (a || n) {
|
|
705
705
|
const C = zo(W, z.id);
|
|
706
706
|
if (C < 0) return;
|
|
707
|
-
const
|
|
708
|
-
if (!
|
|
707
|
+
const E = se.value[W];
|
|
708
|
+
if (!E?.nodes?.length) return;
|
|
709
709
|
let M = C + (n ? 1 : -1);
|
|
710
|
-
M < 0 && (M =
|
|
710
|
+
M < 0 && (M = E.nodes.length - 1), M >= E.nodes.length && (M = 0), G = E.nodes[M];
|
|
711
711
|
}
|
|
712
712
|
if (l || o) {
|
|
713
713
|
let C = W + (o ? 1 : -1);
|
|
@@ -746,7 +746,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
746
746
|
id: `chart-instructions-${U.value}`,
|
|
747
747
|
class: "sr-only"
|
|
748
748
|
}, [
|
|
749
|
-
H("p", null,
|
|
749
|
+
H("p", null, pe(e.value.a11y.translations.keyboardNavigation), 1)
|
|
750
750
|
], 8, Tl),
|
|
751
751
|
lt.value?.rows?.length ? (c(), oe($l, {
|
|
752
752
|
key: 0,
|
|
@@ -765,23 +765,23 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
765
765
|
onClose: at,
|
|
766
766
|
isCursorPointer: ve.value
|
|
767
767
|
}, {
|
|
768
|
-
"annotator-action-close":
|
|
768
|
+
"annotator-action-close": f(() => [
|
|
769
769
|
v(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
770
770
|
]),
|
|
771
|
-
"annotator-action-color":
|
|
772
|
-
v(t.$slots, "annotator-action-color",
|
|
771
|
+
"annotator-action-color": f(({ color: o }) => [
|
|
772
|
+
v(t.$slots, "annotator-action-color", S(P({ color: o })), void 0, !0)
|
|
773
773
|
]),
|
|
774
|
-
"annotator-action-draw":
|
|
775
|
-
v(t.$slots, "annotator-action-draw",
|
|
774
|
+
"annotator-action-draw": f(({ mode: o }) => [
|
|
775
|
+
v(t.$slots, "annotator-action-draw", S(P({ mode: o })), void 0, !0)
|
|
776
776
|
]),
|
|
777
|
-
"annotator-action-undo":
|
|
778
|
-
v(t.$slots, "annotator-action-undo",
|
|
777
|
+
"annotator-action-undo": f(({ disabled: o }) => [
|
|
778
|
+
v(t.$slots, "annotator-action-undo", S(P({ disabled: o })), void 0, !0)
|
|
779
779
|
]),
|
|
780
|
-
"annotator-action-redo":
|
|
781
|
-
v(t.$slots, "annotator-action-redo",
|
|
780
|
+
"annotator-action-redo": f(({ disabled: o }) => [
|
|
781
|
+
v(t.$slots, "annotator-action-redo", S(P({ disabled: o })), void 0, !0)
|
|
782
782
|
]),
|
|
783
|
-
"annotator-action-delete":
|
|
784
|
-
v(t.$slots, "annotator-action-delete",
|
|
783
|
+
"annotator-action-delete": f(({ disabled: o }) => [
|
|
784
|
+
v(t.$slots, "annotator-action-delete", S(P({ disabled: o })), void 0, !0)
|
|
785
785
|
]),
|
|
786
786
|
_: 3
|
|
787
787
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : w("", !0),
|
|
@@ -852,71 +852,71 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
852
852
|
}, to({ _: 2 }, [
|
|
853
853
|
t.$slots.menuIcon ? {
|
|
854
854
|
name: "menuIcon",
|
|
855
|
-
fn:
|
|
856
|
-
v(t.$slots, "menuIcon",
|
|
855
|
+
fn: f(({ isOpen: o, color: a }) => [
|
|
856
|
+
v(t.$slots, "menuIcon", S(P({ isOpen: o, color: a })), void 0, !0)
|
|
857
857
|
]),
|
|
858
858
|
key: "0"
|
|
859
859
|
} : void 0,
|
|
860
860
|
t.$slots.optionTooltip ? {
|
|
861
861
|
name: "optionTooltip",
|
|
862
|
-
fn:
|
|
862
|
+
fn: f(() => [
|
|
863
863
|
v(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
864
864
|
]),
|
|
865
865
|
key: "1"
|
|
866
866
|
} : void 0,
|
|
867
867
|
t.$slots.optionPdf ? {
|
|
868
868
|
name: "optionPdf",
|
|
869
|
-
fn:
|
|
869
|
+
fn: f(() => [
|
|
870
870
|
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
871
871
|
]),
|
|
872
872
|
key: "2"
|
|
873
873
|
} : void 0,
|
|
874
874
|
t.$slots.optionCsv ? {
|
|
875
875
|
name: "optionCsv",
|
|
876
|
-
fn:
|
|
876
|
+
fn: f(() => [
|
|
877
877
|
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
878
878
|
]),
|
|
879
879
|
key: "3"
|
|
880
880
|
} : void 0,
|
|
881
881
|
t.$slots.optionImg ? {
|
|
882
882
|
name: "optionImg",
|
|
883
|
-
fn:
|
|
883
|
+
fn: f(() => [
|
|
884
884
|
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
885
885
|
]),
|
|
886
886
|
key: "4"
|
|
887
887
|
} : void 0,
|
|
888
888
|
t.$slots.optionSvg ? {
|
|
889
889
|
name: "optionSvg",
|
|
890
|
-
fn:
|
|
890
|
+
fn: f(() => [
|
|
891
891
|
v(t.$slots, "optionSvg", {}, void 0, !0)
|
|
892
892
|
]),
|
|
893
893
|
key: "5"
|
|
894
894
|
} : void 0,
|
|
895
895
|
t.$slots.optionTable ? {
|
|
896
896
|
name: "optionTable",
|
|
897
|
-
fn:
|
|
897
|
+
fn: f(() => [
|
|
898
898
|
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
899
899
|
]),
|
|
900
900
|
key: "6"
|
|
901
901
|
} : void 0,
|
|
902
902
|
t.$slots.optionFullscreen ? {
|
|
903
903
|
name: "optionFullscreen",
|
|
904
|
-
fn:
|
|
905
|
-
v(t.$slots, "optionFullscreen",
|
|
904
|
+
fn: f(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
905
|
+
v(t.$slots, "optionFullscreen", S(P({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
906
906
|
]),
|
|
907
907
|
key: "7"
|
|
908
908
|
} : void 0,
|
|
909
909
|
t.$slots.optionAnnotator ? {
|
|
910
910
|
name: "optionAnnotator",
|
|
911
|
-
fn:
|
|
912
|
-
v(t.$slots, "optionAnnotator",
|
|
911
|
+
fn: f(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
912
|
+
v(t.$slots, "optionAnnotator", S(P({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
913
913
|
]),
|
|
914
914
|
key: "8"
|
|
915
915
|
} : void 0,
|
|
916
916
|
t.$slots.optionAltCopy ? {
|
|
917
917
|
name: "optionAltCopy",
|
|
918
|
-
fn:
|
|
919
|
-
v(t.$slots, "optionAltCopy",
|
|
918
|
+
fn: f(({ altCopy: o }) => [
|
|
919
|
+
v(t.$slots, "optionAltCopy", S(P({ altCopy: o })), void 0, !0)
|
|
920
920
|
]),
|
|
921
921
|
key: "9"
|
|
922
922
|
} : void 0
|
|
@@ -927,7 +927,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
927
927
|
ref: ae,
|
|
928
928
|
xmlns: u(al),
|
|
929
929
|
"aria-describedby": `chart-instructions-${U.value}`,
|
|
930
|
-
viewBox: `0 0 ${
|
|
930
|
+
viewBox: `0 0 ${we.value.width} ${we.value.height}`,
|
|
931
931
|
class: eo({
|
|
932
932
|
"vue-data-ui-fullscreen--on": le.value,
|
|
933
933
|
"vue-data-ui-fulscreen--off": !le.value
|
|
@@ -948,8 +948,8 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
948
948
|
key: 0,
|
|
949
949
|
x: 0,
|
|
950
950
|
y: 0,
|
|
951
|
-
width:
|
|
952
|
-
height:
|
|
951
|
+
width: we.value.width,
|
|
952
|
+
height: we.value.height,
|
|
953
953
|
style: {
|
|
954
954
|
pointerEvents: "none"
|
|
955
955
|
}
|
|
@@ -990,9 +990,9 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
990
990
|
"data-a11y-node-id": o.id,
|
|
991
991
|
class: "vue-ui-flow-node",
|
|
992
992
|
x: o.x,
|
|
993
|
-
y: u(
|
|
994
|
-
height: u(
|
|
995
|
-
width:
|
|
993
|
+
y: u(I)(o.absoluteY) + e.value.style.chart.padding.top,
|
|
994
|
+
height: u(I)(o.height),
|
|
995
|
+
width: Ce.value,
|
|
996
996
|
fill: o.color,
|
|
997
997
|
stroke: e.value.style.chart.nodes.stroke,
|
|
998
998
|
"stroke-width": e.value.style.chart.nodes.strokeWidth,
|
|
@@ -1004,7 +1004,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1004
1004
|
"aria-label": `${o.name}: ${u(We)(
|
|
1005
1005
|
e.value.style.chart.nodes.labels.formatter,
|
|
1006
1006
|
o.value,
|
|
1007
|
-
u(
|
|
1007
|
+
u(ge)({
|
|
1008
1008
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
1009
1009
|
v: o.value,
|
|
1010
1010
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -1017,31 +1017,31 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1017
1017
|
}, null, 44, Dl))), 256)),
|
|
1018
1018
|
e.value.style.chart.nodes.labels.show ? (c(), b("g", Ll, [
|
|
1019
1019
|
(c(!0), b(Pe, null, Ie($.value.nodes, (o, a) => (c(), b("text", {
|
|
1020
|
-
x: o.x +
|
|
1021
|
-
y: (e.value.style.chart.nodes.labels.showValue ? u(
|
|
1020
|
+
x: o.x + Ce.value / 2,
|
|
1021
|
+
y: (e.value.style.chart.nodes.labels.showValue ? u(I)(
|
|
1022
1022
|
o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
|
|
1023
1023
|
) : o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 3) + e.value.style.chart.padding.top,
|
|
1024
1024
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
1025
1025
|
fill: u(no)(o.color),
|
|
1026
1026
|
"text-anchor": "middle",
|
|
1027
1027
|
style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
1028
|
-
},
|
|
1028
|
+
}, pe(e.value.style.chart.nodes.labels.abbreviation.use ? u(nl)({
|
|
1029
1029
|
source: o.name,
|
|
1030
1030
|
length: e.value.style.chart.nodes.labels.abbreviation.length
|
|
1031
1031
|
}) : o.name), 13, Bl))), 256)),
|
|
1032
1032
|
e.value.style.chart.nodes.labels.showValue ? (c(!0), b(Pe, { key: 0 }, Ie($.value.nodes, (o, a) => (c(), b("text", {
|
|
1033
|
-
x: o.x +
|
|
1034
|
-
y: u(
|
|
1033
|
+
x: o.x + Ce.value / 2,
|
|
1034
|
+
y: u(I)(
|
|
1035
1035
|
o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize / 1.3
|
|
1036
1036
|
) + e.value.style.chart.padding.top,
|
|
1037
1037
|
"font-size": e.value.style.chart.nodes.labels.fontSize,
|
|
1038
1038
|
fill: u(no)(o.color),
|
|
1039
1039
|
"text-anchor": "middle",
|
|
1040
1040
|
style: X(`pointer-events: none; opacity:${A.value ? A.value.includes(o.name) ? 1 : 0 : 1}`)
|
|
1041
|
-
},
|
|
1041
|
+
}, pe(u(We)(
|
|
1042
1042
|
e.value.style.chart.nodes.labels.formatter,
|
|
1043
1043
|
o.value,
|
|
1044
|
-
u(
|
|
1044
|
+
u(ge)({
|
|
1045
1045
|
p: e.value.style.chart.nodes.labels.prefix,
|
|
1046
1046
|
v: o.value,
|
|
1047
1047
|
s: e.value.style.chart.nodes.labels.suffix,
|
|
@@ -1052,18 +1052,18 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1052
1052
|
])) : w("", !0),
|
|
1053
1053
|
v(t.$slots, "svg", {
|
|
1054
1054
|
svg: {
|
|
1055
|
-
...
|
|
1055
|
+
...we.value,
|
|
1056
1056
|
isPrintingImg: u(Je) | u(Qe) | Ee.value,
|
|
1057
1057
|
isPrintingSvg: _e.value
|
|
1058
1058
|
}
|
|
1059
1059
|
}, void 0, !0)
|
|
1060
1060
|
], 46, Nl)),
|
|
1061
1061
|
t.$slots.hint ? (c(), b("div", zl, [
|
|
1062
|
-
v(t.$slots, "hint",
|
|
1062
|
+
v(t.$slots, "hint", S(P({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Fe.value })), void 0, !0)
|
|
1063
1063
|
])) : w("", !0)
|
|
1064
1064
|
]),
|
|
1065
1065
|
t.$slots.watermark ? (c(), b("div", Rl, [
|
|
1066
|
-
v(t.$slots, "watermark",
|
|
1066
|
+
v(t.$slots, "watermark", S(P({ isPrinting: u(Je) || u(Qe) || Ee.value || _e.value })), void 0, !0)
|
|
1067
1067
|
])) : w("", !0),
|
|
1068
1068
|
H("div", {
|
|
1069
1069
|
id: `legend-bottom-${U.value}`
|
|
@@ -1083,12 +1083,12 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1083
1083
|
isCursorPointer: ve.value,
|
|
1084
1084
|
onClickMarker: l[0] || (l[0] = (o) => st(o))
|
|
1085
1085
|
}, {
|
|
1086
|
-
item:
|
|
1086
|
+
item: f(({ legend: o, index: a }) => [
|
|
1087
1087
|
u(Ke) ? w("", !0) : (c(), b("div", {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
onClick: (n) => o.segregate(),
|
|
1090
1090
|
style: X(`opacity:${re.value.length ? re.value.includes(a) ? 1 : 0.5 : 1}`)
|
|
1091
|
-
},
|
|
1091
|
+
}, pe(o.display), 13, Ul))
|
|
1092
1092
|
]),
|
|
1093
1093
|
_: 1
|
|
1094
1094
|
}, 8, ["legendSet", "config", "isCursorPointer"])) : w("", !0),
|
|
@@ -1128,38 +1128,41 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1128
1128
|
isA11yMode: je.value === "keyboard",
|
|
1129
1129
|
a11yPosition: bt.value
|
|
1130
1130
|
}, {
|
|
1131
|
-
"tooltip-before":
|
|
1132
|
-
v(t.$slots, "tooltip-before",
|
|
1131
|
+
"tooltip-before": f(() => [
|
|
1132
|
+
v(t.$slots, "tooltip-before", S(P({ ...fe.value })), void 0, !0)
|
|
1133
1133
|
]),
|
|
1134
|
-
|
|
1135
|
-
v(t.$slots, "tooltip
|
|
1134
|
+
tooltip: f(() => [
|
|
1135
|
+
v(t.$slots, "tooltip", S(P({ ...fe.value })), void 0, !0)
|
|
1136
|
+
]),
|
|
1137
|
+
"tooltip-after": f(() => [
|
|
1138
|
+
v(t.$slots, "tooltip-after", S(P({ ...fe.value })), void 0, !0)
|
|
1136
1139
|
]),
|
|
1137
1140
|
_: 3
|
|
1138
1141
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1139
1142
|
Ct.value && e.value.userOptions.buttons.table ? (c(), oe(Jo(xe.value.component), Qo({ key: 8 }, xe.value.props, {
|
|
1140
1143
|
ref_key: "tableUnit",
|
|
1141
|
-
ref:
|
|
1144
|
+
ref: me,
|
|
1142
1145
|
onClose: Yt
|
|
1143
1146
|
}), to({
|
|
1144
|
-
content:
|
|
1147
|
+
content: f(() => [
|
|
1145
1148
|
He(u(fo), {
|
|
1146
|
-
colNames:
|
|
1147
|
-
head:
|
|
1148
|
-
body:
|
|
1149
|
-
config:
|
|
1149
|
+
colNames: he.value.colNames,
|
|
1150
|
+
head: he.value.head,
|
|
1151
|
+
body: he.value.body,
|
|
1152
|
+
config: he.value.config,
|
|
1150
1153
|
title: e.value.table.useDialog ? "" : xe.value.title,
|
|
1151
1154
|
withCloseButton: !e.value.table.useDialog,
|
|
1152
1155
|
isCursorPointer: ve.value,
|
|
1153
1156
|
onClose: Yt
|
|
1154
1157
|
}, {
|
|
1155
|
-
th:
|
|
1158
|
+
th: f(({ th: o }) => [
|
|
1156
1159
|
H("div", {
|
|
1157
1160
|
innerHTML: o,
|
|
1158
1161
|
style: { display: "flex", "align-items": "center" }
|
|
1159
1162
|
}, null, 8, Wl)
|
|
1160
1163
|
]),
|
|
1161
|
-
td:
|
|
1162
|
-
oo(
|
|
1164
|
+
td: f(({ td: o }) => [
|
|
1165
|
+
oo(pe(o.name || o), 1)
|
|
1163
1166
|
]),
|
|
1164
1167
|
_: 1
|
|
1165
1168
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
|
|
@@ -1168,14 +1171,14 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1168
1171
|
}, [
|
|
1169
1172
|
e.value.table.useDialog ? {
|
|
1170
1173
|
name: "title",
|
|
1171
|
-
fn:
|
|
1172
|
-
oo(
|
|
1174
|
+
fn: f(() => [
|
|
1175
|
+
oo(pe(xe.value.title), 1)
|
|
1173
1176
|
]),
|
|
1174
1177
|
key: "0"
|
|
1175
1178
|
} : void 0,
|
|
1176
1179
|
e.value.table.useDialog ? {
|
|
1177
1180
|
name: "actions",
|
|
1178
|
-
fn:
|
|
1181
|
+
fn: f(() => [
|
|
1179
1182
|
H("button", {
|
|
1180
1183
|
tabindex: "0",
|
|
1181
1184
|
class: "vue-ui-user-options-button",
|
|
@@ -1196,7 +1199,7 @@ const xl = ["id"], Tl = ["id"], Sl = {
|
|
|
1196
1199
|
], !0)
|
|
1197
1200
|
], 46, xl));
|
|
1198
1201
|
}
|
|
1199
|
-
}, ia = /* @__PURE__ */ Al(Vl, [["__scopeId", "data-v-
|
|
1202
|
+
}, ia = /* @__PURE__ */ Al(Vl, [["__scopeId", "data-v-3c32a139"]]);
|
|
1200
1203
|
export {
|
|
1201
1204
|
ia as default
|
|
1202
1205
|
};
|