vue-data-ui 2.4.21 → 2.4.23
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-BuVX2WoN.js → Arrow-9iDBAuSV.js} +1 -1
- package/dist/{Arrow-DDe-g8rw.cjs → Arrow-DHtg3zTZ.cjs} +1 -1
- package/dist/{BaseIcon-BdKOa64A.cjs → BaseIcon-CZcJp0BK.cjs} +1 -1
- package/dist/{BaseIcon-BRSPQaGQ.js → BaseIcon-Cupc3HpM.js} +1 -1
- package/dist/{DataTable-H-KTkjfv.cjs → DataTable-CKU2-3VH.cjs} +1 -1
- package/dist/{DataTable-BpVz3DBX.js → DataTable-DpgVCStr.js} +2 -2
- package/dist/{Legend-hnLfwhmm.js → Legend-BItqGLYs.js} +1 -1
- package/dist/{Legend-G5Zc4QaZ.cjs → Legend-Lx_cdBGO.cjs} +1 -1
- package/dist/{PackageVersion-wqab02xF.js → PackageVersion-COTfkq01.js} +1 -1
- package/dist/{PackageVersion-BbQFSVXm.cjs → PackageVersion-KNK0JwMQ.cjs} +1 -1
- package/dist/{PenAndPaper-C_laA5mt.js → PenAndPaper-CCFQ3lIj.js} +3 -3
- package/dist/{PenAndPaper-BX8pR5oV.cjs → PenAndPaper-CUZAR9sb.cjs} +1 -1
- package/dist/{Shape-CJbFv4bs.cjs → Shape-CHo_V5NA.cjs} +1 -1
- package/dist/{Shape-QdnXSUyn.js → Shape-CNgd2ODn.js} +1 -1
- package/dist/{Slicer-DV1kBscZ.js → Slicer-1C1usd0L.js} +2 -2
- package/dist/{Slicer-C1blYfez.cjs → Slicer-DFzd-3uU.cjs} +1 -1
- package/dist/{Title-DBozX6nP.js → Title-ZcAPoasN.js} +1 -1
- package/dist/{Title-BRqTk-nT.cjs → Title-kzPAj9Bx.cjs} +1 -1
- package/dist/{Tooltip-Com_T8vc.js → Tooltip-CUGz5S0n.js} +1 -1
- package/dist/{Tooltip-DvGSIp31.cjs → Tooltip-rrH-I4us.cjs} +1 -1
- package/dist/index-BkeVohkW.cjs +9 -0
- package/dist/{index-hV0hU1iE.js → index-CWlhzm6K.js} +4 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-CRAUOmT5.js → useNestedProp-DH41HJ08.js} +1 -1
- package/dist/{useNestedProp-DSYpaLxP.cjs → useNestedProp-Dp6z-Sc4.cjs} +1 -1
- package/dist/{usePrinter-O2fMMTMe.cjs → usePrinter-DHOJP772.cjs} +1 -1
- package/dist/{usePrinter-y3d31M4g.js → usePrinter-DPAte4qe.js} +1 -1
- package/dist/{vue-data-ui-bEKZH8jG.js → vue-data-ui-pKAecUSS.js} +58 -58
- package/dist/{vue-data-ui-qBad3a6z.cjs → vue-data-ui-qgmGN1Q3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-f7YaBbrh.js → vue-ui-3d-bar-BXCwShkR.js} +9 -9
- package/dist/{vue-ui-3d-bar-CkqKnqQt.cjs → vue-ui-3d-bar-DWuaVLbf.cjs} +1 -1
- package/dist/{vue-ui-accordion-CaktYQoo.cjs → vue-ui-accordion-C5v0z_Xf.cjs} +1 -1
- package/dist/{vue-ui-accordion-m-s-7akB.js → vue-ui-accordion-DOBaAopj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-EKKYQu3N.cjs → vue-ui-age-pyramid-DbPAn9zq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DkfNZR86.js → vue-ui-age-pyramid-vyCFJjNt.js} +10 -10
- package/dist/{vue-ui-annotator-DrVu5Pu0.js → vue-ui-annotator-DGCuUvcA.js} +1 -1
- package/dist/{vue-ui-annotator-v07J6oQG.cjs → vue-ui-annotator-HVCwKP38.cjs} +1 -1
- package/dist/{vue-ui-bullet-CYDMehDZ.js → vue-ui-bullet-BQ6KtvIV.js} +8 -8
- package/dist/{vue-ui-bullet-CdG92x7A.cjs → vue-ui-bullet-gBARXd6m.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D9yN-yRo.cjs → vue-ui-candlestick-CH00Pe-m.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bw1O3QmK.js → vue-ui-candlestick-Cp94bu6U.js} +11 -11
- package/dist/{vue-ui-carousel-table-Cg6hAEVv.cjs → vue-ui-carousel-table-ArXyyfTX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-kcQa0FHw.js → vue-ui-carousel-table-DMlpUpov.js} +4 -4
- package/dist/{vue-ui-chestnut-Qu8c3_vB.cjs → vue-ui-chestnut-CGFD2NmV.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DE1AMXeX.js → vue-ui-chestnut-Ddab6epX.js} +8 -8
- package/dist/{vue-ui-cursor-DbfjKtpf.js → vue-ui-cursor-B7c72wC4.js} +2 -2
- package/dist/{vue-ui-cursor-DG8oufeh.cjs → vue-ui-cursor-BDlDJKU9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BbwgfxLx.cjs → vue-ui-dashboard-C3v2FoY4.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CAkCNUBh.js → vue-ui-dashboard-D6YQysXz.js} +2 -2
- package/dist/{vue-ui-digits-DgQkxULm.cjs → vue-ui-digits-C5t5G6WA.cjs} +1 -1
- package/dist/{vue-ui-digits-BaXAiH4u.js → vue-ui-digits-rKt3WYmo.js} +2 -2
- package/dist/{vue-ui-donut-BHzCOBu6.cjs → vue-ui-donut-CIaIft1i.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-C-TkUOr6.cjs → vue-ui-donut-evolution-EaxYPzHO.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DbU4RlP6.js → vue-ui-donut-evolution-x154QZPU.js} +11 -11
- package/dist/{vue-ui-donut-7GM_Wd1Y.js → vue-ui-donut-xEiPs0jw.js} +11 -11
- package/dist/{vue-ui-dumbbell-DacMeiTU.cjs → vue-ui-dumbbell-Bhw-LZKD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BacTx3zB.js → vue-ui-dumbbell-lk9voxo9.js} +10 -10
- package/dist/{vue-ui-flow-BUAvjG7i.cjs → vue-ui-flow-D282qMxZ.cjs} +1 -1
- package/dist/{vue-ui-flow-D2G0YWL9.js → vue-ui-flow-DDrRUTls.js} +9 -9
- package/dist/{vue-ui-galaxy-D6RFyIbQ.js → vue-ui-galaxy-CdrlGwj5.js} +11 -11
- package/dist/{vue-ui-galaxy-CxfV3BIw.cjs → vue-ui-galaxy-D1WO8wNh.cjs} +1 -1
- package/dist/{vue-ui-gauge-DNJXnyLw.js → vue-ui-gauge-BB0B-afr.js} +7 -7
- package/dist/{vue-ui-gauge-CJ5TKJpb.cjs → vue-ui-gauge-CLE1ripj.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Db7-gRmB.js → vue-ui-gizmo-BwhKySbh.js} +3 -3
- package/dist/{vue-ui-gizmo-BBA51j_0.cjs → vue-ui-gizmo-YAVeHEMb.cjs} +1 -1
- package/dist/{vue-ui-heatmap-KQj8Jbpt.cjs → vue-ui-heatmap-CA3rX3aP.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Ba6RMSTk.js → vue-ui-heatmap-HtfXbdDL.js} +10 -10
- package/dist/{vue-ui-kpi-C8wyHy1H.js → vue-ui-kpi-l3PRzR6k.js} +3 -3
- package/dist/{vue-ui-kpi-1srKxA1L.cjs → vue-ui-kpi-nA9x9jed.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DutVmCuC.js → vue-ui-mini-loader-08kgYVwW.js} +2 -2
- package/dist/{vue-ui-mini-loader-BgKTecng.cjs → vue-ui-mini-loader-C6NkSh4S.cjs} +1 -1
- package/dist/{vue-ui-molecule-BOkIojio.js → vue-ui-molecule-BAwlDL6Z.js} +11 -11
- package/dist/{vue-ui-molecule-CSezTn3m.cjs → vue-ui-molecule-BP_b5wFi.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CNTDrRs6.cjs → vue-ui-mood-radar-CiF-yLnM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C8U8PHaq.js → vue-ui-mood-radar-D7R1sJ-s.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DRWWnsdR.cjs → vue-ui-nested-donuts-BoiB2fYL.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Bv2D1uFd.js → vue-ui-nested-donuts-mi_bKP5P.js} +11 -11
- package/dist/{vue-ui-onion-CsnwbXED.cjs → vue-ui-onion-B_9x-PDA.cjs} +1 -1
- package/dist/{vue-ui-onion-CT9YjU8v.js → vue-ui-onion-DDcm9VKG.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-C8KCRAX1.cjs → vue-ui-parallel-coordinate-plot-B8Amex6j.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-in5qpfXf.js → vue-ui-parallel-coordinate-plot-BLXVSCmi.js} +12 -12
- package/dist/{vue-ui-quadrant-Bw-0aW4F.cjs → vue-ui-quadrant-BFEprQ_j.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C_9VNAXg.js → vue-ui-quadrant-BmPJLow1.js} +12 -12
- package/dist/{vue-ui-quick-chart-BDBlm9uu.js → vue-ui-quick-chart-B7Sotlr0.js} +9 -9
- package/dist/{vue-ui-quick-chart-C0YqMjyE.cjs → vue-ui-quick-chart-Cnb0C1nv.cjs} +1 -1
- package/dist/{vue-ui-radar-DXKMbeyW.cjs → vue-ui-radar-CYu4mixy.cjs} +1 -1
- package/dist/{vue-ui-radar-C2QM_ee9.js → vue-ui-radar-SYkVFE08.js} +12 -12
- package/dist/{vue-ui-rating-CsOknvaV.cjs → vue-ui-rating-36rj-wHU.cjs} +1 -1
- package/dist/{vue-ui-rating-DVpgv2AY.js → vue-ui-rating-452f1yMa.js} +2 -2
- package/dist/{vue-ui-relation-circle-OXfdAyky.js → vue-ui-relation-circle-CWbxQJsa.js} +7 -7
- package/dist/{vue-ui-relation-circle-ZA-M7aSc.cjs → vue-ui-relation-circle-DVuvBy9_.cjs} +1 -1
- package/dist/{vue-ui-rings-qLQ-gl21.js → vue-ui-rings-CDVcaS2n.js} +11 -11
- package/dist/{vue-ui-rings-rftqDu-q.cjs → vue-ui-rings-DBXvtevd.cjs} +1 -1
- package/dist/{vue-ui-scatter-4LbMvEAD.js → vue-ui-scatter-BG1X9kbp.js} +12 -12
- package/dist/{vue-ui-scatter-Cv2IcrVH.cjs → vue-ui-scatter-CjOuKwUh.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BV6ZYQRk.js → vue-ui-screenshot-CZkWSgQw.js} +1 -1
- package/dist/{vue-ui-screenshot-BgjnQNxG.cjs → vue-ui-screenshot-UevcnZpH.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DsRTbz6d.cjs → vue-ui-skeleton-Cu2s1RAC.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BY8Jg9a_.js → vue-ui-skeleton-D8lu0qH2.js} +3 -3
- package/dist/{vue-ui-smiley-DB3y8CIb.cjs → vue-ui-smiley-D9S4GXJs.cjs} +1 -1
- package/dist/{vue-ui-smiley-BQ_3uicm.js → vue-ui-smiley-ogUjJC93.js} +2 -2
- package/dist/{vue-ui-spark-trend-BhCJfY_p.js → vue-ui-spark-trend-8QH7-7XF.js} +5 -5
- package/dist/{vue-ui-spark-trend-Cgn7ONtS.cjs → vue-ui-spark-trend-C7kB_1Vw.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DxXt-GHr.js → vue-ui-sparkbar-CjH_X0R-.js} +4 -4
- package/dist/{vue-ui-sparkbar-D4GIhUXT.cjs → vue-ui-sparkbar-h8ikA2Sx.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BbltbIrq.cjs → vue-ui-sparkgauge-C9LFXNGj.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BCPkJveV.js → vue-ui-sparkgauge-Cs41GkQn.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BKcr2mFc.js → vue-ui-sparkhistogram-DTKMNIQK.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DzX6lkk8.cjs → vue-ui-sparkhistogram-FSp_ueqT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYHUFUOp.js → vue-ui-sparkline-BLA-tfpO.js} +4 -4
- package/dist/{vue-ui-sparkline-C-svTmFU.cjs → vue-ui-sparkline-Drr1pzx9.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Btag2osm.js → vue-ui-sparkstackbar-CfcRdnSX.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CL0uL_Te.cjs → vue-ui-sparkstackbar-CusKLPdp.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C2mRU7ya.js → vue-ui-stackbar-D0eu-fwT.js} +12 -12
- package/dist/{vue-ui-stackbar-CML7v_yU.cjs → vue-ui-stackbar-skhdwzKu.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Vn5sEcME.cjs → vue-ui-strip-plot-BAhwCR9h.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BIXF3VxN.js → vue-ui-strip-plot-C8OUrG4s.js} +11 -11
- package/dist/{vue-ui-table-CyuRalnp.js → vue-ui-table-Bu2uIl2l.js} +1 -1
- package/dist/{vue-ui-table-BbVpmm0B.cjs → vue-ui-table-DEGpMRSo.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DrQXQd41.cjs → vue-ui-table-heatmap-D8tpklnq.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DlGeS3l9.js → vue-ui-table-heatmap-zO08g4xR.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DauDTktD.cjs → vue-ui-table-sparkline-Di3fZVu4.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Yg2I33yZ.js → vue-ui-table-sparkline-lYobxmx6.js} +5 -5
- package/dist/{vue-ui-thermometer-Bglz0dOQ.cjs → vue-ui-thermometer-B2xrgXt1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DXwbqNrn.js → vue-ui-thermometer-BenXeMXf.js} +7 -7
- package/dist/{vue-ui-timer-CpSEl8UD.cjs → vue-ui-timer-CDB9r1W2.cjs} +1 -1
- package/dist/{vue-ui-timer-Brr7buaM.js → vue-ui-timer-LJyKKC2o.js} +5 -5
- package/dist/{vue-ui-tiremarks-DJowPFwY.js → vue-ui-tiremarks-DoTYOuot.js} +7 -7
- package/dist/{vue-ui-tiremarks-zdGmZNjo.cjs → vue-ui-tiremarks-Dy9gG1gc.cjs} +1 -1
- package/dist/{vue-ui-treemap-a7NSP656.cjs → vue-ui-treemap-BPz_AwA2.cjs} +1 -1
- package/dist/{vue-ui-treemap-Bn5JU5BI.js → vue-ui-treemap-CY5sCBQp.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CZxN7L9z.js → vue-ui-vertical-bar-B8kiRxLN.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BYG1vGlT.cjs → vue-ui-vertical-bar-DTOcnkWX.cjs} +1 -1
- package/dist/{vue-ui-waffle-CzUpKfkZ.js → vue-ui-waffle-B4RCOwEg.js} +11 -11
- package/dist/{vue-ui-waffle-BbDBOivH.cjs → vue-ui-waffle-Dv2YchrJ.cjs} +1 -1
- package/dist/{vue-ui-wheel-lN3uYCr4.cjs → vue-ui-wheel-C7wEmgol.cjs} +1 -1
- package/dist/{vue-ui-wheel-CCje_ZSc.js → vue-ui-wheel-Zk6U_Lnd.js} +7 -7
- package/dist/{vue-ui-word-cloud-D_5y92zN.js → vue-ui-word-cloud-5fxQJ65o.js} +10 -10
- package/dist/{vue-ui-word-cloud-BjvG3n7x.cjs → vue-ui-word-cloud-DIF9KUX-.cjs} +1 -1
- package/dist/{vue-ui-xy-B-WlwJXZ.cjs → vue-ui-xy-Bcb7loPC.cjs} +1 -1
- package/dist/{vue-ui-xy-Drm1aAb-.js → vue-ui-xy-BnasTV4L.js} +14 -14
- package/dist/{vue-ui-xy-canvas-jieVsnBN.js → vue-ui-xy-canvas-BIULd1f-.js} +316 -314
- package/dist/vue-ui-xy-canvas-Dc4l_P9H.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-CsQwCVqU.cjs +0 -9
- package/dist/vue-ui-xy-canvas-BHrq_CYD.cjs +0 -9
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
2
|
-
import { u as $a, c as za, t as Ta, a as Ma, p as
|
|
3
|
-
import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as
|
|
4
|
-
import { _ as Xa } from "./Tooltip-
|
|
5
|
-
import { L as Ua } from "./Legend-
|
|
6
|
-
import { _ as Za } from "./Title-
|
|
7
|
-
import { S as Ga } from "./Slicer-
|
|
8
|
-
import { u as Va, U as ja } from "./usePrinter-
|
|
9
|
-
import qa from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ja } from "./DataTable-
|
|
11
|
-
import Ka from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Qe } from "./useNestedProp-
|
|
13
|
-
import { P as Qa } from "./PenAndPaper-
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { ref as v, computed as b, watch as A, onMounted as xa, onBeforeUnmount as La, openBlock as C, createElementBlock as q, normalizeStyle as J, normalizeClass as ka, createBlock as F, createCommentVNode as _, unref as D, createSlots as Ca, withCtx as m, 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 H, b as Ra, C as xe, i as Q, f as ee, Y as Ia, I as Oa, d as je, a2 as Pa, o as Fa, e as Ea, x as qe, y as Na, q as Aa, r as _a, s as ae, l as Da } from "./index-CWlhzm6K.js";
|
|
3
|
+
import { d as Ha, c as Wa, a as Je, t as Ya, l as w, r as Le, b as E, p as Ke, u as Ba } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Xa } from "./Tooltip-CUGz5S0n.js";
|
|
5
|
+
import { L as Ua } from "./Legend-BItqGLYs.js";
|
|
6
|
+
import { _ as Za } from "./Title-ZcAPoasN.js";
|
|
7
|
+
import { S as Ga } from "./Slicer-1C1usd0L.js";
|
|
8
|
+
import { u as Va, U as ja } from "./usePrinter-DPAte4qe.js";
|
|
9
|
+
import qa from "./vue-ui-accordion-DOBaAopj.js";
|
|
10
|
+
import { D as Ja } from "./DataTable-DpgVCStr.js";
|
|
11
|
+
import Ka from "./vue-ui-skeleton-D8lu0qH2.js";
|
|
12
|
+
import { u as Qe } from "./useNestedProp-DH41HJ08.js";
|
|
13
|
+
import { P as Qa } from "./PenAndPaper-CCFQ3lIj.js";
|
|
14
|
+
import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const al = ["id"], ll = ["onClick"], tl = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, ol = ["innerHTML"], ul = {
|
|
19
19
|
__name: "vue-ui-xy-canvas",
|
|
20
20
|
props: {
|
|
21
21
|
dataset: {
|
|
@@ -32,84 +32,86 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
get: () =>
|
|
35
|
+
setup(ke, { expose: ea, emit: aa }) {
|
|
36
|
+
const M = ke, { vue_ui_xy_canvas: la } = $a(), ie = v(za()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), S = v([]), W = v(1), N = v(!0), z = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Te = v(null), Me = v(null), de = v(0), he = v(0), fe = v(0), ye = b(() => !!M.dataset && M.dataset.length), a = b({
|
|
37
|
+
get: () => Re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
});
|
|
40
|
-
function
|
|
40
|
+
function Re() {
|
|
41
41
|
const e = Qe({
|
|
42
|
-
userConfig:
|
|
43
|
-
defaultConfig:
|
|
42
|
+
userConfig: M.config,
|
|
43
|
+
defaultConfig: la
|
|
44
44
|
});
|
|
45
45
|
return e.theme ? {
|
|
46
46
|
...Qe({
|
|
47
|
-
userConfig: Ta.vue_ui_xy_canvas[e.theme] ||
|
|
47
|
+
userConfig: Ta.vue_ui_xy_canvas[e.theme] || M.config,
|
|
48
48
|
defaultConfig: e
|
|
49
49
|
}),
|
|
50
|
-
customPalette: Ma[e.theme] ||
|
|
50
|
+
customPalette: Ma[e.theme] || H
|
|
51
51
|
} : e;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
a.value =
|
|
53
|
+
A(() => M.config, (e) => {
|
|
54
|
+
a.value = Re(), pe(), de.value += 1, he.value += 1, fe.value += 1;
|
|
55
|
+
}, { deep: !0 }), A(() => M.dataset, () => {
|
|
56
|
+
pe(), de.value += 1, he.value += 1, fe.value += 1;
|
|
55
57
|
}, { deep: !0 });
|
|
56
|
-
const
|
|
58
|
+
const Ie = v(a.value.style.chart.aspectRatio), { isPrinting: Oe, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = Va({
|
|
57
59
|
elementId: `xy_canvas_${ie.value}`,
|
|
58
60
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
59
|
-
}),
|
|
61
|
+
}), r = v({
|
|
60
62
|
showTable: a.value.table.show,
|
|
61
63
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
62
64
|
stacked: a.value.style.chart.stacked,
|
|
63
65
|
showTooltip: a.value.style.chart.tooltip.show
|
|
64
66
|
});
|
|
65
|
-
function
|
|
66
|
-
ce.value = e,
|
|
67
|
+
function ta(e) {
|
|
68
|
+
ce.value = e, Se.value += 1;
|
|
67
69
|
}
|
|
68
|
-
const
|
|
70
|
+
const Ne = b(() => Ra(a.value.customPalette)), I = b(() => Y.value ? Math.max(...Y.value.filter((e, t) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
|
|
69
71
|
const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
70
72
|
return {
|
|
71
73
|
canvasWidth: f.value,
|
|
72
|
-
canvasHeight:
|
|
74
|
+
canvasHeight: R.value,
|
|
73
75
|
left: f.value * a.value.style.chart.paddingProportions.left,
|
|
74
|
-
top:
|
|
76
|
+
top: R.value * a.value.style.chart.paddingProportions.top,
|
|
75
77
|
right: f.value - f.value * a.value.style.chart.paddingProportions.right,
|
|
76
|
-
bottom:
|
|
78
|
+
bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
|
|
77
79
|
width: e,
|
|
78
|
-
height:
|
|
79
|
-
slot: e / (
|
|
80
|
+
height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
81
|
+
slot: e / (u.value.end - u.value.start)
|
|
80
82
|
};
|
|
81
83
|
});
|
|
82
|
-
function
|
|
83
|
-
return e /
|
|
84
|
+
function Ae(e, t) {
|
|
85
|
+
return e / t;
|
|
84
86
|
}
|
|
85
|
-
function oa({ hasAutoScale: e, series:
|
|
86
|
-
return
|
|
87
|
-
const T = c.min < 0 ? Math.abs(c.min) : 0,
|
|
88
|
-
let
|
|
89
|
-
e && (
|
|
87
|
+
function oa({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
|
|
88
|
+
return t.map((k, be) => {
|
|
89
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, O = Ae(k + T, T + c.max);
|
|
90
|
+
let P, G;
|
|
91
|
+
e && (P = Math.abs(c.min), G = Ae(k + P, c.max + P));
|
|
90
92
|
let V = 0;
|
|
91
|
-
return g === null ? V =
|
|
92
|
-
x:
|
|
93
|
+
return g === null ? V = l.value.bottom - l.value.height * (e ? G : O) : V = l.value.bottom - y - n * (e ? G : O), {
|
|
94
|
+
x: l.value.left + l.value.slot * be + l.value.slot / 2,
|
|
93
95
|
y: V,
|
|
94
96
|
value: k
|
|
95
97
|
};
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
|
-
const p =
|
|
99
|
-
const e = Math.min(...
|
|
100
|
-
y:
|
|
101
|
-
x:
|
|
100
|
+
const p = b(() => {
|
|
101
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Y.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o = xe(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)), y = o.ticks.map((n) => ({
|
|
102
|
+
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
103
|
+
x: l.value.left - 8,
|
|
102
104
|
value: n
|
|
103
105
|
}));
|
|
104
106
|
return {
|
|
105
107
|
absoluteMin: i,
|
|
106
|
-
max:
|
|
108
|
+
max: t,
|
|
107
109
|
min: e,
|
|
108
110
|
scale: o,
|
|
109
111
|
yLabels: y,
|
|
110
112
|
zero: c
|
|
111
113
|
};
|
|
112
|
-
}),
|
|
114
|
+
}), ua = b(() => h.value.map((e) => `
|
|
113
115
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
114
116
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
115
117
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -127,23 +129,23 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
127
129
|
{ datapoint: e, seriesIndex: d.value }
|
|
128
130
|
)}</span>
|
|
129
131
|
</div>
|
|
130
|
-
`)),
|
|
132
|
+
`)), Y = b(() => M.dataset.map((e, t) => ({
|
|
131
133
|
...e,
|
|
132
134
|
series: Ia({
|
|
133
135
|
data: Oa(e.series),
|
|
134
136
|
threshold: a.value.downsample.threshold
|
|
135
137
|
}),
|
|
136
|
-
absoluteIndex:
|
|
137
|
-
color: je(e.color ||
|
|
138
|
+
absoluteIndex: t,
|
|
139
|
+
color: je(e.color || Ne.value[t] || H[t] || H[t % H.length])
|
|
138
140
|
})));
|
|
139
|
-
|
|
140
|
-
e &&
|
|
141
|
+
A(I, (e) => {
|
|
142
|
+
e && _e();
|
|
141
143
|
});
|
|
142
|
-
const h =
|
|
144
|
+
const h = b(() => Pa(Y.value.filter((e, t) => !S.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
143
145
|
...e,
|
|
144
|
-
series: e.series.slice(
|
|
145
|
-
})).map((e,
|
|
146
|
-
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
146
|
+
series: e.series.slice(u.value.start, u.value.end)
|
|
147
|
+
})).map((e, t) => {
|
|
148
|
+
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, i = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
147
149
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
148
150
|
const y = {
|
|
149
151
|
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
@@ -151,23 +153,23 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
151
153
|
valueMax: i
|
|
152
154
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
153
155
|
let g;
|
|
154
|
-
e.autoScaling ? g =
|
|
155
|
-
const k =
|
|
156
|
-
let
|
|
157
|
-
e.autoScaling &&
|
|
158
|
-
const G = g.ticks.map((j,
|
|
159
|
-
y:
|
|
160
|
-
x:
|
|
156
|
+
e.autoScaling ? g = xe(y.valueMin, y.valueMax, n) : g = xe(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
|
|
157
|
+
const k = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, be = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = r.value.stacked ? l.value.height * e.stackRatio - be : l.value.height, O = g.min < 0 ? Math.abs(g.min) : 0;
|
|
158
|
+
let P;
|
|
159
|
+
e.autoScaling && r.value.stacked && i <= 0 ? P = l.value.bottom - k - T : P = l.value.bottom - k - T * (O / (g.max + O));
|
|
160
|
+
const G = g.ticks.map((j, ba) => ({
|
|
161
|
+
y: l.value.bottom - k - T * (ba / (g.ticks.length - 1)),
|
|
162
|
+
x: l.value.left - 8,
|
|
161
163
|
value: j
|
|
162
164
|
})), V = oa({
|
|
163
|
-
hasAutoScale:
|
|
165
|
+
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
164
166
|
series: e.series,
|
|
165
|
-
min:
|
|
166
|
-
max:
|
|
167
|
-
scale:
|
|
167
|
+
min: r.value.stacked ? o : p.value.min,
|
|
168
|
+
max: r.value.stacked ? i : p.value.max,
|
|
169
|
+
scale: r.value.stacked ? g : p.value.scale,
|
|
168
170
|
yOffset: k,
|
|
169
171
|
individualHeight: T,
|
|
170
|
-
stackIndex:
|
|
172
|
+
stackIndex: r.value.stacked ? t : null
|
|
171
173
|
});
|
|
172
174
|
return {
|
|
173
175
|
...e,
|
|
@@ -175,43 +177,43 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
175
177
|
min: o,
|
|
176
178
|
max: i,
|
|
177
179
|
localScale: g,
|
|
178
|
-
localZero:
|
|
179
|
-
localMin:
|
|
180
|
+
localZero: P,
|
|
181
|
+
localMin: O,
|
|
180
182
|
localYLabels: G,
|
|
181
183
|
yOffset: k,
|
|
182
184
|
individualHeight: T
|
|
183
185
|
};
|
|
184
|
-
})),
|
|
186
|
+
})), u = v({
|
|
185
187
|
start: 0,
|
|
186
|
-
end:
|
|
188
|
+
end: I.value
|
|
187
189
|
});
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
+
function _e() {
|
|
191
|
+
u.value = {
|
|
190
192
|
start: 0,
|
|
191
|
-
end:
|
|
192
|
-
},
|
|
193
|
+
end: I.value
|
|
194
|
+
}, we.value += 1;
|
|
193
195
|
}
|
|
194
|
-
const
|
|
196
|
+
const ra = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), L = b(() => h.value.filter((e) => e.type === "bar"));
|
|
195
197
|
function sa() {
|
|
196
198
|
if (!$.value)
|
|
197
199
|
return;
|
|
198
|
-
const e = Z.value.offsetWidth,
|
|
199
|
-
$.value.width = e *
|
|
200
|
+
const e = Z.value.offsetWidth, t = Z.value.offsetHeight;
|
|
201
|
+
$.value.width = e * W.value * 2, $.value.height = t * W.value * 2, f.value = e * W.value * 2, R.value = t * W.value * 2, s.value.scale(W.value, W.value), ge();
|
|
200
202
|
}
|
|
201
203
|
function na() {
|
|
202
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
203
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
204
|
-
for (let
|
|
204
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
|
|
205
|
+
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) => {
|
|
206
|
+
for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
|
|
205
207
|
w(
|
|
206
208
|
s.value,
|
|
207
209
|
[
|
|
208
210
|
{
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
211
|
+
x: l.value.left + l.value.slot * t,
|
|
212
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
211
213
|
},
|
|
212
214
|
{
|
|
213
|
-
x:
|
|
214
|
-
y:
|
|
215
|
+
x: l.value.left + l.value.slot * t,
|
|
216
|
+
y: l.value.bottom - e.yOffset
|
|
215
217
|
}
|
|
216
218
|
],
|
|
217
219
|
{
|
|
@@ -219,14 +221,14 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
219
221
|
}
|
|
220
222
|
);
|
|
221
223
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
222
|
-
e.localYLabels.forEach((
|
|
223
|
-
o < e.localYLabels.length - 1 &&
|
|
224
|
+
e.localYLabels.forEach((t, o) => {
|
|
225
|
+
o < e.localYLabels.length - 1 && Le(
|
|
224
226
|
s.value,
|
|
225
227
|
[
|
|
226
|
-
{ x:
|
|
227
|
-
{ x:
|
|
228
|
-
{ x:
|
|
229
|
-
{ x:
|
|
228
|
+
{ x: l.value.left, y: t.y },
|
|
229
|
+
{ x: l.value.right, y: t.y },
|
|
230
|
+
{ x: l.value.right, y: e.localYLabels[o + 1].y },
|
|
231
|
+
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
230
232
|
],
|
|
231
233
|
{
|
|
232
234
|
fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
@@ -235,12 +237,12 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
235
237
|
);
|
|
236
238
|
});
|
|
237
239
|
}) : h.value.forEach((e) => {
|
|
238
|
-
e.localYLabels.slice(
|
|
240
|
+
e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
|
|
239
241
|
w(
|
|
240
242
|
s.value,
|
|
241
243
|
[
|
|
242
|
-
{ x:
|
|
243
|
-
{ x:
|
|
244
|
+
{ x: l.value.left, y: t.y },
|
|
245
|
+
{ x: l.value.right, y: t.y }
|
|
244
246
|
],
|
|
245
247
|
{
|
|
246
248
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -251,8 +253,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
251
253
|
w(
|
|
252
254
|
s.value,
|
|
253
255
|
[
|
|
254
|
-
{ x:
|
|
255
|
-
{ x:
|
|
256
|
+
{ x: l.value.left, y: e.localZero },
|
|
257
|
+
{ x: l.value.right, y: e.localZero }
|
|
256
258
|
],
|
|
257
259
|
{
|
|
258
260
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -263,8 +265,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
263
265
|
w(
|
|
264
266
|
s.value,
|
|
265
267
|
[
|
|
266
|
-
{ x:
|
|
267
|
-
{ x:
|
|
268
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
269
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
268
270
|
],
|
|
269
271
|
{
|
|
270
272
|
color: e.color
|
|
@@ -272,28 +274,28 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
272
274
|
), w(
|
|
273
275
|
s.value,
|
|
274
276
|
[
|
|
275
|
-
{ x:
|
|
276
|
-
{ x:
|
|
277
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
278
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
277
279
|
],
|
|
278
280
|
{
|
|
279
281
|
color: e.color
|
|
280
282
|
}
|
|
281
|
-
), e.localYLabels.forEach((
|
|
282
|
-
|
|
283
|
+
), e.localYLabels.forEach((t, o) => {
|
|
284
|
+
E(
|
|
283
285
|
s.value,
|
|
284
286
|
Q(
|
|
285
287
|
a.value.style.chart.dataLabels.formatter,
|
|
286
|
-
|
|
288
|
+
t.value,
|
|
287
289
|
ee({
|
|
288
290
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
289
|
-
v:
|
|
291
|
+
v: t.value,
|
|
290
292
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
291
293
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
292
294
|
}),
|
|
293
|
-
{ datapoint:
|
|
295
|
+
{ datapoint: t, seriesIndex: o }
|
|
294
296
|
),
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
298
|
+
t.y,
|
|
297
299
|
{
|
|
298
300
|
align: "right",
|
|
299
301
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -302,11 +304,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
302
304
|
);
|
|
303
305
|
});
|
|
304
306
|
}), h.value.forEach((e) => {
|
|
305
|
-
|
|
307
|
+
E(
|
|
306
308
|
s.value,
|
|
307
309
|
e.name,
|
|
308
310
|
f.value / 35,
|
|
309
|
-
|
|
311
|
+
l.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
310
312
|
{
|
|
311
313
|
align: "center",
|
|
312
314
|
rotation: -90,
|
|
@@ -316,29 +318,29 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
316
318
|
);
|
|
317
319
|
});
|
|
318
320
|
else {
|
|
319
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
320
|
-
for (let e = 0; e <
|
|
321
|
+
if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
322
|
+
for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
|
|
321
323
|
w(
|
|
322
324
|
s.value,
|
|
323
325
|
[
|
|
324
|
-
{ x:
|
|
325
|
-
{ x:
|
|
326
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
327
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.bottom }
|
|
326
328
|
],
|
|
327
329
|
{
|
|
328
330
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
329
331
|
}
|
|
330
332
|
);
|
|
331
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
332
|
-
|
|
333
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
334
|
+
t < p.value.yLabels.length - 1 && Le(
|
|
333
335
|
s.value,
|
|
334
336
|
[
|
|
335
|
-
{ x:
|
|
336
|
-
{ x:
|
|
337
|
-
{ x:
|
|
338
|
-
{ x:
|
|
337
|
+
{ x: l.value.left, y: e.y },
|
|
338
|
+
{ x: l.value.right, y: e.y },
|
|
339
|
+
{ x: l.value.right, y: p.value.yLabels[t + 1].y },
|
|
340
|
+
{ x: l.value.left, y: p.value.yLabels[t + 1].y }
|
|
339
341
|
],
|
|
340
342
|
{
|
|
341
|
-
fillColor:
|
|
343
|
+
fillColor: t % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
342
344
|
strokeColor: "transparent"
|
|
343
345
|
}
|
|
344
346
|
);
|
|
@@ -346,8 +348,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
346
348
|
w(
|
|
347
349
|
s.value,
|
|
348
350
|
[
|
|
349
|
-
{ x:
|
|
350
|
-
{ x:
|
|
351
|
+
{ x: l.value.left, y: e.y },
|
|
352
|
+
{ x: l.value.right, y: e.y }
|
|
351
353
|
],
|
|
352
354
|
{
|
|
353
355
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -356,8 +358,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
356
358
|
})), a.value.style.chart.grid.y.showAxis && w(
|
|
357
359
|
s.value,
|
|
358
360
|
[
|
|
359
|
-
{ x:
|
|
360
|
-
{ x:
|
|
361
|
+
{ x: l.value.left, y: l.value.top },
|
|
362
|
+
{ x: l.value.left, y: l.value.bottom }
|
|
361
363
|
],
|
|
362
364
|
{
|
|
363
365
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -366,8 +368,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
366
368
|
), a.value.style.chart.grid.x.showAxis && w(
|
|
367
369
|
s.value,
|
|
368
370
|
[
|
|
369
|
-
{ x:
|
|
370
|
-
{ x:
|
|
371
|
+
{ x: l.value.left, y: l.value.bottom },
|
|
372
|
+
{ x: l.value.right, y: l.value.bottom }
|
|
371
373
|
],
|
|
372
374
|
{
|
|
373
375
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -376,15 +378,15 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
376
378
|
), a.value.style.chart.grid.zeroLine.show && w(
|
|
377
379
|
s.value,
|
|
378
380
|
[
|
|
379
|
-
{ x:
|
|
380
|
-
{ x:
|
|
381
|
+
{ x: l.value.left, y: p.value.zero },
|
|
382
|
+
{ x: l.value.right, y: p.value.zero }
|
|
381
383
|
],
|
|
382
384
|
{
|
|
383
385
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
384
386
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
385
387
|
}
|
|
386
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
387
|
-
|
|
388
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
|
|
389
|
+
E(
|
|
388
390
|
s.value,
|
|
389
391
|
Q(
|
|
390
392
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -395,7 +397,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
395
397
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
396
398
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
397
399
|
}),
|
|
398
|
-
{ datapoint: e, seriesIndex:
|
|
400
|
+
{ datapoint: e, seriesIndex: t }
|
|
399
401
|
),
|
|
400
402
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
401
403
|
e.y,
|
|
@@ -407,22 +409,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
407
409
|
);
|
|
408
410
|
});
|
|
409
411
|
}
|
|
410
|
-
a.value.style.chart.grid.y.axisName &&
|
|
412
|
+
a.value.style.chart.grid.y.axisName && E(
|
|
411
413
|
s.value,
|
|
412
414
|
a.value.style.chart.grid.y.axisName,
|
|
413
415
|
f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
414
|
-
|
|
416
|
+
l.value.bottom - l.value.height / 2,
|
|
415
417
|
{
|
|
416
418
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
417
419
|
color: a.value.style.chart.color,
|
|
418
420
|
align: "center",
|
|
419
421
|
rotation: 90
|
|
420
422
|
}
|
|
421
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
423
|
+
), a.value.style.chart.grid.x.axisName && E(
|
|
422
424
|
s.value,
|
|
423
425
|
a.value.style.chart.grid.x.axisName,
|
|
424
426
|
f.value / 2,
|
|
425
|
-
|
|
427
|
+
R.value,
|
|
426
428
|
{
|
|
427
429
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
428
430
|
color: a.value.style.chart.color,
|
|
@@ -431,11 +433,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
431
433
|
);
|
|
432
434
|
}
|
|
433
435
|
function ia(e) {
|
|
434
|
-
for (let
|
|
435
|
-
const o = (d.value ===
|
|
436
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
437
|
+
const o = (d.value === t ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
436
438
|
Je(
|
|
437
439
|
s.value,
|
|
438
|
-
{ x: e.coordinatesLine[
|
|
440
|
+
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
439
441
|
o,
|
|
440
442
|
{
|
|
441
443
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -446,22 +448,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
446
448
|
}
|
|
447
449
|
}
|
|
448
450
|
function va(e) {
|
|
449
|
-
for (let
|
|
450
|
-
|
|
451
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
452
|
+
E(
|
|
451
453
|
s.value,
|
|
452
454
|
Q(
|
|
453
455
|
a.value.style.chart.dataLabels.formatter,
|
|
454
|
-
e.coordinatesLine[
|
|
456
|
+
e.coordinatesLine[t].value,
|
|
455
457
|
ee({
|
|
456
458
|
p: e.prefix || "",
|
|
457
|
-
v: e.coordinatesLine[
|
|
459
|
+
v: e.coordinatesLine[t].value,
|
|
458
460
|
s: e.suffix || "",
|
|
459
461
|
r: e.rounding || 0
|
|
460
462
|
}),
|
|
461
|
-
{ datapoint: e.coordinatesLine[
|
|
463
|
+
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
462
464
|
),
|
|
463
|
-
e.coordinatesLine[
|
|
464
|
-
e.coordinatesLine[
|
|
465
|
+
e.coordinatesLine[t].x,
|
|
466
|
+
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
465
467
|
{
|
|
466
468
|
align: "center",
|
|
467
469
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -472,26 +474,26 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
472
474
|
);
|
|
473
475
|
}
|
|
474
476
|
function ca() {
|
|
475
|
-
for (let e =
|
|
476
|
-
(
|
|
477
|
+
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
478
|
+
(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)) && E(
|
|
477
479
|
s.value,
|
|
478
480
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
+
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
482
|
+
l.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
481
483
|
{
|
|
482
484
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
483
485
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
484
|
-
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value +
|
|
486
|
+
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + u.value.start === e ? 100 : 20 : 100),
|
|
485
487
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
486
488
|
}
|
|
487
489
|
);
|
|
488
490
|
}
|
|
489
|
-
function
|
|
491
|
+
function De() {
|
|
490
492
|
w(
|
|
491
493
|
s.value,
|
|
492
494
|
[
|
|
493
|
-
{ x:
|
|
494
|
-
{ x:
|
|
495
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
496
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
|
|
495
497
|
],
|
|
496
498
|
{
|
|
497
499
|
color: a.value.style.chart.selector.color,
|
|
@@ -502,25 +504,25 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
502
504
|
);
|
|
503
505
|
}
|
|
504
506
|
function da() {
|
|
505
|
-
L.value.forEach((e,
|
|
507
|
+
L.value.forEach((e, t) => {
|
|
506
508
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
507
|
-
|
|
509
|
+
Le(
|
|
508
510
|
s.value,
|
|
509
511
|
[
|
|
510
512
|
{
|
|
511
|
-
x:
|
|
512
|
-
y:
|
|
513
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)),
|
|
514
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
513
515
|
},
|
|
514
516
|
{
|
|
515
|
-
x:
|
|
516
|
-
y:
|
|
517
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : L.value.length),
|
|
518
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
517
519
|
},
|
|
518
520
|
{
|
|
519
|
-
x:
|
|
521
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : L.value.length),
|
|
520
522
|
y: e.coordinatesLine[o].y
|
|
521
523
|
},
|
|
522
524
|
{
|
|
523
|
-
x:
|
|
525
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)),
|
|
524
526
|
y: e.coordinatesLine[o].y
|
|
525
527
|
}
|
|
526
528
|
],
|
|
@@ -534,7 +536,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
534
536
|
},
|
|
535
537
|
end: {
|
|
536
538
|
x: e.coordinatesLine[o].x,
|
|
537
|
-
y:
|
|
539
|
+
y: r.value.stacked ? e.localZero : p.value.zero
|
|
538
540
|
},
|
|
539
541
|
stops: [
|
|
540
542
|
{ offset: 0, color: e.color },
|
|
@@ -542,7 +544,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
542
544
|
]
|
|
543
545
|
}
|
|
544
546
|
}
|
|
545
|
-
),
|
|
547
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
|
|
546
548
|
s.value,
|
|
547
549
|
Q(
|
|
548
550
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -555,8 +557,8 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
555
557
|
}),
|
|
556
558
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
557
559
|
),
|
|
558
|
-
|
|
559
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
560
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / L.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * L.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : L.value.length),
|
|
561
|
+
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
560
562
|
{
|
|
561
563
|
align: "center",
|
|
562
564
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -568,7 +570,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
568
570
|
});
|
|
569
571
|
}
|
|
570
572
|
function ha(e) {
|
|
571
|
-
e.useArea ?
|
|
573
|
+
e.useArea ? r.value.stacked ? Ke(
|
|
572
574
|
s.value,
|
|
573
575
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
574
576
|
{
|
|
@@ -588,12 +590,12 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
588
590
|
});
|
|
589
591
|
}
|
|
590
592
|
function fa() {
|
|
591
|
-
h.value.forEach((e,
|
|
593
|
+
h.value.forEach((e, t) => {
|
|
592
594
|
w(
|
|
593
595
|
s.value,
|
|
594
596
|
[
|
|
595
|
-
{ x:
|
|
596
|
-
{ x:
|
|
597
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
598
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset }
|
|
597
599
|
],
|
|
598
600
|
{
|
|
599
601
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -602,10 +604,10 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
602
604
|
);
|
|
603
605
|
});
|
|
604
606
|
}
|
|
605
|
-
function
|
|
606
|
-
na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show &&
|
|
607
|
-
(e.type === "line" || !e.type) && ha(e), z.value && (ia(e),
|
|
608
|
-
}), ve.value = Wa($.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 &&
|
|
607
|
+
function ge() {
|
|
608
|
+
na(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && De(), da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), ra.value.forEach((e) => {
|
|
609
|
+
(e.type === "line" || !e.type) && ha(e), z.value && (ia(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && va(e));
|
|
610
|
+
}), ve.value = Wa($.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 && De(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
609
611
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
610
612
|
if (!e.coordinatesLine[d.value]) return;
|
|
611
613
|
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Je(
|
|
@@ -626,15 +628,15 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
626
628
|
}
|
|
627
629
|
const oe = Ha(() => {
|
|
628
630
|
z.value = !0, sa();
|
|
629
|
-
},
|
|
631
|
+
}, I.value > 200 ? 10 : 1, !z.value);
|
|
630
632
|
function ya(e) {
|
|
631
|
-
const { left:
|
|
632
|
-
if (o * 2 <
|
|
633
|
-
|
|
633
|
+
const { left: t } = $.value.getBoundingClientRect(), o = e.clientX - t;
|
|
634
|
+
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
635
|
+
le.value = !1, d.value = null;
|
|
634
636
|
return;
|
|
635
637
|
}
|
|
636
|
-
const i = o * 2 -
|
|
637
|
-
if (d.value = Math.floor(i /
|
|
638
|
+
const i = o * 2 - l.value.left;
|
|
639
|
+
if (d.value = Math.floor(i / l.value.slot), le.value = !0, !z.value) return;
|
|
638
640
|
let c = "";
|
|
639
641
|
const y = a.value.style.chart.tooltip.customFormat;
|
|
640
642
|
qe(y) && Na(() => y({
|
|
@@ -648,7 +650,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
648
650
|
})),
|
|
649
651
|
series: h.value,
|
|
650
652
|
config: a.value
|
|
651
|
-
})) ?
|
|
653
|
+
})) ? te.value = y({
|
|
652
654
|
seriesIndex: d.value,
|
|
653
655
|
datapoint: h.value.map((n) => ({
|
|
654
656
|
shape: n.shape || null,
|
|
@@ -659,58 +661,58 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
659
661
|
})),
|
|
660
662
|
series: h.value,
|
|
661
663
|
config: a.value
|
|
662
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
664
|
+
}) : (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 += ua.value.join(""), te.value = c), z.value = !1;
|
|
663
665
|
}
|
|
664
|
-
|
|
666
|
+
A(() => d.value, (e) => {
|
|
665
667
|
oe();
|
|
666
|
-
}),
|
|
667
|
-
N.value = !0,
|
|
668
|
+
}), A(() => u.value, (e) => {
|
|
669
|
+
N.value = !0, ge();
|
|
668
670
|
}, {
|
|
669
671
|
deep: !0
|
|
670
|
-
}),
|
|
671
|
-
N.value = !0,
|
|
672
|
-
}),
|
|
672
|
+
}), A(() => r.value.showDataLabels, (e) => {
|
|
673
|
+
N.value = !0, ge();
|
|
674
|
+
}), A(() => r.value.stacked, (e) => {
|
|
673
675
|
N.value = !0, z.value = !0, oe();
|
|
674
676
|
});
|
|
675
677
|
function ga() {
|
|
676
|
-
|
|
678
|
+
le.value = !1, d.value = null, te.value = "";
|
|
677
679
|
}
|
|
678
|
-
const
|
|
680
|
+
const ue = v(null), re = v(null);
|
|
679
681
|
xa(() => {
|
|
680
|
-
|
|
682
|
+
pe();
|
|
681
683
|
});
|
|
682
|
-
function
|
|
683
|
-
if (Fa(
|
|
684
|
+
function pe() {
|
|
685
|
+
if (Fa(M.dataset) ? Ea({
|
|
684
686
|
componentName: "VueUiXyCanvas",
|
|
685
687
|
type: "dataset"
|
|
686
688
|
}) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
687
689
|
const e = Ya(() => {
|
|
688
|
-
const { width:
|
|
690
|
+
const { width: t, height: o } = Ba({
|
|
689
691
|
chart: U.value,
|
|
690
|
-
title: a.value.style.chart.title.text ?
|
|
691
|
-
legend: a.value.style.chart.legend.show ?
|
|
692
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
693
|
-
source:
|
|
692
|
+
title: a.value.style.chart.title.text ? $e.value : null,
|
|
693
|
+
legend: a.value.style.chart.legend.show ? ze.value : null,
|
|
694
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Te.value : null,
|
|
695
|
+
source: Me.value
|
|
694
696
|
});
|
|
695
|
-
|
|
697
|
+
Ie.value = `${t} / ${o}`;
|
|
696
698
|
});
|
|
697
|
-
|
|
699
|
+
ue.value = new ResizeObserver(e), ue.value.observe(U.value.parentNode);
|
|
698
700
|
}
|
|
699
|
-
|
|
700
|
-
for (const
|
|
701
|
-
|
|
702
|
-
}),
|
|
701
|
+
re.value = new ResizeObserver((e) => {
|
|
702
|
+
for (const t of e)
|
|
703
|
+
t.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
704
|
+
}), re.value.observe(Z.value);
|
|
703
705
|
}
|
|
704
706
|
La(() => {
|
|
705
|
-
|
|
707
|
+
re.value && re.value.disconnect(), ue.value && ue.value.disconnect();
|
|
706
708
|
});
|
|
707
709
|
function He(e) {
|
|
708
|
-
aa("selectLegend", h.value.find((
|
|
710
|
+
aa("selectLegend", h.value.find((t) => t.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((t) => t !== e) : S.value.push(e), N.value = !0, oe();
|
|
709
711
|
}
|
|
710
|
-
const We =
|
|
712
|
+
const We = b(() => Y.value.map((e, t) => ({
|
|
711
713
|
...e,
|
|
712
714
|
name: e.name,
|
|
713
|
-
color: je(e.color) ||
|
|
715
|
+
color: je(e.color) || Ne.value[t] || H[t] || H[t % H.length],
|
|
714
716
|
shape: e.shape || "circle",
|
|
715
717
|
prefix: e.prefix || "",
|
|
716
718
|
suffix: e.suffix || "",
|
|
@@ -720,19 +722,19 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
720
722
|
opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
721
723
|
segregate: () => He(e.absoluteIndex),
|
|
722
724
|
isSegregated: S.value.includes(e.absoluteIndex)
|
|
723
|
-
}))), pa =
|
|
725
|
+
}))), pa = b(() => ({
|
|
724
726
|
cy: "donut-div-legend",
|
|
725
727
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
726
728
|
color: a.value.style.chart.legend.color,
|
|
727
729
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
728
730
|
paddingBottom: 12,
|
|
729
731
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
730
|
-
})), se =
|
|
732
|
+
})), se = b(() => {
|
|
731
733
|
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>');
|
|
732
|
-
let
|
|
733
|
-
for (let c = 0; c <
|
|
734
|
+
let t = [];
|
|
735
|
+
for (let c = 0; c < I.value; c += 1) {
|
|
734
736
|
const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
735
|
-
|
|
737
|
+
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((y ?? 0).toFixed(a.value.table.rounding)));
|
|
736
738
|
}
|
|
737
739
|
const o = {
|
|
738
740
|
th: {
|
|
@@ -747,56 +749,56 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
747
749
|
},
|
|
748
750
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
749
751
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
750
|
-
return { head: e, body:
|
|
751
|
-
}), Ye =
|
|
752
|
+
return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: i };
|
|
753
|
+
}), Ye = b(() => {
|
|
752
754
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
753
755
|
const e = h.value.map((o) => ({
|
|
754
756
|
label: o.name,
|
|
755
757
|
color: o.color,
|
|
756
758
|
type: o.type
|
|
757
|
-
})),
|
|
758
|
-
for (let o =
|
|
759
|
+
})), t = [];
|
|
760
|
+
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
759
761
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
760
762
|
h.value.forEach((c) => {
|
|
761
763
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
762
|
-
}),
|
|
764
|
+
}), t.push(i);
|
|
763
765
|
}
|
|
764
|
-
return { head: e, body:
|
|
766
|
+
return { head: e, body: t };
|
|
765
767
|
});
|
|
766
768
|
function Be() {
|
|
767
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
769
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ye.value.head.map((y) => y.label)], o = Ye.value.body, i = e.concat([t]).concat(o), c = Aa(i);
|
|
768
770
|
_a({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
769
771
|
}
|
|
770
|
-
function
|
|
772
|
+
function ma() {
|
|
771
773
|
return h.value;
|
|
772
774
|
}
|
|
773
775
|
function Xe() {
|
|
774
|
-
|
|
776
|
+
r.value.showTable = !r.value.showTable;
|
|
775
777
|
}
|
|
776
778
|
function Ue() {
|
|
777
|
-
|
|
779
|
+
r.value.showDataLabels = !r.value.showDataLabels;
|
|
778
780
|
}
|
|
779
781
|
function Ze() {
|
|
780
|
-
|
|
782
|
+
r.value.stacked = !r.value.stacked;
|
|
781
783
|
}
|
|
782
784
|
function Ge() {
|
|
783
|
-
|
|
785
|
+
r.value.showTooltip = !r.value.showTooltip;
|
|
784
786
|
}
|
|
785
787
|
const ne = v(!1);
|
|
786
|
-
function
|
|
788
|
+
function me() {
|
|
787
789
|
ne.value = !ne.value;
|
|
788
790
|
}
|
|
789
791
|
return ea({
|
|
790
|
-
getData:
|
|
792
|
+
getData: ma,
|
|
791
793
|
generateCsv: Be,
|
|
792
|
-
generatePdf:
|
|
793
|
-
generateImage:
|
|
794
|
+
generatePdf: Fe,
|
|
795
|
+
generateImage: Ee,
|
|
794
796
|
toggleTable: Xe,
|
|
795
797
|
toggleLabels: Ue,
|
|
796
798
|
toggleStack: Ze,
|
|
797
799
|
toggleTooltip: Ge,
|
|
798
|
-
toggleAnnotator:
|
|
799
|
-
}), (e,
|
|
800
|
+
toggleAnnotator: me
|
|
801
|
+
}), (e, t) => (C(), q("div", {
|
|
800
802
|
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
801
803
|
ref_key: "xy",
|
|
802
804
|
ref: U,
|
|
@@ -806,11 +808,11 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
806
808
|
a.value.style.chart.title.text ? (C(), q("div", {
|
|
807
809
|
key: 0,
|
|
808
810
|
ref_key: "chartTitle",
|
|
809
|
-
ref:
|
|
811
|
+
ref: $e,
|
|
810
812
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
811
813
|
}, [
|
|
812
|
-
(C(),
|
|
813
|
-
key: `title_${
|
|
814
|
+
(C(), F(Za, {
|
|
815
|
+
key: `title_${de.value}`,
|
|
814
816
|
config: {
|
|
815
817
|
title: {
|
|
816
818
|
cy: "xy-canvas-title",
|
|
@@ -822,119 +824,119 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
822
824
|
}
|
|
823
825
|
}
|
|
824
826
|
}, null, 8, ["config"]))
|
|
825
|
-
], 4)) :
|
|
826
|
-
a.value.userOptions.show &&
|
|
827
|
+
], 4)) : _("", !0),
|
|
828
|
+
a.value.userOptions.show && ye.value ? (C(), F(ja, {
|
|
827
829
|
ref: "details",
|
|
828
|
-
key: `user_option_${
|
|
830
|
+
key: `user_option_${Se.value}`,
|
|
829
831
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
830
832
|
color: a.value.style.chart.color,
|
|
831
|
-
isPrinting:
|
|
832
|
-
isImaging:
|
|
833
|
+
isPrinting: D(Oe),
|
|
834
|
+
isImaging: D(Pe),
|
|
833
835
|
uid: ie.value,
|
|
834
836
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
835
837
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
836
838
|
hasImg: a.value.userOptions.buttons.img,
|
|
837
839
|
hasXls: a.value.userOptions.buttons.csv,
|
|
838
840
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
839
|
-
hasStack:
|
|
841
|
+
hasStack: ke.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
840
842
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
841
|
-
hasTable:
|
|
843
|
+
hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
|
|
842
844
|
isFullscreen: ce.value,
|
|
843
|
-
isTooltip:
|
|
844
|
-
isStacked:
|
|
845
|
+
isTooltip: r.value.showTooltip,
|
|
846
|
+
isStacked: r.value.stacked,
|
|
845
847
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
846
848
|
chartElement: U.value,
|
|
847
849
|
position: a.value.userOptions.position,
|
|
848
850
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
849
851
|
isAnnotation: ne.value,
|
|
850
|
-
onToggleFullscreen:
|
|
851
|
-
onGeneratePdf:
|
|
852
|
+
onToggleFullscreen: ta,
|
|
853
|
+
onGeneratePdf: D(Fe),
|
|
852
854
|
onGenerateCsv: Be,
|
|
853
|
-
onGenerateImage:
|
|
855
|
+
onGenerateImage: D(Ee),
|
|
854
856
|
onToggleTable: Xe,
|
|
855
857
|
onToggleLabels: Ue,
|
|
856
858
|
onToggleStack: Ze,
|
|
857
859
|
onToggleTooltip: Ge,
|
|
858
|
-
onToggleAnnotator:
|
|
860
|
+
onToggleAnnotator: me
|
|
859
861
|
}, Ca({ _: 2 }, [
|
|
860
862
|
e.$slots.optionTooltip ? {
|
|
861
863
|
name: "optionTooltip",
|
|
862
|
-
fn:
|
|
864
|
+
fn: m(() => [
|
|
863
865
|
x(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
864
866
|
]),
|
|
865
867
|
key: "0"
|
|
866
868
|
} : void 0,
|
|
867
869
|
e.$slots.optionPdf ? {
|
|
868
870
|
name: "optionPdf",
|
|
869
|
-
fn:
|
|
871
|
+
fn: m(() => [
|
|
870
872
|
x(e.$slots, "optionPdf", {}, void 0, !0)
|
|
871
873
|
]),
|
|
872
874
|
key: "1"
|
|
873
875
|
} : void 0,
|
|
874
876
|
e.$slots.optionCsv ? {
|
|
875
877
|
name: "optionCsv",
|
|
876
|
-
fn:
|
|
878
|
+
fn: m(() => [
|
|
877
879
|
x(e.$slots, "optionCsv", {}, void 0, !0)
|
|
878
880
|
]),
|
|
879
881
|
key: "2"
|
|
880
882
|
} : void 0,
|
|
881
883
|
e.$slots.optionImg ? {
|
|
882
884
|
name: "optionImg",
|
|
883
|
-
fn:
|
|
885
|
+
fn: m(() => [
|
|
884
886
|
x(e.$slots, "optionImg", {}, void 0, !0)
|
|
885
887
|
]),
|
|
886
888
|
key: "3"
|
|
887
889
|
} : void 0,
|
|
888
890
|
e.$slots.optionTable ? {
|
|
889
891
|
name: "optionTable",
|
|
890
|
-
fn:
|
|
892
|
+
fn: m(() => [
|
|
891
893
|
x(e.$slots, "optionTable", {}, void 0, !0)
|
|
892
894
|
]),
|
|
893
895
|
key: "4"
|
|
894
896
|
} : void 0,
|
|
895
897
|
e.$slots.optionLabels ? {
|
|
896
898
|
name: "optionLabels",
|
|
897
|
-
fn:
|
|
899
|
+
fn: m(() => [
|
|
898
900
|
x(e.$slots, "optionLabels", {}, void 0, !0)
|
|
899
901
|
]),
|
|
900
902
|
key: "5"
|
|
901
903
|
} : void 0,
|
|
902
904
|
e.$slots.optionStack ? {
|
|
903
905
|
name: "optionStack",
|
|
904
|
-
fn:
|
|
906
|
+
fn: m(() => [
|
|
905
907
|
x(e.$slots, "optionStack", {}, void 0, !0)
|
|
906
908
|
]),
|
|
907
909
|
key: "6"
|
|
908
910
|
} : void 0,
|
|
909
911
|
e.$slots.optionFullscreen ? {
|
|
910
912
|
name: "optionFullscreen",
|
|
911
|
-
fn:
|
|
913
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
912
914
|
x(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
913
915
|
]),
|
|
914
916
|
key: "7"
|
|
915
917
|
} : void 0,
|
|
916
918
|
e.$slots.optionAnnotator ? {
|
|
917
919
|
name: "optionAnnotator",
|
|
918
|
-
fn:
|
|
920
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
919
921
|
x(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
920
922
|
]),
|
|
921
923
|
key: "8"
|
|
922
924
|
} : void 0
|
|
923
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
925
|
+
]), 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),
|
|
924
926
|
K("div", {
|
|
925
927
|
class: "vue-ui-xy-canvas",
|
|
926
|
-
style: J(`position: relative; aspect-ratio: ${
|
|
928
|
+
style: J(`position: relative; aspect-ratio: ${Ie.value}`),
|
|
927
929
|
ref_key: "container",
|
|
928
930
|
ref: Z
|
|
929
931
|
}, [
|
|
930
|
-
|
|
932
|
+
ye.value ? (C(), q("canvas", {
|
|
931
933
|
key: 0,
|
|
932
934
|
ref_key: "canvas",
|
|
933
935
|
ref: $,
|
|
934
936
|
style: { width: "100%", height: "100%" },
|
|
935
|
-
onMousemove:
|
|
937
|
+
onMousemove: t[0] || (t[0] = (o) => ya(o)),
|
|
936
938
|
onMouseleave: ga
|
|
937
|
-
}, null, 544)) : (C(),
|
|
939
|
+
}, null, 544)) : (C(), F(Ka, {
|
|
938
940
|
key: 1,
|
|
939
941
|
config: {
|
|
940
942
|
type: "line",
|
|
@@ -953,7 +955,7 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
953
955
|
}
|
|
954
956
|
}, null, 8, ["config"])),
|
|
955
957
|
wa(Xa, {
|
|
956
|
-
show:
|
|
958
|
+
show: r.value.showTooltip && le.value,
|
|
957
959
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
958
960
|
color: a.value.style.chart.tooltip.color,
|
|
959
961
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -963,67 +965,67 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
963
965
|
position: a.value.style.chart.tooltip.position,
|
|
964
966
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
965
967
|
parent: $.value,
|
|
966
|
-
content:
|
|
968
|
+
content: te.value,
|
|
967
969
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
968
|
-
isCustom:
|
|
970
|
+
isCustom: D(qe)(a.value.style.chart.tooltip.customFormat)
|
|
969
971
|
}, {
|
|
970
|
-
"tooltip-before":
|
|
971
|
-
x(e.$slots, "tooltip-before", B(X({ ...
|
|
972
|
+
"tooltip-before": m(() => [
|
|
973
|
+
x(e.$slots, "tooltip-before", B(X({ ...Ce.value })), void 0, !0)
|
|
972
974
|
]),
|
|
973
|
-
"tooltip-after":
|
|
974
|
-
x(e.$slots, "tooltip-after", B(X({ ...
|
|
975
|
+
"tooltip-after": m(() => [
|
|
976
|
+
x(e.$slots, "tooltip-after", B(X({ ...Ce.value })), void 0, !0)
|
|
975
977
|
]),
|
|
976
978
|
_: 3
|
|
977
979
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
978
980
|
], 4),
|
|
979
981
|
K("div", {
|
|
980
982
|
ref_key: "chartSlicer",
|
|
981
|
-
ref:
|
|
983
|
+
ref: Te,
|
|
982
984
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
983
985
|
"data-html2canvas-ignore": ""
|
|
984
986
|
}, [
|
|
985
|
-
a.value.style.chart.zoom.show &&
|
|
986
|
-
key: `slicer_${
|
|
987
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (C(), F(Ga, {
|
|
988
|
+
key: `slicer_${we.value}`,
|
|
987
989
|
background: a.value.style.chart.zoom.color,
|
|
988
990
|
borderColor: a.value.style.chart.backgroundColor,
|
|
989
991
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
990
992
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
991
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
992
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
993
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? a.value.style.chart.grid.y.timeLabels.values[u.value.start] : "",
|
|
994
|
+
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] : "",
|
|
993
995
|
textColor: a.value.style.chart.color,
|
|
994
996
|
inputColor: a.value.style.chart.zoom.color,
|
|
995
997
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
996
|
-
max:
|
|
998
|
+
max: I.value,
|
|
997
999
|
min: 0,
|
|
998
|
-
valueStart:
|
|
999
|
-
valueEnd:
|
|
1000
|
-
start:
|
|
1001
|
-
"onUpdate:start":
|
|
1002
|
-
end:
|
|
1003
|
-
"onUpdate:end":
|
|
1004
|
-
onReset:
|
|
1000
|
+
valueStart: u.value.start,
|
|
1001
|
+
valueEnd: u.value.end,
|
|
1002
|
+
start: u.value.start,
|
|
1003
|
+
"onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
|
|
1004
|
+
end: u.value.end,
|
|
1005
|
+
"onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
|
|
1006
|
+
onReset: _e
|
|
1005
1007
|
}, {
|
|
1006
|
-
"reset-action":
|
|
1008
|
+
"reset-action": m(({ reset: o }) => [
|
|
1007
1009
|
x(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
|
|
1008
1010
|
]),
|
|
1009
1011
|
_: 3
|
|
1010
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
1012
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
|
|
1011
1013
|
], 4),
|
|
1012
1014
|
K("div", {
|
|
1013
1015
|
ref_key: "chartLegend",
|
|
1014
|
-
ref:
|
|
1016
|
+
ref: ze
|
|
1015
1017
|
}, [
|
|
1016
|
-
a.value.style.chart.legend.show &&
|
|
1018
|
+
a.value.style.chart.legend.show && ye.value ? (C(), F(Ua, {
|
|
1017
1019
|
legendSet: We.value,
|
|
1018
1020
|
config: pa.value,
|
|
1019
|
-
key: `legend_${
|
|
1020
|
-
onClickMarker:
|
|
1021
|
+
key: `legend_${fe.value}`,
|
|
1022
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => He(o))
|
|
1021
1023
|
}, {
|
|
1022
|
-
item:
|
|
1024
|
+
item: m(({ legend: o, index: i }) => [
|
|
1023
1025
|
K("div", {
|
|
1024
1026
|
onClick: (c) => o.segregate(),
|
|
1025
1027
|
style: J(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
|
|
1026
|
-
}, Ve(o.name), 13,
|
|
1028
|
+
}, Ve(o.name), 13, ll)
|
|
1027
1029
|
]),
|
|
1028
1030
|
_: 1
|
|
1029
1031
|
}, 8, ["legendSet", "config"])) : x(e.$slots, "legend", {
|
|
@@ -1031,22 +1033,22 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1031
1033
|
legend: We.value
|
|
1032
1034
|
}, void 0, !0)
|
|
1033
1035
|
], 512),
|
|
1034
|
-
e.$slots.watermark ? (C(), q("div",
|
|
1035
|
-
x(e.$slots, "watermark", B(X({ isPrinting:
|
|
1036
|
-
])) :
|
|
1036
|
+
e.$slots.watermark ? (C(), q("div", tl, [
|
|
1037
|
+
x(e.$slots, "watermark", B(X({ isPrinting: D(Oe) || D(Pe) })), void 0, !0)
|
|
1038
|
+
])) : _("", !0),
|
|
1037
1039
|
e.$slots.source ? (C(), q("div", {
|
|
1038
1040
|
key: 3,
|
|
1039
1041
|
ref_key: "source",
|
|
1040
|
-
ref:
|
|
1042
|
+
ref: Me,
|
|
1041
1043
|
dir: "auto"
|
|
1042
1044
|
}, [
|
|
1043
1045
|
x(e.$slots, "source", {}, void 0, !0)
|
|
1044
|
-
], 512)) :
|
|
1045
|
-
|
|
1046
|
+
], 512)) : _("", !0),
|
|
1047
|
+
u.value.end - u.value.start < 200 ? (C(), F(qa, {
|
|
1046
1048
|
key: 4,
|
|
1047
1049
|
hideDetails: "",
|
|
1048
1050
|
config: {
|
|
1049
|
-
open:
|
|
1051
|
+
open: r.value.showTable,
|
|
1050
1052
|
maxHeight: 1e4,
|
|
1051
1053
|
body: {
|
|
1052
1054
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1058,38 +1060,38 @@ const at = ["id"], tt = ["onClick"], lt = {
|
|
|
1058
1060
|
}
|
|
1059
1061
|
}
|
|
1060
1062
|
}, {
|
|
1061
|
-
content:
|
|
1062
|
-
(C(),
|
|
1063
|
-
key: `table_${
|
|
1063
|
+
content: m(() => [
|
|
1064
|
+
(C(), F(Ja, {
|
|
1065
|
+
key: `table_${he.value}`,
|
|
1064
1066
|
colNames: se.value.colNames,
|
|
1065
1067
|
head: se.value.head,
|
|
1066
1068
|
body: se.value.body,
|
|
1067
1069
|
config: se.value.config,
|
|
1068
1070
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1069
|
-
onClose:
|
|
1071
|
+
onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
|
|
1070
1072
|
}, {
|
|
1071
|
-
th:
|
|
1072
|
-
K("div", { innerHTML: o }, null, 8,
|
|
1073
|
+
th: m(({ th: o }) => [
|
|
1074
|
+
K("div", { innerHTML: o }, null, 8, ol)
|
|
1073
1075
|
]),
|
|
1074
|
-
td:
|
|
1076
|
+
td: m(({ td: o }) => [
|
|
1075
1077
|
Sa(Ve(o), 1)
|
|
1076
1078
|
]),
|
|
1077
1079
|
_: 1
|
|
1078
1080
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1079
1081
|
]),
|
|
1080
1082
|
_: 1
|
|
1081
|
-
}, 8, ["config"])) :
|
|
1082
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (C(),
|
|
1083
|
+
}, 8, ["config"])) : _("", !0),
|
|
1084
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (C(), F(Qa, {
|
|
1083
1085
|
key: 5,
|
|
1084
1086
|
parent: U.value,
|
|
1085
1087
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1086
1088
|
color: a.value.style.chart.color,
|
|
1087
1089
|
active: ne.value,
|
|
1088
|
-
onClose:
|
|
1089
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1090
|
-
], 14,
|
|
1090
|
+
onClose: me
|
|
1091
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1092
|
+
], 14, al));
|
|
1091
1093
|
}
|
|
1092
|
-
},
|
|
1094
|
+
}, xl = /* @__PURE__ */ el(ul, [["__scopeId", "data-v-bf3412d9"]]);
|
|
1093
1095
|
export {
|
|
1094
|
-
|
|
1096
|
+
xl as default
|
|
1095
1097
|
};
|