vue-data-ui 2.4.41 → 2.4.42
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-6z0ZQva_.js → Arrow-DE71uBJZ.js} +1 -1
- package/dist/{Arrow-Cht76m69.cjs → Arrow-DTscDttD.cjs} +1 -1
- package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-C8XxmpRq.js} +1 -1
- package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-COOfxsl_.cjs} +1 -1
- package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DEdQvqB1.cjs} +1 -1
- package/dist/{DataTable-B5DiCrf_.js → DataTable-D_w08xos.js} +2 -2
- package/dist/{Legend-DzxQIjDO.js → Legend-BWDoQii_.js} +1 -1
- package/dist/{Legend-BXG_XPom.cjs → Legend-C4rlR-Ge.cjs} +1 -1
- package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CH6MCx6T.js} +1 -1
- package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-DKyD7D76.cjs} +1 -1
- package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-BWTR3U2d.js} +3 -3
- package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-Dc2zn4C0.cjs} +1 -1
- package/dist/{Shape-CvL90fNe.cjs → Shape-BLS-KzBD.cjs} +1 -1
- package/dist/{Shape-C3ywBhkW.js → Shape-xrlfL_v4.js} +1 -1
- package/dist/Slicer-8gKX0l4Q.cjs +1 -0
- package/dist/Slicer-DIYseEL1.js +423 -0
- package/dist/{Title-D9gPXVTT.cjs → Title-B-xkTfi8.cjs} +1 -1
- package/dist/{Title-BB0O0yol.js → Title-Cnl9ySNH.js} +1 -1
- package/dist/Tooltip-Brbj6DqX.cjs +1 -0
- package/dist/{Tooltip-GvLaModr.js → Tooltip-DEAOBZ8h.js} +33 -25
- package/dist/index-B68kzBN9.cjs +9 -0
- package/dist/{index-B6Q1Fyk0.js → index-DnukYspq.js} +45 -41
- 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-DQpuJSz3.js → useNestedProp-CVOQGx-X.js} +1 -1
- package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-es9bVqY_.cjs} +1 -1
- package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-C9yUesCc.cjs} +1 -1
- package/dist/{usePrinter-D8dIU7aG.js → usePrinter-DVIALk5e.js} +1 -1
- package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-BmmjmNbb.js} +60 -60
- package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-LA94HAVo.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +3 -3
- package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-CnVJAgFO.js} +9 -9
- package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-DYswbvC_.cjs} +1 -1
- package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-D_K9gNUR.cjs} +1 -1
- package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-f9NTID9e.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-Bj9K08ws.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-CL0RB7mU.js} +42 -41
- package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-C82vEb7R.js} +1 -1
- package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-DhwUZ4WB.cjs} +1 -1
- package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-BxYYiFnu.js} +15 -15
- package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-D6KC5yoe.cjs} +1 -1
- package/dist/vue-ui-candlestick-Duf3yfwR.js +740 -0
- package/dist/vue-ui-candlestick-lunuQ9Ka.cjs +2 -0
- package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-4z9ZACSk.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-DQymYeK0.js} +4 -4
- package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-DDNLUSav.js} +8 -8
- package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-iRODkXaw.cjs} +1 -1
- package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-Bdud_Fxg.js} +2 -2
- package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-Bt_SieMc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-BzRR9Ra7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CeVkJPeG.js} +2 -2
- package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DF3oLaaR.cjs} +1 -1
- package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DtNvb8lM.js} +2 -2
- package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-C028OlzU.js} +99 -98
- package/dist/vue-ui-donut-evolution-2vQPsBFq.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CprYApXF.js +908 -0
- package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-o09QqVJO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-BV2LN5qt.js} +10 -10
- package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-CS8pY-mj.cjs} +1 -1
- package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-QRimZUXT.js} +46 -46
- package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-iNWWhp7U.cjs} +1 -1
- package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-BL8vtmsw.cjs} +1 -1
- package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-CBymVSdd.js} +19 -19
- package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-DSJrMBzj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-KP3A9HVX.js} +53 -52
- package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-BuU0DDG0.js} +7 -7
- package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-H9j8Dq5h.cjs} +1 -1
- package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-Bl9JoMk1.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-M7RalwJ6.js} +3 -3
- package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-BXWWh4iN.cjs} +1 -1
- package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-DSkfyl8j.js} +60 -59
- package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-BUoUHKx6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-CYSDr-GH.js} +60 -59
- package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BXe7HQIh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BvUaC7JA.js} +3 -3
- package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-DM8ShcKo.js} +2 -2
- package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-zbjxzJTp.cjs} +1 -1
- package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-BdIRpOM9.cjs} +1 -1
- package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-CZi84tUl.js} +26 -25
- package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-DDnbuNdv.js} +11 -11
- package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-DipV_UPN.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-Chuuvtu-.js} +78 -77
- package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-DuxVLzDH.cjs} +2 -2
- package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-CIRGvycb.js} +49 -48
- package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-CvlwZgpu.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-eJMnJ_u2.cjs} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-jv7L5_x8.js} +70 -69
- package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CjjXU43-.js} +55 -54
- package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-ks_4yK85.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-BAVQ2SJ2.js} +637 -622
- package/dist/vue-ui-quick-chart-Br2gTOPk.cjs +15 -0
- package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-CXXAYowO.js} +38 -37
- package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-kjh9y4cm.cjs} +1 -1
- package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-DOqMciYJ.js} +2 -2
- package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-EEIqiBgY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-BEv568py.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-CR3iWQV_.js} +19 -19
- package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-B--CFaNX.js} +49 -48
- package/dist/vue-ui-rings-CgvWaw5N.cjs +2 -0
- package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-C-RD4h73.js} +26 -25
- package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-ChWlgb1L.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C6-MOj7h.js} +1 -1
- package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-CtjCOun0.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-CXdyOF4T.js} +3 -3
- package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-DGCkWrND.cjs} +1 -1
- package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-AYBZK1EE.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-CHXnJeLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-D2wIBOvT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-DO5rDGRm.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-COUcdDjn.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-CU3UNgHm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-0810df6b.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-DrJzwEAh.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-CENPsEeO.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-j7MGEYYJ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-BOYreaxT.js} +4 -4
- package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-CXMea9Ki.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BJIo5y1n.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-JvKmnoEy.js} +5 -5
- package/dist/vue-ui-stackbar-BOAmp-no.cjs +6 -0
- package/dist/{vue-ui-stackbar-BZbOagnf.js → vue-ui-stackbar-C3-hx7VM.js} +390 -377
- package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-8MxOeTM_.js} +71 -70
- package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-CmIS1Osx.cjs} +1 -1
- package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-CS-NSZjj.js} +1 -1
- package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-hVmeT8wY.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-CGHYZFJy.js} +9 -9
- package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-k9e_RrhC.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-CRnJVQmO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-DiMZ_mh6.cjs} +1 -1
- package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-43jmlgFC.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-D2BUcsvF.js} +7 -7
- package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BO9Ipy0W.cjs} +1 -1
- package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-Dc6zOjxq.js} +9 -9
- package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CMUTe1vY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-ejt0fqPg.js} +7 -7
- package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-DD8tFk9R.js} +98 -97
- package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-DqSHqaJK.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-CxydSPHF.js} +58 -57
- package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-D4dYglan.cjs} +2 -2
- package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-CHWAepdl.cjs} +1 -1
- package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DYdcFM17.js} +79 -78
- package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-CxtgGGpt.js} +7 -7
- package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-_ynSyF3l.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-B0AhPT0k.js} +10 -10
- package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-Ct16Xxaw.cjs} +1 -1
- package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-B3346TfB.js} +195 -185
- package/dist/vue-ui-xy-DHYbKvBg.cjs +3 -0
- package/dist/vue-ui-xy-canvas-DtPqmu7B.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-W7YGqG7f.js} +378 -365
- package/package.json +1 -1
- package/dist/Slicer-B2aHb4bj.cjs +0 -1
- package/dist/Slicer-D9ASV60L.js +0 -400
- package/dist/Tooltip-ypQtmi99.cjs +0 -1
- package/dist/index-B5Ugkauv.cjs +0 -9
- package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
- package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
- package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
- package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
- package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
- package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
- package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
- package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { P as
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
1
|
+
import { ref as i, computed as x, watch as _, nextTick as ce, onMounted as za, onBeforeUnmount as Sa, openBlock as z, createElementBlock as J, normalizeStyle as K, normalizeClass as $a, createBlock as F, createCommentVNode as A, unref as D, createSlots as Ia, withCtx as b, renderSlot as L, normalizeProps as B, guardReactiveProps as U, createElementVNode as Q, createVNode as Ta, toDisplayString as Ke, createTextVNode as Ma } from "vue";
|
|
2
|
+
import { u as Pa, c as Ra, t as Oa, a as Fa, p as H, C as de, b as Ea, D as Ce, i as ee, f as ae, Y as Na, J as _a, d as Qe, a2 as Aa, o as Da, e as Ha, x as ea, y as Wa, q as Xa, r as Ya, s as le, l as Ba } from "./index-DnukYspq.js";
|
|
3
|
+
import { d as Ua, c as Za, a as aa, t as Ga, l as k, r as we, b as E, p as la, u as Va } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as ja } from "./Tooltip-DEAOBZ8h.js";
|
|
5
|
+
import { L as qa } from "./Legend-BWDoQii_.js";
|
|
6
|
+
import { _ as Ja } from "./Title-Cnl9ySNH.js";
|
|
7
|
+
import { S as Ka } from "./Slicer-DIYseEL1.js";
|
|
8
|
+
import { u as Qa, U as el } from "./usePrinter-DVIALk5e.js";
|
|
9
|
+
import al from "./vue-ui-accordion-f9NTID9e.js";
|
|
10
|
+
import { D as ll } from "./DataTable-D_w08xos.js";
|
|
11
|
+
import tl from "./vue-ui-skeleton-CXdyOF4T.js";
|
|
12
|
+
import { u as ta } from "./useNestedProp-CVOQGx-X.js";
|
|
13
|
+
import { P as ol } from "./PenAndPaper-BWTR3U2d.js";
|
|
14
|
+
import { _ as rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ul = ["id"], sl = ["onClick"], nl = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
18
|
+
}, il = ["innerHTML"], vl = {
|
|
19
19
|
__name: "vue-ui-xy-canvas",
|
|
20
20
|
props: {
|
|
21
21
|
dataset: {
|
|
@@ -32,96 +32,96 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
get: () =>
|
|
35
|
+
setup(ze, { expose: oa, emit: ra }) {
|
|
36
|
+
const f = ze, { vue_ui_xy_canvas: ua } = Pa(), he = i(Ra()), Z = i(null), I = 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), S = i([]), W = i(1), N = i(!0), T = i(!0), ye = i(null), $e = i(0), Ie = i(0), re = i(!1), Te = i(null), Me = i(null), Pe = i(null), Re = i(null), fe = i(0), ge = i(0), pe = i(0), me = x(() => !!f.dataset && f.dataset.length), a = x({
|
|
37
|
+
get: () => Oe(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
});
|
|
40
|
-
function
|
|
41
|
-
const e =
|
|
42
|
-
userConfig:
|
|
43
|
-
defaultConfig:
|
|
40
|
+
function Oe() {
|
|
41
|
+
const e = ta({
|
|
42
|
+
userConfig: f.config,
|
|
43
|
+
defaultConfig: ua
|
|
44
44
|
});
|
|
45
45
|
let t = {};
|
|
46
46
|
return e.theme ? t = {
|
|
47
|
-
...
|
|
48
|
-
userConfig:
|
|
47
|
+
...ta({
|
|
48
|
+
userConfig: Oa.vue_ui_xy_canvas[e.theme] || f.config,
|
|
49
49
|
defaultConfig: e
|
|
50
50
|
}),
|
|
51
|
-
customPalette:
|
|
52
|
-
} : t = e,
|
|
51
|
+
customPalette: Fa[e.theme] || H
|
|
52
|
+
} : t = e, f.config && de(f.config, "style.chart.scale.min") ? t.style.chart.scale.min = f.config.style.chart.scale.min : t.style.chart.scale.min = null, f.config && de(f.config, "style.chart.scale.max") ? t.style.chart.scale.max = f.config.style.chart.scale.max : t.style.chart.scale.max = null, f.config && de(f.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, f.config && de(f.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
a.value =
|
|
56
|
-
}, { deep: !0 }),
|
|
57
|
-
|
|
54
|
+
_(() => f.config, (e) => {
|
|
55
|
+
a.value = Oe(), xe(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
56
|
+
}, { deep: !0 }), _(() => f.dataset, () => {
|
|
57
|
+
xe(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
58
58
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
-
elementId: `xy_canvas_${
|
|
59
|
+
const Fe = i(a.value.style.chart.aspectRatio), { isPrinting: Ee, isImaging: Ne, generatePdf: _e, generateImage: Ae } = Qa({
|
|
60
|
+
elementId: `xy_canvas_${he.value}`,
|
|
61
61
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
62
|
-
}), u =
|
|
62
|
+
}), u = i({
|
|
63
63
|
showTable: a.value.table.show,
|
|
64
64
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
65
65
|
stacked: a.value.style.chart.stacked,
|
|
66
66
|
showTooltip: a.value.style.chart.tooltip.show
|
|
67
67
|
});
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function sa(e) {
|
|
69
|
+
re.value = e, Ie.value += 1;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const De = x(() => Ea(a.value.customPalette)), $ = x(() => X.value ? Math.max(...X.value.filter((e, t) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
|
|
72
72
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
73
73
|
return {
|
|
74
74
|
canvasWidth: y.value,
|
|
75
|
-
canvasHeight:
|
|
75
|
+
canvasHeight: P.value,
|
|
76
76
|
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
77
|
-
top:
|
|
77
|
+
top: P.value * a.value.style.chart.paddingProportions.top,
|
|
78
78
|
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
79
|
-
bottom:
|
|
79
|
+
bottom: P.value - P.value * a.value.style.chart.paddingProportions.bottom,
|
|
80
80
|
width: e,
|
|
81
|
-
height:
|
|
81
|
+
height: P.value - P.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
82
82
|
slot: e / (r.value.end - r.value.start)
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
-
function
|
|
85
|
+
function He(e, t) {
|
|
86
86
|
return e / t;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return t.map((w,
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
e && (
|
|
93
|
-
let
|
|
94
|
-
return
|
|
95
|
-
x: l.value.left + l.value.slot *
|
|
96
|
-
y:
|
|
88
|
+
function na({ hasAutoScale: e, series: t, min: o, max: v, scale: c, yOffset: g, individualHeight: n, stackIndex: p = null }) {
|
|
89
|
+
return t.map((w, ke) => {
|
|
90
|
+
const M = c.min < 0 ? Math.abs(c.min) : 0, R = He(w + M, M + c.max);
|
|
91
|
+
let O, V;
|
|
92
|
+
e && (O = Math.abs(c.min), V = He(w + O, c.max + O));
|
|
93
|
+
let j = 0;
|
|
94
|
+
return p === null ? j = l.value.bottom - l.value.height * (e ? V : R) : j = l.value.bottom - g - n * (e ? V : R), {
|
|
95
|
+
x: l.value.left + l.value.slot * ke + l.value.slot / 2,
|
|
96
|
+
y: j,
|
|
97
97
|
value: w
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
const
|
|
102
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...X.value.filter((n,
|
|
103
|
-
y: l.value.bottom - l.value.height * ((n +
|
|
101
|
+
const m = x(() => {
|
|
102
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...X.value.filter((n, p) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...X.value.filter((n, p) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = Ce(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), v = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (v / (o.max + v)), g = o.ticks.map((n) => ({
|
|
103
|
+
y: l.value.bottom - l.value.height * ((n + v) / (o.max + v)),
|
|
104
104
|
x: l.value.left - 8,
|
|
105
105
|
value: n
|
|
106
106
|
}));
|
|
107
107
|
return {
|
|
108
|
-
absoluteMin:
|
|
108
|
+
absoluteMin: v,
|
|
109
109
|
max: t,
|
|
110
110
|
min: e,
|
|
111
111
|
scale: o,
|
|
112
|
-
yLabels:
|
|
112
|
+
yLabels: g,
|
|
113
113
|
zero: c
|
|
114
114
|
};
|
|
115
|
-
}),
|
|
115
|
+
}), ia = x(() => h.value.map((e) => `
|
|
116
116
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
117
117
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
118
118
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
119
119
|
</svg>
|
|
120
120
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
121
|
-
<span>${
|
|
121
|
+
<span>${ee(
|
|
122
122
|
a.value.style.chart.dataLabels.formatter,
|
|
123
123
|
e.series[d.value],
|
|
124
|
-
|
|
124
|
+
ae({
|
|
125
125
|
p: e.prefix || "",
|
|
126
126
|
v: e.series[d.value],
|
|
127
127
|
s: e.suffix || "",
|
|
@@ -130,82 +130,90 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
130
130
|
{ datapoint: e, seriesIndex: d.value }
|
|
131
131
|
)}</span>
|
|
132
132
|
</div>
|
|
133
|
-
`)), X =
|
|
133
|
+
`)), X = x(() => f.dataset.map((e, t) => ({
|
|
134
134
|
...e,
|
|
135
|
-
series:
|
|
136
|
-
data:
|
|
135
|
+
series: Na({
|
|
136
|
+
data: _a(e.series),
|
|
137
137
|
threshold: a.value.downsample.threshold
|
|
138
138
|
}),
|
|
139
139
|
absoluteIndex: t,
|
|
140
|
-
color:
|
|
140
|
+
color: Qe(e.color || De.value[t] || H[t] || H[t % H.length])
|
|
141
141
|
})));
|
|
142
|
-
|
|
143
|
-
e &&
|
|
142
|
+
_($, (e) => {
|
|
143
|
+
e && We();
|
|
144
144
|
});
|
|
145
|
-
const h =
|
|
145
|
+
const h = x(() => Aa(X.value.filter((e, t) => !S.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
146
146
|
...e,
|
|
147
147
|
series: e.series.slice(r.value.start, r.value.end)
|
|
148
148
|
})).map((e, t) => {
|
|
149
|
-
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin,
|
|
150
|
-
o ===
|
|
151
|
-
const
|
|
152
|
-
ratios: e.series.filter((
|
|
149
|
+
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
|
+
o === v && (o = o >= 0 ? v - 1 : o, v = v >= 0 ? v : o + 1);
|
|
151
|
+
const g = {
|
|
152
|
+
ratios: e.series.filter((q) => ![null, void 0].includes(q)).map((q) => (q - o) / (v - o)),
|
|
153
153
|
valueMin: o,
|
|
154
|
-
valueMax:
|
|
154
|
+
valueMax: v
|
|
155
155
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
156
|
-
let
|
|
157
|
-
e.autoScaling ?
|
|
158
|
-
const w = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0,
|
|
159
|
-
let
|
|
160
|
-
e.autoScaling && u.value.stacked &&
|
|
161
|
-
const
|
|
162
|
-
y: l.value.bottom - w -
|
|
156
|
+
let p;
|
|
157
|
+
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 ? l.value.height * (1 - e.cumulatedStackRatio) : 0, ke = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, M = u.value.stacked ? l.value.height * e.stackRatio - ke : l.value.height, R = p.min < 0 ? Math.abs(p.min) : 0;
|
|
159
|
+
let O;
|
|
160
|
+
e.autoScaling && u.value.stacked && v <= 0 ? O = l.value.bottom - w - M : O = l.value.bottom - w - M * (R / (p.max + R));
|
|
161
|
+
const V = p.ticks.map((q, wa) => ({
|
|
162
|
+
y: l.value.bottom - w - M * (wa / (p.ticks.length - 1)),
|
|
163
163
|
x: l.value.left - 8,
|
|
164
|
-
value:
|
|
165
|
-
})),
|
|
164
|
+
value: q
|
|
165
|
+
})), j = na({
|
|
166
166
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
167
167
|
series: e.series,
|
|
168
|
-
min: u.value.stacked ? o :
|
|
169
|
-
max: u.value.stacked ?
|
|
170
|
-
scale: u.value.stacked ?
|
|
168
|
+
min: u.value.stacked ? o : m.value.min,
|
|
169
|
+
max: u.value.stacked ? v : m.value.max,
|
|
170
|
+
scale: u.value.stacked ? p : m.value.scale,
|
|
171
171
|
yOffset: w,
|
|
172
|
-
individualHeight:
|
|
172
|
+
individualHeight: M,
|
|
173
173
|
stackIndex: u.value.stacked ? t : null
|
|
174
174
|
});
|
|
175
175
|
return {
|
|
176
176
|
...e,
|
|
177
|
-
coordinatesLine:
|
|
177
|
+
coordinatesLine: j,
|
|
178
178
|
min: o,
|
|
179
|
-
max:
|
|
180
|
-
localScale:
|
|
181
|
-
localZero:
|
|
182
|
-
localMin:
|
|
183
|
-
localYLabels:
|
|
179
|
+
max: v,
|
|
180
|
+
localScale: p,
|
|
181
|
+
localZero: O,
|
|
182
|
+
localMin: R,
|
|
183
|
+
localYLabels: V,
|
|
184
184
|
yOffset: w,
|
|
185
|
-
individualHeight:
|
|
185
|
+
individualHeight: M
|
|
186
186
|
};
|
|
187
|
-
})), r =
|
|
187
|
+
})), r = i({
|
|
188
188
|
start: 0,
|
|
189
|
-
end:
|
|
189
|
+
end: $.value
|
|
190
190
|
});
|
|
191
|
-
function
|
|
192
|
-
|
|
191
|
+
function We() {
|
|
192
|
+
Xe();
|
|
193
|
+
}
|
|
194
|
+
const Y = i(null);
|
|
195
|
+
async function Xe() {
|
|
196
|
+
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && Y.value ? (a.value.style.chart.zoom.startIndex !== null && (await ce(), await ce(), Y.value && Y.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await ce(), await ce(), Y.value && Y.value.setEndValue(va(a.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
|
|
193
197
|
start: 0,
|
|
194
|
-
end:
|
|
195
|
-
},
|
|
198
|
+
end: $.value
|
|
199
|
+
}, $e.value += 1);
|
|
200
|
+
}
|
|
201
|
+
function va(e) {
|
|
202
|
+
const t = $.value;
|
|
203
|
+
return e > t ? t : 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;
|
|
196
204
|
}
|
|
197
|
-
const
|
|
198
|
-
function
|
|
199
|
-
if (!
|
|
205
|
+
const ca = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = x(() => h.value.filter((e) => e.type === "bar"));
|
|
206
|
+
function da() {
|
|
207
|
+
if (!I.value)
|
|
200
208
|
return;
|
|
201
|
-
const e =
|
|
202
|
-
|
|
209
|
+
const e = G.value.offsetWidth, t = G.value.offsetHeight;
|
|
210
|
+
I.value.width = e * W.value * 2, I.value.height = t * W.value * 2, y.value = e * W.value * 2, P.value = t * W.value * 2, s.value.scale(W.value, W.value), be();
|
|
203
211
|
}
|
|
204
|
-
function
|
|
212
|
+
function ha() {
|
|
205
213
|
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), u.value.stacked)
|
|
206
214
|
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) => {
|
|
207
215
|
for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
|
|
208
|
-
|
|
216
|
+
k(
|
|
209
217
|
s.value,
|
|
210
218
|
[
|
|
211
219
|
{
|
|
@@ -223,7 +231,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
223
231
|
);
|
|
224
232
|
}) : 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) => {
|
|
225
233
|
for (let t = r.value.start; t < r.value.end; t += 1)
|
|
226
|
-
t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 &&
|
|
234
|
+
t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
227
235
|
s.value,
|
|
228
236
|
[
|
|
229
237
|
{
|
|
@@ -241,7 +249,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
241
249
|
);
|
|
242
250
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
243
251
|
e.localYLabels.forEach((t, o) => {
|
|
244
|
-
o < e.localYLabels.length - 1 &&
|
|
252
|
+
o < e.localYLabels.length - 1 && we(
|
|
245
253
|
s.value,
|
|
246
254
|
[
|
|
247
255
|
{ x: l.value.left, y: t.y },
|
|
@@ -250,14 +258,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
250
258
|
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
251
259
|
],
|
|
252
260
|
{
|
|
253
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
261
|
+
fillColor: o % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
254
262
|
strokeColor: "transparent"
|
|
255
263
|
}
|
|
256
264
|
);
|
|
257
265
|
});
|
|
258
266
|
}) : h.value.forEach((e) => {
|
|
259
267
|
e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
|
|
260
|
-
|
|
268
|
+
k(
|
|
261
269
|
s.value,
|
|
262
270
|
[
|
|
263
271
|
{ x: l.value.left, y: t.y },
|
|
@@ -269,7 +277,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
269
277
|
);
|
|
270
278
|
});
|
|
271
279
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
272
|
-
|
|
280
|
+
k(
|
|
273
281
|
s.value,
|
|
274
282
|
[
|
|
275
283
|
{ x: l.value.left, y: e.localZero },
|
|
@@ -281,7 +289,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
281
289
|
}
|
|
282
290
|
);
|
|
283
291
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
284
|
-
|
|
292
|
+
k(
|
|
285
293
|
s.value,
|
|
286
294
|
[
|
|
287
295
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -290,7 +298,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
290
298
|
{
|
|
291
299
|
color: e.color
|
|
292
300
|
}
|
|
293
|
-
),
|
|
301
|
+
), k(
|
|
294
302
|
s.value,
|
|
295
303
|
[
|
|
296
304
|
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
@@ -302,10 +310,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
302
310
|
), e.localYLabels.forEach((t, o) => {
|
|
303
311
|
E(
|
|
304
312
|
s.value,
|
|
305
|
-
|
|
313
|
+
ee(
|
|
306
314
|
a.value.style.chart.dataLabels.formatter,
|
|
307
315
|
t.value,
|
|
308
|
-
|
|
316
|
+
ae({
|
|
309
317
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
310
318
|
v: t.value,
|
|
311
319
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -339,7 +347,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
339
347
|
else {
|
|
340
348
|
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
341
349
|
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
342
|
-
|
|
350
|
+
k(
|
|
343
351
|
s.value,
|
|
344
352
|
[
|
|
345
353
|
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
@@ -351,7 +359,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
351
359
|
);
|
|
352
360
|
else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
353
361
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
354
|
-
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 &&
|
|
362
|
+
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
355
363
|
s.value,
|
|
356
364
|
[
|
|
357
365
|
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
|
|
@@ -361,22 +369,22 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
361
369
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
362
370
|
}
|
|
363
371
|
);
|
|
364
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ?
|
|
365
|
-
t <
|
|
372
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, t) => {
|
|
373
|
+
t < m.value.yLabels.length - 1 && we(
|
|
366
374
|
s.value,
|
|
367
375
|
[
|
|
368
376
|
{ x: l.value.left, y: e.y },
|
|
369
377
|
{ x: l.value.right, y: e.y },
|
|
370
|
-
{ x: l.value.right, y:
|
|
371
|
-
{ x: l.value.left, y:
|
|
378
|
+
{ x: l.value.right, y: m.value.yLabels[t + 1].y },
|
|
379
|
+
{ x: l.value.left, y: m.value.yLabels[t + 1].y }
|
|
372
380
|
],
|
|
373
381
|
{
|
|
374
|
-
fillColor: t % 2 === 0 ? "transparent" :
|
|
382
|
+
fillColor: t % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
375
383
|
strokeColor: "transparent"
|
|
376
384
|
}
|
|
377
385
|
);
|
|
378
|
-
}) :
|
|
379
|
-
|
|
386
|
+
}) : m.value.yLabels.forEach((e) => {
|
|
387
|
+
k(
|
|
380
388
|
s.value,
|
|
381
389
|
[
|
|
382
390
|
{ x: l.value.left, y: e.y },
|
|
@@ -386,7 +394,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
386
394
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
387
395
|
}
|
|
388
396
|
);
|
|
389
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
397
|
+
})), a.value.style.chart.grid.y.showAxis && k(
|
|
390
398
|
s.value,
|
|
391
399
|
[
|
|
392
400
|
{ x: l.value.left, y: l.value.top },
|
|
@@ -396,7 +404,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
396
404
|
color: a.value.style.chart.grid.y.axisColor,
|
|
397
405
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
398
406
|
}
|
|
399
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
407
|
+
), a.value.style.chart.grid.x.showAxis && k(
|
|
400
408
|
s.value,
|
|
401
409
|
[
|
|
402
410
|
{ x: l.value.left, y: l.value.bottom },
|
|
@@ -406,23 +414,23 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
406
414
|
color: a.value.style.chart.grid.x.axisColor,
|
|
407
415
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
408
416
|
}
|
|
409
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
417
|
+
), a.value.style.chart.grid.zeroLine.show && k(
|
|
410
418
|
s.value,
|
|
411
419
|
[
|
|
412
|
-
{ x: l.value.left, y:
|
|
413
|
-
{ x: l.value.right, y:
|
|
420
|
+
{ x: l.value.left, y: m.value.zero },
|
|
421
|
+
{ x: l.value.right, y: m.value.zero }
|
|
414
422
|
],
|
|
415
423
|
{
|
|
416
424
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
417
425
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
418
426
|
}
|
|
419
|
-
), a.value.style.chart.grid.y.axisLabels.show &&
|
|
427
|
+
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e, t) => {
|
|
420
428
|
E(
|
|
421
429
|
s.value,
|
|
422
|
-
|
|
430
|
+
ee(
|
|
423
431
|
a.value.style.chart.dataLabels.formatter,
|
|
424
432
|
e.value,
|
|
425
|
-
|
|
433
|
+
ae({
|
|
426
434
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
427
435
|
v: e.value,
|
|
428
436
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -455,7 +463,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
455
463
|
s.value,
|
|
456
464
|
a.value.style.chart.grid.x.axisName,
|
|
457
465
|
y.value / 2,
|
|
458
|
-
|
|
466
|
+
P.value,
|
|
459
467
|
{
|
|
460
468
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
461
469
|
color: a.value.style.chart.color,
|
|
@@ -463,10 +471,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
463
471
|
}
|
|
464
472
|
);
|
|
465
473
|
}
|
|
466
|
-
function
|
|
474
|
+
function ya(e) {
|
|
467
475
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
468
476
|
const o = (d.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
469
|
-
|
|
477
|
+
aa(
|
|
470
478
|
s.value,
|
|
471
479
|
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
472
480
|
o,
|
|
@@ -478,14 +486,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
478
486
|
);
|
|
479
487
|
}
|
|
480
488
|
}
|
|
481
|
-
function
|
|
489
|
+
function fa(e) {
|
|
482
490
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
483
491
|
E(
|
|
484
492
|
s.value,
|
|
485
|
-
|
|
493
|
+
ee(
|
|
486
494
|
a.value.style.chart.dataLabels.formatter,
|
|
487
495
|
e.coordinatesLine[t].value,
|
|
488
|
-
|
|
496
|
+
ae({
|
|
489
497
|
p: e.prefix || "",
|
|
490
498
|
v: e.coordinatesLine[t].value,
|
|
491
499
|
s: e.suffix || "",
|
|
@@ -504,7 +512,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
504
512
|
}
|
|
505
513
|
);
|
|
506
514
|
}
|
|
507
|
-
function
|
|
515
|
+
function ga() {
|
|
508
516
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
509
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)) && E(
|
|
510
518
|
s.value,
|
|
@@ -514,13 +522,13 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
514
522
|
{
|
|
515
523
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
516
524
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
517
|
-
color:
|
|
525
|
+
color: le(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
518
526
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
519
527
|
}
|
|
520
528
|
);
|
|
521
529
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
530
|
+
function Ye() {
|
|
531
|
+
k(
|
|
524
532
|
s.value,
|
|
525
533
|
[
|
|
526
534
|
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
@@ -534,19 +542,19 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
534
542
|
}
|
|
535
543
|
);
|
|
536
544
|
}
|
|
537
|
-
function
|
|
545
|
+
function pa() {
|
|
538
546
|
C.value.forEach((e, t) => {
|
|
539
547
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
540
|
-
|
|
548
|
+
we(
|
|
541
549
|
s.value,
|
|
542
550
|
[
|
|
543
551
|
{
|
|
544
552
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
545
|
-
y: u.value.stacked ? e.localZero :
|
|
553
|
+
y: u.value.stacked ? e.localZero : m.value.zero
|
|
546
554
|
},
|
|
547
555
|
{
|
|
548
556
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
549
|
-
y: u.value.stacked ? e.localZero :
|
|
557
|
+
y: u.value.stacked ? e.localZero : m.value.zero
|
|
550
558
|
},
|
|
551
559
|
{
|
|
552
560
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
@@ -567,20 +575,20 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
567
575
|
},
|
|
568
576
|
end: {
|
|
569
577
|
x: e.coordinatesLine[o].x,
|
|
570
|
-
y: u.value.stacked ? e.localZero :
|
|
578
|
+
y: u.value.stacked ? e.localZero : m.value.zero
|
|
571
579
|
},
|
|
572
580
|
stops: [
|
|
573
581
|
{ offset: 0, color: e.color },
|
|
574
|
-
{ offset: 1, color:
|
|
582
|
+
{ offset: 1, color: Ba(e.color, 0.5) }
|
|
575
583
|
]
|
|
576
584
|
}
|
|
577
585
|
}
|
|
578
586
|
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && E(
|
|
579
587
|
s.value,
|
|
580
|
-
|
|
588
|
+
ee(
|
|
581
589
|
a.value.style.chart.dataLabels.formatter,
|
|
582
590
|
e.coordinatesLine[o].value,
|
|
583
|
-
|
|
591
|
+
ae({
|
|
584
592
|
p: e.prefix || "",
|
|
585
593
|
v: e.coordinatesLine[o].value,
|
|
586
594
|
s: e.suffix || "",
|
|
@@ -589,7 +597,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
589
597
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
590
598
|
),
|
|
591
599
|
l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
592
|
-
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero :
|
|
600
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
593
601
|
{
|
|
594
602
|
align: "center",
|
|
595
603
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -600,29 +608,29 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
600
608
|
);
|
|
601
609
|
});
|
|
602
610
|
}
|
|
603
|
-
function
|
|
604
|
-
e.useArea ? u.value.stacked ?
|
|
611
|
+
function ma(e) {
|
|
612
|
+
e.useArea ? u.value.stacked ? la(
|
|
605
613
|
s.value,
|
|
606
614
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
607
615
|
{
|
|
608
|
-
fillColor:
|
|
616
|
+
fillColor: le(e.color, a.value.style.chart.area.opacity),
|
|
609
617
|
strokeColor: "transparent"
|
|
610
618
|
}
|
|
611
|
-
) :
|
|
619
|
+
) : la(
|
|
612
620
|
s.value,
|
|
613
|
-
[{ x: e.coordinatesLine[0].x, y:
|
|
621
|
+
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
614
622
|
{
|
|
615
|
-
fillColor:
|
|
623
|
+
fillColor: le(e.color, a.value.style.chart.area.opacity),
|
|
616
624
|
strokeColor: "transparent"
|
|
617
625
|
}
|
|
618
|
-
) :
|
|
626
|
+
) : k(s.value, e.coordinatesLine, {
|
|
619
627
|
color: e.color,
|
|
620
628
|
lineWidth: 3
|
|
621
629
|
});
|
|
622
630
|
}
|
|
623
|
-
function
|
|
631
|
+
function ba() {
|
|
624
632
|
h.value.forEach((e, t) => {
|
|
625
|
-
|
|
633
|
+
k(
|
|
626
634
|
s.value,
|
|
627
635
|
[
|
|
628
636
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -635,13 +643,13 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
635
643
|
);
|
|
636
644
|
});
|
|
637
645
|
}
|
|
638
|
-
function
|
|
639
|
-
|
|
640
|
-
(e.type === "line" || !e.type) &&
|
|
641
|
-
}),
|
|
646
|
+
function be() {
|
|
647
|
+
ha(), N.value ? (T.value && d.value !== null && a.value.style.chart.selector.show && Ye(), pa(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ba(), ca.value.forEach((e) => {
|
|
648
|
+
(e.type === "line" || !e.type) && ma(e), T.value && (ya(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && fa(e));
|
|
649
|
+
}), ye.value = Za(I.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 && Ye(), T.value && d.value !== null && h.value.forEach((e) => {
|
|
642
650
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
643
651
|
if (!e.coordinatesLine[d.value]) return;
|
|
644
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
652
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && aa(
|
|
645
653
|
s.value,
|
|
646
654
|
{
|
|
647
655
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -655,117 +663,117 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
655
663
|
}
|
|
656
664
|
);
|
|
657
665
|
}
|
|
658
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
666
|
+
})), a.value.style.chart.grid.y.timeLabels.show && ga(), N.value = !1;
|
|
659
667
|
}
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
},
|
|
663
|
-
function
|
|
664
|
-
const { left: t } =
|
|
668
|
+
const ue = Ua(() => {
|
|
669
|
+
T.value = !0, da();
|
|
670
|
+
}, $.value > 200 ? 10 : 1, !T.value);
|
|
671
|
+
function xa(e) {
|
|
672
|
+
const { left: t } = I.value.getBoundingClientRect(), o = e.clientX - t;
|
|
665
673
|
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
666
|
-
|
|
674
|
+
te.value = !1, d.value = null;
|
|
667
675
|
return;
|
|
668
676
|
}
|
|
669
|
-
const
|
|
670
|
-
if (d.value = Math.floor(
|
|
677
|
+
const v = o * 2 - l.value.left;
|
|
678
|
+
if (d.value = Math.floor(v / l.value.slot), te.value = !0, !T.value) return;
|
|
671
679
|
let c = "";
|
|
672
|
-
const
|
|
673
|
-
|
|
680
|
+
const g = a.value.style.chart.tooltip.customFormat;
|
|
681
|
+
ea(g) && Wa(() => g({
|
|
674
682
|
seriesIndex: d.value,
|
|
675
683
|
datapoint: h.value.map((n) => ({
|
|
676
684
|
shape: n.shape || null,
|
|
677
685
|
name: n.name,
|
|
678
686
|
color: n.color,
|
|
679
687
|
type: n.type || "line",
|
|
680
|
-
value: n.series.find((
|
|
688
|
+
value: n.series.find((p, w) => w === d.value)
|
|
681
689
|
})),
|
|
682
690
|
series: h.value,
|
|
683
691
|
config: a.value
|
|
684
|
-
})) ?
|
|
692
|
+
})) ? oe.value = g({
|
|
685
693
|
seriesIndex: d.value,
|
|
686
694
|
datapoint: h.value.map((n) => ({
|
|
687
695
|
shape: n.shape || null,
|
|
688
696
|
name: n.name,
|
|
689
697
|
color: n.color,
|
|
690
698
|
type: n.type || "line",
|
|
691
|
-
value: n.series.find((
|
|
699
|
+
value: n.series.find((p, w) => w === d.value)
|
|
692
700
|
})),
|
|
693
701
|
series: h.value,
|
|
694
702
|
config: a.value
|
|
695
|
-
}) : (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 +=
|
|
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 += ia.value.join(""), oe.value = c), T.value = !1;
|
|
696
704
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}),
|
|
700
|
-
N.value = !0,
|
|
705
|
+
_(() => d.value, (e) => {
|
|
706
|
+
ue();
|
|
707
|
+
}), _(() => r.value, (e) => {
|
|
708
|
+
N.value = !0, be();
|
|
701
709
|
}, {
|
|
702
710
|
deep: !0
|
|
703
|
-
}),
|
|
704
|
-
N.value = !0,
|
|
705
|
-
}),
|
|
706
|
-
N.value = !0,
|
|
711
|
+
}), _(() => u.value.showDataLabels, (e) => {
|
|
712
|
+
N.value = !0, be();
|
|
713
|
+
}), _(() => u.value.stacked, (e) => {
|
|
714
|
+
N.value = !0, T.value = !0, ue();
|
|
707
715
|
});
|
|
708
|
-
function
|
|
709
|
-
|
|
716
|
+
function La() {
|
|
717
|
+
te.value = !1, d.value = null, oe.value = "";
|
|
710
718
|
}
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
719
|
+
const se = i(null), ne = i(null);
|
|
720
|
+
za(() => {
|
|
721
|
+
xe();
|
|
714
722
|
});
|
|
715
|
-
function
|
|
716
|
-
if (
|
|
723
|
+
function xe() {
|
|
724
|
+
if (Da(f.dataset) ? Ha({
|
|
717
725
|
componentName: "VueUiXyCanvas",
|
|
718
726
|
type: "dataset"
|
|
719
|
-
}) :
|
|
720
|
-
const e =
|
|
721
|
-
const { width: t, height: o } =
|
|
722
|
-
chart:
|
|
723
|
-
title: a.value.style.chart.title.text ?
|
|
724
|
-
legend: a.value.style.chart.legend.show ?
|
|
725
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
726
|
-
source:
|
|
727
|
+
}) : I.value && (s.value = I.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
728
|
+
const e = Ga(() => {
|
|
729
|
+
const { width: t, height: o } = Va({
|
|
730
|
+
chart: Z.value,
|
|
731
|
+
title: a.value.style.chart.title.text ? Te.value : null,
|
|
732
|
+
legend: a.value.style.chart.legend.show ? Me.value : null,
|
|
733
|
+
slicer: a.value.style.chart.zoom.show && $.value > 1 ? Pe.value : null,
|
|
734
|
+
source: Re.value
|
|
727
735
|
});
|
|
728
|
-
|
|
736
|
+
Fe.value = `${t} / ${o}`;
|
|
729
737
|
});
|
|
730
|
-
|
|
738
|
+
se.value = new ResizeObserver(e), se.value.observe(Z.value.parentNode);
|
|
731
739
|
}
|
|
732
|
-
|
|
740
|
+
ne.value = new ResizeObserver((e) => {
|
|
733
741
|
for (const t of e)
|
|
734
|
-
t.contentBoxSize &&
|
|
735
|
-
}),
|
|
742
|
+
t.contentBoxSize && G.value && (N.value = !0, ue());
|
|
743
|
+
}), ne.value.observe(G.value), Xe();
|
|
736
744
|
}
|
|
737
|
-
|
|
738
|
-
|
|
745
|
+
Sa(() => {
|
|
746
|
+
ne.value && ne.value.disconnect(), se.value && se.value.disconnect();
|
|
739
747
|
});
|
|
740
|
-
function
|
|
741
|
-
|
|
748
|
+
function Be(e) {
|
|
749
|
+
ra("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, ue();
|
|
742
750
|
}
|
|
743
|
-
const
|
|
751
|
+
const Ue = x(() => X.value.map((e, t) => ({
|
|
744
752
|
...e,
|
|
745
753
|
name: e.name,
|
|
746
|
-
color:
|
|
754
|
+
color: Qe(e.color) || De.value[t] || H[t] || H[t % H.length],
|
|
747
755
|
shape: e.shape || "circle",
|
|
748
756
|
prefix: e.prefix || "",
|
|
749
757
|
suffix: e.suffix || "",
|
|
750
758
|
rounding: e.rounding || 0
|
|
751
759
|
})).map((e) => ({
|
|
752
760
|
...e,
|
|
753
|
-
opacity:
|
|
754
|
-
segregate: () =>
|
|
755
|
-
isSegregated:
|
|
756
|
-
}))),
|
|
761
|
+
opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
762
|
+
segregate: () => Be(e.absoluteIndex),
|
|
763
|
+
isSegregated: S.value.includes(e.absoluteIndex)
|
|
764
|
+
}))), ka = x(() => ({
|
|
757
765
|
cy: "donut-div-legend",
|
|
758
766
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
759
767
|
color: a.value.style.chart.legend.color,
|
|
760
768
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
761
769
|
paddingBottom: 12,
|
|
762
770
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
763
|
-
})),
|
|
771
|
+
})), ie = x(() => {
|
|
764
772
|
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>');
|
|
765
773
|
let t = [];
|
|
766
|
-
for (let c = 0; c <
|
|
767
|
-
const
|
|
768
|
-
t.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((
|
|
774
|
+
for (let c = 0; c < $.value; c += 1) {
|
|
775
|
+
const g = h.value.map((n) => n.series[c] ?? 0).reduce((n, p) => n + p, 0);
|
|
776
|
+
t.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)));
|
|
769
777
|
}
|
|
770
778
|
const o = {
|
|
771
779
|
th: {
|
|
@@ -779,9 +787,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
779
787
|
outline: a.value.table.td.outline
|
|
780
788
|
},
|
|
781
789
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
782
|
-
},
|
|
783
|
-
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames:
|
|
784
|
-
}),
|
|
790
|
+
}, v = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
791
|
+
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: v };
|
|
792
|
+
}), Ze = x(() => {
|
|
785
793
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
786
794
|
const e = h.value.map((o) => ({
|
|
787
795
|
label: o.name,
|
|
@@ -789,61 +797,61 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
789
797
|
type: o.type
|
|
790
798
|
})), t = [];
|
|
791
799
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
792
|
-
const
|
|
800
|
+
const v = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
793
801
|
h.value.forEach((c) => {
|
|
794
|
-
|
|
795
|
-
}), t.push(
|
|
802
|
+
v.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
803
|
+
}), t.push(v);
|
|
796
804
|
}
|
|
797
805
|
return { head: e, body: t };
|
|
798
806
|
});
|
|
799
|
-
function
|
|
800
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
801
|
-
|
|
807
|
+
function Ge() {
|
|
808
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Ze.value.head.map((g) => g.label)], o = Ze.value.body, v = e.concat([t]).concat(o), c = Xa(v);
|
|
809
|
+
Ya({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
802
810
|
}
|
|
803
|
-
function
|
|
811
|
+
function Ca() {
|
|
804
812
|
return h.value;
|
|
805
813
|
}
|
|
806
|
-
function
|
|
814
|
+
function Ve() {
|
|
807
815
|
u.value.showTable = !u.value.showTable;
|
|
808
816
|
}
|
|
809
|
-
function
|
|
817
|
+
function je() {
|
|
810
818
|
u.value.showDataLabels = !u.value.showDataLabels;
|
|
811
819
|
}
|
|
812
|
-
function
|
|
820
|
+
function qe() {
|
|
813
821
|
u.value.stacked = !u.value.stacked;
|
|
814
822
|
}
|
|
815
|
-
function
|
|
823
|
+
function Je() {
|
|
816
824
|
u.value.showTooltip = !u.value.showTooltip;
|
|
817
825
|
}
|
|
818
|
-
const
|
|
819
|
-
function
|
|
820
|
-
|
|
826
|
+
const ve = i(!1);
|
|
827
|
+
function Le() {
|
|
828
|
+
ve.value = !ve.value;
|
|
821
829
|
}
|
|
822
|
-
return
|
|
823
|
-
getData:
|
|
824
|
-
generateCsv:
|
|
825
|
-
generatePdf:
|
|
826
|
-
generateImage:
|
|
827
|
-
toggleTable:
|
|
828
|
-
toggleLabels:
|
|
829
|
-
toggleStack:
|
|
830
|
-
toggleTooltip:
|
|
831
|
-
toggleAnnotator:
|
|
832
|
-
}), (e, t) => (
|
|
833
|
-
style:
|
|
830
|
+
return oa({
|
|
831
|
+
getData: Ca,
|
|
832
|
+
generateCsv: Ge,
|
|
833
|
+
generatePdf: _e,
|
|
834
|
+
generateImage: Ae,
|
|
835
|
+
toggleTable: Ve,
|
|
836
|
+
toggleLabels: je,
|
|
837
|
+
toggleStack: qe,
|
|
838
|
+
toggleTooltip: Je,
|
|
839
|
+
toggleAnnotator: Le
|
|
840
|
+
}), (e, t) => (z(), J("div", {
|
|
841
|
+
style: K(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
834
842
|
ref_key: "xy",
|
|
835
|
-
ref:
|
|
836
|
-
id: `xy_canvas_${
|
|
837
|
-
class:
|
|
843
|
+
ref: Z,
|
|
844
|
+
id: `xy_canvas_${he.value}`,
|
|
845
|
+
class: $a(`vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
838
846
|
}, [
|
|
839
|
-
a.value.style.chart.title.text ? (
|
|
847
|
+
a.value.style.chart.title.text ? (z(), J("div", {
|
|
840
848
|
key: 0,
|
|
841
849
|
ref_key: "chartTitle",
|
|
842
|
-
ref:
|
|
843
|
-
style:
|
|
850
|
+
ref: Te,
|
|
851
|
+
style: K(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
844
852
|
}, [
|
|
845
|
-
(
|
|
846
|
-
key: `title_${
|
|
853
|
+
(z(), F(Ja, {
|
|
854
|
+
key: `title_${fe.value}`,
|
|
847
855
|
config: {
|
|
848
856
|
title: {
|
|
849
857
|
cy: "xy-canvas-title",
|
|
@@ -855,119 +863,119 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
855
863
|
}
|
|
856
864
|
}
|
|
857
865
|
}, null, 8, ["config"]))
|
|
858
|
-
], 4)) :
|
|
859
|
-
a.value.userOptions.show &&
|
|
866
|
+
], 4)) : A("", !0),
|
|
867
|
+
a.value.userOptions.show && me.value ? (z(), F(el, {
|
|
860
868
|
ref: "details",
|
|
861
|
-
key: `user_option_${
|
|
869
|
+
key: `user_option_${Ie.value}`,
|
|
862
870
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
863
871
|
color: a.value.style.chart.color,
|
|
864
|
-
isPrinting: D(
|
|
865
|
-
isImaging: D(
|
|
866
|
-
uid:
|
|
872
|
+
isPrinting: D(Ee),
|
|
873
|
+
isImaging: D(Ne),
|
|
874
|
+
uid: he.value,
|
|
867
875
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
868
876
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
869
877
|
hasImg: a.value.userOptions.buttons.img,
|
|
870
878
|
hasXls: a.value.userOptions.buttons.csv,
|
|
871
879
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
872
|
-
hasStack:
|
|
880
|
+
hasStack: ze.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
873
881
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
874
882
|
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
875
|
-
isFullscreen:
|
|
883
|
+
isFullscreen: re.value,
|
|
876
884
|
isTooltip: u.value.showTooltip,
|
|
877
885
|
isStacked: u.value.stacked,
|
|
878
886
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
879
|
-
chartElement:
|
|
887
|
+
chartElement: Z.value,
|
|
880
888
|
position: a.value.userOptions.position,
|
|
881
889
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
882
|
-
isAnnotation:
|
|
883
|
-
onToggleFullscreen:
|
|
884
|
-
onGeneratePdf: D(
|
|
885
|
-
onGenerateCsv:
|
|
886
|
-
onGenerateImage: D(
|
|
887
|
-
onToggleTable:
|
|
888
|
-
onToggleLabels:
|
|
889
|
-
onToggleStack:
|
|
890
|
-
onToggleTooltip:
|
|
891
|
-
onToggleAnnotator:
|
|
892
|
-
},
|
|
890
|
+
isAnnotation: ve.value,
|
|
891
|
+
onToggleFullscreen: sa,
|
|
892
|
+
onGeneratePdf: D(_e),
|
|
893
|
+
onGenerateCsv: Ge,
|
|
894
|
+
onGenerateImage: D(Ae),
|
|
895
|
+
onToggleTable: Ve,
|
|
896
|
+
onToggleLabels: je,
|
|
897
|
+
onToggleStack: qe,
|
|
898
|
+
onToggleTooltip: Je,
|
|
899
|
+
onToggleAnnotator: Le
|
|
900
|
+
}, Ia({ _: 2 }, [
|
|
893
901
|
e.$slots.optionTooltip ? {
|
|
894
902
|
name: "optionTooltip",
|
|
895
|
-
fn:
|
|
896
|
-
|
|
903
|
+
fn: b(() => [
|
|
904
|
+
L(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
897
905
|
]),
|
|
898
906
|
key: "0"
|
|
899
907
|
} : void 0,
|
|
900
908
|
e.$slots.optionPdf ? {
|
|
901
909
|
name: "optionPdf",
|
|
902
|
-
fn:
|
|
903
|
-
|
|
910
|
+
fn: b(() => [
|
|
911
|
+
L(e.$slots, "optionPdf", {}, void 0, !0)
|
|
904
912
|
]),
|
|
905
913
|
key: "1"
|
|
906
914
|
} : void 0,
|
|
907
915
|
e.$slots.optionCsv ? {
|
|
908
916
|
name: "optionCsv",
|
|
909
|
-
fn:
|
|
910
|
-
|
|
917
|
+
fn: b(() => [
|
|
918
|
+
L(e.$slots, "optionCsv", {}, void 0, !0)
|
|
911
919
|
]),
|
|
912
920
|
key: "2"
|
|
913
921
|
} : void 0,
|
|
914
922
|
e.$slots.optionImg ? {
|
|
915
923
|
name: "optionImg",
|
|
916
|
-
fn:
|
|
917
|
-
|
|
924
|
+
fn: b(() => [
|
|
925
|
+
L(e.$slots, "optionImg", {}, void 0, !0)
|
|
918
926
|
]),
|
|
919
927
|
key: "3"
|
|
920
928
|
} : void 0,
|
|
921
929
|
e.$slots.optionTable ? {
|
|
922
930
|
name: "optionTable",
|
|
923
|
-
fn:
|
|
924
|
-
|
|
931
|
+
fn: b(() => [
|
|
932
|
+
L(e.$slots, "optionTable", {}, void 0, !0)
|
|
925
933
|
]),
|
|
926
934
|
key: "4"
|
|
927
935
|
} : void 0,
|
|
928
936
|
e.$slots.optionLabels ? {
|
|
929
937
|
name: "optionLabels",
|
|
930
|
-
fn:
|
|
931
|
-
|
|
938
|
+
fn: b(() => [
|
|
939
|
+
L(e.$slots, "optionLabels", {}, void 0, !0)
|
|
932
940
|
]),
|
|
933
941
|
key: "5"
|
|
934
942
|
} : void 0,
|
|
935
943
|
e.$slots.optionStack ? {
|
|
936
944
|
name: "optionStack",
|
|
937
|
-
fn:
|
|
938
|
-
|
|
945
|
+
fn: b(() => [
|
|
946
|
+
L(e.$slots, "optionStack", {}, void 0, !0)
|
|
939
947
|
]),
|
|
940
948
|
key: "6"
|
|
941
949
|
} : void 0,
|
|
942
950
|
e.$slots.optionFullscreen ? {
|
|
943
951
|
name: "optionFullscreen",
|
|
944
|
-
fn:
|
|
945
|
-
|
|
952
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: v }) => [
|
|
953
|
+
L(e.$slots, "optionFullscreen", B(U({ toggleFullscreen: o, isFullscreen: v })), void 0, !0)
|
|
946
954
|
]),
|
|
947
955
|
key: "7"
|
|
948
956
|
} : void 0,
|
|
949
957
|
e.$slots.optionAnnotator ? {
|
|
950
958
|
name: "optionAnnotator",
|
|
951
|
-
fn:
|
|
952
|
-
|
|
959
|
+
fn: b(({ toggleAnnotator: o, isAnnotator: v }) => [
|
|
960
|
+
L(e.$slots, "optionAnnotator", B(U({ toggleAnnotator: o, isAnnotator: v })), void 0, !0)
|
|
953
961
|
]),
|
|
954
962
|
key: "8"
|
|
955
963
|
} : void 0
|
|
956
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) :
|
|
957
|
-
|
|
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"])) : A("", !0),
|
|
965
|
+
Q("div", {
|
|
958
966
|
class: "vue-ui-xy-canvas",
|
|
959
|
-
style:
|
|
967
|
+
style: K(`position: relative; aspect-ratio: ${Fe.value}`),
|
|
960
968
|
ref_key: "container",
|
|
961
|
-
ref:
|
|
969
|
+
ref: G
|
|
962
970
|
}, [
|
|
963
|
-
|
|
971
|
+
me.value ? (z(), J("canvas", {
|
|
964
972
|
key: 0,
|
|
965
973
|
ref_key: "canvas",
|
|
966
|
-
ref:
|
|
974
|
+
ref: I,
|
|
967
975
|
style: { width: "100%", height: "100%" },
|
|
968
|
-
onMousemove: t[0] || (t[0] = (o) =>
|
|
969
|
-
onMouseleave:
|
|
970
|
-
}, null, 544)) : (
|
|
976
|
+
onMousemove: t[0] || (t[0] = (o) => xa(o)),
|
|
977
|
+
onMouseleave: La
|
|
978
|
+
}, null, 544)) : (z(), F(tl, {
|
|
971
979
|
key: 1,
|
|
972
980
|
config: {
|
|
973
981
|
type: "line",
|
|
@@ -985,8 +993,8 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
985
993
|
}
|
|
986
994
|
}
|
|
987
995
|
}, null, 8, ["config"])),
|
|
988
|
-
|
|
989
|
-
show: u.value.showTooltip &&
|
|
996
|
+
Ta(ja, {
|
|
997
|
+
show: u.value.showTooltip && te.value,
|
|
990
998
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
991
999
|
color: a.value.style.chart.tooltip.color,
|
|
992
1000
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -995,28 +1003,31 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
995
1003
|
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
996
1004
|
position: a.value.style.chart.tooltip.position,
|
|
997
1005
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
998
|
-
parent:
|
|
999
|
-
content:
|
|
1006
|
+
parent: I.value,
|
|
1007
|
+
content: oe.value,
|
|
1008
|
+
isFullscreen: re.value,
|
|
1000
1009
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1001
|
-
isCustom: D(
|
|
1010
|
+
isCustom: D(ea)(a.value.style.chart.tooltip.customFormat)
|
|
1002
1011
|
}, {
|
|
1003
|
-
"tooltip-before":
|
|
1004
|
-
|
|
1012
|
+
"tooltip-before": b(() => [
|
|
1013
|
+
L(e.$slots, "tooltip-before", B(U({ ...Se.value })), void 0, !0)
|
|
1005
1014
|
]),
|
|
1006
|
-
"tooltip-after":
|
|
1007
|
-
|
|
1015
|
+
"tooltip-after": b(() => [
|
|
1016
|
+
L(e.$slots, "tooltip-after", B(U({ ...Se.value })), void 0, !0)
|
|
1008
1017
|
]),
|
|
1009
1018
|
_: 3
|
|
1010
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
1019
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
1011
1020
|
], 4),
|
|
1012
|
-
|
|
1021
|
+
Q("div", {
|
|
1013
1022
|
ref_key: "chartSlicer",
|
|
1014
|
-
ref:
|
|
1015
|
-
style:
|
|
1023
|
+
ref: Pe,
|
|
1024
|
+
style: K(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1016
1025
|
"data-html2canvas-ignore": ""
|
|
1017
1026
|
}, [
|
|
1018
|
-
a.value.style.chart.zoom.show &&
|
|
1019
|
-
|
|
1027
|
+
a.value.style.chart.zoom.show && $.value > 1 ? (z(), F(Ka, {
|
|
1028
|
+
ref_key: "slicerComponent",
|
|
1029
|
+
ref: Y,
|
|
1030
|
+
key: `slicer_${$e.value}`,
|
|
1020
1031
|
background: a.value.style.chart.zoom.color,
|
|
1021
1032
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1022
1033
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
@@ -1026,7 +1037,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1026
1037
|
textColor: a.value.style.chart.color,
|
|
1027
1038
|
inputColor: a.value.style.chart.zoom.color,
|
|
1028
1039
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
1029
|
-
max:
|
|
1040
|
+
max: $.value,
|
|
1030
1041
|
min: 0,
|
|
1031
1042
|
valueStart: r.value.start,
|
|
1032
1043
|
valueEnd: r.value.end,
|
|
@@ -1034,48 +1045,50 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1034
1045
|
"onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
|
|
1035
1046
|
end: r.value.end,
|
|
1036
1047
|
"onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
|
|
1037
|
-
|
|
1048
|
+
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 : $.value,
|
|
1050
|
+
onReset: We
|
|
1038
1051
|
}, {
|
|
1039
|
-
"reset-action":
|
|
1040
|
-
|
|
1052
|
+
"reset-action": b(({ reset: o }) => [
|
|
1053
|
+
L(e.$slots, "reset-action", B(U({ reset: o })), void 0, !0)
|
|
1041
1054
|
]),
|
|
1042
1055
|
_: 3
|
|
1043
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
1056
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) : A("", !0)
|
|
1044
1057
|
], 4),
|
|
1045
|
-
|
|
1058
|
+
Q("div", {
|
|
1046
1059
|
ref_key: "chartLegend",
|
|
1047
|
-
ref:
|
|
1060
|
+
ref: Me
|
|
1048
1061
|
}, [
|
|
1049
|
-
a.value.style.chart.legend.show &&
|
|
1050
|
-
legendSet:
|
|
1051
|
-
config:
|
|
1052
|
-
key: `legend_${
|
|
1053
|
-
onClickMarker: t[3] || (t[3] = ({ i: o }) =>
|
|
1062
|
+
a.value.style.chart.legend.show && me.value ? (z(), F(qa, {
|
|
1063
|
+
legendSet: Ue.value,
|
|
1064
|
+
config: ka.value,
|
|
1065
|
+
key: `legend_${pe.value}`,
|
|
1066
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => Be(o))
|
|
1054
1067
|
}, {
|
|
1055
|
-
item:
|
|
1056
|
-
|
|
1068
|
+
item: b(({ legend: o, index: v }) => [
|
|
1069
|
+
Q("div", {
|
|
1057
1070
|
onClick: (c) => o.segregate(),
|
|
1058
|
-
style:
|
|
1059
|
-
},
|
|
1071
|
+
style: K(`opacity:${S.value.includes(v) ? 0.5 : 1}`)
|
|
1072
|
+
}, Ke(o.name), 13, sl)
|
|
1060
1073
|
]),
|
|
1061
1074
|
_: 1
|
|
1062
|
-
}, 8, ["legendSet", "config"])) :
|
|
1075
|
+
}, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
|
|
1063
1076
|
key: 1,
|
|
1064
|
-
legend:
|
|
1077
|
+
legend: Ue.value
|
|
1065
1078
|
}, void 0, !0)
|
|
1066
1079
|
], 512),
|
|
1067
|
-
e.$slots.watermark ? (
|
|
1068
|
-
|
|
1069
|
-
])) :
|
|
1070
|
-
e.$slots.source ? (
|
|
1080
|
+
e.$slots.watermark ? (z(), J("div", nl, [
|
|
1081
|
+
L(e.$slots, "watermark", B(U({ isPrinting: D(Ee) || D(Ne) })), void 0, !0)
|
|
1082
|
+
])) : A("", !0),
|
|
1083
|
+
e.$slots.source ? (z(), J("div", {
|
|
1071
1084
|
key: 3,
|
|
1072
1085
|
ref_key: "source",
|
|
1073
|
-
ref:
|
|
1086
|
+
ref: Re,
|
|
1074
1087
|
dir: "auto"
|
|
1075
1088
|
}, [
|
|
1076
|
-
|
|
1077
|
-
], 512)) :
|
|
1078
|
-
r.value.end - r.value.start < 200 ? (
|
|
1089
|
+
L(e.$slots, "source", {}, void 0, !0)
|
|
1090
|
+
], 512)) : A("", !0),
|
|
1091
|
+
r.value.end - r.value.start < 200 ? (z(), F(al, {
|
|
1079
1092
|
key: 4,
|
|
1080
1093
|
hideDetails: "",
|
|
1081
1094
|
config: {
|
|
@@ -1091,38 +1104,38 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1091
1104
|
}
|
|
1092
1105
|
}
|
|
1093
1106
|
}, {
|
|
1094
|
-
content:
|
|
1095
|
-
(
|
|
1096
|
-
key: `table_${
|
|
1097
|
-
colNames:
|
|
1098
|
-
head:
|
|
1099
|
-
body:
|
|
1100
|
-
config:
|
|
1107
|
+
content: b(() => [
|
|
1108
|
+
(z(), F(ll, {
|
|
1109
|
+
key: `table_${ge.value}`,
|
|
1110
|
+
colNames: ie.value.colNames,
|
|
1111
|
+
head: ie.value.head,
|
|
1112
|
+
body: ie.value.body,
|
|
1113
|
+
config: ie.value.config,
|
|
1101
1114
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1102
1115
|
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1103
1116
|
}, {
|
|
1104
|
-
th:
|
|
1105
|
-
|
|
1117
|
+
th: b(({ th: o }) => [
|
|
1118
|
+
Q("div", { innerHTML: o }, null, 8, il)
|
|
1106
1119
|
]),
|
|
1107
|
-
td:
|
|
1108
|
-
|
|
1120
|
+
td: b(({ td: o }) => [
|
|
1121
|
+
Ma(Ke(o), 1)
|
|
1109
1122
|
]),
|
|
1110
1123
|
_: 1
|
|
1111
1124
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1112
1125
|
]),
|
|
1113
1126
|
_: 1
|
|
1114
|
-
}, 8, ["config"])) :
|
|
1115
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (
|
|
1127
|
+
}, 8, ["config"])) : A("", !0),
|
|
1128
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (z(), F(ol, {
|
|
1116
1129
|
key: 5,
|
|
1117
|
-
parent:
|
|
1130
|
+
parent: Z.value,
|
|
1118
1131
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1119
1132
|
color: a.value.style.chart.color,
|
|
1120
|
-
active:
|
|
1121
|
-
onClose:
|
|
1122
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1123
|
-
], 14,
|
|
1133
|
+
active: ve.value,
|
|
1134
|
+
onClose: Le
|
|
1135
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : A("", !0)
|
|
1136
|
+
], 14, ul));
|
|
1124
1137
|
}
|
|
1125
|
-
},
|
|
1138
|
+
}, zl = /* @__PURE__ */ rl(vl, [["__scopeId", "data-v-a8e374ca"]]);
|
|
1126
1139
|
export {
|
|
1127
|
-
|
|
1140
|
+
zl as default
|
|
1128
1141
|
};
|