vue-data-ui 2.4.68 → 2.4.70
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 +3 -1
- package/dist/{Arrow-D5Ik6Rl_.js → Arrow-6iiqpdmu.js} +1 -1
- package/dist/{Arrow-DTyx6yXe.cjs → Arrow-B5enRv0z.cjs} +1 -1
- package/dist/{BaseIcon-D7H3G8-f.js → BaseIcon-1cIjVntY.js} +1 -1
- package/dist/{BaseIcon-At97xJaA.cjs → BaseIcon-U1_DjHDx.cjs} +1 -1
- package/dist/{DataTable-CNH8bChE.js → DataTable-B1FxJofv.js} +2 -2
- package/dist/{DataTable-Dng-zRfh.cjs → DataTable-D8n9mxYD.cjs} +1 -1
- package/dist/{Legend-kF7sC1KK.js → Legend-BMPqVkBW.js} +2 -2
- package/dist/{Legend-kMbr5DZt.cjs → Legend-yTCeOn97.cjs} +1 -1
- package/dist/{PackageVersion-m6HC0skh.js → PackageVersion-B51w3y82.js} +1 -1
- package/dist/{PackageVersion-CHUMvFGr.cjs → PackageVersion-ou96yRPl.cjs} +1 -1
- package/dist/{PenAndPaper-FOhKSug_.js → PenAndPaper-BSEqDrpB.js} +3 -3
- package/dist/{PenAndPaper-DmMAK04m.cjs → PenAndPaper-BWwAIhEN.cjs} +1 -1
- package/dist/{Shape-Ajzs1V3O.cjs → Shape-BQHHOWfV.cjs} +1 -1
- package/dist/{Shape-CfcWXI5g.js → Shape-TWPk_v-7.js} +1 -1
- package/dist/{Slicer-Cgyw5vYE.cjs → Slicer-B2hsi3sr.cjs} +1 -1
- package/dist/{Slicer-Bq3BajcJ.js → Slicer-CTMbBaNs.js} +2 -2
- package/dist/{Title-C7y-iI1m.cjs → Title-CLw400_T.cjs} +1 -1
- package/dist/{Title-L52l_KMR.js → Title-CujJ2kZY.js} +1 -1
- package/dist/{Tooltip-Y622sV6l.cjs → Tooltip-BGjOAkJQ.cjs} +1 -1
- package/dist/{Tooltip-FYp9ljnj.js → Tooltip-CPxoXFKu.js} +1 -1
- package/dist/{index-3_ulDZ6w.js → index-B3hGeAZ7.js} +8330 -4527
- package/dist/index-DsNY1SpD.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-BtCZVKOm.cjs → useNestedProp-B4YewnHE.cjs} +1 -1
- package/dist/{useNestedProp-Bs6ltq3I.js → useNestedProp-WWv9scq-.js} +1 -1
- package/dist/{usePrinter-BmNhTUGE.cjs → usePrinter-BS5qzASr.cjs} +1 -1
- package/dist/{usePrinter-NdwnpHUu.js → usePrinter-CiUt-pS9.js} +1 -1
- package/dist/{vue-data-ui-qqS_JEAb.js → vue-data-ui-Dex3QmMG.js} +60 -60
- package/dist/{vue-data-ui-C4MFJb3X.cjs → vue-data-ui-RimTudAT.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D1Q5GpB8.cjs → vue-ui-3d-bar-BaUMT6Im.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B-DPM6sB.js → vue-ui-3d-bar-CSDlYOc2.js} +9 -9
- package/dist/{vue-ui-accordion-Dd0mfQys.cjs → vue-ui-accordion-BAP0rDBZ.cjs} +1 -1
- package/dist/{vue-ui-accordion-DXlXtAML.js → vue-ui-accordion-DFn61GBf.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CEw1j90S.js → vue-ui-age-pyramid-B9kHnlMD.js} +10 -10
- package/dist/{vue-ui-age-pyramid-Dn8sTUD1.cjs → vue-ui-age-pyramid-s4RTdVJb.cjs} +1 -1
- package/dist/{vue-ui-annotator-I7b5208U.js → vue-ui-annotator-ClRp-_nk.js} +1 -1
- package/dist/{vue-ui-annotator-DLwKn7nJ.cjs → vue-ui-annotator-vJFxGq0D.cjs} +1 -1
- package/dist/{vue-ui-bullet-B_toFHM0.cjs → vue-ui-bullet-BojHcddQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-CUpzxv8b.js → vue-ui-bullet-CCxg-DLm.js} +8 -8
- package/dist/{vue-ui-candlestick-D4poOC-A.js → vue-ui-candlestick-CKA68yh0.js} +11 -11
- package/dist/{vue-ui-candlestick-DUjJP9IX.cjs → vue-ui-candlestick-D79x0-7c.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BRdt1LUl.cjs → vue-ui-carousel-table-C3bbmzML.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CMP41H6W.js → vue-ui-carousel-table-Drk3spxC.js} +4 -4
- package/dist/{vue-ui-chestnut-BzCjWlbs.js → vue-ui-chestnut-2sRDod-W.js} +8 -8
- package/dist/{vue-ui-chestnut-BGpagpDQ.cjs → vue-ui-chestnut-BEGqhEq0.cjs} +1 -1
- package/dist/{vue-ui-cursor-CdhhPJ2w.js → vue-ui-cursor-DF-5Ps-j.js} +2 -2
- package/dist/{vue-ui-cursor-Ike72xN1.cjs → vue-ui-cursor-DKkfnZmq.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CDUpQHzg.js → vue-ui-dashboard-DrdZgjNe.js} +2 -2
- package/dist/{vue-ui-dashboard-CFF1xhGw.cjs → vue-ui-dashboard-OckN8VFj.cjs} +1 -1
- package/dist/{vue-ui-digits-Cu3AtNFJ.cjs → vue-ui-digits-D5_-V30J.cjs} +1 -1
- package/dist/{vue-ui-digits-Cje8oZYA.js → vue-ui-digits-mDAvf_YK.js} +2 -2
- package/dist/{vue-ui-donut-DyEbJv8M.js → vue-ui-donut-CJEJcYS2.js} +12 -12
- package/dist/{vue-ui-donut-BNmui7ee.cjs → vue-ui-donut-Cmlh9AUu.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B_kVMwY5.js → vue-ui-donut-evolution-CK-cpwE5.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BxElmgKr.cjs → vue-ui-donut-evolution-DbtSfpK6.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-XSwVUKkI.js → vue-ui-dumbbell-BLzNidEF.js} +10 -10
- package/dist/{vue-ui-dumbbell-Bb4_UIZL.cjs → vue-ui-dumbbell-CBoNAirK.cjs} +1 -1
- package/dist/{vue-ui-flow-BxSDPsTX.cjs → vue-ui-flow-DL2m0MdD.cjs} +1 -1
- package/dist/{vue-ui-flow-CT9Ikm2q.js → vue-ui-flow-bCt7TASQ.js} +9 -9
- package/dist/{vue-ui-funnel-4Xz5KcCC.cjs → vue-ui-funnel-D-jHODod.cjs} +1 -1
- package/dist/{vue-ui-funnel-xE-KSwUY.js → vue-ui-funnel-jLnMfVJu.js} +9 -9
- package/dist/{vue-ui-galaxy-BKyxc95s.cjs → vue-ui-galaxy-0WxeXT5y.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CQu_2tM7.js → vue-ui-galaxy-Zqj4_zJg.js} +11 -11
- package/dist/{vue-ui-gauge-BML0PHj7.js → vue-ui-gauge-DNlSMh2o.js} +7 -7
- package/dist/{vue-ui-gauge-BY-_g8oh.cjs → vue-ui-gauge-DofvFQSC.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CZdz1ws4.js → vue-ui-gizmo-COgDK5C0.js} +3 -3
- package/dist/{vue-ui-gizmo-DCDez8vm.cjs → vue-ui-gizmo-CRgJ1mZy.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B6TqJ0rT.cjs → vue-ui-heatmap-BEkE4xql.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BBhBotdK.js → vue-ui-heatmap-BOJgxQWc.js} +10 -10
- package/dist/{vue-ui-history-plot-ICiiX_iG.cjs → vue-ui-history-plot-BHbGz1DH.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CEGzb0go.js → vue-ui-history-plot-DpfI1G8u.js} +11 -11
- package/dist/{vue-ui-kpi-CcY9SiQU.js → vue-ui-kpi-C8rtBkJx.js} +3 -3
- package/dist/{vue-ui-kpi-b1KYFaD5.cjs → vue-ui-kpi-CK5INSo4.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-ChYeDs8b.js → vue-ui-mini-loader-DAS-clra.js} +2 -2
- package/dist/{vue-ui-mini-loader-DRDOwWX4.cjs → vue-ui-mini-loader-jcfkEvKC.cjs} +1 -1
- package/dist/{vue-ui-molecule-BC9pfKLe.cjs → vue-ui-molecule-Ba9FjFUe.cjs} +1 -1
- package/dist/{vue-ui-molecule-C7RlUrep.js → vue-ui-molecule-kOGTPW9a.js} +11 -11
- package/dist/{vue-ui-mood-radar-MwQGdQBk.js → vue-ui-mood-radar-6lLMtdI6.js} +11 -11
- package/dist/{vue-ui-mood-radar-DuyOelxm.cjs → vue-ui-mood-radar-D7kjDtlO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CTjWqxm1.js → vue-ui-nested-donuts-CK6LyQMB.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DV_fUt8X.cjs → vue-ui-nested-donuts-D8af6ksq.cjs} +1 -1
- package/dist/{vue-ui-onion-CMJQd4hJ.cjs → vue-ui-onion-BAPfxwHq.cjs} +1 -1
- package/dist/{vue-ui-onion-DQU2quzY.js → vue-ui-onion-DWF3EeOX.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-el0qRCNH.js → vue-ui-parallel-coordinate-plot-BL2TYCct.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-mr_VL-5e.cjs → vue-ui-parallel-coordinate-plot-CiZvUoVu.cjs} +1 -1
- package/dist/{vue-ui-quadrant-D4JbzGnx.js → vue-ui-quadrant-76ioBDrb.js} +12 -12
- package/dist/{vue-ui-quadrant-p1PqQgE8.cjs → vue-ui-quadrant-DRtc-eU7.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C7dbfJas.js → vue-ui-quick-chart-BfiEh20h.js} +9 -9
- package/dist/{vue-ui-quick-chart-CpVCnKQR.cjs → vue-ui-quick-chart-Cf_a2-DK.cjs} +1 -1
- package/dist/vue-ui-radar-7FJCgzJe.cjs +1 -0
- package/dist/{vue-ui-radar-DwcDudGq.js → vue-ui-radar-CXpLA1Ug.js} +128 -128
- package/dist/{vue-ui-rating-CF611kMg.cjs → vue-ui-rating-D7bp5GXD.cjs} +1 -1
- package/dist/{vue-ui-rating-CVWVcuH4.js → vue-ui-rating-Dm99_KHq.js} +2 -2
- package/dist/{vue-ui-relation-circle-i-IWbtjG.cjs → vue-ui-relation-circle-DGmHEiu0.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DOqHTAlr.js → vue-ui-relation-circle-DP8adT--.js} +7 -7
- package/dist/{vue-ui-rings-HITb7jlj.cjs → vue-ui-rings-3dpAN_IS.cjs} +1 -1
- package/dist/{vue-ui-rings-CYtiwLoa.js → vue-ui-rings-DcGvctVh.js} +12 -12
- package/dist/{vue-ui-scatter-OHMJOdMx.cjs → vue-ui-scatter-BaB0Ss3P.cjs} +1 -1
- package/dist/{vue-ui-scatter-Cz4FEjWs.js → vue-ui-scatter-iYN3XbTv.js} +12 -12
- package/dist/{vue-ui-screenshot-PgLhVqsE.cjs → vue-ui-screenshot-BjJljc9y.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BdztwxL8.js → vue-ui-screenshot-CA4rbg_4.js} +1 -1
- package/dist/{vue-ui-skeleton-uAX1ZH1F.js → vue-ui-skeleton-BAv7fXp9.js} +3 -3
- package/dist/{vue-ui-skeleton-DkZB7ae3.cjs → vue-ui-skeleton-BKT91qEa.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8AEl3OB.js → vue-ui-smiley-BBlYvJpk.js} +2 -2
- package/dist/{vue-ui-smiley-CdtUIpXZ.cjs → vue-ui-smiley-BKJ4T8gG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BvYBFEgW.cjs → vue-ui-spark-trend-CTuB4pyB.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C4TeGkYj.js → vue-ui-spark-trend-CoILXmOJ.js} +5 -5
- package/dist/{vue-ui-sparkbar-CTjfAkYo.js → vue-ui-sparkbar-7EUa2Jmc.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB7UzjAD.cjs → vue-ui-sparkbar-JMpa0Jma.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BlPTNi74.js → vue-ui-sparkgauge-BFyxHsvB.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Bn2BPZoT.cjs → vue-ui-sparkgauge-BYPSS-9V.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BKRqTMvf.js → vue-ui-sparkhistogram-KrHoJol3.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B1mF8U0R.cjs → vue-ui-sparkhistogram-XrF1W3wK.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Bg-TapoG.js → vue-ui-sparkline-eAOZxlhG.js} +4 -4
- package/dist/{vue-ui-sparkline-Dj0hFEo0.cjs → vue-ui-sparkline-rDPUOgGm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DzI-MFl3.cjs → vue-ui-sparkstackbar-Czz-Lkc4.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D8KqTPqH.js → vue-ui-sparkstackbar-DcDCa91F.js} +5 -5
- package/dist/{vue-ui-stackbar-e1b5UPvn.cjs → vue-ui-stackbar-CZOwxp5b.cjs} +1 -1
- package/dist/{vue-ui-stackbar-6vF4VXMO.js → vue-ui-stackbar-GgXydxhr.js} +13 -13
- package/dist/{vue-ui-strip-plot-sWs8kbbo.js → vue-ui-strip-plot-DnWdZFVh.js} +11 -11
- package/dist/{vue-ui-strip-plot-GsQbr3zj.cjs → vue-ui-strip-plot-DpBcyzwt.cjs} +1 -1
- package/dist/{vue-ui-table-SRSARac3.js → vue-ui-table-DrBXqpBg.js} +1 -1
- package/dist/{vue-ui-table-CJVmhYep.cjs → vue-ui-table-MEwtGPBw.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D1xntRRZ.cjs → vue-ui-table-heatmap-CujV9941.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CKiO41aZ.js → vue-ui-table-heatmap-TDNQHDGp.js} +4 -4
- package/dist/{vue-ui-table-sparkline-hyCYl7SR.js → vue-ui-table-sparkline-Ctb2LW6k.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BZJqRwhf.cjs → vue-ui-table-sparkline-zVF4kGcs.cjs} +1 -1
- package/dist/{vue-ui-thermometer-0bxewTlH.cjs → vue-ui-thermometer-BotRGJkO.cjs} +1 -1
- package/dist/{vue-ui-thermometer-uYO2Cbv6.js → vue-ui-thermometer-wNKYm3Kx.js} +7 -7
- package/dist/{vue-ui-timer-hehskDGP.cjs → vue-ui-timer-BrAWdEP-.cjs} +1 -1
- package/dist/{vue-ui-timer-DO2sPtaA.js → vue-ui-timer-CR0O7wYl.js} +5 -5
- package/dist/{vue-ui-tiremarks-C3Y478uT.cjs → vue-ui-tiremarks-DlK4zttR.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DQjOkAad.js → vue-ui-tiremarks-wuiChorp.js} +7 -7
- package/dist/{vue-ui-treemap-Bv36Ha7O.js → vue-ui-treemap-CJZlFtGP.js} +11 -11
- package/dist/{vue-ui-treemap-_4nb3nS1.cjs → vue-ui-treemap-DrkJBrlp.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DeP6cUWy.js → vue-ui-vertical-bar-CULY6eIO.js} +288 -272
- package/dist/vue-ui-vertical-bar-DHzq1n9V.cjs +4 -0
- package/dist/{vue-ui-waffle-Hlsl5QtL.cjs → vue-ui-waffle-C82U9mjw.cjs} +1 -1
- package/dist/{vue-ui-waffle-BfzfWmf5.js → vue-ui-waffle-CymcJtwQ.js} +12 -12
- package/dist/{vue-ui-wheel-DJC5YCbw.js → vue-ui-wheel-CAXdjlKQ.js} +7 -7
- package/dist/{vue-ui-wheel--e6UBwL4.cjs → vue-ui-wheel-ED9GGmMR.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CVsld1uE.js → vue-ui-word-cloud-CaAop2-k.js} +10 -10
- package/dist/{vue-ui-word-cloud-AGcxc9Jb.cjs → vue-ui-word-cloud-Czmv1BKA.cjs} +1 -1
- package/dist/{vue-ui-xy-DiZVwKYl.cjs → vue-ui-xy-D3d6V9BN.cjs} +1 -1
- package/dist/{vue-ui-xy-DwwIMZEo.js → vue-ui-xy-X04Cu9MT.js} +14 -14
- package/dist/{vue-ui-xy-canvas-D1kEOzE6.cjs → vue-ui-xy-canvas-B65fFQ2Q.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-ChBRm7Zw.js → vue-ui-xy-canvas-soP9-Ijz.js} +11 -11
- package/package.json +1 -1
- package/dist/index-CPtAxuTc.cjs +0 -9
- package/dist/vue-ui-radar-B8w_jmnj.cjs +0 -1
- package/dist/vue-ui-vertical-bar-LquYjKVD.cjs +0 -4
|
@@ -1,23 +1,23 @@
|
|
|
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
|
-
import { P as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
const
|
|
1
|
+
import { useCssVars as dt, useSlots as vt, computed as b, ref as i, watch as Re, onMounted as Ue, onBeforeUnmount as ct, openBlock as u, createElementBlock as r, normalizeClass as A, normalizeStyle as c, unref as d, createBlock as B, createCommentVNode as p, createSlots as ce, withCtx as k, renderSlot as m, normalizeProps as E, guardReactiveProps as H, createElementVNode as n, toDisplayString as h, createVNode as q, Fragment as W, renderList as G, withKeys as ht, createTextVNode as pt } from "vue";
|
|
2
|
+
import { u as yt, c as gt, t as ft, a as bt, p as D, b as mt, o as Xe, e as K, v as N, d as he, i as le, f as R, X as _t, s as pe, w as kt, x as $t, y as xt, q as wt, r as Ct } from "./index-B3hGeAZ7.js";
|
|
3
|
+
import { t as Tt, u as Lt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Nt } from "./Title-CujJ2kZY.js";
|
|
5
|
+
import { u as Pt, U as St } from "./usePrinter-CiUt-pS9.js";
|
|
6
|
+
import { _ as Vt } from "./Tooltip-CPxoXFKu.js";
|
|
7
|
+
import { L as Ee } from "./Legend-BMPqVkBW.js";
|
|
8
|
+
import It from "./vue-ui-skeleton-BAv7fXp9.js";
|
|
9
|
+
import Ot from "./BaseIcon-1cIjVntY.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-DFn61GBf.js";
|
|
11
|
+
import { u as He } from "./useNestedProp-WWv9scq-.js";
|
|
12
|
+
import { _ as Mt } from "./PackageVersion-B51w3y82.js";
|
|
13
|
+
import { P as zt } from "./PenAndPaper-BSEqDrpB.js";
|
|
14
|
+
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as We } from "./Shape-TWPk_v-7.js";
|
|
16
|
+
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Et = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Gt = { key: 1 }, jt = ["x", "y", "width", "height", "fill", "rx"], Yt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Kt = ["x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Zt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = ["y", "width", "height", "fill", "onMouseenter"], la = {
|
|
18
18
|
key: 6,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
|
-
},
|
|
20
|
+
}, oa = ["onClick"], na = { style: "width:100%;padding-top: 36px;position:relative" }, ua = { class: "vue-ui-data-table" }, sa = { key: 0 }, ra = { style: { width: "100%" } }, 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 = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ka = ["data-cell"], $a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = {
|
|
21
21
|
__name: "vue-ui-vertical-bar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,81 +34,81 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const T =
|
|
39
|
-
|
|
40
|
-
"
|
|
37
|
+
setup(Ge, { expose: je, emit: Ye }) {
|
|
38
|
+
const T = Ge;
|
|
39
|
+
dt((a) => ({
|
|
40
|
+
"6df2c512": a.tdo
|
|
41
41
|
}));
|
|
42
|
-
const { vue_ui_vertical_bar:
|
|
43
|
-
get: () =>
|
|
42
|
+
const { vue_ui_vertical_bar: qe } = yt(), Ke = vt(), J = b(() => !!T.dataset && T.dataset.length), w = i(gt()), Je = i(null), oe = i(!1), ne = i(""), Q = i(0), Qe = i(null), ye = i(0), U = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), e = b({
|
|
43
|
+
get: () => $e(),
|
|
44
44
|
set: (a) => a
|
|
45
|
-
}), { userOptionsVisible:
|
|
46
|
-
function
|
|
47
|
-
const a =
|
|
45
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: _e, keepUserOptionState: ke } = At({ config: e.value });
|
|
46
|
+
function $e() {
|
|
47
|
+
const a = He({
|
|
48
48
|
userConfig: T.config,
|
|
49
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: qe
|
|
50
50
|
});
|
|
51
51
|
return a.theme ? {
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
52
|
+
...He({
|
|
53
|
+
userConfig: ft.vue_ui_vertical_bar[a.theme] || T.config,
|
|
54
54
|
defaultConfig: a
|
|
55
55
|
}),
|
|
56
|
-
customPalette:
|
|
56
|
+
customPalette: bt[a.theme] || D
|
|
57
57
|
} : a;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
e.value =
|
|
61
|
-
}, { deep: !0 }),
|
|
62
|
-
const { isPrinting:
|
|
59
|
+
Re(() => T.config, (a) => {
|
|
60
|
+
e.value = $e(), re.value = !e.value.showOnChartHover, Se(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
|
|
61
|
+
}, { deep: !0 }), Re(() => T.dataset, ee, { deep: !0 });
|
|
62
|
+
const { isPrinting: xe, isImaging: we, generatePdf: Ce, generateImage: Te } = Pt({
|
|
63
63
|
elementId: `vue-ui-vertical-bar_${w.value}`,
|
|
64
64
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
}), Ze = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Le = b(() => mt(e.value.customPalette)), Ne = i(null), Pe = i(!1), et = b(() => e.value.table.responsiveBreakpoint), Z = i(null);
|
|
66
|
+
Ue(() => {
|
|
67
|
+
Se();
|
|
68
68
|
});
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
69
|
+
function Se() {
|
|
70
|
+
if (Xe(T.dataset) && K({
|
|
71
71
|
componentName: "VueUiVerticalBar",
|
|
72
72
|
type: "dataset"
|
|
73
|
-
}),
|
|
74
|
-
const a =
|
|
75
|
-
const { width: l, height: t } =
|
|
76
|
-
chart:
|
|
77
|
-
title: e.value.style.chart.title.text ?
|
|
78
|
-
legend: e.value.style.chart.legend.show ?
|
|
79
|
-
source:
|
|
80
|
-
noTitle:
|
|
73
|
+
}), Q.value = T.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), tt(), e.value.responsive) {
|
|
74
|
+
const a = Tt(() => {
|
|
75
|
+
const { width: l, height: t } = Lt({
|
|
76
|
+
chart: U.value,
|
|
77
|
+
title: e.value.style.chart.title.text ? ge.value : null,
|
|
78
|
+
legend: e.value.style.chart.legend.show ? ue.value : null,
|
|
79
|
+
source: fe.value,
|
|
80
|
+
noTitle: be.value
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
Oe.value = l, v.value = t / Q.value - g.value * 2;
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
Z.value = new ResizeObserver(a), Z.value.observe(U.value.parentNode);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
ct(() => {
|
|
88
|
+
Z.value && Z.value.disconnect();
|
|
89
89
|
});
|
|
90
|
-
function
|
|
90
|
+
function tt() {
|
|
91
91
|
new ResizeObserver((l) => {
|
|
92
92
|
l.forEach((t) => {
|
|
93
|
-
|
|
93
|
+
Pe.value = t.contentRect.width < et.value;
|
|
94
94
|
});
|
|
95
|
-
}).observe(
|
|
95
|
+
}).observe(Ne.value);
|
|
96
96
|
}
|
|
97
|
-
const C =
|
|
97
|
+
const C = i({
|
|
98
98
|
showTable: e.value.table.show,
|
|
99
99
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
100
100
|
showTooltip: e.value.style.chart.tooltip.show
|
|
101
|
-
}),
|
|
102
|
-
!a.value && !a.children &&
|
|
101
|
+
}), Ve = b(() => C.value.sortDesc), O = b(() => (T.dataset.forEach((a, l) => {
|
|
102
|
+
!a.value && !a.children && K({
|
|
103
103
|
componentName: "VueUiVerticalBar",
|
|
104
104
|
type: "datasetAttributeEmpty",
|
|
105
105
|
property: `value (index ${l})`
|
|
106
|
-
}), a.children && (
|
|
106
|
+
}), a.children && (Xe(a.children) ? K({
|
|
107
107
|
componentName: "VueUiVerticalBar",
|
|
108
108
|
type: "datasetAttributeEmpty",
|
|
109
109
|
property: `children (index ${l})`
|
|
110
110
|
}) : a.children.forEach((t, o) => {
|
|
111
|
-
[null, void 0].includes(t.name) &&
|
|
111
|
+
[null, void 0].includes(t.name) && K({
|
|
112
112
|
componentName: "VueUiVerticalBar",
|
|
113
113
|
type: "datasetSerieAttribute",
|
|
114
114
|
property: "name",
|
|
@@ -128,10 +128,10 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
128
128
|
sign: f,
|
|
129
129
|
hasChildren: o,
|
|
130
130
|
isChild: !1,
|
|
131
|
-
segregate: () =>
|
|
131
|
+
segregate: () => j(t),
|
|
132
132
|
isSegregated: P.value.includes(t),
|
|
133
|
-
color:
|
|
134
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted((x, V) =>
|
|
133
|
+
color: he(a.color) || Le.value[l] || D[l] || D[l % D.length],
|
|
134
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted(te.value ? () => 0 : (x, V) => Ve.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
|
|
135
135
|
...x,
|
|
136
136
|
value: N(Math.abs(x.value)),
|
|
137
137
|
absoluteIndex: l,
|
|
@@ -143,23 +143,23 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
143
143
|
parentSign: f,
|
|
144
144
|
id: `vertical_child_${l}_${V}_${w.value}`,
|
|
145
145
|
childIndex: V,
|
|
146
|
-
color:
|
|
146
|
+
color: he(x.color) || he(a.color) || Le.value[l] || D[l] || D[l % D.length]
|
|
147
147
|
})).map((x, V) => ({
|
|
148
148
|
...x,
|
|
149
149
|
isFirstChild: V === 0,
|
|
150
150
|
isLastChild: V === a.children.length - 1
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
|
-
}).toSorted((a, l) =>
|
|
153
|
+
}).toSorted(te.value ? () => 0 : (a, l) => Ve.value ? l.value - a.value : a.value - l.value))), Ie = b(() => ({
|
|
154
154
|
cy: "vertical-bar-div-legend",
|
|
155
155
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
156
156
|
color: e.value.style.chart.legend.color,
|
|
157
157
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
158
158
|
paddingBottom: 12,
|
|
159
159
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
160
|
-
})), v =
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
160
|
+
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), at = b(() => (v.value + g.value) * Q.value), Oe = i(512), y = b(() => ({
|
|
161
|
+
width: Oe.value,
|
|
162
|
+
height: at.value,
|
|
163
163
|
padding: {
|
|
164
164
|
top: 12,
|
|
165
165
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
@@ -174,99 +174,99 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
174
174
|
bottom: y.value.padding.top + y.value.height,
|
|
175
175
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
176
176
|
}));
|
|
177
|
-
function
|
|
178
|
-
|
|
177
|
+
function ee() {
|
|
178
|
+
Q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
179
179
|
}
|
|
180
|
-
const P =
|
|
181
|
-
function
|
|
182
|
-
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a),
|
|
180
|
+
const P = i([]);
|
|
181
|
+
function j(a) {
|
|
182
|
+
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), Ye("selectLegend", F.value);
|
|
183
183
|
}
|
|
184
|
-
const
|
|
185
|
-
function
|
|
186
|
-
return l ?
|
|
184
|
+
const F = b(() => O.value.filter((a) => !P.value.includes(a.id))), S = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
185
|
+
function Fe(a, l = !1, t = 0) {
|
|
186
|
+
return l ? R({
|
|
187
187
|
v: N(Math.abs(a) / S.value * 100),
|
|
188
188
|
s: "%",
|
|
189
189
|
r: t
|
|
190
190
|
}) : Math.abs(a) / S.value;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const M = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), z = b(() => M.value.map((a) => a.sign).includes(-1)), lt = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
193
193
|
function $(a) {
|
|
194
|
-
const l = a /
|
|
195
|
-
return s.value.width / (
|
|
194
|
+
const l = a / lt.value;
|
|
195
|
+
return s.value.width / (z.value ? 2 : 1) * l;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function ot(a) {
|
|
198
198
|
return $(a) + s.value.left;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const t =
|
|
200
|
+
function Y(a, l) {
|
|
201
|
+
const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, _ = t.children.length * (g.value + v.value);
|
|
202
202
|
return {
|
|
203
203
|
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
204
204
|
name: t.name,
|
|
205
205
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
206
|
-
percentageToTotal: isNaN(t.value / S.value) ? "" :
|
|
206
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Fe(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
207
207
|
sign: t.sign
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
210
|
+
function nt() {
|
|
211
|
+
return F.value;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
215
|
-
|
|
213
|
+
const ie = i(null), de = i(null);
|
|
214
|
+
function ut(a, l) {
|
|
215
|
+
de.value = {
|
|
216
216
|
datapoint: a,
|
|
217
217
|
seriesIndex: l,
|
|
218
|
-
series:
|
|
218
|
+
series: O.value,
|
|
219
219
|
config: e.value
|
|
220
|
-
},
|
|
220
|
+
}, oe.value = !0, ie.value = a.id;
|
|
221
221
|
let t = "";
|
|
222
222
|
const o = a.isChild ? a.parentName : a.name, _ = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
|
|
223
|
-
|
|
223
|
+
$t(f) && xt(() => f({
|
|
224
224
|
datapoint: a,
|
|
225
|
-
series:
|
|
225
|
+
series: O.value,
|
|
226
226
|
config: e.value,
|
|
227
227
|
seriesIndex: l
|
|
228
|
-
})) ?
|
|
228
|
+
})) ? ne.value = f({
|
|
229
229
|
datapoint: a,
|
|
230
|
-
series:
|
|
230
|
+
series: O.value,
|
|
231
231
|
config: e.value,
|
|
232
232
|
seriesIndex: l
|
|
233
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}"/>${
|
|
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}"/>${Ke.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
235
|
${_ ? `<div>${_}</div>` : ""}
|
|
236
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
236
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${le(
|
|
237
237
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
238
238
|
a.sign === 1 ? a.value : -a.value,
|
|
239
|
-
|
|
239
|
+
R({
|
|
240
240
|
p: e.value.style.chart.tooltip.prefix,
|
|
241
241
|
v: a.sign === 1 ? a.value : -a.value,
|
|
242
242
|
s: e.value.style.chart.tooltip.suffix,
|
|
243
243
|
r: e.value.style.chart.tooltip.roundingValue
|
|
244
244
|
}),
|
|
245
245
|
{ datapoint: a, seriesIndex: l }
|
|
246
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
246
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${R({
|
|
247
247
|
v: Math.abs(a.value) / S.value * 100,
|
|
248
248
|
s: "%",
|
|
249
249
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
250
|
-
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
250
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${R({
|
|
251
251
|
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
252
252
|
s: "%",
|
|
253
253
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
254
|
-
})}</b></div>`)),
|
|
254
|
+
})}</b></div>`)), ne.value = `<div style="text-align:left">${t}</div>`);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Me(a, l, t, o) {
|
|
257
257
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
258
258
|
return "";
|
|
259
|
-
const _ =
|
|
259
|
+
const _ = le(
|
|
260
260
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
261
261
|
N(o === -1 && a >= 0 ? -a : a),
|
|
262
|
-
|
|
262
|
+
R({
|
|
263
263
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
264
264
|
v: N(o === -1 && a >= 0 ? -a : a),
|
|
265
265
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
266
266
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
267
267
|
}),
|
|
268
268
|
{ datapoint: l, seriesIndex: t }
|
|
269
|
-
), f = `(${
|
|
269
|
+
), f = `(${Fe(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
270
270
|
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
271
271
|
}
|
|
272
272
|
const L = b(() => {
|
|
@@ -278,7 +278,7 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
278
278
|
e.value.translations.value,
|
|
279
279
|
e.value.translations.percentageToSerie,
|
|
280
280
|
e.value.translations.percentageToTotal
|
|
281
|
-
], l =
|
|
281
|
+
], l = M.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
282
282
|
color: t.color,
|
|
283
283
|
parentName: t.parentName,
|
|
284
284
|
parentValue: t.parentValue,
|
|
@@ -308,7 +308,7 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
308
308
|
});
|
|
309
309
|
return { head: a, body: l };
|
|
310
310
|
});
|
|
311
|
-
function
|
|
311
|
+
function ze() {
|
|
312
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
313
|
f.parentName,
|
|
314
314
|
f.parentValue,
|
|
@@ -317,68 +317,84 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
317
317
|
f.childValue,
|
|
318
318
|
f.childPercentageToParent,
|
|
319
319
|
f.childPercentageToTotal
|
|
320
|
-
]), o = a.concat([l]).concat(t), _ =
|
|
321
|
-
|
|
320
|
+
]), o = a.concat([l]).concat(t), _ = wt(o);
|
|
321
|
+
Ct({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
322
322
|
}
|
|
323
|
-
const
|
|
324
|
-
function
|
|
325
|
-
|
|
323
|
+
const X = i(!1);
|
|
324
|
+
function st(a) {
|
|
325
|
+
X.value = a, ye.value += 1;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Ae() {
|
|
328
328
|
C.value.showTable = !C.value.showTable;
|
|
329
329
|
}
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
const rt = i({
|
|
331
|
+
none: 0,
|
|
332
|
+
asc: 1,
|
|
333
|
+
desc: 2
|
|
334
|
+
}), I = i(0), te = i(!1);
|
|
335
|
+
Ue(() => {
|
|
336
|
+
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || K({
|
|
337
|
+
componentName: "VueUiVerticalBar",
|
|
338
|
+
type: "attributeWrongValue",
|
|
339
|
+
property: "style.chart.layout.bars.sort",
|
|
340
|
+
key: e.value.style.chart.layout.bars.sort
|
|
341
|
+
}), I.value = rt.value[e.value.style.chart.layout.bars.sort], C.value.sortDesc = I.value === 2, te.value = I.value === 0;
|
|
342
|
+
});
|
|
343
|
+
function it() {
|
|
344
|
+
I.value += 1, I.value > 2 && (I.value = 0);
|
|
332
345
|
}
|
|
333
|
-
function
|
|
346
|
+
function Be() {
|
|
347
|
+
it(), C.value.sortDesc = I.value === 2, te.value = I.value === 0, ee();
|
|
348
|
+
}
|
|
349
|
+
function De() {
|
|
334
350
|
C.value.showTooltip = !C.value.showTooltip;
|
|
335
351
|
}
|
|
336
|
-
const
|
|
337
|
-
function
|
|
338
|
-
|
|
352
|
+
const ae = i(!1);
|
|
353
|
+
function ve() {
|
|
354
|
+
ae.value = !ae.value;
|
|
339
355
|
}
|
|
340
|
-
return
|
|
341
|
-
getData:
|
|
342
|
-
recalculateHeight:
|
|
343
|
-
generatePdf:
|
|
344
|
-
generateCsv:
|
|
345
|
-
generateImage:
|
|
346
|
-
toggleTable:
|
|
347
|
-
toggleSort:
|
|
348
|
-
toggleTooltip:
|
|
349
|
-
toggleAnnotator:
|
|
356
|
+
return je({
|
|
357
|
+
getData: nt,
|
|
358
|
+
recalculateHeight: ee,
|
|
359
|
+
generatePdf: Ce,
|
|
360
|
+
generateCsv: ze,
|
|
361
|
+
generateImage: Te,
|
|
362
|
+
toggleTable: Ae,
|
|
363
|
+
toggleSort: Be,
|
|
364
|
+
toggleTooltip: De,
|
|
365
|
+
toggleAnnotator: ve
|
|
350
366
|
}), (a, l) => (u(), r("div", {
|
|
351
|
-
class:
|
|
367
|
+
class: A(`vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
352
368
|
ref_key: "verticalBarChart",
|
|
353
|
-
ref:
|
|
369
|
+
ref: U,
|
|
354
370
|
id: `vue-ui-vertical-bar_${w.value}`,
|
|
355
371
|
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] = () =>
|
|
357
|
-
onMouseleave: l[6] || (l[6] = () =>
|
|
372
|
+
onMouseenter: l[5] || (l[5] = () => d(_e)(!0)),
|
|
373
|
+
onMouseleave: l[6] || (l[6] = () => d(_e)(!1))
|
|
358
374
|
}, [
|
|
359
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
375
|
+
e.value.userOptions.buttons.annotator ? (u(), B(zt, {
|
|
360
376
|
key: 0,
|
|
361
|
-
parent:
|
|
377
|
+
parent: U.value,
|
|
362
378
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
363
379
|
color: e.value.style.chart.color,
|
|
364
|
-
active:
|
|
365
|
-
onClose:
|
|
380
|
+
active: ae.value,
|
|
381
|
+
onClose: ve
|
|
366
382
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : p("", !0),
|
|
367
|
-
|
|
383
|
+
Ze.value ? (u(), r("div", {
|
|
368
384
|
key: 1,
|
|
369
385
|
ref_key: "noTitle",
|
|
370
|
-
ref:
|
|
386
|
+
ref: be,
|
|
371
387
|
class: "vue-data-ui-no-title-space",
|
|
372
388
|
style: "height:36px; width: 100%;background:transparent"
|
|
373
389
|
}, null, 512)) : p("", !0),
|
|
374
390
|
e.value.style.chart.title.text ? (u(), r("div", {
|
|
375
391
|
key: 2,
|
|
376
392
|
ref_key: "chartTitle",
|
|
377
|
-
ref:
|
|
393
|
+
ref: ge,
|
|
378
394
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
379
395
|
}, [
|
|
380
|
-
(u(),
|
|
381
|
-
key: `title_${
|
|
396
|
+
(u(), B(Nt, {
|
|
397
|
+
key: `title_${me.value}`,
|
|
382
398
|
config: {
|
|
383
399
|
title: {
|
|
384
400
|
cy: "vertical-bar-div-title",
|
|
@@ -391,14 +407,14 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
391
407
|
}
|
|
392
408
|
}, null, 8, ["config"]))
|
|
393
409
|
], 512)) : p("", !0),
|
|
394
|
-
e.value.userOptions.show &&
|
|
410
|
+
e.value.userOptions.show && J.value && (d(ke) || d(re)) ? (u(), B(St, {
|
|
395
411
|
ref_key: "details",
|
|
396
|
-
ref:
|
|
397
|
-
key: `user_options_${
|
|
412
|
+
ref: Je,
|
|
413
|
+
key: `user_options_${ye.value}`,
|
|
398
414
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
399
415
|
color: e.value.style.chart.color,
|
|
400
|
-
isImaging:
|
|
401
|
-
isPrinting:
|
|
416
|
+
isImaging: d(we),
|
|
417
|
+
isPrinting: d(xe),
|
|
402
418
|
uid: w.value,
|
|
403
419
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
404
420
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -407,25 +423,25 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
407
423
|
hasTable: e.value.userOptions.buttons.table,
|
|
408
424
|
hasSort: e.value.userOptions.buttons.sort,
|
|
409
425
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
410
|
-
isFullscreen:
|
|
426
|
+
isFullscreen: X.value,
|
|
411
427
|
isTooltip: C.value.showTooltip,
|
|
412
428
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
413
|
-
chartElement:
|
|
429
|
+
chartElement: U.value,
|
|
414
430
|
position: e.value.userOptions.position,
|
|
415
431
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
416
|
-
isAnnotation:
|
|
417
|
-
onToggleFullscreen:
|
|
418
|
-
onGeneratePdf:
|
|
419
|
-
onGenerateCsv:
|
|
420
|
-
onGenerateImage:
|
|
421
|
-
onToggleTable:
|
|
422
|
-
onToggleSort:
|
|
423
|
-
onToggleTooltip:
|
|
424
|
-
onToggleAnnotator:
|
|
432
|
+
isAnnotation: ae.value,
|
|
433
|
+
onToggleFullscreen: st,
|
|
434
|
+
onGeneratePdf: d(Ce),
|
|
435
|
+
onGenerateCsv: ze,
|
|
436
|
+
onGenerateImage: d(Te),
|
|
437
|
+
onToggleTable: Ae,
|
|
438
|
+
onToggleSort: Be,
|
|
439
|
+
onToggleTooltip: De,
|
|
440
|
+
onToggleAnnotator: ve,
|
|
425
441
|
style: c({
|
|
426
|
-
visibility:
|
|
442
|
+
visibility: d(ke) ? d(re) ? "visible" : "hidden" : "visible"
|
|
427
443
|
})
|
|
428
|
-
},
|
|
444
|
+
}, ce({ _: 2 }, [
|
|
429
445
|
a.$slots.optionTooltip ? {
|
|
430
446
|
name: "optionTooltip",
|
|
431
447
|
fn: k(() => [
|
|
@@ -478,14 +494,14 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
478
494
|
a.$slots.optionFullscreen ? {
|
|
479
495
|
name: "optionFullscreen",
|
|
480
496
|
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
481
|
-
m(a.$slots, "optionFullscreen",
|
|
497
|
+
m(a.$slots, "optionFullscreen", E(H({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
482
498
|
]),
|
|
483
499
|
key: "7"
|
|
484
500
|
} : void 0,
|
|
485
501
|
a.$slots.optionAnnotator ? {
|
|
486
502
|
name: "optionAnnotator",
|
|
487
503
|
fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
488
|
-
m(a.$slots, "optionAnnotator",
|
|
504
|
+
m(a.$slots, "optionAnnotator", E(H({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
489
505
|
]),
|
|
490
506
|
key: "8"
|
|
491
507
|
} : void 0
|
|
@@ -493,37 +509,37 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
493
509
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), r("div", {
|
|
494
510
|
key: 4,
|
|
495
511
|
ref_key: "chartLegend",
|
|
496
|
-
ref:
|
|
512
|
+
ref: ue
|
|
497
513
|
}, [
|
|
498
|
-
(u(),
|
|
499
|
-
key: `legend_top_${
|
|
500
|
-
legendSet:
|
|
501
|
-
config:
|
|
502
|
-
onClickMarker: l[0] || (l[0] = ({ legend: t }) =>
|
|
503
|
-
},
|
|
514
|
+
(u(), B(Ee, {
|
|
515
|
+
key: `legend_top_${se.value}`,
|
|
516
|
+
legendSet: O.value,
|
|
517
|
+
config: Ie.value,
|
|
518
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => j(t.id))
|
|
519
|
+
}, ce({
|
|
504
520
|
item: k(({ legend: t, index: o }) => [
|
|
505
521
|
n("div", {
|
|
506
522
|
"data-cy-legend-item": "",
|
|
507
|
-
onClick: (_) =>
|
|
523
|
+
onClick: (_) => j(t.id),
|
|
508
524
|
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
509
|
-
}, h(t.name) + ": " + h(
|
|
525
|
+
}, h(t.name) + ": " + h(d(le)(
|
|
510
526
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
511
527
|
t.value,
|
|
512
|
-
|
|
528
|
+
d(R)({
|
|
513
529
|
p: e.value.style.chart.legend.prefix,
|
|
514
530
|
v: t.value,
|
|
515
531
|
s: e.value.style.chart.legend.suffix,
|
|
516
532
|
r: e.value.style.chart.legend.roundingValue
|
|
517
533
|
}),
|
|
518
534
|
{ datapoint: t, seriesIndex: o }
|
|
519
|
-
)), 13,
|
|
535
|
+
)), 13, Rt)
|
|
520
536
|
]),
|
|
521
537
|
_: 2
|
|
522
538
|
}, [
|
|
523
539
|
a.$slots.pattern ? {
|
|
524
540
|
name: "legend-pattern",
|
|
525
541
|
fn: k(({ legend: t, index: o }) => [
|
|
526
|
-
|
|
542
|
+
q(We, {
|
|
527
543
|
shape: t.shape,
|
|
528
544
|
radius: 30,
|
|
529
545
|
stroke: "none",
|
|
@@ -535,14 +551,14 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
535
551
|
} : void 0
|
|
536
552
|
]), 1032, ["legendSet", "config"]))
|
|
537
553
|
], 512)) : p("", !0),
|
|
538
|
-
|
|
554
|
+
J.value ? (u(), r("svg", {
|
|
539
555
|
key: 5,
|
|
540
|
-
xmlns:
|
|
541
|
-
class:
|
|
556
|
+
xmlns: d(_t),
|
|
557
|
+
class: A({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
542
558
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
543
559
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
544
560
|
}, [
|
|
545
|
-
|
|
561
|
+
q(Mt),
|
|
546
562
|
a.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
547
563
|
key: 0,
|
|
548
564
|
x: 0,
|
|
@@ -554,8 +570,8 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
554
570
|
}
|
|
555
571
|
}, [
|
|
556
572
|
m(a.$slots, "chart-background", {}, void 0, !0)
|
|
557
|
-
], 8,
|
|
558
|
-
(u(!0), r(
|
|
573
|
+
], 8, Xt)) : p("", !0),
|
|
574
|
+
(u(!0), r(W, null, G(M.value, (t, o) => (u(), r("linearGradient", {
|
|
559
575
|
x1: "0%",
|
|
560
576
|
y1: "0%",
|
|
561
577
|
x2: "100%",
|
|
@@ -565,53 +581,53 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
565
581
|
n("stop", {
|
|
566
582
|
offset: "0%",
|
|
567
583
|
"stop-color": t.color
|
|
568
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, Ht),
|
|
569
585
|
n("stop", {
|
|
570
586
|
offset: "100%",
|
|
571
|
-
"stop-color":
|
|
572
|
-
}, null, 8,
|
|
573
|
-
], 8,
|
|
574
|
-
a.$slots.pattern ? (u(), r("g",
|
|
575
|
-
(u(!0), r(
|
|
576
|
-
m(a.$slots, "pattern",
|
|
587
|
+
"stop-color": d(pe)(d(kt)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
588
|
+
}, null, 8, Wt)
|
|
589
|
+
], 8, Et))), 256)),
|
|
590
|
+
a.$slots.pattern ? (u(), r("g", Gt, [
|
|
591
|
+
(u(!0), r(W, null, G(M.value, (t) => (u(), r("defs", null, [
|
|
592
|
+
m(a.$slots, "pattern", E(H({ seriesIndex: t.absoluteIndex, patternId: `pattern_${w.value}_${t.absoluteIndex}` })), void 0, !0)
|
|
577
593
|
]))), 256))
|
|
578
594
|
])) : p("", !0),
|
|
579
|
-
(u(!0), r(
|
|
595
|
+
(u(!0), r(W, null, G(M.value, (t, o) => (u(), r("g", null, [
|
|
580
596
|
n("rect", {
|
|
581
|
-
x:
|
|
597
|
+
x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
582
598
|
y: s.value.top + (g.value + v.value) * o,
|
|
583
|
-
width:
|
|
599
|
+
width: d(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
584
600
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
585
601
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
586
602
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
587
|
-
class:
|
|
588
|
-
}, null, 10,
|
|
603
|
+
class: A({ animated: e.value.useCssAnimation })
|
|
604
|
+
}, null, 10, jt)
|
|
589
605
|
]))), 256)),
|
|
590
|
-
(u(!0), r(
|
|
606
|
+
(u(!0), r(W, null, G(M.value, (t, o) => (u(), r("g", null, [
|
|
591
607
|
n("rect", {
|
|
592
|
-
x:
|
|
608
|
+
x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
593
609
|
y: s.value.top + (g.value + v.value) * o,
|
|
594
|
-
width:
|
|
610
|
+
width: d(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
595
611
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
596
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${w.value}_${o})` :
|
|
612
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${w.value}_${o})` : d(pe)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
597
613
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
598
614
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
599
615
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
600
|
-
class:
|
|
601
|
-
}, null, 10,
|
|
616
|
+
class: A({ animated: e.value.useCssAnimation })
|
|
617
|
+
}, null, 10, Yt),
|
|
602
618
|
a.$slots.pattern ? (u(), r("rect", {
|
|
603
619
|
key: 0,
|
|
604
|
-
x:
|
|
620
|
+
x: d(N)(z.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : $(t.value) <= 0 ? 1e-4 : $(t.value)) : s.value.left),
|
|
605
621
|
y: s.value.top + (g.value + v.value) * o,
|
|
606
|
-
width:
|
|
622
|
+
width: d(N)($(t.value) <= 0 ? 1e-4 : $(t.value)),
|
|
607
623
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
608
624
|
fill: `url(#pattern_${w.value}_${t.absoluteIndex})`,
|
|
609
625
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
610
626
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
611
627
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
612
|
-
class:
|
|
613
|
-
}, null, 10,
|
|
614
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
628
|
+
class: A({ animated: e.value.useCssAnimation })
|
|
629
|
+
}, null, 10, qt)) : p("", !0),
|
|
630
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== M.value.length - 1 ? (u(), r("line", {
|
|
615
631
|
key: 1,
|
|
616
632
|
x1: 0,
|
|
617
633
|
x2: s.value.left,
|
|
@@ -620,8 +636,8 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
620
636
|
stroke: e.value.style.chart.layout.separators.color,
|
|
621
637
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
622
638
|
"stroke-linecap": "round"
|
|
623
|
-
}, null, 8,
|
|
624
|
-
|
|
639
|
+
}, null, 8, Kt)) : p("", !0),
|
|
640
|
+
z.value && e.value.style.chart.layout.separators.show ? (u(), r("line", {
|
|
625
641
|
key: 2,
|
|
626
642
|
x1: s.value.left + s.value.width / 2,
|
|
627
643
|
x2: s.value.left + s.value.width / 2,
|
|
@@ -630,15 +646,15 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
630
646
|
stroke: e.value.style.chart.layout.separators.color,
|
|
631
647
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
632
648
|
"stroke-linecap": "round"
|
|
633
|
-
}, null, 8,
|
|
649
|
+
}, null, 8, Jt)) : p("", !0),
|
|
634
650
|
n("text", {
|
|
635
|
-
x:
|
|
651
|
+
x: z.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) : ot(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
636
652
|
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
637
|
-
"text-anchor": !
|
|
653
|
+
"text-anchor": !z.value || t.sign === -1 ? "start" : "end",
|
|
638
654
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
639
655
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
640
656
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
641
|
-
}, h(
|
|
657
|
+
}, h(Me(t.value, t, o, t.sign)), 9, Qt),
|
|
642
658
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), r("text", {
|
|
643
659
|
key: 3,
|
|
644
660
|
"text-anchor": "end",
|
|
@@ -647,44 +663,44 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
647
663
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
648
664
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
649
665
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
650
|
-
}, h(t.name), 9,
|
|
666
|
+
}, h(t.name), 9, Zt)) : p("", !0),
|
|
651
667
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
|
|
652
668
|
key: 4,
|
|
653
669
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
654
|
-
y:
|
|
670
|
+
y: Y(t, o).y,
|
|
655
671
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
656
672
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
657
673
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
658
674
|
"text-anchor": "start"
|
|
659
|
-
}, h(
|
|
675
|
+
}, h(Y(t, o).name), 9, ea)) : p("", !0),
|
|
660
676
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), r("text", {
|
|
661
677
|
key: 5,
|
|
662
678
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
663
|
-
y:
|
|
679
|
+
y: Y(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
664
680
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
665
681
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
666
682
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
667
683
|
"text-anchor": "start"
|
|
668
|
-
}, h(
|
|
684
|
+
}, h(Me(Y(t, o).value), Y(t, o), o, t.parentSign || t.sign), 9, ta)) : p("", !0),
|
|
669
685
|
n("rect", {
|
|
670
686
|
"data-cy-trap": "",
|
|
671
687
|
x: 0,
|
|
672
688
|
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
673
689
|
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
674
690
|
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
675
|
-
fill:
|
|
676
|
-
onMouseenter: (_) =>
|
|
691
|
+
fill: ie.value === t.id ? d(pe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
692
|
+
onMouseenter: (_) => ut(t, o),
|
|
677
693
|
onMouseleave: l[1] || (l[1] = (_) => {
|
|
678
|
-
|
|
694
|
+
Qe.value = null, oe.value = !1, ie.value = null;
|
|
679
695
|
})
|
|
680
|
-
}, null, 40,
|
|
696
|
+
}, null, 40, aa)
|
|
681
697
|
]))), 256)),
|
|
682
698
|
m(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
683
|
-
], 14,
|
|
684
|
-
a.$slots.watermark ? (u(), r("div",
|
|
685
|
-
m(a.$slots, "watermark",
|
|
699
|
+
], 14, Ut)) : p("", !0),
|
|
700
|
+
a.$slots.watermark ? (u(), r("div", la, [
|
|
701
|
+
m(a.$slots, "watermark", E(H({ isPrinting: d(xe) || d(we) })), void 0, !0)
|
|
686
702
|
])) : p("", !0),
|
|
687
|
-
|
|
703
|
+
J.value ? p("", !0) : (u(), B(It, {
|
|
688
704
|
key: 7,
|
|
689
705
|
config: {
|
|
690
706
|
type: "verticalBar",
|
|
@@ -702,36 +718,36 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
702
718
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), r("div", {
|
|
703
719
|
key: 8,
|
|
704
720
|
ref_key: "chartLegend",
|
|
705
|
-
ref:
|
|
721
|
+
ref: ue
|
|
706
722
|
}, [
|
|
707
|
-
(u(),
|
|
708
|
-
key: `legend_bottom_${
|
|
709
|
-
legendSet:
|
|
710
|
-
config:
|
|
711
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) =>
|
|
712
|
-
},
|
|
723
|
+
(u(), B(Ee, {
|
|
724
|
+
key: `legend_bottom_${se.value}`,
|
|
725
|
+
legendSet: O.value,
|
|
726
|
+
config: Ie.value,
|
|
727
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => j(t.id))
|
|
728
|
+
}, ce({
|
|
713
729
|
item: k(({ legend: t, index: o }) => [
|
|
714
730
|
n("div", {
|
|
715
|
-
onClick: (_) =>
|
|
731
|
+
onClick: (_) => j(t.id),
|
|
716
732
|
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
717
|
-
}, h(t.name) + ": " + h(
|
|
733
|
+
}, h(t.name) + ": " + h(d(le)(
|
|
718
734
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
719
735
|
t.value,
|
|
720
|
-
|
|
736
|
+
d(R)({
|
|
721
737
|
p: e.value.style.chart.legend.prefix,
|
|
722
738
|
v: t.value,
|
|
723
739
|
s: e.value.style.chart.legend.suffix,
|
|
724
740
|
r: e.value.style.chart.legend.roundingValue
|
|
725
741
|
}),
|
|
726
742
|
{ datapoint: t, seriesIndex: o }
|
|
727
|
-
)), 13,
|
|
743
|
+
)), 13, oa)
|
|
728
744
|
]),
|
|
729
745
|
_: 2
|
|
730
746
|
}, [
|
|
731
747
|
a.$slots.pattern ? {
|
|
732
748
|
name: "legend-pattern",
|
|
733
749
|
fn: k(({ legend: t, index: o }) => [
|
|
734
|
-
|
|
750
|
+
q(We, {
|
|
735
751
|
shape: t.shape,
|
|
736
752
|
radius: 30,
|
|
737
753
|
stroke: "none",
|
|
@@ -743,17 +759,17 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
743
759
|
} : void 0
|
|
744
760
|
]), 1032, ["legendSet", "config"]))
|
|
745
761
|
], 512)) : p("", !0),
|
|
746
|
-
m(a.$slots, "legend", { legend:
|
|
762
|
+
m(a.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
747
763
|
a.$slots.source ? (u(), r("div", {
|
|
748
764
|
key: 9,
|
|
749
765
|
ref_key: "source",
|
|
750
|
-
ref:
|
|
766
|
+
ref: fe,
|
|
751
767
|
dir: "auto"
|
|
752
768
|
}, [
|
|
753
769
|
m(a.$slots, "source", {}, void 0, !0)
|
|
754
770
|
], 512)) : p("", !0),
|
|
755
|
-
|
|
756
|
-
show: C.value.showTooltip &&
|
|
771
|
+
q(Vt, {
|
|
772
|
+
show: C.value.showTooltip && oe.value && P.value.length < T.dataset.length,
|
|
757
773
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
758
774
|
color: e.value.style.chart.tooltip.color,
|
|
759
775
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -763,20 +779,20 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
763
779
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
764
780
|
position: e.value.style.chart.tooltip.position,
|
|
765
781
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
766
|
-
parent:
|
|
767
|
-
content:
|
|
768
|
-
isFullscreen:
|
|
782
|
+
parent: U.value,
|
|
783
|
+
content: ne.value,
|
|
784
|
+
isFullscreen: X.value,
|
|
769
785
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
770
786
|
}, {
|
|
771
787
|
"tooltip-before": k(() => [
|
|
772
|
-
m(a.$slots, "tooltip-before",
|
|
788
|
+
m(a.$slots, "tooltip-before", E(H({ ...de.value })), void 0, !0)
|
|
773
789
|
]),
|
|
774
790
|
"tooltip-after": k(() => [
|
|
775
|
-
m(a.$slots, "tooltip-after",
|
|
791
|
+
m(a.$slots, "tooltip-after", E(H({ ...de.value })), void 0, !0)
|
|
776
792
|
]),
|
|
777
793
|
_: 3
|
|
778
794
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
779
|
-
|
|
795
|
+
J.value ? (u(), B(Ft, {
|
|
780
796
|
key: 10,
|
|
781
797
|
hideDetails: "",
|
|
782
798
|
config: {
|
|
@@ -795,18 +811,18 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
795
811
|
content: k(() => [
|
|
796
812
|
n("div", {
|
|
797
813
|
ref_key: "tableContainer",
|
|
798
|
-
ref:
|
|
814
|
+
ref: Ne,
|
|
799
815
|
class: "vue-ui-vertical-bar-table"
|
|
800
816
|
}, [
|
|
801
|
-
n("div",
|
|
817
|
+
n("div", na, [
|
|
802
818
|
n("div", {
|
|
803
819
|
role: "button",
|
|
804
820
|
tabindex: "0",
|
|
805
821
|
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
822
|
onClick: l[3] || (l[3] = (t) => C.value.showTable = !1),
|
|
807
|
-
onKeypress: l[4] || (l[4] =
|
|
823
|
+
onKeypress: l[4] || (l[4] = ht((t) => C.value.showTable = !1, ["enter"]))
|
|
808
824
|
}, [
|
|
809
|
-
|
|
825
|
+
q(Ot, {
|
|
810
826
|
name: "close",
|
|
811
827
|
stroke: e.value.table.th.color,
|
|
812
828
|
"stroke-width": 2
|
|
@@ -814,25 +830,25 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
814
830
|
], 36),
|
|
815
831
|
n("div", {
|
|
816
832
|
style: { width: "100%", "container-type": "inline-size" },
|
|
817
|
-
class:
|
|
833
|
+
class: A({ "vue-ui-responsive": Pe.value })
|
|
818
834
|
}, [
|
|
819
|
-
n("table",
|
|
835
|
+
n("table", ua, [
|
|
820
836
|
n("caption", {
|
|
821
837
|
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
822
838
|
class: "vue-ui-data-table__caption"
|
|
823
839
|
}, [
|
|
824
|
-
|
|
825
|
-
e.value.style.chart.title.subtitle.text ? (u(), r("span",
|
|
840
|
+
pt(h(e.value.style.chart.title.text) + " ", 1),
|
|
841
|
+
e.value.style.chart.title.subtitle.text ? (u(), r("span", sa, h(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
|
|
826
842
|
], 4),
|
|
827
843
|
n("thead", null, [
|
|
828
844
|
n("tr", {
|
|
829
845
|
role: "row",
|
|
830
846
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
831
847
|
}, [
|
|
832
|
-
(u(!0), r(
|
|
848
|
+
(u(!0), r(W, null, G(L.value.head, (t) => (u(), r("th", {
|
|
833
849
|
style: c(`outline:${e.value.table.th.outline}`)
|
|
834
850
|
}, [
|
|
835
|
-
n("div",
|
|
851
|
+
n("div", ra, h(t), 1)
|
|
836
852
|
], 4))), 256))
|
|
837
853
|
], 4),
|
|
838
854
|
n("tr", null, [
|
|
@@ -860,8 +876,8 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
860
876
|
])
|
|
861
877
|
]),
|
|
862
878
|
n("tbody", null, [
|
|
863
|
-
(u(!0), r(
|
|
864
|
-
class:
|
|
879
|
+
(u(!0), r(W, null, G(L.value.body, (t, o) => (u(), r("tr", {
|
|
880
|
+
class: A({ "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
881
|
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
866
882
|
}, [
|
|
867
883
|
n("td", {
|
|
@@ -869,56 +885,56 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
869
885
|
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
870
886
|
"data-cell": L.value.head[0] ?? ""
|
|
871
887
|
}, [
|
|
872
|
-
n("div",
|
|
888
|
+
n("div", da, [
|
|
873
889
|
t.color ? (u(), r("span", {
|
|
874
890
|
key: 0,
|
|
875
891
|
style: c(`color:${t.color};margin-right:3px`)
|
|
876
892
|
}, "⬤", 4)) : p("", !0),
|
|
877
893
|
n("span", null, h(t.parentName), 1)
|
|
878
894
|
])
|
|
879
|
-
], 12,
|
|
895
|
+
], 12, ia),
|
|
880
896
|
n("td", {
|
|
881
897
|
class: "vue-ui-data-table__tbody__td",
|
|
882
898
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
883
899
|
"data-cell": L.value.head[1] ?? ""
|
|
884
900
|
}, [
|
|
885
|
-
n("div",
|
|
886
|
-
], 12,
|
|
901
|
+
n("div", ca, 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)
|
|
902
|
+
], 12, va),
|
|
887
903
|
n("td", {
|
|
888
904
|
class: "vue-ui-data-table__tbody__td",
|
|
889
905
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
890
906
|
"data-cell": L.value.head[2] ?? ""
|
|
891
907
|
}, [
|
|
892
|
-
n("div",
|
|
893
|
-
], 12,
|
|
908
|
+
n("div", pa, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
909
|
+
], 12, ha),
|
|
894
910
|
n("td", {
|
|
895
911
|
class: "vue-ui-data-table__tbody__td",
|
|
896
912
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
897
913
|
"data-cell": L.value.head[3] ?? ""
|
|
898
914
|
}, [
|
|
899
|
-
n("div",
|
|
900
|
-
], 12,
|
|
915
|
+
n("div", ga, h(t.childName), 1)
|
|
916
|
+
], 12, ya),
|
|
901
917
|
n("td", {
|
|
902
918
|
class: "vue-ui-data-table__tbody__td",
|
|
903
919
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
904
920
|
"data-cell": L.value.head[4] ?? ""
|
|
905
921
|
}, [
|
|
906
|
-
n("div",
|
|
907
|
-
], 12,
|
|
922
|
+
n("div", ba, 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)
|
|
923
|
+
], 12, fa),
|
|
908
924
|
n("td", {
|
|
909
925
|
class: "vue-ui-data-table__tbody__td",
|
|
910
926
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
911
927
|
"data-cell": L.value.head[5] ?? ""
|
|
912
928
|
}, [
|
|
913
|
-
n("div",
|
|
914
|
-
], 12,
|
|
929
|
+
n("div", _a, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
930
|
+
], 12, ma),
|
|
915
931
|
n("td", {
|
|
916
932
|
class: "vue-ui-data-table__tbody__td",
|
|
917
933
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
918
934
|
"data-cell": L.value.head[6] ?? ""
|
|
919
935
|
}, [
|
|
920
|
-
n("div",
|
|
921
|
-
], 12,
|
|
936
|
+
n("div", $a, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
937
|
+
], 12, ka)
|
|
922
938
|
], 6))), 256))
|
|
923
939
|
])
|
|
924
940
|
])
|
|
@@ -928,9 +944,9 @@ const Mt = ["id"], zt = ["onClick"], At = ["xmlns", "viewBox"], Bt = ["width", "
|
|
|
928
944
|
]),
|
|
929
945
|
_: 1
|
|
930
946
|
}, 8, ["config"])) : p("", !0)
|
|
931
|
-
], 46,
|
|
947
|
+
], 46, Dt));
|
|
932
948
|
}
|
|
933
|
-
},
|
|
949
|
+
}, Ra = /* @__PURE__ */ Bt(xa, [["__scopeId", "data-v-086d7789"]]);
|
|
934
950
|
export {
|
|
935
|
-
|
|
951
|
+
Ra as default
|
|
936
952
|
};
|