vue-data-ui 2.12.6 → 2.12.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.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-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.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-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.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,341 @@
|
|
|
1
|
+
import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as ge, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as pe, withCtx as x, renderSlot as p, 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-CZztHZIm.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 xe, f as Oe } from "./index-BHEd2dgu.js";
|
|
4
|
+
import { u as Ae } from "./usePrinter-C8URL2IU.js";
|
|
5
|
+
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import ze from "./Title-Bc66VstS.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-C-CpE0NC.js")), ue = F(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), ie = F(() => import("./UserOptions-C8X2STEg.js")), ce = F(() => import("./PackageVersion-DaWGaZxE.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 }), ge(() => {
|
|
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
|
+
}), O = 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 - O.value) / 100 * 0.5,
|
|
102
|
+
space: (o.value.height - O.value) / 100 * 0.5
|
|
103
|
+
} : {
|
|
104
|
+
mark: (o.value.width - O.value) / 100 * 0.5,
|
|
105
|
+
space: (o.value.width - O.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, g = 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 - g) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
112
|
+
t.push({
|
|
113
|
+
x1: g,
|
|
114
|
+
x2: y,
|
|
115
|
+
y1: m,
|
|
116
|
+
y2: k,
|
|
117
|
+
curve: `M ${g} ${m} C ${g + 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, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = g, 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: g,
|
|
124
|
+
x2: y,
|
|
125
|
+
y1: m,
|
|
126
|
+
y2: k,
|
|
127
|
+
curve: `M ${g} ${m} C ${g + 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
|
+
onToggleFullscreen: fe,
|
|
214
|
+
onGeneratePdf: l(J),
|
|
215
|
+
onGenerateImage: l(K),
|
|
216
|
+
onToggleAnnotator: G,
|
|
217
|
+
style: L({
|
|
218
|
+
visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
|
|
219
|
+
})
|
|
220
|
+
}, pe({ _: 2 }, [
|
|
221
|
+
t.$slots.menuIcon ? {
|
|
222
|
+
name: "menuIcon",
|
|
223
|
+
fn: x(({ isOpen: a, color: s }) => [
|
|
224
|
+
p(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
|
|
225
|
+
]),
|
|
226
|
+
key: "0"
|
|
227
|
+
} : void 0,
|
|
228
|
+
t.$slots.optionPdf ? {
|
|
229
|
+
name: "optionPdf",
|
|
230
|
+
fn: x(() => [
|
|
231
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
232
|
+
]),
|
|
233
|
+
key: "1"
|
|
234
|
+
} : void 0,
|
|
235
|
+
t.$slots.optionImg ? {
|
|
236
|
+
name: "optionImg",
|
|
237
|
+
fn: x(() => [
|
|
238
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
239
|
+
]),
|
|
240
|
+
key: "2"
|
|
241
|
+
} : void 0,
|
|
242
|
+
t.$slots.optionFullscreen ? {
|
|
243
|
+
name: "optionFullscreen",
|
|
244
|
+
fn: x(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
245
|
+
p(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
246
|
+
]),
|
|
247
|
+
key: "3"
|
|
248
|
+
} : void 0,
|
|
249
|
+
t.$slots.optionAnnotator ? {
|
|
250
|
+
name: "optionAnnotator",
|
|
251
|
+
fn: x(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
252
|
+
p(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
253
|
+
]),
|
|
254
|
+
key: "4"
|
|
255
|
+
} : void 0
|
|
256
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
257
|
+
M.value ? (n(), c("svg", {
|
|
258
|
+
key: 4,
|
|
259
|
+
ref_key: "svgRef",
|
|
260
|
+
ref: H,
|
|
261
|
+
xmlns: l(Pe),
|
|
262
|
+
class: j({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
263
|
+
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
264
|
+
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
265
|
+
}, [
|
|
266
|
+
ye(l(ce)),
|
|
267
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
268
|
+
key: 0,
|
|
269
|
+
x: 0,
|
|
270
|
+
y: 0,
|
|
271
|
+
width: o.value.width,
|
|
272
|
+
height: o.value.height,
|
|
273
|
+
style: {
|
|
274
|
+
pointerEvents: "none"
|
|
275
|
+
}
|
|
276
|
+
}, [
|
|
277
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
278
|
+
], 8, Ue)) : d("", !0),
|
|
279
|
+
e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
|
|
280
|
+
(n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
|
|
281
|
+
d: a.curve,
|
|
282
|
+
"stroke-width": v.value.mark,
|
|
283
|
+
stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
284
|
+
"stroke-linecap": "round",
|
|
285
|
+
fill: "none",
|
|
286
|
+
class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
|
|
287
|
+
}, null, 10, Le))), 256))
|
|
288
|
+
])) : (n(), c("g", je, [
|
|
289
|
+
(n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("line", {
|
|
290
|
+
x1: a.x1,
|
|
291
|
+
y1: a.y1,
|
|
292
|
+
x2: a.x2,
|
|
293
|
+
y2: a.y2,
|
|
294
|
+
"stroke-width": v.value.mark,
|
|
295
|
+
stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
296
|
+
"stroke-linecap": "round"
|
|
297
|
+
}, null, 8, Ee))), 256))
|
|
298
|
+
])),
|
|
299
|
+
e.value.style.chart.percentage.show ? (n(), c("text", {
|
|
300
|
+
key: 3,
|
|
301
|
+
x: _.value.x,
|
|
302
|
+
y: _.value.y,
|
|
303
|
+
"font-size": _.value.fontSize,
|
|
304
|
+
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,
|
|
305
|
+
"font-weight": _.value.bold ? "bold" : "normal",
|
|
306
|
+
"text-anchor": _.value.textAnchor
|
|
307
|
+
}, me(l(xe)(
|
|
308
|
+
e.value.style.chart.percentage.formatter,
|
|
309
|
+
u.value,
|
|
310
|
+
l(Oe)({
|
|
311
|
+
v: u.value,
|
|
312
|
+
s: "%",
|
|
313
|
+
r: e.value.style.chart.percentage.rounding
|
|
314
|
+
})
|
|
315
|
+
)), 9, Re)) : d("", !0),
|
|
316
|
+
p(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
317
|
+
], 14, Te)) : d("", !0),
|
|
318
|
+
t.$slots.watermark ? (n(), c("div", Be, [
|
|
319
|
+
p(t.$slots, "watermark", S(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
|
|
320
|
+
])) : d("", !0),
|
|
321
|
+
t.$slots.source ? (n(), c("div", Xe, [
|
|
322
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
323
|
+
], 512)) : d("", !0),
|
|
324
|
+
M.value ? d("", !0) : (n(), z(l(ue), {
|
|
325
|
+
key: 7,
|
|
326
|
+
config: {
|
|
327
|
+
type: "tiremarks",
|
|
328
|
+
style: {
|
|
329
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
330
|
+
tiremarks: {
|
|
331
|
+
color: "#CCCCCC"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}, null, 8, ["config"]))
|
|
336
|
+
], 46, Ne));
|
|
337
|
+
}
|
|
338
|
+
}, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-18f40a65"]]);
|
|
339
|
+
export {
|
|
340
|
+
Ze as default
|
|
341
|
+
};
|