vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4
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 +21 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
- package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +60 -1
- package/dist/types/vue-data-ui.d.ts +60 -1
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
- package/package.json +1 -1
- package/dist/dom-to-png-BjSUS-jY.js +0 -243
- package/dist/img-DWfzRJdv.js +0 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as A, computed as x, useSlots as z, onMounted as C, watch as y, ref as k, createElementBlock as i, openBlock as s, normalizeStyle as u, normalizeClass as r, createElementVNode as $, renderSlot as n, createTextVNode as h, toDisplayString as b, createVNode as w, unref as v, Fragment as B } from "vue";
|
|
2
|
-
import { u as L } from "./useNestedProp-
|
|
3
|
-
import { u as M, i as E, f as I } from "./index-
|
|
2
|
+
import { u as L } from "./useNestedProp-DqpZEE3h.js";
|
|
3
|
+
import { u as M, i as E, f as I } from "./index-BzQ0j5xI.js";
|
|
4
4
|
const G = {
|
|
5
5
|
__name: "vue-ui-kpi",
|
|
6
6
|
props: {
|
|
@@ -16,7 +16,7 @@ const G = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
|
-
const F = A(() => import("./vue-ui-digits-
|
|
19
|
+
const F = A(() => import("./vue-ui-digits-B3h4BufU.js")), { vue_ui_kpi: N } = M(), l = o, e = x({
|
|
20
20
|
get: () => c(),
|
|
21
21
|
set: (a) => a
|
|
22
22
|
}), D = z();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCssVars as h, computed as r, ref as f, createElementBlock as n, openBlock as u, unref as M, createCommentVNode as a, createElementVNode as t, normalizeStyle as l } from "vue";
|
|
2
|
-
import { u as m } from "./useNestedProp-
|
|
3
|
-
import { u as y, X as L } from "./index-
|
|
2
|
+
import { u as m } from "./useNestedProp-DqpZEE3h.js";
|
|
3
|
+
import { u as y, X as L } from "./index-BzQ0j5xI.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
|
|
6
6
|
__name: "vue-ui-mini-loader",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useCssVars as Qe, defineAsyncComponent as p, computed as k, onMounted as Je, ref as
|
|
2
|
-
import { u as nt, o as rt, e as it, c as pe, t as ut, p as fe, a as ct, b as dt, P as vt, X as ht, l as pt, Q as ft, d as ge, q as gt, r as mt, x as yt, y as bt } from "./index-
|
|
3
|
-
import { u as me } from "./useNestedProp-
|
|
4
|
-
import { u as kt } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Qe, defineAsyncComponent as p, computed as k, onMounted as Je, ref as c, watch as Ke, createElementBlock as y, openBlock as r, unref as l, normalizeStyle as B, normalizeClass as he, createBlock as $, createCommentVNode as f, createVNode as F, createSlots as et, withCtx as d, renderSlot as i, normalizeProps as w, guardReactiveProps as T, createElementVNode as _, Fragment as tt, renderList as ot, createTextVNode as lt, toDisplayString as st, nextTick as at } from "vue";
|
|
2
|
+
import { u as nt, o as rt, e as it, c as pe, t as ut, p as fe, a as ct, b as dt, P as vt, X as ht, l as pt, Q as ft, d as ge, q as gt, r as mt, x as yt, y as bt } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as me } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as kt } from "./usePrinter-CpG5jh_z.js";
|
|
5
5
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
7
|
import { u as wt } from "./usePanZoom-BQMvRXEQ.js";
|
|
8
8
|
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const
|
|
9
|
+
const Ot = ["id"], Pt = {
|
|
10
10
|
key: 1,
|
|
11
11
|
ref: "noTitle",
|
|
12
12
|
class: "vue-data-ui-no-title-space",
|
|
@@ -44,9 +44,9 @@ const Pt = ["id"], Ot = {
|
|
|
44
44
|
emits: ["selectNode"],
|
|
45
45
|
setup(ye, { expose: be, emit: ke }) {
|
|
46
46
|
Qe((t) => ({
|
|
47
|
-
|
|
47
|
+
"1859f908": t.slicerColor
|
|
48
48
|
}));
|
|
49
|
-
const Ce = p(() => import("./vue-ui-accordion-
|
|
49
|
+
const Ce = p(() => import("./vue-ui-accordion-bpaEpjqI.js")), $e = p(() => import("./BaseIcon-d4dmqhkb.js")), we = p(() => import("./DataTable-CmbjnjRg.js")), Te = p(() => import("./PackageVersion-OcbP0WH2.js")), Oe = p(() => import("./PenAndPaper-BgPXmpGI.js")), Pe = p(() => import("./RecursiveCircles-Dn3TGoL6.js")), Ae = p(() => import("./RecursiveLabels-NTMB9w5C.js")), Ie = p(() => import("./RecursiveLinks-ld_gDZH4.js")), Ne = p(() => import("./vue-ui-skeleton-CavMQlAm.js")), Fe = p(() => import("./Title-CJcZXNtK.js")), _e = p(() => import("./Tooltip-dXp8FaUj.js")), Se = p(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_molecule: Le } = nt(), C = ye, De = ke, S = k(() => !!C.dataset && C.dataset.length);
|
|
50
50
|
Je(() => {
|
|
51
51
|
W();
|
|
52
52
|
});
|
|
@@ -56,7 +56,7 @@ const Pt = ["id"], Ot = {
|
|
|
56
56
|
type: "dataset"
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
const U =
|
|
59
|
+
const U = c(pe()), Be = c(null), R = c(!1), L = c(""), E = c(null), X = c(0), j = c(0), Y = c(0), e = k({
|
|
60
60
|
get: () => Q(),
|
|
61
61
|
set: (t) => t
|
|
62
62
|
}), { userOptionsVisible: x, setUserOptionsVisibility: Z, keepUserOptionState: q } = Ct({ config: e.value }), { svgRef: z } = $t({ config: e.value.style.chart.title });
|
|
@@ -80,7 +80,7 @@ const Pt = ["id"], Ot = {
|
|
|
80
80
|
elementId: `cluster_${U.value}`,
|
|
81
81
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
82
82
|
options: e.value.userOptions.print
|
|
83
|
-
}), Ue = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = k(() => dt(e.value.customPalette)), h =
|
|
83
|
+
}), Ue = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = k(() => dt(e.value.customPalette)), h = c({
|
|
84
84
|
showTable: e.value.table.show,
|
|
85
85
|
showDataLabels: !0,
|
|
86
86
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -98,9 +98,9 @@ const Pt = ["id"], Ot = {
|
|
|
98
98
|
width: o
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
const v =
|
|
102
|
-
|
|
103
|
-
function le(t, s = { x: -v.value.width / 2.43, y: v.value.height / 2 }, o = v.value.width / 1.1, n = 24, a = 0,
|
|
101
|
+
const v = c(Ee());
|
|
102
|
+
c(`0 0 ${v.value.width} ${v.value.height}`);
|
|
103
|
+
function le(t, s = { x: -v.value.width / 2.43, y: v.value.height / 2 }, o = v.value.width / 1.1, n = 24, a = 0, u = 0, g = "#BBBBBB", G = 0) {
|
|
104
104
|
if (!Array.isArray(t) || t.length === 0) return t;
|
|
105
105
|
const qe = ft({
|
|
106
106
|
plot: s,
|
|
@@ -113,15 +113,15 @@ const Pt = ["id"], Ot = {
|
|
|
113
113
|
let M = ge(m.color);
|
|
114
114
|
return M.startsWith("#") ? M : `#${M}`;
|
|
115
115
|
})() : null;
|
|
116
|
-
let
|
|
117
|
-
ve ?
|
|
116
|
+
let P;
|
|
117
|
+
ve ? P = ve : G === 0 ? P = g : G === 1 ? (P = Re.value[u] || fe[u] || g, u += 1) : P = g, m.polygonPath = { coordinates: [de] }, m.circleRadius = n, m.color = P, m.uid = pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = le(
|
|
118
118
|
m.nodes,
|
|
119
119
|
de,
|
|
120
120
|
o / 2.9,
|
|
121
121
|
n / 2.2,
|
|
122
122
|
a + Math.PI * ce / m.nodes.length,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
u,
|
|
124
|
+
P,
|
|
125
125
|
G + 1
|
|
126
126
|
));
|
|
127
127
|
}), t;
|
|
@@ -129,23 +129,23 @@ const Pt = ["id"], Ot = {
|
|
|
129
129
|
function xe(t) {
|
|
130
130
|
const s = /* @__PURE__ */ new Set();
|
|
131
131
|
function o(a) {
|
|
132
|
-
a.forEach((
|
|
133
|
-
if (!
|
|
134
|
-
let g =
|
|
135
|
-
/^#?[0-9A-F]{6}$/i.test(g) || (g = ge(g)), g.startsWith("#") || (g = `#${g}`), s.add(g), Array.isArray(
|
|
132
|
+
a.forEach((u) => {
|
|
133
|
+
if (!u.color) return;
|
|
134
|
+
let g = u.color;
|
|
135
|
+
/^#?[0-9A-F]{6}$/i.test(g) || (g = ge(g)), g.startsWith("#") || (g = `#${g}`), s.add(g), Array.isArray(u.nodes) && u.nodes.length && o(u.nodes);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
o(t);
|
|
139
139
|
const n = {};
|
|
140
140
|
return Array.from(s).forEach((a) => {
|
|
141
|
-
const
|
|
142
|
-
n[a] = `gradient_${
|
|
141
|
+
const u = a.slice(1);
|
|
142
|
+
n[a] = `gradient_${u}`;
|
|
143
143
|
}), n;
|
|
144
144
|
}
|
|
145
145
|
const ze = k(() => xe(b.value)), b = k(() => {
|
|
146
146
|
const t = vt(C.dataset);
|
|
147
147
|
return le(t);
|
|
148
|
-
}), H =
|
|
148
|
+
}), H = c(null);
|
|
149
149
|
function He(t) {
|
|
150
150
|
H.value = {
|
|
151
151
|
datapoint: t,
|
|
@@ -172,7 +172,7 @@ const Pt = ["id"], Ot = {
|
|
|
172
172
|
o += `<div style="display:flex;align-items:center;gap:3px"><div style="color:${t.color}">⬤</div><div>${t.name}</div></div>`, t.details && (o += `<div style="width:100%;border-top:1px solid ${e.value.style.chart.tooltip.borderColor};margin-top: 2px">${t.details}</div>`), L.value = `<div style="font-family:inherit">${o}</div>`;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
const se =
|
|
175
|
+
const se = c(null), A = c(null);
|
|
176
176
|
function Ve(t) {
|
|
177
177
|
se.value = t, t ? (R.value = !0, He(t), A.value = t.uid) : (R.value = !1, L.value = "", A.value = null);
|
|
178
178
|
}
|
|
@@ -180,23 +180,23 @@ const Pt = ["id"], Ot = {
|
|
|
180
180
|
const s = [];
|
|
181
181
|
function o(n) {
|
|
182
182
|
n.forEach((a) => {
|
|
183
|
-
const
|
|
183
|
+
const u = {
|
|
184
184
|
name: a.name,
|
|
185
185
|
details: a.details || "-",
|
|
186
186
|
ancestor: a.ancestor && a.ancestor.name || "-",
|
|
187
187
|
color: a.color || ""
|
|
188
188
|
};
|
|
189
|
-
s.push(
|
|
189
|
+
s.push(u), a.nodes && a.nodes.length > 0 && o(a.nodes, a.name);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
return o(t), s;
|
|
193
193
|
}
|
|
194
|
-
const Me = k(() => Ge(b.value)),
|
|
194
|
+
const Me = k(() => Ge(b.value)), O = k(() => {
|
|
195
195
|
const t = [
|
|
196
196
|
e.value.table.translations.nodeName,
|
|
197
197
|
e.value.table.translations.details,
|
|
198
198
|
e.value.table.translations.ancestor
|
|
199
|
-
], s = Me.value.map((a,
|
|
199
|
+
], s = Me.value.map((a, u) => [
|
|
200
200
|
{
|
|
201
201
|
color: a.color,
|
|
202
202
|
name: a.name
|
|
@@ -227,16 +227,16 @@ const Pt = ["id"], Ot = {
|
|
|
227
227
|
colNames: n
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
function ae() {
|
|
230
|
+
function ae(t = null) {
|
|
231
231
|
at(() => {
|
|
232
|
-
const
|
|
233
|
-
mt({ csvContent:
|
|
232
|
+
const s = O.value.body.map((a, u) => [[a[0].name], [a[1]], [a[2]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...O.value.head]]].concat(s), n = gt(o);
|
|
233
|
+
t ? t(n) : mt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
function We() {
|
|
237
237
|
return b.value;
|
|
238
238
|
}
|
|
239
|
-
const I =
|
|
239
|
+
const I = c(!1);
|
|
240
240
|
function Xe(t) {
|
|
241
241
|
I.value = t, X.value += 1;
|
|
242
242
|
}
|
|
@@ -249,7 +249,7 @@ const Pt = ["id"], Ot = {
|
|
|
249
249
|
function ie() {
|
|
250
250
|
h.value.showTooltip = !h.value.showTooltip;
|
|
251
251
|
}
|
|
252
|
-
const N =
|
|
252
|
+
const N = c(!1);
|
|
253
253
|
function V() {
|
|
254
254
|
N.value = !N.value;
|
|
255
255
|
}
|
|
@@ -282,7 +282,7 @@ const Pt = ["id"], Ot = {
|
|
|
282
282
|
}),
|
|
283
283
|
onMouseenter: s[3] || (s[3] = () => l(Z)(!0))
|
|
284
284
|
}, [
|
|
285
|
-
e.value.userOptions.buttons.annotator ? (r(), $(l(
|
|
285
|
+
e.value.userOptions.buttons.annotator ? (r(), $(l(Oe), {
|
|
286
286
|
key: 0,
|
|
287
287
|
svgRef: l(z),
|
|
288
288
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -290,7 +290,7 @@ const Pt = ["id"], Ot = {
|
|
|
290
290
|
active: N.value,
|
|
291
291
|
onClose: V
|
|
292
292
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
293
|
-
Ue.value ? (r(), y("div",
|
|
293
|
+
Ue.value ? (r(), y("div", Pt, null, 512)) : f("", !0),
|
|
294
294
|
e.value.style.chart.title.text ? (r(), y("div", At, [
|
|
295
295
|
(r(), $(l(Fe), {
|
|
296
296
|
key: `title_${j.value}`,
|
|
@@ -328,6 +328,7 @@ const Pt = ["id"], Ot = {
|
|
|
328
328
|
position: e.value.userOptions.position,
|
|
329
329
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
330
330
|
isAnnotation: N.value,
|
|
331
|
+
callbacks: e.value.userOptions.callbacks,
|
|
331
332
|
onToggleFullscreen: Xe,
|
|
332
333
|
onGeneratePdf: l(ee),
|
|
333
334
|
onGenerateCsv: ae,
|
|
@@ -403,7 +404,7 @@ const Pt = ["id"], Ot = {
|
|
|
403
404
|
]),
|
|
404
405
|
key: "8"
|
|
405
406
|
} : void 0
|
|
406
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
407
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
407
408
|
S.value ? (r(), y("svg", {
|
|
408
409
|
key: 4,
|
|
409
410
|
ref_key: "svgRef",
|
|
@@ -450,7 +451,7 @@ const Pt = ["id"], Ot = {
|
|
|
450
451
|
color: e.value.style.chart.links.stroke,
|
|
451
452
|
backgroundColor: e.value.style.chart.backgroundColor
|
|
452
453
|
}, null, 8, ["dataset", "color", "backgroundColor"]),
|
|
453
|
-
F(l(
|
|
454
|
+
F(l(Pe), {
|
|
454
455
|
dataset: b.value,
|
|
455
456
|
hoveredUid: A.value,
|
|
456
457
|
stroke: e.value.style.chart.nodes.stroke,
|
|
@@ -551,10 +552,10 @@ const Pt = ["id"], Ot = {
|
|
|
551
552
|
content: d(() => [
|
|
552
553
|
(r(), $(l(we), {
|
|
553
554
|
key: `table_${Y.value}`,
|
|
554
|
-
colNames:
|
|
555
|
-
head:
|
|
556
|
-
body:
|
|
557
|
-
config:
|
|
555
|
+
colNames: O.value.colNames,
|
|
556
|
+
head: O.value.head,
|
|
557
|
+
body: O.value.body,
|
|
558
|
+
config: O.value.config,
|
|
558
559
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
559
560
|
onClose: s[1] || (s[1] = (o) => h.value.showTable = !1)
|
|
560
561
|
}, {
|
|
@@ -572,9 +573,9 @@ const Pt = ["id"], Ot = {
|
|
|
572
573
|
]),
|
|
573
574
|
_: 1
|
|
574
575
|
}, 8, ["config"])) : f("", !0)
|
|
575
|
-
], 46,
|
|
576
|
+
], 46, Ot));
|
|
576
577
|
}
|
|
577
|
-
}, Xt = /* @__PURE__ */ Tt(Rt, [["__scopeId", "data-v-
|
|
578
|
+
}, Xt = /* @__PURE__ */ Tt(Rt, [["__scopeId", "data-v-20a9487b"]]);
|
|
578
579
|
export {
|
|
579
580
|
Xt as default
|
|
580
581
|
};
|