vue-data-ui 2.13.3 → 2.13.5-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/dist/{Arrow-BE9mfJkL.js → Arrow-nJWOreP4.js} +1 -1
- package/dist/{BaseDraggableDialog-B9pXvCsc.js → BaseDraggableDialog-IYfaPzLA.js} +2 -2
- package/dist/{BaseIcon-5s68maMg.js → BaseIcon-lwpKi6Wa.js} +1 -1
- package/dist/{ColorPicker-BGBMbOup.js → ColorPicker-D8TZj-R5.js} +2 -2
- package/dist/{DataTable-C8F2aovs.js → DataTable-CuFlXUxm.js} +2 -2
- package/dist/{Legend-CoAmfx-7.js → Legend-DwNuhYnG.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DqqOehOr.js → NonSvgPenAndPaper-D1qSfnYa.js} +3 -3
- package/dist/{PackageVersion-BP504Bvs.js → PackageVersion-1psmmuzo.js} +2 -2
- package/dist/{PenAndPaper-CXfm6LDW.js → PenAndPaper-DgUkj01g.js} +3 -3
- package/dist/{Shape-CbwWTjj8.js → Shape-CmlBrd-F.js} +1 -1
- package/dist/Slicer-B-5jXhhw.js +577 -0
- package/dist/{SparkTooltip-HSZVAB1L.js → SparkTooltip-BGjRXPbu.js} +1 -1
- package/dist/{Title-VtPtUhFq.js → Title-BoKeR6i0.js} +1 -1
- package/dist/{Tooltip-Buu8aWuU.js → Tooltip-Df2iF7bv.js} +1 -1
- package/dist/{UserOptions-7VcV_QUc.js → UserOptions-NrArsCuC.js} +2 -2
- package/dist/{dom-to-png-BjOvlJis.js → dom-to-png-DK9TIQio.js} +1 -1
- package/dist/{img-ClKzlGeA.js → img-CqqmkwDl.js} +1 -1
- package/dist/{index-edeP1M3x.js → index-C137VZkI.js} +675 -656
- package/dist/{pdf-2Tyxymwm.js → pdf-DTB7aasS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useNestedProp-RNi-Fxfm.js → useNestedProp-ZNu8JrRX.js} +1 -1
- package/dist/{usePrinter-B3nKJKAm.js → usePrinter-B63T3abI.js} +2 -2
- package/dist/useTimeLabels-Mrr0jrpL.js +242 -0
- package/dist/{vue-data-ui-BfYXPWao.js → vue-data-ui-CBTXw5iV.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-4eGejORW.js → vue-ui-3d-bar-DKF0Y325.js} +5 -5
- package/dist/{vue-ui-accordion-C4DquMtU.js → vue-ui-accordion-BI2rBS5z.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Dvrd6Gun.js → vue-ui-age-pyramid-BDulR8Zn.js} +5 -5
- package/dist/{vue-ui-annotator-Db5OBDjC.js → vue-ui-annotator-BokgyAXW.js} +2 -2
- package/dist/{vue-ui-bullet-BlT3571K.js → vue-ui-bullet-D5TWFElT.js} +6 -6
- package/dist/{vue-ui-candlestick-0aDroQCS.js → vue-ui-candlestick-DHTA9GKN.js} +96 -96
- package/dist/{vue-ui-carousel-table-Dav_41vI.js → vue-ui-carousel-table-Bw4rC-Mv.js} +4 -4
- package/dist/{vue-ui-chestnut-CosLSi7b.js → vue-ui-chestnut-DJAW8dTu.js} +4 -4
- package/dist/{vue-ui-chord-BxHp31c3.js → vue-ui-chord-Drxbeh2P.js} +7 -7
- package/dist/{vue-ui-circle-pack-BVbRVfDq.js → vue-ui-circle-pack-ClMdOEtG.js} +5 -5
- package/dist/{vue-ui-cursor-ByPGYWlO.js → vue-ui-cursor-DaT20eFb.js} +2 -2
- package/dist/{vue-ui-dashboard-cC6brbws.js → vue-ui-dashboard-z7pGTlMX.js} +62 -62
- package/dist/{vue-ui-digits-Bb-6Adj7.js → vue-ui-digits-D6kq38s9.js} +2 -2
- package/dist/{vue-ui-donut-B3WltwRF.js → vue-ui-donut-_kVdFrZR.js} +7 -7
- package/dist/{vue-ui-donut-evolution-21zgSmm1.js → vue-ui-donut-evolution-D5P6GSM6.js} +320 -313
- package/dist/{vue-ui-dumbbell-BRRWW41S.js → vue-ui-dumbbell-DfZNlCK5.js} +6 -6
- package/dist/{vue-ui-flow-1nJK3SOO.js → vue-ui-flow-DTx267Ka.js} +6 -6
- package/dist/{vue-ui-funnel-Bo78n4pQ.js → vue-ui-funnel-B_J0AaMa.js} +83 -83
- package/dist/{vue-ui-galaxy-DViqZ_WR.js → vue-ui-galaxy-DtE48yJw.js} +4 -4
- package/dist/{vue-ui-gauge-B_8skcc5.js → vue-ui-gauge-CAKj45DE.js} +5 -5
- package/dist/{vue-ui-gizmo-B06tu-EV.js → vue-ui-gizmo-B-7-Lfai.js} +3 -3
- package/dist/{vue-ui-heatmap-9cZQCsYz.js → vue-ui-heatmap-3anHqH8-.js} +6 -6
- package/dist/{vue-ui-history-plot-q9GGP9lk.js → vue-ui-history-plot-DfduurUS.js} +103 -103
- package/dist/{vue-ui-kpi-D6hwxL-7.js → vue-ui-kpi-C_wEVoh0.js} +3 -3
- package/dist/{vue-ui-mini-loader-5K1b5iwf.js → vue-ui-mini-loader-lGMkM8Kw.js} +2 -2
- package/dist/{vue-ui-molecule-CZJZM3v3.js → vue-ui-molecule-fXW4ejgw.js} +4 -4
- package/dist/{vue-ui-mood-radar-B4ysiT_U.js → vue-ui-mood-radar-TuyuMkzg.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Bp4pT3D5.js → vue-ui-nested-donuts-CtbOVaRR.js} +6 -6
- package/dist/{vue-ui-onion-BnCFgrkZ.js → vue-ui-onion-BV3A2JCN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B_BhXrKI.js → vue-ui-parallel-coordinate-plot-DJbeP86h.js} +175 -175
- package/dist/{vue-ui-quadrant-GclnmYO6.js → vue-ui-quadrant-xaXINXWX.js} +7 -7
- package/dist/{vue-ui-quick-chart-CFaBCkfP.js → vue-ui-quick-chart-Dr1HyP8V.js} +464 -457
- package/dist/{vue-ui-radar-BA45g7F0.js → vue-ui-radar-Cbqe4LM_.js} +6 -6
- package/dist/{vue-ui-rating-hTWz-pBq.js → vue-ui-rating-FuSmmUE8.js} +2 -2
- package/dist/{vue-ui-relation-circle-CkOaN_CX.js → vue-ui-relation-circle-kDNSenDo.js} +96 -96
- package/dist/{vue-ui-ridgeline-B2BIUDB-.js → vue-ui-ridgeline-DxtgFsg_.js} +317 -308
- package/dist/{vue-ui-rings-CSO7Zd_g.js → vue-ui-rings-DMx8sMKa.js} +7 -7
- package/dist/{vue-ui-scatter-17gG4jRb.js → vue-ui-scatter-DX42tHz8.js} +7 -7
- package/dist/{vue-ui-skeleton-EoGn9JbB.js → vue-ui-skeleton-CO_Hk6A_.js} +3 -3
- package/dist/{vue-ui-smiley-C_HkNW2f.js → vue-ui-smiley-4lhGcbc2.js} +2 -2
- package/dist/{vue-ui-spark-trend-AXaOXuBl.js → vue-ui-spark-trend-hGZ_JmgH.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWZCWNKx.js → vue-ui-sparkbar-BTf3c9Qn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZVcBexd.js → vue-ui-sparkgauge-oMfHC1dA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BrCxiefW.js → vue-ui-sparkhistogram-DvVbSLEj.js} +4 -4
- package/dist/{vue-ui-sparkline-CFwBsRfj.js → vue-ui-sparkline-BbmMxjnF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-bwY9BxUo.js → vue-ui-sparkstackbar-ChREWvRl.js} +3 -3
- package/dist/vue-ui-stackbar-BNPLRyEN.js +1130 -0
- package/dist/{vue-ui-strip-plot-C02lCys6.js → vue-ui-strip-plot-Ca1C6bZ_.js} +73 -73
- package/dist/{vue-ui-table-C04CtiEi.js → vue-ui-table-Cfb6eIU4.js} +3 -3
- package/dist/{vue-ui-table-heatmap-IERP9tp0.js → vue-ui-table-heatmap-BnjgK_PF.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CgXchDEY.js → vue-ui-table-sparkline-MJ8lvKbd.js} +4 -4
- package/dist/{vue-ui-thermometer-lf9mJ8LP.js → vue-ui-thermometer-C2qisXo8.js} +5 -5
- package/dist/{vue-ui-timer-BZLtxymy.js → vue-ui-timer-By6_kV9k.js} +8 -8
- package/dist/{vue-ui-tiremarks-Cu1TXwev.js → vue-ui-tiremarks-BU6rsols.js} +5 -5
- package/dist/{vue-ui-treemap-BVyxf-77.js → vue-ui-treemap-DivJblJW.js} +7 -7
- package/dist/{vue-ui-vertical-bar-C_euYHER.js → vue-ui-vertical-bar-Dyt4yezz.js} +8 -8
- package/dist/{vue-ui-waffle-BW6LSfBe.js → vue-ui-waffle-DSzMjANd.js} +7 -7
- package/dist/{vue-ui-wheel-DoARpgpJ.js → vue-ui-wheel-DFCGjYBy.js} +5 -5
- package/dist/{vue-ui-word-cloud-BVmpg5X_.js → vue-ui-word-cloud-BiG5zI03.js} +5 -5
- package/dist/{vue-ui-world-DzbMOJbm.js → vue-ui-world-BhGGmeGq.js} +5 -5
- package/dist/{vue-ui-xy-DD5417b2.js → vue-ui-xy-CZpcKEkV.js} +680 -668
- package/dist/{vue-ui-xy-canvas-9m7qMGHS.js → vue-ui-xy-canvas-B7fE9npn.js} +400 -392
- package/package.json +1 -1
- package/dist/Slicer-BNnP0Y2C.js +0 -537
- package/dist/vue-ui-stackbar-Bgc7lS0v.js +0 -1132
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as N, ref as h, shallowRef as $e, computed as f, onMounted as tt, onBeforeUnmount as lt, watch as at, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as $, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as
|
|
2
|
-
import { u as nt, c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as kt } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as N, ref as h, shallowRef as $e, computed as f, onMounted as tt, onBeforeUnmount as lt, watch as at, createElementBlock as r, openBlock as s, unref as i, normalizeStyle as $, normalizeClass as F, renderSlot as x, createBlock as O, createCommentVNode as v, createElementVNode as S, createVNode as Ae, createSlots as st, withCtx as m, normalizeProps as X, guardReactiveProps as D, Fragment as b, renderList as k, toDisplayString as z, createTextVNode as ot, nextTick as rt } from "vue";
|
|
2
|
+
import { u as nt, c as Me, o as ut, e as Se, g as it, b as ct, d as vt, p as V, D as ze, i as Y, f as j, X as ht, l as yt, h as dt, G as ft, F as P, t as xt, a as pt, C as q, q as mt, r as gt, x as bt } from "./index-C137VZkI.js";
|
|
3
|
+
import { u as Te } from "./useNestedProp-ZNu8JrRX.js";
|
|
4
|
+
import { u as kt } from "./usePrinter-B63T3abI.js";
|
|
5
5
|
import { t as wt, u as Ct } from "./useResponsive-JZ9xq-JV.js";
|
|
6
6
|
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as $t } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
8
|
+
import At from "./Legend-DwNuhYnG.js";
|
|
9
|
+
import Mt from "./Title-BoKeR6i0.js";
|
|
10
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const zt = ["id"], Tt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"], Nt = { key: 1 }, Ot = ["id"], Pt = ["stop-color"], It = ["stop-color"], Ft = ["stop-color"], Xt = { key: 2 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = { key: 3 }, jt = ["x", "y", "fill", "font-size"], Rt = ["transform", "font-size", "fill", "font-weight"], Bt = { key: 5 }, Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 6 }, Ht = ["transform", "fill", "font-size", "text-anchor"], Ut = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke", "stroke-width"], Jt = ["cx", "cy", "fill", "r"], Kt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Qt = { key: 1 }, el = ["x", "y", "font-size", "fill", "font-weight"], tl = { key: 2 }, ll = ["x", "y", "font-size", "font-weight", "fill"], al = ["cx", "cy", "r", "onMouseenter", "onClick"], sl = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, ol = ["onClick"], rl = ["innerHTML"], nl = {
|
|
@@ -29,13 +29,13 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectLegend", "selectDatapoint"],
|
|
31
31
|
setup(Le, { expose: Ne, emit: Oe }) {
|
|
32
|
-
const Pe = N(() => import("./vue-ui-accordion-
|
|
32
|
+
const Pe = N(() => import("./vue-ui-accordion-BI2rBS5z.js")), Ie = N(() => import("./DataTable-CuFlXUxm.js")), Fe = N(() => import("./PackageVersion-1psmmuzo.js")), Xe = N(() => import("./PenAndPaper-DgUkj01g.js")), De = N(() => import("./vue-ui-skeleton-CO_Hk6A_.js")), Ye = N(() => import("./Tooltip-Df2iF7bv.js")), je = N(() => import("./UserOptions-NrArsCuC.js")), { vue_ui_history_plot: Re } = nt(), y = Le, R = h(null), te = h(null), le = h(0), ae = h(null), se = h(0), oe = h(0), re = h(0), A = $e(null), I = $e(null), ne = h(null), B = h(Me()), Z = h(!1), J = h(""), g = h([]), E = h(!1), _ = h(null), W = h(!1), ue = h(null), w = f({
|
|
33
33
|
get: () => !!y.dataset && y.dataset.length,
|
|
34
34
|
set: (t) => t
|
|
35
35
|
}), ie = Oe;
|
|
36
36
|
tt(ce);
|
|
37
37
|
function ce() {
|
|
38
|
-
if (ut(y.dataset) ?
|
|
38
|
+
if (ut(y.dataset) ? Se({
|
|
39
39
|
componentName: "VueUiHistoryPlot",
|
|
40
40
|
type: "dataset"
|
|
41
41
|
}) : y.dataset.forEach((t, a) => {
|
|
@@ -43,7 +43,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
43
43
|
datasetObject: t,
|
|
44
44
|
requiredAttributes: ["name", "values"]
|
|
45
45
|
}).forEach((l) => {
|
|
46
|
-
w.value = !1,
|
|
46
|
+
w.value = !1, Se({
|
|
47
47
|
componentName: "VueUiHistoryPlot",
|
|
48
48
|
type: "datasetSerieAttribute",
|
|
49
49
|
property: l,
|
|
@@ -60,65 +60,65 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
60
60
|
source: ue.value
|
|
61
61
|
});
|
|
62
62
|
requestAnimationFrame(() => {
|
|
63
|
-
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing
|
|
63
|
+
d.value.width = a, d.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = P({
|
|
64
64
|
relator: Math.min(a, l),
|
|
65
65
|
adjuster: 600,
|
|
66
66
|
source: e.value.style.chart.plots.radius,
|
|
67
67
|
threshold: 3,
|
|
68
68
|
fallback: 3
|
|
69
|
-
}),
|
|
69
|
+
}), n.value.indexLabels = P({
|
|
70
70
|
relator: Math.min(a, l),
|
|
71
71
|
adjuster: 600,
|
|
72
72
|
source: e.value.style.chart.plots.indexLabels.fontSize,
|
|
73
73
|
threshold: 6,
|
|
74
74
|
fallback: 6
|
|
75
|
-
}),
|
|
75
|
+
}), n.value.labels = P({
|
|
76
76
|
relator: Math.min(a, l),
|
|
77
77
|
adjuster: 600,
|
|
78
78
|
source: e.value.style.chart.plots.labels.fontSize,
|
|
79
79
|
threshold: 6,
|
|
80
80
|
fallback: 6
|
|
81
|
-
}),
|
|
81
|
+
}), n.value.xAxisLabels = P({
|
|
82
82
|
relator: Math.min(a, l),
|
|
83
83
|
adjuster: 600,
|
|
84
84
|
source: e.value.style.chart.axes.x.labels.fontSize,
|
|
85
85
|
threshold: 6,
|
|
86
86
|
fallback: 6
|
|
87
|
-
}),
|
|
87
|
+
}), n.value.xAxisName = P({
|
|
88
88
|
relator: Math.min(a, l),
|
|
89
89
|
adjuster: 600,
|
|
90
90
|
source: e.value.style.chart.axes.x.name.fontSize,
|
|
91
91
|
threshold: 6,
|
|
92
92
|
fallback: 6
|
|
93
|
-
}),
|
|
93
|
+
}), n.value.yAxisLabels = P({
|
|
94
94
|
relator: Math.min(a, l),
|
|
95
95
|
adjuster: 600,
|
|
96
96
|
source: e.value.style.chart.axes.y.labels.fontSize,
|
|
97
97
|
threshold: 6,
|
|
98
98
|
fallback: 6
|
|
99
|
-
}),
|
|
99
|
+
}), n.value.yAxisName = P({
|
|
100
100
|
relator: Math.min(a, l),
|
|
101
101
|
adjuster: 600,
|
|
102
102
|
source: e.value.style.chart.axes.y.name.fontSize,
|
|
103
103
|
threshold: 6,
|
|
104
104
|
fallback: 6
|
|
105
|
-
}));
|
|
105
|
+
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
|
|
108
|
+
A.value && (I.value && A.value.unobserve(I.value), A.value.disconnect()), A.value = new ResizeObserver(t), I.value = R.value.parentNode, A.value.observe(I.value);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
lt(() => {
|
|
112
|
-
|
|
112
|
+
A.value && (I.value && A.value.unobserve(I.value), A.value.disconnect());
|
|
113
113
|
});
|
|
114
114
|
function ve() {
|
|
115
|
-
const t =
|
|
115
|
+
const t = Te({
|
|
116
116
|
userConfig: y.config,
|
|
117
117
|
defaultConfig: Re
|
|
118
118
|
});
|
|
119
119
|
let a = {};
|
|
120
120
|
return t.theme ? a = {
|
|
121
|
-
...
|
|
121
|
+
...Te({
|
|
122
122
|
userConfig: pt.vue_ui_history_plot[t.theme] || y.config,
|
|
123
123
|
defaultConfig: t
|
|
124
124
|
}),
|
|
@@ -130,7 +130,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
130
130
|
set: (t) => t
|
|
131
131
|
}), { userOptionsVisible: K, setUserOptionsVisibility: he, keepUserOptionState: ye } = _t({ config: e.value }), { svgRef: de } = $t({ config: e.value.style.chart.title });
|
|
132
132
|
at(() => y.config, (t) => {
|
|
133
|
-
e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width,
|
|
133
|
+
e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), le.value += 1, oe.value += 1, se.value += 1, d.value.height = e.value.style.chart.height, d.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
134
134
|
}, { deep: !0 });
|
|
135
135
|
const { isPrinting: fe, isImaging: xe, generatePdf: pe, generateImage: me } = kt({
|
|
136
136
|
elementId: `history_plot_${B.value}`,
|
|
@@ -142,7 +142,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
142
142
|
}), d = h({
|
|
143
143
|
height: e.value.style.chart.height,
|
|
144
144
|
width: e.value.style.chart.width
|
|
145
|
-
}),
|
|
145
|
+
}), u = f(() => {
|
|
146
146
|
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top;
|
|
147
147
|
return {
|
|
148
148
|
left: t,
|
|
@@ -152,7 +152,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
152
152
|
width: d.value.width - t - e.value.style.chart.padding.right,
|
|
153
153
|
height: d.value.height - a - e.value.style.chart.padding.bottom
|
|
154
154
|
};
|
|
155
|
-
}),
|
|
155
|
+
}), n = h({
|
|
156
156
|
plots: e.value.style.chart.plots.radius,
|
|
157
157
|
indexLabels: e.value.style.chart.plots.indexLabels.fontSize,
|
|
158
158
|
labels: e.value.style.chart.plots.labels.fontSize,
|
|
@@ -160,24 +160,24 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
160
160
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
161
161
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
162
162
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
163
|
-
}),
|
|
163
|
+
}), M = f(() => w.value ? y.dataset.map((t, a) => ({
|
|
164
164
|
...t,
|
|
165
165
|
color: t.color ? vt(t.color) : We.value[a] || V[a] || V[a % V.length],
|
|
166
166
|
seriesIndex: a
|
|
167
|
-
})) : []), Ee = f(() => w.value ? Math.max(...
|
|
167
|
+
})) : []), Ee = f(() => w.value ? Math.max(...M.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), He = f(() => {
|
|
168
168
|
if (!w.value) return 1;
|
|
169
|
-
const t = Math.min(...
|
|
169
|
+
const t = Math.min(...M.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
170
170
|
return t < 0 ? t : 0;
|
|
171
|
-
}), Ue = f(() => w.value ? Math.max(...
|
|
171
|
+
}), Ue = f(() => w.value ? Math.max(...M.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y))) : 1), Ge = f(() => {
|
|
172
172
|
if (!w.value) return 1;
|
|
173
|
-
const t = Math.min(...
|
|
173
|
+
const t = Math.min(...M.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
174
174
|
return t < 0 ? t : 0;
|
|
175
175
|
}), p = f(() => {
|
|
176
|
-
const t =
|
|
176
|
+
const t = ze(
|
|
177
177
|
e.value.style.chart.axes.x.scaleMin === null ? He.value : e.value.style.chart.axes.x.scaleMin,
|
|
178
178
|
e.value.style.chart.axes.x.scaleMax === null ? Ee.value : e.value.style.chart.axes.x.scaleMax,
|
|
179
179
|
e.value.style.chart.axes.x.ticks
|
|
180
|
-
), a =
|
|
180
|
+
), a = ze(
|
|
181
181
|
e.value.style.chart.axes.y.scaleMin === null ? Ge.value : e.value.style.chart.axes.y.scaleMin,
|
|
182
182
|
e.value.style.chart.axes.y.scaleMax === null ? Ue.value : e.value.style.chart.axes.y.scaleMax,
|
|
183
183
|
e.value.style.chart.axes.y.ticks
|
|
@@ -186,28 +186,28 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
186
186
|
x: t,
|
|
187
187
|
y: a,
|
|
188
188
|
tickX: t.ticks.map((l) => ({
|
|
189
|
-
x:
|
|
190
|
-
y1:
|
|
191
|
-
y2:
|
|
189
|
+
x: u.value.left + (l - t.min) / (t.max - t.min) * u.value.width,
|
|
190
|
+
y1: u.value.top,
|
|
191
|
+
y2: u.value.bottom,
|
|
192
192
|
value: l
|
|
193
193
|
})),
|
|
194
194
|
tickY: a.ticks.map((l) => ({
|
|
195
|
-
y:
|
|
196
|
-
x1:
|
|
197
|
-
x2:
|
|
195
|
+
y: u.value.bottom - (l - a.min) / (a.max - a.min) * u.value.height,
|
|
196
|
+
x1: u.value.left,
|
|
197
|
+
x2: u.value.right,
|
|
198
198
|
value: l
|
|
199
199
|
}))
|
|
200
200
|
};
|
|
201
201
|
});
|
|
202
202
|
function Ve(t) {
|
|
203
203
|
const a = p.value.x.min < 0 ? Math.abs(p.value.x.min) : p.value.x.min > 0 ? -p.value.x.min : 0;
|
|
204
|
-
return
|
|
204
|
+
return u.value.left + ((t || 0) + a) / (p.value.x.max + a) * u.value.width;
|
|
205
205
|
}
|
|
206
206
|
function qe(t) {
|
|
207
207
|
const a = p.value.y.min < 0 ? Math.abs(p.value.y.min) : p.value.y.min > 0 ? -p.value.y.min : 0;
|
|
208
|
-
return
|
|
208
|
+
return u.value.bottom - ((t || 0) + a) / (p.value.y.max + a) * u.value.height;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const T = f(() => M.value.filter((t) => !g.value.includes(t.seriesIndex)).map((t, a) => {
|
|
211
211
|
const l = t.values.map((o, L) => ({
|
|
212
212
|
valueX: o.x,
|
|
213
213
|
valueY: o.y,
|
|
@@ -216,7 +216,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
216
216
|
y: qe(o.y),
|
|
217
217
|
color: t.color,
|
|
218
218
|
seriesName: t.name,
|
|
219
|
-
id:
|
|
219
|
+
id: Me()
|
|
220
220
|
})), c = l.map((o) => `${o.x},${o.y} `).join("").trim();
|
|
221
221
|
return {
|
|
222
222
|
...t,
|
|
@@ -227,7 +227,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
227
227
|
function ge(t) {
|
|
228
228
|
g.value.includes(t) ? g.value = g.value.filter((a) => a !== t) : g.value.push(t);
|
|
229
229
|
}
|
|
230
|
-
const be = f(() =>
|
|
230
|
+
const be = f(() => M.value.map((t) => ({
|
|
231
231
|
...t,
|
|
232
232
|
opacity: g.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
233
233
|
segregate: () => ge(t.seriesIndex),
|
|
@@ -256,7 +256,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
256
256
|
}
|
|
257
257
|
const Q = h(null);
|
|
258
258
|
function Qe({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
259
|
-
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series:
|
|
259
|
+
Q.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: M.value }, _.value = t;
|
|
260
260
|
const c = e.value.style.chart.tooltip.customFormat;
|
|
261
261
|
if (W.value = !1, bt(c))
|
|
262
262
|
try {
|
|
@@ -264,7 +264,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
264
264
|
seriesIndex: l,
|
|
265
265
|
datapoint: t,
|
|
266
266
|
plotIndex: a,
|
|
267
|
-
series:
|
|
267
|
+
series: M.value,
|
|
268
268
|
config: e.value
|
|
269
269
|
});
|
|
270
270
|
typeof o == "string" && (J.value = o, W.value = !0);
|
|
@@ -295,7 +295,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
295
295
|
}
|
|
296
296
|
Z.value = !0;
|
|
297
297
|
}
|
|
298
|
-
f(() => ({ head:
|
|
298
|
+
f(() => ({ head: T.value.map((a) => ({
|
|
299
299
|
name: a.name,
|
|
300
300
|
color: a.color
|
|
301
301
|
})) }));
|
|
@@ -305,7 +305,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
305
305
|
e.value.table.columnNames.datapoint,
|
|
306
306
|
e.value.table.columnNames.x,
|
|
307
307
|
e.value.table.columnNames.y
|
|
308
|
-
], a =
|
|
308
|
+
], a = T.value.flatMap((c) => c.plots.map((o) => [
|
|
309
309
|
{
|
|
310
310
|
color: o.color,
|
|
311
311
|
name: o.seriesName
|
|
@@ -358,7 +358,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
358
358
|
[e.value.table.columnNames.datapoint],
|
|
359
359
|
[e.value.table.columnNames.x],
|
|
360
360
|
[e.value.table.columnNames.y]
|
|
361
|
-
], l =
|
|
361
|
+
], l = T.value.flatMap((L) => L.plots.map((G) => [
|
|
362
362
|
[G.seriesName],
|
|
363
363
|
[G.label],
|
|
364
364
|
[G.valueX],
|
|
@@ -385,7 +385,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
385
385
|
C.value.showTooltip = !C.value.showTooltip;
|
|
386
386
|
}
|
|
387
387
|
function et() {
|
|
388
|
-
return
|
|
388
|
+
return T.value;
|
|
389
389
|
}
|
|
390
390
|
return Ne({
|
|
391
391
|
getData: et,
|
|
@@ -427,7 +427,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
427
427
|
class: "vue-ui-xy-title",
|
|
428
428
|
style: $(`font-family:${e.value.style.fontFamily}`)
|
|
429
429
|
}, [
|
|
430
|
-
(s(), O(
|
|
430
|
+
(s(), O(Mt, {
|
|
431
431
|
key: `title_${le.value}`,
|
|
432
432
|
config: {
|
|
433
433
|
title: {
|
|
@@ -540,13 +540,13 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
540
540
|
viewBox: `0 0 ${d.value.width < 0 ? 0.1 : d.value.width} ${d.value.height < 0 ? 0.1 : d.value.height}`,
|
|
541
541
|
style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
542
542
|
}, [
|
|
543
|
-
|
|
543
|
+
Ae(i(Fe)),
|
|
544
544
|
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
545
545
|
key: 0,
|
|
546
|
-
x:
|
|
547
|
-
y:
|
|
548
|
-
width:
|
|
549
|
-
height:
|
|
546
|
+
x: u.value.left,
|
|
547
|
+
y: u.value.top,
|
|
548
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
549
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
550
550
|
style: {
|
|
551
551
|
pointerEvents: "none"
|
|
552
552
|
}
|
|
@@ -554,19 +554,19 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
554
554
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
555
555
|
], 8, Lt)) : v("", !0),
|
|
556
556
|
e.value.style.chart.plots.gradient.show ? (s(), r("defs", Nt, [
|
|
557
|
-
(s(!0), r(b, null, k(
|
|
557
|
+
(s(!0), r(b, null, k(T.value, (l, c) => (s(), r("radialGradient", {
|
|
558
558
|
id: `gradient_${c}_${B.value}`,
|
|
559
559
|
fy: "30%"
|
|
560
560
|
}, [
|
|
561
|
-
|
|
561
|
+
S("stop", {
|
|
562
562
|
offset: "10%",
|
|
563
563
|
"stop-color": i(yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
564
564
|
}, null, 8, Pt),
|
|
565
|
-
|
|
565
|
+
S("stop", {
|
|
566
566
|
offset: "90%",
|
|
567
567
|
"stop-color": i(dt)(l.color, 0.1)
|
|
568
568
|
}, null, 8, It),
|
|
569
|
-
|
|
569
|
+
S("stop", {
|
|
570
570
|
offset: "100%",
|
|
571
571
|
"stop-color": l.color
|
|
572
572
|
}, null, 8, Ft)
|
|
@@ -585,12 +585,12 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
585
585
|
])) : v("", !0),
|
|
586
586
|
e.value.style.chart.axes.y.labels.show ? (s(), r("g", Yt, [
|
|
587
587
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
|
|
588
|
-
x:
|
|
589
|
-
y: l.y +
|
|
588
|
+
x: u.value.left + e.value.style.chart.axes.y.labels.offsetX - 4,
|
|
589
|
+
y: l.y + n.value.yAxisLabels / 3,
|
|
590
590
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
591
|
-
"font-size":
|
|
591
|
+
"font-size": n.value.yAxisLabels,
|
|
592
592
|
"text-anchor": "end"
|
|
593
|
-
},
|
|
593
|
+
}, z(i(Y)(
|
|
594
594
|
e.value.style.chart.axes.y.labels.formatter,
|
|
595
595
|
l.value,
|
|
596
596
|
i(j)({
|
|
@@ -603,12 +603,12 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
603
603
|
])) : v("", !0),
|
|
604
604
|
e.value.style.chart.axes.y.name.text ? (s(), r("text", {
|
|
605
605
|
key: 4,
|
|
606
|
-
transform: `translate(${e.value.style.chart.axes.y.name.offsetX +
|
|
607
|
-
"font-size":
|
|
606
|
+
transform: `translate(${e.value.style.chart.axes.y.name.offsetX + n.value.yAxisName}, ${d.value.height / 2 + e.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
607
|
+
"font-size": n.value.yAxisName,
|
|
608
608
|
fill: e.value.style.chart.axes.y.name.color,
|
|
609
609
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
610
610
|
"text-anchor": "middle"
|
|
611
|
-
},
|
|
611
|
+
}, z(e.value.style.chart.axes.y.name.text), 9, Rt)) : v("", !0),
|
|
612
612
|
e.value.style.chart.grid.horizontalLines.show ? (s(), r("g", Bt, [
|
|
613
613
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("line", {
|
|
614
614
|
x1: l.x1,
|
|
@@ -622,11 +622,11 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
622
622
|
])) : v("", !0),
|
|
623
623
|
e.value.style.chart.axes.x.labels.show ? (s(), r("g", Et, [
|
|
624
624
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("text", {
|
|
625
|
-
transform: `translate(${l.x}, ${
|
|
625
|
+
transform: `translate(${l.x}, ${u.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
626
626
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
627
|
-
"font-size":
|
|
627
|
+
"font-size": n.value.xAxisLabels,
|
|
628
628
|
"text-anchor": e.value.style.chart.axes.x.labels.rotation > 0 ? "start" : e.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
629
|
-
},
|
|
629
|
+
}, z(i(Y)(
|
|
630
630
|
e.value.style.chart.axes.x.labels.formatter,
|
|
631
631
|
l.value,
|
|
632
632
|
i(j)({
|
|
@@ -641,39 +641,39 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
641
641
|
key: 7,
|
|
642
642
|
x: d.value.width / 2 + e.value.style.chart.axes.x.name.offsetX,
|
|
643
643
|
y: d.value.height + e.value.style.chart.axes.x.name.offsetY,
|
|
644
|
-
"font-size":
|
|
644
|
+
"font-size": n.value.xAxisName,
|
|
645
645
|
fill: e.value.style.chart.axes.x.name.color,
|
|
646
646
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
647
647
|
"text-anchor": "middle"
|
|
648
|
-
},
|
|
648
|
+
}, z(e.value.style.chart.axes.x.name.text), 9, Ut)) : v("", !0),
|
|
649
649
|
e.value.style.chart.grid.xAxis.show ? (s(), r("line", {
|
|
650
650
|
key: 8,
|
|
651
|
-
x1:
|
|
652
|
-
x2:
|
|
653
|
-
y1:
|
|
654
|
-
y2:
|
|
651
|
+
x1: u.value.left,
|
|
652
|
+
x2: u.value.left + u.value.width,
|
|
653
|
+
y1: u.value.bottom,
|
|
654
|
+
y2: u.value.bottom,
|
|
655
655
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
656
656
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
657
657
|
"stroke-linecap": "round"
|
|
658
658
|
}, null, 8, Gt)) : v("", !0),
|
|
659
659
|
e.value.style.chart.grid.yAxis.show ? (s(), r("line", {
|
|
660
660
|
key: 9,
|
|
661
|
-
x1:
|
|
662
|
-
x2:
|
|
663
|
-
y1:
|
|
664
|
-
y2:
|
|
661
|
+
x1: u.value.left,
|
|
662
|
+
x2: u.value.left,
|
|
663
|
+
y1: u.value.top,
|
|
664
|
+
y2: u.value.bottom,
|
|
665
665
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
666
666
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
667
667
|
"stroke-linecap": "round"
|
|
668
668
|
}, null, 8, Vt)) : v("", !0),
|
|
669
|
-
(s(!0), r(b, null, k(
|
|
669
|
+
(s(!0), r(b, null, k(T.value, (l, c) => (s(), r("g", null, [
|
|
670
670
|
e.value.style.chart.paths.show ? (s(), r("g", {
|
|
671
671
|
key: 0,
|
|
672
672
|
style: $({
|
|
673
673
|
opacity: _.value === null ? 1 : 0.3
|
|
674
674
|
})
|
|
675
675
|
}, [
|
|
676
|
-
|
|
676
|
+
S("path", {
|
|
677
677
|
d: l.path,
|
|
678
678
|
stroke: e.value.style.chart.backgroundColor,
|
|
679
679
|
"stroke-width": e.value.style.chart.paths.strokeWidth + 4,
|
|
@@ -682,7 +682,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
682
682
|
"stroke-linejoin": "round",
|
|
683
683
|
class: F({ animated: e.value.useCssAnimation })
|
|
684
684
|
}, null, 10, qt),
|
|
685
|
-
|
|
685
|
+
S("path", {
|
|
686
686
|
d: l.path,
|
|
687
687
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
688
688
|
"stroke-width": e.value.style.chart.paths.strokeWidth,
|
|
@@ -696,14 +696,14 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
696
696
|
cx: o.x,
|
|
697
697
|
cy: o.y,
|
|
698
698
|
fill: e.value.style.chart.backgroundColor,
|
|
699
|
-
r:
|
|
699
|
+
r: n.value.plots,
|
|
700
700
|
stroke: "none"
|
|
701
701
|
}, null, 8, Jt))), 256)),
|
|
702
702
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
703
703
|
cx: o.x,
|
|
704
704
|
cy: o.y,
|
|
705
705
|
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${c}_${B.value})` : o.color,
|
|
706
|
-
r:
|
|
706
|
+
r: n.value.plots,
|
|
707
707
|
stroke: e.value.style.chart.plots.stroke,
|
|
708
708
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
709
709
|
class: F({ animated: e.value.useCssAnimation }),
|
|
@@ -715,8 +715,8 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
715
715
|
e.value.style.chart.plots.labels.show ? (s(), r("g", Qt, [
|
|
716
716
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("text", {
|
|
717
717
|
x: o.x + e.value.style.chart.plots.labels.offsetX,
|
|
718
|
-
y: o.y + e.value.style.chart.plots.labels.offsetY +
|
|
719
|
-
"font-size":
|
|
718
|
+
y: o.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
719
|
+
"font-size": n.value.labels,
|
|
720
720
|
fill: e.value.style.chart.plots.labels.color,
|
|
721
721
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
722
722
|
"text-anchor": "middle",
|
|
@@ -725,13 +725,13 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
725
725
|
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
726
726
|
transition: "opacity 0.2s ease-in-out"
|
|
727
727
|
})
|
|
728
|
-
},
|
|
728
|
+
}, z(o.label), 15, el))), 256))
|
|
729
729
|
])) : v("", !0),
|
|
730
730
|
e.value.style.chart.plots.indexLabels.show ? (s(), r("g", tl, [
|
|
731
731
|
(s(!0), r(b, null, k(l.plots, (o, L) => (s(), r("text", {
|
|
732
732
|
x: o.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
733
|
-
y: o.y + e.value.style.chart.plots.indexLabels.offsetY +
|
|
734
|
-
"font-size":
|
|
733
|
+
y: o.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
734
|
+
"font-size": n.value.indexLabels,
|
|
735
735
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
736
736
|
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(ft)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
737
737
|
"text-anchor": "middle",
|
|
@@ -740,15 +740,15 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
740
740
|
opacity: _.value === null || _.value.id === o.id ? 1 : 0.3,
|
|
741
741
|
transition: "opacity 0.2s ease-in-out"
|
|
742
742
|
})
|
|
743
|
-
},
|
|
743
|
+
}, z(e.value.style.chart.plots.indexLabels.startAtZero ? L : L + 1), 15, ll))), 256))
|
|
744
744
|
])) : v("", !0)
|
|
745
745
|
]))), 256)),
|
|
746
|
-
(s(!0), r(b, null, k(
|
|
746
|
+
(s(!0), r(b, null, k(T.value, (l) => (s(), r("g", null, [
|
|
747
747
|
(s(!0), r(b, null, k(l.plots, (c, o) => (s(), r("circle", {
|
|
748
748
|
cx: c.x,
|
|
749
749
|
cy: c.y,
|
|
750
750
|
fill: "transparent",
|
|
751
|
-
r:
|
|
751
|
+
r: n.value.plots,
|
|
752
752
|
stroke: "none",
|
|
753
753
|
onMouseenter: (L) => Qe({
|
|
754
754
|
datapoint: c,
|
|
@@ -762,7 +762,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
762
762
|
}, null, 40, al))), 256))
|
|
763
763
|
]))), 256)),
|
|
764
764
|
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
765
|
-
], 12,
|
|
765
|
+
], 12, Tt)) : v("", !0),
|
|
766
766
|
t.$slots.watermark ? (s(), r("div", sl, [
|
|
767
767
|
x(t.$slots, "watermark", X(D({ isPrinting: i(fe) || i(xe) })), void 0, !0)
|
|
768
768
|
])) : v("", !0),
|
|
@@ -778,11 +778,11 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
}, null, 8, ["config"])),
|
|
781
|
-
|
|
781
|
+
S("div", {
|
|
782
782
|
ref_key: "chartLegend",
|
|
783
783
|
ref: ae
|
|
784
784
|
}, [
|
|
785
|
-
e.value.style.chart.legend.show && w.value ? (s(), O(
|
|
785
|
+
e.value.style.chart.legend.show && w.value ? (s(), O(At, {
|
|
786
786
|
key: `legend_${se.value}`,
|
|
787
787
|
legendSet: be.value,
|
|
788
788
|
config: Ze.value,
|
|
@@ -791,12 +791,12 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
791
791
|
})
|
|
792
792
|
}, {
|
|
793
793
|
item: m(({ legend: l, index: c }) => [
|
|
794
|
-
|
|
794
|
+
S("div", {
|
|
795
795
|
onClick: (o) => {
|
|
796
796
|
l.segregate(), ke(l);
|
|
797
797
|
},
|
|
798
798
|
style: $(`opacity:${g.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
799
|
-
},
|
|
799
|
+
}, z(l.name), 13, ol)
|
|
800
800
|
]),
|
|
801
801
|
_: 1
|
|
802
802
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
@@ -812,7 +812,7 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
812
812
|
}, [
|
|
813
813
|
x(t.$slots, "source", {}, void 0, !0)
|
|
814
814
|
], 512)) : v("", !0),
|
|
815
|
-
|
|
815
|
+
Ae(i(Ye), {
|
|
816
816
|
show: C.value.showTooltip && Z.value,
|
|
817
817
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
818
818
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -863,22 +863,22 @@ const St = ["id"], zt = ["xmlns", "viewBox"], Lt = ["x", "y", "width", "height"]
|
|
|
863
863
|
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
864
864
|
}, {
|
|
865
865
|
th: m(({ th: l }) => [
|
|
866
|
-
|
|
866
|
+
S("div", {
|
|
867
867
|
innerHTML: l,
|
|
868
868
|
style: { display: "flex", "align-items": "center" }
|
|
869
869
|
}, null, 8, rl)
|
|
870
870
|
]),
|
|
871
871
|
td: m(({ td: l }) => [
|
|
872
|
-
ot(
|
|
872
|
+
ot(z(l.name || l), 1)
|
|
873
873
|
]),
|
|
874
874
|
_: 1
|
|
875
875
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
876
876
|
]),
|
|
877
877
|
_: 1
|
|
878
878
|
}, 8, ["config"])) : v("", !0)
|
|
879
|
-
], 46,
|
|
879
|
+
], 46, zt));
|
|
880
880
|
}
|
|
881
|
-
}, ml = /* @__PURE__ */
|
|
881
|
+
}, ml = /* @__PURE__ */ St(nl, [["__scopeId", "data-v-f17739a1"]]);
|
|
882
882
|
export {
|
|
883
883
|
ml as default
|
|
884
884
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as A, computed as x, useSlots as z, onMounted as C, watch as y, ref as k, createElementBlock as i, openBlock as s, normalizeStyle as u, normalizeClass as r, createElementVNode as $, renderSlot as n, createTextVNode as h, toDisplayString as b, createVNode as w, unref as v, Fragment as B } from "vue";
|
|
2
|
-
import { u as L } from "./useNestedProp-
|
|
3
|
-
import { u as M, i as E, f as I } from "./index-
|
|
2
|
+
import { u as L } from "./useNestedProp-ZNu8JrRX.js";
|
|
3
|
+
import { u as M, i as E, f as I } from "./index-C137VZkI.js";
|
|
4
4
|
const G = {
|
|
5
5
|
__name: "vue-ui-kpi",
|
|
6
6
|
props: {
|
|
@@ -16,7 +16,7 @@ const G = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(o) {
|
|
19
|
-
const F = A(() => import("./vue-ui-digits-
|
|
19
|
+
const F = A(() => import("./vue-ui-digits-D6kq38s9.js")), { vue_ui_kpi: N } = M(), l = o, e = x({
|
|
20
20
|
get: () => c(),
|
|
21
21
|
set: (a) => a
|
|
22
22
|
}), D = z();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCssVars as h, computed as r, ref as f, createElementBlock as n, openBlock as u, unref as M, createCommentVNode as a, createElementVNode as t, normalizeStyle as l } from "vue";
|
|
2
|
-
import { u as m } from "./useNestedProp-
|
|
3
|
-
import { u as y, X as L } from "./index-
|
|
2
|
+
import { u as m } from "./useNestedProp-ZNu8JrRX.js";
|
|
3
|
+
import { u as y, X as L } from "./index-C137VZkI.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
|
|
6
6
|
__name: "vue-ui-mini-loader",
|