vue-data-ui 2.4.1 → 2.4.3
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/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { ref as v, computed 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 {
|
|
14
|
-
|
|
1
|
+
import { ref as v, computed as m, watch as Y, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as P, createCommentVNode as _, unref as A, createSlots as Ca, withCtx as b, renderSlot as x, normalizeProps as B, guardReactiveProps as X, createElementVNode as K, createVNode as wa, toDisplayString as Ve, createTextVNode as Sa } from "vue";
|
|
2
|
+
import { u as $a, c as za, t as Ta, a as Ma, p as D, b as Ra, C as ge, i as Q, f as ee, I as Ia, d as je, $ as Oa, o as Pa, e as Fa, x as qe, y as Ea, q as Na, r as _a, s as ae, l as Aa } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { d as Da, c as Ha, a as Je, t as Wa, l as w, r as pe, b as F, p as Ke, u as Ya } from "./useResponsive-BY8tgM1n.js";
|
|
4
|
+
import { _ as Ba } from "./Tooltip-Cz24YLfw.js";
|
|
5
|
+
import { L as Xa } from "./Legend-DNgTCgEK.js";
|
|
6
|
+
import { _ as Ua } from "./Title-C5pIfQAz.js";
|
|
7
|
+
import { S as Za } from "./Slicer-TfpN2Cr4.js";
|
|
8
|
+
import { u as Ga, U as Va } from "./usePrinter-CiHd1FwD.js";
|
|
9
|
+
import ja from "./vue-ui-accordion-DfUfL2dI.js";
|
|
10
|
+
import { D as qa } from "./DataTable-DYqC2pqu.js";
|
|
11
|
+
import Ja from "./vue-ui-skeleton-BYssP0K4.js";
|
|
12
|
+
import { u as Qe } from "./useNestedProp-B33hazbH.js";
|
|
13
|
+
import { P as Ka } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
import { _ as Qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const et = ["id"], at = ["onClick"], tt = {
|
|
15
16
|
key: 2,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, lt = ["innerHTML"], ot = {
|
|
18
19
|
__name: "vue-ui-xy-canvas",
|
|
19
20
|
props: {
|
|
20
21
|
dataset: {
|
|
@@ -31,40 +32,40 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
get: () =>
|
|
35
|
+
setup(be, { expose: ea, emit: aa }) {
|
|
36
|
+
const E = be, { vue_ui_xy_canvas: ta } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), M = v(1), te = v(!1), d = v(null), le = v(""), me = v(null), S = v([]), H = v(1), N = v(!0), z = v(!0), ve = v(null), xe = v(0), Le = v(0), ce = v(!1), ke = v(null), Ce = v(null), we = v(null), Se = v(null), $e = v(0), ze = v(0), Te = v(0), de = m(() => !!E.dataset && E.dataset.length), a = m({
|
|
37
|
+
get: () => Me(),
|
|
37
38
|
set: (e) => e
|
|
38
39
|
});
|
|
39
|
-
function
|
|
40
|
-
const e =
|
|
41
|
-
userConfig:
|
|
42
|
-
defaultConfig:
|
|
40
|
+
function Me() {
|
|
41
|
+
const e = Qe({
|
|
42
|
+
userConfig: E.config,
|
|
43
|
+
defaultConfig: ta
|
|
43
44
|
});
|
|
44
45
|
return e.theme ? {
|
|
45
|
-
...
|
|
46
|
-
userConfig:
|
|
46
|
+
...Qe({
|
|
47
|
+
userConfig: Ta.vue_ui_xy_canvas[e.theme] || E.config,
|
|
47
48
|
defaultConfig: e
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: Ma[e.theme] || D
|
|
50
51
|
} : e;
|
|
51
52
|
}
|
|
52
|
-
Y(() =>
|
|
53
|
-
a.value =
|
|
53
|
+
Y(() => E.config, (e) => {
|
|
54
|
+
a.value = Me(), De(), $e.value += 1, ze.value += 1, Te.value += 1;
|
|
54
55
|
}, { deep: !0 });
|
|
55
|
-
const
|
|
56
|
-
elementId: `xy_canvas_${
|
|
56
|
+
const Re = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Oe, generatePdf: Pe, generateImage: Fe } = Ga({
|
|
57
|
+
elementId: `xy_canvas_${ie.value}`,
|
|
57
58
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
58
|
-
}),
|
|
59
|
+
}), u = v({
|
|
59
60
|
showTable: a.value.table.show,
|
|
60
61
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
61
62
|
stacked: a.value.style.chart.stacked,
|
|
62
63
|
showTooltip: a.value.style.chart.tooltip.show
|
|
63
64
|
});
|
|
64
|
-
function
|
|
65
|
-
|
|
65
|
+
function la(e) {
|
|
66
|
+
ce.value = e, Le.value += 1;
|
|
66
67
|
}
|
|
67
|
-
const
|
|
68
|
+
const Ee = m(() => Ra(a.value.customPalette)), R = m(() => W.value ? Math.max(...W.value.filter((e, l) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = m(() => {
|
|
68
69
|
const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
69
70
|
return {
|
|
70
71
|
canvasWidth: f.value,
|
|
@@ -75,49 +76,49 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
75
76
|
bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
|
|
76
77
|
width: e,
|
|
77
78
|
height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
78
|
-
slot: e / (
|
|
79
|
+
slot: e / (r.value.end - r.value.start)
|
|
79
80
|
};
|
|
80
81
|
});
|
|
81
|
-
function
|
|
82
|
-
return e /
|
|
82
|
+
function Ne(e, l) {
|
|
83
|
+
return e / l;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
86
|
-
const T = c.min < 0 ? Math.abs(c.min) : 0, I =
|
|
87
|
-
let O,
|
|
88
|
-
e && (O = Math.abs(c.min),
|
|
89
|
-
let
|
|
90
|
-
return g === null ?
|
|
91
|
-
x:
|
|
92
|
-
y:
|
|
93
|
-
value:
|
|
85
|
+
function oa({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
|
|
86
|
+
return l.map((k, ye) => {
|
|
87
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ne(k + T, T + c.max);
|
|
88
|
+
let O, G;
|
|
89
|
+
e && (O = Math.abs(c.min), G = Ne(k + O, c.max + O));
|
|
90
|
+
let V = 0;
|
|
91
|
+
return g === null ? V = t.value.bottom - t.value.height * (e ? G : I) : V = t.value.bottom - y - n * (e ? G : I), {
|
|
92
|
+
x: t.value.left + t.value.slot * ye + t.value.slot / 2,
|
|
93
|
+
y: V,
|
|
94
|
+
value: k
|
|
94
95
|
};
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
const p =
|
|
98
|
-
const e = Math.min(...W.value.filter((n, g) => !
|
|
99
|
-
y:
|
|
100
|
-
x:
|
|
98
|
+
const p = m(() => {
|
|
99
|
+
const e = Math.min(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...W.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = ge(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
|
|
100
|
+
y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
|
|
101
|
+
x: t.value.left - 8,
|
|
101
102
|
value: n
|
|
102
103
|
}));
|
|
103
104
|
return {
|
|
104
105
|
absoluteMin: i,
|
|
105
|
-
max:
|
|
106
|
+
max: l,
|
|
106
107
|
min: e,
|
|
107
108
|
scale: o,
|
|
108
109
|
yLabels: y,
|
|
109
110
|
zero: c
|
|
110
111
|
};
|
|
111
|
-
}),
|
|
112
|
+
}), ra = m(() => h.value.map((e) => `
|
|
112
113
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
113
114
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
114
115
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
115
116
|
</svg>
|
|
116
117
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
117
|
-
<span>${
|
|
118
|
+
<span>${Q(
|
|
118
119
|
a.value.style.chart.dataLabels.formatter,
|
|
119
120
|
e.series[d.value],
|
|
120
|
-
|
|
121
|
+
ee({
|
|
121
122
|
p: e.prefix || "",
|
|
122
123
|
v: e.series[d.value],
|
|
123
124
|
s: e.suffix || "",
|
|
@@ -126,88 +127,88 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
126
127
|
{ datapoint: e, seriesIndex: d.value }
|
|
127
128
|
)}</span>
|
|
128
129
|
</div>
|
|
129
|
-
`)), W =
|
|
130
|
+
`)), W = m(() => E.dataset.map((e, l) => ({
|
|
130
131
|
...e,
|
|
131
|
-
series:
|
|
132
|
-
absoluteIndex:
|
|
133
|
-
color:
|
|
132
|
+
series: Ia(e.series),
|
|
133
|
+
absoluteIndex: l,
|
|
134
|
+
color: je(e.color || Ee.value[l] || D[l] || D[l % D.length])
|
|
134
135
|
})));
|
|
135
136
|
Y(R, (e) => {
|
|
136
|
-
e &&
|
|
137
|
+
e && _e();
|
|
137
138
|
});
|
|
138
|
-
const h =
|
|
139
|
+
const h = m(() => Oa(W.value.filter((e, l) => !S.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
139
140
|
...e,
|
|
140
|
-
series: e.series.slice(
|
|
141
|
-
})).map((e,
|
|
141
|
+
series: e.series.slice(r.value.start, r.value.end)
|
|
142
|
+
})).map((e, l) => {
|
|
142
143
|
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
143
144
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
144
145
|
const y = {
|
|
145
|
-
ratios: e.series.filter((
|
|
146
|
+
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
146
147
|
valueMin: o,
|
|
147
148
|
valueMax: i
|
|
148
149
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
149
150
|
let g;
|
|
150
|
-
e.autoScaling ? g =
|
|
151
|
-
const
|
|
151
|
+
e.autoScaling ? g = ge(y.valueMin, y.valueMax, n) : g = ge(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
|
|
152
|
+
const k = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, ye = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? t.value.height * e.stackRatio - ye : t.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
|
|
152
153
|
let O;
|
|
153
|
-
e.autoScaling &&
|
|
154
|
-
const
|
|
155
|
-
y:
|
|
156
|
-
x:
|
|
157
|
-
value:
|
|
158
|
-
})),
|
|
159
|
-
hasAutoScale:
|
|
154
|
+
e.autoScaling && u.value.stacked && i <= 0 ? O = t.value.bottom - k - T : O = t.value.bottom - k - T * (I / (g.max + I));
|
|
155
|
+
const G = g.ticks.map((j, ma) => ({
|
|
156
|
+
y: t.value.bottom - k - T * (ma / (g.ticks.length - 1)),
|
|
157
|
+
x: t.value.left - 8,
|
|
158
|
+
value: j
|
|
159
|
+
})), V = oa({
|
|
160
|
+
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
160
161
|
series: e.series,
|
|
161
|
-
min:
|
|
162
|
-
max:
|
|
163
|
-
scale:
|
|
164
|
-
yOffset:
|
|
162
|
+
min: u.value.stacked ? o : p.value.min,
|
|
163
|
+
max: u.value.stacked ? i : p.value.max,
|
|
164
|
+
scale: u.value.stacked ? g : p.value.scale,
|
|
165
|
+
yOffset: k,
|
|
165
166
|
individualHeight: T,
|
|
166
|
-
stackIndex:
|
|
167
|
+
stackIndex: u.value.stacked ? l : null
|
|
167
168
|
});
|
|
168
169
|
return {
|
|
169
170
|
...e,
|
|
170
|
-
coordinatesLine:
|
|
171
|
+
coordinatesLine: V,
|
|
171
172
|
min: o,
|
|
172
173
|
max: i,
|
|
173
174
|
localScale: g,
|
|
174
175
|
localZero: O,
|
|
175
176
|
localMin: I,
|
|
176
|
-
localYLabels:
|
|
177
|
-
yOffset:
|
|
177
|
+
localYLabels: G,
|
|
178
|
+
yOffset: k,
|
|
178
179
|
individualHeight: T
|
|
179
180
|
};
|
|
180
|
-
})),
|
|
181
|
+
})), r = v({
|
|
181
182
|
start: 0,
|
|
182
183
|
end: R.value
|
|
183
184
|
});
|
|
184
|
-
function
|
|
185
|
-
|
|
185
|
+
function _e() {
|
|
186
|
+
r.value = {
|
|
186
187
|
start: 0,
|
|
187
188
|
end: R.value
|
|
188
|
-
},
|
|
189
|
+
}, xe.value += 1;
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
191
|
+
const ua = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), L = m(() => h.value.filter((e) => e.type === "bar"));
|
|
192
|
+
function sa() {
|
|
192
193
|
if (!$.value)
|
|
193
194
|
return;
|
|
194
|
-
const e =
|
|
195
|
-
$.value.width = e * H.value * 2, $.value.height =
|
|
195
|
+
const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
|
|
196
|
+
$.value.width = e * H.value * 2, $.value.height = l * H.value * 2, f.value = e * H.value * 2, M.value = l * H.value * 2, s.value.scale(H.value, H.value), he();
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
199
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
200
|
-
for (let
|
|
201
|
-
|
|
198
|
+
function na() {
|
|
199
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
|
|
200
|
+
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
201
|
+
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
202
|
+
w(
|
|
202
203
|
s.value,
|
|
203
204
|
[
|
|
204
205
|
{
|
|
205
|
-
x:
|
|
206
|
-
y:
|
|
206
|
+
x: t.value.left + t.value.slot * l,
|
|
207
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
207
208
|
},
|
|
208
209
|
{
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
210
|
+
x: t.value.left + t.value.slot * l,
|
|
211
|
+
y: t.value.bottom - e.yOffset
|
|
211
212
|
}
|
|
212
213
|
],
|
|
213
214
|
{
|
|
@@ -215,28 +216,28 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
218
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
218
|
-
e.localYLabels.forEach((
|
|
219
|
-
o < e.localYLabels.length - 1 &&
|
|
219
|
+
e.localYLabels.forEach((l, o) => {
|
|
220
|
+
o < e.localYLabels.length - 1 && pe(
|
|
220
221
|
s.value,
|
|
221
222
|
[
|
|
222
|
-
{ x:
|
|
223
|
-
{ x:
|
|
224
|
-
{ x:
|
|
225
|
-
{ x:
|
|
223
|
+
{ x: t.value.left, y: l.y },
|
|
224
|
+
{ x: t.value.right, y: l.y },
|
|
225
|
+
{ x: t.value.right, y: e.localYLabels[o + 1].y },
|
|
226
|
+
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
226
227
|
],
|
|
227
228
|
{
|
|
228
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
229
|
+
fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
229
230
|
strokeColor: "transparent"
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
});
|
|
233
234
|
}) : h.value.forEach((e) => {
|
|
234
|
-
e.localYLabels.slice(
|
|
235
|
-
|
|
235
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
236
|
+
w(
|
|
236
237
|
s.value,
|
|
237
238
|
[
|
|
238
|
-
{ x:
|
|
239
|
-
{ x:
|
|
239
|
+
{ x: t.value.left, y: l.y },
|
|
240
|
+
{ x: t.value.right, y: l.y }
|
|
240
241
|
],
|
|
241
242
|
{
|
|
242
243
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -244,11 +245,11 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
244
245
|
);
|
|
245
246
|
});
|
|
246
247
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
247
|
-
|
|
248
|
+
w(
|
|
248
249
|
s.value,
|
|
249
250
|
[
|
|
250
|
-
{ x:
|
|
251
|
-
{ x:
|
|
251
|
+
{ x: t.value.left, y: e.localZero },
|
|
252
|
+
{ x: t.value.right, y: e.localZero }
|
|
252
253
|
],
|
|
253
254
|
{
|
|
254
255
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -256,40 +257,40 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
256
257
|
}
|
|
257
258
|
);
|
|
258
259
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
259
|
-
|
|
260
|
+
w(
|
|
260
261
|
s.value,
|
|
261
262
|
[
|
|
262
|
-
{ x:
|
|
263
|
-
{ x:
|
|
263
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
264
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
264
265
|
],
|
|
265
266
|
{
|
|
266
267
|
color: e.color
|
|
267
268
|
}
|
|
268
|
-
),
|
|
269
|
+
), w(
|
|
269
270
|
s.value,
|
|
270
271
|
[
|
|
271
|
-
{ x:
|
|
272
|
-
{ x:
|
|
272
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
273
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
273
274
|
],
|
|
274
275
|
{
|
|
275
276
|
color: e.color
|
|
276
277
|
}
|
|
277
|
-
), e.localYLabels.forEach((
|
|
278
|
-
|
|
278
|
+
), e.localYLabels.forEach((l, o) => {
|
|
279
|
+
F(
|
|
279
280
|
s.value,
|
|
280
|
-
|
|
281
|
+
Q(
|
|
281
282
|
a.value.style.chart.dataLabels.formatter,
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
l.value,
|
|
284
|
+
ee({
|
|
284
285
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
285
|
-
v:
|
|
286
|
+
v: l.value,
|
|
286
287
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
287
288
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
288
289
|
}),
|
|
289
|
-
{ datapoint:
|
|
290
|
+
{ datapoint: l, seriesIndex: o }
|
|
290
291
|
),
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
293
|
+
l.y,
|
|
293
294
|
{
|
|
294
295
|
align: "right",
|
|
295
296
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -298,11 +299,11 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
298
299
|
);
|
|
299
300
|
});
|
|
300
301
|
}), h.value.forEach((e) => {
|
|
301
|
-
|
|
302
|
+
F(
|
|
302
303
|
s.value,
|
|
303
304
|
e.name,
|
|
304
305
|
f.value / 35,
|
|
305
|
-
|
|
306
|
+
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
306
307
|
{
|
|
307
308
|
align: "center",
|
|
308
309
|
rotation: -90,
|
|
@@ -312,86 +313,86 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
312
313
|
);
|
|
313
314
|
});
|
|
314
315
|
else {
|
|
315
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
316
|
-
for (let e = 0; e <
|
|
317
|
-
|
|
316
|
+
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
317
|
+
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
318
|
+
w(
|
|
318
319
|
s.value,
|
|
319
320
|
[
|
|
320
|
-
{ x:
|
|
321
|
-
{ x:
|
|
321
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
322
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
322
323
|
],
|
|
323
324
|
{
|
|
324
325
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
325
326
|
}
|
|
326
327
|
);
|
|
327
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
328
|
-
|
|
328
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
|
|
329
|
+
l < p.value.yLabels.length - 1 && pe(
|
|
329
330
|
s.value,
|
|
330
331
|
[
|
|
331
|
-
{ x:
|
|
332
|
-
{ x:
|
|
333
|
-
{ x:
|
|
334
|
-
{ x:
|
|
332
|
+
{ x: t.value.left, y: e.y },
|
|
333
|
+
{ x: t.value.right, y: e.y },
|
|
334
|
+
{ x: t.value.right, y: p.value.yLabels[l + 1].y },
|
|
335
|
+
{ x: t.value.left, y: p.value.yLabels[l + 1].y }
|
|
335
336
|
],
|
|
336
337
|
{
|
|
337
|
-
fillColor:
|
|
338
|
+
fillColor: l % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
338
339
|
strokeColor: "transparent"
|
|
339
340
|
}
|
|
340
341
|
);
|
|
341
342
|
}) : p.value.yLabels.forEach((e) => {
|
|
342
|
-
|
|
343
|
+
w(
|
|
343
344
|
s.value,
|
|
344
345
|
[
|
|
345
|
-
{ x:
|
|
346
|
-
{ x:
|
|
346
|
+
{ x: t.value.left, y: e.y },
|
|
347
|
+
{ x: t.value.right, y: e.y }
|
|
347
348
|
],
|
|
348
349
|
{
|
|
349
350
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
350
351
|
}
|
|
351
352
|
);
|
|
352
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
353
|
+
})), a.value.style.chart.grid.y.showAxis && w(
|
|
353
354
|
s.value,
|
|
354
355
|
[
|
|
355
|
-
{ x:
|
|
356
|
-
{ x:
|
|
356
|
+
{ x: t.value.left, y: t.value.top },
|
|
357
|
+
{ x: t.value.left, y: t.value.bottom }
|
|
357
358
|
],
|
|
358
359
|
{
|
|
359
360
|
color: a.value.style.chart.grid.y.axisColor,
|
|
360
361
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
361
362
|
}
|
|
362
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
363
|
+
), a.value.style.chart.grid.x.showAxis && w(
|
|
363
364
|
s.value,
|
|
364
365
|
[
|
|
365
|
-
{ x:
|
|
366
|
-
{ x:
|
|
366
|
+
{ x: t.value.left, y: t.value.bottom },
|
|
367
|
+
{ x: t.value.right, y: t.value.bottom }
|
|
367
368
|
],
|
|
368
369
|
{
|
|
369
370
|
color: a.value.style.chart.grid.x.axisColor,
|
|
370
371
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
371
372
|
}
|
|
372
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
373
|
+
), a.value.style.chart.grid.zeroLine.show && w(
|
|
373
374
|
s.value,
|
|
374
375
|
[
|
|
375
|
-
{ x:
|
|
376
|
-
{ x:
|
|
376
|
+
{ x: t.value.left, y: p.value.zero },
|
|
377
|
+
{ x: t.value.right, y: p.value.zero }
|
|
377
378
|
],
|
|
378
379
|
{
|
|
379
380
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
380
381
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
381
382
|
}
|
|
382
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
383
|
-
|
|
383
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
|
|
384
|
+
F(
|
|
384
385
|
s.value,
|
|
385
|
-
|
|
386
|
+
Q(
|
|
386
387
|
a.value.style.chart.dataLabels.formatter,
|
|
387
388
|
e.value,
|
|
388
|
-
|
|
389
|
+
ee({
|
|
389
390
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
390
391
|
v: e.value,
|
|
391
392
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
392
393
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
393
394
|
}),
|
|
394
|
-
{ datapoint: e, seriesIndex:
|
|
395
|
+
{ datapoint: e, seriesIndex: l }
|
|
395
396
|
),
|
|
396
397
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
397
398
|
e.y,
|
|
@@ -403,18 +404,18 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
403
404
|
);
|
|
404
405
|
});
|
|
405
406
|
}
|
|
406
|
-
a.value.style.chart.grid.y.axisName &&
|
|
407
|
+
a.value.style.chart.grid.y.axisName && F(
|
|
407
408
|
s.value,
|
|
408
409
|
a.value.style.chart.grid.y.axisName,
|
|
409
410
|
f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
410
|
-
|
|
411
|
+
t.value.bottom - t.value.height / 2,
|
|
411
412
|
{
|
|
412
413
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
413
414
|
color: a.value.style.chart.color,
|
|
414
415
|
align: "center",
|
|
415
416
|
rotation: 90
|
|
416
417
|
}
|
|
417
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
418
|
+
), a.value.style.chart.grid.x.axisName && F(
|
|
418
419
|
s.value,
|
|
419
420
|
a.value.style.chart.grid.x.axisName,
|
|
420
421
|
f.value / 2,
|
|
@@ -426,12 +427,12 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
426
427
|
}
|
|
427
428
|
);
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
-
for (let
|
|
431
|
-
const o = (d.value ===
|
|
432
|
-
|
|
430
|
+
function ia(e) {
|
|
431
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
432
|
+
const o = (d.value === l ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
433
|
+
Je(
|
|
433
434
|
s.value,
|
|
434
|
-
{ x: e.coordinatesLine[
|
|
435
|
+
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
435
436
|
o,
|
|
436
437
|
{
|
|
437
438
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -441,23 +442,23 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
441
442
|
);
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
|
-
function
|
|
445
|
-
for (let
|
|
446
|
-
|
|
445
|
+
function va(e) {
|
|
446
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
447
|
+
F(
|
|
447
448
|
s.value,
|
|
448
|
-
|
|
449
|
+
Q(
|
|
449
450
|
a.value.style.chart.dataLabels.formatter,
|
|
450
|
-
e.coordinatesLine[
|
|
451
|
-
|
|
451
|
+
e.coordinatesLine[l].value,
|
|
452
|
+
ee({
|
|
452
453
|
p: e.prefix || "",
|
|
453
|
-
v: e.coordinatesLine[
|
|
454
|
+
v: e.coordinatesLine[l].value,
|
|
454
455
|
s: e.suffix || "",
|
|
455
456
|
r: e.rounding || 0
|
|
456
457
|
}),
|
|
457
|
-
{ datapoint: e.coordinatesLine[
|
|
458
|
+
{ datapoint: e.coordinatesLine[l], seriesIndex: l }
|
|
458
459
|
),
|
|
459
|
-
e.coordinatesLine[
|
|
460
|
-
e.coordinatesLine[
|
|
460
|
+
e.coordinatesLine[l].x,
|
|
461
|
+
e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
|
|
461
462
|
{
|
|
462
463
|
align: "center",
|
|
463
464
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -467,27 +468,27 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
467
468
|
}
|
|
468
469
|
);
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
for (let e =
|
|
472
|
-
(
|
|
471
|
+
function ca() {
|
|
472
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
473
|
+
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === d.value + r.value.start)) && F(
|
|
473
474
|
s.value,
|
|
474
475
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
475
|
-
|
|
476
|
-
|
|
476
|
+
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
477
|
+
t.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
477
478
|
{
|
|
478
479
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
479
480
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
480
|
-
color:
|
|
481
|
+
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
481
482
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
482
483
|
}
|
|
483
484
|
);
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
-
|
|
486
|
+
function Ae() {
|
|
487
|
+
w(
|
|
487
488
|
s.value,
|
|
488
489
|
[
|
|
489
|
-
{ x:
|
|
490
|
-
{ x:
|
|
490
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
|
|
491
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
|
|
491
492
|
],
|
|
492
493
|
{
|
|
493
494
|
color: a.value.style.chart.selector.color,
|
|
@@ -497,26 +498,26 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
497
498
|
}
|
|
498
499
|
);
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
-
|
|
501
|
+
function da() {
|
|
502
|
+
L.value.forEach((e, l) => {
|
|
502
503
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
503
|
-
|
|
504
|
+
pe(
|
|
504
505
|
s.value,
|
|
505
506
|
[
|
|
506
507
|
{
|
|
507
|
-
x:
|
|
508
|
-
y:
|
|
508
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)),
|
|
509
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
509
510
|
},
|
|
510
511
|
{
|
|
511
|
-
x:
|
|
512
|
-
y:
|
|
512
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : L.value.length),
|
|
513
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
513
514
|
},
|
|
514
515
|
{
|
|
515
|
-
x:
|
|
516
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : L.value.length),
|
|
516
517
|
y: e.coordinatesLine[o].y
|
|
517
518
|
},
|
|
518
519
|
{
|
|
519
|
-
x:
|
|
520
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)),
|
|
520
521
|
y: e.coordinatesLine[o].y
|
|
521
522
|
}
|
|
522
523
|
],
|
|
@@ -530,20 +531,20 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
530
531
|
},
|
|
531
532
|
end: {
|
|
532
533
|
x: e.coordinatesLine[o].x,
|
|
533
|
-
y:
|
|
534
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
534
535
|
},
|
|
535
536
|
stops: [
|
|
536
537
|
{ offset: 0, color: e.color },
|
|
537
|
-
{ offset: 1, color:
|
|
538
|
+
{ offset: 1, color: Aa(e.color, 0.5) }
|
|
538
539
|
]
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
|
-
),
|
|
542
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && F(
|
|
542
543
|
s.value,
|
|
543
|
-
|
|
544
|
+
Q(
|
|
544
545
|
a.value.style.chart.dataLabels.formatter,
|
|
545
546
|
e.coordinatesLine[o].value,
|
|
546
|
-
|
|
547
|
+
ee({
|
|
547
548
|
p: e.prefix || "",
|
|
548
549
|
v: e.coordinatesLine[o].value,
|
|
549
550
|
s: e.suffix || "",
|
|
@@ -551,8 +552,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
551
552
|
}),
|
|
552
553
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
553
554
|
),
|
|
554
|
-
|
|
555
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
555
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / L.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * L.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : L.value.length),
|
|
556
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
556
557
|
{
|
|
557
558
|
align: "center",
|
|
558
559
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -563,33 +564,33 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
563
564
|
);
|
|
564
565
|
});
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
-
e.useArea ?
|
|
567
|
+
function ha(e) {
|
|
568
|
+
e.useArea ? u.value.stacked ? Ke(
|
|
568
569
|
s.value,
|
|
569
570
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
570
571
|
{
|
|
571
|
-
fillColor:
|
|
572
|
+
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
572
573
|
strokeColor: "transparent"
|
|
573
574
|
}
|
|
574
|
-
) :
|
|
575
|
+
) : Ke(
|
|
575
576
|
s.value,
|
|
576
577
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
577
578
|
{
|
|
578
|
-
fillColor:
|
|
579
|
+
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
579
580
|
strokeColor: "transparent"
|
|
580
581
|
}
|
|
581
|
-
) :
|
|
582
|
+
) : w(s.value, e.coordinatesLine, {
|
|
582
583
|
color: e.color,
|
|
583
584
|
lineWidth: 3
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
-
h.value.forEach((e,
|
|
588
|
-
|
|
587
|
+
function fa() {
|
|
588
|
+
h.value.forEach((e, l) => {
|
|
589
|
+
w(
|
|
589
590
|
s.value,
|
|
590
591
|
[
|
|
591
|
-
{ x:
|
|
592
|
-
{ x:
|
|
592
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
593
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
593
594
|
],
|
|
594
595
|
{
|
|
595
596
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -598,13 +599,13 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
598
599
|
);
|
|
599
600
|
});
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
(e.type === "line" || !e.type) &&
|
|
604
|
-
}),
|
|
602
|
+
function he() {
|
|
603
|
+
na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && Ae(), da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ua.value.forEach((e) => {
|
|
604
|
+
(e.type === "line" || !e.type) && ha(e), z.value && (ia(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && va(e));
|
|
605
|
+
}), ve.value = Ha($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && Ae(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
605
606
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
606
607
|
if (!e.coordinatesLine[d.value]) return;
|
|
607
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
608
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Je(
|
|
608
609
|
s.value,
|
|
609
610
|
{
|
|
610
611
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -618,29 +619,29 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
618
619
|
}
|
|
619
620
|
);
|
|
620
621
|
}
|
|
621
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
622
|
+
})), a.value.style.chart.grid.y.timeLabels.show && ca(), N.value = !1;
|
|
622
623
|
}
|
|
623
|
-
const
|
|
624
|
-
z.value = !0,
|
|
624
|
+
const oe = Da(() => {
|
|
625
|
+
z.value = !0, sa();
|
|
625
626
|
}, R.value > 200 ? 10 : 1, !z.value);
|
|
626
|
-
function
|
|
627
|
-
const { left:
|
|
628
|
-
if (o * 2 <
|
|
629
|
-
|
|
627
|
+
function ya(e) {
|
|
628
|
+
const { left: l } = $.value.getBoundingClientRect(), o = e.clientX - l;
|
|
629
|
+
if (o * 2 < t.value.left || o * 2 > t.value.right) {
|
|
630
|
+
te.value = !1, d.value = null;
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
const i = o * 2 -
|
|
633
|
-
if (d.value = Math.floor(i /
|
|
633
|
+
const i = o * 2 - t.value.left;
|
|
634
|
+
if (d.value = Math.floor(i / t.value.slot), te.value = !0, !z.value) return;
|
|
634
635
|
let c = "";
|
|
635
636
|
const y = a.value.style.chart.tooltip.customFormat;
|
|
636
|
-
|
|
637
|
+
qe(y) && Ea(() => y({
|
|
637
638
|
seriesIndex: d.value,
|
|
638
639
|
datapoint: h.value.map((n) => ({
|
|
639
640
|
shape: n.shape || null,
|
|
640
641
|
name: n.name,
|
|
641
642
|
color: n.color,
|
|
642
643
|
type: n.type || "line",
|
|
643
|
-
value: n.series.find((g,
|
|
644
|
+
value: n.series.find((g, k) => k === d.value)
|
|
644
645
|
})),
|
|
645
646
|
series: h.value,
|
|
646
647
|
config: a.value
|
|
@@ -651,83 +652,84 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
651
652
|
name: n.name,
|
|
652
653
|
color: n.color,
|
|
653
654
|
type: n.type || "line",
|
|
654
|
-
value: n.series.find((g,
|
|
655
|
+
value: n.series.find((g, k) => k === d.value)
|
|
655
656
|
})),
|
|
656
657
|
series: h.value,
|
|
657
658
|
config: a.value
|
|
658
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
659
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.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(r.value.start, r.value.end)[d.value]}</div>`), c += ra.value.join(""), le.value = c), z.value = !1;
|
|
659
660
|
}
|
|
660
661
|
Y(() => d.value, (e) => {
|
|
661
|
-
|
|
662
|
-
}), Y(() =>
|
|
663
|
-
|
|
662
|
+
oe();
|
|
663
|
+
}), Y(() => r.value, (e) => {
|
|
664
|
+
N.value = !0, he();
|
|
664
665
|
}, {
|
|
665
666
|
deep: !0
|
|
666
|
-
}), Y(() =>
|
|
667
|
-
|
|
668
|
-
}), Y(() =>
|
|
669
|
-
|
|
667
|
+
}), Y(() => u.value.showDataLabels, (e) => {
|
|
668
|
+
N.value = !0, he();
|
|
669
|
+
}), Y(() => u.value.stacked, (e) => {
|
|
670
|
+
N.value = !0, z.value = !0, oe();
|
|
670
671
|
});
|
|
671
|
-
function
|
|
672
|
-
|
|
672
|
+
function ga() {
|
|
673
|
+
te.value = !1, d.value = null, le.value = "";
|
|
673
674
|
}
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
|
|
675
|
+
const re = v(null), ue = v(null);
|
|
676
|
+
xa(() => {
|
|
677
|
+
De();
|
|
677
678
|
});
|
|
678
|
-
function
|
|
679
|
-
if (
|
|
679
|
+
function De() {
|
|
680
|
+
if (Pa(E.dataset) ? Fa({
|
|
680
681
|
componentName: "VueUiXyCanvas",
|
|
681
682
|
type: "dataset"
|
|
682
683
|
}) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
683
|
-
const e =
|
|
684
|
-
const { width:
|
|
685
|
-
chart:
|
|
686
|
-
title: a.value.style.chart.title.text ?
|
|
687
|
-
legend: a.value.style.chart.legend.show ?
|
|
688
|
-
slicer: a.value.style.chart.zoom.show && R.value > 1 ?
|
|
684
|
+
const e = Wa(() => {
|
|
685
|
+
const { width: l, height: o } = Ya({
|
|
686
|
+
chart: U.value,
|
|
687
|
+
title: a.value.style.chart.title.text ? ke.value : null,
|
|
688
|
+
legend: a.value.style.chart.legend.show ? Ce.value : null,
|
|
689
|
+
slicer: a.value.style.chart.zoom.show && R.value > 1 ? we.value : null,
|
|
690
|
+
source: Se.value
|
|
689
691
|
});
|
|
690
|
-
|
|
692
|
+
Re.value = `${l} / ${o}`;
|
|
691
693
|
});
|
|
692
|
-
|
|
694
|
+
re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
|
|
693
695
|
}
|
|
694
696
|
ue.value = new ResizeObserver((e) => {
|
|
695
|
-
for (const
|
|
696
|
-
|
|
697
|
-
}), ue.value.observe(
|
|
697
|
+
for (const l of e)
|
|
698
|
+
l.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
699
|
+
}), ue.value.observe(Z.value);
|
|
698
700
|
}
|
|
699
|
-
|
|
700
|
-
ue.value && ue.value.disconnect(),
|
|
701
|
+
La(() => {
|
|
702
|
+
ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
|
|
701
703
|
});
|
|
702
|
-
function
|
|
703
|
-
|
|
704
|
+
function He(e) {
|
|
705
|
+
aa("selectLegend", h.value.find((l) => l.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((l) => l !== e) : S.value.push(e), N.value = !0, oe();
|
|
704
706
|
}
|
|
705
|
-
const
|
|
707
|
+
const We = m(() => W.value.map((e, l) => ({
|
|
706
708
|
...e,
|
|
707
709
|
name: e.name,
|
|
708
|
-
color:
|
|
710
|
+
color: je(e.color) || Ee.value[l] || D[l] || D[l % D.length],
|
|
709
711
|
shape: e.shape || "circle",
|
|
710
712
|
prefix: e.prefix || "",
|
|
711
713
|
suffix: e.suffix || "",
|
|
712
714
|
rounding: e.rounding || 0
|
|
713
715
|
})).map((e) => ({
|
|
714
716
|
...e,
|
|
715
|
-
opacity:
|
|
716
|
-
segregate: () =>
|
|
717
|
-
isSegregated:
|
|
718
|
-
}))),
|
|
717
|
+
opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
718
|
+
segregate: () => He(e.absoluteIndex),
|
|
719
|
+
isSegregated: S.value.includes(e.absoluteIndex)
|
|
720
|
+
}))), pa = m(() => ({
|
|
719
721
|
cy: "donut-div-legend",
|
|
720
722
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
721
723
|
color: a.value.style.chart.legend.color,
|
|
722
724
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
723
725
|
paddingBottom: 12,
|
|
724
726
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
725
|
-
})),
|
|
727
|
+
})), se = m(() => {
|
|
726
728
|
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>');
|
|
727
|
-
let
|
|
729
|
+
let l = [];
|
|
728
730
|
for (let c = 0; c < R.value; c += 1) {
|
|
729
731
|
const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
730
|
-
|
|
732
|
+
l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((y ?? 0).toFixed(a.value.table.rounding)));
|
|
731
733
|
}
|
|
732
734
|
const o = {
|
|
733
735
|
th: {
|
|
@@ -742,65 +744,70 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
742
744
|
},
|
|
743
745
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
744
746
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
745
|
-
return { head: e, body:
|
|
746
|
-
}),
|
|
747
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
748
|
+
}), Ye = m(() => {
|
|
747
749
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
748
750
|
const e = h.value.map((o) => ({
|
|
749
751
|
label: o.name,
|
|
750
752
|
color: o.color,
|
|
751
753
|
type: o.type
|
|
752
|
-
})),
|
|
753
|
-
for (let o =
|
|
754
|
+
})), l = [];
|
|
755
|
+
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
754
756
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
755
757
|
h.value.forEach((c) => {
|
|
756
758
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
757
|
-
}),
|
|
759
|
+
}), l.push(i);
|
|
758
760
|
}
|
|
759
|
-
return { head: e, body:
|
|
761
|
+
return { head: e, body: l };
|
|
760
762
|
});
|
|
761
|
-
function
|
|
762
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
763
|
-
|
|
763
|
+
function Be() {
|
|
764
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...Ye.value.head.map((y) => y.label)], o = Ye.value.body, i = e.concat([l]).concat(o), c = Na(i);
|
|
765
|
+
_a({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
764
766
|
}
|
|
765
|
-
function
|
|
767
|
+
function ba() {
|
|
766
768
|
return h.value;
|
|
767
769
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
770
|
+
function Xe() {
|
|
771
|
+
u.value.showTable = !u.value.showTable;
|
|
772
|
+
}
|
|
773
|
+
function Ue() {
|
|
774
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
770
775
|
}
|
|
771
|
-
function
|
|
772
|
-
|
|
776
|
+
function Ze() {
|
|
777
|
+
u.value.stacked = !u.value.stacked;
|
|
773
778
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
779
|
+
function Ge() {
|
|
780
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
776
781
|
}
|
|
777
|
-
|
|
778
|
-
|
|
782
|
+
const ne = v(!1);
|
|
783
|
+
function fe() {
|
|
784
|
+
ne.value = !ne.value;
|
|
779
785
|
}
|
|
780
|
-
return
|
|
781
|
-
getData:
|
|
782
|
-
generateCsv:
|
|
783
|
-
generatePdf:
|
|
784
|
-
generateImage:
|
|
785
|
-
toggleTable:
|
|
786
|
-
toggleLabels:
|
|
787
|
-
toggleStack:
|
|
788
|
-
toggleTooltip:
|
|
789
|
-
|
|
790
|
-
|
|
786
|
+
return ea({
|
|
787
|
+
getData: ba,
|
|
788
|
+
generateCsv: Be,
|
|
789
|
+
generatePdf: Pe,
|
|
790
|
+
generateImage: Fe,
|
|
791
|
+
toggleTable: Xe,
|
|
792
|
+
toggleLabels: Ue,
|
|
793
|
+
toggleStack: Ze,
|
|
794
|
+
toggleTooltip: Ge,
|
|
795
|
+
toggleAnnotator: fe
|
|
796
|
+
}), (e, l) => (C(), q("div", {
|
|
797
|
+
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
791
798
|
ref_key: "xy",
|
|
792
|
-
ref:
|
|
793
|
-
id: `xy_canvas_${
|
|
794
|
-
class:
|
|
799
|
+
ref: U,
|
|
800
|
+
id: `xy_canvas_${ie.value}`,
|
|
801
|
+
class: ka(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
795
802
|
}, [
|
|
796
|
-
a.value.style.chart.title.text ? (
|
|
803
|
+
a.value.style.chart.title.text ? (C(), q("div", {
|
|
797
804
|
key: 0,
|
|
798
805
|
ref_key: "chartTitle",
|
|
799
|
-
ref:
|
|
800
|
-
style:
|
|
806
|
+
ref: ke,
|
|
807
|
+
style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
801
808
|
}, [
|
|
802
|
-
(
|
|
803
|
-
key: `title_${
|
|
809
|
+
(C(), P(Ua, {
|
|
810
|
+
key: `title_${$e.value}`,
|
|
804
811
|
config: {
|
|
805
812
|
title: {
|
|
806
813
|
cy: "xy-canvas-title",
|
|
@@ -812,109 +819,119 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
812
819
|
}
|
|
813
820
|
}
|
|
814
821
|
}, null, 8, ["config"]))
|
|
815
|
-
], 4)) :
|
|
816
|
-
a.value.userOptions.show &&
|
|
822
|
+
], 4)) : _("", !0),
|
|
823
|
+
a.value.userOptions.show && de.value ? (C(), P(Va, {
|
|
817
824
|
ref: "details",
|
|
818
|
-
key: `user_option_${
|
|
825
|
+
key: `user_option_${Le.value}`,
|
|
819
826
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
820
827
|
color: a.value.style.chart.color,
|
|
821
|
-
isPrinting:
|
|
822
|
-
isImaging:
|
|
823
|
-
uid:
|
|
828
|
+
isPrinting: A(Ie),
|
|
829
|
+
isImaging: A(Oe),
|
|
830
|
+
uid: ie.value,
|
|
824
831
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
825
832
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
826
833
|
hasImg: a.value.userOptions.buttons.img,
|
|
827
834
|
hasXls: a.value.userOptions.buttons.csv,
|
|
828
835
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
829
|
-
hasStack:
|
|
836
|
+
hasStack: be.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
830
837
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
831
|
-
hasTable:
|
|
832
|
-
isFullscreen:
|
|
833
|
-
isTooltip:
|
|
834
|
-
isStacked:
|
|
838
|
+
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
839
|
+
isFullscreen: ce.value,
|
|
840
|
+
isTooltip: u.value.showTooltip,
|
|
841
|
+
isStacked: u.value.stacked,
|
|
835
842
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
836
|
-
chartElement:
|
|
843
|
+
chartElement: U.value,
|
|
837
844
|
position: a.value.userOptions.position,
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
845
|
+
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
846
|
+
isAnnotation: ne.value,
|
|
847
|
+
onToggleFullscreen: la,
|
|
848
|
+
onGeneratePdf: A(Pe),
|
|
849
|
+
onGenerateCsv: Be,
|
|
850
|
+
onGenerateImage: A(Fe),
|
|
851
|
+
onToggleTable: Xe,
|
|
852
|
+
onToggleLabels: Ue,
|
|
853
|
+
onToggleStack: Ze,
|
|
854
|
+
onToggleTooltip: Ge,
|
|
855
|
+
onToggleAnnotator: fe
|
|
856
|
+
}, Ca({ _: 2 }, [
|
|
847
857
|
e.$slots.optionTooltip ? {
|
|
848
858
|
name: "optionTooltip",
|
|
849
|
-
fn:
|
|
850
|
-
|
|
859
|
+
fn: b(() => [
|
|
860
|
+
x(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
851
861
|
]),
|
|
852
862
|
key: "0"
|
|
853
863
|
} : void 0,
|
|
854
864
|
e.$slots.optionPdf ? {
|
|
855
865
|
name: "optionPdf",
|
|
856
|
-
fn:
|
|
857
|
-
|
|
866
|
+
fn: b(() => [
|
|
867
|
+
x(e.$slots, "optionPdf", {}, void 0, !0)
|
|
858
868
|
]),
|
|
859
869
|
key: "1"
|
|
860
870
|
} : void 0,
|
|
861
871
|
e.$slots.optionCsv ? {
|
|
862
872
|
name: "optionCsv",
|
|
863
|
-
fn:
|
|
864
|
-
|
|
873
|
+
fn: b(() => [
|
|
874
|
+
x(e.$slots, "optionCsv", {}, void 0, !0)
|
|
865
875
|
]),
|
|
866
876
|
key: "2"
|
|
867
877
|
} : void 0,
|
|
868
878
|
e.$slots.optionImg ? {
|
|
869
879
|
name: "optionImg",
|
|
870
|
-
fn:
|
|
871
|
-
|
|
880
|
+
fn: b(() => [
|
|
881
|
+
x(e.$slots, "optionImg", {}, void 0, !0)
|
|
872
882
|
]),
|
|
873
883
|
key: "3"
|
|
874
884
|
} : void 0,
|
|
875
885
|
e.$slots.optionTable ? {
|
|
876
886
|
name: "optionTable",
|
|
877
|
-
fn:
|
|
878
|
-
|
|
887
|
+
fn: b(() => [
|
|
888
|
+
x(e.$slots, "optionTable", {}, void 0, !0)
|
|
879
889
|
]),
|
|
880
890
|
key: "4"
|
|
881
891
|
} : void 0,
|
|
882
892
|
e.$slots.optionLabels ? {
|
|
883
893
|
name: "optionLabels",
|
|
884
|
-
fn:
|
|
885
|
-
|
|
894
|
+
fn: b(() => [
|
|
895
|
+
x(e.$slots, "optionLabels", {}, void 0, !0)
|
|
886
896
|
]),
|
|
887
897
|
key: "5"
|
|
888
898
|
} : void 0,
|
|
889
899
|
e.$slots.optionStack ? {
|
|
890
900
|
name: "optionStack",
|
|
891
|
-
fn:
|
|
892
|
-
|
|
901
|
+
fn: b(() => [
|
|
902
|
+
x(e.$slots, "optionStack", {}, void 0, !0)
|
|
893
903
|
]),
|
|
894
904
|
key: "6"
|
|
895
905
|
} : void 0,
|
|
896
906
|
e.$slots.optionFullscreen ? {
|
|
897
907
|
name: "optionFullscreen",
|
|
898
|
-
fn:
|
|
899
|
-
|
|
908
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
909
|
+
x(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
900
910
|
]),
|
|
901
911
|
key: "7"
|
|
912
|
+
} : void 0,
|
|
913
|
+
e.$slots.optionAnnotator ? {
|
|
914
|
+
name: "optionAnnotator",
|
|
915
|
+
fn: b(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
916
|
+
x(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
917
|
+
]),
|
|
918
|
+
key: "8"
|
|
902
919
|
} : void 0
|
|
903
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
904
|
-
|
|
920
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
|
|
921
|
+
K("div", {
|
|
905
922
|
class: "vue-ui-xy-canvas",
|
|
906
|
-
style:
|
|
923
|
+
style: J(`position: relative; aspect-ratio: ${Re.value}`),
|
|
907
924
|
ref_key: "container",
|
|
908
|
-
ref:
|
|
925
|
+
ref: Z
|
|
909
926
|
}, [
|
|
910
|
-
|
|
927
|
+
de.value ? (C(), q("canvas", {
|
|
911
928
|
key: 0,
|
|
912
929
|
ref_key: "canvas",
|
|
913
930
|
ref: $,
|
|
914
931
|
style: { width: "100%", height: "100%" },
|
|
915
|
-
onMousemove:
|
|
916
|
-
onMouseleave:
|
|
917
|
-
}, null, 544)) : (
|
|
932
|
+
onMousemove: l[0] || (l[0] = (o) => ya(o)),
|
|
933
|
+
onMouseleave: ga
|
|
934
|
+
}, null, 544)) : (C(), P(Ja, {
|
|
918
935
|
key: 1,
|
|
919
936
|
config: {
|
|
920
937
|
type: "line",
|
|
@@ -932,8 +949,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
932
949
|
}
|
|
933
950
|
}
|
|
934
951
|
}, null, 8, ["config"])),
|
|
935
|
-
|
|
936
|
-
show:
|
|
952
|
+
wa(Ba, {
|
|
953
|
+
show: u.value.showTooltip && te.value,
|
|
937
954
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
938
955
|
color: a.value.style.chart.tooltip.color,
|
|
939
956
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -945,80 +962,88 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
945
962
|
parent: $.value,
|
|
946
963
|
content: le.value,
|
|
947
964
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
948
|
-
isCustom:
|
|
965
|
+
isCustom: A(qe)(a.value.style.chart.tooltip.customFormat)
|
|
949
966
|
}, {
|
|
950
|
-
"tooltip-before":
|
|
951
|
-
|
|
967
|
+
"tooltip-before": b(() => [
|
|
968
|
+
x(e.$slots, "tooltip-before", B(X({ ...me.value })), void 0, !0)
|
|
952
969
|
]),
|
|
953
|
-
"tooltip-after":
|
|
954
|
-
|
|
970
|
+
"tooltip-after": b(() => [
|
|
971
|
+
x(e.$slots, "tooltip-after", B(X({ ...me.value })), void 0, !0)
|
|
955
972
|
]),
|
|
956
973
|
_: 3
|
|
957
974
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
958
975
|
], 4),
|
|
959
|
-
|
|
976
|
+
K("div", {
|
|
960
977
|
ref_key: "chartSlicer",
|
|
961
|
-
ref:
|
|
962
|
-
style:
|
|
978
|
+
ref: we,
|
|
979
|
+
style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
963
980
|
"data-html2canvas-ignore": ""
|
|
964
981
|
}, [
|
|
965
|
-
a.value.style.chart.zoom.show && R.value > 1 ? (
|
|
966
|
-
key: `slicer_${
|
|
982
|
+
a.value.style.chart.zoom.show && R.value > 1 ? (C(), P(Za, {
|
|
983
|
+
key: `slicer_${xe.value}`,
|
|
967
984
|
background: a.value.style.chart.zoom.color,
|
|
968
985
|
borderColor: a.value.style.chart.backgroundColor,
|
|
969
986
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
970
987
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
971
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
972
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
988
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
|
|
989
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
|
|
973
990
|
textColor: a.value.style.chart.color,
|
|
974
991
|
inputColor: a.value.style.chart.zoom.color,
|
|
975
992
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
976
993
|
max: R.value,
|
|
977
994
|
min: 0,
|
|
978
|
-
valueStart:
|
|
979
|
-
valueEnd:
|
|
980
|
-
start:
|
|
981
|
-
"onUpdate:start":
|
|
982
|
-
end:
|
|
983
|
-
"onUpdate:end":
|
|
984
|
-
onReset:
|
|
995
|
+
valueStart: r.value.start,
|
|
996
|
+
valueEnd: r.value.end,
|
|
997
|
+
start: r.value.start,
|
|
998
|
+
"onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
|
|
999
|
+
end: r.value.end,
|
|
1000
|
+
"onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
|
|
1001
|
+
onReset: _e
|
|
985
1002
|
}, {
|
|
986
|
-
"reset-action":
|
|
987
|
-
|
|
1003
|
+
"reset-action": b(({ reset: o }) => [
|
|
1004
|
+
x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
|
|
988
1005
|
]),
|
|
989
1006
|
_: 3
|
|
990
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
1007
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
|
|
991
1008
|
], 4),
|
|
992
|
-
|
|
1009
|
+
K("div", {
|
|
993
1010
|
ref_key: "chartLegend",
|
|
994
|
-
ref:
|
|
1011
|
+
ref: Ce
|
|
995
1012
|
}, [
|
|
996
|
-
a.value.style.chart.legend.show &&
|
|
997
|
-
legendSet:
|
|
998
|
-
config:
|
|
999
|
-
key: `legend_${
|
|
1000
|
-
onClickMarker:
|
|
1013
|
+
a.value.style.chart.legend.show && de.value ? (C(), P(Xa, {
|
|
1014
|
+
legendSet: We.value,
|
|
1015
|
+
config: pa.value,
|
|
1016
|
+
key: `legend_${Te.value}`,
|
|
1017
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => He(o))
|
|
1001
1018
|
}, {
|
|
1002
|
-
item:
|
|
1003
|
-
|
|
1019
|
+
item: b(({ legend: o, index: i }) => [
|
|
1020
|
+
K("div", {
|
|
1004
1021
|
onClick: (c) => o.segregate(),
|
|
1005
|
-
style:
|
|
1006
|
-
},
|
|
1022
|
+
style: J(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
|
|
1023
|
+
}, Ve(o.name), 13, at)
|
|
1007
1024
|
]),
|
|
1008
1025
|
_: 1
|
|
1009
|
-
}, 8, ["legendSet", "config"])) :
|
|
1026
|
+
}, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
|
|
1010
1027
|
key: 1,
|
|
1011
|
-
legend:
|
|
1028
|
+
legend: We.value
|
|
1012
1029
|
}, void 0, !0)
|
|
1013
1030
|
], 512),
|
|
1014
|
-
e.$slots.watermark ? (
|
|
1015
|
-
|
|
1016
|
-
])) :
|
|
1017
|
-
|
|
1031
|
+
e.$slots.watermark ? (C(), q("div", tt, [
|
|
1032
|
+
x(e.$slots, "watermark", B(X({ isPrinting: A(Ie) || A(Oe) })), void 0, !0)
|
|
1033
|
+
])) : _("", !0),
|
|
1034
|
+
e.$slots.source ? (C(), q("div", {
|
|
1018
1035
|
key: 3,
|
|
1036
|
+
ref_key: "source",
|
|
1037
|
+
ref: Se,
|
|
1038
|
+
dir: "auto"
|
|
1039
|
+
}, [
|
|
1040
|
+
x(e.$slots, "source", {}, void 0, !0)
|
|
1041
|
+
], 512)) : _("", !0),
|
|
1042
|
+
r.value.end - r.value.start < 200 ? (C(), P(ja, {
|
|
1043
|
+
key: 4,
|
|
1019
1044
|
hideDetails: "",
|
|
1020
1045
|
config: {
|
|
1021
|
-
open:
|
|
1046
|
+
open: u.value.showTable,
|
|
1022
1047
|
maxHeight: 1e4,
|
|
1023
1048
|
body: {
|
|
1024
1049
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1030,30 +1055,38 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
1030
1055
|
}
|
|
1031
1056
|
}
|
|
1032
1057
|
}, {
|
|
1033
|
-
content:
|
|
1034
|
-
(
|
|
1035
|
-
key: `table_${
|
|
1036
|
-
colNames:
|
|
1037
|
-
head:
|
|
1038
|
-
body:
|
|
1039
|
-
config:
|
|
1058
|
+
content: b(() => [
|
|
1059
|
+
(C(), P(qa, {
|
|
1060
|
+
key: `table_${ze.value}`,
|
|
1061
|
+
colNames: se.value.colNames,
|
|
1062
|
+
head: se.value.head,
|
|
1063
|
+
body: se.value.body,
|
|
1064
|
+
config: se.value.config,
|
|
1040
1065
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1041
|
-
onClose:
|
|
1066
|
+
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1042
1067
|
}, {
|
|
1043
|
-
th:
|
|
1044
|
-
|
|
1068
|
+
th: b(({ th: o }) => [
|
|
1069
|
+
K("div", { innerHTML: o }, null, 8, lt)
|
|
1045
1070
|
]),
|
|
1046
|
-
td:
|
|
1047
|
-
|
|
1071
|
+
td: b(({ td: o }) => [
|
|
1072
|
+
Sa(Ve(o), 1)
|
|
1048
1073
|
]),
|
|
1049
1074
|
_: 1
|
|
1050
1075
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1051
1076
|
]),
|
|
1052
1077
|
_: 1
|
|
1053
|
-
}, 8, ["config"])) :
|
|
1054
|
-
|
|
1078
|
+
}, 8, ["config"])) : _("", !0),
|
|
1079
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (C(), P(Ka, {
|
|
1080
|
+
key: 5,
|
|
1081
|
+
parent: U.value,
|
|
1082
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1083
|
+
color: a.value.style.chart.color,
|
|
1084
|
+
active: ne.value,
|
|
1085
|
+
onClose: fe
|
|
1086
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1087
|
+
], 14, et));
|
|
1055
1088
|
}
|
|
1056
|
-
},
|
|
1089
|
+
}, mt = /* @__PURE__ */ Qa(ot, [["__scopeId", "data-v-53f30aa1"]]);
|
|
1057
1090
|
export {
|
|
1058
|
-
|
|
1091
|
+
mt as default
|
|
1059
1092
|
};
|