vue-data-ui 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u 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
|
|
11
|
-
import
|
|
12
|
-
import { _ as
|
|
13
|
-
import
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { defineAsyncComponent as H, computed as y, ref as d, toRefs as gt, watch as re, shallowRef as We, onMounted as xt, onBeforeUnmount as kt, watchEffect as wt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as _, normalizeClass as j, createBlock as M, createCommentVNode as p, createElementVNode as P, createVNode as Ue, createSlots as At, withCtx as w, renderSlot as b, normalizeProps as B, guardReactiveProps as W, Fragment as C, renderList as N, toDisplayString as U, Teleport as Ct, createTextVNode as $t } from "vue";
|
|
2
|
+
import { u as Tt, c as ce, t as zt, a as _t, p as K, b as Mt, o as Ve, f as je, g as Nt, d as Ft, e as It, D as Lt, U as Pt, V as Ot, W as St, X as Rt, I as Dt, y as Ge, E as Q, v as Et, w as Ht, k as Xe, i as Ye, z as Bt } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as qe, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ut } from "./usePrinter-CZk2ISUm.js";
|
|
5
|
+
import { u as Vt, B as jt } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Je } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as Gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Yt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import qt from "./Title-CINHji0n.js";
|
|
11
|
+
import Jt from "./Legend-CevCqVZ5.js";
|
|
12
|
+
import { _ as Kt } from "./Shape-BHVN6hj0.js";
|
|
13
|
+
import Qt from "./img-CBdOMFyn.js";
|
|
14
|
+
import { _ as Zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], la = ["x", "y", "width", "height"], oa = { style: { "pointer-events": "none" } }, sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ia = { key: 0 }, ua = ["x", "y", "fill", "font-size", "font-weight"], ra = ["fill", "font-size", "font-weight", "text-anchor", "transform"], ca = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], va = { key: 0 }, da = ["x", "y", "font-size", "fill"], ha = ["width", "x", "y"], pa = { style: { width: "100%" } }, ma = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], ya = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], fa = ["d", "onMouseenter", "onMouseleave", "onClick"], ba = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, ga = ["id"], xa = ["onClick"], ka = ["innerHTML"], wa = {
|
|
19
19
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -32,20 +32,20 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
35
|
+
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
36
|
+
const et = H(() => import("./vue-ui-accordion-s_m_NJzJ.js")), tt = H(() => import("./DataTable-CWzb1j8d.js")), at = H(() => import("./PackageVersion-n4qokxnx.js")), lt = H(() => import("./PenAndPaper-C_R9vJkU.js")), ot = H(() => import("./Tooltip-hfdFRoLp.js")), st = H(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_parallel_coordinate_plot: nt } = Tt(), $ = Ke, G = y({
|
|
37
37
|
get() {
|
|
38
38
|
return !!$.dataset && $.dataset.length;
|
|
39
39
|
},
|
|
40
40
|
set(a) {
|
|
41
41
|
return a;
|
|
42
42
|
}
|
|
43
|
-
}), ve = d(0), F = d(null), de = d(null), he = d(null), pe = d(null), me = d(null), ye = d(0), fe = d(0), be = d(0),
|
|
44
|
-
function
|
|
45
|
-
|
|
43
|
+
}), ve = d(0), F = d(null), de = d(null), he = d(null), pe = d(null), me = d(null), ye = d(0), fe = d(0), be = d(0), ge = d(!1), Z = d(null), O = d(ce()), R = d(!1);
|
|
44
|
+
function xe(a) {
|
|
45
|
+
R.value = a, ve.value += 1;
|
|
46
46
|
}
|
|
47
|
-
const e = d(ae()), { loading:
|
|
48
|
-
...
|
|
47
|
+
const e = d(ae()), { loading: S, FINAL_DATASET: it, manualLoading: ee } = Vt({
|
|
48
|
+
...gt($),
|
|
49
49
|
FINAL_CONFIG: e,
|
|
50
50
|
prepareConfig: ae,
|
|
51
51
|
skeletonDataset: [
|
|
@@ -83,7 +83,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
|
-
skeletonConfig:
|
|
86
|
+
skeletonConfig: zt({
|
|
87
87
|
defaultConfig: e.value,
|
|
88
88
|
userConfig: {
|
|
89
89
|
useCssAnimation: !1,
|
|
@@ -110,51 +110,51 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
})
|
|
113
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility:
|
|
113
|
+
}), { userOptionsVisible: te, setUserOptionsVisibility: ke, keepUserOptionState: we } = Gt({ config: e.value }), { svgRef: Ae } = Xt({ config: e.value.style.chart.title });
|
|
114
114
|
function ae() {
|
|
115
|
-
const a =
|
|
115
|
+
const a = Je({
|
|
116
116
|
userConfig: $.config,
|
|
117
|
-
defaultConfig:
|
|
117
|
+
defaultConfig: nt
|
|
118
118
|
});
|
|
119
119
|
return a.theme ? {
|
|
120
|
-
...
|
|
121
|
-
userConfig:
|
|
120
|
+
...Je({
|
|
121
|
+
userConfig: Mt.vue_ui_parallel_coordinate_plot[a.theme] || $.config,
|
|
122
122
|
defaultConfig: a
|
|
123
123
|
}),
|
|
124
|
-
customPalette:
|
|
124
|
+
customPalette: _t[a.theme] || K
|
|
125
125
|
} : a;
|
|
126
126
|
}
|
|
127
127
|
re(() => $.config, (a) => {
|
|
128
|
-
|
|
128
|
+
S.value || (e.value = ae()), te.value = !e.value.userOptions.showOnChartHover, $e(), ye.value += 1, be.value += 1, fe.value += 1, m.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
129
129
|
}, { deep: !0 }), re(() => $.dataset, (a) => {
|
|
130
130
|
Array.isArray(a) && a.length > 0 && (ee.value = !1);
|
|
131
131
|
}, { deep: !0 });
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
const I = We(null), D = We(null);
|
|
133
|
+
xt(() => {
|
|
134
|
+
ge.value = !0, $e();
|
|
135
135
|
});
|
|
136
|
-
const
|
|
137
|
-
function
|
|
138
|
-
if (
|
|
136
|
+
const Ce = y(() => !!e.value.debug);
|
|
137
|
+
function $e() {
|
|
138
|
+
if (Ve($.dataset) ? (je({
|
|
139
139
|
componentName: "VueUiParallelCoordinatePlot",
|
|
140
140
|
type: "dataset",
|
|
141
|
-
debug:
|
|
141
|
+
debug: Ce.value
|
|
142
142
|
}), ee.value = !0) : $.dataset.forEach((a, o) => {
|
|
143
|
-
|
|
143
|
+
Nt({
|
|
144
144
|
datasetObject: a,
|
|
145
145
|
requiredAttributes: ["name", "series"]
|
|
146
146
|
}).forEach((t) => {
|
|
147
|
-
|
|
147
|
+
G.value = !1, je({
|
|
148
148
|
componentName: "VueUiParallelCoordinatePlot",
|
|
149
149
|
type: "datasetSerieAttribute",
|
|
150
150
|
property: t,
|
|
151
151
|
index: o,
|
|
152
|
-
debug:
|
|
152
|
+
debug: Ce.value
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
|
-
}),
|
|
156
|
-
const a =
|
|
157
|
-
const { width: o, height: t } =
|
|
155
|
+
}), Ve($.dataset) || (ee.value = e.value.loading), e.value.responsive) {
|
|
156
|
+
const a = qe(() => {
|
|
157
|
+
const { width: o, height: t } = Wt({
|
|
158
158
|
chart: F.value,
|
|
159
159
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
160
160
|
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
@@ -162,25 +162,25 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
162
162
|
noTitle: me.value
|
|
163
163
|
});
|
|
164
164
|
requestAnimationFrame(() => {
|
|
165
|
-
c.value.width = o, c.value.height = t - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize =
|
|
165
|
+
c.value.width = o, c.value.height = t - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = Q({
|
|
166
166
|
relator: Math.min(o, t),
|
|
167
167
|
adjuster: 600,
|
|
168
168
|
source: e.value.style.chart.plots.radius,
|
|
169
169
|
threshold: 2,
|
|
170
170
|
fallback: 2
|
|
171
|
-
}), c.value.ticksFontSize =
|
|
171
|
+
}), c.value.ticksFontSize = Q({
|
|
172
172
|
relator: Math.min(o, t),
|
|
173
173
|
adjuster: 600,
|
|
174
174
|
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
175
175
|
threshold: 10,
|
|
176
176
|
fallback: 10
|
|
177
|
-
}), c.value.datapointFontSize =
|
|
177
|
+
}), c.value.datapointFontSize = Q({
|
|
178
178
|
relator: Math.min(o, t),
|
|
179
179
|
adjuster: 600,
|
|
180
180
|
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
181
181
|
threshold: 10,
|
|
182
182
|
fallback: 10
|
|
183
|
-
}), c.value.axisNameFontSize =
|
|
183
|
+
}), c.value.axisNameFontSize = Q({
|
|
184
184
|
relator: Math.min(o, t),
|
|
185
185
|
adjuster: 600,
|
|
186
186
|
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
@@ -189,17 +189,17 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
189
189
|
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
190
190
|
});
|
|
191
191
|
});
|
|
192
|
-
|
|
192
|
+
I.value && (D.value && I.value.unobserve(D.value), I.value.disconnect()), I.value = new ResizeObserver(a), D.value = F.value.parentNode, I.value.observe(D.value);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
kt(() => {
|
|
196
|
+
I.value && (D.value && I.value.unobserve(D.value), I.value.disconnect());
|
|
197
197
|
});
|
|
198
|
-
const { isPrinting:
|
|
199
|
-
elementId: `pcp_${
|
|
198
|
+
const { isPrinting: Te, isImaging: ze, generatePdf: _e, generateImage: Me } = Ut({
|
|
199
|
+
elementId: `pcp_${O.value}`,
|
|
200
200
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
201
201
|
options: e.value.userOptions.print
|
|
202
|
-
}),
|
|
202
|
+
}), ut = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
|
|
203
203
|
height: e.value.style.chart.height,
|
|
204
204
|
width: e.value.style.chart.width,
|
|
205
205
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -208,14 +208,14 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
208
208
|
// ratio 42.85
|
|
209
209
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
210
210
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
211
|
-
}), Ne = y(() => c.value.width), Fe = y(() => c.value.height),
|
|
212
|
-
|
|
211
|
+
}), Ne = y(() => c.value.width), Fe = y(() => c.value.height), V = d(0), rt = qe((a) => {
|
|
212
|
+
V.value = a;
|
|
213
213
|
}, 100);
|
|
214
|
-
|
|
215
|
-
const o =
|
|
214
|
+
wt((a) => {
|
|
215
|
+
const o = Z.value;
|
|
216
216
|
if (!o) return;
|
|
217
217
|
const t = new ResizeObserver((s) => {
|
|
218
|
-
|
|
218
|
+
rt(s[0].contentRect.height);
|
|
219
219
|
});
|
|
220
220
|
t.observe(o), a(() => t.disconnect());
|
|
221
221
|
});
|
|
@@ -224,14 +224,14 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
224
224
|
return {
|
|
225
225
|
chartHeight: Math.max(1e-3, l),
|
|
226
226
|
chartWidth: Math.max(1e-3, r),
|
|
227
|
-
height: Math.max(1e-3, l - a - t -
|
|
227
|
+
height: Math.max(1e-3, l - a - t - V.value - c.value.datapointFontSize * 2),
|
|
228
228
|
width: Math.max(1e-3, r - s - o),
|
|
229
|
-
top: a +
|
|
229
|
+
top: a + V.value + c.value.datapointFontSize,
|
|
230
230
|
left: s,
|
|
231
231
|
right: r - o,
|
|
232
232
|
bottom: l - t - c.value.datapointFontSize
|
|
233
233
|
};
|
|
234
|
-
}),
|
|
234
|
+
}), ct = y(() => Ft(e.value.customPalette)), m = d({
|
|
235
235
|
dataLabels: {
|
|
236
236
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
237
237
|
},
|
|
@@ -239,7 +239,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
239
239
|
showTooltip: e.value.style.chart.tooltip.show
|
|
240
240
|
});
|
|
241
241
|
re(e, () => {
|
|
242
|
-
|
|
242
|
+
m.value = {
|
|
243
243
|
dataLabels: {
|
|
244
244
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
245
245
|
},
|
|
@@ -248,11 +248,11 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
248
248
|
};
|
|
249
249
|
}, { immediate: !0 });
|
|
250
250
|
const z = d([]);
|
|
251
|
-
function
|
|
251
|
+
function Ie(a) {
|
|
252
252
|
z.value.includes(a) ? z.value = z.value.filter((o) => o !== a) : z.value.push(a);
|
|
253
253
|
}
|
|
254
|
-
const
|
|
255
|
-
const t =
|
|
254
|
+
const L = y(() => it.value.map((a, o) => {
|
|
255
|
+
const t = It(a.color) || ct.value[o] || K[o] || K[o % K.length];
|
|
256
256
|
return {
|
|
257
257
|
...a,
|
|
258
258
|
series: a.series.map((s) => ({
|
|
@@ -265,27 +265,27 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
265
265
|
id: ce(),
|
|
266
266
|
shape: a.shape || "circle"
|
|
267
267
|
};
|
|
268
|
-
})),
|
|
268
|
+
})), vt = y(() => L.value.map((a) => ({
|
|
269
269
|
...a,
|
|
270
270
|
opacity: z.value.includes(a.id) ? 0.5 : 1,
|
|
271
|
-
segregate: () =>
|
|
271
|
+
segregate: () => Ie(a.id),
|
|
272
272
|
isSegregated: z.value.includes(a.id)
|
|
273
|
-
}))),
|
|
273
|
+
}))), dt = y(() => ({
|
|
274
274
|
cy: "pcp-div-legend",
|
|
275
275
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
276
276
|
color: e.value.style.chart.legend.color,
|
|
277
277
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
278
278
|
paddingBottom: 12,
|
|
279
279
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
280
|
-
})),
|
|
281
|
-
...
|
|
282
|
-
)), A = y(() => h.value.width /
|
|
280
|
+
})), Le = y(() => Math.max(
|
|
281
|
+
...L.value.filter((a) => !z.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((o) => o.values.length)))
|
|
282
|
+
)), A = y(() => h.value.width / Le.value), le = y(() => L.value.filter((a) => !z.value.includes(a.id))), f = y(() => {
|
|
283
283
|
let a = [];
|
|
284
|
-
for (let o = 0; o <
|
|
285
|
-
const t = Math.min(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), s = Math.max(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), l = s === t ? t / 4 : t, r = s === t ? s * 2 : s, i =
|
|
286
|
-
const
|
|
284
|
+
for (let o = 0; o < Le.value; o += 1) {
|
|
285
|
+
const t = Math.min(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), s = Math.max(...le.value.flatMap((g) => g.series.map((x) => x.values[o] || 0) || 0)), l = s === t ? t / 4 : t, r = s === t ? s * 2 : s, i = Lt(l, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((g, x) => {
|
|
286
|
+
const ft = i.min < 0 ? g + Math.abs(i.min) : g - Math.abs(i.min), bt = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
287
287
|
return {
|
|
288
|
-
y: h.value.bottom - h.value.height * (
|
|
288
|
+
y: h.value.bottom - h.value.height * (ft / bt),
|
|
289
289
|
x: h.value.left + A.value * o + A.value / 2,
|
|
290
290
|
value: g
|
|
291
291
|
};
|
|
@@ -319,7 +319,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
319
319
|
})).map((a) => ({
|
|
320
320
|
...a,
|
|
321
321
|
series: a.series.map((o) => {
|
|
322
|
-
const t =
|
|
322
|
+
const t = Pt(o.datapoints), s = Ot(o.datapoints), l = St(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${t}`);
|
|
323
323
|
return {
|
|
324
324
|
...o,
|
|
325
325
|
smoothPath: s,
|
|
@@ -328,11 +328,11 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
328
328
|
};
|
|
329
329
|
})
|
|
330
330
|
})));
|
|
331
|
-
function
|
|
332
|
-
return
|
|
331
|
+
function Pe({ value: a, index: o, datapoint: t }) {
|
|
332
|
+
return Xe(
|
|
333
333
|
e.value.style.chart.yAxis.labels.formatters[o] || null,
|
|
334
334
|
a,
|
|
335
|
-
|
|
335
|
+
Ye({
|
|
336
336
|
p: e.value.style.chart.yAxis.labels.prefixes[o] || "",
|
|
337
337
|
v: a,
|
|
338
338
|
s: e.value.style.chart.yAxis.labels.suffixes[o] || "",
|
|
@@ -342,23 +342,23 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
344
|
const k = d(null), se = d(null), ne = d(!1), ie = d("");
|
|
345
|
-
function
|
|
345
|
+
function X({ shape: a, serie: o, S: t }) {
|
|
346
346
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: a }, seriesIndex: t }), k.value = null, ne.value = null;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, shape: a }, seriesIndex: r }), se.value = { serie: t, relativeIndex: s, seriesIndex: l, series:
|
|
348
|
+
function Y({ shape: a, serieName: o, serie: t, relativeIndex: s, seriesIndex: l, S: r }) {
|
|
349
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, shape: a }, seriesIndex: r }), se.value = { serie: t, relativeIndex: s, seriesIndex: l, series: L.value, scales: f.value }, ne.value = !0, k.value = t.id;
|
|
350
350
|
let i = "";
|
|
351
351
|
const T = e.value.style.chart.tooltip.customFormat;
|
|
352
|
-
|
|
352
|
+
Ge(T) && Bt(() => T({
|
|
353
353
|
serie: t,
|
|
354
354
|
seriesIndex: t.seriesIndex,
|
|
355
|
-
series:
|
|
355
|
+
series: L.value,
|
|
356
356
|
config: e.value,
|
|
357
357
|
scales: f.value
|
|
358
358
|
})) ? ie.value = T({
|
|
359
359
|
serie: t,
|
|
360
360
|
seriesIndex: t.seriesIndex,
|
|
361
|
-
series:
|
|
361
|
+
series: L.value,
|
|
362
362
|
config: e.value,
|
|
363
363
|
scales: f.value
|
|
364
364
|
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o ? o + " - " : ""}${t.name}</div>`, f.value.map((g) => g.name).forEach((g, x) => {
|
|
@@ -366,10 +366,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
366
366
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
367
367
|
<span>${g}: </span>
|
|
368
368
|
<span>
|
|
369
|
-
${
|
|
369
|
+
${Xe(
|
|
370
370
|
e.value.style.chart.yAxis.labels.formatters[x] || null,
|
|
371
371
|
t.datapoints[x].value,
|
|
372
|
-
|
|
372
|
+
Ye({
|
|
373
373
|
p: e.value.style.chart.yAxis.labels.prefixes[x] || "",
|
|
374
374
|
v: t.datapoints[x].value,
|
|
375
375
|
s: e.value.style.chart.yAxis.labels.suffixes[x] || "",
|
|
@@ -382,10 +382,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
382
382
|
`, e.value.style.chart.comments.showInTooltip && t.datapoints[x].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.datapoints[x].comment}</div>`);
|
|
383
383
|
}), ie.value = `<div>${i}</div>`);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
385
|
+
function ht() {
|
|
386
|
+
return L.value;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
388
|
+
const E = y(() => {
|
|
389
389
|
const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o = oe.value.flatMap((l, r) => l.series.map((i) => [l.name].concat([i.name]).concat(i.values))), t = {
|
|
390
390
|
th: {
|
|
391
391
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -405,41 +405,41 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
405
405
|
config: t,
|
|
406
406
|
colNames: s
|
|
407
407
|
};
|
|
408
|
-
}),
|
|
409
|
-
head:
|
|
410
|
-
body:
|
|
408
|
+
}), Oe = y(() => oe.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
409
|
+
head: E.value.head,
|
|
410
|
+
body: E.value.body
|
|
411
411
|
});
|
|
412
|
-
function
|
|
413
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t =
|
|
414
|
-
a ? a(r) :
|
|
412
|
+
function Se(a = null) {
|
|
413
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = Oe.value.head, s = Oe.value.body, l = o.concat([t]).concat(s), r = Et(l);
|
|
414
|
+
a ? a(r) : Ht({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
function
|
|
418
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...a, shape: o }, seriesIndex: t }),
|
|
416
|
+
const Re = Ze;
|
|
417
|
+
function q({ serie: a, shape: o, S: t }) {
|
|
418
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...a, shape: o }, seriesIndex: t }), Re("selectDatapoint", a);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
|
|
420
|
+
function De(a) {
|
|
421
|
+
Re("selectLegend", {
|
|
422
422
|
...a,
|
|
423
423
|
isSegregated: !a.isSegregated,
|
|
424
424
|
opacity: a.isSegregated ? 1 : 0.5
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
function De() {
|
|
428
|
-
p.value.showTable = !p.value.showTable;
|
|
429
|
-
}
|
|
430
427
|
function Ee() {
|
|
431
|
-
|
|
428
|
+
m.value.showTable = !m.value.showTable;
|
|
432
429
|
}
|
|
433
430
|
function He() {
|
|
434
|
-
|
|
431
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
432
|
+
}
|
|
433
|
+
function Be() {
|
|
434
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
435
435
|
}
|
|
436
|
-
const
|
|
436
|
+
const J = d(!1);
|
|
437
437
|
function ue() {
|
|
438
|
-
|
|
438
|
+
J.value = !J.value;
|
|
439
439
|
}
|
|
440
|
-
async function
|
|
440
|
+
async function pt({ scale: a = 2 } = {}) {
|
|
441
441
|
if (!F.value) return;
|
|
442
|
-
const { width: o, height: t } = F.value.getBoundingClientRect(), s = o / t, { imageUri: l, base64: r } = await
|
|
442
|
+
const { width: o, height: t } = F.value.getBoundingClientRect(), s = o / t, { imageUri: l, base64: r } = await Qt({ domElement: F.value, base64: !0, img: !0, scale: a });
|
|
443
443
|
return {
|
|
444
444
|
imageUri: l,
|
|
445
445
|
base64: r,
|
|
@@ -449,11 +449,11 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
449
449
|
aspectRatio: s
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
|
-
const
|
|
453
|
-
return
|
|
454
|
-
timeLabelsEls:
|
|
455
|
-
timeLabels:
|
|
456
|
-
slicer:
|
|
452
|
+
const mt = d({ start: 0, end: 1 }), yt = y(() => f.value.map((a) => a.name));
|
|
453
|
+
return Yt({
|
|
454
|
+
timeLabelsEls: Z,
|
|
455
|
+
timeLabels: yt,
|
|
456
|
+
slicer: mt,
|
|
457
457
|
configRef: e,
|
|
458
458
|
rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
|
|
459
459
|
autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
|
|
@@ -462,48 +462,48 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
462
462
|
height: Fe,
|
|
463
463
|
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
464
464
|
rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
465
|
-
}),
|
|
466
|
-
getData:
|
|
467
|
-
getImage:
|
|
468
|
-
generateCsv:
|
|
469
|
-
generatePdf:
|
|
465
|
+
}), Qe({
|
|
466
|
+
getData: ht,
|
|
467
|
+
getImage: pt,
|
|
468
|
+
generateCsv: Se,
|
|
469
|
+
generatePdf: _e,
|
|
470
470
|
generateImage: Me,
|
|
471
|
-
toggleTable:
|
|
472
|
-
toggleLabels:
|
|
473
|
-
toggleTooltip:
|
|
471
|
+
toggleTable: Ee,
|
|
472
|
+
toggleLabels: He,
|
|
473
|
+
toggleTooltip: Be,
|
|
474
474
|
toggleAnnotator: ue,
|
|
475
|
-
toggleFullscreen:
|
|
475
|
+
toggleFullscreen: xe
|
|
476
476
|
}), (a, o) => (n(), u("div", {
|
|
477
477
|
ref_key: "pcpChart",
|
|
478
478
|
ref: F,
|
|
479
|
-
class:
|
|
480
|
-
style:
|
|
481
|
-
id: `pcp_${
|
|
482
|
-
onMouseenter: o[2] || (o[2] = () => v(
|
|
483
|
-
onMouseleave: o[3] || (o[3] = () => v(
|
|
479
|
+
class: j(`vue-ui-pcp ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
480
|
+
style: _(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
481
|
+
id: `pcp_${O.value}`,
|
|
482
|
+
onMouseenter: o[2] || (o[2] = () => v(ke)(!0)),
|
|
483
|
+
onMouseleave: o[3] || (o[3] = () => v(ke)(!1))
|
|
484
484
|
}, [
|
|
485
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
485
|
+
e.value.userOptions.buttons.annotator ? (n(), M(v(lt), {
|
|
486
486
|
key: 0,
|
|
487
|
-
svgRef: v(
|
|
487
|
+
svgRef: v(Ae),
|
|
488
488
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
489
489
|
color: e.value.style.chart.color,
|
|
490
|
-
active:
|
|
490
|
+
active: J.value,
|
|
491
491
|
onClose: ue
|
|
492
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
493
|
-
|
|
492
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
493
|
+
ut.value ? (n(), u("div", {
|
|
494
494
|
key: 1,
|
|
495
495
|
ref_key: "noTitle",
|
|
496
496
|
ref: me,
|
|
497
497
|
class: "vue-data-ui-no-title-space",
|
|
498
498
|
style: "height:36px; width: 100%;background:transparent"
|
|
499
|
-
}, null, 512)) :
|
|
499
|
+
}, null, 512)) : p("", !0),
|
|
500
500
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
501
501
|
key: 2,
|
|
502
502
|
ref_key: "chartTitle",
|
|
503
503
|
ref: de,
|
|
504
504
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
505
505
|
}, [
|
|
506
|
-
(n(),
|
|
506
|
+
(n(), M(qt, {
|
|
507
507
|
key: `title_${ye.value}`,
|
|
508
508
|
config: {
|
|
509
509
|
title: {
|
|
@@ -516,15 +516,18 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
}, null, 8, ["config"]))
|
|
519
|
-
], 512)) :
|
|
520
|
-
|
|
519
|
+
], 512)) : p("", !0),
|
|
520
|
+
P("div", {
|
|
521
|
+
id: `legend-top-${O.value}`
|
|
522
|
+
}, null, 8, ta),
|
|
523
|
+
e.value.userOptions.show && G.value && (v(we) || v(te)) ? (n(), M(v(st), {
|
|
521
524
|
ref: "details",
|
|
522
525
|
key: `user_options_${ve.value}`,
|
|
523
526
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
524
527
|
color: e.value.style.chart.color,
|
|
525
|
-
isPrinting: v(
|
|
526
|
-
isImaging: v(
|
|
527
|
-
uid:
|
|
528
|
+
isPrinting: v(Te),
|
|
529
|
+
isImaging: v(ze),
|
|
530
|
+
uid: O.value,
|
|
528
531
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
529
532
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
530
533
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -532,31 +535,31 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
532
535
|
hasTable: e.value.userOptions.buttons.table,
|
|
533
536
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
534
537
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
535
|
-
isFullscreen:
|
|
536
|
-
isTooltip:
|
|
538
|
+
isFullscreen: R.value,
|
|
539
|
+
isTooltip: m.value.showTooltip,
|
|
537
540
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
538
541
|
chartElement: F.value,
|
|
539
542
|
position: e.value.userOptions.position,
|
|
540
543
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
541
|
-
isAnnotation:
|
|
544
|
+
isAnnotation: J.value,
|
|
542
545
|
callbacks: e.value.userOptions.callbacks,
|
|
543
546
|
printScale: e.value.userOptions.print.scale,
|
|
544
|
-
onToggleFullscreen:
|
|
545
|
-
onGeneratePdf: v(
|
|
546
|
-
onGenerateCsv:
|
|
547
|
+
onToggleFullscreen: xe,
|
|
548
|
+
onGeneratePdf: v(_e),
|
|
549
|
+
onGenerateCsv: Se,
|
|
547
550
|
onGenerateImage: v(Me),
|
|
548
|
-
onToggleTable:
|
|
549
|
-
onToggleLabels:
|
|
550
|
-
onToggleTooltip:
|
|
551
|
+
onToggleTable: Ee,
|
|
552
|
+
onToggleLabels: He,
|
|
553
|
+
onToggleTooltip: Be,
|
|
551
554
|
onToggleAnnotator: ue,
|
|
552
|
-
style:
|
|
553
|
-
visibility: v(
|
|
555
|
+
style: _({
|
|
556
|
+
visibility: v(we) ? v(te) ? "visible" : "hidden" : "visible"
|
|
554
557
|
})
|
|
555
|
-
},
|
|
558
|
+
}, At({ _: 2 }, [
|
|
556
559
|
a.$slots.menuIcon ? {
|
|
557
560
|
name: "menuIcon",
|
|
558
561
|
fn: w(({ isOpen: t, color: s }) => [
|
|
559
|
-
b(a.$slots, "menuIcon",
|
|
562
|
+
b(a.$slots, "menuIcon", B(W({ isOpen: t, color: s })), void 0, !0)
|
|
560
563
|
]),
|
|
561
564
|
key: "0"
|
|
562
565
|
} : void 0,
|
|
@@ -598,27 +601,27 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
598
601
|
a.$slots.optionFullscreen ? {
|
|
599
602
|
name: "optionFullscreen",
|
|
600
603
|
fn: w(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
601
|
-
b(a.$slots, "optionFullscreen",
|
|
604
|
+
b(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
602
605
|
]),
|
|
603
606
|
key: "6"
|
|
604
607
|
} : void 0,
|
|
605
608
|
a.$slots.optionAnnotator ? {
|
|
606
609
|
name: "optionAnnotator",
|
|
607
610
|
fn: w(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
608
|
-
b(a.$slots, "optionAnnotator",
|
|
611
|
+
b(a.$slots, "optionAnnotator", B(W({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
609
612
|
]),
|
|
610
613
|
key: "7"
|
|
611
614
|
} : void 0
|
|
612
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
615
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
613
616
|
(n(), u("svg", {
|
|
614
617
|
ref_key: "svgRef",
|
|
615
|
-
ref:
|
|
616
|
-
xmlns: v(
|
|
617
|
-
class:
|
|
618
|
+
ref: Ae,
|
|
619
|
+
xmlns: v(Rt),
|
|
620
|
+
class: j({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
|
|
618
621
|
viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
|
|
619
|
-
style:
|
|
622
|
+
style: _(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
620
623
|
}, [
|
|
621
|
-
|
|
624
|
+
Ue(v(at)),
|
|
622
625
|
a.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
623
626
|
key: 0,
|
|
624
627
|
x: h.value.left,
|
|
@@ -630,16 +633,16 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
630
633
|
}
|
|
631
634
|
}, [
|
|
632
635
|
b(a.$slots, "chart-background", {}, void 0, !0)
|
|
633
|
-
], 8,
|
|
634
|
-
(n(!0), u(C, null, N(f.value, (t, s) => (n(), u("g",
|
|
635
|
-
|
|
636
|
+
], 8, la)) : p("", !0),
|
|
637
|
+
(n(!0), u(C, null, N(f.value, (t, s) => (n(), u("g", oa, [
|
|
638
|
+
P("line", {
|
|
636
639
|
x1: h.value.left + A.value * s + A.value / 2,
|
|
637
640
|
x2: h.value.left + A.value * s + A.value / 2,
|
|
638
641
|
y1: h.value.top,
|
|
639
642
|
y2: h.value.bottom,
|
|
640
643
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
641
644
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
642
|
-
}, null, 8,
|
|
645
|
+
}, null, 8, sa),
|
|
643
646
|
e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(C, { key: 0 }, [
|
|
644
647
|
(n(!0), u(C, null, N(t.ticks, (l) => (n(), u("line", {
|
|
645
648
|
x1: l.x,
|
|
@@ -648,9 +651,9 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
648
651
|
y2: l.y,
|
|
649
652
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
650
653
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
651
|
-
style:
|
|
652
|
-
}, null, 12,
|
|
653
|
-
v(
|
|
654
|
+
style: _(`opacity:${k.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
655
|
+
}, null, 12, na))), 256)),
|
|
656
|
+
v(S) ? p("", !0) : (n(), u("g", ia, [
|
|
654
657
|
(n(!0), u(C, null, N(t.ticks, (l) => (n(), u("text", {
|
|
655
658
|
x: l.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
656
659
|
y: l.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
@@ -658,15 +661,15 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
658
661
|
"text-anchor": "end",
|
|
659
662
|
"font-size": c.value.ticksFontSize,
|
|
660
663
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
661
|
-
style:
|
|
662
|
-
},
|
|
664
|
+
style: _(`opacity:${k.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
665
|
+
}, U(Pe({ value: l.value, index: s, datapoint: l })), 13, ua))), 256))
|
|
663
666
|
]))
|
|
664
|
-
], 64)) :
|
|
667
|
+
], 64)) : p("", !0)
|
|
665
668
|
]))), 256)),
|
|
666
669
|
e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
|
|
667
670
|
key: 1,
|
|
668
671
|
ref_key: "xAxisLabels",
|
|
669
|
-
ref:
|
|
672
|
+
ref: Z
|
|
670
673
|
}, [
|
|
671
674
|
(n(!0), u(C, null, N(f.value, (t, s) => (n(), u(C, null, [
|
|
672
675
|
String(t.name).includes(`
|
|
@@ -677,36 +680,36 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
677
680
|
"font-size": c.value.axisNameFontSize,
|
|
678
681
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
679
682
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
680
|
-
transform: `translate(${h.value.left + A.value * s + A.value / 2}, ${
|
|
681
|
-
innerHTML: v(
|
|
683
|
+
transform: `translate(${h.value.left + A.value * s + A.value / 2}, ${V.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
684
|
+
innerHTML: v(Dt)({
|
|
682
685
|
content: String(t.name),
|
|
683
686
|
fontSize: c.value.axisNameFontSize,
|
|
684
687
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
685
688
|
x: 0,
|
|
686
689
|
y: 0
|
|
687
690
|
})
|
|
688
|
-
}, null, 8,
|
|
691
|
+
}, null, 8, ca)) : (n(), u("text", {
|
|
689
692
|
key: 0,
|
|
690
693
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
691
694
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
692
695
|
"font-size": c.value.axisNameFontSize,
|
|
693
696
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
694
697
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
695
|
-
transform: `translate(${h.value.left + A.value * s + A.value / 2}, ${
|
|
696
|
-
},
|
|
698
|
+
transform: `translate(${h.value.left + A.value * s + A.value / 2}, ${V.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
699
|
+
}, U(t.name), 9, ra))
|
|
697
700
|
], 64))), 256))
|
|
698
|
-
], 512)) :
|
|
701
|
+
], 512)) : p("", !0),
|
|
699
702
|
(n(!0), u(C, null, N(oe.value, (t, s) => (n(), u("g", null, [
|
|
700
703
|
(n(!0), u(C, null, N(t.series, (l, r) => (n(), u("g", null, [
|
|
701
|
-
e.value.style.chart.plots.show ? (n(), u("g",
|
|
702
|
-
(n(!0), u(C, null, N(l.datapoints, (i, T) => (n(),
|
|
704
|
+
e.value.style.chart.plots.show ? (n(), u("g", va, [
|
|
705
|
+
(n(!0), u(C, null, N(l.datapoints, (i, T) => (n(), M(Kt, {
|
|
703
706
|
plot: { x: i.x, y: i.y },
|
|
704
707
|
color: t.color,
|
|
705
708
|
shape: t.shape,
|
|
706
709
|
radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
707
710
|
stroke: e.value.style.chart.backgroundColor,
|
|
708
711
|
strokeWidth: 0.5,
|
|
709
|
-
onMouseenter: (g) =>
|
|
712
|
+
onMouseenter: (g) => Y({
|
|
710
713
|
shape: t.shape,
|
|
711
714
|
serieName: t.name,
|
|
712
715
|
serie: l,
|
|
@@ -714,11 +717,11 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
714
717
|
seriesIndex: l.seriesIndex,
|
|
715
718
|
S: s
|
|
716
719
|
}),
|
|
717
|
-
onMouseleave: (g) =>
|
|
718
|
-
style:
|
|
719
|
-
onClick: () =>
|
|
720
|
+
onMouseleave: (g) => X({ serie: l, shape: t.shape, S: s }),
|
|
721
|
+
style: _(`opacity:${k.value ? k.value === l.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
722
|
+
onClick: () => q({ serie: l, shape: t.shape, S: s })
|
|
720
723
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
|
|
721
|
-
|
|
724
|
+
m.value.showTooltip ? p("", !0) : (n(), u(C, { key: 0 }, [
|
|
722
725
|
k.value && k.value === l.id && l.datapoints.length ? (n(), u("text", {
|
|
723
726
|
key: 0,
|
|
724
727
|
x: l.datapoints[0].x - c.value.ticksFontSize,
|
|
@@ -727,7 +730,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
727
730
|
"font-size": c.value.ticksFontSize,
|
|
728
731
|
fill: t.color,
|
|
729
732
|
"font-weight": "bold"
|
|
730
|
-
},
|
|
733
|
+
}, U(l.name), 9, da)) : p("", !0)
|
|
731
734
|
], 64)),
|
|
732
735
|
e.value.style.chart.comments.show ? (n(!0), u(C, { key: 1 }, N(l.datapoints, (i) => (n(), u("g", null, [
|
|
733
736
|
i.comment ? (n(), u("foreignObject", {
|
|
@@ -738,23 +741,23 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
738
741
|
x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
739
742
|
y: i.y + e.value.style.chart.comments.offsetY + 6
|
|
740
743
|
}, [
|
|
741
|
-
|
|
744
|
+
P("div", pa, [
|
|
742
745
|
b(a.$slots, "plot-comment", {
|
|
743
746
|
plot: { ...i, color: t.color }
|
|
744
747
|
}, void 0, !0)
|
|
745
748
|
])
|
|
746
|
-
], 8,
|
|
747
|
-
]))), 256)) :
|
|
748
|
-
])) :
|
|
749
|
-
!v(
|
|
749
|
+
], 8, ha)) : p("", !0)
|
|
750
|
+
]))), 256)) : p("", !0)
|
|
751
|
+
])) : p("", !0),
|
|
752
|
+
!v(S) && (m.value.dataLabels.show || k.value && k.value === l.id) ? (n(!0), u(C, { key: 1 }, N(l.datapoints, (i, T) => (n(), u("text", {
|
|
750
753
|
x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
751
754
|
y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
752
755
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
753
756
|
"text-anchor": "start",
|
|
754
757
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
755
|
-
class:
|
|
758
|
+
class: j({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(S) }),
|
|
756
759
|
"font-size": c.value.datapointFontSize,
|
|
757
|
-
onMouseenter: (g) =>
|
|
760
|
+
onMouseenter: (g) => Y({
|
|
758
761
|
shape: t.shape,
|
|
759
762
|
serieName: t.name,
|
|
760
763
|
serie: l,
|
|
@@ -762,17 +765,17 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
762
765
|
seriesIndex: l.seriesIndex,
|
|
763
766
|
S: s
|
|
764
767
|
}),
|
|
765
|
-
onMouseleave: (g) =>
|
|
766
|
-
onClick: () =>
|
|
767
|
-
style:
|
|
768
|
-
},
|
|
769
|
-
|
|
768
|
+
onMouseleave: (g) => X({ serie: l, shape: t.shape, S: s }),
|
|
769
|
+
onClick: () => q({ serie: l, shape: t.shape, S: s }),
|
|
770
|
+
style: _(`opacity:${k.value ? k.value === l.id ? 1 : 0.2 : 1}`)
|
|
771
|
+
}, U(Pe({ value: i.value, index: T, datapoint: i })), 47, ma))), 256)) : p("", !0),
|
|
772
|
+
P("path", {
|
|
770
773
|
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
771
774
|
stroke: t.color,
|
|
772
775
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
773
776
|
fill: "none",
|
|
774
|
-
class:
|
|
775
|
-
onMouseenter: (i) =>
|
|
777
|
+
class: j({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(S) }),
|
|
778
|
+
onMouseenter: (i) => Y({
|
|
776
779
|
shape: t.shape,
|
|
777
780
|
serieName: t.name,
|
|
778
781
|
serie: l,
|
|
@@ -780,18 +783,18 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
780
783
|
seriesIndex: l.seriesIndex,
|
|
781
784
|
S: s
|
|
782
785
|
}),
|
|
783
|
-
onMouseleave: (i) =>
|
|
784
|
-
onClick: () =>
|
|
785
|
-
style:
|
|
786
|
-
}, null, 46,
|
|
787
|
-
|
|
786
|
+
onMouseleave: (i) => X({ serie: l, shape: t.shape, S: s }),
|
|
787
|
+
onClick: () => q({ serie: l, shape: t.shape, S: s }),
|
|
788
|
+
style: _(`opacity:${k.value ? k.value === l.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${l.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? l.pathLength : 0}`)
|
|
789
|
+
}, null, 46, ya),
|
|
790
|
+
m.value.showTooltip ? (n(), u("path", {
|
|
788
791
|
key: 2,
|
|
789
792
|
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
790
793
|
stroke: "transparent",
|
|
791
794
|
"stroke-width": 12,
|
|
792
795
|
fill: "none",
|
|
793
|
-
class:
|
|
794
|
-
onMouseenter: (i) =>
|
|
796
|
+
class: j({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(S) }),
|
|
797
|
+
onMouseenter: (i) => Y({
|
|
795
798
|
shape: t.shape,
|
|
796
799
|
serieName: t.name,
|
|
797
800
|
serie: l,
|
|
@@ -799,53 +802,61 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
799
802
|
seriesIndex: l.seriesIndex,
|
|
800
803
|
S: s
|
|
801
804
|
}),
|
|
802
|
-
onMouseleave: (i) =>
|
|
803
|
-
onClick: () =>
|
|
805
|
+
onMouseleave: (i) => X({ serie: l, shape: t.shape, S: s }),
|
|
806
|
+
onClick: () => q({ serie: l, shape: t.shape, S: s }),
|
|
804
807
|
style: { opacity: "0" }
|
|
805
|
-
}, null, 42,
|
|
808
|
+
}, null, 42, fa)) : p("", !0)
|
|
806
809
|
]))), 256))
|
|
807
810
|
]))), 256)),
|
|
808
811
|
b(a.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
809
|
-
], 14,
|
|
810
|
-
a.$slots.watermark ? (n(), u("div",
|
|
811
|
-
b(a.$slots, "watermark",
|
|
812
|
-
])) :
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
812
|
+
], 14, aa)),
|
|
813
|
+
a.$slots.watermark ? (n(), u("div", ba, [
|
|
814
|
+
b(a.$slots, "watermark", B(W({ isPrinting: v(Te) || v(ze) })), void 0, !0)
|
|
815
|
+
])) : p("", !0),
|
|
816
|
+
P("div", {
|
|
817
|
+
id: `legend-bottom-${O.value}`
|
|
818
|
+
}, null, 8, ga),
|
|
819
|
+
ge.value ? (n(), M(Ct, {
|
|
820
|
+
key: 5,
|
|
821
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
816
822
|
}, [
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
823
|
+
P("div", {
|
|
824
|
+
ref_key: "chartLegend",
|
|
825
|
+
ref: he
|
|
826
|
+
}, [
|
|
827
|
+
e.value.style.chart.legend.show && G.value ? (n(), M(Jt, {
|
|
828
|
+
key: `legend_${fe.value}`,
|
|
829
|
+
legendSet: vt.value,
|
|
830
|
+
config: dt.value,
|
|
831
|
+
onClickMarker: o[0] || (o[0] = ({ legend: t }) => {
|
|
832
|
+
Ie(t.id), De(t);
|
|
833
|
+
})
|
|
834
|
+
}, {
|
|
835
|
+
item: w(({ legend: t, index: s }) => [
|
|
836
|
+
P("div", {
|
|
837
|
+
onClick: (l) => {
|
|
838
|
+
t.segregate(), De(t);
|
|
839
|
+
},
|
|
840
|
+
style: _(`opacity:${z.value.includes(t.id) ? 0.5 : 1}`)
|
|
841
|
+
}, U(t.name), 13, xa)
|
|
842
|
+
]),
|
|
843
|
+
_: 1
|
|
844
|
+
}, 8, ["legendSet", "config"])) : b(a.$slots, "legend", {
|
|
845
|
+
key: 1,
|
|
846
|
+
legend: L.value
|
|
847
|
+
}, void 0, !0)
|
|
848
|
+
], 512)
|
|
849
|
+
], 8, ["to"])) : p("", !0),
|
|
839
850
|
a.$slots.source ? (n(), u("div", {
|
|
840
|
-
key:
|
|
851
|
+
key: 6,
|
|
841
852
|
ref_key: "source",
|
|
842
853
|
ref: pe,
|
|
843
854
|
dir: "auto"
|
|
844
855
|
}, [
|
|
845
856
|
b(a.$slots, "source", {}, void 0, !0)
|
|
846
|
-
], 512)) :
|
|
847
|
-
|
|
848
|
-
show:
|
|
857
|
+
], 512)) : p("", !0),
|
|
858
|
+
Ue(v(ot), {
|
|
859
|
+
show: m.value.showTooltip && ne.value,
|
|
849
860
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
850
861
|
color: e.value.style.chart.tooltip.color,
|
|
851
862
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -857,24 +868,24 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
857
868
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
858
869
|
parent: F.value,
|
|
859
870
|
content: ie.value,
|
|
860
|
-
isFullscreen:
|
|
861
|
-
isCustom: v(
|
|
871
|
+
isFullscreen: R.value,
|
|
872
|
+
isCustom: v(Ge)(e.value.style.chart.tooltip.customFormat),
|
|
862
873
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
863
874
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
864
875
|
}, {
|
|
865
876
|
"tooltip-before": w(() => [
|
|
866
|
-
b(a.$slots, "tooltip-before",
|
|
877
|
+
b(a.$slots, "tooltip-before", B(W({ ...se.value })), void 0, !0)
|
|
867
878
|
]),
|
|
868
879
|
"tooltip-after": w(() => [
|
|
869
|
-
b(a.$slots, "tooltip-after",
|
|
880
|
+
b(a.$slots, "tooltip-after", B(W({ ...se.value })), void 0, !0)
|
|
870
881
|
]),
|
|
871
882
|
_: 3
|
|
872
883
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
873
|
-
|
|
874
|
-
key:
|
|
884
|
+
G.value ? (n(), M(v(et), {
|
|
885
|
+
key: 7,
|
|
875
886
|
hideDetails: "",
|
|
876
887
|
config: {
|
|
877
|
-
open:
|
|
888
|
+
open: m.value.showTable,
|
|
878
889
|
maxHeight: 1e4,
|
|
879
890
|
body: {
|
|
880
891
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -887,30 +898,30 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], ea = ["x", "y", "width", "height"]
|
|
|
887
898
|
}
|
|
888
899
|
}, {
|
|
889
900
|
content: w(() => [
|
|
890
|
-
(n(),
|
|
901
|
+
(n(), M(v(tt), {
|
|
891
902
|
key: `table_${be.value}`,
|
|
892
|
-
colNames:
|
|
893
|
-
head:
|
|
894
|
-
body:
|
|
895
|
-
config:
|
|
903
|
+
colNames: E.value.colNames,
|
|
904
|
+
head: E.value.head,
|
|
905
|
+
body: E.value.body,
|
|
906
|
+
config: E.value.config,
|
|
896
907
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
897
|
-
onClose: o[1] || (o[1] = (t) =>
|
|
908
|
+
onClose: o[1] || (o[1] = (t) => m.value.showTable = !1)
|
|
898
909
|
}, {
|
|
899
910
|
th: w(({ th: t }) => [
|
|
900
|
-
|
|
911
|
+
P("div", { innerHTML: t }, null, 8, ka)
|
|
901
912
|
]),
|
|
902
913
|
td: w(({ td: t }) => [
|
|
903
|
-
|
|
914
|
+
$t(U(t), 1)
|
|
904
915
|
]),
|
|
905
916
|
_: 1
|
|
906
917
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
907
918
|
]),
|
|
908
919
|
_: 1
|
|
909
|
-
}, 8, ["config"])) :
|
|
910
|
-
v(
|
|
911
|
-
], 46,
|
|
920
|
+
}, 8, ["config"])) : p("", !0),
|
|
921
|
+
v(S) ? (n(), M(jt, { key: 8 })) : p("", !0)
|
|
922
|
+
], 46, ea));
|
|
912
923
|
}
|
|
913
|
-
},
|
|
924
|
+
}, Ra = /* @__PURE__ */ Zt(wa, [["__scopeId", "data-v-cf83d8cc"]]);
|
|
914
925
|
export {
|
|
915
|
-
|
|
926
|
+
Ra as default
|
|
916
927
|
};
|