vue-data-ui 2.17.0 → 2.17.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/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as S, computed as
|
|
2
|
-
import { u as le } from "./useNestedProp-
|
|
3
|
-
import { u as be, c as Ce, a as _e, v as
|
|
4
|
-
import { u as Ie } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as S, computed as d, ref as b, watch as te, onMounted as pe, createElementBlock as c, openBlock as r, unref as s, normalizeStyle as G, normalizeClass as L, createBlock as z, createCommentVNode as g, createSlots as ye, withCtx as x, renderSlot as p, normalizeProps as N, guardReactiveProps as M, createVNode as me, Fragment as ae, renderList as oe, toDisplayString as ke } from "vue";
|
|
2
|
+
import { u as le } from "./useNestedProp-BwL5wmVa.js";
|
|
3
|
+
import { u as be, c as Ce, a as _e, v as we, o as $e, e as Oe, w as se, X as Pe, i as xe, f as Ae } from "./index-CobsZUkv.js";
|
|
4
|
+
import { u as Ie } from "./usePrinter-DPh6U_Qk.js";
|
|
5
5
|
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Se } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
8
|
-
import Ne from "./img-
|
|
7
|
+
import ze from "./Title-DpERl1yr.js";
|
|
8
|
+
import Ne from "./img-utitT2Gd.js";
|
|
9
9
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Te = ["id"], Ue = {
|
|
11
11
|
key: 2,
|
|
12
12
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
13
|
-
},
|
|
13
|
+
}, Re = ["xmlns", "viewBox"], Ee = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Xe = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], De = {
|
|
14
14
|
key: 5,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
16
|
}, He = {
|
|
@@ -34,10 +34,10 @@ const Te = ["id"], Ue = {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
setup(ne, { expose: re }) {
|
|
37
|
-
const ue = S(() => import("./PenAndPaper-
|
|
37
|
+
const ue = S(() => import("./PenAndPaper-Cde-wJ3N.js")), ie = S(() => import("./vue-ui-skeleton-8s4xts8z.js")), ce = S(() => import("./UserOptions-DTEJ3UM_.js")), ve = S(() => import("./PackageVersion-C-4Ee8BQ.js")), { vue_ui_tiremarks: he } = be(), f = ne, T = d(() => !!f.dataset && Object.keys(f.dataset).length), U = b(Ce()), w = b(null), de = b(null), j = b(0), B = b(0), e = d({
|
|
38
38
|
get: () => V(),
|
|
39
39
|
set: (t) => t
|
|
40
|
-
}), { userOptionsVisible:
|
|
40
|
+
}), { userOptionsVisible: R, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
|
|
41
41
|
function V() {
|
|
42
42
|
const t = le({
|
|
43
43
|
userConfig: f.config,
|
|
@@ -51,40 +51,40 @@ const Te = ["id"], Ue = {
|
|
|
51
51
|
} : t;
|
|
52
52
|
}
|
|
53
53
|
te(() => f.config, (t) => {
|
|
54
|
-
e.value = V(),
|
|
54
|
+
e.value = V(), R.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
|
|
55
55
|
}, { deep: !0 });
|
|
56
56
|
const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ie({
|
|
57
57
|
elementId: U.value,
|
|
58
58
|
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
59
59
|
options: e.value.userOptions.print
|
|
60
|
-
}),
|
|
60
|
+
}), ge = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : we(f.dataset.percentage));
|
|
61
61
|
te(() => f.dataset, (t) => {
|
|
62
62
|
e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
|
|
63
|
-
}, { deep: !0 }),
|
|
63
|
+
}, { deep: !0 }), pe(() => {
|
|
64
64
|
W();
|
|
65
65
|
});
|
|
66
66
|
function Q(t) {
|
|
67
67
|
let n = e.value.style.chart.animation.speed;
|
|
68
68
|
const a = Math.abs(t - u.value) / (n * 120);
|
|
69
|
-
function
|
|
70
|
-
u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(
|
|
69
|
+
function o() {
|
|
70
|
+
u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(o);
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
o();
|
|
73
73
|
}
|
|
74
74
|
function W() {
|
|
75
|
-
|
|
75
|
+
$e(f.dataset) && Oe({
|
|
76
76
|
componentName: "VueUiTiremarks",
|
|
77
77
|
type: "dataset"
|
|
78
78
|
}), Q(f.dataset.percentage || 0);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const _ = d(() => e.value.style.chart.layout.display === "vertical"), i = d(() => {
|
|
81
81
|
const t = {
|
|
82
82
|
top: 48,
|
|
83
83
|
left: 64,
|
|
84
84
|
right: 64,
|
|
85
85
|
bottom: 48
|
|
86
86
|
};
|
|
87
|
-
return
|
|
87
|
+
return _.value ? {
|
|
88
88
|
top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
89
89
|
left: 3,
|
|
90
90
|
right: 3,
|
|
@@ -95,46 +95,46 @@ const Te = ["id"], Ue = {
|
|
|
95
95
|
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
96
96
|
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
97
97
|
};
|
|
98
|
-
}), A =
|
|
99
|
-
height:
|
|
100
|
-
width:
|
|
101
|
-
})), v =
|
|
102
|
-
mark: (
|
|
103
|
-
space: (
|
|
98
|
+
}), A = d(() => Object.values(i.value).reduce((t, n) => t + n, 0)), l = d(() => ({
|
|
99
|
+
height: _.value ? 312 : 56,
|
|
100
|
+
width: _.value ? 56 : 312
|
|
101
|
+
})), v = d(() => _.value ? {
|
|
102
|
+
mark: (l.value.height - A.value) / 100 * 0.5,
|
|
103
|
+
space: (l.value.height - A.value) / 100 * 0.5
|
|
104
104
|
} : {
|
|
105
|
-
mark: (
|
|
106
|
-
space: (
|
|
107
|
-
}), Z =
|
|
105
|
+
mark: (l.value.width - A.value) / 100 * 0.5,
|
|
106
|
+
space: (l.value.width - A.value) / 100 * 0.5
|
|
107
|
+
}), Z = d(() => {
|
|
108
108
|
const t = [];
|
|
109
109
|
for (let a = 0; a < 100; a += 1) {
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
110
|
+
const o = e.value.style.chart.layout.ticks.gradient.show ? se(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
111
|
+
if (_.value) {
|
|
112
|
+
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, h = i.value.left + 4 + C, y = l.value.width - i.value.right - 4 - C, m = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, O = (y - h) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
113
113
|
t.push({
|
|
114
|
-
x1:
|
|
115
|
-
x2:
|
|
116
|
-
y1:
|
|
114
|
+
x1: h,
|
|
115
|
+
x2: y,
|
|
116
|
+
y1: m,
|
|
117
117
|
y2: k,
|
|
118
|
-
curve: `M ${
|
|
119
|
-
color:
|
|
118
|
+
curve: `M ${h} ${m} C ${h + O} ${m - P}, ${y - O} ${k - P}, ${y} ${k}`,
|
|
119
|
+
color: o
|
|
120
120
|
});
|
|
121
121
|
} else {
|
|
122
|
-
const
|
|
122
|
+
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, h = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = h, m = i.value.top + 4 + C, k = l.value.height - i.value.bottom - 4 - C, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
|
|
123
123
|
t.push({
|
|
124
|
-
x1:
|
|
125
|
-
x2:
|
|
126
|
-
y1:
|
|
124
|
+
x1: h,
|
|
125
|
+
x2: y,
|
|
126
|
+
y1: m,
|
|
127
127
|
y2: k,
|
|
128
|
-
curve: `M ${
|
|
129
|
-
color:
|
|
128
|
+
curve: `M ${h} ${m} C ${h + O} ${m + P}, ${y + O} ${k - P}, ${y} ${k}`,
|
|
129
|
+
color: o
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
return t;
|
|
134
|
-
}),
|
|
134
|
+
}), $ = d(() => {
|
|
135
135
|
let t, n, a;
|
|
136
|
-
const
|
|
137
|
-
return
|
|
136
|
+
const o = e.value.style.chart.percentage.fontSize / 3;
|
|
137
|
+
return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - i.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - i.value.right + 8, n = l.value.height / 2 + o, a = "start"), {
|
|
138
138
|
x: t,
|
|
139
139
|
y: n,
|
|
140
140
|
textAnchor: a,
|
|
@@ -144,47 +144,54 @@ const Te = ["id"], Ue = {
|
|
|
144
144
|
};
|
|
145
145
|
}), I = b(!1);
|
|
146
146
|
function ee(t) {
|
|
147
|
-
I.value = t,
|
|
147
|
+
I.value = t, j.value += 1;
|
|
148
148
|
}
|
|
149
149
|
const F = b(!1);
|
|
150
|
-
function
|
|
150
|
+
function E() {
|
|
151
151
|
F.value = !F.value;
|
|
152
152
|
}
|
|
153
|
-
async function
|
|
154
|
-
if (!
|
|
155
|
-
const {
|
|
156
|
-
return {
|
|
153
|
+
async function fe({ scale: t = 2 } = {}) {
|
|
154
|
+
if (!w.value) return;
|
|
155
|
+
const { width: n, height: a } = w.value.getBoundingClientRect(), o = n / a, { imageUri: C, base64: h } = await Ne({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
156
|
+
return {
|
|
157
|
+
imageUri: C,
|
|
158
|
+
base64: h,
|
|
159
|
+
title: e.value.style.chart.title.text,
|
|
160
|
+
width: n,
|
|
161
|
+
height: a,
|
|
162
|
+
aspectRatio: o
|
|
163
|
+
};
|
|
157
164
|
}
|
|
158
165
|
return re({
|
|
159
|
-
getImage:
|
|
166
|
+
getImage: fe,
|
|
160
167
|
generatePdf: J,
|
|
161
168
|
generateImage: K,
|
|
162
|
-
toggleAnnotator:
|
|
169
|
+
toggleAnnotator: E,
|
|
163
170
|
toggleFullscreen: ee
|
|
164
171
|
}), (t, n) => (r(), c("div", {
|
|
165
172
|
ref_key: "tiremarksChart",
|
|
166
|
-
ref:
|
|
167
|
-
class:
|
|
168
|
-
style:
|
|
173
|
+
ref: w,
|
|
174
|
+
class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
175
|
+
style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
169
176
|
id: U.value,
|
|
170
|
-
onMouseenter: n[0] || (n[0] = () =>
|
|
171
|
-
onMouseleave: n[1] || (n[1] = () =>
|
|
177
|
+
onMouseenter: n[0] || (n[0] = () => s(X)(!0)),
|
|
178
|
+
onMouseleave: n[1] || (n[1] = () => s(X)(!1))
|
|
172
179
|
}, [
|
|
173
|
-
e.value.userOptions.buttons.annotator ? (r(), z(
|
|
180
|
+
e.value.userOptions.buttons.annotator ? (r(), z(s(ue), {
|
|
174
181
|
key: 0,
|
|
175
|
-
svgRef:
|
|
182
|
+
svgRef: s(H),
|
|
176
183
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
177
184
|
color: e.value.style.chart.color,
|
|
178
185
|
active: F.value,
|
|
179
|
-
onClose:
|
|
180
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
181
|
-
|
|
186
|
+
onClose: E
|
|
187
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
188
|
+
ge.value ? (r(), c("div", {
|
|
182
189
|
key: 1,
|
|
183
190
|
ref_key: "noTitle",
|
|
184
191
|
ref: de,
|
|
185
192
|
class: "vue-data-ui-no-title-space",
|
|
186
193
|
style: "height:36px; width: 100%;background:transparent"
|
|
187
|
-
}, null, 512)) :
|
|
194
|
+
}, null, 512)) : g("", !0),
|
|
188
195
|
e.value.style.chart.title.text ? (r(), c("div", Ue, [
|
|
189
196
|
(r(), z(ze, {
|
|
190
197
|
key: `title_${B.value}`,
|
|
@@ -199,14 +206,14 @@ const Te = ["id"], Ue = {
|
|
|
199
206
|
}
|
|
200
207
|
}
|
|
201
208
|
}, null, 8, ["config"]))
|
|
202
|
-
])) :
|
|
203
|
-
e.value.userOptions.show && T.value && (
|
|
209
|
+
])) : g("", !0),
|
|
210
|
+
e.value.userOptions.show && T.value && (s(D) || s(R)) ? (r(), z(s(ce), {
|
|
204
211
|
ref: "details",
|
|
205
|
-
key: `user_options_${
|
|
212
|
+
key: `user_options_${j.value}`,
|
|
206
213
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
207
214
|
color: e.value.style.chart.color,
|
|
208
|
-
isPrinting:
|
|
209
|
-
isImaging:
|
|
215
|
+
isPrinting: s(Y),
|
|
216
|
+
isImaging: s(q),
|
|
210
217
|
uid: U.value,
|
|
211
218
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
212
219
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -214,124 +221,124 @@ const Te = ["id"], Ue = {
|
|
|
214
221
|
hasXls: !1,
|
|
215
222
|
isFullscreen: I.value,
|
|
216
223
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
217
|
-
chartElement:
|
|
224
|
+
chartElement: w.value,
|
|
218
225
|
position: e.value.userOptions.position,
|
|
219
226
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
220
227
|
isAnnotation: F.value,
|
|
221
228
|
callbacks: e.value.userOptions.callbacks,
|
|
222
229
|
printScale: e.value.userOptions.print.scale,
|
|
223
230
|
onToggleFullscreen: ee,
|
|
224
|
-
onGeneratePdf:
|
|
225
|
-
onGenerateImage:
|
|
226
|
-
onToggleAnnotator:
|
|
227
|
-
style:
|
|
228
|
-
visibility:
|
|
231
|
+
onGeneratePdf: s(J),
|
|
232
|
+
onGenerateImage: s(K),
|
|
233
|
+
onToggleAnnotator: E,
|
|
234
|
+
style: G({
|
|
235
|
+
visibility: s(D) ? s(R) ? "visible" : "hidden" : "visible"
|
|
229
236
|
})
|
|
230
|
-
},
|
|
237
|
+
}, ye({ _: 2 }, [
|
|
231
238
|
t.$slots.menuIcon ? {
|
|
232
239
|
name: "menuIcon",
|
|
233
|
-
fn:
|
|
234
|
-
|
|
240
|
+
fn: x(({ isOpen: a, color: o }) => [
|
|
241
|
+
p(t.$slots, "menuIcon", N(M({ isOpen: a, color: o })), void 0, !0)
|
|
235
242
|
]),
|
|
236
243
|
key: "0"
|
|
237
244
|
} : void 0,
|
|
238
245
|
t.$slots.optionPdf ? {
|
|
239
246
|
name: "optionPdf",
|
|
240
|
-
fn:
|
|
241
|
-
|
|
247
|
+
fn: x(() => [
|
|
248
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
242
249
|
]),
|
|
243
250
|
key: "1"
|
|
244
251
|
} : void 0,
|
|
245
252
|
t.$slots.optionImg ? {
|
|
246
253
|
name: "optionImg",
|
|
247
|
-
fn:
|
|
248
|
-
|
|
254
|
+
fn: x(() => [
|
|
255
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
249
256
|
]),
|
|
250
257
|
key: "2"
|
|
251
258
|
} : void 0,
|
|
252
259
|
t.$slots.optionFullscreen ? {
|
|
253
260
|
name: "optionFullscreen",
|
|
254
|
-
fn:
|
|
255
|
-
|
|
261
|
+
fn: x(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
262
|
+
p(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
256
263
|
]),
|
|
257
264
|
key: "3"
|
|
258
265
|
} : void 0,
|
|
259
266
|
t.$slots.optionAnnotator ? {
|
|
260
267
|
name: "optionAnnotator",
|
|
261
|
-
fn:
|
|
262
|
-
|
|
268
|
+
fn: x(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
269
|
+
p(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
263
270
|
]),
|
|
264
271
|
key: "4"
|
|
265
272
|
} : void 0
|
|
266
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
273
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
267
274
|
T.value ? (r(), c("svg", {
|
|
268
275
|
key: 4,
|
|
269
276
|
ref_key: "svgRef",
|
|
270
277
|
ref: H,
|
|
271
|
-
xmlns:
|
|
272
|
-
class:
|
|
273
|
-
viewBox: `0 0 ${
|
|
274
|
-
style:
|
|
278
|
+
xmlns: s(Pe),
|
|
279
|
+
class: L({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
280
|
+
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
281
|
+
style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
275
282
|
}, [
|
|
276
|
-
|
|
283
|
+
me(s(ve)),
|
|
277
284
|
t.$slots["chart-background"] ? (r(), c("foreignObject", {
|
|
278
285
|
key: 0,
|
|
279
286
|
x: 0,
|
|
280
287
|
y: 0,
|
|
281
|
-
width:
|
|
282
|
-
height:
|
|
288
|
+
width: l.value.width,
|
|
289
|
+
height: l.value.height,
|
|
283
290
|
style: {
|
|
284
291
|
pointerEvents: "none"
|
|
285
292
|
}
|
|
286
293
|
}, [
|
|
287
|
-
|
|
288
|
-
], 8,
|
|
289
|
-
e.value.style.chart.layout.curved ? (r(), c("g",
|
|
290
|
-
(r(!0), c(ae, null, oe(Z.value, (a,
|
|
294
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
295
|
+
], 8, Ee)) : g("", !0),
|
|
296
|
+
e.value.style.chart.layout.curved ? (r(), c("g", Ge, [
|
|
297
|
+
(r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("path", {
|
|
291
298
|
d: a.curve,
|
|
292
299
|
"stroke-width": v.value.mark,
|
|
293
|
-
stroke: u.value >=
|
|
300
|
+
stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
294
301
|
"stroke-linecap": "round",
|
|
295
302
|
fill: "none",
|
|
296
|
-
class:
|
|
297
|
-
}, null, 10,
|
|
298
|
-
])) : (r(), c("g",
|
|
299
|
-
(r(!0), c(ae, null, oe(Z.value, (a,
|
|
303
|
+
class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
|
|
304
|
+
}, null, 10, Le))), 256))
|
|
305
|
+
])) : (r(), c("g", je, [
|
|
306
|
+
(r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("line", {
|
|
300
307
|
x1: a.x1,
|
|
301
308
|
y1: a.y1,
|
|
302
309
|
x2: a.x2,
|
|
303
310
|
y2: a.y2,
|
|
304
311
|
"stroke-width": v.value.mark,
|
|
305
|
-
stroke: u.value >=
|
|
312
|
+
stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
306
313
|
"stroke-linecap": "round"
|
|
307
314
|
}, null, 8, Be))), 256))
|
|
308
315
|
])),
|
|
309
316
|
e.value.style.chart.percentage.show ? (r(), c("text", {
|
|
310
317
|
key: 3,
|
|
311
|
-
x:
|
|
312
|
-
y:
|
|
313
|
-
"font-size":
|
|
314
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ?
|
|
315
|
-
"font-weight":
|
|
316
|
-
"text-anchor":
|
|
317
|
-
}, ke(
|
|
318
|
+
x: $.value.x,
|
|
319
|
+
y: $.value.y,
|
|
320
|
+
"font-size": $.value.fontSize,
|
|
321
|
+
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(se)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
322
|
+
"font-weight": $.value.bold ? "bold" : "normal",
|
|
323
|
+
"text-anchor": $.value.textAnchor
|
|
324
|
+
}, ke(s(xe)(
|
|
318
325
|
e.value.style.chart.percentage.formatter,
|
|
319
326
|
u.value,
|
|
320
|
-
|
|
327
|
+
s(Ae)({
|
|
321
328
|
v: u.value,
|
|
322
329
|
s: "%",
|
|
323
330
|
r: e.value.style.chart.percentage.rounding
|
|
324
331
|
})
|
|
325
|
-
)), 9, Xe)) :
|
|
326
|
-
|
|
327
|
-
], 14,
|
|
332
|
+
)), 9, Xe)) : g("", !0),
|
|
333
|
+
p(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
334
|
+
], 14, Re)) : g("", !0),
|
|
328
335
|
t.$slots.watermark ? (r(), c("div", De, [
|
|
329
|
-
|
|
330
|
-
])) :
|
|
336
|
+
p(t.$slots, "watermark", N(M({ isPrinting: s(Y) || s(q) })), void 0, !0)
|
|
337
|
+
])) : g("", !0),
|
|
331
338
|
t.$slots.source ? (r(), c("div", He, [
|
|
332
|
-
|
|
333
|
-
], 512)) :
|
|
334
|
-
T.value ?
|
|
339
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
340
|
+
], 512)) : g("", !0),
|
|
341
|
+
T.value ? g("", !0) : (r(), z(s(ie), {
|
|
335
342
|
key: 7,
|
|
336
343
|
config: {
|
|
337
344
|
type: "tiremarks",
|
|
@@ -345,7 +352,7 @@ const Te = ["id"], Ue = {
|
|
|
345
352
|
}, null, 8, ["config"]))
|
|
346
353
|
], 46, Te));
|
|
347
354
|
}
|
|
348
|
-
}, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-
|
|
355
|
+
}, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-cb09d264"]]);
|
|
349
356
|
export {
|
|
350
357
|
at as default
|
|
351
358
|
};
|