vue-data-ui 2.3.73 → 2.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
- package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
- package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
- package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
- package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
- package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
- package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
- package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
- package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
- package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
- package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
- package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
- package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
- package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
- package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
- package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
- package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
- package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
- package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
- package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
- package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
- package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
- package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
- package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
- package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
- package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
- package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
- package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
- package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
- package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
- package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
- package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
- package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
- package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
- package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
- package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
- package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
- package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
- package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
- package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
- package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
- package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { L as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as Ye, computed as b, ref as d, watch as Pe, onMounted as qe, onBeforeUnmount as Ke, openBlock as n, createElementBlock as c, normalizeClass as D, normalizeStyle as r, createBlock as R, createCommentVNode as m, unref as h, createSlots as Je, withCtx as k, renderSlot as x, normalizeProps as K, guardReactiveProps as J, createElementVNode as u, toDisplayString as i, Fragment as U, renderList as H, createVNode as Se, withKeys as Qe, createTextVNode as Ze } from "vue";
|
|
2
|
+
import { u as et, c as tt, t as at, a as lt, p as M, b as ot, o as Ve, e as Q, s as S, d as ne, i as Z, f as I, X as ut, v as nt, w as se, x as st, y as rt, q as it, r as dt } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { t as ct, u as vt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as ht } from "./Title-C26I_HC3.js";
|
|
5
|
+
import { u as pt, U as gt } from "./usePrinter-B8RnF8_q.js";
|
|
6
|
+
import { _ as yt } from "./Tooltip-CH8GmDCG.js";
|
|
7
|
+
import { L as ze } from "./Legend-DX1kv21U.js";
|
|
8
|
+
import ft from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
9
|
+
import bt from "./BaseIcon-BAOfPaXs.js";
|
|
10
|
+
import mt from "./vue-ui-accordion-Cb6XBCbu.js";
|
|
11
|
+
import { u as Fe } from "./useNestedProp-CurQIHTa.js";
|
|
12
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const kt = ["id"], xt = ["onClick"], $t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], Tt = ["stop-color"], Lt = ["x", "y", "width", "height", "fill", "rx"], Nt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pt = ["x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "font-size", "fill", "font-weight"], It = ["y", "width", "height", "fill", "onMouseenter"], Bt = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, Ot = ["onClick"], Dt = { style: "width:100%;padding-top: 36px;position:relative" }, Rt = { class: "vue-ui-data-table" }, Xt = { key: 0 }, At = { style: { width: "100%" } }, Et = ["data-cell"], Gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ut = ["data-cell"], Ht = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wt = ["data-cell"], jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yt = ["data-cell"], qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kt = ["data-cell"], Jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Qt = ["data-cell"], Zt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, aa = {
|
|
17
17
|
__name: "vue-ui-vertical-bar",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,67 +30,79 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
setup(Me, { expose: Ie, emit: Be }) {
|
|
34
|
+
const C = Me;
|
|
35
|
+
Ye((a) => ({
|
|
36
|
+
f13b9132: a.tdo
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_vertical_bar:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
const { vue_ui_vertical_bar: Oe } = et(), W = b(() => !!C.dataset && C.dataset.length), V = d(tt()), De = d(null), ee = d(!1), te = d(""), j = d(0), Re = d(null), re = d(0), X = d(null), ie = d(null), ae = d(null), de = d(0), le = d(0), e = b({
|
|
39
|
+
get: () => ce(),
|
|
40
|
+
set: (a) => a
|
|
41
|
+
});
|
|
42
|
+
function ce() {
|
|
43
|
+
const a = Fe({
|
|
44
|
+
userConfig: C.config,
|
|
45
|
+
defaultConfig: Oe
|
|
42
46
|
});
|
|
43
47
|
return a.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig:
|
|
48
|
+
...Fe({
|
|
49
|
+
userConfig: at.vue_ui_vertical_bar[a.theme] || C.config,
|
|
46
50
|
defaultConfig: a
|
|
47
51
|
}),
|
|
48
|
-
customPalette:
|
|
52
|
+
customPalette: lt[a.theme] || M
|
|
49
53
|
} : a;
|
|
50
|
-
}
|
|
51
|
-
|
|
54
|
+
}
|
|
55
|
+
Pe(() => C.config, (a) => {
|
|
56
|
+
e.value = ce(), me(), de.value += 1, le.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
|
|
57
|
+
}, { deep: !0 }), Pe(() => C.dataset, q, { deep: !0 });
|
|
58
|
+
const { isPrinting: ve, isImaging: he, generatePdf: pe, generateImage: ge } = pt({
|
|
59
|
+
elementId: `vue-ui-vertical-bar_${V.value}`,
|
|
52
60
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
}), ye = b(() => ot(e.value.customPalette)), fe = d(null), be = d(!1), Xe = b(() => e.value.table.responsiveBreakpoint), Y = d(null);
|
|
62
|
+
qe(() => {
|
|
63
|
+
me();
|
|
64
|
+
});
|
|
65
|
+
function me() {
|
|
66
|
+
if (Ve(C.dataset) && Q({
|
|
56
67
|
componentName: "VueUiVerticalBar",
|
|
57
68
|
type: "dataset"
|
|
58
|
-
}),
|
|
59
|
-
const a =
|
|
60
|
-
const { width: l, height: t } =
|
|
61
|
-
chart:
|
|
62
|
-
title: e.value.style.chart.title.text ?
|
|
63
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
+
}), j.value = C.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ae(), e.value.responsive) {
|
|
70
|
+
const a = ct(() => {
|
|
71
|
+
const { width: l, height: t } = vt({
|
|
72
|
+
chart: X.value,
|
|
73
|
+
title: e.value.style.chart.title.text ? ie.value : null,
|
|
74
|
+
legend: e.value.style.chart.legend.show ? ae.value : null
|
|
64
75
|
});
|
|
65
|
-
|
|
76
|
+
xe.value = l, v.value = t / j.value - g.value * 2;
|
|
66
77
|
});
|
|
67
|
-
|
|
78
|
+
Y.value = new ResizeObserver(a), Y.value.observe(X.value.parentNode);
|
|
68
79
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
80
|
+
}
|
|
81
|
+
Ke(() => {
|
|
82
|
+
Y.value && Y.value.disconnect();
|
|
71
83
|
});
|
|
72
|
-
function
|
|
84
|
+
function Ae() {
|
|
73
85
|
new ResizeObserver((l) => {
|
|
74
86
|
l.forEach((t) => {
|
|
75
|
-
|
|
87
|
+
be.value = t.contentRect.width < Xe.value;
|
|
76
88
|
});
|
|
77
|
-
}).observe(
|
|
89
|
+
}).observe(fe.value);
|
|
78
90
|
}
|
|
79
|
-
const
|
|
91
|
+
const $ = d({
|
|
80
92
|
showTable: e.value.table.show,
|
|
81
93
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
82
94
|
showTooltip: e.value.style.chart.tooltip.show
|
|
83
|
-
}),
|
|
84
|
-
!a.value && !a.children &&
|
|
95
|
+
}), _e = b(() => $.value.sortDesc), z = b(() => (C.dataset.forEach((a, l) => {
|
|
96
|
+
!a.value && !a.children && Q({
|
|
85
97
|
componentName: "VueUiVerticalBar",
|
|
86
98
|
type: "datasetAttributeEmpty",
|
|
87
99
|
property: `value (index ${l})`
|
|
88
|
-
}), a.children && (
|
|
100
|
+
}), a.children && (Ve(a.children) ? Q({
|
|
89
101
|
componentName: "VueUiVerticalBar",
|
|
90
102
|
type: "datasetAttributeEmpty",
|
|
91
103
|
property: `children (index ${l})`
|
|
92
104
|
}) : a.children.forEach((t, o) => {
|
|
93
|
-
[null, void 0].includes(t.name) &&
|
|
105
|
+
[null, void 0].includes(t.name) && Q({
|
|
94
106
|
componentName: "VueUiVerticalBar",
|
|
95
107
|
type: "datasetSerieAttribute",
|
|
96
108
|
property: "name",
|
|
@@ -98,157 +110,158 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
98
110
|
index: o
|
|
99
111
|
});
|
|
100
112
|
}));
|
|
101
|
-
}),
|
|
102
|
-
const t = `vertical_parent_${l}_${
|
|
113
|
+
}), C.dataset.map((a, l) => {
|
|
114
|
+
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((_) => _.value || 0).reduce((_, N) => _ + N, 0) : 0), p = f >= 0 ? 1 : -1;
|
|
103
115
|
return {
|
|
104
116
|
...a,
|
|
105
117
|
id: t,
|
|
106
118
|
shape: "square",
|
|
107
|
-
opacity:
|
|
108
|
-
value:
|
|
109
|
-
sign:
|
|
119
|
+
opacity: T.value.includes(t) ? 0.5 : 1,
|
|
120
|
+
value: Math.abs(f),
|
|
121
|
+
sign: p,
|
|
110
122
|
hasChildren: o,
|
|
111
123
|
isChild: !1,
|
|
112
|
-
segregate: () =>
|
|
113
|
-
isSegregated:
|
|
114
|
-
color:
|
|
115
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted((
|
|
116
|
-
...
|
|
117
|
-
value:
|
|
118
|
-
sign:
|
|
124
|
+
segregate: () => A(t),
|
|
125
|
+
isSegregated: T.value.includes(t),
|
|
126
|
+
color: ne(a.color) || ye.value[l] || M[l] || M[l % M.length],
|
|
127
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted((_, N) => _e.value ? N.value - _.value : _.value - N.value).map((_, N) => ({
|
|
128
|
+
..._,
|
|
129
|
+
value: S(Math.abs(_.value)),
|
|
130
|
+
sign: _.value >= 0 ? 1 : -1,
|
|
119
131
|
isChild: !0,
|
|
120
132
|
parentId: t,
|
|
121
133
|
parentName: a.name,
|
|
122
|
-
parentValue:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
134
|
+
parentValue: f,
|
|
135
|
+
parentSign: p,
|
|
136
|
+
id: `vertical_child_${l}_${N}_${V.value}`,
|
|
137
|
+
childIndex: N,
|
|
138
|
+
color: ne(_.color) || ne(a.color) || ye.value[l] || M[l] || M[l % M.length]
|
|
139
|
+
})).map((_, N) => ({
|
|
140
|
+
..._,
|
|
141
|
+
isFirstChild: N === 0,
|
|
142
|
+
isLastChild: N === a.children.length - 1
|
|
130
143
|
}))
|
|
131
144
|
};
|
|
132
|
-
}).toSorted((a, l) =>
|
|
145
|
+
}).toSorted((a, l) => _e.value ? l.value - a.value : a.value - l.value))), ke = b(() => ({
|
|
133
146
|
cy: "vertical-bar-div-legend",
|
|
134
147
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
135
148
|
color: e.value.style.chart.legend.color,
|
|
136
149
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
137
150
|
paddingBottom: 12,
|
|
138
151
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
139
|
-
})),
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
152
|
+
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), Ee = b(() => (v.value + g.value) * j.value), xe = d(512), y = b(() => ({
|
|
153
|
+
width: xe.value,
|
|
154
|
+
height: Ee.value,
|
|
142
155
|
padding: {
|
|
143
156
|
top: 12,
|
|
144
157
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
145
158
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
146
159
|
bottom: 12
|
|
147
160
|
}
|
|
148
|
-
})),
|
|
149
|
-
fullHeight:
|
|
150
|
-
top:
|
|
151
|
-
left:
|
|
152
|
-
right:
|
|
153
|
-
bottom:
|
|
154
|
-
width:
|
|
161
|
+
})), s = b(() => ({
|
|
162
|
+
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
163
|
+
top: y.value.padding.top,
|
|
164
|
+
left: y.value.padding.left,
|
|
165
|
+
right: y.value.width - y.value.padding.right,
|
|
166
|
+
bottom: y.value.padding.top + y.value.height,
|
|
167
|
+
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
155
168
|
}));
|
|
156
|
-
function
|
|
157
|
-
|
|
169
|
+
function q() {
|
|
170
|
+
j.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
158
171
|
}
|
|
159
|
-
const
|
|
160
|
-
function
|
|
161
|
-
|
|
172
|
+
const T = d([]);
|
|
173
|
+
function A(a) {
|
|
174
|
+
T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a), q(), Be("selectLegend", F.value);
|
|
162
175
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
return l ?
|
|
166
|
-
v:
|
|
176
|
+
const F = b(() => z.value.filter((a) => !T.value.includes(a.id))), L = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
177
|
+
function $e(a, l = !1, t = 0) {
|
|
178
|
+
return l ? I({
|
|
179
|
+
v: S(Math.abs(a) / L.value * 100),
|
|
167
180
|
s: "%",
|
|
168
181
|
r: t
|
|
169
|
-
}) : Math.abs(a) /
|
|
182
|
+
}) : Math.abs(a) / L.value;
|
|
170
183
|
}
|
|
171
|
-
const
|
|
172
|
-
function
|
|
173
|
-
const l = a /
|
|
174
|
-
return
|
|
184
|
+
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), O = b(() => B.value.map((a) => a.sign).includes(-1)), Ge = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
185
|
+
function P(a) {
|
|
186
|
+
const l = a / Ge.value;
|
|
187
|
+
return s.value.width / (O.value ? 2 : 1) * l;
|
|
175
188
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
189
|
+
function Ue(a) {
|
|
190
|
+
return P(a) + s.value.left;
|
|
178
191
|
}
|
|
179
|
-
function
|
|
180
|
-
const t =
|
|
192
|
+
function E(a, l) {
|
|
193
|
+
const t = F.value.find((p) => p.id === a.parentId), o = s.value.top + (g.value + v.value) * l, f = t.children.length * (g.value + v.value);
|
|
181
194
|
return {
|
|
182
|
-
y: o +
|
|
195
|
+
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
183
196
|
name: t.name,
|
|
184
197
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
185
|
-
percentageToTotal: isNaN(t.value /
|
|
198
|
+
percentageToTotal: isNaN(t.value / L.value) ? "" : $e(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
186
199
|
sign: t.sign
|
|
187
200
|
};
|
|
188
201
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
202
|
+
function He() {
|
|
203
|
+
return F.value;
|
|
191
204
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
|
|
205
|
+
const oe = d(null), ue = d(null);
|
|
206
|
+
function We(a, l) {
|
|
207
|
+
ue.value = {
|
|
195
208
|
datapoint: a,
|
|
196
209
|
seriesIndex: l,
|
|
197
|
-
series:
|
|
210
|
+
series: z.value,
|
|
198
211
|
config: e.value
|
|
199
|
-
},
|
|
212
|
+
}, ee.value = !0, oe.value = a.id;
|
|
200
213
|
let t = "";
|
|
201
|
-
const o = a.isChild ? a.parentName : a.name,
|
|
202
|
-
|
|
214
|
+
const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
|
|
215
|
+
st(p) && rt(() => p({
|
|
203
216
|
datapoint: a,
|
|
204
|
-
series:
|
|
217
|
+
series: z.value,
|
|
205
218
|
config: e.value,
|
|
206
219
|
seriesIndex: l
|
|
207
|
-
})) ?
|
|
220
|
+
})) ? te.value = p({
|
|
208
221
|
datapoint: a,
|
|
209
|
-
series:
|
|
222
|
+
series: z.value,
|
|
210
223
|
config: e.value,
|
|
211
224
|
seriesIndex: l
|
|
212
225
|
}) : (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;">
|
|
213
226
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${o}</div>
|
|
214
|
-
${
|
|
215
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
227
|
+
${f ? `<div>${f}</div>` : ""}
|
|
228
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Z(
|
|
216
229
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
217
230
|
a.sign === 1 ? a.value : -a.value,
|
|
218
|
-
|
|
231
|
+
I({
|
|
219
232
|
p: e.value.style.chart.tooltip.prefix,
|
|
220
233
|
v: a.sign === 1 ? a.value : -a.value,
|
|
221
234
|
s: e.value.style.chart.tooltip.suffix,
|
|
222
235
|
r: e.value.style.chart.tooltip.roundingValue
|
|
223
236
|
}),
|
|
224
237
|
{ datapoint: a, seriesIndex: l }
|
|
225
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
226
|
-
v: Math.abs(a.value) /
|
|
238
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${I({
|
|
239
|
+
v: Math.abs(a.value) / L.value * 100,
|
|
227
240
|
s: "%",
|
|
228
241
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
229
|
-
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
242
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${I({
|
|
230
243
|
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
231
244
|
s: "%",
|
|
232
245
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
233
|
-
})}</b></div>`)),
|
|
246
|
+
})}</b></div>`)), te.value = `<div style="text-align:left">${t}</div>`);
|
|
234
247
|
}
|
|
235
|
-
function
|
|
248
|
+
function Ce(a, l, t, o) {
|
|
236
249
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
237
250
|
return "";
|
|
238
|
-
const
|
|
251
|
+
const f = Z(
|
|
239
252
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
240
|
-
|
|
241
|
-
|
|
253
|
+
S(o === -1 && a >= 0 ? -a : a),
|
|
254
|
+
I({
|
|
242
255
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
243
|
-
v:
|
|
256
|
+
v: S(o === -1 && a >= 0 ? -a : a),
|
|
244
257
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
245
258
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
246
259
|
}),
|
|
247
260
|
{ datapoint: l, seriesIndex: t }
|
|
248
|
-
),
|
|
249
|
-
return `${
|
|
261
|
+
), p = `(${$e(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
262
|
+
return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
|
|
250
263
|
}
|
|
251
|
-
const
|
|
264
|
+
const w = b(() => {
|
|
252
265
|
const a = [
|
|
253
266
|
e.value.translations.parentName,
|
|
254
267
|
e.value.translations.value,
|
|
@@ -257,15 +270,15 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
257
270
|
e.value.translations.value,
|
|
258
271
|
e.value.translations.percentageToSerie,
|
|
259
272
|
e.value.translations.percentageToTotal
|
|
260
|
-
], l =
|
|
273
|
+
], l = B.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
261
274
|
color: t.color,
|
|
262
275
|
parentName: t.parentName,
|
|
263
276
|
parentValue: t.parentValue,
|
|
264
|
-
percentageToTotal: t.parentValue /
|
|
277
|
+
percentageToTotal: t.parentValue / L.value,
|
|
265
278
|
childName: t.name,
|
|
266
279
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
267
280
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
268
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
281
|
+
childPercentageToTotal: Math.abs(t.value) / L.value
|
|
269
282
|
} : {
|
|
270
283
|
color: "",
|
|
271
284
|
parentName: "",
|
|
@@ -274,12 +287,12 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
274
287
|
childName: t.name,
|
|
275
288
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
276
289
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
277
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
290
|
+
childPercentageToTotal: Math.abs(t.value) / L.value
|
|
278
291
|
} : {
|
|
279
292
|
color: t.color,
|
|
280
293
|
parentName: t.name,
|
|
281
294
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
282
|
-
percentageToTotal: Math.abs(t.value) /
|
|
295
|
+
percentageToTotal: Math.abs(t.value) / L.value,
|
|
283
296
|
childName: "",
|
|
284
297
|
childValue: "",
|
|
285
298
|
childPercentageToParent: "",
|
|
@@ -287,54 +300,55 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
287
300
|
});
|
|
288
301
|
return { head: a, body: l };
|
|
289
302
|
});
|
|
290
|
-
function
|
|
291
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l =
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
]), o = a.concat([l]).concat(t),
|
|
300
|
-
|
|
303
|
+
function we() {
|
|
304
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, t = w.value.body.map((p) => [
|
|
305
|
+
p.parentName,
|
|
306
|
+
p.parentValue,
|
|
307
|
+
p.percentageToTotal,
|
|
308
|
+
p.childName,
|
|
309
|
+
p.childValue,
|
|
310
|
+
p.childPercentageToParent,
|
|
311
|
+
p.childPercentageToTotal
|
|
312
|
+
]), o = a.concat([l]).concat(t), f = it(o);
|
|
313
|
+
dt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
301
314
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
315
|
+
const G = d(!1);
|
|
316
|
+
function je(a) {
|
|
317
|
+
G.value = a, re.value += 1;
|
|
305
318
|
}
|
|
306
|
-
function
|
|
307
|
-
|
|
319
|
+
function Te() {
|
|
320
|
+
$.value.showTable = !$.value.showTable;
|
|
308
321
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
322
|
+
function Le() {
|
|
323
|
+
$.value.sortDesc = !$.value.sortDesc, q();
|
|
311
324
|
}
|
|
312
|
-
function
|
|
313
|
-
|
|
325
|
+
function Ne() {
|
|
326
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
314
327
|
}
|
|
315
|
-
return
|
|
316
|
-
getData:
|
|
317
|
-
recalculateHeight:
|
|
318
|
-
generatePdf:
|
|
319
|
-
generateCsv:
|
|
320
|
-
generateImage:
|
|
321
|
-
toggleTable:
|
|
322
|
-
toggleSort:
|
|
323
|
-
toggleTooltip:
|
|
324
|
-
}), (a, l) => (
|
|
325
|
-
class:
|
|
328
|
+
return Ie({
|
|
329
|
+
getData: He,
|
|
330
|
+
recalculateHeight: q,
|
|
331
|
+
generatePdf: pe,
|
|
332
|
+
generateCsv: we,
|
|
333
|
+
generateImage: ge,
|
|
334
|
+
toggleTable: Te,
|
|
335
|
+
toggleSort: Le,
|
|
336
|
+
toggleTooltip: Ne
|
|
337
|
+
}), (a, l) => (n(), c("div", {
|
|
338
|
+
class: D(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
326
339
|
ref_key: "verticalBarChart",
|
|
327
|
-
ref:
|
|
328
|
-
id: `vue-ui-vertical-bar_${
|
|
329
|
-
style:
|
|
340
|
+
ref: X,
|
|
341
|
+
id: `vue-ui-vertical-bar_${V.value}`,
|
|
342
|
+
style: r(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
330
343
|
}, [
|
|
331
|
-
e.value.style.chart.title.text ? (
|
|
344
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
332
345
|
key: 0,
|
|
333
346
|
ref_key: "chartTitle",
|
|
334
|
-
ref:
|
|
335
|
-
style:
|
|
347
|
+
ref: ie,
|
|
348
|
+
style: r(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
336
349
|
}, [
|
|
337
|
-
|
|
350
|
+
(n(), R(ht, {
|
|
351
|
+
key: `title_${de.value}`,
|
|
338
352
|
config: {
|
|
339
353
|
title: {
|
|
340
354
|
cy: "vertical-bar-div-title",
|
|
@@ -345,17 +359,17 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
345
359
|
...e.value.style.chart.title.subtitle
|
|
346
360
|
}
|
|
347
361
|
}
|
|
348
|
-
}, null, 8, ["config"])
|
|
362
|
+
}, null, 8, ["config"]))
|
|
349
363
|
], 4)) : m("", !0),
|
|
350
|
-
e.value.userOptions.show &&
|
|
364
|
+
e.value.userOptions.show && W.value ? (n(), R(gt, {
|
|
351
365
|
ref_key: "details",
|
|
352
|
-
ref:
|
|
353
|
-
key: `user_options_${
|
|
366
|
+
ref: De,
|
|
367
|
+
key: `user_options_${re.value}`,
|
|
354
368
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
369
|
color: e.value.style.chart.color,
|
|
356
|
-
isImaging:
|
|
357
|
-
isPrinting:
|
|
358
|
-
uid:
|
|
370
|
+
isImaging: h(he),
|
|
371
|
+
isPrinting: h(ve),
|
|
372
|
+
uid: V.value,
|
|
359
373
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
360
374
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
361
375
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -363,225 +377,226 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
363
377
|
hasTable: e.value.userOptions.buttons.table,
|
|
364
378
|
hasSort: e.value.userOptions.buttons.sort,
|
|
365
379
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
|
-
isFullscreen:
|
|
367
|
-
isTooltip:
|
|
380
|
+
isFullscreen: G.value,
|
|
381
|
+
isTooltip: $.value.showTooltip,
|
|
368
382
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
|
-
chartElement:
|
|
370
|
-
onToggleFullscreen:
|
|
371
|
-
onGeneratePdf:
|
|
372
|
-
onGenerateCsv:
|
|
373
|
-
onGenerateImage:
|
|
374
|
-
onToggleTable:
|
|
375
|
-
onToggleSort:
|
|
376
|
-
onToggleTooltip:
|
|
377
|
-
},
|
|
383
|
+
chartElement: X.value,
|
|
384
|
+
onToggleFullscreen: je,
|
|
385
|
+
onGeneratePdf: h(pe),
|
|
386
|
+
onGenerateCsv: we,
|
|
387
|
+
onGenerateImage: h(ge),
|
|
388
|
+
onToggleTable: Te,
|
|
389
|
+
onToggleSort: Le,
|
|
390
|
+
onToggleTooltip: Ne
|
|
391
|
+
}, Je({ _: 2 }, [
|
|
378
392
|
a.$slots.optionTooltip ? {
|
|
379
393
|
name: "optionTooltip",
|
|
380
|
-
fn:
|
|
394
|
+
fn: k(() => [
|
|
381
395
|
x(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
382
396
|
]),
|
|
383
397
|
key: "0"
|
|
384
398
|
} : void 0,
|
|
385
399
|
a.$slots.optionPdf ? {
|
|
386
400
|
name: "optionPdf",
|
|
387
|
-
fn:
|
|
401
|
+
fn: k(() => [
|
|
388
402
|
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
389
403
|
]),
|
|
390
404
|
key: "1"
|
|
391
405
|
} : void 0,
|
|
392
406
|
a.$slots.optionCsv ? {
|
|
393
407
|
name: "optionCsv",
|
|
394
|
-
fn:
|
|
408
|
+
fn: k(() => [
|
|
395
409
|
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
396
410
|
]),
|
|
397
411
|
key: "2"
|
|
398
412
|
} : void 0,
|
|
399
413
|
a.$slots.optionImg ? {
|
|
400
414
|
name: "optionImg",
|
|
401
|
-
fn:
|
|
415
|
+
fn: k(() => [
|
|
402
416
|
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
403
417
|
]),
|
|
404
418
|
key: "3"
|
|
405
419
|
} : void 0,
|
|
406
420
|
a.$slots.optionTable ? {
|
|
407
421
|
name: "optionTable",
|
|
408
|
-
fn:
|
|
422
|
+
fn: k(() => [
|
|
409
423
|
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
410
424
|
]),
|
|
411
425
|
key: "4"
|
|
412
426
|
} : void 0,
|
|
413
427
|
a.$slots.optionLabels ? {
|
|
414
428
|
name: "optionLabels",
|
|
415
|
-
fn:
|
|
429
|
+
fn: k(() => [
|
|
416
430
|
x(a.$slots, "optionLabels", {}, void 0, !0)
|
|
417
431
|
]),
|
|
418
432
|
key: "5"
|
|
419
433
|
} : void 0,
|
|
420
434
|
a.$slots.optionSort ? {
|
|
421
435
|
name: "optionSort",
|
|
422
|
-
fn:
|
|
436
|
+
fn: k(() => [
|
|
423
437
|
x(a.$slots, "optionSort", {}, void 0, !0)
|
|
424
438
|
]),
|
|
425
439
|
key: "6"
|
|
426
440
|
} : void 0,
|
|
427
441
|
a.$slots.optionFullscreen ? {
|
|
428
442
|
name: "optionFullscreen",
|
|
429
|
-
fn:
|
|
430
|
-
x(a.$slots, "optionFullscreen",
|
|
443
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
444
|
+
x(a.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
431
445
|
]),
|
|
432
446
|
key: "7"
|
|
433
447
|
} : void 0
|
|
434
448
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
435
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (
|
|
449
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(), c("div", {
|
|
436
450
|
key: 2,
|
|
437
451
|
ref_key: "chartLegend",
|
|
438
|
-
ref:
|
|
452
|
+
ref: ae
|
|
439
453
|
}, [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
454
|
+
(n(), R(ze, {
|
|
455
|
+
key: `legend_top_${le.value}`,
|
|
456
|
+
legendSet: z.value,
|
|
457
|
+
config: ke.value,
|
|
458
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => A(t.id))
|
|
444
459
|
}, {
|
|
445
|
-
item:
|
|
460
|
+
item: k(({ legend: t, index: o }) => [
|
|
446
461
|
u("div", {
|
|
447
462
|
"data-cy-legend-item": "",
|
|
448
|
-
onClick: (
|
|
449
|
-
style:
|
|
450
|
-
},
|
|
463
|
+
onClick: (f) => A(t.id),
|
|
464
|
+
style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
465
|
+
}, i(t.name) + ": " + i(h(Z)(
|
|
451
466
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
452
467
|
t.value,
|
|
453
|
-
|
|
468
|
+
h(I)({
|
|
454
469
|
p: e.value.style.chart.legend.prefix,
|
|
455
470
|
v: t.value,
|
|
456
471
|
s: e.value.style.chart.legend.suffix,
|
|
457
472
|
r: e.value.style.chart.legend.roundingValue
|
|
458
473
|
}),
|
|
459
474
|
{ datapoint: t, seriesIndex: o }
|
|
460
|
-
)), 13,
|
|
475
|
+
)), 13, xt)
|
|
461
476
|
]),
|
|
462
477
|
_: 1
|
|
463
|
-
}, 8, ["legendSet", "config"])
|
|
478
|
+
}, 8, ["legendSet", "config"]))
|
|
464
479
|
], 512)) : m("", !0),
|
|
465
|
-
|
|
480
|
+
W.value ? (n(), c("svg", {
|
|
466
481
|
key: 3,
|
|
467
|
-
xmlns:
|
|
468
|
-
class:
|
|
469
|
-
viewBox: `0 0 ${
|
|
470
|
-
style:
|
|
482
|
+
xmlns: h(ut),
|
|
483
|
+
class: D({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
484
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
485
|
+
style: r(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
471
486
|
}, [
|
|
472
|
-
(
|
|
487
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("linearGradient", {
|
|
473
488
|
x1: "0%",
|
|
474
489
|
y1: "0%",
|
|
475
490
|
x2: "100%",
|
|
476
491
|
y2: "0%",
|
|
477
|
-
id: `vertical_bar_gradient_${
|
|
492
|
+
id: `vertical_bar_gradient_${V.value}_${o}`
|
|
478
493
|
}, [
|
|
479
494
|
u("stop", {
|
|
480
495
|
offset: "0%",
|
|
481
496
|
"stop-color": t.color
|
|
482
|
-
}, null, 8,
|
|
497
|
+
}, null, 8, wt),
|
|
483
498
|
u("stop", {
|
|
484
499
|
offset: "100%",
|
|
485
|
-
"stop-color": `${
|
|
486
|
-
}, null, 8,
|
|
487
|
-
], 8,
|
|
488
|
-
(
|
|
500
|
+
"stop-color": `${h(nt)(t.color, 0.03)}${h(se)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
|
|
501
|
+
}, null, 8, Tt)
|
|
502
|
+
], 8, Ct))), 256)),
|
|
503
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
|
|
489
504
|
u("rect", {
|
|
490
|
-
x:
|
|
491
|
-
y:
|
|
492
|
-
width:
|
|
493
|
-
height:
|
|
505
|
+
x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
|
|
506
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
507
|
+
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
508
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
494
509
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
495
510
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
496
|
-
class:
|
|
497
|
-
}, null, 10,
|
|
511
|
+
class: D({ animated: e.value.useCssAnimation })
|
|
512
|
+
}, null, 10, Lt)
|
|
498
513
|
]))), 256)),
|
|
499
|
-
(
|
|
514
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
|
|
500
515
|
u("rect", {
|
|
501
|
-
x:
|
|
502
|
-
y:
|
|
503
|
-
width:
|
|
504
|
-
height:
|
|
505
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
516
|
+
x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
|
|
517
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
518
|
+
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
519
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
520
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : `${t.color}${h(se)[e.value.style.chart.layout.bars.fillOpacity]}`,
|
|
506
521
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
507
522
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
508
523
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
509
|
-
class:
|
|
510
|
-
}, null, 10,
|
|
511
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
524
|
+
class: D({ animated: e.value.useCssAnimation })
|
|
525
|
+
}, null, 10, Nt),
|
|
526
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (n(), c("line", {
|
|
512
527
|
key: 0,
|
|
513
528
|
x1: 0,
|
|
514
|
-
x2:
|
|
515
|
-
y1:
|
|
516
|
-
y2:
|
|
529
|
+
x2: s.value.left,
|
|
530
|
+
y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
531
|
+
y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
517
532
|
stroke: e.value.style.chart.layout.separators.color,
|
|
518
533
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
519
534
|
"stroke-linecap": "round"
|
|
520
|
-
}, null, 8,
|
|
521
|
-
|
|
535
|
+
}, null, 8, Pt)) : m("", !0),
|
|
536
|
+
O.value && e.value.style.chart.layout.separators.show ? (n(), c("line", {
|
|
522
537
|
key: 1,
|
|
523
|
-
x1:
|
|
524
|
-
x2:
|
|
525
|
-
y1:
|
|
526
|
-
y2:
|
|
538
|
+
x1: s.value.left + s.value.width / 2,
|
|
539
|
+
x2: s.value.left + s.value.width / 2,
|
|
540
|
+
y1: s.value.top,
|
|
541
|
+
y2: s.value.bottom,
|
|
527
542
|
stroke: e.value.style.chart.layout.separators.color,
|
|
528
543
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
529
544
|
"stroke-linecap": "round"
|
|
530
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, St)) : m("", !0),
|
|
531
546
|
u("text", {
|
|
532
|
-
x:
|
|
533
|
-
y:
|
|
534
|
-
"text-anchor": !
|
|
547
|
+
x: O.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) : Ue(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
548
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
549
|
+
"text-anchor": !O.value || t.sign === -1 ? "start" : "end",
|
|
535
550
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
536
551
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
537
552
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
538
|
-
},
|
|
539
|
-
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (
|
|
553
|
+
}, i(Ce(t.value, t, o, t.sign)), 9, Vt),
|
|
554
|
+
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), c("text", {
|
|
540
555
|
key: 2,
|
|
541
556
|
"text-anchor": "end",
|
|
542
|
-
x:
|
|
543
|
-
y:
|
|
557
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
558
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
544
559
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
545
560
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
546
561
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
547
|
-
},
|
|
548
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
562
|
+
}, i(t.name), 9, zt)) : m("", !0),
|
|
563
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
|
|
549
564
|
key: 3,
|
|
550
565
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
551
|
-
y:
|
|
566
|
+
y: E(t, o).y,
|
|
552
567
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
553
568
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
554
569
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
555
570
|
"text-anchor": "start"
|
|
556
|
-
},
|
|
557
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
571
|
+
}, i(E(t, o).name), 9, Ft)) : m("", !0),
|
|
572
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
|
|
558
573
|
key: 4,
|
|
559
574
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
560
|
-
y:
|
|
575
|
+
y: E(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
561
576
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
562
577
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
563
578
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
564
579
|
"text-anchor": "start"
|
|
565
|
-
},
|
|
580
|
+
}, i(Ce(E(t, o).value), E(t, o), o, t.parentSign || t.sign), 9, Mt)) : m("", !0),
|
|
566
581
|
u("rect", {
|
|
567
582
|
"data-cy-trap": "",
|
|
568
583
|
x: 0,
|
|
569
|
-
y:
|
|
570
|
-
width:
|
|
571
|
-
height:
|
|
572
|
-
fill:
|
|
573
|
-
onMouseenter: (
|
|
574
|
-
onMouseleave: l[1] || (l[1] = (
|
|
575
|
-
|
|
584
|
+
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
585
|
+
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
586
|
+
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
587
|
+
fill: oe.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${h(se)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
|
|
588
|
+
onMouseenter: (f) => We(t, o),
|
|
589
|
+
onMouseleave: l[1] || (l[1] = (f) => {
|
|
590
|
+
Re.value = null, ee.value = !1, oe.value = null;
|
|
576
591
|
})
|
|
577
|
-
}, null, 40,
|
|
592
|
+
}, null, 40, It)
|
|
578
593
|
]))), 256)),
|
|
579
|
-
x(a.$slots, "svg", { svg:
|
|
580
|
-
], 14,
|
|
581
|
-
a.$slots.watermark ? (
|
|
582
|
-
x(a.$slots, "watermark",
|
|
594
|
+
x(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
595
|
+
], 14, $t)) : m("", !0),
|
|
596
|
+
a.$slots.watermark ? (n(), c("div", Bt, [
|
|
597
|
+
x(a.$slots, "watermark", K(J({ isPrinting: h(ve) || h(he) })), void 0, !0)
|
|
583
598
|
])) : m("", !0),
|
|
584
|
-
|
|
599
|
+
W.value ? m("", !0) : (n(), R(ft, {
|
|
585
600
|
key: 5,
|
|
586
601
|
config: {
|
|
587
602
|
type: "verticalBar",
|
|
@@ -596,38 +611,39 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
596
611
|
}
|
|
597
612
|
}
|
|
598
613
|
}, null, 8, ["config"])),
|
|
599
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (
|
|
614
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), c("div", {
|
|
600
615
|
key: 6,
|
|
601
616
|
ref_key: "chartLegend",
|
|
602
|
-
ref:
|
|
617
|
+
ref: ae
|
|
603
618
|
}, [
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
619
|
+
(n(), R(ze, {
|
|
620
|
+
key: `legend_bottom_${le.value}`,
|
|
621
|
+
legendSet: z.value,
|
|
622
|
+
config: ke.value,
|
|
623
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => A(t.id))
|
|
608
624
|
}, {
|
|
609
|
-
item:
|
|
625
|
+
item: k(({ legend: t, index: o }) => [
|
|
610
626
|
u("div", {
|
|
611
|
-
onClick: (
|
|
612
|
-
style:
|
|
613
|
-
},
|
|
627
|
+
onClick: (f) => A(t.id),
|
|
628
|
+
style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
629
|
+
}, i(t.name) + ": " + i(h(Z)(
|
|
614
630
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
615
631
|
t.value,
|
|
616
|
-
|
|
632
|
+
h(I)({
|
|
617
633
|
p: e.value.style.chart.legend.prefix,
|
|
618
634
|
v: t.value,
|
|
619
635
|
s: e.value.style.chart.legend.suffix,
|
|
620
636
|
r: e.value.style.chart.legend.roundingValue
|
|
621
637
|
}),
|
|
622
638
|
{ datapoint: t, seriesIndex: o }
|
|
623
|
-
)), 13,
|
|
639
|
+
)), 13, Ot)
|
|
624
640
|
]),
|
|
625
641
|
_: 1
|
|
626
|
-
}, 8, ["legendSet", "config"])
|
|
642
|
+
}, 8, ["legendSet", "config"]))
|
|
627
643
|
], 512)) : m("", !0),
|
|
628
|
-
x(a.$slots, "legend", { legend:
|
|
629
|
-
|
|
630
|
-
show:
|
|
644
|
+
x(a.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
645
|
+
Se(yt, {
|
|
646
|
+
show: $.value.showTooltip && ee.value && T.value.length < C.dataset.length,
|
|
631
647
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
632
648
|
color: e.value.style.chart.tooltip.color,
|
|
633
649
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -637,23 +653,23 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
637
653
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
638
654
|
position: e.value.style.chart.tooltip.position,
|
|
639
655
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
640
|
-
parent:
|
|
641
|
-
content:
|
|
656
|
+
parent: X.value,
|
|
657
|
+
content: te.value,
|
|
642
658
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
643
659
|
}, {
|
|
644
|
-
"tooltip-before":
|
|
645
|
-
x(a.$slots, "tooltip-before",
|
|
660
|
+
"tooltip-before": k(() => [
|
|
661
|
+
x(a.$slots, "tooltip-before", K(J({ ...ue.value })), void 0, !0)
|
|
646
662
|
]),
|
|
647
|
-
"tooltip-after":
|
|
648
|
-
x(a.$slots, "tooltip-after",
|
|
663
|
+
"tooltip-after": k(() => [
|
|
664
|
+
x(a.$slots, "tooltip-after", K(J({ ...ue.value })), void 0, !0)
|
|
649
665
|
]),
|
|
650
666
|
_: 3
|
|
651
667
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
652
|
-
|
|
668
|
+
W.value ? (n(), R(mt, {
|
|
653
669
|
key: 7,
|
|
654
670
|
hideDetails: "",
|
|
655
671
|
config: {
|
|
656
|
-
open:
|
|
672
|
+
open: $.value.showTable,
|
|
657
673
|
maxHeight: 1e4,
|
|
658
674
|
body: {
|
|
659
675
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -665,21 +681,21 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
665
681
|
}
|
|
666
682
|
}
|
|
667
683
|
}, {
|
|
668
|
-
content:
|
|
684
|
+
content: k(() => [
|
|
669
685
|
u("div", {
|
|
670
686
|
ref_key: "tableContainer",
|
|
671
|
-
ref:
|
|
687
|
+
ref: fe,
|
|
672
688
|
class: "vue-ui-vertical-bar-table"
|
|
673
689
|
}, [
|
|
674
|
-
u("div",
|
|
690
|
+
u("div", Dt, [
|
|
675
691
|
u("div", {
|
|
676
692
|
role: "button",
|
|
677
693
|
tabindex: "0",
|
|
678
|
-
style:
|
|
679
|
-
onClick: l[3] || (l[3] = (t) =>
|
|
680
|
-
onKeypress: l[4] || (l[4] =
|
|
694
|
+
style: r(`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};`),
|
|
695
|
+
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
696
|
+
onKeypress: l[4] || (l[4] = Qe((t) => $.value.showTable = !1, ["enter"]))
|
|
681
697
|
}, [
|
|
682
|
-
|
|
698
|
+
Se(bt, {
|
|
683
699
|
name: "close",
|
|
684
700
|
stroke: e.value.table.th.color,
|
|
685
701
|
"stroke-width": 2
|
|
@@ -687,111 +703,111 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
687
703
|
], 36),
|
|
688
704
|
u("div", {
|
|
689
705
|
style: { width: "100%", "container-type": "inline-size" },
|
|
690
|
-
class:
|
|
706
|
+
class: D({ "vue-ui-responsive": be.value })
|
|
691
707
|
}, [
|
|
692
|
-
u("table",
|
|
708
|
+
u("table", Rt, [
|
|
693
709
|
u("caption", {
|
|
694
|
-
style:
|
|
710
|
+
style: r({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
695
711
|
class: "vue-ui-data-table__caption"
|
|
696
712
|
}, [
|
|
697
|
-
|
|
698
|
-
e.value.style.chart.title.subtitle.text ? (
|
|
713
|
+
Ze(i(e.value.style.chart.title.text) + " ", 1),
|
|
714
|
+
e.value.style.chart.title.subtitle.text ? (n(), c("span", Xt, i(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
699
715
|
], 4),
|
|
700
716
|
u("thead", null, [
|
|
701
717
|
u("tr", {
|
|
702
718
|
role: "row",
|
|
703
|
-
style:
|
|
719
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
704
720
|
}, [
|
|
705
|
-
(
|
|
706
|
-
style:
|
|
721
|
+
(n(!0), c(U, null, H(w.value.head, (t) => (n(), c("th", {
|
|
722
|
+
style: r(`outline:${e.value.table.th.outline}`)
|
|
707
723
|
}, [
|
|
708
|
-
u("div",
|
|
724
|
+
u("div", At, i(t), 1)
|
|
709
725
|
], 4))), 256))
|
|
710
726
|
], 4),
|
|
711
727
|
u("tr", null, [
|
|
712
728
|
u("th", {
|
|
713
|
-
style:
|
|
729
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
714
730
|
}, null, 4),
|
|
715
731
|
u("th", {
|
|
716
|
-
style:
|
|
717
|
-
}, "∑ " +
|
|
732
|
+
style: r(`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`)
|
|
733
|
+
}, "∑ " + i(e.value.table.td.prefix) + i(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 5),
|
|
718
734
|
u("th", {
|
|
719
|
-
style:
|
|
735
|
+
style: r(`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`)
|
|
720
736
|
}, "100%", 4),
|
|
721
737
|
u("th", {
|
|
722
|
-
style:
|
|
738
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
723
739
|
}, null, 4),
|
|
724
740
|
u("th", {
|
|
725
|
-
style:
|
|
741
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
726
742
|
}, null, 4),
|
|
727
743
|
u("th", {
|
|
728
|
-
style:
|
|
744
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
729
745
|
}, null, 4),
|
|
730
746
|
u("th", {
|
|
731
|
-
style:
|
|
747
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
732
748
|
}, null, 4)
|
|
733
749
|
])
|
|
734
750
|
]),
|
|
735
751
|
u("tbody", null, [
|
|
736
|
-
(
|
|
737
|
-
class:
|
|
738
|
-
style:
|
|
752
|
+
(n(!0), c(U, null, H(w.value.body, (t, o) => (n(), c("tr", {
|
|
753
|
+
class: D({ "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 }),
|
|
754
|
+
style: r(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
739
755
|
}, [
|
|
740
756
|
u("td", {
|
|
741
757
|
class: "vue-ui-data-table__tbody__td",
|
|
742
|
-
style:
|
|
743
|
-
"data-cell":
|
|
758
|
+
style: r(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
759
|
+
"data-cell": w.value.head[0] ?? ""
|
|
744
760
|
}, [
|
|
745
|
-
u("div",
|
|
746
|
-
t.color ? (
|
|
761
|
+
u("div", Gt, [
|
|
762
|
+
t.color ? (n(), c("span", {
|
|
747
763
|
key: 0,
|
|
748
|
-
style:
|
|
764
|
+
style: r(`color:${t.color};margin-right:3px`)
|
|
749
765
|
}, "⬤", 4)) : m("", !0),
|
|
750
|
-
u("span", null,
|
|
766
|
+
u("span", null, i(t.parentName), 1)
|
|
751
767
|
])
|
|
752
|
-
], 12,
|
|
768
|
+
], 12, Et),
|
|
753
769
|
u("td", {
|
|
754
770
|
class: "vue-ui-data-table__tbody__td",
|
|
755
|
-
style:
|
|
756
|
-
"data-cell":
|
|
771
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
772
|
+
"data-cell": w.value.head[1] ?? ""
|
|
757
773
|
}, [
|
|
758
|
-
u("div",
|
|
759
|
-
], 12,
|
|
774
|
+
u("div", Ht, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
775
|
+
], 12, Ut),
|
|
760
776
|
u("td", {
|
|
761
777
|
class: "vue-ui-data-table__tbody__td",
|
|
762
|
-
style:
|
|
763
|
-
"data-cell":
|
|
778
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
779
|
+
"data-cell": w.value.head[2] ?? ""
|
|
764
780
|
}, [
|
|
765
|
-
u("div",
|
|
766
|
-
], 12,
|
|
781
|
+
u("div", jt, i(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
782
|
+
], 12, Wt),
|
|
767
783
|
u("td", {
|
|
768
784
|
class: "vue-ui-data-table__tbody__td",
|
|
769
|
-
style:
|
|
770
|
-
"data-cell":
|
|
785
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
786
|
+
"data-cell": w.value.head[3] ?? ""
|
|
771
787
|
}, [
|
|
772
|
-
u("div",
|
|
773
|
-
], 12,
|
|
788
|
+
u("div", qt, i(t.childName), 1)
|
|
789
|
+
], 12, Yt),
|
|
774
790
|
u("td", {
|
|
775
791
|
class: "vue-ui-data-table__tbody__td",
|
|
776
|
-
style:
|
|
777
|
-
"data-cell":
|
|
792
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
793
|
+
"data-cell": w.value.head[4] ?? ""
|
|
778
794
|
}, [
|
|
779
|
-
u("div",
|
|
780
|
-
], 12,
|
|
795
|
+
u("div", Jt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
796
|
+
], 12, Kt),
|
|
781
797
|
u("td", {
|
|
782
798
|
class: "vue-ui-data-table__tbody__td",
|
|
783
|
-
style:
|
|
784
|
-
"data-cell":
|
|
799
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
800
|
+
"data-cell": w.value.head[5] ?? ""
|
|
785
801
|
}, [
|
|
786
|
-
u("div",
|
|
787
|
-
], 12,
|
|
802
|
+
u("div", Zt, i(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
803
|
+
], 12, Qt),
|
|
788
804
|
u("td", {
|
|
789
805
|
class: "vue-ui-data-table__tbody__td",
|
|
790
|
-
style:
|
|
791
|
-
"data-cell":
|
|
806
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
807
|
+
"data-cell": w.value.head[6] ?? ""
|
|
792
808
|
}, [
|
|
793
|
-
u("div",
|
|
794
|
-
], 12,
|
|
809
|
+
u("div", ta, i(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
810
|
+
], 12, ea)
|
|
795
811
|
], 6))), 256))
|
|
796
812
|
])
|
|
797
813
|
])
|
|
@@ -801,9 +817,9 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
801
817
|
]),
|
|
802
818
|
_: 1
|
|
803
819
|
}, 8, ["config"])) : m("", !0)
|
|
804
|
-
], 14,
|
|
820
|
+
], 14, kt));
|
|
805
821
|
}
|
|
806
|
-
},
|
|
822
|
+
}, ga = /* @__PURE__ */ _t(aa, [["__scopeId", "data-v-d4a13ad8"]]);
|
|
807
823
|
export {
|
|
808
|
-
|
|
824
|
+
ga as default
|
|
809
825
|
};
|