vue-data-ui 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,1273 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, computed as c, ref as i, shallowRef as ut, toRefs as ua, onBeforeUnmount as it, watch as te, nextTick as _e, watchEffect as ia, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as $, normalizeClass as re, createBlock as T, createCommentVNode as h, renderSlot as f, createElementVNode as y, withCtx as v, normalizeProps as P, guardReactiveProps as O, createSlots as Se, createVNode as Te, Fragment as m, renderList as k, mergeProps as Pe, toDisplayString as B, resolveDynamicComponent as ca, createTextVNode as Oe } from "vue";
|
|
2
|
-
import { c as Me, t as va, e as da, h as ha, p as ue, ak as ct, C as fa, B as vt, z as ga, a9 as ya, X as pa, J as ma, M as ba, a as ie, d as ce, b as xa, f as Le, g as dt, o as ka, P as Aa, Q as Ca, a4 as wa } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as ht, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as _a, a as ft } from "./useNestedProp-CIoDlpHu.js";
|
|
5
|
-
import { u as Sa, B as Ta } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Pa } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
-
import { u as Oa } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as Ma } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
-
import { u as La } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
-
import { u as za } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import { u as Da } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
-
import { t as Ia } from "./themes-DH-N_ePR.js";
|
|
13
|
-
import Ra from "./Legend-D9ZTJKjh.js";
|
|
14
|
-
import Na from "./Title-Bb1VWCtR.js";
|
|
15
|
-
import { _ as Fa } from "./Shape-CNXKB8O0.js";
|
|
16
|
-
import Ea from "./img-BecE5qXd.js";
|
|
17
|
-
import { _ as Ba } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"], Ga = ["stop-color"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["id"], qa = ["stop-color"], Ja = ["stop-color"], Qa = ["stop-color"], Ka = ["stop-color"], Za = { key: 0 }, el = ["fill", "d"], tl = ["stroke", "stroke-width", "d"], al = ["fill", "d"], ll = ["stroke", "stroke-dasharray", "stroke-width", "d"], ol = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], nl = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], rl = { key: 0 }, ul = ["font-size", "fill", "font-weight", "transform", "text-anchor"], il = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], cl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], hl = ["x", "y", "text-anchor", "font-size", "fill"], fl = {
|
|
19
|
-
key: 4,
|
|
20
|
-
class: "vue-data-ui-watermark"
|
|
21
|
-
}, gl = ["onClick"], yl = ["innerHTML"], pl = {
|
|
22
|
-
__name: "vue-ui-ridgeline",
|
|
23
|
-
props: {
|
|
24
|
-
config: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default() {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
dataset: {
|
|
31
|
-
type: Array,
|
|
32
|
-
default() {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
|
-
setup(gt, { expose: yt, emit: pt }) {
|
|
39
|
-
const mt = z(() => import("./vue-ui-xy-BT67faLv.js")), bt = z(() => import("./BaseIcon-DLFL0M4-.js")), xt = z(() => import("./vue-ui-accordion-SSLXLlNz.js")), kt = z(() => import("./DataTable-UCyd_BQI.js")), At = z(() => import("./PenAndPaper-BJSMejV9.js")), Ct = z(() => import("./UserOptions-BqmUW9Kp.js")), wt = z(() => import("./PackageVersion-D_4Hr4S4.js")), ze = z(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_ridgeline: $t } = _a(), H = gt, W = c({
|
|
40
|
-
get() {
|
|
41
|
-
return Array.isArray(I.value) && I.value.length > 0;
|
|
42
|
-
},
|
|
43
|
-
set(t) {
|
|
44
|
-
return t;
|
|
45
|
-
}
|
|
46
|
-
}), ve = pt, _ = i(null), De = i(null), Ie = i(null), M = ut(null), D = ut(null), Re = i(null), Ne = i(null), de = i(0), _t = i(0), he = i(0), A = i(Me()), Fe = i(0), St = i(0), Ee = i(512), g = i(null), X = i(null), fe = i(null), Be = i(0), ge = i(null), Y = i(null), ye = i(null);
|
|
47
|
-
function pe() {
|
|
48
|
-
const t = ft({
|
|
49
|
-
userConfig: H.config,
|
|
50
|
-
defaultConfig: $t
|
|
51
|
-
});
|
|
52
|
-
return t.theme ? {
|
|
53
|
-
...ft({
|
|
54
|
-
userConfig: Ia.vue_ui_ridgeline[t.theme] || H.config,
|
|
55
|
-
defaultConfig: t
|
|
56
|
-
}),
|
|
57
|
-
customPalette: xa[t.theme] || ue
|
|
58
|
-
} : t;
|
|
59
|
-
}
|
|
60
|
-
const e = i(pe()), { loading: j, FINAL_DATASET: I, manualLoading: me } = Sa({
|
|
61
|
-
...ua(H),
|
|
62
|
-
FINAL_CONFIG: e,
|
|
63
|
-
prepareConfig: pe,
|
|
64
|
-
skeletonDataset: [
|
|
65
|
-
{
|
|
66
|
-
name: "_",
|
|
67
|
-
datapoints: [
|
|
68
|
-
{
|
|
69
|
-
name: "__",
|
|
70
|
-
color: "#999999",
|
|
71
|
-
values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: "_",
|
|
75
|
-
color: "#CACACA",
|
|
76
|
-
values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "_",
|
|
82
|
-
datapoints: [
|
|
83
|
-
{
|
|
84
|
-
name: "_",
|
|
85
|
-
color: "#999999",
|
|
86
|
-
values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "_",
|
|
90
|
-
color: "#CACACA",
|
|
91
|
-
values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "_",
|
|
97
|
-
datapoints: [
|
|
98
|
-
{
|
|
99
|
-
name: "_",
|
|
100
|
-
color: "#999999",
|
|
101
|
-
values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "_",
|
|
105
|
-
color: "#CACACA",
|
|
106
|
-
values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "_",
|
|
112
|
-
datapoints: [
|
|
113
|
-
{
|
|
114
|
-
name: "_",
|
|
115
|
-
color: "#999999",
|
|
116
|
-
values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "_",
|
|
120
|
-
color: "#CACACA",
|
|
121
|
-
values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "_",
|
|
127
|
-
datapoints: [
|
|
128
|
-
{
|
|
129
|
-
name: "_",
|
|
130
|
-
color: "#999999",
|
|
131
|
-
values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: "_",
|
|
135
|
-
color: "#CACACA",
|
|
136
|
-
values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: "_",
|
|
142
|
-
datapoints: [
|
|
143
|
-
{
|
|
144
|
-
name: "_",
|
|
145
|
-
color: "#999999",
|
|
146
|
-
values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: "_",
|
|
150
|
-
color: "#CACACA",
|
|
151
|
-
values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
skeletonConfig: va({
|
|
157
|
-
defaultConfig: e.value,
|
|
158
|
-
userConfig: {
|
|
159
|
-
userOptions: { show: !1 },
|
|
160
|
-
table: { show: !1 },
|
|
161
|
-
style: {
|
|
162
|
-
chart: {
|
|
163
|
-
backgroundColor: "#99999930",
|
|
164
|
-
areas: {
|
|
165
|
-
maxPoint: {
|
|
166
|
-
show: !1
|
|
167
|
-
},
|
|
168
|
-
opacity: 0.9,
|
|
169
|
-
stroke: {
|
|
170
|
-
useSerieColor: !0
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
legend: {
|
|
174
|
-
backgroundColor: "transparent"
|
|
175
|
-
},
|
|
176
|
-
padding: {
|
|
177
|
-
right: -24,
|
|
178
|
-
left: 0
|
|
179
|
-
},
|
|
180
|
-
xAxis: {
|
|
181
|
-
labels: {
|
|
182
|
-
values: []
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
yAxis: {
|
|
186
|
-
labels: {
|
|
187
|
-
fontSize: 0
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
zeroLine: { show: !1 }
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
})
|
|
195
|
-
}), C = i(Math.min(
|
|
196
|
-
e.value.style.chart.areas.height,
|
|
197
|
-
e.value.style.chart.areas.rowHeight
|
|
198
|
-
)), {
|
|
199
|
-
userOptionsVisible: ae,
|
|
200
|
-
setUserOptionsVisibility: He,
|
|
201
|
-
keepUserOptionState: Xe
|
|
202
|
-
} = La({ config: e.value }), { svgRef: le } = za({ config: e.value.style.chart.title }), be = c(() => !!e.value.debug);
|
|
203
|
-
function Ue() {
|
|
204
|
-
const t = I.value || [];
|
|
205
|
-
if (!Array.isArray(t) || t.length === 0) {
|
|
206
|
-
Le({ componentName: "VueUiRidgeline", type: "dataset", debug: be.value }), me.value = !0;
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
if (t.forEach((l, a) => {
|
|
210
|
-
dt({
|
|
211
|
-
datasetObject: l,
|
|
212
|
-
requiredAttributes: ["name", "datapoints"]
|
|
213
|
-
}).forEach((s) => {
|
|
214
|
-
W.value = !1, Le({
|
|
215
|
-
componentName: "VueUiRidgeline",
|
|
216
|
-
type: "datasetSerieAttribute",
|
|
217
|
-
property: s,
|
|
218
|
-
index: a,
|
|
219
|
-
debug: be.value
|
|
220
|
-
});
|
|
221
|
-
}), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
|
|
222
|
-
dt({
|
|
223
|
-
datasetObject: s,
|
|
224
|
-
requiredAttributes: ["name", "values"]
|
|
225
|
-
}).forEach((d) => {
|
|
226
|
-
W.value = !1, Le({
|
|
227
|
-
componentName: "VueUiRidgeline",
|
|
228
|
-
type: "datasetSerieAttribute",
|
|
229
|
-
property: `datapoint.${d}`,
|
|
230
|
-
index: `${a}-${o}`,
|
|
231
|
-
debug: be.value
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
}), St.value = t.length, C.value = Math.min(
|
|
236
|
-
e.value.style.chart.areas.height,
|
|
237
|
-
e.value.style.chart.areas.rowHeight
|
|
238
|
-
), ka(H.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
|
-
const l = ht(() => {
|
|
240
|
-
const { width: a, height: s } = $a({
|
|
241
|
-
chart: _.value,
|
|
242
|
-
title: e.value.style.chart.title.text ? De.value : null,
|
|
243
|
-
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
244
|
-
source: Re.value,
|
|
245
|
-
noTitle: Ne.value,
|
|
246
|
-
padding: e.value.style.chart.padding
|
|
247
|
-
});
|
|
248
|
-
requestAnimationFrame(() => {
|
|
249
|
-
Ee.value = a, C.value = t.length ? s / t.length : 0, Be.value = s - 12;
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
M.value && (D.value && M.value.unobserve(D.value), M.value.disconnect()), M.value = new ResizeObserver(l), D.value = _.value?.parentNode || null, D.value && M.value.observe(D.value);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
it(() => {
|
|
256
|
-
M.value && (D.value && M.value.unobserve(D.value), M.value.disconnect());
|
|
257
|
-
});
|
|
258
|
-
const { isPrinting: Ve, isImaging: Ge, generatePdf: We, generateImage: Ye } = Pa({
|
|
259
|
-
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
260
|
-
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
261
|
-
options: e.value.userOptions.print
|
|
262
|
-
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = c(() => da(e.value.customPalette)), R = i({
|
|
263
|
-
showTable: e.value.table.show
|
|
264
|
-
});
|
|
265
|
-
te(
|
|
266
|
-
() => I.value,
|
|
267
|
-
async (t) => {
|
|
268
|
-
Array.isArray(t) && t.length && (ae.value = !e.value.userOptions.showOnChartHover, await _e(), Ue(), de.value += 1, he.value += 1, R.value.showTable = e.value.table.show);
|
|
269
|
-
},
|
|
270
|
-
{ deep: !0, immediate: !0 }
|
|
271
|
-
), te(() => H.dataset, (t) => {
|
|
272
|
-
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
273
|
-
}, { deep: !0 }), te(
|
|
274
|
-
() => j.value,
|
|
275
|
-
async (t) => {
|
|
276
|
-
t || (await _e(), Ue());
|
|
277
|
-
},
|
|
278
|
-
{ immediate: !0 }
|
|
279
|
-
), te(
|
|
280
|
-
() => H.config,
|
|
281
|
-
() => {
|
|
282
|
-
e.value = pe(I.value || null), ae.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), R.value.showTable = e.value.table.show, de.value += 1, he.value += 1;
|
|
283
|
-
},
|
|
284
|
-
{ deep: !0 }
|
|
285
|
-
);
|
|
286
|
-
const xe = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
287
|
-
function oe(t) {
|
|
288
|
-
w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t), ve("selectLegend", V.value);
|
|
289
|
-
}
|
|
290
|
-
function je(t) {
|
|
291
|
-
if (!G.value.length)
|
|
292
|
-
return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
|
|
293
|
-
const l = G.value.find((a) => a.name === t);
|
|
294
|
-
return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
|
|
295
|
-
}
|
|
296
|
-
function Ot(t) {
|
|
297
|
-
const l = je(t);
|
|
298
|
-
l !== null && w.value.includes(l.id) && oe(l.id);
|
|
299
|
-
}
|
|
300
|
-
function Mt(t) {
|
|
301
|
-
const l = je(t);
|
|
302
|
-
l !== null && (w.value.includes(l.id) || oe(l.id));
|
|
303
|
-
}
|
|
304
|
-
const L = c(() => W.value ? (I.value || []).map((t) => ({
|
|
305
|
-
...t,
|
|
306
|
-
labelLen: Et(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
307
|
-
uid: Me(),
|
|
308
|
-
datapoints: t.datapoints.map((l, a) => {
|
|
309
|
-
const s = l.color ? ha(l.color) : Pt.value[a] || ue[a] || ue[a % ue.length], o = ct(l.name);
|
|
310
|
-
return { ...l, color: s, id: o };
|
|
311
|
-
})
|
|
312
|
-
})) : []), qe = c(() => e.value.style.chart.padding.top + C.value * (I.value || []).length + C.value * xe.value + e.value.style.chart.padding.bottom), p = c(() => {
|
|
313
|
-
const t = e.value.style.chart.padding;
|
|
314
|
-
return {
|
|
315
|
-
width: Ee.value,
|
|
316
|
-
height: qe.value,
|
|
317
|
-
padding: t
|
|
318
|
-
};
|
|
319
|
-
}), Lt = c(() => p.value.width), zt = c(() => p.value.height), ke = i(0), Dt = ht((t) => {
|
|
320
|
-
ke.value = t;
|
|
321
|
-
}, 100);
|
|
322
|
-
ia((t) => {
|
|
323
|
-
const l = ge.value;
|
|
324
|
-
if (!l) return;
|
|
325
|
-
const a = new ResizeObserver((s) => {
|
|
326
|
-
Dt(s[0].contentRect.height);
|
|
327
|
-
});
|
|
328
|
-
a.observe(l), t(() => a.disconnect());
|
|
329
|
-
}), it(() => {
|
|
330
|
-
ke.value = 0;
|
|
331
|
-
});
|
|
332
|
-
const b = c(() => ({
|
|
333
|
-
fullHeight: p.value.height + ke.value,
|
|
334
|
-
top: p.value.padding.top,
|
|
335
|
-
left: p.value.padding.left,
|
|
336
|
-
right: p.value.width - p.value.padding.right,
|
|
337
|
-
bottom: p.value.height - e.value.style.chart.padding.bottom,
|
|
338
|
-
width: p.value.width - (p.value.padding.left + p.value.padding.right)
|
|
339
|
-
})), q = c(() => Math.max(...L.value.flatMap((t) => t.datapoints.map((l) => l.values.length)))), J = c(() => Ma({
|
|
340
|
-
values: e.value.style.chart.xAxis.labels.values,
|
|
341
|
-
maxDatapoints: q.value,
|
|
342
|
-
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
343
|
-
start: 0,
|
|
344
|
-
end: e.value.style.chart.xAxis.labels.values.length
|
|
345
|
-
})), U = c(() => {
|
|
346
|
-
const t = Math.max(...L.value.map((o) => o.labelLen)), l = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - l) / q.value, s = [];
|
|
347
|
-
for (let o = 0; o < q.value; o += 1)
|
|
348
|
-
s.push({
|
|
349
|
-
selectorX: l + a * o,
|
|
350
|
-
x: l + a * o - a / 2,
|
|
351
|
-
y: b.value.top,
|
|
352
|
-
label: e.value.style.chart.xAxis.labels.values[o] ? J.value[o].text : "",
|
|
353
|
-
index: o,
|
|
354
|
-
width: a,
|
|
355
|
-
height: qe.value
|
|
356
|
-
});
|
|
357
|
-
return s;
|
|
358
|
-
});
|
|
359
|
-
function Ae(t) {
|
|
360
|
-
return L.value.map((l) => l.datapoints.map((a) => ({
|
|
361
|
-
dp: a,
|
|
362
|
-
selected: a.values[t.index]
|
|
363
|
-
})));
|
|
364
|
-
}
|
|
365
|
-
function It(t) {
|
|
366
|
-
g.value = t;
|
|
367
|
-
const l = Ae(t);
|
|
368
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
|
|
369
|
-
}
|
|
370
|
-
function Rt(t) {
|
|
371
|
-
g.value = null;
|
|
372
|
-
const l = Ae(t);
|
|
373
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
|
|
374
|
-
}
|
|
375
|
-
function Nt(t) {
|
|
376
|
-
const l = Ae(t);
|
|
377
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t.index }), ve("selectX", l);
|
|
378
|
-
}
|
|
379
|
-
function Ft(t, l) {
|
|
380
|
-
return t.length * l / 2 + l;
|
|
381
|
-
}
|
|
382
|
-
function Je(t, l, a) {
|
|
383
|
-
const s = Ft(l, a);
|
|
384
|
-
return t + s > b.value.right;
|
|
385
|
-
}
|
|
386
|
-
function Et(t, l, a = "sans-serif") {
|
|
387
|
-
const o = document.createElement("canvas").getContext("2d"), d = typeof l == "number" ? `${l}px` : l;
|
|
388
|
-
return o.font = `${d} ${a}`, o.measureText(t).width;
|
|
389
|
-
}
|
|
390
|
-
const V = c(() => {
|
|
391
|
-
C.value;
|
|
392
|
-
const t = Math.max(...L.value.map((x) => x.labelLen)), l = Math.max(...L.value.flatMap((x) => x.datapoints.flatMap((K) => K.values))), a = Math.min(...L.value.flatMap((x) => x.datapoints.flatMap((K) => K.values))), s = p.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (b.value.width - s) / q.value, d = Math.abs(Math.min(a, 0)), S = l + d;
|
|
393
|
-
function ot(x) {
|
|
394
|
-
return isNaN(x / S) ? 0 : x / S;
|
|
395
|
-
}
|
|
396
|
-
return L.value.map((x, K) => {
|
|
397
|
-
const st = b.value.top + C.value * K, F = b.value.top + st + C.value * xe.value * (1 - ot(d));
|
|
398
|
-
return {
|
|
399
|
-
...x,
|
|
400
|
-
label: {
|
|
401
|
-
x: s - e.value.style.chart.yAxis.labels.fontSize,
|
|
402
|
-
y: F
|
|
403
|
-
},
|
|
404
|
-
datapoints: x.datapoints.map((Z) => {
|
|
405
|
-
const E = Z.values.map((ee, la) => {
|
|
406
|
-
const oa = isNaN(ee) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ee) ? 0 : ee || 0, sa = s + o * la, na = b.value.top + st + C.value * xe.value * (1 - ot(oa + d)), ra = ee === Math.max(...Z.values);
|
|
407
|
-
return {
|
|
408
|
-
x: sa,
|
|
409
|
-
y: na,
|
|
410
|
-
value: ee,
|
|
411
|
-
isMaxPoint: ra,
|
|
412
|
-
zero: F
|
|
413
|
-
};
|
|
414
|
-
}), Zt = `${fa(E, F, !1, !1)}`, ea = `M ${s},${F} ${vt(E)} ${E.at(-1).x},${F}`, ta = `M ${s},${F} ${E.at(-1).x},${F}`, nt = `M ${ga(E)}`, rt = `M ${vt(E)}`, aa = ya(
|
|
415
|
-
e.value.style.chart.areas.smooth ? nt : rt
|
|
416
|
-
);
|
|
417
|
-
return {
|
|
418
|
-
...Z,
|
|
419
|
-
uid: Me(),
|
|
420
|
-
plots: E,
|
|
421
|
-
smoothPath: Zt,
|
|
422
|
-
straightPath: ea,
|
|
423
|
-
zeroPath: ta,
|
|
424
|
-
pathLength: aa,
|
|
425
|
-
smoothPathRidge: nt,
|
|
426
|
-
straightPathRidge: rt
|
|
427
|
-
};
|
|
428
|
-
}).filter((Z) => !w.value.includes(Z.id))
|
|
429
|
-
};
|
|
430
|
-
});
|
|
431
|
-
}), w = i([]);
|
|
432
|
-
function Bt(t) {
|
|
433
|
-
const l = /* @__PURE__ */ new Map();
|
|
434
|
-
return t.forEach((a) => {
|
|
435
|
-
a.datapoints.forEach((s, o) => {
|
|
436
|
-
const d = ct(s.name);
|
|
437
|
-
l.has(d) || l.set(d, {
|
|
438
|
-
id: d,
|
|
439
|
-
name: s.name,
|
|
440
|
-
color: s.color,
|
|
441
|
-
shape: "circle",
|
|
442
|
-
segregate: () => oe(d),
|
|
443
|
-
isSegregated: w.value.includes(d),
|
|
444
|
-
opacity: w.value.includes(d) ? 0.5 : 1
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
}), Array.from(l.values());
|
|
448
|
-
}
|
|
449
|
-
const G = c(() => Bt(L.value)), Ht = c(() => ({
|
|
450
|
-
cy: "donut-div-legend",
|
|
451
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
452
|
-
color: e.value.style.chart.legend.color,
|
|
453
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
454
|
-
paddingBottom: 12,
|
|
455
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
456
|
-
})), N = i(!1);
|
|
457
|
-
function Qe(t) {
|
|
458
|
-
N.value = t, Fe.value += 1;
|
|
459
|
-
}
|
|
460
|
-
const Ke = i({}), Ze = i([]);
|
|
461
|
-
function Xt(t) {
|
|
462
|
-
ve("selectDatapoint", t), e.value.style.chart.dialog.show && (Ze.value = t.datapoints.map((l) => ({
|
|
463
|
-
name: l.name,
|
|
464
|
-
color: l.color,
|
|
465
|
-
type: "line",
|
|
466
|
-
useArea: !0,
|
|
467
|
-
smooth: e.value.style.chart.areas.smooth,
|
|
468
|
-
series: l.values
|
|
469
|
-
})), X.value = t, Ke.value = wa({
|
|
470
|
-
...e.value.style.chart.dialog.xyChart,
|
|
471
|
-
responsive: !0,
|
|
472
|
-
// Overriding
|
|
473
|
-
chart: {
|
|
474
|
-
...e.value.style.chart.dialog.xyChart.chart,
|
|
475
|
-
grid: {
|
|
476
|
-
...e.value.style.chart.dialog.xyChart.chart.grid,
|
|
477
|
-
labels: {
|
|
478
|
-
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
479
|
-
xAxisLabels: {
|
|
480
|
-
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
481
|
-
values: e.value.style.chart.xAxis.labels.values,
|
|
482
|
-
// Overriding
|
|
483
|
-
autoRotate: {
|
|
484
|
-
enable: !0,
|
|
485
|
-
angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
486
|
-
},
|
|
487
|
-
// overriding
|
|
488
|
-
datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
|
|
489
|
-
// Overriding
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
tooltip: {
|
|
494
|
-
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
495
|
-
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
496
|
-
// Overriding
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}), fe.value && fe.value.open());
|
|
500
|
-
}
|
|
501
|
-
const Ce = i(null);
|
|
502
|
-
function Ut(t) {
|
|
503
|
-
Ce.value = t;
|
|
504
|
-
}
|
|
505
|
-
function Vt() {
|
|
506
|
-
Ce.value = null;
|
|
507
|
-
}
|
|
508
|
-
const se = i(!1);
|
|
509
|
-
function we() {
|
|
510
|
-
se.value = !se.value;
|
|
511
|
-
}
|
|
512
|
-
function et() {
|
|
513
|
-
R.value.showTable = !R.value.showTable;
|
|
514
|
-
}
|
|
515
|
-
const tt = c(() => ({ body: V.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
516
|
-
...s,
|
|
517
|
-
rowName: `${a.name}: ${s.name}`
|
|
518
|
-
}))).map((a) => [
|
|
519
|
-
{
|
|
520
|
-
name: a.rowName,
|
|
521
|
-
color: a.color
|
|
522
|
-
},
|
|
523
|
-
...a.values
|
|
524
|
-
]) })), ne = c(() => {
|
|
525
|
-
const t = [
|
|
526
|
-
e.value.table.columnNames.series,
|
|
527
|
-
...J.value.map((s) => s.text)
|
|
528
|
-
], l = {
|
|
529
|
-
th: {
|
|
530
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
531
|
-
color: e.value.table.th.color,
|
|
532
|
-
outline: e.value.table.th.outline
|
|
533
|
-
},
|
|
534
|
-
td: {
|
|
535
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
536
|
-
color: e.value.table.td.color,
|
|
537
|
-
outline: e.value.table.td.outline
|
|
538
|
-
},
|
|
539
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
540
|
-
};
|
|
541
|
-
return {
|
|
542
|
-
colNames: [
|
|
543
|
-
e.value.table.columnNames.series,
|
|
544
|
-
...J.value.map((s) => s.text)
|
|
545
|
-
],
|
|
546
|
-
head: t,
|
|
547
|
-
body: tt.value.body,
|
|
548
|
-
config: l
|
|
549
|
-
};
|
|
550
|
-
});
|
|
551
|
-
function $e(t = null) {
|
|
552
|
-
_e(() => {
|
|
553
|
-
const l = [
|
|
554
|
-
[e.value.table.columnNames.series, ...J.map((o) => [o.text])],
|
|
555
|
-
...tt.value.body.map((o, d) => [o[0].name, ...o.slice(1)])
|
|
556
|
-
], a = [
|
|
557
|
-
[e.value.style.chart.title.text],
|
|
558
|
-
[e.value.style.chart.title.subtitle.text]
|
|
559
|
-
].concat(l), s = Aa(a);
|
|
560
|
-
t ? t(s) : Ca({
|
|
561
|
-
csvContent: s,
|
|
562
|
-
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
563
|
-
});
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
function Gt() {
|
|
567
|
-
return V.value;
|
|
568
|
-
}
|
|
569
|
-
async function Wt({ scale: t = 2 } = {}) {
|
|
570
|
-
if (!_.value) return;
|
|
571
|
-
const { width: l, height: a } = _.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: d } = await Ea({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
572
|
-
return {
|
|
573
|
-
imageUri: o,
|
|
574
|
-
base64: d,
|
|
575
|
-
title: e.value.style.chart.title.text,
|
|
576
|
-
width: l,
|
|
577
|
-
height: a,
|
|
578
|
-
aspectRatio: s
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
const Yt = c(() => ({ min: 0, max: q.value }));
|
|
582
|
-
Da({
|
|
583
|
-
timeLabelsEls: ge,
|
|
584
|
-
timeLabels: J,
|
|
585
|
-
slicer: Yt,
|
|
586
|
-
configRef: e,
|
|
587
|
-
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
588
|
-
autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
|
|
589
|
-
isAutoSize: !1,
|
|
590
|
-
width: Lt,
|
|
591
|
-
height: zt,
|
|
592
|
-
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
593
|
-
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
594
|
-
});
|
|
595
|
-
const Q = c(() => {
|
|
596
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = R.value.showTable;
|
|
597
|
-
return {
|
|
598
|
-
component: t ? ze : xt,
|
|
599
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
600
|
-
props: t ? {
|
|
601
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
602
|
-
color: e.value.table.th.color,
|
|
603
|
-
headerColor: e.value.table.th.color,
|
|
604
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
605
|
-
isFullscreen: N.value,
|
|
606
|
-
fullscreenParent: _.value,
|
|
607
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
608
|
-
} : {
|
|
609
|
-
hideDetails: !0,
|
|
610
|
-
config: {
|
|
611
|
-
open: l,
|
|
612
|
-
maxHeight: 1e4,
|
|
613
|
-
body: {
|
|
614
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
615
|
-
color: e.value.style.chart.color
|
|
616
|
-
},
|
|
617
|
-
head: {
|
|
618
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
619
|
-
color: e.value.style.chart.color
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
});
|
|
625
|
-
te(() => R.value.showTable, (t) => {
|
|
626
|
-
e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
|
|
627
|
-
});
|
|
628
|
-
function at() {
|
|
629
|
-
R.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
630
|
-
}
|
|
631
|
-
const jt = c(() => e.value.style.chart.backgroundColor), qt = c(() => ({
|
|
632
|
-
...e.value.style.chart.legend,
|
|
633
|
-
position: "bottom"
|
|
634
|
-
})), Jt = c(() => e.value.style.chart.title), { exportSvg: Qt, getSvg: Kt } = Oa({
|
|
635
|
-
svg: le,
|
|
636
|
-
title: Jt,
|
|
637
|
-
legend: qt,
|
|
638
|
-
legendItems: G,
|
|
639
|
-
backgroundColor: jt
|
|
640
|
-
});
|
|
641
|
-
async function lt({ isCb: t }) {
|
|
642
|
-
if (t) {
|
|
643
|
-
const { blob: l, url: a, text: s, dataUrl: o } = await Kt();
|
|
644
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
|
|
645
|
-
} else
|
|
646
|
-
Qt();
|
|
647
|
-
}
|
|
648
|
-
return yt({
|
|
649
|
-
getData: Gt,
|
|
650
|
-
getImage: Wt,
|
|
651
|
-
generateImage: Ye,
|
|
652
|
-
generateSvg: lt,
|
|
653
|
-
generatePdf: We,
|
|
654
|
-
generateCsv: $e,
|
|
655
|
-
hideSeries: Mt,
|
|
656
|
-
showSeries: Ot,
|
|
657
|
-
toggleAnnotator: we,
|
|
658
|
-
toggleTable: et,
|
|
659
|
-
toggleFullscreen: Qe
|
|
660
|
-
}), (t, l) => (n(), r("div", {
|
|
661
|
-
ref_key: "ridgelineChart",
|
|
662
|
-
ref: _,
|
|
663
|
-
class: re(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
664
|
-
id: `vue-ui-ridgeline_${A.value}`,
|
|
665
|
-
style: $({
|
|
666
|
-
fontFamily: e.value.style.fontFamily,
|
|
667
|
-
width: "100%",
|
|
668
|
-
textAlign: "center",
|
|
669
|
-
background: e.value.style.chart.backgroundColor,
|
|
670
|
-
height: e.value.responsive ? "100%" : void 0
|
|
671
|
-
}),
|
|
672
|
-
onMouseenter: l[3] || (l[3] = () => u(He)(!0)),
|
|
673
|
-
onMouseleave: l[4] || (l[4] = () => u(He)(!1))
|
|
674
|
-
}, [
|
|
675
|
-
e.value.userOptions.buttons.annotator && u(le) ? (n(), T(u(At), {
|
|
676
|
-
key: 0,
|
|
677
|
-
color: e.value.style.chart.color,
|
|
678
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
679
|
-
active: se.value,
|
|
680
|
-
svgRef: u(le),
|
|
681
|
-
onClose: we
|
|
682
|
-
}, {
|
|
683
|
-
"annotator-action-close": v(() => [
|
|
684
|
-
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
685
|
-
]),
|
|
686
|
-
"annotator-action-color": v(({ color: a }) => [
|
|
687
|
-
f(t.$slots, "annotator-action-color", P(O({ color: a })), void 0, !0)
|
|
688
|
-
]),
|
|
689
|
-
"annotator-action-draw": v(({ mode: a }) => [
|
|
690
|
-
f(t.$slots, "annotator-action-draw", P(O({ mode: a })), void 0, !0)
|
|
691
|
-
]),
|
|
692
|
-
"annotator-action-undo": v(({ disabled: a }) => [
|
|
693
|
-
f(t.$slots, "annotator-action-undo", P(O({ disabled: a })), void 0, !0)
|
|
694
|
-
]),
|
|
695
|
-
"annotator-action-redo": v(({ disabled: a }) => [
|
|
696
|
-
f(t.$slots, "annotator-action-redo", P(O({ disabled: a })), void 0, !0)
|
|
697
|
-
]),
|
|
698
|
-
"annotator-action-delete": v(({ disabled: a }) => [
|
|
699
|
-
f(t.$slots, "annotator-action-delete", P(O({ disabled: a })), void 0, !0)
|
|
700
|
-
]),
|
|
701
|
-
_: 3
|
|
702
|
-
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
703
|
-
f(t.$slots, "userConfig", {}, void 0, !0),
|
|
704
|
-
Tt.value ? (n(), r("div", {
|
|
705
|
-
key: 1,
|
|
706
|
-
ref_key: "noTitle",
|
|
707
|
-
ref: Ne,
|
|
708
|
-
class: "vue-data-ui-no-title-space",
|
|
709
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
710
|
-
}, null, 512)) : h("", !0),
|
|
711
|
-
e.value.style.chart.title.text ? (n(), r("div", {
|
|
712
|
-
key: 2,
|
|
713
|
-
ref_key: "chartTitle",
|
|
714
|
-
ref: De,
|
|
715
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
716
|
-
}, [
|
|
717
|
-
(n(), T(Na, {
|
|
718
|
-
key: `title_${de.value}`,
|
|
719
|
-
config: {
|
|
720
|
-
title: {
|
|
721
|
-
cy: "ridgeline-div-title",
|
|
722
|
-
...e.value.style.chart.title
|
|
723
|
-
},
|
|
724
|
-
subtitle: {
|
|
725
|
-
cy: "ridgeline-div-subtitle",
|
|
726
|
-
...e.value.style.chart.title.subtitle
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}, null, 8, ["config"]))
|
|
730
|
-
], 512)) : h("", !0),
|
|
731
|
-
e.value.userOptions.show && W.value && (u(Xe) || u(ae)) ? (n(), T(u(Ct), {
|
|
732
|
-
ref_key: "userOptionsRef",
|
|
733
|
-
ref: ye,
|
|
734
|
-
key: `user_option_${Fe.value}`,
|
|
735
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
736
|
-
color: e.value.style.chart.color,
|
|
737
|
-
isPrinting: u(Ve),
|
|
738
|
-
isImaging: u(Ge),
|
|
739
|
-
uid: A.value,
|
|
740
|
-
hasTooltip: !1,
|
|
741
|
-
callbacks: e.value.userOptions.callbacks,
|
|
742
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
743
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
744
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
745
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
746
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
747
|
-
hasLabel: !1,
|
|
748
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
749
|
-
isFullscreen: N.value,
|
|
750
|
-
printScale: e.value.userOptions.print.scale,
|
|
751
|
-
chartElement: _.value,
|
|
752
|
-
position: e.value.userOptions.position,
|
|
753
|
-
isTooltip: !1,
|
|
754
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
755
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
756
|
-
isAnnotation: se.value,
|
|
757
|
-
tableDialog: e.value.table.useDialog,
|
|
758
|
-
style: $({ visibility: u(Xe) ? u(ae) ? "visible" : "hidden" : "visible" }),
|
|
759
|
-
onToggleFullscreen: Qe,
|
|
760
|
-
onGeneratePdf: u(We),
|
|
761
|
-
onGenerateCsv: $e,
|
|
762
|
-
onGenerateImage: u(Ye),
|
|
763
|
-
onGenerateSvg: lt,
|
|
764
|
-
onToggleTable: et,
|
|
765
|
-
onToggleAnnotator: we
|
|
766
|
-
}, Se({ _: 2 }, [
|
|
767
|
-
t.$slots.menuIcon ? {
|
|
768
|
-
name: "menuIcon",
|
|
769
|
-
fn: v(({ isOpen: a, color: s }) => [
|
|
770
|
-
f(t.$slots, "menuIcon", P(O({ isOpen: a, color: s })), void 0, !0)
|
|
771
|
-
]),
|
|
772
|
-
key: "0"
|
|
773
|
-
} : void 0,
|
|
774
|
-
t.$slots.optionTooltip ? {
|
|
775
|
-
name: "optionTooltip",
|
|
776
|
-
fn: v(() => [
|
|
777
|
-
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
778
|
-
]),
|
|
779
|
-
key: "1"
|
|
780
|
-
} : void 0,
|
|
781
|
-
t.$slots.optionPdf ? {
|
|
782
|
-
name: "optionPdf",
|
|
783
|
-
fn: v(() => [
|
|
784
|
-
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
785
|
-
]),
|
|
786
|
-
key: "2"
|
|
787
|
-
} : void 0,
|
|
788
|
-
t.$slots.optionCsv ? {
|
|
789
|
-
name: "optionCsv",
|
|
790
|
-
fn: v(() => [
|
|
791
|
-
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
792
|
-
]),
|
|
793
|
-
key: "3"
|
|
794
|
-
} : void 0,
|
|
795
|
-
t.$slots.optionImg ? {
|
|
796
|
-
name: "optionImg",
|
|
797
|
-
fn: v(() => [
|
|
798
|
-
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
799
|
-
]),
|
|
800
|
-
key: "4"
|
|
801
|
-
} : void 0,
|
|
802
|
-
t.$slots.optionSvg ? {
|
|
803
|
-
name: "optionSvg",
|
|
804
|
-
fn: v(() => [
|
|
805
|
-
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
806
|
-
]),
|
|
807
|
-
key: "5"
|
|
808
|
-
} : void 0,
|
|
809
|
-
t.$slots.optionTable ? {
|
|
810
|
-
name: "optionTable",
|
|
811
|
-
fn: v(() => [
|
|
812
|
-
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
813
|
-
]),
|
|
814
|
-
key: "6"
|
|
815
|
-
} : void 0,
|
|
816
|
-
t.$slots.optionFullscreen ? {
|
|
817
|
-
name: "optionFullscreen",
|
|
818
|
-
fn: v(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
819
|
-
f(t.$slots, "optionFullscreen", P(O({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
820
|
-
]),
|
|
821
|
-
key: "7"
|
|
822
|
-
} : void 0,
|
|
823
|
-
t.$slots.optionAnnotator ? {
|
|
824
|
-
name: "optionAnnotator",
|
|
825
|
-
fn: v(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
826
|
-
f(t.$slots, "optionAnnotator", P(O({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
827
|
-
]),
|
|
828
|
-
key: "8"
|
|
829
|
-
} : void 0
|
|
830
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
831
|
-
(n(), r("svg", {
|
|
832
|
-
ref_key: "svgRef",
|
|
833
|
-
ref: le,
|
|
834
|
-
xmlns: u(pa),
|
|
835
|
-
class: re({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
836
|
-
viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
837
|
-
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Be.value}px; width: 100%;` : ""}`)
|
|
838
|
-
}, [
|
|
839
|
-
Te(u(wt)),
|
|
840
|
-
y("defs", null, [
|
|
841
|
-
(n(!0), r(m, null, k(G.value, (a, s) => (n(), r("linearGradient", {
|
|
842
|
-
id: `gradient-${a.id}-${A.value}`,
|
|
843
|
-
x1: "50%",
|
|
844
|
-
y1: "0%",
|
|
845
|
-
x2: "50%",
|
|
846
|
-
y2: "100%"
|
|
847
|
-
}, [
|
|
848
|
-
y("stop", {
|
|
849
|
-
offset: "0%",
|
|
850
|
-
"stop-color": a.color,
|
|
851
|
-
"stop-opacity": "1"
|
|
852
|
-
}, null, 8, Va),
|
|
853
|
-
y("stop", {
|
|
854
|
-
offset: "30%",
|
|
855
|
-
"stop-color": a.color,
|
|
856
|
-
"stop-opacity": "0.7"
|
|
857
|
-
}, null, 8, Ga),
|
|
858
|
-
y("stop", {
|
|
859
|
-
offset: "70%",
|
|
860
|
-
"stop-color": a.color,
|
|
861
|
-
"stop-opacity": "0.3"
|
|
862
|
-
}, null, 8, Wa),
|
|
863
|
-
y("stop", {
|
|
864
|
-
offset: "100%",
|
|
865
|
-
"stop-color": a.color,
|
|
866
|
-
"stop-opacity": "0.1"
|
|
867
|
-
}, null, 8, Ya)
|
|
868
|
-
], 8, Ua))), 256)),
|
|
869
|
-
(n(!0), r(m, null, k(V.value, (a, s) => (n(), r(m, null, [
|
|
870
|
-
(n(!0), r(m, null, k(a.datapoints, (o, d) => (n(), r("linearGradient", {
|
|
871
|
-
key: `grad${o.id}`,
|
|
872
|
-
id: `gradient-single-${A.value}-${o.uid}`,
|
|
873
|
-
x1: "50%",
|
|
874
|
-
y1: "0%",
|
|
875
|
-
x2: "50%",
|
|
876
|
-
y2: "100%"
|
|
877
|
-
}, [
|
|
878
|
-
y("stop", {
|
|
879
|
-
offset: "0%",
|
|
880
|
-
"stop-color": o.color,
|
|
881
|
-
"stop-opacity": "1"
|
|
882
|
-
}, null, 8, qa),
|
|
883
|
-
y("stop", {
|
|
884
|
-
offset: "30%",
|
|
885
|
-
"stop-color": o.color,
|
|
886
|
-
"stop-opacity": "0.7"
|
|
887
|
-
}, null, 8, Ja),
|
|
888
|
-
y("stop", {
|
|
889
|
-
offset: "70%",
|
|
890
|
-
"stop-color": o.color,
|
|
891
|
-
"stop-opacity": "0.3"
|
|
892
|
-
}, null, 8, Qa),
|
|
893
|
-
y("stop", {
|
|
894
|
-
offset: "100%",
|
|
895
|
-
"stop-color": o.color,
|
|
896
|
-
"stop-opacity": "0.1"
|
|
897
|
-
}, null, 8, Ka)
|
|
898
|
-
], 8, ja))), 128))
|
|
899
|
-
], 64))), 256))
|
|
900
|
-
]),
|
|
901
|
-
(n(!0), r(m, null, k(V.value, (a, s) => (n(), r("g", {
|
|
902
|
-
key: `ds-${s}`
|
|
903
|
-
}, [
|
|
904
|
-
(n(!0), r(m, null, k(a.datapoints, (o, d) => (n(), r("g", {
|
|
905
|
-
key: o.id
|
|
906
|
-
}, [
|
|
907
|
-
t.$slots.pattern ? (n(), r("g", Za, [
|
|
908
|
-
y("defs", null, [
|
|
909
|
-
f(t.$slots, "pattern", Pe({ ref_for: !0 }, { datapointIndex: s, seriesIndex: d, patternId: `pattern_${A.value}_${o.uid}` }), void 0, !0)
|
|
910
|
-
])
|
|
911
|
-
])) : h("", !0),
|
|
912
|
-
y("path", {
|
|
913
|
-
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${o.uid})` : e.value.style.chart.backgroundColor,
|
|
914
|
-
stroke: "none",
|
|
915
|
-
"stroke-linecap": "round",
|
|
916
|
-
d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
|
|
917
|
-
style: $({
|
|
918
|
-
opacity: e.value.style.chart.areas.opacity
|
|
919
|
-
})
|
|
920
|
-
}, null, 12, el),
|
|
921
|
-
y("path", {
|
|
922
|
-
fill: "none",
|
|
923
|
-
stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
|
|
924
|
-
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
925
|
-
d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
|
|
926
|
-
"stroke-linecap": "round",
|
|
927
|
-
"stroke-linejoin": "round",
|
|
928
|
-
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
929
|
-
style: $({
|
|
930
|
-
strokeDasharray: o.pathLength,
|
|
931
|
-
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
932
|
-
})
|
|
933
|
-
}, null, 14, tl),
|
|
934
|
-
y("path", {
|
|
935
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${A.value})` : `url(#gradient-single-${A.value}-${o.uid})` : o.color,
|
|
936
|
-
stroke: "none",
|
|
937
|
-
d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
|
|
938
|
-
"stroke-linecap": "round",
|
|
939
|
-
"stroke-linejoin": "round",
|
|
940
|
-
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
941
|
-
style: $({
|
|
942
|
-
strokeDasharray: o.pathLength,
|
|
943
|
-
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
944
|
-
})
|
|
945
|
-
}, null, 14, al),
|
|
946
|
-
e.value.style.chart.zeroLine.show ? (n(), r("path", {
|
|
947
|
-
key: 1,
|
|
948
|
-
stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
|
|
949
|
-
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
950
|
-
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
951
|
-
d: o.zeroPath,
|
|
952
|
-
"stroke-linecap": "round"
|
|
953
|
-
}, null, 8, ll)) : h("", !0),
|
|
954
|
-
e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(o.plots, (S) => (n(), r(m, null, [
|
|
955
|
-
S.isMaxPoint ? (n(), r("line", {
|
|
956
|
-
key: 0,
|
|
957
|
-
x1: S.x,
|
|
958
|
-
y1: S.y,
|
|
959
|
-
x2: S.x,
|
|
960
|
-
y2: S.zero,
|
|
961
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ma)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
962
|
-
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
963
|
-
"stroke-linecap": "round",
|
|
964
|
-
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
965
|
-
}, null, 8, ol)) : h("", !0)
|
|
966
|
-
], 64))), 256)) : h("", !0),
|
|
967
|
-
o.plots.length === 1 ? (n(), r("circle", {
|
|
968
|
-
key: 3,
|
|
969
|
-
cx: o.plots[0].x,
|
|
970
|
-
cy: o.plots[0].y,
|
|
971
|
-
stroke: e.value.style.chart.selector.dot.stroke,
|
|
972
|
-
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
973
|
-
r: e.value.style.chart.selector.dot.radius,
|
|
974
|
-
fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
|
|
975
|
-
style: {
|
|
976
|
-
pointerEvents: "none"
|
|
977
|
-
}
|
|
978
|
-
}, null, 8, sl)) : h("", !0)
|
|
979
|
-
]))), 128)),
|
|
980
|
-
y("text", {
|
|
981
|
-
x: a.label.x,
|
|
982
|
-
y: a.label.y,
|
|
983
|
-
"text-anchor": "end",
|
|
984
|
-
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
985
|
-
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
986
|
-
fill: e.value.style.chart.yAxis.labels.color,
|
|
987
|
-
style: $({
|
|
988
|
-
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
989
|
-
}),
|
|
990
|
-
"text-decoration": e.value.style.chart.dialog.show && (Ce.value === s || X.value && a.uid === X.value.uid) ? "underline" : "",
|
|
991
|
-
onMouseenter: (o) => Ut(s),
|
|
992
|
-
onMouseleave: Vt,
|
|
993
|
-
onClick: (o) => Xt(a)
|
|
994
|
-
}, B(a.name), 45, nl)
|
|
995
|
-
]))), 128)),
|
|
996
|
-
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
997
|
-
key: 0,
|
|
998
|
-
ref_key: "timeLabelsEls",
|
|
999
|
-
ref: ge
|
|
1000
|
-
}, [
|
|
1001
|
-
(n(!0), r(m, null, k(U.value, (a, s) => f(t.$slots, "time-label", Pe({ ref_for: !0 }, {
|
|
1002
|
-
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 === U.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1003
|
-
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1004
|
-
content: a.label,
|
|
1005
|
-
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1006
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
1007
|
-
transform: `translate(${a.selectorX}, ${b.value.top + a.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1008
|
-
x: a.selectorX,
|
|
1009
|
-
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
1010
|
-
}), () => [
|
|
1011
|
-
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 === U.value.length - 1) || a && g.value && g.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", rl, [
|
|
1012
|
-
String(a.label).includes(`
|
|
1013
|
-
`) ? (n(), r("text", {
|
|
1014
|
-
key: 1,
|
|
1015
|
-
class: "vue-ui-ridgeline-x-axis-label",
|
|
1016
|
-
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1017
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
1018
|
-
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1019
|
-
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1020
|
-
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1021
|
-
style: $({
|
|
1022
|
-
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
1023
|
-
}),
|
|
1024
|
-
innerHTML: u(ba)({
|
|
1025
|
-
content: String(a.label),
|
|
1026
|
-
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
1027
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
1028
|
-
x: 0,
|
|
1029
|
-
y: 0
|
|
1030
|
-
})
|
|
1031
|
-
}, null, 12, il)) : (n(), r("text", {
|
|
1032
|
-
key: 0,
|
|
1033
|
-
class: "vue-ui-ridgeline-x-axis-label",
|
|
1034
|
-
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
1035
|
-
fill: e.value.style.chart.xAxis.labels.color,
|
|
1036
|
-
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1037
|
-
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1038
|
-
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1039
|
-
style: $({
|
|
1040
|
-
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
1041
|
-
})
|
|
1042
|
-
}, B(a.label), 13, ul))
|
|
1043
|
-
])) : h("", !0)
|
|
1044
|
-
], !0)), 256))
|
|
1045
|
-
], 512)) : h("", !0),
|
|
1046
|
-
y("g", null, [
|
|
1047
|
-
(n(!0), r(m, null, k(U.value, (a, s) => (n(), r("rect", {
|
|
1048
|
-
x: a.x,
|
|
1049
|
-
y: a.y,
|
|
1050
|
-
width: a.width < 0 ? 0.1 : a.width,
|
|
1051
|
-
height: a.height < 0 ? 0.1 : a.height,
|
|
1052
|
-
fill: "transparent",
|
|
1053
|
-
onMouseenter: (o) => It(a),
|
|
1054
|
-
onMouseleave: (o) => Rt(a),
|
|
1055
|
-
onClick: () => Nt(a)
|
|
1056
|
-
}, null, 40, cl))), 256)),
|
|
1057
|
-
e.value.style.chart.selector.show && g.value ? (n(), r("line", {
|
|
1058
|
-
key: 0,
|
|
1059
|
-
x1: g.value.selectorX,
|
|
1060
|
-
x2: g.value.selectorX,
|
|
1061
|
-
y1: g.value.y,
|
|
1062
|
-
y2: g.value.y + g.value.height - C.value / 2,
|
|
1063
|
-
stroke: e.value.style.chart.selector.stroke,
|
|
1064
|
-
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1065
|
-
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1066
|
-
"stroke-linecap": "round",
|
|
1067
|
-
style: { pointerEvents: "none" }
|
|
1068
|
-
}, null, 8, vl)) : h("", !0),
|
|
1069
|
-
g.value ? (n(!0), r(m, { key: 1 }, k(V.value, (a) => (n(), r(m, null, [
|
|
1070
|
-
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1071
|
-
(n(!0), r(m, null, k(s.plots, (o, d) => (n(), r(m, null, [
|
|
1072
|
-
g.value && g.value.index === d ? (n(), r("circle", {
|
|
1073
|
-
key: 0,
|
|
1074
|
-
cx: o.x,
|
|
1075
|
-
cy: o.y,
|
|
1076
|
-
stroke: e.value.style.chart.selector.dot.stroke,
|
|
1077
|
-
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
1078
|
-
r: e.value.style.chart.selector.dot.radius,
|
|
1079
|
-
fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
|
|
1080
|
-
style: {
|
|
1081
|
-
pointerEvents: "none"
|
|
1082
|
-
}
|
|
1083
|
-
}, null, 8, dl)) : h("", !0),
|
|
1084
|
-
g.value && g.value.index === d ? (n(), r("text", {
|
|
1085
|
-
key: 1,
|
|
1086
|
-
x: Je(
|
|
1087
|
-
o.x,
|
|
1088
|
-
u(ie)(
|
|
1089
|
-
e.value.style.chart.selector.labels.formatter,
|
|
1090
|
-
o.value,
|
|
1091
|
-
u(ce)({
|
|
1092
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1093
|
-
v: o.value,
|
|
1094
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1095
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
1096
|
-
})
|
|
1097
|
-
),
|
|
1098
|
-
e.value.style.chart.selector.labels.fontSize
|
|
1099
|
-
) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
1100
|
-
y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
1101
|
-
"text-anchor": Je(
|
|
1102
|
-
o.x,
|
|
1103
|
-
u(ie)(
|
|
1104
|
-
e.value.style.chart.selector.labels.formatter,
|
|
1105
|
-
o.value,
|
|
1106
|
-
u(ce)({
|
|
1107
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1108
|
-
v: o.value,
|
|
1109
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1110
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
1111
|
-
})
|
|
1112
|
-
),
|
|
1113
|
-
e.value.style.chart.selector.labels.fontSize
|
|
1114
|
-
) ? "end" : "start",
|
|
1115
|
-
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
1116
|
-
fill: e.value.style.chart.selector.labels.color,
|
|
1117
|
-
style: {
|
|
1118
|
-
pointerEvents: "none"
|
|
1119
|
-
}
|
|
1120
|
-
}, B(u(ie)(
|
|
1121
|
-
e.value.style.chart.selector.labels.formatter,
|
|
1122
|
-
o.value,
|
|
1123
|
-
u(ce)({
|
|
1124
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1125
|
-
v: o.value,
|
|
1126
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1127
|
-
r: e.value.style.chart.selector.labels.rounding
|
|
1128
|
-
})
|
|
1129
|
-
)), 9, hl)) : h("", !0)
|
|
1130
|
-
], 64))), 256))
|
|
1131
|
-
], 64))), 256))
|
|
1132
|
-
], 64))), 256)) : h("", !0)
|
|
1133
|
-
]),
|
|
1134
|
-
f(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
1135
|
-
], 14, Xa)),
|
|
1136
|
-
t.$slots.watermark ? (n(), r("div", fl, [
|
|
1137
|
-
f(t.$slots, "watermark", P(O({ isPrinting: u(Ve) || u(Ge) })), void 0, !0)
|
|
1138
|
-
])) : h("", !0),
|
|
1139
|
-
y("div", {
|
|
1140
|
-
ref_key: "chartLegend",
|
|
1141
|
-
ref: Ie
|
|
1142
|
-
}, [
|
|
1143
|
-
e.value.style.chart.legend.show ? (n(), T(Ra, {
|
|
1144
|
-
key: `legend_${he.value}`,
|
|
1145
|
-
legendSet: G.value,
|
|
1146
|
-
config: Ht.value,
|
|
1147
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
1148
|
-
}, Se({
|
|
1149
|
-
item: v(({ legend: a }) => [
|
|
1150
|
-
u(j) ? h("", !0) : (n(), r("div", {
|
|
1151
|
-
key: 0,
|
|
1152
|
-
style: $(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`),
|
|
1153
|
-
onClick: (s) => a.segregate()
|
|
1154
|
-
}, B(a.name), 13, gl))
|
|
1155
|
-
]),
|
|
1156
|
-
_: 2
|
|
1157
|
-
}, [
|
|
1158
|
-
t.$slots.pattern ? {
|
|
1159
|
-
name: "legend-pattern",
|
|
1160
|
-
fn: v(({ legend: a, index: s }) => [
|
|
1161
|
-
Te(Fa, {
|
|
1162
|
-
shape: a.shape,
|
|
1163
|
-
radius: 30,
|
|
1164
|
-
stroke: "none",
|
|
1165
|
-
plot: { x: 30, y: 30 },
|
|
1166
|
-
fill: `url(#pattern_${A.value}_${s})`
|
|
1167
|
-
}, null, 8, ["shape", "fill"])
|
|
1168
|
-
]),
|
|
1169
|
-
key: "0"
|
|
1170
|
-
} : void 0
|
|
1171
|
-
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1172
|
-
f(t.$slots, "legend", { legend: G.value }, void 0, !0)
|
|
1173
|
-
], 512),
|
|
1174
|
-
t.$slots.source ? (n(), r("div", {
|
|
1175
|
-
key: 5,
|
|
1176
|
-
ref_key: "source",
|
|
1177
|
-
ref: Re,
|
|
1178
|
-
dir: "auto"
|
|
1179
|
-
}, [
|
|
1180
|
-
f(t.$slots, "source", {}, void 0, !0)
|
|
1181
|
-
], 512)) : h("", !0),
|
|
1182
|
-
W.value && e.value.userOptions.buttons.table ? (n(), T(ca(Q.value.component), Pe({ key: 6 }, Q.value.props, {
|
|
1183
|
-
ref_key: "tableUnit",
|
|
1184
|
-
ref: Y,
|
|
1185
|
-
onClose: at
|
|
1186
|
-
}), Se({
|
|
1187
|
-
content: v(() => [
|
|
1188
|
-
(n(), T(u(kt), {
|
|
1189
|
-
key: `table_${_t.value}`,
|
|
1190
|
-
colNames: ne.value.colNames,
|
|
1191
|
-
head: ne.value.head,
|
|
1192
|
-
body: ne.value.body,
|
|
1193
|
-
config: ne.value.config,
|
|
1194
|
-
title: e.value.table.useDialog ? "" : Q.value.title,
|
|
1195
|
-
withCloseButton: !e.value.table.useDialog,
|
|
1196
|
-
onClose: at
|
|
1197
|
-
}, {
|
|
1198
|
-
th: v(({ th: a }) => [
|
|
1199
|
-
y("div", { innerHTML: a }, null, 8, yl)
|
|
1200
|
-
]),
|
|
1201
|
-
td: v(({ td: a }) => [
|
|
1202
|
-
Oe(B(a.name ? a.name : u(ie)(
|
|
1203
|
-
e.value.style.chart.selector.labels.formatter,
|
|
1204
|
-
a,
|
|
1205
|
-
u(ce)({
|
|
1206
|
-
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1207
|
-
v: a,
|
|
1208
|
-
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1209
|
-
r: e.value.table.td.roundingValue
|
|
1210
|
-
})
|
|
1211
|
-
)), 1)
|
|
1212
|
-
]),
|
|
1213
|
-
_: 1
|
|
1214
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1215
|
-
]),
|
|
1216
|
-
_: 2
|
|
1217
|
-
}, [
|
|
1218
|
-
e.value.table.useDialog ? {
|
|
1219
|
-
name: "title",
|
|
1220
|
-
fn: v(() => [
|
|
1221
|
-
Oe(B(Q.value.title), 1)
|
|
1222
|
-
]),
|
|
1223
|
-
key: "0"
|
|
1224
|
-
} : void 0,
|
|
1225
|
-
e.value.table.useDialog ? {
|
|
1226
|
-
name: "actions",
|
|
1227
|
-
fn: v(() => [
|
|
1228
|
-
y("button", {
|
|
1229
|
-
tabindex: "0",
|
|
1230
|
-
class: "vue-ui-user-options-button",
|
|
1231
|
-
onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv))
|
|
1232
|
-
}, [
|
|
1233
|
-
Te(u(bt), {
|
|
1234
|
-
name: "excel",
|
|
1235
|
-
stroke: Q.value.props.color
|
|
1236
|
-
}, null, 8, ["stroke"])
|
|
1237
|
-
])
|
|
1238
|
-
]),
|
|
1239
|
-
key: "1"
|
|
1240
|
-
} : void 0
|
|
1241
|
-
]), 1040)) : h("", !0),
|
|
1242
|
-
e.value.style.chart.dialog.show ? (n(), T(u(ze), {
|
|
1243
|
-
key: 7,
|
|
1244
|
-
ref_key: "dialog",
|
|
1245
|
-
ref: fe,
|
|
1246
|
-
onClose: l[2] || (l[2] = (a) => X.value = null),
|
|
1247
|
-
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1248
|
-
color: e.value.style.chart.dialog.color,
|
|
1249
|
-
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1250
|
-
headerColor: e.value.style.chart.dialog.header.color,
|
|
1251
|
-
isFullscreen: N.value,
|
|
1252
|
-
fullscreenParent: _.value,
|
|
1253
|
-
withPadding: ""
|
|
1254
|
-
}, {
|
|
1255
|
-
title: v(() => [
|
|
1256
|
-
Oe(B(X.value.name), 1)
|
|
1257
|
-
]),
|
|
1258
|
-
content: v(() => [
|
|
1259
|
-
X.value ? (n(), T(u(mt), {
|
|
1260
|
-
key: 0,
|
|
1261
|
-
config: Ke.value,
|
|
1262
|
-
dataset: Ze.value
|
|
1263
|
-
}, null, 8, ["config", "dataset"])) : h("", !0)
|
|
1264
|
-
]),
|
|
1265
|
-
_: 1
|
|
1266
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1267
|
-
u(j) ? (n(), T(Ta, { key: 8 })) : h("", !0)
|
|
1268
|
-
], 46, Ha));
|
|
1269
|
-
}
|
|
1270
|
-
}, Il = /* @__PURE__ */ Ba(pl, [["__scopeId", "data-v-37841d19"]]);
|
|
1271
|
-
export {
|
|
1272
|
-
Il as default
|
|
1273
|
-
};
|