vue-data-ui 2.4.2 → 2.4.4
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-JuK2z9IB.js → Arrow-AxsI-FAh.js} +1 -1
- package/dist/{Arrow-DLTRnzcG.cjs → Arrow-W6XO2WVI.cjs} +1 -1
- package/dist/{BaseIcon-BGExhz6v.cjs → BaseIcon-BTn_oML7.cjs} +1 -1
- package/dist/{BaseIcon-rRli6Sfv.js → BaseIcon-BX3x6oa7.js} +1 -1
- package/dist/{DataTable-DTk7C4Pr.js → DataTable-BI1tjiA_.js} +2 -2
- package/dist/{DataTable-DJzhv96s.cjs → DataTable-RUQ1G_6L.cjs} +1 -1
- package/dist/{Legend-YZ7Hz3o1.cjs → Legend-B86sMXn7.cjs} +1 -1
- package/dist/{Legend-CYF2gpXG.js → Legend-CRMHjbGw.js} +1 -1
- package/dist/{PackageVersion-CvCRsT5_.js → PackageVersion-Clrfvyd8.js} +1 -1
- package/dist/{PackageVersion-DVZtsuy4.cjs → PackageVersion-CowXQ4IM.cjs} +1 -1
- package/dist/{PenAndPaper-Jb0pLt3G.js → PenAndPaper-BQzgk5kO.js} +2 -2
- package/dist/{PenAndPaper-CyXm-yVL.cjs → PenAndPaper-DBSxk9Xk.cjs} +1 -1
- package/dist/{Shape-BpPn4eWR.js → Shape-DYNtRer6.js} +1 -1
- package/dist/{Shape-X2F-QV_B.cjs → Shape-qK3MNdTg.cjs} +1 -1
- package/dist/{Slicer-CU7dRZR0.js → Slicer-DFPDip5U.js} +3 -3
- package/dist/{Slicer-CL0tP5a5.cjs → Slicer-NlxLkUso.cjs} +1 -1
- package/dist/{Title-5VmBwT4i.js → Title-710895ks.js} +1 -1
- package/dist/{Title-Co5jI5ed.cjs → Title-CUN1T6KC.cjs} +1 -1
- package/dist/{Tooltip-Bl6W8Zn7.cjs → Tooltip-BapDtYOM.cjs} +1 -1
- package/dist/{Tooltip-Cj4EF7v1.js → Tooltip-CPlG_yQU.js} +1 -1
- package/dist/index-CcykRspI.cjs +9 -0
- package/dist/{index-DnVHQ2xI.js → index-DCsPHn9C.js} +4 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -1
- package/dist/types/vue-data-ui.d.ts +4 -1
- package/dist/{useNestedProp-Cox0K0Y5.js → useNestedProp-DdSlLeTW.js} +1 -1
- package/dist/{useNestedProp-q7byAAIJ.cjs → useNestedProp-XtPlFP9O.cjs} +1 -1
- package/dist/{usePrinter-BCAFeO_J.cjs → usePrinter-BcE45wW6.cjs} +1 -1
- package/dist/{usePrinter-BEeNAqS5.js → usePrinter-siG3sKWo.js} +1 -1
- package/dist/useResponsive-BJ7DTGpm.cjs +1 -0
- package/dist/useResponsive-CoxXLe23.js +189 -0
- package/dist/{vue-data-ui-CRLLZpt0.cjs → vue-data-ui-C0o1kZzC.cjs} +1 -1
- package/dist/{vue-data-ui-W7nnqn0v.js → vue-data-ui-D_MTGc8j.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BwBrUabe.js → vue-ui-3d-bar-BdzWvy4d.js} +41 -34
- package/dist/{vue-ui-3d-bar-bD_n6qL_.cjs → vue-ui-3d-bar-C298Bf3V.cjs} +2 -2
- package/dist/{vue-ui-accordion-xXgqfR2l.cjs → vue-ui-accordion-B7PTyFVk.cjs} +1 -1
- package/dist/{vue-ui-accordion-DspS4q3f.js → vue-ui-accordion-D4Er5Dy5.js} +3 -3
- package/dist/vue-ui-age-pyramid-BIcB5vtU.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CxBvm3uM.js → vue-ui-age-pyramid-CHEdFQb7.js} +185 -168
- package/dist/{vue-ui-annotator-BOofWpzv.js → vue-ui-annotator-CqM_1HlB.js} +1 -1
- package/dist/{vue-ui-annotator-C6T5_7ZV.cjs → vue-ui-annotator-eGtZcHeb.cjs} +1 -1
- package/dist/{vue-ui-bullet-DraC-oFu.js → vue-ui-bullet-DBk50kIe.js} +195 -158
- package/dist/vue-ui-bullet-DURgZGgp.cjs +34 -0
- package/dist/{vue-ui-candlestick-DQZ5eT1f.js → vue-ui-candlestick-Bo41qkGe.js} +263 -246
- package/dist/vue-ui-candlestick-CP4Z-29b.cjs +2 -0
- package/dist/{vue-ui-carousel-table-PdLjpH1p.js → vue-ui-carousel-table-CkNOqa9q.js} +76 -69
- package/dist/vue-ui-carousel-table-lMqx64wd.cjs +1 -0
- package/dist/{vue-ui-chestnut-ByI_O5hB.js → vue-ui-chestnut-CNWq-epB.js} +299 -286
- package/dist/vue-ui-chestnut-qxzF2ND7.cjs +6 -0
- package/dist/{vue-ui-cursor-BM74l93B.js → vue-ui-cursor-B4m30Gqz.js} +2 -2
- package/dist/{vue-ui-cursor-BvadpA2m.cjs → vue-ui-cursor-BEv39HVY.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CoANBhAM.js → vue-ui-dashboard-BL9IgDDx.js} +2 -2
- package/dist/{vue-ui-dashboard-OP51Gs8I.cjs → vue-ui-dashboard-DnoXstlp.cjs} +1 -1
- package/dist/{vue-ui-digits-DioaBnkB.js → vue-ui-digits-CVPDJ6tl.js} +2 -2
- package/dist/{vue-ui-digits-C7jJJg9k.cjs → vue-ui-digits-D1RaU4V-.cjs} +1 -1
- package/dist/{vue-ui-donut-ldqSm_JV.js → vue-ui-donut-C65SAJKb.js} +374 -357
- package/dist/vue-ui-donut-CMC92CXL.cjs +1 -0
- package/dist/vue-ui-donut-evolution-7gIM4bVk.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DAb1xzNd.js → vue-ui-donut-evolution-BFbBlmBx.js} +240 -226
- package/dist/{vue-ui-dumbbell-Dg7PkiKJ.js → vue-ui-dumbbell-BnxRfvv0.js} +227 -210
- package/dist/vue-ui-dumbbell-OCo67ZKp.cjs +9 -0
- package/dist/vue-ui-flow-BPnpYrzb.cjs +1 -0
- package/dist/{vue-ui-flow-DKT7ZEnr.js → vue-ui-flow-Cra_F-tK.js} +150 -137
- package/dist/vue-ui-galaxy-3zTk9Pr1.cjs +1 -0
- package/dist/{vue-ui-galaxy-qAA9be3S.js → vue-ui-galaxy-DlJ7v0aD.js} +145 -132
- package/dist/{vue-ui-gauge-D8yVTIgP.js → vue-ui-gauge-CsqVvNxE.js} +210 -193
- package/dist/vue-ui-gauge-DcUNJZI1.cjs +1 -0
- package/dist/{vue-ui-gizmo-W6bTkg59.cjs → vue-ui-gizmo-BkkLoCyx.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DC0uUwI3.js → vue-ui-gizmo-Peyy8li7.js} +3 -3
- package/dist/vue-ui-heatmap-DYb831An.cjs +1 -0
- package/dist/{vue-ui-heatmap-u1raIzBQ.js → vue-ui-heatmap-i4HFM04D.js} +203 -189
- package/dist/{vue-ui-kpi-DY_2WF7U.cjs → vue-ui-kpi-CCrdcv3r.cjs} +1 -1
- package/dist/{vue-ui-kpi-C-iTxMD2.js → vue-ui-kpi-gSKVVqZg.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bfq2MNWu.cjs → vue-ui-mini-loader-CqutMcQI.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7x7S0hi.js → vue-ui-mini-loader-D7Jk1LJb.js} +2 -2
- package/dist/{vue-ui-molecule-BFnOIxxs.js → vue-ui-molecule-CgdepnhM.js} +164 -151
- package/dist/vue-ui-molecule-CwUObXAx.cjs +1 -0
- package/dist/{vue-ui-mood-radar-CR1v5v2x.js → vue-ui-mood-radar-Bxro4962.js} +217 -203
- package/dist/vue-ui-mood-radar-RQFKS7Br.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DEiloQzq.js → vue-ui-nested-donuts-B7dXBejH.js} +342 -325
- package/dist/vue-ui-nested-donuts-D8ZGqIGC.cjs +17 -0
- package/dist/vue-ui-onion-Dtt0kw8E.cjs +5 -0
- package/dist/{vue-ui-onion-LsEhBe4x.js → vue-ui-onion-i52wztm0.js} +267 -250
- package/dist/vue-ui-parallel-coordinate-plot-DNK0BrBy.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CTlIjJqG.js → vue-ui-parallel-coordinate-plot-DUssrm08.js} +241 -224
- package/dist/{vue-ui-quadrant-DKVVFufb.js → vue-ui-quadrant-BORPtgQO.js} +236 -219
- package/dist/vue-ui-quadrant-a_I5E71f.cjs +1 -0
- package/dist/vue-ui-quick-chart-BpPDfK78.cjs +15 -0
- package/dist/{vue-ui-quick-chart-8vJikiGH.js → vue-ui-quick-chart-yb1FzVdt.js} +469 -452
- package/dist/{vue-ui-radar-20QhOUer.js → vue-ui-radar-CoCbl19A.js} +198 -181
- package/dist/vue-ui-radar-DZMngiqq.cjs +1 -0
- package/dist/{vue-ui-rating-DRWJsve1.js → vue-ui-rating-D-zwuvLK.js} +2 -2
- package/dist/{vue-ui-rating-Bbzm5nUK.cjs → vue-ui-rating-nTJ8DDhG.cjs} +1 -1
- package/dist/vue-ui-relation-circle-CW9qozhJ.js +366 -0
- package/dist/vue-ui-relation-circle-Wj_yrVJc.cjs +1 -0
- package/dist/vue-ui-rings-BZaZIGEz.cjs +2 -0
- package/dist/{vue-ui-rings-DG8GCi3y.js → vue-ui-rings-Bx2GEh6d.js} +221 -204
- package/dist/{vue-ui-scatter-Hqu5-F2H.js → vue-ui-scatter-BARiPzro.js} +375 -358
- package/dist/vue-ui-scatter-C-i1NZgz.cjs +1 -0
- package/dist/{vue-ui-screenshot-cjiqbtLK.js → vue-ui-screenshot-CuiJqlfo.js} +1 -1
- package/dist/{vue-ui-screenshot-D8nxd5RV.cjs → vue-ui-screenshot-CwOoftGV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-aZmkNzAe.js → vue-ui-skeleton-DNuwx6_y.js} +419 -379
- package/dist/vue-ui-skeleton-DpfJbsNA.cjs +41 -0
- package/dist/{vue-ui-smiley-ChNvxygm.js → vue-ui-smiley-BnX27B0k.js} +2 -2
- package/dist/{vue-ui-smiley-B1TA19Hv.cjs → vue-ui-smiley-DGE9NFBY.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CQxELQcf.js → vue-ui-spark-trend-CgCLrMox.js} +86 -79
- package/dist/vue-ui-spark-trend-aW-de-rX.cjs +1 -0
- package/dist/vue-ui-sparkbar-BLUXUlTY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-0ixbKZzf.js → vue-ui-sparkbar-BXku33sq.js} +90 -83
- package/dist/{vue-ui-sparkgauge-pdYb7OwH.js → vue-ui-sparkgauge-Doi0iu0L.js} +57 -50
- package/dist/vue-ui-sparkgauge-RTiKvSMp.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-N69h2q0U.js → vue-ui-sparkhistogram-BnMvXlAP.js} +74 -67
- package/dist/vue-ui-sparkhistogram-C6AgJH1C.cjs +1 -0
- package/dist/{vue-ui-sparkline-2BKYZMOb.js → vue-ui-sparkline-DI7fq_MR.js} +134 -125
- package/dist/vue-ui-sparkline-DpVCQ6W9.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-Bvuq2sLW.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-sh03cuOU.js → vue-ui-sparkstackbar-oNnE5z1C.js} +84 -77
- package/dist/{vue-ui-stackbar-B1si-1RM.js → vue-ui-stackbar-6g7b3yyu.js} +205 -196
- package/dist/{vue-ui-stackbar-Dy_saeSe.cjs → vue-ui-stackbar-aWJDGIKV.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-BYn-QrTQ.js → vue-ui-strip-plot-BFM8HIM8.js} +265 -248
- package/dist/vue-ui-strip-plot-GdjjVxMN.cjs +1 -0
- package/dist/{vue-ui-table-DQORPCDJ.js → vue-ui-table-Cw4Yz-IE.js} +1 -1
- package/dist/{vue-ui-table-Ce4waJaj.cjs → vue-ui-table-XOPmDCOB.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-Bh48bMuU.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-Csp7Tx8N.js → vue-ui-table-heatmap-DeRCR8l6.js} +55 -48
- package/dist/vue-ui-table-sparkline-C25qj1w_.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-DdwVrfUj.js → vue-ui-table-sparkline-w3H-od91.js} +88 -81
- package/dist/{vue-ui-thermometer-I6ZnlfAv.js → vue-ui-thermometer-BySEVhT8.js} +162 -149
- package/dist/vue-ui-thermometer-DZrusaGY.cjs +1 -0
- package/dist/{vue-ui-timer-COOXcn14.cjs → vue-ui-timer-1p6J6hTn.cjs} +1 -1
- package/dist/{vue-ui-timer-pi1SazTU.js → vue-ui-timer-BN-9a2lj.js} +6 -6
- package/dist/vue-ui-tiremarks-CvIJeWKE.cjs +1 -0
- package/dist/vue-ui-tiremarks-EzYdOMyf.js +317 -0
- package/dist/vue-ui-treemap-CzNOr1iR.cjs +1 -0
- package/dist/{vue-ui-treemap-3FNUlKxL.js → vue-ui-treemap-Da0f6vaF.js} +283 -266
- package/dist/vue-ui-vertical-bar-B9shdfqo.cjs +4 -0
- package/dist/vue-ui-vertical-bar-D1cBfu5p.js +869 -0
- package/dist/vue-ui-waffle-Cg-7Fazv.cjs +1 -0
- package/dist/{vue-ui-waffle-XecHJIc-.js → vue-ui-waffle-DM2LsEP7.js} +258 -241
- package/dist/vue-ui-wheel-B9cmixxi.js +299 -0
- package/dist/vue-ui-wheel-C-JukdTy.cjs +1 -0
- package/dist/vue-ui-word-cloud-BLMWYOPy.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DnhXUn5x.js → vue-ui-word-cloud-Baz7RXN2.js} +192 -183
- package/dist/vue-ui-xy-BHeSkJQ3.cjs +3 -0
- package/dist/{vue-ui-xy-CqlRuFMc.js → vue-ui-xy-DVnzVSqE.js} +339 -319
- package/dist/{vue-ui-xy-canvas-C8c2X5fk.js → vue-ui-xy-canvas-A7PKnWBs.js} +255 -246
- package/dist/vue-ui-xy-canvas-DAd-B98z.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-FfZRtJ6A.cjs +0 -9
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +0 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +0 -23
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +0 -2
- package/dist/vue-ui-carousel-table-DpRQklDZ.cjs +0 -1
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +0 -6
- package/dist/vue-ui-donut-CplNylps.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +0 -1
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +0 -9
- package/dist/vue-ui-flow-BPt35d5K.cjs +0 -1
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +0 -1
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +0 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +0 -1
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +0 -1
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +0 -17
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +0 -8
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +0 -1
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +0 -15
- package/dist/vue-ui-radar-CAaHjDO7.cjs +0 -1
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +0 -1
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +0 -349
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +0 -2
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +0 -1
- package/dist/vue-ui-skeleton-Djv08J67.cjs +0 -41
- package/dist/vue-ui-spark-trend-BqrPr63O.cjs +0 -1
- package/dist/vue-ui-sparkbar-CrTEPTU5.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BYxpe_WV.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D21XDUH2.cjs +0 -1
- package/dist/vue-ui-sparkline-Cf4m-Fxo.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-dAS8XoJs.cjs +0 -1
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +0 -1
- package/dist/vue-ui-table-heatmap-EqHt-O7Y.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DONmVOMh.cjs +0 -1
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +0 -1
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +0 -1
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +0 -303
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DwxpB46q.js +0 -852
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +0 -1
- package/dist/vue-ui-wheel-Bbih5sSL.js +0 -282
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +0 -1
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +0 -1
- package/dist/vue-ui-xy-BDpqVzAq.cjs +0 -3
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +0 -9
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
import { useCssVars as Ze, computed as b, ref as r, watch as Me, onMounted as et, onBeforeUnmount as tt, openBlock as u, createElementBlock as i, normalizeClass as R, normalizeStyle as c, createBlock as M, createCommentVNode as g, unref as h, createSlots as at, withCtx as k, renderSlot as _, normalizeProps as U, guardReactiveProps as H, createElementVNode as n, toDisplayString as d, createVNode as re, Fragment as W, renderList as j, withKeys as lt, createTextVNode as ot } from "vue";
|
|
2
|
+
import { u as nt, c as ut, t as st, a as rt, p as O, b as it, o as Oe, e as Z, v as S, d as ie, i as ee, f as I, X as dt, s as de, w as ct, x as vt, y as ht, q as pt, r as gt } from "./index-DCsPHn9C.js";
|
|
3
|
+
import { t as yt, u as ft } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as bt } from "./Title-710895ks.js";
|
|
5
|
+
import { u as mt, U as _t } from "./usePrinter-siG3sKWo.js";
|
|
6
|
+
import { _ as kt } from "./Tooltip-CPlG_yQU.js";
|
|
7
|
+
import { L as Ie } from "./Legend-CRMHjbGw.js";
|
|
8
|
+
import xt from "./vue-ui-skeleton-DNuwx6_y.js";
|
|
9
|
+
import $t from "./BaseIcon-BX3x6oa7.js";
|
|
10
|
+
import Ct from "./vue-ui-accordion-D4Er5Dy5.js";
|
|
11
|
+
import { u as Ae } from "./useNestedProp-DdSlLeTW.js";
|
|
12
|
+
import { _ as wt } from "./PackageVersion-Clrfvyd8.js";
|
|
13
|
+
import { P as Tt } from "./PenAndPaper-BQzgk5kO.js";
|
|
14
|
+
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Nt = ["id"], Pt = ["onClick"], St = ["xmlns", "viewBox"], Vt = ["id"], zt = ["stop-color"], Ft = ["stop-color"], Mt = ["x", "y", "width", "height", "fill", "rx"], Ot = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], It = ["x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Dt = ["x", "y", "font-size", "fill", "font-weight"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Xt = ["x", "y", "font-size", "fill", "font-weight"], Et = ["y", "width", "height", "fill", "onMouseenter"], Gt = {
|
|
16
|
+
key: 6,
|
|
17
|
+
class: "vue-data-ui-watermark"
|
|
18
|
+
}, Ut = ["onClick"], Ht = { style: "width:100%;padding-top: 36px;position:relative" }, Wt = { class: "vue-ui-data-table" }, jt = { key: 0 }, Yt = { style: { width: "100%" } }, qt = ["data-cell"], Kt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jt = ["data-cell"], Qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Zt = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = ["data-cell"], oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, na = ["data-cell"], ua = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = ["data-cell"], ra = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ia = {
|
|
19
|
+
__name: "vue-ui-vertical-bar",
|
|
20
|
+
props: {
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
dataset: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default() {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["selectLegend"],
|
|
35
|
+
setup(Be, { expose: De, emit: Re }) {
|
|
36
|
+
const C = Be;
|
|
37
|
+
Ze((t) => ({
|
|
38
|
+
"5a0dcab3": t.tdo
|
|
39
|
+
}));
|
|
40
|
+
const { vue_ui_vertical_bar: Xe } = nt(), Y = b(() => !!C.dataset && C.dataset.length), V = r(ut()), Ee = r(null), te = r(!1), ae = r(""), q = r(0), Ge = r(null), ce = r(0), A = r(null), ve = r(null), le = r(null), he = r(null), pe = r(null), ge = r(0), oe = r(0), e = b({
|
|
41
|
+
get: () => ye(),
|
|
42
|
+
set: (t) => t
|
|
43
|
+
});
|
|
44
|
+
function ye() {
|
|
45
|
+
const t = Ae({
|
|
46
|
+
userConfig: C.config,
|
|
47
|
+
defaultConfig: Xe
|
|
48
|
+
});
|
|
49
|
+
return t.theme ? {
|
|
50
|
+
...Ae({
|
|
51
|
+
userConfig: st.vue_ui_vertical_bar[t.theme] || C.config,
|
|
52
|
+
defaultConfig: t
|
|
53
|
+
}),
|
|
54
|
+
customPalette: rt[t.theme] || O
|
|
55
|
+
} : t;
|
|
56
|
+
}
|
|
57
|
+
Me(() => C.config, (t) => {
|
|
58
|
+
e.value = ye(), Ce(), ge.value += 1, oe.value += 1, v.value = e.value.style.chart.layout.bars.height, y.value = e.value.style.chart.layout.bars.gap;
|
|
59
|
+
}, { deep: !0 }), Me(() => C.dataset, J, { deep: !0 });
|
|
60
|
+
const { isPrinting: fe, isImaging: be, generatePdf: me, generateImage: _e } = mt({
|
|
61
|
+
elementId: `vue-ui-vertical-bar_${V.value}`,
|
|
62
|
+
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
63
|
+
}), Ue = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), ke = b(() => it(e.value.customPalette)), xe = r(null), $e = r(!1), He = b(() => e.value.table.responsiveBreakpoint), K = r(null);
|
|
64
|
+
et(() => {
|
|
65
|
+
Ce();
|
|
66
|
+
});
|
|
67
|
+
function Ce() {
|
|
68
|
+
if (Oe(C.dataset) && Z({
|
|
69
|
+
componentName: "VueUiVerticalBar",
|
|
70
|
+
type: "dataset"
|
|
71
|
+
}), q.value = C.dataset.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), We(), e.value.responsive) {
|
|
72
|
+
const t = yt(() => {
|
|
73
|
+
const { width: l, height: a } = ft({
|
|
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,
|
|
77
|
+
source: he.value,
|
|
78
|
+
noTitle: pe.value
|
|
79
|
+
});
|
|
80
|
+
Le.value = l, v.value = a / q.value - y.value * 2;
|
|
81
|
+
});
|
|
82
|
+
K.value = new ResizeObserver(t), K.value.observe(A.value.parentNode);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
tt(() => {
|
|
86
|
+
K.value && K.value.disconnect();
|
|
87
|
+
});
|
|
88
|
+
function We() {
|
|
89
|
+
new ResizeObserver((l) => {
|
|
90
|
+
l.forEach((a) => {
|
|
91
|
+
$e.value = a.contentRect.width < He.value;
|
|
92
|
+
});
|
|
93
|
+
}).observe(xe.value);
|
|
94
|
+
}
|
|
95
|
+
const $ = r({
|
|
96
|
+
showTable: e.value.table.show,
|
|
97
|
+
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
98
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
99
|
+
}), we = b(() => $.value.sortDesc), z = b(() => (C.dataset.forEach((t, l) => {
|
|
100
|
+
!t.value && !t.children && Z({
|
|
101
|
+
componentName: "VueUiVerticalBar",
|
|
102
|
+
type: "datasetAttributeEmpty",
|
|
103
|
+
property: `value (index ${l})`
|
|
104
|
+
}), t.children && (Oe(t.children) ? Z({
|
|
105
|
+
componentName: "VueUiVerticalBar",
|
|
106
|
+
type: "datasetAttributeEmpty",
|
|
107
|
+
property: `children (index ${l})`
|
|
108
|
+
}) : t.children.forEach((a, o) => {
|
|
109
|
+
[null, void 0].includes(a.name) && Z({
|
|
110
|
+
componentName: "VueUiVerticalBar",
|
|
111
|
+
type: "datasetSerieAttribute",
|
|
112
|
+
property: "name",
|
|
113
|
+
key: "children",
|
|
114
|
+
index: o
|
|
115
|
+
});
|
|
116
|
+
}));
|
|
117
|
+
}), C.dataset.map((t, l) => {
|
|
118
|
+
const a = `vertical_parent_${l}_${V.value}`, o = t.children && t.children.length > 0, m = S(t.value ? t.value : o ? t.children.map((x) => x.value || 0).reduce((x, N) => x + N, 0) : 0), p = m >= 0 ? 1 : -1;
|
|
119
|
+
return {
|
|
120
|
+
...t,
|
|
121
|
+
id: a,
|
|
122
|
+
shape: "square",
|
|
123
|
+
opacity: T.value.includes(a) ? 0.5 : 1,
|
|
124
|
+
value: Math.abs(m),
|
|
125
|
+
sign: p,
|
|
126
|
+
hasChildren: o,
|
|
127
|
+
isChild: !1,
|
|
128
|
+
segregate: () => X(a),
|
|
129
|
+
isSegregated: T.value.includes(a),
|
|
130
|
+
color: ie(t.color) || ke.value[l] || O[l] || O[l % O.length],
|
|
131
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted((x, N) => we.value ? N.value - x.value : x.value - N.value).map((x, N) => ({
|
|
132
|
+
...x,
|
|
133
|
+
value: S(Math.abs(x.value)),
|
|
134
|
+
sign: x.value >= 0 ? 1 : -1,
|
|
135
|
+
isChild: !0,
|
|
136
|
+
parentId: a,
|
|
137
|
+
parentName: t.name,
|
|
138
|
+
parentValue: m,
|
|
139
|
+
parentSign: p,
|
|
140
|
+
id: `vertical_child_${l}_${N}_${V.value}`,
|
|
141
|
+
childIndex: N,
|
|
142
|
+
color: ie(x.color) || ie(t.color) || ke.value[l] || O[l] || O[l % O.length]
|
|
143
|
+
})).map((x, N) => ({
|
|
144
|
+
...x,
|
|
145
|
+
isFirstChild: N === 0,
|
|
146
|
+
isLastChild: N === t.children.length - 1
|
|
147
|
+
}))
|
|
148
|
+
};
|
|
149
|
+
}).toSorted((t, l) => we.value ? l.value - t.value : t.value - l.value))), Te = b(() => ({
|
|
150
|
+
cy: "vertical-bar-div-legend",
|
|
151
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
152
|
+
color: e.value.style.chart.legend.color,
|
|
153
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
154
|
+
paddingBottom: 12,
|
|
155
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
156
|
+
})), v = r(e.value.style.chart.layout.bars.height), y = r(e.value.style.chart.layout.bars.gap), je = b(() => (v.value + y.value) * q.value), Le = r(512), f = b(() => ({
|
|
157
|
+
width: Le.value,
|
|
158
|
+
height: je.value,
|
|
159
|
+
padding: {
|
|
160
|
+
top: 12,
|
|
161
|
+
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
162
|
+
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
163
|
+
bottom: 12
|
|
164
|
+
}
|
|
165
|
+
})), s = b(() => ({
|
|
166
|
+
fullHeight: f.value.padding.top + f.value.padding.bottom + f.value.height,
|
|
167
|
+
top: f.value.padding.top,
|
|
168
|
+
left: f.value.padding.left,
|
|
169
|
+
right: f.value.width - f.value.padding.right,
|
|
170
|
+
bottom: f.value.padding.top + f.value.height,
|
|
171
|
+
width: f.value.width - (f.value.padding.left + f.value.padding.right)
|
|
172
|
+
}));
|
|
173
|
+
function J() {
|
|
174
|
+
q.value = F.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0);
|
|
175
|
+
}
|
|
176
|
+
const T = r([]);
|
|
177
|
+
function X(t) {
|
|
178
|
+
T.value.includes(t) ? T.value = T.value.filter((l) => l !== t) : T.value.push(t), J(), Re("selectLegend", F.value);
|
|
179
|
+
}
|
|
180
|
+
const F = b(() => z.value.filter((t) => !T.value.includes(t.id))), L = b(() => F.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
181
|
+
function Ne(t, l = !1, a = 0) {
|
|
182
|
+
return l ? I({
|
|
183
|
+
v: S(Math.abs(t) / L.value * 100),
|
|
184
|
+
s: "%",
|
|
185
|
+
r: a
|
|
186
|
+
}) : Math.abs(t) / L.value;
|
|
187
|
+
}
|
|
188
|
+
const B = b(() => F.value.flatMap((t) => t.hasChildren ? t.children : t)), D = b(() => B.value.map((t) => t.sign).includes(-1)), Ye = b(() => Math.max(...F.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
189
|
+
function P(t) {
|
|
190
|
+
const l = t / Ye.value;
|
|
191
|
+
return s.value.width / (D.value ? 2 : 1) * l;
|
|
192
|
+
}
|
|
193
|
+
function qe(t) {
|
|
194
|
+
return P(t) + s.value.left;
|
|
195
|
+
}
|
|
196
|
+
function E(t, l) {
|
|
197
|
+
const a = F.value.find((p) => p.id === t.parentId), o = s.value.top + (y.value + v.value) * l, m = a.children.length * (y.value + v.value);
|
|
198
|
+
return {
|
|
199
|
+
y: o + m / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
200
|
+
name: a.name,
|
|
201
|
+
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
202
|
+
percentageToTotal: isNaN(a.value / L.value) ? "" : Ne(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
203
|
+
sign: a.sign
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function Ke() {
|
|
207
|
+
return F.value;
|
|
208
|
+
}
|
|
209
|
+
const ne = r(null), ue = r(null);
|
|
210
|
+
function Je(t, l) {
|
|
211
|
+
ue.value = {
|
|
212
|
+
datapoint: t,
|
|
213
|
+
seriesIndex: l,
|
|
214
|
+
series: z.value,
|
|
215
|
+
config: e.value
|
|
216
|
+
}, te.value = !0, ne.value = t.id;
|
|
217
|
+
let a = "";
|
|
218
|
+
const o = t.isChild ? t.parentName : t.name, m = t.isChild ? t.name : "", p = e.value.style.chart.tooltip.customFormat;
|
|
219
|
+
vt(p) && ht(() => p({
|
|
220
|
+
datapoint: t,
|
|
221
|
+
series: z.value,
|
|
222
|
+
config: e.value,
|
|
223
|
+
seriesIndex: l
|
|
224
|
+
})) ? ae.value = p({
|
|
225
|
+
datapoint: t,
|
|
226
|
+
series: z.value,
|
|
227
|
+
config: e.value,
|
|
228
|
+
seriesIndex: l
|
|
229
|
+
}) : (a += `<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;">
|
|
230
|
+
<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="${t.color}"/></svg> ${o}</div>
|
|
231
|
+
${m ? `<div>${m}</div>` : ""}
|
|
232
|
+
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${ee(
|
|
233
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
234
|
+
t.sign === 1 ? t.value : -t.value,
|
|
235
|
+
I({
|
|
236
|
+
p: e.value.style.chart.tooltip.prefix,
|
|
237
|
+
v: t.sign === 1 ? t.value : -t.value,
|
|
238
|
+
s: e.value.style.chart.tooltip.suffix,
|
|
239
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
240
|
+
}),
|
|
241
|
+
{ datapoint: t, seriesIndex: l }
|
|
242
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${I({
|
|
243
|
+
v: Math.abs(t.value) / L.value * 100,
|
|
244
|
+
s: "%",
|
|
245
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
246
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${I({
|
|
247
|
+
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
248
|
+
s: "%",
|
|
249
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
250
|
+
})}</b></div>`)), ae.value = `<div style="text-align:left">${a}</div>`);
|
|
251
|
+
}
|
|
252
|
+
function Pe(t, l, a, o) {
|
|
253
|
+
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
254
|
+
return "";
|
|
255
|
+
const m = ee(
|
|
256
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
257
|
+
S(o === -1 && t >= 0 ? -t : t),
|
|
258
|
+
I({
|
|
259
|
+
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
260
|
+
v: S(o === -1 && t >= 0 ? -t : t),
|
|
261
|
+
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
262
|
+
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
263
|
+
}),
|
|
264
|
+
{ datapoint: l, seriesIndex: a }
|
|
265
|
+
), p = `(${Ne(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
266
|
+
return `${m}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
|
|
267
|
+
}
|
|
268
|
+
const w = b(() => {
|
|
269
|
+
const t = [
|
|
270
|
+
e.value.translations.parentName,
|
|
271
|
+
e.value.translations.value,
|
|
272
|
+
e.value.translations.percentageToTotal,
|
|
273
|
+
e.value.translations.childName,
|
|
274
|
+
e.value.translations.value,
|
|
275
|
+
e.value.translations.percentageToSerie,
|
|
276
|
+
e.value.translations.percentageToTotal
|
|
277
|
+
], l = B.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
278
|
+
color: a.color,
|
|
279
|
+
parentName: a.parentName,
|
|
280
|
+
parentValue: a.parentValue,
|
|
281
|
+
percentageToTotal: a.parentValue / L.value,
|
|
282
|
+
childName: a.name,
|
|
283
|
+
childValue: a.sign === 1 ? a.value : -a.value,
|
|
284
|
+
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
285
|
+
childPercentageToTotal: Math.abs(a.value) / L.value
|
|
286
|
+
} : {
|
|
287
|
+
color: "",
|
|
288
|
+
parentName: "",
|
|
289
|
+
parentValue: "",
|
|
290
|
+
percentageToTotal: "",
|
|
291
|
+
childName: a.name,
|
|
292
|
+
childValue: a.sign === 1 ? a.value : -a.value,
|
|
293
|
+
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
294
|
+
childPercentageToTotal: Math.abs(a.value) / L.value
|
|
295
|
+
} : {
|
|
296
|
+
color: a.color,
|
|
297
|
+
parentName: a.name,
|
|
298
|
+
parentValue: a.sign === 1 ? a.value : -a.value,
|
|
299
|
+
percentageToTotal: Math.abs(a.value) / L.value,
|
|
300
|
+
childName: "",
|
|
301
|
+
childValue: "",
|
|
302
|
+
childPercentageToParent: "",
|
|
303
|
+
childPercentageToTotal: ""
|
|
304
|
+
});
|
|
305
|
+
return { head: t, body: l };
|
|
306
|
+
});
|
|
307
|
+
function Se() {
|
|
308
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, a = w.value.body.map((p) => [
|
|
309
|
+
p.parentName,
|
|
310
|
+
p.parentValue,
|
|
311
|
+
p.percentageToTotal,
|
|
312
|
+
p.childName,
|
|
313
|
+
p.childValue,
|
|
314
|
+
p.childPercentageToParent,
|
|
315
|
+
p.childPercentageToTotal
|
|
316
|
+
]), o = t.concat([l]).concat(a), m = pt(o);
|
|
317
|
+
gt({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
318
|
+
}
|
|
319
|
+
const G = r(!1);
|
|
320
|
+
function Qe(t) {
|
|
321
|
+
G.value = t, ce.value += 1;
|
|
322
|
+
}
|
|
323
|
+
function Ve() {
|
|
324
|
+
$.value.showTable = !$.value.showTable;
|
|
325
|
+
}
|
|
326
|
+
function ze() {
|
|
327
|
+
$.value.sortDesc = !$.value.sortDesc, J();
|
|
328
|
+
}
|
|
329
|
+
function Fe() {
|
|
330
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
331
|
+
}
|
|
332
|
+
const Q = r(!1);
|
|
333
|
+
function se() {
|
|
334
|
+
Q.value = !Q.value;
|
|
335
|
+
}
|
|
336
|
+
return De({
|
|
337
|
+
getData: Ke,
|
|
338
|
+
recalculateHeight: J,
|
|
339
|
+
generatePdf: me,
|
|
340
|
+
generateCsv: Se,
|
|
341
|
+
generateImage: _e,
|
|
342
|
+
toggleTable: Ve,
|
|
343
|
+
toggleSort: ze,
|
|
344
|
+
toggleTooltip: Fe,
|
|
345
|
+
toggleAnnotator: se
|
|
346
|
+
}), (t, l) => (u(), i("div", {
|
|
347
|
+
class: R(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
348
|
+
ref_key: "verticalBarChart",
|
|
349
|
+
ref: A,
|
|
350
|
+
id: `vue-ui-vertical-bar_${V.value}`,
|
|
351
|
+
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
352
|
+
}, [
|
|
353
|
+
e.value.userOptions.buttons.annotator ? (u(), M(Tt, {
|
|
354
|
+
key: 0,
|
|
355
|
+
parent: A.value,
|
|
356
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
|
+
color: e.value.style.chart.color,
|
|
358
|
+
active: Q.value,
|
|
359
|
+
onClose: se
|
|
360
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
|
|
361
|
+
Ue.value ? (u(), i("div", {
|
|
362
|
+
key: 1,
|
|
363
|
+
ref_key: "noTitle",
|
|
364
|
+
ref: pe,
|
|
365
|
+
class: "vue-data-ui-no-title-space",
|
|
366
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
367
|
+
}, null, 512)) : g("", !0),
|
|
368
|
+
e.value.style.chart.title.text ? (u(), i("div", {
|
|
369
|
+
key: 2,
|
|
370
|
+
ref_key: "chartTitle",
|
|
371
|
+
ref: ve,
|
|
372
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
373
|
+
}, [
|
|
374
|
+
(u(), M(bt, {
|
|
375
|
+
key: `title_${ge.value}`,
|
|
376
|
+
config: {
|
|
377
|
+
title: {
|
|
378
|
+
cy: "vertical-bar-div-title",
|
|
379
|
+
...e.value.style.chart.title
|
|
380
|
+
},
|
|
381
|
+
subtitle: {
|
|
382
|
+
cy: "vertical-bar-div-subtitle",
|
|
383
|
+
...e.value.style.chart.title.subtitle
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}, null, 8, ["config"]))
|
|
387
|
+
], 512)) : g("", !0),
|
|
388
|
+
e.value.userOptions.show && Y.value ? (u(), M(_t, {
|
|
389
|
+
ref_key: "details",
|
|
390
|
+
ref: Ee,
|
|
391
|
+
key: `user_options_${ce.value}`,
|
|
392
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
393
|
+
color: e.value.style.chart.color,
|
|
394
|
+
isImaging: h(be),
|
|
395
|
+
isPrinting: h(fe),
|
|
396
|
+
uid: V.value,
|
|
397
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
398
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
399
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
400
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
401
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
402
|
+
hasSort: e.value.userOptions.buttons.sort,
|
|
403
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
404
|
+
isFullscreen: G.value,
|
|
405
|
+
isTooltip: $.value.showTooltip,
|
|
406
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
407
|
+
chartElement: A.value,
|
|
408
|
+
position: e.value.userOptions.position,
|
|
409
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
410
|
+
isAnnotation: Q.value,
|
|
411
|
+
onToggleFullscreen: Qe,
|
|
412
|
+
onGeneratePdf: h(me),
|
|
413
|
+
onGenerateCsv: Se,
|
|
414
|
+
onGenerateImage: h(_e),
|
|
415
|
+
onToggleTable: Ve,
|
|
416
|
+
onToggleSort: ze,
|
|
417
|
+
onToggleTooltip: Fe,
|
|
418
|
+
onToggleAnnotator: se
|
|
419
|
+
}, at({ _: 2 }, [
|
|
420
|
+
t.$slots.optionTooltip ? {
|
|
421
|
+
name: "optionTooltip",
|
|
422
|
+
fn: k(() => [
|
|
423
|
+
_(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
424
|
+
]),
|
|
425
|
+
key: "0"
|
|
426
|
+
} : void 0,
|
|
427
|
+
t.$slots.optionPdf ? {
|
|
428
|
+
name: "optionPdf",
|
|
429
|
+
fn: k(() => [
|
|
430
|
+
_(t.$slots, "optionPdf", {}, void 0, !0)
|
|
431
|
+
]),
|
|
432
|
+
key: "1"
|
|
433
|
+
} : void 0,
|
|
434
|
+
t.$slots.optionCsv ? {
|
|
435
|
+
name: "optionCsv",
|
|
436
|
+
fn: k(() => [
|
|
437
|
+
_(t.$slots, "optionCsv", {}, void 0, !0)
|
|
438
|
+
]),
|
|
439
|
+
key: "2"
|
|
440
|
+
} : void 0,
|
|
441
|
+
t.$slots.optionImg ? {
|
|
442
|
+
name: "optionImg",
|
|
443
|
+
fn: k(() => [
|
|
444
|
+
_(t.$slots, "optionImg", {}, void 0, !0)
|
|
445
|
+
]),
|
|
446
|
+
key: "3"
|
|
447
|
+
} : void 0,
|
|
448
|
+
t.$slots.optionTable ? {
|
|
449
|
+
name: "optionTable",
|
|
450
|
+
fn: k(() => [
|
|
451
|
+
_(t.$slots, "optionTable", {}, void 0, !0)
|
|
452
|
+
]),
|
|
453
|
+
key: "4"
|
|
454
|
+
} : void 0,
|
|
455
|
+
t.$slots.optionLabels ? {
|
|
456
|
+
name: "optionLabels",
|
|
457
|
+
fn: k(() => [
|
|
458
|
+
_(t.$slots, "optionLabels", {}, void 0, !0)
|
|
459
|
+
]),
|
|
460
|
+
key: "5"
|
|
461
|
+
} : void 0,
|
|
462
|
+
t.$slots.optionSort ? {
|
|
463
|
+
name: "optionSort",
|
|
464
|
+
fn: k(() => [
|
|
465
|
+
_(t.$slots, "optionSort", {}, void 0, !0)
|
|
466
|
+
]),
|
|
467
|
+
key: "6"
|
|
468
|
+
} : void 0,
|
|
469
|
+
t.$slots.optionFullscreen ? {
|
|
470
|
+
name: "optionFullscreen",
|
|
471
|
+
fn: k(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
472
|
+
_(t.$slots, "optionFullscreen", U(H({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
473
|
+
]),
|
|
474
|
+
key: "7"
|
|
475
|
+
} : void 0,
|
|
476
|
+
t.$slots.optionAnnotator ? {
|
|
477
|
+
name: "optionAnnotator",
|
|
478
|
+
fn: k(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
479
|
+
_(t.$slots, "optionAnnotator", U(H({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
480
|
+
]),
|
|
481
|
+
key: "8"
|
|
482
|
+
} : void 0
|
|
483
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
484
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
|
|
485
|
+
key: 4,
|
|
486
|
+
ref_key: "chartLegend",
|
|
487
|
+
ref: le
|
|
488
|
+
}, [
|
|
489
|
+
(u(), M(Ie, {
|
|
490
|
+
key: `legend_top_${oe.value}`,
|
|
491
|
+
legendSet: z.value,
|
|
492
|
+
config: Te.value,
|
|
493
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => X(a.id))
|
|
494
|
+
}, {
|
|
495
|
+
item: k(({ legend: a, index: o }) => [
|
|
496
|
+
n("div", {
|
|
497
|
+
"data-cy-legend-item": "",
|
|
498
|
+
onClick: (m) => X(a.id),
|
|
499
|
+
style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
500
|
+
}, d(a.name) + ": " + d(h(ee)(
|
|
501
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
502
|
+
a.value,
|
|
503
|
+
h(I)({
|
|
504
|
+
p: e.value.style.chart.legend.prefix,
|
|
505
|
+
v: a.value,
|
|
506
|
+
s: e.value.style.chart.legend.suffix,
|
|
507
|
+
r: e.value.style.chart.legend.roundingValue
|
|
508
|
+
}),
|
|
509
|
+
{ datapoint: a, seriesIndex: o }
|
|
510
|
+
)), 13, Pt)
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
}, 8, ["legendSet", "config"]))
|
|
514
|
+
], 512)) : g("", !0),
|
|
515
|
+
Y.value ? (u(), i("svg", {
|
|
516
|
+
key: 5,
|
|
517
|
+
xmlns: h(dt),
|
|
518
|
+
class: R({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
519
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
520
|
+
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
521
|
+
}, [
|
|
522
|
+
re(wt),
|
|
523
|
+
(u(!0), i(W, null, j(B.value, (a, o) => (u(), i("linearGradient", {
|
|
524
|
+
x1: "0%",
|
|
525
|
+
y1: "0%",
|
|
526
|
+
x2: "100%",
|
|
527
|
+
y2: "0%",
|
|
528
|
+
id: `vertical_bar_gradient_${V.value}_${o}`
|
|
529
|
+
}, [
|
|
530
|
+
n("stop", {
|
|
531
|
+
offset: "0%",
|
|
532
|
+
"stop-color": a.color
|
|
533
|
+
}, null, 8, zt),
|
|
534
|
+
n("stop", {
|
|
535
|
+
offset: "100%",
|
|
536
|
+
"stop-color": h(de)(h(ct)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
537
|
+
}, null, 8, Ft)
|
|
538
|
+
], 8, Vt))), 256)),
|
|
539
|
+
(u(!0), i(W, null, j(B.value, (a, o) => (u(), i("g", null, [
|
|
540
|
+
n("rect", {
|
|
541
|
+
x: h(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : P(a.value) <= 0 ? 1e-4 : P(a.value)) : s.value.left),
|
|
542
|
+
y: s.value.top + (y.value + v.value) * o,
|
|
543
|
+
width: h(S)(P(a.value) <= 0 ? 1e-4 : P(a.value)),
|
|
544
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
545
|
+
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
546
|
+
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
547
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
548
|
+
}, null, 10, Mt)
|
|
549
|
+
]))), 256)),
|
|
550
|
+
(u(!0), i(W, null, j(B.value, (a, o) => (u(), i("g", null, [
|
|
551
|
+
n("rect", {
|
|
552
|
+
x: h(S)(D.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : P(a.value) <= 0 ? 1e-4 : P(a.value)) : s.value.left),
|
|
553
|
+
y: s.value.top + (y.value + v.value) * o,
|
|
554
|
+
width: h(S)(P(a.value) <= 0 ? 1e-4 : P(a.value)),
|
|
555
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
556
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : h(de)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
557
|
+
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
558
|
+
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
559
|
+
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
560
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
561
|
+
}, null, 10, Ot),
|
|
562
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (u(), i("line", {
|
|
563
|
+
key: 0,
|
|
564
|
+
x1: 0,
|
|
565
|
+
x2: s.value.left,
|
|
566
|
+
y1: v.value + y.value / 2 + s.value.top + (y.value + v.value) * o,
|
|
567
|
+
y2: v.value + y.value / 2 + s.value.top + (y.value + v.value) * o,
|
|
568
|
+
stroke: e.value.style.chart.layout.separators.color,
|
|
569
|
+
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
570
|
+
"stroke-linecap": "round"
|
|
571
|
+
}, null, 8, It)) : g("", !0),
|
|
572
|
+
D.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
573
|
+
key: 1,
|
|
574
|
+
x1: s.value.left + s.value.width / 2,
|
|
575
|
+
x2: s.value.left + s.value.width / 2,
|
|
576
|
+
y1: s.value.top,
|
|
577
|
+
y2: s.value.bottom,
|
|
578
|
+
stroke: e.value.style.chart.layout.separators.color,
|
|
579
|
+
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
580
|
+
"stroke-linecap": "round"
|
|
581
|
+
}, null, 8, At)) : g("", !0),
|
|
582
|
+
n("text", {
|
|
583
|
+
x: D.value ? s.value.left + s.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : qe(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
584
|
+
y: s.value.top + (y.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
585
|
+
"text-anchor": !D.value || a.sign === -1 ? "start" : "end",
|
|
586
|
+
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
587
|
+
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
588
|
+
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
589
|
+
}, d(Pe(a.value, a, o, a.sign)), 9, Bt),
|
|
590
|
+
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
591
|
+
key: 2,
|
|
592
|
+
"text-anchor": "end",
|
|
593
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
594
|
+
y: s.value.top + (y.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
595
|
+
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
596
|
+
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
597
|
+
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
598
|
+
}, d(a.name), 9, Dt)) : g("", !0),
|
|
599
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
600
|
+
key: 3,
|
|
601
|
+
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
602
|
+
y: E(a, o).y,
|
|
603
|
+
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
604
|
+
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
605
|
+
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
606
|
+
"text-anchor": "start"
|
|
607
|
+
}, d(E(a, o).name), 9, Rt)) : g("", !0),
|
|
608
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
609
|
+
key: 4,
|
|
610
|
+
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
611
|
+
y: E(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
612
|
+
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
613
|
+
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
614
|
+
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
615
|
+
"text-anchor": "start"
|
|
616
|
+
}, d(Pe(E(a, o).value), E(a, o), o, a.parentSign || a.sign), 9, Xt)) : g("", !0),
|
|
617
|
+
n("rect", {
|
|
618
|
+
"data-cy-trap": "",
|
|
619
|
+
x: 0,
|
|
620
|
+
y: s.value.top + (y.value + v.value) * o - y.value / 2,
|
|
621
|
+
width: f.value.width <= 0 ? 1e-4 : f.value.width,
|
|
622
|
+
height: v.value + y.value <= 0 ? 1e-4 : v.value + y.value,
|
|
623
|
+
fill: ne.value === a.id ? h(de)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
624
|
+
onMouseenter: (m) => Je(a, o),
|
|
625
|
+
onMouseleave: l[1] || (l[1] = (m) => {
|
|
626
|
+
Ge.value = null, te.value = !1, ne.value = null;
|
|
627
|
+
})
|
|
628
|
+
}, null, 40, Et)
|
|
629
|
+
]))), 256)),
|
|
630
|
+
_(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
631
|
+
], 14, St)) : g("", !0),
|
|
632
|
+
t.$slots.watermark ? (u(), i("div", Gt, [
|
|
633
|
+
_(t.$slots, "watermark", U(H({ isPrinting: h(fe) || h(be) })), void 0, !0)
|
|
634
|
+
])) : g("", !0),
|
|
635
|
+
Y.value ? g("", !0) : (u(), M(xt, {
|
|
636
|
+
key: 7,
|
|
637
|
+
config: {
|
|
638
|
+
type: "verticalBar",
|
|
639
|
+
style: {
|
|
640
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
641
|
+
verticalBar: {
|
|
642
|
+
axis: {
|
|
643
|
+
color: "#CCCCCC"
|
|
644
|
+
},
|
|
645
|
+
color: "#CCCCCC"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}, null, 8, ["config"])),
|
|
650
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), i("div", {
|
|
651
|
+
key: 8,
|
|
652
|
+
ref_key: "chartLegend",
|
|
653
|
+
ref: le
|
|
654
|
+
}, [
|
|
655
|
+
(u(), M(Ie, {
|
|
656
|
+
key: `legend_bottom_${oe.value}`,
|
|
657
|
+
legendSet: z.value,
|
|
658
|
+
config: Te.value,
|
|
659
|
+
onClickMarker: l[2] || (l[2] = ({ legend: a }) => X(a.id))
|
|
660
|
+
}, {
|
|
661
|
+
item: k(({ legend: a, index: o }) => [
|
|
662
|
+
n("div", {
|
|
663
|
+
onClick: (m) => X(a.id),
|
|
664
|
+
style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
665
|
+
}, d(a.name) + ": " + d(h(ee)(
|
|
666
|
+
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
667
|
+
a.value,
|
|
668
|
+
h(I)({
|
|
669
|
+
p: e.value.style.chart.legend.prefix,
|
|
670
|
+
v: a.value,
|
|
671
|
+
s: e.value.style.chart.legend.suffix,
|
|
672
|
+
r: e.value.style.chart.legend.roundingValue
|
|
673
|
+
}),
|
|
674
|
+
{ datapoint: a, seriesIndex: o }
|
|
675
|
+
)), 13, Ut)
|
|
676
|
+
]),
|
|
677
|
+
_: 1
|
|
678
|
+
}, 8, ["legendSet", "config"]))
|
|
679
|
+
], 512)) : g("", !0),
|
|
680
|
+
_(t.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
681
|
+
t.$slots.source ? (u(), i("div", {
|
|
682
|
+
key: 9,
|
|
683
|
+
ref_key: "source",
|
|
684
|
+
ref: he,
|
|
685
|
+
dir: "auto"
|
|
686
|
+
}, [
|
|
687
|
+
_(t.$slots, "source", {}, void 0, !0)
|
|
688
|
+
], 512)) : g("", !0),
|
|
689
|
+
re(kt, {
|
|
690
|
+
show: $.value.showTooltip && te.value && T.value.length < C.dataset.length,
|
|
691
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
692
|
+
color: e.value.style.chart.tooltip.color,
|
|
693
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
694
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
695
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
696
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
697
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
698
|
+
position: e.value.style.chart.tooltip.position,
|
|
699
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
700
|
+
parent: A.value,
|
|
701
|
+
content: ae.value,
|
|
702
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
703
|
+
}, {
|
|
704
|
+
"tooltip-before": k(() => [
|
|
705
|
+
_(t.$slots, "tooltip-before", U(H({ ...ue.value })), void 0, !0)
|
|
706
|
+
]),
|
|
707
|
+
"tooltip-after": k(() => [
|
|
708
|
+
_(t.$slots, "tooltip-after", U(H({ ...ue.value })), void 0, !0)
|
|
709
|
+
]),
|
|
710
|
+
_: 3
|
|
711
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
712
|
+
Y.value ? (u(), M(Ct, {
|
|
713
|
+
key: 10,
|
|
714
|
+
hideDetails: "",
|
|
715
|
+
config: {
|
|
716
|
+
open: $.value.showTable,
|
|
717
|
+
maxHeight: 1e4,
|
|
718
|
+
body: {
|
|
719
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
720
|
+
color: e.value.style.chart.color
|
|
721
|
+
},
|
|
722
|
+
head: {
|
|
723
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
724
|
+
color: e.value.style.chart.color
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}, {
|
|
728
|
+
content: k(() => [
|
|
729
|
+
n("div", {
|
|
730
|
+
ref_key: "tableContainer",
|
|
731
|
+
ref: xe,
|
|
732
|
+
class: "vue-ui-vertical-bar-table"
|
|
733
|
+
}, [
|
|
734
|
+
n("div", Ht, [
|
|
735
|
+
n("div", {
|
|
736
|
+
role: "button",
|
|
737
|
+
tabindex: "0",
|
|
738
|
+
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};`),
|
|
739
|
+
onClick: l[3] || (l[3] = (a) => $.value.showTable = !1),
|
|
740
|
+
onKeypress: l[4] || (l[4] = lt((a) => $.value.showTable = !1, ["enter"]))
|
|
741
|
+
}, [
|
|
742
|
+
re($t, {
|
|
743
|
+
name: "close",
|
|
744
|
+
stroke: e.value.table.th.color,
|
|
745
|
+
"stroke-width": 2
|
|
746
|
+
}, null, 8, ["stroke"])
|
|
747
|
+
], 36),
|
|
748
|
+
n("div", {
|
|
749
|
+
style: { width: "100%", "container-type": "inline-size" },
|
|
750
|
+
class: R({ "vue-ui-responsive": $e.value })
|
|
751
|
+
}, [
|
|
752
|
+
n("table", Wt, [
|
|
753
|
+
n("caption", {
|
|
754
|
+
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
755
|
+
class: "vue-ui-data-table__caption"
|
|
756
|
+
}, [
|
|
757
|
+
ot(d(e.value.style.chart.title.text) + " ", 1),
|
|
758
|
+
e.value.style.chart.title.subtitle.text ? (u(), i("span", jt, d(e.value.style.chart.title.subtitle.text), 1)) : g("", !0)
|
|
759
|
+
], 4),
|
|
760
|
+
n("thead", null, [
|
|
761
|
+
n("tr", {
|
|
762
|
+
role: "row",
|
|
763
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
764
|
+
}, [
|
|
765
|
+
(u(!0), i(W, null, j(w.value.head, (a) => (u(), i("th", {
|
|
766
|
+
style: c(`outline:${e.value.table.th.outline}`)
|
|
767
|
+
}, [
|
|
768
|
+
n("div", Yt, d(a), 1)
|
|
769
|
+
], 4))), 256))
|
|
770
|
+
], 4),
|
|
771
|
+
n("tr", null, [
|
|
772
|
+
n("th", {
|
|
773
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
774
|
+
}, null, 4),
|
|
775
|
+
n("th", {
|
|
776
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
777
|
+
}, "∑ " + d(e.value.table.td.prefix) + d(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + d(e.value.table.td.suffix), 5),
|
|
778
|
+
n("th", {
|
|
779
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
780
|
+
}, "100%", 4),
|
|
781
|
+
n("th", {
|
|
782
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
783
|
+
}, null, 4),
|
|
784
|
+
n("th", {
|
|
785
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
786
|
+
}, null, 4),
|
|
787
|
+
n("th", {
|
|
788
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
789
|
+
}, null, 4),
|
|
790
|
+
n("th", {
|
|
791
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
792
|
+
}, null, 4)
|
|
793
|
+
])
|
|
794
|
+
]),
|
|
795
|
+
n("tbody", null, [
|
|
796
|
+
(u(!0), i(W, null, j(w.value.body, (a, o) => (u(), i("tr", {
|
|
797
|
+
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 }),
|
|
798
|
+
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
799
|
+
}, [
|
|
800
|
+
n("td", {
|
|
801
|
+
class: "vue-ui-data-table__tbody__td",
|
|
802
|
+
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
803
|
+
"data-cell": w.value.head[0] ?? ""
|
|
804
|
+
}, [
|
|
805
|
+
n("div", Kt, [
|
|
806
|
+
a.color ? (u(), i("span", {
|
|
807
|
+
key: 0,
|
|
808
|
+
style: c(`color:${a.color};margin-right:3px`)
|
|
809
|
+
}, "⬤", 4)) : g("", !0),
|
|
810
|
+
n("span", null, d(a.parentName), 1)
|
|
811
|
+
])
|
|
812
|
+
], 12, qt),
|
|
813
|
+
n("td", {
|
|
814
|
+
class: "vue-ui-data-table__tbody__td",
|
|
815
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
816
|
+
"data-cell": w.value.head[1] ?? ""
|
|
817
|
+
}, [
|
|
818
|
+
n("div", Qt, d(e.value.table.td.prefix) + d(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + d(e.value.table.td.suffix), 1)
|
|
819
|
+
], 12, Jt),
|
|
820
|
+
n("td", {
|
|
821
|
+
class: "vue-ui-data-table__tbody__td",
|
|
822
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
823
|
+
"data-cell": w.value.head[2] ?? ""
|
|
824
|
+
}, [
|
|
825
|
+
n("div", ea, d(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
826
|
+
], 12, Zt),
|
|
827
|
+
n("td", {
|
|
828
|
+
class: "vue-ui-data-table__tbody__td",
|
|
829
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
830
|
+
"data-cell": w.value.head[3] ?? ""
|
|
831
|
+
}, [
|
|
832
|
+
n("div", aa, d(a.childName), 1)
|
|
833
|
+
], 12, ta),
|
|
834
|
+
n("td", {
|
|
835
|
+
class: "vue-ui-data-table__tbody__td",
|
|
836
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
837
|
+
"data-cell": w.value.head[4] ?? ""
|
|
838
|
+
}, [
|
|
839
|
+
n("div", oa, d(e.value.table.td.prefix) + d(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + d(e.value.table.td.suffix), 1)
|
|
840
|
+
], 12, la),
|
|
841
|
+
n("td", {
|
|
842
|
+
class: "vue-ui-data-table__tbody__td",
|
|
843
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
844
|
+
"data-cell": w.value.head[5] ?? ""
|
|
845
|
+
}, [
|
|
846
|
+
n("div", ua, d(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
847
|
+
], 12, na),
|
|
848
|
+
n("td", {
|
|
849
|
+
class: "vue-ui-data-table__tbody__td",
|
|
850
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
851
|
+
"data-cell": w.value.head[6] ?? ""
|
|
852
|
+
}, [
|
|
853
|
+
n("div", ra, d(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
854
|
+
], 12, sa)
|
|
855
|
+
], 6))), 256))
|
|
856
|
+
])
|
|
857
|
+
])
|
|
858
|
+
], 2)
|
|
859
|
+
])
|
|
860
|
+
], 512)
|
|
861
|
+
]),
|
|
862
|
+
_: 1
|
|
863
|
+
}, 8, ["config"])) : g("", !0)
|
|
864
|
+
], 14, Nt));
|
|
865
|
+
}
|
|
866
|
+
}, Ca = /* @__PURE__ */ Lt(ia, [["__scopeId", "data-v-0976c0bc"]]);
|
|
867
|
+
export {
|
|
868
|
+
Ca as default
|
|
869
|
+
};
|