vue-data-ui 2.4.1 → 2.4.2
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 +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,20 +1,21 @@
|
|
|
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 {
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { useCssVars as Ke, computed as b, ref as i, watch as ze, onMounted as Je, onBeforeUnmount as Qe, openBlock as u, createElementBlock as c, normalizeClass as R, normalizeStyle as d, createBlock as M, createCommentVNode as m, unref as h, createSlots as Ze, withCtx as _, renderSlot as k, normalizeProps as U, guardReactiveProps as H, createElementVNode as n, toDisplayString as r, createVNode as re, Fragment as W, renderList as j, withKeys as et, createTextVNode as tt } from "vue";
|
|
2
|
+
import { u as at, c as lt, t as ot, a as nt, p as I, b as ut, o as Fe, e as Z, v as S, d as ie, i as ee, f as O, X as st, s as de, w as rt, x as it, y as dt, q as ct, r as vt } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as ht, u as pt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as gt } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as yt, U as ft } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { _ as bt } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import { L as Me } from "./Legend-CYF2gpXG.js";
|
|
8
|
+
import mt from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
9
|
+
import _t from "./BaseIcon-rRli6Sfv.js";
|
|
10
|
+
import kt from "./vue-ui-accordion-DspS4q3f.js";
|
|
11
|
+
import { u as Ie } from "./useNestedProp-Cox0K0Y5.js";
|
|
12
|
+
import { _ as xt } from "./PackageVersion-CvCRsT5_.js";
|
|
13
|
+
import { P as $t } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const wt = ["id"], Tt = ["onClick"], Lt = ["xmlns", "viewBox"], Pt = ["id"], Nt = ["stop-color"], St = ["stop-color"], Vt = ["x", "y", "width", "height", "fill", "rx"], zt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ft = ["x2", "y1", "y2", "stroke", "stroke-width"], Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], At = ["x", "y", "font-size", "fill", "font-weight"], Bt = ["x", "y", "font-size", "fill", "font-weight"], Dt = ["y", "width", "height", "fill", "onMouseenter"], Rt = {
|
|
16
|
+
key: 5,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, Xt = ["onClick"], Et = { style: "width:100%;padding-top: 36px;position:relative" }, Gt = { class: "vue-ui-data-table" }, Ut = { key: 0 }, Ht = { style: { width: "100%" } }, 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 = ["data-cell"], la = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = {
|
|
18
19
|
__name: "vue-ui-vertical-bar",
|
|
19
20
|
props: {
|
|
20
21
|
config: {
|
|
@@ -31,79 +32,79 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
"
|
|
35
|
+
setup(Oe, { expose: Ae, emit: Be }) {
|
|
36
|
+
const C = Oe;
|
|
37
|
+
Ke((a) => ({
|
|
38
|
+
"19a6ca00": a.tdo
|
|
38
39
|
}));
|
|
39
|
-
const { vue_ui_vertical_bar:
|
|
40
|
-
get: () =>
|
|
40
|
+
const { vue_ui_vertical_bar: De } = at(), Y = b(() => !!C.dataset && C.dataset.length), V = i(lt()), Re = i(null), te = i(!1), ae = i(""), q = i(0), Xe = i(null), ce = i(0), A = i(null), ve = i(null), le = i(null), he = i(0), oe = i(0), e = b({
|
|
41
|
+
get: () => pe(),
|
|
41
42
|
set: (a) => a
|
|
42
43
|
});
|
|
43
|
-
function
|
|
44
|
-
const a =
|
|
45
|
-
userConfig:
|
|
46
|
-
defaultConfig:
|
|
44
|
+
function pe() {
|
|
45
|
+
const a = Ie({
|
|
46
|
+
userConfig: C.config,
|
|
47
|
+
defaultConfig: De
|
|
47
48
|
});
|
|
48
49
|
return a.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
50
|
+
...Ie({
|
|
51
|
+
userConfig: ot.vue_ui_vertical_bar[a.theme] || C.config,
|
|
51
52
|
defaultConfig: a
|
|
52
53
|
}),
|
|
53
|
-
customPalette:
|
|
54
|
+
customPalette: nt[a.theme] || I
|
|
54
55
|
} : a;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
e.value =
|
|
58
|
-
}, { deep: !0 }),
|
|
59
|
-
const { isPrinting:
|
|
57
|
+
ze(() => C.config, (a) => {
|
|
58
|
+
e.value = pe(), xe(), he.value += 1, oe.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
|
|
59
|
+
}, { deep: !0 }), ze(() => C.dataset, J, { deep: !0 });
|
|
60
|
+
const { isPrinting: ge, isImaging: ye, generatePdf: fe, generateImage: be } = yt({
|
|
60
61
|
elementId: `vue-ui-vertical-bar_${V.value}`,
|
|
61
62
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
}), me = b(() => ut(e.value.customPalette)), _e = i(null), ke = i(!1), Ee = b(() => e.value.table.responsiveBreakpoint), K = i(null);
|
|
64
|
+
Je(() => {
|
|
65
|
+
xe();
|
|
65
66
|
});
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
67
|
+
function xe() {
|
|
68
|
+
if (Fe(C.dataset) && Z({
|
|
68
69
|
componentName: "VueUiVerticalBar",
|
|
69
70
|
type: "dataset"
|
|
70
|
-
}),
|
|
71
|
-
const a =
|
|
72
|
-
const { width: l, height: t } =
|
|
73
|
-
chart:
|
|
74
|
-
title: e.value.style.chart.title.text ?
|
|
75
|
-
legend: e.value.style.chart.legend.show ?
|
|
71
|
+
}), q.value = C.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ge(), e.value.responsive) {
|
|
72
|
+
const a = ht(() => {
|
|
73
|
+
const { width: l, height: t } = pt({
|
|
74
|
+
chart: A.value,
|
|
75
|
+
title: e.value.style.chart.title.text ? ve.value : null,
|
|
76
|
+
legend: e.value.style.chart.legend.show ? le.value : null
|
|
76
77
|
});
|
|
77
|
-
|
|
78
|
+
we.value = l, v.value = t / q.value - g.value * 2;
|
|
78
79
|
});
|
|
79
|
-
|
|
80
|
+
K.value = new ResizeObserver(a), K.value.observe(A.value.parentNode);
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
Qe(() => {
|
|
84
|
+
K.value && K.value.disconnect();
|
|
84
85
|
});
|
|
85
|
-
function
|
|
86
|
+
function Ge() {
|
|
86
87
|
new ResizeObserver((l) => {
|
|
87
88
|
l.forEach((t) => {
|
|
88
|
-
|
|
89
|
+
ke.value = t.contentRect.width < Ee.value;
|
|
89
90
|
});
|
|
90
|
-
}).observe(
|
|
91
|
+
}).observe(_e.value);
|
|
91
92
|
}
|
|
92
|
-
const $ =
|
|
93
|
+
const $ = i({
|
|
93
94
|
showTable: e.value.table.show,
|
|
94
95
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
95
96
|
showTooltip: e.value.style.chart.tooltip.show
|
|
96
|
-
}),
|
|
97
|
-
!a.value && !a.children &&
|
|
97
|
+
}), $e = b(() => $.value.sortDesc), z = b(() => (C.dataset.forEach((a, l) => {
|
|
98
|
+
!a.value && !a.children && Z({
|
|
98
99
|
componentName: "VueUiVerticalBar",
|
|
99
100
|
type: "datasetAttributeEmpty",
|
|
100
101
|
property: `value (index ${l})`
|
|
101
|
-
}), a.children && (
|
|
102
|
+
}), a.children && (Fe(a.children) ? Z({
|
|
102
103
|
componentName: "VueUiVerticalBar",
|
|
103
104
|
type: "datasetAttributeEmpty",
|
|
104
105
|
property: `children (index ${l})`
|
|
105
106
|
}) : a.children.forEach((t, o) => {
|
|
106
|
-
[null, void 0].includes(t.name) &&
|
|
107
|
+
[null, void 0].includes(t.name) && Z({
|
|
107
108
|
componentName: "VueUiVerticalBar",
|
|
108
109
|
type: "datasetSerieAttribute",
|
|
109
110
|
property: "name",
|
|
@@ -111,8 +112,8 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
111
112
|
index: o
|
|
112
113
|
});
|
|
113
114
|
}));
|
|
114
|
-
}),
|
|
115
|
-
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((
|
|
115
|
+
}), C.dataset.map((a, l) => {
|
|
116
|
+
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((x) => x.value || 0).reduce((x, P) => x + P, 0) : 0), p = f >= 0 ? 1 : -1;
|
|
116
117
|
return {
|
|
117
118
|
...a,
|
|
118
119
|
id: t,
|
|
@@ -122,37 +123,37 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
122
123
|
sign: p,
|
|
123
124
|
hasChildren: o,
|
|
124
125
|
isChild: !1,
|
|
125
|
-
segregate: () =>
|
|
126
|
+
segregate: () => X(t),
|
|
126
127
|
isSegregated: T.value.includes(t),
|
|
127
|
-
color:
|
|
128
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted((
|
|
129
|
-
...
|
|
130
|
-
value: S(Math.abs(
|
|
131
|
-
sign:
|
|
128
|
+
color: ie(a.color) || me.value[l] || I[l] || I[l % I.length],
|
|
129
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted((x, P) => $e.value ? P.value - x.value : x.value - P.value).map((x, P) => ({
|
|
130
|
+
...x,
|
|
131
|
+
value: S(Math.abs(x.value)),
|
|
132
|
+
sign: x.value >= 0 ? 1 : -1,
|
|
132
133
|
isChild: !0,
|
|
133
134
|
parentId: t,
|
|
134
135
|
parentName: a.name,
|
|
135
136
|
parentValue: f,
|
|
136
137
|
parentSign: p,
|
|
137
|
-
id: `vertical_child_${l}_${
|
|
138
|
-
childIndex:
|
|
139
|
-
color:
|
|
140
|
-
})).map((
|
|
141
|
-
...
|
|
142
|
-
isFirstChild:
|
|
143
|
-
isLastChild:
|
|
138
|
+
id: `vertical_child_${l}_${P}_${V.value}`,
|
|
139
|
+
childIndex: P,
|
|
140
|
+
color: ie(x.color) || ie(a.color) || me.value[l] || I[l] || I[l % I.length]
|
|
141
|
+
})).map((x, P) => ({
|
|
142
|
+
...x,
|
|
143
|
+
isFirstChild: P === 0,
|
|
144
|
+
isLastChild: P === a.children.length - 1
|
|
144
145
|
}))
|
|
145
146
|
};
|
|
146
|
-
}).toSorted((a, l) =>
|
|
147
|
+
}).toSorted((a, l) => $e.value ? l.value - a.value : a.value - l.value))), Ce = b(() => ({
|
|
147
148
|
cy: "vertical-bar-div-legend",
|
|
148
149
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
149
150
|
color: e.value.style.chart.legend.color,
|
|
150
151
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
151
152
|
paddingBottom: 12,
|
|
152
153
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
153
|
-
})), v =
|
|
154
|
-
width:
|
|
155
|
-
height:
|
|
154
|
+
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), Ue = b(() => (v.value + g.value) * q.value), we = i(512), y = b(() => ({
|
|
155
|
+
width: we.value,
|
|
156
|
+
height: Ue.value,
|
|
156
157
|
padding: {
|
|
157
158
|
top: 12,
|
|
158
159
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
@@ -167,28 +168,28 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
167
168
|
bottom: y.value.padding.top + y.value.height,
|
|
168
169
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
169
170
|
}));
|
|
170
|
-
function
|
|
171
|
-
|
|
171
|
+
function J() {
|
|
172
|
+
q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
172
173
|
}
|
|
173
|
-
const T =
|
|
174
|
-
function
|
|
175
|
-
T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a),
|
|
174
|
+
const T = i([]);
|
|
175
|
+
function X(a) {
|
|
176
|
+
T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a), J(), Be("selectLegend", F.value);
|
|
176
177
|
}
|
|
177
178
|
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));
|
|
178
|
-
function
|
|
179
|
-
return l ?
|
|
179
|
+
function Te(a, l = !1, t = 0) {
|
|
180
|
+
return l ? O({
|
|
180
181
|
v: S(Math.abs(a) / L.value * 100),
|
|
181
182
|
s: "%",
|
|
182
183
|
r: t
|
|
183
184
|
}) : Math.abs(a) / L.value;
|
|
184
185
|
}
|
|
185
|
-
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)),
|
|
186
|
-
function
|
|
187
|
-
const l = a /
|
|
188
|
-
return s.value.width / (
|
|
186
|
+
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), D = b(() => B.value.map((a) => a.sign).includes(-1)), He = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
187
|
+
function N(a) {
|
|
188
|
+
const l = a / He.value;
|
|
189
|
+
return s.value.width / (D.value ? 2 : 1) * l;
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
191
|
+
function We(a) {
|
|
192
|
+
return N(a) + s.value.left;
|
|
192
193
|
}
|
|
193
194
|
function E(a, l) {
|
|
194
195
|
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);
|
|
@@ -196,29 +197,29 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
196
197
|
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
197
198
|
name: t.name,
|
|
198
199
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
199
|
-
percentageToTotal: isNaN(t.value / L.value) ? "" :
|
|
200
|
+
percentageToTotal: isNaN(t.value / L.value) ? "" : Te(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
200
201
|
sign: t.sign
|
|
201
202
|
};
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function je() {
|
|
204
205
|
return F.value;
|
|
205
206
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
208
|
-
|
|
207
|
+
const ne = i(null), ue = i(null);
|
|
208
|
+
function Ye(a, l) {
|
|
209
|
+
ue.value = {
|
|
209
210
|
datapoint: a,
|
|
210
211
|
seriesIndex: l,
|
|
211
212
|
series: z.value,
|
|
212
213
|
config: e.value
|
|
213
|
-
},
|
|
214
|
+
}, te.value = !0, ne.value = a.id;
|
|
214
215
|
let t = "";
|
|
215
216
|
const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
|
|
216
|
-
|
|
217
|
+
it(p) && dt(() => p({
|
|
217
218
|
datapoint: a,
|
|
218
219
|
series: z.value,
|
|
219
220
|
config: e.value,
|
|
220
221
|
seriesIndex: l
|
|
221
|
-
})) ?
|
|
222
|
+
})) ? ae.value = p({
|
|
222
223
|
datapoint: a,
|
|
223
224
|
series: z.value,
|
|
224
225
|
config: e.value,
|
|
@@ -226,43 +227,43 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
226
227
|
}) : (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;">
|
|
227
228
|
<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>
|
|
228
229
|
${f ? `<div>${f}</div>` : ""}
|
|
229
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
230
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ee(
|
|
230
231
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
231
232
|
a.sign === 1 ? a.value : -a.value,
|
|
232
|
-
|
|
233
|
+
O({
|
|
233
234
|
p: e.value.style.chart.tooltip.prefix,
|
|
234
235
|
v: a.sign === 1 ? a.value : -a.value,
|
|
235
236
|
s: e.value.style.chart.tooltip.suffix,
|
|
236
237
|
r: e.value.style.chart.tooltip.roundingValue
|
|
237
238
|
}),
|
|
238
239
|
{ datapoint: a, seriesIndex: l }
|
|
239
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
240
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${O({
|
|
240
241
|
v: Math.abs(a.value) / L.value * 100,
|
|
241
242
|
s: "%",
|
|
242
243
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
243
|
-
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
244
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${O({
|
|
244
245
|
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
245
246
|
s: "%",
|
|
246
247
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
247
|
-
})}</b></div>`)),
|
|
248
|
+
})}</b></div>`)), ae.value = `<div style="text-align:left">${t}</div>`);
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function Le(a, l, t, o) {
|
|
250
251
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
251
252
|
return "";
|
|
252
|
-
const f =
|
|
253
|
+
const f = ee(
|
|
253
254
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
254
255
|
S(o === -1 && a >= 0 ? -a : a),
|
|
255
|
-
|
|
256
|
+
O({
|
|
256
257
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
257
258
|
v: S(o === -1 && a >= 0 ? -a : a),
|
|
258
259
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
259
260
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
260
261
|
}),
|
|
261
262
|
{ datapoint: l, seriesIndex: t }
|
|
262
|
-
), p = `(${
|
|
263
|
+
), p = `(${Te(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
263
264
|
return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
|
|
264
265
|
}
|
|
265
|
-
const
|
|
266
|
+
const w = b(() => {
|
|
266
267
|
const a = [
|
|
267
268
|
e.value.translations.parentName,
|
|
268
269
|
e.value.translations.value,
|
|
@@ -301,8 +302,8 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
301
302
|
});
|
|
302
303
|
return { head: a, body: l };
|
|
303
304
|
});
|
|
304
|
-
function
|
|
305
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l =
|
|
305
|
+
function Pe() {
|
|
306
|
+
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) => [
|
|
306
307
|
p.parentName,
|
|
307
308
|
p.parentValue,
|
|
308
309
|
p.percentageToTotal,
|
|
@@ -310,46 +311,59 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
310
311
|
p.childValue,
|
|
311
312
|
p.childPercentageToParent,
|
|
312
313
|
p.childPercentageToTotal
|
|
313
|
-
]), o = a.concat([l]).concat(t), f =
|
|
314
|
-
|
|
314
|
+
]), o = a.concat([l]).concat(t), f = ct(o);
|
|
315
|
+
vt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
315
316
|
}
|
|
316
|
-
const G =
|
|
317
|
-
function
|
|
318
|
-
G.value = a,
|
|
317
|
+
const G = i(!1);
|
|
318
|
+
function qe(a) {
|
|
319
|
+
G.value = a, ce.value += 1;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function Ne() {
|
|
321
322
|
$.value.showTable = !$.value.showTable;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
-
$.value.sortDesc = !$.value.sortDesc,
|
|
324
|
+
function Se() {
|
|
325
|
+
$.value.sortDesc = !$.value.sortDesc, J();
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function Ve() {
|
|
327
328
|
$.value.showTooltip = !$.value.showTooltip;
|
|
328
329
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
330
|
+
const Q = i(!1);
|
|
331
|
+
function se() {
|
|
332
|
+
Q.value = !Q.value;
|
|
333
|
+
}
|
|
334
|
+
return Ae({
|
|
335
|
+
getData: je,
|
|
336
|
+
recalculateHeight: J,
|
|
337
|
+
generatePdf: fe,
|
|
338
|
+
generateCsv: Pe,
|
|
339
|
+
generateImage: be,
|
|
340
|
+
toggleTable: Ne,
|
|
341
|
+
toggleSort: Se,
|
|
342
|
+
toggleTooltip: Ve,
|
|
343
|
+
toggleAnnotator: se
|
|
338
344
|
}), (a, l) => (u(), c("div", {
|
|
339
|
-
class:
|
|
345
|
+
class: R(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
340
346
|
ref_key: "verticalBarChart",
|
|
341
|
-
ref:
|
|
347
|
+
ref: A,
|
|
342
348
|
id: `vue-ui-vertical-bar_${V.value}`,
|
|
343
|
-
style:
|
|
349
|
+
style: d(`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%" : ""}`)
|
|
344
350
|
}, [
|
|
345
|
-
e.value.
|
|
351
|
+
e.value.userOptions.buttons.annotator ? (u(), M($t, {
|
|
346
352
|
key: 0,
|
|
353
|
+
parent: A.value,
|
|
354
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
|
+
color: e.value.style.chart.color,
|
|
356
|
+
active: Q.value,
|
|
357
|
+
onClose: se
|
|
358
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : m("", !0),
|
|
359
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
360
|
+
key: 1,
|
|
347
361
|
ref_key: "chartTitle",
|
|
348
|
-
ref:
|
|
362
|
+
ref: ve,
|
|
349
363
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
350
364
|
}, [
|
|
351
|
-
(u(),
|
|
352
|
-
key: `title_${
|
|
365
|
+
(u(), M(gt, {
|
|
366
|
+
key: `title_${he.value}`,
|
|
353
367
|
config: {
|
|
354
368
|
title: {
|
|
355
369
|
cy: "vertical-bar-div-title",
|
|
@@ -362,14 +376,14 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
362
376
|
}
|
|
363
377
|
}, null, 8, ["config"]))
|
|
364
378
|
], 512)) : m("", !0),
|
|
365
|
-
e.value.userOptions.show &&
|
|
379
|
+
e.value.userOptions.show && Y.value ? (u(), M(ft, {
|
|
366
380
|
ref_key: "details",
|
|
367
|
-
ref:
|
|
368
|
-
key: `user_options_${
|
|
381
|
+
ref: Re,
|
|
382
|
+
key: `user_options_${ce.value}`,
|
|
369
383
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
370
384
|
color: e.value.style.chart.color,
|
|
371
|
-
isImaging: h(
|
|
372
|
-
isPrinting: h(
|
|
385
|
+
isImaging: h(ye),
|
|
386
|
+
isPrinting: h(ge),
|
|
373
387
|
uid: V.value,
|
|
374
388
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
375
389
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -381,113 +395,123 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
381
395
|
isFullscreen: G.value,
|
|
382
396
|
isTooltip: $.value.showTooltip,
|
|
383
397
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
384
|
-
chartElement:
|
|
398
|
+
chartElement: A.value,
|
|
385
399
|
position: e.value.userOptions.position,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
400
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
401
|
+
isAnnotation: Q.value,
|
|
402
|
+
onToggleFullscreen: qe,
|
|
403
|
+
onGeneratePdf: h(fe),
|
|
404
|
+
onGenerateCsv: Pe,
|
|
405
|
+
onGenerateImage: h(be),
|
|
406
|
+
onToggleTable: Ne,
|
|
407
|
+
onToggleSort: Se,
|
|
408
|
+
onToggleTooltip: Ve,
|
|
409
|
+
onToggleAnnotator: se
|
|
410
|
+
}, Ze({ _: 2 }, [
|
|
394
411
|
a.$slots.optionTooltip ? {
|
|
395
412
|
name: "optionTooltip",
|
|
396
|
-
fn:
|
|
413
|
+
fn: _(() => [
|
|
397
414
|
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
398
415
|
]),
|
|
399
416
|
key: "0"
|
|
400
417
|
} : void 0,
|
|
401
418
|
a.$slots.optionPdf ? {
|
|
402
419
|
name: "optionPdf",
|
|
403
|
-
fn:
|
|
420
|
+
fn: _(() => [
|
|
404
421
|
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
405
422
|
]),
|
|
406
423
|
key: "1"
|
|
407
424
|
} : void 0,
|
|
408
425
|
a.$slots.optionCsv ? {
|
|
409
426
|
name: "optionCsv",
|
|
410
|
-
fn:
|
|
427
|
+
fn: _(() => [
|
|
411
428
|
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
412
429
|
]),
|
|
413
430
|
key: "2"
|
|
414
431
|
} : void 0,
|
|
415
432
|
a.$slots.optionImg ? {
|
|
416
433
|
name: "optionImg",
|
|
417
|
-
fn:
|
|
434
|
+
fn: _(() => [
|
|
418
435
|
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
419
436
|
]),
|
|
420
437
|
key: "3"
|
|
421
438
|
} : void 0,
|
|
422
439
|
a.$slots.optionTable ? {
|
|
423
440
|
name: "optionTable",
|
|
424
|
-
fn:
|
|
441
|
+
fn: _(() => [
|
|
425
442
|
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
426
443
|
]),
|
|
427
444
|
key: "4"
|
|
428
445
|
} : void 0,
|
|
429
446
|
a.$slots.optionLabels ? {
|
|
430
447
|
name: "optionLabels",
|
|
431
|
-
fn:
|
|
448
|
+
fn: _(() => [
|
|
432
449
|
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
433
450
|
]),
|
|
434
451
|
key: "5"
|
|
435
452
|
} : void 0,
|
|
436
453
|
a.$slots.optionSort ? {
|
|
437
454
|
name: "optionSort",
|
|
438
|
-
fn:
|
|
455
|
+
fn: _(() => [
|
|
439
456
|
k(a.$slots, "optionSort", {}, void 0, !0)
|
|
440
457
|
]),
|
|
441
458
|
key: "6"
|
|
442
459
|
} : void 0,
|
|
443
460
|
a.$slots.optionFullscreen ? {
|
|
444
461
|
name: "optionFullscreen",
|
|
445
|
-
fn:
|
|
446
|
-
k(a.$slots, "optionFullscreen",
|
|
462
|
+
fn: _(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
463
|
+
k(a.$slots, "optionFullscreen", U(H({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
447
464
|
]),
|
|
448
465
|
key: "7"
|
|
466
|
+
} : void 0,
|
|
467
|
+
a.$slots.optionAnnotator ? {
|
|
468
|
+
name: "optionAnnotator",
|
|
469
|
+
fn: _(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
470
|
+
k(a.$slots, "optionAnnotator", U(H({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
471
|
+
]),
|
|
472
|
+
key: "8"
|
|
449
473
|
} : void 0
|
|
450
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
474
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
451
475
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), c("div", {
|
|
452
|
-
key:
|
|
476
|
+
key: 3,
|
|
453
477
|
ref_key: "chartLegend",
|
|
454
|
-
ref:
|
|
478
|
+
ref: le
|
|
455
479
|
}, [
|
|
456
|
-
(u(),
|
|
457
|
-
key: `legend_top_${
|
|
480
|
+
(u(), M(Me, {
|
|
481
|
+
key: `legend_top_${oe.value}`,
|
|
458
482
|
legendSet: z.value,
|
|
459
|
-
config:
|
|
460
|
-
onClickMarker: l[0] || (l[0] = ({ legend: t }) =>
|
|
483
|
+
config: Ce.value,
|
|
484
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => X(t.id))
|
|
461
485
|
}, {
|
|
462
|
-
item:
|
|
486
|
+
item: _(({ legend: t, index: o }) => [
|
|
463
487
|
n("div", {
|
|
464
488
|
"data-cy-legend-item": "",
|
|
465
|
-
onClick: (f) =>
|
|
466
|
-
style:
|
|
467
|
-
}, r(t.name) + ": " + r(h(
|
|
489
|
+
onClick: (f) => X(t.id),
|
|
490
|
+
style: d(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
491
|
+
}, r(t.name) + ": " + r(h(ee)(
|
|
468
492
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
469
493
|
t.value,
|
|
470
|
-
h(
|
|
494
|
+
h(O)({
|
|
471
495
|
p: e.value.style.chart.legend.prefix,
|
|
472
496
|
v: t.value,
|
|
473
497
|
s: e.value.style.chart.legend.suffix,
|
|
474
498
|
r: e.value.style.chart.legend.roundingValue
|
|
475
499
|
}),
|
|
476
500
|
{ datapoint: t, seriesIndex: o }
|
|
477
|
-
)), 13,
|
|
501
|
+
)), 13, Tt)
|
|
478
502
|
]),
|
|
479
503
|
_: 1
|
|
480
504
|
}, 8, ["legendSet", "config"]))
|
|
481
505
|
], 512)) : m("", !0),
|
|
482
|
-
|
|
483
|
-
key:
|
|
484
|
-
xmlns: h(
|
|
485
|
-
class:
|
|
506
|
+
Y.value ? (u(), c("svg", {
|
|
507
|
+
key: 4,
|
|
508
|
+
xmlns: h(st),
|
|
509
|
+
class: R({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
486
510
|
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
487
|
-
style:
|
|
511
|
+
style: d(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
488
512
|
}, [
|
|
489
|
-
|
|
490
|
-
(u(!0), c(
|
|
513
|
+
re(xt),
|
|
514
|
+
(u(!0), c(W, null, j(B.value, (t, o) => (u(), c("linearGradient", {
|
|
491
515
|
x1: "0%",
|
|
492
516
|
y1: "0%",
|
|
493
517
|
x2: "100%",
|
|
@@ -497,35 +521,35 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
497
521
|
n("stop", {
|
|
498
522
|
offset: "0%",
|
|
499
523
|
"stop-color": t.color
|
|
500
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Nt),
|
|
501
525
|
n("stop", {
|
|
502
526
|
offset: "100%",
|
|
503
|
-
"stop-color": h(
|
|
504
|
-
}, null, 8,
|
|
505
|
-
], 8,
|
|
506
|
-
(u(!0), c(
|
|
527
|
+
"stop-color": h(de)(h(rt)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
528
|
+
}, null, 8, St)
|
|
529
|
+
], 8, Pt))), 256)),
|
|
530
|
+
(u(!0), c(W, null, j(B.value, (t, o) => (u(), c("g", null, [
|
|
507
531
|
n("rect", {
|
|
508
|
-
x: h(S)(
|
|
532
|
+
x: h(S)(D.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : N(t.value) <= 0 ? 1e-4 : N(t.value)) : s.value.left),
|
|
509
533
|
y: s.value.top + (g.value + v.value) * o,
|
|
510
|
-
width: h(S)(
|
|
534
|
+
width: h(S)(N(t.value) <= 0 ? 1e-4 : N(t.value)),
|
|
511
535
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
512
536
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
513
537
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
514
|
-
class:
|
|
515
|
-
}, null, 10,
|
|
538
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
539
|
+
}, null, 10, Vt)
|
|
516
540
|
]))), 256)),
|
|
517
|
-
(u(!0), c(
|
|
541
|
+
(u(!0), c(W, null, j(B.value, (t, o) => (u(), c("g", null, [
|
|
518
542
|
n("rect", {
|
|
519
|
-
x: h(S)(
|
|
543
|
+
x: h(S)(D.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : N(t.value) <= 0 ? 1e-4 : N(t.value)) : s.value.left),
|
|
520
544
|
y: s.value.top + (g.value + v.value) * o,
|
|
521
|
-
width: h(S)(
|
|
545
|
+
width: h(S)(N(t.value) <= 0 ? 1e-4 : N(t.value)),
|
|
522
546
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
523
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : h(
|
|
547
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : h(de)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
524
548
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
525
549
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
526
550
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
527
|
-
class:
|
|
528
|
-
}, null, 10,
|
|
551
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
552
|
+
}, null, 10, zt),
|
|
529
553
|
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (u(), c("line", {
|
|
530
554
|
key: 0,
|
|
531
555
|
x1: 0,
|
|
@@ -535,8 +559,8 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
535
559
|
stroke: e.value.style.chart.layout.separators.color,
|
|
536
560
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
537
561
|
"stroke-linecap": "round"
|
|
538
|
-
}, null, 8,
|
|
539
|
-
|
|
562
|
+
}, null, 8, Ft)) : m("", !0),
|
|
563
|
+
D.value && e.value.style.chart.layout.separators.show ? (u(), c("line", {
|
|
540
564
|
key: 1,
|
|
541
565
|
x1: s.value.left + s.value.width / 2,
|
|
542
566
|
x2: s.value.left + s.value.width / 2,
|
|
@@ -545,15 +569,15 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
545
569
|
stroke: e.value.style.chart.layout.separators.color,
|
|
546
570
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
547
571
|
"stroke-linecap": "round"
|
|
548
|
-
}, null, 8,
|
|
572
|
+
}, null, 8, Mt)) : m("", !0),
|
|
549
573
|
n("text", {
|
|
550
|
-
x:
|
|
574
|
+
x: D.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) : We(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
551
575
|
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
552
|
-
"text-anchor": !
|
|
576
|
+
"text-anchor": !D.value || t.sign === -1 ? "start" : "end",
|
|
553
577
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
554
578
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
555
579
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
556
|
-
}, r(
|
|
580
|
+
}, r(Le(t.value, t, o, t.sign)), 9, It),
|
|
557
581
|
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), c("text", {
|
|
558
582
|
key: 2,
|
|
559
583
|
"text-anchor": "end",
|
|
@@ -562,7 +586,7 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
562
586
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
563
587
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
564
588
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
565
|
-
}, r(t.name), 9,
|
|
589
|
+
}, r(t.name), 9, Ot)) : m("", !0),
|
|
566
590
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
|
|
567
591
|
key: 3,
|
|
568
592
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -571,7 +595,7 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
571
595
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
572
596
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
573
597
|
"text-anchor": "start"
|
|
574
|
-
}, r(E(t, o).name), 9,
|
|
598
|
+
}, r(E(t, o).name), 9, At)) : m("", !0),
|
|
575
599
|
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
|
|
576
600
|
key: 4,
|
|
577
601
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -580,27 +604,27 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
580
604
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
581
605
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
582
606
|
"text-anchor": "start"
|
|
583
|
-
}, r(
|
|
607
|
+
}, r(Le(E(t, o).value), E(t, o), o, t.parentSign || t.sign), 9, Bt)) : m("", !0),
|
|
584
608
|
n("rect", {
|
|
585
609
|
"data-cy-trap": "",
|
|
586
610
|
x: 0,
|
|
587
611
|
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
588
612
|
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
589
613
|
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
590
|
-
fill:
|
|
591
|
-
onMouseenter: (f) =>
|
|
614
|
+
fill: ne.value === t.id ? h(de)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
615
|
+
onMouseenter: (f) => Ye(t, o),
|
|
592
616
|
onMouseleave: l[1] || (l[1] = (f) => {
|
|
593
|
-
|
|
617
|
+
Xe.value = null, te.value = !1, ne.value = null;
|
|
594
618
|
})
|
|
595
|
-
}, null, 40,
|
|
619
|
+
}, null, 40, Dt)
|
|
596
620
|
]))), 256)),
|
|
597
621
|
k(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
598
|
-
], 14,
|
|
599
|
-
a.$slots.watermark ? (u(), c("div",
|
|
600
|
-
k(a.$slots, "watermark",
|
|
622
|
+
], 14, Lt)) : m("", !0),
|
|
623
|
+
a.$slots.watermark ? (u(), c("div", Rt, [
|
|
624
|
+
k(a.$slots, "watermark", U(H({ isPrinting: h(ge) || h(ye) })), void 0, !0)
|
|
601
625
|
])) : m("", !0),
|
|
602
|
-
|
|
603
|
-
key:
|
|
626
|
+
Y.value ? m("", !0) : (u(), M(mt, {
|
|
627
|
+
key: 6,
|
|
604
628
|
config: {
|
|
605
629
|
type: "verticalBar",
|
|
606
630
|
style: {
|
|
@@ -615,38 +639,38 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
615
639
|
}
|
|
616
640
|
}, null, 8, ["config"])),
|
|
617
641
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), c("div", {
|
|
618
|
-
key:
|
|
642
|
+
key: 7,
|
|
619
643
|
ref_key: "chartLegend",
|
|
620
|
-
ref:
|
|
644
|
+
ref: le
|
|
621
645
|
}, [
|
|
622
|
-
(u(),
|
|
623
|
-
key: `legend_bottom_${
|
|
646
|
+
(u(), M(Me, {
|
|
647
|
+
key: `legend_bottom_${oe.value}`,
|
|
624
648
|
legendSet: z.value,
|
|
625
|
-
config:
|
|
626
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) =>
|
|
649
|
+
config: Ce.value,
|
|
650
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => X(t.id))
|
|
627
651
|
}, {
|
|
628
|
-
item:
|
|
652
|
+
item: _(({ legend: t, index: o }) => [
|
|
629
653
|
n("div", {
|
|
630
|
-
onClick: (f) =>
|
|
631
|
-
style:
|
|
632
|
-
}, r(t.name) + ": " + r(h(
|
|
654
|
+
onClick: (f) => X(t.id),
|
|
655
|
+
style: d(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
656
|
+
}, r(t.name) + ": " + r(h(ee)(
|
|
633
657
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
634
658
|
t.value,
|
|
635
|
-
h(
|
|
659
|
+
h(O)({
|
|
636
660
|
p: e.value.style.chart.legend.prefix,
|
|
637
661
|
v: t.value,
|
|
638
662
|
s: e.value.style.chart.legend.suffix,
|
|
639
663
|
r: e.value.style.chart.legend.roundingValue
|
|
640
664
|
}),
|
|
641
665
|
{ datapoint: t, seriesIndex: o }
|
|
642
|
-
)), 13,
|
|
666
|
+
)), 13, Xt)
|
|
643
667
|
]),
|
|
644
668
|
_: 1
|
|
645
669
|
}, 8, ["legendSet", "config"]))
|
|
646
670
|
], 512)) : m("", !0),
|
|
647
671
|
k(a.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
648
|
-
|
|
649
|
-
show: $.value.showTooltip &&
|
|
672
|
+
re(bt, {
|
|
673
|
+
show: $.value.showTooltip && te.value && T.value.length < C.dataset.length,
|
|
650
674
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
651
675
|
color: e.value.style.chart.tooltip.color,
|
|
652
676
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -656,20 +680,20 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
656
680
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
657
681
|
position: e.value.style.chart.tooltip.position,
|
|
658
682
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
659
|
-
parent:
|
|
660
|
-
content:
|
|
683
|
+
parent: A.value,
|
|
684
|
+
content: ae.value,
|
|
661
685
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
662
686
|
}, {
|
|
663
|
-
"tooltip-before":
|
|
664
|
-
k(a.$slots, "tooltip-before",
|
|
687
|
+
"tooltip-before": _(() => [
|
|
688
|
+
k(a.$slots, "tooltip-before", U(H({ ...ue.value })), void 0, !0)
|
|
665
689
|
]),
|
|
666
|
-
"tooltip-after":
|
|
667
|
-
k(a.$slots, "tooltip-after",
|
|
690
|
+
"tooltip-after": _(() => [
|
|
691
|
+
k(a.$slots, "tooltip-after", U(H({ ...ue.value })), void 0, !0)
|
|
668
692
|
]),
|
|
669
693
|
_: 3
|
|
670
694
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
671
|
-
|
|
672
|
-
key:
|
|
695
|
+
Y.value ? (u(), M(kt, {
|
|
696
|
+
key: 8,
|
|
673
697
|
hideDetails: "",
|
|
674
698
|
config: {
|
|
675
699
|
open: $.value.showTable,
|
|
@@ -684,21 +708,21 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
684
708
|
}
|
|
685
709
|
}
|
|
686
710
|
}, {
|
|
687
|
-
content:
|
|
711
|
+
content: _(() => [
|
|
688
712
|
n("div", {
|
|
689
713
|
ref_key: "tableContainer",
|
|
690
|
-
ref:
|
|
714
|
+
ref: _e,
|
|
691
715
|
class: "vue-ui-vertical-bar-table"
|
|
692
716
|
}, [
|
|
693
|
-
n("div",
|
|
717
|
+
n("div", Et, [
|
|
694
718
|
n("div", {
|
|
695
719
|
role: "button",
|
|
696
720
|
tabindex: "0",
|
|
697
|
-
style:
|
|
721
|
+
style: d(`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};`),
|
|
698
722
|
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
699
|
-
onKeypress: l[4] || (l[4] =
|
|
723
|
+
onKeypress: l[4] || (l[4] = et((t) => $.value.showTable = !1, ["enter"]))
|
|
700
724
|
}, [
|
|
701
|
-
|
|
725
|
+
re(_t, {
|
|
702
726
|
name: "close",
|
|
703
727
|
stroke: e.value.table.th.color,
|
|
704
728
|
"stroke-width": 2
|
|
@@ -706,111 +730,111 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
706
730
|
], 36),
|
|
707
731
|
n("div", {
|
|
708
732
|
style: { width: "100%", "container-type": "inline-size" },
|
|
709
|
-
class:
|
|
733
|
+
class: R({ "vue-ui-responsive": ke.value })
|
|
710
734
|
}, [
|
|
711
|
-
n("table",
|
|
735
|
+
n("table", Gt, [
|
|
712
736
|
n("caption", {
|
|
713
|
-
style:
|
|
737
|
+
style: d({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
714
738
|
class: "vue-ui-data-table__caption"
|
|
715
739
|
}, [
|
|
716
|
-
|
|
717
|
-
e.value.style.chart.title.subtitle.text ? (u(), c("span",
|
|
740
|
+
tt(r(e.value.style.chart.title.text) + " ", 1),
|
|
741
|
+
e.value.style.chart.title.subtitle.text ? (u(), c("span", Ut, r(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
718
742
|
], 4),
|
|
719
743
|
n("thead", null, [
|
|
720
744
|
n("tr", {
|
|
721
745
|
role: "row",
|
|
722
|
-
style:
|
|
746
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
723
747
|
}, [
|
|
724
|
-
(u(!0), c(
|
|
725
|
-
style:
|
|
748
|
+
(u(!0), c(W, null, j(w.value.head, (t) => (u(), c("th", {
|
|
749
|
+
style: d(`outline:${e.value.table.th.outline}`)
|
|
726
750
|
}, [
|
|
727
|
-
n("div",
|
|
751
|
+
n("div", Ht, r(t), 1)
|
|
728
752
|
], 4))), 256))
|
|
729
753
|
], 4),
|
|
730
754
|
n("tr", null, [
|
|
731
755
|
n("th", {
|
|
732
|
-
style:
|
|
756
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
733
757
|
}, null, 4),
|
|
734
758
|
n("th", {
|
|
735
|
-
style:
|
|
759
|
+
style: d(`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`)
|
|
736
760
|
}, "∑ " + r(e.value.table.td.prefix) + r(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 5),
|
|
737
761
|
n("th", {
|
|
738
|
-
style:
|
|
762
|
+
style: d(`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`)
|
|
739
763
|
}, "100%", 4),
|
|
740
764
|
n("th", {
|
|
741
|
-
style:
|
|
765
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
742
766
|
}, null, 4),
|
|
743
767
|
n("th", {
|
|
744
|
-
style:
|
|
768
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
745
769
|
}, null, 4),
|
|
746
770
|
n("th", {
|
|
747
|
-
style:
|
|
771
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
748
772
|
}, null, 4),
|
|
749
773
|
n("th", {
|
|
750
|
-
style:
|
|
774
|
+
style: d(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
751
775
|
}, null, 4)
|
|
752
776
|
])
|
|
753
777
|
]),
|
|
754
778
|
n("tbody", null, [
|
|
755
|
-
(u(!0), c(
|
|
756
|
-
class:
|
|
757
|
-
style:
|
|
779
|
+
(u(!0), c(W, null, j(w.value.body, (t, o) => (u(), c("tr", {
|
|
780
|
+
class: R({ "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 }),
|
|
781
|
+
style: d(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
758
782
|
}, [
|
|
759
783
|
n("td", {
|
|
760
784
|
class: "vue-ui-data-table__tbody__td",
|
|
761
|
-
style:
|
|
762
|
-
"data-cell":
|
|
785
|
+
style: d(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
786
|
+
"data-cell": w.value.head[0] ?? ""
|
|
763
787
|
}, [
|
|
764
|
-
n("div",
|
|
788
|
+
n("div", jt, [
|
|
765
789
|
t.color ? (u(), c("span", {
|
|
766
790
|
key: 0,
|
|
767
|
-
style:
|
|
791
|
+
style: d(`color:${t.color};margin-right:3px`)
|
|
768
792
|
}, "⬤", 4)) : m("", !0),
|
|
769
793
|
n("span", null, r(t.parentName), 1)
|
|
770
794
|
])
|
|
771
|
-
], 12,
|
|
795
|
+
], 12, Wt),
|
|
772
796
|
n("td", {
|
|
773
797
|
class: "vue-ui-data-table__tbody__td",
|
|
774
|
-
style:
|
|
775
|
-
"data-cell":
|
|
798
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
799
|
+
"data-cell": w.value.head[1] ?? ""
|
|
776
800
|
}, [
|
|
777
|
-
n("div",
|
|
778
|
-
], 12,
|
|
801
|
+
n("div", qt, r(e.value.table.td.prefix) + r(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 1)
|
|
802
|
+
], 12, Yt),
|
|
779
803
|
n("td", {
|
|
780
804
|
class: "vue-ui-data-table__tbody__td",
|
|
781
|
-
style:
|
|
782
|
-
"data-cell":
|
|
805
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
806
|
+
"data-cell": w.value.head[2] ?? ""
|
|
783
807
|
}, [
|
|
784
|
-
n("div",
|
|
785
|
-
], 12,
|
|
808
|
+
n("div", Jt, r(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
809
|
+
], 12, Kt),
|
|
786
810
|
n("td", {
|
|
787
811
|
class: "vue-ui-data-table__tbody__td",
|
|
788
|
-
style:
|
|
789
|
-
"data-cell":
|
|
812
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
813
|
+
"data-cell": w.value.head[3] ?? ""
|
|
790
814
|
}, [
|
|
791
|
-
n("div",
|
|
792
|
-
], 12,
|
|
815
|
+
n("div", Zt, r(t.childName), 1)
|
|
816
|
+
], 12, Qt),
|
|
793
817
|
n("td", {
|
|
794
818
|
class: "vue-ui-data-table__tbody__td",
|
|
795
|
-
style:
|
|
796
|
-
"data-cell":
|
|
819
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
820
|
+
"data-cell": w.value.head[4] ?? ""
|
|
797
821
|
}, [
|
|
798
|
-
n("div",
|
|
799
|
-
], 12,
|
|
822
|
+
n("div", ta, r(e.value.table.td.prefix) + r(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + r(e.value.table.td.suffix), 1)
|
|
823
|
+
], 12, ea),
|
|
800
824
|
n("td", {
|
|
801
825
|
class: "vue-ui-data-table__tbody__td",
|
|
802
|
-
style:
|
|
803
|
-
"data-cell":
|
|
826
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
827
|
+
"data-cell": w.value.head[5] ?? ""
|
|
804
828
|
}, [
|
|
805
|
-
n("div",
|
|
806
|
-
], 12,
|
|
829
|
+
n("div", la, r(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
830
|
+
], 12, aa),
|
|
807
831
|
n("td", {
|
|
808
832
|
class: "vue-ui-data-table__tbody__td",
|
|
809
|
-
style:
|
|
810
|
-
"data-cell":
|
|
833
|
+
style: d(`outline:${e.value.table.td.outline}`),
|
|
834
|
+
"data-cell": w.value.head[6] ?? ""
|
|
811
835
|
}, [
|
|
812
|
-
n("div",
|
|
813
|
-
], 12,
|
|
836
|
+
n("div", na, r(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
837
|
+
], 12, oa)
|
|
814
838
|
], 6))), 256))
|
|
815
839
|
])
|
|
816
840
|
])
|
|
@@ -820,9 +844,9 @@ const kt = ["id"], $t = ["onClick"], wt = ["xmlns", "viewBox"], Ct = ["id"], Tt
|
|
|
820
844
|
]),
|
|
821
845
|
_: 1
|
|
822
846
|
}, 8, ["config"])) : m("", !0)
|
|
823
|
-
], 14,
|
|
847
|
+
], 14, wt));
|
|
824
848
|
}
|
|
825
|
-
},
|
|
849
|
+
}, ka = /* @__PURE__ */ Ct(ua, [["__scopeId", "data-v-fdf1fdac"]]);
|
|
826
850
|
export {
|
|
827
|
-
|
|
851
|
+
ka as default
|
|
828
852
|
};
|