vue-data-ui 2.4.49 → 2.4.51
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 +12 -0
- package/dist/{Arrow-CTukks_V.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-Q0cOmO5p.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-2ZD3jgGz.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-CaYP30Aq.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CO5C8Cmb.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-kMUhutQ4.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-FZN9UHoI.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-DPHcmrzd.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-rnWHRWGI.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-DYk2hOG1.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BQl9-uX0.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-BfgS_5ux.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-BqkMzXqo.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BblkpCyL.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-yEeqKUDF.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-DlgqsI5C.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-5Vedk01J.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-DED-PQ7X.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-DjCKBAC4.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-CHseiJu8.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-igxqCP2w.js → index-BbPeL8Gp.js} +5 -1
- package/dist/index-DhDYBLBe.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -1
- package/dist/types/vue-data-ui.d.ts +5 -1
- package/dist/{useNestedProp-CSVnZVwZ.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-CwpqC_aE.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-DVgxBO4o.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-CnZYDQXB.js → usePrinter-DaybDVqP.js} +1 -1
- package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
- package/dist/useUserOptionState-BgepsfED.cjs +1 -0
- package/dist/{vue-data-ui-BrRTkOqu.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-B--WWkUM.js → vue-data-ui-Ckbp-yIf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
- package/dist/{vue-ui-3d-bar-OzzLYbUl.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-lF7yVkiT.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CRVWlHxs.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-5Vj8AtW1.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-BmO78L3H.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-D8Hx1BFF.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-DwFD41hN.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-By609gwn.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-wwMoteEN.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
- package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
- package/dist/{vue-ui-chestnut-hqorA5EW.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-BCg5VZUb.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-GSkn7N7Z.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-Bkm9bcAc.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DIoYWyXB.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-niqTltAv.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-CpBBTAI9.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-XQp6R0e_.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-DfufBrkk.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DSS8sHHU.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BBNuPVgI.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BDGggRXE.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-6Odi2CwM.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
- package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
- package/dist/{vue-ui-gauge-DeYvNVnR.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-DXQt_8D0.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BcAr2dTN.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-Btm1mK6D.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-OY6N31Ka.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-CQIbWQMk.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-D5oNUDVm.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjqV22Co.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-ByDKGMAp.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-FsLf3YTj.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-31BX-GNG.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BMJW2oHk.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-BUpGgnWA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
- package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9I00rQEM.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
- package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
- package/dist/{vue-ui-quadrant-CEmoMAL7.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-T_oeRTqY.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DG_Zir8w.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-Juprijdi.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-gswAA28b.js → vue-ui-rating-DQRuqev5.js} +2 -2
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
- package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
- package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
- package/dist/{vue-ui-rings-D3g-ORch.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-DBO-XViT.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-3MDyr6v3.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-K0a-DVD6.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-CWjNNx-k.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-DUNkS05l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cbqg-N-L.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-MwX1c6qK.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CN5JUPhn.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D9eWTtbE.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-IphZ8jXh.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CPF7YNDd.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B29V7ZTv.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BRMGqR9Z.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BJTgOWF5.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-rvYaVHmw.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BI9jqI0h.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DX79otAB.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DuollcwK.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-vP28A6AT.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-DnJEgIaA.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DqcHBwd_.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-BMJ0I5nr.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8cgqIJl.js → vue-ui-table-CsEajH9S.js} +1 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
- package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-B_Po0RuC.js → vue-ui-table-sparkline-YV8DUOqh.js} +256 -239
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-C6nfW6uY.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-ldINTqND.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-CfwmMRdZ.js → vue-ui-timer-DvE_nqd9.js} +5 -5
- package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
- package/dist/{vue-ui-treemap-CwMnkcOi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-BZR4YOLh.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-D2BccJmB.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
- package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DiG8DHOr.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-DicLnkBA.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-D6CYL9A8.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
- package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-BHQZE19X.cjs +0 -9
- package/dist/vue-ui-3d-bar-BGVLnjCh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Cv0Rddsx.cjs +0 -1
- package/dist/vue-ui-bullet-C0Q2Vs5p.cjs +0 -34
- package/dist/vue-ui-candlestick-C7kRHFF3.cjs +0 -2
- package/dist/vue-ui-carousel-table-1_Hy8sGL.cjs +0 -1
- package/dist/vue-ui-chestnut-D3LGylRp.cjs +0 -6
- package/dist/vue-ui-donut-CQEOtlxM.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Dg_XJyX8.cjs +0 -1
- package/dist/vue-ui-dumbbell-RAkNYRoJ.cjs +0 -9
- package/dist/vue-ui-flow-BUmSGSmR.cjs +0 -1
- package/dist/vue-ui-funnel-B9HR0owO.cjs +0 -1
- package/dist/vue-ui-galaxy-DmsMWB1a.cjs +0 -1
- package/dist/vue-ui-gauge-Dvv0v56Z.cjs +0 -1
- package/dist/vue-ui-heatmap-DZ02dS5q.cjs +0 -1
- package/dist/vue-ui-history-plot-DPQWcN0P.cjs +0 -1
- package/dist/vue-ui-molecule-C8O_ViVy.cjs +0 -1
- package/dist/vue-ui-mood-radar-4u98wGWl.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BPc_OBoe.cjs +0 -17
- package/dist/vue-ui-onion-IhkIHn1A.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DzjggyLA.cjs +0 -8
- package/dist/vue-ui-quadrant-EZqQ-7Ev.cjs +0 -1
- package/dist/vue-ui-quick-chart-BKUUR-A1.cjs +0 -15
- package/dist/vue-ui-radar-QBwo6ybW.cjs +0 -1
- package/dist/vue-ui-relation-circle-BWX8zrfH.cjs +0 -1
- package/dist/vue-ui-relation-circle-DtnXrnOP.js +0 -492
- package/dist/vue-ui-rings-Damuv7g9.cjs +0 -2
- package/dist/vue-ui-scatter-RUeAe7Sx.cjs +0 -1
- package/dist/vue-ui-stackbar-BumFmZZF.cjs +0 -6
- package/dist/vue-ui-strip-plot-DupREfRd.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D43pTFli.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D4qeClXn.js +0 -256
- package/dist/vue-ui-table-sparkline-B7OPOium.cjs +0 -1
- package/dist/vue-ui-thermometer-CaV3JF3h.cjs +0 -1
- package/dist/vue-ui-tiremarks-BlyxL_IU.cjs +0 -1
- package/dist/vue-ui-tiremarks-iNKMnu3P.js +0 -317
- package/dist/vue-ui-treemap-YdRDlSHA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Bji3-X8i.cjs +0 -4
- package/dist/vue-ui-waffle-rO_LJaHR.cjs +0 -1
- package/dist/vue-ui-wheel-BTrpdV-C.cjs +0 -1
- package/dist/vue-ui-wheel-GqWFopE1.js +0 -299
- package/dist/vue-ui-word-cloud-DD-pKUen.cjs +0 -1
- package/dist/vue-ui-xy-C32KNdyx.cjs +0 -3
- package/dist/vue-ui-xy-canvas-9e630nJX.cjs +0 -9
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { ref as i, computed as x, watch 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 { P as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { ref as i, computed as x, watch as D, nextTick as ce, onMounted as Ia, onBeforeUnmount as Ma, openBlock as z, createElementBlock as K, normalizeStyle as Y, normalizeClass as Ta, unref as S, createBlock as E, createCommentVNode as _, createSlots as Oa, withCtx as b, renderSlot as L, normalizeProps as B, guardReactiveProps as V, createElementVNode as Q, createVNode as Pa, toDisplayString as aa, createTextVNode as Ra } from "vue";
|
|
2
|
+
import { u as Fa, c as Ea, t as Na, a as Aa, p as H, C as de, b as Da, D as Ce, i as ee, f as ae, Y as _a, J as Ha, d as la, a2 as Ua, o as Wa, e as Xa, x as ta, y as Ya, q as Ba, r as Va, s as le, l as Za } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { d as Ga, c as ja, a as oa, t as qa, l as k, r as we, b as N, p as ra, u as Ja } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Ka } from "./Tooltip-smutPF--.js";
|
|
5
|
+
import { L as Qa } from "./Legend-BLaZxMge.js";
|
|
6
|
+
import { _ as el } from "./Title-aSAft5dl.js";
|
|
7
|
+
import { S as al } from "./Slicer-Cxdl3cDt.js";
|
|
8
|
+
import { u as ll, U as tl } from "./usePrinter-DaybDVqP.js";
|
|
9
|
+
import ol from "./vue-ui-accordion-5d5iVpr7.js";
|
|
10
|
+
import { D as rl } from "./DataTable-DGf6RrOJ.js";
|
|
11
|
+
import ul from "./vue-ui-skeleton-Bniq21d9.js";
|
|
12
|
+
import { u as ua } from "./useNestedProp-BN8claGG.js";
|
|
13
|
+
import { P as sl } from "./PenAndPaper-ZdZEumki.js";
|
|
14
|
+
import { u as nl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const vl = ["id"], cl = ["onClick"], dl = {
|
|
16
17
|
key: 2,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, hl = ["innerHTML"], yl = {
|
|
19
20
|
__name: "vue-ui-xy-canvas",
|
|
20
21
|
props: {
|
|
21
22
|
dataset: {
|
|
@@ -32,31 +33,31 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(ze, { expose:
|
|
36
|
-
const f = ze, { vue_ui_xy_canvas:
|
|
37
|
-
get: () =>
|
|
36
|
+
setup(ze, { expose: sa, emit: na }) {
|
|
37
|
+
const f = ze, { vue_ui_xy_canvas: ia } = Fa(), he = i(Ea()), Z = i(null), M = i(null), G = i(null), s = i(null), y = i(1), P = i(1), te = i(!1), d = i(null), oe = i(""), Se = i(null), $ = i([]), U = i(1), A = i(!0), T = i(!0), ye = i(null), $e = i(0), Ie = i(0), re = i(!1), Me = i(null), Te = i(null), Oe = i(null), Pe = i(null), fe = i(0), ge = i(0), pe = i(0), me = x(() => !!f.dataset && f.dataset.length), a = x({
|
|
38
|
+
get: () => Ne(),
|
|
38
39
|
set: (e) => e
|
|
39
|
-
});
|
|
40
|
-
function
|
|
41
|
-
const e =
|
|
40
|
+
}), { userOptionsVisible: Re, setUserOptionsVisibility: Fe, keepUserOptionState: Ee } = nl({ config: a.value });
|
|
41
|
+
function Ne() {
|
|
42
|
+
const e = ua({
|
|
42
43
|
userConfig: f.config,
|
|
43
|
-
defaultConfig:
|
|
44
|
+
defaultConfig: ia
|
|
44
45
|
});
|
|
45
|
-
let
|
|
46
|
-
return e.theme ?
|
|
47
|
-
...
|
|
48
|
-
userConfig:
|
|
46
|
+
let l = {};
|
|
47
|
+
return e.theme ? l = {
|
|
48
|
+
...ua({
|
|
49
|
+
userConfig: Na.vue_ui_xy_canvas[e.theme] || f.config,
|
|
49
50
|
defaultConfig: e
|
|
50
51
|
}),
|
|
51
|
-
customPalette:
|
|
52
|
-
} :
|
|
52
|
+
customPalette: Aa[e.theme] || H
|
|
53
|
+
} : l = e, f.config && de(f.config, "style.chart.scale.min") ? l.style.chart.scale.min = f.config.style.chart.scale.min : l.style.chart.scale.min = null, f.config && de(f.config, "style.chart.scale.max") ? l.style.chart.scale.max = f.config.style.chart.scale.max : l.style.chart.scale.max = null, f.config && de(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && de(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
a.value =
|
|
56
|
-
}, { deep: !0 }),
|
|
55
|
+
D(() => f.config, (e) => {
|
|
56
|
+
a.value = Ne(), xe(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
57
|
+
}, { deep: !0 }), D(() => f.dataset, () => {
|
|
57
58
|
xe(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
58
59
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
+
const Ae = i(a.value.style.chart.aspectRatio), { isPrinting: De, isImaging: _e, generatePdf: He, generateImage: Ue } = ll({
|
|
60
61
|
elementId: `xy_canvas_${he.value}`,
|
|
61
62
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
62
63
|
}), u = i({
|
|
@@ -65,10 +66,10 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
65
66
|
stacked: a.value.style.chart.stacked,
|
|
66
67
|
showTooltip: a.value.style.chart.tooltip.show
|
|
67
68
|
});
|
|
68
|
-
function
|
|
69
|
+
function va(e) {
|
|
69
70
|
re.value = e, Ie.value += 1;
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
+
const We = x(() => Da(a.value.customPalette)), I = x(() => W.value ? Math.max(...W.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = x(() => {
|
|
72
73
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
73
74
|
return {
|
|
74
75
|
canvasWidth: y.value,
|
|
@@ -82,37 +83,37 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
82
83
|
slot: e / (r.value.end - r.value.start)
|
|
83
84
|
};
|
|
84
85
|
});
|
|
85
|
-
function
|
|
86
|
-
return e /
|
|
86
|
+
function Xe(e, l) {
|
|
87
|
+
return e / l;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
e && (
|
|
93
|
-
let
|
|
94
|
-
return p === null ?
|
|
95
|
-
x:
|
|
96
|
-
y:
|
|
89
|
+
function ca({ hasAutoScale: e, series: l, min: o, max: v, scale: c, yOffset: g, individualHeight: n, stackIndex: p = null }) {
|
|
90
|
+
return l.map((w, ke) => {
|
|
91
|
+
const O = c.min < 0 ? Math.abs(c.min) : 0, R = Xe(w + O, O + c.max);
|
|
92
|
+
let F, j;
|
|
93
|
+
e && (F = Math.abs(c.min), j = Xe(w + F, c.max + F));
|
|
94
|
+
let q = 0;
|
|
95
|
+
return p === null ? q = t.value.bottom - t.value.height * (e ? j : R) : q = t.value.bottom - g - n * (e ? j : R), {
|
|
96
|
+
x: t.value.left + t.value.slot * ke + t.value.slot / 2,
|
|
97
|
+
y: q,
|
|
97
98
|
value: w
|
|
98
99
|
};
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
const m = x(() => {
|
|
102
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
103
|
-
y:
|
|
104
|
-
x:
|
|
103
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...W.value.filter((n, p) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...W.value.filter((n, p) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = Ce(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), v = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (v / (o.max + v)), g = o.ticks.map((n) => ({
|
|
104
|
+
y: t.value.bottom - t.value.height * ((n + v) / (o.max + v)),
|
|
105
|
+
x: t.value.left - 8,
|
|
105
106
|
value: n
|
|
106
107
|
}));
|
|
107
108
|
return {
|
|
108
109
|
absoluteMin: v,
|
|
109
|
-
max:
|
|
110
|
+
max: l,
|
|
110
111
|
min: e,
|
|
111
112
|
scale: o,
|
|
112
113
|
yLabels: g,
|
|
113
114
|
zero: c
|
|
114
115
|
};
|
|
115
|
-
}),
|
|
116
|
+
}), da = x(() => h.value.map((e) => `
|
|
116
117
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
117
118
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
118
119
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -130,99 +131,99 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
130
131
|
{ datapoint: e, seriesIndex: d.value }
|
|
131
132
|
)}</span>
|
|
132
133
|
</div>
|
|
133
|
-
`)),
|
|
134
|
+
`)), W = x(() => f.dataset.map((e, l) => ({
|
|
134
135
|
...e,
|
|
135
|
-
series:
|
|
136
|
-
data:
|
|
136
|
+
series: _a({
|
|
137
|
+
data: Ha(e.series),
|
|
137
138
|
threshold: a.value.downsample.threshold
|
|
138
139
|
}),
|
|
139
|
-
absoluteIndex:
|
|
140
|
-
color:
|
|
140
|
+
absoluteIndex: l,
|
|
141
|
+
color: la(e.color || We.value[l] || H[l] || H[l % H.length])
|
|
141
142
|
})));
|
|
142
|
-
|
|
143
|
-
e &&
|
|
143
|
+
D(I, (e) => {
|
|
144
|
+
e && Ye();
|
|
144
145
|
});
|
|
145
|
-
const h = x(() =>
|
|
146
|
+
const h = x(() => Ua(W.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
146
147
|
...e,
|
|
147
148
|
series: e.series.slice(r.value.start, r.value.end)
|
|
148
|
-
})).map((e,
|
|
149
|
+
})).map((e, l) => {
|
|
149
150
|
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, v = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
150
151
|
o === v && (o = o >= 0 ? v - 1 : o, v = v >= 0 ? v : o + 1);
|
|
151
152
|
const g = {
|
|
152
|
-
ratios: e.series.filter((
|
|
153
|
+
ratios: e.series.filter((J) => ![null, void 0].includes(J)).map((J) => (J - o) / (v - o)),
|
|
153
154
|
valueMin: o,
|
|
154
155
|
valueMax: v
|
|
155
156
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
156
157
|
let p;
|
|
157
158
|
e.autoScaling ? p = Ce(g.valueMin, g.valueMax, n) : p = Ce(g.valueMin < 0 ? g.valueMin : 0, g.valueMax <= 0 ? 0 : g.valueMax, n);
|
|
158
|
-
const w = u.value.stacked ?
|
|
159
|
-
let
|
|
160
|
-
e.autoScaling && u.value.stacked && v <= 0 ?
|
|
161
|
-
const
|
|
162
|
-
y:
|
|
163
|
-
x:
|
|
164
|
-
value:
|
|
165
|
-
})),
|
|
159
|
+
const w = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, ke = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, O = u.value.stacked ? t.value.height * e.stackRatio - ke : t.value.height, R = p.min < 0 ? Math.abs(p.min) : 0;
|
|
160
|
+
let F;
|
|
161
|
+
e.autoScaling && u.value.stacked && v <= 0 ? F = t.value.bottom - w - O : F = t.value.bottom - w - O * (R / (p.max + R));
|
|
162
|
+
const j = p.ticks.map((J, $a) => ({
|
|
163
|
+
y: t.value.bottom - w - O * ($a / (p.ticks.length - 1)),
|
|
164
|
+
x: t.value.left - 8,
|
|
165
|
+
value: J
|
|
166
|
+
})), q = ca({
|
|
166
167
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
167
168
|
series: e.series,
|
|
168
169
|
min: u.value.stacked ? o : m.value.min,
|
|
169
170
|
max: u.value.stacked ? v : m.value.max,
|
|
170
171
|
scale: u.value.stacked ? p : m.value.scale,
|
|
171
172
|
yOffset: w,
|
|
172
|
-
individualHeight:
|
|
173
|
-
stackIndex: u.value.stacked ?
|
|
173
|
+
individualHeight: O,
|
|
174
|
+
stackIndex: u.value.stacked ? l : null
|
|
174
175
|
});
|
|
175
176
|
return {
|
|
176
177
|
...e,
|
|
177
|
-
coordinatesLine:
|
|
178
|
+
coordinatesLine: q,
|
|
178
179
|
min: o,
|
|
179
180
|
max: v,
|
|
180
181
|
localScale: p,
|
|
181
|
-
localZero:
|
|
182
|
+
localZero: F,
|
|
182
183
|
localMin: R,
|
|
183
|
-
localYLabels:
|
|
184
|
+
localYLabels: j,
|
|
184
185
|
yOffset: w,
|
|
185
|
-
individualHeight:
|
|
186
|
+
individualHeight: O
|
|
186
187
|
};
|
|
187
188
|
})), r = i({
|
|
188
189
|
start: 0,
|
|
189
|
-
end:
|
|
190
|
+
end: I.value
|
|
190
191
|
});
|
|
191
|
-
function
|
|
192
|
-
|
|
192
|
+
function Ye() {
|
|
193
|
+
Be();
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
-
async function
|
|
196
|
-
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) &&
|
|
195
|
+
const X = i(null);
|
|
196
|
+
async function Be() {
|
|
197
|
+
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && X.value ? (a.value.style.chart.zoom.startIndex !== null && (await ce(), await ce(), X.value && X.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await ce(), await ce(), X.value && X.value.setEndValue(ha(a.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
|
|
197
198
|
start: 0,
|
|
198
|
-
end:
|
|
199
|
+
end: I.value
|
|
199
200
|
}, $e.value += 1);
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
-
const
|
|
203
|
-
return e >
|
|
202
|
+
function ha(e) {
|
|
203
|
+
const l = I.value;
|
|
204
|
+
return e > l ? l : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
204
205
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
if (!
|
|
206
|
+
const ya = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = x(() => h.value.filter((e) => e.type === "bar"));
|
|
207
|
+
function fa() {
|
|
208
|
+
if (!M.value)
|
|
208
209
|
return;
|
|
209
|
-
const e = G.value.offsetWidth,
|
|
210
|
-
|
|
210
|
+
const e = G.value.offsetWidth, l = G.value.offsetHeight;
|
|
211
|
+
M.value.width = e * U.value * 2, M.value.height = l * U.value * 2, y.value = e * U.value * 2, P.value = l * U.value * 2, s.value.scale(U.value, U.value), be();
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
213
|
+
function ga() {
|
|
214
|
+
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)
|
|
214
215
|
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) => {
|
|
215
|
-
for (let
|
|
216
|
+
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
216
217
|
k(
|
|
217
218
|
s.value,
|
|
218
219
|
[
|
|
219
220
|
{
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
221
|
+
x: t.value.left + t.value.slot * l,
|
|
222
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
222
223
|
},
|
|
223
224
|
{
|
|
224
|
-
x:
|
|
225
|
-
y:
|
|
225
|
+
x: t.value.left + t.value.slot * l,
|
|
226
|
+
y: t.value.bottom - e.yOffset
|
|
226
227
|
}
|
|
227
228
|
],
|
|
228
229
|
{
|
|
@@ -230,17 +231,17 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
}) : 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) => {
|
|
233
|
-
for (let
|
|
234
|
-
|
|
234
|
+
for (let l = r.value.start; l < r.value.end; l += 1)
|
|
235
|
+
l % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
235
236
|
s.value,
|
|
236
237
|
[
|
|
237
238
|
{
|
|
238
|
-
x:
|
|
239
|
-
y:
|
|
239
|
+
x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
|
|
240
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
240
241
|
},
|
|
241
242
|
{
|
|
242
|
-
x:
|
|
243
|
-
y:
|
|
243
|
+
x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
|
|
244
|
+
y: t.value.bottom - e.yOffset
|
|
244
245
|
}
|
|
245
246
|
],
|
|
246
247
|
{
|
|
@@ -248,14 +249,14 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
248
249
|
}
|
|
249
250
|
);
|
|
250
251
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
251
|
-
e.localYLabels.forEach((
|
|
252
|
+
e.localYLabels.forEach((l, o) => {
|
|
252
253
|
o < e.localYLabels.length - 1 && we(
|
|
253
254
|
s.value,
|
|
254
255
|
[
|
|
255
|
-
{ x:
|
|
256
|
-
{ x:
|
|
257
|
-
{ x:
|
|
258
|
-
{ x:
|
|
256
|
+
{ x: t.value.left, y: l.y },
|
|
257
|
+
{ x: t.value.right, y: l.y },
|
|
258
|
+
{ x: t.value.right, y: e.localYLabels[o + 1].y },
|
|
259
|
+
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
259
260
|
],
|
|
260
261
|
{
|
|
261
262
|
fillColor: o % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
@@ -264,12 +265,12 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
264
265
|
);
|
|
265
266
|
});
|
|
266
267
|
}) : h.value.forEach((e) => {
|
|
267
|
-
e.localYLabels.slice(r.value.start, r.value.end).forEach((
|
|
268
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
268
269
|
k(
|
|
269
270
|
s.value,
|
|
270
271
|
[
|
|
271
|
-
{ x:
|
|
272
|
-
{ x:
|
|
272
|
+
{ x: t.value.left, y: l.y },
|
|
273
|
+
{ x: t.value.right, y: l.y }
|
|
273
274
|
],
|
|
274
275
|
{
|
|
275
276
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -280,8 +281,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
280
281
|
k(
|
|
281
282
|
s.value,
|
|
282
283
|
[
|
|
283
|
-
{ x:
|
|
284
|
-
{ x:
|
|
284
|
+
{ x: t.value.left, y: e.localZero },
|
|
285
|
+
{ x: t.value.right, y: e.localZero }
|
|
285
286
|
],
|
|
286
287
|
{
|
|
287
288
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -292,8 +293,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
292
293
|
k(
|
|
293
294
|
s.value,
|
|
294
295
|
[
|
|
295
|
-
{ x:
|
|
296
|
-
{ x:
|
|
296
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
297
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
297
298
|
],
|
|
298
299
|
{
|
|
299
300
|
color: e.color
|
|
@@ -301,28 +302,28 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
301
302
|
), k(
|
|
302
303
|
s.value,
|
|
303
304
|
[
|
|
304
|
-
{ x:
|
|
305
|
-
{ x:
|
|
305
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
306
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
306
307
|
],
|
|
307
308
|
{
|
|
308
309
|
color: e.color
|
|
309
310
|
}
|
|
310
|
-
), e.localYLabels.forEach((
|
|
311
|
-
|
|
311
|
+
), e.localYLabels.forEach((l, o) => {
|
|
312
|
+
N(
|
|
312
313
|
s.value,
|
|
313
314
|
ee(
|
|
314
315
|
a.value.style.chart.dataLabels.formatter,
|
|
315
|
-
|
|
316
|
+
l.value,
|
|
316
317
|
ae({
|
|
317
318
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
318
|
-
v:
|
|
319
|
+
v: l.value,
|
|
319
320
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
320
321
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
321
322
|
}),
|
|
322
|
-
{ datapoint:
|
|
323
|
+
{ datapoint: l, seriesIndex: o }
|
|
323
324
|
),
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
326
|
+
l.y,
|
|
326
327
|
{
|
|
327
328
|
align: "right",
|
|
328
329
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -331,11 +332,11 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
331
332
|
);
|
|
332
333
|
});
|
|
333
334
|
}), h.value.forEach((e) => {
|
|
334
|
-
|
|
335
|
+
N(
|
|
335
336
|
s.value,
|
|
336
337
|
e.name,
|
|
337
338
|
y.value / 35,
|
|
338
|
-
|
|
339
|
+
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
339
340
|
{
|
|
340
341
|
align: "center",
|
|
341
342
|
rotation: -90,
|
|
@@ -350,8 +351,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
350
351
|
k(
|
|
351
352
|
s.value,
|
|
352
353
|
[
|
|
353
|
-
{ x:
|
|
354
|
-
{ x:
|
|
354
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
355
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
355
356
|
],
|
|
356
357
|
{
|
|
357
358
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
@@ -362,24 +363,24 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
362
363
|
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
363
364
|
s.value,
|
|
364
365
|
[
|
|
365
|
-
{ x:
|
|
366
|
-
{ x:
|
|
366
|
+
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.top },
|
|
367
|
+
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.bottom }
|
|
367
368
|
],
|
|
368
369
|
{
|
|
369
370
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
370
371
|
}
|
|
371
372
|
);
|
|
372
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e,
|
|
373
|
-
|
|
373
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, l) => {
|
|
374
|
+
l < m.value.yLabels.length - 1 && we(
|
|
374
375
|
s.value,
|
|
375
376
|
[
|
|
376
|
-
{ x:
|
|
377
|
-
{ x:
|
|
378
|
-
{ x:
|
|
379
|
-
{ x:
|
|
377
|
+
{ x: t.value.left, y: e.y },
|
|
378
|
+
{ x: t.value.right, y: e.y },
|
|
379
|
+
{ x: t.value.right, y: m.value.yLabels[l + 1].y },
|
|
380
|
+
{ x: t.value.left, y: m.value.yLabels[l + 1].y }
|
|
380
381
|
],
|
|
381
382
|
{
|
|
382
|
-
fillColor:
|
|
383
|
+
fillColor: l % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
383
384
|
strokeColor: "transparent"
|
|
384
385
|
}
|
|
385
386
|
);
|
|
@@ -387,8 +388,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
387
388
|
k(
|
|
388
389
|
s.value,
|
|
389
390
|
[
|
|
390
|
-
{ x:
|
|
391
|
-
{ x:
|
|
391
|
+
{ x: t.value.left, y: e.y },
|
|
392
|
+
{ x: t.value.right, y: e.y }
|
|
392
393
|
],
|
|
393
394
|
{
|
|
394
395
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -397,8 +398,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
397
398
|
})), a.value.style.chart.grid.y.showAxis && k(
|
|
398
399
|
s.value,
|
|
399
400
|
[
|
|
400
|
-
{ x:
|
|
401
|
-
{ x:
|
|
401
|
+
{ x: t.value.left, y: t.value.top },
|
|
402
|
+
{ x: t.value.left, y: t.value.bottom }
|
|
402
403
|
],
|
|
403
404
|
{
|
|
404
405
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -407,8 +408,8 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
407
408
|
), a.value.style.chart.grid.x.showAxis && k(
|
|
408
409
|
s.value,
|
|
409
410
|
[
|
|
410
|
-
{ x:
|
|
411
|
-
{ x:
|
|
411
|
+
{ x: t.value.left, y: t.value.bottom },
|
|
412
|
+
{ x: t.value.right, y: t.value.bottom }
|
|
412
413
|
],
|
|
413
414
|
{
|
|
414
415
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -417,15 +418,15 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
417
418
|
), a.value.style.chart.grid.zeroLine.show && k(
|
|
418
419
|
s.value,
|
|
419
420
|
[
|
|
420
|
-
{ x:
|
|
421
|
-
{ x:
|
|
421
|
+
{ x: t.value.left, y: m.value.zero },
|
|
422
|
+
{ x: t.value.right, y: m.value.zero }
|
|
422
423
|
],
|
|
423
424
|
{
|
|
424
425
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
425
426
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
426
427
|
}
|
|
427
|
-
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e,
|
|
428
|
-
|
|
428
|
+
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e, l) => {
|
|
429
|
+
N(
|
|
429
430
|
s.value,
|
|
430
431
|
ee(
|
|
431
432
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -436,7 +437,7 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
436
437
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
437
438
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
438
439
|
}),
|
|
439
|
-
{ datapoint: e, seriesIndex:
|
|
440
|
+
{ datapoint: e, seriesIndex: l }
|
|
440
441
|
),
|
|
441
442
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
442
443
|
e.y,
|
|
@@ -448,18 +449,18 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
448
449
|
);
|
|
449
450
|
});
|
|
450
451
|
}
|
|
451
|
-
a.value.style.chart.grid.y.axisName &&
|
|
452
|
+
a.value.style.chart.grid.y.axisName && N(
|
|
452
453
|
s.value,
|
|
453
454
|
a.value.style.chart.grid.y.axisName,
|
|
454
455
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
455
|
-
|
|
456
|
+
t.value.bottom - t.value.height / 2,
|
|
456
457
|
{
|
|
457
458
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
458
459
|
color: a.value.style.chart.color,
|
|
459
460
|
align: "center",
|
|
460
461
|
rotation: 90
|
|
461
462
|
}
|
|
462
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
463
|
+
), a.value.style.chart.grid.x.axisName && N(
|
|
463
464
|
s.value,
|
|
464
465
|
a.value.style.chart.grid.x.axisName,
|
|
465
466
|
y.value / 2,
|
|
@@ -471,12 +472,12 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
471
472
|
}
|
|
472
473
|
);
|
|
473
474
|
}
|
|
474
|
-
function
|
|
475
|
-
for (let
|
|
476
|
-
const o = (d.value ===
|
|
477
|
-
|
|
475
|
+
function pa(e) {
|
|
476
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
477
|
+
const o = (d.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
478
|
+
oa(
|
|
478
479
|
s.value,
|
|
479
|
-
{ x: e.coordinatesLine[
|
|
480
|
+
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
480
481
|
o,
|
|
481
482
|
{
|
|
482
483
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -486,23 +487,23 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
486
487
|
);
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
-
for (let
|
|
491
|
-
|
|
490
|
+
function ma(e) {
|
|
491
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
492
|
+
N(
|
|
492
493
|
s.value,
|
|
493
494
|
ee(
|
|
494
495
|
a.value.style.chart.dataLabels.formatter,
|
|
495
|
-
e.coordinatesLine[
|
|
496
|
+
e.coordinatesLine[l].value,
|
|
496
497
|
ae({
|
|
497
498
|
p: e.prefix || "",
|
|
498
|
-
v: e.coordinatesLine[
|
|
499
|
+
v: e.coordinatesLine[l].value,
|
|
499
500
|
s: e.suffix || "",
|
|
500
501
|
r: e.rounding || 0
|
|
501
502
|
}),
|
|
502
|
-
{ datapoint: e.coordinatesLine[
|
|
503
|
+
{ datapoint: e.coordinatesLine[l], seriesIndex: l }
|
|
503
504
|
),
|
|
504
|
-
e.coordinatesLine[
|
|
505
|
-
e.coordinatesLine[
|
|
505
|
+
e.coordinatesLine[l].x,
|
|
506
|
+
e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
|
|
506
507
|
{
|
|
507
508
|
align: "center",
|
|
508
509
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -512,13 +513,13 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
512
513
|
}
|
|
513
514
|
);
|
|
514
515
|
}
|
|
515
|
-
function
|
|
516
|
+
function ba() {
|
|
516
517
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
517
|
-
(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)) &&
|
|
518
|
+
(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)) && N(
|
|
518
519
|
s.value,
|
|
519
520
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
520
|
-
|
|
521
|
-
|
|
521
|
+
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
522
|
+
t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
522
523
|
{
|
|
523
524
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
524
525
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -527,12 +528,12 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
527
528
|
}
|
|
528
529
|
);
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
+
function Ve() {
|
|
531
532
|
k(
|
|
532
533
|
s.value,
|
|
533
534
|
[
|
|
534
|
-
{ x:
|
|
535
|
-
{ x:
|
|
535
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
|
|
536
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
|
|
536
537
|
],
|
|
537
538
|
{
|
|
538
539
|
color: a.value.style.chart.selector.color,
|
|
@@ -542,26 +543,26 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
542
543
|
}
|
|
543
544
|
);
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
-
C.value.forEach((e,
|
|
546
|
+
function xa() {
|
|
547
|
+
C.value.forEach((e, l) => {
|
|
547
548
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
548
549
|
we(
|
|
549
550
|
s.value,
|
|
550
551
|
[
|
|
551
552
|
{
|
|
552
|
-
x:
|
|
553
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)),
|
|
553
554
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
554
555
|
},
|
|
555
556
|
{
|
|
556
|
-
x:
|
|
557
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
557
558
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
558
559
|
},
|
|
559
560
|
{
|
|
560
|
-
x:
|
|
561
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
561
562
|
y: e.coordinatesLine[o].y
|
|
562
563
|
},
|
|
563
564
|
{
|
|
564
|
-
x:
|
|
565
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)),
|
|
565
566
|
y: e.coordinatesLine[o].y
|
|
566
567
|
}
|
|
567
568
|
],
|
|
@@ -579,11 +580,11 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
579
580
|
},
|
|
580
581
|
stops: [
|
|
581
582
|
{ offset: 0, color: e.color },
|
|
582
|
-
{ offset: 1, color:
|
|
583
|
+
{ offset: 1, color: Za(e.color, 0.5) }
|
|
583
584
|
]
|
|
584
585
|
}
|
|
585
586
|
}
|
|
586
|
-
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
587
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && N(
|
|
587
588
|
s.value,
|
|
588
589
|
ee(
|
|
589
590
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -596,7 +597,7 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
596
597
|
}),
|
|
597
598
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
598
599
|
),
|
|
599
|
-
|
|
600
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
600
601
|
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
601
602
|
{
|
|
602
603
|
align: "center",
|
|
@@ -608,15 +609,15 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
608
609
|
);
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
function
|
|
612
|
-
e.useArea ? u.value.stacked ?
|
|
612
|
+
function La(e) {
|
|
613
|
+
e.useArea ? u.value.stacked ? ra(
|
|
613
614
|
s.value,
|
|
614
615
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
615
616
|
{
|
|
616
617
|
fillColor: le(e.color, a.value.style.chart.area.opacity),
|
|
617
618
|
strokeColor: "transparent"
|
|
618
619
|
}
|
|
619
|
-
) :
|
|
620
|
+
) : ra(
|
|
620
621
|
s.value,
|
|
621
622
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
622
623
|
{
|
|
@@ -628,13 +629,13 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
628
629
|
lineWidth: 3
|
|
629
630
|
});
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
-
h.value.forEach((e,
|
|
632
|
+
function ka() {
|
|
633
|
+
h.value.forEach((e, l) => {
|
|
633
634
|
k(
|
|
634
635
|
s.value,
|
|
635
636
|
[
|
|
636
|
-
{ x:
|
|
637
|
-
{ x:
|
|
637
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
638
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
638
639
|
],
|
|
639
640
|
{
|
|
640
641
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -644,12 +645,12 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
644
645
|
});
|
|
645
646
|
}
|
|
646
647
|
function be() {
|
|
647
|
-
|
|
648
|
-
(e.type === "line" || !e.type) &&
|
|
649
|
-
}), ye.value =
|
|
648
|
+
ga(), A.value ? (T.value && d.value !== null && a.value.style.chart.selector.show && Ve(), xa(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ka(), ya.value.forEach((e) => {
|
|
649
|
+
(e.type === "line" || !e.type) && La(e), T.value && (pa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ma(e));
|
|
650
|
+
}), ye.value = ja(M.value)) : (ye.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ye.value, 0, 0)), T.value && d.value !== null && a.value.style.chart.selector.show && Ve(), T.value && d.value !== null && h.value.forEach((e) => {
|
|
650
651
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
651
652
|
if (!e.coordinatesLine[d.value]) return;
|
|
652
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
653
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && oa(
|
|
653
654
|
s.value,
|
|
654
655
|
{
|
|
655
656
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -663,22 +664,22 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
663
664
|
}
|
|
664
665
|
);
|
|
665
666
|
}
|
|
666
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
667
|
+
})), a.value.style.chart.grid.y.timeLabels.show && ba(), A.value = !1;
|
|
667
668
|
}
|
|
668
|
-
const ue =
|
|
669
|
-
T.value = !0,
|
|
670
|
-
},
|
|
671
|
-
function
|
|
672
|
-
const { left:
|
|
673
|
-
if (o * 2 <
|
|
669
|
+
const ue = Ga(() => {
|
|
670
|
+
T.value = !0, fa();
|
|
671
|
+
}, I.value > 200 ? 10 : 1, !T.value);
|
|
672
|
+
function Ca(e) {
|
|
673
|
+
const { left: l } = M.value.getBoundingClientRect(), o = e.clientX - l;
|
|
674
|
+
if (o * 2 < t.value.left || o * 2 > t.value.right) {
|
|
674
675
|
te.value = !1, d.value = null;
|
|
675
676
|
return;
|
|
676
677
|
}
|
|
677
|
-
const v = o * 2 -
|
|
678
|
-
if (d.value = Math.floor(v /
|
|
678
|
+
const v = o * 2 - t.value.left;
|
|
679
|
+
if (d.value = Math.floor(v / t.value.slot), te.value = !0, !T.value) return;
|
|
679
680
|
let c = "";
|
|
680
681
|
const g = a.value.style.chart.tooltip.customFormat;
|
|
681
|
-
|
|
682
|
+
ta(g) && Ya(() => g({
|
|
682
683
|
seriesIndex: d.value,
|
|
683
684
|
datapoint: h.value.map((n) => ({
|
|
684
685
|
shape: n.shape || null,
|
|
@@ -700,68 +701,68 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
700
701
|
})),
|
|
701
702
|
series: h.value,
|
|
702
703
|
config: a.value
|
|
703
|
-
}) : (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 +=
|
|
704
|
+
}) : (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 += da.value.join(""), oe.value = c), T.value = !1;
|
|
704
705
|
}
|
|
705
|
-
|
|
706
|
+
D(() => d.value, (e) => {
|
|
706
707
|
ue();
|
|
707
|
-
}),
|
|
708
|
-
|
|
708
|
+
}), D(() => r.value, (e) => {
|
|
709
|
+
A.value = !0, be();
|
|
709
710
|
}, {
|
|
710
711
|
deep: !0
|
|
711
|
-
}),
|
|
712
|
-
|
|
713
|
-
}),
|
|
714
|
-
|
|
712
|
+
}), D(() => u.value.showDataLabels, (e) => {
|
|
713
|
+
A.value = !0, be();
|
|
714
|
+
}), D(() => u.value.stacked, (e) => {
|
|
715
|
+
A.value = !0, T.value = !0, ue();
|
|
715
716
|
});
|
|
716
|
-
function
|
|
717
|
+
function wa() {
|
|
717
718
|
te.value = !1, d.value = null, oe.value = "";
|
|
718
719
|
}
|
|
719
720
|
const se = i(null), ne = i(null);
|
|
720
|
-
|
|
721
|
+
Ia(() => {
|
|
721
722
|
xe();
|
|
722
723
|
});
|
|
723
724
|
function xe() {
|
|
724
|
-
if (
|
|
725
|
+
if (Wa(f.dataset) ? Xa({
|
|
725
726
|
componentName: "VueUiXyCanvas",
|
|
726
727
|
type: "dataset"
|
|
727
|
-
}) :
|
|
728
|
-
const e =
|
|
729
|
-
const { width:
|
|
728
|
+
}) : M.value && (s.value = M.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
729
|
+
const e = qa(() => {
|
|
730
|
+
const { width: l, height: o } = Ja({
|
|
730
731
|
chart: Z.value,
|
|
731
|
-
title: a.value.style.chart.title.text ?
|
|
732
|
-
legend: a.value.style.chart.legend.show ?
|
|
733
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
734
|
-
source:
|
|
732
|
+
title: a.value.style.chart.title.text ? Me.value : null,
|
|
733
|
+
legend: a.value.style.chart.legend.show ? Te.value : null,
|
|
734
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Oe.value : null,
|
|
735
|
+
source: Pe.value
|
|
735
736
|
});
|
|
736
|
-
|
|
737
|
+
Ae.value = `${l} / ${o}`;
|
|
737
738
|
});
|
|
738
739
|
se.value = new ResizeObserver(e), se.value.observe(Z.value.parentNode);
|
|
739
740
|
}
|
|
740
741
|
ne.value = new ResizeObserver((e) => {
|
|
741
|
-
for (const
|
|
742
|
-
|
|
743
|
-
}), ne.value.observe(G.value),
|
|
742
|
+
for (const l of e)
|
|
743
|
+
l.contentBoxSize && G.value && (A.value = !0, ue());
|
|
744
|
+
}), ne.value.observe(G.value), Be();
|
|
744
745
|
}
|
|
745
|
-
|
|
746
|
+
Ma(() => {
|
|
746
747
|
ne.value && ne.value.disconnect(), se.value && se.value.disconnect();
|
|
747
748
|
});
|
|
748
|
-
function
|
|
749
|
-
|
|
749
|
+
function Ze(e) {
|
|
750
|
+
na("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), A.value = !0, ue();
|
|
750
751
|
}
|
|
751
|
-
const
|
|
752
|
+
const Ge = x(() => W.value.map((e, l) => ({
|
|
752
753
|
...e,
|
|
753
754
|
name: e.name,
|
|
754
|
-
color:
|
|
755
|
+
color: la(e.color) || We.value[l] || H[l] || H[l % H.length],
|
|
755
756
|
shape: e.shape || "circle",
|
|
756
757
|
prefix: e.prefix || "",
|
|
757
758
|
suffix: e.suffix || "",
|
|
758
759
|
rounding: e.rounding || 0
|
|
759
760
|
})).map((e) => ({
|
|
760
761
|
...e,
|
|
761
|
-
opacity:
|
|
762
|
-
segregate: () =>
|
|
763
|
-
isSegregated:
|
|
764
|
-
}))),
|
|
762
|
+
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
763
|
+
segregate: () => Ze(e.absoluteIndex),
|
|
764
|
+
isSegregated: $.value.includes(e.absoluteIndex)
|
|
765
|
+
}))), za = x(() => ({
|
|
765
766
|
cy: "donut-div-legend",
|
|
766
767
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
767
768
|
color: a.value.style.chart.legend.color,
|
|
@@ -770,10 +771,10 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
770
771
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
771
772
|
})), ie = x(() => {
|
|
772
773
|
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>');
|
|
773
|
-
let
|
|
774
|
-
for (let c = 0; c <
|
|
774
|
+
let l = [];
|
|
775
|
+
for (let c = 0; c < I.value; c += 1) {
|
|
775
776
|
const g = h.value.map((n) => n.series[c] ?? 0).reduce((n, p) => n + p, 0);
|
|
776
|
-
|
|
777
|
+
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((g ?? 0).toFixed(a.value.table.rounding)));
|
|
777
778
|
}
|
|
778
779
|
const o = {
|
|
779
780
|
th: {
|
|
@@ -788,69 +789,71 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
788
789
|
},
|
|
789
790
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
790
791
|
}, v = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
791
|
-
return { head: e, body:
|
|
792
|
-
}),
|
|
792
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: v };
|
|
793
|
+
}), je = x(() => {
|
|
793
794
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
794
795
|
const e = h.value.map((o) => ({
|
|
795
796
|
label: o.name,
|
|
796
797
|
color: o.color,
|
|
797
798
|
type: o.type
|
|
798
|
-
})),
|
|
799
|
+
})), l = [];
|
|
799
800
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
800
801
|
const v = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
801
802
|
h.value.forEach((c) => {
|
|
802
803
|
v.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
803
|
-
}),
|
|
804
|
+
}), l.push(v);
|
|
804
805
|
}
|
|
805
|
-
return { head: e, body:
|
|
806
|
+
return { head: e, body: l };
|
|
806
807
|
});
|
|
807
|
-
function
|
|
808
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
809
|
-
|
|
808
|
+
function qe() {
|
|
809
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...je.value.head.map((g) => g.label)], o = je.value.body, v = e.concat([l]).concat(o), c = Ba(v);
|
|
810
|
+
Va({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
+
function Sa() {
|
|
812
813
|
return h.value;
|
|
813
814
|
}
|
|
814
|
-
function
|
|
815
|
+
function Je() {
|
|
815
816
|
u.value.showTable = !u.value.showTable;
|
|
816
817
|
}
|
|
817
|
-
function
|
|
818
|
+
function Ke() {
|
|
818
819
|
u.value.showDataLabels = !u.value.showDataLabels;
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
+
function Qe() {
|
|
821
822
|
u.value.stacked = !u.value.stacked;
|
|
822
823
|
}
|
|
823
|
-
function
|
|
824
|
+
function ea() {
|
|
824
825
|
u.value.showTooltip = !u.value.showTooltip;
|
|
825
826
|
}
|
|
826
827
|
const ve = i(!1);
|
|
827
828
|
function Le() {
|
|
828
829
|
ve.value = !ve.value;
|
|
829
830
|
}
|
|
830
|
-
return
|
|
831
|
-
getData:
|
|
832
|
-
generateCsv:
|
|
833
|
-
generatePdf:
|
|
834
|
-
generateImage:
|
|
835
|
-
toggleTable:
|
|
836
|
-
toggleLabels:
|
|
837
|
-
toggleStack:
|
|
838
|
-
toggleTooltip:
|
|
831
|
+
return sa({
|
|
832
|
+
getData: Sa,
|
|
833
|
+
generateCsv: qe,
|
|
834
|
+
generatePdf: He,
|
|
835
|
+
generateImage: Ue,
|
|
836
|
+
toggleTable: Je,
|
|
837
|
+
toggleLabels: Ke,
|
|
838
|
+
toggleStack: Qe,
|
|
839
|
+
toggleTooltip: ea,
|
|
839
840
|
toggleAnnotator: Le
|
|
840
|
-
}), (e,
|
|
841
|
-
style:
|
|
841
|
+
}), (e, l) => (z(), K("div", {
|
|
842
|
+
style: Y(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
842
843
|
ref_key: "xy",
|
|
843
844
|
ref: Z,
|
|
844
845
|
id: `xy_canvas_${he.value}`,
|
|
845
|
-
class:
|
|
846
|
+
class: Ta(`vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
847
|
+
onMouseenter: l[5] || (l[5] = () => S(Fe)(!0)),
|
|
848
|
+
onMouseleave: l[6] || (l[6] = () => S(Fe)(!1))
|
|
846
849
|
}, [
|
|
847
|
-
a.value.style.chart.title.text ? (z(),
|
|
850
|
+
a.value.style.chart.title.text ? (z(), K("div", {
|
|
848
851
|
key: 0,
|
|
849
852
|
ref_key: "chartTitle",
|
|
850
|
-
ref:
|
|
851
|
-
style:
|
|
853
|
+
ref: Me,
|
|
854
|
+
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
852
855
|
}, [
|
|
853
|
-
(z(),
|
|
856
|
+
(z(), E(el, {
|
|
854
857
|
key: `title_${fe.value}`,
|
|
855
858
|
config: {
|
|
856
859
|
title: {
|
|
@@ -863,14 +866,14 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
863
866
|
}
|
|
864
867
|
}
|
|
865
868
|
}, null, 8, ["config"]))
|
|
866
|
-
], 4)) :
|
|
867
|
-
a.value.userOptions.show && me.value ? (z(),
|
|
869
|
+
], 4)) : _("", !0),
|
|
870
|
+
a.value.userOptions.show && me.value && (S(Ee) || S(Re)) ? (z(), E(tl, {
|
|
868
871
|
ref: "details",
|
|
869
872
|
key: `user_option_${Ie.value}`,
|
|
870
873
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
871
874
|
color: a.value.style.chart.color,
|
|
872
|
-
isPrinting:
|
|
873
|
-
isImaging:
|
|
875
|
+
isPrinting: S(De),
|
|
876
|
+
isImaging: S(_e),
|
|
874
877
|
uid: he.value,
|
|
875
878
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
876
879
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -888,16 +891,19 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
888
891
|
position: a.value.userOptions.position,
|
|
889
892
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
890
893
|
isAnnotation: ve.value,
|
|
891
|
-
onToggleFullscreen:
|
|
892
|
-
onGeneratePdf:
|
|
893
|
-
onGenerateCsv:
|
|
894
|
-
onGenerateImage:
|
|
895
|
-
onToggleTable:
|
|
896
|
-
onToggleLabels:
|
|
897
|
-
onToggleStack:
|
|
898
|
-
onToggleTooltip:
|
|
899
|
-
onToggleAnnotator: Le
|
|
900
|
-
|
|
894
|
+
onToggleFullscreen: va,
|
|
895
|
+
onGeneratePdf: S(He),
|
|
896
|
+
onGenerateCsv: qe,
|
|
897
|
+
onGenerateImage: S(Ue),
|
|
898
|
+
onToggleTable: Je,
|
|
899
|
+
onToggleLabels: Ke,
|
|
900
|
+
onToggleStack: Qe,
|
|
901
|
+
onToggleTooltip: ea,
|
|
902
|
+
onToggleAnnotator: Le,
|
|
903
|
+
style: Y({
|
|
904
|
+
visibility: S(Ee) ? S(Re) ? "visible" : "hidden" : "visible"
|
|
905
|
+
})
|
|
906
|
+
}, Oa({ _: 2 }, [
|
|
901
907
|
e.$slots.optionTooltip ? {
|
|
902
908
|
name: "optionTooltip",
|
|
903
909
|
fn: b(() => [
|
|
@@ -950,32 +956,32 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
950
956
|
e.$slots.optionFullscreen ? {
|
|
951
957
|
name: "optionFullscreen",
|
|
952
958
|
fn: b(({ toggleFullscreen: o, isFullscreen: v }) => [
|
|
953
|
-
L(e.$slots, "optionFullscreen", B(
|
|
959
|
+
L(e.$slots, "optionFullscreen", B(V({ toggleFullscreen: o, isFullscreen: v })), void 0, !0)
|
|
954
960
|
]),
|
|
955
961
|
key: "7"
|
|
956
962
|
} : void 0,
|
|
957
963
|
e.$slots.optionAnnotator ? {
|
|
958
964
|
name: "optionAnnotator",
|
|
959
965
|
fn: b(({ toggleAnnotator: o, isAnnotator: v }) => [
|
|
960
|
-
L(e.$slots, "optionAnnotator", B(
|
|
966
|
+
L(e.$slots, "optionAnnotator", B(V({ toggleAnnotator: o, isAnnotator: v })), void 0, !0)
|
|
961
967
|
]),
|
|
962
968
|
key: "8"
|
|
963
969
|
} : void 0
|
|
964
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
970
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
965
971
|
Q("div", {
|
|
966
972
|
class: "vue-ui-xy-canvas",
|
|
967
|
-
style:
|
|
973
|
+
style: Y(`position: relative; aspect-ratio: ${Ae.value}`),
|
|
968
974
|
ref_key: "container",
|
|
969
975
|
ref: G
|
|
970
976
|
}, [
|
|
971
|
-
me.value ? (z(),
|
|
977
|
+
me.value ? (z(), K("canvas", {
|
|
972
978
|
key: 0,
|
|
973
979
|
ref_key: "canvas",
|
|
974
|
-
ref:
|
|
980
|
+
ref: M,
|
|
975
981
|
style: { width: "100%", height: "100%" },
|
|
976
|
-
onMousemove:
|
|
977
|
-
onMouseleave:
|
|
978
|
-
}, null, 544)) : (z(),
|
|
982
|
+
onMousemove: l[0] || (l[0] = (o) => Ca(o)),
|
|
983
|
+
onMouseleave: wa
|
|
984
|
+
}, null, 544)) : (z(), E(ul, {
|
|
979
985
|
key: 1,
|
|
980
986
|
config: {
|
|
981
987
|
type: "line",
|
|
@@ -993,7 +999,7 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
993
999
|
}
|
|
994
1000
|
}
|
|
995
1001
|
}, null, 8, ["config"])),
|
|
996
|
-
|
|
1002
|
+
Pa(Ka, {
|
|
997
1003
|
show: u.value.showTooltip && te.value,
|
|
998
1004
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
999
1005
|
color: a.value.style.chart.tooltip.color,
|
|
@@ -1003,30 +1009,30 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
1003
1009
|
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
1004
1010
|
position: a.value.style.chart.tooltip.position,
|
|
1005
1011
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
1006
|
-
parent:
|
|
1012
|
+
parent: M.value,
|
|
1007
1013
|
content: oe.value,
|
|
1008
1014
|
isFullscreen: re.value,
|
|
1009
1015
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1010
|
-
isCustom:
|
|
1016
|
+
isCustom: S(ta)(a.value.style.chart.tooltip.customFormat)
|
|
1011
1017
|
}, {
|
|
1012
1018
|
"tooltip-before": b(() => [
|
|
1013
|
-
L(e.$slots, "tooltip-before", B(
|
|
1019
|
+
L(e.$slots, "tooltip-before", B(V({ ...Se.value })), void 0, !0)
|
|
1014
1020
|
]),
|
|
1015
1021
|
"tooltip-after": b(() => [
|
|
1016
|
-
L(e.$slots, "tooltip-after", B(
|
|
1022
|
+
L(e.$slots, "tooltip-after", B(V({ ...Se.value })), void 0, !0)
|
|
1017
1023
|
]),
|
|
1018
1024
|
_: 3
|
|
1019
1025
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
1020
1026
|
], 4),
|
|
1021
1027
|
Q("div", {
|
|
1022
1028
|
ref_key: "chartSlicer",
|
|
1023
|
-
ref:
|
|
1024
|
-
style:
|
|
1029
|
+
ref: Oe,
|
|
1030
|
+
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1025
1031
|
"data-html2canvas-ignore": ""
|
|
1026
1032
|
}, [
|
|
1027
|
-
a.value.style.chart.zoom.show &&
|
|
1033
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (z(), E(al, {
|
|
1028
1034
|
ref_key: "slicerComponent",
|
|
1029
|
-
ref:
|
|
1035
|
+
ref: X,
|
|
1030
1036
|
key: `slicer_${$e.value}`,
|
|
1031
1037
|
background: a.value.style.chart.zoom.color,
|
|
1032
1038
|
borderColor: a.value.style.chart.backgroundColor,
|
|
@@ -1037,58 +1043,58 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
1037
1043
|
textColor: a.value.style.chart.color,
|
|
1038
1044
|
inputColor: a.value.style.chart.zoom.color,
|
|
1039
1045
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
1040
|
-
max:
|
|
1046
|
+
max: I.value,
|
|
1041
1047
|
min: 0,
|
|
1042
1048
|
valueStart: r.value.start,
|
|
1043
1049
|
valueEnd: r.value.end,
|
|
1044
1050
|
start: r.value.start,
|
|
1045
|
-
"onUpdate:start":
|
|
1051
|
+
"onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
|
|
1046
1052
|
end: r.value.end,
|
|
1047
|
-
"onUpdate:end":
|
|
1053
|
+
"onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
|
|
1048
1054
|
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1049
|
-
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 :
|
|
1050
|
-
onReset:
|
|
1055
|
+
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1056
|
+
onReset: Ye
|
|
1051
1057
|
}, {
|
|
1052
1058
|
"reset-action": b(({ reset: o }) => [
|
|
1053
|
-
L(e.$slots, "reset-action", B(
|
|
1059
|
+
L(e.$slots, "reset-action", B(V({ reset: o })), void 0, !0)
|
|
1054
1060
|
]),
|
|
1055
1061
|
_: 3
|
|
1056
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) :
|
|
1062
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : _("", !0)
|
|
1057
1063
|
], 4),
|
|
1058
1064
|
Q("div", {
|
|
1059
1065
|
ref_key: "chartLegend",
|
|
1060
|
-
ref:
|
|
1066
|
+
ref: Te
|
|
1061
1067
|
}, [
|
|
1062
|
-
a.value.style.chart.legend.show && me.value ? (z(),
|
|
1063
|
-
legendSet:
|
|
1064
|
-
config:
|
|
1068
|
+
a.value.style.chart.legend.show && me.value ? (z(), E(Qa, {
|
|
1069
|
+
legendSet: Ge.value,
|
|
1070
|
+
config: za.value,
|
|
1065
1071
|
key: `legend_${pe.value}`,
|
|
1066
|
-
onClickMarker:
|
|
1072
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => Ze(o))
|
|
1067
1073
|
}, {
|
|
1068
1074
|
item: b(({ legend: o, index: v }) => [
|
|
1069
1075
|
Q("div", {
|
|
1070
1076
|
onClick: (c) => o.segregate(),
|
|
1071
|
-
style:
|
|
1072
|
-
},
|
|
1077
|
+
style: Y(`opacity:${$.value.includes(v) ? 0.5 : 1}`)
|
|
1078
|
+
}, aa(o.name), 13, cl)
|
|
1073
1079
|
]),
|
|
1074
1080
|
_: 1
|
|
1075
1081
|
}, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
|
|
1076
1082
|
key: 1,
|
|
1077
|
-
legend:
|
|
1083
|
+
legend: Ge.value
|
|
1078
1084
|
}, void 0, !0)
|
|
1079
1085
|
], 512),
|
|
1080
|
-
e.$slots.watermark ? (z(),
|
|
1081
|
-
L(e.$slots, "watermark", B(
|
|
1082
|
-
])) :
|
|
1083
|
-
e.$slots.source ? (z(),
|
|
1086
|
+
e.$slots.watermark ? (z(), K("div", dl, [
|
|
1087
|
+
L(e.$slots, "watermark", B(V({ isPrinting: S(De) || S(_e) })), void 0, !0)
|
|
1088
|
+
])) : _("", !0),
|
|
1089
|
+
e.$slots.source ? (z(), K("div", {
|
|
1084
1090
|
key: 3,
|
|
1085
1091
|
ref_key: "source",
|
|
1086
|
-
ref:
|
|
1092
|
+
ref: Pe,
|
|
1087
1093
|
dir: "auto"
|
|
1088
1094
|
}, [
|
|
1089
1095
|
L(e.$slots, "source", {}, void 0, !0)
|
|
1090
|
-
], 512)) :
|
|
1091
|
-
r.value.end - r.value.start < 200 ? (z(),
|
|
1096
|
+
], 512)) : _("", !0),
|
|
1097
|
+
r.value.end - r.value.start < 200 ? (z(), E(ol, {
|
|
1092
1098
|
key: 4,
|
|
1093
1099
|
hideDetails: "",
|
|
1094
1100
|
config: {
|
|
@@ -1105,37 +1111,37 @@ const ul = ["id"], sl = ["onClick"], nl = {
|
|
|
1105
1111
|
}
|
|
1106
1112
|
}, {
|
|
1107
1113
|
content: b(() => [
|
|
1108
|
-
(z(),
|
|
1114
|
+
(z(), E(rl, {
|
|
1109
1115
|
key: `table_${ge.value}`,
|
|
1110
1116
|
colNames: ie.value.colNames,
|
|
1111
1117
|
head: ie.value.head,
|
|
1112
1118
|
body: ie.value.body,
|
|
1113
1119
|
config: ie.value.config,
|
|
1114
1120
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1115
|
-
onClose:
|
|
1121
|
+
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1116
1122
|
}, {
|
|
1117
1123
|
th: b(({ th: o }) => [
|
|
1118
|
-
Q("div", { innerHTML: o }, null, 8,
|
|
1124
|
+
Q("div", { innerHTML: o }, null, 8, hl)
|
|
1119
1125
|
]),
|
|
1120
1126
|
td: b(({ td: o }) => [
|
|
1121
|
-
|
|
1127
|
+
Ra(aa(o), 1)
|
|
1122
1128
|
]),
|
|
1123
1129
|
_: 1
|
|
1124
1130
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1125
1131
|
]),
|
|
1126
1132
|
_: 1
|
|
1127
|
-
}, 8, ["config"])) :
|
|
1128
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (z(),
|
|
1133
|
+
}, 8, ["config"])) : _("", !0),
|
|
1134
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (z(), E(sl, {
|
|
1129
1135
|
key: 5,
|
|
1130
1136
|
parent: Z.value,
|
|
1131
1137
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1132
1138
|
color: a.value.style.chart.color,
|
|
1133
1139
|
active: ve.value,
|
|
1134
1140
|
onClose: Le
|
|
1135
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1136
|
-
],
|
|
1141
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1142
|
+
], 46, vl));
|
|
1137
1143
|
}
|
|
1138
|
-
},
|
|
1144
|
+
}, Tl = /* @__PURE__ */ il(yl, [["__scopeId", "data-v-f3b0e7c8"]]);
|
|
1139
1145
|
export {
|
|
1140
|
-
|
|
1146
|
+
Tl as default
|
|
1141
1147
|
};
|