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,6 +1,6 @@
|
|
|
1
|
-
import { defineAsyncComponent as U, computed as w, ref as r, toRefs as Ut, watch as
|
|
2
|
-
import { u as Yt } from "./useConfig-
|
|
3
|
-
import { j as ft, t as pt, m as De, p as
|
|
1
|
+
import { defineAsyncComponent as U, computed as w, ref as r, toRefs as Ut, watch as fe, onMounted as Vt, onBeforeUnmount as Gt, openBlock as d, createElementBlock as C, unref as v, normalizeStyle as ae, normalizeClass as _e, createElementVNode as O, toDisplayString as ne, createBlock as K, createCommentVNode as x, withCtx as b, renderSlot as c, normalizeProps as P, guardReactiveProps as S, createSlots as vt, createVNode as Oe, Fragment as W, renderList as Fe, mergeProps as pe, resolveDynamicComponent as Kt, createTextVNode as ct, nextTick as dt } from "vue";
|
|
2
|
+
import { u as Yt } from "./useConfig-ChRble71.js";
|
|
3
|
+
import { j as ft, t as pt, m as De, p as he, o as jt, q as Xt, n as qt, s as Wt, l as ht, X as Ht, x as Zt, w as Jt, W as Ie, d as Qt, a0 as eo, a1 as to, T as oo, k as lo, a3 as ao } from "./lib-DBptbyyI.js";
|
|
4
4
|
import { u as no } from "./usePrinter-CEpYU3r5.js";
|
|
5
5
|
import { u as so, B as uo } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as ro } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -15,21 +15,21 @@ import mo from "./vue_ui_circle_pack-CLmw8nHe.js";
|
|
|
15
15
|
import { A as bo } from "./A11yDataTable-KcVAX2cP.js";
|
|
16
16
|
import { _ as go } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
function ko(i, f = 0) {
|
|
18
|
-
const y = i.reduce((a, { x: s, r: h }) => Math.min(a, s - h - f), 1 / 0),
|
|
19
|
-
return [y, p,
|
|
18
|
+
const y = i.reduce((a, { x: s, r: h }) => Math.min(a, s - h - f), 1 / 0), g = i.reduce((a, { x: s, r: h }) => Math.max(a, s + h + f), -1 / 0), p = i.reduce((a, { y: s, r: h }) => Math.min(a, s - h - f), 1 / 0), n = i.reduce((a, { y: s, r: h }) => Math.max(a, s + h + f), -1 / 0);
|
|
19
|
+
return [y, p, g - y, n - p];
|
|
20
20
|
}
|
|
21
21
|
function Co(i, f, y) {
|
|
22
|
-
const
|
|
22
|
+
const g = i._, p = i.next._, n = g.r + p.r, a = (g.x * p.r + p.x * g.r) / n, s = (g.y * p.r + p.y * g.r) / n;
|
|
23
23
|
return Math.max(Math.abs(a * y), Math.abs(s * f));
|
|
24
24
|
}
|
|
25
25
|
function wo(i, f, y) {
|
|
26
|
-
const
|
|
26
|
+
const g = Co, p = i.length;
|
|
27
27
|
if (!p) return i;
|
|
28
28
|
let n, a, s;
|
|
29
29
|
if (n = i[0], n.x = 0, n.y = 0, !(p > 1) || (a = i[1], n.x = -a.r, a.x = n.r, a.y = 0, !(p > 2))) return i;
|
|
30
|
-
yt(a, n, s = i[2]), n = new
|
|
30
|
+
yt(a, n, s = i[2]), n = new ye(n), a = new ye(a), s = new ye(s), n.next = s.previous = a, a.next = n.previous = s, s.next = a.previous = n;
|
|
31
31
|
e: for (let h = 3; h < p; ++h) {
|
|
32
|
-
yt(n._, a._, s = i[h]), s = new
|
|
32
|
+
yt(n._, a._, s = i[h]), s = new ye(s);
|
|
33
33
|
let T = a.next, B = n.previous, A = a._.r, H = n._.r;
|
|
34
34
|
do
|
|
35
35
|
if (A <= H) {
|
|
@@ -47,37 +47,37 @@ function wo(i, f, y) {
|
|
|
47
47
|
}
|
|
48
48
|
while (T !== B.next);
|
|
49
49
|
s.previous = n, s.next = a, n.next = a.previous = a = s;
|
|
50
|
-
let se =
|
|
50
|
+
let se = g(n, y, f), ue;
|
|
51
51
|
for (; (s = s.next) !== a; )
|
|
52
|
-
(ue =
|
|
52
|
+
(ue = g(s, y, f)) < se && (n = s, se = ue);
|
|
53
53
|
a = n.next;
|
|
54
54
|
}
|
|
55
55
|
return i;
|
|
56
56
|
}
|
|
57
57
|
function yt(i, f, y) {
|
|
58
|
-
const
|
|
58
|
+
const g = i.x - f.x, p = i.y - f.y, n = g * g + p * p;
|
|
59
59
|
if (n) {
|
|
60
60
|
const a = (f.r + y.r) ** 2, s = (i.r + y.r) ** 2;
|
|
61
61
|
if (a > s) {
|
|
62
62
|
const h = (n + s - a) / (2 * n), T = Math.sqrt(Math.max(0, s / n - h * h));
|
|
63
|
-
y.x = i.x - h *
|
|
63
|
+
y.x = i.x - h * g - T * p, y.y = i.y - h * p + T * g;
|
|
64
64
|
} else {
|
|
65
65
|
const h = (n + a - s) / (2 * n), T = Math.sqrt(Math.max(0, a / n - h * h));
|
|
66
|
-
y.x = f.x + h *
|
|
66
|
+
y.x = f.x + h * g - T * p, y.y = f.y + h * p + T * g;
|
|
67
67
|
}
|
|
68
68
|
} else
|
|
69
69
|
y.x = f.x + y.r, y.y = f.y;
|
|
70
70
|
}
|
|
71
71
|
function mt(i, f) {
|
|
72
|
-
const y = i.r + f.r - 1e-6,
|
|
73
|
-
return y > 0 && y * y >
|
|
72
|
+
const y = i.r + f.r - 1e-6, g = f.x - i.x, p = f.y - i.y;
|
|
73
|
+
return y > 0 && y * y > g * g + p * p;
|
|
74
74
|
}
|
|
75
|
-
class
|
|
75
|
+
class ye {
|
|
76
76
|
constructor(f) {
|
|
77
77
|
this._ = f, this.next = null, this.previous = null;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const $o = ["id"], xo = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], Po = ["x", "y", "width", "height"], So = ["id"], Ao = ["stop-color"], _o = ["stop-color"], Oo = ["stop-color"], Fo = { key: 0 }, Do = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], Io = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], No = ["x", "y", "width", "height", "fill", "rx"], Mo = ["x", "y", "font-size", "fill", "font-weight"], Ro = ["x", "y", "font-size", "fill", "font-weight"], Bo = {
|
|
81
81
|
key: 0,
|
|
82
82
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
83
83
|
"data-dom-to-png-ignore": "",
|
|
@@ -103,7 +103,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["selectDatapoint", "copyAlt"],
|
|
105
105
|
setup(i, { expose: f, emit: y }) {
|
|
106
|
-
const
|
|
106
|
+
const g = U(() => import("./Tooltip-C8KGyqQk.js")), p = U(() => import("./BaseIcon-Cb3zzG6s.js")), n = U(() => import("./vue-ui-accordion-CnDW2UQL.js")), a = U(() => import("./DataTable-DT2kIdQ6.js")), s = U(() => import("./UserOptions-rW2fRf3V.js")), h = U(() => import("./PenAndPaper-Ct3qJ4lA.js")), T = U(() => import("./PackageVersion-B3kmPxTR.js")), B = U(() => import("./BaseDraggableDialog-CIb-iD9g.js")), A = i, H = y, { vue_ui_circle_pack: se } = Yt(), { isThemeValid: ue, warnInvalidTheme: bt } = io(), Me = w(() => !!A.dataset && A.dataset.length), M = r(ft()), F = r(null), Re = r(null), Be = r(null), Ee = r(0), ze = r(0), Le = r(0), Ue = r(null), Y = r(null), me = r(null), re = r(!1), be = r(""), I = r(null), ie = r(!1), ve = r(!1), _ = r(null), Ve = r({ x: 0, y: 0 }), Z = r("pointer"), ge = r(!1), e = r(Ce()), J = w(() => e.value.userOptions.useCursorPointer), gt = w(() => pt({
|
|
107
107
|
defaultConfig: {
|
|
108
108
|
userOptions: { show: !1 },
|
|
109
109
|
table: { show: !1 },
|
|
@@ -124,7 +124,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
124
124
|
})), { loading: Ge, FINAL_DATASET: Ke } = so({
|
|
125
125
|
...Ut(A),
|
|
126
126
|
FINAL_CONFIG: e,
|
|
127
|
-
prepareConfig:
|
|
127
|
+
prepareConfig: Ce,
|
|
128
128
|
skeletonDataset: A.config?.skeletonDataset ?? [
|
|
129
129
|
{ name: "_", value: 13, color: "#F2F2F2" },
|
|
130
130
|
{ name: "_", value: 8, color: "#DBDBDB" },
|
|
@@ -138,11 +138,11 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
138
138
|
userConfig: gt.value
|
|
139
139
|
})
|
|
140
140
|
}), { svgRef: N } = co({ config: e.value.style.chart.title }), {
|
|
141
|
-
userOptionsVisible:
|
|
141
|
+
userOptionsVisible: ke,
|
|
142
142
|
setUserOptionsVisibility: Ye,
|
|
143
143
|
keepUserOptionState: je
|
|
144
144
|
} = vo({ config: e.value });
|
|
145
|
-
function
|
|
145
|
+
function Ce() {
|
|
146
146
|
const t = Ne({
|
|
147
147
|
userConfig: A.config,
|
|
148
148
|
defaultConfig: se
|
|
@@ -159,13 +159,13 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
159
159
|
});
|
|
160
160
|
return {
|
|
161
161
|
...u,
|
|
162
|
-
customPalette: u.customPalette.length ? u.customPalette : De[l] ||
|
|
162
|
+
customPalette: u.customPalette.length ? u.customPalette : De[l] || he
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
e.value =
|
|
165
|
+
fe(() => A.config, (t) => {
|
|
166
|
+
e.value = Ce(), ke.value = !e.value.userOptions.showOnChartHover, xe(), Ee.value += 1, ze.value += 1, D.value.showTable = e.value.table.show;
|
|
167
167
|
}, { deep: !0 });
|
|
168
|
-
const { isPrinting:
|
|
168
|
+
const { isPrinting: we, isImaging: $e, generatePdf: Xe, generateImage: qe } = no({
|
|
169
169
|
elementId: `vue-ui-circle-pack_${M.value}`,
|
|
170
170
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
171
171
|
options: e.value.userOptions.print
|
|
@@ -173,19 +173,19 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
173
173
|
showTable: e.value.table.show,
|
|
174
174
|
showTooltip: e.value.style.chart.tooltip.show
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
fe(e, () => {
|
|
177
177
|
D.value = {
|
|
178
178
|
showTable: e.value.table.show,
|
|
179
179
|
showTooltip: e.value.style.chart.tooltip.show
|
|
180
180
|
};
|
|
181
181
|
}, { immediate: !0 });
|
|
182
|
-
const Ct = r({ h: 10, w: 10 }), We = r([0, 0, 100, 100]), wt = w(() => e.value.debug),
|
|
182
|
+
const Ct = r({ h: 10, w: 10 }), We = r([0, 0, 100, 100]), wt = w(() => e.value.debug), $t = w(() => {
|
|
183
183
|
const t = e.value.style?.chart || {};
|
|
184
184
|
return t.dimensions && typeof t.dimensions.width == "number" ? t.dimensions.width : typeof t.width == "number" ? t.width : 300;
|
|
185
|
-
}),
|
|
185
|
+
}), xt = w(() => {
|
|
186
186
|
const t = e.value.style?.chart || {};
|
|
187
187
|
return t.dimensions && typeof t.dimensions.height == "number" ? t.dimensions.height : typeof t.height == "number" ? t.height : 300;
|
|
188
|
-
}),
|
|
188
|
+
}), $ = r([]), E = r("0 0 100 100"), R = r(null), z = r(null);
|
|
189
189
|
function He(t, l) {
|
|
190
190
|
Ct.value = {
|
|
191
191
|
w: t,
|
|
@@ -193,14 +193,14 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
193
193
|
};
|
|
194
194
|
const o = V.value.map((q) => ({ ...q }));
|
|
195
195
|
if (!o.length) {
|
|
196
|
-
|
|
196
|
+
$.value = [], We.value = [0, 0, t, l], E.value = `0 0 ${t} ${l}`;
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
199
|
const u = wo(o, l, t), [m, k, L, X] = ko(u, 1), le = Math.min(
|
|
200
200
|
L ? t / L : 1,
|
|
201
201
|
X ? l / X : 1
|
|
202
202
|
), zt = (t - L * le) / 2, Lt = (l - X * le) / 2;
|
|
203
|
-
|
|
203
|
+
$.value = u.map((q) => ({
|
|
204
204
|
...q,
|
|
205
205
|
x: (q.x - m) * le + zt,
|
|
206
206
|
y: (q.y - k) * le + Lt,
|
|
@@ -232,23 +232,23 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
232
232
|
type: "dataset",
|
|
233
233
|
debug: wt.value
|
|
234
234
|
});
|
|
235
|
-
const t =
|
|
235
|
+
const t = $t.value, l = xt.value;
|
|
236
236
|
He(t, l), e.value.responsive ? Tt() : Ze();
|
|
237
237
|
}
|
|
238
238
|
Vt(xe), Gt(() => {
|
|
239
239
|
Ze();
|
|
240
|
-
}),
|
|
240
|
+
}), fe(() => Ke.value, async (t) => {
|
|
241
241
|
await xe();
|
|
242
242
|
}, { deep: !0 });
|
|
243
243
|
const Pt = w(() => qt(e.value.customPalette)), V = w(() => Ke.value.map((t, l) => {
|
|
244
|
-
const o = Wt(t.color) || Pt.value[l] || De[e.value.theme || "default"][l % De[e.value.theme || "default"].length] ||
|
|
244
|
+
const o = Wt(t.color) || Pt.value[l] || De[e.value.theme || "default"][l % De[e.value.theme || "default"].length] || he[l] || he[l % he.length];
|
|
245
245
|
return {
|
|
246
246
|
...t,
|
|
247
247
|
r: t.value,
|
|
248
248
|
id: ft(),
|
|
249
249
|
color: o
|
|
250
250
|
};
|
|
251
|
-
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), Q = w(() =>
|
|
251
|
+
}).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), Q = w(() => $.value.length ? Math.max(...$.value.map((t) => t.r)) : 0);
|
|
252
252
|
function Je(t, l) {
|
|
253
253
|
return Q.value ? l / Q.value * t : 0;
|
|
254
254
|
}
|
|
@@ -258,9 +258,9 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
258
258
|
function et(t, l) {
|
|
259
259
|
H("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const ce = r(null), ee = r(!1);
|
|
262
262
|
function tt(t, l, o = "pointer") {
|
|
263
|
-
I.value = t, _.value = l, Z.value = o, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }),
|
|
263
|
+
I.value = t, _.value = l, Z.value = o, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ce.value = { datapoint: t, seriesIndex: l, config: e.value, series: V.value }, re.value = !0;
|
|
264
264
|
const u = e.value.style.chart.tooltip.customFormat;
|
|
265
265
|
if (ee.value = !1, oo(u))
|
|
266
266
|
try {
|
|
@@ -270,7 +270,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
270
270
|
series: V.value,
|
|
271
271
|
config: e.value
|
|
272
272
|
});
|
|
273
|
-
typeof m == "string" && (
|
|
273
|
+
typeof m == "string" && (be.value = m, ee.value = !0);
|
|
274
274
|
} catch {
|
|
275
275
|
console.warn("Custom format cannot be applied."), ee.value = !1;
|
|
276
276
|
}
|
|
@@ -288,7 +288,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
288
288
|
</svg>
|
|
289
289
|
<span>${t.name}: <b>${Te(t)}</b></span>
|
|
290
290
|
</div>
|
|
291
|
-
`,
|
|
291
|
+
`, be.value = m;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
function Te(t) {
|
|
@@ -317,7 +317,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
317
317
|
function Pe() {
|
|
318
318
|
te.value = !te.value;
|
|
319
319
|
}
|
|
320
|
-
const
|
|
320
|
+
const de = w(() => {
|
|
321
321
|
const t = V.value.map((o) => ({
|
|
322
322
|
name: o.name,
|
|
323
323
|
value: o.value,
|
|
@@ -327,7 +327,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
327
327
|
});
|
|
328
328
|
function Se(t = null) {
|
|
329
329
|
dt(() => {
|
|
330
|
-
const l =
|
|
330
|
+
const l = de.value.head.map((m, k) => [[m.name], [de.value.body[k]]]), o = [
|
|
331
331
|
[e.value.style.chart.title.text],
|
|
332
332
|
[e.value.style.chart.title.subtitle.text],
|
|
333
333
|
[[""], [e.value.table.columnNames.value]]
|
|
@@ -339,10 +339,10 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
339
339
|
const t = [
|
|
340
340
|
e.value.table.columnNames.datapoint,
|
|
341
341
|
e.value.table.columnNames.value
|
|
342
|
-
], l =
|
|
342
|
+
], l = de.value.head.map((m, k) => {
|
|
343
343
|
const L = ht({
|
|
344
344
|
p: e.value.style.chart.circles.labels.value.prefix,
|
|
345
|
-
v:
|
|
345
|
+
v: de.value.body[k],
|
|
346
346
|
s: e.value.style.chart.circles.labels.value.suffix,
|
|
347
347
|
r: e.value.style.chart.circles.labels.value.rounding
|
|
348
348
|
});
|
|
@@ -428,11 +428,11 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
});
|
|
431
|
-
|
|
431
|
+
fe(() => D.value.showTable, (t) => {
|
|
432
432
|
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : Y.value && "close" in Y.value && Y.value.close());
|
|
433
433
|
});
|
|
434
434
|
function nt() {
|
|
435
|
-
D.value.showTable = !1,
|
|
435
|
+
D.value.showTable = !1, me.value && me.value.setTableIconState(!1);
|
|
436
436
|
}
|
|
437
437
|
const Ot = w(() => e.value.style.chart.backgroundColor), Ft = w(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: It } = ro({
|
|
438
438
|
svg: N,
|
|
@@ -477,30 +477,30 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
477
477
|
}
|
|
478
478
|
function Mt(t) {
|
|
479
479
|
if (!Number.isFinite(t) || !N.value) return;
|
|
480
|
-
const l =
|
|
480
|
+
const l = $.value[t];
|
|
481
481
|
if (!l) return;
|
|
482
482
|
const o = ao(l.x, l.y, N.value);
|
|
483
483
|
o && (Ve.value = o);
|
|
484
484
|
}
|
|
485
485
|
function rt() {
|
|
486
486
|
if (_.value !== null) {
|
|
487
|
-
const t =
|
|
487
|
+
const t = $.value[_.value];
|
|
488
488
|
t && Qe(t, _.value);
|
|
489
489
|
}
|
|
490
490
|
_.value = null, Z.value = "pointer", re.value = !1, I.value = null;
|
|
491
491
|
}
|
|
492
492
|
function Rt() {
|
|
493
|
-
_.value = null,
|
|
493
|
+
_.value = null, ge.value = !0;
|
|
494
494
|
}
|
|
495
495
|
function Bt() {
|
|
496
|
-
rt(),
|
|
496
|
+
rt(), ge.value = !1;
|
|
497
497
|
}
|
|
498
498
|
function it(t, l) {
|
|
499
|
-
const o =
|
|
499
|
+
const o = $.value.length;
|
|
500
500
|
return o ? t === null || t < 0 || t >= o ? l === "next" ? 0 : o - 1 : l === "previous" ? (t - 1 + o) % o : (t + 1) % o : null;
|
|
501
501
|
}
|
|
502
502
|
function Et(t) {
|
|
503
|
-
if (!N.value || te.value || document.activeElement !== N.value ||
|
|
503
|
+
if (!N.value || te.value || document.activeElement !== N.value || !$.value.length) return;
|
|
504
504
|
const l = ["ArrowLeft", "ArrowUp"].includes(t.key), o = ["ArrowRight", "ArrowDown"].includes(t.key), u = t.key === "Enter" || t.key === " ", m = t.key === "Escape";
|
|
505
505
|
if (!l && !o && !u && !m) return;
|
|
506
506
|
if (t.preventDefault(), t.stopPropagation(), m) {
|
|
@@ -509,14 +509,14 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
509
509
|
}
|
|
510
510
|
if (u) {
|
|
511
511
|
if (_.value === null) return;
|
|
512
|
-
const X =
|
|
512
|
+
const X = $.value[_.value];
|
|
513
513
|
if (!X) return;
|
|
514
514
|
et(X, _.value);
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
517
|
let k = _.value;
|
|
518
|
-
k === null || k < 0 || k >=
|
|
519
|
-
const L =
|
|
518
|
+
k === null || k < 0 || k >= $.value.length ? k = o ? 0 : $.value.length - 1 : o ? k = it(k, "next") : l && (k = it(k, "previous"));
|
|
519
|
+
const L = $.value[k];
|
|
520
520
|
L && (_.value = k, Mt(k), tt(L, k, "keyboard"));
|
|
521
521
|
}
|
|
522
522
|
const Ae = w(() => {
|
|
@@ -551,7 +551,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
551
551
|
class: "sr-only"
|
|
552
552
|
}, [
|
|
553
553
|
O("p", null, ne(e.value.a11y.translations.keyboardNavigation), 1)
|
|
554
|
-
], 8,
|
|
554
|
+
], 8, xo),
|
|
555
555
|
Ae.value?.rows?.length ? (d(), K(bo, {
|
|
556
556
|
key: 0,
|
|
557
557
|
uid: M.value,
|
|
@@ -559,7 +559,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
559
559
|
body: Ae.value.rows,
|
|
560
560
|
notice: e.value.a11y.translations.tableAvailable,
|
|
561
561
|
caption: e.value.a11y.translations.tableCaption
|
|
562
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) :
|
|
562
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
|
|
563
563
|
e.value.userOptions.buttons.annotator ? (d(), K(v(h), {
|
|
564
564
|
key: 1,
|
|
565
565
|
svgRef: v(N),
|
|
@@ -570,26 +570,26 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
570
570
|
isCursorPointer: J.value,
|
|
571
571
|
onClose: Pe
|
|
572
572
|
}, {
|
|
573
|
-
"annotator-action-close":
|
|
573
|
+
"annotator-action-close": b(() => [
|
|
574
574
|
c(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
575
575
|
]),
|
|
576
|
-
"annotator-action-color":
|
|
576
|
+
"annotator-action-color": b(({ color: o }) => [
|
|
577
577
|
c(t.$slots, "annotator-action-color", P(S({ color: o })), void 0, !0)
|
|
578
578
|
]),
|
|
579
|
-
"annotator-action-draw":
|
|
579
|
+
"annotator-action-draw": b(({ mode: o }) => [
|
|
580
580
|
c(t.$slots, "annotator-action-draw", P(S({ mode: o })), void 0, !0)
|
|
581
581
|
]),
|
|
582
|
-
"annotator-action-undo":
|
|
582
|
+
"annotator-action-undo": b(({ disabled: o }) => [
|
|
583
583
|
c(t.$slots, "annotator-action-undo", P(S({ disabled: o })), void 0, !0)
|
|
584
584
|
]),
|
|
585
|
-
"annotator-action-redo":
|
|
585
|
+
"annotator-action-redo": b(({ disabled: o }) => [
|
|
586
586
|
c(t.$slots, "annotator-action-redo", P(S({ disabled: o })), void 0, !0)
|
|
587
587
|
]),
|
|
588
|
-
"annotator-action-delete":
|
|
588
|
+
"annotator-action-delete": b(({ disabled: o }) => [
|
|
589
589
|
c(t.$slots, "annotator-action-delete", P(S({ disabled: o })), void 0, !0)
|
|
590
590
|
]),
|
|
591
591
|
_: 3
|
|
592
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale", "isCursorPointer"])) :
|
|
592
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "scale", "isCursorPointer"])) : x("", !0),
|
|
593
593
|
c(t.$slots, "userConfig", {}, void 0, !0),
|
|
594
594
|
kt.value ? (d(), C("div", {
|
|
595
595
|
key: 2,
|
|
@@ -597,7 +597,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
597
597
|
ref: Be,
|
|
598
598
|
class: "vue-data-ui-no-title-space",
|
|
599
599
|
style: "height:36px; width: 100%;background:transparent"
|
|
600
|
-
}, null, 512)) :
|
|
600
|
+
}, null, 512)) : x("", !0),
|
|
601
601
|
e.value.style.chart.title.text ? (d(), C("div", {
|
|
602
602
|
key: 3,
|
|
603
603
|
ref_key: "chartTitle",
|
|
@@ -617,15 +617,15 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
}, null, 8, ["config"]))
|
|
620
|
-
], 512)) :
|
|
621
|
-
e.value.userOptions.show && Me.value && (v(je) || v(
|
|
620
|
+
], 512)) : x("", !0),
|
|
621
|
+
e.value.userOptions.show && Me.value && (v(je) || v(ke)) ? (d(), K(v(s), {
|
|
622
622
|
ref_key: "userOptionsRef",
|
|
623
|
-
ref:
|
|
623
|
+
ref: me,
|
|
624
624
|
key: `user_option_${Le.value}`,
|
|
625
625
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
626
626
|
color: e.value.style.chart.color,
|
|
627
|
-
isPrinting: v(
|
|
628
|
-
isImaging: v(
|
|
627
|
+
isPrinting: v(we),
|
|
628
|
+
isImaging: v($e),
|
|
629
629
|
uid: M.value,
|
|
630
630
|
hasTooltip: e.value.userOptions.buttons.tooltip,
|
|
631
631
|
isTooltip: D.value.showTooltip,
|
|
@@ -656,72 +656,72 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
656
656
|
onToggleTooltip: St,
|
|
657
657
|
onToggleAnnotator: Pe,
|
|
658
658
|
onCopyAlt: ut,
|
|
659
|
-
style: ae({ visibility: v(je) ? v(
|
|
659
|
+
style: ae({ visibility: v(je) ? v(ke) ? "visible" : "hidden" : "visible" })
|
|
660
660
|
}, vt({ _: 2 }, [
|
|
661
661
|
t.$slots.menuIcon ? {
|
|
662
662
|
name: "menuIcon",
|
|
663
|
-
fn:
|
|
663
|
+
fn: b(({ isOpen: o, color: u }) => [
|
|
664
664
|
c(t.$slots, "menuIcon", P(S({ isOpen: o, color: u })), void 0, !0)
|
|
665
665
|
]),
|
|
666
666
|
key: "0"
|
|
667
667
|
} : void 0,
|
|
668
668
|
t.$slots.optionPdf ? {
|
|
669
669
|
name: "optionPdf",
|
|
670
|
-
fn:
|
|
670
|
+
fn: b(() => [
|
|
671
671
|
c(t.$slots, "optionPdf", {}, void 0, !0)
|
|
672
672
|
]),
|
|
673
673
|
key: "1"
|
|
674
674
|
} : void 0,
|
|
675
675
|
t.$slots.optionCsv ? {
|
|
676
676
|
name: "optionCsv",
|
|
677
|
-
fn:
|
|
677
|
+
fn: b(() => [
|
|
678
678
|
c(t.$slots, "optionCsv", {}, void 0, !0)
|
|
679
679
|
]),
|
|
680
680
|
key: "2"
|
|
681
681
|
} : void 0,
|
|
682
682
|
t.$slots.optionImg ? {
|
|
683
683
|
name: "optionImg",
|
|
684
|
-
fn:
|
|
684
|
+
fn: b(() => [
|
|
685
685
|
c(t.$slots, "optionImg", {}, void 0, !0)
|
|
686
686
|
]),
|
|
687
687
|
key: "3"
|
|
688
688
|
} : void 0,
|
|
689
689
|
t.$slots.optionSvg ? {
|
|
690
690
|
name: "optionSvg",
|
|
691
|
-
fn:
|
|
691
|
+
fn: b(() => [
|
|
692
692
|
c(t.$slots, "optionSvg", {}, void 0, !0)
|
|
693
693
|
]),
|
|
694
694
|
key: "4"
|
|
695
695
|
} : void 0,
|
|
696
696
|
t.$slots.optionTable ? {
|
|
697
697
|
name: "optionTable",
|
|
698
|
-
fn:
|
|
698
|
+
fn: b(() => [
|
|
699
699
|
c(t.$slots, "optionTable", {}, void 0, !0)
|
|
700
700
|
]),
|
|
701
701
|
key: "5"
|
|
702
702
|
} : void 0,
|
|
703
703
|
t.$slots.optionFullscreen ? {
|
|
704
704
|
name: "optionFullscreen",
|
|
705
|
-
fn:
|
|
705
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: u }) => [
|
|
706
706
|
c(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
|
|
707
707
|
]),
|
|
708
708
|
key: "6"
|
|
709
709
|
} : void 0,
|
|
710
710
|
t.$slots.optionAnnotator ? {
|
|
711
711
|
name: "optionAnnotator",
|
|
712
|
-
fn:
|
|
712
|
+
fn: b(({ toggleAnnotator: o, isAnnotator: u }) => [
|
|
713
713
|
c(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
|
|
714
714
|
]),
|
|
715
715
|
key: "7"
|
|
716
716
|
} : void 0,
|
|
717
717
|
t.$slots.optionAltCopy ? {
|
|
718
718
|
name: "optionAltCopy",
|
|
719
|
-
fn:
|
|
719
|
+
fn: b(({ altCopy: o }) => [
|
|
720
720
|
c(t.$slots, "optionAltCopy", P(S({ altCopy: o })), void 0, !0)
|
|
721
721
|
]),
|
|
722
722
|
key: "8"
|
|
723
723
|
} : void 0
|
|
724
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "isTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
724
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "isTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
|
|
725
725
|
O("div", {
|
|
726
726
|
class: _e({ "vue-ui-circle-pack-svg-container": !0, "not-responsive": !e.value.responsive })
|
|
727
727
|
}, [
|
|
@@ -749,8 +749,8 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
749
749
|
style: { pointerEvents: "none" }
|
|
750
750
|
}, [
|
|
751
751
|
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
752
|
-
], 8, Po)) :
|
|
753
|
-
(d(!0), C(W, null, Fe(
|
|
752
|
+
], 8, Po)) : x("", !0),
|
|
753
|
+
(d(!0), C(W, null, Fe($.value, (o, u) => (d(), C(W, {
|
|
754
754
|
key: o.id
|
|
755
755
|
}, [
|
|
756
756
|
O("defs", null, [
|
|
@@ -774,9 +774,9 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
774
774
|
]),
|
|
775
775
|
t.$slots.pattern ? (d(), C("g", Fo, [
|
|
776
776
|
O("defs", null, [
|
|
777
|
-
c(t.$slots, "pattern",
|
|
777
|
+
c(t.$slots, "pattern", pe({ ref_for: !0 }, { ...o, patternId: `pattern_${M.value}_${o.id}` }), void 0, !0)
|
|
778
778
|
])
|
|
779
|
-
])) :
|
|
779
|
+
])) : x("", !0),
|
|
780
780
|
O("rect", {
|
|
781
781
|
x: o.x - o.r,
|
|
782
782
|
y: o.y - o.r,
|
|
@@ -801,9 +801,9 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
801
801
|
fill: `url(#pattern_${M.value}_${o.id})`,
|
|
802
802
|
rx: o.r,
|
|
803
803
|
style: { pointerEvents: "none" }
|
|
804
|
-
}, null, 8, Io)) :
|
|
804
|
+
}, null, 8, Io)) : x("", !0)
|
|
805
805
|
], 64))), 128)),
|
|
806
|
-
(d(!0), C(W, null, Fe(
|
|
806
|
+
(d(!0), C(W, null, Fe($.value, (o, u) => (d(), C("rect", {
|
|
807
807
|
key: o.id,
|
|
808
808
|
x: o.x - o.r,
|
|
809
809
|
y: o.y - o.r,
|
|
@@ -819,10 +819,10 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
819
819
|
transition: "opacity 0.2s ease-in-out"
|
|
820
820
|
})
|
|
821
821
|
}, null, 12, No))), 128)),
|
|
822
|
-
(d(!0), C(W, null, Fe(
|
|
822
|
+
(d(!0), C(W, null, Fe($.value, (o, u) => (d(), C(W, {
|
|
823
823
|
key: o.id
|
|
824
824
|
}, [
|
|
825
|
-
t.$slots["data-label"] ? c(t.$slots, "data-label",
|
|
825
|
+
t.$slots["data-label"] ? c(t.$slots, "data-label", pe({
|
|
826
826
|
key: 0,
|
|
827
827
|
ref_for: !0
|
|
828
828
|
}, {
|
|
@@ -846,7 +846,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
846
846
|
fill: e.value.style.chart.circles.labels.name.color === "auto" ? v(Ie)(o.color) : e.value.style.chart.circles.labels.name.color,
|
|
847
847
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
848
848
|
"text-anchor": "middle"
|
|
849
|
-
}, ne(o.name), 9, Mo)) :
|
|
849
|
+
}, ne(o.name), 9, Mo)) : x("", !0),
|
|
850
850
|
e.value.style.chart.circles.labels.value.show ? (d(), C("text", {
|
|
851
851
|
key: 1,
|
|
852
852
|
style: {
|
|
@@ -859,9 +859,9 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
859
859
|
fill: e.value.style.chart.circles.labels.value.color === "auto" ? v(Ie)(o.color) : e.value.style.chart.circles.labels.value.color,
|
|
860
860
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
861
861
|
"text-anchor": "middle"
|
|
862
|
-
}, ne(Te(o)), 9, Ro)) :
|
|
862
|
+
}, ne(Te(o)), 9, Ro)) : x("", !0)
|
|
863
863
|
], 64)),
|
|
864
|
-
c(t.$slots, "circle",
|
|
864
|
+
c(t.$slots, "circle", pe({ ref_for: !0 }, {
|
|
865
865
|
...o,
|
|
866
866
|
isSelected: I.value?.id === o.id,
|
|
867
867
|
uid: `${u}_${M.value}`
|
|
@@ -870,18 +870,18 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
870
870
|
c(t.$slots, "svg", {
|
|
871
871
|
svg: {
|
|
872
872
|
...E.value,
|
|
873
|
-
isPrintingImg: v(
|
|
873
|
+
isPrintingImg: v(we) | v($e) | ie.value,
|
|
874
874
|
isPrintingSvg: ve.value
|
|
875
875
|
}
|
|
876
876
|
}, void 0, !0)
|
|
877
877
|
], 46, To)),
|
|
878
878
|
t.$slots.hint ? (d(), C("div", Bo, [
|
|
879
|
-
c(t.$slots, "hint", P(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible:
|
|
880
|
-
])) :
|
|
879
|
+
c(t.$slots, "hint", P(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: ge.value })), void 0, !0)
|
|
880
|
+
])) : x("", !0)
|
|
881
881
|
], 2),
|
|
882
882
|
t.$slots.watermark ? (d(), C("div", Eo, [
|
|
883
|
-
c(t.$slots, "watermark", P(S({ isPrinting: v(
|
|
884
|
-
])) :
|
|
883
|
+
c(t.$slots, "watermark", P(S({ isPrinting: v(we) || v($e) || ie.value || ve.value })), void 0, !0)
|
|
884
|
+
])) : x("", !0),
|
|
885
885
|
t.$slots.source ? (d(), C("div", {
|
|
886
886
|
key: 6,
|
|
887
887
|
ref_key: "source",
|
|
@@ -889,8 +889,8 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
889
889
|
dir: "auto"
|
|
890
890
|
}, [
|
|
891
891
|
c(t.$slots, "source", {}, void 0, !0)
|
|
892
|
-
], 512)) :
|
|
893
|
-
Oe(v(
|
|
892
|
+
], 512)) : x("", !0),
|
|
893
|
+
Oe(v(g), {
|
|
894
894
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
895
895
|
show: D.value.showTooltip && re.value,
|
|
896
896
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -903,7 +903,7 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
903
903
|
position: e.value.style.chart.tooltip.position,
|
|
904
904
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
905
905
|
parent: F.value,
|
|
906
|
-
content:
|
|
906
|
+
content: be.value,
|
|
907
907
|
isCustom: ee.value,
|
|
908
908
|
isFullscreen: G.value,
|
|
909
909
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -913,20 +913,23 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
913
913
|
isA11yMode: Z.value === "keyboard",
|
|
914
914
|
a11yPosition: Ve.value
|
|
915
915
|
}, {
|
|
916
|
-
"tooltip-before":
|
|
917
|
-
c(t.$slots, "tooltip-before", P(S({
|
|
916
|
+
"tooltip-before": b(() => [
|
|
917
|
+
c(t.$slots, "tooltip-before", P(S({ ...ce.value })), void 0, !0)
|
|
918
918
|
]),
|
|
919
|
-
|
|
920
|
-
c(t.$slots, "tooltip
|
|
919
|
+
tooltip: b(() => [
|
|
920
|
+
c(t.$slots, "tooltip", P(S({ ...ce.value })), void 0, !0)
|
|
921
|
+
]),
|
|
922
|
+
"tooltip-after": b(() => [
|
|
923
|
+
c(t.$slots, "tooltip-after", P(S({ ...ce.value })), void 0, !0)
|
|
921
924
|
]),
|
|
922
925
|
_: 3
|
|
923
926
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
924
|
-
Me.value && e.value.userOptions.buttons.table ? (d(), K(Kt(oe.value.component),
|
|
927
|
+
Me.value && e.value.userOptions.buttons.table ? (d(), K(Kt(oe.value.component), pe({ key: 7 }, oe.value.props, {
|
|
925
928
|
ref_key: "tableUnit",
|
|
926
929
|
ref: Y,
|
|
927
930
|
onClose: nt
|
|
928
931
|
}), vt({
|
|
929
|
-
content:
|
|
932
|
+
content: b(() => [
|
|
930
933
|
(d(), K(v(a), {
|
|
931
934
|
key: `table_${ze.value}`,
|
|
932
935
|
colNames: j.value.colNames,
|
|
@@ -938,13 +941,13 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
938
941
|
isCursorPointer: J.value,
|
|
939
942
|
onClose: nt
|
|
940
943
|
}, {
|
|
941
|
-
th:
|
|
944
|
+
th: b(({ th: o }) => [
|
|
942
945
|
O("div", {
|
|
943
946
|
innerHTML: o,
|
|
944
947
|
style: { display: "flex", "align-items": "center" }
|
|
945
948
|
}, null, 8, zo)
|
|
946
949
|
]),
|
|
947
|
-
td:
|
|
950
|
+
td: b(({ td: o }) => [
|
|
948
951
|
ct(ne(o.name || o), 1)
|
|
949
952
|
]),
|
|
950
953
|
_: 1
|
|
@@ -954,14 +957,14 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
954
957
|
}, [
|
|
955
958
|
e.value.table.useDialog ? {
|
|
956
959
|
name: "title",
|
|
957
|
-
fn:
|
|
960
|
+
fn: b(() => [
|
|
958
961
|
ct(ne(oe.value.title), 1)
|
|
959
962
|
]),
|
|
960
963
|
key: "0"
|
|
961
964
|
} : void 0,
|
|
962
965
|
e.value.table.useDialog ? {
|
|
963
966
|
name: "actions",
|
|
964
|
-
fn:
|
|
967
|
+
fn: b(() => [
|
|
965
968
|
O("button", {
|
|
966
969
|
tabindex: "0",
|
|
967
970
|
class: "vue-ui-user-options-button",
|
|
@@ -976,13 +979,13 @@ const xo = ["id"], $o = ["id"], To = ["xmlns", "aria-describedby", "viewBox"], P
|
|
|
976
979
|
]),
|
|
977
980
|
key: "1"
|
|
978
981
|
} : void 0
|
|
979
|
-
]), 1040)) :
|
|
982
|
+
]), 1040)) : x("", !0),
|
|
980
983
|
c(t.$slots, "skeleton", {}, () => [
|
|
981
|
-
v(Ge) ? (d(), K(uo, { key: 0 })) :
|
|
984
|
+
v(Ge) ? (d(), K(uo, { key: 0 })) : x("", !0)
|
|
982
985
|
], !0)
|
|
983
|
-
], 46,
|
|
986
|
+
], 46, $o));
|
|
984
987
|
}
|
|
985
|
-
}, ll = /* @__PURE__ */ go(Lo, [["__scopeId", "data-v-
|
|
988
|
+
}, ll = /* @__PURE__ */ go(Lo, [["__scopeId", "data-v-d80137cf"]]);
|
|
986
989
|
export {
|
|
987
990
|
ll as default
|
|
988
991
|
};
|