vue-data-ui 2.4.64 → 2.4.65
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 +66 -34
- package/dist/{Arrow-DSkIkWAr.cjs → Arrow-BKPURRQ6.cjs} +1 -1
- package/dist/{Arrow-CRM8J83L.js → Arrow-C7ihyW4O.js} +1 -1
- package/dist/{BaseIcon-D13bKBUN.cjs → BaseIcon-CyTdOpDr.cjs} +1 -1
- package/dist/{BaseIcon-Axko0XAg.js → BaseIcon-DpaRUsHC.js} +1 -1
- package/dist/{DataTable-DnrSae6c.cjs → DataTable-CwzQ-L0W.cjs} +1 -1
- package/dist/{DataTable-B2hVpPSW.js → DataTable-DX_jYNWG.js} +2 -2
- package/dist/Legend-BMTBtkoQ.cjs +1 -0
- package/dist/Legend-DGUxLqhs.js +70 -0
- package/dist/{PackageVersion-B684aQUP.js → PackageVersion-B9_Ed72C.js} +1 -1
- package/dist/{PackageVersion-FzHnQSp-.cjs → PackageVersion-D_9QTWVm.cjs} +1 -1
- package/dist/{PenAndPaper-C6I0ckZw.cjs → PenAndPaper-CfGYucSm.cjs} +1 -1
- package/dist/{PenAndPaper-mC0kh-S8.js → PenAndPaper-CzjoEhsO.js} +3 -3
- package/dist/{Shape-eJUVLesM.cjs → Shape-CZB2KQ0L.cjs} +1 -1
- package/dist/{Shape-DbnYh6z4.js → Shape-aXd72O71.js} +1 -1
- package/dist/{Slicer-C9bF7-B-.cjs → Slicer-ChxjRhai.cjs} +1 -1
- package/dist/{Slicer-BBolqweG.js → Slicer-CopZgIzh.js} +2 -2
- package/dist/{Title-DuMgnso9.cjs → Title-BnRtxxP4.cjs} +1 -1
- package/dist/{Title-DqZErnpZ.js → Title-DyUTj8GI.js} +1 -1
- package/dist/{Tooltip-DddRc8qD.js → Tooltip-B-0uEV3l.js} +1 -1
- package/dist/{Tooltip-Cz3eQmMV.cjs → Tooltip-CUoQNXZK.cjs} +1 -1
- package/dist/documentation/installation.md +34 -34
- package/dist/{index-DjTPIx3R.js → index-BVNcFEqn.js} +398 -393
- package/dist/{index-D-xYtUSL.cjs → index-CKgv8c-A.cjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BN-VfUfj.cjs → useNestedProp-0Mn5Z6Ae.cjs} +1 -1
- package/dist/{useNestedProp-BNmCbG1v.js → useNestedProp-D79dWdel.js} +1 -1
- package/dist/{usePrinter-BFF1xn1s.js → usePrinter-Bcfs_I6G.js} +1 -1
- package/dist/{usePrinter-pT-a_sFr.cjs → usePrinter-Gkda9yEJ.cjs} +1 -1
- package/dist/{vue-data-ui-CPMtS74M.js → vue-data-ui-CXxR_hXg.js} +60 -60
- package/dist/{vue-data-ui-rWaUsffe.cjs → vue-data-ui-DAwVdbN1.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/{vue-ui-3d-bar-CxcO1rW_.cjs → vue-ui-3d-bar-baVCskbW.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cpx0rTUr.js → vue-ui-3d-bar-mxTzin_H.js} +9 -9
- package/dist/{vue-ui-accordion-CDTXGeL0.js → vue-ui-accordion-GNblUy42.js} +3 -3
- package/dist/{vue-ui-accordion-B1MkyNta.cjs → vue-ui-accordion-xV0it5je.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CSwlc2bd.js → vue-ui-age-pyramid-DFBuvQgd.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CEvYSZnY.cjs → vue-ui-age-pyramid-ULh6qSJs.cjs} +1 -1
- package/dist/{vue-ui-annotator-BUoz1Y87.cjs → vue-ui-annotator-C89rtAuX.cjs} +1 -1
- package/dist/{vue-ui-annotator-D5dS0BTP.js → vue-ui-annotator-XbCqxBQ0.js} +1 -1
- package/dist/{vue-ui-bullet-RDyK79l0.js → vue-ui-bullet-D_CS85II.js} +8 -8
- package/dist/{vue-ui-bullet-Bcx-V2GQ.cjs → vue-ui-bullet-DxRqDaiw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-s-Z42Lns.js → vue-ui-candlestick-C8mUQTPF.js} +11 -11
- package/dist/{vue-ui-candlestick-CkjNRVDz.cjs → vue-ui-candlestick-CZxpFMKR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DJNIAgAU.js → vue-ui-carousel-table-D5iLQe38.js} +4 -4
- package/dist/{vue-ui-carousel-table-CoLBbF34.cjs → vue-ui-carousel-table-DKcc-jNW.cjs} +1 -1
- package/dist/{vue-ui-chestnut-P1hAffNt.cjs → vue-ui-chestnut-BFV6pTfc.cjs} +1 -1
- package/dist/{vue-ui-chestnut-_90914ye.js → vue-ui-chestnut-BqGCLMiu.js} +8 -8
- package/dist/{vue-ui-cursor-BoGnTfem.cjs → vue-ui-cursor-BJjzKpLm.cjs} +1 -1
- package/dist/{vue-ui-cursor-Doo6HM0B.js → vue-ui-cursor-BysQ-bDH.js} +2 -2
- package/dist/{vue-ui-dashboard-mC_BLuIN.cjs → vue-ui-dashboard-C0L_0gyc.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZKKb8cZ.js → vue-ui-dashboard-zrJGrAmc.js} +2 -2
- package/dist/{vue-ui-digits-Z8AprQhX.js → vue-ui-digits-B5P9UheE.js} +2 -2
- package/dist/{vue-ui-digits-DFwg7Et3.cjs → vue-ui-digits-BG_xts2G.cjs} +1 -1
- package/dist/vue-ui-donut-7tNjrx1E.js +1173 -0
- package/dist/vue-ui-donut-B9M9CW9D.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-CK_0JI6T.js → vue-ui-donut-evolution-C7FpJ59u.js} +11 -11
- package/dist/{vue-ui-donut-evolution-D-6gM9JV.cjs → vue-ui-donut-evolution-CEvGFdxK.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C4y9e7Gz.js → vue-ui-dumbbell-CdxHbLz6.js} +10 -10
- package/dist/{vue-ui-dumbbell-DS_3Z5cT.cjs → vue-ui-dumbbell-DP27C8NG.cjs} +1 -1
- package/dist/{vue-ui-flow-XrJvcKqr.js → vue-ui-flow-cKQSDKfP.js} +9 -9
- package/dist/{vue-ui-flow-C2sVVaok.cjs → vue-ui-flow-yW5Pa_MJ.cjs} +1 -1
- package/dist/{vue-ui-funnel-DxhsOEbU.cjs → vue-ui-funnel-73aPtRj5.cjs} +1 -1
- package/dist/{vue-ui-funnel-CHhVPjnM.js → vue-ui-funnel-qPYVhQpD.js} +9 -9
- package/dist/{vue-ui-galaxy-Bd8p21nC.js → vue-ui-galaxy-2SRA_RYP.js} +11 -11
- package/dist/{vue-ui-galaxy-CRsan4r5.cjs → vue-ui-galaxy-9E5GUtBD.cjs} +1 -1
- package/dist/vue-ui-gauge-CBbvp9DU.cjs +1 -0
- package/dist/{vue-ui-gauge-B-nOtSwD.js → vue-ui-gauge-Cpvg4BBS.js} +236 -224
- package/dist/{vue-ui-gizmo-tQNlhr2p.js → vue-ui-gizmo-B5v0g_Ly.js} +3 -3
- package/dist/{vue-ui-gizmo-C3GRBcSW.cjs → vue-ui-gizmo-BkNuHnnf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DwalrFVm.cjs → vue-ui-heatmap-CcUuOqGT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-6MpvCBmt.js → vue-ui-heatmap-dNeKqLC0.js} +10 -10
- package/dist/{vue-ui-history-plot-Hk-UrZtS.js → vue-ui-history-plot-COtfhHw8.js} +11 -11
- package/dist/{vue-ui-history-plot-FgapeA0e.cjs → vue-ui-history-plot-p18wqHFY.cjs} +1 -1
- package/dist/{vue-ui-kpi-CKZQsJnV.cjs → vue-ui-kpi-DCn50wZ8.cjs} +1 -1
- package/dist/{vue-ui-kpi-DrCH9EuP.js → vue-ui-kpi-HyZOfh63.js} +3 -3
- package/dist/{vue-ui-mini-loader-BSKXq7CA.cjs → vue-ui-mini-loader-DaPxFP7e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BLvcc-fM.js → vue-ui-mini-loader-Dp7zc34Q.js} +2 -2
- package/dist/{vue-ui-molecule-Ch4_SJxL.js → vue-ui-molecule-Oim4-hUn.js} +11 -11
- package/dist/{vue-ui-molecule-D0IHSilQ.cjs → vue-ui-molecule-zkdP7FYM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DNPseOpJ.cjs → vue-ui-mood-radar-CKdM8iDY.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Gv0k1T46.js → vue-ui-mood-radar-DsSO6gfa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DY8Hig_-.js → vue-ui-nested-donuts-B5NPJfg6.js} +11 -11
- package/dist/{vue-ui-nested-donuts-QOvJJc30.cjs → vue-ui-nested-donuts-DbTXLan2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ca0Tcbu3.cjs → vue-ui-onion-0Od2Vodu.cjs} +1 -1
- package/dist/{vue-ui-onion-Ct_1j1fA.js → vue-ui-onion-CID0DNSa.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DkYcNRQk.js → vue-ui-parallel-coordinate-plot-DAfBgYbI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-C_opo0qJ.cjs → vue-ui-parallel-coordinate-plot-WtcXCTd-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DwAKm2Yj.js → vue-ui-quadrant-063Cq0di.js} +12 -12
- package/dist/{vue-ui-quadrant-BJuoZ_lv.cjs → vue-ui-quadrant-B6WNmecC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-5ga8waQS.cjs → vue-ui-quick-chart-CwNFF0R4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D5V73GXO.js → vue-ui-quick-chart-DCPwhpbx.js} +9 -9
- package/dist/{vue-ui-radar-CmE4wCWD.js → vue-ui-radar-BmY47r3J.js} +12 -12
- package/dist/{vue-ui-radar-C3kzmi1G.cjs → vue-ui-radar-DcnVyGrM.cjs} +1 -1
- package/dist/{vue-ui-rating-CE7LGiFS.cjs → vue-ui-rating-D_9Fqvd_.cjs} +1 -1
- package/dist/{vue-ui-rating-SAph_BKh.js → vue-ui-rating-b2SThMJw.js} +2 -2
- package/dist/{vue-ui-relation-circle-D1JdWshk.js → vue-ui-relation-circle-B0Q2FdDW.js} +7 -7
- package/dist/{vue-ui-relation-circle-dQQw_mgd.cjs → vue-ui-relation-circle-Cg3QL_aP.cjs} +1 -1
- package/dist/vue-ui-rings-BQdgj7bV.cjs +2 -0
- package/dist/vue-ui-rings-DlsKpDkQ.js +666 -0
- package/dist/{vue-ui-scatter-BrOg2xiN.cjs → vue-ui-scatter-D6Yb6VpP.cjs} +1 -1
- package/dist/{vue-ui-scatter-DE4X0DQI.js → vue-ui-scatter-E_WveJ4p.js} +36 -36
- package/dist/{vue-ui-screenshot-CyWEEkg_.js → vue-ui-screenshot-CbLsOjZv.js} +1 -1
- package/dist/{vue-ui-screenshot-BXq82cfA.cjs → vue-ui-screenshot-DhvqiF7S.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D3zg7qd2.cjs → vue-ui-skeleton-73YO0ovP.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dt9cA-wa.js → vue-ui-skeleton-Bgf16k10.js} +3 -3
- package/dist/{vue-ui-smiley-FUNmIUpN.cjs → vue-ui-smiley-D-QDQ3Re.cjs} +1 -1
- package/dist/{vue-ui-smiley-uRlPgN-A.js → vue-ui-smiley-ne5pBMum.js} +2 -2
- package/dist/{vue-ui-spark-trend-5KFnHsjs.js → vue-ui-spark-trend-BkiRBoVD.js} +13 -13
- package/dist/{vue-ui-spark-trend-DYXJMJLz.cjs → vue-ui-spark-trend-Dq1hox65.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D-Yk9z4E.js → vue-ui-sparkbar--Q2alJoW.js} +4 -4
- package/dist/{vue-ui-sparkbar-BUg0DhGI.cjs → vue-ui-sparkbar-DV5CtFQY.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DVLZofTg.js → vue-ui-sparkgauge-BOcEbdij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DvDPPyau.cjs → vue-ui-sparkgauge-BVNkRW_m.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Dqgl_5RN.js → vue-ui-sparkhistogram-CIJmWjb4.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-GMZxK2oC.cjs → vue-ui-sparkhistogram-CUiNT8vT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C96IUWwW.cjs → vue-ui-sparkline-BFlRfhM6.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CPEHgvq0.js → vue-ui-sparkline-lY0wS6kU.js} +92 -92
- package/dist/{vue-ui-sparkstackbar-BroOR6B-.cjs → vue-ui-sparkstackbar-CGeg_k0k.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DCceVnjJ.js → vue-ui-sparkstackbar-GHM4EY7-.js} +5 -5
- package/dist/vue-ui-stackbar-CQur8zP0.cjs +6 -0
- package/dist/vue-ui-stackbar-uR3T6rG4.js +1114 -0
- package/dist/{vue-ui-strip-plot-BYO72loZ.cjs → vue-ui-strip-plot-CBYrZEIt.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CJxPAY9n.js → vue-ui-strip-plot-CNFrYVZ6.js} +11 -11
- package/dist/{vue-ui-table-BTuCiJb7.cjs → vue-ui-table-BbTwHDCo.cjs} +1 -1
- package/dist/{vue-ui-table-DKoRX7gX.js → vue-ui-table-DZV-uDG2.js} +1 -1
- package/dist/{vue-ui-table-heatmap-4RZ4Bo12.js → vue-ui-table-heatmap-DQBm_9Z3.js} +14 -14
- package/dist/{vue-ui-table-heatmap-L3Pg7wC0.cjs → vue-ui-table-heatmap-DSgQpgxG.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-GaHw2cTh.cjs → vue-ui-table-sparkline-AFK2LNsw.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CVWPCRfz.js → vue-ui-table-sparkline-wWAVQ0es.js} +5 -5
- package/dist/{vue-ui-thermometer-VC967j2q.cjs → vue-ui-thermometer-CGFQfRUy.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BFqURwxY.js → vue-ui-thermometer-DRZWIAFj.js} +7 -7
- package/dist/{vue-ui-timer-Bou1Zg22.cjs → vue-ui-timer-C-RRrh5f.cjs} +1 -1
- package/dist/{vue-ui-timer-mPQTAvi1.js → vue-ui-timer-D2_1bbpl.js} +5 -5
- package/dist/{vue-ui-tiremarks-ClzgPlHg.cjs → vue-ui-tiremarks-CIeid_A2.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DyEXFKpK.js → vue-ui-tiremarks-CdX2b-Fq.js} +7 -7
- package/dist/{vue-ui-treemap-pCrT4KlF.js → vue-ui-treemap-CgzgE20q.js} +11 -11
- package/dist/{vue-ui-treemap-DEUSAGw0.cjs → vue-ui-treemap-r8xOrE8F.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BcxAjcoh.cjs +4 -0
- package/dist/vue-ui-vertical-bar-v9LvL35a.js +936 -0
- package/dist/{vue-ui-waffle-DkHP1plA.js → vue-ui-waffle-0mHE8fud.js} +11 -11
- package/dist/{vue-ui-waffle-DjcwBxNh.cjs → vue-ui-waffle-5h_9tS3C.cjs} +1 -1
- package/dist/{vue-ui-wheel-L8vxpKcv.js → vue-ui-wheel-BWL-td7-.js} +7 -7
- package/dist/{vue-ui-wheel-Y2Sny-6a.cjs → vue-ui-wheel-rL5Shua2.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B9UJmesc.cjs → vue-ui-word-cloud-2E23n-B8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DIBB7HIj.js → vue-ui-word-cloud-OkAF9hSC.js} +10 -10
- package/dist/{vue-ui-xy-QmsiPNcv.js → vue-ui-xy-C8E2WzGt.js} +866 -819
- package/dist/vue-ui-xy-DbJNxL5O.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CeKH8VIR.js → vue-ui-xy-canvas-C_0c8FlA.js} +31 -31
- package/dist/{vue-ui-xy-canvas-2aqG9yv5.cjs → vue-ui-xy-canvas-I7rw1uDf.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Legend-CzY3Yhr8.js +0 -68
- package/dist/Legend-DIfEhYtz.cjs +0 -1
- package/dist/vue-ui-donut-C6i_KVvc.js +0 -1122
- package/dist/vue-ui-donut-uH8SS5Ms.cjs +0 -1
- package/dist/vue-ui-gauge-D0Mk9_aI.cjs +0 -1
- package/dist/vue-ui-rings-C-7vrgjN.js +0 -628
- package/dist/vue-ui-rings-kFhuaBvY.cjs +0 -2
- package/dist/vue-ui-stackbar-Bv7RiRae.cjs +0 -6
- package/dist/vue-ui-stackbar-KznnSCkj.js +0 -1061
- package/dist/vue-ui-vertical-bar-DxkQK0tN.cjs +0 -4
- package/dist/vue-ui-vertical-bar-QF9epdei.js +0 -888
- package/dist/vue-ui-xy-DwidR-Vl.cjs +0 -3
|
@@ -1,1061 +0,0 @@
|
|
|
1
|
-
import { computed as w, ref as y, onMounted as je, watch as et, nextTick as ne, openBlock as s, createElementBlock as i, normalizeClass as xe, normalizeStyle as B, unref as p, createBlock as J, createCommentVNode as h, renderSlot as k, createVNode as ue, createSlots as Mt, withCtx as C, normalizeProps as O, guardReactiveProps as P, Fragment as v, renderList as f, createElementVNode as U, toDisplayString as S, createTextVNode as Tt } from "vue";
|
|
2
|
-
import { u as Nt, c as tt, t as It, a as Ot, p as ce, C as ve, b as Pt, o as Rt, e as at, g as At, d as Vt, a7 as he, a3 as lt, D as rt, X as Dt, l as Et, G as ot, f as W, x as st, i as it, y as Ft, q as Ht, r as Bt } from "./index-DjTPIx3R.js";
|
|
3
|
-
import { u as nt } from "./useNestedProp-BNmCbG1v.js";
|
|
4
|
-
import { t as Ut, u as Wt } from "./useResponsive-CoxXLe23.js";
|
|
5
|
-
import { u as Yt, U as Xt } from "./usePrinter-BFF1xn1s.js";
|
|
6
|
-
import { S as Gt } from "./Slicer-BBolqweG.js";
|
|
7
|
-
import { _ as Jt } from "./Tooltip-DddRc8qD.js";
|
|
8
|
-
import { _ as qt } from "./Title-DqZErnpZ.js";
|
|
9
|
-
import { L as Zt } from "./Legend-CzY3Yhr8.js";
|
|
10
|
-
import Kt from "./vue-ui-accordion-CDTXGeL0.js";
|
|
11
|
-
import { D as Qt } from "./DataTable-B2hVpPSW.js";
|
|
12
|
-
import jt from "./vue-ui-skeleton-Dt9cA-wa.js";
|
|
13
|
-
import { _ as ea } from "./PackageVersion-B684aQUP.js";
|
|
14
|
-
import { P as ta } from "./PenAndPaper-mC0kh-S8.js";
|
|
15
|
-
import { u as aa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
-
import { _ as la } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const ra = ["id"], oa = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], ia = { key: 1 }, na = ["id"], ua = ["stop-color"], ca = ["stop-color"], va = ["stop-color"], ha = ["x1", "x2", "y1", "y2", "stroke"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x1", "x2", "y1", "y2", "stroke"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], fa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xa = ["x", "y", "font-size", "fill", "font-weight"], ka = ["transform", "font-size", "fill", "font-weight"], wa = ["x", "y", "font-size", "fill", "font-weight"], za = { key: 0 }, Ca = ["x", "y", "font-size", "font-weight", "fill"], La = ["x", "y", "font-size", "fill", "font-weight"], _a = { key: 0 }, Sa = ["x", "y", "font-size", "font-weight", "fill"], $a = ["x1", "x2", "y1", "y2", "stroke"], Ma = ["x", "y", "font-size", "font-weight", "fill"], Ta = ["x1", "x2", "y1", "y2", "stroke"], Na = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ia = { key: 0 }, Oa = { key: 1 }, Pa = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ra = { key: 0 }, Aa = { key: 1 }, Va = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ea = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Fa = {
|
|
18
|
-
key: 4,
|
|
19
|
-
class: "vue-data-ui-watermark"
|
|
20
|
-
}, Ha = ["onClick"], Ba = ["innerHTML"], Ua = {
|
|
21
|
-
__name: "vue-ui-stackbar",
|
|
22
|
-
props: {
|
|
23
|
-
config: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default() {
|
|
26
|
-
return {};
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dataset: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default() {
|
|
32
|
-
return [];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
37
|
-
setup(de, { expose: ut, emit: ye }) {
|
|
38
|
-
const g = de, { vue_ui_stackbar: ct } = Nt(), Y = w({
|
|
39
|
-
get() {
|
|
40
|
-
return !!g.dataset && g.dataset.length;
|
|
41
|
-
},
|
|
42
|
-
set(a) {
|
|
43
|
-
return a;
|
|
44
|
-
}
|
|
45
|
-
}), X = y(null), ge = y(tt()), ee = y(!1), ke = y(null), be = y(""), _ = y([]), we = y(0), ze = y(null), Ce = y(null), Le = y(null), _e = y(null), Se = y(0), te = y(!1), q = y(null), Z = y(!1), vt = y(0), ht = y(0), dt = y(0), G = y(null);
|
|
46
|
-
je(() => {
|
|
47
|
-
me();
|
|
48
|
-
});
|
|
49
|
-
const e = w({
|
|
50
|
-
get: () => Te(),
|
|
51
|
-
set: (a) => a
|
|
52
|
-
}), { userOptionsVisible: fe, setUserOptionsVisibility: $e, keepUserOptionState: Me } = aa({ config: e.value });
|
|
53
|
-
function Te() {
|
|
54
|
-
const a = nt({
|
|
55
|
-
userConfig: g.config,
|
|
56
|
-
defaultConfig: ct
|
|
57
|
-
});
|
|
58
|
-
let l = {};
|
|
59
|
-
return a.theme ? l = {
|
|
60
|
-
...nt({
|
|
61
|
-
userConfig: It.vue_ui_stackbar[a.theme] || g.config,
|
|
62
|
-
defaultConfig: a
|
|
63
|
-
}),
|
|
64
|
-
customPalette: Ot[a.theme] || ce
|
|
65
|
-
} : l = a, g.config && ve(g.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = g.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, g.config && ve(g.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = g.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, g.config && ve(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ve(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
66
|
-
}
|
|
67
|
-
et(() => g.config, (a) => {
|
|
68
|
-
e.value = Te(), fe.value = !e.value.showOnChartHover, me(), vt.value += 1, ht.value += 1, dt.value += 1;
|
|
69
|
-
}, { deep: !0 }), et(() => g.dataset, (a) => {
|
|
70
|
-
Ve();
|
|
71
|
-
}, { deep: !0 });
|
|
72
|
-
const L = y({
|
|
73
|
-
dataLabels: {
|
|
74
|
-
show: e.value.style.chart.bars.dataLabels.show
|
|
75
|
-
},
|
|
76
|
-
showTable: e.value.table.show,
|
|
77
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
78
|
-
}), { isPrinting: Ne, isImaging: Ie, generatePdf: Oe, generateImage: Pe } = Yt({
|
|
79
|
-
elementId: `stackbar_${ge.value}`,
|
|
80
|
-
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
81
|
-
}), ae = y({
|
|
82
|
-
width: e.value.style.chart.width,
|
|
83
|
-
height: e.value.style.chart.height,
|
|
84
|
-
paddingRatio: {
|
|
85
|
-
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
86
|
-
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
87
|
-
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
88
|
-
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
89
|
-
}
|
|
90
|
-
}), yt = w(() => Pt(e.value.customPalette)), Re = y(null), Ae = y(null);
|
|
91
|
-
je(() => {
|
|
92
|
-
me();
|
|
93
|
-
});
|
|
94
|
-
function me() {
|
|
95
|
-
if (Rt(g.dataset) ? at({
|
|
96
|
-
componentName: "VueUiStackbar",
|
|
97
|
-
type: "dataset"
|
|
98
|
-
}) : g.dataset.forEach((a, l) => {
|
|
99
|
-
At({
|
|
100
|
-
datasetObject: a,
|
|
101
|
-
requiredAttributes: ["name", "series"]
|
|
102
|
-
}).forEach((t) => {
|
|
103
|
-
Y.value = !1, at({
|
|
104
|
-
componentName: "VueUiStackbar",
|
|
105
|
-
type: "datasetSerieAttribute",
|
|
106
|
-
property: t,
|
|
107
|
-
index: l
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}), setTimeout(() => {
|
|
111
|
-
Z.value = !0;
|
|
112
|
-
}, 10), e.value.responsive) {
|
|
113
|
-
const a = Ut(() => {
|
|
114
|
-
Z.value = !1;
|
|
115
|
-
const { width: l, height: t } = Wt({
|
|
116
|
-
chart: X.value,
|
|
117
|
-
title: e.value.style.chart.title.text ? ze.value : null,
|
|
118
|
-
legend: e.value.style.chart.legend.show ? Ce.value : null,
|
|
119
|
-
slicer: e.value.style.chart.zoom.show && A.value > 1 ? Le.value : null,
|
|
120
|
-
source: _e.value
|
|
121
|
-
});
|
|
122
|
-
ae.value.width = l, ae.value.height = t, clearTimeout(Ae.value), Ae.value = setTimeout(() => {
|
|
123
|
-
Z.value = !0;
|
|
124
|
-
}, 10);
|
|
125
|
-
});
|
|
126
|
-
Re.value = new ResizeObserver(a), Re.value.observe(X.value.parentNode);
|
|
127
|
-
}
|
|
128
|
-
De();
|
|
129
|
-
}
|
|
130
|
-
const o = w(() => {
|
|
131
|
-
const { height: a, width: l } = ae.value, { right: t } = ae.value.paddingRatio, r = e.value.style.chart.padding.top, n = l - l * t, u = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, D = l - z - l * t, E = a - r - e.value.style.chart.padding.bottom;
|
|
132
|
-
return {
|
|
133
|
-
chartHeight: a,
|
|
134
|
-
chartWidth: l,
|
|
135
|
-
top: r,
|
|
136
|
-
right: n,
|
|
137
|
-
bottom: u,
|
|
138
|
-
left: z,
|
|
139
|
-
width: D,
|
|
140
|
-
height: E < 0 ? 0 : E
|
|
141
|
-
};
|
|
142
|
-
}), R = w(() => g.dataset.map((a, l) => {
|
|
143
|
-
const t = Vt(a.color) || yt.value[l] || ce[l] || ce[l % ce.length];
|
|
144
|
-
return {
|
|
145
|
-
...a,
|
|
146
|
-
// In distributed mode, all values are converted to positive
|
|
147
|
-
series: JSON.parse(JSON.stringify(a.series)).map((r) => e.value.style.chart.bars.distributed ? Math.abs(r) : r),
|
|
148
|
-
// Store signs to manage display of neg values in distributed mode
|
|
149
|
-
signedSeries: a.series.map((r) => r >= 0 ? 1 : -1),
|
|
150
|
-
absoluteIndex: l,
|
|
151
|
-
id: tt(),
|
|
152
|
-
color: t
|
|
153
|
-
};
|
|
154
|
-
})), A = w(() => Math.max(...R.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = y({
|
|
155
|
-
start: 0,
|
|
156
|
-
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
157
|
-
});
|
|
158
|
-
function Ve() {
|
|
159
|
-
De();
|
|
160
|
-
}
|
|
161
|
-
async function De() {
|
|
162
|
-
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && G.value ? (e.value.style.chart.zoom.startIndex !== null && (await ne(), await ne(), G.value && G.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await ne(), await ne(), G.value && G.value.setEndValue(gt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
163
|
-
start: 0,
|
|
164
|
-
end: Math.max(...g.dataset.map((a) => a.series.length))
|
|
165
|
-
}, Se.value += 1);
|
|
166
|
-
}
|
|
167
|
-
function gt(a) {
|
|
168
|
-
const l = Math.max(...g.dataset.map((t) => t.series.length));
|
|
169
|
-
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
170
|
-
}
|
|
171
|
-
const d = w(() => {
|
|
172
|
-
let a;
|
|
173
|
-
return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
174
|
-
}), K = w(() => he(R.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), bt = w(() => he(R.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
175
|
-
...a,
|
|
176
|
-
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
177
|
-
}))).slice(c.value.start, c.value.end)), le = w(() => {
|
|
178
|
-
const a = R.value.filter((l) => !_.value.includes(l.id));
|
|
179
|
-
return {
|
|
180
|
-
positive: he(a.map((l) => ({
|
|
181
|
-
...l,
|
|
182
|
-
series: l.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
183
|
-
}))),
|
|
184
|
-
negative: he(a.map((l) => ({
|
|
185
|
-
...l,
|
|
186
|
-
series: l.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
187
|
-
})))
|
|
188
|
-
};
|
|
189
|
-
}), N = w(() => {
|
|
190
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...le.value.positive), l = Math.min(...le.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, r = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
191
|
-
return r.ticks.map((n) => ({
|
|
192
|
-
zero: o.value.bottom - o.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
193
|
-
y: o.value.bottom - o.value.height * ((n + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
194
|
-
x: o.value.left - 8,
|
|
195
|
-
horizontal_zero: o.value.left + o.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
|
|
196
|
-
horizontal_x: o.value.left + o.value.width * ((n + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
|
|
197
|
-
horizontal_y: o.value.bottom - 8,
|
|
198
|
-
value: n
|
|
199
|
-
}));
|
|
200
|
-
}), V = w(() => {
|
|
201
|
-
const a = [];
|
|
202
|
-
for (let l = 0; l < A.value; l += 1)
|
|
203
|
-
a.push({
|
|
204
|
-
text: e.value.style.chart.grid.x.timeLabels.values[l] || String(l),
|
|
205
|
-
absoluteIndex: l
|
|
206
|
-
});
|
|
207
|
-
return a.slice(c.value.start, c.value.end);
|
|
208
|
-
}), x = w(() => {
|
|
209
|
-
if (!Y.value) return [];
|
|
210
|
-
let a = Array(A.value).fill(0), l = Array(A.value).fill(0), t = Array(A.value).fill(0), r = Array(A.value).fill(0);
|
|
211
|
-
const n = Math.max(...le.value.positive) || 0, u = Math.min(...le.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, D = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? lt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks) : rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : z > 0 ? 0 : z, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : n < 0 ? 0 : n, e.value.style.chart.grid.scale.ticks), { min: E, max: Q } = D, F = Q + (E >= 0 ? 0 : Math.abs(E)) || 1, $ = o.value.height, ie = o.value.width, Ke = N.value[0] ? N.value[0].zero : o.value.bottom, Qe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
|
|
212
|
-
return R.value.filter((j) => !_.value.includes(j.id)).map((j) => {
|
|
213
|
-
const I = j.series.slice(c.value.start, c.value.end), kt = j.signedSeries.slice(c.value.start, c.value.end), wt = I.map((b, m) => o.value.left + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), zt = I.map((b, m) => o.value.top + d.value * m + d.value * e.value.style.chart.bars.gapRatio / 4), Ct = I.map((b, m) => {
|
|
214
|
-
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
|
|
215
|
-
let H, T;
|
|
216
|
-
return b > 0 ? (T = $ * M, H = Ke - T - a[m], a[m] += T) : (T = $ * M, H = Ke + t[m], t[m] += Math.abs(T)), H;
|
|
217
|
-
}), Lt = I.map((b, m) => {
|
|
218
|
-
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
|
|
219
|
-
let H, T;
|
|
220
|
-
return b > 0 ? (T = ie * M, H = Qe + l[m], l[m] += T) : (T = ie * M, H = Qe - Math.abs(T) - r[m], r[m] += Math.abs(T)), H;
|
|
221
|
-
}), _t = I.map((b, m) => {
|
|
222
|
-
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
|
|
223
|
-
return b > 0 ? $ * M : $ * Math.abs(M);
|
|
224
|
-
}), St = I.map((b, m) => {
|
|
225
|
-
const M = e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / F;
|
|
226
|
-
return b > 0 ? ie * M : ie * Math.abs(M);
|
|
227
|
-
}), $t = I.map((b) => Math.abs(b)).reduce((b, m) => b + m, 0);
|
|
228
|
-
return {
|
|
229
|
-
...j,
|
|
230
|
-
proportions: I.map((b, m) => e.value.style.chart.bars.distributed ? (b || 0) / K.value[m] : (b || 0) / $t),
|
|
231
|
-
series: I,
|
|
232
|
-
signedSeries: kt,
|
|
233
|
-
x: wt,
|
|
234
|
-
y: Ct,
|
|
235
|
-
height: _t,
|
|
236
|
-
horizontal_width: St,
|
|
237
|
-
horizontal_y: zt,
|
|
238
|
-
horizontal_x: Lt
|
|
239
|
-
};
|
|
240
|
-
});
|
|
241
|
-
}), Ee = w(() => bt.value.map((a, l) => ({
|
|
242
|
-
value: a,
|
|
243
|
-
sign: a >= 0 ? 1 : -1
|
|
244
|
-
})));
|
|
245
|
-
function re(a, l, t, r, n) {
|
|
246
|
-
const u = n === -1 && a >= 0 ? -a : a;
|
|
247
|
-
return it(
|
|
248
|
-
e.value.style.chart.bars.dataLabels.formatter,
|
|
249
|
-
u,
|
|
250
|
-
W({
|
|
251
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
252
|
-
v: u,
|
|
253
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
254
|
-
r: e.value.style.chart.bars.dataLabels.rounding
|
|
255
|
-
}),
|
|
256
|
-
{ datapoint: l, seriesIndex: t, datapointIndex: r }
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
function Fe(a, l, t, r) {
|
|
260
|
-
return it(
|
|
261
|
-
e.value.style.chart.bars.dataLabels.formatter,
|
|
262
|
-
a,
|
|
263
|
-
W({
|
|
264
|
-
v: isNaN(a) ? 0 : a,
|
|
265
|
-
s: "%",
|
|
266
|
-
r: e.value.style.chart.bars.dataLabels.rounding
|
|
267
|
-
}),
|
|
268
|
-
{ datapoint: l, seriesIndex: t, datapointIndex: r }
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
function He(a) {
|
|
272
|
-
const l = JSON.parse(JSON.stringify(x.value)).map((t) => ({
|
|
273
|
-
name: t.name,
|
|
274
|
-
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
275
|
-
proportion: t.proportions[a] || null,
|
|
276
|
-
color: t.color,
|
|
277
|
-
id: t.id
|
|
278
|
-
}));
|
|
279
|
-
ye("selectDatapoint", { datapoint: l, period: V.value[a] });
|
|
280
|
-
}
|
|
281
|
-
function Be(a) {
|
|
282
|
-
q.value = a, ee.value = !0;
|
|
283
|
-
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(x.value)).map((n) => ({
|
|
284
|
-
name: n.name,
|
|
285
|
-
value: n.series[a] === 0 ? 0 : (n.signedSeries[a] === -1 && n.series[a] >= 0 ? -n.series[a] : n.series[a]) || null,
|
|
286
|
-
proportion: n.proportions[a] || null,
|
|
287
|
-
color: n.color,
|
|
288
|
-
id: n.id
|
|
289
|
-
})), r = t.map((n) => Math.abs(n.value)).reduce((n, u) => n + u, 0);
|
|
290
|
-
if (st(l) && Ft(() => l({
|
|
291
|
-
seriesIndex: a,
|
|
292
|
-
datapoint: t,
|
|
293
|
-
series: x.value,
|
|
294
|
-
config: e.value
|
|
295
|
-
})))
|
|
296
|
-
be.value = l({
|
|
297
|
-
seriesIndex: a,
|
|
298
|
-
datapoint: t,
|
|
299
|
-
series: x.value,
|
|
300
|
-
config: e.value
|
|
301
|
-
});
|
|
302
|
-
else {
|
|
303
|
-
const {
|
|
304
|
-
showValue: n,
|
|
305
|
-
showPercentage: u,
|
|
306
|
-
borderColor: z,
|
|
307
|
-
roundingValue: D,
|
|
308
|
-
roundingPercentage: E
|
|
309
|
-
} = e.value.style.chart.tooltip;
|
|
310
|
-
let Q = "";
|
|
311
|
-
V.value[a] && V.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (Q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${V.value[a].text}</div>`);
|
|
312
|
-
const F = [
|
|
313
|
-
n && u ? "(" : "",
|
|
314
|
-
n && u ? ")" : ""
|
|
315
|
-
];
|
|
316
|
-
t.reverse().forEach(($) => {
|
|
317
|
-
Q += `
|
|
318
|
-
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
319
|
-
<svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
|
|
320
|
-
${$.name}${n || u ? ":" : ""} ${n ? W({
|
|
321
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
322
|
-
v: $.value,
|
|
323
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
324
|
-
r: D
|
|
325
|
-
}) : ""} ${F[0]}${u ? W({
|
|
326
|
-
v: isNaN($.value / r) ? 0 : Math.abs($.value) / r * 100,
|
|
327
|
-
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
328
|
-
s: "%",
|
|
329
|
-
r: E
|
|
330
|
-
}) : ""}${F[1]}
|
|
331
|
-
</div>
|
|
332
|
-
`;
|
|
333
|
-
}), be.value = `<div>${Q}</div>`;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
function ft(a) {
|
|
337
|
-
te.value = a, we.value += 1;
|
|
338
|
-
}
|
|
339
|
-
function Ue() {
|
|
340
|
-
L.value.showTable = !L.value.showTable;
|
|
341
|
-
}
|
|
342
|
-
function We() {
|
|
343
|
-
L.value.dataLabels.show = !L.value.dataLabels.show;
|
|
344
|
-
}
|
|
345
|
-
function Ye() {
|
|
346
|
-
L.value.showTooltip = !L.value.showTooltip;
|
|
347
|
-
}
|
|
348
|
-
function mt() {
|
|
349
|
-
return x.value;
|
|
350
|
-
}
|
|
351
|
-
const Xe = w(() => {
|
|
352
|
-
if (x.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
353
|
-
const a = x.value.map(({ name: t, color: r }) => ({
|
|
354
|
-
label: t,
|
|
355
|
-
color: r
|
|
356
|
-
})), l = [];
|
|
357
|
-
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
358
|
-
const r = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
359
|
-
R.value.forEach((n) => {
|
|
360
|
-
r.push(Number((n.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
361
|
-
}), l.push(r);
|
|
362
|
-
}
|
|
363
|
-
return { head: a, body: l };
|
|
364
|
-
});
|
|
365
|
-
function Ge() {
|
|
366
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...Xe.value.head.map((u) => u.label)], t = Xe.value.body, r = a.concat([l]).concat(t), n = Ht(r);
|
|
367
|
-
Bt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
368
|
-
}
|
|
369
|
-
const oe = w(() => {
|
|
370
|
-
const a = [""].concat(x.value.map((n) => n.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>');
|
|
371
|
-
let l = [];
|
|
372
|
-
for (let n = 0; n < A.value; n += 1) {
|
|
373
|
-
const u = x.value.map((z) => z.series[n] ?? 0).reduce((z, D) => z + D, 0);
|
|
374
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[n] ?? n + 1].concat(x.value.map((z) => (z.series[n] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
375
|
-
}
|
|
376
|
-
const t = {
|
|
377
|
-
th: {
|
|
378
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
379
|
-
color: e.value.table.th.color,
|
|
380
|
-
outline: e.value.table.th.outline
|
|
381
|
-
},
|
|
382
|
-
td: {
|
|
383
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
384
|
-
color: e.value.table.td.color,
|
|
385
|
-
outline: e.value.table.td.outline
|
|
386
|
-
},
|
|
387
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
388
|
-
}, r = [e.value.table.columnNames.period].concat(x.value.map((n) => n.name)).concat(e.value.table.columnNames.total);
|
|
389
|
-
return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: r };
|
|
390
|
-
});
|
|
391
|
-
function pt(a, l) {
|
|
392
|
-
if (ye("selectLegend", x.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
|
|
393
|
-
_.value = _.value.filter((t) => t !== l.id);
|
|
394
|
-
else {
|
|
395
|
-
if (_.value.length === R.value.length - 1) return;
|
|
396
|
-
_.value.push(l.id);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
const Je = w(() => R.value.map((a, l) => ({
|
|
400
|
-
...a,
|
|
401
|
-
shape: "square"
|
|
402
|
-
})).map((a) => ({
|
|
403
|
-
...a,
|
|
404
|
-
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
405
|
-
segregate: () => pt(a.absoluteIndex, a),
|
|
406
|
-
isSegregated: _.value.includes(a.id)
|
|
407
|
-
}))), xt = w(() => ({
|
|
408
|
-
cy: "stackbar-legend",
|
|
409
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
410
|
-
color: e.value.style.chart.legend.color,
|
|
411
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
412
|
-
paddingBottom: 12,
|
|
413
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
414
|
-
})), se = y(!1);
|
|
415
|
-
function pe() {
|
|
416
|
-
se.value = !se.value;
|
|
417
|
-
}
|
|
418
|
-
function qe(a, l) {
|
|
419
|
-
const t = JSON.parse(JSON.stringify(x.value)).map((r) => ({
|
|
420
|
-
name: r.name,
|
|
421
|
-
value: r.series[l] === 0 ? 0 : (r.signedSeries[l] === -1 && r.series[l] >= 0 ? -r.series[l] : r.series[l]) || null,
|
|
422
|
-
proportion: r.proportions[l] || null,
|
|
423
|
-
color: r.color,
|
|
424
|
-
id: r.id
|
|
425
|
-
}));
|
|
426
|
-
ye("selectTimeLabel", {
|
|
427
|
-
datapoint: t,
|
|
428
|
-
absoluteIndex: a.absoluteIndex,
|
|
429
|
-
label: a.text
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
function Ze(a, l) {
|
|
433
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
434
|
-
}
|
|
435
|
-
return ut({
|
|
436
|
-
getData: mt,
|
|
437
|
-
generatePdf: Oe,
|
|
438
|
-
generateCsv: Ge,
|
|
439
|
-
generateImage: Pe,
|
|
440
|
-
toggleTable: Ue,
|
|
441
|
-
toggleLabels: We,
|
|
442
|
-
toggleTooltip: Ye,
|
|
443
|
-
toggleAnnotator: pe
|
|
444
|
-
}), (a, l) => (s(), i("div", {
|
|
445
|
-
id: `stackbar_${ge.value}`,
|
|
446
|
-
ref_key: "stackbarChart",
|
|
447
|
-
ref: X,
|
|
448
|
-
class: xe({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": te.value }),
|
|
449
|
-
style: B(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
450
|
-
onMouseenter: l[6] || (l[6] = () => p($e)(!0)),
|
|
451
|
-
onMouseleave: l[7] || (l[7] = () => p($e)(!1))
|
|
452
|
-
}, [
|
|
453
|
-
e.value.userOptions.buttons.annotator ? (s(), J(ta, {
|
|
454
|
-
key: 0,
|
|
455
|
-
parent: X.value,
|
|
456
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
457
|
-
color: e.value.style.chart.color,
|
|
458
|
-
active: se.value,
|
|
459
|
-
onClose: pe
|
|
460
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
461
|
-
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
462
|
-
e.value.style.chart.title.text ? (s(), i("div", {
|
|
463
|
-
key: 1,
|
|
464
|
-
ref_key: "chartTitle",
|
|
465
|
-
ref: ze,
|
|
466
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
467
|
-
}, [
|
|
468
|
-
ue(qt, {
|
|
469
|
-
config: {
|
|
470
|
-
title: {
|
|
471
|
-
cy: "stackbar-title",
|
|
472
|
-
...e.value.style.chart.title
|
|
473
|
-
},
|
|
474
|
-
subtitle: {
|
|
475
|
-
cy: "stackbar-subtitle",
|
|
476
|
-
...e.value.style.chart.title.subtitle
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}, null, 8, ["config"])
|
|
480
|
-
], 512)) : h("", !0),
|
|
481
|
-
e.value.userOptions.show && Y.value && (p(Me) || p(fe)) ? (s(), J(Xt, {
|
|
482
|
-
ref: "details",
|
|
483
|
-
key: `user_option_${we.value}`,
|
|
484
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
485
|
-
color: e.value.style.chart.color,
|
|
486
|
-
isPrinting: p(Ne),
|
|
487
|
-
isImaging: p(Ie),
|
|
488
|
-
uid: ge.value,
|
|
489
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
490
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
491
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
492
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
493
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
494
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
495
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
496
|
-
isFullscreen: te.value,
|
|
497
|
-
chartElement: X.value,
|
|
498
|
-
position: e.value.userOptions.position,
|
|
499
|
-
isTooltip: L.value.showTooltip,
|
|
500
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
501
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
502
|
-
isAnnotation: se.value,
|
|
503
|
-
onToggleFullscreen: ft,
|
|
504
|
-
onGeneratePdf: p(Oe),
|
|
505
|
-
onGenerateCsv: Ge,
|
|
506
|
-
onGenerateImage: p(Pe),
|
|
507
|
-
onToggleTable: Ue,
|
|
508
|
-
onToggleLabels: We,
|
|
509
|
-
onToggleTooltip: Ye,
|
|
510
|
-
onToggleAnnotator: pe,
|
|
511
|
-
style: B({
|
|
512
|
-
visibility: p(Me) ? p(fe) ? "visible" : "hidden" : "visible"
|
|
513
|
-
})
|
|
514
|
-
}, Mt({ _: 2 }, [
|
|
515
|
-
a.$slots.optionTooltip ? {
|
|
516
|
-
name: "optionTooltip",
|
|
517
|
-
fn: C(() => [
|
|
518
|
-
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
519
|
-
]),
|
|
520
|
-
key: "0"
|
|
521
|
-
} : void 0,
|
|
522
|
-
a.$slots.optionPdf ? {
|
|
523
|
-
name: "optionPdf",
|
|
524
|
-
fn: C(() => [
|
|
525
|
-
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
526
|
-
]),
|
|
527
|
-
key: "1"
|
|
528
|
-
} : void 0,
|
|
529
|
-
a.$slots.optionCsv ? {
|
|
530
|
-
name: "optionCsv",
|
|
531
|
-
fn: C(() => [
|
|
532
|
-
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
533
|
-
]),
|
|
534
|
-
key: "2"
|
|
535
|
-
} : void 0,
|
|
536
|
-
a.$slots.optionImg ? {
|
|
537
|
-
name: "optionImg",
|
|
538
|
-
fn: C(() => [
|
|
539
|
-
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
540
|
-
]),
|
|
541
|
-
key: "3"
|
|
542
|
-
} : void 0,
|
|
543
|
-
a.$slots.optionTable ? {
|
|
544
|
-
name: "optionTable",
|
|
545
|
-
fn: C(() => [
|
|
546
|
-
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
547
|
-
]),
|
|
548
|
-
key: "4"
|
|
549
|
-
} : void 0,
|
|
550
|
-
a.$slots.optionLabels ? {
|
|
551
|
-
name: "optionLabels",
|
|
552
|
-
fn: C(() => [
|
|
553
|
-
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
554
|
-
]),
|
|
555
|
-
key: "5"
|
|
556
|
-
} : void 0,
|
|
557
|
-
a.$slots.optionFullscreen ? {
|
|
558
|
-
name: "optionFullscreen",
|
|
559
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
560
|
-
k(a.$slots, "optionFullscreen", O(P({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
561
|
-
]),
|
|
562
|
-
key: "6"
|
|
563
|
-
} : void 0,
|
|
564
|
-
a.$slots.optionAnnotator ? {
|
|
565
|
-
name: "optionAnnotator",
|
|
566
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
567
|
-
k(a.$slots, "optionAnnotator", O(P({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
568
|
-
]),
|
|
569
|
-
key: "7"
|
|
570
|
-
} : void 0
|
|
571
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
572
|
-
Y.value ? (s(), i("svg", {
|
|
573
|
-
key: 3,
|
|
574
|
-
xmlns: p(Dt),
|
|
575
|
-
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
576
|
-
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
577
|
-
}, [
|
|
578
|
-
ue(ea),
|
|
579
|
-
a.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
580
|
-
key: 0,
|
|
581
|
-
x: o.value.left,
|
|
582
|
-
y: o.value.top,
|
|
583
|
-
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
584
|
-
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
585
|
-
style: {
|
|
586
|
-
pointerEvents: "none"
|
|
587
|
-
}
|
|
588
|
-
}, [
|
|
589
|
-
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
590
|
-
], 8, sa)) : h("", !0),
|
|
591
|
-
e.value.style.chart.bars.gradient.show ? (s(), i("defs", ia, [
|
|
592
|
-
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("linearGradient", {
|
|
593
|
-
id: `gradient_${t.id}`,
|
|
594
|
-
x1: "0%",
|
|
595
|
-
y1: "0%",
|
|
596
|
-
x2: "0%",
|
|
597
|
-
y2: "100%"
|
|
598
|
-
}, [
|
|
599
|
-
U("stop", {
|
|
600
|
-
offset: "0%",
|
|
601
|
-
"stop-color": t.color
|
|
602
|
-
}, null, 8, ua),
|
|
603
|
-
U("stop", {
|
|
604
|
-
offset: "61.8%",
|
|
605
|
-
"stop-color": p(Et)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
606
|
-
}, null, 8, ca),
|
|
607
|
-
U("stop", {
|
|
608
|
-
offset: "100%",
|
|
609
|
-
"stop-color": t.color
|
|
610
|
-
}, null, 8, va)
|
|
611
|
-
], 8, na))), 256))
|
|
612
|
-
])) : h("", !0),
|
|
613
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 2 }, f(N.value, (t, r) => (s(), i("line", {
|
|
614
|
-
x1: o.value.left,
|
|
615
|
-
x2: o.value.right,
|
|
616
|
-
y1: t.y,
|
|
617
|
-
y2: t.y,
|
|
618
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
619
|
-
"stroke-width": 1,
|
|
620
|
-
"stroke-linecap": "round"
|
|
621
|
-
}, null, 8, ha))), 256)) : h("", !0),
|
|
622
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 3 }, f(c.value.end - c.value.start + 1, (t, r) => (s(), i("line", {
|
|
623
|
-
x1: o.value.left,
|
|
624
|
-
x2: o.value.right,
|
|
625
|
-
y1: o.value.top + d.value * r,
|
|
626
|
-
y2: o.value.top + d.value * r,
|
|
627
|
-
stroke: e.value.style.chart.grid.y.axisColor,
|
|
628
|
-
"stroke-width": 1,
|
|
629
|
-
"stroke-linecap": "round"
|
|
630
|
-
}, null, 8, da))), 256)) : h("", !0),
|
|
631
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 4 }, f(c.value.end - c.value.start + 1, (t, r) => (s(), i("line", {
|
|
632
|
-
x1: o.value.left + d.value * r,
|
|
633
|
-
x2: o.value.left + d.value * r,
|
|
634
|
-
y1: o.value.top,
|
|
635
|
-
y2: o.value.bottom,
|
|
636
|
-
stroke: e.value.style.chart.grid.y.axisColor,
|
|
637
|
-
"stroke-width": 1,
|
|
638
|
-
"stroke-linecap": "round"
|
|
639
|
-
}, null, 8, ya))), 256)) : h("", !0),
|
|
640
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 5 }, f(N.value, (t, r) => (s(), i("line", {
|
|
641
|
-
x1: t.horizontal_x,
|
|
642
|
-
x2: t.horizontal_x,
|
|
643
|
-
y1: o.value.top,
|
|
644
|
-
y2: o.value.bottom,
|
|
645
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
646
|
-
"stroke-width": 1,
|
|
647
|
-
"stroke-linecap": "round"
|
|
648
|
-
}, null, 8, ga))), 256)) : h("", !0),
|
|
649
|
-
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
650
|
-
e.value.orientation === "vertical" ? (s(!0), i(v, { key: 0 }, f(t.x, (n, u) => (s(), i("rect", {
|
|
651
|
-
x: n,
|
|
652
|
-
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
653
|
-
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
654
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
655
|
-
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
656
|
-
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
657
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
658
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
659
|
-
"stroke-linecap": "round",
|
|
660
|
-
"stroke-linejoin": "round",
|
|
661
|
-
class: xe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
662
|
-
}, null, 10, ba))), 256)) : (s(!0), i(v, { key: 1 }, f(t.horizontal_x, (n, u) => (s(), i("rect", {
|
|
663
|
-
x: n,
|
|
664
|
-
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
665
|
-
width: t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u],
|
|
666
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
667
|
-
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
668
|
-
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
669
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
670
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
671
|
-
"stroke-linecap": "round",
|
|
672
|
-
"stroke-linejoin": "round",
|
|
673
|
-
class: xe({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Z.value })
|
|
674
|
-
}, null, 10, fa))), 256))
|
|
675
|
-
]))), 256)),
|
|
676
|
-
e.value.style.chart.grid.x.showAxis ? (s(), i("line", {
|
|
677
|
-
key: 6,
|
|
678
|
-
x1: o.value.left,
|
|
679
|
-
x2: o.value.right,
|
|
680
|
-
y1: o.value.bottom,
|
|
681
|
-
y2: o.value.bottom,
|
|
682
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
683
|
-
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
684
|
-
"stroke-linecap": "round",
|
|
685
|
-
"stroke-linejoin": "round"
|
|
686
|
-
}, null, 8, ma)) : h("", !0),
|
|
687
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), i("line", {
|
|
688
|
-
key: 7,
|
|
689
|
-
x1: o.value.left,
|
|
690
|
-
x2: o.value.left,
|
|
691
|
-
y1: o.value.top,
|
|
692
|
-
y2: o.value.bottom,
|
|
693
|
-
stroke: e.value.style.chart.grid.y.axisColor,
|
|
694
|
-
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
695
|
-
"stroke-linecap": "round",
|
|
696
|
-
"stroke-linejoin": "round"
|
|
697
|
-
}, null, 8, pa)) : h("", !0),
|
|
698
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), i("text", {
|
|
699
|
-
key: 8,
|
|
700
|
-
x: o.value.left + o.value.width / 2,
|
|
701
|
-
y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
702
|
-
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
703
|
-
fill: e.value.style.chart.grid.x.axisName.color,
|
|
704
|
-
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
705
|
-
"text-anchor": "middle"
|
|
706
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9, xa)) : h("", !0),
|
|
707
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), i("text", {
|
|
708
|
-
key: 9,
|
|
709
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
710
|
-
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
711
|
-
fill: e.value.style.chart.grid.y.axisName.color,
|
|
712
|
-
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
713
|
-
"text-anchor": "middle"
|
|
714
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9, ka)) : h("", !0),
|
|
715
|
-
L.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), i(v, { key: 10 }, [
|
|
716
|
-
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
717
|
-
(s(!0), i(v, null, f(t.x, (n, u) => (s(), i(v, null, [
|
|
718
|
-
Ze(t.series[u], t.proportions[u]) ? (s(), i("text", {
|
|
719
|
-
key: 0,
|
|
720
|
-
x: n + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
721
|
-
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
722
|
-
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
723
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
724
|
-
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
725
|
-
"text-anchor": "middle"
|
|
726
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Fe(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, wa)) : h("", !0)
|
|
727
|
-
], 64))), 256))
|
|
728
|
-
]))), 256)),
|
|
729
|
-
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", za, [
|
|
730
|
-
(s(!0), i(v, null, f(Ee.value, (t, r) => (s(), i(v, null, [
|
|
731
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
|
|
732
|
-
key: 0,
|
|
733
|
-
x: o.value.left + d.value * r + d.value / 2,
|
|
734
|
-
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
735
|
-
"text-anchor": "middle",
|
|
736
|
-
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
737
|
-
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
738
|
-
fill: e.value.style.chart.bars.totalValues.color
|
|
739
|
-
}, S(re(t.value, t, r, t.sign)), 9, Ca)) : h("", !0)
|
|
740
|
-
], 64))), 256))
|
|
741
|
-
])) : h("", !0)
|
|
742
|
-
], 64)) : h("", !0),
|
|
743
|
-
L.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), i(v, { key: 11 }, [
|
|
744
|
-
(s(!0), i(v, null, f(x.value, (t, r) => (s(), i("g", null, [
|
|
745
|
-
(s(!0), i(v, null, f(t.horizontal_x, (n, u) => (s(), i(v, null, [
|
|
746
|
-
Ze(t.series[u], t.proportions[u]) ? (s(), i("text", {
|
|
747
|
-
key: 0,
|
|
748
|
-
x: n + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
749
|
-
y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
750
|
-
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
751
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? p(ot)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
752
|
-
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
753
|
-
"text-anchor": "middle"
|
|
754
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Fe(t.proportions[u] * 100, t, r, u) : re(t.series[u], t, r, u, t.signedSeries[u])), 9, La)) : h("", !0)
|
|
755
|
-
], 64))), 256))
|
|
756
|
-
]))), 256)),
|
|
757
|
-
e.value.style.chart.bars.totalValues.show && x.value.length > 1 ? (s(), i("g", _a, [
|
|
758
|
-
(s(!0), i(v, null, f(Ee.value, (t, r) => (s(), i(v, null, [
|
|
759
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), i("text", {
|
|
760
|
-
key: 0,
|
|
761
|
-
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
762
|
-
y: o.value.top + d.value * r + d.value / 2,
|
|
763
|
-
"text-anchor": "start",
|
|
764
|
-
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
765
|
-
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
766
|
-
fill: e.value.style.chart.bars.totalValues.color
|
|
767
|
-
}, S(re(t.value, t, r, t.sign)), 9, Sa)) : h("", !0)
|
|
768
|
-
], 64))), 256))
|
|
769
|
-
])) : h("", !0)
|
|
770
|
-
], 64)) : h("", !0),
|
|
771
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), i(v, { key: 12 }, [
|
|
772
|
-
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("line", {
|
|
773
|
-
x1: o.value.left,
|
|
774
|
-
x2: o.value.left - 6,
|
|
775
|
-
y1: t.y,
|
|
776
|
-
y2: t.y,
|
|
777
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
778
|
-
"stroke-width": 1
|
|
779
|
-
}, null, 8, $a))), 256)),
|
|
780
|
-
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("text", {
|
|
781
|
-
x: t.x,
|
|
782
|
-
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
783
|
-
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
784
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
785
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
786
|
-
"text-anchor": "end"
|
|
787
|
-
}, S(p(W)({
|
|
788
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
789
|
-
v: t.value,
|
|
790
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
791
|
-
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
792
|
-
})), 9, Ma))), 256))
|
|
793
|
-
], 64)) : h("", !0),
|
|
794
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), i(v, { key: 13 }, [
|
|
795
|
-
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("line", {
|
|
796
|
-
x1: t.horizontal_x,
|
|
797
|
-
x2: t.horizontal_x,
|
|
798
|
-
y1: o.value.bottom,
|
|
799
|
-
y2: o.value.bottom + 6,
|
|
800
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
801
|
-
"stroke-width": 1,
|
|
802
|
-
"stroke-linecap": "round"
|
|
803
|
-
}, null, 8, Ta))), 256)),
|
|
804
|
-
(s(!0), i(v, null, f(N.value, (t, r) => (s(), i("text", {
|
|
805
|
-
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
806
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
807
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
808
|
-
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
809
|
-
transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
810
|
-
}, S(p(W)({
|
|
811
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
812
|
-
v: t.value,
|
|
813
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
814
|
-
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
815
|
-
})), 9, Na))), 256))
|
|
816
|
-
], 64)) : h("", !0),
|
|
817
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), i(v, { key: 14 }, [
|
|
818
|
-
a.$slots["time-label"] ? (s(), i("g", Ia, [
|
|
819
|
-
(s(!0), i(v, null, f(V.value, (t, r) => (s(), i("g", null, [
|
|
820
|
-
k(a.$slots, "time-label", O(P({
|
|
821
|
-
x: o.value.left + d.value * r + d.value / 2,
|
|
822
|
-
y: o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
823
|
-
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
824
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
825
|
-
transform: `translate(${o.value.left + d.value * r + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
826
|
-
absoluteIndex: t.absoluteIndex,
|
|
827
|
-
content: t.text,
|
|
828
|
-
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
829
|
-
show: !0
|
|
830
|
-
})), void 0, !0)
|
|
831
|
-
]))), 256))
|
|
832
|
-
])) : (s(), i("g", Oa, [
|
|
833
|
-
(s(!0), i(v, null, f(V.value, (t, r) => (s(), i("text", {
|
|
834
|
-
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
835
|
-
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
836
|
-
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
837
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
838
|
-
transform: `translate(${o.value.left + d.value * r + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
839
|
-
style: {
|
|
840
|
-
cursor: "pointer"
|
|
841
|
-
},
|
|
842
|
-
onClick: () => qe(t, r)
|
|
843
|
-
}, S(t.text), 9, Pa))), 256))
|
|
844
|
-
]))
|
|
845
|
-
], 64)) : h("", !0),
|
|
846
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(), i(v, { key: 15 }, [
|
|
847
|
-
a.$slots["time-label"] ? (s(), i("g", Ra, [
|
|
848
|
-
(s(!0), i(v, null, f(V.value, (t, r) => (s(), i("g", null, [
|
|
849
|
-
k(a.$slots, "time-label", O(P({
|
|
850
|
-
x: o.value.left - 8,
|
|
851
|
-
y: o.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
852
|
-
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
853
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
854
|
-
transform: null,
|
|
855
|
-
absoluteIndex: t.absoluteIndex,
|
|
856
|
-
content: t.text,
|
|
857
|
-
textAnchor: "end",
|
|
858
|
-
show: !0
|
|
859
|
-
})), void 0, !0)
|
|
860
|
-
]))), 256))
|
|
861
|
-
])) : (s(), i("g", Aa, [
|
|
862
|
-
(s(!0), i(v, null, f(V.value, (t, r) => (s(), i("text", {
|
|
863
|
-
"text-anchor": "end",
|
|
864
|
-
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
865
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
866
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
867
|
-
x: o.value.left - 8,
|
|
868
|
-
y: o.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
869
|
-
style: {
|
|
870
|
-
cursor: "pointer"
|
|
871
|
-
},
|
|
872
|
-
onClick: () => qe(t, r)
|
|
873
|
-
}, S(t.text), 9, Va))), 256))
|
|
874
|
-
]))
|
|
875
|
-
], 64)) : h("", !0),
|
|
876
|
-
L.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), i(v, { key: 16 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
|
|
877
|
-
x: o.value.left + r * d.value,
|
|
878
|
-
y: o.value.top,
|
|
879
|
-
width: d.value,
|
|
880
|
-
height: o.value.height < 0 ? 0 : o.value.height,
|
|
881
|
-
onClick: (n) => He(r),
|
|
882
|
-
onMouseenter: (n) => Be(r),
|
|
883
|
-
onMouseleave: l[0] || (l[0] = (n) => {
|
|
884
|
-
q.value = null, ee.value = !1;
|
|
885
|
-
}),
|
|
886
|
-
fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
887
|
-
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
888
|
-
}, null, 44, Da))), 256)) : h("", !0),
|
|
889
|
-
L.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), i(v, { key: 17 }, f(c.value.end - c.value.start, (t, r) => (s(), i("rect", {
|
|
890
|
-
x: o.value.left,
|
|
891
|
-
y: o.value.top + r * d.value,
|
|
892
|
-
width: o.value.width < 0 ? 0 : o.value.width,
|
|
893
|
-
height: d.value,
|
|
894
|
-
onClick: (n) => He(r),
|
|
895
|
-
onMouseenter: (n) => Be(r),
|
|
896
|
-
onMouseleave: l[1] || (l[1] = (n) => {
|
|
897
|
-
q.value = null, ee.value = !1;
|
|
898
|
-
}),
|
|
899
|
-
fill: r === q.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
900
|
-
style: B({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
901
|
-
}, null, 44, Ea))), 256)) : h("", !0),
|
|
902
|
-
k(a.$slots, "svg", O(P({ ...o.value })), void 0, !0)
|
|
903
|
-
], 12, oa)) : h("", !0),
|
|
904
|
-
a.$slots.watermark ? (s(), i("div", Fa, [
|
|
905
|
-
k(a.$slots, "watermark", O(P({ isPrinting: p(Ne) || p(Ie) })), void 0, !0)
|
|
906
|
-
])) : h("", !0),
|
|
907
|
-
Y.value ? h("", !0) : (s(), J(jt, {
|
|
908
|
-
key: 5,
|
|
909
|
-
config: {
|
|
910
|
-
type: "bar",
|
|
911
|
-
style: {
|
|
912
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
913
|
-
bar: {
|
|
914
|
-
axis: {
|
|
915
|
-
color: "#CCCCCC"
|
|
916
|
-
},
|
|
917
|
-
color: "#CCCCCC"
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}, null, 8, ["config"])),
|
|
922
|
-
U("div", {
|
|
923
|
-
ref_key: "chartSlicer",
|
|
924
|
-
ref: Le,
|
|
925
|
-
style: B(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
926
|
-
"data-html2canvas-ignore": ""
|
|
927
|
-
}, [
|
|
928
|
-
e.value.style.chart.zoom.show && A.value > 1 ? (s(), J(Gt, {
|
|
929
|
-
ref_key: "slicerComponent",
|
|
930
|
-
ref: G,
|
|
931
|
-
key: `slicer_${Se.value}`,
|
|
932
|
-
background: e.value.style.chart.zoom.color,
|
|
933
|
-
borderColor: e.value.style.chart.backgroundColor,
|
|
934
|
-
fontSize: e.value.style.chart.zoom.fontSize,
|
|
935
|
-
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
936
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
|
|
937
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
|
|
938
|
-
textColor: e.value.style.chart.color,
|
|
939
|
-
inputColor: e.value.style.chart.zoom.color,
|
|
940
|
-
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
941
|
-
max: Math.max(...de.dataset.map((t) => t.series.length)),
|
|
942
|
-
min: 0,
|
|
943
|
-
valueStart: c.value.start,
|
|
944
|
-
valueEnd: c.value.end,
|
|
945
|
-
start: c.value.start,
|
|
946
|
-
"onUpdate:start": l[2] || (l[2] = (t) => c.value.start = t),
|
|
947
|
-
end: c.value.end,
|
|
948
|
-
"onUpdate:end": l[3] || (l[3] = (t) => c.value.end = t),
|
|
949
|
-
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
950
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...de.dataset.map((t) => t.series.length)),
|
|
951
|
-
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
952
|
-
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
953
|
-
onReset: Ve
|
|
954
|
-
}, {
|
|
955
|
-
"reset-action": C(({ reset: t }) => [
|
|
956
|
-
k(a.$slots, "reset-action", O(P({ reset: t })), void 0, !0)
|
|
957
|
-
]),
|
|
958
|
-
_: 3
|
|
959
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
|
|
960
|
-
], 4),
|
|
961
|
-
ue(Jt, {
|
|
962
|
-
show: L.value.showTooltip && ee.value,
|
|
963
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
964
|
-
color: e.value.style.chart.tooltip.color,
|
|
965
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
966
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
967
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
968
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
969
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
970
|
-
position: e.value.style.chart.tooltip.position,
|
|
971
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
972
|
-
parent: X.value,
|
|
973
|
-
content: be.value,
|
|
974
|
-
isFullscreen: te.value,
|
|
975
|
-
isCustom: p(st)(e.value.style.chart.tooltip.customFormat)
|
|
976
|
-
}, {
|
|
977
|
-
"tooltip-before": C(() => [
|
|
978
|
-
k(a.$slots, "tooltip-before", O(P({ ...ke.value })), void 0, !0)
|
|
979
|
-
]),
|
|
980
|
-
"tooltip-after": C(() => [
|
|
981
|
-
k(a.$slots, "tooltip-after", O(P({ ...ke.value })), void 0, !0)
|
|
982
|
-
]),
|
|
983
|
-
_: 3
|
|
984
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
985
|
-
U("div", {
|
|
986
|
-
ref_key: "chartLegend",
|
|
987
|
-
ref: Ce
|
|
988
|
-
}, [
|
|
989
|
-
e.value.style.chart.legend.show && Y.value ? (s(), J(Zt, {
|
|
990
|
-
key: 0,
|
|
991
|
-
legendSet: Je.value,
|
|
992
|
-
config: xt.value,
|
|
993
|
-
onClickMarker: l[4] || (l[4] = ({ legend: t }) => t.segregate())
|
|
994
|
-
}, {
|
|
995
|
-
item: C(({ legend: t }) => [
|
|
996
|
-
U("div", {
|
|
997
|
-
onClick: (r) => t.segregate(),
|
|
998
|
-
style: B(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
999
|
-
}, S(t.name), 13, Ha)
|
|
1000
|
-
]),
|
|
1001
|
-
_: 1
|
|
1002
|
-
}, 8, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
1003
|
-
key: 1,
|
|
1004
|
-
legend: Je.value
|
|
1005
|
-
}, void 0, !0)
|
|
1006
|
-
], 512),
|
|
1007
|
-
a.$slots.source ? (s(), i("div", {
|
|
1008
|
-
key: 6,
|
|
1009
|
-
ref_key: "source",
|
|
1010
|
-
ref: _e,
|
|
1011
|
-
dir: "auto"
|
|
1012
|
-
}, [
|
|
1013
|
-
k(a.$slots, "source", {}, void 0, !0)
|
|
1014
|
-
], 512)) : h("", !0),
|
|
1015
|
-
c.value.end - c.value.start < 200 ? (s(), J(Kt, {
|
|
1016
|
-
key: 7,
|
|
1017
|
-
hideDetails: "",
|
|
1018
|
-
config: {
|
|
1019
|
-
open: L.value.showTable,
|
|
1020
|
-
maxHeight: 1e4,
|
|
1021
|
-
body: {
|
|
1022
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1023
|
-
color: e.value.style.chart.color
|
|
1024
|
-
},
|
|
1025
|
-
head: {
|
|
1026
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1027
|
-
color: e.value.style.chart.color
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}, {
|
|
1031
|
-
content: C(() => [
|
|
1032
|
-
ue(Qt, {
|
|
1033
|
-
colNames: oe.value.colNames,
|
|
1034
|
-
head: oe.value.head,
|
|
1035
|
-
body: oe.value.body,
|
|
1036
|
-
config: oe.value.config,
|
|
1037
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1038
|
-
onClose: l[5] || (l[5] = (t) => L.value.showTable = !1)
|
|
1039
|
-
}, {
|
|
1040
|
-
th: C(({ th: t }) => [
|
|
1041
|
-
U("div", { innerHTML: t }, null, 8, Ba)
|
|
1042
|
-
]),
|
|
1043
|
-
td: C(({ td: t }) => [
|
|
1044
|
-
Tt(S(isNaN(Number(t)) ? t : p(W)({
|
|
1045
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1046
|
-
v: t,
|
|
1047
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1048
|
-
r: e.value.table.td.roundingValue
|
|
1049
|
-
})), 1)
|
|
1050
|
-
]),
|
|
1051
|
-
_: 1
|
|
1052
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
1053
|
-
]),
|
|
1054
|
-
_: 1
|
|
1055
|
-
}, 8, ["config"])) : h("", !0)
|
|
1056
|
-
], 46, ra));
|
|
1057
|
-
}
|
|
1058
|
-
}, sl = /* @__PURE__ */ la(Ua, [["__scopeId", "data-v-41b031bd"]]);
|
|
1059
|
-
export {
|
|
1060
|
-
sl as default
|
|
1061
|
-
};
|