vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
|
|
2
|
+
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as Me, u as Te } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as oe } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as Ne } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Xe from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
|
|
11
|
+
key: 5,
|
|
12
|
+
class: "vue-data-ui-watermark"
|
|
13
|
+
}, qe = {
|
|
14
|
+
__name: "vue-ui-wheel",
|
|
15
|
+
props: {
|
|
16
|
+
config: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default() {
|
|
19
|
+
return {};
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
dataset: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup(ne, { expose: se }) {
|
|
30
|
+
const ue = $(() => import("./PenAndPaper-B9na2mbr.js")), re = $(() => import("./vue-ui-skeleton-CbYQYRvD.js")), ie = $(() => import("./UserOptions-Ddy6CuLC.js")), ce = $(() => import("./PackageVersion-CLY-udAA.js")), { vue_ui_wheel: ve } = $e(), d = ne, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
|
|
31
|
+
get: () => j(),
|
|
32
|
+
set: (t) => t
|
|
33
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
|
|
34
|
+
function j() {
|
|
35
|
+
const t = oe({
|
|
36
|
+
userConfig: d.config,
|
|
37
|
+
defaultConfig: ve
|
|
38
|
+
});
|
|
39
|
+
return t.theme ? {
|
|
40
|
+
...oe({
|
|
41
|
+
userConfig: Ie.vue_ui_wheel[t.theme] || d.config,
|
|
42
|
+
defaultConfig: t
|
|
43
|
+
})
|
|
44
|
+
} : t;
|
|
45
|
+
}
|
|
46
|
+
Q(() => d.config, (t) => {
|
|
47
|
+
e.value = j(), F.value = !e.value.userOptions.showOnChartHover, V(), E.value += 1;
|
|
48
|
+
}, { deep: !0 });
|
|
49
|
+
const { isPrinting: D, isImaging: Y, generatePdf: H, generateImage: W } = Ne({
|
|
50
|
+
elementId: x.value,
|
|
51
|
+
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
52
|
+
options: e.value.userOptions.print
|
|
53
|
+
}), de = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
|
|
54
|
+
size: 360,
|
|
55
|
+
height: 360,
|
|
56
|
+
width: 360
|
|
57
|
+
}), S = c(e.value.style.chart.layout.percentage.fontSize), u = p(() => ({
|
|
58
|
+
radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
|
|
59
|
+
centerX: o.value.width / 2,
|
|
60
|
+
centerY: o.value.height / 2
|
|
61
|
+
}));
|
|
62
|
+
function q(t, n = 1) {
|
|
63
|
+
return {
|
|
64
|
+
x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
|
|
65
|
+
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
69
|
+
Q(() => d.dataset, (t) => {
|
|
70
|
+
e.value.style.chart.animation.use ? J(t.percentage) : r.value = t.percentage || 0;
|
|
71
|
+
}, { deep: !0 });
|
|
72
|
+
const f = Z(null), g = Z(null);
|
|
73
|
+
ke(() => {
|
|
74
|
+
V();
|
|
75
|
+
});
|
|
76
|
+
function V() {
|
|
77
|
+
if (Ae(d.dataset) && Pe({
|
|
78
|
+
componentName: "VueUiWheel",
|
|
79
|
+
type: "dataset"
|
|
80
|
+
}), J(d.dataset.percentage || 0), e.value.responsive) {
|
|
81
|
+
const t = Me(() => {
|
|
82
|
+
const { width: n, height: a } = Te({
|
|
83
|
+
chart: w.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? R.value : null,
|
|
85
|
+
source: U.value,
|
|
86
|
+
noTitle: X.value
|
|
87
|
+
});
|
|
88
|
+
requestAnimationFrame(() => {
|
|
89
|
+
o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect()), f.value = new ResizeObserver(t), g.value = w.value.parentNode, f.value.observe(g.value);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
we(() => {
|
|
96
|
+
f.value && (g.value && f.value.unobserve(g.value), f.value.disconnect());
|
|
97
|
+
});
|
|
98
|
+
function J(t) {
|
|
99
|
+
let n = e.value.style.chart.animation.speed;
|
|
100
|
+
const a = Math.abs(t - r.value) / (n * 120);
|
|
101
|
+
function i() {
|
|
102
|
+
r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(i);
|
|
103
|
+
}
|
|
104
|
+
i();
|
|
105
|
+
}
|
|
106
|
+
const m = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / m.value), K = p(() => {
|
|
107
|
+
const t = [];
|
|
108
|
+
for (let n = 0; n < m.value; n += 1) {
|
|
109
|
+
const a = r.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: pe } = q(o.value.size / m.value * n), { x: ge, y: me } = q(o.value.size / m.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
110
|
+
t.push({
|
|
111
|
+
x1: i,
|
|
112
|
+
y1: pe,
|
|
113
|
+
x2: ge,
|
|
114
|
+
y2: me,
|
|
115
|
+
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? ae(a, n * b.value / m.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return t;
|
|
119
|
+
}), ye = p(() => xe({ series: K.value.map((t) => ({
|
|
120
|
+
name: "",
|
|
121
|
+
value: 1,
|
|
122
|
+
color: t.color
|
|
123
|
+
})) }, u.value.centerX, u.value.centerY, u.value.radius, u.value.radius, 1.99999, 2, 1, 360, 105.25, u.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
|
|
124
|
+
function fe(t) {
|
|
125
|
+
C.value = t, N.value += 1;
|
|
126
|
+
}
|
|
127
|
+
const O = c(!1);
|
|
128
|
+
function z() {
|
|
129
|
+
O.value = !O.value;
|
|
130
|
+
}
|
|
131
|
+
return se({
|
|
132
|
+
generatePdf: H,
|
|
133
|
+
generateImage: W,
|
|
134
|
+
toggleAnnotator: z
|
|
135
|
+
}), (t, n) => (s(), v("div", {
|
|
136
|
+
class: "vue-ui-wheel",
|
|
137
|
+
ref_key: "wheelChart",
|
|
138
|
+
ref: w,
|
|
139
|
+
id: x.value,
|
|
140
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
141
|
+
onMouseenter: n[0] || (n[0] = () => l(L)(!0)),
|
|
142
|
+
onMouseleave: n[1] || (n[1] = () => l(L)(!1))
|
|
143
|
+
}, [
|
|
144
|
+
e.value.userOptions.buttons.annotator ? (s(), _(l(ue), {
|
|
145
|
+
key: 0,
|
|
146
|
+
svgRef: l(G),
|
|
147
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
148
|
+
color: e.value.style.chart.color,
|
|
149
|
+
active: O.value,
|
|
150
|
+
onClose: z
|
|
151
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
152
|
+
de.value ? (s(), v("div", {
|
|
153
|
+
key: 1,
|
|
154
|
+
ref_key: "noTitle",
|
|
155
|
+
ref: X,
|
|
156
|
+
class: "vue-data-ui-no-title-space",
|
|
157
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
158
|
+
}, null, 512)) : h("", !0),
|
|
159
|
+
e.value.style.chart.title.text ? (s(), v("div", {
|
|
160
|
+
key: 2,
|
|
161
|
+
ref_key: "chartTitle",
|
|
162
|
+
ref: R,
|
|
163
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
164
|
+
}, [
|
|
165
|
+
(s(), _(Xe, {
|
|
166
|
+
key: `title_${E.value}`,
|
|
167
|
+
config: {
|
|
168
|
+
title: {
|
|
169
|
+
cy: "wheel-title",
|
|
170
|
+
...e.value.style.chart.title
|
|
171
|
+
},
|
|
172
|
+
subtitle: {
|
|
173
|
+
cy: "wheel-subtitle",
|
|
174
|
+
...e.value.style.chart.title.subtitle
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}, null, 8, ["config"]))
|
|
178
|
+
], 512)) : h("", !0),
|
|
179
|
+
e.value.userOptions.show && P.value && (l(B) || l(F)) ? (s(), _(l(ie), {
|
|
180
|
+
ref_key: "details",
|
|
181
|
+
ref: he,
|
|
182
|
+
key: `user_options_${N.value}`,
|
|
183
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
184
|
+
color: e.value.style.chart.color,
|
|
185
|
+
isPrinting: l(D),
|
|
186
|
+
isImaging: l(Y),
|
|
187
|
+
uid: x.value,
|
|
188
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
189
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
190
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
191
|
+
hasXls: !1,
|
|
192
|
+
isFullscreen: C.value,
|
|
193
|
+
position: e.value.userOptions.position,
|
|
194
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
195
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
196
|
+
isAnnotation: O.value,
|
|
197
|
+
chartElement: w.value,
|
|
198
|
+
onToggleFullscreen: fe,
|
|
199
|
+
onGeneratePdf: l(H),
|
|
200
|
+
onGenerateImage: l(W),
|
|
201
|
+
onToggleAnnotator: z,
|
|
202
|
+
style: M({
|
|
203
|
+
visibility: l(B) ? l(F) ? "visible" : "hidden" : "visible"
|
|
204
|
+
})
|
|
205
|
+
}, be({ _: 2 }, [
|
|
206
|
+
t.$slots.menuIcon ? {
|
|
207
|
+
name: "menuIcon",
|
|
208
|
+
fn: k(({ isOpen: a, color: i }) => [
|
|
209
|
+
y(t.$slots, "menuIcon", I(A({ isOpen: a, color: i })), void 0, !0)
|
|
210
|
+
]),
|
|
211
|
+
key: "0"
|
|
212
|
+
} : void 0,
|
|
213
|
+
t.$slots.optionPdf ? {
|
|
214
|
+
name: "optionPdf",
|
|
215
|
+
fn: k(() => [
|
|
216
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
217
|
+
]),
|
|
218
|
+
key: "1"
|
|
219
|
+
} : void 0,
|
|
220
|
+
t.$slots.optionImg ? {
|
|
221
|
+
name: "optionImg",
|
|
222
|
+
fn: k(() => [
|
|
223
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
224
|
+
]),
|
|
225
|
+
key: "2"
|
|
226
|
+
} : void 0,
|
|
227
|
+
t.$slots.optionFullscreen ? {
|
|
228
|
+
name: "optionFullscreen",
|
|
229
|
+
fn: k(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
230
|
+
y(t.$slots, "optionFullscreen", I(A({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
231
|
+
]),
|
|
232
|
+
key: "3"
|
|
233
|
+
} : void 0,
|
|
234
|
+
t.$slots.optionAnnotator ? {
|
|
235
|
+
name: "optionAnnotator",
|
|
236
|
+
fn: k(({ toggleAnnotator: a, isAnnotator: i }) => [
|
|
237
|
+
y(t.$slots, "optionAnnotator", I(A({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
|
|
238
|
+
]),
|
|
239
|
+
key: "4"
|
|
240
|
+
} : void 0
|
|
241
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
242
|
+
P.value ? (s(), v("svg", {
|
|
243
|
+
key: 4,
|
|
244
|
+
ref_key: "svgRef",
|
|
245
|
+
ref: G,
|
|
246
|
+
xmlns: l(Fe),
|
|
247
|
+
class: T({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
248
|
+
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
249
|
+
style: M(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
250
|
+
}, [
|
|
251
|
+
Ce(l(ce)),
|
|
252
|
+
t.$slots["chart-background"] ? (s(), v("foreignObject", {
|
|
253
|
+
key: 0,
|
|
254
|
+
x: 0,
|
|
255
|
+
y: 0,
|
|
256
|
+
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
257
|
+
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
258
|
+
style: {
|
|
259
|
+
pointerEvents: "none"
|
|
260
|
+
}
|
|
261
|
+
}, [
|
|
262
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
263
|
+
], 8, Ge)) : h("", !0),
|
|
264
|
+
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(ee, { key: 1 }, te(K.value, (a, i) => (s(), v("line", {
|
|
265
|
+
x1: a.x1,
|
|
266
|
+
x2: a.x2,
|
|
267
|
+
y1: a.y1,
|
|
268
|
+
y2: a.y2,
|
|
269
|
+
stroke: a.color,
|
|
270
|
+
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
|
|
271
|
+
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
272
|
+
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
273
|
+
}, null, 10, je))), 256)) : (s(!0), v(ee, { key: 2 }, te(ye.value, (a, i) => (s(), v("path", {
|
|
274
|
+
d: a.arcSlice,
|
|
275
|
+
fill: a.color,
|
|
276
|
+
class: T({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * b.value <= r.value })
|
|
277
|
+
}, null, 10, De))), 256)),
|
|
278
|
+
e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
|
|
279
|
+
key: 3,
|
|
280
|
+
cx: u.value.centerX,
|
|
281
|
+
cy: u.value.centerY,
|
|
282
|
+
r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
|
|
283
|
+
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
284
|
+
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
285
|
+
fill: "none"
|
|
286
|
+
}, null, 8, Ye)) : h("", !0),
|
|
287
|
+
e.value.style.chart.layout.percentage.show ? (s(), v("text", {
|
|
288
|
+
key: 4,
|
|
289
|
+
x: u.value.centerX,
|
|
290
|
+
y: u.value.centerY + S.value / 3,
|
|
291
|
+
"font-size": S.value,
|
|
292
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(ae)(e.value.style.chart.layout.wheel.ticks.activeColor, r.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
293
|
+
"text-anchor": "middle",
|
|
294
|
+
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
295
|
+
style: { "font-variant-numeric": "tabluar-nums" }
|
|
296
|
+
}, Oe(l(Se)(
|
|
297
|
+
e.value.style.chart.layout.percentage.formatter,
|
|
298
|
+
l(le)(r.value),
|
|
299
|
+
l(ze)({
|
|
300
|
+
v: l(le)(r.value),
|
|
301
|
+
s: "%",
|
|
302
|
+
r: e.value.style.chart.layout.percentage.rounding
|
|
303
|
+
})
|
|
304
|
+
)), 9, He)) : h("", !0),
|
|
305
|
+
y(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
306
|
+
], 14, Be)) : h("", !0),
|
|
307
|
+
t.$slots.watermark ? (s(), v("div", We, [
|
|
308
|
+
y(t.$slots, "watermark", I(A({ isPrinting: l(D) || l(Y) })), void 0, !0)
|
|
309
|
+
])) : h("", !0),
|
|
310
|
+
t.$slots.source ? (s(), v("div", {
|
|
311
|
+
key: 6,
|
|
312
|
+
ref_key: "source",
|
|
313
|
+
ref: U,
|
|
314
|
+
dir: "auto"
|
|
315
|
+
}, [
|
|
316
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
317
|
+
], 512)) : h("", !0),
|
|
318
|
+
P.value ? h("", !0) : (s(), _(l(re), {
|
|
319
|
+
key: 7,
|
|
320
|
+
config: {
|
|
321
|
+
type: "wheel",
|
|
322
|
+
style: {
|
|
323
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
324
|
+
wheel: {
|
|
325
|
+
color: "#CCCCCC"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}, null, 8, ["config"]))
|
|
330
|
+
], 44, Le));
|
|
331
|
+
}
|
|
332
|
+
}, ot = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-6779e626"]]);
|
|
333
|
+
export {
|
|
334
|
+
ot as default
|
|
335
|
+
};
|