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,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as M, toRefs as ya, watch as Te, shallowRef as Rt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as
|
|
2
|
-
import { c as wa, t as Aa, b as La, p as J, O as We, e as _a, a1 as za, f as
|
|
1
|
+
import { defineAsyncComponent as Ee, ref as w, computed as M, toRefs as ya, watch as Te, shallowRef as Rt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, watchEffect as ka, createElementBlock as n, openBlock as o, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as $, createVNode as be, unref as s, createSlots as ba, withCtx as ae, renderSlot as H, normalizeProps as me, guardReactiveProps as ge, toDisplayString as U, Fragment as x, renderList as T, Teleport as Sa, mergeProps as nt } from "vue";
|
|
2
|
+
import { c as wa, t as Aa, b as La, p as J, O as We, e as _a, a1 as za, f as $a, o as Ca, h as it, T as Ea, m as Xe, X as Ta, V as Ia, W as ut, Y as Pe, a as ie, d as j, M as Bt, z as Dt, x as ue, G as Ge, H as rt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Ut, u as Pa } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Oa, a as Vt } from "./useNestedProp-BjZe1Y85.js";
|
|
5
5
|
import { u as Fa, B as Ma } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -106,7 +106,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
106
106
|
}, Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = {
|
|
107
107
|
key: 1,
|
|
108
108
|
class: "line-axis"
|
|
109
|
-
}, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
109
|
+
}, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = ["x", "y", "font-size", "fill"], Cl = {
|
|
110
110
|
key: 3,
|
|
111
111
|
class: "periodLabels"
|
|
112
112
|
}, El = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = { key: 0 }, Il = ["font-size", "text-anchor", "fill", "transform"], Pl = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Ol = { class: "plots" }, Fl = { class: "line-plot-series" }, Ml = ["d", "stroke", "stroke-width"], Rl = ["d", "stroke", "stroke-width"], Nl = ["d", "stroke", "stroke-width"], Bl = ["d", "stroke", "stroke-width"], Dl = ["cx", "cy", "fill", "stroke"], Ul = {
|
|
@@ -157,13 +157,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["selectDatapoint", "selectLegend"],
|
|
159
159
|
setup(h, { expose: O, emit: L }) {
|
|
160
|
-
const q = Ee(() => import("./BaseIcon-BmMbm4d0.js")), G = Ee(() => import("./PackageVersion-
|
|
160
|
+
const q = Ee(() => import("./BaseIcon-BmMbm4d0.js")), G = Ee(() => import("./PackageVersion-D-auaEEJ.js")), se = Ee(() => import("./PenAndPaper-DSvu9dwa.js")), Se = Ee(() => import("./Tooltip-oWCO1HKy.js")), st = Ee(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_quick_chart: Ze } = Oa(), D = h, R = w(null), Oe = w(null), vt = w(null), dt = w(null), Y = w(wa()), ce = w(!1), we = w(null), fe = w(""), te = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), le = w(null), Me = w(null), gt = w(null), pt = w(null), Re = w("#FFFFFF"), e = w(et()), Je = M(() => !!e.value.debug), { loading: V, FINAL_DATASET: Gt, manualLoading: yt } = Fa({
|
|
161
161
|
...ya(D),
|
|
162
162
|
FINAL_CONFIG: e,
|
|
163
163
|
prepareConfig: et,
|
|
164
164
|
callback: () => {
|
|
165
165
|
Promise.resolve().then(async () => {
|
|
166
|
-
await ot(),
|
|
166
|
+
await ot(), C.value === A.LINE && e.value.lineAnimated && !V.value && ua({
|
|
167
167
|
pathDuration: 1e3,
|
|
168
168
|
pointDuration: 1200,
|
|
169
169
|
labelDuration: 1200
|
|
@@ -228,17 +228,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
228
228
|
"num"
|
|
229
229
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
230
230
|
return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
|
|
231
|
-
}), k = w(ze.value), Yt = M(() => !!k.value),
|
|
232
|
-
Te(() =>
|
|
233
|
-
a ||
|
|
231
|
+
}), k = w(ze.value), Yt = M(() => !!k.value), C = M(() => k.value ? k.value.type : null);
|
|
232
|
+
Te(() => C.value, (a) => {
|
|
233
|
+
a || $a({
|
|
234
234
|
componentName: "VueUiQuickChart",
|
|
235
235
|
type: "dataset",
|
|
236
236
|
debug: Je.value
|
|
237
237
|
});
|
|
238
238
|
}, { immediate: !0 });
|
|
239
239
|
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ra({
|
|
240
|
-
elementId: `${
|
|
241
|
-
fileName: e.value.title ||
|
|
240
|
+
elementId: `${C.value}_${Y.value}`,
|
|
241
|
+
fileName: e.value.title || C.value,
|
|
242
242
|
options: e.value.userOptionsPrint
|
|
243
243
|
}), Zt = M(() => e.value.showUserOptions && !e.value.title), S = w({
|
|
244
244
|
width: e.value.width,
|
|
@@ -256,13 +256,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
256
256
|
mt.value = !0, wt();
|
|
257
257
|
});
|
|
258
258
|
function wt() {
|
|
259
|
-
if (
|
|
259
|
+
if (Ca(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
260
|
const a = Ut(() => {
|
|
261
261
|
const { width: r, height: t } = Pa({
|
|
262
262
|
chart: R.value,
|
|
263
263
|
title: e.value.title ? Oe.value : null,
|
|
264
264
|
legend: e.value.showLegend ? vt.value : null,
|
|
265
|
-
slicer: [A.BAR, A.LINE].includes(
|
|
265
|
+
slicer: [A.BAR, A.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? dt.value : null,
|
|
266
266
|
source: ct.value,
|
|
267
267
|
noTitle: ft.value
|
|
268
268
|
});
|
|
@@ -278,7 +278,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
278
278
|
ve.value && (xe.value && ve.value.unobserve(xe.value), ve.value.disconnect());
|
|
279
279
|
});
|
|
280
280
|
const Jt = M(() => {
|
|
281
|
-
switch (
|
|
281
|
+
switch (C.value) {
|
|
282
282
|
case A.LINE:
|
|
283
283
|
return `0 0 ${S.value.width <= 0 ? 10 : S.value.width} ${S.value.height <= 0 ? 10 : S.value.height}`;
|
|
284
284
|
case A.BAR:
|
|
@@ -292,7 +292,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
292
292
|
function At(a) {
|
|
293
293
|
return [...a].map((r) => r.value).reduce((r, t) => r + t, 0);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function $e(a) {
|
|
296
296
|
return e.value.blurOnHover && ![null, void 0].includes(te.value) && te.value !== a ? `url(#blur_${Y.value})` : "";
|
|
297
297
|
}
|
|
298
298
|
function Lt(a, r) {
|
|
@@ -343,12 +343,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
343
343
|
u();
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const oe = w(null);
|
|
347
347
|
function Kt(a) {
|
|
348
|
-
|
|
348
|
+
oe.value = a;
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
if (
|
|
350
|
+
const $t = M(() => e.value.donutThicknessRatio < 0.01 ? 0.01 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = M(() => {
|
|
351
|
+
if (C.value !== A.DONUT) return null;
|
|
352
352
|
const a = k.value.dataset.map((f, z) => ({
|
|
353
353
|
...f,
|
|
354
354
|
value: f.VALUE || f.DATA || f.SERIE || f.VALUES || f.NUM || 0,
|
|
@@ -405,7 +405,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
405
405
|
ce.value = !0;
|
|
406
406
|
}
|
|
407
407
|
function p({ datapoint: f, seriesIndex: z }) {
|
|
408
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }), ce.value = !1, te.value = null,
|
|
408
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: f, seriesIndex: z }), ce.value = !1, te.value = null, oe.value = null;
|
|
409
409
|
}
|
|
410
410
|
function b({ datapoint: f, seriesIndex: z }) {
|
|
411
411
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: f, seriesIndex: z }), pe("selectDatapoint", f);
|
|
@@ -419,7 +419,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
419
419
|
value: f.value || 0,
|
|
420
420
|
absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
|
|
421
421
|
shape: "circle"
|
|
422
|
-
})),
|
|
422
|
+
})), ne = S.value.width / 2, Z = S.value.height / 2, X = S.value.height * e.value.donutRadiusRatio;
|
|
423
423
|
return {
|
|
424
424
|
dataset: K.filter((f) => !_.value.includes(f.id)),
|
|
425
425
|
legend: K,
|
|
@@ -431,12 +431,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
431
431
|
selectDatapoint: b,
|
|
432
432
|
getSpaces: l,
|
|
433
433
|
total: F,
|
|
434
|
-
cx:
|
|
434
|
+
cx: ne,
|
|
435
435
|
cy: Z,
|
|
436
436
|
radius: X,
|
|
437
437
|
chart: Ea(
|
|
438
438
|
{ series: a.filter((f) => !_.value.includes(f.id)) },
|
|
439
|
-
|
|
439
|
+
ne,
|
|
440
440
|
Z,
|
|
441
441
|
X,
|
|
442
442
|
X,
|
|
@@ -445,7 +445,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
445
445
|
1,
|
|
446
446
|
360,
|
|
447
447
|
105.25,
|
|
448
|
-
S.value.height *
|
|
448
|
+
S.value.height * $t.value
|
|
449
449
|
)
|
|
450
450
|
};
|
|
451
451
|
}), y = w({
|
|
@@ -455,10 +455,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
455
455
|
function ea() {
|
|
456
456
|
Et();
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const Ct = w(null);
|
|
459
459
|
async function Et() {
|
|
460
460
|
await ot(), await ot();
|
|
461
|
-
const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t =
|
|
461
|
+
const { zoomStartIndex: a, zoomEndIndex: r } = e.value, t = Ct.value;
|
|
462
462
|
(a != null || r != null) && t ? (a != null && t.setStartValue(a), r != null && t.setEndValue(ta(r + 1))) : (y.value = {
|
|
463
463
|
start: 0,
|
|
464
464
|
end: k.value.maxSeriesLength
|
|
@@ -469,11 +469,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
469
469
|
return a > r ? r : a < 0 || e.value.zoomStartIndex !== null && a < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : a;
|
|
470
470
|
}
|
|
471
471
|
const aa = M(() => {
|
|
472
|
-
if (!e.value.zoomMinimap.show ||
|
|
472
|
+
if (!e.value.zoomMinimap.show || C.value === A.DONUT) return [];
|
|
473
473
|
let a = [];
|
|
474
474
|
re(k.value.dataset) && (a = k.value.dataset), je(k.value.dataset) && (a = k.value.dataset.map((u, p) => ({
|
|
475
475
|
values: u.VALUE || u.DATA || u.SERIE || u.SERIES || u.VALUES || u.NUM || 0,
|
|
476
|
-
id:
|
|
476
|
+
id: C.value === A.LINE ? `line_${p}` : `bar_${p}`
|
|
477
477
|
})).filter((u) => !_.value.includes(u.id)));
|
|
478
478
|
const r = re(a) ? a.length : Math.max(...a.map((u) => u.values.length));
|
|
479
479
|
let t = [];
|
|
@@ -496,7 +496,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
496
496
|
tt.value = a;
|
|
497
497
|
}, 100);
|
|
498
498
|
ka((a) => {
|
|
499
|
-
const r =
|
|
499
|
+
const r = le.value;
|
|
500
500
|
if (!r) return;
|
|
501
501
|
const t = new ResizeObserver((l) => {
|
|
502
502
|
la(l[0].contentRect.height);
|
|
@@ -507,16 +507,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
507
507
|
});
|
|
508
508
|
const Ve = M(() => {
|
|
509
509
|
let a = 0, r = 0;
|
|
510
|
-
return
|
|
510
|
+
return le.value && (r = tt.value), a + r;
|
|
511
511
|
}), c = M(() => {
|
|
512
|
-
if (
|
|
512
|
+
if (C.value !== A.LINE) return null;
|
|
513
513
|
const a = {
|
|
514
514
|
height: S.value.height,
|
|
515
515
|
width: S.value.width
|
|
516
516
|
};
|
|
517
517
|
let r = Tt();
|
|
518
|
-
if (
|
|
519
|
-
const d =
|
|
518
|
+
if (le.value) {
|
|
519
|
+
const d = le.value.getBBox().x;
|
|
520
520
|
d < 0 && (r += Math.abs(d));
|
|
521
521
|
}
|
|
522
522
|
const t = {
|
|
@@ -557,7 +557,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
557
557
|
y: t.bottom - t.height * ((d + b) / (p.max + b)),
|
|
558
558
|
x: t.left - 8,
|
|
559
559
|
value: d
|
|
560
|
-
})),
|
|
560
|
+
})), ne = l.map((d, i) => ({
|
|
561
561
|
...d,
|
|
562
562
|
shape: "circle",
|
|
563
563
|
coordinates: d.values.map((g, E) => ({
|
|
@@ -582,7 +582,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
582
582
|
})).filter((i) => !_.value.includes(i.id));
|
|
583
583
|
}
|
|
584
584
|
function X(d) {
|
|
585
|
-
te.value = d,
|
|
585
|
+
te.value = d, oe.value = d;
|
|
586
586
|
const i = Z(d);
|
|
587
587
|
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
|
|
588
588
|
const g = e.value.tooltipCustomFormat;
|
|
@@ -600,7 +600,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
600
600
|
});
|
|
601
601
|
else {
|
|
602
602
|
let E = "";
|
|
603
|
-
Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((N,
|
|
603
|
+
Q.value[i[0].absoluteIndex] && (E += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[i[0].absoluteIndex].text}</div>`), i.forEach((N, W) => {
|
|
604
604
|
E += `
|
|
605
605
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
606
606
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${N.color}"/></svg>
|
|
@@ -614,7 +614,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
614
614
|
s: e.value.valueSuffix,
|
|
615
615
|
r: e.value.dataLabelRoundingValue
|
|
616
616
|
}),
|
|
617
|
-
{ datapoint: N, seriesIndex:
|
|
617
|
+
{ datapoint: N, seriesIndex: W }
|
|
618
618
|
)}
|
|
619
619
|
</b>
|
|
620
620
|
</div>
|
|
@@ -625,7 +625,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
625
625
|
}
|
|
626
626
|
function f(d) {
|
|
627
627
|
const i = Z(d);
|
|
628
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), te.value = null,
|
|
628
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: i, seriesIndex: d + y.value.start }), te.value = null, oe.value = null, ce.value = !1;
|
|
629
629
|
}
|
|
630
630
|
function z(d) {
|
|
631
631
|
const i = Z(d);
|
|
@@ -633,8 +633,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
633
633
|
}
|
|
634
634
|
return {
|
|
635
635
|
absoluteZero: P,
|
|
636
|
-
dataset:
|
|
637
|
-
legend:
|
|
636
|
+
dataset: ne.filter((d) => !_.value.includes(d.id)),
|
|
637
|
+
legend: ne,
|
|
638
638
|
drawingArea: t,
|
|
639
639
|
extremes: u,
|
|
640
640
|
slotSize: F,
|
|
@@ -644,14 +644,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
644
644
|
selectDatapoint: z
|
|
645
645
|
};
|
|
646
646
|
}), v = M(() => {
|
|
647
|
-
if (
|
|
647
|
+
if (C.value !== A.BAR) return null;
|
|
648
648
|
const a = {
|
|
649
649
|
height: S.value.height,
|
|
650
650
|
width: S.value.width
|
|
651
651
|
};
|
|
652
652
|
let r = Tt();
|
|
653
|
-
if (
|
|
654
|
-
const i =
|
|
653
|
+
if (le.value) {
|
|
654
|
+
const i = le.value.getBBox().x;
|
|
655
655
|
i < 0 && (r += Math.abs(i));
|
|
656
656
|
}
|
|
657
657
|
const t = {
|
|
@@ -692,29 +692,29 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
692
692
|
y: t.bottom - t.height * ((i + b) / (p.max + b)),
|
|
693
693
|
x: t.left - 8,
|
|
694
694
|
value: i
|
|
695
|
-
})),
|
|
695
|
+
})), ne = l.map((i, g) => ({
|
|
696
696
|
...i,
|
|
697
697
|
shape: "square",
|
|
698
698
|
coordinates: i.values.map((E, N) => {
|
|
699
|
-
const
|
|
699
|
+
const W = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, Ce = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
700
700
|
return {
|
|
701
|
-
x: t.left + F * N +
|
|
702
|
-
y: E > 0 ? t.bottom -
|
|
703
|
-
height: E > 0 ?
|
|
701
|
+
x: t.left + F * N + Ce * g + e.value.barGap / 2,
|
|
702
|
+
y: E > 0 ? t.bottom - W : P,
|
|
703
|
+
height: E > 0 ? W - lt : ee,
|
|
704
704
|
value: E,
|
|
705
|
-
width:
|
|
705
|
+
width: Ce
|
|
706
706
|
};
|
|
707
707
|
})
|
|
708
708
|
})), Z = l.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
|
|
709
709
|
...i,
|
|
710
710
|
coordinates: i.values.map((E, N) => {
|
|
711
|
-
const
|
|
711
|
+
const W = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, Ce = F / l.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / l.filter((he) => !_.value.includes(he.id)).length;
|
|
712
712
|
return {
|
|
713
|
-
x: t.left + F * N +
|
|
714
|
-
y: E > 0 ? t.bottom -
|
|
715
|
-
height: E > 0 ?
|
|
713
|
+
x: t.left + F * N + Ce * g + e.value.barGap / 2,
|
|
714
|
+
y: E > 0 ? t.bottom - W : P,
|
|
715
|
+
height: E > 0 ? W - lt : ee,
|
|
716
716
|
value: E,
|
|
717
|
-
width:
|
|
717
|
+
width: Ce
|
|
718
718
|
};
|
|
719
719
|
})
|
|
720
720
|
}));
|
|
@@ -726,7 +726,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
726
726
|
})).filter((g) => !_.value.includes(g.id));
|
|
727
727
|
}
|
|
728
728
|
function f(i) {
|
|
729
|
-
te.value = i,
|
|
729
|
+
te.value = i, oe.value = i;
|
|
730
730
|
const g = X(i);
|
|
731
731
|
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
|
|
732
732
|
const E = e.value.tooltipCustomFormat;
|
|
@@ -744,21 +744,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
744
744
|
});
|
|
745
745
|
else {
|
|
746
746
|
let N = "";
|
|
747
|
-
Q.value[g[0].absoluteIndex] && (N += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[g[0].absoluteIndex].text}</div>`), g.forEach((
|
|
747
|
+
Q.value[g[0].absoluteIndex] && (N += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${Q.value[g[0].absoluteIndex].text}</div>`), g.forEach((W, ee) => {
|
|
748
748
|
N += `
|
|
749
749
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
750
|
-
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${
|
|
751
|
-
<span>${
|
|
750
|
+
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${W.color}"/></svg>
|
|
751
|
+
<span>${W.name}:</span>
|
|
752
752
|
<b>${ie(
|
|
753
753
|
e.value.formatter,
|
|
754
|
-
|
|
754
|
+
W.value,
|
|
755
755
|
j({
|
|
756
756
|
p: e.value.valuePrefix,
|
|
757
|
-
v:
|
|
757
|
+
v: W.value,
|
|
758
758
|
s: e.value.valueSuffix,
|
|
759
759
|
r: e.value.dataLabelRoundingValue
|
|
760
760
|
}),
|
|
761
|
-
{ datapoint:
|
|
761
|
+
{ datapoint: W, seriesIndex: ee }
|
|
762
762
|
)}
|
|
763
763
|
</b>
|
|
764
764
|
</div>
|
|
@@ -769,7 +769,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
769
769
|
}
|
|
770
770
|
function z(i) {
|
|
771
771
|
const g = X(i);
|
|
772
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), ce.value = !1, te.value = null,
|
|
772
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), ce.value = !1, te.value = null, oe.value = null;
|
|
773
773
|
}
|
|
774
774
|
function d(i) {
|
|
775
775
|
const g = X(i);
|
|
@@ -779,7 +779,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
779
779
|
absoluteZero: P,
|
|
780
780
|
dataset: Z.filter((i) => !_.value.includes(i.id)),
|
|
781
781
|
absoluteDataset: Z,
|
|
782
|
-
legend:
|
|
782
|
+
legend: ne,
|
|
783
783
|
drawingArea: t,
|
|
784
784
|
extremes: u,
|
|
785
785
|
slotSize: F,
|
|
@@ -836,7 +836,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
836
836
|
labelStep: P = 0,
|
|
837
837
|
intraSeriesStep: F = 0
|
|
838
838
|
} = {}) {
|
|
839
|
-
const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean),
|
|
839
|
+
const K = Array.isArray(Ae?.value) ? Ae.value : [Ae?.value].filter(Boolean), ne = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), Z = [...K, ...ne].filter(Boolean), X = R?.value || null, f = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-plot")) : [], z = X ? Array.from(X.querySelectorAll(".vue-ui-quick-chart-label")) : [];
|
|
840
840
|
Z.forEach(oa), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(z, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), z.forEach((g) => g.classList.remove("quick-animation")), X && X.offsetWidth;
|
|
841
841
|
const d = f.length ? Pt(f, na) : [], i = z.length ? Pt(z, ia) : [];
|
|
842
842
|
requestAnimationFrame(() => {
|
|
@@ -844,13 +844,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
844
844
|
Z.forEach((g) => {
|
|
845
845
|
g.style.transition = `stroke-dashoffset ${a}ms ${r}`, g.style.strokeDashoffset = "0";
|
|
846
846
|
}), d.forEach((g, E) => {
|
|
847
|
-
g.items.forEach((N,
|
|
848
|
-
const ee = u + E * b +
|
|
847
|
+
g.items.forEach((N, W) => {
|
|
848
|
+
const ee = u + E * b + W * F;
|
|
849
849
|
N.style.transition = `opacity ${t}ms ease-out ${ee}ms, transform ${t}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
850
850
|
});
|
|
851
851
|
}), i.forEach((g, E) => {
|
|
852
|
-
g.items.forEach((N,
|
|
853
|
-
const ee = p + E * P +
|
|
852
|
+
g.items.forEach((N, W) => {
|
|
853
|
+
const ee = p + E * P + W * F;
|
|
854
854
|
N.style.transition = `opacity ${l}ms ease-out ${ee}ms, transform ${l}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
855
855
|
});
|
|
856
856
|
});
|
|
@@ -858,14 +858,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
const ra = M(() => {
|
|
861
|
-
if (
|
|
861
|
+
if (C.value === A.LINE)
|
|
862
862
|
return c.value.legend.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
863
863
|
...a,
|
|
864
864
|
isVisible: !_.value.includes(a.id),
|
|
865
865
|
type: "line",
|
|
866
866
|
series: a.absoluteValues
|
|
867
867
|
}));
|
|
868
|
-
if (
|
|
868
|
+
if (C.value === A.BAR)
|
|
869
869
|
return v.value.absoluteDataset.map((a) => (Math.min(...a.absoluteValues.map((r) => r ?? 0)), {
|
|
870
870
|
...a,
|
|
871
871
|
isVisible: !_.value.includes(a.id),
|
|
@@ -906,7 +906,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
906
906
|
}
|
|
907
907
|
const va = M(() => S.value.width), da = M(() => S.value.height);
|
|
908
908
|
Ua({
|
|
909
|
-
timeLabelsEls:
|
|
909
|
+
timeLabelsEls: le,
|
|
910
910
|
timeLabels: Q,
|
|
911
911
|
slicer: y,
|
|
912
912
|
configRef: e,
|
|
@@ -917,7 +917,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
917
917
|
height: da.value,
|
|
918
918
|
width: va.value
|
|
919
919
|
});
|
|
920
|
-
const ca = M(() => e.value.backgroundColor), fa = M(() =>
|
|
920
|
+
const ca = M(() => e.value.backgroundColor), fa = M(() => C.value === A.DONUT ? I.value.legend : C.value === A.LINE ? c.value.legend : v.value.legend), ha = M(() => ({
|
|
921
921
|
show: e.value.showLegend,
|
|
922
922
|
bold: !1,
|
|
923
923
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -957,7 +957,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
957
957
|
toggleFullscreen: Ot
|
|
958
958
|
}), (a, r) => Yt.value ? (o(), n("div", {
|
|
959
959
|
key: 0,
|
|
960
|
-
id: `${
|
|
960
|
+
id: `${C.value}_${Y.value}`,
|
|
961
961
|
ref_key: "quickChart",
|
|
962
962
|
ref: R,
|
|
963
963
|
class: de({ "vue-data-ui-component": !0, "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": qe.value }),
|
|
@@ -1015,45 +1015,52 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1015
1015
|
}, ba({ _: 2 }, [
|
|
1016
1016
|
a.$slots.menuIcon ? {
|
|
1017
1017
|
name: "menuIcon",
|
|
1018
|
-
fn:
|
|
1019
|
-
|
|
1018
|
+
fn: ae(({ isOpen: t, color: l }) => [
|
|
1019
|
+
H(a.$slots, "menuIcon", me(ge({ isOpen: t, color: l })), void 0, !0)
|
|
1020
1020
|
]),
|
|
1021
1021
|
key: "0"
|
|
1022
1022
|
} : void 0,
|
|
1023
1023
|
a.$slots.optionTooltip ? {
|
|
1024
1024
|
name: "optionTooltip",
|
|
1025
|
-
fn:
|
|
1026
|
-
|
|
1025
|
+
fn: ae(() => [
|
|
1026
|
+
H(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1027
1027
|
]),
|
|
1028
1028
|
key: "1"
|
|
1029
1029
|
} : void 0,
|
|
1030
1030
|
a.$slots.optionPdf ? {
|
|
1031
1031
|
name: "optionPdf",
|
|
1032
|
-
fn:
|
|
1033
|
-
|
|
1032
|
+
fn: ae(() => [
|
|
1033
|
+
H(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1034
1034
|
]),
|
|
1035
1035
|
key: "2"
|
|
1036
1036
|
} : void 0,
|
|
1037
1037
|
a.$slots.optionImg ? {
|
|
1038
1038
|
name: "optionImg",
|
|
1039
|
-
fn:
|
|
1040
|
-
|
|
1039
|
+
fn: ae(() => [
|
|
1040
|
+
H(a.$slots, "optionImg", {}, void 0, !0)
|
|
1041
1041
|
]),
|
|
1042
1042
|
key: "3"
|
|
1043
1043
|
} : void 0,
|
|
1044
|
+
a.$slots.optionSvg ? {
|
|
1045
|
+
name: "optionSvg",
|
|
1046
|
+
fn: ae(() => [
|
|
1047
|
+
H(a.$slots, "optionSvg", {}, void 0, !0)
|
|
1048
|
+
]),
|
|
1049
|
+
key: "4"
|
|
1050
|
+
} : void 0,
|
|
1044
1051
|
a.$slots.optionFullscreen ? {
|
|
1045
1052
|
name: "optionFullscreen",
|
|
1046
|
-
fn:
|
|
1047
|
-
|
|
1053
|
+
fn: ae(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
1054
|
+
H(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
1048
1055
|
]),
|
|
1049
|
-
key: "
|
|
1056
|
+
key: "5"
|
|
1050
1057
|
} : void 0,
|
|
1051
1058
|
a.$slots.optionAnnotator ? {
|
|
1052
1059
|
name: "optionAnnotator",
|
|
1053
|
-
fn:
|
|
1054
|
-
|
|
1060
|
+
fn: ae(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
1061
|
+
H(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
1055
1062
|
]),
|
|
1056
|
-
key: "
|
|
1063
|
+
key: "6"
|
|
1057
1064
|
} : void 0
|
|
1058
1065
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
1059
1066
|
e.value.title ? (o(), n("div", {
|
|
@@ -1063,10 +1070,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1063
1070
|
class: "vue-ui-quick-chart-title",
|
|
1064
1071
|
style: B(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
1065
1072
|
}, U(e.value.title), 5)) : m("", !0),
|
|
1066
|
-
|
|
1073
|
+
$("div", {
|
|
1067
1074
|
id: `legend-top-${Y.value}`
|
|
1068
1075
|
}, null, 8, Ka),
|
|
1069
|
-
|
|
1076
|
+
C.value ? (o(), n("svg", {
|
|
1070
1077
|
key: 4,
|
|
1071
1078
|
ref_key: "svgRef",
|
|
1072
1079
|
ref: Qe,
|
|
@@ -1075,7 +1082,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1075
1082
|
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1076
1083
|
}, [
|
|
1077
1084
|
be(s(G)),
|
|
1078
|
-
a.$slots["chart-background"] &&
|
|
1085
|
+
a.$slots["chart-background"] && C.value === A.BAR ? (o(), n("foreignObject", {
|
|
1079
1086
|
key: 0,
|
|
1080
1087
|
x: v.value.drawingArea.left,
|
|
1081
1088
|
y: v.value.drawingArea.top,
|
|
@@ -1085,9 +1092,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1085
1092
|
pointerEvents: "none"
|
|
1086
1093
|
}
|
|
1087
1094
|
}, [
|
|
1088
|
-
|
|
1095
|
+
H(a.$slots, "chart-background", {}, void 0, !0)
|
|
1089
1096
|
], 8, tl)) : m("", !0),
|
|
1090
|
-
a.$slots["chart-background"] &&
|
|
1097
|
+
a.$slots["chart-background"] && C.value === A.LINE ? (o(), n("foreignObject", {
|
|
1091
1098
|
key: 1,
|
|
1092
1099
|
x: c.value.drawingArea.left,
|
|
1093
1100
|
y: c.value.drawingArea.top,
|
|
@@ -1097,9 +1104,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1097
1104
|
pointerEvents: "none"
|
|
1098
1105
|
}
|
|
1099
1106
|
}, [
|
|
1100
|
-
|
|
1107
|
+
H(a.$slots, "chart-background", {}, void 0, !0)
|
|
1101
1108
|
], 8, al)) : m("", !0),
|
|
1102
|
-
a.$slots["chart-background"] &&
|
|
1109
|
+
a.$slots["chart-background"] && C.value === A.DONUT ? (o(), n("foreignObject", {
|
|
1103
1110
|
key: 2,
|
|
1104
1111
|
x: 0,
|
|
1105
1112
|
y: 0,
|
|
@@ -1109,31 +1116,31 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1109
1116
|
pointerEvents: "none"
|
|
1110
1117
|
}
|
|
1111
1118
|
}, [
|
|
1112
|
-
|
|
1119
|
+
H(a.$slots, "chart-background", {}, void 0, !0)
|
|
1113
1120
|
], 8, ll)) : m("", !0),
|
|
1114
|
-
|
|
1115
|
-
|
|
1121
|
+
$("defs", null, [
|
|
1122
|
+
$("filter", {
|
|
1116
1123
|
id: `blur_${Y.value}`,
|
|
1117
1124
|
x: "-50%",
|
|
1118
1125
|
y: "-50%",
|
|
1119
1126
|
width: "200%",
|
|
1120
1127
|
height: "200%"
|
|
1121
1128
|
}, [
|
|
1122
|
-
|
|
1129
|
+
$("feGaussianBlur", {
|
|
1123
1130
|
in: "SourceGraphic",
|
|
1124
1131
|
stdDeviation: 2,
|
|
1125
1132
|
id: `blur_std_${Y.value}`
|
|
1126
1133
|
}, null, 8, nl),
|
|
1127
|
-
r[4] || (r[4] =
|
|
1134
|
+
r[4] || (r[4] = $("feColorMatrix", {
|
|
1128
1135
|
type: "saturate",
|
|
1129
1136
|
values: "0"
|
|
1130
1137
|
}, null, -1))
|
|
1131
1138
|
], 8, ol),
|
|
1132
|
-
|
|
1139
|
+
$("filter", {
|
|
1133
1140
|
id: `shadow_${Y.value}`,
|
|
1134
1141
|
"color-interpolation-filters": "sRGB"
|
|
1135
1142
|
}, [
|
|
1136
|
-
|
|
1143
|
+
$("feDropShadow", {
|
|
1137
1144
|
dx: "0",
|
|
1138
1145
|
dy: "0",
|
|
1139
1146
|
stdDeviation: "10",
|
|
@@ -1142,35 +1149,35 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1142
1149
|
}, null, 8, ul)
|
|
1143
1150
|
], 8, il)
|
|
1144
1151
|
]),
|
|
1145
|
-
|
|
1152
|
+
C.value === A.DONUT ? (o(), n(x, { key: 3 }, [
|
|
1146
1153
|
e.value.showDataLabels ? (o(), n("g", rl, [
|
|
1147
1154
|
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n(x, null, [
|
|
1148
1155
|
I.value.isArcBigEnough(t) ? (o(), n("path", {
|
|
1149
1156
|
key: 0,
|
|
1150
|
-
d: s(Ia)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height *
|
|
1157
|
+
d: s(Ia)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * $t.value, 12, e.value.donutCurvedMarkers),
|
|
1151
1158
|
stroke: t.color,
|
|
1152
1159
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
1153
1160
|
"stroke-linecap": "round",
|
|
1154
1161
|
"stroke-linejoin": "round",
|
|
1155
1162
|
fill: "none",
|
|
1156
|
-
filter:
|
|
1163
|
+
filter: $e(t.id)
|
|
1157
1164
|
}, null, 8, sl)) : m("", !0)
|
|
1158
1165
|
], 64))), 256))
|
|
1159
1166
|
])) : m("", !0),
|
|
1160
|
-
|
|
1167
|
+
$("circle", {
|
|
1161
1168
|
cx: I.value.cx,
|
|
1162
1169
|
cy: I.value.cy,
|
|
1163
1170
|
r: I.value.radius,
|
|
1164
1171
|
fill: e.value.backgroundColor,
|
|
1165
1172
|
filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
|
|
1166
1173
|
}, null, 8, vl),
|
|
1167
|
-
|
|
1174
|
+
$("g", dl, [
|
|
1168
1175
|
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1169
1176
|
d: t.arcSlice,
|
|
1170
1177
|
fill: t.color,
|
|
1171
1178
|
stroke: Re.value,
|
|
1172
1179
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1173
|
-
filter:
|
|
1180
|
+
filter: $e(t.id)
|
|
1174
1181
|
}, null, 8, cl))), 256)),
|
|
1175
1182
|
(o(!0), n(x, null, T(I.value.chart, (t, l) => (o(), n("path", {
|
|
1176
1183
|
d: t.arcSlice,
|
|
@@ -1190,7 +1197,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1190
1197
|
stroke: e.value.backgroundColor,
|
|
1191
1198
|
"stroke-width": 1,
|
|
1192
1199
|
r: 3,
|
|
1193
|
-
filter:
|
|
1200
|
+
filter: $e(t.id)
|
|
1194
1201
|
}, null, 8, ml)) : m("", !0),
|
|
1195
1202
|
I.value.isArcBigEnough(t) ? (o(), n("text", {
|
|
1196
1203
|
key: 1,
|
|
@@ -1199,7 +1206,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1199
1206
|
y: s(ut)(t),
|
|
1200
1207
|
fill: e.value.color,
|
|
1201
1208
|
"font-size": e.value.dataLabelFontSize,
|
|
1202
|
-
filter:
|
|
1209
|
+
filter: $e(t.id)
|
|
1203
1210
|
}, U(I.value.displayArcPercentage(t, I.value.chart)) + " (" + U(s(ie)(
|
|
1204
1211
|
e.value.formatter,
|
|
1205
1212
|
t.value,
|
|
@@ -1218,19 +1225,19 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1218
1225
|
y: s(ut)(t) + e.value.dataLabelFontSize,
|
|
1219
1226
|
fill: e.value.color,
|
|
1220
1227
|
"font-size": e.value.dataLabelFontSize,
|
|
1221
|
-
filter:
|
|
1228
|
+
filter: $e(t.id)
|
|
1222
1229
|
}, U(t.name), 9, pl)) : m("", !0)
|
|
1223
1230
|
], 64))), 256))
|
|
1224
1231
|
])) : m("", !0),
|
|
1225
1232
|
e.value.donutShowTotal ? (o(), n("g", yl, [
|
|
1226
|
-
|
|
1233
|
+
$("text", {
|
|
1227
1234
|
"text-anchor": "middle",
|
|
1228
1235
|
x: I.value.drawingArea.centerX,
|
|
1229
1236
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
1230
1237
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
1231
1238
|
fill: e.value.color
|
|
1232
1239
|
}, U(e.value.donutTotalLabelText), 9, xl),
|
|
1233
|
-
|
|
1240
|
+
$("text", {
|
|
1234
1241
|
"text-anchor": "middle",
|
|
1235
1242
|
x: I.value.drawingArea.centerX,
|
|
1236
1243
|
y: I.value.drawingArea.centerY + e.value.donutTotalLabelFontSize,
|
|
@@ -1244,7 +1251,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1244
1251
|
})), 9, kl)
|
|
1245
1252
|
])) : m("", !0)
|
|
1246
1253
|
], 64)) : m("", !0),
|
|
1247
|
-
|
|
1254
|
+
C.value === A.LINE ? (o(), n(x, { key: 4 }, [
|
|
1248
1255
|
e.value.xyShowGrid ? (o(), n("g", bl, [
|
|
1249
1256
|
(o(!0), n(x, null, T(c.value.yLabels, (t) => (o(), n(x, null, [
|
|
1250
1257
|
t.y <= c.value.drawingArea.bottom ? (o(), n("line", {
|
|
@@ -1269,7 +1276,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1269
1276
|
}, null, 8, wl))), 256))
|
|
1270
1277
|
])) : m("", !0),
|
|
1271
1278
|
e.value.xyShowAxis ? (o(), n("g", Al, [
|
|
1272
|
-
|
|
1279
|
+
$("line", {
|
|
1273
1280
|
x1: c.value.drawingArea.left,
|
|
1274
1281
|
x2: c.value.drawingArea.left,
|
|
1275
1282
|
y1: c.value.drawingArea.top,
|
|
@@ -1278,7 +1285,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1278
1285
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1279
1286
|
"stroke-linecap": "round"
|
|
1280
1287
|
}, null, 8, Ll),
|
|
1281
|
-
|
|
1288
|
+
$("line", {
|
|
1282
1289
|
x1: c.value.drawingArea.left,
|
|
1283
1290
|
x2: c.value.drawingArea.right,
|
|
1284
1291
|
y1: isNaN(c.value.absoluteZero) ? c.value.drawingArea.bottom : c.value.absoluteZero,
|
|
@@ -1322,10 +1329,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1322
1329
|
r: e.value.dataLabelRoundingValue
|
|
1323
1330
|
}),
|
|
1324
1331
|
{ datapoint: t, seriesIndex: l }
|
|
1325
|
-
)), 9,
|
|
1332
|
+
)), 9, $l)) : m("", !0)
|
|
1326
1333
|
], 64))), 256))
|
|
1327
1334
|
], 512)) : m("", !0),
|
|
1328
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g",
|
|
1335
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (o(), n("g", Cl, [
|
|
1329
1336
|
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1330
1337
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("line", {
|
|
1331
1338
|
key: 0,
|
|
@@ -1338,9 +1345,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1338
1345
|
"stroke-linecap": "round"
|
|
1339
1346
|
}, null, 8, El)) : m("", !0)
|
|
1340
1347
|
], 64))), 256)),
|
|
1341
|
-
|
|
1348
|
+
$("g", {
|
|
1342
1349
|
ref_key: "timeLabelsEls",
|
|
1343
|
-
ref:
|
|
1350
|
+
ref: le
|
|
1344
1351
|
}, [
|
|
1345
1352
|
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1346
1353
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", Tl, [
|
|
@@ -1371,10 +1378,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1371
1378
|
], 64))), 256))
|
|
1372
1379
|
], 512)
|
|
1373
1380
|
])) : m("", !0),
|
|
1374
|
-
|
|
1381
|
+
$("g", Ol, [
|
|
1375
1382
|
(o(!0), n(x, null, T(c.value.dataset, (t, l) => (o(), n("g", Fl, [
|
|
1376
1383
|
e.value.lineSmooth ? (o(), n(x, { key: 0 }, [
|
|
1377
|
-
|
|
1384
|
+
$("path", {
|
|
1378
1385
|
ref_for: !0,
|
|
1379
1386
|
ref_key: "pathWrapper",
|
|
1380
1387
|
ref: Ae,
|
|
@@ -1386,7 +1393,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1386
1393
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1387
1394
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1388
1395
|
}, null, 14, Ml),
|
|
1389
|
-
|
|
1396
|
+
$("path", {
|
|
1390
1397
|
ref_for: !0,
|
|
1391
1398
|
ref_key: "pathTop",
|
|
1392
1399
|
ref: Le,
|
|
@@ -1399,7 +1406,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1399
1406
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1400
1407
|
}, null, 14, Rl)
|
|
1401
1408
|
], 64)) : (o(), n(x, { key: 1 }, [
|
|
1402
|
-
|
|
1409
|
+
$("path", {
|
|
1403
1410
|
ref_for: !0,
|
|
1404
1411
|
ref_key: "pathWrapper",
|
|
1405
1412
|
ref: Ae,
|
|
@@ -1411,7 +1418,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1411
1418
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1412
1419
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1413
1420
|
}, null, 14, Nl),
|
|
1414
|
-
|
|
1421
|
+
$("path", {
|
|
1415
1422
|
ref_for: !0,
|
|
1416
1423
|
ref_key: "pathTop",
|
|
1417
1424
|
ref: Le,
|
|
@@ -1465,7 +1472,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1465
1472
|
y: c.value.drawingArea.top,
|
|
1466
1473
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1467
1474
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1468
|
-
fill: [te.value,
|
|
1475
|
+
fill: [te.value, oe.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1469
1476
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1470
1477
|
onMouseenter: (u) => c.value.useTooltip(l),
|
|
1471
1478
|
onMouseleave: (u) => c.value.killTooltip(l),
|
|
@@ -1473,7 +1480,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1473
1480
|
}, null, 44, Hl))), 256))
|
|
1474
1481
|
])) : m("", !0)
|
|
1475
1482
|
], 64)) : m("", !0),
|
|
1476
|
-
|
|
1483
|
+
C.value === A.BAR ? (o(), n(x, { key: 5 }, [
|
|
1477
1484
|
e.value.xyShowGrid ? (o(), n("g", Wl, [
|
|
1478
1485
|
(o(!0), n(x, null, T(v.value.yLabels, (t) => (o(), n(x, null, [
|
|
1479
1486
|
t.y <= v.value.drawingArea.bottom ? (o(), n("line", {
|
|
@@ -1498,7 +1505,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1498
1505
|
}, null, 8, Gl))), 256))
|
|
1499
1506
|
])) : m("", !0),
|
|
1500
1507
|
e.value.xyShowAxis ? (o(), n("g", jl, [
|
|
1501
|
-
|
|
1508
|
+
$("line", {
|
|
1502
1509
|
x1: v.value.drawingArea.left,
|
|
1503
1510
|
x2: v.value.drawingArea.left,
|
|
1504
1511
|
y1: v.value.drawingArea.top,
|
|
@@ -1507,7 +1514,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1507
1514
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1508
1515
|
"stroke-linecap": "round"
|
|
1509
1516
|
}, null, 8, Yl),
|
|
1510
|
-
|
|
1517
|
+
$("line", {
|
|
1511
1518
|
x1: v.value.drawingArea.left,
|
|
1512
1519
|
x2: v.value.drawingArea.right,
|
|
1513
1520
|
y1: isNaN(v.value.absoluteZero) ? v.value.drawingArea.bottom : v.value.absoluteZero,
|
|
@@ -1564,9 +1571,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1564
1571
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1565
1572
|
"stroke-linecap": "round"
|
|
1566
1573
|
}, null, 8, eo))), 256)),
|
|
1567
|
-
|
|
1574
|
+
$("g", {
|
|
1568
1575
|
ref_key: "timeLabelsEls",
|
|
1569
|
-
ref:
|
|
1576
|
+
ref: le
|
|
1570
1577
|
}, [
|
|
1571
1578
|
(o(!0), n(x, null, T(Q.value.map((t) => t.text), (t, l) => (o(), n(x, null, [
|
|
1572
1579
|
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && l % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (o(), n("g", to, [
|
|
@@ -1597,7 +1604,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1597
1604
|
], 64))), 256))
|
|
1598
1605
|
], 512)
|
|
1599
1606
|
])) : m("", !0),
|
|
1600
|
-
|
|
1607
|
+
$("g", oo, [
|
|
1601
1608
|
(o(!0), n(x, null, T(v.value.dataset, (t, l) => (o(), n(x, null, [
|
|
1602
1609
|
(o(!0), n(x, null, T(t.coordinates, (u, p) => (o(), n("rect", {
|
|
1603
1610
|
x: u.x,
|
|
@@ -1655,7 +1662,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1655
1662
|
y: v.value.drawingArea.top,
|
|
1656
1663
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1657
1664
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1658
|
-
fill: [te.value,
|
|
1665
|
+
fill: [te.value, oe.value].includes(l) ? e.value.xyHighlighterColor : "transparent",
|
|
1659
1666
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1660
1667
|
onMouseenter: (u) => v.value.useTooltip(l),
|
|
1661
1668
|
onMouseleave: (u) => v.value.killTooltip(l),
|
|
@@ -1663,13 +1670,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1663
1670
|
}, null, 44, co))), 256))
|
|
1664
1671
|
])) : m("", !0)
|
|
1665
1672
|
], 64)) : m("", !0),
|
|
1666
|
-
[A.LINE, A.BAR].includes(
|
|
1667
|
-
e.value.xAxisLabel &&
|
|
1673
|
+
[A.LINE, A.BAR].includes(C.value) ? (o(), n("g", fo, [
|
|
1674
|
+
e.value.xAxisLabel && C.value === A.LINE ? (o(), n("g", {
|
|
1668
1675
|
key: 0,
|
|
1669
1676
|
ref_key: "xAxisLabel",
|
|
1670
1677
|
ref: gt
|
|
1671
1678
|
}, [
|
|
1672
|
-
|
|
1679
|
+
$("text", {
|
|
1673
1680
|
"font-size": e.value.axisLabelsFontSize,
|
|
1674
1681
|
fill: e.value.color,
|
|
1675
1682
|
"text-anchor": "middle",
|
|
@@ -1677,12 +1684,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1677
1684
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1678
1685
|
}, U(e.value.xAxisLabel), 9, ho)
|
|
1679
1686
|
], 512)) : m("", !0),
|
|
1680
|
-
e.value.xAxisLabel &&
|
|
1687
|
+
e.value.xAxisLabel && C.value === A.BAR ? (o(), n("g", {
|
|
1681
1688
|
key: 1,
|
|
1682
1689
|
ref_key: "xAxisLabel",
|
|
1683
1690
|
ref: gt
|
|
1684
1691
|
}, [
|
|
1685
|
-
|
|
1692
|
+
$("text", {
|
|
1686
1693
|
"font-size": e.value.axisLabelsFontSize,
|
|
1687
1694
|
fill: e.value.color,
|
|
1688
1695
|
"text-anchor": "middle",
|
|
@@ -1690,24 +1697,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1690
1697
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1691
1698
|
}, U(e.value.xAxisLabel), 9, mo)
|
|
1692
1699
|
], 512)) : m("", !0),
|
|
1693
|
-
e.value.yAxisLabel &&
|
|
1700
|
+
e.value.yAxisLabel && C.value === A.LINE ? (o(), n("g", {
|
|
1694
1701
|
key: 2,
|
|
1695
1702
|
ref_key: "yAxisLabel",
|
|
1696
1703
|
ref: pt
|
|
1697
1704
|
}, [
|
|
1698
|
-
|
|
1705
|
+
$("text", {
|
|
1699
1706
|
"font-size": e.value.axisLabelsFontSize,
|
|
1700
1707
|
fill: e.value.color,
|
|
1701
1708
|
transform: `translate(${e.value.axisLabelsFontSize}, ${c.value.drawingArea.top + c.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1702
1709
|
"text-anchor": "middle"
|
|
1703
1710
|
}, U(e.value.yAxisLabel), 9, go)
|
|
1704
1711
|
], 512)) : m("", !0),
|
|
1705
|
-
e.value.yAxisLabel &&
|
|
1712
|
+
e.value.yAxisLabel && C.value === A.BAR ? (o(), n("g", {
|
|
1706
1713
|
key: 3,
|
|
1707
1714
|
ref_key: "yAxisLabel",
|
|
1708
1715
|
ref: pt
|
|
1709
1716
|
}, [
|
|
1710
|
-
|
|
1717
|
+
$("text", {
|
|
1711
1718
|
"font-size": e.value.axisLabelsFontSize,
|
|
1712
1719
|
fill: e.value.color,
|
|
1713
1720
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
@@ -1717,16 +1724,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1717
1724
|
])) : m("", !0)
|
|
1718
1725
|
], 12, el)) : m("", !0),
|
|
1719
1726
|
a.$slots.watermark ? (o(), n("div", yo, [
|
|
1720
|
-
|
|
1727
|
+
H(a.$slots, "watermark", me(ge({ isPrinting: s(Be) || s(De) })), void 0, !0)
|
|
1721
1728
|
])) : m("", !0),
|
|
1722
|
-
[A.BAR, A.LINE].includes(
|
|
1729
|
+
[A.BAR, A.LINE].includes(C.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (o(), n("div", {
|
|
1723
1730
|
key: `slicer_${Fe.value}`,
|
|
1724
1731
|
ref_key: "quickChartSlicer",
|
|
1725
1732
|
ref: dt
|
|
1726
1733
|
}, [
|
|
1727
1734
|
(o(), Ie(qa, {
|
|
1728
1735
|
ref_key: "slicerComponent",
|
|
1729
|
-
ref:
|
|
1736
|
+
ref: Ct,
|
|
1730
1737
|
key: `slicer_${Fe.value}`,
|
|
1731
1738
|
background: e.value.zoomColor,
|
|
1732
1739
|
borderColor: e.value.backgroundColor,
|
|
@@ -1749,7 +1756,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1749
1756
|
minimap: aa.value,
|
|
1750
1757
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1751
1758
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1752
|
-
minimapSelectedIndex:
|
|
1759
|
+
minimapSelectedIndex: oe.value,
|
|
1753
1760
|
start: y.value.start,
|
|
1754
1761
|
"onUpdate:start": r[0] || (r[0] = (t) => y.value.start = t),
|
|
1755
1762
|
end: y.value.end,
|
|
@@ -1767,13 +1774,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1767
1774
|
onReset: ea,
|
|
1768
1775
|
onTrapMouse: Kt
|
|
1769
1776
|
}, {
|
|
1770
|
-
"reset-action":
|
|
1771
|
-
|
|
1777
|
+
"reset-action": ae(({ reset: t }) => [
|
|
1778
|
+
H(a.$slots, "reset-action", me(ge({ reset: t })), void 0, !0)
|
|
1772
1779
|
]),
|
|
1773
1780
|
_: 3
|
|
1774
1781
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "minimapMerged", "allMinimaps", "minimapFrameColor", "focusOnDrag", "focusRangeRatio"]))
|
|
1775
1782
|
])) : m("", !0),
|
|
1776
|
-
|
|
1783
|
+
$("div", {
|
|
1777
1784
|
id: `legend-bottom-${Y.value}`
|
|
1778
1785
|
}, null, 8, xo),
|
|
1779
1786
|
mt.value ? (o(), Ie(Sa, {
|
|
@@ -1787,14 +1794,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1787
1794
|
class: "vue-ui-quick-chart-legend",
|
|
1788
1795
|
style: B(`background:transparent;color:${e.value.color}`)
|
|
1789
1796
|
}, [
|
|
1790
|
-
|
|
1797
|
+
C.value === A.DONUT ? (o(!0), n(x, { key: 0 }, T(I.value.legend, (t, l) => (o(), n("div", {
|
|
1791
1798
|
class: "vue-ui-quick-chart-legend-item",
|
|
1792
1799
|
onClick: (u) => {
|
|
1793
1800
|
Qt(t, I.value.dataset), pe("selectLegend", t);
|
|
1794
1801
|
},
|
|
1795
1802
|
style: B(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1796
1803
|
}, [
|
|
1797
|
-
e.value.useCustomLegend ?
|
|
1804
|
+
e.value.useCustomLegend ? H(a.$slots, "legend", nt({
|
|
1798
1805
|
key: 0,
|
|
1799
1806
|
ref_for: !0
|
|
1800
1807
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
@@ -1803,10 +1810,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1803
1810
|
stroke: t.color,
|
|
1804
1811
|
size: e.value.legendIconSize
|
|
1805
1812
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1806
|
-
|
|
1813
|
+
$("span", {
|
|
1807
1814
|
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1808
1815
|
}, U(t.name), 5),
|
|
1809
|
-
|
|
1816
|
+
$("span", {
|
|
1810
1817
|
style: B(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1811
1818
|
}, U(_.value.includes(t.id) ? "-" : s(ie)(
|
|
1812
1819
|
e.value.formatter,
|
|
@@ -1835,14 +1842,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1835
1842
|
})) + ") ", 5))
|
|
1836
1843
|
], 64))
|
|
1837
1844
|
], 12, ko))), 256)) : m("", !0),
|
|
1838
|
-
|
|
1845
|
+
C.value === A.LINE ? (o(!0), n(x, { key: 1 }, T(c.value.legend, (t, l) => (o(), n("div", {
|
|
1839
1846
|
class: "vue-ui-quick-chart-legend-item",
|
|
1840
1847
|
onClick: (u) => {
|
|
1841
1848
|
Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
|
|
1842
1849
|
},
|
|
1843
1850
|
style: B(`cursor: ${c.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1844
1851
|
}, [
|
|
1845
|
-
e.value.useCustomLegend ?
|
|
1852
|
+
e.value.useCustomLegend ? H(a.$slots, "legend", nt({
|
|
1846
1853
|
key: 0,
|
|
1847
1854
|
ref_for: !0
|
|
1848
1855
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
@@ -1851,19 +1858,19 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1851
1858
|
stroke: t.color,
|
|
1852
1859
|
size: e.value.legendIconSize
|
|
1853
1860
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1854
|
-
|
|
1861
|
+
$("span", {
|
|
1855
1862
|
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1856
1863
|
}, U(t.name), 5)
|
|
1857
1864
|
], 64))
|
|
1858
1865
|
], 12, bo))), 256)) : m("", !0),
|
|
1859
|
-
|
|
1866
|
+
C.value === A.BAR ? (o(!0), n(x, { key: 2 }, T(v.value.legend, (t, l) => (o(), n("div", {
|
|
1860
1867
|
class: "vue-ui-quick-chart-legend-item",
|
|
1861
1868
|
onClick: (u) => {
|
|
1862
1869
|
Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
|
|
1863
1870
|
},
|
|
1864
1871
|
style: B(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${_.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1865
1872
|
}, [
|
|
1866
|
-
e.value.useCustomLegend ?
|
|
1873
|
+
e.value.useCustomLegend ? H(a.$slots, "legend", nt({
|
|
1867
1874
|
key: 0,
|
|
1868
1875
|
ref_for: !0
|
|
1869
1876
|
}, { legend: t }), void 0, !0) : (o(), n(x, { key: 1 }, [
|
|
@@ -1872,7 +1879,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1872
1879
|
stroke: t.color,
|
|
1873
1880
|
size: e.value.legendIconSize
|
|
1874
1881
|
}, null, 8, ["name", "stroke", "size"]),
|
|
1875
|
-
|
|
1882
|
+
$("span", {
|
|
1876
1883
|
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1877
1884
|
}, U(t.name), 5)
|
|
1878
1885
|
], 64))
|
|
@@ -1885,7 +1892,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1885
1892
|
ref: ct,
|
|
1886
1893
|
dir: "auto"
|
|
1887
1894
|
}, [
|
|
1888
|
-
|
|
1895
|
+
H(a.$slots, "source", {}, void 0, !0)
|
|
1889
1896
|
], 512)) : m("", !0),
|
|
1890
1897
|
be(s(Se), {
|
|
1891
1898
|
show: ye.value.showTooltip && ce.value,
|
|
@@ -1907,11 +1914,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1907
1914
|
smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
|
|
1908
1915
|
backdropFilter: e.value.tooltipBackdropFilter
|
|
1909
1916
|
}, {
|
|
1910
|
-
"tooltip-before":
|
|
1911
|
-
|
|
1917
|
+
"tooltip-before": ae(() => [
|
|
1918
|
+
H(a.$slots, "tooltip-before", me(ge({ ...we.value })), void 0, !0)
|
|
1912
1919
|
]),
|
|
1913
|
-
"tooltip-after":
|
|
1914
|
-
|
|
1920
|
+
"tooltip-after": ae(() => [
|
|
1921
|
+
H(a.$slots, "tooltip-after", me(ge({ ...we.value })), void 0, !0)
|
|
1915
1922
|
]),
|
|
1916
1923
|
_: 3
|
|
1917
1924
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
@@ -1921,10 +1928,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1921
1928
|
name: "circleCancel",
|
|
1922
1929
|
stroke: "red"
|
|
1923
1930
|
}),
|
|
1924
|
-
r[5] || (r[5] =
|
|
1931
|
+
r[5] || (r[5] = $("span", null, "Dataset is not processable", -1))
|
|
1925
1932
|
]));
|
|
1926
1933
|
}
|
|
1927
|
-
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-
|
|
1934
|
+
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-3c6f78c8"]]);
|
|
1928
1935
|
export {
|
|
1929
1936
|
Bo as default
|
|
1930
1937
|
};
|