vue-data-ui 3.16.0 → 3.16.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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineAsyncComponent as R, computed as m, ref as
|
|
2
|
-
import { j as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { A as
|
|
18
|
-
import { B as
|
|
19
|
-
import { _ as
|
|
20
|
-
const
|
|
1
|
+
import { defineAsyncComponent as R, computed as m, ref as h, toRefs as sl, watch as Fe, shallowRef as xt, onMounted as nl, onBeforeUnmount as rl, openBlock as n, createElementBlock as r, unref as v, normalizeStyle as _, normalizeClass as O, createElementVNode as d, toDisplayString as w, createBlock as B, createCommentVNode as y, withCtx as p, renderSlot as g, normalizeProps as T, guardReactiveProps as q, createSlots as $t, createVNode as de, Fragment as A, renderList as N, mergeProps as kt, Teleport as il, resolveDynamicComponent as vl, createTextVNode as wt, nextTick as Ce } from "vue";
|
|
2
|
+
import { j as Lt, t as dl, m as cl, p as Ie, o as hl, q as ae, n as yl, s as bl, ak as fl, k as D, l as H, X as pl, u as Se, v as gl, al as ml, Z as xl, W as $l, a0 as kl, a1 as wl, T as Ll, U as Cl } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as Sl, u as _l } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Tl } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as ql, B as Al } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as zl } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as Wl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as Xl } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
+
import { u as Re } from "./useNestedProp-Bf5XFbs8.js";
|
|
10
|
+
import { u as Pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Yl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import Ml from "./img-LXxMLmCg.js";
|
|
13
|
+
import Ol from "./Title-BeMKE1cj.js";
|
|
14
|
+
import { _ as Ct } from "./Shape-BKRUOeKk.js";
|
|
15
|
+
import Bl from "./vue_ui_quadrant-DjRs--Uz.js";
|
|
16
|
+
import Nl from "./Legend-CS7Xo5LK.js";
|
|
17
|
+
import { A as Vl } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
|
+
import { B as Fl } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
|
+
import { _ as Il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
+
const Rl = ["id"], Dl = ["id"], Hl = ["id"], El = { style: { position: "relative" } }, Ul = ["xmlns", "aria-describedby", "viewBox", "id"], Ql = ["x", "y", "width", "height"], Gl = ["id"], Kl = ["stop-color"], jl = ["stop-color"], Jl = { key: 1 }, Zl = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ta = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], la = { key: 2 }, aa = ["points", "fill"], oa = ["points", "fill"], ua = ["points", "fill"], sa = ["points", "fill"], na = { key: 3 }, ra = ["y", "fill", "font-size"], ia = ["x", "y", "fill", "font-size"], va = ["x", "y", "fill", "font-size"], da = ["y", "fill", "font-size"], ca = { key: 4 }, ha = ["x", "y", "font-size", "fill"], ya = ["x", "y", "font-size", "fill"], ba = ["x", "y", "font-size", "fill"], fa = ["id", "font-size", "transform", "fill"], pa = ["id", "font-size", "transform", "fill"], ga = ["id", "font-size", "transform", "fill"], ma = { key: 5 }, xa = ["fill", "points"], $a = ["x", "y", "width", "height"], ka = ["x", "y", "width", "height"], wa = ["x", "y", "width", "height"], La = ["x", "y", "width", "height"], Ca = ["x", "y", "onMouseenter", "onMouseleave", "onClick"], Sa = ["data-a11y-plot-id", "cx", "cy", "r", "aria-label"], _a = ["data-a11y-plot-id", "cx", "cy", "r", "aria-label"], Ta = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { "pointer-events": "none" }
|
|
23
|
-
},
|
|
23
|
+
}, qa = ["x", "y", "font-size", "fill"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], za = { key: 0 }, Wa = ["x", "y", "onMouseover", "onMouseleave", "onClick"], Xa = {
|
|
24
24
|
key: 8,
|
|
25
25
|
class: "vue-ui-dna"
|
|
26
|
-
},
|
|
26
|
+
}, Pa = ["points", "fill"], Ya = ["points", "fill"], Ma = ["points", "fill"], Oa = ["points", "fill"], Ba = { key: 9 }, Na = ["x", "y", "font-size", "fill", "font-weight"], Va = { key: 10 }, Fa = ["x", "y", "fill"], Ia = ["x", "y", "fill"], Ra = ["x", "y", "fill"], Da = ["x", "y", "fill"], Ha = ["stroke", "d"], Ea = ["stroke", "d"], Ua = {
|
|
27
27
|
key: 0,
|
|
28
28
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
29
29
|
"data-dom-to-png-ignore": "",
|
|
30
30
|
"aria-hidden": "true"
|
|
31
|
-
},
|
|
31
|
+
}, Qa = {
|
|
32
32
|
key: 5,
|
|
33
33
|
class: "vue-data-ui-watermark"
|
|
34
|
-
},
|
|
34
|
+
}, Ga = ["id"], Ka = ["onClick"], ja = {
|
|
35
35
|
key: 0,
|
|
36
36
|
height: "14",
|
|
37
37
|
width: "14",
|
|
38
38
|
viewBox: "0 0 20 20"
|
|
39
|
-
},
|
|
39
|
+
}, Ja = ["innerHTML"], Za = {
|
|
40
40
|
__name: "vue-ui-quadrant",
|
|
41
41
|
props: {
|
|
42
42
|
config: {
|
|
@@ -53,8 +53,8 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
emits: ["selectPlot", "selectSide", "selectLegend", "copyAlt"],
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
56
|
+
setup(St, { expose: _t, emit: Tt }) {
|
|
57
|
+
const qt = R(() => import("./Tooltip-Bf-kM3_A.js")), At = R(() => import("./BaseIcon-Cb3zzG6s.js")), zt = R(() => import("./vue-ui-accordion-nvggWcGN.js")), Wt = R(() => import("./DataTable-DT2kIdQ6.js")), Xt = R(() => import("./PenAndPaper-Ct3qJ4lA.js")), Pt = R(() => import("./UserOptions-rW2fRf3V.js")), Yt = R(() => import("./PackageVersion-DPO-OOVI.js")), Mt = R(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_quadrant: Ot } = Tl(), { isThemeValid: Bt, warnInvalidTheme: Nt } = Xl(), M = St, De = m(() => !!M.dataset && M.dataset.length), $ = h(Lt()), ce = Tt, he = h(!1), _e = h(""), He = h(0), x = h(!1), V = h(null), Ee = h(null), Ue = h(null), Qe = h(null), Ge = h(null), Ke = h(0), je = h(0), Je = h(0), Ze = h(!1), oe = h(null), Te = h(null), ye = h(!1), be = h(!1), j = h(null), fe = h(null), et = h({ x: 0, y: 0 }), qe = h("pointer"), pe = h(!1), e = h(ze()), X = m(() => e.value.userOptions.useCursorPointer), Vt = m(() => ({
|
|
58
58
|
defaultConfig: {
|
|
59
59
|
userOptions: { show: !1 },
|
|
60
60
|
table: { show: !1 },
|
|
@@ -91,16 +91,16 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
userConfig: e.value.skeletonConfig ?? {}
|
|
94
|
-
})), { loading:
|
|
95
|
-
...
|
|
94
|
+
})), { loading: ge, FINAL_DATASET: tt } = ql({
|
|
95
|
+
...sl(M),
|
|
96
96
|
FINAL_CONFIG: e,
|
|
97
|
-
prepareConfig:
|
|
97
|
+
prepareConfig: ze,
|
|
98
98
|
callback: () => {
|
|
99
99
|
Promise.resolve().then(async () => {
|
|
100
|
-
await
|
|
100
|
+
await Ce(), k.value.showTable = e.value.table.show;
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
|
-
skeletonDataset:
|
|
103
|
+
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
104
104
|
{
|
|
105
105
|
name: "_",
|
|
106
106
|
shape: "circle",
|
|
@@ -122,95 +122,95 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
124
|
],
|
|
125
|
-
skeletonConfig:
|
|
125
|
+
skeletonConfig: dl({
|
|
126
126
|
defaultConfig: e.value,
|
|
127
|
-
userConfig:
|
|
127
|
+
userConfig: Vt.value
|
|
128
128
|
})
|
|
129
|
-
}), { userOptionsVisible:
|
|
130
|
-
function
|
|
131
|
-
const l =
|
|
132
|
-
userConfig:
|
|
133
|
-
defaultConfig:
|
|
129
|
+
}), { userOptionsVisible: Ae, setUserOptionsVisibility: lt, keepUserOptionState: at } = Pl({ config: e.value }), { svgRef: E } = Yl({ config: e.value.style.chart.title });
|
|
130
|
+
function ze() {
|
|
131
|
+
const l = Re({
|
|
132
|
+
userConfig: M.config,
|
|
133
|
+
defaultConfig: Ot
|
|
134
134
|
}), o = l.theme;
|
|
135
135
|
if (!o) return l;
|
|
136
|
-
if (!
|
|
137
|
-
return
|
|
138
|
-
const a =
|
|
139
|
-
userConfig:
|
|
136
|
+
if (!Bt.value(l))
|
|
137
|
+
return Nt(l), l;
|
|
138
|
+
const a = Re({
|
|
139
|
+
userConfig: Bl[o] || M.config,
|
|
140
140
|
defaultConfig: l
|
|
141
|
-
}), s =
|
|
142
|
-
userConfig:
|
|
141
|
+
}), s = Re({
|
|
142
|
+
userConfig: M.config,
|
|
143
143
|
defaultConfig: a
|
|
144
144
|
});
|
|
145
145
|
return {
|
|
146
146
|
...s,
|
|
147
|
-
customPalette: s.customPalette.length ? s.customPalette :
|
|
147
|
+
customPalette: s.customPalette.length ? s.customPalette : cl[o] || Ie
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
e.value =
|
|
150
|
+
Fe(() => M.config, (l) => {
|
|
151
|
+
e.value = ze(), Ae.value = !e.value.userOptions.showOnChartHover, ot(), Ke.value += 1, je.value += 1, Je.value += 1, k.value.plotLabels.show = e.value.style.chart.layout.labels.plotLabels.show, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
152
152
|
}, { deep: !0 });
|
|
153
|
-
const
|
|
154
|
-
function
|
|
155
|
-
if (
|
|
153
|
+
const F = xt(null), J = xt(null), Z = m(() => e.value.debug);
|
|
154
|
+
function ot() {
|
|
155
|
+
if (hl(M.dataset) ? ae({
|
|
156
156
|
componentName: "VueUiQuadrant",
|
|
157
157
|
type: "dataset",
|
|
158
|
-
debug:
|
|
159
|
-
}) :
|
|
160
|
-
[null, void 0].includes(l.name) &&
|
|
158
|
+
debug: Z.value
|
|
159
|
+
}) : M.dataset.forEach((l, o) => {
|
|
160
|
+
[null, void 0].includes(l.name) && ae({
|
|
161
161
|
componentName: "VueUiQuadrant",
|
|
162
162
|
type: "datasetSerieAttribute",
|
|
163
163
|
property: "name",
|
|
164
164
|
index: o,
|
|
165
|
-
debug:
|
|
166
|
-
}), [null, void 0].includes(l.series) ?
|
|
165
|
+
debug: Z.value
|
|
166
|
+
}), [null, void 0].includes(l.series) ? ae({
|
|
167
167
|
componentName: "VueUiQuadrant",
|
|
168
168
|
type: "datasetSerieAttribute",
|
|
169
169
|
property: "series",
|
|
170
170
|
index: o,
|
|
171
|
-
debug:
|
|
171
|
+
debug: Z.value
|
|
172
172
|
}) : l.series.forEach((a, s) => {
|
|
173
|
-
[null, void 0].includes(a.name) &&
|
|
173
|
+
[null, void 0].includes(a.name) && ae({
|
|
174
174
|
componentName: "VueUiQuadrant",
|
|
175
175
|
type: "datasetSerieAttribute",
|
|
176
176
|
property: "name",
|
|
177
177
|
key: "series",
|
|
178
178
|
index: s,
|
|
179
|
-
debug:
|
|
179
|
+
debug: Z.value
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
182
|
}), e.value.responsive) {
|
|
183
|
-
const l =
|
|
184
|
-
const { width: o, height: a } =
|
|
185
|
-
chart:
|
|
186
|
-
title: e.value.style.chart.title.text ?
|
|
187
|
-
legend: e.value.style.chart.legend.show ?
|
|
188
|
-
source:
|
|
189
|
-
noTitle:
|
|
183
|
+
const l = Sl(() => {
|
|
184
|
+
const { width: o, height: a } = _l({
|
|
185
|
+
chart: V.value,
|
|
186
|
+
title: e.value.style.chart.title.text ? Ee.value : null,
|
|
187
|
+
legend: e.value.style.chart.legend.show ? Ue.value : null,
|
|
188
|
+
source: Qe.value,
|
|
189
|
+
noTitle: Ge.value
|
|
190
190
|
});
|
|
191
191
|
L.value = 48, requestAnimationFrame(() => {
|
|
192
192
|
t.value.height = a, t.value.usableHeight = a - L.value * 2, t.value.width = o, t.value.usableWidth = o - L.value * 2, t.value.top = L.value, t.value.left = L.value, t.value.right = o - L.value, t.value.bottom = a - L.value, t.value.centerX = o / 2, t.value.centerY = a - a / 2, t.value.padding = L.value;
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
|
|
195
|
+
F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect()), F.value = new ResizeObserver(l), J.value = V.value.parentNode, F.value.observe(J.value);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}),
|
|
201
|
-
|
|
198
|
+
nl(() => {
|
|
199
|
+
Ze.value = !0, ot();
|
|
200
|
+
}), rl(() => {
|
|
201
|
+
F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect());
|
|
202
202
|
});
|
|
203
|
-
const { isPrinting:
|
|
203
|
+
const { isPrinting: We, isImaging: Xe, generatePdf: ut, generateImage: st } = zl({
|
|
204
204
|
elementId: `vue-ui-quadrant_${$.value}`,
|
|
205
205
|
fileName: e.value.style.chart.title.text || "vue-ui-quadrant",
|
|
206
206
|
options: e.value.userOptions.print
|
|
207
|
-
}),
|
|
207
|
+
}), Ft = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), nt = m(() => yl(e.value.customPalette)), k = h({
|
|
208
208
|
plotLabels: {
|
|
209
209
|
show: e.value.style.chart.layout.labels.plotLabels.show
|
|
210
210
|
},
|
|
211
211
|
showTable: e.value.table.show,
|
|
212
212
|
showTooltip: e.value.style.chart.tooltip.show
|
|
213
|
-
}), L =
|
|
213
|
+
}), L = h(48), t = h({
|
|
214
214
|
height: e.value.style.chart.height,
|
|
215
215
|
usableHeight: e.value.style.chart.height - L.value * 2,
|
|
216
216
|
width: e.value.style.chart.width,
|
|
@@ -222,19 +222,19 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
222
222
|
centerX: e.value.style.chart.width / 2,
|
|
223
223
|
centerY: e.value.style.chart.height - e.value.style.chart.height / 2,
|
|
224
224
|
padding: L.value
|
|
225
|
-
}), b =
|
|
225
|
+
}), b = h({
|
|
226
226
|
...JSON.parse(JSON.stringify(t.value)),
|
|
227
227
|
startX: 0,
|
|
228
228
|
startY: 0
|
|
229
229
|
});
|
|
230
|
-
|
|
230
|
+
Fe(() => t.value, (l) => {
|
|
231
231
|
l && (b.value = {
|
|
232
232
|
...JSON.parse(JSON.stringify(t.value)),
|
|
233
233
|
startX: 0,
|
|
234
234
|
startY: 0
|
|
235
235
|
});
|
|
236
236
|
}, { deep: !0 });
|
|
237
|
-
const f =
|
|
237
|
+
const f = h(null), U = m(() => {
|
|
238
238
|
switch (f.value) {
|
|
239
239
|
case "TL":
|
|
240
240
|
return {
|
|
@@ -275,25 +275,25 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
275
275
|
default:
|
|
276
276
|
return { x: 0, y: 0, text: "", fontSize: 0, fill: "none", bold: !1 };
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
279
|
-
function
|
|
280
|
-
f.value &&
|
|
278
|
+
}), It = h(null), me = h(!1);
|
|
279
|
+
function ue({ targetX: l, targetY: o, targetW: a, targetH: s, side: u }) {
|
|
280
|
+
f.value && re(u);
|
|
281
281
|
const i = {
|
|
282
282
|
x: l - b.value.startX,
|
|
283
283
|
y: o - b.value.startY,
|
|
284
284
|
w: a - b.value.width,
|
|
285
285
|
h: s - b.value.height
|
|
286
|
-
},
|
|
287
|
-
let
|
|
288
|
-
function
|
|
289
|
-
|
|
286
|
+
}, c = e.value.zoomAnimationFrames;
|
|
287
|
+
let Y = 0;
|
|
288
|
+
function we() {
|
|
289
|
+
me.value = !0, b.value.startX += i.x / c, b.value.startY += i.y / c, b.value.width += i.w / c, b.value.height += i.h / c, Y += 1, Y < c ? It.value = requestAnimationFrame(we) : me.value = !1;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
we();
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
if (!
|
|
293
|
+
function I(l) {
|
|
294
|
+
if (!me.value)
|
|
295
295
|
if (x.value && f.value === l)
|
|
296
|
-
|
|
296
|
+
ue({
|
|
297
297
|
targetX: 0,
|
|
298
298
|
targetY: 0,
|
|
299
299
|
targetW: t.value.width,
|
|
@@ -302,7 +302,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
302
302
|
else {
|
|
303
303
|
switch (f.value = l, l) {
|
|
304
304
|
case "TL":
|
|
305
|
-
|
|
305
|
+
ue({
|
|
306
306
|
targetX: 0,
|
|
307
307
|
targetY: 0,
|
|
308
308
|
targetW: t.value.width / 2 + t.value.left,
|
|
@@ -311,7 +311,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
311
311
|
});
|
|
312
312
|
break;
|
|
313
313
|
case "TR":
|
|
314
|
-
|
|
314
|
+
ue({
|
|
315
315
|
targetX: t.value.width / 2 - t.value.left,
|
|
316
316
|
targetY: 0,
|
|
317
317
|
targetW: t.value.width / 2 + t.value.left,
|
|
@@ -320,7 +320,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
320
320
|
});
|
|
321
321
|
break;
|
|
322
322
|
case "BR":
|
|
323
|
-
|
|
323
|
+
ue({
|
|
324
324
|
targetX: t.value.width / 2 - t.value.left,
|
|
325
325
|
targetY: t.value.height / 2 - t.value.top,
|
|
326
326
|
targetW: t.value.width / 2 + t.value.left,
|
|
@@ -329,7 +329,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
329
329
|
});
|
|
330
330
|
break;
|
|
331
331
|
case "BL":
|
|
332
|
-
|
|
332
|
+
ue({
|
|
333
333
|
targetX: 0,
|
|
334
334
|
targetY: t.value.height / 2 - t.value.top,
|
|
335
335
|
targetW: t.value.width / 2 + t.value.left,
|
|
@@ -344,7 +344,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
344
344
|
x.value = !0;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
const
|
|
347
|
+
const Rt = m(() => {
|
|
348
348
|
const l = e.value.style.chart.layout.grid.graduations.steps, o = t.value.usableWidth / (l * 2), a = t.value.top, s = [];
|
|
349
349
|
for (let u = 0; u < l; u += 1)
|
|
350
350
|
s.push({
|
|
@@ -355,9 +355,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
355
355
|
opacity: Math.round((u + 1) / l * 20)
|
|
356
356
|
});
|
|
357
357
|
return s;
|
|
358
|
-
}),
|
|
358
|
+
}), z = m(() => {
|
|
359
359
|
let l = e.value.style.chart.layout.grid.xAxis.max, o = e.value.style.chart.layout.grid.xAxis.min, a = e.value.style.chart.layout.grid.yAxis.max, s = e.value.style.chart.layout.grid.yAxis.min;
|
|
360
|
-
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...
|
|
360
|
+
return e.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...ee.value.flatMap((u) => u.series.map((i) => i.x))), o = Math.min(...ee.value.flatMap((u) => u.series.map((i) => i.x)))), e.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...ee.value.flatMap((u) => u.series.map((i) => i.y))), s = Math.min(...ee.value.flatMap((u) => u.series.map((i) => i.y)))), {
|
|
361
361
|
x: {
|
|
362
362
|
max: l,
|
|
363
363
|
min: o
|
|
@@ -367,122 +367,122 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
367
367
|
min: s
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
|
-
}), C =
|
|
370
|
+
}), C = h([]), ee = m(() => tt.value.map((l, o) => ({
|
|
371
371
|
...l,
|
|
372
|
-
series:
|
|
372
|
+
series: fl({
|
|
373
373
|
data: l.series,
|
|
374
374
|
threshold: e.value.downsample.threshold
|
|
375
375
|
}),
|
|
376
376
|
id: `cat_${o}_${$.value}`,
|
|
377
|
-
color:
|
|
378
|
-
}))),
|
|
377
|
+
color: bl(l.color) || nt.value[o] || Ie[o]
|
|
378
|
+
}))), Pe = m(() => ee.value.filter((l) => !C.value.includes(l.id))), Dt = m(() => ee.value.map((l, o) => ({
|
|
379
379
|
...l,
|
|
380
380
|
shape: l.shape || "circle",
|
|
381
381
|
series: l.series.map((a) => ({
|
|
382
382
|
...a,
|
|
383
|
-
x:
|
|
384
|
-
y:
|
|
383
|
+
x: rt(a.x),
|
|
384
|
+
y: it(a.y),
|
|
385
385
|
xValue: a.x,
|
|
386
386
|
yValue: a.y,
|
|
387
|
-
quadrantSide:
|
|
387
|
+
quadrantSide: dt({ x: a.x, y: a.y }),
|
|
388
388
|
categoryName: l.name,
|
|
389
389
|
shape: l.shape,
|
|
390
390
|
color: l.color
|
|
391
391
|
}))
|
|
392
|
-
}))),
|
|
392
|
+
}))), W = m(() => (tt.value.forEach((l, o) => {
|
|
393
393
|
l.series.forEach((a, s) => {
|
|
394
|
-
[null, void 0].includes(a.x) &&
|
|
394
|
+
[null, void 0].includes(a.x) && ae({
|
|
395
395
|
componentName: "VueUiQuadrant",
|
|
396
396
|
type: "datasetSerieAttribute",
|
|
397
397
|
property: "x",
|
|
398
398
|
key: "series",
|
|
399
399
|
index: s,
|
|
400
|
-
debug:
|
|
401
|
-
}), [null, void 0].includes(a.y) &&
|
|
400
|
+
debug: Z.value
|
|
401
|
+
}), [null, void 0].includes(a.y) && ae({
|
|
402
402
|
componentName: "VueUiQuadrant",
|
|
403
403
|
type: "datasetSerieAttribute",
|
|
404
404
|
property: "y",
|
|
405
405
|
key: "series",
|
|
406
406
|
index: s,
|
|
407
|
-
debug:
|
|
407
|
+
debug: Z.value
|
|
408
408
|
});
|
|
409
409
|
});
|
|
410
|
-
}),
|
|
410
|
+
}), Pe.value.map((l, o) => ({
|
|
411
411
|
...l,
|
|
412
412
|
shape: l.shape || "circle",
|
|
413
|
-
color: l.color ||
|
|
413
|
+
color: l.color || nt.value[o] || Ie[o],
|
|
414
414
|
series: l.series.map((a) => ({
|
|
415
415
|
...a,
|
|
416
|
-
x:
|
|
417
|
-
y:
|
|
416
|
+
x: rt(a.x),
|
|
417
|
+
y: it(a.y),
|
|
418
418
|
xValue: a.x,
|
|
419
419
|
yValue: a.y,
|
|
420
|
-
quadrantSide:
|
|
420
|
+
quadrantSide: dt({ x: a.x, y: a.y }),
|
|
421
421
|
categoryName: l.name,
|
|
422
422
|
shape: l.shape,
|
|
423
423
|
color: l.color,
|
|
424
|
-
uid:
|
|
424
|
+
uid: Lt()
|
|
425
425
|
}))
|
|
426
426
|
}))));
|
|
427
|
-
function
|
|
427
|
+
function rt(l) {
|
|
428
428
|
if (l >= 0) {
|
|
429
|
-
const o = l /
|
|
429
|
+
const o = l / z.value.x.max;
|
|
430
430
|
return t.value.centerX + t.value.usableWidth / 2 * o;
|
|
431
431
|
} else {
|
|
432
|
-
const o = Math.abs(l) / Math.abs(
|
|
432
|
+
const o = Math.abs(l) / Math.abs(z.value.x.min);
|
|
433
433
|
return t.value.centerX - t.value.usableWidth / 2 * o;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function it(l) {
|
|
437
437
|
if (l >= 0) {
|
|
438
|
-
const o = l /
|
|
438
|
+
const o = l / z.value.y.max;
|
|
439
439
|
return t.value.centerY + (1 - t.value.usableHeight / 2 * o);
|
|
440
440
|
} else {
|
|
441
|
-
const o = Math.abs(l) / Math.abs(
|
|
441
|
+
const o = Math.abs(l) / Math.abs(z.value.y.min);
|
|
442
442
|
return t.value.centerY - (1 - t.value.usableHeight / 2 * o);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
const
|
|
446
|
-
const l =
|
|
447
|
-
x:
|
|
448
|
-
y:
|
|
449
|
-
name:
|
|
450
|
-
category:
|
|
451
|
-
quadrantSide:
|
|
452
|
-
sideName: e.value.style.chart.layout.labels.quadrantLabels[
|
|
453
|
-
color:
|
|
454
|
-
shape:
|
|
455
|
-
}))), o = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", s = [e.value.translations.category, e.value.translations.item, o, a, e.value.translations.side], u = l.map((
|
|
456
|
-
shape:
|
|
457
|
-
color:
|
|
445
|
+
const xe = m(() => {
|
|
446
|
+
const l = W.value.flatMap((c) => c.series.map((Y) => ({
|
|
447
|
+
x: Y.xValue,
|
|
448
|
+
y: Y.yValue,
|
|
449
|
+
name: Y.name,
|
|
450
|
+
category: Y.categoryName,
|
|
451
|
+
quadrantSide: Y.quadrantSide,
|
|
452
|
+
sideName: e.value.style.chart.layout.labels.quadrantLabels[Y.quadrantSide].text,
|
|
453
|
+
color: c.color,
|
|
454
|
+
shape: c.shape
|
|
455
|
+
}))), o = e.value.style.chart.layout.grid.xAxis.name || "x", a = e.value.style.chart.layout.grid.yAxis.name || "y", s = [e.value.translations.category, e.value.translations.item, o, a, e.value.translations.side], u = l.map((c) => [c.category, c.name, c.x, c.y, c.sideName || c.quadrantSide]), i = l.map((c) => ({
|
|
456
|
+
shape: c.shape,
|
|
457
|
+
color: c.color
|
|
458
458
|
}));
|
|
459
459
|
return { head: s, body: u, itsShapes: i, tableData: l };
|
|
460
|
-
}),
|
|
461
|
-
const l =
|
|
460
|
+
}), te = m(() => {
|
|
461
|
+
const l = xe.value.head, o = xe.value.tableData.map((u) => [
|
|
462
462
|
{
|
|
463
463
|
shape: u.shape,
|
|
464
464
|
color: u.color,
|
|
465
465
|
name: u.category
|
|
466
466
|
},
|
|
467
467
|
u.name,
|
|
468
|
-
|
|
468
|
+
D(
|
|
469
469
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
470
470
|
u.x,
|
|
471
|
-
|
|
471
|
+
H({
|
|
472
472
|
v: u.x,
|
|
473
473
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
474
474
|
})
|
|
475
475
|
),
|
|
476
|
-
|
|
476
|
+
D(
|
|
477
477
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
478
478
|
u.y,
|
|
479
|
-
|
|
479
|
+
H({
|
|
480
480
|
v: u.y,
|
|
481
481
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
482
482
|
})
|
|
483
483
|
),
|
|
484
484
|
u.sideName || u.quadrantSide
|
|
485
|
-
]), a = o.map((u) => u.map((i,
|
|
485
|
+
]), a = o.map((u) => u.map((i, c) => c === 0 ? i.name ?? "" : i)), s = {
|
|
486
486
|
th: {
|
|
487
487
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
488
488
|
color: e.value.table.th.color,
|
|
@@ -497,40 +497,40 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
497
497
|
};
|
|
498
498
|
return { head: l, body: o, a11yBody: a, config: s, colNames: l };
|
|
499
499
|
});
|
|
500
|
-
function
|
|
501
|
-
C.value.length ? C.value = [] :
|
|
500
|
+
function Ht() {
|
|
501
|
+
C.value.length ? C.value = [] : Q.value.forEach((l) => {
|
|
502
502
|
C.value.push(l.id);
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function se(l) {
|
|
506
506
|
C.value.includes(l) ? C.value = C.value.filter((a) => a !== l) : C.value.push(l);
|
|
507
|
-
const o =
|
|
507
|
+
const o = ct();
|
|
508
508
|
ce("selectLegend", o);
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const Q = m(() => Dt.value.map((l) => ({
|
|
511
511
|
name: l.name,
|
|
512
512
|
shape: l.shape,
|
|
513
513
|
color: l.color,
|
|
514
514
|
id: l.id,
|
|
515
515
|
opacity: C.value.includes(l.id) ? 0.5 : 1,
|
|
516
|
-
segregate: () =>
|
|
516
|
+
segregate: () => se(l.id),
|
|
517
517
|
isSegregated: C.value.includes(l.id)
|
|
518
518
|
})));
|
|
519
|
-
function
|
|
520
|
-
if (!
|
|
519
|
+
function vt(l) {
|
|
520
|
+
if (!Q.value.length)
|
|
521
521
|
return e.value.debug && console.warn("VueUiQuadrant - There are no series to show."), null;
|
|
522
|
-
const o =
|
|
522
|
+
const o = Q.value.find((a) => a.name === l);
|
|
523
523
|
return o || (e.value.debug && console.warn(`VueUiQuadrant - Series name not found "${l}"`), null);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
const o =
|
|
527
|
-
o !== null && C.value.includes(o.id) &&
|
|
525
|
+
function Et(l) {
|
|
526
|
+
const o = vt(l);
|
|
527
|
+
o !== null && C.value.includes(o.id) && se(o.id);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
const o =
|
|
531
|
-
o !== null && (C.value.includes(o.id) ||
|
|
529
|
+
function Ut(l) {
|
|
530
|
+
const o = vt(l);
|
|
531
|
+
o !== null && (C.value.includes(o.id) || se(o.id));
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const Qt = m(() => ({
|
|
534
534
|
cy: "quadrant-div-legend",
|
|
535
535
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
536
536
|
color: e.value.style.chart.legend.color,
|
|
@@ -538,7 +538,7 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
538
538
|
paddingBottom: 12,
|
|
539
539
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
540
540
|
}));
|
|
541
|
-
function
|
|
541
|
+
function dt(l) {
|
|
542
542
|
switch (!0) {
|
|
543
543
|
case (l.x >= 0 && l.y >= 0):
|
|
544
544
|
return "tr";
|
|
@@ -552,71 +552,71 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
552
552
|
return "";
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
const
|
|
556
|
-
function
|
|
557
|
-
|
|
555
|
+
const G = h(null), ne = h(null), Ye = h(null);
|
|
556
|
+
function Me() {
|
|
557
|
+
G.value = null, ne.value = null, j.value = null, fe.value = null, he.value = !1;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
if (!
|
|
561
|
-
const o = `[data-a11y-plot-id="${l}"]`, a =
|
|
559
|
+
function Gt(l) {
|
|
560
|
+
if (!E.value || !l) return;
|
|
561
|
+
const o = `[data-a11y-plot-id="${l}"]`, a = E.value.querySelector(o);
|
|
562
562
|
if (!a) return;
|
|
563
563
|
const s = a.getBoundingClientRect();
|
|
564
|
-
|
|
564
|
+
et.value = {
|
|
565
565
|
x: s.left + s.width / 2,
|
|
566
566
|
y: s.top + s.height / 2
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: a }),
|
|
569
|
+
function $e(l, o, a, s = "pointer", u = null) {
|
|
570
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: a }), G.value = o.uid, ne.value = {
|
|
571
571
|
color: l.color,
|
|
572
572
|
shape: l.shape
|
|
573
|
-
},
|
|
573
|
+
}, qe.value = s, j.value = u, fe.value = o.uid, Ye.value = {
|
|
574
574
|
datapoint: o,
|
|
575
575
|
seriesIndex: a,
|
|
576
|
-
series:
|
|
576
|
+
series: W.value,
|
|
577
577
|
config: e.value
|
|
578
578
|
};
|
|
579
579
|
const i = e.value.style.chart.tooltip.customFormat;
|
|
580
|
-
if (
|
|
580
|
+
if (Ll(i) && Cl(() => i({
|
|
581
581
|
seriesIndex: a,
|
|
582
582
|
datapoint: o,
|
|
583
|
-
series:
|
|
583
|
+
series: W.value,
|
|
584
584
|
config: e.value
|
|
585
585
|
})))
|
|
586
|
-
|
|
586
|
+
_e.value = i({
|
|
587
587
|
seriesIndex: a,
|
|
588
588
|
datapoint: o,
|
|
589
|
-
series:
|
|
589
|
+
series: W.value,
|
|
590
590
|
config: e.value
|
|
591
591
|
});
|
|
592
592
|
else {
|
|
593
|
-
let
|
|
594
|
-
o.quadrantSide && (
|
|
593
|
+
let c = "";
|
|
594
|
+
o.quadrantSide && (c += `<div style="color:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].color};font-weight:${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].bold ? "bold" : "400"}">${e.value.style.chart.layout.labels.quadrantLabels[o.quadrantSide].text}</div>`), c += `<div>${l.name}</div>`, c += `<div style="padding-bottom:6px;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};margin-bottom:3px">${o.name}</div>`, c += `<div>${e.value.style.chart.layout.grid.xAxis.name ? e.value.style.chart.layout.grid.xAxis.name : "x"}: <b>${D(
|
|
595
595
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
596
596
|
o.xValue,
|
|
597
|
-
|
|
597
|
+
H({
|
|
598
598
|
v: o.xValue,
|
|
599
599
|
r: e.value.style.chart.tooltip.roundingValue
|
|
600
600
|
}),
|
|
601
601
|
{ datapoint: o, category: l, categoryIndex: a }
|
|
602
|
-
)}</b></div>`,
|
|
602
|
+
)}</b></div>`, c += `<div>${e.value.style.chart.layout.grid.yAxis.name ? e.value.style.chart.layout.grid.yAxis.name : "y"}: <b>${D(
|
|
603
603
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
604
604
|
o.yValue,
|
|
605
|
-
|
|
605
|
+
H({
|
|
606
606
|
v: o.yValue,
|
|
607
607
|
r: e.value.style.chart.tooltip.roundingValue
|
|
608
608
|
}),
|
|
609
609
|
{ datapoint: o, category: l, categoryIndex: a }
|
|
610
|
-
)}</b></div>`,
|
|
610
|
+
)}</b></div>`, _e.value = `<div style="text-align:left;font-size:${e.value.style.chart.tooltip.fontSize}px">${c}</div>`;
|
|
611
611
|
}
|
|
612
|
-
s === "keyboard" &&
|
|
613
|
-
|
|
614
|
-
}),
|
|
612
|
+
s === "keyboard" && Ce(() => {
|
|
613
|
+
Gt(o.uid);
|
|
614
|
+
}), he.value = !0;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), !(
|
|
616
|
+
function Oe(l, o) {
|
|
617
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), !(fe.value === l.uid && qe.value === "keyboard") && (he.value = !1, G.value = null, ne.value = null);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function ke(l, o, a) {
|
|
620
620
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: a });
|
|
621
621
|
const s = {
|
|
622
622
|
category: l.name,
|
|
@@ -629,9 +629,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
629
629
|
};
|
|
630
630
|
ce("selectPlot", s);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function re(l) {
|
|
633
633
|
if (!l) return;
|
|
634
|
-
const o =
|
|
634
|
+
const o = W.value.flatMap((s) => s.series.filter((u) => u.quadrantSide === l).map((u) => ({
|
|
635
635
|
category: u.categoryName,
|
|
636
636
|
itemName: u.name,
|
|
637
637
|
x: u.xValue,
|
|
@@ -749,8 +749,8 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
}));
|
|
752
|
-
function
|
|
753
|
-
return
|
|
752
|
+
function ct() {
|
|
753
|
+
return W.value.map((l) => ({
|
|
754
754
|
color: l.color,
|
|
755
755
|
name: l.name,
|
|
756
756
|
shape: l.shape,
|
|
@@ -763,32 +763,32 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
763
763
|
}))
|
|
764
764
|
}));
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
|
|
768
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
769
|
-
l ? l(i) :
|
|
766
|
+
function Be(l = null) {
|
|
767
|
+
Ce(() => {
|
|
768
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = xe.value.head, s = xe.value.body, u = o.concat([a]).concat(s), i = kl(u);
|
|
769
|
+
l ? l(i) : wl({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
|
-
const
|
|
773
|
-
function
|
|
774
|
-
|
|
772
|
+
const K = h(!1);
|
|
773
|
+
function ht(l) {
|
|
774
|
+
K.value = l, He.value += 1;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function yt() {
|
|
777
777
|
k.value.showTable = !k.value.showTable;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function bt() {
|
|
780
780
|
k.value.plotLabels.show = !k.value.plotLabels.show;
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function ft() {
|
|
783
783
|
k.value.showTooltip = !k.value.showTooltip;
|
|
784
784
|
}
|
|
785
|
-
const
|
|
786
|
-
function
|
|
787
|
-
|
|
785
|
+
const ie = h(!1);
|
|
786
|
+
function Ne() {
|
|
787
|
+
ie.value = !ie.value;
|
|
788
788
|
}
|
|
789
|
-
async function
|
|
790
|
-
if (!
|
|
791
|
-
const { width: o, height: a } =
|
|
789
|
+
async function Kt({ scale: l = 2 } = {}) {
|
|
790
|
+
if (!V.value) return;
|
|
791
|
+
const { width: o, height: a } = V.value.getBoundingClientRect(), s = o / a, { imageUri: u, base64: i } = await Ml({ domElement: V.value, base64: !0, img: !0, scale: l });
|
|
792
792
|
return {
|
|
793
793
|
imageUri: u,
|
|
794
794
|
base64: i,
|
|
@@ -798,20 +798,20 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
798
798
|
aspectRatio: s
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const ve = m(() => {
|
|
802
802
|
const l = e.value.table.useDialog && !e.value.table.show, o = k.value.showTable;
|
|
803
803
|
return {
|
|
804
|
-
component: l ?
|
|
804
|
+
component: l ? Mt : zt,
|
|
805
805
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
806
806
|
props: l ? {
|
|
807
807
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
808
808
|
color: e.value.table.th.color,
|
|
809
809
|
headerColor: e.value.table.th.color,
|
|
810
810
|
headerBg: e.value.table.th.backgroundColor,
|
|
811
|
-
isFullscreen:
|
|
812
|
-
fullscreenParent:
|
|
811
|
+
isFullscreen: K.value,
|
|
812
|
+
fullscreenParent: V.value,
|
|
813
813
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
814
|
-
isCursorPointer:
|
|
814
|
+
isCursorPointer: X.value
|
|
815
815
|
} : {
|
|
816
816
|
hideDetails: !0,
|
|
817
817
|
config: {
|
|
@@ -829,173 +829,174 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
831
|
});
|
|
832
|
-
|
|
833
|
-
e.value.table.show || (l && e.value.table.useDialog &&
|
|
832
|
+
Fe(() => k.value.showTable, (l) => {
|
|
833
|
+
e.value.table.show || (l && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
834
834
|
});
|
|
835
|
-
function
|
|
836
|
-
k.value.showTable = !1,
|
|
835
|
+
function pt() {
|
|
836
|
+
k.value.showTable = !1, Te.value && Te.value.setTableIconState(!1);
|
|
837
837
|
}
|
|
838
|
-
const
|
|
839
|
-
svg:
|
|
840
|
-
title:
|
|
841
|
-
legend:
|
|
842
|
-
legendItems:
|
|
843
|
-
backgroundColor:
|
|
838
|
+
const jt = m(() => e.value.style.chart.backgroundColor), Jt = m(() => e.value.style.chart.legend), Zt = m(() => e.value.style.chart.title), { exportSvg: el, getSvg: tl } = Wl({
|
|
839
|
+
svg: E,
|
|
840
|
+
title: Zt,
|
|
841
|
+
legend: Jt,
|
|
842
|
+
legendItems: Q,
|
|
843
|
+
backgroundColor: jt
|
|
844
844
|
});
|
|
845
|
-
async function
|
|
846
|
-
|
|
845
|
+
async function gt({ isCb: l }) {
|
|
846
|
+
be.value = !0, await Ce();
|
|
847
847
|
try {
|
|
848
848
|
if (l) {
|
|
849
|
-
const { blob: o, url: a, text: s, dataUrl: u } = await
|
|
849
|
+
const { blob: o, url: a, text: s, dataUrl: u } = await tl();
|
|
850
850
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: u }));
|
|
851
851
|
} else
|
|
852
|
-
await Promise.resolve(
|
|
852
|
+
await Promise.resolve(el());
|
|
853
853
|
} finally {
|
|
854
|
-
|
|
854
|
+
be.value = !1;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function ll(l) {
|
|
858
858
|
if (l?.stage === "start") {
|
|
859
|
-
|
|
859
|
+
ye.value = !0;
|
|
860
860
|
return;
|
|
861
861
|
}
|
|
862
862
|
if (l?.stage === "end") {
|
|
863
|
-
|
|
863
|
+
ye.value = !1;
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
st();
|
|
867
867
|
}
|
|
868
|
-
async function
|
|
868
|
+
async function mt() {
|
|
869
869
|
if (ce("copyAlt", {
|
|
870
870
|
config: e.value,
|
|
871
|
-
dataset:
|
|
871
|
+
dataset: Pe.value
|
|
872
872
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
873
873
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
876
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
877
877
|
config: e.value,
|
|
878
|
-
dataset:
|
|
878
|
+
dataset: Pe.value
|
|
879
879
|
}));
|
|
880
880
|
}
|
|
881
|
-
function
|
|
882
|
-
|
|
881
|
+
function al() {
|
|
882
|
+
j.value = null, fe.value = null, pe.value = !0;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
884
|
+
function ol() {
|
|
885
|
+
Me(), pe.value = !1;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
if (!
|
|
887
|
+
function ul(l) {
|
|
888
|
+
if (!E.value || ie.value || document.activeElement !== E.value || !P.value.length) return;
|
|
889
889
|
const o = l.key === "ArrowLeft" || l.key === "ArrowUp", a = l.key === "ArrowRight" || l.key === "ArrowDown", s = l.key === "Enter" || l.key === " ", u = l.key === "Escape";
|
|
890
890
|
if (!o && !a && !s && !u) return;
|
|
891
891
|
if (l.preventDefault(), l.stopPropagation(), u) {
|
|
892
|
-
|
|
892
|
+
Me();
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
895
895
|
if (s) {
|
|
896
|
-
if (
|
|
897
|
-
const
|
|
898
|
-
if (!
|
|
899
|
-
|
|
896
|
+
if (j.value === null) return;
|
|
897
|
+
const le = P.value[j.value];
|
|
898
|
+
if (!le) return;
|
|
899
|
+
ke(le.category, le.plot, le.categoryIndex);
|
|
900
900
|
return;
|
|
901
901
|
}
|
|
902
|
-
let i =
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
let i = j.value;
|
|
903
|
+
const c = G.value ? P.value.findIndex((le) => le.plot.uid === G.value) : null, Y = i !== null && i >= 0 && i < P.value.length, we = c !== null && c >= 0 && c < P.value.length;
|
|
904
|
+
Y ? (i += a ? 1 : -1, i < 0 && (i = P.value.length - 1), i >= P.value.length && (i = 0)) : we ? (i = a ? c + 1 : c - 1, i >= P.value.length && (i = 0), i < 0 && (i = P.value.length - 1)) : a ? i = 0 : i = P.value.length - 1;
|
|
905
|
+
const Le = P.value[i];
|
|
906
|
+
Le && $e(Le.category, Le.plot, Le.categoryIndex, "keyboard", i);
|
|
906
907
|
}
|
|
907
|
-
const
|
|
908
|
-
const l =
|
|
908
|
+
const Ve = m(() => {
|
|
909
|
+
const l = te.value?.colNames ?? [], o = te.value?.a11yBody ?? [];
|
|
909
910
|
return { headers: l, rows: o };
|
|
910
|
-
}),
|
|
911
|
+
}), P = m(() => W.value.flatMap((l, o) => l.series.map((a) => ({
|
|
911
912
|
category: l,
|
|
912
913
|
plot: a,
|
|
913
914
|
categoryIndex: o
|
|
914
915
|
}))));
|
|
915
|
-
return
|
|
916
|
-
getData:
|
|
917
|
-
getImage:
|
|
918
|
-
generatePdf:
|
|
919
|
-
generateCsv:
|
|
920
|
-
generateImage:
|
|
921
|
-
generateSvg:
|
|
922
|
-
hideSeries:
|
|
923
|
-
showSeries:
|
|
924
|
-
toggleTable:
|
|
925
|
-
toggleLabels:
|
|
926
|
-
toggleTooltip:
|
|
927
|
-
toggleAnnotator:
|
|
928
|
-
toggleFullscreen:
|
|
929
|
-
copyAlt:
|
|
916
|
+
return _t({
|
|
917
|
+
getData: ct,
|
|
918
|
+
getImage: Kt,
|
|
919
|
+
generatePdf: ut,
|
|
920
|
+
generateCsv: Be,
|
|
921
|
+
generateImage: st,
|
|
922
|
+
generateSvg: gt,
|
|
923
|
+
hideSeries: Ut,
|
|
924
|
+
showSeries: Et,
|
|
925
|
+
toggleTable: yt,
|
|
926
|
+
toggleLabels: bt,
|
|
927
|
+
toggleTooltip: ft,
|
|
928
|
+
toggleAnnotator: Ne,
|
|
929
|
+
toggleFullscreen: ht,
|
|
930
|
+
copyAlt: mt
|
|
930
931
|
}), (l, o) => (n(), r("div", {
|
|
931
|
-
class:
|
|
932
|
+
class: O(`vue-data-ui-component vue-ui-quadrant ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
932
933
|
ref_key: "quadrantChart",
|
|
933
|
-
ref:
|
|
934
|
+
ref: V,
|
|
934
935
|
id: `vue-ui-quadrant_${$.value}`,
|
|
935
|
-
style:
|
|
936
|
-
onMouseenter: o[14] || (o[14] = () => v(
|
|
936
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
937
|
+
onMouseenter: o[14] || (o[14] = () => v(lt)(!0)),
|
|
937
938
|
onMouseleave: o[15] || (o[15] = () => {
|
|
938
|
-
v(
|
|
939
|
+
v(lt)(!1), pe.value || Me();
|
|
939
940
|
})
|
|
940
941
|
}, [
|
|
941
|
-
|
|
942
|
+
d("div", {
|
|
942
943
|
id: `chart-instructions-${$.value}`,
|
|
943
944
|
class: "sr-only"
|
|
944
945
|
}, [
|
|
945
|
-
|
|
946
|
-
], 8,
|
|
947
|
-
|
|
946
|
+
d("p", null, w(e.value.a11y.translations.keyboardNavigation), 1)
|
|
947
|
+
], 8, Dl),
|
|
948
|
+
Ve.value?.rows?.length ? (n(), B(Vl, {
|
|
948
949
|
key: 0,
|
|
949
950
|
uid: $.value,
|
|
950
|
-
head:
|
|
951
|
-
body:
|
|
951
|
+
head: Ve.value.headers,
|
|
952
|
+
body: Ve.value.rows,
|
|
952
953
|
notice: e.value.a11y.translations.tableAvailable,
|
|
953
954
|
caption: e.value.a11y.translations.tableCaption
|
|
954
955
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : y("", !0),
|
|
955
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
956
|
+
e.value.userOptions.buttons.annotator ? (n(), B(v(Xt), {
|
|
956
957
|
key: 1,
|
|
957
|
-
svgRef: v(
|
|
958
|
+
svgRef: v(E),
|
|
958
959
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
959
960
|
color: e.value.style.chart.color,
|
|
960
|
-
active:
|
|
961
|
-
isCursorPointer:
|
|
962
|
-
onClose:
|
|
961
|
+
active: ie.value,
|
|
962
|
+
isCursorPointer: X.value,
|
|
963
|
+
onClose: Ne
|
|
963
964
|
}, {
|
|
964
965
|
"annotator-action-close": p(() => [
|
|
965
966
|
g(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
966
967
|
]),
|
|
967
968
|
"annotator-action-color": p(({ color: a }) => [
|
|
968
|
-
g(l.$slots, "annotator-action-color", q(
|
|
969
|
+
g(l.$slots, "annotator-action-color", T(q({ color: a })), void 0, !0)
|
|
969
970
|
]),
|
|
970
971
|
"annotator-action-draw": p(({ mode: a }) => [
|
|
971
|
-
g(l.$slots, "annotator-action-draw", q(
|
|
972
|
+
g(l.$slots, "annotator-action-draw", T(q({ mode: a })), void 0, !0)
|
|
972
973
|
]),
|
|
973
974
|
"annotator-action-undo": p(({ disabled: a }) => [
|
|
974
|
-
g(l.$slots, "annotator-action-undo", q(
|
|
975
|
+
g(l.$slots, "annotator-action-undo", T(q({ disabled: a })), void 0, !0)
|
|
975
976
|
]),
|
|
976
977
|
"annotator-action-redo": p(({ disabled: a }) => [
|
|
977
|
-
g(l.$slots, "annotator-action-redo", q(
|
|
978
|
+
g(l.$slots, "annotator-action-redo", T(q({ disabled: a })), void 0, !0)
|
|
978
979
|
]),
|
|
979
980
|
"annotator-action-delete": p(({ disabled: a }) => [
|
|
980
|
-
g(l.$slots, "annotator-action-delete", q(
|
|
981
|
+
g(l.$slots, "annotator-action-delete", T(q({ disabled: a })), void 0, !0)
|
|
981
982
|
]),
|
|
982
983
|
_: 3
|
|
983
984
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : y("", !0),
|
|
984
|
-
|
|
985
|
+
Ft.value ? (n(), r("div", {
|
|
985
986
|
key: 2,
|
|
986
987
|
ref_key: "noTitle",
|
|
987
|
-
ref:
|
|
988
|
+
ref: Ge,
|
|
988
989
|
class: "vue-data-ui-no-title-space",
|
|
989
990
|
style: "height:36px; width: 100%;background:transparent"
|
|
990
991
|
}, null, 512)) : y("", !0),
|
|
991
992
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
992
993
|
key: 3,
|
|
993
994
|
ref_key: "chartTitle",
|
|
994
|
-
ref:
|
|
995
|
+
ref: Ee,
|
|
995
996
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
996
997
|
}, [
|
|
997
|
-
(n(),
|
|
998
|
-
key: `table_${
|
|
998
|
+
(n(), B(Ol, {
|
|
999
|
+
key: `table_${Ke.value}`,
|
|
999
1000
|
config: {
|
|
1000
1001
|
title: {
|
|
1001
1002
|
cy: "quadrant-title",
|
|
@@ -1008,17 +1009,17 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1008
1009
|
}
|
|
1009
1010
|
}, null, 8, ["config"]))
|
|
1010
1011
|
], 512)) : y("", !0),
|
|
1011
|
-
|
|
1012
|
+
d("div", {
|
|
1012
1013
|
id: `legend-top-${$.value}`
|
|
1013
|
-
}, null, 8,
|
|
1014
|
-
e.value.userOptions.show &&
|
|
1014
|
+
}, null, 8, Hl),
|
|
1015
|
+
e.value.userOptions.show && De.value && (v(at) || v(Ae)) ? (n(), B(v(Pt), {
|
|
1015
1016
|
ref_key: "userOptionsRef",
|
|
1016
|
-
ref:
|
|
1017
|
-
key: `user_options_${
|
|
1017
|
+
ref: Te,
|
|
1018
|
+
key: `user_options_${He.value}`,
|
|
1018
1019
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1019
1020
|
color: e.value.style.chart.color,
|
|
1020
|
-
isImaging: v(
|
|
1021
|
-
isPrinting: v(
|
|
1021
|
+
isImaging: v(Xe),
|
|
1022
|
+
isPrinting: v(We),
|
|
1022
1023
|
uid: $.value,
|
|
1023
1024
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
1024
1025
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -1029,35 +1030,35 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1029
1030
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
1030
1031
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1031
1032
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
1032
|
-
isFullscreen:
|
|
1033
|
+
isFullscreen: K.value,
|
|
1033
1034
|
isTooltip: k.value.showTooltip,
|
|
1034
1035
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
1035
|
-
chartElement:
|
|
1036
|
+
chartElement: V.value,
|
|
1036
1037
|
position: e.value.userOptions.position,
|
|
1037
1038
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
1038
|
-
isAnnotation:
|
|
1039
|
+
isAnnotation: ie.value,
|
|
1039
1040
|
callbacks: e.value.userOptions.callbacks,
|
|
1040
1041
|
printScale: e.value.userOptions.print.scale,
|
|
1041
1042
|
tableDialog: e.value.table.useDialog,
|
|
1042
|
-
isCursorPointer:
|
|
1043
|
-
onToggleFullscreen:
|
|
1044
|
-
onGeneratePdf: v(
|
|
1045
|
-
onGenerateCsv:
|
|
1046
|
-
onGenerateImage:
|
|
1047
|
-
onGenerateSvg:
|
|
1048
|
-
onToggleTable:
|
|
1049
|
-
onToggleLabels:
|
|
1050
|
-
onToggleTooltip:
|
|
1051
|
-
onToggleAnnotator:
|
|
1052
|
-
onCopyAlt:
|
|
1053
|
-
style:
|
|
1054
|
-
visibility: v(
|
|
1043
|
+
isCursorPointer: X.value,
|
|
1044
|
+
onToggleFullscreen: ht,
|
|
1045
|
+
onGeneratePdf: v(ut),
|
|
1046
|
+
onGenerateCsv: Be,
|
|
1047
|
+
onGenerateImage: ll,
|
|
1048
|
+
onGenerateSvg: gt,
|
|
1049
|
+
onToggleTable: yt,
|
|
1050
|
+
onToggleLabels: bt,
|
|
1051
|
+
onToggleTooltip: ft,
|
|
1052
|
+
onToggleAnnotator: Ne,
|
|
1053
|
+
onCopyAlt: mt,
|
|
1054
|
+
style: _({
|
|
1055
|
+
visibility: v(at) ? v(Ae) ? "visible" : "hidden" : "visible"
|
|
1055
1056
|
})
|
|
1056
|
-
},
|
|
1057
|
+
}, $t({ _: 2 }, [
|
|
1057
1058
|
l.$slots.menuIcon ? {
|
|
1058
1059
|
name: "menuIcon",
|
|
1059
1060
|
fn: p(({ isOpen: a, color: s }) => [
|
|
1060
|
-
g(l.$slots, "menuIcon", q(
|
|
1061
|
+
g(l.$slots, "menuIcon", T(q({ isOpen: a, color: s })), void 0, !0)
|
|
1061
1062
|
]),
|
|
1062
1063
|
key: "0"
|
|
1063
1064
|
} : void 0,
|
|
@@ -1113,41 +1114,41 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1113
1114
|
l.$slots.optionFullscreen ? {
|
|
1114
1115
|
name: "optionFullscreen",
|
|
1115
1116
|
fn: p(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
1116
|
-
g(l.$slots, "optionFullscreen", q(
|
|
1117
|
+
g(l.$slots, "optionFullscreen", T(q({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
1117
1118
|
]),
|
|
1118
1119
|
key: "8"
|
|
1119
1120
|
} : void 0,
|
|
1120
1121
|
l.$slots.optionAnnotator ? {
|
|
1121
1122
|
name: "optionAnnotator",
|
|
1122
1123
|
fn: p(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
1123
|
-
g(l.$slots, "optionAnnotator", q(
|
|
1124
|
+
g(l.$slots, "optionAnnotator", T(q({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
1124
1125
|
]),
|
|
1125
1126
|
key: "9"
|
|
1126
1127
|
} : void 0,
|
|
1127
1128
|
l.$slots.optionAltCopy ? {
|
|
1128
1129
|
name: "optionAltCopy",
|
|
1129
1130
|
fn: p(({ altCopy: a }) => [
|
|
1130
|
-
g(l.$slots, "optionAltCopy", q(
|
|
1131
|
+
g(l.$slots, "optionAltCopy", T(q({ altCopy: a })), void 0, !0)
|
|
1131
1132
|
]),
|
|
1132
1133
|
key: "10"
|
|
1133
1134
|
} : void 0
|
|
1134
1135
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : y("", !0),
|
|
1135
|
-
|
|
1136
|
+
d("div", El, [
|
|
1136
1137
|
(n(), r("svg", {
|
|
1137
1138
|
ref_key: "svgRef",
|
|
1138
|
-
ref:
|
|
1139
|
-
xmlns: v(
|
|
1139
|
+
ref: E,
|
|
1140
|
+
xmlns: v(pl),
|
|
1140
1141
|
"aria-describedby": `chart-instructions-${$.value}`,
|
|
1141
|
-
class:
|
|
1142
|
+
class: O({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
1142
1143
|
viewBox: `${b.value.startX} ${b.value.startY} ${b.value.width} ${b.value.height}`,
|
|
1143
|
-
style:
|
|
1144
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`),
|
|
1144
1145
|
id: `svg_${$.value}`,
|
|
1145
1146
|
tabindex: "0",
|
|
1146
|
-
onFocus:
|
|
1147
|
-
onBlur:
|
|
1148
|
-
onKeydown:
|
|
1147
|
+
onFocus: al,
|
|
1148
|
+
onBlur: ol,
|
|
1149
|
+
onKeydown: ul
|
|
1149
1150
|
}, [
|
|
1150
|
-
|
|
1151
|
+
de(v(Yt)),
|
|
1151
1152
|
l.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1152
1153
|
key: 0,
|
|
1153
1154
|
x: b.value.startX,
|
|
@@ -1159,9 +1160,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1159
1160
|
}
|
|
1160
1161
|
}, [
|
|
1161
1162
|
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
1162
|
-
], 8,
|
|
1163
|
-
|
|
1164
|
-
(n(!0), r(
|
|
1163
|
+
], 8, Ql)) : y("", !0),
|
|
1164
|
+
d("defs", null, [
|
|
1165
|
+
(n(!0), r(A, null, N(W.value, (a, s) => (n(), r("radialGradient", {
|
|
1165
1166
|
cx: "50%",
|
|
1166
1167
|
cy: "50%",
|
|
1167
1168
|
r: "50%",
|
|
@@ -1169,19 +1170,19 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1169
1170
|
fy: "50%",
|
|
1170
1171
|
id: `quadrant_gradient_${$.value}_${s}`
|
|
1171
1172
|
}, [
|
|
1172
|
-
|
|
1173
|
+
d("stop", {
|
|
1173
1174
|
offset: "0%",
|
|
1174
|
-
"stop-color": v(
|
|
1175
|
-
}, null, 8,
|
|
1176
|
-
|
|
1175
|
+
"stop-color": v(Se)(v(gl)(a.color, 0.05), e.value.style.chart.layout.areas.opacity)
|
|
1176
|
+
}, null, 8, Kl),
|
|
1177
|
+
d("stop", {
|
|
1177
1178
|
offset: "100%",
|
|
1178
|
-
"stop-color": v(
|
|
1179
|
-
}, null, 8,
|
|
1180
|
-
], 8,
|
|
1179
|
+
"stop-color": v(Se)(a.color, e.value.style.chart.layout.areas.opacity)
|
|
1180
|
+
}, null, 8, jl)
|
|
1181
|
+
], 8, Gl))), 256))
|
|
1181
1182
|
]),
|
|
1182
|
-
e.value.style.chart.layout.grid.graduations.show ? (n(), r("g",
|
|
1183
|
-
(n(!0), r(
|
|
1184
|
-
fill: e.value.style.chart.layout.grid.graduations.fill ? v(
|
|
1183
|
+
e.value.style.chart.layout.grid.graduations.show ? (n(), r("g", Jl, [
|
|
1184
|
+
(n(!0), r(A, null, N(Rt.value, (a) => (n(), r("rect", {
|
|
1185
|
+
fill: e.value.style.chart.layout.grid.graduations.fill ? v(Se)(e.value.style.chart.layout.grid.graduations.color, a.opacity) : "none",
|
|
1185
1186
|
x: a.x,
|
|
1186
1187
|
y: a.y,
|
|
1187
1188
|
height: a.height <= 0 ? 1e-3 : a.height,
|
|
@@ -1189,47 +1190,47 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1189
1190
|
"stroke-width": e.value.style.chart.layout.grid.graduations.strokeWidth,
|
|
1190
1191
|
stroke: e.value.style.chart.layout.grid.graduations.stroke,
|
|
1191
1192
|
rx: e.value.style.chart.layout.grid.graduations.roundingForce
|
|
1192
|
-
}, null, 8,
|
|
1193
|
+
}, null, 8, Zl))), 256))
|
|
1193
1194
|
])) : y("", !0),
|
|
1194
|
-
|
|
1195
|
+
d("line", {
|
|
1195
1196
|
x1: t.value.left,
|
|
1196
1197
|
y1: t.value.centerY,
|
|
1197
1198
|
x2: t.value.right,
|
|
1198
1199
|
y2: t.value.centerY,
|
|
1199
1200
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1200
1201
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1201
|
-
}, null, 8,
|
|
1202
|
-
|
|
1202
|
+
}, null, 8, ea),
|
|
1203
|
+
d("line", {
|
|
1203
1204
|
x1: t.value.centerX,
|
|
1204
1205
|
y1: t.value.top,
|
|
1205
1206
|
x2: t.value.centerX,
|
|
1206
1207
|
y2: t.value.bottom,
|
|
1207
1208
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
1208
1209
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
1209
|
-
}, null, 8,
|
|
1210
|
-
e.value.style.chart.layout.grid.showArrows ? (n(), r("g",
|
|
1211
|
-
|
|
1210
|
+
}, null, 8, ta),
|
|
1211
|
+
e.value.style.chart.layout.grid.showArrows ? (n(), r("g", la, [
|
|
1212
|
+
d("polygon", {
|
|
1212
1213
|
points: `${t.value.right - 8},${t.value.centerY - 6} ${t.value.right},${t.value.centerY} ${t.value.right - 8},${t.value.centerY + 6}`,
|
|
1213
1214
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1214
1215
|
stroke: "none"
|
|
1215
|
-
}, null, 8,
|
|
1216
|
-
|
|
1216
|
+
}, null, 8, aa),
|
|
1217
|
+
d("polygon", {
|
|
1217
1218
|
points: `${t.value.left + 8},${t.value.centerY - 6} ${t.value.left},${t.value.centerY} ${t.value.left + 8},${t.value.centerY + 6}`,
|
|
1218
1219
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1219
1220
|
stroke: "none"
|
|
1220
|
-
}, null, 8,
|
|
1221
|
-
|
|
1221
|
+
}, null, 8, oa),
|
|
1222
|
+
d("polygon", {
|
|
1222
1223
|
points: `${t.value.centerX - 6},${t.value.top + 8} ${t.value.centerX},${t.value.top} ${t.value.centerX + 6},${t.value.top + 8}`,
|
|
1223
1224
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1224
1225
|
stroke: "none"
|
|
1225
|
-
}, null, 8,
|
|
1226
|
-
|
|
1226
|
+
}, null, 8, ua),
|
|
1227
|
+
d("polygon", {
|
|
1227
1228
|
points: `${t.value.centerX - 6},${t.value.bottom - 8} ${t.value.centerX},${t.value.bottom} ${t.value.centerX + 6},${t.value.bottom - 8}`,
|
|
1228
1229
|
fill: e.value.style.chart.layout.grid.stroke,
|
|
1229
1230
|
stroke: "none"
|
|
1230
|
-
}, null, 8,
|
|
1231
|
+
}, null, 8, sa)
|
|
1231
1232
|
])) : y("", !0),
|
|
1232
|
-
e.value.style.chart.layout.labels.quadrantLabels.show && !x.value ? (n(), r("g",
|
|
1233
|
+
e.value.style.chart.layout.labels.quadrantLabels.show && !x.value ? (n(), r("g", na, [
|
|
1233
1234
|
e.value.style.chart.layout.labels.quadrantLabels.tl.text ? (n(), r("text", {
|
|
1234
1235
|
key: 0,
|
|
1235
1236
|
x: 0,
|
|
@@ -1237,9 +1238,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1237
1238
|
"text-anchor": "start",
|
|
1238
1239
|
fill: e.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1239
1240
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1240
|
-
style:
|
|
1241
|
-
onClick: o[0] || (o[0] = (a) =>
|
|
1242
|
-
}, w(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13,
|
|
1241
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1242
|
+
onClick: o[0] || (o[0] = (a) => re("tl"))
|
|
1243
|
+
}, w(e.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, ra)) : y("", !0),
|
|
1243
1244
|
e.value.style.chart.layout.labels.quadrantLabels.tr.text ? (n(), r("text", {
|
|
1244
1245
|
key: 1,
|
|
1245
1246
|
x: t.value.width,
|
|
@@ -1247,9 +1248,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1247
1248
|
"text-anchor": "end",
|
|
1248
1249
|
fill: e.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1249
1250
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1250
|
-
style:
|
|
1251
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
1252
|
-
}, w(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13,
|
|
1251
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1252
|
+
onClick: o[1] || (o[1] = (a) => re("tr"))
|
|
1253
|
+
}, w(e.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ia)) : y("", !0),
|
|
1253
1254
|
e.value.style.chart.layout.labels.quadrantLabels.br.text ? (n(), r("text", {
|
|
1254
1255
|
key: 2,
|
|
1255
1256
|
x: t.value.width,
|
|
@@ -1257,9 +1258,9 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1257
1258
|
"text-anchor": "end",
|
|
1258
1259
|
fill: e.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1259
1260
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1260
|
-
style:
|
|
1261
|
-
onClick: o[2] || (o[2] = (a) =>
|
|
1262
|
-
}, w(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13,
|
|
1261
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1262
|
+
onClick: o[2] || (o[2] = (a) => re("br"))
|
|
1263
|
+
}, w(e.value.style.chart.layout.labels.quadrantLabels.br.text), 13, va)) : y("", !0),
|
|
1263
1264
|
e.value.style.chart.layout.labels.quadrantLabels.bl.text ? (n(), r("text", {
|
|
1264
1265
|
key: 3,
|
|
1265
1266
|
x: 0,
|
|
@@ -1267,152 +1268,152 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1267
1268
|
"text-anchor": "start",
|
|
1268
1269
|
fill: e.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1269
1270
|
"font-size": e.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1270
|
-
style:
|
|
1271
|
-
onClick: o[3] || (o[3] = (a) =>
|
|
1272
|
-
}, w(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13,
|
|
1271
|
+
style: _(`font-weight:${e.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1272
|
+
onClick: o[3] || (o[3] = (a) => re("bl"))
|
|
1273
|
+
}, w(e.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, da)) : y("", !0)
|
|
1273
1274
|
])) : y("", !0),
|
|
1274
|
-
e.value.style.chart.layout.labels.axisLabels.show ? (n(), r("g",
|
|
1275
|
-
|
|
1275
|
+
e.value.style.chart.layout.labels.axisLabels.show ? (n(), r("g", ca, [
|
|
1276
|
+
d("text", {
|
|
1276
1277
|
x: t.value.centerX,
|
|
1277
1278
|
y: t.value.top - t.value.padding / 6,
|
|
1278
1279
|
"text-anchor": "middle",
|
|
1279
1280
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1280
1281
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1281
|
-
}, w(v(
|
|
1282
|
+
}, w(v(D)(
|
|
1282
1283
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1283
|
-
|
|
1284
|
-
v(
|
|
1285
|
-
v:
|
|
1284
|
+
z.value.y.max,
|
|
1285
|
+
v(H)({
|
|
1286
|
+
v: z.value.y.max,
|
|
1286
1287
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1287
1288
|
})
|
|
1288
|
-
)), 9,
|
|
1289
|
-
|
|
1289
|
+
)), 9, ha),
|
|
1290
|
+
d("text", {
|
|
1290
1291
|
x: t.value.centerX,
|
|
1291
1292
|
y: t.value.top - t.value.padding / 2,
|
|
1292
1293
|
"text-anchor": "middle",
|
|
1293
1294
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1294
1295
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1295
|
-
}, w(e.value.style.chart.layout.grid.yAxis.name), 9,
|
|
1296
|
-
|
|
1296
|
+
}, w(e.value.style.chart.layout.grid.yAxis.name), 9, ya),
|
|
1297
|
+
d("text", {
|
|
1297
1298
|
x: t.value.centerX,
|
|
1298
1299
|
y: t.value.bottom + t.value.padding * 0.35,
|
|
1299
1300
|
"text-anchor": "middle",
|
|
1300
1301
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1301
1302
|
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1302
|
-
}, w(v(
|
|
1303
|
+
}, w(v(D)(
|
|
1303
1304
|
e.value.style.chart.layout.labels.plotLabels.y.formatter,
|
|
1304
|
-
|
|
1305
|
-
v(
|
|
1306
|
-
v:
|
|
1305
|
+
z.value.y.min,
|
|
1306
|
+
v(H)({
|
|
1307
|
+
v: z.value.y.min,
|
|
1307
1308
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1308
1309
|
})
|
|
1309
|
-
)), 9,
|
|
1310
|
-
|
|
1310
|
+
)), 9, ba),
|
|
1311
|
+
d("text", {
|
|
1311
1312
|
id: `xLabelMin_${$.value}`,
|
|
1312
1313
|
"text-anchor": "middle",
|
|
1313
1314
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1314
1315
|
transform: `translate(${t.value.padding - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(-90)`,
|
|
1315
1316
|
fill: e.value.style.chart.layout.labels.axisLabels.color.negative
|
|
1316
|
-
}, w(v(
|
|
1317
|
+
}, w(v(D)(
|
|
1317
1318
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1318
|
-
|
|
1319
|
-
v(
|
|
1320
|
-
v:
|
|
1319
|
+
z.value.x.min,
|
|
1320
|
+
v(H)({
|
|
1321
|
+
v: z.value.x.min,
|
|
1321
1322
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1322
1323
|
})
|
|
1323
|
-
)), 9,
|
|
1324
|
-
|
|
1324
|
+
)), 9, fa),
|
|
1325
|
+
d("text", {
|
|
1325
1326
|
id: `xLabelMax_${$.value}`,
|
|
1326
1327
|
"text-anchor": "middle",
|
|
1327
1328
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1328
1329
|
transform: `translate(${t.value.width - t.value.padding + e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1329
1330
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1330
|
-
}, w(v(
|
|
1331
|
+
}, w(v(D)(
|
|
1331
1332
|
e.value.style.chart.layout.labels.plotLabels.x.formatter,
|
|
1332
|
-
|
|
1333
|
-
v(
|
|
1334
|
-
v:
|
|
1333
|
+
z.value.x.max,
|
|
1334
|
+
v(H)({
|
|
1335
|
+
v: z.value.x.max,
|
|
1335
1336
|
r: e.value.style.chart.layout.labels.plotLabels.rounding
|
|
1336
1337
|
})
|
|
1337
|
-
)), 9,
|
|
1338
|
-
|
|
1338
|
+
)), 9, pa),
|
|
1339
|
+
d("text", {
|
|
1339
1340
|
id: `xLabelMaxName_${$.value}`,
|
|
1340
1341
|
"text-anchor": "middle",
|
|
1341
1342
|
"font-size": e.value.style.chart.layout.labels.axisLabels.fontSize,
|
|
1342
1343
|
transform: `translate(${t.value.width - e.value.style.chart.layout.labels.axisLabels.fontSize}, ${t.value.height / 2}), rotate(90)`,
|
|
1343
1344
|
fill: e.value.style.chart.layout.labels.axisLabels.color.positive
|
|
1344
|
-
}, w(e.value.style.chart.layout.grid.xAxis.name), 9,
|
|
1345
|
+
}, w(e.value.style.chart.layout.grid.xAxis.name), 9, ga)
|
|
1345
1346
|
])) : y("", !0),
|
|
1346
|
-
e.value.style.chart.layout.areas.show ? (n(), r("g",
|
|
1347
|
-
(n(!0), r(
|
|
1347
|
+
e.value.style.chart.layout.areas.show ? (n(), r("g", ma, [
|
|
1348
|
+
(n(!0), r(A, null, N(W.value, (a, s) => (n(), r("g", null, [
|
|
1348
1349
|
a.series.length > 2 ? (n(), r("polygon", {
|
|
1349
1350
|
key: 0,
|
|
1350
1351
|
"data-cy-quadrant-area": "",
|
|
1351
|
-
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${$.value}_${s})` : v(
|
|
1352
|
-
points: v(
|
|
1353
|
-
}, null, 8,
|
|
1352
|
+
fill: e.value.style.chart.layout.areas.useGradient ? `url(#quadrant_gradient_${$.value}_${s})` : v(Se)(a.color, e.value.style.chart.layout.areas.opacity),
|
|
1353
|
+
points: v(ml)(a)
|
|
1354
|
+
}, null, 8, xa)) : y("", !0)
|
|
1354
1355
|
]))), 256))
|
|
1355
1356
|
])) : y("", !0),
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
onClick: o[4] || (o[4] = (a) =>
|
|
1357
|
+
d("g", null, [
|
|
1358
|
+
d("rect", {
|
|
1359
|
+
onClick: o[4] || (o[4] = (a) => I("TL")),
|
|
1359
1360
|
x: t.value.left,
|
|
1360
1361
|
y: t.value.top,
|
|
1361
1362
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1362
1363
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1363
1364
|
fill: "transparent",
|
|
1364
|
-
class:
|
|
1365
|
-
}, null, 10,
|
|
1366
|
-
|
|
1367
|
-
onClick: o[5] || (o[5] = (a) =>
|
|
1365
|
+
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1366
|
+
}, null, 10, $a),
|
|
1367
|
+
d("rect", {
|
|
1368
|
+
onClick: o[5] || (o[5] = (a) => I("TR")),
|
|
1368
1369
|
x: t.value.centerX,
|
|
1369
1370
|
y: t.value.top,
|
|
1370
1371
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1371
1372
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1372
1373
|
fill: "transparent",
|
|
1373
|
-
class:
|
|
1374
|
-
}, null, 10,
|
|
1375
|
-
|
|
1376
|
-
onClick: o[6] || (o[6] = (a) =>
|
|
1374
|
+
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1375
|
+
}, null, 10, ka),
|
|
1376
|
+
d("rect", {
|
|
1377
|
+
onClick: o[6] || (o[6] = (a) => I("BR")),
|
|
1377
1378
|
x: t.value.centerX,
|
|
1378
1379
|
y: t.value.centerY,
|
|
1379
1380
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1380
1381
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1381
1382
|
fill: "transparent",
|
|
1382
|
-
class:
|
|
1383
|
-
}, null, 10,
|
|
1384
|
-
|
|
1385
|
-
onClick: o[7] || (o[7] = (a) =>
|
|
1383
|
+
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1384
|
+
}, null, 10, wa),
|
|
1385
|
+
d("rect", {
|
|
1386
|
+
onClick: o[7] || (o[7] = (a) => I("BL")),
|
|
1386
1387
|
x: t.value.left,
|
|
1387
1388
|
y: t.value.centerY,
|
|
1388
1389
|
width: t.value.usableWidth / 2 <= 0 ? 1e-3 : t.value.usableWidth / 2,
|
|
1389
1390
|
height: t.value.usableHeight / 2 <= 0 ? 1e-3 : t.value.usableHeight / 2,
|
|
1390
1391
|
fill: "transparent",
|
|
1391
|
-
class:
|
|
1392
|
-
}, null, 10,
|
|
1392
|
+
class: O({ "vue-data-ui-zoom-plus": !x.value, "vue-data-ui-zoom-minus": x.value })
|
|
1393
|
+
}, null, 10, La)
|
|
1393
1394
|
]),
|
|
1394
|
-
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (n(), r(
|
|
1395
|
-
k.value.plotLabels.show ? (n(), r("g",
|
|
1396
|
-
(n(!0), r(
|
|
1397
|
-
(n(!0), r(
|
|
1395
|
+
e.value.style.chart.layout.labels.plotLabels.showAsTag ? (n(), r(A, { key: 7 }, [
|
|
1396
|
+
k.value.plotLabels.show ? (n(), r("g", za, [
|
|
1397
|
+
(n(!0), r(A, null, N(W.value, (a, s) => (n(), r(A, null, [
|
|
1398
|
+
(n(!0), r(A, null, N(a.series, (u) => (n(), r("foreignObject", {
|
|
1398
1399
|
style: { overflow: "visible" },
|
|
1399
1400
|
height: "10",
|
|
1400
1401
|
width: "100",
|
|
1401
1402
|
x: u.x - 50,
|
|
1402
1403
|
y: u.y - e.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1403
|
-
onMouseover: (i) =>
|
|
1404
|
-
onMouseleave: (i) =>
|
|
1405
|
-
onClick: (i) =>
|
|
1404
|
+
onMouseover: (i) => $e(a, u, s),
|
|
1405
|
+
onMouseleave: (i) => Oe(u, s),
|
|
1406
|
+
onClick: (i) => ke(a, u, s)
|
|
1406
1407
|
}, [
|
|
1407
|
-
|
|
1408
|
-
style:
|
|
1408
|
+
d("div", {
|
|
1409
|
+
style: _(`color:${v($l)(a.color)};margin: 0 auto; font-size:${e.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${a.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)
|
|
1409
1410
|
}, w(u.name), 5)
|
|
1410
|
-
], 40,
|
|
1411
|
+
], 40, Wa))), 256))
|
|
1411
1412
|
], 64))), 256))
|
|
1412
1413
|
])) : y("", !0)
|
|
1413
|
-
], 64)) : (n(), r(
|
|
1414
|
-
(n(!0), r(
|
|
1415
|
-
l.$slots.datapoint && !v(
|
|
1414
|
+
], 64)) : (n(), r(A, { key: 6 }, [
|
|
1415
|
+
(n(!0), r(A, null, N(W.value, (a, s) => (n(), r("g", null, [
|
|
1416
|
+
l.$slots.datapoint && !v(ge) ? (n(!0), r(A, { key: 0 }, N(a.series, (u) => (n(), r("g", {
|
|
1416
1417
|
key: u.uid
|
|
1417
1418
|
}, [
|
|
1418
1419
|
(n(), r("foreignObject", {
|
|
@@ -1421,13 +1422,13 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1421
1422
|
width: "2",
|
|
1422
1423
|
height: "2",
|
|
1423
1424
|
style: { overflow: "visible", "pointer-events": "none" },
|
|
1424
|
-
onMouseenter: (i) =>
|
|
1425
|
-
onMouseleave: (i) =>
|
|
1426
|
-
onClick: (i) =>
|
|
1425
|
+
onMouseenter: (i) => $e(a, u, s),
|
|
1426
|
+
onMouseleave: (i) => Oe(u, s),
|
|
1427
|
+
onClick: (i) => ke(a, u, s)
|
|
1427
1428
|
}, [
|
|
1428
|
-
g(l.$slots, "datapoint",
|
|
1429
|
-
], 40,
|
|
1430
|
-
|
|
1429
|
+
g(l.$slots, "datapoint", kt({ ref_for: !0 }, { datapoint: u }), void 0, !0)
|
|
1430
|
+
], 40, Ca)),
|
|
1431
|
+
d("circle", {
|
|
1431
1432
|
"data-a11y-plot-id": u.uid,
|
|
1432
1433
|
cx: u.x,
|
|
1433
1434
|
cy: u.y,
|
|
@@ -1435,23 +1436,23 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1435
1436
|
fill: "transparent",
|
|
1436
1437
|
"aria-label": `${a.name} ${u.name}: ${e.value.style.chart.layout.grid.xAxis.name || "x"} ${u.xValue}, ${e.value.style.chart.layout.grid.yAxis.name || "y"} ${u.yValue}`,
|
|
1437
1438
|
style: { "pointer-events": "none" }
|
|
1438
|
-
}, null, 8,
|
|
1439
|
-
]))), 128)) : (n(!0), r(
|
|
1439
|
+
}, null, 8, Sa)
|
|
1440
|
+
]))), 128)) : (n(!0), r(A, { key: 1 }, N(a.series, (u, i) => (n(), r("g", {
|
|
1440
1441
|
key: u.uid
|
|
1441
1442
|
}, [
|
|
1442
|
-
|
|
1443
|
+
de(Ct, {
|
|
1443
1444
|
color: a.color,
|
|
1444
|
-
isSelected:
|
|
1445
|
+
isSelected: G.value && u.uid === G.value,
|
|
1445
1446
|
plot: u,
|
|
1446
1447
|
radius: e.value.style.chart.layout.plots.radius / (x.value ? 1.5 : 1),
|
|
1447
1448
|
shape: a.shape,
|
|
1448
1449
|
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1449
1450
|
strokeWidth: e.value.style.chart.layout.plots.outlineWidth,
|
|
1450
|
-
onMouseenter: (
|
|
1451
|
-
onMouseleave: (
|
|
1452
|
-
onClick: (
|
|
1451
|
+
onMouseenter: (c) => $e(a, u, s, "pointer"),
|
|
1452
|
+
onMouseleave: (c) => Oe(u, s),
|
|
1453
|
+
onClick: (c) => ke(a, u, s)
|
|
1453
1454
|
}, null, 8, ["color", "isSelected", "plot", "radius", "shape", "stroke", "strokeWidth", "onMouseenter", "onMouseleave", "onClick"]),
|
|
1454
|
-
|
|
1455
|
+
d("circle", {
|
|
1455
1456
|
"data-dom-to-png-ignore": "",
|
|
1456
1457
|
"data-a11y-plot-id": u.uid,
|
|
1457
1458
|
cx: u.x,
|
|
@@ -1460,12 +1461,12 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1460
1461
|
fill: "transparent",
|
|
1461
1462
|
"aria-label": `${a.name} ${u.name}: ${e.value.style.chart.layout.grid.xAxis.name || "x"} ${u.xValue}, ${e.value.style.chart.layout.grid.yAxis.name || "y"} ${u.yValue}`,
|
|
1462
1463
|
style: { "pointer-events": "none" }
|
|
1463
|
-
}, null, 8,
|
|
1464
|
+
}, null, 8, _a)
|
|
1464
1465
|
]))), 128))
|
|
1465
1466
|
]))), 256)),
|
|
1466
|
-
k.value.plotLabels.show ? (n(), r("g",
|
|
1467
|
-
(n(!0), r(
|
|
1468
|
-
(n(!0), r(
|
|
1467
|
+
k.value.plotLabels.show ? (n(), r("g", Ta, [
|
|
1468
|
+
(n(!0), r(A, null, N(W.value, (a) => (n(), r("g", null, [
|
|
1469
|
+
(n(!0), r(A, null, N(a.series, (s) => (n(), r("g", null, [
|
|
1469
1470
|
String(s.name).includes(`
|
|
1470
1471
|
`) ? (n(), r("text", {
|
|
1471
1472
|
key: 1,
|
|
@@ -1474,184 +1475,184 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1474
1475
|
"text-anchor": "middle",
|
|
1475
1476
|
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1476
1477
|
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1477
|
-
innerHTML: v(
|
|
1478
|
+
innerHTML: v(xl)({
|
|
1478
1479
|
content: String(s.name),
|
|
1479
1480
|
fontSize: e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1480
1481
|
fill: e.value.style.chart.layout.labels.plotLabels.color,
|
|
1481
1482
|
x: s.x,
|
|
1482
1483
|
y: s.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius
|
|
1483
1484
|
})
|
|
1484
|
-
}, null, 8,
|
|
1485
|
+
}, null, 8, Aa)) : (n(), r("text", {
|
|
1485
1486
|
key: 0,
|
|
1486
1487
|
x: s.x,
|
|
1487
1488
|
y: s.y + e.value.style.chart.layout.labels.plotLabels.offsetY + e.value.style.chart.layout.plots.radius,
|
|
1488
1489
|
"text-anchor": "middle",
|
|
1489
1490
|
"font-size": e.value.style.chart.layout.labels.plotLabels.fontSize / (x.value ? 1.5 : 1),
|
|
1490
1491
|
fill: e.value.style.chart.layout.labels.plotLabels.color
|
|
1491
|
-
}, w(s.name), 9,
|
|
1492
|
+
}, w(s.name), 9, qa))
|
|
1492
1493
|
]))), 256))
|
|
1493
1494
|
]))), 256))
|
|
1494
1495
|
])) : y("", !0)
|
|
1495
1496
|
], 64)),
|
|
1496
|
-
x.value ? (n(), r("g",
|
|
1497
|
+
x.value ? (n(), r("g", Xa, [
|
|
1497
1498
|
f.value === "TL" ? (n(), r("polygon", {
|
|
1498
1499
|
key: 0,
|
|
1499
1500
|
points: `${t.value.left - 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.top - 1} ${t.value.right},${t.value.top - 1} ${t.value.right},${t.value.bottom} ${t.value.left - 1},${t.value.bottom} ${t.value.left - 1},${t.value.centerY}`,
|
|
1500
1501
|
fill: e.value.style.chart.backgroundColor,
|
|
1501
1502
|
style: { opacity: "1" }
|
|
1502
|
-
}, null, 8,
|
|
1503
|
+
}, null, 8, Pa)) : y("", !0),
|
|
1503
1504
|
f.value === "TR" ? (n(), r("polygon", {
|
|
1504
1505
|
key: 1,
|
|
1505
1506
|
points: `${t.value.left},${t.value.top - 1} ${t.value.centerX},${t.value.top - 1} ${t.value.centerX},${t.value.centerY} ${t.value.right + 1},${t.value.centerY} ${t.value.right + 1},${t.value.bottom} ${t.value.left},${t.value.bottom} ${t.value.left},${t.value.top - 1}`,
|
|
1506
1507
|
fill: e.value.style.chart.backgroundColor,
|
|
1507
1508
|
style: { opacity: "1" }
|
|
1508
|
-
}, null, 8,
|
|
1509
|
+
}, null, 8, Ya)) : y("", !0),
|
|
1509
1510
|
f.value === "BR" ? (n(), r("polygon", {
|
|
1510
1511
|
key: 2,
|
|
1511
1512
|
points: `${t.value.left},${t.value.top} ${t.value.right + 1},${t.value.top} ${t.value.right + 1},${t.value.centerY} ${t.value.centerX},${t.value.centerY} ${t.value.centerX},${t.value.bottom + 1} ${t.value.left},${t.value.bottom + 1} ${t.value.left},${t.value.top}`,
|
|
1512
1513
|
fill: e.value.style.chart.backgroundColor,
|
|
1513
1514
|
style: { opacity: "1" }
|
|
1514
|
-
}, null, 8,
|
|
1515
|
+
}, null, 8, Ma)) : y("", !0),
|
|
1515
1516
|
f.value === "BL" ? (n(), r("polygon", {
|
|
1516
1517
|
key: 3,
|
|
1517
1518
|
points: `${t.value.left - 1},${t.value.top} ${t.value.right},${t.value.top} ${t.value.right},${t.value.bottom + 1} ${t.value.centerX},${t.value.bottom + 1} ${t.value.centerX},${t.value.centerY} ${t.value.left - 1},${t.value.centerY} ${t.value.left - 1},${t.value.top}`,
|
|
1518
1519
|
fill: e.value.style.chart.backgroundColor,
|
|
1519
1520
|
style: { opacity: "1" }
|
|
1520
|
-
}, null, 8,
|
|
1521
|
+
}, null, 8, Oa)) : y("", !0)
|
|
1521
1522
|
])) : y("", !0),
|
|
1522
|
-
f.value && !
|
|
1523
|
-
|
|
1524
|
-
x:
|
|
1525
|
-
y:
|
|
1526
|
-
"font-size":
|
|
1527
|
-
fill:
|
|
1523
|
+
f.value && !me.value ? (n(), r("g", Ba, [
|
|
1524
|
+
d("text", {
|
|
1525
|
+
x: U.value.x,
|
|
1526
|
+
y: U.value.y - U.value.fontSize / 1.5,
|
|
1527
|
+
"font-size": U.value.fontSize / 1.5,
|
|
1528
|
+
fill: U.value.fill,
|
|
1528
1529
|
"text-anchor": "middle",
|
|
1529
|
-
"font-weight":
|
|
1530
|
-
}, w(
|
|
1530
|
+
"font-weight": U.value.bold ? "bold" : "normal"
|
|
1531
|
+
}, w(U.value.text), 9, Na)
|
|
1531
1532
|
])) : y("", !0),
|
|
1532
|
-
x.value && f.value ? (n(), r("g",
|
|
1533
|
-
|
|
1533
|
+
x.value && f.value ? (n(), r("g", Va, [
|
|
1534
|
+
d("rect", {
|
|
1534
1535
|
x: S.value[f.value].tl.x,
|
|
1535
1536
|
y: S.value[f.value].tl.y,
|
|
1536
1537
|
height: "20",
|
|
1537
1538
|
width: "20",
|
|
1538
1539
|
fill: S.value[f.value].tl.fill,
|
|
1539
|
-
style:
|
|
1540
|
-
onClick: o[8] || (o[8] = (a) =>
|
|
1541
|
-
class:
|
|
1542
|
-
}, null, 14,
|
|
1543
|
-
|
|
1540
|
+
style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "TL" ? 1 : 0.2}`),
|
|
1541
|
+
onClick: o[8] || (o[8] = (a) => I("TL")),
|
|
1542
|
+
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "TL" })
|
|
1543
|
+
}, null, 14, Fa),
|
|
1544
|
+
d("rect", {
|
|
1544
1545
|
x: S.value[f.value].tr.x,
|
|
1545
1546
|
y: S.value[f.value].tr.y,
|
|
1546
1547
|
height: "20",
|
|
1547
1548
|
width: "20",
|
|
1548
1549
|
fill: S.value[f.value].tr.fill,
|
|
1549
|
-
style:
|
|
1550
|
-
onClick: o[9] || (o[9] = (a) =>
|
|
1551
|
-
class:
|
|
1552
|
-
}, null, 14,
|
|
1553
|
-
|
|
1550
|
+
style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "TR" ? 1 : 0.2}`),
|
|
1551
|
+
onClick: o[9] || (o[9] = (a) => I("TR")),
|
|
1552
|
+
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "TR" })
|
|
1553
|
+
}, null, 14, Ia),
|
|
1554
|
+
d("rect", {
|
|
1554
1555
|
x: S.value[f.value].br.x,
|
|
1555
1556
|
y: S.value[f.value].br.y,
|
|
1556
1557
|
height: "20",
|
|
1557
1558
|
width: "20",
|
|
1558
1559
|
fill: S.value[f.value].br.fill,
|
|
1559
|
-
style:
|
|
1560
|
-
onClick: o[10] || (o[10] = (a) =>
|
|
1561
|
-
class:
|
|
1562
|
-
}, null, 14,
|
|
1563
|
-
|
|
1560
|
+
style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "BR" ? 1 : 0.2}`),
|
|
1561
|
+
onClick: o[10] || (o[10] = (a) => I("BR")),
|
|
1562
|
+
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "BR" })
|
|
1563
|
+
}, null, 14, Ra),
|
|
1564
|
+
d("rect", {
|
|
1564
1565
|
x: S.value[f.value].bl.x,
|
|
1565
1566
|
y: S.value[f.value].bl.y,
|
|
1566
1567
|
height: "20",
|
|
1567
1568
|
width: "20",
|
|
1568
1569
|
fill: S.value[f.value].bl.fill,
|
|
1569
|
-
style:
|
|
1570
|
-
onClick: o[11] || (o[11] = (a) =>
|
|
1571
|
-
class:
|
|
1572
|
-
}, null, 14,
|
|
1573
|
-
|
|
1570
|
+
style: _(`cursor: ${X.value ? "pointer" : "default"}; opacity: ${f.value === "BL" ? 1 : 0.2}`),
|
|
1571
|
+
onClick: o[11] || (o[11] = (a) => I("BL")),
|
|
1572
|
+
class: O({ "vue-ui-quadrant-mini-map-cell": !0, "vue-ui-quadrant-mini-map-cell-selectable": f.value !== "BL" })
|
|
1573
|
+
}, null, 14, Da),
|
|
1574
|
+
d("path", {
|
|
1574
1575
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1575
1576
|
stroke: e.value.style.chart.backgroundColor,
|
|
1576
1577
|
"stroke-width": 1,
|
|
1577
1578
|
d: S.value[f.value].crosshairs.horizontal
|
|
1578
|
-
}, null, 8,
|
|
1579
|
-
|
|
1579
|
+
}, null, 8, Ha),
|
|
1580
|
+
d("path", {
|
|
1580
1581
|
class: "vue-ui-quadrant-minimap-crosshairs",
|
|
1581
1582
|
stroke: e.value.style.chart.backgroundColor,
|
|
1582
1583
|
"stroke-width": 1,
|
|
1583
1584
|
d: S.value[f.value].crosshairs.vertical
|
|
1584
|
-
}, null, 8,
|
|
1585
|
+
}, null, 8, Ea)
|
|
1585
1586
|
])) : y("", !0),
|
|
1586
1587
|
g(l.$slots, "svg", {
|
|
1587
1588
|
svg: {
|
|
1588
1589
|
...t.value,
|
|
1589
|
-
isPrintingImg: v(
|
|
1590
|
-
isPrintingSvg:
|
|
1590
|
+
isPrintingImg: v(We) | v(Xe) | ye.value,
|
|
1591
|
+
isPrintingSvg: be.value
|
|
1591
1592
|
}
|
|
1592
1593
|
}, void 0, !0)
|
|
1593
|
-
], 46,
|
|
1594
|
-
l.$slots.hint ? (n(), r("div",
|
|
1595
|
-
g(l.$slots, "hint", q(
|
|
1594
|
+
], 46, Ul)),
|
|
1595
|
+
l.$slots.hint ? (n(), r("div", Ua, [
|
|
1596
|
+
g(l.$slots, "hint", T(q({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: pe.value })), void 0, !0)
|
|
1596
1597
|
])) : y("", !0)
|
|
1597
1598
|
]),
|
|
1598
|
-
l.$slots.watermark ? (n(), r("div",
|
|
1599
|
-
g(l.$slots, "watermark", q(
|
|
1599
|
+
l.$slots.watermark ? (n(), r("div", Qa, [
|
|
1600
|
+
g(l.$slots, "watermark", T(q({ isPrinting: v(We) || v(Xe) || ye.value || be.value })), void 0, !0)
|
|
1600
1601
|
])) : y("", !0),
|
|
1601
|
-
|
|
1602
|
+
d("div", {
|
|
1602
1603
|
id: `legend-bottom-${$.value}`
|
|
1603
|
-
}, null, 8,
|
|
1604
|
-
|
|
1604
|
+
}, null, 8, Ga),
|
|
1605
|
+
Ze.value ? (n(), B(il, {
|
|
1605
1606
|
key: 6,
|
|
1606
1607
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
1607
1608
|
}, [
|
|
1608
|
-
|
|
1609
|
+
d("div", {
|
|
1609
1610
|
ref_key: "chartLegend",
|
|
1610
|
-
ref:
|
|
1611
|
+
ref: Ue
|
|
1611
1612
|
}, [
|
|
1612
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1613
|
-
key: `legend_${
|
|
1614
|
-
legendSet:
|
|
1615
|
-
config:
|
|
1616
|
-
isCursorPointer:
|
|
1617
|
-
onClickMarker: o[12] || (o[12] = ({ legend: a }) =>
|
|
1613
|
+
e.value.style.chart.legend.show ? (n(), B(Nl, {
|
|
1614
|
+
key: `legend_${Je.value}`,
|
|
1615
|
+
legendSet: Q.value,
|
|
1616
|
+
config: Qt.value,
|
|
1617
|
+
isCursorPointer: X.value,
|
|
1618
|
+
onClickMarker: o[12] || (o[12] = ({ legend: a }) => se(a.id))
|
|
1618
1619
|
}, {
|
|
1619
1620
|
item: p(({ legend: a }) => [
|
|
1620
|
-
v(
|
|
1621
|
+
v(ge) ? y("", !0) : (n(), r("div", {
|
|
1621
1622
|
key: 0,
|
|
1622
|
-
onClick: (s) =>
|
|
1623
|
-
style:
|
|
1624
|
-
}, w(a.name), 13,
|
|
1623
|
+
onClick: (s) => se(a.id),
|
|
1624
|
+
style: _(`opacity:${C.value.includes(a.id) ? 0.5 : 1}`)
|
|
1625
|
+
}, w(a.name), 13, Ka))
|
|
1625
1626
|
]),
|
|
1626
1627
|
legendToggle: p(() => [
|
|
1627
|
-
|
|
1628
|
+
Q.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(ge) ? (n(), B(Fl, {
|
|
1628
1629
|
key: 0,
|
|
1629
1630
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1630
1631
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1631
1632
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1632
1633
|
checked: C.value.length > 0,
|
|
1633
|
-
isCursorPointer:
|
|
1634
|
-
onToggle:
|
|
1634
|
+
isCursorPointer: X.value,
|
|
1635
|
+
onToggle: Ht
|
|
1635
1636
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : y("", !0)
|
|
1636
1637
|
]),
|
|
1637
1638
|
_: 1
|
|
1638
1639
|
}, 8, ["legendSet", "config", "isCursorPointer"])) : g(l.$slots, "legend", {
|
|
1639
1640
|
key: 1,
|
|
1640
|
-
legend:
|
|
1641
|
+
legend: Q.value
|
|
1641
1642
|
}, void 0, !0)
|
|
1642
1643
|
], 512)
|
|
1643
1644
|
], 8, ["to"])) : y("", !0),
|
|
1644
1645
|
l.$slots.source ? (n(), r("div", {
|
|
1645
1646
|
key: 7,
|
|
1646
1647
|
ref_key: "source",
|
|
1647
|
-
ref:
|
|
1648
|
+
ref: Qe,
|
|
1648
1649
|
dir: "auto"
|
|
1649
1650
|
}, [
|
|
1650
1651
|
g(l.$slots, "source", {}, void 0, !0)
|
|
1651
1652
|
], 512)) : y("", !0),
|
|
1652
|
-
|
|
1653
|
+
de(v(qt), {
|
|
1653
1654
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1654
|
-
show: k.value.showTooltip &&
|
|
1655
|
+
show: k.value.showTooltip && he.value,
|
|
1655
1656
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1656
1657
|
color: e.value.style.chart.tooltip.color,
|
|
1657
1658
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1661,29 +1662,29 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1661
1662
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1662
1663
|
position: e.value.style.chart.tooltip.position,
|
|
1663
1664
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1664
|
-
parent:
|
|
1665
|
-
content:
|
|
1666
|
-
isFullscreen:
|
|
1665
|
+
parent: V.value,
|
|
1666
|
+
content: _e.value,
|
|
1667
|
+
isFullscreen: K.value,
|
|
1667
1668
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1668
1669
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1669
1670
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1670
1671
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1671
1672
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1672
|
-
isA11yMode:
|
|
1673
|
-
a11yPosition:
|
|
1673
|
+
isA11yMode: qe.value === "keyboard",
|
|
1674
|
+
a11yPosition: et.value
|
|
1674
1675
|
}, {
|
|
1675
1676
|
"tooltip-before": p(() => [
|
|
1676
|
-
g(l.$slots, "tooltip-before", q(
|
|
1677
|
+
g(l.$slots, "tooltip-before", T(q({ ...Ye.value })), void 0, !0)
|
|
1677
1678
|
]),
|
|
1678
1679
|
"tooltip-after": p(() => [
|
|
1679
|
-
g(l.$slots, "tooltip-after", q(
|
|
1680
|
+
g(l.$slots, "tooltip-after", T(q({ ...Ye.value })), void 0, !0)
|
|
1680
1681
|
]),
|
|
1681
1682
|
default: p(() => [
|
|
1682
|
-
e.value.style.chart.tooltip.showShape ? (n(), r("svg",
|
|
1683
|
-
|
|
1683
|
+
e.value.style.chart.tooltip.showShape ? (n(), r("svg", ja, [
|
|
1684
|
+
de(Ct, {
|
|
1684
1685
|
plot: { x: 10, y: 10 },
|
|
1685
|
-
shape:
|
|
1686
|
-
color:
|
|
1686
|
+
shape: ne.value.shape,
|
|
1687
|
+
color: ne.value.color,
|
|
1687
1688
|
radius: 8,
|
|
1688
1689
|
stroke: e.value.style.chart.layout.plots.outline ? e.value.style.chart.layout.plots.outlineColor : "none",
|
|
1689
1690
|
"stroke-width": e.value.style.chart.layout.plots.outlineWidth
|
|
@@ -1692,30 +1693,30 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1692
1693
|
]),
|
|
1693
1694
|
_: 3
|
|
1694
1695
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1695
|
-
|
|
1696
|
+
De.value && e.value.userOptions.buttons.table ? (n(), B(vl(ve.value.component), kt({ key: 8 }, ve.value.props, {
|
|
1696
1697
|
ref_key: "tableUnit",
|
|
1697
|
-
ref:
|
|
1698
|
-
onClose:
|
|
1699
|
-
}),
|
|
1698
|
+
ref: oe,
|
|
1699
|
+
onClose: pt
|
|
1700
|
+
}), $t({
|
|
1700
1701
|
content: p(() => [
|
|
1701
|
-
(n(),
|
|
1702
|
-
key: `table_${
|
|
1703
|
-
colNames:
|
|
1704
|
-
head:
|
|
1705
|
-
body:
|
|
1706
|
-
config:
|
|
1707
|
-
title: e.value.table.useDialog ? "" :
|
|
1702
|
+
(n(), B(v(Wt), {
|
|
1703
|
+
key: `table_${je.value}`,
|
|
1704
|
+
colNames: te.value.colNames,
|
|
1705
|
+
head: te.value.head,
|
|
1706
|
+
body: te.value.body,
|
|
1707
|
+
config: te.value.config,
|
|
1708
|
+
title: e.value.table.useDialog ? "" : ve.value.title,
|
|
1708
1709
|
withCloseButton: !e.value.table.useDialog,
|
|
1709
|
-
isCursorPointer:
|
|
1710
|
-
onClose:
|
|
1710
|
+
isCursorPointer: X.value,
|
|
1711
|
+
onClose: pt
|
|
1711
1712
|
}, {
|
|
1712
1713
|
th: p(({ th: a }) => [
|
|
1713
|
-
|
|
1714
|
+
wt(w(a), 1)
|
|
1714
1715
|
]),
|
|
1715
1716
|
td: p(({ td: a }) => [
|
|
1716
|
-
|
|
1717
|
+
d("div", {
|
|
1717
1718
|
innerHTML: a.name || a
|
|
1718
|
-
}, null, 8,
|
|
1719
|
+
}, null, 8, Ja)
|
|
1719
1720
|
]),
|
|
1720
1721
|
_: 1
|
|
1721
1722
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1725,22 +1726,22 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1725
1726
|
e.value.table.useDialog ? {
|
|
1726
1727
|
name: "title",
|
|
1727
1728
|
fn: p(() => [
|
|
1728
|
-
|
|
1729
|
+
wt(w(ve.value.title), 1)
|
|
1729
1730
|
]),
|
|
1730
1731
|
key: "0"
|
|
1731
1732
|
} : void 0,
|
|
1732
1733
|
e.value.table.useDialog ? {
|
|
1733
1734
|
name: "actions",
|
|
1734
1735
|
fn: p(() => [
|
|
1735
|
-
|
|
1736
|
+
d("button", {
|
|
1736
1737
|
tabindex: "0",
|
|
1737
1738
|
class: "vue-ui-user-options-button",
|
|
1738
|
-
onClick: o[13] || (o[13] = (a) =>
|
|
1739
|
-
style:
|
|
1739
|
+
onClick: o[13] || (o[13] = (a) => Be(e.value.userOptions.callbacks.csv)),
|
|
1740
|
+
style: _({ cursor: X.value ? "pointer" : "default" })
|
|
1740
1741
|
}, [
|
|
1741
|
-
|
|
1742
|
+
de(v(At), {
|
|
1742
1743
|
name: "fileCsv",
|
|
1743
|
-
stroke:
|
|
1744
|
+
stroke: ve.value.props.color
|
|
1744
1745
|
}, null, 8, ["stroke"])
|
|
1745
1746
|
], 4)
|
|
1746
1747
|
]),
|
|
@@ -1748,11 +1749,11 @@ const Fl = ["id"], Rl = ["id"], Il = ["id"], Dl = { style: { position: "relative
|
|
|
1748
1749
|
} : void 0
|
|
1749
1750
|
]), 1040)) : y("", !0),
|
|
1750
1751
|
g(l.$slots, "skeleton", {}, () => [
|
|
1751
|
-
v(
|
|
1752
|
+
v(ge) ? (n(), B(Al, { key: 0 })) : y("", !0)
|
|
1752
1753
|
], !0)
|
|
1753
|
-
], 46,
|
|
1754
|
+
], 46, Rl));
|
|
1754
1755
|
}
|
|
1755
|
-
},
|
|
1756
|
+
}, xo = /* @__PURE__ */ Il(Za, [["__scopeId", "data-v-89557c20"]]);
|
|
1756
1757
|
export {
|
|
1757
|
-
|
|
1758
|
+
xo as default
|
|
1758
1759
|
};
|