vue-data-ui 3.0.0-next.7 → 3.0.0-next.71
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-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
- package/dist/Slicer-DYuvPkEM.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
- package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +610 -22
- package/dist/types/vue-data-ui.d.ts +610 -22
- package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-D-8c0o4p.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
- package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
- package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
- package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
- package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
- package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
- package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
- package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
- package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
- package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
- package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
- package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
- package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
- package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
- package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
- package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
- package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
- package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
- package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
- package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
- package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
- package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
- package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
- package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
- package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
- package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
- package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
- package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
- package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
- package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
- package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
- package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
- package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
- package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
- package/dist/vue-ui-wheel-De1spwLh.js +379 -0
- package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
- package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,761 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as A, computed as f, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as r, unref as n, normalizeStyle as Y, normalizeClass as R, createBlock as S, createCommentVNode as c, createVNode as Se, createSlots as tt, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as I, createElementVNode as x, Fragment as k, renderList as T, toDisplayString as z, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
|
|
2
|
-
import { u as st, c as le, t as rt, p as O, a as ut, o as it, e as ae, g as ze, b as nt, d as Oe, v as vt, D as ct, f as j, X as ht, i as oe, I as dt, l as pt, h as ft, x as Pe, E as yt, q as bt, r as mt, y as gt } from "./index-Cg-RjxqH.js";
|
|
3
|
-
import { t as kt, u as xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ne } from "./useNestedProp-C_G5E08Y.js";
|
|
5
|
-
import { u as wt } from "./usePrinter-BUzmyQf9.js";
|
|
6
|
-
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Tt from "./Title-B7Xb3YuE.js";
|
|
9
|
-
import { _ as _t } from "./Shape-C2qH26wh.js";
|
|
10
|
-
import Lt from "./img-D72yZNUg.js";
|
|
11
|
-
import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const St = ["id"], zt = ["xmlns", "viewBox"], Ot = ["x", "y", "width", "height"], Pt = { key: 1 }, Nt = { key: 0 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = { key: 1 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x", "y", "fill", "font-size"], Rt = ["x", "y", "font-size", "fill"], Et = ["x", "y", "font-size", "fill", "innerHTML"], Vt = ["fill", "font-size", "transform"], Ht = ["fill", "font-size", "x", "y"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Bt = ["cx", "cy", "fill"], Xt = ["cx", "cy", "fill"], Yt = ["id"], jt = ["stop-color"], qt = ["stop-color"], Jt = ["stop-color"], Kt = { key: 0 }, Qt = ["x", "y", "font-size", "fill"], Zt = {
|
|
13
|
-
key: 5,
|
|
14
|
-
class: "vue-data-ui-watermark"
|
|
15
|
-
}, el = ["innerHTML"], tl = {
|
|
16
|
-
__name: "vue-ui-strip-plot",
|
|
17
|
-
props: {
|
|
18
|
-
config: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default() {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
dataset: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default() {
|
|
27
|
-
return [];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ["selectDatapoint"],
|
|
32
|
-
setup(Me, { expose: Fe, emit: Ie }) {
|
|
33
|
-
const We = A(() => import("./vue-ui-accordion-CRomxzaL.js")), De = A(() => import("./DataTable-mQ6Wd-rR.js")), Ge = A(() => import("./PackageVersion-CeEYZfaH.js")), Re = A(() => import("./PenAndPaper-DhSxfUrQ.js")), Ee = A(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Ve = A(() => import("./Tooltip-BidRoM5E.js")), He = A(() => import("./UserOptions-0tvMM8PF.js")), { vue_ui_strip_plot: Ue } = st(), b = Me, Be = Ie, _ = f({
|
|
34
|
-
get() {
|
|
35
|
-
return !!b.dataset && b.dataset.length;
|
|
36
|
-
},
|
|
37
|
-
set(t) {
|
|
38
|
-
return t;
|
|
39
|
-
}
|
|
40
|
-
}), q = v(le()), se = v(0), J = v(!1), K = v(""), C = v(null), re = v(null), ue = v(null), ie = v(null), ne = v(!1), ve = v(0), ce = v(0), e = f({
|
|
41
|
-
get: () => fe(),
|
|
42
|
-
set: (t) => t
|
|
43
|
-
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = Ct({ config: e.value }), { svgRef: pe } = $t({ config: e.value.style.chart.title });
|
|
44
|
-
function fe() {
|
|
45
|
-
const t = Ne({
|
|
46
|
-
userConfig: b.config,
|
|
47
|
-
defaultConfig: Ue
|
|
48
|
-
});
|
|
49
|
-
return t.theme ? {
|
|
50
|
-
...Ne({
|
|
51
|
-
userConfig: ut.vue_ui_strip_plot[t.theme] || b.config,
|
|
52
|
-
defaultConfig: t
|
|
53
|
-
}),
|
|
54
|
-
customPalette: rt[t.theme] || O
|
|
55
|
-
} : t;
|
|
56
|
-
}
|
|
57
|
-
Qe(() => b.config, (t) => {
|
|
58
|
-
e.value = fe(), Q.value = !e.value.userOptions.showOnChartHover, ye(), ve.value += 1, ce.value += 1, d.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, d.value.showTable = e.value.table.show, d.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
59
|
-
}, { deep: !0 });
|
|
60
|
-
const $ = Ae(null), P = Ae(null);
|
|
61
|
-
Ze(() => {
|
|
62
|
-
ye();
|
|
63
|
-
});
|
|
64
|
-
function ye() {
|
|
65
|
-
if (it(b.dataset) ? ae({
|
|
66
|
-
componentName: "VueUiStripPlot",
|
|
67
|
-
type: "dataset"
|
|
68
|
-
}) : b.dataset.forEach((t, o) => {
|
|
69
|
-
ze({
|
|
70
|
-
datasetObject: t,
|
|
71
|
-
requiredAttributes: ["name", "plots"]
|
|
72
|
-
}).forEach((l) => {
|
|
73
|
-
_.value = !1, ae({
|
|
74
|
-
componentName: "VueUiStripPlot",
|
|
75
|
-
type: "datasetSerieAttribute",
|
|
76
|
-
property: l,
|
|
77
|
-
index: o
|
|
78
|
-
});
|
|
79
|
-
}), t.plots && t.plots.forEach((l, s) => {
|
|
80
|
-
ze({
|
|
81
|
-
datasetObject: l,
|
|
82
|
-
requiredAttributes: ["name", "value"]
|
|
83
|
-
}).forEach((i) => {
|
|
84
|
-
_.value = !1, ae({
|
|
85
|
-
componentName: "VueUiStripPlot",
|
|
86
|
-
type: "datasetSerieAttribute",
|
|
87
|
-
property: i,
|
|
88
|
-
index: `${o},${s}`
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
}), e.value.responsive) {
|
|
93
|
-
const t = kt(() => {
|
|
94
|
-
const { width: o, height: l } = xt({
|
|
95
|
-
chart: C.value,
|
|
96
|
-
title: e.value.style.chart.title.text ? re.value : null,
|
|
97
|
-
source: ue.value,
|
|
98
|
-
noTitle: ie.value
|
|
99
|
-
});
|
|
100
|
-
requestAnimationFrame(() => {
|
|
101
|
-
E.value = l, N.value.width = o, N.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = yt({
|
|
102
|
-
relator: Math.min(l, o),
|
|
103
|
-
adjuster: 600,
|
|
104
|
-
source: e.value.style.chart.plots.radius,
|
|
105
|
-
threshold: 6,
|
|
106
|
-
fallback: 6
|
|
107
|
-
}) : G.value = e.value.style.chart.plots.radius;
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(t), P.value = C.value.parentNode, $.value.observe(P.value);
|
|
111
|
-
}
|
|
112
|
-
ne.value = !0, setTimeout(() => {
|
|
113
|
-
W.value = !1;
|
|
114
|
-
}, Ye.value * 50);
|
|
115
|
-
}
|
|
116
|
-
et(() => {
|
|
117
|
-
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
|
|
118
|
-
});
|
|
119
|
-
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = wt({
|
|
120
|
-
elementId: `strip-plot_${q.value}`,
|
|
121
|
-
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
122
|
-
options: e.value.userOptions.print
|
|
123
|
-
}), Xe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => nt(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
|
|
124
|
-
showTable: e.value.table.show,
|
|
125
|
-
dataLabels: {
|
|
126
|
-
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
127
|
-
},
|
|
128
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
129
|
-
}), m = v({
|
|
130
|
-
top: e.value.style.chart.padding.top,
|
|
131
|
-
bottom: e.value.style.chart.padding.bottom,
|
|
132
|
-
left: e.value.style.chart.padding.left,
|
|
133
|
-
right: e.value.style.chart.padding.right
|
|
134
|
-
}), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), N = v({
|
|
135
|
-
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
136
|
-
height: e.value.style.chart.height
|
|
137
|
-
}), a = f(() => {
|
|
138
|
-
const t = D.value * b.dataset.length + m.value.left + m.value.right;
|
|
139
|
-
return {
|
|
140
|
-
left: m.value.left,
|
|
141
|
-
right: t - m.value.right,
|
|
142
|
-
top: m.value.top,
|
|
143
|
-
bottom: E.value - m.value.bottom,
|
|
144
|
-
width: D.value * b.dataset.length,
|
|
145
|
-
height: E.value - m.value.top - m.value.bottom,
|
|
146
|
-
stripWidth: D.value,
|
|
147
|
-
absoluteHeight: E.value,
|
|
148
|
-
absoluteWidth: t
|
|
149
|
-
};
|
|
150
|
-
}), V = f(() => _.value ? b.dataset.map((t, o) => {
|
|
151
|
-
const l = le();
|
|
152
|
-
return {
|
|
153
|
-
...t,
|
|
154
|
-
id: l,
|
|
155
|
-
color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
|
|
156
|
-
plots: t.plots.map((s) => ({
|
|
157
|
-
...s,
|
|
158
|
-
value: vt(s.value),
|
|
159
|
-
parentId: l,
|
|
160
|
-
color: t.color ? Oe(t.color) : xe.value[o] || O[o] || O[o % O.length],
|
|
161
|
-
id: le()
|
|
162
|
-
})).sort((s, i) => s.value - i.value)
|
|
163
|
-
};
|
|
164
|
-
}) : null), w = f(() => (V.value || []).map((t, o) => ({
|
|
165
|
-
...t,
|
|
166
|
-
plots: t.plots.map((l) => ({
|
|
167
|
-
...l,
|
|
168
|
-
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
169
|
-
}))
|
|
170
|
-
}))), Ye = f(() => Math.max(...w.value.map((t) => t.plots.length))), Z = f(() => {
|
|
171
|
-
const t = w.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
172
|
-
return {
|
|
173
|
-
max: Math.max(...t),
|
|
174
|
-
min: Math.min(...t)
|
|
175
|
-
};
|
|
176
|
-
}), L = f(() => ct(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), je = f(() => (w.value || []).map((t, o) => ({
|
|
177
|
-
...t,
|
|
178
|
-
plots: t.plots.map((l) => ({
|
|
179
|
-
...l,
|
|
180
|
-
y: a.value.bottom - (l.value + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min)) * a.value.height
|
|
181
|
-
}))
|
|
182
|
-
}))), we = f(() => L.value.ticks.map((t) => ({
|
|
183
|
-
y: a.value.bottom - a.value.height * ((t + Math.abs(L.value.min)) / (L.value.max + Math.abs(L.value.min))),
|
|
184
|
-
x1: a.value.left,
|
|
185
|
-
x2: a.value.right,
|
|
186
|
-
value: t
|
|
187
|
-
}))), ee = v(null), h = v(null);
|
|
188
|
-
function qe({ datapoint: t, seriesIndex: o }) {
|
|
189
|
-
ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: V.value }, J.value = !0, h.value = t;
|
|
190
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
191
|
-
if (Pe(l) && gt(() => l({
|
|
192
|
-
seriesIndex: o,
|
|
193
|
-
datapoint: t,
|
|
194
|
-
series: V.value,
|
|
195
|
-
config: e.value
|
|
196
|
-
})))
|
|
197
|
-
K.value = l({
|
|
198
|
-
seriesIndex: o,
|
|
199
|
-
datapoint: t,
|
|
200
|
-
series: V.value,
|
|
201
|
-
config: e.value
|
|
202
|
-
});
|
|
203
|
-
else {
|
|
204
|
-
let s = "";
|
|
205
|
-
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${oe(
|
|
206
|
-
e.value.style.chart.labels.formatter,
|
|
207
|
-
t.value,
|
|
208
|
-
j({
|
|
209
|
-
p: e.value.style.chart.labels.prefix,
|
|
210
|
-
v: t.value,
|
|
211
|
-
s: e.value.style.chart.labels.suffix,
|
|
212
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
213
|
-
}),
|
|
214
|
-
{ datapoint: t, seriesIndex: o }
|
|
215
|
-
)}</div>`, K.value = `<div>${s}</div>`;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
const H = f(() => {
|
|
219
|
-
const t = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => ({
|
|
220
|
-
name: `${l.name} - ${s.name}`,
|
|
221
|
-
color: s.color
|
|
222
|
-
}))), o = w.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, i) => i.value - s.value).map((s) => s.value));
|
|
223
|
-
return { head: t, body: o };
|
|
224
|
-
});
|
|
225
|
-
function Ce(t = null) {
|
|
226
|
-
ot(() => {
|
|
227
|
-
const o = H.value.head.map((i, g) => [[
|
|
228
|
-
i.name
|
|
229
|
-
], [H.value.body[g]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(o), s = bt(l);
|
|
230
|
-
t ? t(s) : mt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
const U = f(() => {
|
|
234
|
-
const t = [
|
|
235
|
-
e.value.table.columnNames.series,
|
|
236
|
-
e.value.table.columnNames.value
|
|
237
|
-
], o = H.value.head.map((i, g) => {
|
|
238
|
-
const X = j({
|
|
239
|
-
p: e.value.style.chart.labels.prefix,
|
|
240
|
-
v: H.value.body[g],
|
|
241
|
-
s: e.value.style.chart.labels.suffix,
|
|
242
|
-
r: e.value.table.td.roundingValue
|
|
243
|
-
});
|
|
244
|
-
return [
|
|
245
|
-
{
|
|
246
|
-
color: i.color,
|
|
247
|
-
name: i.name
|
|
248
|
-
},
|
|
249
|
-
X
|
|
250
|
-
];
|
|
251
|
-
}), l = {
|
|
252
|
-
th: {
|
|
253
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
254
|
-
color: e.value.table.th.color,
|
|
255
|
-
outline: e.value.table.th.outline
|
|
256
|
-
},
|
|
257
|
-
td: {
|
|
258
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
259
|
-
color: e.value.table.td.color,
|
|
260
|
-
outline: e.value.table.td.outline
|
|
261
|
-
},
|
|
262
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
263
|
-
};
|
|
264
|
-
return {
|
|
265
|
-
colNames: [
|
|
266
|
-
e.value.table.columnNames.series,
|
|
267
|
-
e.value.table.columnNames.value
|
|
268
|
-
],
|
|
269
|
-
head: t,
|
|
270
|
-
body: o,
|
|
271
|
-
config: l
|
|
272
|
-
};
|
|
273
|
-
}), M = v(!1);
|
|
274
|
-
function $e(t) {
|
|
275
|
-
M.value = t, se.value += 1;
|
|
276
|
-
}
|
|
277
|
-
function Je() {
|
|
278
|
-
return w.value;
|
|
279
|
-
}
|
|
280
|
-
function Te() {
|
|
281
|
-
d.value.showTable = !d.value.showTable;
|
|
282
|
-
}
|
|
283
|
-
function _e() {
|
|
284
|
-
d.value.dataLabels.show = !d.value.dataLabels.show;
|
|
285
|
-
}
|
|
286
|
-
function Le() {
|
|
287
|
-
d.value.showTooltip = !d.value.showTooltip;
|
|
288
|
-
}
|
|
289
|
-
const B = v(!1);
|
|
290
|
-
function te() {
|
|
291
|
-
B.value = !B.value;
|
|
292
|
-
}
|
|
293
|
-
async function Ke({ scale: t = 2 } = {}) {
|
|
294
|
-
if (!C.value) return;
|
|
295
|
-
const { width: o, height: l } = C.value.getBoundingClientRect(), s = o / l, { imageUri: i, base64: g } = await Lt({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
296
|
-
return {
|
|
297
|
-
imageUri: i,
|
|
298
|
-
base64: g,
|
|
299
|
-
title: e.value.style.chart.title.text,
|
|
300
|
-
width: o,
|
|
301
|
-
height: l,
|
|
302
|
-
aspectRatio: s
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
return Fe({
|
|
306
|
-
getData: Je,
|
|
307
|
-
getImage: Ke,
|
|
308
|
-
generatePdf: ge,
|
|
309
|
-
generateCsv: Ce,
|
|
310
|
-
generateImage: ke,
|
|
311
|
-
toggleTable: Te,
|
|
312
|
-
toggleLabels: _e,
|
|
313
|
-
toggleTooltip: Le,
|
|
314
|
-
toggleAnnotator: te,
|
|
315
|
-
toggleFullscreen: $e
|
|
316
|
-
}), (t, o) => (r(), u("div", {
|
|
317
|
-
ref_key: "stripPlotChart",
|
|
318
|
-
ref: C,
|
|
319
|
-
class: R(`vue-ui-strip-plot ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
320
|
-
style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
321
|
-
id: `strip-plot_${q.value}`,
|
|
322
|
-
onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
|
|
323
|
-
onMouseleave: o[3] || (o[3] = () => n(he)(!1))
|
|
324
|
-
}, [
|
|
325
|
-
e.value.userOptions.buttons.annotator ? (r(), S(n(Re), {
|
|
326
|
-
key: 0,
|
|
327
|
-
svgRef: n(pe),
|
|
328
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
329
|
-
color: e.value.style.chart.color,
|
|
330
|
-
active: B.value,
|
|
331
|
-
onClose: te
|
|
332
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
333
|
-
Xe.value ? (r(), u("div", {
|
|
334
|
-
key: 1,
|
|
335
|
-
ref_key: "noTitle",
|
|
336
|
-
ref: ie,
|
|
337
|
-
class: "vue-data-ui-no-title-space",
|
|
338
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
339
|
-
}, null, 512)) : c("", !0),
|
|
340
|
-
e.value.style.chart.title.text ? (r(), u("div", {
|
|
341
|
-
key: 2,
|
|
342
|
-
ref_key: "chartTitle",
|
|
343
|
-
ref: re,
|
|
344
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
345
|
-
}, [
|
|
346
|
-
(r(), S(Tt, {
|
|
347
|
-
key: `title_${ve.value}`,
|
|
348
|
-
config: {
|
|
349
|
-
title: {
|
|
350
|
-
cy: "donut-div-title",
|
|
351
|
-
...e.value.style.chart.title
|
|
352
|
-
},
|
|
353
|
-
subtitle: {
|
|
354
|
-
cy: "donut-div-subtitle",
|
|
355
|
-
...e.value.style.chart.title.subtitle
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
}, null, 8, ["config"]))
|
|
359
|
-
], 512)) : c("", !0),
|
|
360
|
-
e.value.userOptions.show && _.value && (n(de) || n(Q)) ? (r(), S(n(He), {
|
|
361
|
-
ref: "details",
|
|
362
|
-
key: `user_option_${se.value}`,
|
|
363
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
364
|
-
color: e.value.style.chart.color,
|
|
365
|
-
isPrinting: n(be),
|
|
366
|
-
isImaging: n(me),
|
|
367
|
-
uid: q.value,
|
|
368
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
369
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
370
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
371
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
372
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
373
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
374
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
375
|
-
isTooltip: d.value.showTooltip,
|
|
376
|
-
isFullscreen: M.value,
|
|
377
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
378
|
-
chartElement: C.value,
|
|
379
|
-
position: e.value.userOptions.position,
|
|
380
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
381
|
-
isAnnotation: B.value,
|
|
382
|
-
callbacks: e.value.userOptions.callbacks,
|
|
383
|
-
printScale: e.value.userOptions.print.scale,
|
|
384
|
-
onToggleFullscreen: $e,
|
|
385
|
-
onGeneratePdf: n(ge),
|
|
386
|
-
onGenerateCsv: Ce,
|
|
387
|
-
onGenerateImage: n(ke),
|
|
388
|
-
onToggleTable: Te,
|
|
389
|
-
onToggleLabels: _e,
|
|
390
|
-
onToggleTooltip: Le,
|
|
391
|
-
onToggleAnnotator: te,
|
|
392
|
-
style: Y({
|
|
393
|
-
visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
394
|
-
})
|
|
395
|
-
}, tt({ _: 2 }, [
|
|
396
|
-
t.$slots.menuIcon ? {
|
|
397
|
-
name: "menuIcon",
|
|
398
|
-
fn: y(({ isOpen: l, color: s }) => [
|
|
399
|
-
p(t.$slots, "menuIcon", F(I({ isOpen: l, color: s })), void 0, !0)
|
|
400
|
-
]),
|
|
401
|
-
key: "0"
|
|
402
|
-
} : void 0,
|
|
403
|
-
t.$slots.optionTooltip ? {
|
|
404
|
-
name: "optionTooltip",
|
|
405
|
-
fn: y(() => [
|
|
406
|
-
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
407
|
-
]),
|
|
408
|
-
key: "1"
|
|
409
|
-
} : void 0,
|
|
410
|
-
t.$slots.optionPdf ? {
|
|
411
|
-
name: "optionPdf",
|
|
412
|
-
fn: y(() => [
|
|
413
|
-
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
414
|
-
]),
|
|
415
|
-
key: "2"
|
|
416
|
-
} : void 0,
|
|
417
|
-
t.$slots.optionCsv ? {
|
|
418
|
-
name: "optionCsv",
|
|
419
|
-
fn: y(() => [
|
|
420
|
-
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
421
|
-
]),
|
|
422
|
-
key: "3"
|
|
423
|
-
} : void 0,
|
|
424
|
-
t.$slots.optionImg ? {
|
|
425
|
-
name: "optionImg",
|
|
426
|
-
fn: y(() => [
|
|
427
|
-
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
428
|
-
]),
|
|
429
|
-
key: "4"
|
|
430
|
-
} : void 0,
|
|
431
|
-
t.$slots.optionTable ? {
|
|
432
|
-
name: "optionTable",
|
|
433
|
-
fn: y(() => [
|
|
434
|
-
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
435
|
-
]),
|
|
436
|
-
key: "5"
|
|
437
|
-
} : void 0,
|
|
438
|
-
t.$slots.optionLabels ? {
|
|
439
|
-
name: "optionLabels",
|
|
440
|
-
fn: y(() => [
|
|
441
|
-
p(t.$slots, "optionLabels", {}, void 0, !0)
|
|
442
|
-
]),
|
|
443
|
-
key: "6"
|
|
444
|
-
} : void 0,
|
|
445
|
-
t.$slots.optionFullscreen ? {
|
|
446
|
-
name: "optionFullscreen",
|
|
447
|
-
fn: y(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
448
|
-
p(t.$slots, "optionFullscreen", F(I({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
449
|
-
]),
|
|
450
|
-
key: "7"
|
|
451
|
-
} : void 0,
|
|
452
|
-
t.$slots.optionAnnotator ? {
|
|
453
|
-
name: "optionAnnotator",
|
|
454
|
-
fn: y(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
455
|
-
p(t.$slots, "optionAnnotator", F(I({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
456
|
-
]),
|
|
457
|
-
key: "8"
|
|
458
|
-
} : void 0
|
|
459
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
460
|
-
_.value ? (r(), u("svg", {
|
|
461
|
-
key: 4,
|
|
462
|
-
ref_key: "svgRef",
|
|
463
|
-
ref: pe,
|
|
464
|
-
xmlns: n(ht),
|
|
465
|
-
class: R({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
466
|
-
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
467
|
-
style: Y(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
468
|
-
}, [
|
|
469
|
-
Se(n(Ge)),
|
|
470
|
-
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
471
|
-
key: 0,
|
|
472
|
-
x: a.value.left,
|
|
473
|
-
y: a.value.top,
|
|
474
|
-
width: Math.max(0.1, a.value.width),
|
|
475
|
-
height: Math.max(0.1, a.value.height),
|
|
476
|
-
style: {
|
|
477
|
-
pointerEvents: "none"
|
|
478
|
-
}
|
|
479
|
-
}, [
|
|
480
|
-
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
481
|
-
], 8, Ot)) : c("", !0),
|
|
482
|
-
e.value.style.chart.grid.show ? (r(), u("g", Pt, [
|
|
483
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", Nt, [
|
|
484
|
-
(r(!0), u(k, null, T(we.value, (l) => (r(), u("line", {
|
|
485
|
-
x1: l.x1,
|
|
486
|
-
x2: l.x2,
|
|
487
|
-
y1: l.y,
|
|
488
|
-
y2: l.y,
|
|
489
|
-
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
490
|
-
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
491
|
-
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
492
|
-
"stroke-linecap": "round"
|
|
493
|
-
}, null, 8, Mt))), 256))
|
|
494
|
-
])) : c("", !0),
|
|
495
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", Ft, [
|
|
496
|
-
(r(!0), u(k, null, T(w.value, (l, s) => (r(), u("line", {
|
|
497
|
-
x1: a.value.left + (s + 1) * a.value.stripWidth,
|
|
498
|
-
x2: a.value.left + (s + 1) * a.value.stripWidth,
|
|
499
|
-
y1: a.value.top,
|
|
500
|
-
y2: a.value.bottom,
|
|
501
|
-
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
502
|
-
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
503
|
-
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
504
|
-
"stroke-linecap": "round"
|
|
505
|
-
}, null, 8, It))), 256))
|
|
506
|
-
])) : c("", !0),
|
|
507
|
-
x("line", {
|
|
508
|
-
x1: a.value.left,
|
|
509
|
-
x2: a.value.left,
|
|
510
|
-
y1: a.value.top,
|
|
511
|
-
y2: a.value.bottom,
|
|
512
|
-
stroke: e.value.style.chart.grid.stroke,
|
|
513
|
-
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
514
|
-
"stroke-linecap": "round"
|
|
515
|
-
}, null, 8, Wt),
|
|
516
|
-
x("line", {
|
|
517
|
-
x1: a.value.left,
|
|
518
|
-
x2: a.value.right,
|
|
519
|
-
y1: a.value.bottom,
|
|
520
|
-
y2: a.value.bottom,
|
|
521
|
-
stroke: e.value.style.chart.grid.stroke,
|
|
522
|
-
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
523
|
-
"stroke-linecap": "round"
|
|
524
|
-
}, null, 8, Dt)
|
|
525
|
-
])) : c("", !0),
|
|
526
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(!0), u(k, { key: 2 }, T(we.value, (l, s) => (r(), u("text", {
|
|
527
|
-
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
528
|
-
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
529
|
-
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
530
|
-
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
531
|
-
"text-anchor": "end"
|
|
532
|
-
}, z(n(oe)(
|
|
533
|
-
e.value.style.chart.labels.formatter,
|
|
534
|
-
l.value,
|
|
535
|
-
n(j)({
|
|
536
|
-
p: e.value.style.chart.labels.prefix,
|
|
537
|
-
v: l.value,
|
|
538
|
-
s: e.value.style.chart.labels.suffix,
|
|
539
|
-
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
540
|
-
}),
|
|
541
|
-
{ datapoint: l, seriesIndex: s }
|
|
542
|
-
)), 9, Gt))), 256)) : c("", !0),
|
|
543
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(!0), u(k, { key: 3 }, T(w.value, (l, s) => (r(), u("g", null, [
|
|
544
|
-
String(l.name).includes(`
|
|
545
|
-
`) ? (r(), u("text", {
|
|
546
|
-
key: 1,
|
|
547
|
-
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
548
|
-
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
549
|
-
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
550
|
-
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
551
|
-
"text-anchor": "middle",
|
|
552
|
-
innerHTML: n(dt)({
|
|
553
|
-
content: String(l.name),
|
|
554
|
-
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
555
|
-
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
556
|
-
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
557
|
-
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY
|
|
558
|
-
})
|
|
559
|
-
}, null, 8, Et)) : (r(), u("text", {
|
|
560
|
-
key: 0,
|
|
561
|
-
x: a.value.left + (s + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
562
|
-
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
563
|
-
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
564
|
-
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
565
|
-
"text-anchor": "middle"
|
|
566
|
-
}, z(l.name), 9, Rt))
|
|
567
|
-
]))), 256)) : c("", !0),
|
|
568
|
-
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
569
|
-
key: 4,
|
|
570
|
-
fill: e.value.style.chart.labels.axis.color,
|
|
571
|
-
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
572
|
-
transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
|
|
573
|
-
"text-anchor": "middle"
|
|
574
|
-
}, z(e.value.style.chart.labels.axis.yLabel), 9, Vt)) : c("", !0),
|
|
575
|
-
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
576
|
-
key: 5,
|
|
577
|
-
fill: e.value.style.chart.labels.axis.color,
|
|
578
|
-
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
579
|
-
x: a.value.left + a.value.width / 2,
|
|
580
|
-
y: a.value.absoluteHeight,
|
|
581
|
-
"text-anchor": "middle"
|
|
582
|
-
}, z(e.value.style.chart.labels.axis.xLabel), 9, Ht)) : c("", !0),
|
|
583
|
-
h.value ? (r(), u(k, { key: 6 }, [
|
|
584
|
-
x("line", {
|
|
585
|
-
x1: a.value.left,
|
|
586
|
-
x2: a.value.right,
|
|
587
|
-
y1: h.value.y,
|
|
588
|
-
y2: h.value.y,
|
|
589
|
-
stroke: h.value.color,
|
|
590
|
-
"stroke-width": 1,
|
|
591
|
-
class: R({ "select-circle": e.value.useCssAnimation })
|
|
592
|
-
}, null, 10, Ut),
|
|
593
|
-
x("circle", {
|
|
594
|
-
cx: a.value.left,
|
|
595
|
-
cy: h.value.y,
|
|
596
|
-
r: 3,
|
|
597
|
-
fill: h.value.color,
|
|
598
|
-
class: R({ "select-circle": e.value.useCssAnimation })
|
|
599
|
-
}, null, 10, Bt),
|
|
600
|
-
x("circle", {
|
|
601
|
-
cx: a.value.right,
|
|
602
|
-
cy: h.value.y,
|
|
603
|
-
r: 3,
|
|
604
|
-
fill: h.value.color,
|
|
605
|
-
class: R({ "select-circle": e.value.useCssAnimation })
|
|
606
|
-
}, null, 10, Xt)
|
|
607
|
-
], 64)) : c("", !0),
|
|
608
|
-
x("defs", null, [
|
|
609
|
-
(r(!0), u(k, null, T(w.value, (l) => (r(), u("radialGradient", {
|
|
610
|
-
id: l.id,
|
|
611
|
-
fy: "30%"
|
|
612
|
-
}, [
|
|
613
|
-
x("stop", {
|
|
614
|
-
offset: "10%",
|
|
615
|
-
"stop-color": n(pt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
616
|
-
}, null, 8, jt),
|
|
617
|
-
x("stop", {
|
|
618
|
-
offset: "90%",
|
|
619
|
-
"stop-color": n(ft)(l.color, 0.1)
|
|
620
|
-
}, null, 8, qt),
|
|
621
|
-
x("stop", {
|
|
622
|
-
offset: "100%",
|
|
623
|
-
"stop-color": l.color
|
|
624
|
-
}, null, 8, Jt)
|
|
625
|
-
], 8, Yt))), 256))
|
|
626
|
-
]),
|
|
627
|
-
(r(!0), u(k, null, T(je.value, (l, s) => (r(), u(k, null, [
|
|
628
|
-
(r(!0), u(k, null, T(l.plots, (i, g) => (r(), S(_t, lt({
|
|
629
|
-
plot: { x: i.x, y: ne.value ? i.y : a.value.top },
|
|
630
|
-
radius: h.value && h.value.id === i.id ? G.value * 1.5 : G.value,
|
|
631
|
-
shape: e.value.style.chart.plots.shape,
|
|
632
|
-
stroke: e.value.style.chart.plots.stroke,
|
|
633
|
-
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
634
|
-
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
635
|
-
onMouseenter: (X) => qe({ datapoint: i, seriesIndex: g }),
|
|
636
|
-
onMouseleave: o[0] || (o[0] = (X) => {
|
|
637
|
-
J.value = !1, h.value = null;
|
|
638
|
-
}),
|
|
639
|
-
onClick: (X) => Be("selectDatapoint", i),
|
|
640
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === i.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${g * 50}ms` : ""}`,
|
|
641
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
642
|
-
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
643
|
-
d.value.dataLabels.show ? (r(), u("g", Kt, [
|
|
644
|
-
(r(!0), u(k, null, T(l.plots, (i, g) => (r(), u(k, null, [
|
|
645
|
-
g === l.plots.length - 1 || h.value && h.value.id === i.id && !d.value.showTooltip ? (r(), u("text", {
|
|
646
|
-
key: 0,
|
|
647
|
-
x: i.x,
|
|
648
|
-
y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !d.value.showTooltip ? 2 : 1.5),
|
|
649
|
-
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
650
|
-
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
651
|
-
"text-anchor": "middle",
|
|
652
|
-
style: Y(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
653
|
-
}, z(i.name) + " " + z(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
|
|
654
|
-
e.value.style.chart.labels.formatter,
|
|
655
|
-
i.value,
|
|
656
|
-
n(j)({
|
|
657
|
-
p: `(${e.value.style.chart.labels.prefix}`,
|
|
658
|
-
v: i.value,
|
|
659
|
-
s: `${e.value.style.chart.labels.suffix})`,
|
|
660
|
-
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
661
|
-
}),
|
|
662
|
-
{ datapoint: i, seriesIndex: g }
|
|
663
|
-
) : ""), 13, Qt)) : c("", !0)
|
|
664
|
-
], 64))), 256))
|
|
665
|
-
])) : c("", !0)
|
|
666
|
-
], 64))), 256)),
|
|
667
|
-
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
668
|
-
], 14, zt)) : c("", !0),
|
|
669
|
-
t.$slots.watermark ? (r(), u("div", Zt, [
|
|
670
|
-
p(t.$slots, "watermark", F(I({ isPrinting: n(be) || n(me) })), void 0, !0)
|
|
671
|
-
])) : c("", !0),
|
|
672
|
-
_.value ? c("", !0) : (r(), S(n(Ee), {
|
|
673
|
-
key: 6,
|
|
674
|
-
config: {
|
|
675
|
-
type: "stripPlot",
|
|
676
|
-
style: {
|
|
677
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
678
|
-
stripPlot: {
|
|
679
|
-
color: "#CCCCCC"
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}, null, 8, ["config"])),
|
|
684
|
-
t.$slots.source ? (r(), u("div", {
|
|
685
|
-
key: 7,
|
|
686
|
-
ref_key: "source",
|
|
687
|
-
ref: ue,
|
|
688
|
-
dir: "auto"
|
|
689
|
-
}, [
|
|
690
|
-
p(t.$slots, "source", {}, void 0, !0)
|
|
691
|
-
], 512)) : c("", !0),
|
|
692
|
-
Se(n(Ve), {
|
|
693
|
-
show: d.value.showTooltip && J.value,
|
|
694
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
695
|
-
color: e.value.style.chart.tooltip.color,
|
|
696
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
697
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
698
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
699
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
700
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
701
|
-
position: e.value.style.chart.tooltip.position,
|
|
702
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
703
|
-
parent: C.value,
|
|
704
|
-
content: K.value,
|
|
705
|
-
isFullscreen: M.value,
|
|
706
|
-
isCustom: n(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
707
|
-
}, {
|
|
708
|
-
"tooltip-before": y(() => [
|
|
709
|
-
p(t.$slots, "tooltip-before", F(I({ ...ee.value })), void 0, !0)
|
|
710
|
-
]),
|
|
711
|
-
"tooltip-after": y(() => [
|
|
712
|
-
p(t.$slots, "tooltip-after", F(I({ ...ee.value })), void 0, !0)
|
|
713
|
-
]),
|
|
714
|
-
_: 3
|
|
715
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
716
|
-
_.value ? (r(), S(n(We), {
|
|
717
|
-
key: 8,
|
|
718
|
-
hideDetails: "",
|
|
719
|
-
config: {
|
|
720
|
-
open: d.value.showTable,
|
|
721
|
-
maxHeight: 1e4,
|
|
722
|
-
body: {
|
|
723
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
724
|
-
color: e.value.style.chart.color
|
|
725
|
-
},
|
|
726
|
-
head: {
|
|
727
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
728
|
-
color: e.value.style.chart.color
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
}, {
|
|
732
|
-
content: y(() => [
|
|
733
|
-
(r(), S(n(De), {
|
|
734
|
-
key: `table_${ce.value}`,
|
|
735
|
-
colNames: U.value.colNames,
|
|
736
|
-
head: U.value.head,
|
|
737
|
-
body: U.value.body,
|
|
738
|
-
config: U.value.config,
|
|
739
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
740
|
-
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
741
|
-
}, {
|
|
742
|
-
th: y(({ th: l }) => [
|
|
743
|
-
x("div", {
|
|
744
|
-
innerHTML: l,
|
|
745
|
-
style: { display: "flex", "align-items": "center" }
|
|
746
|
-
}, null, 8, el)
|
|
747
|
-
]),
|
|
748
|
-
td: y(({ td: l }) => [
|
|
749
|
-
at(z(l.name || l), 1)
|
|
750
|
-
]),
|
|
751
|
-
_: 1
|
|
752
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
753
|
-
]),
|
|
754
|
-
_: 1
|
|
755
|
-
}, 8, ["config"])) : c("", !0)
|
|
756
|
-
], 46, St));
|
|
757
|
-
}
|
|
758
|
-
}, dl = /* @__PURE__ */ At(tl, [["__scopeId", "data-v-678d1447"]]);
|
|
759
|
-
export {
|
|
760
|
-
dl as default
|
|
761
|
-
};
|