vue-data-ui 3.1.1 → 3.1.2
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-xQM7mBzd.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-B2BQC0-h.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DLesaZpW.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-BKvJvFtX.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-BAf4Obr9.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-8_V5egWW.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cq4fHmA0.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-Cv_ypT0N.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B6OvfyHH.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Cjca5zta.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-6w3K8gAc.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-BV4Z-NMp.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dz-j6ERs.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-BTGOEC7w.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-CsDlFB0L.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BOu5-Ohz.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-gBDz7xQQ.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-BKQqb9lF.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-aBOhgs4U.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-BzuXiubT.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/{vue-data-ui-B6eM6hF3.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBeWmnvH.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-B5QeV3BK.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-rZFdUsgz.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-CCCuslrT.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DhJf9mvK.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-CGVtDKqZ.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-DLAR3WY8.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BXnSxoXB.js → vue-ui-chestnut-C4B0wEFn.js} +344 -340
- package/dist/{vue-ui-chord-DH_MwAKX.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-Cx_E1R63.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-CEvH1qDS.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-PTozKs3l.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DD7o-CxF.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-CsEtKJJD.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-DfPYl3fu.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-CSTTZHwg.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-C-NUZqIo.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-BwsZnU6T.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-D9MUneq0.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-Dnzs9wSf.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-CYaQIhy8.js → vue-ui-heatmap-NfRSd6fU.js} +405 -401
- package/dist/{vue-ui-history-plot-DMTFzl-_.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CkPotdff.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-CCE-bDOJ.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-DaN5lroq.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-tM0mmZh8.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-RB4r6beI.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-CxDozHg3.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-CK9nNExU.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-C7tLJYn7.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-MUBAkrHb.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-Br4K80I9.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-NtvT9r_M.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-CPQjAy1g.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-C2M_Cjlh.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-DEru-cWN.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CJKkiKle.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton--twnjS2t.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-CNccdPZ7.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-9BFkkC0u.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-RYAThoA4.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DkPlmgMF.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-6EkCyYRF.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Bl3nj8zd.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B88lA7iy.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-Csj7NhT6.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-yY9NsUUI.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-BWU7CAWP.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dg6U31ex.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-DV4Y9aRL.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-C3fKamV-.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-6VAK9XyF.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-BB-KAkF7.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-GrXkD_3Z.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-Mmz6u4aX.js → vue-ui-vertical-bar-DOCeCCqz.js} +310 -306
- package/dist/{vue-ui-waffle-DzPVRUOA.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-idRCvS5t.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-D6s5Eph8.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-BKTGSvfU.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-BOQyxVRl.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Cjsn5GEE.js +0 -61
- package/dist/vue-ui-dashboard-CvduVgEy.js +0 -325
- package/dist/vue-ui-word-cloud-B2641uNP.js +0 -811
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, computed as d, ref as i, shallowRef 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 { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as O, computed as d, ref as i, shallowRef as nt, toRefs as Zt, onBeforeUnmount as rt, watch as Q, nextTick as $e, watchEffect as ea, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as ae, createBlock as T, createCommentVNode as v, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as f, normalizeProps as le, guardReactiveProps as oe, createVNode as Te, Fragment as m, renderList as k, mergeProps as Pe, toDisplayString as R, resolveDynamicComponent as ta, createTextVNode as Se } from "vue";
|
|
2
|
+
import { u as aa, c as Me, t as la, d as oa, e as sa, p as se, ap as ut, ah as na, U as it, V as ra, W as ua, X as ia, F as ca, I as va, k as ne, i as re, a as ha, b as da, f as Oe, g as ct, o as ya, v as fa, w as ga, K as ma } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as vt, u as pa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ba, B as xa } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ka } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as ht } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as Aa } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as Ca } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as wa } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as $a } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import _a from "./Legend-DLzeDl3-.js";
|
|
12
|
+
import Ta from "./Title-AGmmsSi_.js";
|
|
13
|
+
import { _ as Pa } from "./Shape-Bmpx9GRg.js";
|
|
14
|
+
import Sa from "./img-DvuphHeJ.js";
|
|
15
|
+
import { _ as Ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Oa = ["id"], La = ["xmlns", "viewBox"], za = ["id"], Da = ["stop-color"], Ia = ["stop-color"], Fa = ["stop-color"], Na = ["stop-color"], Ra = ["id"], Ea = ["stop-color"], Ha = ["stop-color"], Xa = ["stop-color"], Ba = ["stop-color"], Ua = { key: 0 }, Va = ["fill", "d"], Wa = ["stroke", "stroke-width", "d"], Ga = ["fill", "d"], Ya = ["stroke", "stroke-dasharray", "stroke-width", "d"], ja = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], qa = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Ka = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Ja = { key: 0 }, Qa = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Za = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], el = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ll = ["x", "y", "text-anchor", "font-size", "fill"], ol = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, sl = ["onClick"], nl = ["innerHTML"], rl = {
|
|
20
20
|
__name: "vue-ui-ridgeline",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,32 +33,32 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
36
|
+
setup(dt, { expose: yt, emit: ft }) {
|
|
37
|
+
const gt = O(() => import("./vue-ui-xy-C2SnbN6w.js")), mt = O(() => import("./BaseIcon-BLg8FaQ2.js")), pt = O(() => import("./vue-ui-accordion-Cv747Pg6.js")), bt = O(() => import("./DataTable-BRN1-1ob.js")), xt = O(() => import("./PenAndPaper-TgGWddgD.js")), kt = O(() => import("./UserOptions-DEFwuQIo.js")), At = O(() => import("./PackageVersion-Jz9FlNXl.js")), Le = O(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_ridgeline: Ct } = aa(), E = dt, U = d({
|
|
38
38
|
get() {
|
|
39
|
-
return Array.isArray(
|
|
39
|
+
return Array.isArray(z.value) && z.value.length > 0;
|
|
40
40
|
},
|
|
41
41
|
set(t) {
|
|
42
42
|
return t;
|
|
43
43
|
}
|
|
44
|
-
}), ue =
|
|
45
|
-
function
|
|
46
|
-
const t =
|
|
44
|
+
}), ue = ft, $ = i(null), ze = i(null), De = i(null), P = nt(null), L = nt(null), Ie = i(null), Fe = i(null), ie = i(0), wt = i(0), ce = i(0), A = i(Me()), Ne = i(0), $t = i(0), Re = i(512), h = i(null), H = i(null), ve = i(null), Ee = i(0), he = i(null), V = i(null), de = i(null);
|
|
45
|
+
function ye() {
|
|
46
|
+
const t = ht({
|
|
47
47
|
userConfig: E.config,
|
|
48
|
-
defaultConfig:
|
|
48
|
+
defaultConfig: Ct
|
|
49
49
|
});
|
|
50
50
|
return t.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
51
|
+
...ht({
|
|
52
|
+
userConfig: da.vue_ui_ridgeline[t.theme] || E.config,
|
|
53
53
|
defaultConfig: t
|
|
54
54
|
}),
|
|
55
|
-
customPalette:
|
|
55
|
+
customPalette: ha[t.theme] || se
|
|
56
56
|
} : t;
|
|
57
57
|
}
|
|
58
|
-
const e = i(
|
|
59
|
-
...
|
|
58
|
+
const e = i(ye()), { loading: W, FINAL_DATASET: z, manualLoading: fe } = ba({
|
|
59
|
+
...Zt(E),
|
|
60
60
|
FINAL_CONFIG: e,
|
|
61
|
-
prepareConfig:
|
|
61
|
+
prepareConfig: ye,
|
|
62
62
|
skeletonDataset: [
|
|
63
63
|
{
|
|
64
64
|
name: "_",
|
|
@@ -151,7 +151,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
],
|
|
154
|
-
skeletonConfig:
|
|
154
|
+
skeletonConfig: la({
|
|
155
155
|
defaultConfig: e.value,
|
|
156
156
|
userConfig: {
|
|
157
157
|
userOptions: { show: !1 },
|
|
@@ -195,139 +195,139 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
195
195
|
e.value.style.chart.areas.rowHeight
|
|
196
196
|
)), {
|
|
197
197
|
userOptionsVisible: Z,
|
|
198
|
-
setUserOptionsVisibility:
|
|
199
|
-
keepUserOptionState:
|
|
200
|
-
} =
|
|
201
|
-
function
|
|
202
|
-
const t =
|
|
198
|
+
setUserOptionsVisibility: He,
|
|
199
|
+
keepUserOptionState: Xe
|
|
200
|
+
} = Ca({ config: e.value }), { svgRef: ge } = wa({ config: e.value.style.chart.title }), me = d(() => !!e.value.debug);
|
|
201
|
+
function Be() {
|
|
202
|
+
const t = z.value || [];
|
|
203
203
|
if (!Array.isArray(t) || t.length === 0) {
|
|
204
|
-
|
|
204
|
+
Oe({ componentName: "VueUiRidgeline", type: "dataset", debug: me.value }), fe.value = !0;
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
if (t.forEach((o, a) => {
|
|
208
|
-
|
|
208
|
+
ct({
|
|
209
209
|
datasetObject: o,
|
|
210
210
|
requiredAttributes: ["name", "datapoints"]
|
|
211
211
|
}).forEach((s) => {
|
|
212
|
-
U.value = !1,
|
|
212
|
+
U.value = !1, Oe({
|
|
213
213
|
componentName: "VueUiRidgeline",
|
|
214
214
|
type: "datasetSerieAttribute",
|
|
215
215
|
property: s,
|
|
216
216
|
index: a,
|
|
217
|
-
debug:
|
|
217
|
+
debug: me.value
|
|
218
218
|
});
|
|
219
219
|
}), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((s, l) => {
|
|
220
|
-
|
|
220
|
+
ct({
|
|
221
221
|
datasetObject: s,
|
|
222
222
|
requiredAttributes: ["name", "values"]
|
|
223
223
|
}).forEach((c) => {
|
|
224
|
-
U.value = !1,
|
|
224
|
+
U.value = !1, Oe({
|
|
225
225
|
componentName: "VueUiRidgeline",
|
|
226
226
|
type: "datasetSerieAttribute",
|
|
227
227
|
property: `datapoint.${c}`,
|
|
228
228
|
index: `${a}-${l}`,
|
|
229
|
-
debug:
|
|
229
|
+
debug: me.value
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
|
-
}),
|
|
233
|
+
}), $t.value = t.length, C.value = Math.min(
|
|
234
234
|
e.value.style.chart.areas.height,
|
|
235
235
|
e.value.style.chart.areas.rowHeight
|
|
236
|
-
),
|
|
237
|
-
const o =
|
|
238
|
-
const { width: a, height: s } =
|
|
236
|
+
), ya(E.dataset) || (fe.value = e.value.loading), e.value.responsive) {
|
|
237
|
+
const o = vt(() => {
|
|
238
|
+
const { width: a, height: s } = pa({
|
|
239
239
|
chart: $.value,
|
|
240
|
-
title: e.value.style.chart.title.text ?
|
|
241
|
-
legend: e.value.style.chart.legend.show ?
|
|
242
|
-
source:
|
|
243
|
-
noTitle:
|
|
240
|
+
title: e.value.style.chart.title.text ? ze.value : null,
|
|
241
|
+
legend: e.value.style.chart.legend.show ? De.value : null,
|
|
242
|
+
source: Ie.value,
|
|
243
|
+
noTitle: Fe.value,
|
|
244
244
|
padding: e.value.style.chart.padding
|
|
245
245
|
});
|
|
246
246
|
requestAnimationFrame(() => {
|
|
247
|
-
|
|
247
|
+
Re.value = a, C.value = t.length ? s / t.length : 0, Ee.value = s - 12;
|
|
248
248
|
});
|
|
249
249
|
});
|
|
250
|
-
P.value && (
|
|
250
|
+
P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect()), P.value = new ResizeObserver(o), L.value = $.value?.parentNode || null, L.value && P.value.observe(L.value);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
P.value && (
|
|
253
|
+
rt(() => {
|
|
254
|
+
P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect());
|
|
255
255
|
});
|
|
256
|
-
const { isPrinting:
|
|
256
|
+
const { isPrinting: Ue, isImaging: Ve, generatePdf: We, generateImage: Ge } = ka({
|
|
257
257
|
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
258
258
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
259
259
|
options: e.value.userOptions.print
|
|
260
|
-
}),
|
|
260
|
+
}), _t = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = d(() => oa(e.value.customPalette)), D = i({
|
|
261
261
|
showTable: e.value.table.show
|
|
262
262
|
});
|
|
263
263
|
Q(
|
|
264
|
-
() =>
|
|
264
|
+
() => z.value,
|
|
265
265
|
async (t) => {
|
|
266
|
-
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await
|
|
266
|
+
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Be(), ie.value += 1, ce.value += 1, D.value.showTable = e.value.table.show);
|
|
267
267
|
},
|
|
268
268
|
{ deep: !0, immediate: !0 }
|
|
269
269
|
), Q(() => E.dataset, (t) => {
|
|
270
|
-
Array.isArray(t) && t.length > 0 && (
|
|
270
|
+
Array.isArray(t) && t.length > 0 && (fe.value = !1);
|
|
271
271
|
}, { deep: !0 }), Q(
|
|
272
272
|
() => W.value,
|
|
273
273
|
async (t) => {
|
|
274
|
-
t || (await
|
|
274
|
+
t || (await $e(), Be());
|
|
275
275
|
},
|
|
276
276
|
{ immediate: !0 }
|
|
277
277
|
), Q(
|
|
278
278
|
() => E.config,
|
|
279
279
|
() => {
|
|
280
|
-
e.value =
|
|
280
|
+
e.value = ye(z.value || null), Z.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), D.value.showTable = e.value.table.show, ie.value += 1, ce.value += 1;
|
|
281
281
|
},
|
|
282
282
|
{ deep: !0 }
|
|
283
283
|
);
|
|
284
|
-
const
|
|
285
|
-
function
|
|
286
|
-
|
|
284
|
+
const pe = d(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
285
|
+
function Ye(t) {
|
|
286
|
+
M.value.includes(t) ? M.value = M.value.filter((o) => o !== t) : M.value.push(t), ue("selectLegend", B.value);
|
|
287
287
|
}
|
|
288
|
-
const
|
|
288
|
+
const S = d(() => U.value ? (z.value || []).map((t) => ({
|
|
289
289
|
...t,
|
|
290
|
-
labelLen:
|
|
291
|
-
uid:
|
|
290
|
+
labelLen: It(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
291
|
+
uid: Me(),
|
|
292
292
|
datapoints: t.datapoints.map((o, a) => {
|
|
293
|
-
const s = o.color ?
|
|
293
|
+
const s = o.color ? sa(o.color) : Tt.value[a] || se[a] || se[a % se.length], l = ut(o.name);
|
|
294
294
|
return { ...o, color: s, id: l };
|
|
295
295
|
})
|
|
296
|
-
})) : []),
|
|
296
|
+
})) : []), je = d(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * pe.value + e.value.style.chart.padding.bottom), g = d(() => {
|
|
297
297
|
const t = e.value.style.chart.padding;
|
|
298
298
|
return {
|
|
299
|
-
width:
|
|
300
|
-
height:
|
|
299
|
+
width: Re.value,
|
|
300
|
+
height: je.value,
|
|
301
301
|
padding: t
|
|
302
302
|
};
|
|
303
|
-
}),
|
|
304
|
-
|
|
303
|
+
}), Pt = d(() => g.value.width), St = d(() => g.value.height), be = i(0), Mt = vt((t) => {
|
|
304
|
+
be.value = t;
|
|
305
305
|
}, 100);
|
|
306
|
-
|
|
306
|
+
ea((t) => {
|
|
307
307
|
const o = he.value;
|
|
308
308
|
if (!o) return;
|
|
309
309
|
const a = new ResizeObserver((s) => {
|
|
310
|
-
|
|
310
|
+
Mt(s[0].contentRect.height);
|
|
311
311
|
});
|
|
312
312
|
a.observe(o), t(() => a.disconnect());
|
|
313
|
-
}),
|
|
314
|
-
|
|
313
|
+
}), rt(() => {
|
|
314
|
+
be.value = 0;
|
|
315
315
|
});
|
|
316
316
|
const b = d(() => ({
|
|
317
|
-
fullHeight: g.value.height +
|
|
317
|
+
fullHeight: g.value.height + be.value,
|
|
318
318
|
top: g.value.padding.top,
|
|
319
319
|
left: g.value.padding.left,
|
|
320
320
|
right: g.value.width - g.value.padding.right,
|
|
321
321
|
bottom: g.value.height - e.value.style.chart.padding.bottom,
|
|
322
322
|
width: g.value.width - (g.value.padding.left + g.value.padding.right)
|
|
323
|
-
})), G = d(() => Math.max(...
|
|
323
|
+
})), G = d(() => Math.max(...S.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = d(() => Aa({
|
|
324
324
|
values: e.value.style.chart.xAxis.labels.values,
|
|
325
325
|
maxDatapoints: G.value,
|
|
326
326
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
327
327
|
start: 0,
|
|
328
328
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
329
329
|
})), X = d(() => {
|
|
330
|
-
const t = Math.max(...
|
|
330
|
+
const t = Math.max(...S.value.map((l) => l.labelLen)), o = g.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - o) / G.value, s = [];
|
|
331
331
|
for (let l = 0; l < G.value; l += 1)
|
|
332
332
|
s.push({
|
|
333
333
|
selectorX: o + a * l,
|
|
@@ -336,49 +336,49 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
336
336
|
label: e.value.style.chart.xAxis.labels.values[l] ? Y.value[l].text : "",
|
|
337
337
|
index: l,
|
|
338
338
|
width: a,
|
|
339
|
-
height:
|
|
339
|
+
height: je.value
|
|
340
340
|
});
|
|
341
341
|
return s;
|
|
342
342
|
});
|
|
343
|
-
function
|
|
344
|
-
return
|
|
343
|
+
function xe(t) {
|
|
344
|
+
return S.value.map((o) => o.datapoints.map((a) => ({
|
|
345
345
|
dp: a,
|
|
346
346
|
selected: a.values[t.index]
|
|
347
347
|
})));
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Ot(t) {
|
|
350
350
|
h.value = t;
|
|
351
|
-
const o =
|
|
351
|
+
const o = xe(t);
|
|
352
352
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Lt(t) {
|
|
355
355
|
h.value = null;
|
|
356
|
-
const o =
|
|
356
|
+
const o = xe(t);
|
|
357
357
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
const o =
|
|
359
|
+
function zt(t) {
|
|
360
|
+
const o = xe(t);
|
|
361
361
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), ue("selectX", o);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Dt(t, o) {
|
|
364
364
|
return t.length * o / 2 + o;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
const s =
|
|
366
|
+
function qe(t, o, a) {
|
|
367
|
+
const s = Dt(o, a);
|
|
368
368
|
return t + s > b.value.right;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function It(t, o, a = "sans-serif") {
|
|
371
371
|
const l = document.createElement("canvas").getContext("2d"), c = typeof o == "number" ? `${o}px` : o;
|
|
372
372
|
return l.font = `${c} ${a}`, l.measureText(t).width;
|
|
373
373
|
}
|
|
374
374
|
const B = d(() => {
|
|
375
375
|
C.value;
|
|
376
|
-
const t = Math.max(...
|
|
377
|
-
function
|
|
376
|
+
const t = Math.max(...S.value.map((x) => x.labelLen)), o = Math.max(...S.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), a = Math.min(...S.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), s = g.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - s) / G.value, c = Math.abs(Math.min(a, 0)), _ = o + c;
|
|
377
|
+
function at(x) {
|
|
378
378
|
return isNaN(x / _) ? 0 : x / _;
|
|
379
379
|
}
|
|
380
|
-
return
|
|
381
|
-
const
|
|
380
|
+
return S.value.map((x, q) => {
|
|
381
|
+
const lt = b.value.top + C.value * q, F = b.value.top + lt + C.value * pe.value * (1 - at(c));
|
|
382
382
|
return {
|
|
383
383
|
...x,
|
|
384
384
|
label: {
|
|
@@ -386,51 +386,51 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
386
386
|
y: F
|
|
387
387
|
},
|
|
388
388
|
datapoints: x.datapoints.map((K) => {
|
|
389
|
-
const N = K.values.map((J,
|
|
390
|
-
const
|
|
389
|
+
const N = K.values.map((J, jt) => {
|
|
390
|
+
const qt = isNaN(J) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(J) ? 0 : J || 0, Kt = s + l * jt, Jt = b.value.top + lt + C.value * pe.value * (1 - at(qt + c)), Qt = J === Math.max(...K.values);
|
|
391
391
|
return {
|
|
392
|
-
x:
|
|
393
|
-
y:
|
|
392
|
+
x: Kt,
|
|
393
|
+
y: Jt,
|
|
394
394
|
value: J,
|
|
395
|
-
isMaxPoint:
|
|
395
|
+
isMaxPoint: Qt,
|
|
396
396
|
zero: F
|
|
397
397
|
};
|
|
398
|
-
}),
|
|
399
|
-
e.value.style.chart.areas.smooth ?
|
|
398
|
+
}), Vt = `${na(N, F, !1, !1)}`, Wt = `M ${s},${F} ${it(N)} ${N.at(-1).x},${F}`, Gt = `M ${s},${F} ${N.at(-1).x},${F}`, ot = `M ${ra(N)}`, st = `M ${it(N)}`, Yt = ua(
|
|
399
|
+
e.value.style.chart.areas.smooth ? ot : st
|
|
400
400
|
);
|
|
401
401
|
return {
|
|
402
402
|
...K,
|
|
403
|
-
uid:
|
|
403
|
+
uid: Me(),
|
|
404
404
|
plots: N,
|
|
405
|
-
smoothPath:
|
|
406
|
-
straightPath:
|
|
407
|
-
zeroPath:
|
|
408
|
-
pathLength:
|
|
409
|
-
smoothPathRidge:
|
|
410
|
-
straightPathRidge:
|
|
405
|
+
smoothPath: Vt,
|
|
406
|
+
straightPath: Wt,
|
|
407
|
+
zeroPath: Gt,
|
|
408
|
+
pathLength: Yt,
|
|
409
|
+
smoothPathRidge: ot,
|
|
410
|
+
straightPathRidge: st
|
|
411
411
|
};
|
|
412
|
-
}).filter((K) => !
|
|
412
|
+
}).filter((K) => !M.value.includes(K.id))
|
|
413
413
|
};
|
|
414
414
|
});
|
|
415
|
-
}),
|
|
416
|
-
function
|
|
415
|
+
}), M = i([]);
|
|
416
|
+
function Ft(t) {
|
|
417
417
|
const o = /* @__PURE__ */ new Map();
|
|
418
418
|
return t.forEach((a) => {
|
|
419
419
|
a.datapoints.forEach((s, l) => {
|
|
420
|
-
const c =
|
|
420
|
+
const c = ut(s.name);
|
|
421
421
|
o.has(c) || o.set(c, {
|
|
422
422
|
id: c,
|
|
423
423
|
name: s.name,
|
|
424
424
|
color: s.color,
|
|
425
425
|
shape: "circle",
|
|
426
|
-
segregate: () =>
|
|
427
|
-
isSegregated:
|
|
428
|
-
opacity:
|
|
426
|
+
segregate: () => Ye(c),
|
|
427
|
+
isSegregated: M.value.includes(c),
|
|
428
|
+
opacity: M.value.includes(c) ? 0.5 : 1
|
|
429
429
|
});
|
|
430
430
|
});
|
|
431
431
|
}), Array.from(o.values());
|
|
432
432
|
}
|
|
433
|
-
const
|
|
433
|
+
const ke = d(() => Ft(S.value)), Nt = d(() => ({
|
|
434
434
|
cy: "donut-div-legend",
|
|
435
435
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
436
436
|
color: e.value.style.chart.legend.color,
|
|
@@ -438,19 +438,19 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
438
438
|
paddingBottom: 12,
|
|
439
439
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
440
440
|
})), I = i(!1);
|
|
441
|
-
function
|
|
442
|
-
I.value = t,
|
|
441
|
+
function Ke(t) {
|
|
442
|
+
I.value = t, Ne.value += 1;
|
|
443
443
|
}
|
|
444
|
-
const
|
|
445
|
-
function
|
|
446
|
-
ue("selectDatapoint", t), e.value.style.chart.dialog.show && (
|
|
444
|
+
const Je = i({}), Qe = i([]);
|
|
445
|
+
function Rt(t) {
|
|
446
|
+
ue("selectDatapoint", t), e.value.style.chart.dialog.show && (Qe.value = t.datapoints.map((o) => ({
|
|
447
447
|
name: o.name,
|
|
448
448
|
color: o.color,
|
|
449
449
|
type: "line",
|
|
450
450
|
useArea: !0,
|
|
451
451
|
smooth: e.value.style.chart.areas.smooth,
|
|
452
452
|
series: o.values
|
|
453
|
-
})), H.value = t,
|
|
453
|
+
})), H.value = t, Je.value = ma({
|
|
454
454
|
...e.value.style.chart.dialog.xyChart,
|
|
455
455
|
responsive: !0,
|
|
456
456
|
// Overriding
|
|
@@ -482,21 +482,21 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
482
482
|
}
|
|
483
483
|
}), ve.value && ve.value.open());
|
|
484
484
|
}
|
|
485
|
-
const
|
|
486
|
-
function
|
|
487
|
-
|
|
485
|
+
const Ae = i(null);
|
|
486
|
+
function Et(t) {
|
|
487
|
+
Ae.value = t;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
489
|
+
function Ht() {
|
|
490
|
+
Ae.value = null;
|
|
491
491
|
}
|
|
492
492
|
const ee = i(!1);
|
|
493
|
-
function
|
|
493
|
+
function Ce() {
|
|
494
494
|
ee.value = !ee.value;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
497
|
-
|
|
496
|
+
function Ze() {
|
|
497
|
+
D.value.showTable = !D.value.showTable;
|
|
498
498
|
}
|
|
499
|
-
const
|
|
499
|
+
const et = d(() => ({ body: B.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
500
500
|
...s,
|
|
501
501
|
rowName: `${a.name}: ${s.name}`
|
|
502
502
|
}))).map((a) => [
|
|
@@ -528,31 +528,31 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
528
528
|
...Y.value.map((s) => s.text)
|
|
529
529
|
],
|
|
530
530
|
head: t,
|
|
531
|
-
body:
|
|
531
|
+
body: et.value.body,
|
|
532
532
|
config: o
|
|
533
533
|
};
|
|
534
534
|
});
|
|
535
|
-
function
|
|
536
|
-
|
|
535
|
+
function we(t = null) {
|
|
536
|
+
$e(() => {
|
|
537
537
|
const o = [
|
|
538
538
|
[e.value.table.columnNames.series, ...Y.map((l) => [l.text])],
|
|
539
|
-
...
|
|
539
|
+
...et.value.body.map((l, c) => [l[0].name, ...l.slice(1)])
|
|
540
540
|
], a = [
|
|
541
541
|
[e.value.style.chart.title.text],
|
|
542
542
|
[e.value.style.chart.title.subtitle.text]
|
|
543
|
-
].concat(o), s =
|
|
544
|
-
t ? t(s) :
|
|
543
|
+
].concat(o), s = fa(a);
|
|
544
|
+
t ? t(s) : ga({
|
|
545
545
|
csvContent: s,
|
|
546
546
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
547
547
|
});
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Xt() {
|
|
551
551
|
return B.value;
|
|
552
552
|
}
|
|
553
|
-
async function
|
|
553
|
+
async function Bt({ scale: t = 2 } = {}) {
|
|
554
554
|
if (!$.value) return;
|
|
555
|
-
const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: c } = await
|
|
555
|
+
const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: c } = await Sa({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
556
556
|
return {
|
|
557
557
|
imageUri: l,
|
|
558
558
|
base64: c,
|
|
@@ -562,24 +562,24 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
562
562
|
aspectRatio: s
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
const
|
|
566
|
-
|
|
565
|
+
const Ut = d(() => ({ min: 0, max: G.value }));
|
|
566
|
+
$a({
|
|
567
567
|
timeLabelsEls: he,
|
|
568
568
|
timeLabels: Y,
|
|
569
|
-
slicer:
|
|
569
|
+
slicer: Ut,
|
|
570
570
|
configRef: e,
|
|
571
571
|
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
572
572
|
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
573
573
|
isAutoSize: !1,
|
|
574
|
-
width:
|
|
575
|
-
height:
|
|
574
|
+
width: Pt,
|
|
575
|
+
height: St,
|
|
576
576
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
577
577
|
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
578
578
|
});
|
|
579
579
|
const j = d(() => {
|
|
580
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
580
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
581
581
|
return {
|
|
582
|
-
component: t ? Le :
|
|
582
|
+
component: t ? Le : pt,
|
|
583
583
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
584
584
|
props: t ? {
|
|
585
585
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -606,17 +606,21 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
608
|
});
|
|
609
|
-
|
|
609
|
+
Q(() => D.value.showTable, (t) => {
|
|
610
610
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
611
|
-
})
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
611
|
+
});
|
|
612
|
+
function tt() {
|
|
613
|
+
D.value.showTable = !1, de.value && de.value.setTableIconState(!1);
|
|
614
|
+
}
|
|
615
|
+
return yt({
|
|
616
|
+
getData: Xt,
|
|
617
|
+
getImage: Bt,
|
|
618
|
+
generateImage: Ge,
|
|
619
|
+
generatePdf: We,
|
|
620
|
+
generateCsv: we,
|
|
621
|
+
toggleAnnotator: Ce,
|
|
622
|
+
toggleTable: Ze,
|
|
623
|
+
toggleFullscreen: Ke
|
|
620
624
|
}), (t, o) => (n(), r("div", {
|
|
621
625
|
ref_key: "ridgelineChart",
|
|
622
626
|
ref: $,
|
|
@@ -629,32 +633,32 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
629
633
|
background: e.value.style.chart.backgroundColor,
|
|
630
634
|
height: e.value.responsive ? "100%" : void 0
|
|
631
635
|
}),
|
|
632
|
-
onMouseenter: o[
|
|
633
|
-
onMouseleave: o[
|
|
636
|
+
onMouseenter: o[3] || (o[3] = () => u(He)(!0)),
|
|
637
|
+
onMouseleave: o[4] || (o[4] = () => u(He)(!1))
|
|
634
638
|
}, [
|
|
635
|
-
e.value.userOptions.buttons.annotator && u(
|
|
639
|
+
e.value.userOptions.buttons.annotator && u(ge) ? (n(), T(u(xt), {
|
|
636
640
|
key: 0,
|
|
637
641
|
color: e.value.style.chart.color,
|
|
638
642
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
639
643
|
active: ee.value,
|
|
640
|
-
svgRef: u(
|
|
641
|
-
onClose:
|
|
644
|
+
svgRef: u(ge),
|
|
645
|
+
onClose: Ce
|
|
642
646
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
643
647
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
644
|
-
|
|
648
|
+
_t.value ? (n(), r("div", {
|
|
645
649
|
key: 1,
|
|
646
650
|
ref_key: "noTitle",
|
|
647
|
-
ref:
|
|
651
|
+
ref: Fe,
|
|
648
652
|
class: "vue-data-ui-no-title-space",
|
|
649
653
|
style: "height:36px; width: 100%;background:transparent"
|
|
650
654
|
}, null, 512)) : v("", !0),
|
|
651
655
|
e.value.style.chart.title.text ? (n(), r("div", {
|
|
652
656
|
key: 2,
|
|
653
657
|
ref_key: "chartTitle",
|
|
654
|
-
ref:
|
|
658
|
+
ref: ze,
|
|
655
659
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
656
660
|
}, [
|
|
657
|
-
(n(), T(
|
|
661
|
+
(n(), T(Ta, {
|
|
658
662
|
key: `title_${ie.value}`,
|
|
659
663
|
config: {
|
|
660
664
|
title: {
|
|
@@ -668,13 +672,14 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
668
672
|
}
|
|
669
673
|
}, null, 8, ["config"]))
|
|
670
674
|
], 512)) : v("", !0),
|
|
671
|
-
e.value.userOptions.show && U.value && (u(
|
|
672
|
-
|
|
673
|
-
|
|
675
|
+
e.value.userOptions.show && U.value && (u(Xe) || u(Z)) ? (n(), T(u(kt), {
|
|
676
|
+
ref_key: "userOptionsRef",
|
|
677
|
+
ref: de,
|
|
678
|
+
key: `user_option_${Ne.value}`,
|
|
674
679
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
675
680
|
color: e.value.style.chart.color,
|
|
676
|
-
isPrinting: u(
|
|
677
|
-
isImaging: u(
|
|
681
|
+
isPrinting: u(Ue),
|
|
682
|
+
isImaging: u(Ve),
|
|
678
683
|
uid: A.value,
|
|
679
684
|
hasTooltip: !1,
|
|
680
685
|
callbacks: e.value.userOptions.callbacks,
|
|
@@ -692,16 +697,15 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
692
697
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
693
698
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
694
699
|
isAnnotation: ee.value,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}, $e({ _: 2 }, [
|
|
700
|
+
tableDialog: e.value.table.useDialog,
|
|
701
|
+
style: w({ visibility: u(Xe) ? u(Z) ? "visible" : "hidden" : "visible" }),
|
|
702
|
+
onToggleFullscreen: Ke,
|
|
703
|
+
onGeneratePdf: u(We),
|
|
704
|
+
onGenerateCsv: we,
|
|
705
|
+
onGenerateImage: u(Ge),
|
|
706
|
+
onToggleTable: Ze,
|
|
707
|
+
onToggleAnnotator: Ce
|
|
708
|
+
}, _e({ _: 2 }, [
|
|
705
709
|
t.$slots.menuIcon ? {
|
|
706
710
|
name: "menuIcon",
|
|
707
711
|
fn: f(({ isOpen: a, color: s }) => [
|
|
@@ -758,18 +762,18 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
758
762
|
]),
|
|
759
763
|
key: "7"
|
|
760
764
|
} : void 0
|
|
761
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
765
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
762
766
|
(n(), r("svg", {
|
|
763
767
|
ref_key: "svgRef",
|
|
764
|
-
ref:
|
|
765
|
-
xmlns: u(
|
|
768
|
+
ref: ge,
|
|
769
|
+
xmlns: u(ia),
|
|
766
770
|
class: ae({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
767
771
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
768
|
-
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${
|
|
772
|
+
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ee.value}px; width: 100%;` : ""}`)
|
|
769
773
|
}, [
|
|
770
|
-
|
|
774
|
+
Te(u(At)),
|
|
771
775
|
y("defs", null, [
|
|
772
|
-
(n(!0), r(m, null, k(
|
|
776
|
+
(n(!0), r(m, null, k(ke.value, (a, s) => (n(), r("linearGradient", {
|
|
773
777
|
id: `gradient-${a.id}-${A.value}`,
|
|
774
778
|
x1: "50%",
|
|
775
779
|
y1: "0%",
|
|
@@ -780,23 +784,23 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
780
784
|
offset: "0%",
|
|
781
785
|
"stop-color": a.color,
|
|
782
786
|
"stop-opacity": "1"
|
|
783
|
-
}, null, 8,
|
|
787
|
+
}, null, 8, Da),
|
|
784
788
|
y("stop", {
|
|
785
789
|
offset: "30%",
|
|
786
790
|
"stop-color": a.color,
|
|
787
791
|
"stop-opacity": "0.7"
|
|
788
|
-
}, null, 8,
|
|
792
|
+
}, null, 8, Ia),
|
|
789
793
|
y("stop", {
|
|
790
794
|
offset: "70%",
|
|
791
795
|
"stop-color": a.color,
|
|
792
796
|
"stop-opacity": "0.3"
|
|
793
|
-
}, null, 8,
|
|
797
|
+
}, null, 8, Fa),
|
|
794
798
|
y("stop", {
|
|
795
799
|
offset: "100%",
|
|
796
800
|
"stop-color": a.color,
|
|
797
801
|
"stop-opacity": "0.1"
|
|
798
|
-
}, null, 8,
|
|
799
|
-
], 8,
|
|
802
|
+
}, null, 8, Na)
|
|
803
|
+
], 8, za))), 256)),
|
|
800
804
|
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r(m, null, [
|
|
801
805
|
(n(!0), r(m, null, k(a.datapoints, (l, c) => (n(), r("linearGradient", {
|
|
802
806
|
key: `grad${l.id}`,
|
|
@@ -810,23 +814,23 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
810
814
|
offset: "0%",
|
|
811
815
|
"stop-color": l.color,
|
|
812
816
|
"stop-opacity": "1"
|
|
813
|
-
}, null, 8,
|
|
817
|
+
}, null, 8, Ea),
|
|
814
818
|
y("stop", {
|
|
815
819
|
offset: "30%",
|
|
816
820
|
"stop-color": l.color,
|
|
817
821
|
"stop-opacity": "0.7"
|
|
818
|
-
}, null, 8,
|
|
822
|
+
}, null, 8, Ha),
|
|
819
823
|
y("stop", {
|
|
820
824
|
offset: "70%",
|
|
821
825
|
"stop-color": l.color,
|
|
822
826
|
"stop-opacity": "0.3"
|
|
823
|
-
}, null, 8,
|
|
827
|
+
}, null, 8, Xa),
|
|
824
828
|
y("stop", {
|
|
825
829
|
offset: "100%",
|
|
826
830
|
"stop-color": l.color,
|
|
827
831
|
"stop-opacity": "0.1"
|
|
828
|
-
}, null, 8,
|
|
829
|
-
], 8,
|
|
832
|
+
}, null, 8, Ba)
|
|
833
|
+
], 8, Ra))), 128))
|
|
830
834
|
], 64))), 256))
|
|
831
835
|
]),
|
|
832
836
|
(n(!0), r(m, null, k(B.value, (a, s) => (n(), r("g", {
|
|
@@ -835,9 +839,9 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
835
839
|
(n(!0), r(m, null, k(a.datapoints, (l, c) => (n(), r("g", {
|
|
836
840
|
key: l.id
|
|
837
841
|
}, [
|
|
838
|
-
t.$slots.pattern ? (n(), r("g",
|
|
842
|
+
t.$slots.pattern ? (n(), r("g", Ua, [
|
|
839
843
|
y("defs", null, [
|
|
840
|
-
p(t.$slots, "pattern",
|
|
844
|
+
p(t.$slots, "pattern", Pe({ ref_for: !0 }, { datapointIndex: s, seriesIndex: c, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
|
|
841
845
|
])
|
|
842
846
|
])) : v("", !0),
|
|
843
847
|
y("path", {
|
|
@@ -848,7 +852,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
848
852
|
style: w({
|
|
849
853
|
opacity: e.value.style.chart.areas.opacity
|
|
850
854
|
})
|
|
851
|
-
}, null, 12,
|
|
855
|
+
}, null, 12, Va),
|
|
852
856
|
y("path", {
|
|
853
857
|
fill: "none",
|
|
854
858
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -861,7 +865,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
861
865
|
strokeDasharray: l.pathLength,
|
|
862
866
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
863
867
|
})
|
|
864
|
-
}, null, 14,
|
|
868
|
+
}, null, 14, Wa),
|
|
865
869
|
y("path", {
|
|
866
870
|
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${A.value})` : `url(#gradient-single-${A.value}-${l.uid})` : l.color,
|
|
867
871
|
stroke: "none",
|
|
@@ -873,7 +877,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
873
877
|
strokeDasharray: l.pathLength,
|
|
874
878
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
875
879
|
})
|
|
876
|
-
}, null, 14,
|
|
880
|
+
}, null, 14, Ga),
|
|
877
881
|
e.value.style.chart.zeroLine.show ? (n(), r("path", {
|
|
878
882
|
key: 1,
|
|
879
883
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -881,7 +885,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
881
885
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
882
886
|
d: l.zeroPath,
|
|
883
887
|
"stroke-linecap": "round"
|
|
884
|
-
}, null, 8,
|
|
888
|
+
}, null, 8, Ya)) : v("", !0),
|
|
885
889
|
e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(l.plots, (_) => (n(), r(m, null, [
|
|
886
890
|
_.isMaxPoint ? (n(), r("line", {
|
|
887
891
|
key: 0,
|
|
@@ -889,11 +893,11 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
889
893
|
y1: _.y,
|
|
890
894
|
x2: _.x,
|
|
891
895
|
y2: _.zero,
|
|
892
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
896
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ca)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
893
897
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
894
898
|
"stroke-linecap": "round",
|
|
895
899
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
896
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, ja)) : v("", !0)
|
|
897
901
|
], 64))), 256)) : v("", !0),
|
|
898
902
|
l.plots.length === 1 ? (n(), r("circle", {
|
|
899
903
|
key: 3,
|
|
@@ -906,7 +910,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
906
910
|
style: {
|
|
907
911
|
pointerEvents: "none"
|
|
908
912
|
}
|
|
909
|
-
}, null, 8,
|
|
913
|
+
}, null, 8, qa)) : v("", !0)
|
|
910
914
|
]))), 128)),
|
|
911
915
|
y("text", {
|
|
912
916
|
x: a.label.x,
|
|
@@ -918,18 +922,18 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
918
922
|
style: w({
|
|
919
923
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
920
924
|
}),
|
|
921
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
922
|
-
onMouseenter: (l) =>
|
|
923
|
-
onMouseleave:
|
|
924
|
-
onClick: (l) =>
|
|
925
|
-
}, R(a.name), 45,
|
|
925
|
+
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s || H.value && a.uid === H.value.uid) ? "underline" : "",
|
|
926
|
+
onMouseenter: (l) => Et(s),
|
|
927
|
+
onMouseleave: Ht,
|
|
928
|
+
onClick: (l) => Rt(a)
|
|
929
|
+
}, R(a.name), 45, Ka)
|
|
926
930
|
]))), 128)),
|
|
927
931
|
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
928
932
|
key: 0,
|
|
929
933
|
ref_key: "timeLabelsEls",
|
|
930
934
|
ref: he
|
|
931
935
|
}, [
|
|
932
|
-
(n(!0), r(m, null, k(X.value, (a, s) => p(t.$slots, "time-label",
|
|
936
|
+
(n(!0), r(m, null, k(X.value, (a, s) => p(t.$slots, "time-label", Pe({ ref_for: !0 }, {
|
|
933
937
|
show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === X.value.length - 1) || a && h.value && h.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
934
938
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
935
939
|
content: a.label,
|
|
@@ -939,7 +943,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
939
943
|
x: a.selectorX,
|
|
940
944
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
941
945
|
}), () => [
|
|
942
|
-
a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === X.value.length - 1) || a && h.value && h.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g",
|
|
946
|
+
a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === X.value.length - 1) || a && h.value && h.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", Ja, [
|
|
943
947
|
String(a.label).includes(`
|
|
944
948
|
`) ? (n(), r("text", {
|
|
945
949
|
key: 1,
|
|
@@ -952,14 +956,14 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
952
956
|
style: w({
|
|
953
957
|
opacity: h.value ? h.value.index === s ? 1 : 0.2 : 1
|
|
954
958
|
}),
|
|
955
|
-
innerHTML: u(
|
|
959
|
+
innerHTML: u(va)({
|
|
956
960
|
content: String(a.label),
|
|
957
961
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
958
962
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
959
963
|
x: 0,
|
|
960
964
|
y: 0
|
|
961
965
|
})
|
|
962
|
-
}, null, 12,
|
|
966
|
+
}, null, 12, Za)) : (n(), r("text", {
|
|
963
967
|
key: 0,
|
|
964
968
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
965
969
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -970,7 +974,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
970
974
|
style: w({
|
|
971
975
|
opacity: h.value ? h.value.index === s ? 1 : 0.2 : 1
|
|
972
976
|
})
|
|
973
|
-
}, R(a.label), 13,
|
|
977
|
+
}, R(a.label), 13, Qa))
|
|
974
978
|
])) : v("", !0)
|
|
975
979
|
], !0)), 256))
|
|
976
980
|
], 512)) : v("", !0),
|
|
@@ -981,10 +985,10 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
981
985
|
width: a.width < 0 ? 0.1 : a.width,
|
|
982
986
|
height: a.height < 0 ? 0.1 : a.height,
|
|
983
987
|
fill: "transparent",
|
|
984
|
-
onMouseenter: (l) =>
|
|
985
|
-
onMouseleave: (l) =>
|
|
986
|
-
onClick: () =>
|
|
987
|
-
}, null, 40,
|
|
988
|
+
onMouseenter: (l) => Ot(a),
|
|
989
|
+
onMouseleave: (l) => Lt(a),
|
|
990
|
+
onClick: () => zt(a)
|
|
991
|
+
}, null, 40, el))), 256)),
|
|
988
992
|
e.value.style.chart.selector.show && h.value ? (n(), r("line", {
|
|
989
993
|
key: 0,
|
|
990
994
|
x1: h.value.selectorX,
|
|
@@ -996,7 +1000,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
996
1000
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
997
1001
|
"stroke-linecap": "round",
|
|
998
1002
|
style: { pointerEvents: "none" }
|
|
999
|
-
}, null, 8,
|
|
1003
|
+
}, null, 8, tl)) : v("", !0),
|
|
1000
1004
|
h.value ? (n(!0), r(m, { key: 1 }, k(B.value, (a) => (n(), r(m, null, [
|
|
1001
1005
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1002
1006
|
(n(!0), r(m, null, k(s.plots, (l, c) => (n(), r(m, null, [
|
|
@@ -1011,10 +1015,10 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1011
1015
|
style: {
|
|
1012
1016
|
pointerEvents: "none"
|
|
1013
1017
|
}
|
|
1014
|
-
}, null, 8,
|
|
1018
|
+
}, null, 8, al)) : v("", !0),
|
|
1015
1019
|
h.value && h.value.index === c ? (n(), r("text", {
|
|
1016
1020
|
key: 1,
|
|
1017
|
-
x:
|
|
1021
|
+
x: qe(
|
|
1018
1022
|
l.x,
|
|
1019
1023
|
u(ne)(
|
|
1020
1024
|
e.value.style.chart.selector.labels.formatter,
|
|
@@ -1029,7 +1033,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1029
1033
|
e.value.style.chart.selector.labels.fontSize
|
|
1030
1034
|
) ? l.x - e.value.style.chart.selector.labels.fontSize / 2 : l.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1031
1035
|
y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1032
|
-
"text-anchor":
|
|
1036
|
+
"text-anchor": qe(
|
|
1033
1037
|
l.x,
|
|
1034
1038
|
u(ne)(
|
|
1035
1039
|
e.value.style.chart.selector.labels.formatter,
|
|
@@ -1057,39 +1061,39 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1057
1061
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1058
1062
|
r: e.value.style.chart.selector.labels.rounding
|
|
1059
1063
|
})
|
|
1060
|
-
)), 9,
|
|
1064
|
+
)), 9, ll)) : v("", !0)
|
|
1061
1065
|
], 64))), 256))
|
|
1062
1066
|
], 64))), 256))
|
|
1063
1067
|
], 64))), 256)) : v("", !0)
|
|
1064
1068
|
]),
|
|
1065
1069
|
p(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
1066
|
-
], 14,
|
|
1067
|
-
t.$slots.watermark ? (n(), r("div",
|
|
1068
|
-
p(t.$slots, "watermark", le(oe({ isPrinting: u(
|
|
1070
|
+
], 14, La)),
|
|
1071
|
+
t.$slots.watermark ? (n(), r("div", ol, [
|
|
1072
|
+
p(t.$slots, "watermark", le(oe({ isPrinting: u(Ue) || u(Ve) })), void 0, !0)
|
|
1069
1073
|
])) : v("", !0),
|
|
1070
1074
|
y("div", {
|
|
1071
1075
|
ref_key: "chartLegend",
|
|
1072
|
-
ref:
|
|
1076
|
+
ref: De
|
|
1073
1077
|
}, [
|
|
1074
|
-
e.value.style.chart.legend.show ? (n(), T(
|
|
1078
|
+
e.value.style.chart.legend.show ? (n(), T(_a, {
|
|
1075
1079
|
key: `legend_${ce.value}`,
|
|
1076
|
-
legendSet:
|
|
1077
|
-
config:
|
|
1078
|
-
onClickMarker: o[0] || (o[0] = ({ legend: a }) =>
|
|
1079
|
-
},
|
|
1080
|
+
legendSet: ke.value,
|
|
1081
|
+
config: Nt.value,
|
|
1082
|
+
onClickMarker: o[0] || (o[0] = ({ legend: a }) => Ye(a.id))
|
|
1083
|
+
}, _e({
|
|
1080
1084
|
item: f(({ legend: a }) => [
|
|
1081
1085
|
u(W) ? v("", !0) : (n(), r("div", {
|
|
1082
1086
|
key: 0,
|
|
1083
|
-
style: w(`opacity:${
|
|
1087
|
+
style: w(`opacity:${M.value.includes(a.id) ? 0.5 : 1}`),
|
|
1084
1088
|
onClick: (s) => a.segregate()
|
|
1085
|
-
}, R(a.name), 13,
|
|
1089
|
+
}, R(a.name), 13, sl))
|
|
1086
1090
|
]),
|
|
1087
1091
|
_: 2
|
|
1088
1092
|
}, [
|
|
1089
1093
|
t.$slots.pattern ? {
|
|
1090
1094
|
name: "legend-pattern",
|
|
1091
1095
|
fn: f(({ legend: a, index: s }) => [
|
|
1092
|
-
|
|
1096
|
+
Te(Pa, {
|
|
1093
1097
|
shape: a.shape,
|
|
1094
1098
|
radius: 30,
|
|
1095
1099
|
stroke: "none",
|
|
@@ -1100,37 +1104,37 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1100
1104
|
key: "0"
|
|
1101
1105
|
} : void 0
|
|
1102
1106
|
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
1103
|
-
p(t.$slots, "legend", { legend:
|
|
1107
|
+
p(t.$slots, "legend", { legend: ke.value }, void 0, !0)
|
|
1104
1108
|
], 512),
|
|
1105
1109
|
t.$slots.source ? (n(), r("div", {
|
|
1106
1110
|
key: 5,
|
|
1107
1111
|
ref_key: "source",
|
|
1108
|
-
ref:
|
|
1112
|
+
ref: Ie,
|
|
1109
1113
|
dir: "auto"
|
|
1110
1114
|
}, [
|
|
1111
1115
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1112
1116
|
], 512)) : v("", !0),
|
|
1113
|
-
U.value ? (n(), T(
|
|
1117
|
+
U.value ? (n(), T(ta(j.value.component), Pe({ key: 6 }, j.value.props, {
|
|
1114
1118
|
ref_key: "tableUnit",
|
|
1115
1119
|
ref: V,
|
|
1116
|
-
onClose:
|
|
1117
|
-
}),
|
|
1120
|
+
onClose: tt
|
|
1121
|
+
}), _e({
|
|
1118
1122
|
content: f(() => [
|
|
1119
|
-
(n(), T(u(
|
|
1120
|
-
key: `table_${
|
|
1123
|
+
(n(), T(u(bt), {
|
|
1124
|
+
key: `table_${wt.value}`,
|
|
1121
1125
|
colNames: te.value.colNames,
|
|
1122
1126
|
head: te.value.head,
|
|
1123
1127
|
body: te.value.body,
|
|
1124
1128
|
config: te.value.config,
|
|
1125
1129
|
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1126
1130
|
withCloseButton: !e.value.table.useDialog,
|
|
1127
|
-
onClose:
|
|
1131
|
+
onClose: tt
|
|
1128
1132
|
}, {
|
|
1129
1133
|
th: f(({ th: a }) => [
|
|
1130
|
-
y("div", { innerHTML: a }, null, 8,
|
|
1134
|
+
y("div", { innerHTML: a }, null, 8, nl)
|
|
1131
1135
|
]),
|
|
1132
1136
|
td: f(({ td: a }) => [
|
|
1133
|
-
|
|
1137
|
+
Se(R(a.name ? a.name : u(ne)(
|
|
1134
1138
|
e.value.style.chart.selector.labels.formatter,
|
|
1135
1139
|
a,
|
|
1136
1140
|
u(re)({
|
|
@@ -1149,7 +1153,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1149
1153
|
e.value.table.useDialog ? {
|
|
1150
1154
|
name: "title",
|
|
1151
1155
|
fn: f(() => [
|
|
1152
|
-
|
|
1156
|
+
Se(R(j.value.title), 1)
|
|
1153
1157
|
]),
|
|
1154
1158
|
key: "0"
|
|
1155
1159
|
} : void 0,
|
|
@@ -1159,9 +1163,9 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1159
1163
|
y("button", {
|
|
1160
1164
|
tabindex: "0",
|
|
1161
1165
|
class: "vue-ui-user-options-button",
|
|
1162
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
1166
|
+
onClick: o[1] || (o[1] = (a) => we(e.value.userOptions.callbacks.csv))
|
|
1163
1167
|
}, [
|
|
1164
|
-
|
|
1168
|
+
Te(u(mt), {
|
|
1165
1169
|
name: "excel",
|
|
1166
1170
|
stroke: j.value.props.color
|
|
1167
1171
|
}, null, 8, ["stroke"])
|
|
@@ -1174,7 +1178,7 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1174
1178
|
key: 7,
|
|
1175
1179
|
ref_key: "dialog",
|
|
1176
1180
|
ref: ve,
|
|
1177
|
-
onClose: o[
|
|
1181
|
+
onClose: o[2] || (o[2] = (a) => H.value = null),
|
|
1178
1182
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1179
1183
|
color: e.value.style.chart.dialog.color,
|
|
1180
1184
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
@@ -1184,21 +1188,21 @@ const Sa = ["id"], Ma = ["xmlns", "viewBox"], La = ["id"], Oa = ["stop-color"],
|
|
|
1184
1188
|
withPadding: ""
|
|
1185
1189
|
}, {
|
|
1186
1190
|
title: f(() => [
|
|
1187
|
-
|
|
1191
|
+
Se(R(H.value.name), 1)
|
|
1188
1192
|
]),
|
|
1189
1193
|
content: f(() => [
|
|
1190
|
-
H.value ? (n(), T(u(
|
|
1194
|
+
H.value ? (n(), T(u(gt), {
|
|
1191
1195
|
key: 0,
|
|
1192
|
-
config:
|
|
1193
|
-
dataset:
|
|
1196
|
+
config: Je.value,
|
|
1197
|
+
dataset: Qe.value
|
|
1194
1198
|
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
1195
1199
|
]),
|
|
1196
1200
|
_: 1
|
|
1197
1201
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
|
|
1198
|
-
u(W) ? (n(), T(
|
|
1199
|
-
], 46,
|
|
1202
|
+
u(W) ? (n(), T(xa, { key: 8 })) : v("", !0)
|
|
1203
|
+
], 46, Oa));
|
|
1200
1204
|
}
|
|
1201
|
-
},
|
|
1205
|
+
}, Cl = /* @__PURE__ */ Ma(rl, [["__scopeId", "data-v-d929b47a"]]);
|
|
1202
1206
|
export {
|
|
1203
|
-
|
|
1207
|
+
Cl as default
|
|
1204
1208
|
};
|