vue-data-ui 3.2.8 → 3.3.1
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-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.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-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.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-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.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-CEjkWSLj.js";
|
|
3
|
+
import { t as vt, u as dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ht, a as Ae } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as ft } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
+
import { u as bt } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import pt from "./img-J2dLIr8Y.js";
|
|
10
|
+
import yt from "./Title-Camz1Lce.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-eZbszQrv.js")), Ne = $(() => import("./vue-ui-skeleton-Pu9gPf97.js")), Ie = $(() => import("./vue-ui-accordion-VTP418mC.js")), Pe = $(() => import("./DataTable-yAMEyP6y.js")), Fe = $(() => import("./UserOptions-CSja1SGU.js")), Be = $(() => import("./PenAndPaper-Bo-lMUik.js")), Re = $(() => import("./PackageVersion-BfykJm_B.js")), Me = $(() => import("./BaseDraggableDialog-CVGErydD.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,14 +134,14 @@ 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,
|
|
@@ -154,48 +155,48 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
154
155
|
x: k.value.left + a + pe.value,
|
|
155
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,20 +235,20 @@ 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(s) :
|
|
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(), s = l / a, { imageUri: f, base64: r } = await
|
|
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,
|
|
@@ -257,10 +258,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
257
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
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] = () => o(
|
|
312
|
-
onMouseleave: l[2] || (l[2] = () => o(
|
|
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(o(
|
|
328
|
+
e.value.userOptions.buttons.annotator ? (n(), I(o(Be), {
|
|
315
329
|
key: 0,
|
|
316
|
-
svgRef: o(
|
|
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,10 +360,10 @@ 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
369
|
isPrinting: o(he),
|
|
@@ -358,6 +372,7 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
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,16 +386,17 @@ 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
391
|
onGeneratePdf: o(be),
|
|
377
392
|
onGenerateImage: o(me),
|
|
393
|
+
onGenerateSvg: we,
|
|
378
394
|
onToggleTable: ke,
|
|
379
|
-
onGenerateCsv:
|
|
395
|
+
onGenerateCsv: ee,
|
|
380
396
|
style: T({
|
|
381
|
-
visibility: o(
|
|
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
402
|
fn: m(({ isOpen: a, color: s }) => [
|
|
@@ -430,29 +446,29 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
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: o(
|
|
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,13 +513,13 @@ 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 ? o(
|
|
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
|
|
@@ -520,10 +536,10 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
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,15 +556,15 @@ 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({
|
|
@@ -557,12 +573,12 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
557
573
|
style: T({
|
|
558
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({
|
|
@@ -581,14 +597,14 @@ const mt = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = ["i
|
|
|
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(),
|
|
602
|
+
g(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
603
|
+
], 14, xt)) : b("", !0),
|
|
604
|
+
t.$slots.watermark ? (n(), c("div", Ft, [
|
|
589
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(o(
|
|
636
|
+
(n(), I(o(Pe), {
|
|
621
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
|
};
|