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
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
import { useCssVars as nt, useSlots as ut, computed as b, ref as d, watch as Be, onMounted as st, onBeforeUnmount as rt, openBlock as u, createElementBlock as r, normalizeClass as z, normalizeStyle as c, unref as i, createBlock as A, createCommentVNode as p, createSlots as de, withCtx as k, renderSlot as m, normalizeProps as X, guardReactiveProps as E, createElementVNode as n, toDisplayString as h, createVNode as Y, Fragment as H, renderList as G, withKeys as it, createTextVNode as dt } from "vue";
|
|
2
|
+
import { u as vt, c as ct, t as ht, a as pt, p as B, b as yt, o as De, e as ee, v as N, d as ve, i as te, f as D, X as gt, s as ce, w as ft, x as bt, y as mt, q as _t, r as kt } from "./index-BVNcFEqn.js";
|
|
3
|
+
import { t as $t, u as xt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as wt } from "./Title-DyUTj8GI.js";
|
|
5
|
+
import { u as Ct, U as Tt } from "./usePrinter-Bcfs_I6G.js";
|
|
6
|
+
import { _ as Lt } from "./Tooltip-B-0uEV3l.js";
|
|
7
|
+
import { L as Re } from "./Legend-DGUxLqhs.js";
|
|
8
|
+
import Nt from "./vue-ui-skeleton-Bgf16k10.js";
|
|
9
|
+
import Pt from "./BaseIcon-DpaRUsHC.js";
|
|
10
|
+
import St from "./vue-ui-accordion-GNblUy42.js";
|
|
11
|
+
import { u as Ue } from "./useNestedProp-D79dWdel.js";
|
|
12
|
+
import { _ as Vt } from "./PackageVersion-B9_Ed72C.js";
|
|
13
|
+
import { P as It } from "./PenAndPaper-CzjoEhsO.js";
|
|
14
|
+
import { u as Ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as Xe } from "./Shape-aXd72O71.js";
|
|
16
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "height"], Dt = ["id"], Rt = ["stop-color"], Ut = ["stop-color"], Xt = { key: 1 }, Et = ["x", "y", "width", "height", "fill", "rx"], Ht = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Gt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Wt = ["x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], qt = ["x", "y", "font-size", "fill", "font-weight"], Kt = ["x", "y", "font-size", "fill", "font-weight"], Jt = ["x", "y", "font-size", "fill", "font-weight"], Qt = ["y", "width", "height", "fill", "onMouseenter"], Zt = {
|
|
18
|
+
key: 6,
|
|
19
|
+
class: "vue-data-ui-watermark"
|
|
20
|
+
}, ea = ["onClick"], ta = { style: "width:100%;padding-top: 36px;position:relative" }, aa = { class: "vue-ui-data-table" }, la = { key: 0 }, oa = { style: { width: "100%" } }, na = ["data-cell"], ua = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = ["data-cell"], ra = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ia = ["data-cell"], da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, va = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ha = ["data-cell"], pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = {
|
|
21
|
+
__name: "vue-ui-vertical-bar",
|
|
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: ["selectLegend"],
|
|
37
|
+
setup(Ee, { expose: He, emit: Ge }) {
|
|
38
|
+
const T = Ee;
|
|
39
|
+
nt((a) => ({
|
|
40
|
+
"646b6c72": a.tdo
|
|
41
|
+
}));
|
|
42
|
+
const { vue_ui_vertical_bar: We } = vt(), je = ut(), q = b(() => !!T.dataset && T.dataset.length), w = d(ct()), Ye = d(null), ae = d(!1), le = d(""), K = d(0), qe = d(null), he = d(0), R = d(null), pe = d(null), oe = d(null), ye = d(null), ge = d(null), fe = d(0), ne = d(0), e = b({
|
|
43
|
+
get: () => _e(),
|
|
44
|
+
set: (a) => a
|
|
45
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: be, keepUserOptionState: me } = Ot({ config: e.value });
|
|
46
|
+
function _e() {
|
|
47
|
+
const a = Ue({
|
|
48
|
+
userConfig: T.config,
|
|
49
|
+
defaultConfig: We
|
|
50
|
+
});
|
|
51
|
+
return a.theme ? {
|
|
52
|
+
...Ue({
|
|
53
|
+
userConfig: ht.vue_ui_vertical_bar[a.theme] || T.config,
|
|
54
|
+
defaultConfig: a
|
|
55
|
+
}),
|
|
56
|
+
customPalette: pt[a.theme] || B
|
|
57
|
+
} : a;
|
|
58
|
+
}
|
|
59
|
+
Be(() => T.config, (a) => {
|
|
60
|
+
e.value = _e(), ue.value = !e.value.showOnChartHover, Ne(), fe.value += 1, ne.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
|
|
61
|
+
}, { deep: !0 }), Be(() => T.dataset, Q, { deep: !0 });
|
|
62
|
+
const { isPrinting: ke, isImaging: $e, generatePdf: xe, generateImage: we } = Ct({
|
|
63
|
+
elementId: `vue-ui-vertical-bar_${w.value}`,
|
|
64
|
+
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
65
|
+
}), Ke = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ce = b(() => yt(e.value.customPalette)), Te = d(null), Le = d(!1), Je = b(() => e.value.table.responsiveBreakpoint), J = d(null);
|
|
66
|
+
st(() => {
|
|
67
|
+
Ne();
|
|
68
|
+
});
|
|
69
|
+
function Ne() {
|
|
70
|
+
if (De(T.dataset) && ee({
|
|
71
|
+
componentName: "VueUiVerticalBar",
|
|
72
|
+
type: "dataset"
|
|
73
|
+
}), K.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Qe(), e.value.responsive) {
|
|
74
|
+
const a = $t(() => {
|
|
75
|
+
const { width: l, height: t } = xt({
|
|
76
|
+
chart: R.value,
|
|
77
|
+
title: e.value.style.chart.title.text ? pe.value : null,
|
|
78
|
+
legend: e.value.style.chart.legend.show ? oe.value : null,
|
|
79
|
+
source: ye.value,
|
|
80
|
+
noTitle: ge.value
|
|
81
|
+
});
|
|
82
|
+
Ve.value = l, v.value = t / K.value - g.value * 2;
|
|
83
|
+
});
|
|
84
|
+
J.value = new ResizeObserver(a), J.value.observe(R.value.parentNode);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
rt(() => {
|
|
88
|
+
J.value && J.value.disconnect();
|
|
89
|
+
});
|
|
90
|
+
function Qe() {
|
|
91
|
+
new ResizeObserver((l) => {
|
|
92
|
+
l.forEach((t) => {
|
|
93
|
+
Le.value = t.contentRect.width < Je.value;
|
|
94
|
+
});
|
|
95
|
+
}).observe(Te.value);
|
|
96
|
+
}
|
|
97
|
+
const C = d({
|
|
98
|
+
showTable: e.value.table.show,
|
|
99
|
+
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
100
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
101
|
+
}), Pe = b(() => C.value.sortDesc), I = b(() => (T.dataset.forEach((a, l) => {
|
|
102
|
+
!a.value && !a.children && ee({
|
|
103
|
+
componentName: "VueUiVerticalBar",
|
|
104
|
+
type: "datasetAttributeEmpty",
|
|
105
|
+
property: `value (index ${l})`
|
|
106
|
+
}), a.children && (De(a.children) ? ee({
|
|
107
|
+
componentName: "VueUiVerticalBar",
|
|
108
|
+
type: "datasetAttributeEmpty",
|
|
109
|
+
property: `children (index ${l})`
|
|
110
|
+
}) : a.children.forEach((t, o) => {
|
|
111
|
+
[null, void 0].includes(t.name) && ee({
|
|
112
|
+
componentName: "VueUiVerticalBar",
|
|
113
|
+
type: "datasetSerieAttribute",
|
|
114
|
+
property: "name",
|
|
115
|
+
key: "children",
|
|
116
|
+
index: o
|
|
117
|
+
});
|
|
118
|
+
}));
|
|
119
|
+
}), T.dataset.map((a, l) => {
|
|
120
|
+
const t = `vertical_parent_${l}_${w.value}`, o = a.children && a.children.length > 0, _ = N(a.value ? a.value : o ? a.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = _ >= 0 ? 1 : -1;
|
|
121
|
+
return {
|
|
122
|
+
...a,
|
|
123
|
+
id: t,
|
|
124
|
+
absoluteIndex: l,
|
|
125
|
+
shape: "square",
|
|
126
|
+
opacity: P.value.includes(t) ? 0.5 : 1,
|
|
127
|
+
value: Math.abs(_),
|
|
128
|
+
sign: f,
|
|
129
|
+
hasChildren: o,
|
|
130
|
+
isChild: !1,
|
|
131
|
+
segregate: () => W(t),
|
|
132
|
+
isSegregated: P.value.includes(t),
|
|
133
|
+
color: ve(a.color) || Ce.value[l] || B[l] || B[l % B.length],
|
|
134
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted((x, V) => Pe.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
|
|
135
|
+
...x,
|
|
136
|
+
value: N(Math.abs(x.value)),
|
|
137
|
+
absoluteIndex: l,
|
|
138
|
+
sign: x.value >= 0 ? 1 : -1,
|
|
139
|
+
isChild: !0,
|
|
140
|
+
parentId: t,
|
|
141
|
+
parentName: a.name,
|
|
142
|
+
parentValue: _,
|
|
143
|
+
parentSign: f,
|
|
144
|
+
id: `vertical_child_${l}_${V}_${w.value}`,
|
|
145
|
+
childIndex: V,
|
|
146
|
+
color: ve(x.color) || ve(a.color) || Ce.value[l] || B[l] || B[l % B.length]
|
|
147
|
+
})).map((x, V) => ({
|
|
148
|
+
...x,
|
|
149
|
+
isFirstChild: V === 0,
|
|
150
|
+
isLastChild: V === a.children.length - 1
|
|
151
|
+
}))
|
|
152
|
+
};
|
|
153
|
+
}).toSorted((a, l) => Pe.value ? l.value - a.value : a.value - l.value))), Se = b(() => ({
|
|
154
|
+
cy: "vertical-bar-div-legend",
|
|
155
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
156
|
+
color: e.value.style.chart.legend.color,
|
|
157
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
158
|
+
paddingBottom: 12,
|
|
159
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
160
|
+
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), Ze = b(() => (v.value + g.value) * K.value), Ve = d(512), y = b(() => ({
|
|
161
|
+
width: Ve.value,
|
|
162
|
+
height: Ze.value,
|
|
163
|
+
padding: {
|
|
164
|
+
top: 12,
|
|
165
|
+
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
166
|
+
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
167
|
+
bottom: 12
|
|
168
|
+
}
|
|
169
|
+
})), s = b(() => ({
|
|
170
|
+
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
171
|
+
top: y.value.padding.top,
|
|
172
|
+
left: y.value.padding.left,
|
|
173
|
+
right: y.value.width - y.value.padding.right,
|
|
174
|
+
bottom: y.value.padding.top + y.value.height,
|
|
175
|
+
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
176
|
+
}));
|
|
177
|
+
function Q() {
|
|
178
|
+
K.value = O.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
179
|
+
}
|
|
180
|
+
const P = d([]);
|
|
181
|
+
function W(a) {
|
|
182
|
+
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), Q(), Ge("selectLegend", O.value);
|
|
183
|
+
}
|
|
184
|
+
const O = b(() => I.value.filter((a) => !P.value.includes(a.id))), S = b(() => O.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
185
|
+
function Ie(a, l = !1, t = 0) {
|
|
186
|
+
return l ? D({
|
|
187
|
+
v: N(Math.abs(a) / S.value * 100),
|
|
188
|
+
s: "%",
|
|
189
|
+
r: t
|
|
190
|
+
}) : Math.abs(a) / S.value;
|
|
191
|
+
}
|
|
192
|
+
const F = b(() => O.value.flatMap((a) => a.hasChildren ? a.children : a)), M = b(() => F.value.map((a) => a.sign).includes(-1)), et = b(() => Math.max(...O.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
193
|
+
function $(a) {
|
|
194
|
+
const l = a / et.value;
|
|
195
|
+
return s.value.width / (M.value ? 2 : 1) * l;
|
|
196
|
+
}
|
|
197
|
+
function tt(a) {
|
|
198
|
+
return $(a) + s.value.left;
|
|
199
|
+
}
|
|
200
|
+
function j(a, l) {
|
|
201
|
+
const t = O.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, _ = t.children.length * (g.value + v.value);
|
|
202
|
+
return {
|
|
203
|
+
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
204
|
+
name: t.name,
|
|
205
|
+
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
206
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Ie(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
207
|
+
sign: t.sign
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function at() {
|
|
211
|
+
return O.value;
|
|
212
|
+
}
|
|
213
|
+
const se = d(null), re = d(null);
|
|
214
|
+
function lt(a, l) {
|
|
215
|
+
re.value = {
|
|
216
|
+
datapoint: a,
|
|
217
|
+
seriesIndex: l,
|
|
218
|
+
series: I.value,
|
|
219
|
+
config: e.value
|
|
220
|
+
}, ae.value = !0, se.value = a.id;
|
|
221
|
+
let t = "";
|
|
222
|
+
const o = a.isChild ? a.parentName : a.name, _ = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
|
|
223
|
+
bt(f) && mt(() => f({
|
|
224
|
+
datapoint: a,
|
|
225
|
+
series: I.value,
|
|
226
|
+
config: e.value,
|
|
227
|
+
seriesIndex: l
|
|
228
|
+
})) ? le.value = f({
|
|
229
|
+
datapoint: a,
|
|
230
|
+
series: I.value,
|
|
231
|
+
config: e.value,
|
|
232
|
+
seriesIndex: l
|
|
233
|
+
}) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
234
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${a.color}"/>${je.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${w.value}_${a.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
235
|
+
${_ ? `<div>${_}</div>` : ""}
|
|
236
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${te(
|
|
237
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
238
|
+
a.sign === 1 ? a.value : -a.value,
|
|
239
|
+
D({
|
|
240
|
+
p: e.value.style.chart.tooltip.prefix,
|
|
241
|
+
v: a.sign === 1 ? a.value : -a.value,
|
|
242
|
+
s: e.value.style.chart.tooltip.suffix,
|
|
243
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
244
|
+
}),
|
|
245
|
+
{ datapoint: a, seriesIndex: l }
|
|
246
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${D({
|
|
247
|
+
v: Math.abs(a.value) / S.value * 100,
|
|
248
|
+
s: "%",
|
|
249
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
250
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${D({
|
|
251
|
+
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
252
|
+
s: "%",
|
|
253
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
254
|
+
})}</b></div>`)), le.value = `<div style="text-align:left">${t}</div>`);
|
|
255
|
+
}
|
|
256
|
+
function Oe(a, l, t, o) {
|
|
257
|
+
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
258
|
+
return "";
|
|
259
|
+
const _ = te(
|
|
260
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
261
|
+
N(o === -1 && a >= 0 ? -a : a),
|
|
262
|
+
D({
|
|
263
|
+
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
264
|
+
v: N(o === -1 && a >= 0 ? -a : a),
|
|
265
|
+
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
266
|
+
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
267
|
+
}),
|
|
268
|
+
{ datapoint: l, seriesIndex: t }
|
|
269
|
+
), f = `(${Ie(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
270
|
+
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
271
|
+
}
|
|
272
|
+
const L = b(() => {
|
|
273
|
+
const a = [
|
|
274
|
+
e.value.translations.parentName,
|
|
275
|
+
e.value.translations.value,
|
|
276
|
+
e.value.translations.percentageToTotal,
|
|
277
|
+
e.value.translations.childName,
|
|
278
|
+
e.value.translations.value,
|
|
279
|
+
e.value.translations.percentageToSerie,
|
|
280
|
+
e.value.translations.percentageToTotal
|
|
281
|
+
], l = F.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
282
|
+
color: t.color,
|
|
283
|
+
parentName: t.parentName,
|
|
284
|
+
parentValue: t.parentValue,
|
|
285
|
+
percentageToTotal: t.parentValue / S.value,
|
|
286
|
+
childName: t.name,
|
|
287
|
+
childValue: t.sign === 1 ? t.value : -t.value,
|
|
288
|
+
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
289
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
290
|
+
} : {
|
|
291
|
+
color: "",
|
|
292
|
+
parentName: "",
|
|
293
|
+
parentValue: "",
|
|
294
|
+
percentageToTotal: "",
|
|
295
|
+
childName: t.name,
|
|
296
|
+
childValue: t.sign === 1 ? t.value : -t.value,
|
|
297
|
+
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
298
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
299
|
+
} : {
|
|
300
|
+
color: t.color,
|
|
301
|
+
parentName: t.name,
|
|
302
|
+
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
303
|
+
percentageToTotal: Math.abs(t.value) / S.value,
|
|
304
|
+
childName: "",
|
|
305
|
+
childValue: "",
|
|
306
|
+
childPercentageToParent: "",
|
|
307
|
+
childPercentageToTotal: ""
|
|
308
|
+
});
|
|
309
|
+
return { head: a, body: l };
|
|
310
|
+
});
|
|
311
|
+
function Fe() {
|
|
312
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = L.value.head, t = L.value.body.map((f) => [
|
|
313
|
+
f.parentName,
|
|
314
|
+
f.parentValue,
|
|
315
|
+
f.percentageToTotal,
|
|
316
|
+
f.childName,
|
|
317
|
+
f.childValue,
|
|
318
|
+
f.childPercentageToParent,
|
|
319
|
+
f.childPercentageToTotal
|
|
320
|
+
]), o = a.concat([l]).concat(t), _ = _t(o);
|
|
321
|
+
kt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
322
|
+
}
|
|
323
|
+
const U = d(!1);
|
|
324
|
+
function ot(a) {
|
|
325
|
+
U.value = a, he.value += 1;
|
|
326
|
+
}
|
|
327
|
+
function Me() {
|
|
328
|
+
C.value.showTable = !C.value.showTable;
|
|
329
|
+
}
|
|
330
|
+
function ze() {
|
|
331
|
+
C.value.sortDesc = !C.value.sortDesc, Q();
|
|
332
|
+
}
|
|
333
|
+
function Ae() {
|
|
334
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
335
|
+
}
|
|
336
|
+
const Z = d(!1);
|
|
337
|
+
function ie() {
|
|
338
|
+
Z.value = !Z.value;
|
|
339
|
+
}
|
|
340
|
+
return He({
|
|
341
|
+
getData: at,
|
|
342
|
+
recalculateHeight: Q,
|
|
343
|
+
generatePdf: xe,
|
|
344
|
+
generateCsv: Fe,
|
|
345
|
+
generateImage: we,
|
|
346
|
+
toggleTable: Me,
|
|
347
|
+
toggleSort: ze,
|
|
348
|
+
toggleTooltip: Ae,
|
|
349
|
+
toggleAnnotator: ie
|
|
350
|
+
}), (a, l) => (u(), r("div", {
|
|
351
|
+
class: z(`vue-ui-vertical-bar ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
352
|
+
ref_key: "verticalBarChart",
|
|
353
|
+
ref: R,
|
|
354
|
+
id: `vue-ui-vertical-bar_${w.value}`,
|
|
355
|
+
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
356
|
+
onMouseenter: l[5] || (l[5] = () => i(be)(!0)),
|
|
357
|
+
onMouseleave: l[6] || (l[6] = () => i(be)(!1))
|
|
358
|
+
}, [
|
|
359
|
+
e.value.userOptions.buttons.annotator ? (u(), A(It, {
|
|
360
|
+
key: 0,
|
|
361
|
+
parent: R.value,
|
|
362
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
363
|
+
color: e.value.style.chart.color,
|
|
364
|
+
active: Z.value,
|
|
365
|
+
onClose: ie
|
|
366
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : p("", !0),
|
|
367
|
+
Ke.value ? (u(), r("div", {
|
|
368
|
+
key: 1,
|
|
369
|
+
ref_key: "noTitle",
|
|
370
|
+
ref: ge,
|
|
371
|
+
class: "vue-data-ui-no-title-space",
|
|
372
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
373
|
+
}, null, 512)) : p("", !0),
|
|
374
|
+
e.value.style.chart.title.text ? (u(), r("div", {
|
|
375
|
+
key: 2,
|
|
376
|
+
ref_key: "chartTitle",
|
|
377
|
+
ref: pe,
|
|
378
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
379
|
+
}, [
|
|
380
|
+
(u(), A(wt, {
|
|
381
|
+
key: `title_${fe.value}`,
|
|
382
|
+
config: {
|
|
383
|
+
title: {
|
|
384
|
+
cy: "vertical-bar-div-title",
|
|
385
|
+
...e.value.style.chart.title
|
|
386
|
+
},
|
|
387
|
+
subtitle: {
|
|
388
|
+
cy: "vertical-bar-div-subtitle",
|
|
389
|
+
...e.value.style.chart.title.subtitle
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}, null, 8, ["config"]))
|
|
393
|
+
], 512)) : p("", !0),
|
|
394
|
+
e.value.userOptions.show && q.value && (i(me) || i(ue)) ? (u(), A(Tt, {
|
|
395
|
+
ref_key: "details",
|
|
396
|
+
ref: Ye,
|
|
397
|
+
key: `user_options_${he.value}`,
|
|
398
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
399
|
+
color: e.value.style.chart.color,
|
|
400
|
+
isImaging: i($e),
|
|
401
|
+
isPrinting: i(ke),
|
|
402
|
+
uid: w.value,
|
|
403
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
404
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
405
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
406
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
407
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
408
|
+
hasSort: e.value.userOptions.buttons.sort,
|
|
409
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
410
|
+
isFullscreen: U.value,
|
|
411
|
+
isTooltip: C.value.showTooltip,
|
|
412
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
413
|
+
chartElement: R.value,
|
|
414
|
+
position: e.value.userOptions.position,
|
|
415
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
416
|
+
isAnnotation: Z.value,
|
|
417
|
+
onToggleFullscreen: ot,
|
|
418
|
+
onGeneratePdf: i(xe),
|
|
419
|
+
onGenerateCsv: Fe,
|
|
420
|
+
onGenerateImage: i(we),
|
|
421
|
+
onToggleTable: Me,
|
|
422
|
+
onToggleSort: ze,
|
|
423
|
+
onToggleTooltip: Ae,
|
|
424
|
+
onToggleAnnotator: ie,
|
|
425
|
+
style: c({
|
|
426
|
+
visibility: i(me) ? i(ue) ? "visible" : "hidden" : "visible"
|
|
427
|
+
})
|
|
428
|
+
}, de({ _: 2 }, [
|
|
429
|
+
a.$slots.optionTooltip ? {
|
|
430
|
+
name: "optionTooltip",
|
|
431
|
+
fn: k(() => [
|
|
432
|
+
m(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
433
|
+
]),
|
|
434
|
+
key: "0"
|
|
435
|
+
} : void 0,
|
|
436
|
+
a.$slots.optionPdf ? {
|
|
437
|
+
name: "optionPdf",
|
|
438
|
+
fn: k(() => [
|
|
439
|
+
m(a.$slots, "optionPdf", {}, void 0, !0)
|
|
440
|
+
]),
|
|
441
|
+
key: "1"
|
|
442
|
+
} : void 0,
|
|
443
|
+
a.$slots.optionCsv ? {
|
|
444
|
+
name: "optionCsv",
|
|
445
|
+
fn: k(() => [
|
|
446
|
+
m(a.$slots, "optionCsv", {}, void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
key: "2"
|
|
449
|
+
} : void 0,
|
|
450
|
+
a.$slots.optionImg ? {
|
|
451
|
+
name: "optionImg",
|
|
452
|
+
fn: k(() => [
|
|
453
|
+
m(a.$slots, "optionImg", {}, void 0, !0)
|
|
454
|
+
]),
|
|
455
|
+
key: "3"
|
|
456
|
+
} : void 0,
|
|
457
|
+
a.$slots.optionTable ? {
|
|
458
|
+
name: "optionTable",
|
|
459
|
+
fn: k(() => [
|
|
460
|
+
m(a.$slots, "optionTable", {}, void 0, !0)
|
|
461
|
+
]),
|
|
462
|
+
key: "4"
|
|
463
|
+
} : void 0,
|
|
464
|
+
a.$slots.optionLabels ? {
|
|
465
|
+
name: "optionLabels",
|
|
466
|
+
fn: k(() => [
|
|
467
|
+
m(a.$slots, "optionLabels", {}, void 0, !0)
|
|
468
|
+
]),
|
|
469
|
+
key: "5"
|
|
470
|
+
} : void 0,
|
|
471
|
+
a.$slots.optionSort ? {
|
|
472
|
+
name: "optionSort",
|
|
473
|
+
fn: k(() => [
|
|
474
|
+
m(a.$slots, "optionSort", {}, void 0, !0)
|
|
475
|
+
]),
|
|
476
|
+
key: "6"
|
|
477
|
+
} : void 0,
|
|
478
|
+
a.$slots.optionFullscreen ? {
|
|
479
|
+
name: "optionFullscreen",
|
|
480
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
481
|
+
m(a.$slots, "optionFullscreen", X(E({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
482
|
+
]),
|
|
483
|
+
key: "7"
|
|
484
|
+
} : void 0,
|
|
485
|
+
a.$slots.optionAnnotator ? {
|
|
486
|
+
name: "optionAnnotator",
|
|
487
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
488
|
+
m(a.$slots, "optionAnnotator", X(E({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
489
|
+
]),
|
|
490
|
+
key: "8"
|
|
491
|
+
} : void 0
|
|
492
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
493
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), r("div", {
|
|
494
|
+
key: 4,
|
|
495
|
+
ref_key: "chartLegend",
|
|
496
|
+
ref: oe
|
|
497
|
+
}, [
|
|
498
|
+
(u(), A(Re, {
|
|
499
|
+
key: `legend_top_${ne.value}`,
|
|
500
|
+
legendSet: I.value,
|
|
501
|
+
config: Se.value,
|
|
502
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => W(t.id))
|
|
503
|
+
}, de({
|
|
504
|
+
item: k(({ legend: t, index: o }) => [
|
|
505
|
+
n("div", {
|
|
506
|
+
"data-cy-legend-item": "",
|
|
507
|
+
onClick: (_) => W(t.id),
|
|
508
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
509
|
+
}, h(t.name) + ": " + h(i(te)(
|
|
510
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
511
|
+
t.value,
|
|
512
|
+
i(D)({
|
|
513
|
+
p: e.value.style.chart.legend.prefix,
|
|
514
|
+
v: t.value,
|
|
515
|
+
s: e.value.style.chart.legend.suffix,
|
|
516
|
+
r: e.value.style.chart.legend.roundingValue
|
|
517
|
+
}),
|
|
518
|
+
{ datapoint: t, seriesIndex: o }
|
|
519
|
+
)), 13, zt)
|
|
520
|
+
]),
|
|
521
|
+
_: 2
|
|
522
|
+
}, [
|
|
523
|
+
a.$slots.pattern ? {
|
|
524
|
+
name: "legend-pattern",
|
|
525
|
+
fn: k(({ legend: t, index: o }) => [
|
|
526
|
+
Y(Xe, {
|
|
527
|
+
shape: t.shape,
|
|
528
|
+
radius: 30,
|
|
529
|
+
stroke: "none",
|
|
530
|
+
plot: { x: 30, y: 30 },
|
|
531
|
+
fill: `url(#pattern_${w.value}_${o})`
|
|
532
|
+
}, null, 8, ["shape", "fill"])
|
|
533
|
+
]),
|
|
534
|
+
key: "0"
|
|
535
|
+
} : void 0
|
|
536
|
+
]), 1032, ["legendSet", "config"]))
|
|
537
|
+
], 512)) : p("", !0),
|
|
538
|
+
q.value ? (u(), r("svg", {
|
|
539
|
+
key: 5,
|
|
540
|
+
xmlns: i(gt),
|
|
541
|
+
class: z({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
542
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
543
|
+
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
544
|
+
}, [
|
|
545
|
+
Y(Vt),
|
|
546
|
+
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
547
|
+
key: 0,
|
|
548
|
+
x: 0,
|
|
549
|
+
y: 0,
|
|
550
|
+
width: y.value.width <= 0 ? 10 : y.value.width,
|
|
551
|
+
height: s.value.fullHeight <= 0 ? 10 : s.value.fullHeight,
|
|
552
|
+
style: {
|
|
553
|
+
pointerEvents: "none"
|
|
554
|
+
}
|
|
555
|
+
}, [
|
|
556
|
+
m(a.$slots, "chart-background", {}, void 0, !0)
|
|
557
|
+
], 8, Bt)) : p("", !0),
|
|
558
|
+
(u(!0), r(H, null, G(F.value, (t, o) => (u(), r("linearGradient", {
|
|
559
|
+
x1: "0%",
|
|
560
|
+
y1: "0%",
|
|
561
|
+
x2: "100%",
|
|
562
|
+
y2: "0%",
|
|
563
|
+
id: `vertical_bar_gradient_${w.value}_${o}`
|
|
564
|
+
}, [
|
|
565
|
+
n("stop", {
|
|
566
|
+
offset: "0%",
|
|
567
|
+
"stop-color": t.color
|
|
568
|
+
}, null, 8, Rt),
|
|
569
|
+
n("stop", {
|
|
570
|
+
offset: "100%",
|
|
571
|
+
"stop-color": i(ce)(i(ft)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
572
|
+
}, null, 8, Ut)
|
|
573
|
+
], 8, Dt))), 256)),
|
|
574
|
+
a.$slots.pattern ? (u(), r("g", Xt, [
|
|
575
|
+
(u(!0), r(H, null, G(F.value, (t) => (u(), r("defs", null, [
|
|
576
|
+
m(a.$slots, "pattern", X(E({ seriesIndex: t.absoluteIndex, patternId: `pattern_${w.value}_${t.absoluteIndex}` })), void 0, !0)
|
|
577
|
+
]))), 256))
|
|
578
|
+
])) : p("", !0),
|
|
579
|
+
(u(!0), r(H, null, G(F.value, (t, o) => (u(), r("g", null, [
|
|
580
|
+
n("rect", {
|
|
581
|
+
x: i(N)(M.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
582
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
583
|
+
width: i(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
584
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
585
|
+
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
586
|
+
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
587
|
+
class: z({ animated: e.value.useCssAnimation })
|
|
588
|
+
}, null, 10, Et)
|
|
589
|
+
]))), 256)),
|
|
590
|
+
(u(!0), r(H, null, G(F.value, (t, o) => (u(), r("g", null, [
|
|
591
|
+
n("rect", {
|
|
592
|
+
x: i(N)(M.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
593
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
594
|
+
width: i(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
595
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
596
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${w.value}_${o})` : i(ce)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
597
|
+
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
598
|
+
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
599
|
+
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
600
|
+
class: z({ animated: e.value.useCssAnimation })
|
|
601
|
+
}, null, 10, Ht),
|
|
602
|
+
a.$slots.pattern ? (u(), r("rect", {
|
|
603
|
+
key: 0,
|
|
604
|
+
x: i(N)(M.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
605
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
606
|
+
width: i(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
607
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
608
|
+
fill: `url(#pattern_${w.value}_${t.absoluteIndex})`,
|
|
609
|
+
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
610
|
+
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
611
|
+
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
612
|
+
class: z({ animated: e.value.useCssAnimation })
|
|
613
|
+
}, null, 10, Gt)) : p("", !0),
|
|
614
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== F.value.length - 1 ? (u(), r("line", {
|
|
615
|
+
key: 1,
|
|
616
|
+
x1: 0,
|
|
617
|
+
x2: s.value.left,
|
|
618
|
+
y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
619
|
+
y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
620
|
+
stroke: e.value.style.chart.layout.separators.color,
|
|
621
|
+
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
622
|
+
"stroke-linecap": "round"
|
|
623
|
+
}, null, 8, Wt)) : p("", !0),
|
|
624
|
+
M.value && e.value.style.chart.layout.separators.show ? (u(), r("line", {
|
|
625
|
+
key: 2,
|
|
626
|
+
x1: s.value.left + s.value.width / 2,
|
|
627
|
+
x2: s.value.left + s.value.width / 2,
|
|
628
|
+
y1: s.value.top,
|
|
629
|
+
y2: s.value.bottom,
|
|
630
|
+
stroke: e.value.style.chart.layout.separators.color,
|
|
631
|
+
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
632
|
+
"stroke-linecap": "round"
|
|
633
|
+
}, null, 8, jt)) : p("", !0),
|
|
634
|
+
n("text", {
|
|
635
|
+
x: M.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : tt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
636
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
637
|
+
"text-anchor": !M.value || t.sign === -1 ? "start" : "end",
|
|
638
|
+
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
639
|
+
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
640
|
+
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
641
|
+
}, h(Oe(t.value, t, o, t.sign)), 9, Yt),
|
|
642
|
+
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), r("text", {
|
|
643
|
+
key: 3,
|
|
644
|
+
"text-anchor": "end",
|
|
645
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
646
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
647
|
+
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
648
|
+
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
649
|
+
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
650
|
+
}, h(t.name), 9, qt)) : p("", !0),
|
|
651
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
|
|
652
|
+
key: 4,
|
|
653
|
+
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
654
|
+
y: j(t, o).y,
|
|
655
|
+
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
656
|
+
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
657
|
+
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
658
|
+
"text-anchor": "start"
|
|
659
|
+
}, h(j(t, o).name), 9, Kt)) : p("", !0),
|
|
660
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
|
|
661
|
+
key: 5,
|
|
662
|
+
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
663
|
+
y: j(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
664
|
+
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
665
|
+
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
666
|
+
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
667
|
+
"text-anchor": "start"
|
|
668
|
+
}, h(Oe(j(t, o).value), j(t, o), o, t.parentSign || t.sign), 9, Jt)) : p("", !0),
|
|
669
|
+
n("rect", {
|
|
670
|
+
"data-cy-trap": "",
|
|
671
|
+
x: 0,
|
|
672
|
+
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
673
|
+
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
674
|
+
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
675
|
+
fill: se.value === t.id ? i(ce)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
676
|
+
onMouseenter: (_) => lt(t, o),
|
|
677
|
+
onMouseleave: l[1] || (l[1] = (_) => {
|
|
678
|
+
qe.value = null, ae.value = !1, se.value = null;
|
|
679
|
+
})
|
|
680
|
+
}, null, 40, Qt)
|
|
681
|
+
]))), 256)),
|
|
682
|
+
m(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
683
|
+
], 14, At)) : p("", !0),
|
|
684
|
+
a.$slots.watermark ? (u(), r("div", Zt, [
|
|
685
|
+
m(a.$slots, "watermark", X(E({ isPrinting: i(ke) || i($e) })), void 0, !0)
|
|
686
|
+
])) : p("", !0),
|
|
687
|
+
q.value ? p("", !0) : (u(), A(Nt, {
|
|
688
|
+
key: 7,
|
|
689
|
+
config: {
|
|
690
|
+
type: "verticalBar",
|
|
691
|
+
style: {
|
|
692
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
693
|
+
verticalBar: {
|
|
694
|
+
axis: {
|
|
695
|
+
color: "#CCCCCC"
|
|
696
|
+
},
|
|
697
|
+
color: "#CCCCCC"
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}, null, 8, ["config"])),
|
|
702
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), r("div", {
|
|
703
|
+
key: 8,
|
|
704
|
+
ref_key: "chartLegend",
|
|
705
|
+
ref: oe
|
|
706
|
+
}, [
|
|
707
|
+
(u(), A(Re, {
|
|
708
|
+
key: `legend_bottom_${ne.value}`,
|
|
709
|
+
legendSet: I.value,
|
|
710
|
+
config: Se.value,
|
|
711
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => W(t.id))
|
|
712
|
+
}, de({
|
|
713
|
+
item: k(({ legend: t, index: o }) => [
|
|
714
|
+
n("div", {
|
|
715
|
+
onClick: (_) => W(t.id),
|
|
716
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
717
|
+
}, h(t.name) + ": " + h(i(te)(
|
|
718
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
719
|
+
t.value,
|
|
720
|
+
i(D)({
|
|
721
|
+
p: e.value.style.chart.legend.prefix,
|
|
722
|
+
v: t.value,
|
|
723
|
+
s: e.value.style.chart.legend.suffix,
|
|
724
|
+
r: e.value.style.chart.legend.roundingValue
|
|
725
|
+
}),
|
|
726
|
+
{ datapoint: t, seriesIndex: o }
|
|
727
|
+
)), 13, ea)
|
|
728
|
+
]),
|
|
729
|
+
_: 2
|
|
730
|
+
}, [
|
|
731
|
+
a.$slots.pattern ? {
|
|
732
|
+
name: "legend-pattern",
|
|
733
|
+
fn: k(({ legend: t, index: o }) => [
|
|
734
|
+
Y(Xe, {
|
|
735
|
+
shape: t.shape,
|
|
736
|
+
radius: 30,
|
|
737
|
+
stroke: "none",
|
|
738
|
+
plot: { x: 30, y: 30 },
|
|
739
|
+
fill: `url(#pattern_${w.value}_${o})`
|
|
740
|
+
}, null, 8, ["shape", "fill"])
|
|
741
|
+
]),
|
|
742
|
+
key: "0"
|
|
743
|
+
} : void 0
|
|
744
|
+
]), 1032, ["legendSet", "config"]))
|
|
745
|
+
], 512)) : p("", !0),
|
|
746
|
+
m(a.$slots, "legend", { legend: I.value }, void 0, !0),
|
|
747
|
+
a.$slots.source ? (u(), r("div", {
|
|
748
|
+
key: 9,
|
|
749
|
+
ref_key: "source",
|
|
750
|
+
ref: ye,
|
|
751
|
+
dir: "auto"
|
|
752
|
+
}, [
|
|
753
|
+
m(a.$slots, "source", {}, void 0, !0)
|
|
754
|
+
], 512)) : p("", !0),
|
|
755
|
+
Y(Lt, {
|
|
756
|
+
show: C.value.showTooltip && ae.value && P.value.length < T.dataset.length,
|
|
757
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
758
|
+
color: e.value.style.chart.tooltip.color,
|
|
759
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
760
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
761
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
762
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
763
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
764
|
+
position: e.value.style.chart.tooltip.position,
|
|
765
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
766
|
+
parent: R.value,
|
|
767
|
+
content: le.value,
|
|
768
|
+
isFullscreen: U.value,
|
|
769
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
770
|
+
}, {
|
|
771
|
+
"tooltip-before": k(() => [
|
|
772
|
+
m(a.$slots, "tooltip-before", X(E({ ...re.value })), void 0, !0)
|
|
773
|
+
]),
|
|
774
|
+
"tooltip-after": k(() => [
|
|
775
|
+
m(a.$slots, "tooltip-after", X(E({ ...re.value })), void 0, !0)
|
|
776
|
+
]),
|
|
777
|
+
_: 3
|
|
778
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
779
|
+
q.value ? (u(), A(St, {
|
|
780
|
+
key: 10,
|
|
781
|
+
hideDetails: "",
|
|
782
|
+
config: {
|
|
783
|
+
open: C.value.showTable,
|
|
784
|
+
maxHeight: 1e4,
|
|
785
|
+
body: {
|
|
786
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
787
|
+
color: e.value.style.chart.color
|
|
788
|
+
},
|
|
789
|
+
head: {
|
|
790
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
791
|
+
color: e.value.style.chart.color
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}, {
|
|
795
|
+
content: k(() => [
|
|
796
|
+
n("div", {
|
|
797
|
+
ref_key: "tableContainer",
|
|
798
|
+
ref: Te,
|
|
799
|
+
class: "vue-ui-vertical-bar-table"
|
|
800
|
+
}, [
|
|
801
|
+
n("div", ta, [
|
|
802
|
+
n("div", {
|
|
803
|
+
role: "button",
|
|
804
|
+
tabindex: "0",
|
|
805
|
+
style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
806
|
+
onClick: l[3] || (l[3] = (t) => C.value.showTable = !1),
|
|
807
|
+
onKeypress: l[4] || (l[4] = it((t) => C.value.showTable = !1, ["enter"]))
|
|
808
|
+
}, [
|
|
809
|
+
Y(Pt, {
|
|
810
|
+
name: "close",
|
|
811
|
+
stroke: e.value.table.th.color,
|
|
812
|
+
"stroke-width": 2
|
|
813
|
+
}, null, 8, ["stroke"])
|
|
814
|
+
], 36),
|
|
815
|
+
n("div", {
|
|
816
|
+
style: { width: "100%", "container-type": "inline-size" },
|
|
817
|
+
class: z({ "vue-ui-responsive": Le.value })
|
|
818
|
+
}, [
|
|
819
|
+
n("table", aa, [
|
|
820
|
+
n("caption", {
|
|
821
|
+
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
822
|
+
class: "vue-ui-data-table__caption"
|
|
823
|
+
}, [
|
|
824
|
+
dt(h(e.value.style.chart.title.text) + " ", 1),
|
|
825
|
+
e.value.style.chart.title.subtitle.text ? (u(), r("span", la, h(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
|
|
826
|
+
], 4),
|
|
827
|
+
n("thead", null, [
|
|
828
|
+
n("tr", {
|
|
829
|
+
role: "row",
|
|
830
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
831
|
+
}, [
|
|
832
|
+
(u(!0), r(H, null, G(L.value.head, (t) => (u(), r("th", {
|
|
833
|
+
style: c(`outline:${e.value.table.th.outline}`)
|
|
834
|
+
}, [
|
|
835
|
+
n("div", oa, h(t), 1)
|
|
836
|
+
], 4))), 256))
|
|
837
|
+
], 4),
|
|
838
|
+
n("tr", null, [
|
|
839
|
+
n("th", {
|
|
840
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
841
|
+
}, null, 4),
|
|
842
|
+
n("th", {
|
|
843
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
844
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
845
|
+
n("th", {
|
|
846
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
847
|
+
}, "100%", 4),
|
|
848
|
+
n("th", {
|
|
849
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
850
|
+
}, null, 4),
|
|
851
|
+
n("th", {
|
|
852
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
853
|
+
}, null, 4),
|
|
854
|
+
n("th", {
|
|
855
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
856
|
+
}, null, 4),
|
|
857
|
+
n("th", {
|
|
858
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
859
|
+
}, null, 4)
|
|
860
|
+
])
|
|
861
|
+
]),
|
|
862
|
+
n("tbody", null, [
|
|
863
|
+
(u(!0), r(H, null, G(L.value.body, (t, o) => (u(), r("tr", {
|
|
864
|
+
class: z({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
865
|
+
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
866
|
+
}, [
|
|
867
|
+
n("td", {
|
|
868
|
+
class: "vue-ui-data-table__tbody__td",
|
|
869
|
+
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
870
|
+
"data-cell": L.value.head[0] ?? ""
|
|
871
|
+
}, [
|
|
872
|
+
n("div", ua, [
|
|
873
|
+
t.color ? (u(), r("span", {
|
|
874
|
+
key: 0,
|
|
875
|
+
style: c(`color:${t.color};margin-right:3px`)
|
|
876
|
+
}, "⬤", 4)) : p("", !0),
|
|
877
|
+
n("span", null, h(t.parentName), 1)
|
|
878
|
+
])
|
|
879
|
+
], 12, na),
|
|
880
|
+
n("td", {
|
|
881
|
+
class: "vue-ui-data-table__tbody__td",
|
|
882
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
883
|
+
"data-cell": L.value.head[1] ?? ""
|
|
884
|
+
}, [
|
|
885
|
+
n("div", ra, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
886
|
+
], 12, sa),
|
|
887
|
+
n("td", {
|
|
888
|
+
class: "vue-ui-data-table__tbody__td",
|
|
889
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
890
|
+
"data-cell": L.value.head[2] ?? ""
|
|
891
|
+
}, [
|
|
892
|
+
n("div", da, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
893
|
+
], 12, ia),
|
|
894
|
+
n("td", {
|
|
895
|
+
class: "vue-ui-data-table__tbody__td",
|
|
896
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
897
|
+
"data-cell": L.value.head[3] ?? ""
|
|
898
|
+
}, [
|
|
899
|
+
n("div", ca, h(t.childName), 1)
|
|
900
|
+
], 12, va),
|
|
901
|
+
n("td", {
|
|
902
|
+
class: "vue-ui-data-table__tbody__td",
|
|
903
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
904
|
+
"data-cell": L.value.head[4] ?? ""
|
|
905
|
+
}, [
|
|
906
|
+
n("div", pa, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
907
|
+
], 12, ha),
|
|
908
|
+
n("td", {
|
|
909
|
+
class: "vue-ui-data-table__tbody__td",
|
|
910
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
911
|
+
"data-cell": L.value.head[5] ?? ""
|
|
912
|
+
}, [
|
|
913
|
+
n("div", ga, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
914
|
+
], 12, ya),
|
|
915
|
+
n("td", {
|
|
916
|
+
class: "vue-ui-data-table__tbody__td",
|
|
917
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
918
|
+
"data-cell": L.value.head[6] ?? ""
|
|
919
|
+
}, [
|
|
920
|
+
n("div", ba, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
921
|
+
], 12, fa)
|
|
922
|
+
], 6))), 256))
|
|
923
|
+
])
|
|
924
|
+
])
|
|
925
|
+
], 2)
|
|
926
|
+
])
|
|
927
|
+
], 512)
|
|
928
|
+
]),
|
|
929
|
+
_: 1
|
|
930
|
+
}, 8, ["config"])) : p("", !0)
|
|
931
|
+
], 46, Mt));
|
|
932
|
+
}
|
|
933
|
+
}, za = /* @__PURE__ */ Ft(ma, [["__scopeId", "data-v-b7b6fe7f"]]);
|
|
934
|
+
export {
|
|
935
|
+
za as default
|
|
936
|
+
};
|