vue-data-ui 2.3.74 → 2.3.75
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-CYCrAySW.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-DK6F5Fq3.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-Cj7T-DqJ.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-DZjnxQdN.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-D5cATWsL.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-BA43_uHV.js} +314 -299
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { ref as v, computed as b, watch as Y, onMounted as pa, onBeforeUnmount as ba, openBlock as S, createElementBlock as se, normalizeStyle as Z, normalizeClass as ma, createBlock as _, createCommentVNode as G, unref as N, createSlots as xa, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as j, createElementVNode as q, createVNode as La, toDisplayString as Ue, createTextVNode as ka } from "vue";
|
|
2
|
+
import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, B as ye, i as J, f as K, F as Ta, d as Ze, Y as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, w as Q, l as Ea } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { d as _a, c as Na, a as Ve, t as Da, l as C, r as fe, b as P, p as je, u as Ha } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Wa } from "./Tooltip-CH8GmDCG.js";
|
|
5
|
+
import { L as Ya } from "./Legend-DX1kv21U.js";
|
|
6
|
+
import { _ as Ba } from "./Title-C26I_HC3.js";
|
|
7
|
+
import { S as Xa } from "./Slicer-yaJs-izT.js";
|
|
8
|
+
import { u as Aa, U as Ua } from "./usePrinter-B8RnF8_q.js";
|
|
9
|
+
import Za from "./vue-ui-accordion-Cb6XBCbu.js";
|
|
10
|
+
import { D as Ga } from "./DataTable-CQANRZju.js";
|
|
11
|
+
import Va from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
12
|
+
import { u as qe } from "./useNestedProp-CurQIHTa.js";
|
|
13
|
+
import { _ as ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Qa = ["innerHTML"], el = {
|
|
18
18
|
__name: "vue-ui-xy-canvas",
|
|
19
19
|
props: {
|
|
20
20
|
dataset: {
|
|
@@ -31,32 +31,40 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
setup(ge, { expose: Je, emit: Ke }) {
|
|
35
|
+
const F = ge, { vue_ui_xy_canvas: Qe } = Ca(), ne = v(wa()), ee = v(null), $ = v(null), B = v(null), s = v(null), y = v(1), M = v(1), ae = v(!1), d = v(null), le = v(""), pe = v(null), w = v([]), H = v(1), E = v(!0), z = v(!0), ie = v(null), be = v(0), me = v(0), ve = v(!1), xe = v(null), Le = v(null), ke = v(null), Ce = v(0), we = v(0), Se = v(0), ce = b(() => !!F.dataset && F.dataset.length), a = b({
|
|
36
|
+
get: () => $e(),
|
|
37
|
+
set: (e) => e
|
|
38
|
+
});
|
|
39
|
+
function $e() {
|
|
40
|
+
const e = qe({
|
|
41
|
+
userConfig: F.config,
|
|
42
|
+
defaultConfig: Qe
|
|
39
43
|
});
|
|
40
44
|
return e.theme ? {
|
|
41
|
-
...
|
|
42
|
-
userConfig:
|
|
45
|
+
...qe({
|
|
46
|
+
userConfig: Sa.vue_ui_xy_canvas[e.theme] || F.config,
|
|
43
47
|
defaultConfig: e
|
|
44
48
|
}),
|
|
45
|
-
customPalette:
|
|
49
|
+
customPalette: $a[e.theme] || D
|
|
46
50
|
} : e;
|
|
47
|
-
}
|
|
51
|
+
}
|
|
52
|
+
Y(() => F.config, (e) => {
|
|
53
|
+
a.value = $e(), _e(), Ce.value += 1, we.value += 1, Se.value += 1;
|
|
54
|
+
}, { deep: !0 });
|
|
55
|
+
const ze = v(a.value.style.chart.aspectRatio), { isPrinting: Te, isImaging: Me, generatePdf: Re, generateImage: Ie } = Aa({
|
|
48
56
|
elementId: `xy_canvas_${ne.value}`,
|
|
49
57
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
50
|
-
}),
|
|
58
|
+
}), r = v({
|
|
51
59
|
showTable: a.value.table.show,
|
|
52
60
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
53
61
|
stacked: a.value.style.chart.stacked,
|
|
54
62
|
showTooltip: a.value.style.chart.tooltip.show
|
|
55
63
|
});
|
|
56
|
-
function
|
|
57
|
-
ve.value = e,
|
|
64
|
+
function ea(e) {
|
|
65
|
+
ve.value = e, me.value += 1;
|
|
58
66
|
}
|
|
59
|
-
const
|
|
67
|
+
const Oe = b(() => za(a.value.customPalette)), R = b(() => W.value ? Math.max(...W.value.filter((e, t) => !w.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
|
|
60
68
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
61
69
|
return {
|
|
62
70
|
canvasWidth: y.value,
|
|
@@ -67,27 +75,27 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
67
75
|
bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
|
|
68
76
|
width: e,
|
|
69
77
|
height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
70
|
-
slot: e / (
|
|
78
|
+
slot: e / (u.value.end - u.value.start)
|
|
71
79
|
};
|
|
72
80
|
});
|
|
73
|
-
function
|
|
81
|
+
function Pe(e, t) {
|
|
74
82
|
return e / t;
|
|
75
83
|
}
|
|
76
|
-
function
|
|
84
|
+
function aa({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: f, individualHeight: n, stackIndex: g = null }) {
|
|
77
85
|
return t.map((L, he) => {
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
e && (
|
|
81
|
-
let
|
|
82
|
-
return g === null ?
|
|
86
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, I = Pe(L + T, T + c.max);
|
|
87
|
+
let O, X;
|
|
88
|
+
e && (O = Math.abs(c.min), X = Pe(L + O, c.max + O));
|
|
89
|
+
let A = 0;
|
|
90
|
+
return g === null ? A = l.value.bottom - l.value.height * (e ? X : I) : A = l.value.bottom - f - n * (e ? X : I), {
|
|
83
91
|
x: l.value.left + l.value.slot * he + l.value.slot / 2,
|
|
84
|
-
y:
|
|
92
|
+
y: A,
|
|
85
93
|
value: L
|
|
86
94
|
};
|
|
87
95
|
});
|
|
88
96
|
}
|
|
89
|
-
const p =
|
|
90
|
-
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(
|
|
97
|
+
const p = b(() => {
|
|
98
|
+
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o = ye(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
|
|
91
99
|
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
92
100
|
x: l.value.left - 8,
|
|
93
101
|
value: n
|
|
@@ -98,94 +106,98 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
98
106
|
min: e,
|
|
99
107
|
scale: o,
|
|
100
108
|
yLabels: f,
|
|
101
|
-
zero:
|
|
109
|
+
zero: c
|
|
102
110
|
};
|
|
103
|
-
}),
|
|
111
|
+
}), la = b(() => h.value.map((e) => `
|
|
104
112
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
105
113
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
106
114
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
107
115
|
</svg>
|
|
108
116
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
109
|
-
<span>${
|
|
117
|
+
<span>${J(
|
|
110
118
|
a.value.style.chart.dataLabels.formatter,
|
|
111
|
-
e.series[
|
|
112
|
-
|
|
119
|
+
e.series[d.value],
|
|
120
|
+
K({
|
|
113
121
|
p: e.prefix || "",
|
|
114
|
-
v: e.series[
|
|
122
|
+
v: e.series[d.value],
|
|
115
123
|
s: e.suffix || "",
|
|
116
124
|
r: e.rounding || 0
|
|
117
125
|
}),
|
|
118
|
-
{ datapoint: e, seriesIndex:
|
|
126
|
+
{ datapoint: e, seriesIndex: d.value }
|
|
119
127
|
)}</span>
|
|
120
128
|
</div>
|
|
121
|
-
`)), W =
|
|
129
|
+
`)), W = b(() => F.dataset.map((e, t) => ({
|
|
122
130
|
...e,
|
|
123
|
-
series:
|
|
131
|
+
series: Ta(e.series),
|
|
124
132
|
absoluteIndex: t,
|
|
125
|
-
color:
|
|
126
|
-
})))
|
|
133
|
+
color: Ze(e.color || Oe.value[t] || D[t] || D[t % D.length])
|
|
134
|
+
})));
|
|
135
|
+
Y(R, (e) => {
|
|
136
|
+
e && Fe();
|
|
137
|
+
});
|
|
138
|
+
const h = b(() => Ma(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
127
139
|
...e,
|
|
128
|
-
series: e.series.slice(
|
|
140
|
+
series: e.series.slice(u.value.start, u.value.end)
|
|
129
141
|
})).map((e, t) => {
|
|
130
142
|
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
131
143
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
132
144
|
const f = {
|
|
133
|
-
ratios: e.series.filter((
|
|
145
|
+
ratios: e.series.filter((U) => ![null, void 0].includes(U)).map((U) => (U - o) / (i - o)),
|
|
134
146
|
valueMin: o,
|
|
135
147
|
valueMax: i
|
|
136
148
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
137
149
|
let g;
|
|
138
|
-
e.autoScaling ? g =
|
|
139
|
-
const L =
|
|
140
|
-
let
|
|
141
|
-
e.autoScaling &&
|
|
142
|
-
const
|
|
143
|
-
y: l.value.bottom - L -
|
|
150
|
+
e.autoScaling ? g = ye(f.valueMin, f.valueMax, n) : g = ye(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
|
|
151
|
+
const L = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = r.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
|
|
152
|
+
let O;
|
|
153
|
+
e.autoScaling && r.value.stacked && i <= 0 ? O = l.value.bottom - L - T : O = l.value.bottom - L - T * (I / (g.max + I));
|
|
154
|
+
const X = g.ticks.map((U, ga) => ({
|
|
155
|
+
y: l.value.bottom - L - T * (ga / (g.ticks.length - 1)),
|
|
144
156
|
x: l.value.left - 8,
|
|
145
|
-
value:
|
|
146
|
-
})),
|
|
147
|
-
hasAutoScale:
|
|
157
|
+
value: U
|
|
158
|
+
})), A = aa({
|
|
159
|
+
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
148
160
|
series: e.series,
|
|
149
|
-
min:
|
|
150
|
-
max:
|
|
151
|
-
scale:
|
|
161
|
+
min: r.value.stacked ? o : p.value.min,
|
|
162
|
+
max: r.value.stacked ? i : p.value.max,
|
|
163
|
+
scale: r.value.stacked ? g : p.value.scale,
|
|
152
164
|
yOffset: L,
|
|
153
|
-
individualHeight:
|
|
154
|
-
stackIndex:
|
|
165
|
+
individualHeight: T,
|
|
166
|
+
stackIndex: r.value.stacked ? t : null
|
|
155
167
|
});
|
|
156
168
|
return {
|
|
157
169
|
...e,
|
|
158
|
-
coordinatesLine:
|
|
170
|
+
coordinatesLine: A,
|
|
159
171
|
min: o,
|
|
160
172
|
max: i,
|
|
161
173
|
localScale: g,
|
|
162
|
-
localZero:
|
|
163
|
-
localMin:
|
|
164
|
-
localYLabels:
|
|
174
|
+
localZero: O,
|
|
175
|
+
localMin: I,
|
|
176
|
+
localYLabels: X,
|
|
165
177
|
yOffset: L,
|
|
166
|
-
individualHeight:
|
|
178
|
+
individualHeight: T
|
|
167
179
|
};
|
|
168
|
-
})),
|
|
180
|
+
})), u = v({
|
|
169
181
|
start: 0,
|
|
170
|
-
end:
|
|
182
|
+
end: R.value
|
|
171
183
|
});
|
|
172
|
-
function
|
|
173
|
-
|
|
184
|
+
function Fe() {
|
|
185
|
+
u.value = {
|
|
174
186
|
start: 0,
|
|
175
|
-
end:
|
|
187
|
+
end: R.value
|
|
176
188
|
}, be.value += 1;
|
|
177
189
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
if (
|
|
190
|
+
const ta = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = b(() => h.value.filter((e) => e.type === "bar"));
|
|
191
|
+
function oa() {
|
|
192
|
+
if (!$.value)
|
|
181
193
|
return;
|
|
182
|
-
const e =
|
|
183
|
-
|
|
194
|
+
const e = B.value.offsetWidth, t = B.value.offsetHeight;
|
|
195
|
+
$.value.width = e * H.value * 2, $.value.height = t * H.value * 2, y.value = e * H.value * 2, M.value = t * H.value * 2, s.value.scale(H.value, H.value), de();
|
|
184
196
|
}
|
|
185
|
-
function
|
|
186
|
-
if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight),
|
|
187
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
188
|
-
for (let t = 0; t <
|
|
197
|
+
function ua() {
|
|
198
|
+
if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
|
|
199
|
+
a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
200
|
+
for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
|
|
189
201
|
C(
|
|
190
202
|
s.value,
|
|
191
203
|
[
|
|
@@ -204,7 +216,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
204
216
|
);
|
|
205
217
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
206
218
|
e.localYLabels.forEach((t, o) => {
|
|
207
|
-
o < e.localYLabels.length - 1 &&
|
|
219
|
+
o < e.localYLabels.length - 1 && fe(
|
|
208
220
|
s.value,
|
|
209
221
|
[
|
|
210
222
|
{ x: l.value.left, y: t.y },
|
|
@@ -213,13 +225,13 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
213
225
|
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
214
226
|
],
|
|
215
227
|
{
|
|
216
|
-
fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color +
|
|
228
|
+
fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + Q[a.value.style.chart.grid.x.horizontalLines.opacity],
|
|
217
229
|
strokeColor: "transparent"
|
|
218
230
|
}
|
|
219
231
|
);
|
|
220
232
|
});
|
|
221
233
|
}) : h.value.forEach((e) => {
|
|
222
|
-
e.localYLabels.slice(
|
|
234
|
+
e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
|
|
223
235
|
C(
|
|
224
236
|
s.value,
|
|
225
237
|
[
|
|
@@ -263,12 +275,12 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
263
275
|
color: e.color
|
|
264
276
|
}
|
|
265
277
|
), e.localYLabels.forEach((t, o) => {
|
|
266
|
-
|
|
278
|
+
P(
|
|
267
279
|
s.value,
|
|
268
|
-
|
|
280
|
+
J(
|
|
269
281
|
a.value.style.chart.dataLabels.formatter,
|
|
270
282
|
t.value,
|
|
271
|
-
|
|
283
|
+
K({
|
|
272
284
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
273
285
|
v: t.value,
|
|
274
286
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -286,7 +298,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
286
298
|
);
|
|
287
299
|
});
|
|
288
300
|
}), h.value.forEach((e) => {
|
|
289
|
-
|
|
301
|
+
P(
|
|
290
302
|
s.value,
|
|
291
303
|
e.name,
|
|
292
304
|
y.value / 35,
|
|
@@ -300,8 +312,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
300
312
|
);
|
|
301
313
|
});
|
|
302
314
|
else {
|
|
303
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
304
|
-
for (let e = 0; e <
|
|
315
|
+
if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
316
|
+
for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
|
|
305
317
|
C(
|
|
306
318
|
s.value,
|
|
307
319
|
[
|
|
@@ -313,7 +325,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
313
325
|
}
|
|
314
326
|
);
|
|
315
327
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
316
|
-
t < p.value.yLabels.length - 1 &&
|
|
328
|
+
t < p.value.yLabels.length - 1 && fe(
|
|
317
329
|
s.value,
|
|
318
330
|
[
|
|
319
331
|
{ x: l.value.left, y: e.y },
|
|
@@ -322,7 +334,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
322
334
|
{ x: l.value.left, y: p.value.yLabels[t + 1].y }
|
|
323
335
|
],
|
|
324
336
|
{
|
|
325
|
-
fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color +
|
|
337
|
+
fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + Q[a.value.style.chart.grid.x.horizontalLines.opacity],
|
|
326
338
|
strokeColor: "transparent"
|
|
327
339
|
}
|
|
328
340
|
);
|
|
@@ -368,12 +380,12 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
368
380
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
369
381
|
}
|
|
370
382
|
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
|
|
371
|
-
|
|
383
|
+
P(
|
|
372
384
|
s.value,
|
|
373
|
-
|
|
385
|
+
J(
|
|
374
386
|
a.value.style.chart.dataLabels.formatter,
|
|
375
387
|
e.value,
|
|
376
|
-
|
|
388
|
+
K({
|
|
377
389
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
378
390
|
v: e.value,
|
|
379
391
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -391,7 +403,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
391
403
|
);
|
|
392
404
|
});
|
|
393
405
|
}
|
|
394
|
-
a.value.style.chart.grid.y.axisName &&
|
|
406
|
+
a.value.style.chart.grid.y.axisName && P(
|
|
395
407
|
s.value,
|
|
396
408
|
a.value.style.chart.grid.y.axisName,
|
|
397
409
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
@@ -402,7 +414,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
402
414
|
align: "center",
|
|
403
415
|
rotation: 90
|
|
404
416
|
}
|
|
405
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
417
|
+
), a.value.style.chart.grid.x.axisName && P(
|
|
406
418
|
s.value,
|
|
407
419
|
a.value.style.chart.grid.x.axisName,
|
|
408
420
|
y.value / 2,
|
|
@@ -414,10 +426,10 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
414
426
|
}
|
|
415
427
|
);
|
|
416
428
|
}
|
|
417
|
-
function
|
|
429
|
+
function ra(e) {
|
|
418
430
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
419
|
-
const o = (
|
|
420
|
-
|
|
431
|
+
const o = (d.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
432
|
+
Ve(
|
|
421
433
|
s.value,
|
|
422
434
|
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
423
435
|
o,
|
|
@@ -429,14 +441,14 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
429
441
|
);
|
|
430
442
|
}
|
|
431
443
|
}
|
|
432
|
-
function
|
|
444
|
+
function sa(e) {
|
|
433
445
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
434
|
-
|
|
446
|
+
P(
|
|
435
447
|
s.value,
|
|
436
|
-
|
|
448
|
+
J(
|
|
437
449
|
a.value.style.chart.dataLabels.formatter,
|
|
438
450
|
e.coordinatesLine[t].value,
|
|
439
|
-
|
|
451
|
+
K({
|
|
440
452
|
p: e.prefix || "",
|
|
441
453
|
v: e.coordinatesLine[t].value,
|
|
442
454
|
s: e.suffix || "",
|
|
@@ -455,27 +467,27 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
455
467
|
}
|
|
456
468
|
);
|
|
457
469
|
}
|
|
458
|
-
function
|
|
459
|
-
for (let e =
|
|
460
|
-
(
|
|
470
|
+
function na() {
|
|
471
|
+
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
472
|
+
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + u.value.start)) && P(
|
|
461
473
|
s.value,
|
|
462
474
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
463
|
-
l.value.left + l.value.slot * (e -
|
|
475
|
+
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
464
476
|
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
465
477
|
{
|
|
466
478
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
467
479
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
468
|
-
color: a.value.style.chart.grid.y.timeLabels.color +
|
|
480
|
+
color: a.value.style.chart.grid.y.timeLabels.color + Q[d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100],
|
|
469
481
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
470
482
|
}
|
|
471
483
|
);
|
|
472
484
|
}
|
|
473
|
-
function
|
|
485
|
+
function Ee() {
|
|
474
486
|
C(
|
|
475
487
|
s.value,
|
|
476
488
|
[
|
|
477
|
-
{ x: l.value.left + l.value.slot *
|
|
478
|
-
{ x: l.value.left + l.value.slot *
|
|
489
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
490
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
|
|
479
491
|
],
|
|
480
492
|
{
|
|
481
493
|
color: a.value.style.chart.selector.color,
|
|
@@ -485,26 +497,26 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
485
497
|
}
|
|
486
498
|
);
|
|
487
499
|
}
|
|
488
|
-
function
|
|
500
|
+
function ia() {
|
|
489
501
|
x.value.forEach((e, t) => {
|
|
490
502
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
491
|
-
|
|
503
|
+
fe(
|
|
492
504
|
s.value,
|
|
493
505
|
[
|
|
494
506
|
{
|
|
495
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
496
|
-
y:
|
|
507
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
|
|
508
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
497
509
|
},
|
|
498
510
|
{
|
|
499
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
500
|
-
y:
|
|
511
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : x.value.length),
|
|
512
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
501
513
|
},
|
|
502
514
|
{
|
|
503
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
515
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : x.value.length),
|
|
504
516
|
y: e.coordinatesLine[o].y
|
|
505
517
|
},
|
|
506
518
|
{
|
|
507
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
519
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
|
|
508
520
|
y: e.coordinatesLine[o].y
|
|
509
521
|
}
|
|
510
522
|
],
|
|
@@ -518,20 +530,20 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
518
530
|
},
|
|
519
531
|
end: {
|
|
520
532
|
x: e.coordinatesLine[o].x,
|
|
521
|
-
y:
|
|
533
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
522
534
|
},
|
|
523
535
|
stops: [
|
|
524
536
|
{ offset: 0, color: e.color },
|
|
525
|
-
{ offset: 1, color:
|
|
537
|
+
{ offset: 1, color: Ea(e.color, 0.5) }
|
|
526
538
|
]
|
|
527
539
|
}
|
|
528
540
|
}
|
|
529
|
-
),
|
|
541
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
|
|
530
542
|
s.value,
|
|
531
|
-
|
|
543
|
+
J(
|
|
532
544
|
a.value.style.chart.dataLabels.formatter,
|
|
533
545
|
e.coordinatesLine[o].value,
|
|
534
|
-
|
|
546
|
+
K({
|
|
535
547
|
p: e.prefix || "",
|
|
536
548
|
v: e.coordinatesLine[o].value,
|
|
537
549
|
s: e.suffix || "",
|
|
@@ -539,8 +551,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
539
551
|
}),
|
|
540
552
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
541
553
|
),
|
|
542
|
-
l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
543
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
554
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : x.value.length),
|
|
555
|
+
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
544
556
|
{
|
|
545
557
|
align: "center",
|
|
546
558
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -551,19 +563,19 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
551
563
|
);
|
|
552
564
|
});
|
|
553
565
|
}
|
|
554
|
-
function
|
|
555
|
-
e.useArea ?
|
|
566
|
+
function va(e) {
|
|
567
|
+
e.useArea ? r.value.stacked ? je(
|
|
556
568
|
s.value,
|
|
557
569
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
558
570
|
{
|
|
559
|
-
fillColor: e.color +
|
|
571
|
+
fillColor: e.color + Q[a.value.style.chart.area.opacity],
|
|
560
572
|
strokeColor: "transparent"
|
|
561
573
|
}
|
|
562
|
-
) :
|
|
574
|
+
) : je(
|
|
563
575
|
s.value,
|
|
564
576
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
565
577
|
{
|
|
566
|
-
fillColor: e.color +
|
|
578
|
+
fillColor: e.color + Q[a.value.style.chart.area.opacity],
|
|
567
579
|
strokeColor: "transparent"
|
|
568
580
|
}
|
|
569
581
|
) : C(s.value, e.coordinatesLine, {
|
|
@@ -571,7 +583,7 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
571
583
|
lineWidth: 3
|
|
572
584
|
});
|
|
573
585
|
}
|
|
574
|
-
function
|
|
586
|
+
function ca() {
|
|
575
587
|
h.value.forEach((e, t) => {
|
|
576
588
|
C(
|
|
577
589
|
s.value,
|
|
@@ -587,16 +599,16 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
587
599
|
});
|
|
588
600
|
}
|
|
589
601
|
function de() {
|
|
590
|
-
|
|
591
|
-
(e.type === "line" || !e.type) &&
|
|
592
|
-
}), ie.value =
|
|
602
|
+
ua(), E.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), ia(), r.value.stacked && a.value.style.chart.grid.x.showAxis && ca(), ta.value.forEach((e) => {
|
|
603
|
+
(e.type === "line" || !e.type) && va(e), z.value && (ra(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && sa(e));
|
|
604
|
+
}), ie.value = Na($.value)) : (ie.value && s.value.drawImage(ie.value, 0, 0), z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
593
605
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
594
|
-
if (!e.coordinatesLine[
|
|
595
|
-
e.coordinatesLine[
|
|
606
|
+
if (!e.coordinatesLine[d.value]) return;
|
|
607
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ve(
|
|
596
608
|
s.value,
|
|
597
609
|
{
|
|
598
|
-
x: e.coordinatesLine[
|
|
599
|
-
y: e.coordinatesLine[
|
|
610
|
+
x: e.coordinatesLine[d.value].x,
|
|
611
|
+
y: e.coordinatesLine[d.value].y
|
|
600
612
|
},
|
|
601
613
|
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
602
614
|
{
|
|
@@ -606,90 +618,94 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
606
618
|
}
|
|
607
619
|
);
|
|
608
620
|
}
|
|
609
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
621
|
+
})), a.value.style.chart.grid.y.timeLabels.show && na(), E.value = !1;
|
|
610
622
|
}
|
|
611
|
-
const
|
|
612
|
-
z.value = !0,
|
|
613
|
-
},
|
|
614
|
-
function
|
|
615
|
-
const { left: t } =
|
|
623
|
+
const te = _a(() => {
|
|
624
|
+
z.value = !0, oa();
|
|
625
|
+
}, R.value > 200 ? 10 : 1, !z.value);
|
|
626
|
+
function da(e) {
|
|
627
|
+
const { left: t } = $.value.getBoundingClientRect(), o = e.clientX - t;
|
|
616
628
|
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
617
|
-
|
|
629
|
+
ae.value = !1, d.value = null;
|
|
618
630
|
return;
|
|
619
631
|
}
|
|
620
632
|
const i = o * 2 - l.value.left;
|
|
621
|
-
if (
|
|
622
|
-
let
|
|
633
|
+
if (d.value = Math.floor(i / l.value.slot), ae.value = !0, !z.value) return;
|
|
634
|
+
let c = "";
|
|
623
635
|
const f = a.value.style.chart.tooltip.customFormat;
|
|
624
|
-
|
|
625
|
-
seriesIndex:
|
|
636
|
+
Ge(f) && Oa(() => f({
|
|
637
|
+
seriesIndex: d.value,
|
|
626
638
|
datapoint: h.value.map((n) => ({
|
|
627
639
|
shape: n.shape || null,
|
|
628
640
|
name: n.name,
|
|
629
641
|
color: n.color,
|
|
630
642
|
type: n.type || "line",
|
|
631
|
-
value: n.series.find((g, L) => L ===
|
|
643
|
+
value: n.series.find((g, L) => L === d.value)
|
|
632
644
|
})),
|
|
633
645
|
series: h.value,
|
|
634
646
|
config: a.value
|
|
635
|
-
})) ?
|
|
636
|
-
seriesIndex:
|
|
647
|
+
})) ? le.value = f({
|
|
648
|
+
seriesIndex: d.value,
|
|
637
649
|
datapoint: h.value.map((n) => ({
|
|
638
650
|
shape: n.shape || null,
|
|
639
651
|
name: n.name,
|
|
640
652
|
color: n.color,
|
|
641
653
|
type: n.type || "line",
|
|
642
|
-
value: n.series.find((g, L) => L ===
|
|
654
|
+
value: n.series.find((g, L) => L === d.value)
|
|
643
655
|
})),
|
|
644
656
|
series: h.value,
|
|
645
657
|
config: a.value
|
|
646
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
658
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[d.value]}</div>`), c += la.value.join(""), le.value = c), z.value = !1;
|
|
647
659
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}),
|
|
651
|
-
|
|
660
|
+
Y(() => d.value, (e) => {
|
|
661
|
+
te();
|
|
662
|
+
}), Y(() => u.value, (e) => {
|
|
663
|
+
E.value = !0, de();
|
|
652
664
|
}, {
|
|
653
665
|
deep: !0
|
|
654
|
-
}),
|
|
655
|
-
|
|
656
|
-
}),
|
|
657
|
-
|
|
666
|
+
}), Y(() => r.value.showDataLabels, (e) => {
|
|
667
|
+
E.value = !0, de();
|
|
668
|
+
}), Y(() => r.value.stacked, (e) => {
|
|
669
|
+
E.value = !0, z.value = !0, te();
|
|
658
670
|
});
|
|
659
|
-
function
|
|
660
|
-
|
|
671
|
+
function ha() {
|
|
672
|
+
ae.value = !1, d.value = null, le.value = "";
|
|
661
673
|
}
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
|
|
674
|
+
const oe = v(null), ue = v(null);
|
|
675
|
+
pa(() => {
|
|
676
|
+
_e();
|
|
677
|
+
});
|
|
678
|
+
function _e() {
|
|
679
|
+
if (Ra(F.dataset) ? Ia({
|
|
665
680
|
componentName: "VueUiXyCanvas",
|
|
666
681
|
type: "dataset"
|
|
667
|
-
}) :
|
|
668
|
-
const e =
|
|
669
|
-
const { width: t, height: o } =
|
|
670
|
-
chart:
|
|
671
|
-
title: a.value.style.chart.title.text ?
|
|
672
|
-
legend: a.value.style.chart.legend.show ?
|
|
673
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
682
|
+
}) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
683
|
+
const e = Da(() => {
|
|
684
|
+
const { width: t, height: o } = Ha({
|
|
685
|
+
chart: ee.value,
|
|
686
|
+
title: a.value.style.chart.title.text ? xe.value : null,
|
|
687
|
+
legend: a.value.style.chart.legend.show ? Le.value : null,
|
|
688
|
+
slicer: a.value.style.chart.zoom.show && R.value > 1 ? ke.value : null
|
|
674
689
|
});
|
|
675
|
-
|
|
690
|
+
ze.value = `${t} / ${o}`;
|
|
676
691
|
});
|
|
677
|
-
|
|
692
|
+
oe.value = new ResizeObserver(e), oe.value.observe(ee.value.parentNode);
|
|
678
693
|
}
|
|
679
|
-
|
|
694
|
+
ue.value = new ResizeObserver((e) => {
|
|
680
695
|
for (const t of e)
|
|
681
|
-
t.contentBoxSize &&
|
|
682
|
-
}),
|
|
683
|
-
}
|
|
684
|
-
|
|
696
|
+
t.contentBoxSize && B.value && (E.value = !0, te());
|
|
697
|
+
}), ue.value.observe(B.value);
|
|
698
|
+
}
|
|
699
|
+
ba(() => {
|
|
700
|
+
ue.value && ue.value.disconnect(), oe.value && oe.value.disconnect();
|
|
685
701
|
});
|
|
686
|
-
function
|
|
687
|
-
|
|
702
|
+
function Ne(e) {
|
|
703
|
+
Ke("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e), E.value = !0, te();
|
|
688
704
|
}
|
|
689
|
-
const
|
|
705
|
+
const De = b(() => W.value.map((e, t) => ({
|
|
690
706
|
...e,
|
|
691
707
|
name: e.name,
|
|
692
|
-
color:
|
|
708
|
+
color: Ze(e.color) || Oe.value[t] || D[t] || D[t % D.length],
|
|
693
709
|
shape: e.shape || "circle",
|
|
694
710
|
prefix: e.prefix || "",
|
|
695
711
|
suffix: e.suffix || "",
|
|
@@ -697,21 +713,21 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
697
713
|
})).map((e) => ({
|
|
698
714
|
...e,
|
|
699
715
|
opacity: w.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
700
|
-
segregate: () =>
|
|
716
|
+
segregate: () => Ne(e.absoluteIndex),
|
|
701
717
|
isSegregated: w.value.includes(e.absoluteIndex)
|
|
702
|
-
}))),
|
|
718
|
+
}))), ya = b(() => ({
|
|
703
719
|
cy: "donut-div-legend",
|
|
704
720
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
705
721
|
color: a.value.style.chart.legend.color,
|
|
706
722
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
707
723
|
paddingBottom: 12,
|
|
708
724
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
709
|
-
})), re =
|
|
710
|
-
const e = [""].concat(h.value.map((
|
|
725
|
+
})), re = b(() => {
|
|
726
|
+
const e = [""].concat(h.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
711
727
|
let t = [];
|
|
712
|
-
for (let
|
|
713
|
-
const f = h.value.map((n) => n.series[
|
|
714
|
-
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
728
|
+
for (let c = 0; c < R.value; c += 1) {
|
|
729
|
+
const f = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
730
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
|
|
715
731
|
}
|
|
716
732
|
const o = {
|
|
717
733
|
th: {
|
|
@@ -725,65 +741,66 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
725
741
|
outline: a.value.table.td.outline
|
|
726
742
|
},
|
|
727
743
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
728
|
-
}, i = [a.value.table.columnNames.period].concat(h.value.map((
|
|
729
|
-
return { head: e, body: t.slice(0,
|
|
730
|
-
}),
|
|
744
|
+
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
745
|
+
return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: i };
|
|
746
|
+
}), He = b(() => {
|
|
731
747
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
732
748
|
const e = h.value.map((o) => ({
|
|
733
749
|
label: o.name,
|
|
734
750
|
color: o.color,
|
|
735
751
|
type: o.type
|
|
736
752
|
})), t = [];
|
|
737
|
-
for (let o =
|
|
753
|
+
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
738
754
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
739
|
-
h.value.forEach((
|
|
740
|
-
i.push(Number((
|
|
755
|
+
h.value.forEach((c) => {
|
|
756
|
+
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
741
757
|
}), t.push(i);
|
|
742
758
|
}
|
|
743
759
|
return { head: e, body: t };
|
|
744
760
|
});
|
|
745
|
-
function
|
|
746
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
747
|
-
|
|
761
|
+
function We() {
|
|
762
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...He.value.head.map((f) => f.label)], o = He.value.body, i = e.concat([t]).concat(o), c = Pa(i);
|
|
763
|
+
Fa({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
748
764
|
}
|
|
749
|
-
function
|
|
765
|
+
function fa() {
|
|
750
766
|
return h.value;
|
|
751
767
|
}
|
|
752
|
-
function
|
|
753
|
-
|
|
768
|
+
function Ye() {
|
|
769
|
+
r.value.showTable = !r.value.showTable;
|
|
754
770
|
}
|
|
755
|
-
function
|
|
756
|
-
|
|
771
|
+
function Be() {
|
|
772
|
+
r.value.showDataLabels = !r.value.showDataLabels;
|
|
757
773
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
774
|
+
function Xe() {
|
|
775
|
+
r.value.stacked = !r.value.stacked;
|
|
760
776
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
777
|
+
function Ae() {
|
|
778
|
+
r.value.showTooltip = !r.value.showTooltip;
|
|
763
779
|
}
|
|
764
|
-
return
|
|
765
|
-
getData:
|
|
766
|
-
generateCsv:
|
|
767
|
-
generatePdf:
|
|
768
|
-
generateImage:
|
|
769
|
-
toggleTable:
|
|
770
|
-
toggleLabels:
|
|
771
|
-
toggleStack:
|
|
772
|
-
toggleTooltip:
|
|
773
|
-
}), (e, t) => (
|
|
774
|
-
style:
|
|
780
|
+
return Je({
|
|
781
|
+
getData: fa,
|
|
782
|
+
generateCsv: We,
|
|
783
|
+
generatePdf: Re,
|
|
784
|
+
generateImage: Ie,
|
|
785
|
+
toggleTable: Ye,
|
|
786
|
+
toggleLabels: Be,
|
|
787
|
+
toggleStack: Xe,
|
|
788
|
+
toggleTooltip: Ae
|
|
789
|
+
}), (e, t) => (S(), se("div", {
|
|
790
|
+
style: Z(`width:100%; position: relative;${a.value.responsive ? "height: 100%" : ""}`),
|
|
775
791
|
ref_key: "xy",
|
|
776
|
-
ref:
|
|
792
|
+
ref: ee,
|
|
777
793
|
id: `xy_canvas_${ne.value}`,
|
|
778
|
-
class:
|
|
794
|
+
class: ma(`vue-ui-donut ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
779
795
|
}, [
|
|
780
|
-
a.value.style.chart.title.text ? (
|
|
796
|
+
a.value.style.chart.title.text ? (S(), se("div", {
|
|
781
797
|
key: 0,
|
|
782
798
|
ref_key: "chartTitle",
|
|
783
|
-
ref:
|
|
784
|
-
style:
|
|
799
|
+
ref: xe,
|
|
800
|
+
style: Z(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
785
801
|
}, [
|
|
786
|
-
|
|
802
|
+
(S(), _(Ba, {
|
|
803
|
+
key: `title_${Ce.value}`,
|
|
787
804
|
config: {
|
|
788
805
|
title: {
|
|
789
806
|
cy: "xy-canvas-title",
|
|
@@ -794,109 +811,109 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
794
811
|
...a.value.style.chart.title.subtitle
|
|
795
812
|
}
|
|
796
813
|
}
|
|
797
|
-
}, null, 8, ["config"])
|
|
798
|
-
], 4)) :
|
|
799
|
-
a.value.userOptions.show && ce.value ? (
|
|
814
|
+
}, null, 8, ["config"]))
|
|
815
|
+
], 4)) : G("", !0),
|
|
816
|
+
a.value.userOptions.show && ce.value ? (S(), _(Ua, {
|
|
800
817
|
ref: "details",
|
|
801
|
-
key: `user_option_${
|
|
818
|
+
key: `user_option_${me.value}`,
|
|
802
819
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
803
820
|
color: a.value.style.chart.color,
|
|
804
|
-
isPrinting:
|
|
805
|
-
isImaging:
|
|
821
|
+
isPrinting: N(Te),
|
|
822
|
+
isImaging: N(Me),
|
|
806
823
|
uid: ne.value,
|
|
807
824
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
808
825
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
809
826
|
hasImg: a.value.userOptions.buttons.img,
|
|
810
827
|
hasXls: a.value.userOptions.buttons.csv,
|
|
811
828
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
812
|
-
hasStack:
|
|
829
|
+
hasStack: ge.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
813
830
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
814
|
-
hasTable:
|
|
831
|
+
hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
|
|
815
832
|
isFullscreen: ve.value,
|
|
816
|
-
isTooltip:
|
|
817
|
-
isStacked:
|
|
833
|
+
isTooltip: r.value.showTooltip,
|
|
834
|
+
isStacked: r.value.stacked,
|
|
818
835
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
819
|
-
chartElement:
|
|
820
|
-
onToggleFullscreen:
|
|
821
|
-
onGeneratePdf:
|
|
822
|
-
onGenerateCsv:
|
|
823
|
-
onGenerateImage:
|
|
824
|
-
onToggleTable:
|
|
825
|
-
onToggleLabels:
|
|
826
|
-
onToggleStack:
|
|
827
|
-
onToggleTooltip:
|
|
828
|
-
},
|
|
836
|
+
chartElement: ee.value,
|
|
837
|
+
onToggleFullscreen: ea,
|
|
838
|
+
onGeneratePdf: N(Re),
|
|
839
|
+
onGenerateCsv: We,
|
|
840
|
+
onGenerateImage: N(Ie),
|
|
841
|
+
onToggleTable: Ye,
|
|
842
|
+
onToggleLabels: Be,
|
|
843
|
+
onToggleStack: Xe,
|
|
844
|
+
onToggleTooltip: Ae
|
|
845
|
+
}, xa({ _: 2 }, [
|
|
829
846
|
e.$slots.optionTooltip ? {
|
|
830
847
|
name: "optionTooltip",
|
|
831
|
-
fn:
|
|
848
|
+
fn: m(() => [
|
|
832
849
|
k(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
833
850
|
]),
|
|
834
851
|
key: "0"
|
|
835
852
|
} : void 0,
|
|
836
853
|
e.$slots.optionPdf ? {
|
|
837
854
|
name: "optionPdf",
|
|
838
|
-
fn:
|
|
855
|
+
fn: m(() => [
|
|
839
856
|
k(e.$slots, "optionPdf", {}, void 0, !0)
|
|
840
857
|
]),
|
|
841
858
|
key: "1"
|
|
842
859
|
} : void 0,
|
|
843
860
|
e.$slots.optionCsv ? {
|
|
844
861
|
name: "optionCsv",
|
|
845
|
-
fn:
|
|
862
|
+
fn: m(() => [
|
|
846
863
|
k(e.$slots, "optionCsv", {}, void 0, !0)
|
|
847
864
|
]),
|
|
848
865
|
key: "2"
|
|
849
866
|
} : void 0,
|
|
850
867
|
e.$slots.optionImg ? {
|
|
851
868
|
name: "optionImg",
|
|
852
|
-
fn:
|
|
869
|
+
fn: m(() => [
|
|
853
870
|
k(e.$slots, "optionImg", {}, void 0, !0)
|
|
854
871
|
]),
|
|
855
872
|
key: "3"
|
|
856
873
|
} : void 0,
|
|
857
874
|
e.$slots.optionTable ? {
|
|
858
875
|
name: "optionTable",
|
|
859
|
-
fn:
|
|
876
|
+
fn: m(() => [
|
|
860
877
|
k(e.$slots, "optionTable", {}, void 0, !0)
|
|
861
878
|
]),
|
|
862
879
|
key: "4"
|
|
863
880
|
} : void 0,
|
|
864
881
|
e.$slots.optionLabels ? {
|
|
865
882
|
name: "optionLabels",
|
|
866
|
-
fn:
|
|
883
|
+
fn: m(() => [
|
|
867
884
|
k(e.$slots, "optionLabels", {}, void 0, !0)
|
|
868
885
|
]),
|
|
869
886
|
key: "5"
|
|
870
887
|
} : void 0,
|
|
871
888
|
e.$slots.optionStack ? {
|
|
872
889
|
name: "optionStack",
|
|
873
|
-
fn:
|
|
890
|
+
fn: m(() => [
|
|
874
891
|
k(e.$slots, "optionStack", {}, void 0, !0)
|
|
875
892
|
]),
|
|
876
893
|
key: "6"
|
|
877
894
|
} : void 0,
|
|
878
895
|
e.$slots.optionFullscreen ? {
|
|
879
896
|
name: "optionFullscreen",
|
|
880
|
-
fn:
|
|
881
|
-
k(e.$slots, "optionFullscreen",
|
|
897
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
898
|
+
k(e.$slots, "optionFullscreen", V(j({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
882
899
|
]),
|
|
883
900
|
key: "7"
|
|
884
901
|
} : void 0
|
|
885
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
886
|
-
|
|
902
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : G("", !0),
|
|
903
|
+
q("div", {
|
|
887
904
|
class: "vue-ui-xy-canvas",
|
|
888
|
-
style:
|
|
905
|
+
style: Z(`position: relative; aspect-ratio: ${ze.value}`),
|
|
889
906
|
ref_key: "container",
|
|
890
|
-
ref:
|
|
907
|
+
ref: B
|
|
891
908
|
}, [
|
|
892
|
-
ce.value ? (
|
|
909
|
+
ce.value ? (S(), se("canvas", {
|
|
893
910
|
key: 0,
|
|
894
911
|
ref_key: "canvas",
|
|
895
|
-
ref:
|
|
912
|
+
ref: $,
|
|
896
913
|
style: { width: "100%", height: "100%" },
|
|
897
|
-
onMousemove: t[0] || (t[0] = (o) =>
|
|
898
|
-
onMouseleave:
|
|
899
|
-
}, null, 544)) : (
|
|
914
|
+
onMousemove: t[0] || (t[0] = (o) => da(o)),
|
|
915
|
+
onMouseleave: ha
|
|
916
|
+
}, null, 544)) : (S(), _(Va, {
|
|
900
917
|
key: 1,
|
|
901
918
|
config: {
|
|
902
919
|
type: "line",
|
|
@@ -914,8 +931,8 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
914
931
|
}
|
|
915
932
|
}
|
|
916
933
|
}, null, 8, ["config"])),
|
|
917
|
-
|
|
918
|
-
show:
|
|
934
|
+
La(Wa, {
|
|
935
|
+
show: r.value.showTooltip && ae.value,
|
|
919
936
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
920
937
|
color: a.value.style.chart.tooltip.color,
|
|
921
938
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -924,83 +941,83 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
924
941
|
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
925
942
|
position: a.value.style.chart.tooltip.position,
|
|
926
943
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
927
|
-
parent:
|
|
928
|
-
content:
|
|
944
|
+
parent: $.value,
|
|
945
|
+
content: le.value,
|
|
929
946
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
930
|
-
isCustom:
|
|
947
|
+
isCustom: N(Ge)(a.value.style.chart.tooltip.customFormat)
|
|
931
948
|
}, {
|
|
932
|
-
"tooltip-before":
|
|
933
|
-
k(e.$slots, "tooltip-before",
|
|
949
|
+
"tooltip-before": m(() => [
|
|
950
|
+
k(e.$slots, "tooltip-before", V(j({ ...pe.value })), void 0, !0)
|
|
934
951
|
]),
|
|
935
|
-
"tooltip-after":
|
|
936
|
-
k(e.$slots, "tooltip-after",
|
|
952
|
+
"tooltip-after": m(() => [
|
|
953
|
+
k(e.$slots, "tooltip-after", V(j({ ...pe.value })), void 0, !0)
|
|
937
954
|
]),
|
|
938
955
|
_: 3
|
|
939
956
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
940
957
|
], 4),
|
|
941
|
-
|
|
958
|
+
q("div", {
|
|
942
959
|
ref_key: "chartSlicer",
|
|
943
|
-
ref:
|
|
944
|
-
style:
|
|
960
|
+
ref: ke,
|
|
961
|
+
style: Z(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
945
962
|
"data-html2canvas-ignore": ""
|
|
946
963
|
}, [
|
|
947
|
-
a.value.style.chart.zoom.show &&
|
|
964
|
+
a.value.style.chart.zoom.show && R.value > 1 ? (S(), _(Xa, {
|
|
948
965
|
key: `slicer_${be.value}`,
|
|
949
966
|
background: a.value.style.chart.zoom.color,
|
|
950
967
|
borderColor: a.value.style.chart.backgroundColor,
|
|
951
968
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
952
969
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
953
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
954
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
970
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? a.value.style.chart.grid.y.timeLabels.values[u.value.start] : "",
|
|
971
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] : "",
|
|
955
972
|
textColor: a.value.style.chart.color,
|
|
956
973
|
inputColor: a.value.style.chart.zoom.color,
|
|
957
974
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
958
|
-
max:
|
|
975
|
+
max: R.value,
|
|
959
976
|
min: 0,
|
|
960
|
-
valueStart:
|
|
961
|
-
valueEnd:
|
|
962
|
-
start:
|
|
963
|
-
"onUpdate:start": t[1] || (t[1] = (o) =>
|
|
964
|
-
end:
|
|
965
|
-
"onUpdate:end": t[2] || (t[2] = (o) =>
|
|
966
|
-
onReset:
|
|
977
|
+
valueStart: u.value.start,
|
|
978
|
+
valueEnd: u.value.end,
|
|
979
|
+
start: u.value.start,
|
|
980
|
+
"onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
|
|
981
|
+
end: u.value.end,
|
|
982
|
+
"onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
|
|
983
|
+
onReset: Fe
|
|
967
984
|
}, {
|
|
968
|
-
"reset-action":
|
|
969
|
-
k(e.$slots, "reset-action",
|
|
985
|
+
"reset-action": m(({ reset: o }) => [
|
|
986
|
+
k(e.$slots, "reset-action", V(j({ reset: o })), void 0, !0)
|
|
970
987
|
]),
|
|
971
988
|
_: 3
|
|
972
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
989
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : G("", !0)
|
|
973
990
|
], 4),
|
|
974
|
-
|
|
991
|
+
q("div", {
|
|
975
992
|
ref_key: "chartLegend",
|
|
976
|
-
ref:
|
|
993
|
+
ref: Le
|
|
977
994
|
}, [
|
|
978
|
-
a.value.style.chart.legend.show && ce.value ? (
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
onClickMarker: t[3] || (t[3] = ({ i: o }) =>
|
|
995
|
+
a.value.style.chart.legend.show && ce.value ? (S(), _(Ya, {
|
|
996
|
+
legendSet: De.value,
|
|
997
|
+
config: ya.value,
|
|
998
|
+
key: `legend_${Se.value}`,
|
|
999
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => Ne(o))
|
|
983
1000
|
}, {
|
|
984
|
-
item:
|
|
985
|
-
|
|
986
|
-
onClick: (
|
|
987
|
-
style:
|
|
988
|
-
},
|
|
1001
|
+
item: m(({ legend: o, index: i }) => [
|
|
1002
|
+
q("div", {
|
|
1003
|
+
onClick: (c) => o.segregate(),
|
|
1004
|
+
style: Z(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
|
|
1005
|
+
}, Ue(o.name), 13, Ja)
|
|
989
1006
|
]),
|
|
990
1007
|
_: 1
|
|
991
1008
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
992
1009
|
key: 1,
|
|
993
|
-
legend:
|
|
1010
|
+
legend: De.value
|
|
994
1011
|
}, void 0, !0)
|
|
995
1012
|
], 512),
|
|
996
|
-
e.$slots.watermark ? (
|
|
997
|
-
k(e.$slots, "watermark",
|
|
998
|
-
])) :
|
|
999
|
-
|
|
1013
|
+
e.$slots.watermark ? (S(), se("div", Ka, [
|
|
1014
|
+
k(e.$slots, "watermark", V(j({ isPrinting: N(Te) || N(Me) })), void 0, !0)
|
|
1015
|
+
])) : G("", !0),
|
|
1016
|
+
u.value.end - u.value.start < 200 ? (S(), _(Za, {
|
|
1000
1017
|
key: 3,
|
|
1001
1018
|
hideDetails: "",
|
|
1002
1019
|
config: {
|
|
1003
|
-
open:
|
|
1020
|
+
open: r.value.showTable,
|
|
1004
1021
|
maxHeight: 1e4,
|
|
1005
1022
|
body: {
|
|
1006
1023
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1012,29 +1029,30 @@ const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
|
1012
1029
|
}
|
|
1013
1030
|
}
|
|
1014
1031
|
}, {
|
|
1015
|
-
content:
|
|
1016
|
-
|
|
1032
|
+
content: m(() => [
|
|
1033
|
+
(S(), _(Ga, {
|
|
1034
|
+
key: `table_${we.value}`,
|
|
1017
1035
|
colNames: re.value.colNames,
|
|
1018
1036
|
head: re.value.head,
|
|
1019
1037
|
body: re.value.body,
|
|
1020
1038
|
config: re.value.config,
|
|
1021
1039
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1022
|
-
onClose: t[4] || (t[4] = (o) =>
|
|
1040
|
+
onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
|
|
1023
1041
|
}, {
|
|
1024
|
-
th:
|
|
1025
|
-
|
|
1042
|
+
th: m(({ th: o }) => [
|
|
1043
|
+
q("div", { innerHTML: o }, null, 8, Qa)
|
|
1026
1044
|
]),
|
|
1027
|
-
td:
|
|
1028
|
-
|
|
1045
|
+
td: m(({ td: o }) => [
|
|
1046
|
+
ka(Ue(o), 1)
|
|
1029
1047
|
]),
|
|
1030
1048
|
_: 1
|
|
1031
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1049
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1032
1050
|
]),
|
|
1033
1051
|
_: 1
|
|
1034
|
-
}, 8, ["config"])) :
|
|
1035
|
-
], 14,
|
|
1052
|
+
}, 8, ["config"])) : G("", !0)
|
|
1053
|
+
], 14, qa));
|
|
1036
1054
|
}
|
|
1037
|
-
},
|
|
1055
|
+
}, yl = /* @__PURE__ */ ja(el, [["__scopeId", "data-v-24379a68"]]);
|
|
1038
1056
|
export {
|
|
1039
|
-
|
|
1057
|
+
yl as default
|
|
1040
1058
|
};
|