vue-data-ui 3.4.7 → 3.4.8
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/dist/{PackageVersion-QNVkHOgG.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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-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-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BFwmY6si.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-D1GoJWeg.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-BDGFSsA5.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-C3GtE3bF.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-BlzmB2vM.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-TKa7KYZ0.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-DNxARRsx.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-BM7tZig3.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-BZU75WUb.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-pNXFzQu4.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-CRvfqCUO.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-CCdIWlyZ.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-CLmwZyrf.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-BY8XQXKF.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BmxhWoVW.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-BgtKffX5.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-DLpK4-Cd.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-CCNboEnL.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-BSDmuvq8.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-s8wYm7fn.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-BYWE2ONy.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-BOvaA1Jq.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-BUGkuN56.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-CPshjlgf.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-orQotxDr.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-CM3iH31f.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-BhO2YQn0.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-CNZVFG-v.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-BX48Cgx3.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-MQAF9nvq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-BPhLSCUX.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-C3dD6T6q.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-Be8xm0gy.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-suNsujGP.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-BjD2kUth.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-C816ocz6.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CAgfueUq.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-BmVwG9vw.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-DoFTW_u_.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-C1qHHSuI.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-Ccz9BiSl.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-IKsrsEUh.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-B71QVMkq.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-fY5WxAbX.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-BBdNJ0fK.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Co0t61HH.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-ujTn_36A.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-BNp-Vl0q.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-CRPYb9mZ.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-BvycoQ3Z.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Cjs46-dC.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-BTLAdJeD.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-CBRHUbAn.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as Qe, computed as i, defineAsyncComponent as x, ref as v, shallowRef as $e, onMounted as Ke, onBeforeUnmount as Ze, watch as xe, createElementBlock as c, openBlock as n, unref as
|
|
2
|
-
import { c as at, o as lt, f as Te, g as
|
|
1
|
+
import { useCssVars as Qe, computed as i, defineAsyncComponent as x, ref as v, shallowRef as $e, onMounted as Ke, onBeforeUnmount as Ze, watch as xe, createElementBlock as c, openBlock as n, unref as s, normalizeStyle as S, normalizeClass as N, createBlock as P, createCommentVNode as g, createSlots as Le, withCtx as b, renderSlot as m, normalizeProps as G, guardReactiveProps as j, createVNode as _e, createElementVNode as C, mergeProps as H, Fragment as X, renderList as W, toDisplayString as U, resolveDynamicComponent as et, createTextVNode as Se, nextTick as tt } from "vue";
|
|
2
|
+
import { c as at, o as lt, f as Te, g as ot, h as st, S as nt, a as Y, d as q, X as ut, J as rt, R as ae, P as it, Q as ct } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as vt, u as dt } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ht, a as Ae } from "./useNestedProp-BjZe1Y85.js";
|
|
5
5
|
import { u as ft } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as bt } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
7
|
+
import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
9
|
import pt from "./img-BecE5qXd.js";
|
|
10
10
|
import yt from "./Title-l36lOBMx.js";
|
|
11
11
|
import { t as kt } from "./themes-AUNCOb2G.js";
|
|
@@ -31,16 +31,16 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
31
31
|
},
|
|
32
32
|
setup(Oe, { expose: De }) {
|
|
33
33
|
Qe((t) => ({
|
|
34
|
-
|
|
34
|
+
v6ae43114: je.value
|
|
35
35
|
}));
|
|
36
|
-
const ze = x(() => import("./BaseIcon-BmMbm4d0.js")), Ne = x(() => import("./vue-ui-skeleton-
|
|
36
|
+
const ze = x(() => import("./BaseIcon-BmMbm4d0.js")), Ne = x(() => import("./vue-ui-skeleton-b5fdgyHv.js")), Pe = x(() => import("./vue-ui-accordion-CZ0thhxa.js")), Ie = x(() => import("./DataTable-BT7VF2ua.js")), Fe = x(() => import("./UserOptions-CGnQt6Fd.js")), Re = x(() => import("./PenAndPaper-DSvu9dwa.js")), Be = x(() => import("./PackageVersion-D-auaEEJ.js")), Me = x(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_funnel: Ue } = ht(), p = Oe, w = v(null), I = v(at()), le = v(0), oe = v(0), se = v(0), ne = v(null), ue = v(null), re = v(null), $ = $e(null), T = $e(null), L = v(!1), F = v(null), J = v(null), A = i(() => !!p.dataset && p.dataset.length);
|
|
37
37
|
Ke(ie);
|
|
38
38
|
function ie() {
|
|
39
39
|
if (lt(p.dataset) ? Te({
|
|
40
40
|
componentName: "VueUiFunnel",
|
|
41
41
|
type: "dataset"
|
|
42
42
|
}) : p.dataset.forEach((t, l) => {
|
|
43
|
-
|
|
43
|
+
ot({
|
|
44
44
|
datasetObject: t,
|
|
45
45
|
requiredAttributes: ["name", "value"]
|
|
46
46
|
}).forEach((a) => {
|
|
@@ -60,7 +60,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
60
60
|
noTitle: ne.value
|
|
61
61
|
});
|
|
62
62
|
requestAnimationFrame(() => {
|
|
63
|
-
h.value.height = a, h.value.width = l, k.value =
|
|
63
|
+
h.value.height = a, h.value.width = l, k.value = me(), e.value.responsiveProportionalSizing ? (d.value.circles = ae({
|
|
64
64
|
relator: Math.min(l, a),
|
|
65
65
|
adjuster: 600,
|
|
66
66
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
@@ -102,11 +102,11 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
102
102
|
const e = i({
|
|
103
103
|
get: () => ce(),
|
|
104
104
|
set: (t) => t
|
|
105
|
-
}), { userOptionsVisible: Q, setUserOptionsVisibility: ve, keepUserOptionState: de } =
|
|
105
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: ve, keepUserOptionState: de } = gt({ config: e.value }), { svgRef: K } = mt({ config: e.value.style.chart.title });
|
|
106
106
|
xe(() => p.config, (t) => {
|
|
107
|
-
e.value = ce(), Q.value = !e.value.userOptions.showOnChartHover, ie(),
|
|
107
|
+
e.value = ce(), Q.value = !e.value.userOptions.showOnChartHover, ie(), oe.value += 1, se.value += 1, d.value.circles = e.value.style.chart.circles.dataLabels.fontSize, d.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, d.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, O.value.showTable = e.value.table.show;
|
|
108
108
|
}, { deep: !0 });
|
|
109
|
-
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage:
|
|
109
|
+
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: ge } = ft({
|
|
110
110
|
elementId: `funnel_${I.value}`,
|
|
111
111
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
112
112
|
options: e.value.userOptions.print
|
|
@@ -124,12 +124,12 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
124
124
|
set: (t) => t
|
|
125
125
|
}), y = i(() => A.value ? p.dataset.map((t, l) => ({
|
|
126
126
|
...t,
|
|
127
|
-
color: t.color ?
|
|
127
|
+
color: t.color ? st(t.color) : nt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
|
|
128
128
|
})) : []);
|
|
129
129
|
setTimeout(() => {
|
|
130
130
|
L.value = !0;
|
|
131
131
|
}, y.value.length * 150);
|
|
132
|
-
function
|
|
132
|
+
function me() {
|
|
133
133
|
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
134
134
|
return {
|
|
135
135
|
left: t,
|
|
@@ -140,12 +140,12 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
140
140
|
height: h.value.height - l - e.value.style.chart.padding.bottom
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
const k = v(
|
|
144
|
-
const a = D.value - _.value,
|
|
143
|
+
const k = v(me()), D = i(() => k.value.height / p.dataset.length), _ = i(() => D.value * e.value.style.chart.bars.gapRatio), pe = i(() => k.value.width * e.value.style.chart.barCircleSpacingRatio), u = i(() => y.value.map((t, l) => {
|
|
144
|
+
const a = D.value - _.value, o = k.value.top + _.value / 2 * l + (D.value - _.value / 2) * l + _.value / 2, f = t.value / y.value[0].value, r = (k.value.width - a - pe.value) * (t.value / y.value[0].value);
|
|
145
145
|
return {
|
|
146
146
|
...t,
|
|
147
147
|
cx: k.value.left + a / 2,
|
|
148
|
-
cy:
|
|
148
|
+
cy: o + a / 2,
|
|
149
149
|
datapointIndex: l,
|
|
150
150
|
fill: t.color,
|
|
151
151
|
height: Math.max(a, 0),
|
|
@@ -153,7 +153,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
153
153
|
r: Math.max(a / 2, 0),
|
|
154
154
|
width: Math.max(r, 0),
|
|
155
155
|
x: k.value.left + a + pe.value,
|
|
156
|
-
y:
|
|
156
|
+
y: o
|
|
157
157
|
};
|
|
158
158
|
})), Ve = i(() => {
|
|
159
159
|
const t = u.value.map((l) => `${l.x + l.width},${l.y + (D.value - _.value) / 2}`);
|
|
@@ -239,8 +239,8 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
239
239
|
tt(() => {
|
|
240
240
|
const l = R.value.head.map((f, r) => [[
|
|
241
241
|
f.name
|
|
242
|
-
], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l),
|
|
243
|
-
t ? t(
|
|
242
|
+
], [R.value.body[r]], [u.value[r].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = it(a);
|
|
243
|
+
t ? t(o) : ct({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
function He() {
|
|
@@ -248,14 +248,14 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
248
248
|
}
|
|
249
249
|
async function Xe({ scale: t = 2 } = {}) {
|
|
250
250
|
if (!w.value) return;
|
|
251
|
-
const { width: l, height: a } = w.value.getBoundingClientRect(),
|
|
251
|
+
const { width: l, height: a } = w.value.getBoundingClientRect(), o = l / a, { imageUri: f, base64: r } = await pt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
252
252
|
return {
|
|
253
253
|
imageUri: f,
|
|
254
254
|
base64: r,
|
|
255
255
|
title: e.value.style.chart.title.text,
|
|
256
256
|
width: l,
|
|
257
257
|
height: a,
|
|
258
|
-
aspectRatio:
|
|
258
|
+
aspectRatio: o
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
const B = i(() => {
|
|
@@ -301,8 +301,8 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
301
301
|
});
|
|
302
302
|
async function we({ isCb: t }) {
|
|
303
303
|
if (t) {
|
|
304
|
-
const { blob: l, url: a, text:
|
|
305
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text:
|
|
304
|
+
const { blob: l, url: a, text: o, dataUrl: f } = await Je();
|
|
305
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: f });
|
|
306
306
|
} else
|
|
307
307
|
qe();
|
|
308
308
|
}
|
|
@@ -311,7 +311,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
311
311
|
getImage: Xe,
|
|
312
312
|
generatePdf: be,
|
|
313
313
|
generateCsv: ee,
|
|
314
|
-
generateImage:
|
|
314
|
+
generateImage: ge,
|
|
315
315
|
generateSvg: we,
|
|
316
316
|
toggleTable: ke,
|
|
317
317
|
toggleAnnotator: Z,
|
|
@@ -322,24 +322,24 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
322
322
|
class: N(`vue-data-ui-component vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
323
323
|
style: S(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
324
324
|
id: `funnel_${I.value}`,
|
|
325
|
-
onMouseenter: l[1] || (l[1] = () =>
|
|
326
|
-
onMouseleave: l[2] || (l[2] = () =>
|
|
325
|
+
onMouseenter: l[1] || (l[1] = () => s(ve)(!0)),
|
|
326
|
+
onMouseleave: l[2] || (l[2] = () => s(ve)(!1))
|
|
327
327
|
}, [
|
|
328
|
-
e.value.userOptions.buttons.annotator ? (n(), P(
|
|
328
|
+
e.value.userOptions.buttons.annotator ? (n(), P(s(Re), {
|
|
329
329
|
key: 0,
|
|
330
|
-
svgRef:
|
|
330
|
+
svgRef: s(K),
|
|
331
331
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
332
332
|
color: e.value.style.chart.color,
|
|
333
333
|
active: E.value,
|
|
334
334
|
onClose: Z
|
|
335
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
335
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
336
336
|
Ee.value ? (n(), c("div", {
|
|
337
337
|
key: 1,
|
|
338
338
|
ref_key: "noTitle",
|
|
339
339
|
ref: ne,
|
|
340
340
|
class: "vue-data-ui-no-title-space",
|
|
341
341
|
style: "height:36px; width: 100%;background:transparent"
|
|
342
|
-
}, null, 512)) :
|
|
342
|
+
}, null, 512)) : g("", !0),
|
|
343
343
|
e.value.style.chart.title.text ? (n(), c("div", {
|
|
344
344
|
key: 2,
|
|
345
345
|
ref_key: "chartTitle",
|
|
@@ -347,7 +347,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
347
347
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
348
348
|
}, [
|
|
349
349
|
(n(), P(yt, {
|
|
350
|
-
key: `title_${
|
|
350
|
+
key: `title_${oe.value}`,
|
|
351
351
|
config: {
|
|
352
352
|
title: {
|
|
353
353
|
cy: "funnel-div-title",
|
|
@@ -359,15 +359,15 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
}, null, 8, ["config"]))
|
|
362
|
-
], 512)) :
|
|
363
|
-
e.value.userOptions.show && A.value && (
|
|
362
|
+
], 512)) : g("", !0),
|
|
363
|
+
e.value.userOptions.show && A.value && (s(de) || s(Q)) ? (n(), P(s(Fe), {
|
|
364
364
|
ref_key: "userOptionsRef",
|
|
365
365
|
ref: J,
|
|
366
366
|
key: `user_option_${le.value}`,
|
|
367
367
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
368
368
|
color: e.value.style.chart.color,
|
|
369
|
-
isPrinting:
|
|
370
|
-
isImaging:
|
|
369
|
+
isPrinting: s(he),
|
|
370
|
+
isImaging: s(fe),
|
|
371
371
|
uid: I.value,
|
|
372
372
|
hasTooltip: !1,
|
|
373
373
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -388,75 +388,82 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
388
388
|
tableDialog: e.value.table.useDialog,
|
|
389
389
|
onToggleAnnotator: Z,
|
|
390
390
|
onToggleFullscreen: ye,
|
|
391
|
-
onGeneratePdf:
|
|
392
|
-
onGenerateImage:
|
|
391
|
+
onGeneratePdf: s(be),
|
|
392
|
+
onGenerateImage: s(ge),
|
|
393
393
|
onGenerateSvg: we,
|
|
394
394
|
onToggleTable: ke,
|
|
395
395
|
onGenerateCsv: ee,
|
|
396
396
|
style: S({
|
|
397
|
-
visibility:
|
|
397
|
+
visibility: s(de) ? s(Q) ? "visible" : "hidden" : "visible"
|
|
398
398
|
})
|
|
399
399
|
}, Le({ _: 2 }, [
|
|
400
400
|
t.$slots.menuIcon ? {
|
|
401
401
|
name: "menuIcon",
|
|
402
|
-
fn:
|
|
403
|
-
|
|
402
|
+
fn: b(({ isOpen: a, color: o }) => [
|
|
403
|
+
m(t.$slots, "menuIcon", G(j({ isOpen: a, color: o })), void 0, !0)
|
|
404
404
|
]),
|
|
405
405
|
key: "0"
|
|
406
406
|
} : void 0,
|
|
407
407
|
t.$slots.optionPdf ? {
|
|
408
408
|
name: "optionPdf",
|
|
409
|
-
fn:
|
|
410
|
-
|
|
409
|
+
fn: b(() => [
|
|
410
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
411
411
|
]),
|
|
412
412
|
key: "1"
|
|
413
413
|
} : void 0,
|
|
414
414
|
t.$slots.optionCsv ? {
|
|
415
415
|
name: "optionCsv",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
416
|
+
fn: b(() => [
|
|
417
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
418
418
|
]),
|
|
419
419
|
key: "2"
|
|
420
420
|
} : void 0,
|
|
421
421
|
t.$slots.optionImg ? {
|
|
422
422
|
name: "optionImg",
|
|
423
|
-
fn:
|
|
424
|
-
|
|
423
|
+
fn: b(() => [
|
|
424
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
425
425
|
]),
|
|
426
426
|
key: "3"
|
|
427
427
|
} : void 0,
|
|
428
|
+
t.$slots.optionSvg ? {
|
|
429
|
+
name: "optionSvg",
|
|
430
|
+
fn: b(() => [
|
|
431
|
+
m(t.$slots, "optionSvg", {}, void 0, !0)
|
|
432
|
+
]),
|
|
433
|
+
key: "4"
|
|
434
|
+
} : void 0,
|
|
428
435
|
t.$slots.optionTable ? {
|
|
429
436
|
name: "optionTable",
|
|
430
|
-
fn:
|
|
431
|
-
|
|
437
|
+
fn: b(() => [
|
|
438
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
432
439
|
]),
|
|
433
|
-
key: "
|
|
440
|
+
key: "5"
|
|
434
441
|
} : void 0,
|
|
435
442
|
t.$slots.optionFullscreen ? {
|
|
436
443
|
name: "optionFullscreen",
|
|
437
|
-
fn:
|
|
438
|
-
|
|
444
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
445
|
+
m(t.$slots, "optionFullscreen", G(j({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
439
446
|
]),
|
|
440
|
-
key: "
|
|
447
|
+
key: "6"
|
|
441
448
|
} : void 0,
|
|
442
449
|
t.$slots.optionAnnotator ? {
|
|
443
450
|
name: "optionAnnotator",
|
|
444
|
-
fn:
|
|
445
|
-
|
|
451
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
452
|
+
m(t.$slots, "optionAnnotator", G(j({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
446
453
|
]),
|
|
447
|
-
key: "
|
|
454
|
+
key: "7"
|
|
448
455
|
} : void 0
|
|
449
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
456
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
450
457
|
A.value ? (n(), c("svg", {
|
|
451
458
|
key: 4,
|
|
452
459
|
ref_key: "svgRef",
|
|
453
460
|
ref: K,
|
|
454
|
-
xmlns:
|
|
461
|
+
xmlns: s(ut),
|
|
455
462
|
class: N({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
456
463
|
viewBox: `0 0 ${h.value.width <= 0 ? 10 : h.value.width} ${h.value.height <= 0 ? 10 : h.value.height}`,
|
|
457
464
|
style: S(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
458
465
|
}, [
|
|
459
|
-
_e(
|
|
466
|
+
_e(s(Be)),
|
|
460
467
|
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
461
468
|
key: 0,
|
|
462
469
|
x: 0,
|
|
@@ -467,8 +474,8 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
467
474
|
pointerEvents: "none"
|
|
468
475
|
}
|
|
469
476
|
}, [
|
|
470
|
-
|
|
471
|
-
], 8, xt)) :
|
|
477
|
+
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
478
|
+
], 8, xt)) : g("", !0),
|
|
472
479
|
C("defs", null, [
|
|
473
480
|
C("linearGradient", {
|
|
474
481
|
id: `funnel_area_${I.value}`,
|
|
@@ -503,8 +510,8 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
503
510
|
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
504
511
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
505
512
|
}
|
|
506
|
-
}), null, 16, At)) :
|
|
507
|
-
(n(!0), c(X, null, W(u.value, ({ cx: a, cy:
|
|
513
|
+
}), null, 16, At)) : g("", !0),
|
|
514
|
+
(n(!0), c(X, null, W(u.value, ({ cx: a, cy: o, r: f, fill: r }, M) => (n(), c("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: f, fill: r }, {
|
|
508
515
|
stroke: e.value.style.chart.circles.stroke,
|
|
509
516
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
510
517
|
class: {
|
|
@@ -514,23 +521,23 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
514
521
|
animationDelay: `${150 * M}ms`
|
|
515
522
|
}
|
|
516
523
|
}), null, 16, Ot))), 256)),
|
|
517
|
-
(n(!0), c(X, null, W(u.value, (a,
|
|
524
|
+
(n(!0), c(X, null, W(u.value, (a, o) => (n(), c("text", {
|
|
518
525
|
x: a.cx,
|
|
519
526
|
y: a.cy + d.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
520
527
|
"text-anchor": "middle",
|
|
521
528
|
"font-size": d.value.circles,
|
|
522
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ?
|
|
529
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(rt)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
523
530
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
524
531
|
class: N({
|
|
525
532
|
animated: e.value.useCssAnimation && !L.value
|
|
526
533
|
}),
|
|
527
534
|
style: S({
|
|
528
|
-
animationDelay: `${150 *
|
|
535
|
+
animationDelay: `${150 * o}ms`
|
|
529
536
|
})
|
|
530
|
-
}, U(
|
|
537
|
+
}, U(s(Y)(
|
|
531
538
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
532
539
|
a.proportion * 100,
|
|
533
|
-
|
|
540
|
+
s(q)({
|
|
534
541
|
v: a.proportion * 100,
|
|
535
542
|
s: "%",
|
|
536
543
|
r: e.value.style.chart.circles.dataLabels.rounding
|
|
@@ -547,8 +554,8 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
547
554
|
style: S({
|
|
548
555
|
transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
|
|
549
556
|
})
|
|
550
|
-
}, null, 14, zt)) :
|
|
551
|
-
(n(!0), c(X, null, W(u.value, ({ x: a, y:
|
|
557
|
+
}, null, 14, zt)) : g("", !0),
|
|
558
|
+
(n(!0), c(X, null, W(u.value, ({ x: a, y: o, height: f, width: r, fill: M }, te) => (n(), c("rect", H({ ref_for: !0 }, { x: a, y: o, height: f, width: r, fill: M }, {
|
|
552
559
|
stroke: e.value.style.chart.bars.stroke,
|
|
553
560
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
554
561
|
rx: e.value.style.chart.bars.borderRadius,
|
|
@@ -559,7 +566,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
559
566
|
animationDelay: `${150 * te}ms`
|
|
560
567
|
}
|
|
561
568
|
}), null, 16, Nt))), 256)),
|
|
562
|
-
(n(!0), c(X, null, W(u.value, (a,
|
|
569
|
+
(n(!0), c(X, null, W(u.value, (a, o) => (n(), c("g", null, [
|
|
563
570
|
C("text", {
|
|
564
571
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
565
572
|
y: a.cy - d.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
@@ -571,7 +578,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
571
578
|
animated: e.value.useCssAnimation && !L.value
|
|
572
579
|
}),
|
|
573
580
|
style: S({
|
|
574
|
-
animationDelay: `${150 *
|
|
581
|
+
animationDelay: `${150 * o}ms`
|
|
575
582
|
})
|
|
576
583
|
}, U(a.name), 15, Pt),
|
|
577
584
|
C("text", {
|
|
@@ -585,12 +592,12 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
585
592
|
animated: e.value.useCssAnimation && !L.value
|
|
586
593
|
}),
|
|
587
594
|
style: S({
|
|
588
|
-
animationDelay: `${150 *
|
|
595
|
+
animationDelay: `${150 * o}ms`
|
|
589
596
|
})
|
|
590
|
-
}, U(
|
|
597
|
+
}, U(s(Y)(
|
|
591
598
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
592
599
|
a.value,
|
|
593
|
-
|
|
600
|
+
s(q)({
|
|
594
601
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
595
602
|
v: a.value,
|
|
596
603
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
@@ -599,12 +606,12 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
599
606
|
{ datapoint: a }
|
|
600
607
|
)), 15, It)
|
|
601
608
|
]))), 256)),
|
|
602
|
-
|
|
603
|
-
], 14, $t)) :
|
|
609
|
+
m(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
610
|
+
], 14, $t)) : g("", !0),
|
|
604
611
|
t.$slots.watermark ? (n(), c("div", Ft, [
|
|
605
|
-
|
|
606
|
-
])) :
|
|
607
|
-
A.value ?
|
|
612
|
+
m(t.$slots, "watermark", G(j({ isPrinting: s(he) || s(fe) })), void 0, !0)
|
|
613
|
+
])) : g("", !0),
|
|
614
|
+
A.value ? g("", !0) : (n(), P(s(Ne), {
|
|
608
615
|
key: 6,
|
|
609
616
|
config: {
|
|
610
617
|
type: "verticalBar",
|
|
@@ -625,16 +632,16 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
625
632
|
ref: ue,
|
|
626
633
|
dir: "auto"
|
|
627
634
|
}, [
|
|
628
|
-
|
|
629
|
-
], 512)) :
|
|
635
|
+
m(t.$slots, "source", {}, void 0, !0)
|
|
636
|
+
], 512)) : g("", !0),
|
|
630
637
|
A.value && e.value.userOptions.buttons.table ? (n(), P(et(B.value.component), H({ key: 8 }, B.value.props, {
|
|
631
638
|
ref_key: "tableUnit",
|
|
632
639
|
ref: F,
|
|
633
640
|
onClose: Ce
|
|
634
641
|
}), Le({
|
|
635
|
-
content:
|
|
636
|
-
(n(), P(
|
|
637
|
-
key: `table_${
|
|
642
|
+
content: b(() => [
|
|
643
|
+
(n(), P(s(Ie), {
|
|
644
|
+
key: `table_${se.value}`,
|
|
638
645
|
colNames: V.value.colNames,
|
|
639
646
|
head: V.value.head,
|
|
640
647
|
body: V.value.body,
|
|
@@ -643,13 +650,13 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
643
650
|
withCloseButton: !e.value.table.useDialog,
|
|
644
651
|
onClose: Ce
|
|
645
652
|
}, {
|
|
646
|
-
th:
|
|
653
|
+
th: b(({ th: a }) => [
|
|
647
654
|
C("div", {
|
|
648
655
|
innerHTML: a,
|
|
649
656
|
style: { display: "flex", "align-items": "center" }
|
|
650
657
|
}, null, 8, Rt)
|
|
651
658
|
]),
|
|
652
|
-
td:
|
|
659
|
+
td: b(({ td: a }) => [
|
|
653
660
|
Se(U(a.name ? a.name : a), 1)
|
|
654
661
|
]),
|
|
655
662
|
_: 1
|
|
@@ -659,20 +666,20 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
659
666
|
}, [
|
|
660
667
|
e.value.table.useDialog ? {
|
|
661
668
|
name: "title",
|
|
662
|
-
fn:
|
|
669
|
+
fn: b(() => [
|
|
663
670
|
Se(U(B.value.title), 1)
|
|
664
671
|
]),
|
|
665
672
|
key: "0"
|
|
666
673
|
} : void 0,
|
|
667
674
|
e.value.table.useDialog ? {
|
|
668
675
|
name: "actions",
|
|
669
|
-
fn:
|
|
676
|
+
fn: b(() => [
|
|
670
677
|
C("button", {
|
|
671
678
|
tabindex: "0",
|
|
672
679
|
class: "vue-ui-user-options-button",
|
|
673
680
|
onClick: l[0] || (l[0] = (a) => ee(e.value.userOptions.callbacks.csv))
|
|
674
681
|
}, [
|
|
675
|
-
_e(
|
|
682
|
+
_e(s(ze), {
|
|
676
683
|
name: "excel",
|
|
677
684
|
stroke: B.value.props.color
|
|
678
685
|
}, null, 8, ["stroke"])
|
|
@@ -680,10 +687,10 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], xt = ["width", "height"], Lt = ["i
|
|
|
680
687
|
]),
|
|
681
688
|
key: "1"
|
|
682
689
|
} : void 0
|
|
683
|
-
]), 1040)) :
|
|
690
|
+
]), 1040)) : g("", !0)
|
|
684
691
|
], 46, wt));
|
|
685
692
|
}
|
|
686
|
-
}, Qt = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-
|
|
693
|
+
}, Qt = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-84d1cb5f"]]);
|
|
687
694
|
export {
|
|
688
695
|
Qt as default
|
|
689
696
|
};
|