vue-data-ui 3.23.8 → 3.23.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CF0VFcBH.js → Arrow-bwmME0jw.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-DBVHlhQZ.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-B4n7br_R.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-wRhcG_-q.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-BZjzzyQo.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-B9kUMLSz.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-DMsScfkx.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-IWPfuceW.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-DWEFXq9E.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-Crs4-xWz.js} +3 -3
- package/dist/{PackageVersion-C9lXG-wa.js → PackageVersion-DNTJUKh1.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-DJ607Hx6.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAhF1ToV.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-sXtk2ZZ2.js} +2 -2
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-BE50SZQH.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-BGLPsoA9.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-DO4-MVhc.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-HQyukyl2.js} +2 -2
- package/dist/components/arrow.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-icon.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/{dom-to-png-BYIvdTe8.js → dom-to-png-Cg_3vpOo.js} +1 -1
- package/dist/{exposedLib-C0DPCgFj.js → exposedLib-vfRiIvq_.js} +1 -1
- package/dist/{img-Bnokohej.js → img-tU9mMt9W.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-C_lMnQRs.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-AT2PUyyh.js} +1 -1
- package/dist/{package-BieOvFq9.js → package-enC-Nivt.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-ColHHJFH.js} +1 -1
- package/dist/{render-common-C5vqxC-e.js → render-common-CqcoYfCA.js} +2 -2
- 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 +2 -7
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CW0vJS1B.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-BFS7d6eb.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui--BufRcn0.js → vue-data-ui-DD7J3yor.js} +69 -69
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +1829 -0
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-DJNjilyy.js} +3 -3
- package/dist/{vue-ui-age-pyramid-j6nm1rbi.js → vue-ui-age-pyramid-DI8b5E2H.js} +6 -6
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-7ZVfFskI.js} +6 -6
- package/dist/{vue-ui-bullet-CKQ35-dP.js → vue-ui-bullet-Dyd5F1Wa.js} +7 -7
- package/dist/{vue-ui-bump-BXp-EozA.js → vue-ui-bump-DzB3WQnq.js} +166 -166
- package/dist/{vue-ui-candlestick-DvvyheWp.js → vue-ui-candlestick--YWEtek_.js} +7 -7
- package/dist/{vue-ui-carousel-table-D_dEXiNd.js → vue-ui-carousel-table-Dn3RZU0p.js} +4 -4
- package/dist/{vue-ui-chestnut-eCwEo5D9.js → vue-ui-chestnut-BIsXeXiU.js} +5 -5
- package/dist/{vue-ui-chord-C6O2lzrg.js → vue-ui-chord-BimXqVsF.js} +8 -8
- package/dist/{vue-ui-circle-pack-D_nwf-RO.js → vue-ui-circle-pack-DKQEhL-L.js} +13 -16
- package/dist/{vue-ui-cursor-Bu9PM_P_.js → vue-ui-cursor-C-P2D5i6.js} +3 -3
- package/dist/{vue-ui-dag-DSx4o3Rk.js → vue-ui-dag-CThnMMWA.js} +7 -7
- package/dist/{vue-ui-dashboard-BM747fZF.js → vue-ui-dashboard-D0NNTRO3.js} +69 -69
- package/dist/{vue-ui-digits-BtvY8wIB.js → vue-ui-digits-9tGjGzZh.js} +3 -3
- package/dist/{vue-ui-donut-DQHLJR8y.js → vue-ui-donut-DLN9uPOi.js} +2 -2
- package/dist/vue-ui-donut-EZu8p7HF.js +2413 -0
- package/dist/{vue-ui-donut-evolution-PSmZvtzE.js → vue-ui-donut-evolution-mu-iGTIn.js} +9 -9
- package/dist/{vue-ui-dumbbell-CGquzMdY.js → vue-ui-dumbbell-Dvldi3Oo.js} +13 -16
- package/dist/{vue-ui-flow-9el51M_Y.js → vue-ui-flow-DYZBT5Cb.js} +13 -16
- package/dist/{vue-ui-funnel-D7Gy--C2.js → vue-ui-funnel--NaxO0cZ.js} +13 -16
- package/dist/{vue-ui-galaxy-Dxj9UwDo.js → vue-ui-galaxy-D6eYN8Ut.js} +291 -293
- package/dist/{vue-ui-gauge-Cn9YVMXf.js → vue-ui-gauge-DTIEl2Xb.js} +6 -6
- package/dist/{vue-ui-geo-BPOiMgSG.js → vue-ui-geo-CQqNemR6.js} +7 -7
- package/dist/{vue-ui-gizmo-DWHHzGBD.js → vue-ui-gizmo-ClunTUxX.js} +3 -3
- package/dist/{vue-ui-heatmap-BE1K40ib.js → vue-ui-heatmap-B_pSQNzO.js} +7 -7
- package/dist/{vue-ui-hill-Dr4UkjNJ.js → vue-ui-hill-Byp0Tnny.js} +6 -6
- package/dist/{vue-ui-history-plot-CxCKkOf0.js → vue-ui-history-plot-CMu8ST1E.js} +14 -17
- package/dist/{vue-ui-horizontal-bar-BkmnLr-i.js → vue-ui-horizontal-bar-BQn7WxQ-.js} +10 -10
- package/dist/{vue-ui-kpi-BBWW791i.js → vue-ui-kpi-BKw5t-rX.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BNm0MQDw.js} +2 -2
- package/dist/{vue-ui-molecule-CxkcMjno.js → vue-ui-molecule-DRwQV5hN.js} +232 -238
- package/dist/{vue-ui-mood-radar-C4CzuVdT.js → vue-ui-mood-radar-Bj3KTWYj.js} +298 -300
- package/dist/{vue-ui-nested-donuts-DSDJQExL.js → vue-ui-nested-donuts-83Wh2w6z.js} +15 -18
- package/dist/{vue-ui-onion-Cu0dBdFS.js → vue-ui-onion-C27GpneA.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-D_EwS2Xg.js → vue-ui-parallel-coordinate-plot-BklOszr1.js} +212 -212
- package/dist/{vue-ui-quadrant-jyEV4UXd.js → vue-ui-quadrant-_J-Qr7-K.js} +9 -9
- package/dist/{vue-ui-quick-chart-DiWQ1MyR.js → vue-ui-quick-chart-DcOUq4ym.js} +7 -7
- package/dist/{vue-ui-radar-BmgJ961A.js → vue-ui-radar-FlRlsoAd.js} +8 -8
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-eCxEZD8C.js} +2 -2
- package/dist/{vue-ui-relation-circle-DV54YMDh.js → vue-ui-relation-circle-DnsxHv7t.js} +6 -6
- package/dist/{vue-ui-ridgeline-izSLMS2A.js → vue-ui-ridgeline-TopTLyaE.js} +485 -485
- package/dist/vue-ui-rings-obVfb09j.js +1250 -0
- package/dist/{vue-ui-scatter-D_qfVTjs.js → vue-ui-scatter-BHSuA506.js} +9 -9
- package/dist/{vue-ui-skeleton-ORnWxVcQ.js → vue-ui-skeleton-CNOam3kC.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-YdyidjBH.js} +2 -2
- package/dist/{vue-ui-spark-trend-CnWD2enH.js → vue-ui-spark-trend-CS5GLtYL.js} +3 -3
- package/dist/{vue-ui-sparkbar-Cgbnebde.js → vue-ui-sparkbar-DDHwgP4k.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cvlb65Sh.js → vue-ui-sparkgauge-BcQu9V3h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BiTJ8hLF.js → vue-ui-sparkhistogram-CPsA5P6c.js} +4 -4
- package/dist/{vue-ui-sparkline-D_lUtZ0M.js → vue-ui-sparkline-CnbO-GkM.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-44IKCY9x.js → vue-ui-sparkstackbar-4tsTxMe2.js} +4 -4
- package/dist/{vue-ui-stackbar-DF3p95Bo.js → vue-ui-stackbar-2_SrMFNT.js} +575 -571
- package/dist/{vue-ui-stackline-DhKuZEnZ.js → vue-ui-stackline-BNCWO_jG.js} +612 -608
- package/dist/{vue-ui-strip-plot-C-ulifjS.js → vue-ui-strip-plot-2Y1c02Ek.js} +13 -16
- package/dist/{vue-ui-table-CpnarLaC.js → vue-ui-table-DJZxHo5N.js} +5 -5
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-BacaEjQy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Du4MfWFg.js → vue-ui-table-sparkline-B8oAU5yr.js} +4 -4
- package/dist/{vue-ui-thermometer-CrbJmWkG.js → vue-ui-thermometer-BGtxNU9T.js} +6 -6
- package/dist/{vue-ui-timer-CG_cHMLa.js → vue-ui-timer-CWZgSpP8.js} +5 -5
- package/dist/{vue-ui-tiremarks-C9op3rMU.js → vue-ui-tiremarks-LLVCPyg9.js} +6 -6
- package/dist/{vue-ui-treemap-X6xvCAx5.js → vue-ui-treemap-ehBl9JMC.js} +16 -19
- package/dist/{vue-ui-waffle-CC8t5ghD.js → vue-ui-waffle-DpBAXbhh.js} +288 -290
- package/dist/{vue-ui-wheel-qsjBqrXG.js → vue-ui-wheel-C4OHPrtC.js} +6 -6
- package/dist/{vue-ui-word-cloud-PpZeiZUt.js → vue-ui-word-cloud-CDHn3Kwa.js} +13 -16
- package/dist/{vue-ui-world-CvLyEEZQ.js → vue-ui-world-ao1xf04I.js} +13 -16
- package/dist/{vue-ui-xy-eKIptvTV.js → vue-ui-xy-DmJDCl3c.js} +2 -2
- package/dist/{vue-ui-xy-BJ96qlGZ.js → vue-ui-xy-_U3wmtCf.js} +1502 -1496
- package/dist/{vue-ui-xy-canvas-B-KxaFGF.js → vue-ui-xy-canvas-Bx-9y53V.js} +334 -330
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Dspy8rjO.js +0 -1831
- package/dist/vue-ui-donut-DtmxMF94.js +0 -2415
- package/dist/vue-ui-rings-B-vqjj5N.js +0 -1252
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Et as i, Jt as a, Kt as o, Ot as s, Pt as c, Rt as l, S as u, X as d, _ as ee, ct as te, dt as ne, i as re, jt as ie, o as ae, q as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Et as i, Jt as a, Kt as o, Ot as s, Pt as c, Rt as l, S as u, X as d, _ as ee, ct as te, dt as ne, i as re, jt as ie, o as ae, q as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-AT2PUyyh.js";
|
|
3
3
|
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { n as pe, r as me, t as he } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
5
|
import { t as ge } from "./useConfig-DwdGsXTx.js";
|
|
6
|
-
import { t as _e } from "./usePrinter-
|
|
6
|
+
import { t as _e } from "./usePrinter-BFS7d6eb.js";
|
|
7
7
|
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as be } from "./useNestedProp-
|
|
8
|
+
import { t as be } from "./useNestedProp-CW0vJS1B.js";
|
|
9
9
|
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Se } from "./img-
|
|
11
|
-
import { n as Ce } from "./Title-
|
|
10
|
+
import { t as Se } from "./img-tU9mMt9W.js";
|
|
11
|
+
import { n as Ce } from "./Title-BGLPsoA9.js";
|
|
12
12
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { a as f, c as p, i as Te, l as Ee, n as De, o as Oe, r as ke, s as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as Me } from "./BaseIcon-
|
|
15
|
-
import { t as Ne } from "./SlicerPreview-
|
|
16
|
-
import { t as Pe } from "./vue-ui-accordion-
|
|
17
|
-
import { t as Fe } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Me } from "./BaseIcon-B4n7br_R.js";
|
|
15
|
+
import { t as Ne } from "./SlicerPreview-sXtk2ZZ2.js";
|
|
16
|
+
import { t as Pe } from "./vue-ui-accordion-DJNjilyy.js";
|
|
17
|
+
import { t as Fe } from "./BaseLegendToggle-wRhcG_-q.js";
|
|
18
18
|
import { t as Ie } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as Le } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { t as Re } from "./Legend-
|
|
20
|
+
import { t as Re } from "./Legend-DWEFXq9E.js";
|
|
21
21
|
import { t as ze } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
|
|
22
22
|
import { Teleport as Be, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as Ve, createElementVNode as _, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as Ge, guardReactiveProps as v, mergeProps as Ke, nextTick as qe, normalizeClass as Je, normalizeProps as y, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as et, toRefs as tt, unref as C, useSlots as nt, watch as w, watchEffect as rt, withCtx as T } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-xy-canvas.vue
|
|
24
|
-
var it = /* @__PURE__ */ e({ default: () =>
|
|
24
|
+
var it = /* @__PURE__ */ e({ default: () => gt }), at = ["id"], ot = ["id"], st = {
|
|
25
25
|
class: "sr-only",
|
|
26
26
|
"aria-live": "polite",
|
|
27
27
|
"aria-atomic": "true"
|
|
@@ -38,7 +38,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
38
38
|
}, dt = ["id"], ft = ["onClick"], pt = {
|
|
39
39
|
key: 4,
|
|
40
40
|
class: "vue-data-ui-watermark"
|
|
41
|
-
}, mt =
|
|
41
|
+
}, mt = { key: 0 }, ht = { key: 1 }, gt = /*#__PURE__*/ we({
|
|
42
42
|
__name: "vue-ui-xy-canvas",
|
|
43
43
|
props: {
|
|
44
44
|
dataset: {
|
|
@@ -64,10 +64,10 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
64
64
|
"copyAlt"
|
|
65
65
|
],
|
|
66
66
|
setup(e, { expose: we, emit: it }) {
|
|
67
|
-
let
|
|
67
|
+
let gt = Ge(() => import("./Tooltip-DO4-MVhc.js")), _t = Ge(() => import("./DataTable-DMsScfkx.js")), vt = Ge(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), yt = Ge(() => import("./NonSvgPenAndPaper-Crs4-xWz.js")), bt = Ge(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_xy_canvas: xt } = ge(), { isThemeValid: St, warnInvalidTheme: Ct } = xe(), E = e, D = x(oe()), O = x(null), wt = x(null), k = x(null), A = x(1), j = x(1), Tt = x(!1), M = x(null), Et = x(""), Dt = x(null), N = x([]), Ot = x(1), P = x(!0), F = x(!0), kt = x(null), At = x(0), jt = x(!1), Mt = x(null), Nt = x(null), I = x(null), Pt = x(null), Ft = x(0), It = x(0), Lt = x(0), L = x(null), Rt = x(!1), zt = x(null), Bt = x(null), Vt = x(!1), Ht = x(!1), Ut = x(!1), R = x(null), Wt = x(!1), Gt = x(!1), Kt = x(!1), z = x(null), qt = x({
|
|
68
68
|
x: 0,
|
|
69
69
|
y: 0
|
|
70
|
-
}), B = m(() => Array.isArray(
|
|
70
|
+
}), B = m(() => Array.isArray(nn.value) && nn.value.length > 0), Jt = it, Yt = nt(), V = x(ln());
|
|
71
71
|
de({
|
|
72
72
|
config: () => V.value,
|
|
73
73
|
dataset: () => E.dataset,
|
|
@@ -92,21 +92,21 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
94
|
});
|
|
95
|
-
let
|
|
95
|
+
let Xt = m(() => {
|
|
96
96
|
let e = V.value.style.chart.title.text || "XY chart", t = Y.value.end - Y.value.start;
|
|
97
97
|
return `${e}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
98
|
-
}),
|
|
98
|
+
}), Zt = m(() => {
|
|
99
99
|
if (z.value === null) return "";
|
|
100
100
|
let e = z.value + Y.value.start;
|
|
101
|
-
return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text :
|
|
101
|
+
return `${V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[z.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[z.value]?.text : Qn.value[z.value]?.text : Q.value[e]?.text ?? `Point ${e + 1}`}. ${J.value.filter((e) => !N.value.includes(e.absoluteIndex)).map((e) => {
|
|
102
102
|
let t = e.series[z.value], n = t?.value ?? t ?? null;
|
|
103
103
|
return `${e.name}: ${n}`;
|
|
104
104
|
}).join(". ")}.`;
|
|
105
|
-
}),
|
|
105
|
+
}), Qt = m(() => V.value.userOptions.useCursorPointer), $t = m(() => V.value.debug);
|
|
106
106
|
Ze(() => {
|
|
107
|
-
|
|
107
|
+
Yt["chart-background"] && $t.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
108
108
|
});
|
|
109
|
-
let
|
|
109
|
+
let en = m(() => a({
|
|
110
110
|
defaultConfig: {
|
|
111
111
|
userOptions: { show: !1 },
|
|
112
112
|
table: { show: !1 },
|
|
@@ -140,10 +140,10 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
140
140
|
} }
|
|
141
141
|
},
|
|
142
142
|
userConfig: V.value.skeletonConfig ?? {}
|
|
143
|
-
})), { loading:
|
|
143
|
+
})), { loading: tn, FINAL_DATASET: nn } = ve({
|
|
144
144
|
...tt(E),
|
|
145
145
|
FINAL_CONFIG: V,
|
|
146
|
-
prepareConfig:
|
|
146
|
+
prepareConfig: ln,
|
|
147
147
|
skeletonDataset: E.config?.skeletonDataset ?? [{
|
|
148
148
|
name: "",
|
|
149
149
|
series: [
|
|
@@ -184,25 +184,25 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
184
184
|
}],
|
|
185
185
|
skeletonConfig: a({
|
|
186
186
|
defaultConfig: V.value,
|
|
187
|
-
userConfig:
|
|
187
|
+
userConfig: en.value
|
|
188
188
|
})
|
|
189
|
-
}), { userOptionsVisible:
|
|
190
|
-
function on() {
|
|
191
|
-
rn(!0);
|
|
192
|
-
}
|
|
189
|
+
}), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = Ie({ config: V.value }), { svgRef: H } = Le({ config: V.value.style.chart.title });
|
|
193
190
|
function sn() {
|
|
194
|
-
|
|
191
|
+
an(!0);
|
|
192
|
+
}
|
|
193
|
+
function cn() {
|
|
194
|
+
an(!1), Jt("selectX", {
|
|
195
195
|
dataset: null,
|
|
196
196
|
index: null,
|
|
197
197
|
indexLabel: null
|
|
198
198
|
}), M.value = null;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function ln() {
|
|
201
201
|
let e = be({
|
|
202
202
|
userConfig: E.config,
|
|
203
|
-
defaultConfig:
|
|
203
|
+
defaultConfig: xt
|
|
204
204
|
}), t = {}, n = e.theme;
|
|
205
|
-
if (n) if (!
|
|
205
|
+
if (n) if (!St.value(e)) Ct(e), t = e;
|
|
206
206
|
else {
|
|
207
207
|
let r = be({
|
|
208
208
|
userConfig: ze[n] || E.config,
|
|
@@ -223,11 +223,11 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
223
223
|
})), t;
|
|
224
224
|
}
|
|
225
225
|
w(() => E.config, (e) => {
|
|
226
|
-
|
|
226
|
+
tn.value || (V.value = ln()), rn.value = !V.value.userOptions.showOnChartHover, Tr(), Ft.value += 1, It.value += 1, Lt.value += 1, U.value.showTable = V.value.table.show, U.value.showDataLabels = V.value.style.chart.dataLabels.show, U.value.stacked = V.value.style.chart.stacked, U.value.showTooltip = V.value.style.chart.tooltip.show;
|
|
227
227
|
}, { deep: !0 }), w(() => E.dataset, async (e) => {
|
|
228
|
-
!Array.isArray(e) || e.length === 0 || (await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await
|
|
228
|
+
!Array.isArray(e) || e.length === 0 || (await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await Mn(), Vn(), Ft.value += 1, It.value += 1, Lt.value += 1);
|
|
229
229
|
}, { deep: !0 });
|
|
230
|
-
let
|
|
230
|
+
let un = x(V.value.style.chart.aspectRatio), { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = _e({
|
|
231
231
|
elementId: `xy_canvas_${D.value}`,
|
|
232
232
|
fileName: V.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
233
233
|
options: V.value.userOptions.print
|
|
@@ -237,15 +237,15 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
237
237
|
stacked: V.value.style.chart.stacked,
|
|
238
238
|
showTooltip: V.value.style.chart.tooltip.show
|
|
239
239
|
});
|
|
240
|
-
function
|
|
241
|
-
|
|
240
|
+
function hn(e) {
|
|
241
|
+
jt.value = e, At.value += 1;
|
|
242
242
|
}
|
|
243
|
-
let
|
|
244
|
-
function
|
|
243
|
+
let gn = m(() => le(V.value.customPalette)), _n = m(() => N.value.length === q.value.length), W = m(() => q.value ? Math.max(...q.value.filter((e, t) => _n.value ? !0 : !N.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
244
|
+
function vn(e) {
|
|
245
245
|
R.value = e, $();
|
|
246
246
|
}
|
|
247
|
-
let
|
|
248
|
-
function
|
|
247
|
+
let yn = x(0), bn = x(0);
|
|
248
|
+
function xn() {
|
|
249
249
|
if (!k.value || !V.value.style.chart.grid.x.timeLabels.show) return 0;
|
|
250
250
|
let e = Q.value || [], t = Y.value.start ?? 0, n = Y.value.end ?? 0;
|
|
251
251
|
if (!Math.max(0, n - t)) return 0;
|
|
@@ -260,21 +260,21 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
260
260
|
let o = (V.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = V.value.style.chart.grid.x.timeLabels.offsetY || 1, u = A.value / l;
|
|
261
261
|
return Math.max(0, u + c + 4);
|
|
262
262
|
}
|
|
263
|
-
function xn() {
|
|
264
|
-
vn.value = bn();
|
|
265
|
-
}
|
|
266
263
|
function Sn() {
|
|
267
|
-
yn.value
|
|
264
|
+
yn.value = xn();
|
|
265
|
+
}
|
|
266
|
+
function Cn() {
|
|
267
|
+
bn.value && cancelAnimationFrame(bn.value), bn.value = requestAnimationFrame(() => {
|
|
268
268
|
requestAnimationFrame(() => {
|
|
269
|
-
|
|
269
|
+
Sn();
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
Xe(() => {
|
|
274
|
-
|
|
274
|
+
bn.value && cancelAnimationFrame(bn.value);
|
|
275
275
|
});
|
|
276
276
|
let G = m(() => {
|
|
277
|
-
let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r =
|
|
277
|
+
let e = A.value - A.value * (V.value.style.chart.paddingProportions.left + V.value.style.chart.paddingProportions.right), t = j.value * V.value.style.chart.paddingProportions.top, n = j.value * V.value.style.chart.paddingProportions.bottom, r = yn.value, i = j.value - n - r, a = j.value - (t + n) - r;
|
|
278
278
|
return {
|
|
279
279
|
canvasWidth: A.value,
|
|
280
280
|
canvasHeight: j.value,
|
|
@@ -287,13 +287,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
287
287
|
slot: e / (Y.value.end - Y.value.start)
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
function
|
|
290
|
+
function wn(e, t) {
|
|
291
291
|
return e / t;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Tn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
294
294
|
return t.map((t, n) => {
|
|
295
|
-
let r = i.min < 0 ? Math.abs(i.min) : 0, c =
|
|
296
|
-
e && (l = i.min, u =
|
|
295
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, c = wn(t + r, r + i.max), l, u;
|
|
296
|
+
e && (l = i.min, u = wn(t - l, i.max - l));
|
|
297
297
|
let d = 0;
|
|
298
298
|
return d = s === null ? G.value.bottom - G.value.height * (e ? u : c) : G.value.bottom - a - o * (e ? u : c), {
|
|
299
299
|
x: G.value.left + G.value.slot * n + G.value.slot / 2,
|
|
@@ -316,7 +316,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
316
316
|
})),
|
|
317
317
|
zero: i
|
|
318
318
|
};
|
|
319
|
-
}),
|
|
319
|
+
}), En = m(() => J.value.map((e) => `
|
|
320
320
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
321
321
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
322
322
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -332,26 +332,26 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
332
332
|
seriesIndex: M.value
|
|
333
333
|
})}</span>
|
|
334
334
|
</div>
|
|
335
|
-
`)),
|
|
335
|
+
`)), Dn = m(() => V.value.style.chart.line.cutNullValues), q = m(() => nn.value.map((e, t) => ({
|
|
336
336
|
...e,
|
|
337
337
|
series: i({
|
|
338
|
-
data: l(e.series, [],
|
|
338
|
+
data: l(e.series, [], Dn.value),
|
|
339
339
|
threshold: V.value.downsample.threshold
|
|
340
340
|
}),
|
|
341
341
|
absoluteIndex: t,
|
|
342
|
-
color: u(e.color ||
|
|
343
|
-
}))),
|
|
342
|
+
color: u(e.color || gn.value[t] || c[t] || c[t % c.length])
|
|
343
|
+
}))), On = m(() => {
|
|
344
344
|
if (!V.value.style.chart.zoom.minimap.show) return [];
|
|
345
345
|
let e = q.value.filter((e) => !N.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
346
346
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
347
347
|
let r = Math.min(...n);
|
|
348
348
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
349
|
-
}),
|
|
349
|
+
}), kn = m(() => V.value.style.chart.zoom.minimap.show ? q.value.map((e) => ({
|
|
350
350
|
...e,
|
|
351
351
|
isVisible: !N.value.includes(e.absoluteIndex)
|
|
352
352
|
})) : []);
|
|
353
353
|
w(W, (e) => {
|
|
354
|
-
e &&
|
|
354
|
+
e && Mn();
|
|
355
355
|
});
|
|
356
356
|
let J = m(() => ae(q.value.filter((e, t) => !N.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
357
357
|
...e,
|
|
@@ -371,7 +371,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
371
371
|
y: G.value.bottom - s - l * (t / (o.ticks.length - 1)),
|
|
372
372
|
x: G.value.left - 8,
|
|
373
373
|
value: e
|
|
374
|
-
})), ne =
|
|
374
|
+
})), ne = Tn({
|
|
375
375
|
hasAutoScale: U.value.stacked && e.autoScaling,
|
|
376
376
|
series: e.series,
|
|
377
377
|
min: U.value.stacked ? n : K.value.min,
|
|
@@ -399,72 +399,72 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
399
399
|
}), X = x({
|
|
400
400
|
start: 0,
|
|
401
401
|
end: W.value
|
|
402
|
-
}),
|
|
403
|
-
function
|
|
402
|
+
}), An = x(null);
|
|
403
|
+
function jn() {
|
|
404
404
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
405
405
|
}
|
|
406
406
|
Xe(() => {
|
|
407
|
-
|
|
407
|
+
An.value && cancelAnimationFrame(An.value);
|
|
408
408
|
});
|
|
409
|
-
async function
|
|
410
|
-
|
|
411
|
-
await
|
|
409
|
+
async function Mn() {
|
|
410
|
+
Fn(), await qe(), An.value && cancelAnimationFrame(An.value), An.value = requestAnimationFrame(async () => {
|
|
411
|
+
await jn(), Fn();
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
let
|
|
415
|
-
function
|
|
414
|
+
let Nn = m(() => V.value.style.chart.zoom.preview.enable && (X.value.start !== Y.value.start || X.value.end !== Y.value.end));
|
|
415
|
+
function Pn(e, t) {
|
|
416
416
|
X.value[e] = t;
|
|
417
417
|
}
|
|
418
|
-
async function
|
|
419
|
-
if (!
|
|
420
|
-
|
|
418
|
+
async function Fn() {
|
|
419
|
+
if (!Vt.value) {
|
|
420
|
+
Vt.value = !0;
|
|
421
421
|
try {
|
|
422
|
-
let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(
|
|
423
|
-
|
|
422
|
+
let { startIndex: e, endIndex: t } = V.value.style.chart.zoom, n = Math.max(...q.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Rn(t + 1), n);
|
|
423
|
+
Ut.value = !0, Y.value.start = r, Y.value.end = i, X.value.start = r, X.value.end = i, zn(), Ht.value = !0, await qe(), I.value && (I.value.setStartValue(Y.value.start), I.value.setEndValue(Y.value.end));
|
|
424
424
|
} finally {
|
|
425
425
|
queueMicrotask(() => {
|
|
426
|
-
|
|
427
|
-
}),
|
|
426
|
+
Ut.value = !1;
|
|
427
|
+
}), Vt.value = !1;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
function Fn(e) {
|
|
432
|
-
Bt.value || Ht.value || e !== Y.value.start && (Y.value.start = e, X.value.start = e, Rn());
|
|
433
|
-
}
|
|
434
431
|
function In(e) {
|
|
435
|
-
|
|
436
|
-
let t = Ln(e);
|
|
437
|
-
t !== Y.value.end && (Y.value.end = t, X.value.end = t, Rn());
|
|
432
|
+
Vt.value || Ut.value || e !== Y.value.start && (Y.value.start = e, X.value.start = e, zn());
|
|
438
433
|
}
|
|
439
434
|
function Ln(e) {
|
|
435
|
+
if (Vt.value || Ut.value) return;
|
|
436
|
+
let t = Rn(e);
|
|
437
|
+
t !== Y.value.end && (Y.value.end = t, X.value.end = t, zn());
|
|
438
|
+
}
|
|
439
|
+
function Rn(e) {
|
|
440
440
|
let t = W.value;
|
|
441
441
|
return e > t ? t : e < 0 || e < Y.value.start ? V.value.style.chart.zoom.startIndex === null ? 1 : V.value.style.chart.zoom.startIndex + 1 : e;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function zn() {
|
|
444
444
|
let e = Math.max(1, Math.max(...q.value.map((e) => e.series.length))), t = Math.max(0, Math.min(Y.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(Y.value.end ?? e, e));
|
|
445
445
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), Y.value = {
|
|
446
446
|
start: t,
|
|
447
447
|
end: n
|
|
448
448
|
}, X.value.start = t, X.value.end = n, I.value && (I.value.setStartValue(t), I.value.setEndValue(n));
|
|
449
449
|
}
|
|
450
|
-
let
|
|
450
|
+
let Bn = m(() => J.value.filter((e) => [
|
|
451
451
|
"line",
|
|
452
452
|
"plot",
|
|
453
453
|
void 0
|
|
454
454
|
].includes(e.type))), Z = m(() => J.value.filter((e) => e.type === "bar"));
|
|
455
|
-
function
|
|
456
|
-
if (!H.value || !
|
|
457
|
-
let e =
|
|
458
|
-
H.value.width = e *
|
|
455
|
+
function Vn() {
|
|
456
|
+
if (!H.value || !wt.value) return;
|
|
457
|
+
let e = wt.value.offsetWidth, t = wt.value.offsetHeight;
|
|
458
|
+
H.value.width = e * Ot.value * 2, H.value.height = t * Ot.value * 2, A.value = e * Ot.value * 2, j.value = t * Ot.value * 2, k.value?.scale(Ot.value, Ot.value), $();
|
|
459
459
|
}
|
|
460
460
|
w(B, async (e) => {
|
|
461
461
|
if (!e) {
|
|
462
|
-
|
|
462
|
+
kt.value = null, Tt.value = !1, M.value = null, L.value = null;
|
|
463
463
|
return;
|
|
464
464
|
}
|
|
465
|
-
await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await
|
|
465
|
+
await qe(), H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), P.value = !0, F.value = !0, await Mn(), Vn(), $();
|
|
466
466
|
});
|
|
467
|
-
function
|
|
467
|
+
function Hn() {
|
|
468
468
|
if (k.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.fillStyle = V.value.style.chart.backgroundColor, k.value.fillRect(0, 0, G.value.canvasWidth, G.value.canvasHeight), B.value)) {
|
|
469
469
|
if (U.value.stacked) V.value.style.chart.grid.y.verticalLines.show && Y.value.end - Y.value.start < V.value.style.chart.grid.y.verticalLines.hideUnderXLength ? J.value.forEach((e) => {
|
|
470
470
|
for (let t = 0; t < Y.value.end - Y.value.start + 1; t += 1) f(k.value, [{
|
|
@@ -635,7 +635,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Un(e) {
|
|
639
639
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
640
640
|
let n = (M.value === t || R.value === t ? A.value / 150 : V.value.style.chart.line.plots.show || e.type === "plot" ? A.value / 200 : 0) * V.value.style.chart.line.plots.radiusRatio;
|
|
641
641
|
De(k.value, {
|
|
@@ -648,24 +648,24 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Wn() {
|
|
652
652
|
J.value.forEach((e) => {
|
|
653
|
-
e.showYMarker &&
|
|
653
|
+
e.showYMarker && ur(e) && p(k.value, re(V.value.style.chart.dataLabels.formatter, ur(e).value, d({
|
|
654
654
|
p: e.prefix || V.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
655
|
-
v:
|
|
655
|
+
v: ur(e).value,
|
|
656
656
|
s: e.suffix || V.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
657
657
|
r: e.rounding || V.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
658
658
|
}), {
|
|
659
|
-
datapoint:
|
|
659
|
+
datapoint: ur(e),
|
|
660
660
|
seriesIndex: null
|
|
661
|
-
}), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX,
|
|
661
|
+
}), G.value.left - 8 + V.value.style.chart.grid.y.axisLabels.offsetX, ur(e).y, {
|
|
662
662
|
align: "right",
|
|
663
663
|
font: `${V.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
|
|
664
664
|
color: e.color
|
|
665
665
|
});
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Gn() {
|
|
669
669
|
V.value.style.chart.grid.y.axisLabels.show && (U.value.stacked ? J.value.forEach((e) => {
|
|
670
670
|
e.localYLabels.forEach((t, n) => {
|
|
671
671
|
p(k.value, re(V.value.style.chart.dataLabels.formatter, t.value, d({
|
|
@@ -700,7 +700,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
700
700
|
});
|
|
701
701
|
}));
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Kn(e) {
|
|
704
704
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) p(k.value, re(V.value.style.chart.dataLabels.formatter, e.coordinatesLine[t].value, d({
|
|
705
705
|
p: e.prefix || "",
|
|
706
706
|
v: e.coordinatesLine[t].value,
|
|
@@ -717,9 +717,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
717
717
|
lineWidth: .5
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
|
-
let Q = x([]),
|
|
720
|
+
let Q = x([]), qn = 0;
|
|
721
721
|
rt(() => {
|
|
722
|
-
let e = ++
|
|
722
|
+
let e = ++qn;
|
|
723
723
|
(async () => {
|
|
724
724
|
let t = await he({
|
|
725
725
|
values: V.value.style.chart.grid.x.timeLabels.values,
|
|
@@ -728,42 +728,42 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
728
728
|
start: 0,
|
|
729
729
|
end: W.value
|
|
730
730
|
});
|
|
731
|
-
e ===
|
|
731
|
+
e === qn && (Q.value = t);
|
|
732
732
|
})();
|
|
733
733
|
}), rt(() => {
|
|
734
|
-
V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"),
|
|
734
|
+
V.value.style.chart.grid.x.timeLabels.show, V.value.style.chart.grid.x.timeLabels.rotation, V.value.style.chart.grid.x.timeLabels.offsetY, V.value.style.chart.grid.x.timeLabels.fontSizeRatio, V.value.style.chart.grid.x.timeLabels.bold, Y.value.start, Y.value.end, A.value, j.value, (Q.value || []).map((e) => e?.text ?? "").join("|"), Cn();
|
|
735
735
|
}, { flush: "post" });
|
|
736
|
-
let
|
|
736
|
+
let Jn = x({
|
|
737
737
|
months: [],
|
|
738
738
|
shortMonths: [],
|
|
739
739
|
days: [],
|
|
740
740
|
shortDays: []
|
|
741
|
-
}),
|
|
741
|
+
}), Yn = 0;
|
|
742
742
|
rt(() => {
|
|
743
|
-
let e = ++
|
|
743
|
+
let e = ++Yn, t = V.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
744
744
|
(async () => {
|
|
745
745
|
let n = await me(t.locale).catch(() => me("en"));
|
|
746
|
-
e ===
|
|
746
|
+
e === Yn && (Jn.value = n.data);
|
|
747
747
|
})();
|
|
748
748
|
});
|
|
749
|
-
let
|
|
749
|
+
let Xn = m(() => {
|
|
750
750
|
let e = V.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
|
|
751
751
|
useUTC: e.useUTC,
|
|
752
|
-
locale:
|
|
752
|
+
locale: Jn.value,
|
|
753
753
|
januaryAsYear: e.januaryAsYear
|
|
754
754
|
});
|
|
755
755
|
return (e, n) => {
|
|
756
756
|
let r = V.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
757
757
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
758
758
|
};
|
|
759
|
-
}),
|
|
760
|
-
text:
|
|
759
|
+
}), Zn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
760
|
+
text: Xn.value(t, V.value.style.chart.zoom.timeFormat),
|
|
761
761
|
absoluteIndex: t
|
|
762
|
-
}))),
|
|
763
|
-
text:
|
|
762
|
+
}))), Qn = m(() => (V.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
763
|
+
text: Xn.value(t, V.value.style.chart.tooltip.timeFormat),
|
|
764
764
|
absoluteIndex: t
|
|
765
765
|
})));
|
|
766
|
-
function
|
|
766
|
+
function $n() {
|
|
767
767
|
for (let e = Y.value.start; e < Y.value.end; e += 1) (Y.value.end - Y.value.start < V.value.style.chart.grid.x.timeLabels.modulo || Y.value.end - Y.value.start >= V.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((Y.value.end - Y.value.start) / V.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === M.value + Y.value.start || e === R.value) && V.value.style.chart.grid.x.timeLabels.showMarker)) && p(k.value, Q.value[e] ? Q.value[e].text : e + 1, G.value.left + G.value.slot * (e - Y.value.start) + G.value.slot / 2, G.value.bottom + A.value / V.value.style.chart.grid.x.timeLabels.offsetY, {
|
|
768
768
|
align: V.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : V.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
769
769
|
font: `${V.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(A.value / 40 * V.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${V.value.style.fontFamily}`,
|
|
@@ -771,7 +771,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
771
771
|
rotation: V.value.style.chart.grid.x.timeLabels.rotation
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function er() {
|
|
775
775
|
f(k.value, [{
|
|
776
776
|
x: G.value.left + G.value.slot * (M.value ?? R.value) + G.value.slot / 2,
|
|
777
777
|
y: G.value.top
|
|
@@ -785,7 +785,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
785
785
|
linceCap: "round"
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function tr() {
|
|
789
789
|
L.value && f(k.value, [{
|
|
790
790
|
x: G.value.left,
|
|
791
791
|
y: L.value
|
|
@@ -799,7 +799,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
799
799
|
linceCap: "round"
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function nr() {
|
|
803
803
|
Z.value.forEach((e, t) => {
|
|
804
804
|
for (let n = 0; n < e.coordinatesLine.length; n += 1) Ae(k.value, [
|
|
805
805
|
{
|
|
@@ -855,7 +855,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
855
855
|
});
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function rr(e, t) {
|
|
859
859
|
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
860
860
|
for (let e = 0; e < n.length; e += 1) {
|
|
861
861
|
let o = n[e];
|
|
@@ -897,7 +897,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
897
897
|
singles: i
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function ir(e) {
|
|
901
901
|
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
902
902
|
for (let e = 0; e < t.length; e += 1) {
|
|
903
903
|
let i = t[e];
|
|
@@ -905,9 +905,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
905
905
|
}
|
|
906
906
|
return r.length >= 2 && n.push(r), n;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
if (
|
|
910
|
-
let t =
|
|
908
|
+
function ar(e) {
|
|
909
|
+
if (Dn.value) {
|
|
910
|
+
let t = ir(e);
|
|
911
911
|
for (let n of t) f(k.value, n, {
|
|
912
912
|
color: e.color,
|
|
913
913
|
lineWidth: 3
|
|
@@ -917,12 +917,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
917
917
|
lineWidth: 3
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
let t = !!
|
|
920
|
+
function or(e) {
|
|
921
|
+
let t = !!Dn.value;
|
|
922
922
|
if (e.useArea) {
|
|
923
923
|
let r = U.value.stacked ? e.localZero : K.value.zero;
|
|
924
924
|
if (t) {
|
|
925
|
-
let { polygons: t, singles: i } =
|
|
925
|
+
let { polygons: t, singles: i } = rr(e, r);
|
|
926
926
|
for (let r of t) Oe(k.value, r, {
|
|
927
927
|
fillColor: n(e.color, V.value.style.chart.area.opacity),
|
|
928
928
|
strokeColor: "transparent"
|
|
@@ -953,12 +953,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
953
953
|
strokeColor: "transparent"
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
|
|
956
|
+
ar(e);
|
|
957
957
|
return;
|
|
958
958
|
}
|
|
959
|
-
|
|
959
|
+
ar(e);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function sr() {
|
|
962
962
|
J.value.forEach((e, t) => {
|
|
963
963
|
f(k.value, [{
|
|
964
964
|
x: G.value.left,
|
|
@@ -972,7 +972,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
972
972
|
});
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function cr() {
|
|
976
976
|
let { left: e, top: t, width: n, height: r } = G.value, i = Y.value.start, a = Y.value.end - i, o = n / a, s = X.value.start - i, c = X.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
977
977
|
Ae(k.value, [
|
|
978
978
|
{
|
|
@@ -1004,9 +1004,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
function $() {
|
|
1007
|
-
!B.value || !H.value || !k.value || (
|
|
1008
|
-
(e.type === "line" || !e.type) &&
|
|
1009
|
-
}), H.value && (
|
|
1007
|
+
!B.value || !H.value || !k.value || (Hn(), P.value ? ((M.value !== null || R.value !== null) && V.value.style.chart.selector.show && er(), nr(), U.value.stacked && V.value.style.chart.grid.x.showAxis && sr(), Bn.value.forEach((e) => {
|
|
1008
|
+
(e.type === "line" || !e.type) && or(e), F.value && (Un(e), U.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Kn(e));
|
|
1009
|
+
}), H.value && (kt.value = ke(H.value))) : (kt.value && (k.value.clearRect(0, 0, 1e4, 1e4), k.value.drawImage(kt.value, 0, 0)), (M.value !== null || R.value !== null) && V.value.style.chart.selector.show && er(), (M.value !== null || R.value !== null) && J.value.forEach((e) => {
|
|
1010
1010
|
let t = M.value ?? R.value, n = e.coordinatesLine[t];
|
|
1011
1011
|
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && De(k.value, {
|
|
1012
1012
|
x: n.x,
|
|
@@ -1016,12 +1016,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1016
1016
|
fillStyle: e.color,
|
|
1017
1017
|
strokeColor: "transparent"
|
|
1018
1018
|
});
|
|
1019
|
-
})), V.value.style.chart.grid.x.timeLabels.show &&
|
|
1019
|
+
})), V.value.style.chart.grid.x.timeLabels.show && $n(), V.value.style.chart.selector.show && V.value.style.chart.selector.showHorizontalSelector && tr(), Gn(), Wn(), V.value.style.chart.zoom.preview.enable && (Y.value.start !== X.value.start || Y.value.end !== X.value.end) && cr(), P.value = !1);
|
|
1020
1020
|
}
|
|
1021
|
-
let
|
|
1022
|
-
F.value = !0,
|
|
1021
|
+
let lr = Te(() => {
|
|
1022
|
+
F.value = !0, Vn();
|
|
1023
1023
|
}, W.value > 200 ? 10 : 1, !F.value);
|
|
1024
|
-
function
|
|
1024
|
+
function ur(e) {
|
|
1025
1025
|
if ([null, void 0].includes(M.value ?? R.value) || !e.coordinatesLine[M.value ?? R.value]) return !1;
|
|
1026
1026
|
let { y: t, value: n } = e.coordinatesLine[M.value ?? R.value];
|
|
1027
1027
|
return {
|
|
@@ -1029,15 +1029,15 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1029
1029
|
value: n
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
if (!B.value || !H.value ||
|
|
1032
|
+
function dr(e) {
|
|
1033
|
+
if (!B.value || !H.value || _n.value) return;
|
|
1034
1034
|
let { left: t, top: n } = H.value.getBoundingClientRect(), r = e.clientX - t;
|
|
1035
1035
|
if (L.value = (e.clientY - n) * 2, (L.value < G.value.top || L.value > G.value.bottom) && (L.value = null), r * 2 < G.value.left || r * 2 > G.value.right) {
|
|
1036
|
-
|
|
1036
|
+
gr();
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
1039
|
let i = r * 2 - G.value.left, a = Math.floor(i / G.value.slot);
|
|
1040
|
-
if (M.value = a, z.value = a,
|
|
1040
|
+
if (M.value = a, z.value = a, Tt.value = !0, Gt.value = !1, !F.value) return;
|
|
1041
1041
|
let o = "", s = V.value.style.chart.tooltip.customFormat, c = J.value.map((e) => ({
|
|
1042
1042
|
shape: e.shape || null,
|
|
1043
1043
|
name: e.name,
|
|
@@ -1045,13 +1045,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1045
1045
|
type: e.type || "line",
|
|
1046
1046
|
value: e.series.find((e, t) => t === M.value)
|
|
1047
1047
|
}));
|
|
1048
|
-
|
|
1049
|
-
timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text :
|
|
1048
|
+
Dt.value = {
|
|
1049
|
+
timeLabel: V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Qn.value[M.value]?.text : "",
|
|
1050
1050
|
datapoint: c,
|
|
1051
1051
|
seriesIndex: M.value,
|
|
1052
1052
|
series: J.value,
|
|
1053
1053
|
config: V.value
|
|
1054
|
-
},
|
|
1054
|
+
}, br({
|
|
1055
1055
|
seriesIndex: M.value,
|
|
1056
1056
|
datapoint: c
|
|
1057
1057
|
}), ue(s) && te(() => s({
|
|
@@ -1059,14 +1059,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1059
1059
|
datapoint: c,
|
|
1060
1060
|
series: J.value,
|
|
1061
1061
|
config: V.value
|
|
1062
|
-
})) ?
|
|
1062
|
+
})) ? Et.value = s({
|
|
1063
1063
|
seriesIndex: M.value,
|
|
1064
1064
|
datapoint: c,
|
|
1065
1065
|
series: J.value,
|
|
1066
1066
|
config: V.value
|
|
1067
|
-
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text :
|
|
1067
|
+
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[M.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[M.value]?.text : Qn.value[M.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[M.value + Y.value.start]?.text ?? ""}</div>`, o += En.value.join(""), Et.value = o), F.value = !1;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function fr(e) {
|
|
1070
1070
|
return J.value.map((t) => ({
|
|
1071
1071
|
shape: t.shape || null,
|
|
1072
1072
|
name: t.name,
|
|
@@ -1075,9 +1075,9 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1075
1075
|
value: t.series.find((t, n) => n === e)
|
|
1076
1076
|
}));
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
let t = "", n = V.value.style.chart.tooltip.customFormat, r =
|
|
1080
|
-
return
|
|
1078
|
+
function pr(e) {
|
|
1079
|
+
let t = "", n = V.value.style.chart.tooltip.customFormat, r = fr(e);
|
|
1080
|
+
return br({
|
|
1081
1081
|
seriesIndex: e,
|
|
1082
1082
|
datapoint: r
|
|
1083
1083
|
}), ue(n) && te(() => n({
|
|
@@ -1090,41 +1090,41 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1090
1090
|
datapoint: r,
|
|
1091
1091
|
series: J.value,
|
|
1092
1092
|
config: V.value
|
|
1093
|
-
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text :
|
|
1093
|
+
}) : (V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${V.value.style.chart.tooltip.useDefaultTimeFormat ? Q.value.slice(Y.value.start, Y.value.end)[e]?.text : Qn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${V.value.style.chart.tooltip.borderColor}; width:100%">${Q.value[e + Y.value.start]?.text ?? ""}</div>`, t += En.value.join(""), t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function mr(e) {
|
|
1096
1096
|
if (!H.value || !G.value?.slot) return;
|
|
1097
1097
|
let t = H.value.getBoundingClientRect(), n = t.width / G.value.canvasWidth, r = t.height / G.value.canvasHeight, i = G.value.left + G.value.slot * e + G.value.slot / 2, a = G.value.top + G.value.height / 2;
|
|
1098
|
-
|
|
1098
|
+
qt.value = {
|
|
1099
1099
|
x: t.left + i * n,
|
|
1100
1100
|
y: t.top + a * r
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
!B.value ||
|
|
1105
|
-
}
|
|
1106
|
-
function hr() {
|
|
1107
|
-
wt.value = !1, M.value = null, z.value = null, Tt.value = "", L.value = null, Wt.value = !1, $();
|
|
1103
|
+
function hr(e, { fromKeyboard: t = !1 } = {}) {
|
|
1104
|
+
!B.value || _n.value || e != null && (e < 0 || e >= Y.value.end - Y.value.start || (M.value = e, z.value = e, Tt.value = !0, Gt.value = t, Et.value = pr(e), t && mr(e), F.value = !1, $()));
|
|
1108
1105
|
}
|
|
1109
1106
|
function gr() {
|
|
1110
|
-
Gt.value = !
|
|
1107
|
+
Tt.value = !1, M.value = null, z.value = null, Et.value = "", L.value = null, Gt.value = !1, $();
|
|
1111
1108
|
}
|
|
1112
1109
|
function _r() {
|
|
1113
|
-
|
|
1110
|
+
Kt.value = !0;
|
|
1114
1111
|
}
|
|
1115
|
-
function vr(
|
|
1116
|
-
|
|
1112
|
+
function vr() {
|
|
1113
|
+
Kt.value = !1, gr();
|
|
1114
|
+
}
|
|
1115
|
+
function yr(e) {
|
|
1116
|
+
if (!H.value || Vr.value || document.activeElement !== H.value) return;
|
|
1117
1117
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1118
1118
|
if (!t && !n) return;
|
|
1119
1119
|
let r = Y.value.end - Y.value.start;
|
|
1120
1120
|
if (r <= 0) return;
|
|
1121
1121
|
e.preventDefault(), e.stopPropagation();
|
|
1122
1122
|
let i = z.value;
|
|
1123
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
1123
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, hr(i, { fromKeyboard: !0 });
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function br({ seriesIndex: e, datapoint: t }) {
|
|
1126
1126
|
let n = Y.value.start + e;
|
|
1127
|
-
|
|
1127
|
+
Jt("selectX", {
|
|
1128
1128
|
dataset: t,
|
|
1129
1129
|
index: n,
|
|
1130
1130
|
indexLabel: ""
|
|
@@ -1132,13 +1132,13 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1132
1132
|
}
|
|
1133
1133
|
w(() => E.selectedXIndex, (e) => {
|
|
1134
1134
|
if ([null, void 0].includes(E.selectedXIndex)) {
|
|
1135
|
-
|
|
1135
|
+
gr();
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
1138
|
let t = e - Y.value.start;
|
|
1139
|
-
t < 0 || e >= Y.value.end ?
|
|
1139
|
+
t < 0 || e >= Y.value.end ? gr() : hr(t, { fromKeyboard: !1 });
|
|
1140
1140
|
}, { immediate: !0 }), w(() => M.value, (e) => {
|
|
1141
|
-
|
|
1141
|
+
lr();
|
|
1142
1142
|
}), w(() => Y.value, (e) => {
|
|
1143
1143
|
P.value = !0, $();
|
|
1144
1144
|
}, { deep: !0 }), w(() => X.value, (e) => {
|
|
@@ -1148,67 +1148,67 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1148
1148
|
}), w(() => L.value, (e) => {
|
|
1149
1149
|
e && $();
|
|
1150
1150
|
}), w(() => U.value.stacked, (e) => {
|
|
1151
|
-
P.value = !0, F.value = !0,
|
|
1151
|
+
P.value = !0, F.value = !0, lr();
|
|
1152
1152
|
});
|
|
1153
|
-
function
|
|
1154
|
-
|
|
1153
|
+
function xr() {
|
|
1154
|
+
gr();
|
|
1155
1155
|
}
|
|
1156
|
-
let
|
|
1156
|
+
let Sr = $e(null), Cr = $e(null), wr = $e(null);
|
|
1157
1157
|
Ze(() => {
|
|
1158
|
-
|
|
1158
|
+
Rt.value = !0, Tr();
|
|
1159
1159
|
});
|
|
1160
|
-
function
|
|
1160
|
+
function Tr() {
|
|
1161
1161
|
if (ie(E.dataset) && se({
|
|
1162
1162
|
componentName: "VueUiXyCanvas",
|
|
1163
1163
|
type: "dataset",
|
|
1164
|
-
debug:
|
|
1164
|
+
debug: $t.value
|
|
1165
1165
|
}), qe(() => {
|
|
1166
|
-
H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0,
|
|
1166
|
+
H.value && !k.value && (k.value = H.value.getContext("2d", { willReadFrequently: !0 })), k.value && B.value && (P.value = !0, F.value = !0, Vn());
|
|
1167
1167
|
}), V.value.responsive) {
|
|
1168
1168
|
let e = Ee(() => {
|
|
1169
1169
|
let { width: e, height: t } = je({
|
|
1170
1170
|
chart: O.value,
|
|
1171
|
-
title: V.value.style.chart.title.text ?
|
|
1172
|
-
legend: V.value.style.chart.legend.show ?
|
|
1171
|
+
title: V.value.style.chart.title.text ? Mt.value : null,
|
|
1172
|
+
legend: V.value.style.chart.legend.show ? Nt.value : null,
|
|
1173
1173
|
slicer: V.value.style.chart.zoom.show && W.value > 6 ? I.value?.$el : null,
|
|
1174
|
-
source:
|
|
1174
|
+
source: Pt.value
|
|
1175
1175
|
});
|
|
1176
1176
|
requestAnimationFrame(() => {
|
|
1177
|
-
|
|
1177
|
+
un.value = `${e} / ${t}`;
|
|
1178
1178
|
});
|
|
1179
1179
|
});
|
|
1180
|
-
|
|
1180
|
+
Sr.value && (Cr.value && Sr.value.unobserve(Cr.value), Sr.value.disconnect()), Sr.value = new ResizeObserver(e), Cr.value = O.value.parentNode, Sr.value.observe(Cr.value);
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1183
|
-
for (let t of e) t.contentBoxSize &&
|
|
1184
|
-
}),
|
|
1182
|
+
wr.value && wr.value.disconnect(), wr.value = new ResizeObserver(async (e) => {
|
|
1183
|
+
for (let t of e) t.contentBoxSize && wt.value && (P.value = !0, lr());
|
|
1184
|
+
}), wr.value.observe(wt.value), Mn();
|
|
1185
1185
|
}
|
|
1186
1186
|
Xe(() => {
|
|
1187
|
-
|
|
1187
|
+
wr.value && wr.value.disconnect(), Sr.value && (Cr.value && Sr.value.unobserve(Cr.value), Sr.value.disconnect());
|
|
1188
1188
|
});
|
|
1189
|
-
function
|
|
1190
|
-
N.value.length ? N.value = [] :
|
|
1189
|
+
function Er() {
|
|
1190
|
+
N.value.length ? N.value = [] : jr.value.forEach((e, t) => {
|
|
1191
1191
|
N.value.push(t);
|
|
1192
|
-
}), P.value = !0,
|
|
1193
|
-
}
|
|
1194
|
-
function Er(e) {
|
|
1195
|
-
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0, cr(), qt("selectLegend", J.value);
|
|
1192
|
+
}), P.value = !0, lr(), Jt("selectLegend", J.value);
|
|
1196
1193
|
}
|
|
1197
1194
|
function Dr(e) {
|
|
1198
|
-
|
|
1195
|
+
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.push(e), P.value = !0, lr(), Jt("selectLegend", J.value);
|
|
1199
1196
|
}
|
|
1200
1197
|
function Or(e) {
|
|
1201
|
-
|
|
1202
|
-
t !== null && N.value.includes(t.absoluteIndex) && Er(t.absoluteIndex);
|
|
1198
|
+
return q.value.length ? q.value.find((t) => t.name === e) || ($t.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : ($t.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1203
1199
|
}
|
|
1204
1200
|
function kr(e) {
|
|
1205
|
-
let t =
|
|
1206
|
-
t !== null &&
|
|
1201
|
+
let t = Or(e);
|
|
1202
|
+
t !== null && N.value.includes(t.absoluteIndex) && Dr(t.absoluteIndex);
|
|
1203
|
+
}
|
|
1204
|
+
function Ar(e) {
|
|
1205
|
+
let t = Or(e);
|
|
1206
|
+
t !== null && (N.value.includes(t.absoluteIndex) || Dr(t.absoluteIndex));
|
|
1207
1207
|
}
|
|
1208
|
-
let
|
|
1208
|
+
let jr = m(() => q.value.map((e, t) => ({
|
|
1209
1209
|
...e,
|
|
1210
1210
|
name: e.name,
|
|
1211
|
-
color: u(e.color) ||
|
|
1211
|
+
color: u(e.color) || gn.value[t] || c[t] || c[t % c.length],
|
|
1212
1212
|
shape: e.shape || "circle",
|
|
1213
1213
|
prefix: e.prefix || "",
|
|
1214
1214
|
suffix: e.suffix || "",
|
|
@@ -1216,17 +1216,17 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1216
1216
|
})).map((e) => ({
|
|
1217
1217
|
...e,
|
|
1218
1218
|
opacity: N.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1219
|
-
segregate: () =>
|
|
1219
|
+
segregate: () => Dr(e.absoluteIndex),
|
|
1220
1220
|
isSegregated: N.value.includes(e.absoluteIndex)
|
|
1221
|
-
}))),
|
|
1221
|
+
}))), Mr = m(() => ({
|
|
1222
1222
|
cy: "donut-div-legend",
|
|
1223
1223
|
backgroundColor: V.value.style.chart.legend.backgroundColor,
|
|
1224
1224
|
color: V.value.style.chart.legend.color,
|
|
1225
1225
|
fontSize: V.value.style.chart.legend.fontSize,
|
|
1226
1226
|
paddingBottom: 12,
|
|
1227
1227
|
fontWeight: V.value.style.chart.legend.bold ? "bold" : ""
|
|
1228
|
-
})),
|
|
1229
|
-
let e = [""].concat(J.value.map((e) => e.name), "
|
|
1228
|
+
})), Nr = m(() => {
|
|
1229
|
+
let e = [""].concat(J.value.map((e) => e.name), "__SUM__"), t = [];
|
|
1230
1230
|
for (let e = 0; e < W.value; e += 1) {
|
|
1231
1231
|
let n = J.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
1232
1232
|
t.push([V.value.style.chart.grid.x.timeLabels.values.slice(Y.value.start, Y.value.end)[e] ? Q?.value?.slice(Y.value.start, Y.value.end)?.[e]?.text ?? e + 1 : e + 1].concat(J.value.map((t) => (t.series[e] ?? 0).toFixed(V.value.table.rounding)), (n ?? 0).toFixed(V.value.table.rounding)));
|
|
@@ -1250,7 +1250,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1250
1250
|
config: n,
|
|
1251
1251
|
colNames: r
|
|
1252
1252
|
};
|
|
1253
|
-
}),
|
|
1253
|
+
}), Pr = m(() => {
|
|
1254
1254
|
if (J.value.length === 0) return {
|
|
1255
1255
|
head: [],
|
|
1256
1256
|
body: [],
|
|
@@ -1273,37 +1273,37 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1273
1273
|
body: t
|
|
1274
1274
|
};
|
|
1275
1275
|
});
|
|
1276
|
-
function
|
|
1276
|
+
function Fr(e = null) {
|
|
1277
1277
|
let n = [
|
|
1278
1278
|
[V.value.style.chart.title.text],
|
|
1279
1279
|
[V.value.style.chart.title.subtitle.text],
|
|
1280
1280
|
[""]
|
|
1281
|
-
], i = ["", ...
|
|
1281
|
+
], i = ["", ...Pr.value.head.map((e) => e.label)], a = Pr.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1282
1282
|
e ? e(s) : t({
|
|
1283
1283
|
csvContent: s,
|
|
1284
1284
|
title: V.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Ir() {
|
|
1288
1288
|
return J.value;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Lr() {
|
|
1291
1291
|
U.value.showTable = !U.value.showTable;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function Rr() {
|
|
1294
1294
|
U.value.showDataLabels = !U.value.showDataLabels;
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function zr() {
|
|
1297
1297
|
U.value.stacked = !U.value.stacked;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function Br() {
|
|
1300
1300
|
U.value.showTooltip = !U.value.showTooltip;
|
|
1301
1301
|
}
|
|
1302
|
-
let
|
|
1303
|
-
function
|
|
1304
|
-
|
|
1302
|
+
let Vr = x(!1);
|
|
1303
|
+
function Hr() {
|
|
1304
|
+
Vr.value = !Vr.value;
|
|
1305
1305
|
}
|
|
1306
|
-
async function
|
|
1306
|
+
async function Ur({ scale: e = 2 } = {}) {
|
|
1307
1307
|
if (!O.value) return;
|
|
1308
1308
|
let { imageUri: t, base64: n } = await Se({
|
|
1309
1309
|
domElement: O.value,
|
|
@@ -1322,20 +1322,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1322
1322
|
...a
|
|
1323
1323
|
};
|
|
1324
1324
|
}
|
|
1325
|
-
let
|
|
1325
|
+
let Wr = m(() => {
|
|
1326
1326
|
let e = V.value.table.useDialog && !V.value.table.show, t = U.value.showTable;
|
|
1327
1327
|
return {
|
|
1328
|
-
component: e ?
|
|
1328
|
+
component: e ? bt : Pe,
|
|
1329
1329
|
title: `${V.value.style.chart.title.text}${V.value.style.chart.title.subtitle.text ? `: ${V.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1330
1330
|
props: e ? {
|
|
1331
1331
|
backgroundColor: V.value.table.th.backgroundColor,
|
|
1332
1332
|
color: V.value.table.th.color,
|
|
1333
1333
|
headerColor: V.value.table.th.color,
|
|
1334
1334
|
headerBg: V.value.table.th.backgroundColor,
|
|
1335
|
-
isFullscreen:
|
|
1335
|
+
isFullscreen: jt.value,
|
|
1336
1336
|
fullscreenParent: O.value,
|
|
1337
1337
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1338
|
-
isCursorPointer:
|
|
1338
|
+
isCursorPointer: Qt.value
|
|
1339
1339
|
} : {
|
|
1340
1340
|
hideDetails: !0,
|
|
1341
1341
|
config: {
|
|
@@ -1354,24 +1354,24 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1354
1354
|
};
|
|
1355
1355
|
});
|
|
1356
1356
|
w(() => U.value.showTable, (e) => {
|
|
1357
|
-
V.value.table.show || (e && V.value.table.useDialog &&
|
|
1357
|
+
V.value.table.show || (e && V.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
|
|
1358
1358
|
});
|
|
1359
|
-
function
|
|
1360
|
-
U.value.showTable = !1,
|
|
1359
|
+
function Gr() {
|
|
1360
|
+
U.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Kr(e) {
|
|
1363
1363
|
if (e?.stage === "start") {
|
|
1364
|
-
|
|
1364
|
+
Wt.value = !0;
|
|
1365
1365
|
return;
|
|
1366
1366
|
}
|
|
1367
1367
|
if (e?.stage === "end") {
|
|
1368
|
-
|
|
1368
|
+
Wt.value = !1;
|
|
1369
1369
|
return;
|
|
1370
1370
|
}
|
|
1371
|
-
|
|
1371
|
+
mn();
|
|
1372
1372
|
}
|
|
1373
|
-
async function
|
|
1374
|
-
if (
|
|
1373
|
+
async function qr() {
|
|
1374
|
+
if (Jt("copyAlt", {
|
|
1375
1375
|
config: V.value,
|
|
1376
1376
|
dataset: J.value
|
|
1377
1377
|
}), !V.value.userOptions.callbacks.altCopy) {
|
|
@@ -1384,41 +1384,41 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1384
1384
|
}));
|
|
1385
1385
|
}
|
|
1386
1386
|
return we({
|
|
1387
|
-
getData:
|
|
1388
|
-
getImage:
|
|
1389
|
-
generateCsv:
|
|
1390
|
-
generatePdf:
|
|
1391
|
-
generateImage:
|
|
1392
|
-
hideSeries:
|
|
1393
|
-
showSeries:
|
|
1394
|
-
toggleTable:
|
|
1395
|
-
toggleLabels:
|
|
1396
|
-
toggleStack:
|
|
1397
|
-
toggleTooltip:
|
|
1398
|
-
toggleAnnotator:
|
|
1399
|
-
toggleFullscreen:
|
|
1400
|
-
copyAlt:
|
|
1387
|
+
getData: Ir,
|
|
1388
|
+
getImage: Ur,
|
|
1389
|
+
generateCsv: Fr,
|
|
1390
|
+
generatePdf: pn,
|
|
1391
|
+
generateImage: mn,
|
|
1392
|
+
hideSeries: Ar,
|
|
1393
|
+
showSeries: kr,
|
|
1394
|
+
toggleTable: Lr,
|
|
1395
|
+
toggleLabels: Rr,
|
|
1396
|
+
toggleStack: zr,
|
|
1397
|
+
toggleTooltip: Br,
|
|
1398
|
+
toggleAnnotator: Hr,
|
|
1399
|
+
toggleFullscreen: hn,
|
|
1400
|
+
copyAlt: qr
|
|
1401
1401
|
}), (t, n) => (b(), Ve("div", {
|
|
1402
1402
|
style: Ye(`width:100%; position:relative; ${V.value.responsive ? "height: 100%" : ""}; background:${V.value.style.chart.backgroundColor};`),
|
|
1403
1403
|
ref_key: "xy",
|
|
1404
1404
|
ref: O,
|
|
1405
1405
|
id: `xy_canvas_${D.value}`,
|
|
1406
|
-
class: Je(`vue-data-ui-component vue-ui-xy-canvas ${
|
|
1407
|
-
onMouseenter:
|
|
1408
|
-
onMouseleave:
|
|
1406
|
+
class: Je(`vue-data-ui-component vue-ui-xy-canvas ${jt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1407
|
+
onMouseenter: sn,
|
|
1408
|
+
onMouseleave: cn
|
|
1409
1409
|
}, [
|
|
1410
1410
|
_("div", {
|
|
1411
1411
|
id: `chart-instructions-${D.value}`,
|
|
1412
1412
|
class: "sr-only"
|
|
1413
1413
|
}, [_("p", null, et(V.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
|
|
1414
|
-
_("div", st, et(
|
|
1414
|
+
_("div", st, et(Zt.value), 1),
|
|
1415
1415
|
V.value.style.chart.title.text ? (b(), Ve("div", {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
ref_key: "chartTitle",
|
|
1418
|
-
ref:
|
|
1418
|
+
ref: Mt,
|
|
1419
1419
|
style: Ye(`width:100%;background:${V.value.style.chart.backgroundColor};`)
|
|
1420
1420
|
}, [(b(), h(Ce, {
|
|
1421
|
-
key: `title_${
|
|
1421
|
+
key: `title_${Ft.value}`,
|
|
1422
1422
|
config: {
|
|
1423
1423
|
title: {
|
|
1424
1424
|
cy: "xy-canvas-title",
|
|
@@ -1431,14 +1431,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1431
1431
|
}
|
|
1432
1432
|
}, null, 8, ["config"]))], 4)) : g("", !0),
|
|
1433
1433
|
_("div", { id: `legend-top-${D.value}` }, null, 8, ct),
|
|
1434
|
-
V.value.userOptions.show && B.value && (C(
|
|
1434
|
+
V.value.userOptions.show && B.value && (C(on) || C(rn)) ? (b(), h(C(vt), {
|
|
1435
1435
|
ref_key: "userOptionsRef",
|
|
1436
|
-
ref:
|
|
1437
|
-
key: `user_option_${
|
|
1436
|
+
ref: Bt,
|
|
1437
|
+
key: `user_option_${At.value}`,
|
|
1438
1438
|
backgroundColor: V.value.style.chart.backgroundColor,
|
|
1439
1439
|
color: V.value.style.chart.color,
|
|
1440
|
-
isPrinting: C(
|
|
1441
|
-
isImaging: C(
|
|
1440
|
+
isPrinting: C(dn),
|
|
1441
|
+
isImaging: C(fn),
|
|
1442
1442
|
uid: D.value,
|
|
1443
1443
|
hasTooltip: V.value.userOptions.buttons.tooltip && V.value.style.chart.tooltip.show,
|
|
1444
1444
|
hasPdf: V.value.userOptions.buttons.pdf,
|
|
@@ -1449,29 +1449,29 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1449
1449
|
hasFullscreen: V.value.userOptions.buttons.fullscreen,
|
|
1450
1450
|
hasAltCopy: V.value.userOptions.buttons.altCopy,
|
|
1451
1451
|
hasTable: Y.value.end - Y.value.start <= 730 && V.value.userOptions.buttons.table,
|
|
1452
|
-
isFullscreen:
|
|
1452
|
+
isFullscreen: jt.value,
|
|
1453
1453
|
isTooltip: U.value.showTooltip,
|
|
1454
1454
|
isStacked: U.value.stacked,
|
|
1455
1455
|
titles: { ...V.value.userOptions.buttonTitles },
|
|
1456
1456
|
chartElement: O.value,
|
|
1457
1457
|
position: V.value.userOptions.position,
|
|
1458
1458
|
hasAnnotator: V.value.userOptions.buttons.annotator,
|
|
1459
|
-
isAnnotation:
|
|
1459
|
+
isAnnotation: Vr.value,
|
|
1460
1460
|
callbacks: V.value.userOptions.callbacks,
|
|
1461
1461
|
printScale: V.value.userOptions.print.scale,
|
|
1462
1462
|
tableDialog: V.value.table.useDialog,
|
|
1463
|
-
isCursorPointer:
|
|
1464
|
-
onToggleFullscreen:
|
|
1465
|
-
onGeneratePdf: C(
|
|
1466
|
-
onGenerateCsv:
|
|
1467
|
-
onGenerateImage:
|
|
1468
|
-
onToggleTable:
|
|
1469
|
-
onToggleLabels:
|
|
1470
|
-
onToggleStack:
|
|
1471
|
-
onToggleTooltip:
|
|
1472
|
-
onToggleAnnotator:
|
|
1473
|
-
onCopyAlt:
|
|
1474
|
-
style: Ye({ visibility: C(
|
|
1463
|
+
isCursorPointer: Qt.value,
|
|
1464
|
+
onToggleFullscreen: hn,
|
|
1465
|
+
onGeneratePdf: C(pn),
|
|
1466
|
+
onGenerateCsv: Fr,
|
|
1467
|
+
onGenerateImage: Kr,
|
|
1468
|
+
onToggleTable: Lr,
|
|
1469
|
+
onToggleLabels: Rr,
|
|
1470
|
+
onToggleStack: zr,
|
|
1471
|
+
onToggleTooltip: Br,
|
|
1472
|
+
onToggleAnnotator: Hr,
|
|
1473
|
+
onCopyAlt: qr,
|
|
1474
|
+
style: Ye({ visibility: C(on) ? C(rn) ? "visible" : "hidden" : "visible" })
|
|
1475
1475
|
}, He({ _: 2 }, [
|
|
1476
1476
|
t.$slots.menuIcon ? {
|
|
1477
1477
|
name: "menuIcon",
|
|
@@ -1550,14 +1550,14 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1550
1550
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : g("", !0),
|
|
1551
1551
|
_("div", {
|
|
1552
1552
|
class: "vue-ui-xy-canvas",
|
|
1553
|
-
style: Ye(`position: relative; aspect-ratio: ${
|
|
1553
|
+
style: Ye(`position: relative; aspect-ratio: ${un.value}`),
|
|
1554
1554
|
ref_key: "container",
|
|
1555
|
-
ref:
|
|
1555
|
+
ref: wt
|
|
1556
1556
|
}, [
|
|
1557
1557
|
_("canvas", {
|
|
1558
1558
|
ref_key: "canvas",
|
|
1559
1559
|
ref: H,
|
|
1560
|
-
"aria-label":
|
|
1560
|
+
"aria-label": Xt.value,
|
|
1561
1561
|
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1562
1562
|
role: "img",
|
|
1563
1563
|
"aria-live": "polite",
|
|
@@ -1566,20 +1566,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1566
1566
|
width: "100%",
|
|
1567
1567
|
height: "100%"
|
|
1568
1568
|
},
|
|
1569
|
-
onMousemove: n[0] ||= (e) =>
|
|
1570
|
-
onMouseleave:
|
|
1571
|
-
onFocus:
|
|
1572
|
-
onBlur:
|
|
1573
|
-
onKeydown:
|
|
1569
|
+
onMousemove: n[0] ||= (e) => dr(e),
|
|
1570
|
+
onMouseleave: xr,
|
|
1571
|
+
onFocus: _r,
|
|
1572
|
+
onBlur: vr,
|
|
1573
|
+
onKeydown: yr
|
|
1574
1574
|
}, null, 40, lt),
|
|
1575
1575
|
t.$slots.hint ? (b(), Ve("div", ut, [S(t.$slots, "hint", y(v({
|
|
1576
1576
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
1577
|
-
isVisible:
|
|
1577
|
+
isVisible: Kt.value
|
|
1578
1578
|
})), void 0, !0)])) : g("", !0),
|
|
1579
|
-
S(t.$slots, "skeleton", {}, () => [C(
|
|
1580
|
-
We(C(
|
|
1579
|
+
S(t.$slots, "skeleton", {}, () => [C(tn) ? (b(), h(ye, { key: 0 })) : g("", !0)], !0),
|
|
1580
|
+
We(C(gt), {
|
|
1581
1581
|
teleportTo: V.value.style.chart.tooltip.teleportTo,
|
|
1582
|
-
show: U.value.showTooltip &&
|
|
1582
|
+
show: U.value.showTooltip && Tt.value,
|
|
1583
1583
|
backgroundColor: V.value.style.chart.tooltip.backgroundColor,
|
|
1584
1584
|
color: V.value.style.chart.tooltip.color,
|
|
1585
1585
|
fontSize: V.value.style.chart.tooltip.fontSize,
|
|
@@ -1590,20 +1590,20 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1590
1590
|
offsetX: V.value.style.chart.tooltip.offsetX,
|
|
1591
1591
|
offsetY: V.value.style.chart.tooltip.offsetY,
|
|
1592
1592
|
parent: t.$refs.xy,
|
|
1593
|
-
content:
|
|
1594
|
-
isFullscreen:
|
|
1593
|
+
content: Et.value,
|
|
1594
|
+
isFullscreen: jt.value,
|
|
1595
1595
|
backgroundOpacity: V.value.style.chart.tooltip.backgroundOpacity,
|
|
1596
1596
|
isCustom: C(ue)(V.value.style.chart.tooltip.customFormat),
|
|
1597
1597
|
smooth: V.value.style.chart.tooltip.smooth,
|
|
1598
1598
|
backdropFilter: V.value.style.chart.tooltip.backdropFilter,
|
|
1599
1599
|
smoothForce: V.value.style.chart.tooltip.smoothForce,
|
|
1600
1600
|
smoothSnapThreshold: V.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1601
|
-
isA11yMode:
|
|
1602
|
-
a11yPosition:
|
|
1601
|
+
isA11yMode: Gt.value,
|
|
1602
|
+
a11yPosition: qt.value
|
|
1603
1603
|
}, {
|
|
1604
|
-
"tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...
|
|
1605
|
-
tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...
|
|
1606
|
-
"tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...
|
|
1604
|
+
"tooltip-before": T(() => [S(t.$slots, "tooltip-before", y(v({ ...Dt.value })), void 0, !0)]),
|
|
1605
|
+
tooltip: T(() => [S(t.$slots, "tooltip", y(v({ ...Dt.value })), void 0, !0)]),
|
|
1606
|
+
"tooltip-after": T(() => [S(t.$slots, "tooltip-after", y(v({ ...Dt.value })), void 0, !0)]),
|
|
1607
1607
|
_: 3
|
|
1608
1608
|
}, 8, [
|
|
1609
1609
|
"teleportTo",
|
|
@@ -1630,16 +1630,16 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1630
1630
|
"a11yPosition"
|
|
1631
1631
|
])
|
|
1632
1632
|
], 4),
|
|
1633
|
-
V.value.style.chart.zoom.show && W.value > 6 && B.value &&
|
|
1633
|
+
V.value.style.chart.zoom.show && W.value > 6 && B.value && Ht.value && !C(tn) ? (b(), h(Ne, {
|
|
1634
1634
|
key: 2,
|
|
1635
1635
|
ref_key: "chartSlicer",
|
|
1636
1636
|
ref: I,
|
|
1637
1637
|
"data-dom-to-png-ignore-layout": "",
|
|
1638
|
-
allMinimaps:
|
|
1638
|
+
allMinimaps: kn.value,
|
|
1639
1639
|
background: V.value.style.chart.zoom.color,
|
|
1640
1640
|
borderColor: V.value.style.chart.backgroundColor,
|
|
1641
1641
|
customFormat: V.value.style.chart.zoom.customFormat,
|
|
1642
|
-
cutNullValues:
|
|
1642
|
+
cutNullValues: Dn.value,
|
|
1643
1643
|
enableRangeHandles: V.value.style.chart.zoom.enableRangeHandles,
|
|
1644
1644
|
enableSelectionDrag: V.value.style.chart.zoom.enableSelectionDrag,
|
|
1645
1645
|
end: Y.value.end,
|
|
@@ -1648,12 +1648,12 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1648
1648
|
fontSize: V.value.style.chart.zoom.fontSize,
|
|
1649
1649
|
immediate: !V.value.style.chart.zoom.preview.enable,
|
|
1650
1650
|
inputColor: V.value.style.chart.zoom.color,
|
|
1651
|
-
isPreview:
|
|
1651
|
+
isPreview: Nn.value,
|
|
1652
1652
|
labelLeft: V.value.style.chart.grid.x.timeLabels.values[Y.value.start] ? Q.value[Y.value.start]?.text : "",
|
|
1653
1653
|
labelRight: V.value.style.chart.grid.x.timeLabels.values[Y.value.end - 1] ? Q.value[Y.value.end - 1]?.text : "",
|
|
1654
1654
|
max: W.value,
|
|
1655
1655
|
min: 0,
|
|
1656
|
-
minimap:
|
|
1656
|
+
minimap: On.value,
|
|
1657
1657
|
minimapCompact: V.value.style.chart.zoom.minimap.compact,
|
|
1658
1658
|
minimapFrameColor: V.value.style.chart.zoom.minimap.frameColor,
|
|
1659
1659
|
minimapIndicatorColor: V.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1663,7 +1663,7 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1663
1663
|
minimapSelectedColorOpacity: V.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1664
1664
|
minimapSelectedIndex: M.value,
|
|
1665
1665
|
minimapSelectionRadius: V.value.style.chart.zoom.minimap.selectionRadius,
|
|
1666
|
-
preciseLabels:
|
|
1666
|
+
preciseLabels: Zn.value?.length ? Zn.value : Q.value,
|
|
1667
1667
|
refreshEndPoint: V.value.style.chart.zoom.endIndex === null ? W.value : V.value.style.chart.zoom.endIndex + 1,
|
|
1668
1668
|
refreshStartPoint: V.value.style.chart.zoom.startIndex === null ? 0 : V.value.style.chart.zoom.startIndex,
|
|
1669
1669
|
selectColor: V.value.style.chart.zoom.highlightColor,
|
|
@@ -1687,42 +1687,42 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1687
1687
|
handleBorderColor: V.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1688
1688
|
handleFill: V.value.style.chart.zoom.minimap.handleFill,
|
|
1689
1689
|
handleWidth: V.value.style.chart.zoom.minimap.handleWidth,
|
|
1690
|
-
onFutureEnd: n[1] ||= (e) =>
|
|
1691
|
-
onFutureStart: n[2] ||= (e) =>
|
|
1692
|
-
onReset:
|
|
1693
|
-
onTrapMouse:
|
|
1694
|
-
"onUpdate:end":
|
|
1695
|
-
"onUpdate:start":
|
|
1690
|
+
onFutureEnd: n[1] ||= (e) => Pn("end", e),
|
|
1691
|
+
onFutureStart: n[2] ||= (e) => Pn("start", e),
|
|
1692
|
+
onReset: Mn,
|
|
1693
|
+
onTrapMouse: vn,
|
|
1694
|
+
"onUpdate:end": Ln,
|
|
1695
|
+
"onUpdate:start": In
|
|
1696
1696
|
}, {
|
|
1697
1697
|
"reset-action": T(({ reset: e }) => [S(t.$slots, "reset-action", y(v({ reset: e })), void 0, !0)]),
|
|
1698
1698
|
_: 3
|
|
1699
1699
|
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : g("", !0),
|
|
1700
1700
|
_("div", { id: `legend-bottom-${D.value}` }, null, 8, dt),
|
|
1701
|
-
|
|
1701
|
+
Rt.value && (V.value.style.chart.legend.show || t.$slots.legend) ? (b(), h(Be, {
|
|
1702
1702
|
key: 3,
|
|
1703
1703
|
to: V.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1704
1704
|
}, [_("div", {
|
|
1705
1705
|
ref_key: "chartLegend",
|
|
1706
|
-
ref:
|
|
1707
|
-
}, [S(t.$slots, "legend", { legend:
|
|
1708
|
-
legendSet:
|
|
1709
|
-
config:
|
|
1710
|
-
key: `legend_${
|
|
1711
|
-
isCursorPointer:
|
|
1712
|
-
onClickMarker: n[3] ||= ({ i: e }) =>
|
|
1706
|
+
ref: Nt
|
|
1707
|
+
}, [S(t.$slots, "legend", { legend: jr.value }, () => [V.value.style.chart.legend.show && B.value ? (b(), h(Re, {
|
|
1708
|
+
legendSet: jr.value,
|
|
1709
|
+
config: Mr.value,
|
|
1710
|
+
key: `legend_${Lt.value}`,
|
|
1711
|
+
isCursorPointer: Qt.value,
|
|
1712
|
+
onClickMarker: n[3] ||= ({ i: e }) => Dr(e)
|
|
1713
1713
|
}, {
|
|
1714
1714
|
item: T(({ legend: e, index: t }) => [_("div", {
|
|
1715
1715
|
onClick: (t) => e.segregate(),
|
|
1716
1716
|
style: Ye(`opacity:${N.value.includes(t) ? .5 : 1}`)
|
|
1717
1717
|
}, et(e.name), 13, ft)]),
|
|
1718
|
-
legendToggle: T(() => [
|
|
1718
|
+
legendToggle: T(() => [jr.value.length > 2 && V.value.style.chart.legend.selectAllToggle.show && !C(tn) ? (b(), h(Fe, {
|
|
1719
1719
|
key: 0,
|
|
1720
1720
|
backgroundColor: V.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1721
1721
|
color: V.value.style.chart.legend.selectAllToggle.color,
|
|
1722
1722
|
fontSize: V.value.style.chart.legend.fontSize,
|
|
1723
1723
|
checked: N.value.length > 0,
|
|
1724
|
-
isCursorPointer:
|
|
1725
|
-
onToggle:
|
|
1724
|
+
isCursorPointer: Qt.value,
|
|
1725
|
+
onToggle: Er
|
|
1726
1726
|
}, null, 8, [
|
|
1727
1727
|
"backgroundColor",
|
|
1728
1728
|
"color",
|
|
@@ -1736,30 +1736,34 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1736
1736
|
"config",
|
|
1737
1737
|
"isCursorPointer"
|
|
1738
1738
|
])) : g("", !0)], !0)], 512)], 8, ["to"])) : g("", !0),
|
|
1739
|
-
t.$slots.watermark ? (b(), Ve("div", pt, [S(t.$slots, "watermark", y(v({ isPrinting: C(
|
|
1739
|
+
t.$slots.watermark ? (b(), Ve("div", pt, [S(t.$slots, "watermark", y(v({ isPrinting: C(dn) || C(fn) || Wt.value })), void 0, !0)])) : g("", !0),
|
|
1740
1740
|
t.$slots.source ? (b(), Ve("div", {
|
|
1741
1741
|
key: 5,
|
|
1742
1742
|
ref_key: "source",
|
|
1743
|
-
ref:
|
|
1743
|
+
ref: Pt,
|
|
1744
1744
|
dir: "auto"
|
|
1745
1745
|
}, [S(t.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
|
|
1746
|
-
B.value && V.value.userOptions.buttons.table ? (b(), h(Qe(
|
|
1746
|
+
B.value && V.value.userOptions.buttons.table ? (b(), h(Qe(Wr.value.component), Ke({ key: 6 }, Wr.value.props, {
|
|
1747
1747
|
ref_key: "tableUnit",
|
|
1748
|
-
ref:
|
|
1749
|
-
onClose:
|
|
1748
|
+
ref: zt,
|
|
1749
|
+
onClose: Gr
|
|
1750
1750
|
}), He({
|
|
1751
|
-
content: T(() => [(b(), h(C(
|
|
1752
|
-
key: `table_${
|
|
1753
|
-
colNames:
|
|
1754
|
-
head:
|
|
1755
|
-
body:
|
|
1756
|
-
config:
|
|
1757
|
-
title: V.value.table.useDialog ? "" :
|
|
1751
|
+
content: T(() => [(b(), h(C(_t), {
|
|
1752
|
+
key: `table_${It.value}`,
|
|
1753
|
+
colNames: Nr.value.colNames,
|
|
1754
|
+
head: Nr.value.head,
|
|
1755
|
+
body: Nr.value.body,
|
|
1756
|
+
config: Nr.value.config,
|
|
1757
|
+
title: V.value.table.useDialog ? "" : Wr.value.title,
|
|
1758
1758
|
withCloseButton: !V.value.table.useDialog,
|
|
1759
|
-
isCursorPointer:
|
|
1760
|
-
onClose:
|
|
1759
|
+
isCursorPointer: Qt.value,
|
|
1760
|
+
onClose: Gr
|
|
1761
1761
|
}, {
|
|
1762
|
-
th: T(({ th: e }) => [
|
|
1762
|
+
th: T(({ th: e }) => [e === "__SUM__" ? (b(), Ve("div", mt, [We(Me, {
|
|
1763
|
+
name: "sigma",
|
|
1764
|
+
stroke: Nr.value.config.th.color,
|
|
1765
|
+
size: 16
|
|
1766
|
+
}, null, 8, ["stroke"])])) : (b(), Ve("div", ht, et(e), 1))]),
|
|
1763
1767
|
td: T(({ td: e }) => [Ue(et(e), 1)]),
|
|
1764
1768
|
_: 1
|
|
1765
1769
|
}, 8, [
|
|
@@ -1774,29 +1778,29 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1774
1778
|
_: 2
|
|
1775
1779
|
}, [V.value.table.useDialog ? {
|
|
1776
1780
|
name: "title",
|
|
1777
|
-
fn: T(() => [Ue(et(
|
|
1781
|
+
fn: T(() => [Ue(et(Wr.value.title), 1)]),
|
|
1778
1782
|
key: "0"
|
|
1779
1783
|
} : void 0, V.value.table.useDialog ? {
|
|
1780
1784
|
name: "actions",
|
|
1781
1785
|
fn: T(() => [_("button", {
|
|
1782
1786
|
tabindex: "0",
|
|
1783
1787
|
class: "vue-ui-user-options-button",
|
|
1784
|
-
onClick: n[4] ||= (e) =>
|
|
1785
|
-
style: Ye({ cursor:
|
|
1788
|
+
onClick: n[4] ||= (e) => Fr(V.value.userOptions.callbacks.csv),
|
|
1789
|
+
style: Ye({ cursor: Qt.value ? "pointer" : "default" })
|
|
1786
1790
|
}, [We(Me, {
|
|
1787
1791
|
name: "fileCsv",
|
|
1788
|
-
stroke:
|
|
1792
|
+
stroke: Wr.value.props.color
|
|
1789
1793
|
}, null, 8, ["stroke"])], 4)]),
|
|
1790
1794
|
key: "1"
|
|
1791
1795
|
} : void 0]), 1040)) : g("", !0),
|
|
1792
|
-
V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(
|
|
1796
|
+
V.value.userOptions.buttons.annotator && J.value.length ? (b(), h(C(yt), {
|
|
1793
1797
|
key: 7,
|
|
1794
1798
|
parent: O.value,
|
|
1795
1799
|
backgroundColor: V.value.style.chart.backgroundColor,
|
|
1796
1800
|
color: V.value.style.chart.color,
|
|
1797
|
-
active:
|
|
1798
|
-
isCursorPointer:
|
|
1799
|
-
onClose:
|
|
1801
|
+
active: Vr.value,
|
|
1802
|
+
isCursorPointer: Qt.value,
|
|
1803
|
+
onClose: Hr
|
|
1800
1804
|
}, {
|
|
1801
1805
|
"annotator-action-close": T(() => [S(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1802
1806
|
"annotator-action-color": T(({ color: e }) => [S(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
|
|
@@ -1814,6 +1818,6 @@ var it = /* @__PURE__ */ e({ default: () => ht }), at = ["id"], ot = ["id"], st
|
|
|
1814
1818
|
])) : g("", !0)
|
|
1815
1819
|
], 46, at));
|
|
1816
1820
|
}
|
|
1817
|
-
}, [["__scopeId", "data-v-
|
|
1821
|
+
}, [["__scopeId", "data-v-c47c665d"]]);
|
|
1818
1822
|
//#endregion
|
|
1819
|
-
export { it as n,
|
|
1823
|
+
export { it as n, gt as t };
|