vue-data-ui 2.12.7-beta.0 → 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-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as ze } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
1
|
+
import { defineAsyncComponent as A, computed as f, ref as v, watch as Ke, shallowRef as Ae, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as j, normalizeClass as G, createBlock as L, createCommentVNode as c, createVNode as Le, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as F, guardReactiveProps as M, createElementVNode as k, Fragment as g, renderList as C, toDisplayString as P, mergeProps as tt, createTextVNode as lt, nextTick as at } from "vue";
|
|
2
|
+
import { u as ot, c as le, t as st, p as S, a as rt, o as ut, e as ae, g as Pe, b as nt, d as Se, v as it, D as vt, f as Y, X as ct, i as oe, l as ht, h as dt, x as Oe, F as pt, q as ft, r as yt, y as bt } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { t as mt, u as gt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as kt } from "./usePrinter-C8URL2IU.js";
|
|
6
|
+
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Ct from "./Title-Bc66VstS.js";
|
|
9
|
+
import $t from "./Shape-B6kIkp2s.js";
|
|
9
10
|
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"],
|
|
11
|
+
const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"], Pt = { key: 1 }, St = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = { key: 1 }, Nt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "fill", "font-size"], Wt = ["x", "y", "font-size", "fill"], Dt = ["fill", "font-size", "transform"], Gt = ["fill", "font-size", "x", "y"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Vt = ["cx", "cy", "fill"], Et = ["cx", "cy", "fill"], Ut = ["id"], Ht = ["stop-color"], Bt = ["stop-color"], Xt = ["stop-color"], jt = { key: 0 }, Yt = ["x", "y", "font-size", "fill"], qt = {
|
|
11
12
|
key: 5,
|
|
12
13
|
class: "vue-data-ui-watermark"
|
|
13
14
|
}, Jt = ["innerHTML"], Kt = {
|
|
@@ -28,75 +29,75 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
28
29
|
},
|
|
29
30
|
emits: ["selectDatapoint"],
|
|
30
31
|
setup(Ne, { expose: Fe, emit: Me }) {
|
|
31
|
-
const Ie =
|
|
32
|
+
const Ie = A(() => import("./vue-ui-accordion-DntThSTF.js")), We = A(() => import("./DataTable-Y5HbiUZU.js")), De = A(() => import("./PackageVersion-DaWGaZxE.js")), Ge = A(() => import("./PenAndPaper-C-CpE0NC.js")), Re = A(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), Ve = A(() => import("./Tooltip-B07vY6jm.js")), Ee = A(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_strip_plot: Ue } = ot(), b = Ne, He = Me, $ = f({
|
|
32
33
|
get() {
|
|
33
34
|
return !!b.dataset && b.dataset.length;
|
|
34
35
|
},
|
|
35
36
|
set(t) {
|
|
36
37
|
return t;
|
|
37
38
|
}
|
|
38
|
-
}), q = v(le()), se = v(0), J = v(!1), K = v(""), I = v(null), re = v(null), ue = v(null), ne = v(null), ie = v(!1), ve = v(0), ce = v(0), e =
|
|
39
|
-
get: () =>
|
|
39
|
+
}), q = v(le()), se = v(0), J = v(!1), K = v(""), I = v(null), re = v(null), ue = v(null), ne = v(null), ie = v(!1), ve = v(0), ce = v(0), e = f({
|
|
40
|
+
get: () => fe(),
|
|
40
41
|
set: (t) => t
|
|
41
|
-
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } =
|
|
42
|
-
function
|
|
42
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = xt({ config: e.value }), { svgRef: pe } = wt({ config: e.value.style.chart.title });
|
|
43
|
+
function fe() {
|
|
43
44
|
const t = ze({
|
|
44
45
|
userConfig: b.config,
|
|
45
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: Ue
|
|
46
47
|
});
|
|
47
48
|
return t.theme ? {
|
|
48
49
|
...ze({
|
|
49
|
-
userConfig:
|
|
50
|
+
userConfig: rt.vue_ui_strip_plot[t.theme] || b.config,
|
|
50
51
|
defaultConfig: t
|
|
51
52
|
}),
|
|
52
|
-
customPalette:
|
|
53
|
+
customPalette: st[t.theme] || S
|
|
53
54
|
} : t;
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
e.value =
|
|
56
|
+
Ke(() => b.config, (t) => {
|
|
57
|
+
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;
|
|
57
58
|
}, { deep: !0 });
|
|
58
59
|
const w = Ae(null), O = Ae(null);
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
Qe(() => {
|
|
61
|
+
ye();
|
|
61
62
|
});
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
63
|
+
function ye() {
|
|
64
|
+
if (ut(b.dataset) ? ae({
|
|
64
65
|
componentName: "VueUiStripPlot",
|
|
65
66
|
type: "dataset"
|
|
66
67
|
}) : b.dataset.forEach((t, o) => {
|
|
67
|
-
|
|
68
|
+
Pe({
|
|
68
69
|
datasetObject: t,
|
|
69
70
|
requiredAttributes: ["name", "plots"]
|
|
70
71
|
}).forEach((l) => {
|
|
71
|
-
|
|
72
|
+
$.value = !1, ae({
|
|
72
73
|
componentName: "VueUiStripPlot",
|
|
73
74
|
type: "datasetSerieAttribute",
|
|
74
75
|
property: l,
|
|
75
76
|
index: o
|
|
76
77
|
});
|
|
77
78
|
}), t.plots && t.plots.forEach((l, r) => {
|
|
78
|
-
|
|
79
|
+
Pe({
|
|
79
80
|
datasetObject: l,
|
|
80
81
|
requiredAttributes: ["name", "value"]
|
|
81
|
-
}).forEach((
|
|
82
|
-
|
|
82
|
+
}).forEach((n) => {
|
|
83
|
+
$.value = !1, ae({
|
|
83
84
|
componentName: "VueUiStripPlot",
|
|
84
85
|
type: "datasetSerieAttribute",
|
|
85
|
-
property:
|
|
86
|
+
property: n,
|
|
86
87
|
index: `${o},${r}`
|
|
87
88
|
});
|
|
88
89
|
});
|
|
89
90
|
});
|
|
90
91
|
}), e.value.responsive) {
|
|
91
|
-
const t =
|
|
92
|
-
const { width: o, height: l } =
|
|
92
|
+
const t = mt(() => {
|
|
93
|
+
const { width: o, height: l } = gt({
|
|
93
94
|
chart: I.value,
|
|
94
95
|
title: e.value.style.chart.title.text ? re.value : null,
|
|
95
96
|
source: ue.value,
|
|
96
97
|
noTitle: ne.value
|
|
97
98
|
});
|
|
98
99
|
requestAnimationFrame(() => {
|
|
99
|
-
R.value = l, z.value.width = o, z.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, V.value =
|
|
100
|
+
R.value = l, z.value.width = o, z.value.height = l, D.value = (o - m.value.left - m.value.right) / b.dataset.length, V.value = pt({
|
|
100
101
|
relator: Math.min(l, o),
|
|
101
102
|
adjuster: 600,
|
|
102
103
|
source: e.value.style.chart.plots.radius,
|
|
@@ -109,16 +110,16 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
109
110
|
}
|
|
110
111
|
ie.value = !0, setTimeout(() => {
|
|
111
112
|
W.value = !1;
|
|
112
|
-
},
|
|
113
|
+
}, Xe.value * 50);
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
+
Ze(() => {
|
|
115
116
|
w.value && (O.value && w.value.unobserve(O.value), w.value.disconnect());
|
|
116
117
|
});
|
|
117
|
-
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } =
|
|
118
|
+
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = kt({
|
|
118
119
|
elementId: `strip-plot_${q.value}`,
|
|
119
120
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
120
121
|
options: e.value.userOptions.print
|
|
121
|
-
}),
|
|
122
|
+
}), Be = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => nt(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
|
|
122
123
|
showTable: e.value.table.show,
|
|
123
124
|
dataLabels: {
|
|
124
125
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -132,7 +133,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
132
133
|
}), D = v(e.value.style.chart.stripWidth), R = v(e.value.style.chart.height), V = v(e.value.style.chart.plots.radius), z = v({
|
|
133
134
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
134
135
|
height: e.value.style.chart.height
|
|
135
|
-
}), a =
|
|
136
|
+
}), a = f(() => {
|
|
136
137
|
const t = D.value * b.dataset.length + m.value.left + m.value.right;
|
|
137
138
|
return {
|
|
138
139
|
left: m.value.left,
|
|
@@ -145,48 +146,48 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
145
146
|
absoluteHeight: R.value,
|
|
146
147
|
absoluteWidth: t
|
|
147
148
|
};
|
|
148
|
-
}), E =
|
|
149
|
+
}), E = f(() => $.value ? b.dataset.map((t, o) => {
|
|
149
150
|
const l = le();
|
|
150
151
|
return {
|
|
151
152
|
...t,
|
|
152
153
|
id: l,
|
|
153
|
-
color: t.color ?
|
|
154
|
+
color: t.color ? Se(t.color) : xe.value[o] || S[o] || S[o % S.length],
|
|
154
155
|
plots: t.plots.map((r) => ({
|
|
155
156
|
...r,
|
|
156
|
-
value:
|
|
157
|
+
value: it(r.value),
|
|
157
158
|
parentId: l,
|
|
158
|
-
color: t.color ?
|
|
159
|
+
color: t.color ? Se(t.color) : xe.value[o] || S[o] || S[o % S.length],
|
|
159
160
|
id: le()
|
|
160
|
-
})).sort((r,
|
|
161
|
+
})).sort((r, n) => r.value - n.value)
|
|
161
162
|
};
|
|
162
|
-
}) : null), x =
|
|
163
|
+
}) : null), x = f(() => (E.value || []).map((t, o) => ({
|
|
163
164
|
...t,
|
|
164
165
|
plots: t.plots.map((l) => ({
|
|
165
166
|
...l,
|
|
166
167
|
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
167
168
|
}))
|
|
168
|
-
}))),
|
|
169
|
+
}))), Xe = f(() => Math.max(...x.value.map((t) => t.plots.length))), Z = f(() => {
|
|
169
170
|
const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
170
171
|
return {
|
|
171
172
|
max: Math.max(...t),
|
|
172
173
|
min: Math.min(...t)
|
|
173
174
|
};
|
|
174
|
-
}),
|
|
175
|
+
}), T = f(() => vt(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), je = f(() => (x.value || []).map((t, o) => ({
|
|
175
176
|
...t,
|
|
176
177
|
plots: t.plots.map((l) => ({
|
|
177
178
|
...l,
|
|
178
|
-
y: a.value.bottom - (l.value + Math.abs(
|
|
179
|
+
y: a.value.bottom - (l.value + Math.abs(T.value.min)) / (T.value.max + Math.abs(T.value.min)) * a.value.height
|
|
179
180
|
}))
|
|
180
|
-
}))), we =
|
|
181
|
-
y: a.value.bottom - a.value.height * ((t + Math.abs(
|
|
181
|
+
}))), we = f(() => T.value.ticks.map((t) => ({
|
|
182
|
+
y: a.value.bottom - a.value.height * ((t + Math.abs(T.value.min)) / (T.value.max + Math.abs(T.value.min))),
|
|
182
183
|
x1: a.value.left,
|
|
183
184
|
x2: a.value.right,
|
|
184
185
|
value: t
|
|
185
186
|
}))), ee = v(null), h = v(null);
|
|
186
|
-
function
|
|
187
|
+
function Ye({ datapoint: t, seriesIndex: o }) {
|
|
187
188
|
ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: E.value }, J.value = !0, h.value = t;
|
|
188
189
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
189
|
-
if (Oe(l) &&
|
|
190
|
+
if (Oe(l) && bt(() => l({
|
|
190
191
|
seriesIndex: o,
|
|
191
192
|
datapoint: t,
|
|
192
193
|
series: E.value,
|
|
@@ -213,36 +214,36 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
213
214
|
)}</div>`, K.value = `<div>${r}</div>`;
|
|
214
215
|
}
|
|
215
216
|
}
|
|
216
|
-
const U =
|
|
217
|
-
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r,
|
|
217
|
+
const U = f(() => {
|
|
218
|
+
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, n) => n.value - r.value).map((r) => ({
|
|
218
219
|
name: `${l.name} - ${r.name}`,
|
|
219
220
|
color: r.color
|
|
220
|
-
}))), o = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r,
|
|
221
|
+
}))), o = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, n) => n.value - r.value).map((r) => r.value));
|
|
221
222
|
return { head: t, body: o };
|
|
222
223
|
});
|
|
223
224
|
function Ce() {
|
|
224
|
-
|
|
225
|
-
const t = U.value.head.map((r,
|
|
225
|
+
at(() => {
|
|
226
|
+
const t = U.value.head.map((r, n) => [[
|
|
226
227
|
r.name
|
|
227
|
-
], [U.value.body[
|
|
228
|
-
|
|
228
|
+
], [U.value.body[n]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(t), l = ft(o);
|
|
229
|
+
yt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
|
-
const H =
|
|
232
|
+
const H = f(() => {
|
|
232
233
|
const t = [
|
|
233
234
|
e.value.table.columnNames.series,
|
|
234
235
|
e.value.table.columnNames.value
|
|
235
|
-
], o = U.value.head.map((
|
|
236
|
+
], o = U.value.head.map((n, _) => {
|
|
236
237
|
const X = Y({
|
|
237
238
|
p: e.value.style.chart.labels.prefix,
|
|
238
|
-
v: U.value.body[
|
|
239
|
+
v: U.value.body[_],
|
|
239
240
|
s: e.value.style.chart.labels.suffix,
|
|
240
241
|
r: e.value.table.td.roundingValue
|
|
241
242
|
});
|
|
242
243
|
return [
|
|
243
244
|
{
|
|
244
|
-
color:
|
|
245
|
-
name:
|
|
245
|
+
color: n.color,
|
|
246
|
+
name: n.name
|
|
246
247
|
},
|
|
247
248
|
X
|
|
248
249
|
];
|
|
@@ -269,10 +270,10 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
269
270
|
config: l
|
|
270
271
|
};
|
|
271
272
|
}), N = v(!1);
|
|
272
|
-
function
|
|
273
|
+
function qe(t) {
|
|
273
274
|
N.value = t, se.value += 1;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function Je() {
|
|
276
277
|
return x.value;
|
|
277
278
|
}
|
|
278
279
|
function $e() {
|
|
@@ -289,7 +290,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
289
290
|
B.value = !B.value;
|
|
290
291
|
}
|
|
291
292
|
return Fe({
|
|
292
|
-
getData:
|
|
293
|
+
getData: Je,
|
|
293
294
|
generatePdf: ge,
|
|
294
295
|
generateCsv: Ce,
|
|
295
296
|
generateImage: ke,
|
|
@@ -303,18 +304,18 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
303
304
|
class: G(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
304
305
|
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
305
306
|
id: `strip-plot_${q.value}`,
|
|
306
|
-
onMouseenter: o[2] || (o[2] = () =>
|
|
307
|
-
onMouseleave: o[3] || (o[3] = () =>
|
|
307
|
+
onMouseenter: o[2] || (o[2] = () => i(he)(!0)),
|
|
308
|
+
onMouseleave: o[3] || (o[3] = () => i(he)(!1))
|
|
308
309
|
}, [
|
|
309
|
-
e.value.userOptions.buttons.annotator ? (s(), L(
|
|
310
|
+
e.value.userOptions.buttons.annotator ? (s(), L(i(Ge), {
|
|
310
311
|
key: 0,
|
|
311
|
-
svgRef:
|
|
312
|
+
svgRef: i(pe),
|
|
312
313
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
313
314
|
color: e.value.style.chart.color,
|
|
314
315
|
active: B.value,
|
|
315
316
|
onClose: te
|
|
316
317
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
317
|
-
|
|
318
|
+
Be.value ? (s(), u("div", {
|
|
318
319
|
key: 1,
|
|
319
320
|
ref_key: "noTitle",
|
|
320
321
|
ref: ne,
|
|
@@ -327,7 +328,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
327
328
|
ref: re,
|
|
328
329
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
329
330
|
}, [
|
|
330
|
-
(s(), L(
|
|
331
|
+
(s(), L(Ct, {
|
|
331
332
|
key: `title_${ve.value}`,
|
|
332
333
|
config: {
|
|
333
334
|
title: {
|
|
@@ -341,13 +342,13 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
341
342
|
}
|
|
342
343
|
}, null, 8, ["config"]))
|
|
343
344
|
], 512)) : c("", !0),
|
|
344
|
-
e.value.userOptions.show &&
|
|
345
|
+
e.value.userOptions.show && $.value && (i(de) || i(Q)) ? (s(), L(i(Ee), {
|
|
345
346
|
ref: "details",
|
|
346
347
|
key: `user_option_${se.value}`,
|
|
347
348
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
348
349
|
color: e.value.style.chart.color,
|
|
349
|
-
isPrinting:
|
|
350
|
-
isImaging:
|
|
350
|
+
isPrinting: i(be),
|
|
351
|
+
isImaging: i(me),
|
|
351
352
|
uid: q.value,
|
|
352
353
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
353
354
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -363,92 +364,92 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
363
364
|
position: e.value.userOptions.position,
|
|
364
365
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
365
366
|
isAnnotation: B.value,
|
|
366
|
-
onToggleFullscreen:
|
|
367
|
-
onGeneratePdf:
|
|
367
|
+
onToggleFullscreen: qe,
|
|
368
|
+
onGeneratePdf: i(ge),
|
|
368
369
|
onGenerateCsv: Ce,
|
|
369
|
-
onGenerateImage:
|
|
370
|
+
onGenerateImage: i(ke),
|
|
370
371
|
onToggleTable: $e,
|
|
371
372
|
onToggleLabels: Te,
|
|
372
373
|
onToggleTooltip: _e,
|
|
373
374
|
onToggleAnnotator: te,
|
|
374
375
|
style: j({
|
|
375
|
-
visibility:
|
|
376
|
+
visibility: i(de) ? i(Q) ? "visible" : "hidden" : "visible"
|
|
376
377
|
})
|
|
377
|
-
},
|
|
378
|
+
}, et({ _: 2 }, [
|
|
378
379
|
t.$slots.menuIcon ? {
|
|
379
380
|
name: "menuIcon",
|
|
380
|
-
fn:
|
|
381
|
+
fn: y(({ isOpen: l, color: r }) => [
|
|
381
382
|
p(t.$slots, "menuIcon", F(M({ isOpen: l, color: r })), void 0, !0)
|
|
382
383
|
]),
|
|
383
384
|
key: "0"
|
|
384
385
|
} : void 0,
|
|
385
386
|
t.$slots.optionTooltip ? {
|
|
386
387
|
name: "optionTooltip",
|
|
387
|
-
fn:
|
|
388
|
+
fn: y(() => [
|
|
388
389
|
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
389
390
|
]),
|
|
390
391
|
key: "1"
|
|
391
392
|
} : void 0,
|
|
392
393
|
t.$slots.optionPdf ? {
|
|
393
394
|
name: "optionPdf",
|
|
394
|
-
fn:
|
|
395
|
+
fn: y(() => [
|
|
395
396
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
396
397
|
]),
|
|
397
398
|
key: "2"
|
|
398
399
|
} : void 0,
|
|
399
400
|
t.$slots.optionCsv ? {
|
|
400
401
|
name: "optionCsv",
|
|
401
|
-
fn:
|
|
402
|
+
fn: y(() => [
|
|
402
403
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
403
404
|
]),
|
|
404
405
|
key: "3"
|
|
405
406
|
} : void 0,
|
|
406
407
|
t.$slots.optionImg ? {
|
|
407
408
|
name: "optionImg",
|
|
408
|
-
fn:
|
|
409
|
+
fn: y(() => [
|
|
409
410
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
410
411
|
]),
|
|
411
412
|
key: "4"
|
|
412
413
|
} : void 0,
|
|
413
414
|
t.$slots.optionTable ? {
|
|
414
415
|
name: "optionTable",
|
|
415
|
-
fn:
|
|
416
|
+
fn: y(() => [
|
|
416
417
|
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
417
418
|
]),
|
|
418
419
|
key: "5"
|
|
419
420
|
} : void 0,
|
|
420
421
|
t.$slots.optionLabels ? {
|
|
421
422
|
name: "optionLabels",
|
|
422
|
-
fn:
|
|
423
|
+
fn: y(() => [
|
|
423
424
|
p(t.$slots, "optionLabels", {}, void 0, !0)
|
|
424
425
|
]),
|
|
425
426
|
key: "6"
|
|
426
427
|
} : void 0,
|
|
427
428
|
t.$slots.optionFullscreen ? {
|
|
428
429
|
name: "optionFullscreen",
|
|
429
|
-
fn:
|
|
430
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
430
431
|
p(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
431
432
|
]),
|
|
432
433
|
key: "7"
|
|
433
434
|
} : void 0,
|
|
434
435
|
t.$slots.optionAnnotator ? {
|
|
435
436
|
name: "optionAnnotator",
|
|
436
|
-
fn:
|
|
437
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: r }) => [
|
|
437
438
|
p(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
|
|
438
439
|
]),
|
|
439
440
|
key: "8"
|
|
440
441
|
} : void 0
|
|
441
442
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
442
|
-
|
|
443
|
+
$.value ? (s(), u("svg", {
|
|
443
444
|
key: 4,
|
|
444
445
|
ref_key: "svgRef",
|
|
445
446
|
ref: pe,
|
|
446
|
-
xmlns:
|
|
447
|
+
xmlns: i(ct),
|
|
447
448
|
class: G({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
448
449
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
449
450
|
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
450
451
|
}, [
|
|
451
|
-
Le(
|
|
452
|
+
Le(i(De)),
|
|
452
453
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
453
454
|
key: 0,
|
|
454
455
|
x: a.value.left,
|
|
@@ -461,9 +462,9 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
461
462
|
}, [
|
|
462
463
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
463
464
|
], 8, Lt)) : c("", !0),
|
|
464
|
-
e.value.style.chart.grid.show ? (s(), u("g",
|
|
465
|
-
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g",
|
|
466
|
-
(s(!0), u(g, null,
|
|
465
|
+
e.value.style.chart.grid.show ? (s(), u("g", Pt, [
|
|
466
|
+
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", St, [
|
|
467
|
+
(s(!0), u(g, null, C(we.value, (l) => (s(), u("line", {
|
|
467
468
|
x1: l.x1,
|
|
468
469
|
x2: l.x2,
|
|
469
470
|
y1: l.y,
|
|
@@ -475,7 +476,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
475
476
|
}, null, 8, Ot))), 256))
|
|
476
477
|
])) : c("", !0),
|
|
477
478
|
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", zt, [
|
|
478
|
-
(s(!0), u(g, null,
|
|
479
|
+
(s(!0), u(g, null, C(x.value, (l, r) => (s(), u("line", {
|
|
479
480
|
x1: a.value.left + (r + 1) * a.value.stripWidth,
|
|
480
481
|
x2: a.value.left + (r + 1) * a.value.stripWidth,
|
|
481
482
|
y1: a.value.top,
|
|
@@ -505,16 +506,16 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
505
506
|
"stroke-linecap": "round"
|
|
506
507
|
}, null, 8, Mt)
|
|
507
508
|
])) : c("", !0),
|
|
508
|
-
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 },
|
|
509
|
+
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 }, C(we.value, (l, r) => (s(), u("text", {
|
|
509
510
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
510
511
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
511
512
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
512
513
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
513
514
|
"text-anchor": "end"
|
|
514
|
-
},
|
|
515
|
+
}, P(i(oe)(
|
|
515
516
|
e.value.style.chart.labels.formatter,
|
|
516
517
|
l.value,
|
|
517
|
-
|
|
518
|
+
i(Y)({
|
|
518
519
|
p: e.value.style.chart.labels.prefix,
|
|
519
520
|
v: l.value,
|
|
520
521
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -522,20 +523,20 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
522
523
|
}),
|
|
523
524
|
{ datapoint: l, seriesIndex: r }
|
|
524
525
|
)), 9, It))), 256)) : c("", !0),
|
|
525
|
-
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 },
|
|
526
|
+
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 }, C(x.value, (l, r) => (s(), u("text", {
|
|
526
527
|
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
527
528
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
528
529
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
529
530
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
530
531
|
"text-anchor": "middle"
|
|
531
|
-
},
|
|
532
|
+
}, P(l.name), 9, Wt))), 256)) : c("", !0),
|
|
532
533
|
e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
|
|
533
534
|
key: 4,
|
|
534
535
|
fill: e.value.style.chart.labels.axis.color,
|
|
535
536
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
536
537
|
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)`,
|
|
537
538
|
"text-anchor": "middle"
|
|
538
|
-
},
|
|
539
|
+
}, P(e.value.style.chart.labels.axis.yLabel), 9, Dt)) : c("", !0),
|
|
539
540
|
e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
|
|
540
541
|
key: 5,
|
|
541
542
|
fill: e.value.style.chart.labels.axis.color,
|
|
@@ -543,7 +544,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
543
544
|
x: a.value.left + a.value.width / 2,
|
|
544
545
|
y: a.value.absoluteHeight,
|
|
545
546
|
"text-anchor": "middle"
|
|
546
|
-
},
|
|
547
|
+
}, P(e.value.style.chart.labels.axis.xLabel), 9, Gt)) : c("", !0),
|
|
547
548
|
h.value ? (s(), u(g, { key: 6 }, [
|
|
548
549
|
k("line", {
|
|
549
550
|
x1: a.value.left,
|
|
@@ -570,17 +571,17 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
570
571
|
}, null, 10, Et)
|
|
571
572
|
], 64)) : c("", !0),
|
|
572
573
|
k("defs", null, [
|
|
573
|
-
(s(!0), u(g, null,
|
|
574
|
+
(s(!0), u(g, null, C(x.value, (l) => (s(), u("radialGradient", {
|
|
574
575
|
id: l.id,
|
|
575
576
|
fy: "30%"
|
|
576
577
|
}, [
|
|
577
578
|
k("stop", {
|
|
578
579
|
offset: "10%",
|
|
579
|
-
"stop-color":
|
|
580
|
+
"stop-color": i(ht)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
580
581
|
}, null, 8, Ht),
|
|
581
582
|
k("stop", {
|
|
582
583
|
offset: "90%",
|
|
583
|
-
"stop-color":
|
|
584
|
+
"stop-color": i(dt)(l.color, 0.1)
|
|
584
585
|
}, null, 8, Bt),
|
|
585
586
|
k("stop", {
|
|
586
587
|
offset: "100%",
|
|
@@ -588,42 +589,42 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
588
589
|
}, null, 8, Xt)
|
|
589
590
|
], 8, Ut))), 256))
|
|
590
591
|
]),
|
|
591
|
-
(s(!0), u(g, null,
|
|
592
|
-
(s(!0), u(g, null,
|
|
593
|
-
plot: { x:
|
|
594
|
-
radius: h.value && h.value.id ===
|
|
592
|
+
(s(!0), u(g, null, C(je.value, (l, r) => (s(), u(g, null, [
|
|
593
|
+
(s(!0), u(g, null, C(l.plots, (n, _) => (s(), L($t, tt({
|
|
594
|
+
plot: { x: n.x, y: ie.value ? n.y : a.value.top },
|
|
595
|
+
radius: h.value && h.value.id === n.id ? V.value * 1.5 : V.value,
|
|
595
596
|
shape: e.value.style.chart.plots.shape,
|
|
596
597
|
stroke: e.value.style.chart.plots.stroke,
|
|
597
598
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
598
599
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
599
|
-
onMouseenter: (X) =>
|
|
600
|
+
onMouseenter: (X) => Ye({ datapoint: n, seriesIndex: _ }),
|
|
600
601
|
onMouseleave: o[0] || (o[0] = (X) => {
|
|
601
602
|
J.value = !1, h.value = null;
|
|
602
603
|
}),
|
|
603
|
-
onClick: (X) =>
|
|
604
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id ===
|
|
604
|
+
onClick: (X) => He("selectDatapoint", n),
|
|
605
|
+
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${W.value ? `transition-delay:${_ * 50}ms` : ""}`,
|
|
605
606
|
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
606
607
|
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
607
608
|
d.value.dataLabels.show ? (s(), u("g", jt, [
|
|
608
|
-
(s(!0), u(g, null,
|
|
609
|
-
|
|
609
|
+
(s(!0), u(g, null, C(l.plots, (n, _) => (s(), u(g, null, [
|
|
610
|
+
_ === l.plots.length - 1 || h.value && h.value.id === n.id && !d.value.showTooltip ? (s(), u("text", {
|
|
610
611
|
key: 0,
|
|
611
|
-
x:
|
|
612
|
-
y:
|
|
612
|
+
x: n.x,
|
|
613
|
+
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - V.value * (h.value && h.value.id === n.id && !d.value.showTooltip ? 2 : 1.5),
|
|
613
614
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
614
615
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
615
616
|
"text-anchor": "middle",
|
|
616
617
|
style: j(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
617
|
-
},
|
|
618
|
+
}, P(n.name) + " " + P(e.value.style.chart.labels.bestPlotLabel.showValue ? i(oe)(
|
|
618
619
|
e.value.style.chart.labels.formatter,
|
|
619
|
-
|
|
620
|
-
|
|
620
|
+
n.value,
|
|
621
|
+
i(Y)({
|
|
621
622
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
622
|
-
v:
|
|
623
|
+
v: n.value,
|
|
623
624
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
624
625
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
625
626
|
}),
|
|
626
|
-
{ datapoint:
|
|
627
|
+
{ datapoint: n, seriesIndex: _ }
|
|
627
628
|
) : ""), 13, Yt)) : c("", !0)
|
|
628
629
|
], 64))), 256))
|
|
629
630
|
])) : c("", !0)
|
|
@@ -631,9 +632,9 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
631
632
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
632
633
|
], 14, At)) : c("", !0),
|
|
633
634
|
t.$slots.watermark ? (s(), u("div", qt, [
|
|
634
|
-
p(t.$slots, "watermark", F(M({ isPrinting:
|
|
635
|
+
p(t.$slots, "watermark", F(M({ isPrinting: i(be) || i(me) })), void 0, !0)
|
|
635
636
|
])) : c("", !0),
|
|
636
|
-
|
|
637
|
+
$.value ? c("", !0) : (s(), L(i(Re), {
|
|
637
638
|
key: 6,
|
|
638
639
|
config: {
|
|
639
640
|
type: "stripPlot",
|
|
@@ -653,7 +654,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
653
654
|
}, [
|
|
654
655
|
p(t.$slots, "source", {}, void 0, !0)
|
|
655
656
|
], 512)) : c("", !0),
|
|
656
|
-
Le(
|
|
657
|
+
Le(i(Ve), {
|
|
657
658
|
show: d.value.showTooltip && J.value,
|
|
658
659
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
659
660
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -667,17 +668,17 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
667
668
|
parent: I.value,
|
|
668
669
|
content: K.value,
|
|
669
670
|
isFullscreen: N.value,
|
|
670
|
-
isCustom:
|
|
671
|
+
isCustom: i(Oe)(e.value.style.chart.tooltip.customFormat)
|
|
671
672
|
}, {
|
|
672
|
-
"tooltip-before":
|
|
673
|
+
"tooltip-before": y(() => [
|
|
673
674
|
p(t.$slots, "tooltip-before", F(M({ ...ee.value })), void 0, !0)
|
|
674
675
|
]),
|
|
675
|
-
"tooltip-after":
|
|
676
|
+
"tooltip-after": y(() => [
|
|
676
677
|
p(t.$slots, "tooltip-after", F(M({ ...ee.value })), void 0, !0)
|
|
677
678
|
]),
|
|
678
679
|
_: 3
|
|
679
680
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
680
|
-
|
|
681
|
+
$.value ? (s(), L(i(Ie), {
|
|
681
682
|
key: 8,
|
|
682
683
|
hideDetails: "",
|
|
683
684
|
config: {
|
|
@@ -693,8 +694,8 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
693
694
|
}
|
|
694
695
|
}
|
|
695
696
|
}, {
|
|
696
|
-
content:
|
|
697
|
-
(s(), L(
|
|
697
|
+
content: y(() => [
|
|
698
|
+
(s(), L(i(We), {
|
|
698
699
|
key: `table_${ce.value}`,
|
|
699
700
|
colNames: H.value.colNames,
|
|
700
701
|
head: H.value.head,
|
|
@@ -703,14 +704,14 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
703
704
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
704
705
|
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
705
706
|
}, {
|
|
706
|
-
th:
|
|
707
|
+
th: y(({ th: l }) => [
|
|
707
708
|
k("div", {
|
|
708
709
|
innerHTML: l,
|
|
709
710
|
style: { display: "flex", "align-items": "center" }
|
|
710
711
|
}, null, 8, Jt)
|
|
711
712
|
]),
|
|
712
|
-
td:
|
|
713
|
-
|
|
713
|
+
td: y(({ td: l }) => [
|
|
714
|
+
lt(P(l.name || l), 1)
|
|
714
715
|
]),
|
|
715
716
|
_: 1
|
|
716
717
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -719,7 +720,7 @@ const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
719
720
|
}, 8, ["config"])) : c("", !0)
|
|
720
721
|
], 46, _t));
|
|
721
722
|
}
|
|
722
|
-
},
|
|
723
|
+
}, nl = /* @__PURE__ */ Tt(Kt, [["__scopeId", "data-v-4497e32b"]]);
|
|
723
724
|
export {
|
|
724
|
-
|
|
725
|
+
nl as default
|
|
725
726
|
};
|