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
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { computed as f, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { _ as mt } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { _ as gt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
14
|
-
import { u as kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { u as xt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
-
import { _ as wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"], Tt = { key: 1 }, Lt = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], St = { key: 1 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = ["x", "y", "fill", "font-size"], Ft = ["x", "y", "font-size", "fill"], It = ["fill", "font-size", "transform"], Mt = ["fill", "font-size", "x", "y"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Dt = ["cx", "cy", "fill"], Gt = ["cx", "cy", "fill"], Rt = ["id"], Ut = ["stop-color"], Vt = ["stop-color"], Et = ["stop-color"], Ht = { key: 0 }, Bt = ["x", "y", "font-size", "fill"], Xt = {
|
|
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";
|
|
10
|
+
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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 = {
|
|
18
12
|
key: 5,
|
|
19
13
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
14
|
+
}, Jt = ["innerHTML"], Kt = {
|
|
21
15
|
__name: "vue-ui-strip-plot",
|
|
22
16
|
props: {
|
|
23
17
|
config: {
|
|
@@ -34,76 +28,76 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
emits: ["selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const { vue_ui_strip_plot:
|
|
31
|
+
setup(Ne, { expose: Fe, emit: Me }) {
|
|
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({
|
|
39
33
|
get() {
|
|
40
34
|
return !!b.dataset && b.dataset.length;
|
|
41
35
|
},
|
|
42
36
|
set(t) {
|
|
43
37
|
return t;
|
|
44
38
|
}
|
|
45
|
-
}),
|
|
46
|
-
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(),
|
|
47
41
|
set: (t) => t
|
|
48
|
-
}), { userOptionsVisible:
|
|
49
|
-
function
|
|
50
|
-
const t =
|
|
42
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = xt({ config: e.value }), { svgRef: pe } = wt({ config: e.value.style.chart.title });
|
|
43
|
+
function fe() {
|
|
44
|
+
const t = ze({
|
|
51
45
|
userConfig: b.config,
|
|
52
|
-
defaultConfig:
|
|
46
|
+
defaultConfig: Ue
|
|
53
47
|
});
|
|
54
48
|
return t.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
49
|
+
...ze({
|
|
50
|
+
userConfig: rt.vue_ui_strip_plot[t.theme] || b.config,
|
|
57
51
|
defaultConfig: t
|
|
58
52
|
}),
|
|
59
|
-
customPalette:
|
|
53
|
+
customPalette: st[t.theme] || S
|
|
60
54
|
} : t;
|
|
61
55
|
}
|
|
62
|
-
|
|
63
|
-
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;
|
|
64
58
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
const w = Ae(null), O = Ae(null);
|
|
60
|
+
Qe(() => {
|
|
61
|
+
ye();
|
|
68
62
|
});
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
63
|
+
function ye() {
|
|
64
|
+
if (ut(b.dataset) ? ae({
|
|
71
65
|
componentName: "VueUiStripPlot",
|
|
72
66
|
type: "dataset"
|
|
73
67
|
}) : b.dataset.forEach((t, o) => {
|
|
74
|
-
|
|
68
|
+
Pe({
|
|
75
69
|
datasetObject: t,
|
|
76
70
|
requiredAttributes: ["name", "plots"]
|
|
77
71
|
}).forEach((l) => {
|
|
78
|
-
|
|
72
|
+
$.value = !1, ae({
|
|
79
73
|
componentName: "VueUiStripPlot",
|
|
80
74
|
type: "datasetSerieAttribute",
|
|
81
75
|
property: l,
|
|
82
76
|
index: o
|
|
83
77
|
});
|
|
84
78
|
}), t.plots && t.plots.forEach((l, r) => {
|
|
85
|
-
|
|
79
|
+
Pe({
|
|
86
80
|
datasetObject: l,
|
|
87
81
|
requiredAttributes: ["name", "value"]
|
|
88
|
-
}).forEach((
|
|
89
|
-
|
|
82
|
+
}).forEach((n) => {
|
|
83
|
+
$.value = !1, ae({
|
|
90
84
|
componentName: "VueUiStripPlot",
|
|
91
85
|
type: "datasetSerieAttribute",
|
|
92
|
-
property:
|
|
86
|
+
property: n,
|
|
93
87
|
index: `${o},${r}`
|
|
94
88
|
});
|
|
95
89
|
});
|
|
96
90
|
});
|
|
97
91
|
}), e.value.responsive) {
|
|
98
|
-
const t =
|
|
99
|
-
const { width: o, height: l } =
|
|
100
|
-
chart:
|
|
101
|
-
title: e.value.style.chart.title.text ?
|
|
102
|
-
source:
|
|
103
|
-
noTitle:
|
|
92
|
+
const t = mt(() => {
|
|
93
|
+
const { width: o, height: l } = gt({
|
|
94
|
+
chart: I.value,
|
|
95
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
96
|
+
source: ue.value,
|
|
97
|
+
noTitle: ne.value
|
|
104
98
|
});
|
|
105
99
|
requestAnimationFrame(() => {
|
|
106
|
-
|
|
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({
|
|
107
101
|
relator: Math.min(l, o),
|
|
108
102
|
adjuster: 600,
|
|
109
103
|
source: e.value.style.chart.plots.radius,
|
|
@@ -112,135 +106,135 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
112
106
|
});
|
|
113
107
|
});
|
|
114
108
|
});
|
|
115
|
-
|
|
109
|
+
w.value && (O.value && w.value.unobserve(O.value), w.value.disconnect()), w.value = new ResizeObserver(t), O.value = I.value.parentNode, w.value.observe(O.value);
|
|
116
110
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
111
|
+
ie.value = !0, setTimeout(() => {
|
|
112
|
+
W.value = !1;
|
|
113
|
+
}, Xe.value * 50);
|
|
120
114
|
}
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
Ze(() => {
|
|
116
|
+
w.value && (O.value && w.value.unobserve(O.value), w.value.disconnect());
|
|
123
117
|
});
|
|
124
|
-
const { isPrinting:
|
|
125
|
-
elementId: `strip-plot_${
|
|
118
|
+
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = kt({
|
|
119
|
+
elementId: `strip-plot_${q.value}`,
|
|
126
120
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
127
121
|
options: e.value.userOptions.print
|
|
128
|
-
}),
|
|
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({
|
|
129
123
|
showTable: e.value.table.show,
|
|
130
124
|
dataLabels: {
|
|
131
125
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
132
126
|
},
|
|
133
127
|
showTooltip: e.value.style.chart.tooltip.show
|
|
134
|
-
}), m =
|
|
128
|
+
}), m = v({
|
|
135
129
|
top: e.value.style.chart.padding.top,
|
|
136
130
|
bottom: e.value.style.chart.padding.bottom,
|
|
137
131
|
left: e.value.style.chart.padding.left,
|
|
138
132
|
right: e.value.style.chart.padding.right
|
|
139
|
-
}),
|
|
140
|
-
width:
|
|
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({
|
|
134
|
+
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
141
135
|
height: e.value.style.chart.height
|
|
142
136
|
}), a = f(() => {
|
|
143
|
-
const t =
|
|
137
|
+
const t = D.value * b.dataset.length + m.value.left + m.value.right;
|
|
144
138
|
return {
|
|
145
139
|
left: m.value.left,
|
|
146
140
|
right: t - m.value.right,
|
|
147
141
|
top: m.value.top,
|
|
148
|
-
bottom:
|
|
149
|
-
width:
|
|
150
|
-
height:
|
|
151
|
-
stripWidth:
|
|
152
|
-
absoluteHeight:
|
|
142
|
+
bottom: R.value - m.value.bottom,
|
|
143
|
+
width: D.value * b.dataset.length,
|
|
144
|
+
height: R.value - m.value.top - m.value.bottom,
|
|
145
|
+
stripWidth: D.value,
|
|
146
|
+
absoluteHeight: R.value,
|
|
153
147
|
absoluteWidth: t
|
|
154
148
|
};
|
|
155
|
-
}),
|
|
156
|
-
const l =
|
|
149
|
+
}), E = f(() => $.value ? b.dataset.map((t, o) => {
|
|
150
|
+
const l = le();
|
|
157
151
|
return {
|
|
158
152
|
...t,
|
|
159
153
|
id: l,
|
|
160
|
-
color: t.color ?
|
|
154
|
+
color: t.color ? Se(t.color) : xe.value[o] || S[o] || S[o % S.length],
|
|
161
155
|
plots: t.plots.map((r) => ({
|
|
162
156
|
...r,
|
|
163
|
-
value:
|
|
157
|
+
value: it(r.value),
|
|
164
158
|
parentId: l,
|
|
165
|
-
color: t.color ?
|
|
166
|
-
id:
|
|
167
|
-
})).sort((r,
|
|
159
|
+
color: t.color ? Se(t.color) : xe.value[o] || S[o] || S[o % S.length],
|
|
160
|
+
id: le()
|
|
161
|
+
})).sort((r, n) => r.value - n.value)
|
|
168
162
|
};
|
|
169
|
-
}) : null), x = f(() => (
|
|
163
|
+
}) : null), x = f(() => (E.value || []).map((t, o) => ({
|
|
170
164
|
...t,
|
|
171
165
|
plots: t.plots.map((l) => ({
|
|
172
166
|
...l,
|
|
173
167
|
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
174
168
|
}))
|
|
175
|
-
}))),
|
|
169
|
+
}))), Xe = f(() => Math.max(...x.value.map((t) => t.plots.length))), Z = f(() => {
|
|
176
170
|
const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
177
171
|
return {
|
|
178
172
|
max: Math.max(...t),
|
|
179
173
|
min: Math.min(...t)
|
|
180
174
|
};
|
|
181
|
-
}),
|
|
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) => ({
|
|
182
176
|
...t,
|
|
183
177
|
plots: t.plots.map((l) => ({
|
|
184
178
|
...l,
|
|
185
|
-
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
|
|
186
180
|
}))
|
|
187
|
-
}))),
|
|
188
|
-
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))),
|
|
189
183
|
x1: a.value.left,
|
|
190
184
|
x2: a.value.right,
|
|
191
185
|
value: t
|
|
192
|
-
}))),
|
|
193
|
-
function
|
|
194
|
-
|
|
186
|
+
}))), ee = v(null), h = v(null);
|
|
187
|
+
function Ye({ datapoint: t, seriesIndex: o }) {
|
|
188
|
+
ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: E.value }, J.value = !0, h.value = t;
|
|
195
189
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
196
|
-
if (
|
|
190
|
+
if (Oe(l) && bt(() => l({
|
|
197
191
|
seriesIndex: o,
|
|
198
192
|
datapoint: t,
|
|
199
|
-
series:
|
|
193
|
+
series: E.value,
|
|
200
194
|
config: e.value
|
|
201
195
|
})))
|
|
202
|
-
|
|
196
|
+
K.value = l({
|
|
203
197
|
seriesIndex: o,
|
|
204
198
|
datapoint: t,
|
|
205
|
-
series:
|
|
199
|
+
series: E.value,
|
|
206
200
|
config: e.value
|
|
207
201
|
});
|
|
208
202
|
else {
|
|
209
203
|
let r = "";
|
|
210
|
-
r += `<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>`, r += `<div>${
|
|
204
|
+
r += `<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>`, r += `<div>${oe(
|
|
211
205
|
e.value.style.chart.labels.formatter,
|
|
212
206
|
t.value,
|
|
213
|
-
|
|
207
|
+
Y({
|
|
214
208
|
p: e.value.style.chart.labels.prefix,
|
|
215
209
|
v: t.value,
|
|
216
210
|
s: e.value.style.chart.labels.suffix,
|
|
217
211
|
r: e.value.style.chart.tooltip.roundingValue
|
|
218
212
|
}),
|
|
219
213
|
{ datapoint: t, seriesIndex: o }
|
|
220
|
-
)}</div>`,
|
|
214
|
+
)}</div>`, K.value = `<div>${r}</div>`;
|
|
221
215
|
}
|
|
222
216
|
}
|
|
223
217
|
const U = f(() => {
|
|
224
|
-
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r,
|
|
218
|
+
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, n) => n.value - r.value).map((r) => ({
|
|
225
219
|
name: `${l.name} - ${r.name}`,
|
|
226
220
|
color: r.color
|
|
227
|
-
}))), 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));
|
|
228
222
|
return { head: t, body: o };
|
|
229
223
|
});
|
|
230
|
-
function
|
|
231
|
-
|
|
232
|
-
const t = U.value.head.map((r,
|
|
224
|
+
function Ce() {
|
|
225
|
+
at(() => {
|
|
226
|
+
const t = U.value.head.map((r, n) => [[
|
|
233
227
|
r.name
|
|
234
|
-
], [U.value.body[
|
|
235
|
-
|
|
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" });
|
|
236
230
|
});
|
|
237
231
|
}
|
|
238
|
-
const
|
|
232
|
+
const H = f(() => {
|
|
239
233
|
const t = [
|
|
240
234
|
e.value.table.columnNames.series,
|
|
241
235
|
e.value.table.columnNames.value
|
|
242
|
-
], o = U.value.head.map((
|
|
243
|
-
const
|
|
236
|
+
], o = U.value.head.map((n, _) => {
|
|
237
|
+
const X = Y({
|
|
244
238
|
p: e.value.style.chart.labels.prefix,
|
|
245
239
|
v: U.value.body[_],
|
|
246
240
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -248,10 +242,10 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
248
242
|
});
|
|
249
243
|
return [
|
|
250
244
|
{
|
|
251
|
-
color:
|
|
252
|
-
name:
|
|
245
|
+
color: n.color,
|
|
246
|
+
name: n.name
|
|
253
247
|
},
|
|
254
|
-
|
|
248
|
+
X
|
|
255
249
|
];
|
|
256
250
|
}), l = {
|
|
257
251
|
th: {
|
|
@@ -275,67 +269,67 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
275
269
|
body: o,
|
|
276
270
|
config: l
|
|
277
271
|
};
|
|
278
|
-
}),
|
|
279
|
-
function
|
|
280
|
-
|
|
272
|
+
}), N = v(!1);
|
|
273
|
+
function qe(t) {
|
|
274
|
+
N.value = t, se.value += 1;
|
|
281
275
|
}
|
|
282
|
-
function
|
|
276
|
+
function Je() {
|
|
283
277
|
return x.value;
|
|
284
278
|
}
|
|
285
|
-
function
|
|
279
|
+
function $e() {
|
|
286
280
|
d.value.showTable = !d.value.showTable;
|
|
287
281
|
}
|
|
288
|
-
function
|
|
282
|
+
function Te() {
|
|
289
283
|
d.value.dataLabels.show = !d.value.dataLabels.show;
|
|
290
284
|
}
|
|
291
|
-
function
|
|
285
|
+
function _e() {
|
|
292
286
|
d.value.showTooltip = !d.value.showTooltip;
|
|
293
287
|
}
|
|
294
|
-
const
|
|
295
|
-
function
|
|
296
|
-
|
|
288
|
+
const B = v(!1);
|
|
289
|
+
function te() {
|
|
290
|
+
B.value = !B.value;
|
|
297
291
|
}
|
|
298
|
-
return
|
|
299
|
-
getData:
|
|
300
|
-
generatePdf:
|
|
301
|
-
generateCsv:
|
|
302
|
-
generateImage:
|
|
303
|
-
toggleTable:
|
|
304
|
-
toggleLabels:
|
|
305
|
-
toggleTooltip:
|
|
306
|
-
toggleAnnotator:
|
|
292
|
+
return Fe({
|
|
293
|
+
getData: Je,
|
|
294
|
+
generatePdf: ge,
|
|
295
|
+
generateCsv: Ce,
|
|
296
|
+
generateImage: ke,
|
|
297
|
+
toggleTable: $e,
|
|
298
|
+
toggleLabels: Te,
|
|
299
|
+
toggleTooltip: _e,
|
|
300
|
+
toggleAnnotator: te
|
|
307
301
|
}), (t, o) => (s(), u("div", {
|
|
308
302
|
ref_key: "stripPlotChart",
|
|
309
|
-
ref:
|
|
310
|
-
class:
|
|
311
|
-
style:
|
|
312
|
-
id: `strip-plot_${
|
|
313
|
-
onMouseenter: o[2] || (o[2] = () =>
|
|
314
|
-
onMouseleave: o[3] || (o[3] = () =>
|
|
303
|
+
ref: I,
|
|
304
|
+
class: G(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
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%" : ""}`),
|
|
306
|
+
id: `strip-plot_${q.value}`,
|
|
307
|
+
onMouseenter: o[2] || (o[2] = () => i(he)(!0)),
|
|
308
|
+
onMouseleave: o[3] || (o[3] = () => i(he)(!1))
|
|
315
309
|
}, [
|
|
316
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
310
|
+
e.value.userOptions.buttons.annotator ? (s(), L(i(Ge), {
|
|
317
311
|
key: 0,
|
|
318
|
-
svgRef:
|
|
312
|
+
svgRef: i(pe),
|
|
319
313
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
320
314
|
color: e.value.style.chart.color,
|
|
321
|
-
active:
|
|
322
|
-
onClose:
|
|
315
|
+
active: B.value,
|
|
316
|
+
onClose: te
|
|
323
317
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
324
|
-
|
|
318
|
+
Be.value ? (s(), u("div", {
|
|
325
319
|
key: 1,
|
|
326
320
|
ref_key: "noTitle",
|
|
327
|
-
ref:
|
|
321
|
+
ref: ne,
|
|
328
322
|
class: "vue-data-ui-no-title-space",
|
|
329
323
|
style: "height:36px; width: 100%;background:transparent"
|
|
330
324
|
}, null, 512)) : c("", !0),
|
|
331
325
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
332
326
|
key: 2,
|
|
333
327
|
ref_key: "chartTitle",
|
|
334
|
-
ref:
|
|
328
|
+
ref: re,
|
|
335
329
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
336
330
|
}, [
|
|
337
|
-
(s(),
|
|
338
|
-
key: `title_${
|
|
331
|
+
(s(), L(Ct, {
|
|
332
|
+
key: `title_${ve.value}`,
|
|
339
333
|
config: {
|
|
340
334
|
title: {
|
|
341
335
|
cy: "donut-div-title",
|
|
@@ -348,14 +342,14 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
348
342
|
}
|
|
349
343
|
}, null, 8, ["config"]))
|
|
350
344
|
], 512)) : c("", !0),
|
|
351
|
-
e.value.userOptions.show &&
|
|
345
|
+
e.value.userOptions.show && $.value && (i(de) || i(Q)) ? (s(), L(i(Ee), {
|
|
352
346
|
ref: "details",
|
|
353
|
-
key: `user_option_${
|
|
347
|
+
key: `user_option_${se.value}`,
|
|
354
348
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
349
|
color: e.value.style.chart.color,
|
|
356
|
-
isPrinting:
|
|
357
|
-
isImaging:
|
|
358
|
-
uid:
|
|
350
|
+
isPrinting: i(be),
|
|
351
|
+
isImaging: i(me),
|
|
352
|
+
uid: q.value,
|
|
359
353
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
360
354
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
361
355
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -364,28 +358,28 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
364
358
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
365
359
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
360
|
isTooltip: d.value.showTooltip,
|
|
367
|
-
isFullscreen:
|
|
361
|
+
isFullscreen: N.value,
|
|
368
362
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
|
-
chartElement:
|
|
363
|
+
chartElement: I.value,
|
|
370
364
|
position: e.value.userOptions.position,
|
|
371
365
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
|
-
isAnnotation:
|
|
373
|
-
onToggleFullscreen:
|
|
374
|
-
onGeneratePdf:
|
|
375
|
-
onGenerateCsv:
|
|
376
|
-
onGenerateImage:
|
|
377
|
-
onToggleTable:
|
|
378
|
-
onToggleLabels:
|
|
379
|
-
onToggleTooltip:
|
|
380
|
-
onToggleAnnotator:
|
|
381
|
-
style:
|
|
382
|
-
visibility:
|
|
366
|
+
isAnnotation: B.value,
|
|
367
|
+
onToggleFullscreen: qe,
|
|
368
|
+
onGeneratePdf: i(ge),
|
|
369
|
+
onGenerateCsv: Ce,
|
|
370
|
+
onGenerateImage: i(ke),
|
|
371
|
+
onToggleTable: $e,
|
|
372
|
+
onToggleLabels: Te,
|
|
373
|
+
onToggleTooltip: _e,
|
|
374
|
+
onToggleAnnotator: te,
|
|
375
|
+
style: j({
|
|
376
|
+
visibility: i(de) ? i(Q) ? "visible" : "hidden" : "visible"
|
|
383
377
|
})
|
|
384
|
-
},
|
|
378
|
+
}, et({ _: 2 }, [
|
|
385
379
|
t.$slots.menuIcon ? {
|
|
386
380
|
name: "menuIcon",
|
|
387
381
|
fn: y(({ isOpen: l, color: r }) => [
|
|
388
|
-
p(t.$slots, "menuIcon",
|
|
382
|
+
p(t.$slots, "menuIcon", F(M({ isOpen: l, color: r })), void 0, !0)
|
|
389
383
|
]),
|
|
390
384
|
key: "0"
|
|
391
385
|
} : void 0,
|
|
@@ -434,43 +428,43 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
434
428
|
t.$slots.optionFullscreen ? {
|
|
435
429
|
name: "optionFullscreen",
|
|
436
430
|
fn: y(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
437
|
-
p(t.$slots, "optionFullscreen",
|
|
431
|
+
p(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
438
432
|
]),
|
|
439
433
|
key: "7"
|
|
440
434
|
} : void 0,
|
|
441
435
|
t.$slots.optionAnnotator ? {
|
|
442
436
|
name: "optionAnnotator",
|
|
443
437
|
fn: y(({ toggleAnnotator: l, isAnnotator: r }) => [
|
|
444
|
-
p(t.$slots, "optionAnnotator",
|
|
438
|
+
p(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
|
|
445
439
|
]),
|
|
446
440
|
key: "8"
|
|
447
441
|
} : void 0
|
|
448
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),
|
|
449
|
-
|
|
443
|
+
$.value ? (s(), u("svg", {
|
|
450
444
|
key: 4,
|
|
451
445
|
ref_key: "svgRef",
|
|
452
|
-
ref:
|
|
453
|
-
xmlns:
|
|
454
|
-
class:
|
|
455
|
-
viewBox: `0 0 ${
|
|
456
|
-
style:
|
|
446
|
+
ref: pe,
|
|
447
|
+
xmlns: i(ct),
|
|
448
|
+
class: G({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
449
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
450
|
+
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
457
451
|
}, [
|
|
458
|
-
|
|
452
|
+
Le(i(De)),
|
|
459
453
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
460
454
|
key: 0,
|
|
461
455
|
x: a.value.left,
|
|
462
456
|
y: a.value.top,
|
|
463
|
-
width: a.value.width,
|
|
464
|
-
height: a.value.height,
|
|
457
|
+
width: Math.max(0.1, a.value.width),
|
|
458
|
+
height: Math.max(0.1, a.value.height),
|
|
465
459
|
style: {
|
|
466
460
|
pointerEvents: "none"
|
|
467
461
|
}
|
|
468
462
|
}, [
|
|
469
463
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
470
|
-
], 8,
|
|
471
|
-
e.value.style.chart.grid.show ? (s(), u("g",
|
|
472
|
-
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g",
|
|
473
|
-
(s(!0), u(g, null,
|
|
464
|
+
], 8, Lt)) : c("", !0),
|
|
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", {
|
|
474
468
|
x1: l.x1,
|
|
475
469
|
x2: l.x2,
|
|
476
470
|
y1: l.y,
|
|
@@ -479,10 +473,10 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
479
473
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
480
474
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
481
475
|
"stroke-linecap": "round"
|
|
482
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, Ot))), 256))
|
|
483
477
|
])) : c("", !0),
|
|
484
|
-
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g",
|
|
485
|
-
(s(!0), u(g, null,
|
|
478
|
+
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", zt, [
|
|
479
|
+
(s(!0), u(g, null, C(x.value, (l, r) => (s(), u("line", {
|
|
486
480
|
x1: a.value.left + (r + 1) * a.value.stripWidth,
|
|
487
481
|
x2: a.value.left + (r + 1) * a.value.stripWidth,
|
|
488
482
|
y1: a.value.top,
|
|
@@ -491,7 +485,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
491
485
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
492
486
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
493
487
|
"stroke-linecap": "round"
|
|
494
|
-
}, null, 8,
|
|
488
|
+
}, null, 8, Nt))), 256))
|
|
495
489
|
])) : c("", !0),
|
|
496
490
|
k("line", {
|
|
497
491
|
x1: a.value.left,
|
|
@@ -501,7 +495,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
501
495
|
stroke: e.value.style.chart.grid.stroke,
|
|
502
496
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
503
497
|
"stroke-linecap": "round"
|
|
504
|
-
}, null, 8,
|
|
498
|
+
}, null, 8, Ft),
|
|
505
499
|
k("line", {
|
|
506
500
|
x1: a.value.left,
|
|
507
501
|
x2: a.value.right,
|
|
@@ -510,39 +504,39 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
510
504
|
stroke: e.value.style.chart.grid.stroke,
|
|
511
505
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
512
506
|
"stroke-linecap": "round"
|
|
513
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, Mt)
|
|
514
508
|
])) : c("", !0),
|
|
515
|
-
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", {
|
|
516
510
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
517
511
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
518
512
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
519
513
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
520
514
|
"text-anchor": "end"
|
|
521
|
-
},
|
|
515
|
+
}, P(i(oe)(
|
|
522
516
|
e.value.style.chart.labels.formatter,
|
|
523
517
|
l.value,
|
|
524
|
-
|
|
518
|
+
i(Y)({
|
|
525
519
|
p: e.value.style.chart.labels.prefix,
|
|
526
520
|
v: l.value,
|
|
527
521
|
s: e.value.style.chart.labels.suffix,
|
|
528
522
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
529
523
|
}),
|
|
530
524
|
{ datapoint: l, seriesIndex: r }
|
|
531
|
-
)), 9,
|
|
532
|
-
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 },
|
|
525
|
+
)), 9, It))), 256)) : c("", !0),
|
|
526
|
+
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 }, C(x.value, (l, r) => (s(), u("text", {
|
|
533
527
|
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
534
528
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
535
529
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
536
530
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
537
531
|
"text-anchor": "middle"
|
|
538
|
-
},
|
|
532
|
+
}, P(l.name), 9, Wt))), 256)) : c("", !0),
|
|
539
533
|
e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
|
|
540
534
|
key: 4,
|
|
541
535
|
fill: e.value.style.chart.labels.axis.color,
|
|
542
536
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
543
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)`,
|
|
544
538
|
"text-anchor": "middle"
|
|
545
|
-
},
|
|
539
|
+
}, P(e.value.style.chart.labels.axis.yLabel), 9, Dt)) : c("", !0),
|
|
546
540
|
e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
|
|
547
541
|
key: 5,
|
|
548
542
|
fill: e.value.style.chart.labels.axis.color,
|
|
@@ -550,7 +544,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
550
544
|
x: a.value.left + a.value.width / 2,
|
|
551
545
|
y: a.value.absoluteHeight,
|
|
552
546
|
"text-anchor": "middle"
|
|
553
|
-
},
|
|
547
|
+
}, P(e.value.style.chart.labels.axis.xLabel), 9, Gt)) : c("", !0),
|
|
554
548
|
h.value ? (s(), u(g, { key: 6 }, [
|
|
555
549
|
k("line", {
|
|
556
550
|
x1: a.value.left,
|
|
@@ -559,88 +553,88 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
559
553
|
y2: h.value.y,
|
|
560
554
|
stroke: h.value.color,
|
|
561
555
|
"stroke-width": 1,
|
|
562
|
-
class:
|
|
563
|
-
}, null, 10,
|
|
556
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
557
|
+
}, null, 10, Rt),
|
|
564
558
|
k("circle", {
|
|
565
559
|
cx: a.value.left,
|
|
566
560
|
cy: h.value.y,
|
|
567
561
|
r: 3,
|
|
568
562
|
fill: h.value.color,
|
|
569
|
-
class:
|
|
570
|
-
}, null, 10,
|
|
563
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
564
|
+
}, null, 10, Vt),
|
|
571
565
|
k("circle", {
|
|
572
566
|
cx: a.value.right,
|
|
573
567
|
cy: h.value.y,
|
|
574
568
|
r: 3,
|
|
575
569
|
fill: h.value.color,
|
|
576
|
-
class:
|
|
577
|
-
}, null, 10,
|
|
570
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
571
|
+
}, null, 10, Et)
|
|
578
572
|
], 64)) : c("", !0),
|
|
579
573
|
k("defs", null, [
|
|
580
|
-
(s(!0), u(g, null,
|
|
574
|
+
(s(!0), u(g, null, C(x.value, (l) => (s(), u("radialGradient", {
|
|
581
575
|
id: l.id,
|
|
582
576
|
fy: "30%"
|
|
583
577
|
}, [
|
|
584
578
|
k("stop", {
|
|
585
579
|
offset: "10%",
|
|
586
|
-
"stop-color":
|
|
587
|
-
}, null, 8,
|
|
580
|
+
"stop-color": i(ht)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
581
|
+
}, null, 8, Ht),
|
|
588
582
|
k("stop", {
|
|
589
583
|
offset: "90%",
|
|
590
|
-
"stop-color":
|
|
591
|
-
}, null, 8,
|
|
584
|
+
"stop-color": i(dt)(l.color, 0.1)
|
|
585
|
+
}, null, 8, Bt),
|
|
592
586
|
k("stop", {
|
|
593
587
|
offset: "100%",
|
|
594
588
|
"stop-color": l.color
|
|
595
|
-
}, null, 8,
|
|
596
|
-
], 8,
|
|
589
|
+
}, null, 8, Xt)
|
|
590
|
+
], 8, Ut))), 256))
|
|
597
591
|
]),
|
|
598
|
-
(s(!0), u(g, null,
|
|
599
|
-
(s(!0), u(g, null,
|
|
600
|
-
plot: { x:
|
|
601
|
-
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,
|
|
602
596
|
shape: e.value.style.chart.plots.shape,
|
|
603
597
|
stroke: e.value.style.chart.plots.stroke,
|
|
604
598
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
605
599
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
606
|
-
onMouseenter: (
|
|
607
|
-
onMouseleave: o[0] || (o[0] = (
|
|
608
|
-
|
|
600
|
+
onMouseenter: (X) => Ye({ datapoint: n, seriesIndex: _ }),
|
|
601
|
+
onMouseleave: o[0] || (o[0] = (X) => {
|
|
602
|
+
J.value = !1, h.value = null;
|
|
609
603
|
}),
|
|
610
|
-
onClick: (
|
|
611
|
-
style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id ===
|
|
612
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
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` : ""}`,
|
|
606
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
613
607
|
}, { ref_for: !0 }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
|
|
614
|
-
d.value.dataLabels.show ? (s(), u("g",
|
|
615
|
-
(s(!0), u(g, null,
|
|
616
|
-
_ === l.plots.length - 1 || h.value && h.value.id ===
|
|
608
|
+
d.value.dataLabels.show ? (s(), u("g", jt, [
|
|
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", {
|
|
617
611
|
key: 0,
|
|
618
|
-
x:
|
|
619
|
-
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),
|
|
620
614
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
621
615
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
622
616
|
"text-anchor": "middle",
|
|
623
|
-
style:
|
|
624
|
-
},
|
|
617
|
+
style: j(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
618
|
+
}, P(n.name) + " " + P(e.value.style.chart.labels.bestPlotLabel.showValue ? i(oe)(
|
|
625
619
|
e.value.style.chart.labels.formatter,
|
|
626
|
-
|
|
627
|
-
|
|
620
|
+
n.value,
|
|
621
|
+
i(Y)({
|
|
628
622
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
629
|
-
v:
|
|
623
|
+
v: n.value,
|
|
630
624
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
631
625
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
632
626
|
}),
|
|
633
|
-
{ datapoint:
|
|
634
|
-
) : ""), 13,
|
|
627
|
+
{ datapoint: n, seriesIndex: _ }
|
|
628
|
+
) : ""), 13, Yt)) : c("", !0)
|
|
635
629
|
], 64))), 256))
|
|
636
630
|
])) : c("", !0)
|
|
637
631
|
], 64))), 256)),
|
|
638
632
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
639
|
-
], 14,
|
|
640
|
-
t.$slots.watermark ? (s(), u("div",
|
|
641
|
-
p(t.$slots, "watermark",
|
|
633
|
+
], 14, At)) : c("", !0),
|
|
634
|
+
t.$slots.watermark ? (s(), u("div", qt, [
|
|
635
|
+
p(t.$slots, "watermark", F(M({ isPrinting: i(be) || i(me) })), void 0, !0)
|
|
642
636
|
])) : c("", !0),
|
|
643
|
-
|
|
637
|
+
$.value ? c("", !0) : (s(), L(i(Re), {
|
|
644
638
|
key: 6,
|
|
645
639
|
config: {
|
|
646
640
|
type: "stripPlot",
|
|
@@ -655,13 +649,13 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
655
649
|
t.$slots.source ? (s(), u("div", {
|
|
656
650
|
key: 7,
|
|
657
651
|
ref_key: "source",
|
|
658
|
-
ref:
|
|
652
|
+
ref: ue,
|
|
659
653
|
dir: "auto"
|
|
660
654
|
}, [
|
|
661
655
|
p(t.$slots, "source", {}, void 0, !0)
|
|
662
656
|
], 512)) : c("", !0),
|
|
663
|
-
|
|
664
|
-
show: d.value.showTooltip &&
|
|
657
|
+
Le(i(Ve), {
|
|
658
|
+
show: d.value.showTooltip && J.value,
|
|
665
659
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
666
660
|
color: e.value.style.chart.tooltip.color,
|
|
667
661
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -671,20 +665,20 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
671
665
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
672
666
|
position: e.value.style.chart.tooltip.position,
|
|
673
667
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
674
|
-
parent:
|
|
675
|
-
content:
|
|
676
|
-
isFullscreen:
|
|
677
|
-
isCustom:
|
|
668
|
+
parent: I.value,
|
|
669
|
+
content: K.value,
|
|
670
|
+
isFullscreen: N.value,
|
|
671
|
+
isCustom: i(Oe)(e.value.style.chart.tooltip.customFormat)
|
|
678
672
|
}, {
|
|
679
673
|
"tooltip-before": y(() => [
|
|
680
|
-
p(t.$slots, "tooltip-before",
|
|
674
|
+
p(t.$slots, "tooltip-before", F(M({ ...ee.value })), void 0, !0)
|
|
681
675
|
]),
|
|
682
676
|
"tooltip-after": y(() => [
|
|
683
|
-
p(t.$slots, "tooltip-after",
|
|
677
|
+
p(t.$slots, "tooltip-after", F(M({ ...ee.value })), void 0, !0)
|
|
684
678
|
]),
|
|
685
679
|
_: 3
|
|
686
680
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
687
|
-
|
|
681
|
+
$.value ? (s(), L(i(Ie), {
|
|
688
682
|
key: 8,
|
|
689
683
|
hideDetails: "",
|
|
690
684
|
config: {
|
|
@@ -701,12 +695,12 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
701
695
|
}
|
|
702
696
|
}, {
|
|
703
697
|
content: y(() => [
|
|
704
|
-
(s(),
|
|
705
|
-
key: `table_${
|
|
706
|
-
colNames:
|
|
707
|
-
head:
|
|
708
|
-
body:
|
|
709
|
-
config:
|
|
698
|
+
(s(), L(i(We), {
|
|
699
|
+
key: `table_${ce.value}`,
|
|
700
|
+
colNames: H.value.colNames,
|
|
701
|
+
head: H.value.head,
|
|
702
|
+
body: H.value.body,
|
|
703
|
+
config: H.value.config,
|
|
710
704
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
711
705
|
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
712
706
|
}, {
|
|
@@ -714,19 +708,19 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
714
708
|
k("div", {
|
|
715
709
|
innerHTML: l,
|
|
716
710
|
style: { display: "flex", "align-items": "center" }
|
|
717
|
-
}, null, 8,
|
|
711
|
+
}, null, 8, Jt)
|
|
718
712
|
]),
|
|
719
713
|
td: y(({ td: l }) => [
|
|
720
|
-
|
|
714
|
+
lt(P(l.name || l), 1)
|
|
721
715
|
]),
|
|
722
716
|
_: 1
|
|
723
717
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
724
718
|
]),
|
|
725
719
|
_: 1
|
|
726
720
|
}, 8, ["config"])) : c("", !0)
|
|
727
|
-
], 46,
|
|
721
|
+
], 46, _t));
|
|
728
722
|
}
|
|
729
|
-
},
|
|
723
|
+
}, nl = /* @__PURE__ */ Tt(Kt, [["__scopeId", "data-v-4497e32b"]]);
|
|
730
724
|
export {
|
|
731
|
-
|
|
725
|
+
nl as default
|
|
732
726
|
};
|