vue-data-ui 2.12.8-beta.3 → 2.13.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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as
|
|
2
|
-
import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as Ot, q as Pt, r as At, x as Ft, y as Lt } from "./index-
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ie, createSlots as Re, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ue, toDisplayString as L, createTextVNode as Ge, nextTick as yt } from "vue";
|
|
2
|
+
import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as Ot, q as Pt, r as At, x as Ft, y as Lt } from "./index-BXbyT0Qn.js";
|
|
3
3
|
import { t as zt, u as Nt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Ee } from "./useNestedProp-
|
|
5
|
-
import { u as Bt } from "./usePrinter-
|
|
4
|
+
import { u as Ee } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as Bt } from "./usePrinter-aKh5-HcK.js";
|
|
6
6
|
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Dt from "./Title-
|
|
9
|
-
import Rt from "./Legend-
|
|
10
|
-
import { _ as Ut } from "./Shape-
|
|
8
|
+
import Dt from "./Title-DoWqzga-.js";
|
|
9
|
+
import Rt from "./Legend-DcDRW3Xd.js";
|
|
10
|
+
import { _ as Ut } from "./Shape-CnD-h_98.js";
|
|
11
11
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Xt = ["id"], Yt = ["x", "y", "height", "width"], Kt = ["height", "width"], Jt = { key: 0 }, Qt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Zt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], el = { key: 1 }, tl = ["rx", "x", "y", "height", "width", "fill", "filter"], ll = ["x", "y", "height", "width", "filter"], al = { key: 0 }, ol = { key: 1 }, ul = { key: 2 }, sl = { key: 3 }, rl = ["onMouseover", "x", "y", "height", "width"], nl = {
|
|
13
13
|
key: 5,
|
|
@@ -30,7 +30,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend"],
|
|
32
32
|
setup(je, { expose: We, emit: qe }) {
|
|
33
|
-
const He = B(() => import("./DataTable-
|
|
33
|
+
const He = B(() => import("./DataTable-DBkfb6pd.js")), Xe = B(() => import("./PenAndPaper-BRkuVFb4.js")), Ye = B(() => import("./vue-ui-accordion-CXsjHe1y.js")), Ke = B(() => import("./vue-ui-skeleton-Fxr752Oi.js")), Je = B(() => import("./Tooltip-DYCBNM-_.js")), Qe = B(() => import("./UserOptions-B3q-xfQV.js")), Ze = B(() => import("./PackageVersion-C5fpg4GN.js")), { vue_ui_waffle: et } = gt(), m = je, tt = ht(), J = d(() => !!m.dataset && m.dataset.length), k = c(bt()), lt = c(null), le = c(!1), ae = c(""), D = c(null), ce = c(0), H = c(null), de = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(0), ge = c(0), be = c(0), e = d({
|
|
34
34
|
get: () => xe(),
|
|
35
35
|
set: (t) => t
|
|
36
36
|
}), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Vt({ config: e.value }), { svgRef: ke } = Mt({ config: e.value.style.chart.title });
|
|
@@ -48,7 +48,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
48
48
|
} : t;
|
|
49
49
|
}
|
|
50
50
|
Ve(() => m.config, (t) => {
|
|
51
|
-
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(),
|
|
51
|
+
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), ye.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
52
52
|
}, { deep: !0 });
|
|
53
53
|
const A = Me(null), R = Me(null);
|
|
54
54
|
function Ce() {
|
|
@@ -74,7 +74,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
74
74
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
75
75
|
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
76
76
|
source: pe.value,
|
|
77
|
-
noTitle:
|
|
77
|
+
noTitle: fe.value
|
|
78
78
|
});
|
|
79
79
|
requestAnimationFrame(() => {
|
|
80
80
|
z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
|
|
@@ -85,7 +85,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
85
85
|
}
|
|
86
86
|
pt(() => {
|
|
87
87
|
Ce();
|
|
88
|
-
}),
|
|
88
|
+
}), ft(() => {
|
|
89
89
|
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
|
|
90
90
|
});
|
|
91
91
|
const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Bt({
|
|
@@ -106,10 +106,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
106
106
|
}), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Q = d(() => I.value.height / e.value.style.chart.layout.grid.size);
|
|
107
107
|
function Oe(t) {
|
|
108
108
|
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ne) => w + ne, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
|
|
109
|
-
let
|
|
110
|
-
for (;
|
|
109
|
+
let y = a - u.reduce((w, ne) => w + ne, 0);
|
|
110
|
+
for (; y > 0; ) {
|
|
111
111
|
let w = v.indexOf(Math.max(...v));
|
|
112
|
-
u[w] += 1, v[w] = 0,
|
|
112
|
+
u[w] += 1, v[w] = 0, y -= 1;
|
|
113
113
|
}
|
|
114
114
|
return u;
|
|
115
115
|
}
|
|
@@ -167,8 +167,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
167
167
|
let t = 0;
|
|
168
168
|
return Y.value.map((a, l) => {
|
|
169
169
|
const o = t, u = o + a.proportion, v = [];
|
|
170
|
-
for (let
|
|
171
|
-
v.push(
|
|
170
|
+
for (let y = Math.floor(o); y < Math.floor(u); y += 1)
|
|
171
|
+
v.push(y);
|
|
172
172
|
return t = u, {
|
|
173
173
|
...a,
|
|
174
174
|
start: o,
|
|
@@ -209,20 +209,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
209
209
|
let o = l;
|
|
210
210
|
if (p.value.includes(t)) {
|
|
211
211
|
let v = function() {
|
|
212
|
-
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((
|
|
213
|
-
...
|
|
212
|
+
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((y, w) => y.uid === t ? {
|
|
213
|
+
...y,
|
|
214
214
|
values: [u]
|
|
215
|
-
} :
|
|
216
|
-
...
|
|
215
|
+
} : y), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
|
|
216
|
+
...y,
|
|
217
217
|
values: [o]
|
|
218
|
-
} :
|
|
218
|
+
} : y), Ae.value = requestAnimationFrame(v));
|
|
219
219
|
};
|
|
220
|
-
p.value = p.value.filter((
|
|
220
|
+
p.value = p.value.filter((y) => y !== t);
|
|
221
221
|
const u = a;
|
|
222
222
|
v();
|
|
223
223
|
} else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
224
224
|
let u = function() {
|
|
225
|
-
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v,
|
|
225
|
+
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
|
|
226
226
|
...v,
|
|
227
227
|
values: [0]
|
|
228
228
|
} : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
|
|
@@ -318,12 +318,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
318
318
|
function Z(t) {
|
|
319
319
|
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
320
320
|
}
|
|
321
|
-
function ze() {
|
|
322
|
-
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
], [P.value.body[
|
|
326
|
-
At({ csvContent:
|
|
321
|
+
function ze(t = null) {
|
|
322
|
+
yt(() => {
|
|
323
|
+
const a = P.value.head.map((u, v) => [[
|
|
324
|
+
u.name
|
|
325
|
+
], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Pt(l);
|
|
326
|
+
t ? t(o) : At({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
const ee = d(() => {
|
|
@@ -422,14 +422,14 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
422
422
|
color: e.value.style.chart.color,
|
|
423
423
|
active: te.value,
|
|
424
424
|
onClose: re
|
|
425
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
425
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
426
426
|
at.value ? (s(), r("div", {
|
|
427
427
|
key: 1,
|
|
428
428
|
ref_key: "noTitle",
|
|
429
|
-
ref:
|
|
429
|
+
ref: fe,
|
|
430
430
|
class: "vue-data-ui-no-title-space",
|
|
431
431
|
style: "height:36px; width: 100%;background:transparent"
|
|
432
|
-
}, null, 512)) :
|
|
432
|
+
}, null, 512)) : f("", !0),
|
|
433
433
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
434
434
|
key: 2,
|
|
435
435
|
ref_key: "chartTitle",
|
|
@@ -437,7 +437,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
437
437
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
438
438
|
}, [
|
|
439
439
|
(s(), V(Dt, {
|
|
440
|
-
key: `title_${
|
|
440
|
+
key: `title_${ye.value}`,
|
|
441
441
|
config: {
|
|
442
442
|
title: {
|
|
443
443
|
cy: "waffle-title",
|
|
@@ -449,7 +449,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}, null, 8, ["config"]))
|
|
452
|
-
], 512)) :
|
|
452
|
+
], 512)) : f("", !0),
|
|
453
453
|
e.value.userOptions.show && J.value && (n(we) || n(oe)) ? (s(), V(n(Qe), {
|
|
454
454
|
ref_key: "details",
|
|
455
455
|
ref: lt,
|
|
@@ -540,7 +540,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
540
540
|
]),
|
|
541
541
|
key: "7"
|
|
542
542
|
} : void 0
|
|
543
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
543
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
544
544
|
J.value ? (s(), r("svg", {
|
|
545
545
|
key: 4,
|
|
546
546
|
ref_key: "svgRef",
|
|
@@ -596,7 +596,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
596
596
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
597
597
|
}, [
|
|
598
598
|
g(t.$slots, "cell", Ue({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : i.value[o].serieIndex === D.value }), void 0, !0)
|
|
599
|
-
], 8, Yt))), 256)) :
|
|
599
|
+
], 8, Yt))), 256)) : f("", !0),
|
|
600
600
|
!i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
|
|
601
601
|
key: 1,
|
|
602
602
|
x: 12,
|
|
@@ -611,7 +611,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
611
611
|
(s(!0), r($, null, F(ue.value, (l) => (s(), r("defs", null, [
|
|
612
612
|
g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
613
613
|
]))), 256))
|
|
614
|
-
])) :
|
|
614
|
+
])) : f("", !0),
|
|
615
615
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
616
616
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
617
617
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -645,8 +645,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
645
645
|
stroke: "none",
|
|
646
646
|
filter: Z(i.value[o].serieIndex)
|
|
647
647
|
}, null, 8, tl))), 256))
|
|
648
|
-
])) :
|
|
649
|
-
], 64)) :
|
|
648
|
+
])) : f("", !0)
|
|
649
|
+
], 64)) : f("", !0),
|
|
650
650
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
|
|
651
651
|
i.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
|
|
652
652
|
key: 0,
|
|
@@ -660,8 +660,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
660
660
|
class: "vue-ui-waffle-caption",
|
|
661
661
|
style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(Tt)(i.value[o].color)};gap:2px`)
|
|
662
662
|
}, [
|
|
663
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) :
|
|
664
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) :
|
|
663
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
|
|
664
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
665
665
|
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, " (" + L(n(q)(
|
|
666
666
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
667
667
|
i.value[o].value,
|
|
@@ -672,7 +672,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
672
672
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
673
673
|
}),
|
|
674
674
|
{ datapoint: i.value[o], position: l }
|
|
675
|
-
)) + ") ", 1)) :
|
|
675
|
+
)) + ") ", 1)) : f("", !0),
|
|
676
676
|
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, L(n(q)(
|
|
677
677
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
678
678
|
i.value[o].value,
|
|
@@ -683,9 +683,9 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
683
683
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
684
684
|
}),
|
|
685
685
|
{ datapoint: i.value[o], position: l }
|
|
686
|
-
)), 1)) :
|
|
686
|
+
)), 1)) : f("", !0)
|
|
687
687
|
], 4)
|
|
688
|
-
], 8, ll)) :
|
|
688
|
+
], 8, ll)) : f("", !0)
|
|
689
689
|
], 64))), 256)),
|
|
690
690
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
691
691
|
onMouseover: (u) => vt(o),
|
|
@@ -700,11 +700,11 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
700
700
|
stroke: "none"
|
|
701
701
|
}, null, 40, rl))), 256)),
|
|
702
702
|
g(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
703
|
-
], 14, jt)) :
|
|
703
|
+
], 14, jt)) : f("", !0),
|
|
704
704
|
t.$slots.watermark ? (s(), r("div", nl, [
|
|
705
705
|
g(t.$slots, "watermark", j(W({ isPrinting: n($e) || n(_e) })), void 0, !0)
|
|
706
|
-
])) :
|
|
707
|
-
J.value ?
|
|
706
|
+
])) : f("", !0),
|
|
707
|
+
J.value ? f("", !0) : (s(), V(n(Ke), {
|
|
708
708
|
key: 6,
|
|
709
709
|
config: {
|
|
710
710
|
type: "waffle",
|
|
@@ -773,7 +773,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
773
773
|
dir: "auto"
|
|
774
774
|
}, [
|
|
775
775
|
g(t.$slots, "source", {}, void 0, !0)
|
|
776
|
-
], 512)) :
|
|
776
|
+
], 512)) : f("", !0),
|
|
777
777
|
ie(n(Je), {
|
|
778
778
|
show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
|
|
779
779
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -837,10 +837,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
837
837
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
838
838
|
]),
|
|
839
839
|
_: 1
|
|
840
|
-
}, 8, ["config"])) :
|
|
840
|
+
}, 8, ["config"])) : f("", !0)
|
|
841
841
|
], 46, Et));
|
|
842
842
|
}
|
|
843
|
-
}, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-
|
|
843
|
+
}, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-9c143042"]]);
|
|
844
844
|
export {
|
|
845
845
|
_l as default
|
|
846
846
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
|
|
2
|
-
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-
|
|
2
|
+
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-BXbyT0Qn.js";
|
|
3
3
|
import { t as Me, u as Te } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as oe } from "./useNestedProp-
|
|
5
|
-
import { u as Ne } from "./usePrinter-
|
|
4
|
+
import { u as oe } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as Ne } from "./usePrinter-aKh5-HcK.js";
|
|
6
6
|
import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xe from "./Title-
|
|
8
|
+
import Xe from "./Title-DoWqzga-.js";
|
|
9
9
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
|
|
11
11
|
key: 5,
|
|
@@ -27,7 +27,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
setup(ne, { expose: se }) {
|
|
30
|
-
const ue = $(() => import("./PenAndPaper-
|
|
30
|
+
const ue = $(() => import("./PenAndPaper-BRkuVFb4.js")), re = $(() => import("./vue-ui-skeleton-Fxr752Oi.js")), ie = $(() => import("./UserOptions-B3q-xfQV.js")), ce = $(() => import("./PackageVersion-C5fpg4GN.js")), { vue_ui_wheel: ve } = $e(), d = ne, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
|
|
31
31
|
get: () => j(),
|
|
32
32
|
set: (t) => t
|
|
33
33
|
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
|