vue-data-ui 3.4.6 → 3.4.8
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/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as P, computed as p, ref as d, toRefs as
|
|
1
|
+
import { defineAsyncComponent as P, computed as p, ref as d, toRefs as St, watch as Z, shallowRef as qe, onMounted as Lt, onBeforeUnmount as Pt, watchEffect as Ot, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as M, normalizeClass as X, createBlock as _, createCommentVNode as y, createElementVNode as N, createVNode as me, createSlots as Qe, withCtx as g, renderSlot as b, normalizeProps as W, guardReactiveProps as U, Fragment as A, renderList as I, toDisplayString as B, Teleport as Dt, resolveDynamicComponent as Rt, mergeProps as Bt, createTextVNode as Je, nextTick as Et } from "vue";
|
|
2
2
|
import { c as ye, t as Ht, b as Wt, p as ee, o as Ke, f as Ze, g as Ut, e as Vt, h as Gt, m as jt, B as Xt, z as Yt, a9 as qt, X as Qt, M as Jt, G as et, R as te, P as Kt, Q as Zt, a as tt, d as at, H as ea } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as lt, u as ta } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as aa, a as ot } from "./useNestedProp-BjZe1Y85.js";
|
|
@@ -14,7 +14,7 @@ import da from "./Legend-G6GMcdAc.js";
|
|
|
14
14
|
import { _ as ha } from "./Shape-CNXKB8O0.js";
|
|
15
15
|
import pa from "./img-BecE5qXd.js";
|
|
16
16
|
import { _ as ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const ya = ["id"], fa = ["id"],
|
|
17
|
+
const ya = ["id"], fa = ["id"], ga = ["xmlns", "viewBox"], ba = ["x", "y", "width", "height"], xa = { style: { "pointer-events": "none" } }, ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = { key: 0 }, Aa = ["x", "y", "fill", "font-size", "font-weight"], $a = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ta = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], za = { key: 0 }, Fa = ["x", "y", "font-size", "fill"], Ma = ["width", "x", "y"], _a = { style: { width: "100%" } }, Na = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], Ia = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Sa = ["d", "onMouseenter", "onMouseleave", "onClick"], La = {
|
|
18
18
|
key: 4,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, Pa = ["id"], Oa = ["onClick"], Da = ["innerHTML"], Ra = {
|
|
@@ -35,19 +35,19 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
37
37
|
setup(st, { expose: nt, emit: it }) {
|
|
38
|
-
const ut = P(() => import("./Tooltip-oWCO1HKy.js")), rt = P(() => import("./BaseIcon-BmMbm4d0.js")), ct = P(() => import("./vue-ui-accordion-CZ0thhxa.js")), vt = P(() => import("./DataTable-BT7VF2ua.js")), dt = P(() => import("./PenAndPaper-DSvu9dwa.js")), ht = P(() => import("./UserOptions-
|
|
38
|
+
const ut = P(() => import("./Tooltip-oWCO1HKy.js")), rt = P(() => import("./BaseIcon-BmMbm4d0.js")), ct = P(() => import("./vue-ui-accordion-CZ0thhxa.js")), vt = P(() => import("./DataTable-BT7VF2ua.js")), dt = P(() => import("./PenAndPaper-DSvu9dwa.js")), ht = P(() => import("./UserOptions-CGnQt6Fd.js")), pt = P(() => import("./PackageVersion-D-auaEEJ.js")), mt = P(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_parallel_coordinate_plot: yt } = aa(), $ = st, Y = p({
|
|
39
39
|
get() {
|
|
40
40
|
return !!$.dataset && $.dataset.length;
|
|
41
41
|
},
|
|
42
42
|
set(t) {
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
}), fe = d(0), z = d(null),
|
|
45
|
+
}), fe = d(0), z = d(null), ge = d(null), be = d(null), xe = d(null), ke = d(null), we = d(0), Ce = d(0), Ae = d(0), $e = d(!1), V = d(null), ae = d(null), le = d(null), O = d(ye()), D = d(!1);
|
|
46
46
|
function Te(t) {
|
|
47
47
|
D.value = t, fe.value += 1;
|
|
48
48
|
}
|
|
49
49
|
const e = d(ie()), { loading: R, FINAL_DATASET: ft, manualLoading: oe } = oa({
|
|
50
|
-
...
|
|
50
|
+
...St($),
|
|
51
51
|
FINAL_CONFIG: e,
|
|
52
52
|
prepareConfig: ie,
|
|
53
53
|
callback: () => {
|
|
@@ -117,7 +117,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: ze, keepUserOptionState:
|
|
120
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: ze, keepUserOptionState: Fe } = ia({ config: e.value }), { svgRef: ne } = ua({ config: e.value.style.chart.title });
|
|
121
121
|
function ie() {
|
|
122
122
|
const t = ot({
|
|
123
123
|
userConfig: $.config,
|
|
@@ -132,20 +132,20 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
132
132
|
} : t;
|
|
133
133
|
}
|
|
134
134
|
Z(() => $.config, (t) => {
|
|
135
|
-
R.value || (e.value = ie()), se.value = !e.value.userOptions.showOnChartHover,
|
|
135
|
+
R.value || (e.value = ie()), se.value = !e.value.userOptions.showOnChartHover, _e(), we.value += 1, Ae.value += 1, Ce.value += 1, m.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
136
136
|
}, { deep: !0 }), Z(() => $.dataset, (t) => {
|
|
137
137
|
Array.isArray(t) && t.length > 0 && (oe.value = !1);
|
|
138
138
|
}, { deep: !0 });
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
$e.value = !0,
|
|
139
|
+
const S = qe(null), E = qe(null);
|
|
140
|
+
Lt(() => {
|
|
141
|
+
$e.value = !0, _e();
|
|
142
142
|
});
|
|
143
|
-
const
|
|
144
|
-
function
|
|
143
|
+
const Me = p(() => !!e.value.debug);
|
|
144
|
+
function _e() {
|
|
145
145
|
if (Ke($.dataset) ? (Ze({
|
|
146
146
|
componentName: "VueUiParallelCoordinatePlot",
|
|
147
147
|
type: "dataset",
|
|
148
|
-
debug:
|
|
148
|
+
debug: Me.value
|
|
149
149
|
}), oe.value = !0) : $.dataset.forEach((t, o) => {
|
|
150
150
|
Ut({
|
|
151
151
|
datasetObject: t,
|
|
@@ -156,15 +156,15 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
156
156
|
type: "datasetSerieAttribute",
|
|
157
157
|
property: a,
|
|
158
158
|
index: o,
|
|
159
|
-
debug:
|
|
159
|
+
debug: Me.value
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
162
|
}), Ke($.dataset) || (oe.value = e.value.loading), e.value.responsive) {
|
|
163
163
|
const t = lt(() => {
|
|
164
164
|
const { width: o, height: a } = ta({
|
|
165
165
|
chart: z.value,
|
|
166
|
-
title: e.value.style.chart.title.text ?
|
|
167
|
-
legend: e.value.style.chart.legend.show ?
|
|
166
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
167
|
+
legend: e.value.style.chart.legend.show ? be.value : null,
|
|
168
168
|
source: xe.value,
|
|
169
169
|
noTitle: ke.value
|
|
170
170
|
});
|
|
@@ -196,17 +196,17 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
196
196
|
})) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
|
-
|
|
199
|
+
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(t), E.value = z.value.parentNode, S.value.observe(E.value);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
Pt(() => {
|
|
203
|
-
|
|
203
|
+
S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect());
|
|
204
204
|
});
|
|
205
|
-
const { isPrinting: Ne, isImaging: Ie, generatePdf:
|
|
205
|
+
const { isPrinting: Ne, isImaging: Ie, generatePdf: Se, generateImage: Le } = la({
|
|
206
206
|
elementId: `pcp_${O.value}`,
|
|
207
207
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
208
208
|
options: e.value.userOptions.print
|
|
209
|
-
}),
|
|
209
|
+
}), gt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
|
|
210
210
|
height: e.value.style.chart.height,
|
|
211
211
|
width: e.value.style.chart.width,
|
|
212
212
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -215,14 +215,14 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
215
215
|
// ratio 42.85
|
|
216
216
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
217
217
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
218
|
-
}), Pe = p(() => c.value.width), Oe = p(() => c.value.height), G = d(0),
|
|
218
|
+
}), Pe = p(() => c.value.width), Oe = p(() => c.value.height), G = d(0), bt = lt((t) => {
|
|
219
219
|
G.value = t;
|
|
220
220
|
}, 100);
|
|
221
221
|
Ot((t) => {
|
|
222
222
|
const o = le.value;
|
|
223
223
|
if (!o) return;
|
|
224
224
|
const a = new ResizeObserver((s) => {
|
|
225
|
-
|
|
225
|
+
bt(s[0].contentRect.height);
|
|
226
226
|
});
|
|
227
227
|
a.observe(o), t(() => a.disconnect());
|
|
228
228
|
});
|
|
@@ -254,11 +254,11 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
254
254
|
showTooltip: e.value.style.chart.tooltip.show
|
|
255
255
|
};
|
|
256
256
|
}, { immediate: !0 });
|
|
257
|
-
const
|
|
257
|
+
const F = d([]);
|
|
258
258
|
function De(t) {
|
|
259
|
-
|
|
259
|
+
F.value.includes(t) ? F.value = F.value.filter((o) => o !== t) : F.value.push(t);
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const L = p(() => ft.value.map((t, o) => {
|
|
262
262
|
const a = Gt(t.color) || xt.value[o] || ee[o] || ee[o % ee.length];
|
|
263
263
|
return {
|
|
264
264
|
...t,
|
|
@@ -272,11 +272,11 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
272
272
|
id: ye(),
|
|
273
273
|
shape: t.shape || "circle"
|
|
274
274
|
};
|
|
275
|
-
})), Re = p(() =>
|
|
275
|
+
})), Re = p(() => L.value.map((t) => ({
|
|
276
276
|
...t,
|
|
277
|
-
opacity:
|
|
277
|
+
opacity: F.value.includes(t.id) ? 0.5 : 1,
|
|
278
278
|
segregate: () => De(t.id),
|
|
279
|
-
isSegregated:
|
|
279
|
+
isSegregated: F.value.includes(t.id),
|
|
280
280
|
shape: "circle"
|
|
281
281
|
}))), kt = p(() => ({
|
|
282
282
|
cy: "pcp-div-legend",
|
|
@@ -286,8 +286,8 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
286
286
|
paddingBottom: 12,
|
|
287
287
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
288
288
|
})), Be = p(() => Math.max(
|
|
289
|
-
...
|
|
290
|
-
)), C = p(() => h.value.width / Be.value), ue = p(() =>
|
|
289
|
+
...L.value.filter((t) => !F.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((o) => o.values.length)))
|
|
290
|
+
)), C = p(() => h.value.width / Be.value), ue = p(() => L.value.filter((t) => !F.value.includes(t.id))), f = p(() => {
|
|
291
291
|
let t = [];
|
|
292
292
|
for (let o = 0; o < Be.value; o += 1) {
|
|
293
293
|
const a = Math.min(...ue.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), s = Math.max(...ue.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), l = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = jt(l, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((x, k) => {
|
|
@@ -354,19 +354,19 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
354
354
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: t }, seriesIndex: a }), w.value = null, ve.value = null;
|
|
355
355
|
}
|
|
356
356
|
function Q({ shape: t, serieName: o, serie: a, relativeIndex: s, seriesIndex: l, S: r }) {
|
|
357
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ce.value = { serie: a, relativeIndex: s, seriesIndex: l, series:
|
|
357
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ce.value = { serie: a, relativeIndex: s, seriesIndex: l, series: L.value, scales: f.value }, ve.value = !0, w.value = a.id;
|
|
358
358
|
let i = "";
|
|
359
359
|
const T = e.value.style.chart.tooltip.customFormat;
|
|
360
360
|
et(T) && ea(() => T({
|
|
361
361
|
serie: a,
|
|
362
362
|
seriesIndex: a.seriesIndex,
|
|
363
|
-
series:
|
|
363
|
+
series: L.value,
|
|
364
364
|
config: e.value,
|
|
365
365
|
scales: f.value
|
|
366
366
|
})) ? de.value = T({
|
|
367
367
|
serie: a,
|
|
368
368
|
seriesIndex: a.seriesIndex,
|
|
369
|
-
series:
|
|
369
|
+
series: L.value,
|
|
370
370
|
config: e.value,
|
|
371
371
|
scales: f.value
|
|
372
372
|
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o ? o + " - " : ""}${a.name}</div>`, f.value.map((x) => x.name).forEach((x, k) => {
|
|
@@ -391,7 +391,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
391
391
|
}), de.value = `<div>${i}</div>`);
|
|
392
392
|
}
|
|
393
393
|
function wt() {
|
|
394
|
-
return
|
|
394
|
+
return L.value;
|
|
395
395
|
}
|
|
396
396
|
const H = p(() => {
|
|
397
397
|
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o = re.value.flatMap((l, r) => l.series.map((i) => [l.name].concat([i.name]).concat(i.values))), a = {
|
|
@@ -507,26 +507,26 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
507
507
|
function Xe() {
|
|
508
508
|
m.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
509
509
|
}
|
|
510
|
-
const Tt = p(() => e.value.style.chart.backgroundColor), zt = p(() => e.value.style.chart.legend),
|
|
510
|
+
const Tt = p(() => e.value.style.chart.backgroundColor), zt = p(() => e.value.style.chart.legend), Ft = p(() => e.value.style.chart.title), { exportSvg: Mt, getSvg: _t } = na({
|
|
511
511
|
svg: ne,
|
|
512
|
-
title:
|
|
512
|
+
title: Ft,
|
|
513
513
|
legend: zt,
|
|
514
514
|
legendItems: Re,
|
|
515
515
|
backgroundColor: Tt
|
|
516
516
|
});
|
|
517
517
|
async function Ye({ isCb: t }) {
|
|
518
518
|
if (t) {
|
|
519
|
-
const { blob: o, url: a, text: s, dataUrl: l } = await
|
|
519
|
+
const { blob: o, url: a, text: s, dataUrl: l } = await _t();
|
|
520
520
|
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: l });
|
|
521
521
|
} else
|
|
522
|
-
|
|
522
|
+
Mt();
|
|
523
523
|
}
|
|
524
524
|
return nt({
|
|
525
525
|
getData: wt,
|
|
526
526
|
getImage: Ct,
|
|
527
527
|
generateCsv: he,
|
|
528
|
-
generatePdf:
|
|
529
|
-
generateImage:
|
|
528
|
+
generatePdf: Se,
|
|
529
|
+
generateImage: Le,
|
|
530
530
|
generateSvg: Ye,
|
|
531
531
|
toggleTable: Ve,
|
|
532
532
|
toggleLabels: Ge,
|
|
@@ -537,12 +537,12 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
537
537
|
ref_key: "pcpChart",
|
|
538
538
|
ref: z,
|
|
539
539
|
class: X(`vue-data-ui-component vue-ui-pcp ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
540
|
-
style:
|
|
540
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
541
541
|
id: `pcp_${O.value}`,
|
|
542
542
|
onMouseenter: o[2] || (o[2] = () => v(ze)(!0)),
|
|
543
543
|
onMouseleave: o[3] || (o[3] = () => v(ze)(!1))
|
|
544
544
|
}, [
|
|
545
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
545
|
+
e.value.userOptions.buttons.annotator ? (n(), _(v(dt), {
|
|
546
546
|
key: 0,
|
|
547
547
|
svgRef: v(ne),
|
|
548
548
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -550,7 +550,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
550
550
|
active: K.value,
|
|
551
551
|
onClose: pe
|
|
552
552
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
553
|
-
|
|
553
|
+
gt.value ? (n(), u("div", {
|
|
554
554
|
key: 1,
|
|
555
555
|
ref_key: "noTitle",
|
|
556
556
|
ref: ke,
|
|
@@ -560,10 +560,10 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
560
560
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
561
561
|
key: 2,
|
|
562
562
|
ref_key: "chartTitle",
|
|
563
|
-
ref:
|
|
563
|
+
ref: ge,
|
|
564
564
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
565
565
|
}, [
|
|
566
|
-
(n(),
|
|
566
|
+
(n(), _(va, {
|
|
567
567
|
key: `title_${we.value}`,
|
|
568
568
|
config: {
|
|
569
569
|
title: {
|
|
@@ -580,7 +580,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
580
580
|
N("div", {
|
|
581
581
|
id: `legend-top-${O.value}`
|
|
582
582
|
}, null, 8, fa),
|
|
583
|
-
e.value.userOptions.show && Y.value && (v(
|
|
583
|
+
e.value.userOptions.show && Y.value && (v(Fe) || v(se)) ? (n(), _(v(ht), {
|
|
584
584
|
ref_key: "userOptionsRef",
|
|
585
585
|
ref: ae,
|
|
586
586
|
key: `user_options_${fe.value}`,
|
|
@@ -608,73 +608,80 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
608
608
|
printScale: e.value.userOptions.print.scale,
|
|
609
609
|
tableDialog: e.value.table.useDialog,
|
|
610
610
|
onToggleFullscreen: Te,
|
|
611
|
-
onGeneratePdf: v(
|
|
611
|
+
onGeneratePdf: v(Se),
|
|
612
612
|
onGenerateCsv: he,
|
|
613
|
-
onGenerateImage: v(
|
|
613
|
+
onGenerateImage: v(Le),
|
|
614
614
|
onGenerateSvg: Ye,
|
|
615
615
|
onToggleTable: Ve,
|
|
616
616
|
onToggleLabels: Ge,
|
|
617
617
|
onToggleTooltip: je,
|
|
618
618
|
onToggleAnnotator: pe,
|
|
619
|
-
style:
|
|
620
|
-
visibility: v(
|
|
619
|
+
style: M({
|
|
620
|
+
visibility: v(Fe) ? v(se) ? "visible" : "hidden" : "visible"
|
|
621
621
|
})
|
|
622
622
|
}, Qe({ _: 2 }, [
|
|
623
623
|
t.$slots.menuIcon ? {
|
|
624
624
|
name: "menuIcon",
|
|
625
|
-
fn:
|
|
626
|
-
|
|
625
|
+
fn: g(({ isOpen: a, color: s }) => [
|
|
626
|
+
b(t.$slots, "menuIcon", W(U({ isOpen: a, color: s })), void 0, !0)
|
|
627
627
|
]),
|
|
628
628
|
key: "0"
|
|
629
629
|
} : void 0,
|
|
630
630
|
t.$slots.optionPdf ? {
|
|
631
631
|
name: "optionPdf",
|
|
632
|
-
fn:
|
|
633
|
-
|
|
632
|
+
fn: g(() => [
|
|
633
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
634
634
|
]),
|
|
635
635
|
key: "1"
|
|
636
636
|
} : void 0,
|
|
637
637
|
t.$slots.optionCsv ? {
|
|
638
638
|
name: "optionCsv",
|
|
639
|
-
fn:
|
|
640
|
-
|
|
639
|
+
fn: g(() => [
|
|
640
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
641
641
|
]),
|
|
642
642
|
key: "2"
|
|
643
643
|
} : void 0,
|
|
644
644
|
t.$slots.optionImg ? {
|
|
645
645
|
name: "optionImg",
|
|
646
|
-
fn:
|
|
647
|
-
|
|
646
|
+
fn: g(() => [
|
|
647
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
648
648
|
]),
|
|
649
649
|
key: "3"
|
|
650
650
|
} : void 0,
|
|
651
|
+
t.$slots.optionSvg ? {
|
|
652
|
+
name: "optionSvg",
|
|
653
|
+
fn: g(() => [
|
|
654
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
655
|
+
]),
|
|
656
|
+
key: "4"
|
|
657
|
+
} : void 0,
|
|
651
658
|
t.$slots.optionTable ? {
|
|
652
659
|
name: "optionTable",
|
|
653
|
-
fn:
|
|
654
|
-
|
|
660
|
+
fn: g(() => [
|
|
661
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
655
662
|
]),
|
|
656
|
-
key: "
|
|
663
|
+
key: "5"
|
|
657
664
|
} : void 0,
|
|
658
665
|
t.$slots.optionLabels ? {
|
|
659
666
|
name: "optionLabels",
|
|
660
|
-
fn:
|
|
661
|
-
|
|
667
|
+
fn: g(() => [
|
|
668
|
+
b(t.$slots, "optionLabels", {}, void 0, !0)
|
|
662
669
|
]),
|
|
663
|
-
key: "
|
|
670
|
+
key: "6"
|
|
664
671
|
} : void 0,
|
|
665
672
|
t.$slots.optionFullscreen ? {
|
|
666
673
|
name: "optionFullscreen",
|
|
667
|
-
fn:
|
|
668
|
-
|
|
674
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
675
|
+
b(t.$slots, "optionFullscreen", W(U({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
669
676
|
]),
|
|
670
|
-
key: "
|
|
677
|
+
key: "7"
|
|
671
678
|
} : void 0,
|
|
672
679
|
t.$slots.optionAnnotator ? {
|
|
673
680
|
name: "optionAnnotator",
|
|
674
|
-
fn:
|
|
675
|
-
|
|
681
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
682
|
+
b(t.$slots, "optionAnnotator", W(U({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
676
683
|
]),
|
|
677
|
-
key: "
|
|
684
|
+
key: "8"
|
|
678
685
|
} : void 0
|
|
679
686
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
680
687
|
(n(), u("svg", {
|
|
@@ -683,7 +690,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
683
690
|
xmlns: v(Qt),
|
|
684
691
|
class: X({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
685
692
|
viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
|
|
686
|
-
style:
|
|
693
|
+
style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
687
694
|
}, [
|
|
688
695
|
me(v(pt)),
|
|
689
696
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
@@ -696,8 +703,8 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
696
703
|
pointerEvents: "none"
|
|
697
704
|
}
|
|
698
705
|
}, [
|
|
699
|
-
|
|
700
|
-
], 8,
|
|
706
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
707
|
+
], 8, ba)) : y("", !0),
|
|
701
708
|
(n(!0), u(A, null, I(f.value, (a, s) => (n(), u("g", xa, [
|
|
702
709
|
N("line", {
|
|
703
710
|
x1: h.value.left + C.value * s + C.value / 2,
|
|
@@ -715,7 +722,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
715
722
|
y2: l.y,
|
|
716
723
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
717
724
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
718
|
-
style:
|
|
725
|
+
style: M(`opacity:${w.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
719
726
|
}, null, 12, wa))), 256)),
|
|
720
727
|
v(R) ? y("", !0) : (n(), u("g", Ca, [
|
|
721
728
|
(n(!0), u(A, null, I(a.ticks, (l) => (n(), u("text", {
|
|
@@ -725,7 +732,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
725
732
|
"text-anchor": "end",
|
|
726
733
|
"font-size": c.value.ticksFontSize,
|
|
727
734
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
728
|
-
style:
|
|
735
|
+
style: M(`opacity:${w.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
729
736
|
}, B(Ee({ value: l.value, index: s, datapoint: l })), 13, Aa))), 256))
|
|
730
737
|
]))
|
|
731
738
|
], 64)) : y("", !0)
|
|
@@ -766,7 +773,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
766
773
|
(n(!0), u(A, null, I(re.value, (a, s) => (n(), u("g", null, [
|
|
767
774
|
(n(!0), u(A, null, I(a.series, (l, r) => (n(), u("g", null, [
|
|
768
775
|
e.value.style.chart.plots.show ? (n(), u("g", za, [
|
|
769
|
-
(n(!0), u(A, null, I(l.datapoints, (i, T) => (n(),
|
|
776
|
+
(n(!0), u(A, null, I(l.datapoints, (i, T) => (n(), _(ha, {
|
|
770
777
|
plot: { x: i.x, y: i.y },
|
|
771
778
|
color: a.color,
|
|
772
779
|
shape: a.shape,
|
|
@@ -782,7 +789,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
782
789
|
S: s
|
|
783
790
|
}),
|
|
784
791
|
onMouseleave: (x) => q({ serie: l, shape: a.shape, S: s }),
|
|
785
|
-
style:
|
|
792
|
+
style: M(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
786
793
|
onClick: () => J({ serie: l, shape: a.shape, S: s })
|
|
787
794
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
|
|
788
795
|
m.value.showTooltip ? y("", !0) : (n(), u(A, { key: 0 }, [
|
|
@@ -794,7 +801,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
794
801
|
"font-size": c.value.ticksFontSize,
|
|
795
802
|
fill: a.color,
|
|
796
803
|
"font-weight": "bold"
|
|
797
|
-
}, B(l.name), 9,
|
|
804
|
+
}, B(l.name), 9, Fa)) : y("", !0)
|
|
798
805
|
], 64)),
|
|
799
806
|
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i) => (n(), u("g", null, [
|
|
800
807
|
i.comment ? (n(), u("foreignObject", {
|
|
@@ -805,12 +812,12 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
805
812
|
x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
806
813
|
y: i.y + e.value.style.chart.comments.offsetY + 6
|
|
807
814
|
}, [
|
|
808
|
-
N("div",
|
|
809
|
-
|
|
815
|
+
N("div", _a, [
|
|
816
|
+
b(t.$slots, "plot-comment", {
|
|
810
817
|
plot: { ...i, color: a.color }
|
|
811
818
|
}, void 0, !0)
|
|
812
819
|
])
|
|
813
|
-
], 8,
|
|
820
|
+
], 8, Ma)) : y("", !0)
|
|
814
821
|
]))), 256)) : y("", !0)
|
|
815
822
|
])) : y("", !0),
|
|
816
823
|
!v(R) && (m.value.dataLabels.show || w.value && w.value === l.id) ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i, T) => (n(), u("text", {
|
|
@@ -831,7 +838,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
831
838
|
}),
|
|
832
839
|
onMouseleave: (x) => q({ serie: l, shape: a.shape, S: s }),
|
|
833
840
|
onClick: () => J({ serie: l, shape: a.shape, S: s }),
|
|
834
|
-
style:
|
|
841
|
+
style: M(`opacity:${w.value ? w.value === l.id ? 1 : 0.2 : 1}`)
|
|
835
842
|
}, B(Ee({ value: i.value, index: T, datapoint: i })), 47, Na))), 256)) : y("", !0),
|
|
836
843
|
N("path", {
|
|
837
844
|
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
@@ -849,7 +856,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
849
856
|
}),
|
|
850
857
|
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
851
858
|
onClick: () => J({ serie: l, shape: a.shape, S: s }),
|
|
852
|
-
style:
|
|
859
|
+
style: M(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${l.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? l.pathLength : 0}`)
|
|
853
860
|
}, null, 46, Ia),
|
|
854
861
|
m.value.showTooltip ? (n(), u("path", {
|
|
855
862
|
key: 2,
|
|
@@ -869,26 +876,26 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
869
876
|
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
870
877
|
onClick: () => J({ serie: l, shape: a.shape, S: s }),
|
|
871
878
|
style: { opacity: "0" }
|
|
872
|
-
}, null, 42,
|
|
879
|
+
}, null, 42, Sa)) : y("", !0)
|
|
873
880
|
]))), 256))
|
|
874
881
|
]))), 256)),
|
|
875
|
-
|
|
876
|
-
], 14,
|
|
877
|
-
t.$slots.watermark ? (n(), u("div",
|
|
878
|
-
|
|
882
|
+
b(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
883
|
+
], 14, ga)),
|
|
884
|
+
t.$slots.watermark ? (n(), u("div", La, [
|
|
885
|
+
b(t.$slots, "watermark", W(U({ isPrinting: v(Ne) || v(Ie) })), void 0, !0)
|
|
879
886
|
])) : y("", !0),
|
|
880
887
|
N("div", {
|
|
881
888
|
id: `legend-bottom-${O.value}`
|
|
882
889
|
}, null, 8, Pa),
|
|
883
|
-
$e.value ? (n(),
|
|
890
|
+
$e.value ? (n(), _(Dt, {
|
|
884
891
|
key: 5,
|
|
885
892
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
886
893
|
}, [
|
|
887
894
|
N("div", {
|
|
888
895
|
ref_key: "chartLegend",
|
|
889
|
-
ref:
|
|
896
|
+
ref: be
|
|
890
897
|
}, [
|
|
891
|
-
e.value.style.chart.legend.show && Y.value ? (n(),
|
|
898
|
+
e.value.style.chart.legend.show && Y.value ? (n(), _(da, {
|
|
892
899
|
key: `legend_${Ce.value}`,
|
|
893
900
|
legendSet: Re.value,
|
|
894
901
|
config: kt.value,
|
|
@@ -896,18 +903,18 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
896
903
|
De(a.id), Ue(a);
|
|
897
904
|
})
|
|
898
905
|
}, {
|
|
899
|
-
item:
|
|
906
|
+
item: g(({ legend: a, index: s }) => [
|
|
900
907
|
N("div", {
|
|
901
908
|
onClick: (l) => {
|
|
902
909
|
a.segregate(), Ue(a);
|
|
903
910
|
},
|
|
904
|
-
style:
|
|
911
|
+
style: M(`opacity:${F.value.includes(a.id) ? 0.5 : 1}`)
|
|
905
912
|
}, B(a.name), 13, Oa)
|
|
906
913
|
]),
|
|
907
914
|
_: 1
|
|
908
|
-
}, 8, ["legendSet", "config"])) :
|
|
915
|
+
}, 8, ["legendSet", "config"])) : b(t.$slots, "legend", {
|
|
909
916
|
key: 1,
|
|
910
|
-
legend:
|
|
917
|
+
legend: L.value
|
|
911
918
|
}, void 0, !0)
|
|
912
919
|
], 512)
|
|
913
920
|
], 8, ["to"])) : y("", !0),
|
|
@@ -917,7 +924,7 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
917
924
|
ref: xe,
|
|
918
925
|
dir: "auto"
|
|
919
926
|
}, [
|
|
920
|
-
|
|
927
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
921
928
|
], 512)) : y("", !0),
|
|
922
929
|
me(v(ut), {
|
|
923
930
|
show: m.value.showTooltip && ve.value,
|
|
@@ -939,21 +946,21 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
939
946
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
940
947
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
941
948
|
}, {
|
|
942
|
-
"tooltip-before":
|
|
943
|
-
|
|
949
|
+
"tooltip-before": g(() => [
|
|
950
|
+
b(t.$slots, "tooltip-before", W(U({ ...ce.value })), void 0, !0)
|
|
944
951
|
]),
|
|
945
|
-
"tooltip-after":
|
|
946
|
-
|
|
952
|
+
"tooltip-after": g(() => [
|
|
953
|
+
b(t.$slots, "tooltip-after", W(U({ ...ce.value })), void 0, !0)
|
|
947
954
|
]),
|
|
948
955
|
_: 3
|
|
949
956
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
950
|
-
Y.value && e.value.userOptions.buttons.table ? (n(),
|
|
957
|
+
Y.value && e.value.userOptions.buttons.table ? (n(), _(Rt(j.value.component), Bt({ key: 7 }, j.value.props, {
|
|
951
958
|
ref_key: "tableUnit",
|
|
952
959
|
ref: V,
|
|
953
960
|
onClose: Xe
|
|
954
961
|
}), Qe({
|
|
955
|
-
content:
|
|
956
|
-
(n(),
|
|
962
|
+
content: g(() => [
|
|
963
|
+
(n(), _(v(vt), {
|
|
957
964
|
key: `table_${Ae.value}`,
|
|
958
965
|
colNames: H.value.colNames,
|
|
959
966
|
head: H.value.head,
|
|
@@ -963,10 +970,10 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
963
970
|
withCloseButton: !e.value.table.useDialog,
|
|
964
971
|
onClose: Xe
|
|
965
972
|
}, {
|
|
966
|
-
th:
|
|
973
|
+
th: g(({ th: a }) => [
|
|
967
974
|
N("div", { innerHTML: a }, null, 8, Da)
|
|
968
975
|
]),
|
|
969
|
-
td:
|
|
976
|
+
td: g(({ td: a }) => [
|
|
970
977
|
Je(B(a), 1)
|
|
971
978
|
]),
|
|
972
979
|
_: 1
|
|
@@ -976,14 +983,14 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
976
983
|
}, [
|
|
977
984
|
e.value.table.useDialog ? {
|
|
978
985
|
name: "title",
|
|
979
|
-
fn:
|
|
986
|
+
fn: g(() => [
|
|
980
987
|
Je(B(j.value.title), 1)
|
|
981
988
|
]),
|
|
982
989
|
key: "0"
|
|
983
990
|
} : void 0,
|
|
984
991
|
e.value.table.useDialog ? {
|
|
985
992
|
name: "actions",
|
|
986
|
-
fn:
|
|
993
|
+
fn: g(() => [
|
|
987
994
|
N("button", {
|
|
988
995
|
tabindex: "0",
|
|
989
996
|
class: "vue-ui-user-options-button",
|
|
@@ -998,10 +1005,10 @@ const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "widt
|
|
|
998
1005
|
key: "1"
|
|
999
1006
|
} : void 0
|
|
1000
1007
|
]), 1040)) : y("", !0),
|
|
1001
|
-
v(R) ? (n(),
|
|
1008
|
+
v(R) ? (n(), _(sa, { key: 8 })) : y("", !0)
|
|
1002
1009
|
], 46, ya));
|
|
1003
1010
|
}
|
|
1004
|
-
}, tl = /* @__PURE__ */ ma(Ra, [["__scopeId", "data-v-
|
|
1011
|
+
}, tl = /* @__PURE__ */ ma(Ra, [["__scopeId", "data-v-108a7f28"]]);
|
|
1005
1012
|
export {
|
|
1006
1013
|
tl as default
|
|
1007
1014
|
};
|