vue-data-ui 2.12.5 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { t as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import { _ as jt } from "./PenAndPaper-DLsvRwoD.js";
|
|
13
|
-
import { _ as Yt } from "./Shape-DICeBEtN.js";
|
|
14
|
-
import qt from "./vue-ui-skeleton-DfOIDTJM.js";
|
|
15
|
-
import { _ as Jt } from "./Title-xO1jFsSw.js";
|
|
16
|
-
import Kt from "./vue-ui-xy-CEop49z6.js";
|
|
17
|
-
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"], al = ["stop-color"], ol = ["stop-color"], sl = ["stop-color"], rl = ["id"], nl = ["stop-color"], ul = ["stop-color"], il = ["stop-color"], cl = ["stop-color"], hl = { key: 0 }, vl = ["fill", "d"], dl = ["stroke", "stroke-width", "d"], yl = ["fill", "d"], fl = ["stroke", "stroke-dasharray", "stroke-width", "d"], gl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ml = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], bl = { key: 0 }, xl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], kl = ["x", "y", "width", "height", "onMouseenter", "onClick"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $l = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Cl = ["x", "y", "text-anchor", "font-size", "fill"], wl = {
|
|
1
|
+
import { defineAsyncComponent as M, computed as f, ref as c, shallowRef as Ee, onMounted as zt, onBeforeUnmount as Nt, watch as He, createElementBlock as n, openBlock as r, unref as u, normalizeStyle as P, normalizeClass as Y, createBlock as T, createCommentVNode as v, renderSlot as p, createElementVNode as d, createSlots as Ve, withCtx as m, normalizeProps as q, guardReactiveProps as J, createVNode as Be, Fragment as g, renderList as C, mergeProps as Ue, toDisplayString as E, createTextVNode as Ge, nextTick as Lt } from "vue";
|
|
2
|
+
import { u as Dt, c as ie, o as It, e as ce, g as We, b as Ft, d as Rt, p as K, al as je, a8 as Xt, T as Ye, U as Et, V as Ht, X as Vt, G as Bt, i as Q, f as Z, t as Ut, a as Gt, q as Wt, r as jt, J as Yt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { u as Kt } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
|
|
7
|
+
import { u as qe } from "./useNestedProp-tRqS0ZAM.js";
|
|
8
|
+
import el from "./Legend-DFunFf8i.js";
|
|
9
|
+
import tl from "./Title-B5qqUI3M.js";
|
|
10
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["id"], rl = ["stop-color"], nl = ["stop-color"], ul = ["stop-color"], il = ["stop-color"], cl = ["id"], vl = ["stop-color"], hl = ["stop-color"], dl = ["stop-color"], yl = ["stop-color"], gl = { key: 0 }, fl = ["fill", "d"], pl = ["stroke", "stroke-width", "d"], ml = ["fill", "d"], bl = ["stroke", "stroke-dasharray", "stroke-width", "d"], xl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Al = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Cl = { key: 0 }, wl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], $l = ["x", "y", "width", "height", "onMouseenter", "onClick"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ml = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], Pl = ["x", "y", "text-anchor", "font-size", "fill"], Tl = {
|
|
19
12
|
key: 5,
|
|
20
13
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
14
|
+
}, Sl = ["onClick"], Ol = ["innerHTML"], zl = {
|
|
22
15
|
__name: "vue-ui-ridgeline",
|
|
23
16
|
props: {
|
|
24
17
|
config: {
|
|
@@ -35,63 +28,61 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
35
28
|
}
|
|
36
29
|
},
|
|
37
30
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
|
-
setup(
|
|
39
|
-
const { vue_ui_ridgeline:
|
|
31
|
+
setup(Je, { expose: Ke, emit: Qe }) {
|
|
32
|
+
const Ze = M(() => import("./vue-ui-accordion-CmCs2yR2.js")), et = M(() => import("./BaseDraggableDialog-BMlyvt7E.js")), tt = M(() => import("./DataTable-Cv9CIz-a.js")), lt = M(() => import("./PackageVersion-CLY-udAA.js")), at = M(() => import("./PenAndPaper-B9na2mbr.js")), ot = M(() => import("./Shape-D3w9qas1.js")), st = M(() => import("./vue-ui-skeleton-CbYQYRvD.js")), rt = M(() => import("./UserOptions-Ddy6CuLC.js")), nt = M(() => import("./vue-ui-xy-9e_epIN4.js")), { vue_ui_ridgeline: ut } = Dt(), x = Je, z = f({
|
|
40
33
|
get() {
|
|
41
34
|
return !!x.dataset && x.dataset.length;
|
|
42
35
|
},
|
|
43
36
|
set(l) {
|
|
44
37
|
return l;
|
|
45
38
|
}
|
|
46
|
-
}),
|
|
47
|
-
function
|
|
48
|
-
const l =
|
|
39
|
+
}), ee = Qe, G = c(null), ve = c(null), he = c(null), S = Ee(null), I = Ee(null), de = c(null), ye = c(null), ge = c(0), it = c(0), fe = c(0), w = c(ie()), pe = c(0), ct = c(0), me = c(512), h = c(null), F = c(null), te = c(null), be = c(0);
|
|
40
|
+
function xe() {
|
|
41
|
+
const l = qe({
|
|
49
42
|
userConfig: x.config,
|
|
50
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: ut
|
|
51
44
|
});
|
|
52
45
|
return l.theme ? {
|
|
53
|
-
...
|
|
54
|
-
userConfig:
|
|
46
|
+
...qe({
|
|
47
|
+
userConfig: Gt.vue_ui_ridgeline[l.theme] || x.config,
|
|
55
48
|
defaultConfig: l
|
|
56
49
|
}),
|
|
57
|
-
customPalette:
|
|
50
|
+
customPalette: Ut[l.theme] || K
|
|
58
51
|
} : l;
|
|
59
52
|
}
|
|
60
|
-
const e =
|
|
61
|
-
get: () =>
|
|
53
|
+
const e = f({
|
|
54
|
+
get: () => xe(),
|
|
62
55
|
set: (l) => l
|
|
63
|
-
}),
|
|
56
|
+
}), $ = c(Math.min(
|
|
64
57
|
e.value.style.chart.areas.height,
|
|
65
58
|
e.value.style.chart.areas.rowHeight
|
|
66
59
|
)), {
|
|
67
|
-
userOptionsVisible:
|
|
68
|
-
setUserOptionsVisibility:
|
|
69
|
-
keepUserOptionState:
|
|
70
|
-
} =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
function le() {
|
|
75
|
-
if (Ct(x.dataset) ? ue({
|
|
60
|
+
userOptionsVisible: le,
|
|
61
|
+
setUserOptionsVisibility: ke,
|
|
62
|
+
keepUserOptionState: Ae
|
|
63
|
+
} = qt({ config: e.value }), { svgRef: ae } = Jt({ config: e.value.style.chart.title });
|
|
64
|
+
zt(oe);
|
|
65
|
+
function oe() {
|
|
66
|
+
if (It(x.dataset) ? ce({
|
|
76
67
|
componentName: "VueUiRidgeline",
|
|
77
68
|
type: "dataset"
|
|
78
69
|
}) : x.dataset.forEach((l, s) => {
|
|
79
|
-
|
|
70
|
+
We({
|
|
80
71
|
datasetObject: l,
|
|
81
72
|
requiredAttributes: ["name", "datapoints"]
|
|
82
73
|
}).forEach((t) => {
|
|
83
|
-
|
|
74
|
+
z.value = !1, ce({
|
|
84
75
|
componentName: "VueUiRidgeline",
|
|
85
76
|
type: "datasetSerieAttribute",
|
|
86
77
|
property: t,
|
|
87
78
|
index: s
|
|
88
79
|
});
|
|
89
80
|
}), l.datapoints.length && l.datapoints.forEach((t, o) => {
|
|
90
|
-
|
|
81
|
+
We({
|
|
91
82
|
datasetObject: t,
|
|
92
83
|
requiredAttributes: ["name", "values"]
|
|
93
84
|
}).forEach((a) => {
|
|
94
|
-
|
|
85
|
+
z.value = !1, ce({
|
|
95
86
|
componentName: "VueUiRidgeline",
|
|
96
87
|
type: "datasetSerieAttribute",
|
|
97
88
|
property: `datapoint.${a}`,
|
|
@@ -99,180 +90,183 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
99
90
|
});
|
|
100
91
|
});
|
|
101
92
|
});
|
|
102
|
-
}),
|
|
93
|
+
}), ct.value = x.dataset.length, $.value = Math.min(
|
|
103
94
|
e.value.style.chart.areas.height,
|
|
104
95
|
e.value.style.chart.areas.rowHeight
|
|
105
96
|
), e.value.responsive) {
|
|
106
|
-
const l =
|
|
107
|
-
const { width: s, height: t } =
|
|
108
|
-
chart:
|
|
109
|
-
title: e.value.style.chart.title.text ?
|
|
110
|
-
legend: e.value.style.chart.legend.show ?
|
|
111
|
-
source:
|
|
112
|
-
noTitle:
|
|
97
|
+
const l = Qt(() => {
|
|
98
|
+
const { width: s, height: t } = Zt({
|
|
99
|
+
chart: G.value,
|
|
100
|
+
title: e.value.style.chart.title.text ? ve.value : null,
|
|
101
|
+
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
102
|
+
source: de.value,
|
|
103
|
+
noTitle: ye.value,
|
|
113
104
|
padding: e.value.style.chart.padding
|
|
114
105
|
});
|
|
115
106
|
requestAnimationFrame(() => {
|
|
116
|
-
|
|
107
|
+
me.value = s, $.value = t / x.dataset.length, be.value = t;
|
|
117
108
|
});
|
|
118
109
|
});
|
|
119
|
-
|
|
110
|
+
S.value && (I.value && S.value.unobserve(I.value), S.value.disconnect()), S.value = new ResizeObserver(l), I.value = G.value.parentNode, S.value.observe(I.value);
|
|
120
111
|
}
|
|
121
112
|
}
|
|
122
|
-
|
|
123
|
-
|
|
113
|
+
Nt(() => {
|
|
114
|
+
S.value && (I.value && S.value.unobserve(I.value), S.value.disconnect());
|
|
115
|
+
});
|
|
116
|
+
const { isPrinting: Ce, isImaging: we, generatePdf: $e, generateImage: _e } = Kt({
|
|
117
|
+
elementId: `vue-ui-ridgeline_${w.value}`,
|
|
124
118
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
125
119
|
options: e.value.userOptions.print
|
|
126
|
-
}),
|
|
120
|
+
}), vt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = f(() => Ft(e.value.customPalette)), H = c({
|
|
127
121
|
showTable: e.value.table.show
|
|
128
122
|
});
|
|
129
|
-
|
|
130
|
-
e.value =
|
|
123
|
+
He(() => x.config, (l) => {
|
|
124
|
+
e.value = xe(), le.value = !e.value.userOptions.showOnChartHover, oe(), ge.value += 1, fe.value += 1, $.value = Math.min(
|
|
131
125
|
e.value.style.chart.areas.height,
|
|
132
126
|
e.value.style.chart.areas.rowHeight
|
|
133
|
-
),
|
|
134
|
-
}, { deep: !0 }),
|
|
135
|
-
const
|
|
136
|
-
function
|
|
137
|
-
|
|
127
|
+
), H.value.showTable = e.value.table.show;
|
|
128
|
+
}, { deep: !0 }), He(() => x.dataset, oe, { deep: !0 });
|
|
129
|
+
const se = f(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
130
|
+
function Me(l) {
|
|
131
|
+
O.value.includes(l) ? O.value = O.value.filter((s) => s !== l) : O.value.push(l), ee("selectLegend", X.value);
|
|
138
132
|
}
|
|
139
|
-
const _ =
|
|
133
|
+
const _ = f(() => z.value ? x.dataset.map((l, s) => ({
|
|
140
134
|
...l,
|
|
141
|
-
labelLen:
|
|
142
|
-
uid:
|
|
135
|
+
labelLen: gt(l.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
136
|
+
uid: ie(),
|
|
143
137
|
datapoints: l.datapoints.map((t, o) => {
|
|
144
|
-
const a = t.color ?
|
|
138
|
+
const a = t.color ? Rt(t.color) : ht.value[o] || K[o] || K[o % K.length], i = je(t.name);
|
|
145
139
|
return {
|
|
146
140
|
...t,
|
|
147
141
|
color: a,
|
|
148
|
-
id:
|
|
142
|
+
id: i
|
|
149
143
|
};
|
|
150
144
|
})
|
|
151
|
-
})) : []),
|
|
145
|
+
})) : []), Pe = f(() => e.value.style.chart.padding.top + $.value * x.dataset.length + $.value * se.value), k = f(() => ({
|
|
152
146
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
153
147
|
top: y.value.padding.top,
|
|
154
148
|
left: y.value.padding.left,
|
|
155
149
|
right: y.value.width - y.value.padding.right,
|
|
156
150
|
bottom: y.value.padding.top + y.value.height,
|
|
157
151
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
158
|
-
})), y =
|
|
152
|
+
})), y = f(() => {
|
|
159
153
|
const l = e.value.style.chart.padding;
|
|
160
154
|
return {
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
155
|
+
width: me.value,
|
|
156
|
+
height: Pe.value,
|
|
163
157
|
padding: l
|
|
164
158
|
};
|
|
165
|
-
}),
|
|
166
|
-
const l = Math.max(..._.value.map((
|
|
167
|
-
for (let
|
|
159
|
+
}), R = f(() => {
|
|
160
|
+
const l = Math.max(..._.value.map((i) => i.labelLen)), s = Math.max(..._.value.flatMap((i) => i.datapoints.map((A) => A.values.length))), t = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (k.value.width - t) / s, a = [];
|
|
161
|
+
for (let i = 0; i < s; i += 1)
|
|
168
162
|
a.push({
|
|
169
|
-
selectorX: t + o *
|
|
170
|
-
x: t + o *
|
|
163
|
+
selectorX: t + o * i,
|
|
164
|
+
x: t + o * i - o / 2,
|
|
171
165
|
y: k.value.top,
|
|
172
|
-
label: e.value.style.chart.xAxis.labels.values[
|
|
173
|
-
index:
|
|
166
|
+
label: e.value.style.chart.xAxis.labels.values[i] || "",
|
|
167
|
+
index: i,
|
|
174
168
|
width: o,
|
|
175
|
-
height:
|
|
169
|
+
height: Pe.value
|
|
176
170
|
});
|
|
177
171
|
return a;
|
|
178
172
|
});
|
|
179
|
-
function
|
|
180
|
-
|
|
173
|
+
function dt(l) {
|
|
174
|
+
ee("selectX", _.value.map((s) => s.datapoints.map((t) => ({
|
|
181
175
|
dp: t,
|
|
182
176
|
selected: t.values[l.index]
|
|
183
177
|
}))));
|
|
184
178
|
}
|
|
185
|
-
function
|
|
179
|
+
function yt(l, s) {
|
|
186
180
|
return l.length * s / 2 + s;
|
|
187
181
|
}
|
|
188
|
-
function
|
|
189
|
-
const o =
|
|
182
|
+
function Te(l, s, t) {
|
|
183
|
+
const o = yt(s, t);
|
|
190
184
|
return l + o > k.value.right;
|
|
191
185
|
}
|
|
192
|
-
function
|
|
193
|
-
const a = document.createElement("canvas").getContext("2d"),
|
|
194
|
-
return a.font = `${
|
|
186
|
+
function gt(l, s, t = "sans-serif") {
|
|
187
|
+
const a = document.createElement("canvas").getContext("2d"), i = typeof s == "number" ? `${s}px` : s;
|
|
188
|
+
return a.font = `${i} ${t}`, a.measureText(l).width;
|
|
195
189
|
}
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
const l = Math.max(..._.value.map((b) => b.labelLen)), s = Math.max(..._.value.flatMap((b) => b.datapoints.map((
|
|
199
|
-
function
|
|
200
|
-
return isNaN(b /
|
|
190
|
+
const X = f(() => {
|
|
191
|
+
$.value;
|
|
192
|
+
const l = Math.max(..._.value.map((b) => b.labelLen)), s = Math.max(..._.value.flatMap((b) => b.datapoints.map((N) => N.values.length))), t = Math.max(..._.value.flatMap((b) => b.datapoints.flatMap((N) => N.values))), o = Math.min(..._.value.flatMap((b) => b.datapoints.flatMap((N) => N.values))), a = y.value.padding.left + l + 16 + e.value.style.chart.yAxis.labels.offsetX, i = (k.value.width - a) / s, A = Math.abs(Math.min(o, 0)), De = t + A;
|
|
193
|
+
function Ie(b) {
|
|
194
|
+
return isNaN(b / De) ? 0 : b / De;
|
|
201
195
|
}
|
|
202
|
-
return _.value.map((b,
|
|
203
|
-
const
|
|
196
|
+
return _.value.map((b, N) => {
|
|
197
|
+
const Fe = k.value.top + $.value * N, L = k.value.top + Fe + $.value * se.value * (1 - Ie(A));
|
|
204
198
|
return {
|
|
205
199
|
...b,
|
|
206
200
|
label: {
|
|
207
201
|
x: a - e.value.style.chart.yAxis.labels.fontSize,
|
|
208
|
-
y:
|
|
202
|
+
y: L
|
|
209
203
|
},
|
|
210
|
-
datapoints: b.datapoints.map((
|
|
211
|
-
const
|
|
212
|
-
const
|
|
204
|
+
datapoints: b.datapoints.map((B) => {
|
|
205
|
+
const D = B.values.map((U, Mt) => {
|
|
206
|
+
const Pt = isNaN(U) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(U) ? 0 : U || 0, Tt = a + i * Mt, St = k.value.top + Fe + $.value * se.value * (1 - Ie(Pt + A)), Ot = U === Math.max(...B.values);
|
|
213
207
|
return {
|
|
214
|
-
x:
|
|
215
|
-
y:
|
|
216
|
-
value:
|
|
217
|
-
isMaxPoint:
|
|
218
|
-
zero:
|
|
208
|
+
x: Tt,
|
|
209
|
+
y: St,
|
|
210
|
+
value: U,
|
|
211
|
+
isMaxPoint: Ot,
|
|
212
|
+
zero: L
|
|
219
213
|
};
|
|
220
|
-
}),
|
|
221
|
-
e.value.style.chart.areas.smooth ?
|
|
214
|
+
}), Ct = `${Xt(D, L, !1, !1)}`, wt = `M ${a},${L} ${Ye(D)} ${D.at(-1).x},${L}`, $t = `M ${a},${L} ${D.at(-1).x},${L}`, Re = `M ${Et(D)}`, Xe = `M ${Ye(D)}`, _t = Ht(
|
|
215
|
+
e.value.style.chart.areas.smooth ? Re : Xe
|
|
222
216
|
);
|
|
223
217
|
return {
|
|
224
|
-
...
|
|
225
|
-
uid:
|
|
226
|
-
plots:
|
|
227
|
-
smoothPath:
|
|
228
|
-
straightPath:
|
|
229
|
-
zeroPath:
|
|
230
|
-
pathLength:
|
|
231
|
-
smoothPathRidge:
|
|
232
|
-
straightPathRidge:
|
|
218
|
+
...B,
|
|
219
|
+
uid: ie(),
|
|
220
|
+
plots: D,
|
|
221
|
+
smoothPath: Ct,
|
|
222
|
+
straightPath: wt,
|
|
223
|
+
zeroPath: $t,
|
|
224
|
+
pathLength: _t,
|
|
225
|
+
smoothPathRidge: Re,
|
|
226
|
+
straightPathRidge: Xe
|
|
233
227
|
};
|
|
234
|
-
}).filter((
|
|
228
|
+
}).filter((B) => !O.value.includes(B.id))
|
|
235
229
|
};
|
|
236
230
|
});
|
|
237
|
-
}),
|
|
238
|
-
function
|
|
231
|
+
}), O = c([]);
|
|
232
|
+
function ft(l) {
|
|
239
233
|
const s = /* @__PURE__ */ new Map();
|
|
240
234
|
return l.forEach((t) => {
|
|
241
235
|
t.datapoints.forEach((o, a) => {
|
|
242
|
-
const
|
|
243
|
-
s.has(
|
|
244
|
-
id:
|
|
236
|
+
const i = je(o.name);
|
|
237
|
+
s.has(i) || s.set(i, {
|
|
238
|
+
id: i,
|
|
245
239
|
name: o.name,
|
|
246
240
|
color: o.color,
|
|
247
241
|
shape: "circle",
|
|
248
|
-
segregate: () =>
|
|
249
|
-
isSegregated:
|
|
250
|
-
opacity:
|
|
242
|
+
segregate: () => Me(i),
|
|
243
|
+
isSegregated: O.value.includes(i),
|
|
244
|
+
opacity: O.value.includes(i) ? 0.5 : 1
|
|
251
245
|
});
|
|
252
246
|
});
|
|
253
247
|
}), Array.from(s.values());
|
|
254
248
|
}
|
|
255
|
-
const
|
|
249
|
+
const re = f(() => ft(_.value)), pt = f(() => ({
|
|
256
250
|
cy: "donut-div-legend",
|
|
257
251
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
258
252
|
color: e.value.style.chart.legend.color,
|
|
259
253
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
260
254
|
paddingBottom: 12,
|
|
261
255
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
262
|
-
})),
|
|
263
|
-
function
|
|
264
|
-
|
|
256
|
+
})), V = c(!1);
|
|
257
|
+
function mt(l) {
|
|
258
|
+
V.value = l, pe.value += 1;
|
|
265
259
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
268
|
-
|
|
260
|
+
const Se = c({}), Oe = c([]);
|
|
261
|
+
function bt(l) {
|
|
262
|
+
ee("selectDatapoint", l), e.value.style.chart.dialog.show && (Oe.value = l.datapoints.map((s) => ({
|
|
269
263
|
name: s.name,
|
|
270
264
|
color: s.color,
|
|
271
265
|
type: "line",
|
|
272
266
|
useArea: !0,
|
|
273
267
|
smooth: e.value.style.chart.areas.smooth,
|
|
274
268
|
series: s.values
|
|
275
|
-
})),
|
|
269
|
+
})), F.value = l, Se.value = Yt({
|
|
276
270
|
...e.value.style.chart.dialog.xyChart,
|
|
277
271
|
responsive: !0,
|
|
278
272
|
// Overriding
|
|
@@ -295,23 +289,23 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
295
289
|
// Overriding
|
|
296
290
|
}
|
|
297
291
|
}
|
|
298
|
-
}),
|
|
292
|
+
}), te.value && te.value.open());
|
|
299
293
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
|
|
294
|
+
const ne = c(null);
|
|
295
|
+
function xt(l) {
|
|
296
|
+
ne.value = l;
|
|
303
297
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
298
|
+
function kt() {
|
|
299
|
+
ne.value = null;
|
|
306
300
|
}
|
|
307
|
-
const
|
|
308
|
-
function
|
|
309
|
-
|
|
301
|
+
const W = c(!1);
|
|
302
|
+
function ue() {
|
|
303
|
+
W.value = !W.value;
|
|
310
304
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
305
|
+
function ze() {
|
|
306
|
+
H.value.showTable = !H.value.showTable;
|
|
313
307
|
}
|
|
314
|
-
const
|
|
308
|
+
const Ne = f(() => ({ body: X.value.flatMap((t) => t.datapoints.flatMap((o) => ({
|
|
315
309
|
...o,
|
|
316
310
|
rowName: `${t.name}: ${o.name}`
|
|
317
311
|
}))).map((t) => [
|
|
@@ -320,7 +314,7 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
320
314
|
color: t.color
|
|
321
315
|
},
|
|
322
316
|
...t.values
|
|
323
|
-
]) })),
|
|
317
|
+
]) })), j = f(() => {
|
|
324
318
|
const l = [
|
|
325
319
|
e.value.table.columnNames.series,
|
|
326
320
|
...e.value.style.chart.xAxis.labels.values
|
|
@@ -343,74 +337,74 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
343
337
|
...e.value.style.chart.xAxis.labels.values
|
|
344
338
|
],
|
|
345
339
|
head: l,
|
|
346
|
-
body:
|
|
340
|
+
body: Ne.value.body,
|
|
347
341
|
config: s
|
|
348
342
|
};
|
|
349
343
|
});
|
|
350
|
-
function
|
|
351
|
-
|
|
344
|
+
function Le() {
|
|
345
|
+
Lt(() => {
|
|
352
346
|
const l = [
|
|
353
347
|
[e.value.table.columnNames.series, ...e.value.style.chart.xAxis.labels.values.map((o) => [o])],
|
|
354
|
-
...
|
|
348
|
+
...Ne.value.body.map((o, a) => [o[0].name, ...o.slice(1)])
|
|
355
349
|
], s = [
|
|
356
350
|
[e.value.style.chart.title.text],
|
|
357
351
|
[e.value.style.chart.title.subtitle.text]
|
|
358
|
-
].concat(l), t =
|
|
359
|
-
|
|
352
|
+
].concat(l), t = Wt(s);
|
|
353
|
+
jt({
|
|
360
354
|
csvContent: t,
|
|
361
355
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
362
356
|
});
|
|
363
357
|
});
|
|
364
358
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
359
|
+
function At() {
|
|
360
|
+
return X.value;
|
|
367
361
|
}
|
|
368
|
-
return
|
|
369
|
-
getData:
|
|
370
|
-
generateImage:
|
|
362
|
+
return Ke({
|
|
363
|
+
getData: At,
|
|
364
|
+
generateImage: _e,
|
|
371
365
|
generatePdf: $e,
|
|
372
|
-
generateCsv:
|
|
373
|
-
toggleAnnotator:
|
|
374
|
-
toggleTable:
|
|
366
|
+
generateCsv: Le,
|
|
367
|
+
toggleAnnotator: ue,
|
|
368
|
+
toggleTable: ze
|
|
375
369
|
}), (l, s) => (r(), n("div", {
|
|
376
370
|
ref_key: "ridgelineChart",
|
|
377
|
-
ref:
|
|
378
|
-
class:
|
|
379
|
-
id: `vue-ui-ridgeline_${
|
|
380
|
-
style:
|
|
371
|
+
ref: G,
|
|
372
|
+
class: Y(`vue-ui-ridgeline ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
373
|
+
id: `vue-ui-ridgeline_${w.value}`,
|
|
374
|
+
style: P({
|
|
381
375
|
fontFamily: e.value.style.fontFamily,
|
|
382
376
|
width: "100%",
|
|
383
377
|
textAlign: "center",
|
|
384
378
|
background: e.value.style.chart.backgroundColor,
|
|
385
379
|
height: e.value.responsive ? "100%" : void 0
|
|
386
380
|
}),
|
|
387
|
-
onMouseenter: s[4] || (s[4] = () =>
|
|
388
|
-
onMouseleave: s[5] || (s[5] = () =>
|
|
381
|
+
onMouseenter: s[4] || (s[4] = () => u(ke)(!0)),
|
|
382
|
+
onMouseleave: s[5] || (s[5] = () => u(ke)(!1))
|
|
389
383
|
}, [
|
|
390
|
-
e.value.userOptions.buttons.annotator &&
|
|
384
|
+
e.value.userOptions.buttons.annotator && u(ae) ? (r(), T(u(at), {
|
|
391
385
|
key: 0,
|
|
392
386
|
color: e.value.style.chart.color,
|
|
393
387
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
394
|
-
active:
|
|
395
|
-
svgRef:
|
|
396
|
-
onClose:
|
|
397
|
-
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) :
|
|
388
|
+
active: W.value,
|
|
389
|
+
svgRef: u(ae),
|
|
390
|
+
onClose: ue
|
|
391
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
|
|
398
392
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
399
|
-
|
|
393
|
+
vt.value ? (r(), n("div", {
|
|
400
394
|
key: 1,
|
|
401
395
|
ref_key: "noTitle",
|
|
402
|
-
ref:
|
|
396
|
+
ref: ye,
|
|
403
397
|
class: "vue-data-ui-no-title-space",
|
|
404
398
|
style: "height:36px; width: 100%;background:transparent"
|
|
405
|
-
}, null, 512)) :
|
|
399
|
+
}, null, 512)) : v("", !0),
|
|
406
400
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
407
401
|
key: 2,
|
|
408
402
|
ref_key: "chartTitle",
|
|
409
|
-
ref:
|
|
403
|
+
ref: ve,
|
|
410
404
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
411
405
|
}, [
|
|
412
|
-
(r(), T(
|
|
413
|
-
key: `title_${
|
|
406
|
+
(r(), T(tl, {
|
|
407
|
+
key: `title_${ge.value}`,
|
|
414
408
|
config: {
|
|
415
409
|
title: {
|
|
416
410
|
cy: "ridgeline-div-title",
|
|
@@ -422,15 +416,15 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
422
416
|
}
|
|
423
417
|
}
|
|
424
418
|
}, null, 8, ["config"]))
|
|
425
|
-
], 512)) :
|
|
426
|
-
e.value.userOptions.show &&
|
|
419
|
+
], 512)) : v("", !0),
|
|
420
|
+
e.value.userOptions.show && z.value && (u(Ae) || u(le)) ? (r(), T(u(rt), {
|
|
427
421
|
ref: "details",
|
|
428
|
-
key: `user_option_${
|
|
422
|
+
key: `user_option_${pe.value}`,
|
|
429
423
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
430
424
|
color: e.value.style.chart.color,
|
|
431
|
-
isPrinting:
|
|
432
|
-
isImaging:
|
|
433
|
-
uid:
|
|
425
|
+
isPrinting: u(Ce),
|
|
426
|
+
isImaging: u(we),
|
|
427
|
+
uid: w.value,
|
|
434
428
|
hasTooltip: !1,
|
|
435
429
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
436
430
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -438,27 +432,27 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
438
432
|
hasTable: e.value.userOptions.buttons.table,
|
|
439
433
|
hasLabel: !1,
|
|
440
434
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
441
|
-
isFullscreen:
|
|
442
|
-
chartElement:
|
|
435
|
+
isFullscreen: V.value,
|
|
436
|
+
chartElement: G.value,
|
|
443
437
|
position: e.value.userOptions.position,
|
|
444
438
|
isTooltip: !1,
|
|
445
439
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
446
440
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
447
|
-
isAnnotation:
|
|
448
|
-
style:
|
|
449
|
-
visibility:
|
|
441
|
+
isAnnotation: W.value,
|
|
442
|
+
style: P({
|
|
443
|
+
visibility: u(Ae) ? u(le) ? "visible" : "hidden" : "visible"
|
|
450
444
|
}),
|
|
451
|
-
onToggleFullscreen:
|
|
452
|
-
onGeneratePdf:
|
|
453
|
-
onGenerateCsv:
|
|
454
|
-
onGenerateImage:
|
|
455
|
-
onToggleTable:
|
|
456
|
-
onToggleAnnotator:
|
|
457
|
-
},
|
|
445
|
+
onToggleFullscreen: mt,
|
|
446
|
+
onGeneratePdf: u($e),
|
|
447
|
+
onGenerateCsv: Le,
|
|
448
|
+
onGenerateImage: u(_e),
|
|
449
|
+
onToggleTable: ze,
|
|
450
|
+
onToggleAnnotator: ue
|
|
451
|
+
}, Ve({ _: 2 }, [
|
|
458
452
|
l.$slots.menuIcon ? {
|
|
459
453
|
name: "menuIcon",
|
|
460
454
|
fn: m(({ isOpen: t, color: o }) => [
|
|
461
|
-
p(l.$slots, "menuIcon",
|
|
455
|
+
p(l.$slots, "menuIcon", q(J({ isOpen: t, color: o })), void 0, !0)
|
|
462
456
|
]),
|
|
463
457
|
key: "0"
|
|
464
458
|
} : void 0,
|
|
@@ -500,30 +494,31 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
500
494
|
l.$slots.optionFullscreen ? {
|
|
501
495
|
name: "optionFullscreen",
|
|
502
496
|
fn: m(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
503
|
-
p(l.$slots, "optionFullscreen",
|
|
497
|
+
p(l.$slots, "optionFullscreen", q(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
504
498
|
]),
|
|
505
499
|
key: "6"
|
|
506
500
|
} : void 0,
|
|
507
501
|
l.$slots.optionAnnotator ? {
|
|
508
502
|
name: "optionAnnotator",
|
|
509
503
|
fn: m(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
510
|
-
p(l.$slots, "optionAnnotator",
|
|
504
|
+
p(l.$slots, "optionAnnotator", q(J({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
511
505
|
]),
|
|
512
506
|
key: "7"
|
|
513
507
|
} : void 0
|
|
514
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) :
|
|
515
|
-
|
|
508
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
509
|
+
z.value ? (r(), n("svg", {
|
|
516
510
|
key: 4,
|
|
517
511
|
ref_key: "svgRef",
|
|
518
|
-
ref:
|
|
519
|
-
xmlns:
|
|
520
|
-
class:
|
|
512
|
+
ref: ae,
|
|
513
|
+
xmlns: u(Vt),
|
|
514
|
+
class: Y({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
521
515
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${k.value.fullHeight <= 0 ? 10 : k.value.fullHeight}`,
|
|
522
|
-
style:
|
|
516
|
+
style: P(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${be.value}px; width: 100%;` : ""}`)
|
|
523
517
|
}, [
|
|
518
|
+
Be(u(lt)),
|
|
524
519
|
d("defs", null, [
|
|
525
|
-
(r(!0), n(
|
|
526
|
-
id: `gradient-${t.id}-${
|
|
520
|
+
(r(!0), n(g, null, C(re.value, (t, o) => (r(), n("linearGradient", {
|
|
521
|
+
id: `gradient-${t.id}-${w.value}`,
|
|
527
522
|
x1: "50%",
|
|
528
523
|
y1: "0%",
|
|
529
524
|
x2: "50%",
|
|
@@ -533,27 +528,27 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
533
528
|
offset: "0%",
|
|
534
529
|
"stop-color": t.color,
|
|
535
530
|
"stop-opacity": "1"
|
|
536
|
-
}, null, 8,
|
|
531
|
+
}, null, 8, rl),
|
|
537
532
|
d("stop", {
|
|
538
533
|
offset: "30%",
|
|
539
534
|
"stop-color": t.color,
|
|
540
535
|
"stop-opacity": "0.7"
|
|
541
|
-
}, null, 8,
|
|
536
|
+
}, null, 8, nl),
|
|
542
537
|
d("stop", {
|
|
543
538
|
offset: "70%",
|
|
544
539
|
"stop-color": t.color,
|
|
545
540
|
"stop-opacity": "0.3"
|
|
546
|
-
}, null, 8,
|
|
541
|
+
}, null, 8, ul),
|
|
547
542
|
d("stop", {
|
|
548
543
|
offset: "100%",
|
|
549
544
|
"stop-color": t.color,
|
|
550
545
|
"stop-opacity": "0.1"
|
|
551
|
-
}, null, 8,
|
|
552
|
-
], 8,
|
|
553
|
-
(r(!0), n(
|
|
554
|
-
(r(!0), n(
|
|
546
|
+
}, null, 8, il)
|
|
547
|
+
], 8, sl))), 256)),
|
|
548
|
+
(r(!0), n(g, null, C(X.value, (t, o) => (r(), n(g, null, [
|
|
549
|
+
(r(!0), n(g, null, C(t.datapoints, (a, i) => (r(), n("linearGradient", {
|
|
555
550
|
key: `grad${a.id}`,
|
|
556
|
-
id: `gradient-single-${
|
|
551
|
+
id: `gradient-single-${w.value}-${a.uid}`,
|
|
557
552
|
x1: "50%",
|
|
558
553
|
y1: "0%",
|
|
559
554
|
x2: "50%",
|
|
@@ -563,45 +558,45 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
563
558
|
offset: "0%",
|
|
564
559
|
"stop-color": a.color,
|
|
565
560
|
"stop-opacity": "1"
|
|
566
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, vl),
|
|
567
562
|
d("stop", {
|
|
568
563
|
offset: "30%",
|
|
569
564
|
"stop-color": a.color,
|
|
570
565
|
"stop-opacity": "0.7"
|
|
571
|
-
}, null, 8,
|
|
566
|
+
}, null, 8, hl),
|
|
572
567
|
d("stop", {
|
|
573
568
|
offset: "70%",
|
|
574
569
|
"stop-color": a.color,
|
|
575
570
|
"stop-opacity": "0.3"
|
|
576
|
-
}, null, 8,
|
|
571
|
+
}, null, 8, dl),
|
|
577
572
|
d("stop", {
|
|
578
573
|
offset: "100%",
|
|
579
574
|
"stop-color": a.color,
|
|
580
575
|
"stop-opacity": "0.1"
|
|
581
|
-
}, null, 8,
|
|
582
|
-
], 8,
|
|
576
|
+
}, null, 8, yl)
|
|
577
|
+
], 8, cl))), 128))
|
|
583
578
|
], 64))), 256))
|
|
584
579
|
]),
|
|
585
|
-
(r(!0), n(
|
|
580
|
+
(r(!0), n(g, null, C(X.value, (t, o) => (r(), n("g", {
|
|
586
581
|
key: `ds-${o}`
|
|
587
582
|
}, [
|
|
588
|
-
(r(!0), n(
|
|
583
|
+
(r(!0), n(g, null, C(t.datapoints, (a, i) => (r(), n("g", {
|
|
589
584
|
key: a.id
|
|
590
585
|
}, [
|
|
591
|
-
l.$slots.pattern ? (r(), n("g",
|
|
586
|
+
l.$slots.pattern ? (r(), n("g", gl, [
|
|
592
587
|
d("defs", null, [
|
|
593
|
-
p(l.$slots, "pattern",
|
|
588
|
+
p(l.$slots, "pattern", Ue({ ref_for: !0 }, { datapointIndex: o, seriesIndex: i, patternId: `pattern_${w.value}_${a.uid}` }), void 0, !0)
|
|
594
589
|
])
|
|
595
|
-
])) :
|
|
590
|
+
])) : v("", !0),
|
|
596
591
|
d("path", {
|
|
597
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
592
|
+
fill: l.$slots.pattern ? `url(#pattern_${w.value}_${a.uid})` : e.value.style.chart.backgroundColor,
|
|
598
593
|
stroke: "none",
|
|
599
594
|
"stroke-linecap": "round",
|
|
600
595
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
601
|
-
style:
|
|
596
|
+
style: P({
|
|
602
597
|
opacity: e.value.style.chart.areas.opacity
|
|
603
598
|
})
|
|
604
|
-
}, null, 12,
|
|
599
|
+
}, null, 12, fl),
|
|
605
600
|
d("path", {
|
|
606
601
|
fill: "none",
|
|
607
602
|
stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
|
|
@@ -609,24 +604,24 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
609
604
|
d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
|
|
610
605
|
"stroke-linecap": "round",
|
|
611
606
|
"stroke-linejoin": "round",
|
|
612
|
-
class:
|
|
613
|
-
style:
|
|
607
|
+
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
608
|
+
style: P({
|
|
614
609
|
strokeDasharray: a.pathLength,
|
|
615
610
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
616
611
|
})
|
|
617
|
-
}, null, 14,
|
|
612
|
+
}, null, 14, pl),
|
|
618
613
|
d("path", {
|
|
619
|
-
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${
|
|
614
|
+
fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${w.value})` : `url(#gradient-single-${w.value}-${a.uid})` : a.color,
|
|
620
615
|
stroke: "none",
|
|
621
616
|
d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
|
|
622
617
|
"stroke-linecap": "round",
|
|
623
618
|
"stroke-linejoin": "round",
|
|
624
|
-
class:
|
|
625
|
-
style:
|
|
619
|
+
class: Y({ "vue-ui-ridgeline-animate": e.value.useCssAnimation }),
|
|
620
|
+
style: P({
|
|
626
621
|
strokeDasharray: a.pathLength,
|
|
627
622
|
strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
|
|
628
623
|
})
|
|
629
|
-
}, null, 14,
|
|
624
|
+
}, null, 14, ml),
|
|
630
625
|
e.value.style.chart.zeroLine.show ? (r(), n("path", {
|
|
631
626
|
key: 1,
|
|
632
627
|
stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
|
|
@@ -634,20 +629,20 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
634
629
|
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
635
630
|
d: a.zeroPath,
|
|
636
631
|
"stroke-linecap": "round"
|
|
637
|
-
}, null, 8,
|
|
638
|
-
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(
|
|
632
|
+
}, null, 8, bl)) : v("", !0),
|
|
633
|
+
e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (r(!0), n(g, { key: 2 }, C(a.plots, (A) => (r(), n(g, null, [
|
|
639
634
|
A.isMaxPoint ? (r(), n("line", {
|
|
640
635
|
key: 0,
|
|
641
636
|
x1: A.x,
|
|
642
637
|
y1: A.y,
|
|
643
638
|
x2: A.x,
|
|
644
639
|
y2: A.zero,
|
|
645
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ?
|
|
640
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(Bt)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
646
641
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
647
642
|
"stroke-linecap": "round",
|
|
648
643
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
649
|
-
}, null, 8,
|
|
650
|
-
], 64))), 256)) :
|
|
644
|
+
}, null, 8, xl)) : v("", !0)
|
|
645
|
+
], 64))), 256)) : v("", !0),
|
|
651
646
|
a.plots.length === 1 ? (r(), n("circle", {
|
|
652
647
|
key: 3,
|
|
653
648
|
cx: a.plots[0].x,
|
|
@@ -659,7 +654,7 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
659
654
|
style: {
|
|
660
655
|
pointerEvents: "none"
|
|
661
656
|
}
|
|
662
|
-
}, null, 8,
|
|
657
|
+
}, null, 8, kl)) : v("", !0)
|
|
663
658
|
]))), 128)),
|
|
664
659
|
d("text", {
|
|
665
660
|
x: t.label.x,
|
|
@@ -668,18 +663,18 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
668
663
|
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
669
664
|
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
670
665
|
fill: e.value.style.chart.yAxis.labels.color,
|
|
671
|
-
style:
|
|
666
|
+
style: P({
|
|
672
667
|
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
673
668
|
}),
|
|
674
|
-
"text-decoration": e.value.style.chart.dialog.show && (
|
|
675
|
-
onMouseenter: (a) =>
|
|
676
|
-
onMouseleave:
|
|
677
|
-
onClick: (a) =>
|
|
678
|
-
},
|
|
669
|
+
"text-decoration": e.value.style.chart.dialog.show && (ne.value === o || F.value && t.uid === F.value.uid) ? "underline" : "",
|
|
670
|
+
onMouseenter: (a) => xt(o),
|
|
671
|
+
onMouseleave: kt,
|
|
672
|
+
onClick: (a) => bt(t)
|
|
673
|
+
}, E(t.name), 45, Al)
|
|
679
674
|
]))), 128)),
|
|
680
|
-
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g",
|
|
681
|
-
(r(!0), n(
|
|
682
|
-
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o ===
|
|
675
|
+
e.value.style.chart.xAxis.labels.values.length ? (r(), n("g", Cl, [
|
|
676
|
+
(r(!0), n(g, null, C(R.value, (t, o) => p(l.$slots, "time-label", Ue({ ref_for: !0 }, {
|
|
677
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === R.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
683
678
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
684
679
|
content: t.label,
|
|
685
680
|
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -688,46 +683,46 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
688
683
|
x: t.selectorX,
|
|
689
684
|
y: k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
690
685
|
}), () => [
|
|
691
|
-
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o ===
|
|
686
|
+
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === R.value.length - 1) || t && h.value && h.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(R.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (r(), n("text", {
|
|
692
687
|
key: 0,
|
|
693
688
|
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
694
689
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
695
690
|
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
696
691
|
transform: `translate(${t.selectorX}, ${k.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
697
692
|
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
698
|
-
style:
|
|
699
|
-
opacity:
|
|
693
|
+
style: P({
|
|
694
|
+
opacity: h.value ? h.value.index === o ? 1 : 0.2 : 1
|
|
700
695
|
})
|
|
701
|
-
},
|
|
696
|
+
}, E(t.label), 13, wl)) : v("", !0)
|
|
702
697
|
], !0)), 256))
|
|
703
|
-
])) :
|
|
698
|
+
])) : v("", !0),
|
|
704
699
|
d("g", null, [
|
|
705
|
-
(r(!0), n(
|
|
700
|
+
(r(!0), n(g, null, C(R.value, (t, o) => (r(), n("rect", {
|
|
706
701
|
x: t.x,
|
|
707
702
|
y: t.y,
|
|
708
703
|
width: t.width < 0 ? 0.1 : t.width,
|
|
709
704
|
height: t.height < 0 ? 0.1 : t.height,
|
|
710
705
|
fill: "transparent",
|
|
711
|
-
onMouseenter: (a) =>
|
|
712
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
713
|
-
onClick: () =>
|
|
714
|
-
}, null, 40,
|
|
715
|
-
e.value.style.chart.selector.show &&
|
|
706
|
+
onMouseenter: (a) => h.value = t,
|
|
707
|
+
onMouseleave: s[0] || (s[0] = (a) => h.value = null),
|
|
708
|
+
onClick: () => dt(t)
|
|
709
|
+
}, null, 40, $l))), 256)),
|
|
710
|
+
e.value.style.chart.selector.show && h.value ? (r(), n("line", {
|
|
716
711
|
key: 0,
|
|
717
|
-
x1:
|
|
718
|
-
x2:
|
|
719
|
-
y1:
|
|
720
|
-
y2:
|
|
712
|
+
x1: h.value.selectorX,
|
|
713
|
+
x2: h.value.selectorX,
|
|
714
|
+
y1: h.value.y,
|
|
715
|
+
y2: h.value.y + h.value.height - $.value / 2,
|
|
721
716
|
stroke: e.value.style.chart.selector.stroke,
|
|
722
717
|
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
723
718
|
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
724
719
|
"stroke-linecap": "round",
|
|
725
720
|
style: { pointerEvents: "none" }
|
|
726
|
-
}, null, 8,
|
|
727
|
-
|
|
728
|
-
(r(!0), n(
|
|
729
|
-
(r(!0), n(
|
|
730
|
-
|
|
721
|
+
}, null, 8, _l)) : v("", !0),
|
|
722
|
+
h.value ? (r(!0), n(g, { key: 1 }, C(X.value, (t) => (r(), n(g, null, [
|
|
723
|
+
(r(!0), n(g, null, C(t.datapoints, (o) => (r(), n(g, null, [
|
|
724
|
+
(r(!0), n(g, null, C(o.plots, (a, i) => (r(), n(g, null, [
|
|
725
|
+
h.value && h.value.index === i ? (r(), n("circle", {
|
|
731
726
|
key: 0,
|
|
732
727
|
cx: a.x,
|
|
733
728
|
cy: a.y,
|
|
@@ -738,15 +733,15 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
738
733
|
style: {
|
|
739
734
|
pointerEvents: "none"
|
|
740
735
|
}
|
|
741
|
-
}, null, 8,
|
|
742
|
-
|
|
736
|
+
}, null, 8, Ml)) : v("", !0),
|
|
737
|
+
h.value && h.value.index === i ? (r(), n("text", {
|
|
743
738
|
key: 1,
|
|
744
|
-
x:
|
|
739
|
+
x: Te(
|
|
745
740
|
a.x,
|
|
746
|
-
|
|
741
|
+
u(Q)(
|
|
747
742
|
e.value.style.chart.selector.labels.formatter,
|
|
748
743
|
a.value,
|
|
749
|
-
|
|
744
|
+
u(Z)({
|
|
750
745
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
751
746
|
v: a.value,
|
|
752
747
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -756,12 +751,12 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
756
751
|
e.value.style.chart.selector.labels.fontSize
|
|
757
752
|
) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
758
753
|
y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
759
|
-
"text-anchor":
|
|
754
|
+
"text-anchor": Te(
|
|
760
755
|
a.x,
|
|
761
|
-
|
|
756
|
+
u(Q)(
|
|
762
757
|
e.value.style.chart.selector.labels.formatter,
|
|
763
758
|
a.value,
|
|
764
|
-
|
|
759
|
+
u(Z)({
|
|
765
760
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
766
761
|
v: a.value,
|
|
767
762
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -775,26 +770,26 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
775
770
|
style: {
|
|
776
771
|
pointerEvents: "none"
|
|
777
772
|
}
|
|
778
|
-
},
|
|
773
|
+
}, E(u(Q)(
|
|
779
774
|
e.value.style.chart.selector.labels.formatter,
|
|
780
775
|
a.value,
|
|
781
|
-
|
|
776
|
+
u(Z)({
|
|
782
777
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
783
778
|
v: a.value,
|
|
784
779
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
785
780
|
r: e.value.style.chart.selector.labels.rounding
|
|
786
781
|
})
|
|
787
|
-
)), 9,
|
|
782
|
+
)), 9, Pl)) : v("", !0)
|
|
788
783
|
], 64))), 256))
|
|
789
784
|
], 64))), 256))
|
|
790
|
-
], 64))), 256)) :
|
|
785
|
+
], 64))), 256)) : v("", !0)
|
|
791
786
|
]),
|
|
792
787
|
p(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
793
|
-
], 14,
|
|
794
|
-
l.$slots.watermark ? (r(), n("div",
|
|
795
|
-
p(l.$slots, "watermark",
|
|
796
|
-
])) :
|
|
797
|
-
|
|
788
|
+
], 14, ol)) : v("", !0),
|
|
789
|
+
l.$slots.watermark ? (r(), n("div", Tl, [
|
|
790
|
+
p(l.$slots, "watermark", q(J({ isPrinting: u(Ce) || u(we) })), void 0, !0)
|
|
791
|
+
])) : v("", !0),
|
|
792
|
+
z.value ? v("", !0) : (r(), T(u(st), {
|
|
798
793
|
key: 6,
|
|
799
794
|
config: {
|
|
800
795
|
type: "ridgeline",
|
|
@@ -808,51 +803,51 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
808
803
|
}, null, 8, ["config"])),
|
|
809
804
|
d("div", {
|
|
810
805
|
ref_key: "chartLegend",
|
|
811
|
-
ref:
|
|
806
|
+
ref: he
|
|
812
807
|
}, [
|
|
813
|
-
e.value.style.chart.legend.show ? (r(), T(
|
|
814
|
-
key: `legend_${
|
|
815
|
-
legendSet:
|
|
816
|
-
config:
|
|
817
|
-
onClickMarker: s[1] || (s[1] = ({ legend: t }) =>
|
|
818
|
-
},
|
|
808
|
+
e.value.style.chart.legend.show ? (r(), T(el, {
|
|
809
|
+
key: `legend_${fe.value}`,
|
|
810
|
+
legendSet: re.value,
|
|
811
|
+
config: pt.value,
|
|
812
|
+
onClickMarker: s[1] || (s[1] = ({ legend: t }) => Me(t.id))
|
|
813
|
+
}, Ve({
|
|
819
814
|
item: m(({ legend: t }) => [
|
|
820
815
|
d("div", {
|
|
821
|
-
style:
|
|
816
|
+
style: P(`opacity:${O.value.includes(t.id) ? 0.5 : 1}`),
|
|
822
817
|
onClick: (o) => t.segregate()
|
|
823
|
-
},
|
|
818
|
+
}, E(t.name), 13, Sl)
|
|
824
819
|
]),
|
|
825
820
|
_: 2
|
|
826
821
|
}, [
|
|
827
822
|
l.$slots.pattern ? {
|
|
828
823
|
name: "legend-pattern",
|
|
829
824
|
fn: m(({ legend: t, index: o }) => [
|
|
830
|
-
|
|
825
|
+
Be(u(ot), {
|
|
831
826
|
shape: t.shape,
|
|
832
827
|
radius: 30,
|
|
833
828
|
stroke: "none",
|
|
834
829
|
plot: { x: 30, y: 30 },
|
|
835
|
-
fill: `url(#pattern_${
|
|
830
|
+
fill: `url(#pattern_${w.value}_${o})`
|
|
836
831
|
}, null, 8, ["shape", "fill"])
|
|
837
832
|
]),
|
|
838
833
|
key: "0"
|
|
839
834
|
} : void 0
|
|
840
|
-
]), 1032, ["legendSet", "config"])) :
|
|
841
|
-
p(l.$slots, "legend", { legend:
|
|
835
|
+
]), 1032, ["legendSet", "config"])) : v("", !0),
|
|
836
|
+
p(l.$slots, "legend", { legend: re.value }, void 0, !0)
|
|
842
837
|
], 512),
|
|
843
838
|
l.$slots.source ? (r(), n("div", {
|
|
844
839
|
key: 7,
|
|
845
840
|
ref_key: "source",
|
|
846
|
-
ref:
|
|
841
|
+
ref: de,
|
|
847
842
|
dir: "auto"
|
|
848
843
|
}, [
|
|
849
844
|
p(l.$slots, "source", {}, void 0, !0)
|
|
850
|
-
], 512)) :
|
|
851
|
-
|
|
845
|
+
], 512)) : v("", !0),
|
|
846
|
+
z.value ? (r(), T(u(Ze), {
|
|
852
847
|
key: 8,
|
|
853
848
|
hideDetails: "",
|
|
854
849
|
config: {
|
|
855
|
-
open:
|
|
850
|
+
open: H.value.showTable,
|
|
856
851
|
maxHeight: 1e4,
|
|
857
852
|
body: {
|
|
858
853
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -865,23 +860,23 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
865
860
|
}
|
|
866
861
|
}, {
|
|
867
862
|
content: m(() => [
|
|
868
|
-
(r(), T(
|
|
869
|
-
key: `table_${
|
|
870
|
-
colNames:
|
|
871
|
-
head:
|
|
872
|
-
body:
|
|
873
|
-
config:
|
|
863
|
+
(r(), T(u(tt), {
|
|
864
|
+
key: `table_${it.value}`,
|
|
865
|
+
colNames: j.value.colNames,
|
|
866
|
+
head: j.value.head,
|
|
867
|
+
body: j.value.body,
|
|
868
|
+
config: j.value.config,
|
|
874
869
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
875
|
-
onClose: s[2] || (s[2] = (t) =>
|
|
870
|
+
onClose: s[2] || (s[2] = (t) => H.value.showTable = !1)
|
|
876
871
|
}, {
|
|
877
872
|
th: m(({ th: t }) => [
|
|
878
|
-
d("div", { innerHTML: t }, null, 8,
|
|
873
|
+
d("div", { innerHTML: t }, null, 8, Ol)
|
|
879
874
|
]),
|
|
880
875
|
td: m(({ td: t }) => [
|
|
881
|
-
|
|
876
|
+
Ge(E(t.name ? t.name : u(Q)(
|
|
882
877
|
e.value.style.chart.selector.labels.formatter,
|
|
883
878
|
t,
|
|
884
|
-
|
|
879
|
+
u(Z)({
|
|
885
880
|
p: e.value.style.chart.xAxis.labels.prefix,
|
|
886
881
|
v: t,
|
|
887
882
|
s: e.value.style.chart.xAxis.labels.suffix,
|
|
@@ -893,32 +888,32 @@ const Zt = ["id"], el = ["xmlns", "viewBox"], tl = ["id"], ll = ["stop-color"],
|
|
|
893
888
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
894
889
|
]),
|
|
895
890
|
_: 1
|
|
896
|
-
}, 8, ["config"])) :
|
|
897
|
-
e.value.style.chart.dialog.show ? (r(), T(
|
|
891
|
+
}, 8, ["config"])) : v("", !0),
|
|
892
|
+
e.value.style.chart.dialog.show ? (r(), T(u(et), {
|
|
898
893
|
key: 9,
|
|
899
894
|
ref_key: "dialog",
|
|
900
|
-
ref:
|
|
901
|
-
onClose: s[3] || (s[3] = (t) =>
|
|
895
|
+
ref: te,
|
|
896
|
+
onClose: s[3] || (s[3] = (t) => F.value = null),
|
|
902
897
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
903
898
|
color: e.value.style.chart.dialog.color,
|
|
904
899
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
905
900
|
headerColor: e.value.style.chart.dialog.header.color
|
|
906
901
|
}, {
|
|
907
902
|
title: m(() => [
|
|
908
|
-
|
|
903
|
+
Ge(E(F.value.name), 1)
|
|
909
904
|
]),
|
|
910
905
|
default: m(() => [
|
|
911
|
-
|
|
906
|
+
F.value ? (r(), T(u(nt), {
|
|
912
907
|
key: 0,
|
|
913
|
-
config:
|
|
914
|
-
dataset:
|
|
915
|
-
}, null, 8, ["config", "dataset"])) :
|
|
908
|
+
config: Se.value,
|
|
909
|
+
dataset: Oe.value
|
|
910
|
+
}, null, 8, ["config", "dataset"])) : v("", !0)
|
|
916
911
|
]),
|
|
917
912
|
_: 1
|
|
918
|
-
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) :
|
|
919
|
-
], 46,
|
|
913
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) : v("", !0)
|
|
914
|
+
], 46, al));
|
|
920
915
|
}
|
|
921
|
-
},
|
|
916
|
+
}, Bl = /* @__PURE__ */ ll(zl, [["__scopeId", "data-v-403f8970"]]);
|
|
922
917
|
export {
|
|
923
|
-
|
|
918
|
+
Bl as default
|
|
924
919
|
};
|