vue-data-ui 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Me, t as va, e as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as _a, a as ft } from "./useNestedProp-
|
|
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-CReNavA0.js";
|
|
5
5
|
import { u as Sa, B as Ta } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Pa } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as Oa } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -11,11 +11,11 @@ import { u as za } from "./useChartAccessibility-9icAAmYg.js";
|
|
|
11
11
|
import { u as Da } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
12
|
import { t as Ia } from "./themes-AUNCOb2G.js";
|
|
13
13
|
import Ra from "./Legend-G6GMcdAc.js";
|
|
14
|
-
import Na from "./Title-
|
|
14
|
+
import Na from "./Title-BzH_LEA3.js";
|
|
15
15
|
import { _ as Fa } from "./Shape-CNXKB8O0.js";
|
|
16
16
|
import Ea from "./img-BecE5qXd.js";
|
|
17
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"],
|
|
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
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, gl = ["onClick"], yl = ["innerHTML"], pl = {
|
|
@@ -36,29 +36,29 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
38
|
setup(gt, { expose: yt, emit: pt }) {
|
|
39
|
-
const mt =
|
|
39
|
+
const mt = z(() => import("./vue-ui-xy-Cz2qIEfi.js")), bt = z(() => import("./BaseIcon-BmMbm4d0.js")), xt = z(() => import("./vue-ui-accordion-BmFTVF1a.js")), kt = z(() => import("./DataTable-BT7VF2ua.js")), At = z(() => import("./PenAndPaper-SZQIAgkg.js")), Ct = z(() => import("./UserOptions-CGnQt6Fd.js")), wt = z(() => import("./PackageVersion-Y7t79Jtq.js")), ze = z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_ridgeline: $t } = _a(), H = gt, W = c({
|
|
40
40
|
get() {
|
|
41
|
-
return Array.isArray(
|
|
41
|
+
return Array.isArray(I.value) && I.value.length > 0;
|
|
42
42
|
},
|
|
43
43
|
set(t) {
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
|
-
}), ve = pt, _ = i(null), De = i(null), Ie = i(null),
|
|
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
47
|
function pe() {
|
|
48
48
|
const t = ft({
|
|
49
|
-
userConfig:
|
|
49
|
+
userConfig: H.config,
|
|
50
50
|
defaultConfig: $t
|
|
51
51
|
});
|
|
52
52
|
return t.theme ? {
|
|
53
53
|
...ft({
|
|
54
|
-
userConfig: Ia.vue_ui_ridgeline[t.theme] ||
|
|
54
|
+
userConfig: Ia.vue_ui_ridgeline[t.theme] || H.config,
|
|
55
55
|
defaultConfig: t
|
|
56
56
|
}),
|
|
57
57
|
customPalette: xa[t.theme] || ue
|
|
58
58
|
} : t;
|
|
59
59
|
}
|
|
60
|
-
const e = i(pe()), { loading:
|
|
61
|
-
...ua(
|
|
60
|
+
const e = i(pe()), { loading: j, FINAL_DATASET: I, manualLoading: me } = Sa({
|
|
61
|
+
...ua(H),
|
|
62
62
|
FINAL_CONFIG: e,
|
|
63
63
|
prepareConfig: pe,
|
|
64
64
|
skeletonDataset: [
|
|
@@ -196,22 +196,22 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
196
196
|
e.value.style.chart.areas.height,
|
|
197
197
|
e.value.style.chart.areas.rowHeight
|
|
198
198
|
)), {
|
|
199
|
-
userOptionsVisible:
|
|
199
|
+
userOptionsVisible: ae,
|
|
200
200
|
setUserOptionsVisibility: He,
|
|
201
201
|
keepUserOptionState: Xe
|
|
202
|
-
} = La({ config: e.value }), { svgRef:
|
|
202
|
+
} = La({ config: e.value }), { svgRef: le } = za({ config: e.value.style.chart.title }), be = c(() => !!e.value.debug);
|
|
203
203
|
function Ue() {
|
|
204
|
-
const t =
|
|
204
|
+
const t = I.value || [];
|
|
205
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
206
206
|
Le({ componentName: "VueUiRidgeline", type: "dataset", debug: be.value }), me.value = !0;
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
if (t.forEach((l, a) => {
|
|
210
|
-
|
|
210
|
+
dt({
|
|
211
211
|
datasetObject: l,
|
|
212
212
|
requiredAttributes: ["name", "datapoints"]
|
|
213
213
|
}).forEach((s) => {
|
|
214
|
-
|
|
214
|
+
W.value = !1, Le({
|
|
215
215
|
componentName: "VueUiRidgeline",
|
|
216
216
|
type: "datasetSerieAttribute",
|
|
217
217
|
property: s,
|
|
@@ -219,14 +219,14 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
219
219
|
debug: be.value
|
|
220
220
|
});
|
|
221
221
|
}), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
|
|
222
|
-
|
|
222
|
+
dt({
|
|
223
223
|
datasetObject: s,
|
|
224
224
|
requiredAttributes: ["name", "values"]
|
|
225
|
-
}).forEach((
|
|
226
|
-
|
|
225
|
+
}).forEach((d) => {
|
|
226
|
+
W.value = !1, Le({
|
|
227
227
|
componentName: "VueUiRidgeline",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
|
-
property: `datapoint.${
|
|
229
|
+
property: `datapoint.${d}`,
|
|
230
230
|
index: `${a}-${o}`,
|
|
231
231
|
debug: be.value
|
|
232
232
|
});
|
|
@@ -235,8 +235,8 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
235
235
|
}), St.value = t.length, C.value = Math.min(
|
|
236
236
|
e.value.style.chart.areas.height,
|
|
237
237
|
e.value.style.chart.areas.rowHeight
|
|
238
|
-
), ka(
|
|
239
|
-
const l =
|
|
238
|
+
), ka(H.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
|
+
const l = ht(() => {
|
|
240
240
|
const { width: a, height: s } = $a({
|
|
241
241
|
chart: _.value,
|
|
242
242
|
title: e.value.style.chart.title.text ? De.value : null,
|
|
@@ -249,74 +249,74 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
249
249
|
Ee.value = a, C.value = t.length ? s / t.length : 0, Be.value = s - 12;
|
|
250
250
|
});
|
|
251
251
|
});
|
|
252
|
-
|
|
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
253
|
}
|
|
254
254
|
}
|
|
255
255
|
it(() => {
|
|
256
|
-
|
|
256
|
+
M.value && (D.value && M.value.unobserve(D.value), M.value.disconnect());
|
|
257
257
|
});
|
|
258
258
|
const { isPrinting: Ve, isImaging: Ge, generatePdf: We, generateImage: Ye } = Pa({
|
|
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
|
-
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = c(() =>
|
|
262
|
+
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = c(() => da(e.value.customPalette)), R = i({
|
|
263
263
|
showTable: e.value.table.show
|
|
264
264
|
});
|
|
265
|
-
|
|
266
|
-
() =>
|
|
265
|
+
te(
|
|
266
|
+
() => I.value,
|
|
267
267
|
async (t) => {
|
|
268
|
-
Array.isArray(t) && t.length && (
|
|
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
269
|
},
|
|
270
270
|
{ deep: !0, immediate: !0 }
|
|
271
|
-
),
|
|
271
|
+
), te(() => H.dataset, (t) => {
|
|
272
272
|
Array.isArray(t) && t.length > 0 && (me.value = !1);
|
|
273
|
-
}, { deep: !0 }),
|
|
274
|
-
() =>
|
|
273
|
+
}, { deep: !0 }), te(
|
|
274
|
+
() => j.value,
|
|
275
275
|
async (t) => {
|
|
276
276
|
t || (await _e(), Ue());
|
|
277
277
|
},
|
|
278
278
|
{ immediate: !0 }
|
|
279
|
-
),
|
|
280
|
-
() =>
|
|
279
|
+
), te(
|
|
280
|
+
() => H.config,
|
|
281
281
|
() => {
|
|
282
|
-
e.value = pe(
|
|
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
283
|
},
|
|
284
284
|
{ deep: !0 }
|
|
285
285
|
);
|
|
286
286
|
const xe = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
287
|
-
function
|
|
288
|
-
w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t), ve("selectLegend",
|
|
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
289
|
}
|
|
290
290
|
function je(t) {
|
|
291
|
-
if (!
|
|
291
|
+
if (!G.value.length)
|
|
292
292
|
return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
|
|
293
|
-
const l =
|
|
293
|
+
const l = G.value.find((a) => a.name === t);
|
|
294
294
|
return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
|
|
295
295
|
}
|
|
296
296
|
function Ot(t) {
|
|
297
297
|
const l = je(t);
|
|
298
|
-
l !== null && w.value.includes(l.id) &&
|
|
298
|
+
l !== null && w.value.includes(l.id) && oe(l.id);
|
|
299
299
|
}
|
|
300
300
|
function Mt(t) {
|
|
301
301
|
const l = je(t);
|
|
302
|
-
l !== null && (w.value.includes(l.id) ||
|
|
302
|
+
l !== null && (w.value.includes(l.id) || oe(l.id));
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const L = c(() => W.value ? (I.value || []).map((t) => ({
|
|
305
305
|
...t,
|
|
306
306
|
labelLen: Et(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
307
307
|
uid: Me(),
|
|
308
308
|
datapoints: t.datapoints.map((l, a) => {
|
|
309
|
-
const s = l.color ?
|
|
309
|
+
const s = l.color ? ha(l.color) : Pt.value[a] || ue[a] || ue[a % ue.length], o = ct(l.name);
|
|
310
310
|
return { ...l, color: s, id: o };
|
|
311
311
|
})
|
|
312
|
-
})) : []), qe = c(() => e.value.style.chart.padding.top + C.value * (
|
|
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
313
|
const t = e.value.style.chart.padding;
|
|
314
314
|
return {
|
|
315
315
|
width: Ee.value,
|
|
316
316
|
height: qe.value,
|
|
317
317
|
padding: t
|
|
318
318
|
};
|
|
319
|
-
}), Lt = c(() =>
|
|
319
|
+
}), Lt = c(() => p.value.width), zt = c(() => p.value.height), ke = i(0), Dt = ht((t) => {
|
|
320
320
|
ke.value = t;
|
|
321
321
|
}, 100);
|
|
322
322
|
ia((t) => {
|
|
@@ -330,26 +330,26 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
330
330
|
ke.value = 0;
|
|
331
331
|
});
|
|
332
332
|
const b = c(() => ({
|
|
333
|
-
fullHeight:
|
|
334
|
-
top:
|
|
335
|
-
left:
|
|
336
|
-
right:
|
|
337
|
-
bottom:
|
|
338
|
-
width:
|
|
339
|
-
})),
|
|
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
340
|
values: e.value.style.chart.xAxis.labels.values,
|
|
341
|
-
maxDatapoints:
|
|
341
|
+
maxDatapoints: q.value,
|
|
342
342
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
343
343
|
start: 0,
|
|
344
344
|
end: e.value.style.chart.xAxis.labels.values.length
|
|
345
|
-
})),
|
|
346
|
-
const t = Math.max(...
|
|
347
|
-
for (let o = 0; o <
|
|
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
348
|
s.push({
|
|
349
349
|
selectorX: l + a * o,
|
|
350
350
|
x: l + a * o - a / 2,
|
|
351
351
|
y: b.value.top,
|
|
352
|
-
label: e.value.style.chart.xAxis.labels.values[o] ?
|
|
352
|
+
label: e.value.style.chart.xAxis.labels.values[o] ? J.value[o].text : "",
|
|
353
353
|
index: o,
|
|
354
354
|
width: a,
|
|
355
355
|
height: qe.value
|
|
@@ -357,18 +357,18 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
357
357
|
return s;
|
|
358
358
|
});
|
|
359
359
|
function Ae(t) {
|
|
360
|
-
return
|
|
360
|
+
return L.value.map((l) => l.datapoints.map((a) => ({
|
|
361
361
|
dp: a,
|
|
362
362
|
selected: a.values[t.index]
|
|
363
363
|
})));
|
|
364
364
|
}
|
|
365
365
|
function It(t) {
|
|
366
|
-
|
|
366
|
+
g.value = t;
|
|
367
367
|
const l = Ae(t);
|
|
368
368
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
|
|
369
369
|
}
|
|
370
370
|
function Rt(t) {
|
|
371
|
-
|
|
371
|
+
g.value = null;
|
|
372
372
|
const l = Ae(t);
|
|
373
373
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
|
|
374
374
|
}
|
|
@@ -384,40 +384,40 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
384
384
|
return t + s > b.value.right;
|
|
385
385
|
}
|
|
386
386
|
function Et(t, l, a = "sans-serif") {
|
|
387
|
-
const o = document.createElement("canvas").getContext("2d"),
|
|
388
|
-
return o.font = `${
|
|
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
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const V = c(() => {
|
|
391
391
|
C.value;
|
|
392
|
-
const t = Math.max(...
|
|
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
393
|
function ot(x) {
|
|
394
394
|
return isNaN(x / S) ? 0 : x / S;
|
|
395
395
|
}
|
|
396
|
-
return
|
|
397
|
-
const st = b.value.top + C.value *
|
|
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
398
|
return {
|
|
399
399
|
...x,
|
|
400
400
|
label: {
|
|
401
401
|
x: s - e.value.style.chart.yAxis.labels.fontSize,
|
|
402
|
-
y:
|
|
402
|
+
y: F
|
|
403
403
|
},
|
|
404
|
-
datapoints: x.datapoints.map((
|
|
405
|
-
const
|
|
406
|
-
const oa = isNaN(
|
|
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
407
|
return {
|
|
408
408
|
x: sa,
|
|
409
409
|
y: na,
|
|
410
|
-
value:
|
|
410
|
+
value: ee,
|
|
411
411
|
isMaxPoint: ra,
|
|
412
|
-
zero:
|
|
412
|
+
zero: F
|
|
413
413
|
};
|
|
414
|
-
}), Zt = `${fa(
|
|
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
415
|
e.value.style.chart.areas.smooth ? nt : rt
|
|
416
416
|
);
|
|
417
417
|
return {
|
|
418
|
-
...
|
|
418
|
+
...Z,
|
|
419
419
|
uid: Me(),
|
|
420
|
-
plots:
|
|
420
|
+
plots: E,
|
|
421
421
|
smoothPath: Zt,
|
|
422
422
|
straightPath: ea,
|
|
423
423
|
zeroPath: ta,
|
|
@@ -425,7 +425,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
425
425
|
smoothPathRidge: nt,
|
|
426
426
|
straightPathRidge: rt
|
|
427
427
|
};
|
|
428
|
-
}).filter((
|
|
428
|
+
}).filter((Z) => !w.value.includes(Z.id))
|
|
429
429
|
};
|
|
430
430
|
});
|
|
431
431
|
}), w = i([]);
|
|
@@ -433,29 +433,29 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
433
433
|
const l = /* @__PURE__ */ new Map();
|
|
434
434
|
return t.forEach((a) => {
|
|
435
435
|
a.datapoints.forEach((s, o) => {
|
|
436
|
-
const
|
|
437
|
-
l.has(
|
|
438
|
-
id:
|
|
436
|
+
const d = ct(s.name);
|
|
437
|
+
l.has(d) || l.set(d, {
|
|
438
|
+
id: d,
|
|
439
439
|
name: s.name,
|
|
440
440
|
color: s.color,
|
|
441
441
|
shape: "circle",
|
|
442
|
-
segregate: () =>
|
|
443
|
-
isSegregated: w.value.includes(
|
|
444
|
-
opacity: w.value.includes(
|
|
442
|
+
segregate: () => oe(d),
|
|
443
|
+
isSegregated: w.value.includes(d),
|
|
444
|
+
opacity: w.value.includes(d) ? 0.5 : 1
|
|
445
445
|
});
|
|
446
446
|
});
|
|
447
447
|
}), Array.from(l.values());
|
|
448
448
|
}
|
|
449
|
-
const
|
|
449
|
+
const G = c(() => Bt(L.value)), Ht = c(() => ({
|
|
450
450
|
cy: "donut-div-legend",
|
|
451
451
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
452
452
|
color: e.value.style.chart.legend.color,
|
|
453
453
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
454
454
|
paddingBottom: 12,
|
|
455
455
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
456
|
-
})),
|
|
456
|
+
})), N = i(!1);
|
|
457
457
|
function Qe(t) {
|
|
458
|
-
|
|
458
|
+
N.value = t, Fe.value += 1;
|
|
459
459
|
}
|
|
460
460
|
const Ke = i({}), Ze = i([]);
|
|
461
461
|
function Xt(t) {
|
|
@@ -466,7 +466,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
466
466
|
useArea: !0,
|
|
467
467
|
smooth: e.value.style.chart.areas.smooth,
|
|
468
468
|
series: l.values
|
|
469
|
-
})),
|
|
469
|
+
})), X.value = t, Ke.value = wa({
|
|
470
470
|
...e.value.style.chart.dialog.xyChart,
|
|
471
471
|
responsive: !0,
|
|
472
472
|
// Overriding
|
|
@@ -505,14 +505,14 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
505
505
|
function Vt() {
|
|
506
506
|
Ce.value = null;
|
|
507
507
|
}
|
|
508
|
-
const
|
|
508
|
+
const se = i(!1);
|
|
509
509
|
function we() {
|
|
510
|
-
|
|
510
|
+
se.value = !se.value;
|
|
511
511
|
}
|
|
512
512
|
function et() {
|
|
513
|
-
|
|
513
|
+
R.value.showTable = !R.value.showTable;
|
|
514
514
|
}
|
|
515
|
-
const tt = c(() => ({ body:
|
|
515
|
+
const tt = c(() => ({ body: V.value.flatMap((a) => a.datapoints.flatMap((s) => ({
|
|
516
516
|
...s,
|
|
517
517
|
rowName: `${a.name}: ${s.name}`
|
|
518
518
|
}))).map((a) => [
|
|
@@ -521,10 +521,10 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
521
521
|
color: a.color
|
|
522
522
|
},
|
|
523
523
|
...a.values
|
|
524
|
-
]) })),
|
|
524
|
+
]) })), ne = c(() => {
|
|
525
525
|
const t = [
|
|
526
526
|
e.value.table.columnNames.series,
|
|
527
|
-
...
|
|
527
|
+
...J.value.map((s) => s.text)
|
|
528
528
|
], l = {
|
|
529
529
|
th: {
|
|
530
530
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -541,7 +541,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
541
541
|
return {
|
|
542
542
|
colNames: [
|
|
543
543
|
e.value.table.columnNames.series,
|
|
544
|
-
...
|
|
544
|
+
...J.value.map((s) => s.text)
|
|
545
545
|
],
|
|
546
546
|
head: t,
|
|
547
547
|
body: tt.value.body,
|
|
@@ -551,8 +551,8 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
551
551
|
function $e(t = null) {
|
|
552
552
|
_e(() => {
|
|
553
553
|
const l = [
|
|
554
|
-
[e.value.table.columnNames.series, ...
|
|
555
|
-
...tt.value.body.map((o,
|
|
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
556
|
], a = [
|
|
557
557
|
[e.value.style.chart.title.text],
|
|
558
558
|
[e.value.style.chart.title.subtitle.text]
|
|
@@ -564,24 +564,24 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
566
|
function Gt() {
|
|
567
|
-
return
|
|
567
|
+
return V.value;
|
|
568
568
|
}
|
|
569
569
|
async function Wt({ scale: t = 2 } = {}) {
|
|
570
570
|
if (!_.value) return;
|
|
571
|
-
const { width: l, height: a } = _.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64:
|
|
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
572
|
return {
|
|
573
573
|
imageUri: o,
|
|
574
|
-
base64:
|
|
574
|
+
base64: d,
|
|
575
575
|
title: e.value.style.chart.title.text,
|
|
576
576
|
width: l,
|
|
577
577
|
height: a,
|
|
578
578
|
aspectRatio: s
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
const Yt = c(() => ({ min: 0, max:
|
|
581
|
+
const Yt = c(() => ({ min: 0, max: q.value }));
|
|
582
582
|
Da({
|
|
583
583
|
timeLabelsEls: ge,
|
|
584
|
-
timeLabels:
|
|
584
|
+
timeLabels: J,
|
|
585
585
|
slicer: Yt,
|
|
586
586
|
configRef: e,
|
|
587
587
|
rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
|
|
@@ -592,8 +592,8 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
592
592
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
593
593
|
angle: e.value.style.chart.xAxis.labels.autoRotate.angle
|
|
594
594
|
});
|
|
595
|
-
const
|
|
596
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
595
|
+
const Q = c(() => {
|
|
596
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = R.value.showTable;
|
|
597
597
|
return {
|
|
598
598
|
component: t ? ze : xt,
|
|
599
599
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -602,7 +602,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
602
602
|
color: e.value.table.th.color,
|
|
603
603
|
headerColor: e.value.table.th.color,
|
|
604
604
|
headerBg: e.value.table.th.backgroundColor,
|
|
605
|
-
isFullscreen:
|
|
605
|
+
isFullscreen: N.value,
|
|
606
606
|
fullscreenParent: _.value,
|
|
607
607
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
608
608
|
} : {
|
|
@@ -622,20 +622,20 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
622
622
|
}
|
|
623
623
|
};
|
|
624
624
|
});
|
|
625
|
-
|
|
626
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
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
627
|
});
|
|
628
628
|
function at() {
|
|
629
|
-
|
|
629
|
+
R.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
|
|
630
630
|
}
|
|
631
631
|
const jt = c(() => e.value.style.chart.backgroundColor), qt = c(() => ({
|
|
632
632
|
...e.value.style.chart.legend,
|
|
633
633
|
position: "bottom"
|
|
634
634
|
})), Jt = c(() => e.value.style.chart.title), { exportSvg: Qt, getSvg: Kt } = Oa({
|
|
635
|
-
svg:
|
|
635
|
+
svg: le,
|
|
636
636
|
title: Jt,
|
|
637
637
|
legend: qt,
|
|
638
|
-
legendItems:
|
|
638
|
+
legendItems: G,
|
|
639
639
|
backgroundColor: jt
|
|
640
640
|
});
|
|
641
641
|
async function lt({ isCb: t }) {
|
|
@@ -660,7 +660,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
660
660
|
}), (t, l) => (n(), r("div", {
|
|
661
661
|
ref_key: "ridgelineChart",
|
|
662
662
|
ref: _,
|
|
663
|
-
class:
|
|
663
|
+
class: re(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
664
664
|
id: `vue-ui-ridgeline_${A.value}`,
|
|
665
665
|
style: $({
|
|
666
666
|
fontFamily: e.value.style.fontFamily,
|
|
@@ -672,15 +672,35 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
672
672
|
onMouseenter: l[3] || (l[3] = () => u(He)(!0)),
|
|
673
673
|
onMouseleave: l[4] || (l[4] = () => u(He)(!1))
|
|
674
674
|
}, [
|
|
675
|
-
e.value.userOptions.buttons.annotator && u(
|
|
675
|
+
e.value.userOptions.buttons.annotator && u(le) ? (n(), T(u(At), {
|
|
676
676
|
key: 0,
|
|
677
677
|
color: e.value.style.chart.color,
|
|
678
678
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
679
|
-
active:
|
|
680
|
-
svgRef: u(
|
|
679
|
+
active: se.value,
|
|
680
|
+
svgRef: u(le),
|
|
681
681
|
onClose: we
|
|
682
|
-
},
|
|
683
|
-
|
|
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),
|
|
684
704
|
Tt.value ? (n(), r("div", {
|
|
685
705
|
key: 1,
|
|
686
706
|
ref_key: "noTitle",
|
|
@@ -695,7 +715,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
695
715
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
696
716
|
}, [
|
|
697
717
|
(n(), T(Na, {
|
|
698
|
-
key: `title_${
|
|
718
|
+
key: `title_${de.value}`,
|
|
699
719
|
config: {
|
|
700
720
|
title: {
|
|
701
721
|
cy: "ridgeline-div-title",
|
|
@@ -708,7 +728,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
708
728
|
}
|
|
709
729
|
}, null, 8, ["config"]))
|
|
710
730
|
], 512)) : h("", !0),
|
|
711
|
-
e.value.userOptions.show &&
|
|
731
|
+
e.value.userOptions.show && W.value && (u(Xe) || u(ae)) ? (n(), T(u(Ct), {
|
|
712
732
|
ref_key: "userOptionsRef",
|
|
713
733
|
ref: ye,
|
|
714
734
|
key: `user_option_${Fe.value}`,
|
|
@@ -726,16 +746,16 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
726
746
|
hasTable: e.value.userOptions.buttons.table,
|
|
727
747
|
hasLabel: !1,
|
|
728
748
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
729
|
-
isFullscreen:
|
|
749
|
+
isFullscreen: N.value,
|
|
730
750
|
printScale: e.value.userOptions.print.scale,
|
|
731
751
|
chartElement: _.value,
|
|
732
752
|
position: e.value.userOptions.position,
|
|
733
753
|
isTooltip: !1,
|
|
734
754
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
735
755
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
736
|
-
isAnnotation:
|
|
756
|
+
isAnnotation: se.value,
|
|
737
757
|
tableDialog: e.value.table.useDialog,
|
|
738
|
-
style: $({ visibility: u(Xe) ? u(
|
|
758
|
+
style: $({ visibility: u(Xe) ? u(ae) ? "visible" : "hidden" : "visible" }),
|
|
739
759
|
onToggleFullscreen: Qe,
|
|
740
760
|
onGeneratePdf: u(We),
|
|
741
761
|
onGenerateCsv: $e,
|
|
@@ -746,108 +766,108 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
746
766
|
}, Se({ _: 2 }, [
|
|
747
767
|
t.$slots.menuIcon ? {
|
|
748
768
|
name: "menuIcon",
|
|
749
|
-
fn:
|
|
750
|
-
|
|
769
|
+
fn: v(({ isOpen: a, color: s }) => [
|
|
770
|
+
f(t.$slots, "menuIcon", P(O({ isOpen: a, color: s })), void 0, !0)
|
|
751
771
|
]),
|
|
752
772
|
key: "0"
|
|
753
773
|
} : void 0,
|
|
754
774
|
t.$slots.optionTooltip ? {
|
|
755
775
|
name: "optionTooltip",
|
|
756
|
-
fn:
|
|
757
|
-
|
|
776
|
+
fn: v(() => [
|
|
777
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
758
778
|
]),
|
|
759
779
|
key: "1"
|
|
760
780
|
} : void 0,
|
|
761
781
|
t.$slots.optionPdf ? {
|
|
762
782
|
name: "optionPdf",
|
|
763
|
-
fn:
|
|
764
|
-
|
|
783
|
+
fn: v(() => [
|
|
784
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
765
785
|
]),
|
|
766
786
|
key: "2"
|
|
767
787
|
} : void 0,
|
|
768
788
|
t.$slots.optionCsv ? {
|
|
769
789
|
name: "optionCsv",
|
|
770
|
-
fn:
|
|
771
|
-
|
|
790
|
+
fn: v(() => [
|
|
791
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
772
792
|
]),
|
|
773
793
|
key: "3"
|
|
774
794
|
} : void 0,
|
|
775
795
|
t.$slots.optionImg ? {
|
|
776
796
|
name: "optionImg",
|
|
777
|
-
fn:
|
|
778
|
-
|
|
797
|
+
fn: v(() => [
|
|
798
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
779
799
|
]),
|
|
780
800
|
key: "4"
|
|
781
801
|
} : void 0,
|
|
782
802
|
t.$slots.optionSvg ? {
|
|
783
803
|
name: "optionSvg",
|
|
784
|
-
fn:
|
|
785
|
-
|
|
804
|
+
fn: v(() => [
|
|
805
|
+
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
786
806
|
]),
|
|
787
807
|
key: "5"
|
|
788
808
|
} : void 0,
|
|
789
809
|
t.$slots.optionTable ? {
|
|
790
810
|
name: "optionTable",
|
|
791
|
-
fn:
|
|
792
|
-
|
|
811
|
+
fn: v(() => [
|
|
812
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
793
813
|
]),
|
|
794
814
|
key: "6"
|
|
795
815
|
} : void 0,
|
|
796
816
|
t.$slots.optionFullscreen ? {
|
|
797
817
|
name: "optionFullscreen",
|
|
798
|
-
fn:
|
|
799
|
-
|
|
818
|
+
fn: v(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
819
|
+
f(t.$slots, "optionFullscreen", P(O({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
800
820
|
]),
|
|
801
821
|
key: "7"
|
|
802
822
|
} : void 0,
|
|
803
823
|
t.$slots.optionAnnotator ? {
|
|
804
824
|
name: "optionAnnotator",
|
|
805
|
-
fn:
|
|
806
|
-
|
|
825
|
+
fn: v(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
826
|
+
f(t.$slots, "optionAnnotator", P(O({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
807
827
|
]),
|
|
808
828
|
key: "8"
|
|
809
829
|
} : void 0
|
|
810
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),
|
|
811
831
|
(n(), r("svg", {
|
|
812
832
|
ref_key: "svgRef",
|
|
813
|
-
ref:
|
|
833
|
+
ref: le,
|
|
814
834
|
xmlns: u(pa),
|
|
815
|
-
class:
|
|
816
|
-
viewBox: `0 0 ${
|
|
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}`,
|
|
817
837
|
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Be.value}px; width: 100%;` : ""}`)
|
|
818
838
|
}, [
|
|
819
839
|
Te(u(wt)),
|
|
820
|
-
|
|
821
|
-
(n(!0), r(m, null, k(
|
|
840
|
+
y("defs", null, [
|
|
841
|
+
(n(!0), r(m, null, k(G.value, (a, s) => (n(), r("linearGradient", {
|
|
822
842
|
id: `gradient-${a.id}-${A.value}`,
|
|
823
843
|
x1: "50%",
|
|
824
844
|
y1: "0%",
|
|
825
845
|
x2: "50%",
|
|
826
846
|
y2: "100%"
|
|
827
847
|
}, [
|
|
828
|
-
|
|
848
|
+
y("stop", {
|
|
829
849
|
offset: "0%",
|
|
830
850
|
"stop-color": a.color,
|
|
831
851
|
"stop-opacity": "1"
|
|
832
852
|
}, null, 8, Va),
|
|
833
|
-
|
|
853
|
+
y("stop", {
|
|
834
854
|
offset: "30%",
|
|
835
855
|
"stop-color": a.color,
|
|
836
856
|
"stop-opacity": "0.7"
|
|
837
857
|
}, null, 8, Ga),
|
|
838
|
-
|
|
858
|
+
y("stop", {
|
|
839
859
|
offset: "70%",
|
|
840
860
|
"stop-color": a.color,
|
|
841
861
|
"stop-opacity": "0.3"
|
|
842
862
|
}, null, 8, Wa),
|
|
843
|
-
|
|
863
|
+
y("stop", {
|
|
844
864
|
offset: "100%",
|
|
845
865
|
"stop-color": a.color,
|
|
846
866
|
"stop-opacity": "0.1"
|
|
847
867
|
}, null, 8, Ya)
|
|
848
868
|
], 8, Ua))), 256)),
|
|
849
|
-
(n(!0), r(m, null, k(
|
|
850
|
-
(n(!0), r(m, null, k(a.datapoints, (o,
|
|
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", {
|
|
851
871
|
key: `grad${o.id}`,
|
|
852
872
|
id: `gradient-single-${A.value}-${o.uid}`,
|
|
853
873
|
x1: "50%",
|
|
@@ -855,22 +875,22 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
855
875
|
x2: "50%",
|
|
856
876
|
y2: "100%"
|
|
857
877
|
}, [
|
|
858
|
-
|
|
878
|
+
y("stop", {
|
|
859
879
|
offset: "0%",
|
|
860
880
|
"stop-color": o.color,
|
|
861
881
|
"stop-opacity": "1"
|
|
862
882
|
}, null, 8, qa),
|
|
863
|
-
|
|
883
|
+
y("stop", {
|
|
864
884
|
offset: "30%",
|
|
865
885
|
"stop-color": o.color,
|
|
866
886
|
"stop-opacity": "0.7"
|
|
867
887
|
}, null, 8, Ja),
|
|
868
|
-
|
|
888
|
+
y("stop", {
|
|
869
889
|
offset: "70%",
|
|
870
890
|
"stop-color": o.color,
|
|
871
891
|
"stop-opacity": "0.3"
|
|
872
892
|
}, null, 8, Qa),
|
|
873
|
-
|
|
893
|
+
y("stop", {
|
|
874
894
|
offset: "100%",
|
|
875
895
|
"stop-color": o.color,
|
|
876
896
|
"stop-opacity": "0.1"
|
|
@@ -878,18 +898,18 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
878
898
|
], 8, ja))), 128))
|
|
879
899
|
], 64))), 256))
|
|
880
900
|
]),
|
|
881
|
-
(n(!0), r(m, null, k(
|
|
901
|
+
(n(!0), r(m, null, k(V.value, (a, s) => (n(), r("g", {
|
|
882
902
|
key: `ds-${s}`
|
|
883
903
|
}, [
|
|
884
|
-
(n(!0), r(m, null, k(a.datapoints, (o,
|
|
904
|
+
(n(!0), r(m, null, k(a.datapoints, (o, d) => (n(), r("g", {
|
|
885
905
|
key: o.id
|
|
886
906
|
}, [
|
|
887
907
|
t.$slots.pattern ? (n(), r("g", Za, [
|
|
888
|
-
|
|
889
|
-
|
|
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)
|
|
890
910
|
])
|
|
891
911
|
])) : h("", !0),
|
|
892
|
-
|
|
912
|
+
y("path", {
|
|
893
913
|
fill: t.$slots.pattern ? `url(#pattern_${A.value}_${o.uid})` : e.value.style.chart.backgroundColor,
|
|
894
914
|
stroke: "none",
|
|
895
915
|
"stroke-linecap": "round",
|
|
@@ -898,26 +918,26 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
898
918
|
opacity: e.value.style.chart.areas.opacity
|
|
899
919
|
})
|
|
900
920
|
}, null, 12, el),
|
|
901
|
-
|
|
921
|
+
y("path", {
|
|
902
922
|
fill: "none",
|
|
903
923
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
|
|
904
924
|
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
905
925
|
d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
|
|
906
926
|
"stroke-linecap": "round",
|
|
907
927
|
"stroke-linejoin": "round",
|
|
908
|
-
class:
|
|
928
|
+
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
909
929
|
style: $({
|
|
910
930
|
strokeDasharray: o.pathLength,
|
|
911
931
|
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
912
932
|
})
|
|
913
933
|
}, null, 14, tl),
|
|
914
|
-
|
|
934
|
+
y("path", {
|
|
915
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,
|
|
916
936
|
stroke: "none",
|
|
917
937
|
d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
|
|
918
938
|
"stroke-linecap": "round",
|
|
919
939
|
"stroke-linejoin": "round",
|
|
920
|
-
class:
|
|
940
|
+
class: re({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(j) }),
|
|
921
941
|
style: $({
|
|
922
942
|
strokeDasharray: o.pathLength,
|
|
923
943
|
strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
|
|
@@ -957,7 +977,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
957
977
|
}
|
|
958
978
|
}, null, 8, sl)) : h("", !0)
|
|
959
979
|
]))), 128)),
|
|
960
|
-
|
|
980
|
+
y("text", {
|
|
961
981
|
x: a.label.x,
|
|
962
982
|
y: a.label.y,
|
|
963
983
|
"text-anchor": "end",
|
|
@@ -967,19 +987,19 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
967
987
|
style: $({
|
|
968
988
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
969
989
|
}),
|
|
970
|
-
"text-decoration": e.value.style.chart.dialog.show && (Ce.value === s ||
|
|
990
|
+
"text-decoration": e.value.style.chart.dialog.show && (Ce.value === s || X.value && a.uid === X.value.uid) ? "underline" : "",
|
|
971
991
|
onMouseenter: (o) => Ut(s),
|
|
972
992
|
onMouseleave: Vt,
|
|
973
993
|
onClick: (o) => Xt(a)
|
|
974
|
-
},
|
|
994
|
+
}, B(a.name), 45, nl)
|
|
975
995
|
]))), 128)),
|
|
976
996
|
e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
|
|
977
997
|
key: 0,
|
|
978
998
|
ref_key: "timeLabelsEls",
|
|
979
999
|
ref: ge
|
|
980
1000
|
}, [
|
|
981
|
-
(n(!0), r(m, null, k(
|
|
982
|
-
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 ===
|
|
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,
|
|
983
1003
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
984
1004
|
content: a.label,
|
|
985
1005
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -988,7 +1008,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
988
1008
|
x: a.selectorX,
|
|
989
1009
|
y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
|
|
990
1010
|
}), () => [
|
|
991
|
-
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 ===
|
|
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, [
|
|
992
1012
|
String(a.label).includes(`
|
|
993
1013
|
`) ? (n(), r("text", {
|
|
994
1014
|
key: 1,
|
|
@@ -999,7 +1019,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
999
1019
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1000
1020
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1001
1021
|
style: $({
|
|
1002
|
-
opacity:
|
|
1022
|
+
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
1003
1023
|
}),
|
|
1004
1024
|
innerHTML: u(ba)({
|
|
1005
1025
|
content: String(a.label),
|
|
@@ -1017,14 +1037,14 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1017
1037
|
transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
1018
1038
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1019
1039
|
style: $({
|
|
1020
|
-
opacity:
|
|
1040
|
+
opacity: g.value ? g.value.index === s ? 1 : 0.2 : 1
|
|
1021
1041
|
})
|
|
1022
|
-
},
|
|
1042
|
+
}, B(a.label), 13, ul))
|
|
1023
1043
|
])) : h("", !0)
|
|
1024
1044
|
], !0)), 256))
|
|
1025
1045
|
], 512)) : h("", !0),
|
|
1026
|
-
|
|
1027
|
-
(n(!0), r(m, null, k(
|
|
1046
|
+
y("g", null, [
|
|
1047
|
+
(n(!0), r(m, null, k(U.value, (a, s) => (n(), r("rect", {
|
|
1028
1048
|
x: a.x,
|
|
1029
1049
|
y: a.y,
|
|
1030
1050
|
width: a.width < 0 ? 0.1 : a.width,
|
|
@@ -1034,22 +1054,22 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1034
1054
|
onMouseleave: (o) => Rt(a),
|
|
1035
1055
|
onClick: () => Nt(a)
|
|
1036
1056
|
}, null, 40, cl))), 256)),
|
|
1037
|
-
e.value.style.chart.selector.show &&
|
|
1057
|
+
e.value.style.chart.selector.show && g.value ? (n(), r("line", {
|
|
1038
1058
|
key: 0,
|
|
1039
|
-
x1:
|
|
1040
|
-
x2:
|
|
1041
|
-
y1:
|
|
1042
|
-
y2:
|
|
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,
|
|
1043
1063
|
stroke: e.value.style.chart.selector.stroke,
|
|
1044
1064
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
1045
1065
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
1046
1066
|
"stroke-linecap": "round",
|
|
1047
1067
|
style: { pointerEvents: "none" }
|
|
1048
1068
|
}, null, 8, vl)) : h("", !0),
|
|
1049
|
-
|
|
1069
|
+
g.value ? (n(!0), r(m, { key: 1 }, k(V.value, (a) => (n(), r(m, null, [
|
|
1050
1070
|
(n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
|
|
1051
|
-
(n(!0), r(m, null, k(s.plots, (o,
|
|
1052
|
-
|
|
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", {
|
|
1053
1073
|
key: 0,
|
|
1054
1074
|
cx: o.x,
|
|
1055
1075
|
cy: o.y,
|
|
@@ -1060,8 +1080,8 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1060
1080
|
style: {
|
|
1061
1081
|
pointerEvents: "none"
|
|
1062
1082
|
}
|
|
1063
|
-
}, null, 8,
|
|
1064
|
-
|
|
1083
|
+
}, null, 8, dl)) : h("", !0),
|
|
1084
|
+
g.value && g.value.index === d ? (n(), r("text", {
|
|
1065
1085
|
key: 1,
|
|
1066
1086
|
x: Je(
|
|
1067
1087
|
o.x,
|
|
@@ -1097,7 +1117,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1097
1117
|
style: {
|
|
1098
1118
|
pointerEvents: "none"
|
|
1099
1119
|
}
|
|
1100
|
-
},
|
|
1120
|
+
}, B(u(ie)(
|
|
1101
1121
|
e.value.style.chart.selector.labels.formatter,
|
|
1102
1122
|
o.value,
|
|
1103
1123
|
u(ce)({
|
|
@@ -1106,38 +1126,38 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1106
1126
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1107
1127
|
r: e.value.style.chart.selector.labels.rounding
|
|
1108
1128
|
})
|
|
1109
|
-
)), 9,
|
|
1129
|
+
)), 9, hl)) : h("", !0)
|
|
1110
1130
|
], 64))), 256))
|
|
1111
1131
|
], 64))), 256))
|
|
1112
1132
|
], 64))), 256)) : h("", !0)
|
|
1113
1133
|
]),
|
|
1114
|
-
|
|
1134
|
+
f(t.$slots, "svg", { svg: p.value }, void 0, !0)
|
|
1115
1135
|
], 14, Xa)),
|
|
1116
1136
|
t.$slots.watermark ? (n(), r("div", fl, [
|
|
1117
|
-
|
|
1137
|
+
f(t.$slots, "watermark", P(O({ isPrinting: u(Ve) || u(Ge) })), void 0, !0)
|
|
1118
1138
|
])) : h("", !0),
|
|
1119
|
-
|
|
1139
|
+
y("div", {
|
|
1120
1140
|
ref_key: "chartLegend",
|
|
1121
1141
|
ref: Ie
|
|
1122
1142
|
}, [
|
|
1123
1143
|
e.value.style.chart.legend.show ? (n(), T(Ra, {
|
|
1124
|
-
key: `legend_${
|
|
1125
|
-
legendSet:
|
|
1144
|
+
key: `legend_${he.value}`,
|
|
1145
|
+
legendSet: G.value,
|
|
1126
1146
|
config: Ht.value,
|
|
1127
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
1147
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
1128
1148
|
}, Se({
|
|
1129
|
-
item:
|
|
1130
|
-
u(
|
|
1149
|
+
item: v(({ legend: a }) => [
|
|
1150
|
+
u(j) ? h("", !0) : (n(), r("div", {
|
|
1131
1151
|
key: 0,
|
|
1132
1152
|
style: $(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`),
|
|
1133
1153
|
onClick: (s) => a.segregate()
|
|
1134
|
-
},
|
|
1154
|
+
}, B(a.name), 13, gl))
|
|
1135
1155
|
]),
|
|
1136
1156
|
_: 2
|
|
1137
1157
|
}, [
|
|
1138
1158
|
t.$slots.pattern ? {
|
|
1139
1159
|
name: "legend-pattern",
|
|
1140
|
-
fn:
|
|
1160
|
+
fn: v(({ legend: a, index: s }) => [
|
|
1141
1161
|
Te(Fa, {
|
|
1142
1162
|
shape: a.shape,
|
|
1143
1163
|
radius: 30,
|
|
@@ -1149,7 +1169,7 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1149
1169
|
key: "0"
|
|
1150
1170
|
} : void 0
|
|
1151
1171
|
]), 1032, ["legendSet", "config"])) : h("", !0),
|
|
1152
|
-
|
|
1172
|
+
f(t.$slots, "legend", { legend: G.value }, void 0, !0)
|
|
1153
1173
|
], 512),
|
|
1154
1174
|
t.$slots.source ? (n(), r("div", {
|
|
1155
1175
|
key: 5,
|
|
@@ -1157,29 +1177,29 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1157
1177
|
ref: Re,
|
|
1158
1178
|
dir: "auto"
|
|
1159
1179
|
}, [
|
|
1160
|
-
|
|
1180
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
1161
1181
|
], 512)) : h("", !0),
|
|
1162
|
-
|
|
1182
|
+
W.value && e.value.userOptions.buttons.table ? (n(), T(ca(Q.value.component), Pe({ key: 6 }, Q.value.props, {
|
|
1163
1183
|
ref_key: "tableUnit",
|
|
1164
|
-
ref:
|
|
1184
|
+
ref: Y,
|
|
1165
1185
|
onClose: at
|
|
1166
1186
|
}), Se({
|
|
1167
|
-
content:
|
|
1187
|
+
content: v(() => [
|
|
1168
1188
|
(n(), T(u(kt), {
|
|
1169
1189
|
key: `table_${_t.value}`,
|
|
1170
|
-
colNames:
|
|
1171
|
-
head:
|
|
1172
|
-
body:
|
|
1173
|
-
config:
|
|
1174
|
-
title: e.value.table.useDialog ? "" :
|
|
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,
|
|
1175
1195
|
withCloseButton: !e.value.table.useDialog,
|
|
1176
1196
|
onClose: at
|
|
1177
1197
|
}, {
|
|
1178
|
-
th:
|
|
1179
|
-
|
|
1198
|
+
th: v(({ th: a }) => [
|
|
1199
|
+
y("div", { innerHTML: a }, null, 8, yl)
|
|
1180
1200
|
]),
|
|
1181
|
-
td:
|
|
1182
|
-
Oe(
|
|
1201
|
+
td: v(({ td: a }) => [
|
|
1202
|
+
Oe(B(a.name ? a.name : u(ie)(
|
|
1183
1203
|
e.value.style.chart.selector.labels.formatter,
|
|
1184
1204
|
a,
|
|
1185
1205
|
u(ce)({
|
|
@@ -1197,22 +1217,22 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1197
1217
|
}, [
|
|
1198
1218
|
e.value.table.useDialog ? {
|
|
1199
1219
|
name: "title",
|
|
1200
|
-
fn:
|
|
1201
|
-
Oe(
|
|
1220
|
+
fn: v(() => [
|
|
1221
|
+
Oe(B(Q.value.title), 1)
|
|
1202
1222
|
]),
|
|
1203
1223
|
key: "0"
|
|
1204
1224
|
} : void 0,
|
|
1205
1225
|
e.value.table.useDialog ? {
|
|
1206
1226
|
name: "actions",
|
|
1207
|
-
fn:
|
|
1208
|
-
|
|
1227
|
+
fn: v(() => [
|
|
1228
|
+
y("button", {
|
|
1209
1229
|
tabindex: "0",
|
|
1210
1230
|
class: "vue-ui-user-options-button",
|
|
1211
1231
|
onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv))
|
|
1212
1232
|
}, [
|
|
1213
1233
|
Te(u(bt), {
|
|
1214
1234
|
name: "excel",
|
|
1215
|
-
stroke:
|
|
1235
|
+
stroke: Q.value.props.color
|
|
1216
1236
|
}, null, 8, ["stroke"])
|
|
1217
1237
|
])
|
|
1218
1238
|
]),
|
|
@@ -1223,20 +1243,20 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1223
1243
|
key: 7,
|
|
1224
1244
|
ref_key: "dialog",
|
|
1225
1245
|
ref: fe,
|
|
1226
|
-
onClose: l[2] || (l[2] = (a) =>
|
|
1246
|
+
onClose: l[2] || (l[2] = (a) => X.value = null),
|
|
1227
1247
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1228
1248
|
color: e.value.style.chart.dialog.color,
|
|
1229
1249
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1230
1250
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1231
|
-
isFullscreen:
|
|
1251
|
+
isFullscreen: N.value,
|
|
1232
1252
|
fullscreenParent: _.value,
|
|
1233
1253
|
withPadding: ""
|
|
1234
1254
|
}, {
|
|
1235
|
-
title:
|
|
1236
|
-
Oe(
|
|
1255
|
+
title: v(() => [
|
|
1256
|
+
Oe(B(X.value.name), 1)
|
|
1237
1257
|
]),
|
|
1238
|
-
content:
|
|
1239
|
-
|
|
1258
|
+
content: v(() => [
|
|
1259
|
+
X.value ? (n(), T(u(mt), {
|
|
1240
1260
|
key: 0,
|
|
1241
1261
|
config: Ke.value,
|
|
1242
1262
|
dataset: Ze.value
|
|
@@ -1244,10 +1264,10 @@ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"],
|
|
|
1244
1264
|
]),
|
|
1245
1265
|
_: 1
|
|
1246
1266
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1247
|
-
u(
|
|
1267
|
+
u(j) ? (n(), T(Ta, { key: 8 })) : h("", !0)
|
|
1248
1268
|
], 46, Ha));
|
|
1249
1269
|
}
|
|
1250
|
-
}, Il = /* @__PURE__ */ Ba(pl, [["__scopeId", "data-v-
|
|
1270
|
+
}, Il = /* @__PURE__ */ Ba(pl, [["__scopeId", "data-v-37841d19"]]);
|
|
1251
1271
|
export {
|
|
1252
1272
|
Il as default
|
|
1253
1273
|
};
|