vue-data-ui 2.12.5 → 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/README.md +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.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-DLsvRwoD.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-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.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-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.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-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.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-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.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-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.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-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.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-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
import { computed as f, ref as c, watch as J, onMounted as he, onBeforeUnmount as de, createElementBlock as v, openBlock as n, unref as s, normalizeStyle as S, createBlock as _, createCommentVNode as h, createSlots as ye, withCtx as g, renderSlot as y, normalizeProps as $, guardReactiveProps as O, normalizeClass as z, createVNode as fe, Fragment as K, renderList as Q, toDisplayString as pe } from "vue";
|
|
2
|
-
import { u as ge, c as me, a as ke, o as we, e as be, w as Z, m as Ce, X as _e, i as $e, v as ee, f as Oe } from "./index-vjCxtaM0.js";
|
|
3
|
-
import { _ as Ie } from "./Title-xO1jFsSw.js";
|
|
4
|
-
import { u as xe, U as Ae } from "./usePrinter-CcgJXHIK.js";
|
|
5
|
-
import { t as Fe, u as Pe } from "./useResponsive-JZ9xq-JV.js";
|
|
6
|
-
import Se from "./vue-ui-skeleton-DfOIDTJM.js";
|
|
7
|
-
import { u as te } from "./useNestedProp-Du1hnYFA.js";
|
|
8
|
-
import { _ as ze } from "./PackageVersion-Cw2caN1c.js";
|
|
9
|
-
import { _ as Me } from "./PenAndPaper-DLsvRwoD.js";
|
|
10
|
-
import { u as Te } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as Ne } from "./useChartAccessibility-BWojgys7.js";
|
|
12
|
-
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Ue = ["id"], Xe = ["xmlns", "viewBox"], Le = ["width", "height"], Be = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ee = ["d", "fill"], Ge = ["cx", "cy", "r", "stroke", "stroke-width"], je = ["x", "y", "font-size", "fill", "font-weight"], De = {
|
|
14
|
-
key: 5,
|
|
15
|
-
class: "vue-data-ui-watermark"
|
|
16
|
-
}, Ye = {
|
|
17
|
-
__name: "vue-ui-wheel",
|
|
18
|
-
props: {
|
|
19
|
-
config: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default() {
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
dataset: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(ae, { expose: le }) {
|
|
33
|
-
const { vue_ui_wheel: oe } = ge(), d = ae, I = f(() => !!d.dataset && Object.keys(d.dataset).length), x = c(me()), se = c(null), M = c(0), m = c(null), T = c(null), N = c(null), R = c(null), U = c(0), e = f({
|
|
34
|
-
get: () => E(),
|
|
35
|
-
set: (t) => t
|
|
36
|
-
}), { userOptionsVisible: A, setUserOptionsVisibility: X, keepUserOptionState: L } = Te({ config: e.value }), { svgRef: B } = Ne({ config: e.value.style.chart.title });
|
|
37
|
-
function E() {
|
|
38
|
-
const t = te({
|
|
39
|
-
userConfig: d.config,
|
|
40
|
-
defaultConfig: oe
|
|
41
|
-
});
|
|
42
|
-
return t.theme ? {
|
|
43
|
-
...te({
|
|
44
|
-
userConfig: ke.vue_ui_wheel[t.theme] || d.config,
|
|
45
|
-
defaultConfig: t
|
|
46
|
-
})
|
|
47
|
-
} : t;
|
|
48
|
-
}
|
|
49
|
-
J(() => d.config, (t) => {
|
|
50
|
-
e.value = E(), A.value = !e.value.userOptions.showOnChartHover, W(), U.value += 1;
|
|
51
|
-
}, { deep: !0 });
|
|
52
|
-
const { isPrinting: G, isImaging: j, generatePdf: D, generateImage: Y } = xe({
|
|
53
|
-
elementId: x.value,
|
|
54
|
-
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
55
|
-
options: e.value.userOptions.print
|
|
56
|
-
}), ne = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), l = c({
|
|
57
|
-
size: 360,
|
|
58
|
-
height: 360,
|
|
59
|
-
width: 360
|
|
60
|
-
}), F = c(e.value.style.chart.layout.percentage.fontSize), u = f(() => ({
|
|
61
|
-
radius: Math.min(l.value.width, l.value.height) * 0.9 / 2,
|
|
62
|
-
centerX: l.value.width / 2,
|
|
63
|
-
centerY: l.value.height / 2
|
|
64
|
-
}));
|
|
65
|
-
function H(t, o = 1) {
|
|
66
|
-
return {
|
|
67
|
-
x: u.value.centerX + u.value.radius * Math.cos(29.85 + t * Math.PI / 180) * o,
|
|
68
|
-
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * o
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
const r = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
72
|
-
J(() => d.dataset, (t) => {
|
|
73
|
-
e.value.style.chart.animation.use ? q(t.percentage) : r.value = t.percentage || 0;
|
|
74
|
-
}, { deep: !0 });
|
|
75
|
-
const k = c(null);
|
|
76
|
-
he(() => {
|
|
77
|
-
W();
|
|
78
|
-
});
|
|
79
|
-
function W() {
|
|
80
|
-
if (we(d.dataset) && be({
|
|
81
|
-
componentName: "VueUiWheel",
|
|
82
|
-
type: "dataset"
|
|
83
|
-
}), q(d.dataset.percentage || 0), e.value.responsive) {
|
|
84
|
-
const t = Fe(() => {
|
|
85
|
-
const { width: o, height: a } = Pe({
|
|
86
|
-
chart: m.value,
|
|
87
|
-
title: e.value.style.chart.title.text ? T.value : null,
|
|
88
|
-
source: N.value,
|
|
89
|
-
noTitle: R.value
|
|
90
|
-
});
|
|
91
|
-
requestAnimationFrame(() => {
|
|
92
|
-
l.value.width = o, l.value.height = a, F.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(o, a);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
k.value = new ResizeObserver(t), k.value.observe(m.value.parentNode);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
de(() => {
|
|
99
|
-
k.value && k.value.disconnect();
|
|
100
|
-
});
|
|
101
|
-
function q(t) {
|
|
102
|
-
let o = e.value.style.chart.animation.speed;
|
|
103
|
-
const a = Math.abs(t - r.value) / (o * 120);
|
|
104
|
-
function i() {
|
|
105
|
-
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);
|
|
106
|
-
}
|
|
107
|
-
i();
|
|
108
|
-
}
|
|
109
|
-
const p = f(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), w = f(() => 100 / p.value), V = f(() => {
|
|
110
|
-
const t = [];
|
|
111
|
-
for (let o = 0; o < p.value; o += 1) {
|
|
112
|
-
const a = r.value > o * w.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: ie } = H(l.value.size / p.value * o), { x: ce, y: ve } = H(l.value.size / p.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
113
|
-
t.push({
|
|
114
|
-
x1: i,
|
|
115
|
-
y1: ie,
|
|
116
|
-
x2: ce,
|
|
117
|
-
y2: ve,
|
|
118
|
-
color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, o * w.value / p.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return t;
|
|
122
|
-
}), ue = f(() => Ce({ series: V.value.map((t) => ({
|
|
123
|
-
name: "",
|
|
124
|
-
value: 1,
|
|
125
|
-
color: t.color
|
|
126
|
-
})) }, 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))), b = c(!1);
|
|
127
|
-
function re(t) {
|
|
128
|
-
b.value = t, M.value += 1;
|
|
129
|
-
}
|
|
130
|
-
const C = c(!1);
|
|
131
|
-
function P() {
|
|
132
|
-
C.value = !C.value;
|
|
133
|
-
}
|
|
134
|
-
return le({
|
|
135
|
-
generatePdf: D,
|
|
136
|
-
generateImage: Y,
|
|
137
|
-
toggleAnnotator: P
|
|
138
|
-
}), (t, o) => (n(), v("div", {
|
|
139
|
-
class: "vue-ui-wheel",
|
|
140
|
-
ref_key: "wheelChart",
|
|
141
|
-
ref: m,
|
|
142
|
-
id: x.value,
|
|
143
|
-
style: S(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
144
|
-
onMouseenter: o[0] || (o[0] = () => s(X)(!0)),
|
|
145
|
-
onMouseleave: o[1] || (o[1] = () => s(X)(!1))
|
|
146
|
-
}, [
|
|
147
|
-
e.value.userOptions.buttons.annotator ? (n(), _(Me, {
|
|
148
|
-
key: 0,
|
|
149
|
-
svgRef: s(B),
|
|
150
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
151
|
-
color: e.value.style.chart.color,
|
|
152
|
-
active: C.value,
|
|
153
|
-
onClose: P
|
|
154
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
155
|
-
ne.value ? (n(), v("div", {
|
|
156
|
-
key: 1,
|
|
157
|
-
ref_key: "noTitle",
|
|
158
|
-
ref: R,
|
|
159
|
-
class: "vue-data-ui-no-title-space",
|
|
160
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
161
|
-
}, null, 512)) : h("", !0),
|
|
162
|
-
e.value.style.chart.title.text ? (n(), v("div", {
|
|
163
|
-
key: 2,
|
|
164
|
-
ref_key: "chartTitle",
|
|
165
|
-
ref: T,
|
|
166
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
167
|
-
}, [
|
|
168
|
-
(n(), _(Ie, {
|
|
169
|
-
key: `title_${U.value}`,
|
|
170
|
-
config: {
|
|
171
|
-
title: {
|
|
172
|
-
cy: "wheel-title",
|
|
173
|
-
...e.value.style.chart.title
|
|
174
|
-
},
|
|
175
|
-
subtitle: {
|
|
176
|
-
cy: "wheel-subtitle",
|
|
177
|
-
...e.value.style.chart.title.subtitle
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}, null, 8, ["config"]))
|
|
181
|
-
], 512)) : h("", !0),
|
|
182
|
-
e.value.userOptions.show && I.value && (s(L) || s(A)) ? (n(), _(Ae, {
|
|
183
|
-
ref_key: "details",
|
|
184
|
-
ref: se,
|
|
185
|
-
key: `user_options_${M.value}`,
|
|
186
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
187
|
-
color: e.value.style.chart.color,
|
|
188
|
-
isPrinting: s(G),
|
|
189
|
-
isImaging: s(j),
|
|
190
|
-
uid: x.value,
|
|
191
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
192
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
193
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
194
|
-
hasXls: !1,
|
|
195
|
-
isFullscreen: b.value,
|
|
196
|
-
position: e.value.userOptions.position,
|
|
197
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
198
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
199
|
-
isAnnotation: C.value,
|
|
200
|
-
chartElement: m.value,
|
|
201
|
-
onToggleFullscreen: re,
|
|
202
|
-
onGeneratePdf: s(D),
|
|
203
|
-
onGenerateImage: s(Y),
|
|
204
|
-
onToggleAnnotator: P,
|
|
205
|
-
style: S({
|
|
206
|
-
visibility: s(L) ? s(A) ? "visible" : "hidden" : "visible"
|
|
207
|
-
})
|
|
208
|
-
}, ye({ _: 2 }, [
|
|
209
|
-
t.$slots.menuIcon ? {
|
|
210
|
-
name: "menuIcon",
|
|
211
|
-
fn: g(({ isOpen: a, color: i }) => [
|
|
212
|
-
y(t.$slots, "menuIcon", $(O({ isOpen: a, color: i })), void 0, !0)
|
|
213
|
-
]),
|
|
214
|
-
key: "0"
|
|
215
|
-
} : void 0,
|
|
216
|
-
t.$slots.optionPdf ? {
|
|
217
|
-
name: "optionPdf",
|
|
218
|
-
fn: g(() => [
|
|
219
|
-
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
220
|
-
]),
|
|
221
|
-
key: "1"
|
|
222
|
-
} : void 0,
|
|
223
|
-
t.$slots.optionImg ? {
|
|
224
|
-
name: "optionImg",
|
|
225
|
-
fn: g(() => [
|
|
226
|
-
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
227
|
-
]),
|
|
228
|
-
key: "2"
|
|
229
|
-
} : void 0,
|
|
230
|
-
t.$slots.optionFullscreen ? {
|
|
231
|
-
name: "optionFullscreen",
|
|
232
|
-
fn: g(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
233
|
-
y(t.$slots, "optionFullscreen", $(O({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
234
|
-
]),
|
|
235
|
-
key: "3"
|
|
236
|
-
} : void 0,
|
|
237
|
-
t.$slots.optionAnnotator ? {
|
|
238
|
-
name: "optionAnnotator",
|
|
239
|
-
fn: g(({ toggleAnnotator: a, isAnnotator: i }) => [
|
|
240
|
-
y(t.$slots, "optionAnnotator", $(O({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
|
|
241
|
-
]),
|
|
242
|
-
key: "4"
|
|
243
|
-
} : void 0
|
|
244
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
245
|
-
I.value ? (n(), v("svg", {
|
|
246
|
-
key: 4,
|
|
247
|
-
ref_key: "svgRef",
|
|
248
|
-
ref: B,
|
|
249
|
-
xmlns: s(_e),
|
|
250
|
-
class: z({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value }),
|
|
251
|
-
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
252
|
-
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
253
|
-
}, [
|
|
254
|
-
fe(ze),
|
|
255
|
-
t.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
256
|
-
key: 0,
|
|
257
|
-
x: 0,
|
|
258
|
-
y: 0,
|
|
259
|
-
width: l.value.width <= 0 ? 10 : l.value.width,
|
|
260
|
-
height: l.value.height <= 0 ? 10 : l.value.height,
|
|
261
|
-
style: {
|
|
262
|
-
pointerEvents: "none"
|
|
263
|
-
}
|
|
264
|
-
}, [
|
|
265
|
-
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
266
|
-
], 8, Le)) : h("", !0),
|
|
267
|
-
e.value.style.chart.layout.wheel.ticks.type === "classic" ? (n(!0), v(K, { key: 1 }, Q(V.value, (a, i) => (n(), v("line", {
|
|
268
|
-
x1: a.x1,
|
|
269
|
-
x2: a.x2,
|
|
270
|
-
y1: a.y1,
|
|
271
|
-
y2: a.y2,
|
|
272
|
-
stroke: a.color,
|
|
273
|
-
"stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(l.value.width, l.value.height),
|
|
274
|
-
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
275
|
-
class: z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * w.value <= r.value })
|
|
276
|
-
}, null, 10, Be))), 256)) : (n(!0), v(K, { key: 2 }, Q(ue.value, (a, i) => (n(), v("path", {
|
|
277
|
-
d: a.arcSlice,
|
|
278
|
-
fill: a.color,
|
|
279
|
-
class: z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i * w.value <= r.value })
|
|
280
|
-
}, null, 10, Ee))), 256)),
|
|
281
|
-
e.value.style.chart.layout.innerCircle.show ? (n(), v("circle", {
|
|
282
|
-
key: 3,
|
|
283
|
-
cx: u.value.centerX,
|
|
284
|
-
cy: u.value.centerY,
|
|
285
|
-
r: u.value.radius * 0.8 <= 0 ? 1e-4 : u.value.radius * 0.8,
|
|
286
|
-
stroke: e.value.style.chart.layout.innerCircle.stroke,
|
|
287
|
-
"stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
|
|
288
|
-
fill: "none"
|
|
289
|
-
}, null, 8, Ge)) : h("", !0),
|
|
290
|
-
e.value.style.chart.layout.percentage.show ? (n(), v("text", {
|
|
291
|
-
key: 4,
|
|
292
|
-
x: u.value.centerX,
|
|
293
|
-
y: u.value.centerY + F.value / 3,
|
|
294
|
-
"font-size": F.value,
|
|
295
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? s(Z)(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,
|
|
296
|
-
"text-anchor": "middle",
|
|
297
|
-
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
298
|
-
style: { "font-variant-numeric": "tabluar-nums" }
|
|
299
|
-
}, pe(s($e)(
|
|
300
|
-
e.value.style.chart.layout.percentage.formatter,
|
|
301
|
-
s(ee)(r.value),
|
|
302
|
-
s(Oe)({
|
|
303
|
-
v: s(ee)(r.value),
|
|
304
|
-
s: "%",
|
|
305
|
-
r: e.value.style.chart.layout.percentage.rounding
|
|
306
|
-
})
|
|
307
|
-
)), 9, je)) : h("", !0),
|
|
308
|
-
y(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
309
|
-
], 14, Xe)) : h("", !0),
|
|
310
|
-
t.$slots.watermark ? (n(), v("div", De, [
|
|
311
|
-
y(t.$slots, "watermark", $(O({ isPrinting: s(G) || s(j) })), void 0, !0)
|
|
312
|
-
])) : h("", !0),
|
|
313
|
-
t.$slots.source ? (n(), v("div", {
|
|
314
|
-
key: 6,
|
|
315
|
-
ref_key: "source",
|
|
316
|
-
ref: N,
|
|
317
|
-
dir: "auto"
|
|
318
|
-
}, [
|
|
319
|
-
y(t.$slots, "source", {}, void 0, !0)
|
|
320
|
-
], 512)) : h("", !0),
|
|
321
|
-
I.value ? h("", !0) : (n(), _(Se, {
|
|
322
|
-
key: 7,
|
|
323
|
-
config: {
|
|
324
|
-
type: "wheel",
|
|
325
|
-
style: {
|
|
326
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
327
|
-
wheel: {
|
|
328
|
-
color: "#CCCCCC"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}, null, 8, ["config"]))
|
|
333
|
-
], 44, Ue));
|
|
334
|
-
}
|
|
335
|
-
}, ot = /* @__PURE__ */ Re(Ye, [["__scopeId", "data-v-0ab72261"]]);
|
|
336
|
-
export {
|
|
337
|
-
ot as default
|
|
338
|
-
};
|