vue-data-ui 3.2.7 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- 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-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-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-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-icon.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-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/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { useCssVars as Ke, computed as i, defineAsyncComponent as $, ref as v, shallowRef as xe, onMounted as Qe, onBeforeUnmount as Ze, watch as $e, createElementBlock as c, openBlock as n, unref as o, normalizeStyle as T, normalizeClass as N, createBlock as I, createCommentVNode as b, createSlots as Le, withCtx as m, renderSlot as g, 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 Te, nextTick as tt } from "vue";
|
|
2
|
+
import { c as at, o as lt, f as Se, g as st, h as ot, m as nt, a as Y, d as q, X as ut, E as rt, D as ae, x as it, y as ct } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as vt, u as dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ht, a as Ae } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as ft } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as bt } from "./useSvgExport-B7-Vrjtu.js";
|
|
7
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import pt from "./img-6wPuVVtk.js";
|
|
10
|
+
import yt from "./Title-D17CJXko.js";
|
|
11
|
+
import { t as kt } from "./themes-Dw-dDudK.js";
|
|
12
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const wt = ["id"], xt = ["xmlns", "viewBox"], $t = ["width", "height"], Lt = ["id"], _t = ["stop-color"], Tt = ["stop-color"], St = ["stop-color"], At = ["stroke", "stroke-width"], Ot = ["stroke", "stroke-width"], Dt = ["x", "y", "font-size", "fill", "font-weight"], zt = ["points", "fill"], Nt = ["stroke", "stroke-width", "rx"], It = ["x", "y", "font-size", "fill", "font-weight"], Pt = ["x", "y", "font-size", "fill", "font-weight"], Ft = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Bt = ["innerHTML"], Rt = {
|
|
16
17
|
__name: "vue-ui-funnel",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,21 +30,21 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(Oe, { expose: De }) {
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
Ke((t) => ({
|
|
34
|
+
v09babd12: je.value
|
|
34
35
|
}));
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
if (
|
|
36
|
+
const ze = $(() => import("./BaseIcon-CtqN7W_g.js")), Ne = $(() => import("./vue-ui-skeleton-CKfOnyd_.js")), Ie = $(() => import("./vue-ui-accordion-Dch9YrCi.js")), Pe = $(() => import("./DataTable-BeI6gYJX.js")), Fe = $(() => import("./UserOptions-B3vCIe-u.js")), Be = $(() => import("./PenAndPaper-BxbYiPy4.js")), Re = $(() => import("./PackageVersion-C9oklnuy.js")), Me = $(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_funnel: Ue } = ht(), p = Oe, w = v(null), P = v(at()), le = v(0), se = v(0), oe = v(0), ne = v(null), ue = v(null), re = v(null), x = xe(null), S = xe(null), L = v(!1), F = v(null), J = v(null), A = i(() => !!p.dataset && p.dataset.length);
|
|
37
|
+
Qe(ie);
|
|
38
|
+
function ie() {
|
|
39
|
+
if (lt(p.dataset) ? Se({
|
|
39
40
|
componentName: "VueUiFunnel",
|
|
40
41
|
type: "dataset"
|
|
41
42
|
}) : p.dataset.forEach((t, l) => {
|
|
42
|
-
|
|
43
|
+
st({
|
|
43
44
|
datasetObject: t,
|
|
44
45
|
requiredAttributes: ["name", "value"]
|
|
45
46
|
}).forEach((a) => {
|
|
46
|
-
|
|
47
|
+
A.value = !1, Se({
|
|
47
48
|
componentName: "VueUiFunnel",
|
|
48
49
|
type: "datasetSerieAttribute",
|
|
49
50
|
property: a,
|
|
@@ -51,79 +52,79 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
}), e.value.responsive) {
|
|
54
|
-
const t =
|
|
55
|
-
const { width: l, height: a } =
|
|
55
|
+
const t = vt(() => {
|
|
56
|
+
const { width: l, height: a } = dt({
|
|
56
57
|
chart: w.value,
|
|
57
|
-
title: e.value.style.chart.title.text ?
|
|
58
|
-
source:
|
|
59
|
-
noTitle:
|
|
58
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
59
|
+
source: ue.value,
|
|
60
|
+
noTitle: ne.value
|
|
60
61
|
});
|
|
61
62
|
requestAnimationFrame(() => {
|
|
62
|
-
|
|
63
|
+
h.value.height = a, h.value.width = l, k.value = ge(), e.value.responsiveProportionalSizing ? (d.value.circles = ae({
|
|
63
64
|
relator: Math.min(l, a),
|
|
64
65
|
adjuster: 600,
|
|
65
66
|
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
66
67
|
threshold: 10,
|
|
67
68
|
fallback: 10
|
|
68
|
-
}),
|
|
69
|
+
}), d.value.names = ae({
|
|
69
70
|
relator: Math.min(l, a),
|
|
70
71
|
adjuster: 600,
|
|
71
72
|
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
72
73
|
threshold: 10,
|
|
73
74
|
fallback: 10
|
|
74
|
-
}),
|
|
75
|
+
}), d.value.values = ae({
|
|
75
76
|
relator: Math.min(l, a),
|
|
76
77
|
adjuster: 600,
|
|
77
78
|
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
78
79
|
threshold: 10,
|
|
79
80
|
fallback: 10
|
|
80
|
-
})) : (
|
|
81
|
+
})) : (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);
|
|
81
82
|
});
|
|
82
83
|
});
|
|
83
|
-
|
|
84
|
+
x.value && (S.value && x.value.unobserve(S.value), x.value.disconnect()), x.value = new ResizeObserver(t), S.value = w.value.parentNode, x.value.observe(S.value);
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
Ze(() => {
|
|
88
|
+
x.value && (S.value && x.value.unobserve(S.value), x.value.disconnect());
|
|
88
89
|
});
|
|
89
|
-
function
|
|
90
|
+
function ce() {
|
|
90
91
|
const t = Ae({
|
|
91
92
|
userConfig: p.config,
|
|
92
|
-
defaultConfig:
|
|
93
|
+
defaultConfig: Ue
|
|
93
94
|
});
|
|
94
95
|
return t.theme ? {
|
|
95
96
|
...Ae({
|
|
96
|
-
userConfig:
|
|
97
|
+
userConfig: kt.vue_ui_funnel[t.theme] || p.config,
|
|
97
98
|
defaultConfig: t
|
|
98
99
|
})
|
|
99
100
|
} : t;
|
|
100
101
|
}
|
|
101
|
-
const e =
|
|
102
|
-
get: () =>
|
|
102
|
+
const e = i({
|
|
103
|
+
get: () => ce(),
|
|
103
104
|
set: (t) => t
|
|
104
|
-
}), { userOptionsVisible: K, setUserOptionsVisibility:
|
|
105
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: ve, keepUserOptionState: de } = mt({ config: e.value }), { svgRef: Q } = gt({ config: e.value.style.chart.title });
|
|
105
106
|
$e(() => p.config, (t) => {
|
|
106
|
-
e.value =
|
|
107
|
+
e.value = ce(), K.value = !e.value.userOptions.showOnChartHover, ie(), se.value += 1, oe.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;
|
|
107
108
|
}, { deep: !0 });
|
|
108
|
-
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } =
|
|
109
|
+
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: me } = ft({
|
|
109
110
|
elementId: `funnel_${P.value}`,
|
|
110
111
|
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
111
112
|
options: e.value.userOptions.print
|
|
112
|
-
}),
|
|
113
|
+
}), Ee = i(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = v({
|
|
113
114
|
showTable: e.value.table.show
|
|
114
|
-
}),
|
|
115
|
+
}), d = v({
|
|
115
116
|
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
116
117
|
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
117
118
|
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
118
|
-
}),
|
|
119
|
+
}), h = i({
|
|
119
120
|
get: () => ({
|
|
120
121
|
height: e.value.style.chart.height,
|
|
121
122
|
width: e.value.style.chart.width
|
|
122
123
|
}),
|
|
123
124
|
set: (t) => t
|
|
124
|
-
}), y =
|
|
125
|
+
}), y = i(() => A.value ? p.dataset.map((t, l) => ({
|
|
125
126
|
...t,
|
|
126
|
-
color: t.color ?
|
|
127
|
+
color: t.color ? ot(t.color) : nt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
|
|
127
128
|
})) : []);
|
|
128
129
|
setTimeout(() => {
|
|
129
130
|
L.value = !0;
|
|
@@ -133,18 +134,18 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
133
134
|
return {
|
|
134
135
|
left: t,
|
|
135
136
|
top: l,
|
|
136
|
-
right:
|
|
137
|
-
bottom:
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
137
|
+
right: h.value.width - e.value.style.chart.padding.right,
|
|
138
|
+
bottom: h.value.height - e.value.style.chart.padding.bottom,
|
|
139
|
+
width: h.value.width - t - e.value.style.chart.padding.right,
|
|
140
|
+
height: h.value.height - l - e.value.style.chart.padding.bottom
|
|
140
141
|
};
|
|
141
142
|
}
|
|
142
|
-
const k =
|
|
143
|
-
const a =
|
|
143
|
+
const k = v(ge()), 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, s = 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);
|
|
144
145
|
return {
|
|
145
146
|
...t,
|
|
146
147
|
cx: k.value.left + a / 2,
|
|
147
|
-
cy:
|
|
148
|
+
cy: s + a / 2,
|
|
148
149
|
datapointIndex: l,
|
|
149
150
|
fill: t.color,
|
|
150
151
|
height: Math.max(a, 0),
|
|
@@ -152,50 +153,50 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
152
153
|
r: Math.max(a / 2, 0),
|
|
153
154
|
width: Math.max(r, 0),
|
|
154
155
|
x: k.value.left + a + pe.value,
|
|
155
|
-
y:
|
|
156
|
+
y: s
|
|
156
157
|
};
|
|
157
|
-
})),
|
|
158
|
-
const t = u.value.map((l) => `${l.x + l.width},${l.y + (
|
|
159
|
-
return `${u.value[0].x},${u.value[0].y + (
|
|
160
|
-
}),
|
|
158
|
+
})), Ve = i(() => {
|
|
159
|
+
const t = u.value.map((l) => `${l.x + l.width},${l.y + (D.value - _.value) / 2}`);
|
|
160
|
+
return `${u.value[0].x},${u.value[0].y + (D.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (D.value - _.value) / 2}`;
|
|
161
|
+
}), Ge = i(() => ({
|
|
161
162
|
x1: u.value[0].cx,
|
|
162
163
|
y1: u.value[0].cy,
|
|
163
164
|
x2: u.value.at(-1).cx,
|
|
164
165
|
y2: u.value.at(-1).cy
|
|
165
|
-
})), z =
|
|
166
|
+
})), z = v(!1);
|
|
166
167
|
function ye(t) {
|
|
167
|
-
z.value = t,
|
|
168
|
+
z.value = t, le.value += 1;
|
|
168
169
|
}
|
|
169
|
-
const
|
|
170
|
-
function
|
|
170
|
+
const je = i(() => `${y.value.length * 150}ms`), E = v(!1);
|
|
171
|
+
function Z() {
|
|
171
172
|
E.value = !E.value;
|
|
172
173
|
}
|
|
173
174
|
function ke() {
|
|
174
|
-
|
|
175
|
+
O.value.showTable = !O.value.showTable;
|
|
175
176
|
}
|
|
176
|
-
const
|
|
177
|
+
const B = i(() => {
|
|
177
178
|
const t = y.value.map((a) => ({
|
|
178
179
|
name: a.name,
|
|
179
180
|
color: a.color
|
|
180
181
|
})), l = y.value.map((a) => a.value);
|
|
181
182
|
return { head: t, body: l };
|
|
182
|
-
}), V =
|
|
183
|
+
}), V = i(() => {
|
|
183
184
|
const t = [
|
|
184
185
|
e.value.table.columnNames.series,
|
|
185
186
|
e.value.table.columnNames.value,
|
|
186
187
|
e.value.table.columnNames.percentage
|
|
187
|
-
], l =
|
|
188
|
+
], l = B.value.head.map((f, r) => {
|
|
188
189
|
const M = Y(
|
|
189
190
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
190
|
-
|
|
191
|
+
B.value.body[r],
|
|
191
192
|
q({
|
|
192
193
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
193
|
-
v:
|
|
194
|
+
v: B.value.body[r],
|
|
194
195
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
195
196
|
r: e.value.table.td.roundingValue
|
|
196
197
|
}),
|
|
197
198
|
{ datapoint: u.value[r] }
|
|
198
|
-
),
|
|
199
|
+
), te = Y(
|
|
199
200
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
200
201
|
u.value[r].proportion * 100,
|
|
201
202
|
q({
|
|
@@ -208,7 +209,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
208
209
|
return [
|
|
209
210
|
{ color: f.color, name: f.name },
|
|
210
211
|
M,
|
|
211
|
-
|
|
212
|
+
te
|
|
212
213
|
];
|
|
213
214
|
}), a = {
|
|
214
215
|
th: {
|
|
@@ -234,33 +235,33 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
234
235
|
config: a
|
|
235
236
|
};
|
|
236
237
|
});
|
|
237
|
-
function
|
|
238
|
-
|
|
239
|
-
const l =
|
|
238
|
+
function ee(t = null) {
|
|
239
|
+
tt(() => {
|
|
240
|
+
const l = B.value.head.map((f, r) => [[
|
|
240
241
|
f.name
|
|
241
|
-
], [
|
|
242
|
-
t ? t(
|
|
242
|
+
], [B.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), s = it(a);
|
|
243
|
+
t ? t(s) : ct({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function He() {
|
|
246
247
|
return y.value;
|
|
247
248
|
}
|
|
248
|
-
async function
|
|
249
|
+
async function Xe({ scale: t = 2 } = {}) {
|
|
249
250
|
if (!w.value) return;
|
|
250
|
-
const { width: l, height: a } = w.value.getBoundingClientRect(),
|
|
251
|
+
const { width: l, height: a } = w.value.getBoundingClientRect(), s = l / a, { imageUri: f, base64: r } = await pt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
251
252
|
return {
|
|
252
253
|
imageUri: f,
|
|
253
254
|
base64: r,
|
|
254
255
|
title: e.value.style.chart.title.text,
|
|
255
256
|
width: l,
|
|
256
257
|
height: a,
|
|
257
|
-
aspectRatio:
|
|
258
|
+
aspectRatio: s
|
|
258
259
|
};
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
261
|
+
const R = i(() => {
|
|
262
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = O.value.showTable;
|
|
262
263
|
return {
|
|
263
|
-
component: t ?
|
|
264
|
+
component: t ? Me : Ie,
|
|
264
265
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
265
266
|
props: t ? {
|
|
266
267
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -287,53 +288,66 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
287
288
|
}
|
|
288
289
|
};
|
|
289
290
|
});
|
|
290
|
-
$e(() =>
|
|
291
|
+
$e(() => O.value.showTable, (t) => {
|
|
291
292
|
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
292
293
|
});
|
|
293
294
|
function Ce() {
|
|
294
|
-
|
|
295
|
+
O.value.showTable = !1, J.value && J.value.setTableIconState(!1);
|
|
296
|
+
}
|
|
297
|
+
const We = i(() => e.value.style.chart.backgroundColor), Ye = i(() => e.value.style.chart.title), { exportSvg: qe, getSvg: Je } = bt({
|
|
298
|
+
svg: Q,
|
|
299
|
+
title: Ye,
|
|
300
|
+
backgroundColor: We
|
|
301
|
+
});
|
|
302
|
+
async function we({ isCb: t }) {
|
|
303
|
+
if (t) {
|
|
304
|
+
const { blob: l, url: a, text: s, dataUrl: f } = await Je();
|
|
305
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: f });
|
|
306
|
+
} else
|
|
307
|
+
qe();
|
|
295
308
|
}
|
|
296
309
|
return De({
|
|
297
|
-
getData:
|
|
298
|
-
getImage:
|
|
310
|
+
getData: He,
|
|
311
|
+
getImage: Xe,
|
|
299
312
|
generatePdf: be,
|
|
300
|
-
generateCsv:
|
|
313
|
+
generateCsv: ee,
|
|
301
314
|
generateImage: me,
|
|
315
|
+
generateSvg: we,
|
|
302
316
|
toggleTable: ke,
|
|
303
|
-
toggleAnnotator:
|
|
317
|
+
toggleAnnotator: Z,
|
|
304
318
|
toggleFullscreen: ye
|
|
305
|
-
}), (t, l) => (n(),
|
|
319
|
+
}), (t, l) => (n(), c("div", {
|
|
306
320
|
ref_key: "funnelChart",
|
|
307
321
|
ref: w,
|
|
308
|
-
class: N(`vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
322
|
+
class: N(`vue-data-ui-component vue-ui-funnel ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
309
323
|
style: T(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
310
324
|
id: `funnel_${P.value}`,
|
|
311
|
-
onMouseenter: l[1] || (l[1] = () =>
|
|
312
|
-
onMouseleave: l[2] || (l[2] = () =>
|
|
325
|
+
onMouseenter: l[1] || (l[1] = () => o(ve)(!0)),
|
|
326
|
+
onMouseleave: l[2] || (l[2] = () => o(ve)(!1))
|
|
313
327
|
}, [
|
|
314
|
-
e.value.userOptions.buttons.annotator ? (n(), I(
|
|
328
|
+
e.value.userOptions.buttons.annotator ? (n(), I(o(Be), {
|
|
315
329
|
key: 0,
|
|
316
|
-
svgRef:
|
|
330
|
+
svgRef: o(Q),
|
|
317
331
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
318
332
|
color: e.value.style.chart.color,
|
|
319
333
|
active: E.value,
|
|
320
|
-
onClose:
|
|
334
|
+
onClose: Z
|
|
321
335
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
322
|
-
|
|
336
|
+
Ee.value ? (n(), c("div", {
|
|
323
337
|
key: 1,
|
|
324
338
|
ref_key: "noTitle",
|
|
325
|
-
ref:
|
|
339
|
+
ref: ne,
|
|
326
340
|
class: "vue-data-ui-no-title-space",
|
|
327
341
|
style: "height:36px; width: 100%;background:transparent"
|
|
328
342
|
}, null, 512)) : b("", !0),
|
|
329
|
-
e.value.style.chart.title.text ? (n(),
|
|
343
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
330
344
|
key: 2,
|
|
331
345
|
ref_key: "chartTitle",
|
|
332
|
-
ref:
|
|
346
|
+
ref: re,
|
|
333
347
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
334
348
|
}, [
|
|
335
|
-
(n(), I(
|
|
336
|
-
key: `title_${
|
|
349
|
+
(n(), I(yt, {
|
|
350
|
+
key: `title_${se.value}`,
|
|
337
351
|
config: {
|
|
338
352
|
title: {
|
|
339
353
|
cy: "funnel-div-title",
|
|
@@ -346,18 +360,19 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
346
360
|
}
|
|
347
361
|
}, null, 8, ["config"]))
|
|
348
362
|
], 512)) : b("", !0),
|
|
349
|
-
e.value.userOptions.show &&
|
|
363
|
+
e.value.userOptions.show && A.value && (o(de) || o(K)) ? (n(), I(o(Fe), {
|
|
350
364
|
ref_key: "userOptionsRef",
|
|
351
365
|
ref: J,
|
|
352
|
-
key: `user_option_${
|
|
366
|
+
key: `user_option_${le.value}`,
|
|
353
367
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
354
368
|
color: e.value.style.chart.color,
|
|
355
|
-
isPrinting:
|
|
356
|
-
isImaging:
|
|
369
|
+
isPrinting: o(he),
|
|
370
|
+
isImaging: o(fe),
|
|
357
371
|
uid: P.value,
|
|
358
372
|
hasTooltip: !1,
|
|
359
373
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
360
374
|
hasImg: e.value.userOptions.buttons.img,
|
|
375
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
361
376
|
hasXls: e.value.userOptions.buttons.csv,
|
|
362
377
|
hasTable: e.value.userOptions.buttons.table,
|
|
363
378
|
hasLabel: !1,
|
|
@@ -371,20 +386,21 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
371
386
|
callbacks: e.value.userOptions.callbacks,
|
|
372
387
|
printScale: e.value.userOptions.print.scale,
|
|
373
388
|
tableDialog: e.value.table.useDialog,
|
|
374
|
-
onToggleAnnotator:
|
|
389
|
+
onToggleAnnotator: Z,
|
|
375
390
|
onToggleFullscreen: ye,
|
|
376
|
-
onGeneratePdf:
|
|
377
|
-
onGenerateImage:
|
|
391
|
+
onGeneratePdf: o(be),
|
|
392
|
+
onGenerateImage: o(me),
|
|
393
|
+
onGenerateSvg: we,
|
|
378
394
|
onToggleTable: ke,
|
|
379
|
-
onGenerateCsv:
|
|
395
|
+
onGenerateCsv: ee,
|
|
380
396
|
style: T({
|
|
381
|
-
visibility:
|
|
397
|
+
visibility: o(de) ? o(K) ? "visible" : "hidden" : "visible"
|
|
382
398
|
})
|
|
383
|
-
},
|
|
399
|
+
}, Le({ _: 2 }, [
|
|
384
400
|
t.$slots.menuIcon ? {
|
|
385
401
|
name: "menuIcon",
|
|
386
|
-
fn: m(({ isOpen: a, color:
|
|
387
|
-
g(t.$slots, "menuIcon", G(j({ isOpen: a, color:
|
|
402
|
+
fn: m(({ isOpen: a, color: s }) => [
|
|
403
|
+
g(t.$slots, "menuIcon", G(j({ isOpen: a, color: s })), void 0, !0)
|
|
388
404
|
]),
|
|
389
405
|
key: "0"
|
|
390
406
|
} : void 0,
|
|
@@ -418,41 +434,41 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
418
434
|
} : void 0,
|
|
419
435
|
t.$slots.optionFullscreen ? {
|
|
420
436
|
name: "optionFullscreen",
|
|
421
|
-
fn: m(({ toggleFullscreen: a, isFullscreen:
|
|
422
|
-
g(t.$slots, "optionFullscreen", G(j({ toggleFullscreen: a, isFullscreen:
|
|
437
|
+
fn: m(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
438
|
+
g(t.$slots, "optionFullscreen", G(j({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
423
439
|
]),
|
|
424
440
|
key: "5"
|
|
425
441
|
} : void 0,
|
|
426
442
|
t.$slots.optionAnnotator ? {
|
|
427
443
|
name: "optionAnnotator",
|
|
428
|
-
fn: m(({ toggleAnnotator: a, isAnnotator:
|
|
429
|
-
g(t.$slots, "optionAnnotator", G(j({ toggleAnnotator: a, isAnnotator:
|
|
444
|
+
fn: m(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
445
|
+
g(t.$slots, "optionAnnotator", G(j({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
430
446
|
]),
|
|
431
447
|
key: "6"
|
|
432
448
|
} : void 0
|
|
433
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
434
|
-
|
|
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"])) : b("", !0),
|
|
450
|
+
A.value ? (n(), c("svg", {
|
|
435
451
|
key: 4,
|
|
436
452
|
ref_key: "svgRef",
|
|
437
|
-
ref:
|
|
438
|
-
xmlns:
|
|
453
|
+
ref: Q,
|
|
454
|
+
xmlns: o(ut),
|
|
439
455
|
class: N({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
440
|
-
viewBox: `0 0 ${
|
|
456
|
+
viewBox: `0 0 ${h.value.width <= 0 ? 10 : h.value.width} ${h.value.height <= 0 ? 10 : h.value.height}`,
|
|
441
457
|
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
442
458
|
}, [
|
|
443
|
-
|
|
444
|
-
t.$slots["chart-background"] ? (n(),
|
|
459
|
+
_e(o(Re)),
|
|
460
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
445
461
|
key: 0,
|
|
446
462
|
x: 0,
|
|
447
463
|
y: 0,
|
|
448
|
-
width:
|
|
449
|
-
height:
|
|
464
|
+
width: h.value.width <= 0 ? 10 : h.value.width,
|
|
465
|
+
height: h.value.height <= 0 ? 10 : h.value.height,
|
|
450
466
|
style: {
|
|
451
467
|
pointerEvents: "none"
|
|
452
468
|
}
|
|
453
469
|
}, [
|
|
454
470
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
455
|
-
], 8,
|
|
471
|
+
], 8, $t)) : b("", !0),
|
|
456
472
|
C("defs", null, [
|
|
457
473
|
C("linearGradient", {
|
|
458
474
|
id: `funnel_area_${P.value}`,
|
|
@@ -465,18 +481,18 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
465
481
|
offset: "0%",
|
|
466
482
|
"stop-color": e.value.style.chart.backgroundColor,
|
|
467
483
|
"stop-opacity": 0
|
|
468
|
-
}, null, 8,
|
|
484
|
+
}, null, 8, _t),
|
|
469
485
|
C("stop", {
|
|
470
486
|
offset: "20%",
|
|
471
487
|
"stop-color": e.value.style.chart.area.color
|
|
472
|
-
}, null, 8,
|
|
488
|
+
}, null, 8, Tt),
|
|
473
489
|
C("stop", {
|
|
474
490
|
offset: "100%",
|
|
475
491
|
"stop-color": e.value.style.chart.area.color
|
|
476
|
-
}, null, 8,
|
|
477
|
-
], 8,
|
|
492
|
+
}, null, 8, St)
|
|
493
|
+
], 8, Lt)
|
|
478
494
|
]),
|
|
479
|
-
e.value.style.chart.circleLinks.show ? (n(),
|
|
495
|
+
e.value.style.chart.circleLinks.show ? (n(), c("line", H({ key: 1 }, Ge.value, {
|
|
480
496
|
stroke: e.value.style.chart.circleLinks.color,
|
|
481
497
|
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
482
498
|
"stroke-linecap": "round",
|
|
@@ -487,8 +503,8 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
487
503
|
strokeDasharray: e.value.useCssAnimation ? k.value.height : 0,
|
|
488
504
|
strokeDashoffset: e.value.useCssAnimation ? k.value.height : 0
|
|
489
505
|
}
|
|
490
|
-
}), null, 16,
|
|
491
|
-
(n(!0),
|
|
506
|
+
}), null, 16, At)) : b("", !0),
|
|
507
|
+
(n(!0), c(X, null, W(u.value, ({ cx: a, cy: s, r: f, fill: r }, M) => (n(), c("circle", H({ ref_for: !0 }, { cx: a, cy: s, r: f, fill: r }, {
|
|
492
508
|
stroke: e.value.style.chart.circles.stroke,
|
|
493
509
|
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
494
510
|
class: {
|
|
@@ -497,33 +513,33 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
497
513
|
style: {
|
|
498
514
|
animationDelay: `${150 * M}ms`
|
|
499
515
|
}
|
|
500
|
-
}), null, 16,
|
|
501
|
-
(n(!0),
|
|
516
|
+
}), null, 16, Ot))), 256)),
|
|
517
|
+
(n(!0), c(X, null, W(u.value, (a, s) => (n(), c("text", {
|
|
502
518
|
x: a.cx,
|
|
503
|
-
y: a.cy +
|
|
519
|
+
y: a.cy + d.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
504
520
|
"text-anchor": "middle",
|
|
505
|
-
"font-size":
|
|
506
|
-
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ?
|
|
521
|
+
"font-size": d.value.circles,
|
|
522
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? o(rt)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
507
523
|
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
508
524
|
class: N({
|
|
509
525
|
animated: e.value.useCssAnimation && !L.value
|
|
510
526
|
}),
|
|
511
527
|
style: T({
|
|
512
|
-
animationDelay: `${150 *
|
|
528
|
+
animationDelay: `${150 * s}ms`
|
|
513
529
|
})
|
|
514
|
-
}, U(
|
|
530
|
+
}, U(o(Y)(
|
|
515
531
|
e.value.style.chart.circles.dataLabels.formatter,
|
|
516
532
|
a.proportion * 100,
|
|
517
|
-
|
|
533
|
+
o(q)({
|
|
518
534
|
v: a.proportion * 100,
|
|
519
535
|
s: "%",
|
|
520
536
|
r: e.value.style.chart.circles.dataLabels.rounding
|
|
521
537
|
}),
|
|
522
538
|
{ datapoint: a }
|
|
523
|
-
)), 15,
|
|
524
|
-
e.value.style.chart.area.show ? (n(),
|
|
539
|
+
)), 15, Dt))), 256)),
|
|
540
|
+
e.value.style.chart.area.show ? (n(), c("polygon", {
|
|
525
541
|
key: 2,
|
|
526
|
-
points:
|
|
542
|
+
points: Ve.value,
|
|
527
543
|
fill: `url(#funnel_area_${P.value})`,
|
|
528
544
|
class: N({
|
|
529
545
|
animated: e.value.useCssAnimation && !L.value
|
|
@@ -531,8 +547,8 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
531
547
|
style: T({
|
|
532
548
|
transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
|
|
533
549
|
})
|
|
534
|
-
}, null, 14,
|
|
535
|
-
(n(!0),
|
|
550
|
+
}, null, 14, zt)) : b("", !0),
|
|
551
|
+
(n(!0), c(X, null, W(u.value, ({ x: a, y: s, height: f, width: r, fill: M }, te) => (n(), c("rect", H({ ref_for: !0 }, { x: a, y: s, height: f, width: r, fill: M }, {
|
|
536
552
|
stroke: e.value.style.chart.bars.stroke,
|
|
537
553
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
538
554
|
rx: e.value.style.chart.bars.borderRadius,
|
|
@@ -540,55 +556,55 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
540
556
|
animated: e.value.useCssAnimation && !L.value
|
|
541
557
|
},
|
|
542
558
|
style: {
|
|
543
|
-
animationDelay: `${150 *
|
|
559
|
+
animationDelay: `${150 * te}ms`
|
|
544
560
|
}
|
|
545
|
-
}), null, 16,
|
|
546
|
-
(n(!0),
|
|
561
|
+
}), null, 16, Nt))), 256)),
|
|
562
|
+
(n(!0), c(X, null, W(u.value, (a, s) => (n(), c("g", null, [
|
|
547
563
|
C("text", {
|
|
548
564
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
549
|
-
y: a.cy -
|
|
565
|
+
y: a.cy - d.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
550
566
|
"text-anchor": "start",
|
|
551
|
-
"font-size":
|
|
567
|
+
"font-size": d.value.names,
|
|
552
568
|
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
553
569
|
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
554
570
|
class: N({
|
|
555
571
|
animated: e.value.useCssAnimation && !L.value
|
|
556
572
|
}),
|
|
557
573
|
style: T({
|
|
558
|
-
animationDelay: `${150 *
|
|
574
|
+
animationDelay: `${150 * s}ms`
|
|
559
575
|
})
|
|
560
|
-
}, U(a.name), 15,
|
|
576
|
+
}, U(a.name), 15, It),
|
|
561
577
|
C("text", {
|
|
562
578
|
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
563
|
-
y: a.cy +
|
|
579
|
+
y: a.cy + d.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
564
580
|
"text-anchor": "start",
|
|
565
|
-
"font-size":
|
|
581
|
+
"font-size": d.value.values,
|
|
566
582
|
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
567
583
|
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
568
584
|
class: N({
|
|
569
585
|
animated: e.value.useCssAnimation && !L.value
|
|
570
586
|
}),
|
|
571
587
|
style: T({
|
|
572
|
-
animationDelay: `${150 *
|
|
588
|
+
animationDelay: `${150 * s}ms`
|
|
573
589
|
})
|
|
574
|
-
}, U(
|
|
590
|
+
}, U(o(Y)(
|
|
575
591
|
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
576
592
|
a.value,
|
|
577
|
-
|
|
593
|
+
o(q)({
|
|
578
594
|
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
579
595
|
v: a.value,
|
|
580
596
|
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
581
597
|
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
582
598
|
}),
|
|
583
599
|
{ datapoint: a }
|
|
584
|
-
)), 15,
|
|
600
|
+
)), 15, Pt)
|
|
585
601
|
]))), 256)),
|
|
586
|
-
g(t.$slots, "svg", { svg:
|
|
587
|
-
], 14,
|
|
588
|
-
t.$slots.watermark ? (n(),
|
|
589
|
-
g(t.$slots, "watermark", G(j({ isPrinting:
|
|
602
|
+
g(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
603
|
+
], 14, xt)) : b("", !0),
|
|
604
|
+
t.$slots.watermark ? (n(), c("div", Ft, [
|
|
605
|
+
g(t.$slots, "watermark", G(j({ isPrinting: o(he) || o(fe) })), void 0, !0)
|
|
590
606
|
])) : b("", !0),
|
|
591
|
-
|
|
607
|
+
A.value ? b("", !0) : (n(), I(o(Ne), {
|
|
592
608
|
key: 6,
|
|
593
609
|
config: {
|
|
594
610
|
type: "verticalBar",
|
|
@@ -603,27 +619,27 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
603
619
|
}
|
|
604
620
|
}
|
|
605
621
|
}, null, 8, ["config"])),
|
|
606
|
-
t.$slots.source ? (n(),
|
|
622
|
+
t.$slots.source ? (n(), c("div", {
|
|
607
623
|
key: 7,
|
|
608
624
|
ref_key: "source",
|
|
609
|
-
ref:
|
|
625
|
+
ref: ue,
|
|
610
626
|
dir: "auto"
|
|
611
627
|
}, [
|
|
612
628
|
g(t.$slots, "source", {}, void 0, !0)
|
|
613
629
|
], 512)) : b("", !0),
|
|
614
|
-
|
|
630
|
+
A.value && e.value.userOptions.buttons.table ? (n(), I(et(R.value.component), H({ key: 8 }, R.value.props, {
|
|
615
631
|
ref_key: "tableUnit",
|
|
616
632
|
ref: F,
|
|
617
633
|
onClose: Ce
|
|
618
|
-
}),
|
|
634
|
+
}), Le({
|
|
619
635
|
content: m(() => [
|
|
620
|
-
(n(), I(
|
|
621
|
-
key: `table_${
|
|
636
|
+
(n(), I(o(Pe), {
|
|
637
|
+
key: `table_${oe.value}`,
|
|
622
638
|
colNames: V.value.colNames,
|
|
623
639
|
head: V.value.head,
|
|
624
640
|
body: V.value.body,
|
|
625
641
|
config: V.value.config,
|
|
626
|
-
title: e.value.table.useDialog ? "" :
|
|
642
|
+
title: e.value.table.useDialog ? "" : R.value.title,
|
|
627
643
|
withCloseButton: !e.value.table.useDialog,
|
|
628
644
|
onClose: Ce
|
|
629
645
|
}, {
|
|
@@ -631,10 +647,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
631
647
|
C("div", {
|
|
632
648
|
innerHTML: a,
|
|
633
649
|
style: { display: "flex", "align-items": "center" }
|
|
634
|
-
}, null, 8,
|
|
650
|
+
}, null, 8, Bt)
|
|
635
651
|
]),
|
|
636
652
|
td: m(({ td: a }) => [
|
|
637
|
-
|
|
653
|
+
Te(U(a.name ? a.name : a), 1)
|
|
638
654
|
]),
|
|
639
655
|
_: 1
|
|
640
656
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -644,7 +660,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
644
660
|
e.value.table.useDialog ? {
|
|
645
661
|
name: "title",
|
|
646
662
|
fn: m(() => [
|
|
647
|
-
|
|
663
|
+
Te(U(R.value.title), 1)
|
|
648
664
|
]),
|
|
649
665
|
key: "0"
|
|
650
666
|
} : void 0,
|
|
@@ -654,20 +670,20 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
654
670
|
C("button", {
|
|
655
671
|
tabindex: "0",
|
|
656
672
|
class: "vue-ui-user-options-button",
|
|
657
|
-
onClick: l[0] || (l[0] = (a) =>
|
|
673
|
+
onClick: l[0] || (l[0] = (a) => ee(e.value.userOptions.callbacks.csv))
|
|
658
674
|
}, [
|
|
659
|
-
|
|
675
|
+
_e(o(ze), {
|
|
660
676
|
name: "excel",
|
|
661
|
-
stroke:
|
|
677
|
+
stroke: R.value.props.color
|
|
662
678
|
}, null, 8, ["stroke"])
|
|
663
679
|
])
|
|
664
680
|
]),
|
|
665
681
|
key: "1"
|
|
666
682
|
} : void 0
|
|
667
683
|
]), 1040)) : b("", !0)
|
|
668
|
-
], 46,
|
|
684
|
+
], 46, wt));
|
|
669
685
|
}
|
|
670
|
-
},
|
|
686
|
+
}, Kt = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-8c33e489"]]);
|
|
671
687
|
export {
|
|
672
|
-
|
|
688
|
+
Kt as default
|
|
673
689
|
};
|