vue-data-ui 3.23.1 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, Bt as n, D as r, G as i, Jt as a, Kt as o, Pt as s, S as ee, Tt as te, Vt as ne, X as c, _t as re, ct as ie, i as l, jt as ae, q as oe, r as se, t as ce, tt as le, w as ue, xt as de } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as me } from "./useConfig-
|
|
4
|
+
import { t as me } from "./useConfig-DlNpz6P8.js";
|
|
5
5
|
import { t as he } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ve } from "./
|
|
8
|
-
import { t as ye } from "./
|
|
9
|
-
import { t as be } from "./
|
|
7
|
+
import { t as ve } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as be } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as xe } from "./img-Bnokohej.js";
|
|
11
11
|
import { n as Se } from "./Title-BE3qg9xl.js";
|
|
12
12
|
import { t as Ce } from "./Shape-C21CMlWS.js";
|
|
@@ -224,17 +224,17 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
224
224
|
"copyAlt"
|
|
225
225
|
],
|
|
226
226
|
setup(e, { expose: we, emit: Ke }) {
|
|
227
|
-
let en = g(() => import("./Tooltip-DhjyfHwz.js")), tn = g(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), nn = g(() => import("./vue-ui-accordion-
|
|
227
|
+
let en = g(() => import("./Tooltip-DhjyfHwz.js")), tn = g(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), nn = g(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), rn = g(() => import("./DataTable-BbKgJ5UI.js")), an = g(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), on = g(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), sn = g(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), cn = g(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_quadrant: ln } = me(), { isThemeValid: un, warnInvalidTheme: dn } = ye(), O = e, fn = d(() => !!O.dataset && O.dataset.length), k = S(oe()), pn = Ke, mn = S(!1), hn = S(""), gn = S(0), A = S(!1), j = S(null), _n = S(null), vn = S(null), yn = S(null), bn = S(null), xn = S(0), Sn = S(0), Cn = S(0), wn = S(!1), Tn = S(null), En = S(null), M = S(null), Dn = S(null), On = S({
|
|
228
228
|
x: 0,
|
|
229
229
|
y: 0
|
|
230
|
-
}),
|
|
230
|
+
}), kn = S("pointer"), An = S(!1), N = S(Ln());
|
|
231
231
|
fe({
|
|
232
232
|
config: () => N.value,
|
|
233
233
|
dataset: () => O.dataset,
|
|
234
234
|
component: "VueUiQuadrant",
|
|
235
235
|
rules: [pe.emptyArray, pe.noHint]
|
|
236
236
|
});
|
|
237
|
-
let P = d(() => N.value.userOptions.useCursorPointer),
|
|
237
|
+
let P = d(() => N.value.userOptions.useCursorPointer), jn = d(() => ({
|
|
238
238
|
defaultConfig: {
|
|
239
239
|
userOptions: { show: !1 },
|
|
240
240
|
table: { show: !1 },
|
|
@@ -261,10 +261,10 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
261
261
|
} }
|
|
262
262
|
},
|
|
263
263
|
userConfig: N.value.skeletonConfig ?? {}
|
|
264
|
-
})), { loading:
|
|
264
|
+
})), { loading: Mn, FINAL_DATASET: Nn } = ge({
|
|
265
265
|
...We(O),
|
|
266
266
|
FINAL_CONFIG: N,
|
|
267
|
-
prepareConfig:
|
|
267
|
+
prepareConfig: Ln,
|
|
268
268
|
callback: () => {
|
|
269
269
|
Promise.resolve().then(async () => {
|
|
270
270
|
await ze(), R.value.showTable = N.value.table.show;
|
|
@@ -344,20 +344,20 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
344
344
|
}],
|
|
345
345
|
skeletonConfig: a({
|
|
346
346
|
defaultConfig: N.value,
|
|
347
|
-
userConfig:
|
|
347
|
+
userConfig: jn.value
|
|
348
348
|
})
|
|
349
|
-
}), { userOptionsVisible:
|
|
350
|
-
function
|
|
351
|
-
let e =
|
|
349
|
+
}), { userOptionsVisible: Pn, setUserOptionsVisibility: Fn, keepUserOptionState: In } = Ae({ config: N.value }), { svgRef: F } = je({ config: N.value.style.chart.title });
|
|
350
|
+
function Ln() {
|
|
351
|
+
let e = ve({
|
|
352
352
|
userConfig: O.config,
|
|
353
353
|
defaultConfig: ln
|
|
354
354
|
}), t = e.theme;
|
|
355
355
|
if (!t) return e;
|
|
356
356
|
if (!un.value(e)) return dn(e), e;
|
|
357
|
-
let n =
|
|
357
|
+
let n = ve({
|
|
358
358
|
userConfig: Ne[t] || O.config,
|
|
359
359
|
defaultConfig: e
|
|
360
|
-
}), r =
|
|
360
|
+
}), r = ve({
|
|
361
361
|
userConfig: O.config,
|
|
362
362
|
defaultConfig: n
|
|
363
363
|
});
|
|
@@ -367,35 +367,32 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
Ge(() => O.config, (e) => {
|
|
370
|
-
N.value =
|
|
370
|
+
N.value = Ln(), Pn.value = !N.value.userOptions.showOnChartHover, zn(), xn.value += 1, Sn.value += 1, Cn.value += 1, R.value.plotLabels.show = N.value.style.chart.layout.labels.plotLabels.show, R.value.showTable = N.value.table.show, R.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
371
371
|
}, { deep: !0 });
|
|
372
|
-
let I = Ue(null), L = Ue(null),
|
|
373
|
-
function
|
|
372
|
+
let I = Ue(null), L = Ue(null), Rn = d(() => N.value.debug);
|
|
373
|
+
function zn() {
|
|
374
374
|
if (ae(O.dataset) ? le({
|
|
375
375
|
componentName: "VueUiQuadrant",
|
|
376
376
|
type: "dataset",
|
|
377
|
-
debug:
|
|
378
|
-
}) : O.dataset.forEach((e, t) => {
|
|
377
|
+
debug: Rn.value
|
|
378
|
+
}) : Rn.value && O.dataset.forEach((e, t) => {
|
|
379
379
|
[null, void 0].includes(e.name) && le({
|
|
380
380
|
componentName: "VueUiQuadrant",
|
|
381
381
|
type: "datasetSerieAttribute",
|
|
382
382
|
property: "name",
|
|
383
|
-
index: t
|
|
384
|
-
debug: Bn.value
|
|
383
|
+
index: t
|
|
385
384
|
}), [null, void 0].includes(e.series) ? le({
|
|
386
385
|
componentName: "VueUiQuadrant",
|
|
387
386
|
type: "datasetSerieAttribute",
|
|
388
387
|
property: "series",
|
|
389
|
-
index: t
|
|
390
|
-
debug: Bn.value
|
|
388
|
+
index: t
|
|
391
389
|
}) : e.series.forEach((e, t) => {
|
|
392
390
|
[null, void 0].includes(e.name) && le({
|
|
393
391
|
componentName: "VueUiQuadrant",
|
|
394
392
|
type: "datasetSerieAttribute",
|
|
395
393
|
property: "name",
|
|
396
394
|
key: "series",
|
|
397
|
-
index: t
|
|
398
|
-
debug: Bn.value
|
|
395
|
+
index: t
|
|
399
396
|
});
|
|
400
397
|
});
|
|
401
398
|
}), N.value.responsive) {
|
|
@@ -415,15 +412,15 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
415
412
|
}
|
|
416
413
|
}
|
|
417
414
|
Ve(() => {
|
|
418
|
-
wn.value = !0,
|
|
415
|
+
wn.value = !0, zn();
|
|
419
416
|
}), Be(() => {
|
|
420
417
|
I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
|
|
421
418
|
});
|
|
422
|
-
let { isPrinting:
|
|
419
|
+
let { isPrinting: Bn, isImaging: Vn, generatePdf: Hn, generateImage: Un } = he({
|
|
423
420
|
elementId: `vue-ui-quadrant_${k.value}`,
|
|
424
421
|
fileName: N.value.style.chart.title.text || "vue-ui-quadrant",
|
|
425
422
|
options: N.value.userOptions.print
|
|
426
|
-
}),
|
|
423
|
+
}), Wn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Gn = d(() => ue(N.value.customPalette)), R = S({
|
|
427
424
|
plotLabels: { show: N.value.style.chart.layout.labels.plotLabels.show },
|
|
428
425
|
showTable: N.value.table.show,
|
|
429
426
|
showTooltip: N.value.style.chart.tooltip.show
|
|
@@ -494,9 +491,9 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
494
491
|
bold: !1
|
|
495
492
|
};
|
|
496
493
|
}
|
|
497
|
-
}),
|
|
498
|
-
function
|
|
499
|
-
H.value &&
|
|
494
|
+
}), Kn = S(null), qn = S(!1);
|
|
495
|
+
function Jn({ targetX: e, targetY: t, targetW: n, targetH: r, side: i }) {
|
|
496
|
+
H.value && _r(i);
|
|
500
497
|
let a = {
|
|
501
498
|
x: e - V.value.startX,
|
|
502
499
|
y: t - V.value.startY,
|
|
@@ -504,13 +501,13 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
504
501
|
h: r - V.value.height
|
|
505
502
|
}, o = N.value.zoomAnimationFrames, s = 0;
|
|
506
503
|
function ee() {
|
|
507
|
-
|
|
504
|
+
qn.value = !0, V.value.startX += a.x / o, V.value.startY += a.y / o, V.value.width += a.w / o, V.value.height += a.h / o, s += 1, s < o ? Kn.value = requestAnimationFrame(ee) : qn.value = !1;
|
|
508
505
|
}
|
|
509
506
|
ee();
|
|
510
507
|
}
|
|
511
508
|
let W = d(() => N.value.zoomEnabled);
|
|
512
509
|
function G(e) {
|
|
513
|
-
if (W.value && !
|
|
510
|
+
if (W.value && !qn.value) if (A.value && H.value === e) Jn({
|
|
514
511
|
targetX: 0,
|
|
515
512
|
targetY: 0,
|
|
516
513
|
targetW: B.value.width,
|
|
@@ -519,7 +516,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
519
516
|
else {
|
|
520
517
|
switch (H.value = e, e) {
|
|
521
518
|
case "TL":
|
|
522
|
-
|
|
519
|
+
Jn({
|
|
523
520
|
targetX: 0,
|
|
524
521
|
targetY: 0,
|
|
525
522
|
targetW: B.value.width / 2 + B.value.left,
|
|
@@ -528,7 +525,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
528
525
|
});
|
|
529
526
|
break;
|
|
530
527
|
case "TR":
|
|
531
|
-
|
|
528
|
+
Jn({
|
|
532
529
|
targetX: B.value.width / 2 - B.value.left,
|
|
533
530
|
targetY: 0,
|
|
534
531
|
targetW: B.value.width / 2 + B.value.left,
|
|
@@ -537,7 +534,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
537
534
|
});
|
|
538
535
|
break;
|
|
539
536
|
case "BR":
|
|
540
|
-
|
|
537
|
+
Jn({
|
|
541
538
|
targetX: B.value.width / 2 - B.value.left,
|
|
542
539
|
targetY: B.value.height / 2 - B.value.top,
|
|
543
540
|
targetW: B.value.width / 2 + B.value.left,
|
|
@@ -546,7 +543,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
546
543
|
});
|
|
547
544
|
break;
|
|
548
545
|
case "BL":
|
|
549
|
-
|
|
546
|
+
Jn({
|
|
550
547
|
targetX: 0,
|
|
551
548
|
targetY: B.value.height / 2 - B.value.top,
|
|
552
549
|
targetW: B.value.width / 2 + B.value.left,
|
|
@@ -559,7 +556,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
559
556
|
A.value = !0;
|
|
560
557
|
}
|
|
561
558
|
}
|
|
562
|
-
let
|
|
559
|
+
let Yn = d(() => {
|
|
563
560
|
let e = N.value.style.chart.layout.grid.graduations.steps, t = B.value.usableWidth / (e * 2), n = B.value.top, r = [];
|
|
564
561
|
for (let i = 0; i < e; i += 1) r.push({
|
|
565
562
|
x: B.value.padding + t * i,
|
|
@@ -571,7 +568,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
571
568
|
return r;
|
|
572
569
|
}), K = d(() => {
|
|
573
570
|
let e = N.value.style.chart.layout.grid.xAxis.max, t = N.value.style.chart.layout.grid.xAxis.min, n = N.value.style.chart.layout.grid.yAxis.max, r = N.value.style.chart.layout.grid.yAxis.min;
|
|
574
|
-
return N.value.style.chart.layout.grid.xAxis.auto && (e = Math.max(...
|
|
571
|
+
return N.value.style.chart.layout.grid.xAxis.auto && (e = Math.max(...Xn.value.flatMap((e) => e.series.map((e) => e.x))), t = Math.min(...Xn.value.flatMap((e) => e.series.map((e) => e.x)))), N.value.style.chart.layout.grid.yAxis.auto && (n = Math.max(...Xn.value.flatMap((e) => e.series.map((e) => e.y))), r = Math.min(...Xn.value.flatMap((e) => e.series.map((e) => e.y)))), {
|
|
575
572
|
x: {
|
|
576
573
|
max: e,
|
|
577
574
|
min: t
|
|
@@ -581,24 +578,24 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
581
578
|
min: r
|
|
582
579
|
}
|
|
583
580
|
};
|
|
584
|
-
}), q = S([]),
|
|
581
|
+
}), q = S([]), Xn = d(() => Nn.value.map((e, t) => ({
|
|
585
582
|
...e,
|
|
586
583
|
series: te({
|
|
587
584
|
data: e.series,
|
|
588
585
|
threshold: N.value.downsample.threshold
|
|
589
586
|
}),
|
|
590
587
|
id: `cat_${t}_${k.value}`,
|
|
591
|
-
color: ee(e.color) ||
|
|
592
|
-
}))),
|
|
588
|
+
color: ee(e.color) || Gn.value[t] || s[t]
|
|
589
|
+
}))), Zn = d(() => Xn.value.filter((e) => !q.value.includes(e.id))), Qn = d(() => Xn.value.map((e, t) => ({
|
|
593
590
|
...e,
|
|
594
591
|
shape: e.shape || "circle",
|
|
595
592
|
series: e.series.map((t) => ({
|
|
596
593
|
...t,
|
|
597
|
-
x:
|
|
598
|
-
y:
|
|
594
|
+
x: $n(t.x),
|
|
595
|
+
y: er(t.y),
|
|
599
596
|
xValue: t.x,
|
|
600
597
|
yValue: t.y,
|
|
601
|
-
quadrantSide:
|
|
598
|
+
quadrantSide: lr({
|
|
602
599
|
x: t.x,
|
|
603
600
|
y: t.y
|
|
604
601
|
}),
|
|
@@ -607,36 +604,34 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
607
604
|
shape: e.shape,
|
|
608
605
|
color: e.color
|
|
609
606
|
}))
|
|
610
|
-
}))), J = d(() => (
|
|
607
|
+
}))), J = d(() => (Rn.value && Nn.value.forEach((e, t) => {
|
|
611
608
|
e.series.forEach((e, t) => {
|
|
612
609
|
[null, void 0].includes(e.x) && le({
|
|
613
610
|
componentName: "VueUiQuadrant",
|
|
614
611
|
type: "datasetSerieAttribute",
|
|
615
612
|
property: "x",
|
|
616
613
|
key: "series",
|
|
617
|
-
index: t
|
|
618
|
-
debug: Bn.value
|
|
614
|
+
index: t
|
|
619
615
|
}), [null, void 0].includes(e.y) && le({
|
|
620
616
|
componentName: "VueUiQuadrant",
|
|
621
617
|
type: "datasetSerieAttribute",
|
|
622
618
|
property: "y",
|
|
623
619
|
key: "series",
|
|
624
|
-
index: t
|
|
625
|
-
debug: Bn.value
|
|
620
|
+
index: t
|
|
626
621
|
});
|
|
627
622
|
});
|
|
628
|
-
}),
|
|
623
|
+
}), Zn.value.map((e, t) => ({
|
|
629
624
|
...e,
|
|
630
625
|
shape: e.shape || "circle",
|
|
631
|
-
color: e.color ||
|
|
626
|
+
color: e.color || Gn.value[t] || s[t],
|
|
632
627
|
series: e.series.map((t) => ({
|
|
633
628
|
...t,
|
|
634
629
|
category: e,
|
|
635
|
-
x:
|
|
636
|
-
y:
|
|
630
|
+
x: $n(t.x),
|
|
631
|
+
y: er(t.y),
|
|
637
632
|
xValue: t.x,
|
|
638
633
|
yValue: t.y,
|
|
639
|
-
quadrantSide:
|
|
634
|
+
quadrantSide: lr({
|
|
640
635
|
x: t.x,
|
|
641
636
|
y: t.y
|
|
642
637
|
}),
|
|
@@ -646,7 +641,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
646
641
|
uid: oe()
|
|
647
642
|
}))
|
|
648
643
|
}))));
|
|
649
|
-
function
|
|
644
|
+
function $n(e) {
|
|
650
645
|
if (e >= 0) {
|
|
651
646
|
let t = e / K.value.x.max;
|
|
652
647
|
return B.value.centerX + B.value.usableWidth / 2 * t;
|
|
@@ -656,7 +651,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
656
651
|
return B.value.centerX - B.value.usableWidth / 2 * t;
|
|
657
652
|
}
|
|
658
653
|
}
|
|
659
|
-
function
|
|
654
|
+
function er(e) {
|
|
660
655
|
if (e >= 0) {
|
|
661
656
|
let t = e / K.value.y.max;
|
|
662
657
|
return B.value.centerY + (1 - B.value.usableHeight / 2 * t);
|
|
@@ -666,7 +661,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
666
661
|
return B.value.centerY - (1 - B.value.usableHeight / 2 * t);
|
|
667
662
|
}
|
|
668
663
|
}
|
|
669
|
-
let
|
|
664
|
+
let tr = d(() => {
|
|
670
665
|
let e = J.value.flatMap((e) => e.series.map((t) => ({
|
|
671
666
|
x: t.xValue,
|
|
672
667
|
y: t.yValue,
|
|
@@ -698,8 +693,8 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
698
693
|
})),
|
|
699
694
|
tableData: e
|
|
700
695
|
};
|
|
701
|
-
}),
|
|
702
|
-
let e =
|
|
696
|
+
}), nr = d(() => {
|
|
697
|
+
let e = tr.value.head, t = tr.value.tableData.map((e) => [
|
|
703
698
|
{
|
|
704
699
|
shape: e.shape,
|
|
705
700
|
color: e.color,
|
|
@@ -736,35 +731,35 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
736
731
|
colNames: e
|
|
737
732
|
};
|
|
738
733
|
});
|
|
739
|
-
function
|
|
734
|
+
function rr() {
|
|
740
735
|
q.value.length ? q.value = [] : Y.value.forEach((e) => {
|
|
741
736
|
q.value.push(e.id);
|
|
742
|
-
}), pn("selectLegend",
|
|
737
|
+
}), pn("selectLegend", vr());
|
|
743
738
|
}
|
|
744
|
-
function
|
|
745
|
-
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.push(e), pn("selectLegend",
|
|
739
|
+
function ir(e) {
|
|
740
|
+
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.push(e), pn("selectLegend", vr());
|
|
746
741
|
}
|
|
747
|
-
let Y = d(() =>
|
|
742
|
+
let Y = d(() => Qn.value.map((e) => ({
|
|
748
743
|
name: e.name,
|
|
749
744
|
shape: e.shape,
|
|
750
745
|
color: e.color,
|
|
751
746
|
id: e.id,
|
|
752
747
|
opacity: q.value.includes(e.id) ? .5 : 1,
|
|
753
|
-
segregate: () =>
|
|
748
|
+
segregate: () => ir(e.id),
|
|
754
749
|
isSegregated: q.value.includes(e.id)
|
|
755
750
|
})));
|
|
756
|
-
function
|
|
757
|
-
return Y.value.length ? Y.value.find((t) => t.name === e) || (
|
|
751
|
+
function ar(e) {
|
|
752
|
+
return Y.value.length ? Y.value.find((t) => t.name === e) || (Rn.value && console.warn(`VueUiQuadrant - Series name not found "${e}"`), null) : (Rn.value && console.warn("VueUiQuadrant - There are no series to show."), null);
|
|
758
753
|
}
|
|
759
|
-
function
|
|
760
|
-
let t =
|
|
761
|
-
t !== null && q.value.includes(t.id) &&
|
|
754
|
+
function or(e) {
|
|
755
|
+
let t = ar(e);
|
|
756
|
+
t !== null && q.value.includes(t.id) && ir(t.id);
|
|
762
757
|
}
|
|
763
|
-
function
|
|
764
|
-
let t =
|
|
765
|
-
t !== null && (q.value.includes(t.id) ||
|
|
758
|
+
function sr(e) {
|
|
759
|
+
let t = ar(e);
|
|
760
|
+
t !== null && (q.value.includes(t.id) || ir(t.id));
|
|
766
761
|
}
|
|
767
|
-
let
|
|
762
|
+
let cr = d(() => ({
|
|
768
763
|
cy: "quadrant-div-legend",
|
|
769
764
|
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
770
765
|
color: N.value.style.chart.legend.color,
|
|
@@ -772,7 +767,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
772
767
|
paddingBottom: 12,
|
|
773
768
|
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
774
769
|
}));
|
|
775
|
-
function
|
|
770
|
+
function lr(e) {
|
|
776
771
|
switch (!0) {
|
|
777
772
|
case e.x >= 0 && e.y >= 0: return "tr";
|
|
778
773
|
case e.x >= 0 && e.y < 0: return "br";
|
|
@@ -781,28 +776,28 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
781
776
|
default: return "";
|
|
782
777
|
}
|
|
783
778
|
}
|
|
784
|
-
let X = S(null),
|
|
785
|
-
function
|
|
786
|
-
X.value = null,
|
|
779
|
+
let X = S(null), ur = S(null), dr = S(null);
|
|
780
|
+
function fr() {
|
|
781
|
+
X.value = null, ur.value = null, M.value = null, Dn.value = null, mn.value = !1;
|
|
787
782
|
}
|
|
788
|
-
function
|
|
783
|
+
function pr(e) {
|
|
789
784
|
if (!F.value || !e) return;
|
|
790
785
|
let t = `[data-a11y-plot-id="${e}"]`, n = F.value.querySelector(t);
|
|
791
786
|
if (!n) return;
|
|
792
787
|
let r = n.getBoundingClientRect();
|
|
793
|
-
|
|
788
|
+
On.value = {
|
|
794
789
|
x: r.left + r.width / 2,
|
|
795
790
|
y: r.top + r.height / 2
|
|
796
791
|
};
|
|
797
792
|
}
|
|
798
|
-
function
|
|
793
|
+
function mr(e, t, n, r = "pointer", i = null) {
|
|
799
794
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
800
795
|
datapoint: t,
|
|
801
796
|
seriesIndex: n
|
|
802
|
-
}), X.value = t.uid,
|
|
797
|
+
}), X.value = t.uid, ur.value = {
|
|
803
798
|
color: e.color,
|
|
804
799
|
shape: e.shape
|
|
805
|
-
},
|
|
800
|
+
}, kn.value = r, M.value = i, Dn.value = t.uid, dr.value = {
|
|
806
801
|
datapoint: t,
|
|
807
802
|
seriesIndex: n,
|
|
808
803
|
series: J.value,
|
|
@@ -839,16 +834,16 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
839
834
|
})}</b></div>`, hn.value = `<div style="text-align:left;font-size:${N.value.style.chart.tooltip.fontSize}px">${r}</div>`;
|
|
840
835
|
}
|
|
841
836
|
r === "keyboard" && ze(() => {
|
|
842
|
-
|
|
837
|
+
pr(t.uid);
|
|
843
838
|
}), mn.value = !0;
|
|
844
839
|
}
|
|
845
|
-
function
|
|
840
|
+
function hr(e, t) {
|
|
846
841
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
847
842
|
datapoint: e,
|
|
848
843
|
seriesIndex: t
|
|
849
|
-
}), (
|
|
844
|
+
}), (Dn.value !== e.uid || kn.value !== "keyboard") && (mn.value = !1, X.value = null, ur.value = null);
|
|
850
845
|
}
|
|
851
|
-
function
|
|
846
|
+
function gr(e, t, n) {
|
|
852
847
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
853
848
|
datapoint: t,
|
|
854
849
|
seriesIndex: n
|
|
@@ -864,7 +859,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
864
859
|
};
|
|
865
860
|
pn("selectPlot", r);
|
|
866
861
|
}
|
|
867
|
-
function
|
|
862
|
+
function _r(e) {
|
|
868
863
|
if (!e) return;
|
|
869
864
|
let t = J.value.flatMap((t) => t.series.filter((t) => t.quadrantSide === e).map((e) => ({
|
|
870
865
|
category: e.categoryName,
|
|
@@ -984,7 +979,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
984
979
|
}
|
|
985
980
|
}
|
|
986
981
|
}));
|
|
987
|
-
function
|
|
982
|
+
function vr() {
|
|
988
983
|
return J.value.map((e) => ({
|
|
989
984
|
color: e.color,
|
|
990
985
|
name: e.name,
|
|
@@ -998,13 +993,13 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
998
993
|
}))
|
|
999
994
|
}));
|
|
1000
995
|
}
|
|
1001
|
-
function
|
|
996
|
+
function yr(e = null) {
|
|
1002
997
|
ze(() => {
|
|
1003
998
|
let n = [
|
|
1004
999
|
[N.value.style.chart.title.text],
|
|
1005
1000
|
[N.value.style.chart.title.subtitle.text],
|
|
1006
1001
|
[""]
|
|
1007
|
-
], i =
|
|
1002
|
+
], i = tr.value.head, a = tr.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1008
1003
|
e ? e(s) : t({
|
|
1009
1004
|
csvContent: s,
|
|
1010
1005
|
title: N.value.style.chart.title.text || "vue-ui-quadrant"
|
|
@@ -1012,23 +1007,23 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1012
1007
|
});
|
|
1013
1008
|
}
|
|
1014
1009
|
let Q = S(!1);
|
|
1015
|
-
function
|
|
1010
|
+
function br(e) {
|
|
1016
1011
|
Q.value = e, gn.value += 1;
|
|
1017
1012
|
}
|
|
1018
|
-
function
|
|
1013
|
+
function xr() {
|
|
1019
1014
|
R.value.showTable = !R.value.showTable;
|
|
1020
1015
|
}
|
|
1021
|
-
function
|
|
1016
|
+
function Sr() {
|
|
1022
1017
|
R.value.plotLabels.show = !R.value.plotLabels.show;
|
|
1023
1018
|
}
|
|
1024
|
-
function
|
|
1019
|
+
function Cr() {
|
|
1025
1020
|
R.value.showTooltip = !R.value.showTooltip;
|
|
1026
1021
|
}
|
|
1027
|
-
let
|
|
1028
|
-
function
|
|
1029
|
-
|
|
1022
|
+
let wr = S(!1);
|
|
1023
|
+
function Tr() {
|
|
1024
|
+
wr.value = !wr.value;
|
|
1030
1025
|
}
|
|
1031
|
-
async function
|
|
1026
|
+
async function Er({ scale: e = 2 } = {}) {
|
|
1032
1027
|
if (!j.value) return;
|
|
1033
1028
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
1034
1029
|
domElement: j.value,
|
|
@@ -1045,7 +1040,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1045
1040
|
aspectRatio: r
|
|
1046
1041
|
};
|
|
1047
1042
|
}
|
|
1048
|
-
let
|
|
1043
|
+
let Dr = d(() => {
|
|
1049
1044
|
let e = N.value.table.useDialog && !N.value.table.show, t = R.value.showTable;
|
|
1050
1045
|
return {
|
|
1051
1046
|
component: e ? cn : nn,
|
|
@@ -1079,125 +1074,100 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1079
1074
|
Ge(() => R.value.showTable, (e) => {
|
|
1080
1075
|
N.value.table.show || (e && N.value.table.useDialog && Tn.value ? Tn.value.open() : "close" in Tn.value && Tn.value.close());
|
|
1081
1076
|
});
|
|
1082
|
-
function
|
|
1077
|
+
function Or() {
|
|
1083
1078
|
R.value.showTable = !1, En.value && En.value.setTableIconState(!1);
|
|
1084
1079
|
}
|
|
1085
|
-
let
|
|
1080
|
+
let kr = d(() => N.value.style.chart.backgroundColor), Ar = d(() => N.value.style.chart.legend), jr = d(() => N.value.style.chart.title), { isCallbackImaging: Mr, isCallbackSvg: Nr, generateSvg: Pr, onGenerateImage: Fr } = be({
|
|
1086
1081
|
svg: F,
|
|
1087
|
-
title:
|
|
1088
|
-
legend:
|
|
1082
|
+
title: jr,
|
|
1083
|
+
legend: Ar,
|
|
1089
1084
|
legendItems: Y,
|
|
1090
|
-
backgroundColor:
|
|
1085
|
+
backgroundColor: kr,
|
|
1086
|
+
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
1087
|
+
generateImage: Un
|
|
1091
1088
|
});
|
|
1092
|
-
async function Ir(
|
|
1093
|
-
On.value = !0, await ze();
|
|
1094
|
-
try {
|
|
1095
|
-
if (e) {
|
|
1096
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Fr();
|
|
1097
|
-
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
1098
|
-
blob: e,
|
|
1099
|
-
url: t,
|
|
1100
|
-
text: n,
|
|
1101
|
-
dataUrl: r
|
|
1102
|
-
}));
|
|
1103
|
-
} else await Promise.resolve(Pr());
|
|
1104
|
-
} finally {
|
|
1105
|
-
On.value = !1;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
function Lr(e) {
|
|
1109
|
-
if (e?.stage === "start") {
|
|
1110
|
-
Dn.value = !0;
|
|
1111
|
-
return;
|
|
1112
|
-
}
|
|
1113
|
-
if (e?.stage === "end") {
|
|
1114
|
-
Dn.value = !1;
|
|
1115
|
-
return;
|
|
1116
|
-
}
|
|
1117
|
-
Gn();
|
|
1118
|
-
}
|
|
1119
|
-
async function Rr() {
|
|
1089
|
+
async function Ir() {
|
|
1120
1090
|
if (pn("copyAlt", {
|
|
1121
1091
|
config: N.value,
|
|
1122
|
-
dataset:
|
|
1092
|
+
dataset: Zn.value
|
|
1123
1093
|
}), !N.value.userOptions.callbacks.altCopy) {
|
|
1124
1094
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1125
1095
|
return;
|
|
1126
1096
|
}
|
|
1127
1097
|
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
1128
1098
|
config: N.value,
|
|
1129
|
-
dataset:
|
|
1099
|
+
dataset: Zn.value
|
|
1130
1100
|
}));
|
|
1131
1101
|
}
|
|
1132
|
-
function
|
|
1133
|
-
M.value = null,
|
|
1102
|
+
function Lr() {
|
|
1103
|
+
M.value = null, Dn.value = null, An.value = !0;
|
|
1134
1104
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1105
|
+
function Rr() {
|
|
1106
|
+
fr(), An.value = !1;
|
|
1137
1107
|
}
|
|
1138
|
-
function
|
|
1139
|
-
if (!F.value ||
|
|
1108
|
+
function zr(e) {
|
|
1109
|
+
if (!F.value || wr.value || document.activeElement !== F.value || !$.value.length) return;
|
|
1140
1110
|
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1141
1111
|
if (!t && !n && !r && !i) return;
|
|
1142
1112
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1143
|
-
|
|
1113
|
+
fr();
|
|
1144
1114
|
return;
|
|
1145
1115
|
}
|
|
1146
1116
|
if (r) {
|
|
1147
1117
|
if (M.value === null) return;
|
|
1148
1118
|
let e = $.value[M.value];
|
|
1149
1119
|
if (!e) return;
|
|
1150
|
-
|
|
1120
|
+
gr(e.category, e.plot, e.categoryIndex);
|
|
1151
1121
|
return;
|
|
1152
1122
|
}
|
|
1153
1123
|
let a = M.value, o = X.value ? $.value.findIndex((e) => e.plot.uid === X.value) : null, s = a !== null && a >= 0 && a < $.value.length, ee = o !== null && o >= 0 && o < $.value.length;
|
|
1154
1124
|
s ? (a += n ? 1 : -1, a < 0 && (a = $.value.length - 1), a >= $.value.length && (a = 0)) : ee ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
|
|
1155
1125
|
let te = $.value[a];
|
|
1156
|
-
te &&
|
|
1126
|
+
te && mr(te.category, te.plot, te.categoryIndex, "keyboard", a);
|
|
1157
1127
|
}
|
|
1158
|
-
let
|
|
1159
|
-
headers:
|
|
1160
|
-
rows:
|
|
1128
|
+
let Br = d(() => ({
|
|
1129
|
+
headers: nr.value?.colNames ?? [],
|
|
1130
|
+
rows: nr.value?.a11yBody ?? []
|
|
1161
1131
|
})), $ = d(() => J.value.flatMap((e, t) => e.series.map((n) => ({
|
|
1162
1132
|
category: e,
|
|
1163
1133
|
plot: n,
|
|
1164
1134
|
categoryIndex: t
|
|
1165
1135
|
}))));
|
|
1166
1136
|
return we({
|
|
1167
|
-
getData:
|
|
1168
|
-
getImage:
|
|
1169
|
-
generatePdf:
|
|
1170
|
-
generateCsv:
|
|
1171
|
-
generateImage:
|
|
1172
|
-
generateSvg:
|
|
1173
|
-
hideSeries:
|
|
1174
|
-
showSeries:
|
|
1175
|
-
toggleTable:
|
|
1176
|
-
toggleLabels:
|
|
1177
|
-
toggleTooltip:
|
|
1178
|
-
toggleAnnotator:
|
|
1179
|
-
toggleFullscreen:
|
|
1180
|
-
copyAlt:
|
|
1137
|
+
getData: vr,
|
|
1138
|
+
getImage: Er,
|
|
1139
|
+
generatePdf: Hn,
|
|
1140
|
+
generateCsv: yr,
|
|
1141
|
+
generateImage: Un,
|
|
1142
|
+
generateSvg: Pr,
|
|
1143
|
+
hideSeries: sr,
|
|
1144
|
+
showSeries: or,
|
|
1145
|
+
toggleTable: xr,
|
|
1146
|
+
toggleLabels: Sr,
|
|
1147
|
+
toggleTooltip: Cr,
|
|
1148
|
+
toggleAnnotator: Tr,
|
|
1149
|
+
toggleFullscreen: br,
|
|
1150
|
+
copyAlt: Ir
|
|
1181
1151
|
}), (e, t) => (x(), m("div", {
|
|
1182
1152
|
class: v(`vue-data-ui-component vue-ui-quadrant ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1183
1153
|
ref_key: "quadrantChart",
|
|
1184
1154
|
ref: j,
|
|
1185
1155
|
id: `vue-ui-quadrant_${k.value}`,
|
|
1186
1156
|
style: b(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
|
|
1187
|
-
onMouseenter: t[14] ||= () => E(
|
|
1157
|
+
onMouseenter: t[14] ||= () => E(Fn)(!0),
|
|
1188
1158
|
onMouseleave: t[15] ||= () => {
|
|
1189
|
-
E(
|
|
1159
|
+
E(Fn)(!1), An.value || fr();
|
|
1190
1160
|
}
|
|
1191
1161
|
}, [
|
|
1192
1162
|
h("div", {
|
|
1193
1163
|
id: `chart-instructions-${k.value}`,
|
|
1194
1164
|
class: "sr-only"
|
|
1195
1165
|
}, [h("p", null, T(N.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
1196
|
-
|
|
1166
|
+
Br.value?.rows?.length ? (x(), f(ke, {
|
|
1197
1167
|
key: 0,
|
|
1198
1168
|
uid: k.value,
|
|
1199
|
-
head:
|
|
1200
|
-
body:
|
|
1169
|
+
head: Br.value.headers,
|
|
1170
|
+
body: Br.value.rows,
|
|
1201
1171
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1202
1172
|
caption: N.value.a11y.translations.tableCaption
|
|
1203
1173
|
}, null, 8, [
|
|
@@ -1212,9 +1182,9 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1212
1182
|
svgRef: E(F),
|
|
1213
1183
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1214
1184
|
color: N.value.style.chart.color,
|
|
1215
|
-
active:
|
|
1185
|
+
active: wr.value,
|
|
1216
1186
|
isCursorPointer: P.value,
|
|
1217
|
-
onClose:
|
|
1187
|
+
onClose: Tr
|
|
1218
1188
|
}, {
|
|
1219
1189
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1220
1190
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -1230,7 +1200,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1230
1200
|
"active",
|
|
1231
1201
|
"isCursorPointer"
|
|
1232
1202
|
])) : p("", !0),
|
|
1233
|
-
|
|
1203
|
+
Wn.value ? (x(), m("div", {
|
|
1234
1204
|
key: 2,
|
|
1235
1205
|
ref_key: "noTitle",
|
|
1236
1206
|
ref: bn,
|
|
@@ -1256,14 +1226,14 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1256
1226
|
}
|
|
1257
1227
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1258
1228
|
h("div", { id: `legend-top-${k.value}` }, null, 8, Ye),
|
|
1259
|
-
N.value.userOptions.show && fn.value && (E(
|
|
1229
|
+
N.value.userOptions.show && fn.value && (E(In) || E(Pn)) ? (x(), f(E(on), {
|
|
1260
1230
|
ref_key: "userOptionsRef",
|
|
1261
1231
|
ref: En,
|
|
1262
1232
|
key: `user_options_${gn.value}`,
|
|
1263
1233
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1264
1234
|
color: N.value.style.chart.color,
|
|
1265
|
-
isImaging: E(
|
|
1266
|
-
isPrinting: E(
|
|
1235
|
+
isImaging: E(Vn),
|
|
1236
|
+
isPrinting: E(Bn),
|
|
1267
1237
|
uid: k.value,
|
|
1268
1238
|
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1269
1239
|
hasPdf: N.value.userOptions.buttons.pdf,
|
|
@@ -1280,22 +1250,22 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1280
1250
|
chartElement: j.value,
|
|
1281
1251
|
position: N.value.userOptions.position,
|
|
1282
1252
|
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1283
|
-
isAnnotation:
|
|
1253
|
+
isAnnotation: wr.value,
|
|
1284
1254
|
callbacks: N.value.userOptions.callbacks,
|
|
1285
1255
|
printScale: N.value.userOptions.print.scale,
|
|
1286
1256
|
tableDialog: N.value.table.useDialog,
|
|
1287
1257
|
isCursorPointer: P.value,
|
|
1288
|
-
onToggleFullscreen:
|
|
1289
|
-
onGeneratePdf: E(
|
|
1290
|
-
onGenerateCsv:
|
|
1291
|
-
onGenerateImage:
|
|
1292
|
-
onGenerateSvg:
|
|
1293
|
-
onToggleTable:
|
|
1294
|
-
onToggleLabels:
|
|
1295
|
-
onToggleTooltip:
|
|
1296
|
-
onToggleAnnotator:
|
|
1297
|
-
onCopyAlt:
|
|
1298
|
-
style: b({ visibility: E(
|
|
1258
|
+
onToggleFullscreen: br,
|
|
1259
|
+
onGeneratePdf: E(Hn),
|
|
1260
|
+
onGenerateCsv: yr,
|
|
1261
|
+
onGenerateImage: E(Fr),
|
|
1262
|
+
onGenerateSvg: E(Pr),
|
|
1263
|
+
onToggleTable: xr,
|
|
1264
|
+
onToggleLabels: Sr,
|
|
1265
|
+
onToggleTooltip: Cr,
|
|
1266
|
+
onToggleAnnotator: Tr,
|
|
1267
|
+
onCopyAlt: Ir,
|
|
1268
|
+
style: b({ visibility: E(In) ? E(Pn) ? "visible" : "hidden" : "visible" })
|
|
1299
1269
|
}, Fe({ _: 2 }, [
|
|
1300
1270
|
e.$slots.menuIcon ? {
|
|
1301
1271
|
name: "menuIcon",
|
|
@@ -1371,7 +1341,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1371
1341
|
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1372
1342
|
key: "12"
|
|
1373
1343
|
} : void 0
|
|
1374
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
1344
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
1375
1345
|
h("div", Xe, [(x(), m("svg", {
|
|
1376
1346
|
ref_key: "svgRef",
|
|
1377
1347
|
ref: F,
|
|
@@ -1385,9 +1355,9 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1385
1355
|
style: b(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
|
|
1386
1356
|
id: `svg_${k.value}`,
|
|
1387
1357
|
tabindex: "0",
|
|
1388
|
-
onFocus:
|
|
1389
|
-
onBlur:
|
|
1390
|
-
onKeydown:
|
|
1358
|
+
onFocus: Lr,
|
|
1359
|
+
onBlur: Rr,
|
|
1360
|
+
onKeydown: zr
|
|
1391
1361
|
}, [
|
|
1392
1362
|
Le(E(sn)),
|
|
1393
1363
|
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
@@ -1417,7 +1387,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1417
1387
|
1
|
|
1418
1388
|
]]
|
|
1419
1389
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1420
|
-
N.value.style.chart.layout.grid.graduations.show ? (x(), m("g", $e, [(x(!0), m(u, null, C(
|
|
1390
|
+
N.value.style.chart.layout.grid.graduations.show ? (x(), m("g", $e, [(x(!0), m(u, null, C(Yn.value, (e) => (x(), m("rect", {
|
|
1421
1391
|
fill: N.value.style.chart.layout.grid.graduations.fill ? E(n)(N.value.style.chart.layout.grid.graduations.color, e.opacity) : "none",
|
|
1422
1392
|
x: e.x,
|
|
1423
1393
|
y: e.y,
|
|
@@ -1474,7 +1444,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1474
1444
|
fill: N.value.style.chart.layout.labels.quadrantLabels.tl.color,
|
|
1475
1445
|
"font-size": N.value.style.chart.layout.labels.quadrantLabels.tl.fontSize,
|
|
1476
1446
|
style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tl.bold ? "bold" : ""}`),
|
|
1477
|
-
onClick: t[0] ||= (e) =>
|
|
1447
|
+
onClick: t[0] ||= (e) => _r("tl")
|
|
1478
1448
|
}, T(N.value.style.chart.layout.labels.quadrantLabels.tl.text), 13, lt)) : p("", !0),
|
|
1479
1449
|
N.value.style.chart.layout.labels.quadrantLabels.tr.text ? (x(), m("text", {
|
|
1480
1450
|
key: 1,
|
|
@@ -1484,7 +1454,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1484
1454
|
fill: N.value.style.chart.layout.labels.quadrantLabels.tr.color,
|
|
1485
1455
|
"font-size": N.value.style.chart.layout.labels.quadrantLabels.tr.fontSize,
|
|
1486
1456
|
style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.tr.bold ? "bold" : ""}`),
|
|
1487
|
-
onClick: t[1] ||= (e) =>
|
|
1457
|
+
onClick: t[1] ||= (e) => _r("tr")
|
|
1488
1458
|
}, T(N.value.style.chart.layout.labels.quadrantLabels.tr.text), 13, ut)) : p("", !0),
|
|
1489
1459
|
N.value.style.chart.layout.labels.quadrantLabels.br.text ? (x(), m("text", {
|
|
1490
1460
|
key: 2,
|
|
@@ -1494,7 +1464,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1494
1464
|
fill: N.value.style.chart.layout.labels.quadrantLabels.br.color,
|
|
1495
1465
|
"font-size": N.value.style.chart.layout.labels.quadrantLabels.br.fontSize,
|
|
1496
1466
|
style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.br.bold ? "bold" : ""}`),
|
|
1497
|
-
onClick: t[2] ||= (e) =>
|
|
1467
|
+
onClick: t[2] ||= (e) => _r("br")
|
|
1498
1468
|
}, T(N.value.style.chart.layout.labels.quadrantLabels.br.text), 13, dt)) : p("", !0),
|
|
1499
1469
|
N.value.style.chart.layout.labels.quadrantLabels.bl.text ? (x(), m("text", {
|
|
1500
1470
|
key: 3,
|
|
@@ -1504,7 +1474,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1504
1474
|
fill: N.value.style.chart.layout.labels.quadrantLabels.bl.color,
|
|
1505
1475
|
"font-size": N.value.style.chart.layout.labels.quadrantLabels.bl.fontSize,
|
|
1506
1476
|
style: b(`font-weight:${N.value.style.chart.layout.labels.quadrantLabels.bl.bold ? "bold" : ""}`),
|
|
1507
|
-
onClick: t[3] ||= (e) =>
|
|
1477
|
+
onClick: t[3] ||= (e) => _r("bl")
|
|
1508
1478
|
}, T(N.value.style.chart.layout.labels.quadrantLabels.bl.text), 13, ft)) : p("", !0)
|
|
1509
1479
|
])) : p("", !0),
|
|
1510
1480
|
N.value.style.chart.layout.labels.axisLabels.show ? (x(), m("g", pt, [
|
|
@@ -1629,10 +1599,10 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1629
1599
|
width: "100",
|
|
1630
1600
|
x: n.x - 50,
|
|
1631
1601
|
y: n.y - N.value.style.chart.layout.labels.plotLabels.fontSize,
|
|
1632
|
-
onMouseover: (r) =>
|
|
1633
|
-
onMouseleave: (e) =>
|
|
1634
|
-
onClick: (r) =>
|
|
1635
|
-
}, [h("div", { style: b(`color:${E(se)(e.color)};margin: 0 auto; font-size:${N.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`) }, T(n.name), 5)], 40, Nt))), 256))], 64))), 256))])) : p("", !0)], 64)) : (x(), m(u, { key: 6 }, [(x(!0), m(u, null, C(J.value, (t, n) => (x(), m("g", null, [e.$slots.datapoint && !E(
|
|
1602
|
+
onMouseover: (r) => mr(e, n, t),
|
|
1603
|
+
onMouseleave: (e) => hr(n, t),
|
|
1604
|
+
onClick: (r) => gr(e, n, t)
|
|
1605
|
+
}, [h("div", { style: b(`color:${E(se)(e.color)};margin: 0 auto; font-size:${N.value.style.chart.layout.labels.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`) }, T(n.name), 5)], 40, Nt))), 256))], 64))), 256))])) : p("", !0)], 64)) : (x(), m(u, { key: 6 }, [(x(!0), m(u, null, C(J.value, (t, n) => (x(), m("g", null, [e.$slots.datapoint && !E(Mn) ? (x(!0), m(u, { key: 0 }, C(t.series, (r) => (x(), m("g", { key: r.uid }, [(x(), m("foreignObject", {
|
|
1636
1606
|
x: r.x - 1,
|
|
1637
1607
|
y: r.y - 1,
|
|
1638
1608
|
width: "2",
|
|
@@ -1641,14 +1611,14 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1641
1611
|
overflow: "visible",
|
|
1642
1612
|
"pointer-events": "none"
|
|
1643
1613
|
},
|
|
1644
|
-
onMouseenter: (e) =>
|
|
1645
|
-
onMouseleave: (e) =>
|
|
1646
|
-
onClick: (e) =>
|
|
1614
|
+
onMouseenter: (e) => mr(t, r, n),
|
|
1615
|
+
onMouseleave: (e) => hr(r, n),
|
|
1616
|
+
onClick: (e) => gr(t, r, n)
|
|
1647
1617
|
}, [w(e.$slots, "datapoint", Re({ ref_for: !0 }, { datapoint: {
|
|
1648
1618
|
...r,
|
|
1649
|
-
onEnter: () =>
|
|
1650
|
-
onLeave: () =>
|
|
1651
|
-
onClick: () =>
|
|
1619
|
+
onEnter: () => mr(t, r, n),
|
|
1620
|
+
onLeave: () => hr(r, n),
|
|
1621
|
+
onClick: () => gr(t, r, n),
|
|
1652
1622
|
isSelected: X.value && r.uid === X.value
|
|
1653
1623
|
} }), void 0, !0)], 40, Et)), h("circle", {
|
|
1654
1624
|
"data-a11y-plot-id": r.uid,
|
|
@@ -1657,11 +1627,11 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1657
1627
|
r: Math.max(N.value.style.chart.layout.plots.radius / (A.value ? 1.5 : 1), 10),
|
|
1658
1628
|
fill: "transparent",
|
|
1659
1629
|
style: { "pointer-events": "none" }
|
|
1660
|
-
}, null, 8, Dt)]))), 128)) : e.$slots.datapointSvg && !E(
|
|
1630
|
+
}, null, 8, Dt)]))), 128)) : e.$slots.datapointSvg && !E(Mn) ? (x(!0), m(u, { key: 1 }, C(t.series, (r) => (x(), m("g", { key: r.uid }, [w(e.$slots, "datapointSvg", Re({ ref_for: !0 }, { datapoint: {
|
|
1661
1631
|
...r,
|
|
1662
|
-
onEnter: () =>
|
|
1663
|
-
onLeave: () =>
|
|
1664
|
-
onClick: () =>
|
|
1632
|
+
onEnter: () => mr(t, r, n),
|
|
1633
|
+
onLeave: () => hr(r, n),
|
|
1634
|
+
onClick: () => gr(t, r, n),
|
|
1665
1635
|
isSelected: X.value && r.uid === X.value
|
|
1666
1636
|
} }), void 0, !0)]))), 128)) : (x(!0), m(u, { key: 2 }, C(t.series, (e, r) => (x(), m("g", { key: e.uid }, [Le(Ce, {
|
|
1667
1637
|
color: t.color,
|
|
@@ -1671,9 +1641,9 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1671
1641
|
shape: t.shape,
|
|
1672
1642
|
stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
|
|
1673
1643
|
strokeWidth: N.value.style.chart.layout.plots.outlineWidth,
|
|
1674
|
-
onMouseenter: (r) =>
|
|
1675
|
-
onMouseleave: (t) =>
|
|
1676
|
-
onClick: (r) =>
|
|
1644
|
+
onMouseenter: (r) => mr(t, e, n, "pointer"),
|
|
1645
|
+
onMouseleave: (t) => hr(e, n),
|
|
1646
|
+
onClick: (r) => gr(t, e, n)
|
|
1677
1647
|
}, null, 8, [
|
|
1678
1648
|
"color",
|
|
1679
1649
|
"isSelected",
|
|
@@ -1741,7 +1711,7 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1741
1711
|
style: { opacity: "1" }
|
|
1742
1712
|
}, null, 8, Rt)) : p("", !0)
|
|
1743
1713
|
])) : p("", !0),
|
|
1744
|
-
H.value && !
|
|
1714
|
+
H.value && !qn.value ? (x(), m("g", zt, [h("text", {
|
|
1745
1715
|
x: U.value.x,
|
|
1746
1716
|
y: U.value.y - U.value.fontSize / 1.5,
|
|
1747
1717
|
"font-size": U.value.fontSize / 1.5,
|
|
@@ -1817,14 +1787,14 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1817
1787
|
])) : p("", !0),
|
|
1818
1788
|
w(e.$slots, "svg", { svg: {
|
|
1819
1789
|
...B.value,
|
|
1820
|
-
isPrintingImg: E(
|
|
1821
|
-
isPrintingSvg:
|
|
1790
|
+
isPrintingImg: E(Bn) || E(Vn) || E(Mr),
|
|
1791
|
+
isPrintingSvg: E(Nr)
|
|
1822
1792
|
} }, void 0, !0)
|
|
1823
1793
|
], 46, Ze)), e.$slots.hint ? (x(), m("div", Jt, [w(e.$slots, "hint", y(_({
|
|
1824
1794
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1825
|
-
isVisible:
|
|
1795
|
+
isVisible: An.value
|
|
1826
1796
|
})), void 0, !0)])) : p("", !0)]),
|
|
1827
|
-
e.$slots.watermark ? (x(), m("div", Yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(
|
|
1797
|
+
e.$slots.watermark ? (x(), m("div", Yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Bn) || E(Vn) || E(Mr) || E(Nr) })), void 0, !0)])) : p("", !0),
|
|
1828
1798
|
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Xt),
|
|
1829
1799
|
wn.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Pe, {
|
|
1830
1800
|
key: 6,
|
|
@@ -1835,23 +1805,23 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1835
1805
|
}, [w(e.$slots, "legend", { legend: Y.value }, () => [N.value.style.chart.legend.show ? (x(), f(Me, {
|
|
1836
1806
|
key: `legend_${Cn.value}`,
|
|
1837
1807
|
legendSet: Y.value,
|
|
1838
|
-
config:
|
|
1808
|
+
config: cr.value,
|
|
1839
1809
|
isCursorPointer: P.value,
|
|
1840
|
-
onClickMarker: t[12] ||= ({ legend: e }) =>
|
|
1810
|
+
onClickMarker: t[12] ||= ({ legend: e }) => ir(e.id)
|
|
1841
1811
|
}, {
|
|
1842
|
-
item: D(({ legend: e }) => [E(
|
|
1812
|
+
item: D(({ legend: e }) => [E(Mn) ? p("", !0) : (x(), m("div", {
|
|
1843
1813
|
key: 0,
|
|
1844
|
-
onClick: (t) =>
|
|
1814
|
+
onClick: (t) => ir(e.id),
|
|
1845
1815
|
style: b(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
|
|
1846
1816
|
}, T(e.name), 13, Zt))]),
|
|
1847
|
-
legendToggle: D(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(
|
|
1817
|
+
legendToggle: D(() => [Y.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(Mn) ? (x(), f(Oe, {
|
|
1848
1818
|
key: 0,
|
|
1849
1819
|
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1850
1820
|
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1851
1821
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
1852
1822
|
checked: q.value.length > 0,
|
|
1853
1823
|
isCursorPointer: P.value,
|
|
1854
|
-
onToggle:
|
|
1824
|
+
onToggle: rr
|
|
1855
1825
|
}, null, 8, [
|
|
1856
1826
|
"backgroundColor",
|
|
1857
1827
|
"color",
|
|
@@ -1892,19 +1862,19 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1892
1862
|
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1893
1863
|
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1894
1864
|
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1895
|
-
isA11yMode:
|
|
1896
|
-
a11yPosition:
|
|
1865
|
+
isA11yMode: kn.value === "keyboard",
|
|
1866
|
+
a11yPosition: On.value
|
|
1897
1867
|
}, {
|
|
1898
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...
|
|
1899
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...
|
|
1900
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...
|
|
1868
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...dr.value })), void 0, !0)]),
|
|
1869
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...dr.value })), void 0, !0)]),
|
|
1870
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...dr.value })), void 0, !0)]),
|
|
1901
1871
|
default: D(() => [N.value.style.chart.tooltip.showShape ? (x(), m("svg", Qt, [Le(Ce, {
|
|
1902
1872
|
plot: {
|
|
1903
1873
|
x: 10,
|
|
1904
1874
|
y: 10
|
|
1905
1875
|
},
|
|
1906
|
-
shape:
|
|
1907
|
-
color:
|
|
1876
|
+
shape: ur.value.shape,
|
|
1877
|
+
color: ur.value.color,
|
|
1908
1878
|
radius: 8,
|
|
1909
1879
|
stroke: N.value.style.chart.layout.plots.outline ? N.value.style.chart.layout.plots.outlineColor : "none",
|
|
1910
1880
|
"stroke-width": N.value.style.chart.layout.plots.outlineWidth
|
|
@@ -1939,21 +1909,21 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1939
1909
|
"isA11yMode",
|
|
1940
1910
|
"a11yPosition"
|
|
1941
1911
|
]),
|
|
1942
|
-
fn.value && N.value.userOptions.buttons.table ? (x(), f(He(
|
|
1912
|
+
fn.value && N.value.userOptions.buttons.table ? (x(), f(He(Dr.value.component), Re({ key: 8 }, Dr.value.props, {
|
|
1943
1913
|
ref_key: "tableUnit",
|
|
1944
1914
|
ref: Tn,
|
|
1945
|
-
onClose:
|
|
1915
|
+
onClose: Or
|
|
1946
1916
|
}), Fe({
|
|
1947
1917
|
content: D(() => [(x(), f(E(rn), {
|
|
1948
1918
|
key: `table_${Sn.value}`,
|
|
1949
|
-
colNames:
|
|
1950
|
-
head:
|
|
1951
|
-
body:
|
|
1952
|
-
config:
|
|
1953
|
-
title: N.value.table.useDialog ? "" :
|
|
1919
|
+
colNames: nr.value.colNames,
|
|
1920
|
+
head: nr.value.head,
|
|
1921
|
+
body: nr.value.body,
|
|
1922
|
+
config: nr.value.config,
|
|
1923
|
+
title: N.value.table.useDialog ? "" : Dr.value.title,
|
|
1954
1924
|
withCloseButton: !N.value.table.useDialog,
|
|
1955
1925
|
isCursorPointer: P.value,
|
|
1956
|
-
onClose:
|
|
1926
|
+
onClose: Or
|
|
1957
1927
|
}, {
|
|
1958
1928
|
th: D(({ th: e }) => [Ie(T(e), 1)]),
|
|
1959
1929
|
td: D(({ td: e }) => [h("div", { innerHTML: e.name || e }, null, 8, $t)]),
|
|
@@ -1970,24 +1940,24 @@ var Ke = /* @__PURE__ */ e({ default: () => en }), qe = ["id"], Je = ["id"], Ye
|
|
|
1970
1940
|
_: 2
|
|
1971
1941
|
}, [N.value.table.useDialog ? {
|
|
1972
1942
|
name: "title",
|
|
1973
|
-
fn: D(() => [Ie(T(
|
|
1943
|
+
fn: D(() => [Ie(T(Dr.value.title), 1)]),
|
|
1974
1944
|
key: "0"
|
|
1975
1945
|
} : void 0, N.value.table.useDialog ? {
|
|
1976
1946
|
name: "actions",
|
|
1977
1947
|
fn: D(() => [h("button", {
|
|
1978
1948
|
tabindex: "0",
|
|
1979
1949
|
class: "vue-ui-user-options-button",
|
|
1980
|
-
onClick: t[13] ||= (e) =>
|
|
1950
|
+
onClick: t[13] ||= (e) => yr(N.value.userOptions.callbacks.csv),
|
|
1981
1951
|
style: b({ cursor: P.value ? "pointer" : "default" })
|
|
1982
1952
|
}, [Le(E(tn), {
|
|
1983
1953
|
name: "fileCsv",
|
|
1984
|
-
stroke:
|
|
1954
|
+
stroke: Dr.value.props.color
|
|
1985
1955
|
}, null, 8, ["stroke"])], 4)]),
|
|
1986
1956
|
key: "1"
|
|
1987
1957
|
} : void 0]), 1040)) : p("", !0),
|
|
1988
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
1958
|
+
w(e.$slots, "skeleton", {}, () => [E(Mn) ? (x(), f(_e, { key: 0 })) : p("", !0)], !0)
|
|
1989
1959
|
], 46, qe));
|
|
1990
1960
|
}
|
|
1991
|
-
}, [["__scopeId", "data-v-
|
|
1961
|
+
}, [["__scopeId", "data-v-19c0755a"]]);
|
|
1992
1962
|
//#endregion
|
|
1993
1963
|
export { Ke as n, en as t };
|