vue-data-ui 2.17.0 → 2.17.2
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-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, computed as p, ref as c, watch as
|
|
2
|
-
import { u as Ie, c as _e, a as
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as te, shallowRef as ae, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as N, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as y, normalizeProps as _, guardReactiveProps as x, normalizeClass as R, createVNode as Oe, Fragment as le, renderList as ne, toDisplayString as $e } from "vue";
|
|
2
|
+
import { u as Ie, c as _e, a as xe, o as Ae, e as Pe, w as oe, m as Fe, X as Se, i as ze, v as se, f as Me } from "./index-JzUbx__y.js";
|
|
3
3
|
import { t as Te, u as Ne } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Re } from "./usePrinter-
|
|
4
|
+
import { u as ue } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as Re } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xe from "./Title-
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
8
|
+
import Xe from "./Title-BQb7X_OR.js";
|
|
9
|
+
import Be from "./img-D0DpKcFX.js";
|
|
10
|
+
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], He = ["d", "fill"], We = ["cx", "cy", "r", "stroke", "stroke-width"], qe = ["x", "y", "font-size", "fill", "font-weight"], Ve = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
@@ -27,151 +27,158 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
get: () =>
|
|
30
|
+
setup(re, { expose: ie }) {
|
|
31
|
+
const ce = $(() => import("./PenAndPaper-CqJ4wudB.js")), ve = $(() => import("./vue-ui-skeleton-B4KQLEQy.js")), he = $(() => import("./UserOptions-lneAyZKu.js")), de = $(() => import("./PackageVersion-CIX1W_aa.js")), { vue_ui_wheel: ye } = Ie(), d = re, A = p(() => !!d.dataset && Object.keys(d.dataset).length), P = c(_e()), fe = c(null), U = c(0), g = c(null), E = c(null), X = c(null), B = c(null), L = c(0), e = p({
|
|
32
|
+
get: () => Y(),
|
|
33
33
|
set: (t) => t
|
|
34
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility:
|
|
35
|
-
function
|
|
36
|
-
const t =
|
|
34
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: G, keepUserOptionState: j } = Ue({ config: e.value }), { svgRef: D } = Ee({ config: e.value.style.chart.title });
|
|
35
|
+
function Y() {
|
|
36
|
+
const t = ue({
|
|
37
37
|
userConfig: d.config,
|
|
38
|
-
defaultConfig:
|
|
38
|
+
defaultConfig: ye
|
|
39
39
|
});
|
|
40
40
|
return t.theme ? {
|
|
41
|
-
...
|
|
42
|
-
userConfig:
|
|
41
|
+
...ue({
|
|
42
|
+
userConfig: xe.vue_ui_wheel[t.theme] || d.config,
|
|
43
43
|
defaultConfig: t
|
|
44
44
|
})
|
|
45
45
|
} : t;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
e.value =
|
|
47
|
+
te(() => d.config, (t) => {
|
|
48
|
+
e.value = Y(), F.value = !e.value.userOptions.showOnChartHover, K(), L.value += 1;
|
|
49
49
|
}, { deep: !0 });
|
|
50
|
-
const { isPrinting:
|
|
51
|
-
elementId:
|
|
50
|
+
const { isPrinting: H, isImaging: W, generatePdf: q, generateImage: V } = Re({
|
|
51
|
+
elementId: P.value,
|
|
52
52
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
53
53
|
options: e.value.userOptions.print
|
|
54
|
-
}),
|
|
54
|
+
}), pe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
|
|
55
55
|
size: 360,
|
|
56
56
|
height: 360,
|
|
57
57
|
width: 360
|
|
58
|
-
}), S = c(e.value.style.chart.layout.percentage.fontSize),
|
|
58
|
+
}), S = c(e.value.style.chart.layout.percentage.fontSize), r = p(() => ({
|
|
59
59
|
radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
|
|
60
60
|
centerX: o.value.width / 2,
|
|
61
61
|
centerY: o.value.height / 2
|
|
62
62
|
}));
|
|
63
|
-
function
|
|
63
|
+
function J(t, n = 1) {
|
|
64
64
|
return {
|
|
65
|
-
x:
|
|
66
|
-
y:
|
|
65
|
+
x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
|
|
66
|
+
y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
e.value.style.chart.animation.use ?
|
|
69
|
+
const i = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
70
|
+
te(() => d.dataset, (t) => {
|
|
71
|
+
e.value.style.chart.animation.use ? Q(t.percentage) : i.value = t.percentage || 0;
|
|
72
72
|
}, { deep: !0 });
|
|
73
|
-
const
|
|
73
|
+
const f = ae(null), m = ae(null);
|
|
74
74
|
we(() => {
|
|
75
|
-
|
|
75
|
+
K();
|
|
76
76
|
});
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
77
|
+
function K() {
|
|
78
|
+
if (Ae(d.dataset) && Pe({
|
|
79
79
|
componentName: "VueUiWheel",
|
|
80
80
|
type: "dataset"
|
|
81
|
-
}),
|
|
81
|
+
}), Q(d.dataset.percentage || 0), e.value.responsive) {
|
|
82
82
|
const t = Te(() => {
|
|
83
83
|
const { width: n, height: a } = Ne({
|
|
84
84
|
chart: g.value,
|
|
85
|
-
title: e.value.style.chart.title.text ?
|
|
86
|
-
source:
|
|
87
|
-
noTitle:
|
|
85
|
+
title: e.value.style.chart.title.text ? E.value : null,
|
|
86
|
+
source: X.value,
|
|
87
|
+
noTitle: B.value
|
|
88
88
|
});
|
|
89
89
|
requestAnimationFrame(() => {
|
|
90
90
|
o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect()), f.value = new ResizeObserver(t), m.value = g.value.parentNode, f.value.observe(m.value);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
be(() => {
|
|
97
|
-
|
|
97
|
+
f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect());
|
|
98
98
|
});
|
|
99
|
-
function
|
|
99
|
+
function Q(t) {
|
|
100
100
|
let n = e.value.style.chart.animation.speed;
|
|
101
|
-
const a = Math.abs(t -
|
|
102
|
-
function
|
|
103
|
-
|
|
101
|
+
const a = Math.abs(t - i.value) / (n * 120);
|
|
102
|
+
function u() {
|
|
103
|
+
i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(u);
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
u();
|
|
106
106
|
}
|
|
107
|
-
const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value),
|
|
107
|
+
const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), Z = p(() => {
|
|
108
108
|
const t = [];
|
|
109
109
|
for (let n = 0; n < k.value; n += 1) {
|
|
110
|
-
const a =
|
|
110
|
+
const a = i.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: u, y: M } = J(o.value.size / k.value * n), { x: T, y: ke } = J(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
111
111
|
t.push({
|
|
112
|
-
x1:
|
|
113
|
-
y1:
|
|
114
|
-
x2:
|
|
112
|
+
x1: u,
|
|
113
|
+
y1: M,
|
|
114
|
+
x2: T,
|
|
115
115
|
y2: ke,
|
|
116
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
116
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? oe(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
|
-
}),
|
|
120
|
+
}), ge = p(() => Fe({ series: Z.value.map((t) => ({
|
|
121
121
|
name: "",
|
|
122
122
|
value: 1,
|
|
123
123
|
color: t.color
|
|
124
|
-
})) },
|
|
125
|
-
function
|
|
126
|
-
C.value = t,
|
|
124
|
+
})) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
|
|
125
|
+
function ee(t) {
|
|
126
|
+
C.value = t, U.value += 1;
|
|
127
127
|
}
|
|
128
128
|
const O = c(!1);
|
|
129
129
|
function z() {
|
|
130
130
|
O.value = !O.value;
|
|
131
131
|
}
|
|
132
|
-
async function
|
|
132
|
+
async function me({ scale: t = 2 } = {}) {
|
|
133
133
|
if (!g.value) return;
|
|
134
|
-
const {
|
|
135
|
-
return {
|
|
134
|
+
const { width: n, height: a } = g.value.getBoundingClientRect(), u = n / a, { imageUri: M, base64: T } = await Be({ domElement: g.value, base64: !0, img: !0, scale: t });
|
|
135
|
+
return {
|
|
136
|
+
imageUri: M,
|
|
137
|
+
base64: T,
|
|
138
|
+
title: e.value.style.chart.title.text,
|
|
139
|
+
width: n,
|
|
140
|
+
height: a,
|
|
141
|
+
aspectRatio: u
|
|
142
|
+
};
|
|
136
143
|
}
|
|
137
|
-
return
|
|
138
|
-
getImage:
|
|
139
|
-
generatePdf:
|
|
140
|
-
generateImage:
|
|
144
|
+
return ie({
|
|
145
|
+
getImage: me,
|
|
146
|
+
generatePdf: q,
|
|
147
|
+
generateImage: V,
|
|
141
148
|
toggleAnnotator: z,
|
|
142
|
-
toggleFullscreen:
|
|
149
|
+
toggleFullscreen: ee
|
|
143
150
|
}), (t, n) => (s(), v("div", {
|
|
144
151
|
class: "vue-ui-wheel",
|
|
145
152
|
ref_key: "wheelChart",
|
|
146
153
|
ref: g,
|
|
147
|
-
id:
|
|
148
|
-
style:
|
|
149
|
-
onMouseenter: n[0] || (n[0] = () => l(
|
|
150
|
-
onMouseleave: n[1] || (n[1] = () => l(
|
|
154
|
+
id: P.value,
|
|
155
|
+
style: N(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
156
|
+
onMouseenter: n[0] || (n[0] = () => l(G)(!0)),
|
|
157
|
+
onMouseleave: n[1] || (n[1] = () => l(G)(!1))
|
|
151
158
|
}, [
|
|
152
|
-
e.value.userOptions.buttons.annotator ? (s(), I(l(
|
|
159
|
+
e.value.userOptions.buttons.annotator ? (s(), I(l(ce), {
|
|
153
160
|
key: 0,
|
|
154
|
-
svgRef: l(
|
|
161
|
+
svgRef: l(D),
|
|
155
162
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
156
163
|
color: e.value.style.chart.color,
|
|
157
164
|
active: O.value,
|
|
158
165
|
onClose: z
|
|
159
166
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
160
|
-
|
|
167
|
+
pe.value ? (s(), v("div", {
|
|
161
168
|
key: 1,
|
|
162
169
|
ref_key: "noTitle",
|
|
163
|
-
ref:
|
|
170
|
+
ref: B,
|
|
164
171
|
class: "vue-data-ui-no-title-space",
|
|
165
172
|
style: "height:36px; width: 100%;background:transparent"
|
|
166
173
|
}, null, 512)) : h("", !0),
|
|
167
174
|
e.value.style.chart.title.text ? (s(), v("div", {
|
|
168
175
|
key: 2,
|
|
169
176
|
ref_key: "chartTitle",
|
|
170
|
-
ref:
|
|
177
|
+
ref: E,
|
|
171
178
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
172
179
|
}, [
|
|
173
180
|
(s(), I(Xe, {
|
|
174
|
-
key: `title_${
|
|
181
|
+
key: `title_${L.value}`,
|
|
175
182
|
config: {
|
|
176
183
|
title: {
|
|
177
184
|
cy: "wheel-title",
|
|
@@ -184,15 +191,15 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
184
191
|
}
|
|
185
192
|
}, null, 8, ["config"]))
|
|
186
193
|
], 512)) : h("", !0),
|
|
187
|
-
e.value.userOptions.show &&
|
|
194
|
+
e.value.userOptions.show && A.value && (l(j) || l(F)) ? (s(), I(l(he), {
|
|
188
195
|
ref_key: "details",
|
|
189
|
-
ref:
|
|
190
|
-
key: `user_options_${
|
|
196
|
+
ref: fe,
|
|
197
|
+
key: `user_options_${U.value}`,
|
|
191
198
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
192
199
|
color: e.value.style.chart.color,
|
|
193
|
-
isPrinting: l(
|
|
194
|
-
isImaging: l(
|
|
195
|
-
uid:
|
|
200
|
+
isPrinting: l(H),
|
|
201
|
+
isImaging: l(W),
|
|
202
|
+
uid: P.value,
|
|
196
203
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
197
204
|
hasImg: e.value.userOptions.buttons.img,
|
|
198
205
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -205,60 +212,60 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
205
212
|
chartElement: g.value,
|
|
206
213
|
callbacks: e.value.userOptions.callbacks,
|
|
207
214
|
printScale: e.value.userOptions.print.scale,
|
|
208
|
-
onToggleFullscreen:
|
|
209
|
-
onGeneratePdf: l(
|
|
210
|
-
onGenerateImage: l(
|
|
215
|
+
onToggleFullscreen: ee,
|
|
216
|
+
onGeneratePdf: l(q),
|
|
217
|
+
onGenerateImage: l(V),
|
|
211
218
|
onToggleAnnotator: z,
|
|
212
|
-
style:
|
|
213
|
-
visibility: l(
|
|
219
|
+
style: N({
|
|
220
|
+
visibility: l(j) ? l(F) ? "visible" : "hidden" : "visible"
|
|
214
221
|
})
|
|
215
222
|
}, Ce({ _: 2 }, [
|
|
216
223
|
t.$slots.menuIcon ? {
|
|
217
224
|
name: "menuIcon",
|
|
218
|
-
fn: w(({ isOpen: a, color:
|
|
219
|
-
|
|
225
|
+
fn: w(({ isOpen: a, color: u }) => [
|
|
226
|
+
y(t.$slots, "menuIcon", _(x({ isOpen: a, color: u })), void 0, !0)
|
|
220
227
|
]),
|
|
221
228
|
key: "0"
|
|
222
229
|
} : void 0,
|
|
223
230
|
t.$slots.optionPdf ? {
|
|
224
231
|
name: "optionPdf",
|
|
225
232
|
fn: w(() => [
|
|
226
|
-
|
|
233
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
227
234
|
]),
|
|
228
235
|
key: "1"
|
|
229
236
|
} : void 0,
|
|
230
237
|
t.$slots.optionImg ? {
|
|
231
238
|
name: "optionImg",
|
|
232
239
|
fn: w(() => [
|
|
233
|
-
|
|
240
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
234
241
|
]),
|
|
235
242
|
key: "2"
|
|
236
243
|
} : void 0,
|
|
237
244
|
t.$slots.optionFullscreen ? {
|
|
238
245
|
name: "optionFullscreen",
|
|
239
|
-
fn: w(({ toggleFullscreen: a, isFullscreen:
|
|
240
|
-
|
|
246
|
+
fn: w(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
247
|
+
y(t.$slots, "optionFullscreen", _(x({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
241
248
|
]),
|
|
242
249
|
key: "3"
|
|
243
250
|
} : void 0,
|
|
244
251
|
t.$slots.optionAnnotator ? {
|
|
245
252
|
name: "optionAnnotator",
|
|
246
|
-
fn: w(({ toggleAnnotator: a, isAnnotator:
|
|
247
|
-
|
|
253
|
+
fn: w(({ toggleAnnotator: a, isAnnotator: u }) => [
|
|
254
|
+
y(t.$slots, "optionAnnotator", _(x({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
|
|
248
255
|
]),
|
|
249
256
|
key: "4"
|
|
250
257
|
} : void 0
|
|
251
258
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
252
|
-
|
|
259
|
+
A.value ? (s(), v("svg", {
|
|
253
260
|
key: 4,
|
|
254
261
|
ref_key: "svgRef",
|
|
255
|
-
ref:
|
|
262
|
+
ref: D,
|
|
256
263
|
xmlns: l(Se),
|
|
257
|
-
class:
|
|
264
|
+
class: R({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
258
265
|
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
259
|
-
style:
|
|
266
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
260
267
|
}, [
|
|
261
|
-
Oe(l(
|
|
268
|
+
Oe(l(de)),
|
|
262
269
|
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
263
270
|
key: 0,
|
|
264
271
|
x: 0,
|
|
@@ -269,9 +276,9 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
269
276
|
pointerEvents: "none"
|
|
270
277
|
}
|
|
271
278
|
}, [
|
|
272
|
-
|
|
279
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
273
280
|
], 8, De)) : h("", !0),
|
|
274
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(
|
|
281
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(le, { key: 1 }, ne(Z.value, (a, u) => (s(), v("line", {
|
|
275
282
|
x1: a.x1,
|
|
276
283
|
x2: a.x2,
|
|
277
284
|
y1: a.y1,
|
|
@@ -279,53 +286,53 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
279
286
|
stroke: a.color,
|
|
280
287
|
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
|
|
281
288
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
282
|
-
class:
|
|
283
|
-
}, null, 10, Ye))), 256)) : (s(!0), v(
|
|
289
|
+
class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
|
|
290
|
+
}, null, 10, Ye))), 256)) : (s(!0), v(le, { key: 2 }, ne(ge.value, (a, u) => (s(), v("path", {
|
|
284
291
|
d: a.arcSlice,
|
|
285
292
|
fill: a.color,
|
|
286
|
-
class:
|
|
293
|
+
class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
|
|
287
294
|
}, null, 10, He))), 256)),
|
|
288
295
|
e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
|
|
289
296
|
key: 3,
|
|
290
|
-
cx:
|
|
291
|
-
cy:
|
|
292
|
-
r:
|
|
297
|
+
cx: r.value.centerX,
|
|
298
|
+
cy: r.value.centerY,
|
|
299
|
+
r: r.value.radius * 0.8 <= 0 ? 1e-4 : r.value.radius * 0.8,
|
|
293
300
|
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
294
301
|
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
295
302
|
fill: "none"
|
|
296
303
|
}, null, 8, We)) : h("", !0),
|
|
297
304
|
e.value.style.chart.layout.percentage.show ? (s(), v("text", {
|
|
298
305
|
key: 4,
|
|
299
|
-
x:
|
|
300
|
-
y:
|
|
306
|
+
x: r.value.centerX,
|
|
307
|
+
y: r.value.centerY + S.value / 3,
|
|
301
308
|
"font-size": S.value,
|
|
302
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(
|
|
309
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(oe)(e.value.style.chart.layout.wheel.ticks.activeColor, i.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
303
310
|
"text-anchor": "middle",
|
|
304
311
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
305
312
|
style: { "font-variant-numeric": "tabluar-nums" }
|
|
306
313
|
}, $e(l(ze)(
|
|
307
314
|
e.value.style.chart.layout.percentage.formatter,
|
|
308
|
-
l(
|
|
315
|
+
l(se)(i.value),
|
|
309
316
|
l(Me)({
|
|
310
|
-
v: l(
|
|
317
|
+
v: l(se)(i.value),
|
|
311
318
|
s: "%",
|
|
312
319
|
r: e.value.style.chart.layout.percentage.rounding
|
|
313
320
|
})
|
|
314
321
|
)), 9, qe)) : h("", !0),
|
|
315
|
-
|
|
322
|
+
y(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
316
323
|
], 14, je)) : h("", !0),
|
|
317
324
|
t.$slots.watermark ? (s(), v("div", Ve, [
|
|
318
|
-
|
|
325
|
+
y(t.$slots, "watermark", _(x({ isPrinting: l(H) || l(W) })), void 0, !0)
|
|
319
326
|
])) : h("", !0),
|
|
320
327
|
t.$slots.source ? (s(), v("div", {
|
|
321
328
|
key: 6,
|
|
322
329
|
ref_key: "source",
|
|
323
|
-
ref:
|
|
330
|
+
ref: X,
|
|
324
331
|
dir: "auto"
|
|
325
332
|
}, [
|
|
326
|
-
|
|
333
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
327
334
|
], 512)) : h("", !0),
|
|
328
|
-
|
|
335
|
+
A.value ? h("", !0) : (s(), I(l(ve), {
|
|
329
336
|
key: 7,
|
|
330
337
|
config: {
|
|
331
338
|
type: "wheel",
|
|
@@ -339,7 +346,7 @@ const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x
|
|
|
339
346
|
}, null, 8, ["config"]))
|
|
340
347
|
], 44, Ge));
|
|
341
348
|
}
|
|
342
|
-
}, ut = /* @__PURE__ */
|
|
349
|
+
}, ut = /* @__PURE__ */ Le(Je, [["__scopeId", "data-v-ab90b8ed"]]);
|
|
343
350
|
export {
|
|
344
351
|
ut as default
|
|
345
352
|
};
|