vue-data-ui 2.12.6 → 2.12.7-beta.0
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-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.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-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.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-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.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,16 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { _ as
|
|
10
|
-
|
|
11
|
-
import { u as Se } from "./useNestedProp-v7KPpwuP.js";
|
|
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 C, computed as y, ref as v, watch as Qe, shallowRef as Ae, onMounted as Ze, onBeforeUnmount as et, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as j, normalizeClass as G, createBlock as L, createCommentVNode as c, createVNode as Le, createSlots as tt, withCtx as f, renderSlot as p, normalizeProps as F, guardReactiveProps as M, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as S, mergeProps as lt, createTextVNode as at, nextTick as ot } from "vue";
|
|
2
|
+
import { u as st, c as le, t as rt, p as P, a as ut, o as nt, e as ae, g as Se, b as it, d as Pe, v as vt, D as ct, f as Y, X as ht, i as oe, l as dt, h as pt, x as Oe, F as yt, q as ft, r as bt, y as mt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as gt, u as kt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import $t from "./Title-B5qqUI3M.js";
|
|
9
|
+
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const _t = ["id"], At = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"], St = { key: 1 }, Pt = { 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
11
|
key: 5,
|
|
19
12
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
13
|
+
}, Jt = ["innerHTML"], Kt = {
|
|
21
14
|
__name: "vue-ui-strip-plot",
|
|
22
15
|
props: {
|
|
23
16
|
config: {
|
|
@@ -34,59 +27,59 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
34
27
|
}
|
|
35
28
|
},
|
|
36
29
|
emits: ["selectDatapoint"],
|
|
37
|
-
setup(
|
|
38
|
-
const { vue_ui_strip_plot:
|
|
30
|
+
setup(Ne, { expose: Fe, emit: Me }) {
|
|
31
|
+
const Ie = C(() => import("./vue-ui-accordion-CmCs2yR2.js")), We = C(() => import("./DataTable-Cv9CIz-a.js")), De = C(() => import("./PackageVersion-CLY-udAA.js")), Ge = C(() => import("./PenAndPaper-B9na2mbr.js")), Re = C(() => import("./Shape-D3w9qas1.js")), Ve = C(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Ee = C(() => import("./Tooltip-C9rxJ-Ru.js")), Ue = C(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_strip_plot: He } = st(), b = Ne, Be = Me, T = y({
|
|
39
32
|
get() {
|
|
40
33
|
return !!b.dataset && b.dataset.length;
|
|
41
34
|
},
|
|
42
35
|
set(t) {
|
|
43
36
|
return t;
|
|
44
37
|
}
|
|
45
|
-
}),
|
|
46
|
-
get: () =>
|
|
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 = y({
|
|
39
|
+
get: () => ye(),
|
|
47
40
|
set: (t) => t
|
|
48
|
-
}), { userOptionsVisible:
|
|
49
|
-
function
|
|
50
|
-
const t =
|
|
41
|
+
}), { userOptionsVisible: Q, setUserOptionsVisibility: he, keepUserOptionState: de } = wt({ config: e.value }), { svgRef: pe } = Ct({ config: e.value.style.chart.title });
|
|
42
|
+
function ye() {
|
|
43
|
+
const t = ze({
|
|
51
44
|
userConfig: b.config,
|
|
52
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: He
|
|
53
46
|
});
|
|
54
47
|
return t.theme ? {
|
|
55
|
-
...
|
|
56
|
-
userConfig:
|
|
48
|
+
...ze({
|
|
49
|
+
userConfig: ut.vue_ui_strip_plot[t.theme] || b.config,
|
|
57
50
|
defaultConfig: t
|
|
58
51
|
}),
|
|
59
|
-
customPalette:
|
|
52
|
+
customPalette: rt[t.theme] || P
|
|
60
53
|
} : t;
|
|
61
54
|
}
|
|
62
|
-
|
|
63
|
-
e.value =
|
|
55
|
+
Qe(() => b.config, (t) => {
|
|
56
|
+
e.value = ye(), Q.value = !e.value.userOptions.showOnChartHover, fe(), 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
57
|
}, { deep: !0 });
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
const w = Ae(null), O = Ae(null);
|
|
59
|
+
Ze(() => {
|
|
60
|
+
fe();
|
|
68
61
|
});
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
62
|
+
function fe() {
|
|
63
|
+
if (nt(b.dataset) ? ae({
|
|
71
64
|
componentName: "VueUiStripPlot",
|
|
72
65
|
type: "dataset"
|
|
73
66
|
}) : b.dataset.forEach((t, o) => {
|
|
74
|
-
|
|
67
|
+
Se({
|
|
75
68
|
datasetObject: t,
|
|
76
69
|
requiredAttributes: ["name", "plots"]
|
|
77
70
|
}).forEach((l) => {
|
|
78
|
-
|
|
71
|
+
T.value = !1, ae({
|
|
79
72
|
componentName: "VueUiStripPlot",
|
|
80
73
|
type: "datasetSerieAttribute",
|
|
81
74
|
property: l,
|
|
82
75
|
index: o
|
|
83
76
|
});
|
|
84
77
|
}), t.plots && t.plots.forEach((l, r) => {
|
|
85
|
-
|
|
78
|
+
Se({
|
|
86
79
|
datasetObject: l,
|
|
87
80
|
requiredAttributes: ["name", "value"]
|
|
88
81
|
}).forEach((i) => {
|
|
89
|
-
|
|
82
|
+
T.value = !1, ae({
|
|
90
83
|
componentName: "VueUiStripPlot",
|
|
91
84
|
type: "datasetSerieAttribute",
|
|
92
85
|
property: i,
|
|
@@ -95,15 +88,15 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
95
88
|
});
|
|
96
89
|
});
|
|
97
90
|
}), 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:
|
|
91
|
+
const t = gt(() => {
|
|
92
|
+
const { width: o, height: l } = kt({
|
|
93
|
+
chart: I.value,
|
|
94
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
95
|
+
source: ue.value,
|
|
96
|
+
noTitle: ne.value
|
|
104
97
|
});
|
|
105
98
|
requestAnimationFrame(() => {
|
|
106
|
-
|
|
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 = yt({
|
|
107
100
|
relator: Math.min(l, o),
|
|
108
101
|
adjuster: 600,
|
|
109
102
|
source: e.value.style.chart.plots.radius,
|
|
@@ -112,137 +105,137 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
112
105
|
});
|
|
113
106
|
});
|
|
114
107
|
});
|
|
115
|
-
|
|
108
|
+
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
109
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
},
|
|
110
|
+
ie.value = !0, setTimeout(() => {
|
|
111
|
+
W.value = !1;
|
|
112
|
+
}, je.value * 50);
|
|
120
113
|
}
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
et(() => {
|
|
115
|
+
w.value && (O.value && w.value.unobserve(O.value), w.value.disconnect());
|
|
123
116
|
});
|
|
124
|
-
const { isPrinting:
|
|
125
|
-
elementId: `strip-plot_${
|
|
117
|
+
const { isPrinting: be, isImaging: me, generatePdf: ge, generateImage: ke } = xt({
|
|
118
|
+
elementId: `strip-plot_${q.value}`,
|
|
126
119
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
127
120
|
options: e.value.userOptions.print
|
|
128
|
-
}),
|
|
121
|
+
}), Xe = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = y(() => it(e.value.customPalette)), W = v(e.value.useCssAnimation), d = v({
|
|
129
122
|
showTable: e.value.table.show,
|
|
130
123
|
dataLabels: {
|
|
131
124
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
132
125
|
},
|
|
133
126
|
showTooltip: e.value.style.chart.tooltip.show
|
|
134
|
-
}), m =
|
|
127
|
+
}), m = v({
|
|
135
128
|
top: e.value.style.chart.padding.top,
|
|
136
129
|
bottom: e.value.style.chart.padding.bottom,
|
|
137
130
|
left: e.value.style.chart.padding.left,
|
|
138
131
|
right: e.value.style.chart.padding.right
|
|
139
|
-
}),
|
|
140
|
-
width:
|
|
132
|
+
}), 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
|
+
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
141
134
|
height: e.value.style.chart.height
|
|
142
|
-
}), a =
|
|
143
|
-
const t =
|
|
135
|
+
}), a = y(() => {
|
|
136
|
+
const t = D.value * b.dataset.length + m.value.left + m.value.right;
|
|
144
137
|
return {
|
|
145
138
|
left: m.value.left,
|
|
146
139
|
right: t - m.value.right,
|
|
147
140
|
top: m.value.top,
|
|
148
|
-
bottom:
|
|
149
|
-
width:
|
|
150
|
-
height:
|
|
151
|
-
stripWidth:
|
|
152
|
-
absoluteHeight:
|
|
141
|
+
bottom: R.value - m.value.bottom,
|
|
142
|
+
width: D.value * b.dataset.length,
|
|
143
|
+
height: R.value - m.value.top - m.value.bottom,
|
|
144
|
+
stripWidth: D.value,
|
|
145
|
+
absoluteHeight: R.value,
|
|
153
146
|
absoluteWidth: t
|
|
154
147
|
};
|
|
155
|
-
}),
|
|
156
|
-
const l =
|
|
148
|
+
}), E = y(() => T.value ? b.dataset.map((t, o) => {
|
|
149
|
+
const l = le();
|
|
157
150
|
return {
|
|
158
151
|
...t,
|
|
159
152
|
id: l,
|
|
160
|
-
color: t.color ?
|
|
153
|
+
color: t.color ? Pe(t.color) : xe.value[o] || P[o] || P[o % P.length],
|
|
161
154
|
plots: t.plots.map((r) => ({
|
|
162
155
|
...r,
|
|
163
|
-
value:
|
|
156
|
+
value: vt(r.value),
|
|
164
157
|
parentId: l,
|
|
165
|
-
color: t.color ?
|
|
166
|
-
id:
|
|
158
|
+
color: t.color ? Pe(t.color) : xe.value[o] || P[o] || P[o % P.length],
|
|
159
|
+
id: le()
|
|
167
160
|
})).sort((r, i) => r.value - i.value)
|
|
168
161
|
};
|
|
169
|
-
}) : null), x =
|
|
162
|
+
}) : null), x = y(() => (E.value || []).map((t, o) => ({
|
|
170
163
|
...t,
|
|
171
164
|
plots: t.plots.map((l) => ({
|
|
172
165
|
...l,
|
|
173
166
|
x: a.value.left + (o + 1) * a.value.stripWidth - a.value.stripWidth / 2
|
|
174
167
|
}))
|
|
175
|
-
}))),
|
|
168
|
+
}))), je = y(() => Math.max(...x.value.map((t) => t.plots.length))), Z = y(() => {
|
|
176
169
|
const t = x.value.flatMap((o) => o.plots.map((l) => l.value));
|
|
177
170
|
return {
|
|
178
171
|
max: Math.max(...t),
|
|
179
172
|
min: Math.min(...t)
|
|
180
173
|
};
|
|
181
|
-
}),
|
|
174
|
+
}), _ = y(() => ct(Z.value.min < 0 ? Z.value.min : 0, Z.value.max, e.value.style.chart.grid.scaleSteps)), Ye = y(() => (x.value || []).map((t, o) => ({
|
|
182
175
|
...t,
|
|
183
176
|
plots: t.plots.map((l) => ({
|
|
184
177
|
...l,
|
|
185
|
-
y: a.value.bottom - (l.value + Math.abs(
|
|
178
|
+
y: a.value.bottom - (l.value + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min)) * a.value.height
|
|
186
179
|
}))
|
|
187
|
-
}))),
|
|
188
|
-
y: a.value.bottom - a.value.height * ((t + Math.abs(
|
|
180
|
+
}))), we = y(() => _.value.ticks.map((t) => ({
|
|
181
|
+
y: a.value.bottom - a.value.height * ((t + Math.abs(_.value.min)) / (_.value.max + Math.abs(_.value.min))),
|
|
189
182
|
x1: a.value.left,
|
|
190
183
|
x2: a.value.right,
|
|
191
184
|
value: t
|
|
192
|
-
}))),
|
|
193
|
-
function
|
|
194
|
-
|
|
185
|
+
}))), ee = v(null), h = v(null);
|
|
186
|
+
function qe({ datapoint: t, seriesIndex: o }) {
|
|
187
|
+
ee.value = { datapoint: t, seriesIndex: o, config: e.value, series: E.value }, J.value = !0, h.value = t;
|
|
195
188
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
196
|
-
if (
|
|
189
|
+
if (Oe(l) && mt(() => l({
|
|
197
190
|
seriesIndex: o,
|
|
198
191
|
datapoint: t,
|
|
199
|
-
series:
|
|
192
|
+
series: E.value,
|
|
200
193
|
config: e.value
|
|
201
194
|
})))
|
|
202
|
-
|
|
195
|
+
K.value = l({
|
|
203
196
|
seriesIndex: o,
|
|
204
197
|
datapoint: t,
|
|
205
|
-
series:
|
|
198
|
+
series: E.value,
|
|
206
199
|
config: e.value
|
|
207
200
|
});
|
|
208
201
|
else {
|
|
209
202
|
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>${
|
|
203
|
+
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
204
|
e.value.style.chart.labels.formatter,
|
|
212
205
|
t.value,
|
|
213
|
-
|
|
206
|
+
Y({
|
|
214
207
|
p: e.value.style.chart.labels.prefix,
|
|
215
208
|
v: t.value,
|
|
216
209
|
s: e.value.style.chart.labels.suffix,
|
|
217
210
|
r: e.value.style.chart.tooltip.roundingValue
|
|
218
211
|
}),
|
|
219
212
|
{ datapoint: t, seriesIndex: o }
|
|
220
|
-
)}</div>`,
|
|
213
|
+
)}</div>`, K.value = `<div>${r}</div>`;
|
|
221
214
|
}
|
|
222
215
|
}
|
|
223
|
-
const U =
|
|
216
|
+
const U = y(() => {
|
|
224
217
|
const t = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, i) => i.value - r.value).map((r) => ({
|
|
225
218
|
name: `${l.name} - ${r.name}`,
|
|
226
219
|
color: r.color
|
|
227
220
|
}))), o = x.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((r, i) => i.value - r.value).map((r) => r.value));
|
|
228
221
|
return { head: t, body: o };
|
|
229
222
|
});
|
|
230
|
-
function
|
|
231
|
-
|
|
223
|
+
function Ce() {
|
|
224
|
+
ot(() => {
|
|
232
225
|
const t = U.value.head.map((r, i) => [[
|
|
233
226
|
r.name
|
|
234
|
-
], [U.value.body[i]]]), 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 =
|
|
235
|
-
|
|
227
|
+
], [U.value.body[i]]]), 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);
|
|
228
|
+
bt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
236
229
|
});
|
|
237
230
|
}
|
|
238
|
-
const
|
|
231
|
+
const H = y(() => {
|
|
239
232
|
const t = [
|
|
240
233
|
e.value.table.columnNames.series,
|
|
241
234
|
e.value.table.columnNames.value
|
|
242
|
-
], o = U.value.head.map((i,
|
|
243
|
-
const
|
|
235
|
+
], o = U.value.head.map((i, A) => {
|
|
236
|
+
const X = Y({
|
|
244
237
|
p: e.value.style.chart.labels.prefix,
|
|
245
|
-
v: U.value.body[
|
|
238
|
+
v: U.value.body[A],
|
|
246
239
|
s: e.value.style.chart.labels.suffix,
|
|
247
240
|
r: e.value.table.td.roundingValue
|
|
248
241
|
});
|
|
@@ -251,7 +244,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
251
244
|
color: i.color,
|
|
252
245
|
name: i.name
|
|
253
246
|
},
|
|
254
|
-
|
|
247
|
+
X
|
|
255
248
|
];
|
|
256
249
|
}), l = {
|
|
257
250
|
th: {
|
|
@@ -275,67 +268,67 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
275
268
|
body: o,
|
|
276
269
|
config: l
|
|
277
270
|
};
|
|
278
|
-
}),
|
|
279
|
-
function
|
|
280
|
-
|
|
271
|
+
}), N = v(!1);
|
|
272
|
+
function Je(t) {
|
|
273
|
+
N.value = t, se.value += 1;
|
|
281
274
|
}
|
|
282
|
-
function
|
|
275
|
+
function Ke() {
|
|
283
276
|
return x.value;
|
|
284
277
|
}
|
|
285
|
-
function
|
|
278
|
+
function $e() {
|
|
286
279
|
d.value.showTable = !d.value.showTable;
|
|
287
280
|
}
|
|
288
|
-
function
|
|
281
|
+
function Te() {
|
|
289
282
|
d.value.dataLabels.show = !d.value.dataLabels.show;
|
|
290
283
|
}
|
|
291
|
-
function
|
|
284
|
+
function _e() {
|
|
292
285
|
d.value.showTooltip = !d.value.showTooltip;
|
|
293
286
|
}
|
|
294
|
-
const
|
|
295
|
-
function
|
|
296
|
-
|
|
287
|
+
const B = v(!1);
|
|
288
|
+
function te() {
|
|
289
|
+
B.value = !B.value;
|
|
297
290
|
}
|
|
298
|
-
return
|
|
299
|
-
getData:
|
|
300
|
-
generatePdf:
|
|
301
|
-
generateCsv:
|
|
302
|
-
generateImage:
|
|
303
|
-
toggleTable:
|
|
304
|
-
toggleLabels:
|
|
305
|
-
toggleTooltip:
|
|
306
|
-
toggleAnnotator:
|
|
291
|
+
return Fe({
|
|
292
|
+
getData: Ke,
|
|
293
|
+
generatePdf: ge,
|
|
294
|
+
generateCsv: Ce,
|
|
295
|
+
generateImage: ke,
|
|
296
|
+
toggleTable: $e,
|
|
297
|
+
toggleLabels: Te,
|
|
298
|
+
toggleTooltip: _e,
|
|
299
|
+
toggleAnnotator: te
|
|
307
300
|
}), (t, o) => (s(), u("div", {
|
|
308
301
|
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] = () =>
|
|
302
|
+
ref: I,
|
|
303
|
+
class: G(`vue-ui-strip-plot ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
304
|
+
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
|
+
id: `strip-plot_${q.value}`,
|
|
306
|
+
onMouseenter: o[2] || (o[2] = () => n(he)(!0)),
|
|
307
|
+
onMouseleave: o[3] || (o[3] = () => n(he)(!1))
|
|
315
308
|
}, [
|
|
316
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
309
|
+
e.value.userOptions.buttons.annotator ? (s(), L(n(Ge), {
|
|
317
310
|
key: 0,
|
|
318
|
-
svgRef:
|
|
311
|
+
svgRef: n(pe),
|
|
319
312
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
320
313
|
color: e.value.style.chart.color,
|
|
321
|
-
active:
|
|
322
|
-
onClose:
|
|
314
|
+
active: B.value,
|
|
315
|
+
onClose: te
|
|
323
316
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
324
|
-
|
|
317
|
+
Xe.value ? (s(), u("div", {
|
|
325
318
|
key: 1,
|
|
326
319
|
ref_key: "noTitle",
|
|
327
|
-
ref:
|
|
320
|
+
ref: ne,
|
|
328
321
|
class: "vue-data-ui-no-title-space",
|
|
329
322
|
style: "height:36px; width: 100%;background:transparent"
|
|
330
323
|
}, null, 512)) : c("", !0),
|
|
331
324
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
332
325
|
key: 2,
|
|
333
326
|
ref_key: "chartTitle",
|
|
334
|
-
ref:
|
|
327
|
+
ref: re,
|
|
335
328
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
336
329
|
}, [
|
|
337
|
-
(s(),
|
|
338
|
-
key: `title_${
|
|
330
|
+
(s(), L($t, {
|
|
331
|
+
key: `title_${ve.value}`,
|
|
339
332
|
config: {
|
|
340
333
|
title: {
|
|
341
334
|
cy: "donut-div-title",
|
|
@@ -348,14 +341,14 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
348
341
|
}
|
|
349
342
|
}, null, 8, ["config"]))
|
|
350
343
|
], 512)) : c("", !0),
|
|
351
|
-
e.value.userOptions.show &&
|
|
344
|
+
e.value.userOptions.show && T.value && (n(de) || n(Q)) ? (s(), L(n(Ue), {
|
|
352
345
|
ref: "details",
|
|
353
|
-
key: `user_option_${
|
|
346
|
+
key: `user_option_${se.value}`,
|
|
354
347
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
348
|
color: e.value.style.chart.color,
|
|
356
|
-
isPrinting:
|
|
357
|
-
isImaging:
|
|
358
|
-
uid:
|
|
349
|
+
isPrinting: n(be),
|
|
350
|
+
isImaging: n(me),
|
|
351
|
+
uid: q.value,
|
|
359
352
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
360
353
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
361
354
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -364,113 +357,113 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
364
357
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
365
358
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
359
|
isTooltip: d.value.showTooltip,
|
|
367
|
-
isFullscreen:
|
|
360
|
+
isFullscreen: N.value,
|
|
368
361
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
|
-
chartElement:
|
|
362
|
+
chartElement: I.value,
|
|
370
363
|
position: e.value.userOptions.position,
|
|
371
364
|
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:
|
|
365
|
+
isAnnotation: B.value,
|
|
366
|
+
onToggleFullscreen: Je,
|
|
367
|
+
onGeneratePdf: n(ge),
|
|
368
|
+
onGenerateCsv: Ce,
|
|
369
|
+
onGenerateImage: n(ke),
|
|
370
|
+
onToggleTable: $e,
|
|
371
|
+
onToggleLabels: Te,
|
|
372
|
+
onToggleTooltip: _e,
|
|
373
|
+
onToggleAnnotator: te,
|
|
374
|
+
style: j({
|
|
375
|
+
visibility: n(de) ? n(Q) ? "visible" : "hidden" : "visible"
|
|
383
376
|
})
|
|
384
|
-
},
|
|
377
|
+
}, tt({ _: 2 }, [
|
|
385
378
|
t.$slots.menuIcon ? {
|
|
386
379
|
name: "menuIcon",
|
|
387
|
-
fn:
|
|
388
|
-
p(t.$slots, "menuIcon",
|
|
380
|
+
fn: f(({ isOpen: l, color: r }) => [
|
|
381
|
+
p(t.$slots, "menuIcon", F(M({ isOpen: l, color: r })), void 0, !0)
|
|
389
382
|
]),
|
|
390
383
|
key: "0"
|
|
391
384
|
} : void 0,
|
|
392
385
|
t.$slots.optionTooltip ? {
|
|
393
386
|
name: "optionTooltip",
|
|
394
|
-
fn:
|
|
387
|
+
fn: f(() => [
|
|
395
388
|
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
396
389
|
]),
|
|
397
390
|
key: "1"
|
|
398
391
|
} : void 0,
|
|
399
392
|
t.$slots.optionPdf ? {
|
|
400
393
|
name: "optionPdf",
|
|
401
|
-
fn:
|
|
394
|
+
fn: f(() => [
|
|
402
395
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
403
396
|
]),
|
|
404
397
|
key: "2"
|
|
405
398
|
} : void 0,
|
|
406
399
|
t.$slots.optionCsv ? {
|
|
407
400
|
name: "optionCsv",
|
|
408
|
-
fn:
|
|
401
|
+
fn: f(() => [
|
|
409
402
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
410
403
|
]),
|
|
411
404
|
key: "3"
|
|
412
405
|
} : void 0,
|
|
413
406
|
t.$slots.optionImg ? {
|
|
414
407
|
name: "optionImg",
|
|
415
|
-
fn:
|
|
408
|
+
fn: f(() => [
|
|
416
409
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
417
410
|
]),
|
|
418
411
|
key: "4"
|
|
419
412
|
} : void 0,
|
|
420
413
|
t.$slots.optionTable ? {
|
|
421
414
|
name: "optionTable",
|
|
422
|
-
fn:
|
|
415
|
+
fn: f(() => [
|
|
423
416
|
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
424
417
|
]),
|
|
425
418
|
key: "5"
|
|
426
419
|
} : void 0,
|
|
427
420
|
t.$slots.optionLabels ? {
|
|
428
421
|
name: "optionLabels",
|
|
429
|
-
fn:
|
|
422
|
+
fn: f(() => [
|
|
430
423
|
p(t.$slots, "optionLabels", {}, void 0, !0)
|
|
431
424
|
]),
|
|
432
425
|
key: "6"
|
|
433
426
|
} : void 0,
|
|
434
427
|
t.$slots.optionFullscreen ? {
|
|
435
428
|
name: "optionFullscreen",
|
|
436
|
-
fn:
|
|
437
|
-
p(t.$slots, "optionFullscreen",
|
|
429
|
+
fn: f(({ toggleFullscreen: l, isFullscreen: r }) => [
|
|
430
|
+
p(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
|
|
438
431
|
]),
|
|
439
432
|
key: "7"
|
|
440
433
|
} : void 0,
|
|
441
434
|
t.$slots.optionAnnotator ? {
|
|
442
435
|
name: "optionAnnotator",
|
|
443
|
-
fn:
|
|
444
|
-
p(t.$slots, "optionAnnotator",
|
|
436
|
+
fn: f(({ toggleAnnotator: l, isAnnotator: r }) => [
|
|
437
|
+
p(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
|
|
445
438
|
]),
|
|
446
439
|
key: "8"
|
|
447
440
|
} : void 0
|
|
448
441
|
]), 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
|
-
|
|
442
|
+
T.value ? (s(), u("svg", {
|
|
450
443
|
key: 4,
|
|
451
444
|
ref_key: "svgRef",
|
|
452
|
-
ref:
|
|
453
|
-
xmlns:
|
|
454
|
-
class:
|
|
455
|
-
viewBox: `0 0 ${
|
|
456
|
-
style:
|
|
445
|
+
ref: pe,
|
|
446
|
+
xmlns: n(ht),
|
|
447
|
+
class: G({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
448
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
449
|
+
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
457
450
|
}, [
|
|
458
|
-
|
|
451
|
+
Le(n(De)),
|
|
459
452
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
460
453
|
key: 0,
|
|
461
454
|
x: a.value.left,
|
|
462
455
|
y: a.value.top,
|
|
463
|
-
width: a.value.width,
|
|
464
|
-
height: a.value.height,
|
|
456
|
+
width: Math.max(0.1, a.value.width),
|
|
457
|
+
height: Math.max(0.1, a.value.height),
|
|
465
458
|
style: {
|
|
466
459
|
pointerEvents: "none"
|
|
467
460
|
}
|
|
468
461
|
}, [
|
|
469
462
|
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,
|
|
463
|
+
], 8, Lt)) : c("", !0),
|
|
464
|
+
e.value.style.chart.grid.show ? (s(), u("g", St, [
|
|
465
|
+
e.value.style.chart.grid.horizontalGrid.show ? (s(), u("g", Pt, [
|
|
466
|
+
(s(!0), u(g, null, $(we.value, (l) => (s(), u("line", {
|
|
474
467
|
x1: l.x1,
|
|
475
468
|
x2: l.x2,
|
|
476
469
|
y1: l.y,
|
|
@@ -479,10 +472,10 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
479
472
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
480
473
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
481
474
|
"stroke-linecap": "round"
|
|
482
|
-
}, null, 8,
|
|
475
|
+
}, null, 8, Ot))), 256))
|
|
483
476
|
])) : c("", !0),
|
|
484
|
-
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g",
|
|
485
|
-
(s(!0), u(g, null,
|
|
477
|
+
e.value.style.chart.grid.verticalGrid.show ? (s(), u("g", zt, [
|
|
478
|
+
(s(!0), u(g, null, $(x.value, (l, r) => (s(), u("line", {
|
|
486
479
|
x1: a.value.left + (r + 1) * a.value.stripWidth,
|
|
487
480
|
x2: a.value.left + (r + 1) * a.value.stripWidth,
|
|
488
481
|
y1: a.value.top,
|
|
@@ -491,7 +484,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
491
484
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
492
485
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
493
486
|
"stroke-linecap": "round"
|
|
494
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, Nt))), 256))
|
|
495
488
|
])) : c("", !0),
|
|
496
489
|
k("line", {
|
|
497
490
|
x1: a.value.left,
|
|
@@ -501,7 +494,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
501
494
|
stroke: e.value.style.chart.grid.stroke,
|
|
502
495
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
503
496
|
"stroke-linecap": "round"
|
|
504
|
-
}, null, 8,
|
|
497
|
+
}, null, 8, Ft),
|
|
505
498
|
k("line", {
|
|
506
499
|
x1: a.value.left,
|
|
507
500
|
x2: a.value.right,
|
|
@@ -510,39 +503,39 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
510
503
|
stroke: e.value.style.chart.grid.stroke,
|
|
511
504
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
512
505
|
"stroke-linecap": "round"
|
|
513
|
-
}, null, 8,
|
|
506
|
+
}, null, 8, Mt)
|
|
514
507
|
])) : c("", !0),
|
|
515
|
-
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 },
|
|
508
|
+
e.value.style.chart.labels.yAxisLabels.show ? (s(!0), u(g, { key: 2 }, $(we.value, (l, r) => (s(), u("text", {
|
|
516
509
|
x: l.x1 - e.value.style.chart.labels.yAxisLabels.fontSize / 2 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
517
510
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
518
511
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
519
512
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
520
513
|
"text-anchor": "end"
|
|
521
|
-
},
|
|
514
|
+
}, S(n(oe)(
|
|
522
515
|
e.value.style.chart.labels.formatter,
|
|
523
516
|
l.value,
|
|
524
|
-
|
|
517
|
+
n(Y)({
|
|
525
518
|
p: e.value.style.chart.labels.prefix,
|
|
526
519
|
v: l.value,
|
|
527
520
|
s: e.value.style.chart.labels.suffix,
|
|
528
521
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
529
522
|
}),
|
|
530
523
|
{ datapoint: l, seriesIndex: r }
|
|
531
|
-
)), 9,
|
|
532
|
-
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 },
|
|
524
|
+
)), 9, It))), 256)) : c("", !0),
|
|
525
|
+
e.value.style.chart.labels.xAxisLabels.show ? (s(!0), u(g, { key: 3 }, $(x.value, (l, r) => (s(), u("text", {
|
|
533
526
|
x: a.value.left + (r + 1) * a.value.stripWidth - a.value.stripWidth / 2,
|
|
534
527
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
535
528
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
536
529
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
537
530
|
"text-anchor": "middle"
|
|
538
|
-
},
|
|
531
|
+
}, S(l.name), 9, Wt))), 256)) : c("", !0),
|
|
539
532
|
e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
|
|
540
533
|
key: 4,
|
|
541
534
|
fill: e.value.style.chart.labels.axis.color,
|
|
542
535
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
543
536
|
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
537
|
"text-anchor": "middle"
|
|
545
|
-
},
|
|
538
|
+
}, S(e.value.style.chart.labels.axis.yLabel), 9, Dt)) : c("", !0),
|
|
546
539
|
e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
|
|
547
540
|
key: 5,
|
|
548
541
|
fill: e.value.style.chart.labels.axis.color,
|
|
@@ -550,7 +543,7 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
550
543
|
x: a.value.left + a.value.width / 2,
|
|
551
544
|
y: a.value.absoluteHeight,
|
|
552
545
|
"text-anchor": "middle"
|
|
553
|
-
},
|
|
546
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, Gt)) : c("", !0),
|
|
554
547
|
h.value ? (s(), u(g, { key: 6 }, [
|
|
555
548
|
k("line", {
|
|
556
549
|
x1: a.value.left,
|
|
@@ -559,88 +552,88 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
559
552
|
y2: h.value.y,
|
|
560
553
|
stroke: h.value.color,
|
|
561
554
|
"stroke-width": 1,
|
|
562
|
-
class:
|
|
563
|
-
}, null, 10,
|
|
555
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
556
|
+
}, null, 10, Rt),
|
|
564
557
|
k("circle", {
|
|
565
558
|
cx: a.value.left,
|
|
566
559
|
cy: h.value.y,
|
|
567
560
|
r: 3,
|
|
568
561
|
fill: h.value.color,
|
|
569
|
-
class:
|
|
570
|
-
}, null, 10,
|
|
562
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
563
|
+
}, null, 10, Vt),
|
|
571
564
|
k("circle", {
|
|
572
565
|
cx: a.value.right,
|
|
573
566
|
cy: h.value.y,
|
|
574
567
|
r: 3,
|
|
575
568
|
fill: h.value.color,
|
|
576
|
-
class:
|
|
577
|
-
}, null, 10,
|
|
569
|
+
class: G({ "select-circle": e.value.useCssAnimation })
|
|
570
|
+
}, null, 10, Et)
|
|
578
571
|
], 64)) : c("", !0),
|
|
579
572
|
k("defs", null, [
|
|
580
|
-
(s(!0), u(g, null,
|
|
573
|
+
(s(!0), u(g, null, $(x.value, (l) => (s(), u("radialGradient", {
|
|
581
574
|
id: l.id,
|
|
582
575
|
fy: "30%"
|
|
583
576
|
}, [
|
|
584
577
|
k("stop", {
|
|
585
578
|
offset: "10%",
|
|
586
|
-
"stop-color":
|
|
587
|
-
}, null, 8,
|
|
579
|
+
"stop-color": n(dt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
580
|
+
}, null, 8, Ht),
|
|
588
581
|
k("stop", {
|
|
589
582
|
offset: "90%",
|
|
590
|
-
"stop-color":
|
|
591
|
-
}, null, 8,
|
|
583
|
+
"stop-color": n(pt)(l.color, 0.1)
|
|
584
|
+
}, null, 8, Bt),
|
|
592
585
|
k("stop", {
|
|
593
586
|
offset: "100%",
|
|
594
587
|
"stop-color": l.color
|
|
595
|
-
}, null, 8,
|
|
596
|
-
], 8,
|
|
588
|
+
}, null, 8, Xt)
|
|
589
|
+
], 8, Ut))), 256))
|
|
597
590
|
]),
|
|
598
|
-
(s(!0), u(g, null,
|
|
599
|
-
(s(!0), u(g, null,
|
|
600
|
-
plot: { x: i.x, y:
|
|
601
|
-
radius: h.value && h.value.id === i.id ?
|
|
591
|
+
(s(!0), u(g, null, $(Ye.value, (l, r) => (s(), u(g, null, [
|
|
592
|
+
(s(!0), u(g, null, $(l.plots, (i, A) => (s(), L(n(Re), lt({
|
|
593
|
+
plot: { x: i.x, y: ie.value ? i.y : a.value.top },
|
|
594
|
+
radius: h.value && h.value.id === i.id ? V.value * 1.5 : V.value,
|
|
602
595
|
shape: e.value.style.chart.plots.shape,
|
|
603
596
|
stroke: e.value.style.chart.plots.stroke,
|
|
604
597
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
605
598
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
606
|
-
onMouseenter: (
|
|
607
|
-
onMouseleave: o[0] || (o[0] = (
|
|
608
|
-
|
|
599
|
+
onMouseenter: (X) => qe({ datapoint: i, seriesIndex: A }),
|
|
600
|
+
onMouseleave: o[0] || (o[0] = (X) => {
|
|
601
|
+
J.value = !1, h.value = null;
|
|
609
602
|
}),
|
|
610
|
-
onClick: (
|
|
611
|
-
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};${
|
|
612
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
603
|
+
onClick: (X) => Be("selectDatapoint", i),
|
|
604
|
+
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:${A * 50}ms` : ""}`,
|
|
605
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && W.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !W.value }
|
|
613
606
|
}, { 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
|
-
|
|
607
|
+
d.value.dataLabels.show ? (s(), u("g", jt, [
|
|
608
|
+
(s(!0), u(g, null, $(l.plots, (i, A) => (s(), u(g, null, [
|
|
609
|
+
A === l.plots.length - 1 || h.value && h.value.id === i.id && !d.value.showTooltip ? (s(), u("text", {
|
|
617
610
|
key: 0,
|
|
618
611
|
x: i.x,
|
|
619
|
-
y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY -
|
|
612
|
+
y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - V.value * (h.value && h.value.id === i.id && !d.value.showTooltip ? 2 : 1.5),
|
|
620
613
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
621
614
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
622
615
|
"text-anchor": "middle",
|
|
623
|
-
style:
|
|
624
|
-
},
|
|
616
|
+
style: j(`opacity:${e.value.useCssAnimation && W.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
617
|
+
}, S(i.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? n(oe)(
|
|
625
618
|
e.value.style.chart.labels.formatter,
|
|
626
619
|
i.value,
|
|
627
|
-
|
|
620
|
+
n(Y)({
|
|
628
621
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
629
622
|
v: i.value,
|
|
630
623
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
631
624
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
632
625
|
}),
|
|
633
|
-
{ datapoint: i, seriesIndex:
|
|
634
|
-
) : ""), 13,
|
|
626
|
+
{ datapoint: i, seriesIndex: A }
|
|
627
|
+
) : ""), 13, Yt)) : c("", !0)
|
|
635
628
|
], 64))), 256))
|
|
636
629
|
])) : c("", !0)
|
|
637
630
|
], 64))), 256)),
|
|
638
631
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
639
|
-
], 14,
|
|
640
|
-
t.$slots.watermark ? (s(), u("div",
|
|
641
|
-
p(t.$slots, "watermark",
|
|
632
|
+
], 14, At)) : c("", !0),
|
|
633
|
+
t.$slots.watermark ? (s(), u("div", qt, [
|
|
634
|
+
p(t.$slots, "watermark", F(M({ isPrinting: n(be) || n(me) })), void 0, !0)
|
|
642
635
|
])) : c("", !0),
|
|
643
|
-
|
|
636
|
+
T.value ? c("", !0) : (s(), L(n(Ve), {
|
|
644
637
|
key: 6,
|
|
645
638
|
config: {
|
|
646
639
|
type: "stripPlot",
|
|
@@ -655,13 +648,13 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
655
648
|
t.$slots.source ? (s(), u("div", {
|
|
656
649
|
key: 7,
|
|
657
650
|
ref_key: "source",
|
|
658
|
-
ref:
|
|
651
|
+
ref: ue,
|
|
659
652
|
dir: "auto"
|
|
660
653
|
}, [
|
|
661
654
|
p(t.$slots, "source", {}, void 0, !0)
|
|
662
655
|
], 512)) : c("", !0),
|
|
663
|
-
|
|
664
|
-
show: d.value.showTooltip &&
|
|
656
|
+
Le(n(Ee), {
|
|
657
|
+
show: d.value.showTooltip && J.value,
|
|
665
658
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
666
659
|
color: e.value.style.chart.tooltip.color,
|
|
667
660
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -671,20 +664,20 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
671
664
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
672
665
|
position: e.value.style.chart.tooltip.position,
|
|
673
666
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
674
|
-
parent:
|
|
675
|
-
content:
|
|
676
|
-
isFullscreen:
|
|
677
|
-
isCustom:
|
|
667
|
+
parent: I.value,
|
|
668
|
+
content: K.value,
|
|
669
|
+
isFullscreen: N.value,
|
|
670
|
+
isCustom: n(Oe)(e.value.style.chart.tooltip.customFormat)
|
|
678
671
|
}, {
|
|
679
|
-
"tooltip-before":
|
|
680
|
-
p(t.$slots, "tooltip-before",
|
|
672
|
+
"tooltip-before": f(() => [
|
|
673
|
+
p(t.$slots, "tooltip-before", F(M({ ...ee.value })), void 0, !0)
|
|
681
674
|
]),
|
|
682
|
-
"tooltip-after":
|
|
683
|
-
p(t.$slots, "tooltip-after",
|
|
675
|
+
"tooltip-after": f(() => [
|
|
676
|
+
p(t.$slots, "tooltip-after", F(M({ ...ee.value })), void 0, !0)
|
|
684
677
|
]),
|
|
685
678
|
_: 3
|
|
686
679
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
687
|
-
|
|
680
|
+
T.value ? (s(), L(n(Ie), {
|
|
688
681
|
key: 8,
|
|
689
682
|
hideDetails: "",
|
|
690
683
|
config: {
|
|
@@ -700,33 +693,33 @@ const Ct = ["id"], $t = ["xmlns", "viewBox"], _t = ["x", "y", "width", "height"]
|
|
|
700
693
|
}
|
|
701
694
|
}
|
|
702
695
|
}, {
|
|
703
|
-
content:
|
|
704
|
-
(s(),
|
|
705
|
-
key: `table_${
|
|
706
|
-
colNames:
|
|
707
|
-
head:
|
|
708
|
-
body:
|
|
709
|
-
config:
|
|
696
|
+
content: f(() => [
|
|
697
|
+
(s(), L(n(We), {
|
|
698
|
+
key: `table_${ce.value}`,
|
|
699
|
+
colNames: H.value.colNames,
|
|
700
|
+
head: H.value.head,
|
|
701
|
+
body: H.value.body,
|
|
702
|
+
config: H.value.config,
|
|
710
703
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
711
704
|
onClose: o[1] || (o[1] = (l) => d.value.showTable = !1)
|
|
712
705
|
}, {
|
|
713
|
-
th:
|
|
706
|
+
th: f(({ th: l }) => [
|
|
714
707
|
k("div", {
|
|
715
708
|
innerHTML: l,
|
|
716
709
|
style: { display: "flex", "align-items": "center" }
|
|
717
|
-
}, null, 8,
|
|
710
|
+
}, null, 8, Jt)
|
|
718
711
|
]),
|
|
719
|
-
td:
|
|
720
|
-
|
|
712
|
+
td: f(({ td: l }) => [
|
|
713
|
+
at(S(l.name || l), 1)
|
|
721
714
|
]),
|
|
722
715
|
_: 1
|
|
723
716
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
724
717
|
]),
|
|
725
718
|
_: 1
|
|
726
719
|
}, 8, ["config"])) : c("", !0)
|
|
727
|
-
], 46,
|
|
720
|
+
], 46, _t));
|
|
728
721
|
}
|
|
729
|
-
},
|
|
722
|
+
}, ul = /* @__PURE__ */ Tt(Kt, [["__scopeId", "data-v-35a31690"]]);
|
|
730
723
|
export {
|
|
731
|
-
|
|
724
|
+
ul as default
|
|
732
725
|
};
|