vue-data-ui 3.0.0-next.0 → 3.0.0-next.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 +108 -67
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
- package/dist/Tooltip-NwATo4ZJ.js +157 -0
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
- package/dist/img-ku4zevVD.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
- package/dist/pdf-CguiIsUc.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1051 -217
- package/dist/types/vue-data-ui.d.ts +1051 -217
- package/dist/useLoading-Bt5Doa8m.js +28 -0
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
- package/dist/vue-data-ui-DQef_oFO.js +314 -0
- package/dist/vue-data-ui.js +13 -13
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
- package/dist/vue-ui-donut-tECBFvud.js +1532 -0
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
- package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
- package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
- package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
- package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
- package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
- package/package.json +2 -2
- package/dist/Tooltip-hVZUY_s5.js +0 -149
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/useMouse-AicQS8Vf.js +0 -13
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
- package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as ge, withCtx as O, renderSlot as g, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
|
|
2
|
-
import { u as oe } from "./useNestedProp-YgN3FV_8.js";
|
|
3
|
-
import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as Oe, f as xe } from "./index-DMqAxz7R.js";
|
|
4
|
-
import { u as Ae } from "./usePrinter-COkTjv6C.js";
|
|
5
|
-
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-D29apS4l.js";
|
|
8
|
-
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Ne = ["id"], Me = {
|
|
10
|
-
key: 2,
|
|
11
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
12
|
-
}, Te = ["xmlns", "viewBox"], Ue = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Ee = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Re = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Be = {
|
|
13
|
-
key: 5,
|
|
14
|
-
class: "vue-data-ui-watermark"
|
|
15
|
-
}, Xe = {
|
|
16
|
-
key: 6,
|
|
17
|
-
ref: "source",
|
|
18
|
-
dir: "auto"
|
|
19
|
-
}, De = {
|
|
20
|
-
__name: "vue-ui-tiremarks",
|
|
21
|
-
props: {
|
|
22
|
-
config: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
dataset: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(se, { expose: ne }) {
|
|
36
|
-
const re = F(() => import("./PenAndPaper-DhBJsnob.js")), ue = F(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), ie = F(() => import("./UserOptions-Bdit7AWO.js")), ce = F(() => import("./PackageVersion-D0VPY8-5.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
|
|
37
|
-
get: () => V(),
|
|
38
|
-
set: (t) => t
|
|
39
|
-
}), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
|
|
40
|
-
function V() {
|
|
41
|
-
const t = oe({
|
|
42
|
-
userConfig: f.config,
|
|
43
|
-
defaultConfig: ve
|
|
44
|
-
});
|
|
45
|
-
return t.theme ? {
|
|
46
|
-
...oe({
|
|
47
|
-
userConfig: Ce.vue_ui_tiremarks[t.theme] || f.config,
|
|
48
|
-
defaultConfig: t
|
|
49
|
-
})
|
|
50
|
-
} : t;
|
|
51
|
-
}
|
|
52
|
-
ee(() => f.config, (t) => {
|
|
53
|
-
e.value = V(), U.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
|
|
54
|
-
}, { deep: !0 });
|
|
55
|
-
const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ae({
|
|
56
|
-
elementId: T.value,
|
|
57
|
-
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
58
|
-
options: e.value.userOptions.print
|
|
59
|
-
}), de = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : _e(f.dataset.percentage));
|
|
60
|
-
ee(() => f.dataset, (t) => {
|
|
61
|
-
e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
|
|
62
|
-
}, { deep: !0 }), pe(() => {
|
|
63
|
-
W();
|
|
64
|
-
});
|
|
65
|
-
function Q(t) {
|
|
66
|
-
let r = e.value.style.chart.animation.speed;
|
|
67
|
-
const a = Math.abs(t - u.value) / (r * 120);
|
|
68
|
-
function s() {
|
|
69
|
-
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(s);
|
|
70
|
-
}
|
|
71
|
-
s();
|
|
72
|
-
}
|
|
73
|
-
function W() {
|
|
74
|
-
$e(f.dataset) && we({
|
|
75
|
-
componentName: "VueUiTiremarks",
|
|
76
|
-
type: "dataset"
|
|
77
|
-
}), Q(f.dataset.percentage || 0);
|
|
78
|
-
}
|
|
79
|
-
const C = h(() => e.value.style.chart.layout.display === "vertical"), i = h(() => {
|
|
80
|
-
const t = {
|
|
81
|
-
top: 48,
|
|
82
|
-
left: 64,
|
|
83
|
-
right: 64,
|
|
84
|
-
bottom: 48
|
|
85
|
-
};
|
|
86
|
-
return C.value ? {
|
|
87
|
-
top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
88
|
-
left: 3,
|
|
89
|
-
right: 3,
|
|
90
|
-
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
|
|
91
|
-
} : {
|
|
92
|
-
top: 0,
|
|
93
|
-
bottom: 0,
|
|
94
|
-
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
95
|
-
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
96
|
-
};
|
|
97
|
-
}), x = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
|
|
98
|
-
height: C.value ? 312 : 56,
|
|
99
|
-
width: C.value ? 56 : 312
|
|
100
|
-
})), v = h(() => C.value ? {
|
|
101
|
-
mark: (o.value.height - x.value) / 100 * 0.5,
|
|
102
|
-
space: (o.value.height - x.value) / 100 * 0.5
|
|
103
|
-
} : {
|
|
104
|
-
mark: (o.value.width - x.value) / 100 * 0.5,
|
|
105
|
-
space: (o.value.width - x.value) / 100 * 0.5
|
|
106
|
-
}), Z = h(() => {
|
|
107
|
-
const t = [];
|
|
108
|
-
for (let a = 0; a < 100; a += 1) {
|
|
109
|
-
const s = e.value.style.chart.layout.ticks.gradient.show ? le(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
110
|
-
if (C.value) {
|
|
111
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - p) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
112
|
-
t.push({
|
|
113
|
-
x1: p,
|
|
114
|
-
x2: y,
|
|
115
|
-
y1: m,
|
|
116
|
-
y2: k,
|
|
117
|
-
curve: `M ${p} ${m} C ${p + w} ${m - P}, ${y - w} ${k - P}, ${y} ${k}`,
|
|
118
|
-
color: s
|
|
119
|
-
});
|
|
120
|
-
} else {
|
|
121
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = p, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
|
|
122
|
-
t.push({
|
|
123
|
-
x1: p,
|
|
124
|
-
x2: y,
|
|
125
|
-
y1: m,
|
|
126
|
-
y2: k,
|
|
127
|
-
curve: `M ${p} ${m} C ${p + w} ${m + P}, ${y + w} ${k - P}, ${y} ${k}`,
|
|
128
|
-
color: s
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
return t;
|
|
133
|
-
}), _ = h(() => {
|
|
134
|
-
let t, r, a;
|
|
135
|
-
const s = e.value.style.chart.percentage.fontSize / 3;
|
|
136
|
-
return C.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, r = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, r = o.value.height - i.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, r = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - i.value.right + 8, r = o.value.height / 2 + s, a = "start"), {
|
|
137
|
-
x: t,
|
|
138
|
-
y: r,
|
|
139
|
-
textAnchor: a,
|
|
140
|
-
bold: e.value.style.chart.percentage.bold,
|
|
141
|
-
fontSize: e.value.style.chart.percentage.fontSize,
|
|
142
|
-
fill: e.value.style.chart.percentage.color
|
|
143
|
-
};
|
|
144
|
-
}), A = b(!1);
|
|
145
|
-
function fe(t) {
|
|
146
|
-
A.value = t, R.value += 1;
|
|
147
|
-
}
|
|
148
|
-
const I = b(!1);
|
|
149
|
-
function G() {
|
|
150
|
-
I.value = !I.value;
|
|
151
|
-
}
|
|
152
|
-
return ne({
|
|
153
|
-
generatePdf: J,
|
|
154
|
-
generateImage: K,
|
|
155
|
-
toggleAnnotator: G
|
|
156
|
-
}), (t, r) => (n(), c("div", {
|
|
157
|
-
ref_key: "tiremarksChart",
|
|
158
|
-
ref: E,
|
|
159
|
-
class: j(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
160
|
-
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
161
|
-
id: T.value,
|
|
162
|
-
onMouseenter: r[0] || (r[0] = () => l(X)(!0)),
|
|
163
|
-
onMouseleave: r[1] || (r[1] = () => l(X)(!1))
|
|
164
|
-
}, [
|
|
165
|
-
e.value.userOptions.buttons.annotator ? (n(), z(l(re), {
|
|
166
|
-
key: 0,
|
|
167
|
-
svgRef: l(H),
|
|
168
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
169
|
-
color: e.value.style.chart.color,
|
|
170
|
-
active: I.value,
|
|
171
|
-
onClose: G
|
|
172
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
173
|
-
de.value ? (n(), c("div", {
|
|
174
|
-
key: 1,
|
|
175
|
-
ref_key: "noTitle",
|
|
176
|
-
ref: he,
|
|
177
|
-
class: "vue-data-ui-no-title-space",
|
|
178
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
179
|
-
}, null, 512)) : d("", !0),
|
|
180
|
-
e.value.style.chart.title.text ? (n(), c("div", Me, [
|
|
181
|
-
(n(), z(ze, {
|
|
182
|
-
key: `title_${B.value}`,
|
|
183
|
-
config: {
|
|
184
|
-
title: {
|
|
185
|
-
cy: "wheel-title",
|
|
186
|
-
...e.value.style.chart.title
|
|
187
|
-
},
|
|
188
|
-
subtitle: {
|
|
189
|
-
cy: "wheel-subtitle",
|
|
190
|
-
...e.value.style.chart.title.subtitle
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}, null, 8, ["config"]))
|
|
194
|
-
])) : d("", !0),
|
|
195
|
-
e.value.userOptions.show && M.value && (l(D) || l(U)) ? (n(), z(l(ie), {
|
|
196
|
-
ref: "details",
|
|
197
|
-
key: `user_options_${R.value}`,
|
|
198
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
199
|
-
color: e.value.style.chart.color,
|
|
200
|
-
isPrinting: l(Y),
|
|
201
|
-
isImaging: l(q),
|
|
202
|
-
uid: T.value,
|
|
203
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
204
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
205
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
206
|
-
hasXls: !1,
|
|
207
|
-
isFullscreen: A.value,
|
|
208
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
209
|
-
chartElement: E.value,
|
|
210
|
-
position: e.value.userOptions.position,
|
|
211
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
212
|
-
isAnnotation: I.value,
|
|
213
|
-
callbacks: e.value.userOptions.callbacks,
|
|
214
|
-
onToggleFullscreen: fe,
|
|
215
|
-
onGeneratePdf: l(J),
|
|
216
|
-
onGenerateImage: l(K),
|
|
217
|
-
onToggleAnnotator: G,
|
|
218
|
-
style: L({
|
|
219
|
-
visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
|
|
220
|
-
})
|
|
221
|
-
}, ge({ _: 2 }, [
|
|
222
|
-
t.$slots.menuIcon ? {
|
|
223
|
-
name: "menuIcon",
|
|
224
|
-
fn: O(({ isOpen: a, color: s }) => [
|
|
225
|
-
g(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
|
|
226
|
-
]),
|
|
227
|
-
key: "0"
|
|
228
|
-
} : void 0,
|
|
229
|
-
t.$slots.optionPdf ? {
|
|
230
|
-
name: "optionPdf",
|
|
231
|
-
fn: O(() => [
|
|
232
|
-
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
233
|
-
]),
|
|
234
|
-
key: "1"
|
|
235
|
-
} : void 0,
|
|
236
|
-
t.$slots.optionImg ? {
|
|
237
|
-
name: "optionImg",
|
|
238
|
-
fn: O(() => [
|
|
239
|
-
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
240
|
-
]),
|
|
241
|
-
key: "2"
|
|
242
|
-
} : void 0,
|
|
243
|
-
t.$slots.optionFullscreen ? {
|
|
244
|
-
name: "optionFullscreen",
|
|
245
|
-
fn: O(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
246
|
-
g(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
247
|
-
]),
|
|
248
|
-
key: "3"
|
|
249
|
-
} : void 0,
|
|
250
|
-
t.$slots.optionAnnotator ? {
|
|
251
|
-
name: "optionAnnotator",
|
|
252
|
-
fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
253
|
-
g(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
254
|
-
]),
|
|
255
|
-
key: "4"
|
|
256
|
-
} : void 0
|
|
257
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
258
|
-
M.value ? (n(), c("svg", {
|
|
259
|
-
key: 4,
|
|
260
|
-
ref_key: "svgRef",
|
|
261
|
-
ref: H,
|
|
262
|
-
xmlns: l(Pe),
|
|
263
|
-
class: j({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
264
|
-
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
265
|
-
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
266
|
-
}, [
|
|
267
|
-
ye(l(ce)),
|
|
268
|
-
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
269
|
-
key: 0,
|
|
270
|
-
x: 0,
|
|
271
|
-
y: 0,
|
|
272
|
-
width: o.value.width,
|
|
273
|
-
height: o.value.height,
|
|
274
|
-
style: {
|
|
275
|
-
pointerEvents: "none"
|
|
276
|
-
}
|
|
277
|
-
}, [
|
|
278
|
-
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
279
|
-
], 8, Ue)) : d("", !0),
|
|
280
|
-
e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
|
|
281
|
-
(n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
|
|
282
|
-
d: a.curve,
|
|
283
|
-
"stroke-width": v.value.mark,
|
|
284
|
-
stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
285
|
-
"stroke-linecap": "round",
|
|
286
|
-
fill: "none",
|
|
287
|
-
class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
|
|
288
|
-
}, null, 10, Le))), 256))
|
|
289
|
-
])) : (n(), c("g", je, [
|
|
290
|
-
(n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("line", {
|
|
291
|
-
x1: a.x1,
|
|
292
|
-
y1: a.y1,
|
|
293
|
-
x2: a.x2,
|
|
294
|
-
y2: a.y2,
|
|
295
|
-
"stroke-width": v.value.mark,
|
|
296
|
-
stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
297
|
-
"stroke-linecap": "round"
|
|
298
|
-
}, null, 8, Ee))), 256))
|
|
299
|
-
])),
|
|
300
|
-
e.value.style.chart.percentage.show ? (n(), c("text", {
|
|
301
|
-
key: 3,
|
|
302
|
-
x: _.value.x,
|
|
303
|
-
y: _.value.y,
|
|
304
|
-
"font-size": _.value.fontSize,
|
|
305
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(le)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
306
|
-
"font-weight": _.value.bold ? "bold" : "normal",
|
|
307
|
-
"text-anchor": _.value.textAnchor
|
|
308
|
-
}, me(l(Oe)(
|
|
309
|
-
e.value.style.chart.percentage.formatter,
|
|
310
|
-
u.value,
|
|
311
|
-
l(xe)({
|
|
312
|
-
v: u.value,
|
|
313
|
-
s: "%",
|
|
314
|
-
r: e.value.style.chart.percentage.rounding
|
|
315
|
-
})
|
|
316
|
-
)), 9, Re)) : d("", !0),
|
|
317
|
-
g(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
318
|
-
], 14, Te)) : d("", !0),
|
|
319
|
-
t.$slots.watermark ? (n(), c("div", Be, [
|
|
320
|
-
g(t.$slots, "watermark", S(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
|
|
321
|
-
])) : d("", !0),
|
|
322
|
-
t.$slots.source ? (n(), c("div", Xe, [
|
|
323
|
-
g(t.$slots, "source", {}, void 0, !0)
|
|
324
|
-
], 512)) : d("", !0),
|
|
325
|
-
M.value ? d("", !0) : (n(), z(l(ue), {
|
|
326
|
-
key: 7,
|
|
327
|
-
config: {
|
|
328
|
-
type: "tiremarks",
|
|
329
|
-
style: {
|
|
330
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
331
|
-
tiremarks: {
|
|
332
|
-
color: "#CCCCCC"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}, null, 8, ["config"]))
|
|
337
|
-
], 46, Ne));
|
|
338
|
-
}
|
|
339
|
-
}, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-d54c8cf2"]]);
|
|
340
|
-
export {
|
|
341
|
-
Ze as default
|
|
342
|
-
};
|