vue-data-ui 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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 +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Oe, t as
|
|
3
|
-
import { t as ht, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as M, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as K, nextTick as $e, watchEffect as na, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as oe, createBlock as S, createCommentVNode as h, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as g, normalizeProps as se, guardReactiveProps as ne, createVNode as Se, Fragment as m, renderList as k, mergeProps as Te, toDisplayString as R, resolveDynamicComponent as ra, createTextVNode as Pe } from "vue";
|
|
2
|
+
import { c as Oe, t as ua, e as ia, h as ca, p as re, ak as it, C as va, B as ct, z as ha, a9 as da, X as ya, J as ga, M as fa, a as ue, d as ie, b as ma, f as Me, g as vt, o as pa, P as ba, Q as xa, a4 as ka } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as ht, u as Aa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ca, a as dt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as wa, B as $a } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as _a } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as Sa } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Ta } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { t as
|
|
13
|
-
import za from "./Legend-
|
|
14
|
-
import Da from "./Title-
|
|
15
|
-
import { _ as Ia } from "./Shape-
|
|
16
|
-
import Na from "./img-
|
|
9
|
+
import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Ma } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import { t as La } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import za from "./Legend-C8u37J42.js";
|
|
14
|
+
import Da from "./Title-CFmv95In.js";
|
|
15
|
+
import { _ as Ia } from "./Shape-BhNvlGIN.js";
|
|
16
|
+
import Na from "./img-CFY3JivG.js";
|
|
17
17
|
import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Ra = ["id"], Ea = ["xmlns", "viewBox"],
|
|
18
|
+
const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"], Xa = ["stop-color"], Ua = ["stop-color"], Va = ["stop-color"], Ga = ["id"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["stop-color"], qa = ["stop-color"], Ja = { key: 0 }, Qa = ["fill", "d"], Ka = ["stroke", "stroke-width", "d"], Za = ["fill", "d"], el = ["stroke", "stroke-dasharray", "stroke-width", "d"], tl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ll = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], ol = { key: 0 }, sl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], nl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], rl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], cl = ["x", "y", "text-anchor", "font-size", "fill"], vl = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, hl = ["onClick"], dl = ["innerHTML"], yl = {
|
|
@@ -36,14 +36,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
38
|
setup(yt, { expose: gt, emit: ft }) {
|
|
39
|
-
const mt =
|
|
39
|
+
const mt = M(() => import("./vue-ui-xy-D3LqMzve.js")), pt = M(() => import("./BaseIcon-B5KaGWWC.js")), bt = M(() => import("./vue-ui-accordion-BKkTS12x.js")), xt = M(() => import("./DataTable-DOx3zgih.js")), kt = M(() => import("./PenAndPaper-Dj2diYr0.js")), At = M(() => import("./UserOptions-C0YT60JN.js")), Ct = M(() => import("./PackageVersion-DyDViSOy.js")), Le = M(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_ridgeline: wt } = Ca(), E = yt, U = c({
|
|
40
40
|
get() {
|
|
41
41
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), ce = ft, $ = i(null), ze = i(null), De = i(null),
|
|
46
|
+
}), ce = ft, $ = i(null), ze = i(null), De = i(null), T = rt(null), L = rt(null), Ie = i(null), Ne = i(null), ve = i(0), $t = i(0), he = i(0), A = i(Oe()), Fe = i(0), _t = i(0), Re = i(512), d = i(null), B = i(null), de = i(null), Ee = i(0), ye = i(null), V = i(null), ge = i(null);
|
|
47
47
|
function fe() {
|
|
48
48
|
const t = dt({
|
|
49
49
|
userConfig: E.config,
|
|
@@ -51,13 +51,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
51
51
|
});
|
|
52
52
|
return t.theme ? {
|
|
53
53
|
...dt({
|
|
54
|
-
userConfig:
|
|
54
|
+
userConfig: La.vue_ui_ridgeline[t.theme] || E.config,
|
|
55
55
|
defaultConfig: t
|
|
56
56
|
}),
|
|
57
|
-
customPalette:
|
|
57
|
+
customPalette: ma[t.theme] || re
|
|
58
58
|
} : t;
|
|
59
59
|
}
|
|
60
|
-
const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: me } =
|
|
60
|
+
const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: me } = wa({
|
|
61
61
|
...sa(E),
|
|
62
62
|
FINAL_CONFIG: e,
|
|
63
63
|
prepareConfig: fe,
|
|
@@ -153,7 +153,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
|
-
skeletonConfig:
|
|
156
|
+
skeletonConfig: ua({
|
|
157
157
|
defaultConfig: e.value,
|
|
158
158
|
userConfig: {
|
|
159
159
|
userOptions: { show: !1 },
|
|
@@ -197,13 +197,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
197
197
|
e.value.style.chart.areas.rowHeight
|
|
198
198
|
)), {
|
|
199
199
|
userOptionsVisible: Z,
|
|
200
|
-
setUserOptionsVisibility:
|
|
201
|
-
keepUserOptionState:
|
|
202
|
-
} =
|
|
203
|
-
function
|
|
200
|
+
setUserOptionsVisibility: Be,
|
|
201
|
+
keepUserOptionState: He
|
|
202
|
+
} = Pa({ config: e.value }), { svgRef: ee } = Oa({ config: e.value.style.chart.title }), pe = c(() => !!e.value.debug);
|
|
203
|
+
function Xe() {
|
|
204
204
|
const t = z.value || [];
|
|
205
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
206
|
-
|
|
206
|
+
Me({ componentName: "VueUiRidgeline", type: "dataset", debug: pe.value }), me.value = !0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
if (t.forEach((o, a) => {
|
|
@@ -211,7 +211,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
211
211
|
datasetObject: o,
|
|
212
212
|
requiredAttributes: ["name", "datapoints"]
|
|
213
213
|
}).forEach((s) => {
|
|
214
|
-
U.value = !1,
|
|
214
|
+
U.value = !1, Me({
|
|
215
215
|
componentName: "VueUiRidgeline",
|
|
216
216
|
type: "datasetSerieAttribute",
|
|
217
217
|
property: s,
|
|
@@ -223,7 +223,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
223
223
|
datasetObject: s,
|
|
224
224
|
requiredAttributes: ["name", "values"]
|
|
225
225
|
}).forEach((v) => {
|
|
226
|
-
U.value = !1,
|
|
226
|
+
U.value = !1, Me({
|
|
227
227
|
componentName: "VueUiRidgeline",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
229
|
property: `datapoint.${v}`,
|
|
@@ -235,9 +235,9 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
235
235
|
}), _t.value = t.length, C.value = Math.min(
|
|
236
236
|
e.value.style.chart.areas.height,
|
|
237
237
|
e.value.style.chart.areas.rowHeight
|
|
238
|
-
),
|
|
238
|
+
), pa(E.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
239
|
const o = ht(() => {
|
|
240
|
-
const { width: a, height: s } =
|
|
240
|
+
const { width: a, height: s } = Aa({
|
|
241
241
|
chart: $.value,
|
|
242
242
|
title: e.value.style.chart.title.text ? ze.value : null,
|
|
243
243
|
legend: e.value.style.chart.legend.show ? De.value : null,
|
|
@@ -249,34 +249,34 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
249
249
|
Re.value = a, C.value = t.length ? s / t.length : 0, Ee.value = s - 12;
|
|
250
250
|
});
|
|
251
251
|
});
|
|
252
|
-
|
|
252
|
+
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect()), T.value = new ResizeObserver(o), L.value = $.value?.parentNode || null, L.value && T.value.observe(L.value);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
ut(() => {
|
|
256
|
-
|
|
256
|
+
T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
|
|
257
257
|
});
|
|
258
|
-
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } =
|
|
258
|
+
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } = _a({
|
|
259
259
|
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
260
260
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
261
261
|
options: e.value.userOptions.print
|
|
262
|
-
}),
|
|
262
|
+
}), St = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = c(() => ia(e.value.customPalette)), D = i({
|
|
263
263
|
showTable: e.value.table.show
|
|
264
264
|
});
|
|
265
|
-
|
|
265
|
+
K(
|
|
266
266
|
() => z.value,
|
|
267
267
|
async (t) => {
|
|
268
|
-
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(),
|
|
268
|
+
Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Xe(), ve.value += 1, he.value += 1, D.value.showTable = e.value.table.show);
|
|
269
269
|
},
|
|
270
270
|
{ deep: !0, immediate: !0 }
|
|
271
|
-
),
|
|
271
|
+
), K(() => E.dataset, (t) => {
|
|
272
272
|
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
273
|
-
}, { deep: !0 }),
|
|
273
|
+
}, { deep: !0 }), K(
|
|
274
274
|
() => G.value,
|
|
275
275
|
async (t) => {
|
|
276
|
-
t || (await $e(),
|
|
276
|
+
t || (await $e(), Xe());
|
|
277
277
|
},
|
|
278
278
|
{ immediate: !0 }
|
|
279
|
-
),
|
|
279
|
+
), K(
|
|
280
280
|
() => E.config,
|
|
281
281
|
() => {
|
|
282
282
|
e.value = fe(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, ve.value += 1, he.value += 1;
|
|
@@ -285,14 +285,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
285
285
|
);
|
|
286
286
|
const be = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
287
287
|
function Ye(t) {
|
|
288
|
-
O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend",
|
|
288
|
+
O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend", X.value);
|
|
289
289
|
}
|
|
290
290
|
const P = c(() => U.value ? (z.value || []).map((t) => ({
|
|
291
291
|
...t,
|
|
292
292
|
labelLen: Nt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
293
293
|
uid: Oe(),
|
|
294
294
|
datapoints: t.datapoints.map((o, a) => {
|
|
295
|
-
const s = o.color ?
|
|
295
|
+
const s = o.color ? ca(o.color) : Tt.value[a] || re[a] || re[a % re.length], l = it(o.name);
|
|
296
296
|
return { ...o, color: s, id: l };
|
|
297
297
|
})
|
|
298
298
|
})) : []), je = c(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * be.value + e.value.style.chart.padding.bottom), f = c(() => {
|
|
@@ -302,10 +302,17 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
302
302
|
height: je.value,
|
|
303
303
|
padding: t
|
|
304
304
|
};
|
|
305
|
-
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0),
|
|
305
|
+
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0), Mt = ht((t) => {
|
|
306
306
|
xe.value = t;
|
|
307
307
|
}, 100);
|
|
308
|
-
|
|
308
|
+
na((t) => {
|
|
309
|
+
const o = ye.value;
|
|
310
|
+
if (!o) return;
|
|
311
|
+
const a = new ResizeObserver((s) => {
|
|
312
|
+
Mt(s[0].contentRect.height);
|
|
313
|
+
});
|
|
314
|
+
a.observe(o), t(() => a.disconnect());
|
|
315
|
+
}), ut(() => {
|
|
309
316
|
xe.value = 0;
|
|
310
317
|
});
|
|
311
318
|
const b = c(() => ({
|
|
@@ -321,7 +328,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
321
328
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
322
329
|
start: 0,
|
|
323
330
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
324
|
-
})),
|
|
331
|
+
})), H = c(() => {
|
|
325
332
|
const t = Math.max(...P.value.map((l) => l.labelLen)), o = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - o) / W.value, s = [];
|
|
326
333
|
for (let l = 0; l < W.value; l += 1)
|
|
327
334
|
s.push({
|
|
@@ -341,7 +348,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
341
348
|
selected: a.values[t.index]
|
|
342
349
|
})));
|
|
343
350
|
}
|
|
344
|
-
function
|
|
351
|
+
function Lt(t) {
|
|
345
352
|
d.value = t;
|
|
346
353
|
const o = ke(t);
|
|
347
354
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
|
|
@@ -366,7 +373,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
366
373
|
const l = document.createElement("canvas").getContext("2d"), v = typeof o == "number" ? `${o}px` : o;
|
|
367
374
|
return l.font = `${v} ${a}`, l.measureText(t).width;
|
|
368
375
|
}
|
|
369
|
-
const
|
|
376
|
+
const X = c(() => {
|
|
370
377
|
C.value;
|
|
371
378
|
const t = Math.max(...P.value.map((x) => x.labelLen)), o = Math.max(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), a = Math.min(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), s = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - s) / W.value, v = Math.abs(Math.min(a, 0)), _ = o + v;
|
|
372
379
|
function lt(x) {
|
|
@@ -381,16 +388,16 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
381
388
|
y: N
|
|
382
389
|
},
|
|
383
390
|
datapoints: x.datapoints.map((J) => {
|
|
384
|
-
const F = J.values.map((
|
|
385
|
-
const ta = isNaN(
|
|
391
|
+
const F = J.values.map((Q, ea) => {
|
|
392
|
+
const ta = isNaN(Q) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(Q) ? 0 : Q || 0, aa = s + l * ea, la = b.value.top + ot + C.value * be.value * (1 - lt(ta + v)), oa = Q === Math.max(...J.values);
|
|
386
393
|
return {
|
|
387
394
|
x: aa,
|
|
388
395
|
y: la,
|
|
389
|
-
value:
|
|
396
|
+
value: Q,
|
|
390
397
|
isMaxPoint: oa,
|
|
391
398
|
zero: N
|
|
392
399
|
};
|
|
393
|
-
}), Jt = `${
|
|
400
|
+
}), Jt = `${va(F, N, !1, !1)}`, Qt = `M ${s},${N} ${ct(F)} ${F.at(-1).x},${N}`, Kt = `M ${s},${N} ${F.at(-1).x},${N}`, st = `M ${ha(F)}`, nt = `M ${ct(F)}`, Zt = da(
|
|
394
401
|
e.value.style.chart.areas.smooth ? st : nt
|
|
395
402
|
);
|
|
396
403
|
return {
|
|
@@ -398,8 +405,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
398
405
|
uid: Oe(),
|
|
399
406
|
plots: F,
|
|
400
407
|
smoothPath: Jt,
|
|
401
|
-
straightPath:
|
|
402
|
-
zeroPath:
|
|
408
|
+
straightPath: Qt,
|
|
409
|
+
zeroPath: Kt,
|
|
403
410
|
pathLength: Zt,
|
|
404
411
|
smoothPathRidge: st,
|
|
405
412
|
straightPathRidge: nt
|
|
@@ -436,16 +443,16 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
436
443
|
function Je(t) {
|
|
437
444
|
I.value = t, Fe.value += 1;
|
|
438
445
|
}
|
|
439
|
-
const
|
|
446
|
+
const Qe = i({}), Ke = i([]);
|
|
440
447
|
function Et(t) {
|
|
441
|
-
ce("selectDatapoint", t), e.value.style.chart.dialog.show && (
|
|
448
|
+
ce("selectDatapoint", t), e.value.style.chart.dialog.show && (Ke.value = t.datapoints.map((o) => ({
|
|
442
449
|
name: o.name,
|
|
443
450
|
color: o.color,
|
|
444
451
|
type: "line",
|
|
445
452
|
useArea: !0,
|
|
446
453
|
smooth: e.value.style.chart.areas.smooth,
|
|
447
454
|
series: o.values
|
|
448
|
-
})),
|
|
455
|
+
})), B.value = t, Qe.value = ka({
|
|
449
456
|
...e.value.style.chart.dialog.xyChart,
|
|
450
457
|
responsive: !0,
|
|
451
458
|
// Overriding
|
|
@@ -478,10 +485,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
478
485
|
}), de.value && de.value.open());
|
|
479
486
|
}
|
|
480
487
|
const Ae = i(null);
|
|
481
|
-
function
|
|
488
|
+
function Bt(t) {
|
|
482
489
|
Ae.value = t;
|
|
483
490
|
}
|
|
484
|
-
function
|
|
491
|
+
function Ht() {
|
|
485
492
|
Ae.value = null;
|
|
486
493
|
}
|
|
487
494
|
const ae = i(!1);
|
|
@@ -491,7 +498,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
491
498
|
function Ze() {
|
|
492
499
|
D.value.showTable = !D.value.showTable;
|
|
493
500
|
}
|
|
494
|
-
const et = c(() => ({ body:
|
|
501
|
+
const et = c(() => ({ body: X.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
495
502
|
...s,
|
|
496
503
|
rowName: `${a.name}: ${s.name}`
|
|
497
504
|
}))).map((a) => [
|
|
@@ -535,15 +542,15 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
535
542
|
], a = [
|
|
536
543
|
[e.value.style.chart.title.text],
|
|
537
544
|
[e.value.style.chart.title.subtitle.text]
|
|
538
|
-
].concat(o), s =
|
|
539
|
-
t ? t(s) :
|
|
545
|
+
].concat(o), s = ba(a);
|
|
546
|
+
t ? t(s) : xa({
|
|
540
547
|
csvContent: s,
|
|
541
548
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
542
549
|
});
|
|
543
550
|
});
|
|
544
551
|
}
|
|
545
|
-
function
|
|
546
|
-
return
|
|
552
|
+
function Xt() {
|
|
553
|
+
return X.value;
|
|
547
554
|
}
|
|
548
555
|
async function Ut({ scale: t = 2 } = {}) {
|
|
549
556
|
if (!$.value) return;
|
|
@@ -558,7 +565,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
558
565
|
};
|
|
559
566
|
}
|
|
560
567
|
const Vt = c(() => ({ min: 0, max: W.value }));
|
|
561
|
-
|
|
568
|
+
Ma({
|
|
562
569
|
timeLabelsEls: ye,
|
|
563
570
|
timeLabels: Y,
|
|
564
571
|
slicer: Vt,
|
|
@@ -574,7 +581,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
574
581
|
const j = c(() => {
|
|
575
582
|
const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
576
583
|
return {
|
|
577
|
-
component: t ?
|
|
584
|
+
component: t ? Le : bt,
|
|
578
585
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
579
586
|
props: t ? {
|
|
580
587
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -601,7 +608,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
601
608
|
}
|
|
602
609
|
};
|
|
603
610
|
});
|
|
604
|
-
|
|
611
|
+
K(() => D.value.showTable, (t) => {
|
|
605
612
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
606
613
|
});
|
|
607
614
|
function tt() {
|
|
@@ -610,7 +617,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
610
617
|
const Gt = c(() => e.value.style.chart.backgroundColor), Wt = c(() => ({
|
|
611
618
|
...e.value.style.chart.legend,
|
|
612
619
|
position: "bottom"
|
|
613
|
-
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } =
|
|
620
|
+
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = Sa({
|
|
614
621
|
svg: ee,
|
|
615
622
|
title: Yt,
|
|
616
623
|
legend: Wt,
|
|
@@ -625,7 +632,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
625
632
|
jt();
|
|
626
633
|
}
|
|
627
634
|
return gt({
|
|
628
|
-
getData:
|
|
635
|
+
getData: Xt,
|
|
629
636
|
getImage: Ut,
|
|
630
637
|
generateImage: We,
|
|
631
638
|
generateSvg: at,
|
|
@@ -646,10 +653,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
646
653
|
background: e.value.style.chart.backgroundColor,
|
|
647
654
|
height: e.value.responsive ? "100%" : void 0
|
|
648
655
|
}),
|
|
649
|
-
onMouseenter: o[3] || (o[3] = () => u(
|
|
650
|
-
onMouseleave: o[4] || (o[4] = () => u(
|
|
656
|
+
onMouseenter: o[3] || (o[3] = () => u(Be)(!0)),
|
|
657
|
+
onMouseleave: o[4] || (o[4] = () => u(Be)(!1))
|
|
651
658
|
}, [
|
|
652
|
-
e.value.userOptions.buttons.annotator && u(ee) ? (n(),
|
|
659
|
+
e.value.userOptions.buttons.annotator && u(ee) ? (n(), S(u(kt), {
|
|
653
660
|
key: 0,
|
|
654
661
|
color: e.value.style.chart.color,
|
|
655
662
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -658,7 +665,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
658
665
|
onClose: Ce
|
|
659
666
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
|
|
660
667
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
661
|
-
|
|
668
|
+
St.value ? (n(), r("div", {
|
|
662
669
|
key: 1,
|
|
663
670
|
ref_key: "noTitle",
|
|
664
671
|
ref: Ne,
|
|
@@ -671,7 +678,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
671
678
|
ref: ze,
|
|
672
679
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
673
680
|
}, [
|
|
674
|
-
(n(),
|
|
681
|
+
(n(), S(Da, {
|
|
675
682
|
key: `title_${ve.value}`,
|
|
676
683
|
config: {
|
|
677
684
|
title: {
|
|
@@ -685,7 +692,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
685
692
|
}
|
|
686
693
|
}, null, 8, ["config"]))
|
|
687
694
|
], 512)) : h("", !0),
|
|
688
|
-
e.value.userOptions.show && U.value && (u(
|
|
695
|
+
e.value.userOptions.show && U.value && (u(He) || u(Z)) ? (n(), S(u(At), {
|
|
689
696
|
ref_key: "userOptionsRef",
|
|
690
697
|
ref: ge,
|
|
691
698
|
key: `user_option_${Fe.value}`,
|
|
@@ -712,7 +719,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
712
719
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
713
720
|
isAnnotation: ae.value,
|
|
714
721
|
tableDialog: e.value.table.useDialog,
|
|
715
|
-
style: w({ visibility: u(
|
|
722
|
+
style: w({ visibility: u(He) ? u(Z) ? "visible" : "hidden" : "visible" }),
|
|
716
723
|
onToggleFullscreen: Je,
|
|
717
724
|
onGeneratePdf: u(Ge),
|
|
718
725
|
onGenerateCsv: we,
|
|
@@ -781,12 +788,12 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
781
788
|
(n(), r("svg", {
|
|
782
789
|
ref_key: "svgRef",
|
|
783
790
|
ref: ee,
|
|
784
|
-
xmlns: u(
|
|
791
|
+
xmlns: u(ya),
|
|
785
792
|
class: oe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
786
793
|
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
787
794
|
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ee.value}px; width: 100%;` : ""}`)
|
|
788
795
|
}, [
|
|
789
|
-
|
|
796
|
+
Se(u(Ct)),
|
|
790
797
|
y("defs", null, [
|
|
791
798
|
(n(!0), r(m, null, k(te.value, (a, s) => (n(), r("linearGradient", {
|
|
792
799
|
id: `gradient-${a.id}-${A.value}`,
|
|
@@ -799,12 +806,12 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
799
806
|
offset: "0%",
|
|
800
807
|
"stop-color": a.color,
|
|
801
808
|
"stop-opacity": "1"
|
|
802
|
-
}, null, 8,
|
|
809
|
+
}, null, 8, Ha),
|
|
803
810
|
y("stop", {
|
|
804
811
|
offset: "30%",
|
|
805
812
|
"stop-color": a.color,
|
|
806
813
|
"stop-opacity": "0.7"
|
|
807
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Xa),
|
|
808
815
|
y("stop", {
|
|
809
816
|
offset: "70%",
|
|
810
817
|
"stop-color": a.color,
|
|
@@ -815,8 +822,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
815
822
|
"stop-color": a.color,
|
|
816
823
|
"stop-opacity": "0.1"
|
|
817
824
|
}, null, 8, Va)
|
|
818
|
-
], 8,
|
|
819
|
-
(n(!0), r(m, null, k(
|
|
825
|
+
], 8, Ba))), 256)),
|
|
826
|
+
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r(m, null, [
|
|
820
827
|
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("linearGradient", {
|
|
821
828
|
key: `grad${l.id}`,
|
|
822
829
|
id: `gradient-single-${A.value}-${l.uid}`,
|
|
@@ -848,7 +855,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
848
855
|
], 8, Ga))), 128))
|
|
849
856
|
], 64))), 256))
|
|
850
857
|
]),
|
|
851
|
-
(n(!0), r(m, null, k(
|
|
858
|
+
(n(!0), r(m, null, k(X.value, (a, s) => (n(), r("g", {
|
|
852
859
|
key: `ds-${s}`
|
|
853
860
|
}, [
|
|
854
861
|
(n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("g", {
|
|
@@ -856,7 +863,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
856
863
|
}, [
|
|
857
864
|
t.$slots.pattern ? (n(), r("g", Ja, [
|
|
858
865
|
y("defs", null, [
|
|
859
|
-
p(t.$slots, "pattern",
|
|
866
|
+
p(t.$slots, "pattern", Te({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
|
|
860
867
|
])
|
|
861
868
|
])) : h("", !0),
|
|
862
869
|
y("path", {
|
|
@@ -867,7 +874,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
867
874
|
style: w({
|
|
868
875
|
opacity: e.value.style.chart.areas.opacity
|
|
869
876
|
})
|
|
870
|
-
}, null, 12,
|
|
877
|
+
}, null, 12, Qa),
|
|
871
878
|
y("path", {
|
|
872
879
|
fill: "none",
|
|
873
880
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -880,7 +887,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
880
887
|
strokeDasharray: l.pathLength,
|
|
881
888
|
strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
|
|
882
889
|
})
|
|
883
|
-
}, null, 14,
|
|
890
|
+
}, null, 14, Ka),
|
|
884
891
|
y("path", {
|
|
885
892
|
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,
|
|
886
893
|
stroke: "none",
|
|
@@ -908,7 +915,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
908
915
|
y1: _.y,
|
|
909
916
|
x2: _.x,
|
|
910
917
|
y2: _.zero,
|
|
911
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
918
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ga)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
912
919
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
913
920
|
"stroke-linecap": "round",
|
|
914
921
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
@@ -937,9 +944,9 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
937
944
|
style: w({
|
|
938
945
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
939
946
|
}),
|
|
940
|
-
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s ||
|
|
941
|
-
onMouseenter: (l) =>
|
|
942
|
-
onMouseleave:
|
|
947
|
+
"text-decoration": e.value.style.chart.dialog.show && (Ae.value === s || B.value && a.uid === B.value.uid) ? "underline" : "",
|
|
948
|
+
onMouseenter: (l) => Bt(s),
|
|
949
|
+
onMouseleave: Ht,
|
|
943
950
|
onClick: (l) => Et(a)
|
|
944
951
|
}, R(a.name), 45, ll)
|
|
945
952
|
]))), 128)),
|
|
@@ -948,8 +955,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
948
955
|
ref_key: "timeLabelsEls",
|
|
949
956
|
ref: ye
|
|
950
957
|
}, [
|
|
951
|
-
(n(!0), r(m, null, k(
|
|
952
|
-
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 ===
|
|
958
|
+
(n(!0), r(m, null, k(H.value, (a, s) => p(t.$slots, "time-label", Te({ ref_for: !0 }, {
|
|
959
|
+
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 === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
953
960
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
954
961
|
content: a.label,
|
|
955
962
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -958,7 +965,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
958
965
|
x: a.selectorX,
|
|
959
966
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
960
967
|
}), () => [
|
|
961
|
-
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 ===
|
|
968
|
+
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 === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", ol, [
|
|
962
969
|
String(a.label).includes(`
|
|
963
970
|
`) ? (n(), r("text", {
|
|
964
971
|
key: 1,
|
|
@@ -971,7 +978,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
971
978
|
style: w({
|
|
972
979
|
opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
|
|
973
980
|
}),
|
|
974
|
-
innerHTML: u(
|
|
981
|
+
innerHTML: u(fa)({
|
|
975
982
|
content: String(a.label),
|
|
976
983
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
977
984
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -994,13 +1001,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
994
1001
|
], !0)), 256))
|
|
995
1002
|
], 512)) : h("", !0),
|
|
996
1003
|
y("g", null, [
|
|
997
|
-
(n(!0), r(m, null, k(
|
|
1004
|
+
(n(!0), r(m, null, k(H.value, (a, s) => (n(), r("rect", {
|
|
998
1005
|
x: a.x,
|
|
999
1006
|
y: a.y,
|
|
1000
1007
|
width: a.width < 0 ? 0.1 : a.width,
|
|
1001
1008
|
height: a.height < 0 ? 0.1 : a.height,
|
|
1002
1009
|
fill: "transparent",
|
|
1003
|
-
onMouseenter: (l) =>
|
|
1010
|
+
onMouseenter: (l) => Lt(a),
|
|
1004
1011
|
onMouseleave: (l) => zt(a),
|
|
1005
1012
|
onClick: () => Dt(a)
|
|
1006
1013
|
}, null, 40, rl))), 256)),
|
|
@@ -1016,7 +1023,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1016
1023
|
"stroke-linecap": "round",
|
|
1017
1024
|
style: { pointerEvents: "none" }
|
|
1018
1025
|
}, null, 8, ul)) : h("", !0),
|
|
1019
|
-
d.value ? (n(!0), r(m, { key: 1 }, k(
|
|
1026
|
+
d.value ? (n(!0), r(m, { key: 1 }, k(X.value, (a) => (n(), r(m, null, [
|
|
1020
1027
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1021
1028
|
(n(!0), r(m, null, k(s.plots, (l, v) => (n(), r(m, null, [
|
|
1022
1029
|
d.value && d.value.index === v ? (n(), r("circle", {
|
|
@@ -1090,7 +1097,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1090
1097
|
ref_key: "chartLegend",
|
|
1091
1098
|
ref: De
|
|
1092
1099
|
}, [
|
|
1093
|
-
e.value.style.chart.legend.show ? (n(),
|
|
1100
|
+
e.value.style.chart.legend.show ? (n(), S(za, {
|
|
1094
1101
|
key: `legend_${he.value}`,
|
|
1095
1102
|
legendSet: te.value,
|
|
1096
1103
|
config: Rt.value,
|
|
@@ -1108,7 +1115,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1108
1115
|
t.$slots.pattern ? {
|
|
1109
1116
|
name: "legend-pattern",
|
|
1110
1117
|
fn: g(({ legend: a, index: s }) => [
|
|
1111
|
-
|
|
1118
|
+
Se(Ia, {
|
|
1112
1119
|
shape: a.shape,
|
|
1113
1120
|
radius: 30,
|
|
1114
1121
|
stroke: "none",
|
|
@@ -1129,13 +1136,13 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1129
1136
|
}, [
|
|
1130
1137
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1131
1138
|
], 512)) : h("", !0),
|
|
1132
|
-
U.value && e.value.userOptions.buttons.table ? (n(),
|
|
1139
|
+
U.value && e.value.userOptions.buttons.table ? (n(), S(ra(j.value.component), Te({ key: 6 }, j.value.props, {
|
|
1133
1140
|
ref_key: "tableUnit",
|
|
1134
1141
|
ref: V,
|
|
1135
1142
|
onClose: tt
|
|
1136
1143
|
}), _e({
|
|
1137
1144
|
content: g(() => [
|
|
1138
|
-
(n(),
|
|
1145
|
+
(n(), S(u(xt), {
|
|
1139
1146
|
key: `table_${$t.value}`,
|
|
1140
1147
|
colNames: le.value.colNames,
|
|
1141
1148
|
head: le.value.head,
|
|
@@ -1180,7 +1187,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1180
1187
|
class: "vue-ui-user-options-button",
|
|
1181
1188
|
onClick: o[1] || (o[1] = (a) => we(e.value.userOptions.callbacks.csv))
|
|
1182
1189
|
}, [
|
|
1183
|
-
|
|
1190
|
+
Se(u(pt), {
|
|
1184
1191
|
name: "excel",
|
|
1185
1192
|
stroke: j.value.props.color
|
|
1186
1193
|
}, null, 8, ["stroke"])
|
|
@@ -1189,11 +1196,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1189
1196
|
key: "1"
|
|
1190
1197
|
} : void 0
|
|
1191
1198
|
]), 1040)) : h("", !0),
|
|
1192
|
-
e.value.style.chart.dialog.show ? (n(),
|
|
1199
|
+
e.value.style.chart.dialog.show ? (n(), S(u(Le), {
|
|
1193
1200
|
key: 7,
|
|
1194
1201
|
ref_key: "dialog",
|
|
1195
1202
|
ref: de,
|
|
1196
|
-
onClose: o[2] || (o[2] = (a) =>
|
|
1203
|
+
onClose: o[2] || (o[2] = (a) => B.value = null),
|
|
1197
1204
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1198
1205
|
color: e.value.style.chart.dialog.color,
|
|
1199
1206
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
@@ -1203,21 +1210,21 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1203
1210
|
withPadding: ""
|
|
1204
1211
|
}, {
|
|
1205
1212
|
title: g(() => [
|
|
1206
|
-
Pe(R(
|
|
1213
|
+
Pe(R(B.value.name), 1)
|
|
1207
1214
|
]),
|
|
1208
1215
|
content: g(() => [
|
|
1209
|
-
|
|
1216
|
+
B.value ? (n(), S(u(mt), {
|
|
1210
1217
|
key: 0,
|
|
1211
|
-
config:
|
|
1212
|
-
dataset:
|
|
1218
|
+
config: Qe.value,
|
|
1219
|
+
dataset: Ke.value
|
|
1213
1220
|
}, null, 8, ["config", "dataset"])) : h("", !0)
|
|
1214
1221
|
]),
|
|
1215
1222
|
_: 1
|
|
1216
1223
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1217
|
-
u(G) ? (n(),
|
|
1224
|
+
u(G) ? (n(), S($a, { key: 8 })) : h("", !0)
|
|
1218
1225
|
], 46, Ra));
|
|
1219
1226
|
}
|
|
1220
|
-
},
|
|
1227
|
+
}, Ll = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-0a6ef1d2"]]);
|
|
1221
1228
|
export {
|
|
1222
|
-
|
|
1229
|
+
Ll as default
|
|
1223
1230
|
};
|