vue-data-ui 2.3.45 → 2.3.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-HEq-nlrw.cjs → Arrow-C45xNtet.cjs} +1 -1
- package/dist/{Arrow-Ctlg95U8.js → Arrow-QBHviXQB.js} +1 -1
- package/dist/{BaseIcon-SOUJcJNI.js → BaseIcon-Ct3EasCg.js} +1 -1
- package/dist/{BaseIcon-DAllT7Xd.cjs → BaseIcon-NNgCqsH0.cjs} +1 -1
- package/dist/{DataTable-CpDBCn7U.cjs → DataTable-BGF6x8iX.cjs} +1 -1
- package/dist/{DataTable-zx4eBGpA.js → DataTable-CkeQ7c6_.js} +2 -2
- package/dist/{Legend-Ch4wH-kK.cjs → Legend-DjuRskVd.cjs} +1 -1
- package/dist/{Legend-DHmy6Ryw.js → Legend-aFYc_s9T.js} +1 -1
- package/dist/{Shape-Va1vqZKB.cjs → Shape-BTMZlA5Q.cjs} +1 -1
- package/dist/{Shape-CQnpEROe.js → Shape-DoAgLIYa.js} +1 -1
- package/dist/{Slicer-7qUL39RL.cjs → Slicer-BCr6bV0X.cjs} +1 -1
- package/dist/{Slicer-CwVoKTxE.js → Slicer-I9LVm-u8.js} +1 -1
- package/dist/{Title-Cw7gk_b-.js → Title-D8HoSXgM.js} +1 -1
- package/dist/{Title-tPZ6dD7n.cjs → Title-NelrBSGO.cjs} +1 -1
- package/dist/{Tooltip-mwVno8dy.cjs → Tooltip-CK94hatv.cjs} +1 -1
- package/dist/{Tooltip-Dh7Rk7h8.js → Tooltip-DTwn_FW5.js} +1 -1
- package/dist/{index-BtUHRUym.js → index-C1-FJ0sT.js} +6 -2
- package/dist/index-CEhe8nzy.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-dj8NfogN.js → useNestedProp-1fJhHDhT.js} +1 -1
- package/dist/{useNestedProp-BgiHePG5.cjs → useNestedProp-CcMb2mLY.cjs} +1 -1
- package/dist/{usePrinter-DWElqLH0.cjs → usePrinter-AfD8nrd2.cjs} +1 -1
- package/dist/{usePrinter-CG4wyZaf.js → usePrinter-B1a6uNio.js} +1 -1
- package/dist/{vue-data-ui-DlEHOUpL.cjs → vue-data-ui-DfYg-sm0.cjs} +1 -1
- package/dist/{vue-data-ui-D9OmfznV.js → vue-data-ui-DgzO0vYA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-vH1iEHhl.cjs → vue-ui-3d-bar-DctYjGhv.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BuoAlWbG.js → vue-ui-3d-bar-ikMJ_M47.js} +7 -7
- package/dist/{vue-ui-accordion-BN4KrzlD.js → vue-ui-accordion-BLoKd0D-.js} +3 -3
- package/dist/{vue-ui-accordion-CqQkjoPn.cjs → vue-ui-accordion-CS2POBdq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-B3d0MOlW.cjs → vue-ui-age-pyramid-6GljtWMq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-NwacHWds.js → vue-ui-age-pyramid-C9hzFCN4.js} +8 -8
- package/dist/{vue-ui-annotator-4CFg58OC.cjs → vue-ui-annotator-BFTGfEfF.cjs} +1 -1
- package/dist/{vue-ui-annotator-ByXR1gL3.js → vue-ui-annotator-DgdkTVYV.js} +1 -1
- package/dist/{vue-ui-candlestick-BfqazfiH.js → vue-ui-candlestick-BW-okjzH.js} +9 -9
- package/dist/{vue-ui-candlestick-DyA-ghJ9.cjs → vue-ui-candlestick-C31d7Jvz.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DYsH2Yp1.js → vue-ui-carousel-table-Cw7Vpun2.js} +4 -4
- package/dist/{vue-ui-carousel-table-CD2K7H-l.cjs → vue-ui-carousel-table-DlFu0byl.cjs} +1 -1
- package/dist/{vue-ui-chestnut-ZF9-nCi_.cjs → vue-ui-chestnut-B-H0j9-6.cjs} +1 -1
- package/dist/{vue-ui-chestnut-SRnaEdid.js → vue-ui-chestnut-SLvSoUlS.js} +6 -6
- package/dist/{vue-ui-cursor-BeoGVuIZ.js → vue-ui-cursor-BnoYo8DD.js} +2 -2
- package/dist/{vue-ui-cursor-BeDk95cI.cjs → vue-ui-cursor-eMGHt_Cm.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B46dE1gK.cjs → vue-ui-dashboard-BpwA8NTi.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DXbVeu6w.js → vue-ui-dashboard-cOx4Zbit.js} +2 -2
- package/dist/{vue-ui-digits-B7fD81ff.cjs → vue-ui-digits-MhR768JU.cjs} +1 -1
- package/dist/{vue-ui-digits-DizgKes0.js → vue-ui-digits-wo7Gctkj.js} +2 -2
- package/dist/{vue-ui-donut-BrI09Is-.cjs → vue-ui-donut-C4bFM2ww.cjs} +1 -1
- package/dist/{vue-ui-donut-B5vgDoBi.js → vue-ui-donut-CABoxvoV.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DQuNz9i2.cjs → vue-ui-donut-evolution-DzkcS9ET.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-C47y1eQp.js → vue-ui-donut-evolution-r6wIb3Tt.js} +9 -9
- package/dist/{vue-ui-dumbbell-3rDmDs-o.js → vue-ui-dumbbell-D3pvOoxP.js} +8 -8
- package/dist/{vue-ui-dumbbell-DU2QkGgz.cjs → vue-ui-dumbbell-DSSBvwhU.cjs} +1 -1
- package/dist/{vue-ui-flow-DOZhKpWR.js → vue-ui-flow-CCMFNXxy.js} +7 -7
- package/dist/{vue-ui-flow-B_x2ipPe.cjs → vue-ui-flow-Cp7EQLnA.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DlLG0xKi.js → vue-ui-galaxy-BVu0ZEeg.js} +9 -9
- package/dist/{vue-ui-galaxy-BesSgZcY.cjs → vue-ui-galaxy-DHXdjlQl.cjs} +1 -1
- package/dist/{vue-ui-gauge-8RafppPz.js → vue-ui-gauge-DRy_VLi-.js} +5 -5
- package/dist/{vue-ui-gauge-BxwG1Kwo.cjs → vue-ui-gauge-nnDuY2_P.cjs} +1 -1
- package/dist/{vue-ui-gizmo-7kvomyBv.js → vue-ui-gizmo-B8rEv-J5.js} +2 -2
- package/dist/{vue-ui-gizmo-BLGwCunm.cjs → vue-ui-gizmo-Bhqq90Gt.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DrYunXgc.js → vue-ui-heatmap-CESWvx6H.js} +8 -8
- package/dist/{vue-ui-heatmap-Cio9d_p1.cjs → vue-ui-heatmap-DoEghJHO.cjs} +1 -1
- package/dist/{vue-ui-kpi-d1wsMxlV.js → vue-ui-kpi-CBH1WOLl.js} +3 -3
- package/dist/{vue-ui-kpi-BqaqS0Sc.cjs → vue-ui-kpi-CHrIMR-b.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DhJ12J5b.cjs → vue-ui-mini-loader-CP5HRcth.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CJwfVr_M.js → vue-ui-mini-loader-YjK49sOM.js} +2 -2
- package/dist/{vue-ui-molecule-DxWAKzbW.cjs → vue-ui-molecule-BIuegM-N.cjs} +1 -1
- package/dist/{vue-ui-molecule-Uzqk850W.js → vue-ui-molecule-CZDSsnRY.js} +9 -9
- package/dist/{vue-ui-mood-radar-psceCBqR.js → vue-ui-mood-radar-CcnUPS5r.js} +9 -9
- package/dist/{vue-ui-mood-radar-DY8gtaPz.cjs → vue-ui-mood-radar-DYTpiKG1.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Bu9OL68Y.cjs → vue-ui-nested-donuts-CvPo6PIH.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CFiRn0jk.js → vue-ui-nested-donuts-Dk0HSrH4.js} +9 -9
- package/dist/{vue-ui-onion-kPRNeXuX.js → vue-ui-onion-C93R_Klx.js} +9 -9
- package/dist/{vue-ui-onion-CAxDBRGS.cjs → vue-ui-onion-C_Dy0awV.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DaVxlANN.cjs → vue-ui-parallel-coordinate-plot-Do8zOqso.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CYBmGnIu.js → vue-ui-parallel-coordinate-plot-aEJjFh7V.js} +10 -10
- package/dist/{vue-ui-quadrant-COeLNV2o.js → vue-ui-quadrant-7zsx3EOw.js} +10 -10
- package/dist/{vue-ui-quadrant-D182YkSv.cjs → vue-ui-quadrant-CMP5gv34.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DdsSfSj4.cjs → vue-ui-quick-chart-DlKpBf-X.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-S7bmmFTP.js → vue-ui-quick-chart-yGY2-cME.js} +6 -6
- package/dist/{vue-ui-radar-BjdwArGH.js → vue-ui-radar-CBAE5b_H.js} +10 -10
- package/dist/{vue-ui-radar-BNYp4Cvf.cjs → vue-ui-radar-FvOQWErL.cjs} +1 -1
- package/dist/{vue-ui-rating-Bms5i1i6.cjs → vue-ui-rating-D4ytgNsW.cjs} +1 -1
- package/dist/{vue-ui-rating-D3wjp0wH.js → vue-ui-rating-DCX9Hr51.js} +2 -2
- package/dist/{vue-ui-relation-circle-Bh_LkmOB.cjs → vue-ui-relation-circle-C0t4M_Eb.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D49d4Zkk.js → vue-ui-relation-circle-C5uvdRCs.js} +5 -5
- package/dist/{vue-ui-rings-D99azl6b.cjs → vue-ui-rings-CljU3aO-.cjs} +1 -1
- package/dist/{vue-ui-rings-C16aSDsP.js → vue-ui-rings-Cx9I0XCp.js} +9 -9
- package/dist/{vue-ui-scatter-C70x1iYX.cjs → vue-ui-scatter-BkvHY89U.cjs} +1 -1
- package/dist/{vue-ui-scatter-DfcaiZ96.js → vue-ui-scatter-BxrCbWPm.js} +10 -10
- package/dist/{vue-ui-screenshot-DvDE7zxX.cjs → vue-ui-screenshot-B198lkuF.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bf1vsmAF.js → vue-ui-screenshot-Cf9NK_5w.js} +1 -1
- package/dist/{vue-ui-skeleton-BcXNZYl9.js → vue-ui-skeleton-DogpCRv2.js} +2 -2
- package/dist/{vue-ui-skeleton-c-ouk0AX.cjs → vue-ui-skeleton-DpqVx122.cjs} +1 -1
- package/dist/{vue-ui-smiley-CLoPBQAZ.cjs → vue-ui-smiley-Hv5SONWU.cjs} +1 -1
- package/dist/{vue-ui-smiley-CreoeEFq.js → vue-ui-smiley-wnlpDBHn.js} +2 -2
- package/dist/{vue-ui-spark-trend-DUb_IRKf.cjs → vue-ui-spark-trend-DBFYuxbh.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D_tOD4Ta.js → vue-ui-spark-trend-_STSpU0x.js} +4 -4
- package/dist/{vue-ui-sparkbar-CsIEMgM0.js → vue-ui-sparkbar-B2C4gKQS.js} +3 -3
- package/dist/{vue-ui-sparkbar-Bsq08omU.cjs → vue-ui-sparkbar-D1OrFmz5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Ctekz6Kd.cjs → vue-ui-sparkgauge-CgX6ZpW7.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-3YzN4m6q.js → vue-ui-sparkgauge-fsJt_SRA.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CKDuTdfc.cjs → vue-ui-sparkhistogram-CV8k8NPB.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjWwG7Zl.js → vue-ui-sparkhistogram-gue0JMvB.js} +4 -4
- package/dist/{vue-ui-sparkline-XrDJFglg.js → vue-ui-sparkline-ClFxAQkz.js} +3 -3
- package/dist/{vue-ui-sparkline-B91EoUVn.cjs → vue-ui-sparkline-DN7RZ5FX.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BKKSkrnj.js → vue-ui-sparkstackbar-3D6MkgTR.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-r0XJQN3g.cjs → vue-ui-sparkstackbar-Dxy0P3xJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CL5GsQiN.cjs → vue-ui-stackbar-BY0bcCBX.cjs} +2 -2
- package/dist/{vue-ui-stackbar-D4J9Z7wX.js → vue-ui-stackbar-DAFHq-wh.js} +300 -299
- package/dist/{vue-ui-strip-plot-DsuLc5K4.js → vue-ui-strip-plot-B3ItWHyf.js} +9 -9
- package/dist/{vue-ui-strip-plot--P365ByW.cjs → vue-ui-strip-plot-lfB-YBkt.cjs} +1 -1
- package/dist/{vue-ui-table-CGrGa90U.cjs → vue-ui-table-CiksARcd.cjs} +1 -1
- package/dist/{vue-ui-table-DJjj6FvX.js → vue-ui-table-Dxc80GV0.js} +1 -1
- package/dist/{vue-ui-table-heatmap-Dql-qWPD.js → vue-ui-table-heatmap-AI2JeTUR.js} +4 -4
- package/dist/{vue-ui-table-heatmap-v9N0LVg3.cjs → vue-ui-table-heatmap-C_Wr83fl.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-LIvHkJR_.cjs → vue-ui-table-sparkline-BPYQI2Vo.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C9TVGFyf.js → vue-ui-table-sparkline-D2KWAYWO.js} +5 -5
- package/dist/{vue-ui-thermometer-4aCLqzTu.cjs → vue-ui-thermometer-BopRBXkF.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BEexIekI.js → vue-ui-thermometer-szsOVqgO.js} +5 -5
- package/dist/{vue-ui-timer-CY7pvqXf.js → vue-ui-timer-CpuqP9iZ.js} +4 -4
- package/dist/{vue-ui-timer-CuJ9p9tE.cjs → vue-ui-timer-Ctcaiaej.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-D7LgNJ-Z.js → vue-ui-tiremarks-9P4vBFZV.js} +5 -5
- package/dist/{vue-ui-tiremarks-BCfOhCQd.cjs → vue-ui-tiremarks-Cge2TXFU.cjs} +1 -1
- package/dist/{vue-ui-treemap-HRbke0i3.cjs → vue-ui-treemap-BxdorPsS.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dg58TlVx.js → vue-ui-treemap-CLOwIrHN.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BmOJ8w-M.cjs → vue-ui-vertical-bar-BREOjM7U.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DYHw0QLR.js → vue-ui-vertical-bar-Br8Slvab.js} +9 -9
- package/dist/{vue-ui-waffle-BWDLUS-8.js → vue-ui-waffle-B62b9gwj.js} +9 -9
- package/dist/{vue-ui-waffle-DiNMc4kF.cjs → vue-ui-waffle-CPqrsii3.cjs} +1 -1
- package/dist/{vue-ui-wheel-D5EMxg2C.js → vue-ui-wheel-B3Nw-ICG.js} +5 -5
- package/dist/{vue-ui-wheel-DSudyI0a.cjs → vue-ui-wheel-HqeFI8W9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CXx7qEQS.cjs → vue-ui-word-cloud-B_W87vAs.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BcW7UgaX.js → vue-ui-word-cloud-HgAIxI93.js} +7 -7
- package/dist/{vue-ui-xy-JfWTcv1D.cjs → vue-ui-xy-CWQd12R4.cjs} +1 -1
- package/dist/{vue-ui-xy-CAJ3QM9F.js → vue-ui-xy-DpqyiCx6.js} +12 -12
- package/dist/{vue-ui-xy-canvas-BFRvVrf9.cjs → vue-ui-xy-canvas-5f_5ULEA.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BPAwiR3E.js → vue-ui-xy-canvas-CjGlVtb_.js} +10 -10
- package/package.json +1 -1
- package/dist/index-B2yAjO70.cjs +0 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { L as
|
|
10
|
-
import
|
|
11
|
-
import { D as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { computed as p, ref as f, onMounted as Ae, openBlock as s, createElementBlock as u, normalizeClass as ce, normalizeStyle as K, renderSlot as _, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ht, withCtx as z, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as S, createTextVNode as dt } from "vue";
|
|
2
|
+
import { u as yt, c as De, o as gt, e as Ee, g as bt, t as ft, a as mt, p as oe, _ as He, b as pt, d as xt, a0 as se, V as Be, A as We, X as kt, l as wt, D as Xe, f as E, v as Ue, w as Ye, i as Ge, x as Ct, q as _t, r as zt } from "./index-C1-FJ0sT.js";
|
|
3
|
+
import { u as Je } from "./useNestedProp-1fJhHDhT.js";
|
|
4
|
+
import { t as Lt, u as St } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import { u as $t, U as Mt } from "./usePrinter-B1a6uNio.js";
|
|
6
|
+
import { S as Tt } from "./Slicer-I9LVm-u8.js";
|
|
7
|
+
import { _ as Nt } from "./Tooltip-DTwn_FW5.js";
|
|
8
|
+
import { _ as Ot } from "./Title-D8HoSXgM.js";
|
|
9
|
+
import { L as Pt } from "./Legend-aFYc_s9T.js";
|
|
10
|
+
import Rt from "./vue-ui-accordion-BLoKd0D-.js";
|
|
11
|
+
import { D as It } from "./DataTable-CkeQ7c6_.js";
|
|
12
|
+
import Vt from "./vue-ui-skeleton-DogpCRv2.js";
|
|
13
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt = ["stop-color"], Wt = ["stop-color"], Xt = ["stop-color"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x1", "x2", "y1", "y2", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke"], qt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Zt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["transform", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = { key: 0 }, la = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x", "y", "font-size", "fill", "font-weight"], oa = { key: 0 }, sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["x", "y", "font-size", "font-weight", "fill"], na = ["x1", "x2", "y1", "y2", "stroke"], ca = ["font-size", "font-weight", "fill", "text-anchor", "transform"], va = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ha = ["font-size", "font-weight", "fill", "x", "y"], da = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ya = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ga = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, ba = ["onClick"], fa = ["innerHTML"], ma = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,29 +31,29 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend"],
|
|
34
|
-
setup(he, { expose:
|
|
35
|
-
const
|
|
34
|
+
setup(he, { expose: qe, emit: de }) {
|
|
35
|
+
const k = he, { vue_ui_stackbar: Ze } = yt(), H = p({
|
|
36
36
|
get() {
|
|
37
|
-
return !!
|
|
37
|
+
return !!k.dataset && k.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), X = f(null), ie = f(De()), j = f(!1), ye = f(null), ue = f(""),
|
|
42
|
+
}), X = f(null), ie = f(De()), j = f(!1), ye = f(null), ue = f(""), L = f([]), ge = f(0), be = f(null), fe = f(null), me = f(null), pe = f(0), ne = f(!1), U = f(null), Y = f(!1);
|
|
43
43
|
Ae(() => {
|
|
44
|
-
|
|
44
|
+
gt(k.dataset) ? Ee({
|
|
45
45
|
componentName: "VueUiStackbar",
|
|
46
46
|
type: "dataset"
|
|
47
|
-
}) :
|
|
48
|
-
|
|
47
|
+
}) : k.dataset.forEach((a, r) => {
|
|
48
|
+
bt({
|
|
49
49
|
datasetObject: a,
|
|
50
50
|
requiredAttributes: ["name", "series"]
|
|
51
51
|
}).forEach((t) => {
|
|
52
|
-
|
|
52
|
+
H.value = !1, Ee({
|
|
53
53
|
componentName: "VueUiStackbar",
|
|
54
54
|
type: "datasetSerieAttribute",
|
|
55
55
|
property: t,
|
|
56
|
-
index:
|
|
56
|
+
index: r
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}), setTimeout(() => {
|
|
@@ -61,24 +61,25 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
61
61
|
}, 10);
|
|
62
62
|
});
|
|
63
63
|
const e = p(() => {
|
|
64
|
-
const a =
|
|
65
|
-
userConfig:
|
|
66
|
-
defaultConfig:
|
|
64
|
+
const a = Je({
|
|
65
|
+
userConfig: k.config,
|
|
66
|
+
defaultConfig: Ze
|
|
67
67
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
let r = {};
|
|
69
|
+
return a.theme ? r = {
|
|
70
|
+
...Je({
|
|
71
|
+
userConfig: ft.vue_ui_stackbar[a.theme] || k.config,
|
|
71
72
|
defaultConfig: a
|
|
72
73
|
}),
|
|
73
|
-
customPalette:
|
|
74
|
-
} : a;
|
|
75
|
-
}),
|
|
74
|
+
customPalette: mt[a.theme] || oe
|
|
75
|
+
} : r = a, k.config && He(k.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = k.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, k.config && He(k.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = k.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, r;
|
|
76
|
+
}), C = f({
|
|
76
77
|
dataLabels: {
|
|
77
78
|
show: e.value.style.chart.bars.dataLabels.show
|
|
78
79
|
},
|
|
79
80
|
showTable: e.value.table.show,
|
|
80
81
|
showTooltip: e.value.style.chart.tooltip.show
|
|
81
|
-
}), { isPrinting: xe, isImaging: ke, generatePdf: we, generateImage: Ce } =
|
|
82
|
+
}), { isPrinting: xe, isImaging: ke, generatePdf: we, generateImage: Ce } = $t({
|
|
82
83
|
elementId: `stackbar_${ie.value}`,
|
|
83
84
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
84
85
|
}), ee = f({
|
|
@@ -90,176 +91,176 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
90
91
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
91
92
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
92
93
|
}
|
|
93
|
-
}),
|
|
94
|
+
}), Ke = p(() => pt(e.value.customPalette)), _e = f(null), ze = f(null);
|
|
94
95
|
Ae(() => {
|
|
95
96
|
if (e.value.responsive) {
|
|
96
|
-
const a =
|
|
97
|
+
const a = Lt(() => {
|
|
97
98
|
Y.value = !1;
|
|
98
|
-
const { width:
|
|
99
|
+
const { width: r, height: t } = St({
|
|
99
100
|
chart: X.value,
|
|
100
101
|
title: e.value.style.chart.title.text ? be.value : null,
|
|
101
102
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
102
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
103
|
+
slicer: e.value.style.chart.zoom.show && R.value > 1 ? me.value : null
|
|
103
104
|
});
|
|
104
|
-
ee.value.width =
|
|
105
|
+
ee.value.width = r, ee.value.height = t, clearTimeout(ze.value), ze.value = setTimeout(() => {
|
|
105
106
|
Y.value = !0;
|
|
106
107
|
}, 10);
|
|
107
108
|
});
|
|
108
109
|
_e.value = new ResizeObserver(a), _e.value.observe(X.value.parentNode);
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
|
-
const
|
|
112
|
-
const { height: a, width:
|
|
112
|
+
const o = p(() => {
|
|
113
|
+
const { height: a, width: r } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = r - r * t, n = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, I = r - w - r * t, V = a - l - e.value.style.chart.padding.bottom;
|
|
113
114
|
return {
|
|
114
115
|
chartHeight: a,
|
|
115
|
-
chartWidth:
|
|
116
|
+
chartWidth: r,
|
|
116
117
|
top: l,
|
|
117
118
|
right: i,
|
|
118
119
|
bottom: n,
|
|
119
|
-
left:
|
|
120
|
+
left: w,
|
|
120
121
|
width: I,
|
|
121
122
|
height: V < 0 ? 0 : V
|
|
122
123
|
};
|
|
123
|
-
}),
|
|
124
|
-
const t =
|
|
124
|
+
}), P = p(() => k.dataset.map((a, r) => {
|
|
125
|
+
const t = xt(a.color) || Ke.value[r] || oe[r] || oe[r % oe.length];
|
|
125
126
|
return {
|
|
126
127
|
...a,
|
|
127
128
|
// In distributed mode, all values are converted to positive
|
|
128
129
|
series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
|
|
129
130
|
// Store signs to manage display of neg values in distributed mode
|
|
130
131
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
131
|
-
absoluteIndex:
|
|
132
|
+
absoluteIndex: r,
|
|
132
133
|
id: De(),
|
|
133
134
|
color: t
|
|
134
135
|
};
|
|
135
|
-
})),
|
|
136
|
+
})), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = f({
|
|
136
137
|
start: 0,
|
|
137
|
-
end: Math.max(...
|
|
138
|
+
end: Math.max(...k.dataset.map((a) => a.series.length))
|
|
138
139
|
});
|
|
139
|
-
function
|
|
140
|
+
function Qe() {
|
|
140
141
|
c.value = {
|
|
141
142
|
start: 0,
|
|
142
|
-
end: Math.max(...
|
|
143
|
+
end: Math.max(...k.dataset.map((a) => a.series.length))
|
|
143
144
|
}, pe.value += 1;
|
|
144
145
|
}
|
|
145
146
|
const d = p(() => {
|
|
146
147
|
let a;
|
|
147
|
-
return e.value.orientation === "vertical" ? a =
|
|
148
|
-
}), G = p(() => se(
|
|
148
|
+
return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
149
|
+
}), G = p(() => se(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), je = p(() => se(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
149
150
|
...a,
|
|
150
|
-
series: a.series.map((
|
|
151
|
+
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
151
152
|
}))).slice(c.value.start, c.value.end)), te = p(() => {
|
|
152
|
-
const a =
|
|
153
|
+
const a = P.value.filter((r) => !L.value.includes(r.id));
|
|
153
154
|
return {
|
|
154
|
-
positive: se(a.map((
|
|
155
|
-
...
|
|
156
|
-
series:
|
|
155
|
+
positive: se(a.map((r) => ({
|
|
156
|
+
...r,
|
|
157
|
+
series: r.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
157
158
|
}))),
|
|
158
|
-
negative: se(a.map((
|
|
159
|
-
...
|
|
160
|
-
series:
|
|
159
|
+
negative: se(a.map((r) => ({
|
|
160
|
+
...r,
|
|
161
|
+
series: r.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
161
162
|
})))
|
|
162
163
|
};
|
|
163
164
|
}), N = p(() => {
|
|
164
|
-
const a = Math.max(...te.value.positive),
|
|
165
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : We(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
165
166
|
return l.ticks.map((i) => ({
|
|
166
|
-
zero:
|
|
167
|
-
y:
|
|
168
|
-
x:
|
|
169
|
-
horizontal_zero:
|
|
170
|
-
horizontal_x:
|
|
171
|
-
horizontal_y:
|
|
167
|
+
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
168
|
+
y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
169
|
+
x: o.value.left - 8,
|
|
170
|
+
horizontal_zero: o.value.left + o.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
171
|
+
horizontal_x: o.value.left + o.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
172
|
+
horizontal_y: o.value.bottom - 8,
|
|
172
173
|
value: i
|
|
173
174
|
}));
|
|
174
175
|
}), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
|
|
175
|
-
if (!
|
|
176
|
-
let a = Array(
|
|
177
|
-
const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative),
|
|
178
|
-
return
|
|
179
|
-
const O = Z.series.slice(c.value.start, c.value.end),
|
|
180
|
-
const
|
|
176
|
+
if (!H.value) return [];
|
|
177
|
+
let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
|
|
178
|
+
const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Be(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : We(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: q } = I, F = q + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, Ve = N.value[0] ? N.value[0].zero : o.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
|
|
179
|
+
return P.value.filter((Z) => !L.value.includes(Z.id)).map((Z) => {
|
|
180
|
+
const O = Z.series.slice(c.value.start, c.value.end), rt = Z.signedSeries.slice(c.value.start, c.value.end), ot = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), st = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), it = O.map((y, g) => {
|
|
181
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
181
182
|
let A, T;
|
|
182
|
-
return y > 0 ? (T =
|
|
183
|
-
}), st = O.map((y, g) => {
|
|
184
|
-
const $ = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
185
|
-
let A, T;
|
|
186
|
-
return y > 0 ? (T = oe * $, A = Fe + o[g], o[g] += T) : (T = oe * $, A = Fe - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
|
|
187
|
-
}), it = O.map((y, g) => {
|
|
188
|
-
const $ = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
189
|
-
return y > 0 ? S * $ : S * Math.abs($);
|
|
183
|
+
return y > 0 ? (T = $ * M, A = Ve - T - a[g], a[g] += T) : (T = $ * M, A = Ve + t[g], t[g] += Math.abs(T)), A;
|
|
190
184
|
}), ut = O.map((y, g) => {
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
186
|
+
let A, T;
|
|
187
|
+
return y > 0 ? (T = re * M, A = Fe + r[g], r[g] += T) : (T = re * M, A = Fe - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
|
|
188
|
+
}), nt = O.map((y, g) => {
|
|
189
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
190
|
+
return y > 0 ? $ * M : $ * Math.abs(M);
|
|
191
|
+
}), ct = O.map((y, g) => {
|
|
192
|
+
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
193
|
+
return y > 0 ? re * M : re * Math.abs(M);
|
|
194
|
+
}), vt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
|
|
194
195
|
return {
|
|
195
196
|
...Z,
|
|
196
|
-
proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) /
|
|
197
|
+
proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / vt),
|
|
197
198
|
series: O,
|
|
198
|
-
signedSeries:
|
|
199
|
-
x:
|
|
200
|
-
y:
|
|
201
|
-
height:
|
|
202
|
-
horizontal_width:
|
|
203
|
-
horizontal_y:
|
|
204
|
-
horizontal_x:
|
|
199
|
+
signedSeries: rt,
|
|
200
|
+
x: ot,
|
|
201
|
+
y: it,
|
|
202
|
+
height: nt,
|
|
203
|
+
horizontal_width: ct,
|
|
204
|
+
horizontal_y: st,
|
|
205
|
+
horizontal_x: ut
|
|
205
206
|
};
|
|
206
207
|
});
|
|
207
|
-
}), Le = p(() =>
|
|
208
|
+
}), Le = p(() => je.value.map((a, r) => ({
|
|
208
209
|
value: a,
|
|
209
210
|
sign: a >= 0 ? 1 : -1
|
|
210
211
|
})));
|
|
211
|
-
function ae(a,
|
|
212
|
+
function ae(a, r, t, l, i) {
|
|
212
213
|
const n = i === -1 && a >= 0 ? -a : a;
|
|
213
|
-
return
|
|
214
|
+
return Ge(
|
|
214
215
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
215
216
|
n,
|
|
216
|
-
|
|
217
|
+
E({
|
|
217
218
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
218
219
|
v: n,
|
|
219
220
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
220
221
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
221
222
|
}),
|
|
222
|
-
{ datapoint:
|
|
223
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
223
224
|
);
|
|
224
225
|
}
|
|
225
|
-
function Se(a,
|
|
226
|
-
return
|
|
226
|
+
function Se(a, r, t, l) {
|
|
227
|
+
return Ge(
|
|
227
228
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
228
229
|
a,
|
|
229
|
-
|
|
230
|
+
E({
|
|
230
231
|
v: a,
|
|
231
232
|
s: "%",
|
|
232
233
|
r: e.value.style.chart.bars.dataLabels.rounding
|
|
233
234
|
}),
|
|
234
|
-
{ datapoint:
|
|
235
|
+
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
235
236
|
);
|
|
236
237
|
}
|
|
237
238
|
function $e(a) {
|
|
238
|
-
const
|
|
239
|
+
const r = JSON.parse(JSON.stringify(m.value)).map((t) => ({
|
|
239
240
|
name: t.name,
|
|
240
241
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
241
242
|
proportion: t.proportions[a] || null,
|
|
242
243
|
color: t.color,
|
|
243
244
|
id: t.id
|
|
244
245
|
}));
|
|
245
|
-
de("selectDatapoint", { datapoint:
|
|
246
|
+
de("selectDatapoint", { datapoint: r, period: J.value[a] });
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function Me(a) {
|
|
248
249
|
U.value = a, j.value = !0;
|
|
249
|
-
const
|
|
250
|
+
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
|
|
250
251
|
name: i.name,
|
|
251
252
|
value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
|
|
252
253
|
proportion: i.proportions[a] || null,
|
|
253
254
|
color: i.color,
|
|
254
255
|
id: i.id
|
|
255
256
|
})), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
|
|
256
|
-
if (
|
|
257
|
+
if (Ye(r) && Ct(() => r({
|
|
257
258
|
seriesIndex: a,
|
|
258
259
|
datapoint: t,
|
|
259
260
|
series: m.value,
|
|
260
261
|
config: e.value
|
|
261
262
|
})))
|
|
262
|
-
ue.value =
|
|
263
|
+
ue.value = r({
|
|
263
264
|
seriesIndex: a,
|
|
264
265
|
datapoint: t,
|
|
265
266
|
series: m.value,
|
|
@@ -269,27 +270,27 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
269
270
|
const {
|
|
270
271
|
showValue: i,
|
|
271
272
|
showPercentage: n,
|
|
272
|
-
borderColor:
|
|
273
|
+
borderColor: w,
|
|
273
274
|
roundingValue: I,
|
|
274
275
|
roundingPercentage: V
|
|
275
276
|
} = e.value.style.chart.tooltip;
|
|
276
277
|
let q = "";
|
|
277
|
-
J.value[a] && (q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
278
|
+
J.value[a] && (q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${w};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
|
|
278
279
|
const F = [
|
|
279
280
|
i && n ? "(" : "",
|
|
280
281
|
i && n ? ")" : ""
|
|
281
282
|
];
|
|
282
|
-
t.reverse().forEach((
|
|
283
|
+
t.reverse().forEach(($) => {
|
|
283
284
|
q += `
|
|
284
285
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
285
|
-
<svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${
|
|
286
|
-
${
|
|
286
|
+
<svg viewBox="0 0 12 12" height="14" width="14"><rect rx="1" x="0" y="0" height="12" width="12" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${$.id})` : $.color}"/></svg>
|
|
287
|
+
${$.name}${i || n ? ":" : ""} ${i ? E({
|
|
287
288
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
288
|
-
v:
|
|
289
|
+
v: $.value,
|
|
289
290
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
290
291
|
r: I
|
|
291
|
-
}) : ""} ${F[0]}${n ?
|
|
292
|
-
v: isNaN(
|
|
292
|
+
}) : ""} ${F[0]}${n ? E({
|
|
293
|
+
v: isNaN($.value / l) ? 0 : Math.abs($.value) / l * 100,
|
|
293
294
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
294
295
|
s: "%",
|
|
295
296
|
r: V
|
|
@@ -299,45 +300,45 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
299
300
|
}), ue.value = `<div>${q}</div>`;
|
|
300
301
|
}
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function et(a) {
|
|
303
304
|
ne.value = a, ge.value += 1;
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
306
|
+
function Te() {
|
|
307
|
+
C.value.showTable = !C.value.showTable;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
309
|
+
function Ne() {
|
|
310
|
+
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
310
311
|
}
|
|
311
312
|
function Oe() {
|
|
312
|
-
|
|
313
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
+
function tt() {
|
|
315
316
|
return m.value;
|
|
316
317
|
}
|
|
317
|
-
const
|
|
318
|
+
const Pe = p(() => {
|
|
318
319
|
if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
319
320
|
const a = m.value.map(({ name: t, color: l }) => ({
|
|
320
321
|
label: t,
|
|
321
322
|
color: l
|
|
322
|
-
})),
|
|
323
|
+
})), r = [];
|
|
323
324
|
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
324
325
|
const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
325
|
-
|
|
326
|
+
P.value.forEach((i) => {
|
|
326
327
|
l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
327
|
-
}),
|
|
328
|
+
}), r.push(l);
|
|
328
329
|
}
|
|
329
|
-
return { head: a, body:
|
|
330
|
+
return { head: a, body: r };
|
|
330
331
|
});
|
|
331
|
-
function
|
|
332
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]],
|
|
333
|
-
|
|
332
|
+
function Re() {
|
|
333
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Pe.value.head.map((n) => n.label)], t = Pe.value.body, l = a.concat([r]).concat(t), i = _t(l);
|
|
334
|
+
zt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
334
335
|
}
|
|
335
336
|
const le = p(() => {
|
|
336
337
|
const a = [""].concat(m.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
337
|
-
let
|
|
338
|
-
for (let i = 0; i <
|
|
339
|
-
const n = m.value.map((
|
|
340
|
-
|
|
338
|
+
let r = [];
|
|
339
|
+
for (let i = 0; i < R.value; i += 1) {
|
|
340
|
+
const n = m.value.map((w) => w.series[i] ?? 0).reduce((w, I) => w + I, 0);
|
|
341
|
+
r.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((w) => (w.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
341
342
|
}
|
|
342
343
|
const t = {
|
|
343
344
|
th: {
|
|
@@ -352,25 +353,25 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
352
353
|
},
|
|
353
354
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
354
355
|
}, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
|
|
355
|
-
return { head: a, body:
|
|
356
|
+
return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
356
357
|
});
|
|
357
|
-
function
|
|
358
|
-
if (de("selectLegend", m.value.find((t) => t.absoluteIndex === a)),
|
|
359
|
-
|
|
358
|
+
function at(a, r) {
|
|
359
|
+
if (de("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
|
|
360
|
+
L.value = L.value.filter((t) => t !== r.id);
|
|
360
361
|
else {
|
|
361
|
-
if (
|
|
362
|
-
|
|
362
|
+
if (L.value.length === P.value.length - 1) return;
|
|
363
|
+
L.value.push(r.id);
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
|
-
const Ie = p(() =>
|
|
366
|
+
const Ie = p(() => P.value.map((a, r) => ({
|
|
366
367
|
...a,
|
|
367
368
|
shape: "square"
|
|
368
369
|
})).map((a) => ({
|
|
369
370
|
...a,
|
|
370
|
-
opacity:
|
|
371
|
-
segregate: () =>
|
|
372
|
-
isSegregated:
|
|
373
|
-
}))),
|
|
371
|
+
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
372
|
+
segregate: () => at(a.absoluteIndex, a),
|
|
373
|
+
isSegregated: L.value.includes(a.id)
|
|
374
|
+
}))), lt = p(() => ({
|
|
374
375
|
cy: "stackbar-legend",
|
|
375
376
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
376
377
|
color: e.value.style.chart.legend.color,
|
|
@@ -378,29 +379,29 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
378
379
|
paddingBottom: 12,
|
|
379
380
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
380
381
|
}));
|
|
381
|
-
return
|
|
382
|
-
getData:
|
|
382
|
+
return qe({
|
|
383
|
+
getData: tt,
|
|
383
384
|
generatePdf: we,
|
|
384
|
-
generateCsv:
|
|
385
|
+
generateCsv: Re,
|
|
385
386
|
generateImage: Ce,
|
|
386
|
-
toggleTable:
|
|
387
|
-
toggleLabels:
|
|
387
|
+
toggleTable: Te,
|
|
388
|
+
toggleLabels: Ne,
|
|
388
389
|
toggleTooltip: Oe
|
|
389
|
-
}), (a,
|
|
390
|
+
}), (a, r) => (s(), u("div", {
|
|
390
391
|
id: `stackbar_${ie.value}`,
|
|
391
392
|
ref_key: "stackbarChart",
|
|
392
393
|
ref: X,
|
|
393
394
|
class: ce({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
394
395
|
style: K(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
395
396
|
}, [
|
|
396
|
-
|
|
397
|
+
_(a.$slots, "userConfig", {}, void 0, !0),
|
|
397
398
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
398
399
|
key: 0,
|
|
399
400
|
ref_key: "chartTitle",
|
|
400
401
|
ref: be,
|
|
401
402
|
style: K(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
402
403
|
}, [
|
|
403
|
-
ve(
|
|
404
|
+
ve(Ot, {
|
|
404
405
|
config: {
|
|
405
406
|
title: {
|
|
406
407
|
cy: "stackbar-title",
|
|
@@ -413,7 +414,7 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
413
414
|
}
|
|
414
415
|
}, null, 8, ["config"])
|
|
415
416
|
], 4)) : v("", !0),
|
|
416
|
-
e.value.userOptions.show &&
|
|
417
|
+
e.value.userOptions.show && H.value ? (s(), Q(Mt, {
|
|
417
418
|
ref: "details",
|
|
418
419
|
key: `user_option_${ge.value}`,
|
|
419
420
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -430,73 +431,73 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
430
431
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
431
432
|
isFullscreen: ne.value,
|
|
432
433
|
chartElement: X.value,
|
|
433
|
-
isTooltip:
|
|
434
|
+
isTooltip: C.value.showTooltip,
|
|
434
435
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
435
|
-
onToggleFullscreen:
|
|
436
|
+
onToggleFullscreen: et,
|
|
436
437
|
onGeneratePdf: x(we),
|
|
437
|
-
onGenerateCsv:
|
|
438
|
+
onGenerateCsv: Re,
|
|
438
439
|
onGenerateImage: x(Ce),
|
|
439
|
-
onToggleTable:
|
|
440
|
-
onToggleLabels:
|
|
440
|
+
onToggleTable: Te,
|
|
441
|
+
onToggleLabels: Ne,
|
|
441
442
|
onToggleTooltip: Oe
|
|
442
|
-
},
|
|
443
|
+
}, ht({ _: 2 }, [
|
|
443
444
|
a.$slots.optionTooltip ? {
|
|
444
445
|
name: "optionTooltip",
|
|
445
|
-
fn:
|
|
446
|
-
|
|
446
|
+
fn: z(() => [
|
|
447
|
+
_(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
447
448
|
]),
|
|
448
449
|
key: "0"
|
|
449
450
|
} : void 0,
|
|
450
451
|
a.$slots.optionPdf ? {
|
|
451
452
|
name: "optionPdf",
|
|
452
|
-
fn:
|
|
453
|
-
|
|
453
|
+
fn: z(() => [
|
|
454
|
+
_(a.$slots, "optionPdf", {}, void 0, !0)
|
|
454
455
|
]),
|
|
455
456
|
key: "1"
|
|
456
457
|
} : void 0,
|
|
457
458
|
a.$slots.optionCsv ? {
|
|
458
459
|
name: "optionCsv",
|
|
459
|
-
fn:
|
|
460
|
-
|
|
460
|
+
fn: z(() => [
|
|
461
|
+
_(a.$slots, "optionCsv", {}, void 0, !0)
|
|
461
462
|
]),
|
|
462
463
|
key: "2"
|
|
463
464
|
} : void 0,
|
|
464
465
|
a.$slots.optionImg ? {
|
|
465
466
|
name: "optionImg",
|
|
466
|
-
fn:
|
|
467
|
-
|
|
467
|
+
fn: z(() => [
|
|
468
|
+
_(a.$slots, "optionImg", {}, void 0, !0)
|
|
468
469
|
]),
|
|
469
470
|
key: "3"
|
|
470
471
|
} : void 0,
|
|
471
472
|
a.$slots.optionTable ? {
|
|
472
473
|
name: "optionTable",
|
|
473
|
-
fn:
|
|
474
|
-
|
|
474
|
+
fn: z(() => [
|
|
475
|
+
_(a.$slots, "optionTable", {}, void 0, !0)
|
|
475
476
|
]),
|
|
476
477
|
key: "4"
|
|
477
478
|
} : void 0,
|
|
478
479
|
a.$slots.optionLabels ? {
|
|
479
480
|
name: "optionLabels",
|
|
480
|
-
fn:
|
|
481
|
-
|
|
481
|
+
fn: z(() => [
|
|
482
|
+
_(a.$slots, "optionLabels", {}, void 0, !0)
|
|
482
483
|
]),
|
|
483
484
|
key: "5"
|
|
484
485
|
} : void 0,
|
|
485
486
|
a.$slots.optionFullscreen ? {
|
|
486
487
|
name: "optionFullscreen",
|
|
487
|
-
fn:
|
|
488
|
-
|
|
488
|
+
fn: z(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
489
|
+
_(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
489
490
|
]),
|
|
490
491
|
key: "6"
|
|
491
492
|
} : void 0
|
|
492
493
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
493
|
-
|
|
494
|
+
H.value ? (s(), u("svg", {
|
|
494
495
|
key: 2,
|
|
495
|
-
xmlns: x(
|
|
496
|
-
viewBox: `0 0 ${
|
|
496
|
+
xmlns: x(kt),
|
|
497
|
+
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
497
498
|
style: K(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
498
499
|
}, [
|
|
499
|
-
e.value.style.chart.bars.gradient.show ? (s(), u("defs",
|
|
500
|
+
e.value.style.chart.bars.gradient.show ? (s(), u("defs", Et, [
|
|
500
501
|
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("linearGradient", {
|
|
501
502
|
id: `gradient_${t.id}`,
|
|
502
503
|
x1: "0%",
|
|
@@ -507,53 +508,53 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
507
508
|
D("stop", {
|
|
508
509
|
offset: "0%",
|
|
509
510
|
"stop-color": t.color
|
|
510
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Bt),
|
|
511
512
|
D("stop", {
|
|
512
513
|
offset: "61.8%",
|
|
513
|
-
"stop-color": x(
|
|
514
|
-
}, null, 8,
|
|
514
|
+
"stop-color": x(wt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
515
|
+
}, null, 8, Wt),
|
|
515
516
|
D("stop", {
|
|
516
517
|
offset: "100%",
|
|
517
518
|
"stop-color": t.color
|
|
518
|
-
}, null, 8,
|
|
519
|
-
], 8,
|
|
519
|
+
}, null, 8, Xt)
|
|
520
|
+
], 8, Ht))), 256))
|
|
520
521
|
])) : v("", !0),
|
|
521
522
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 }, b(N.value, (t, l) => (s(), u("line", {
|
|
522
|
-
x1:
|
|
523
|
-
x2:
|
|
523
|
+
x1: o.value.left,
|
|
524
|
+
x2: o.value.right,
|
|
524
525
|
y1: t.y,
|
|
525
526
|
y2: t.y,
|
|
526
527
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
527
528
|
"stroke-width": 1,
|
|
528
529
|
"stroke-linecap": "round"
|
|
529
|
-
}, null, 8,
|
|
530
|
+
}, null, 8, Ut))), 256)) : v("", !0),
|
|
530
531
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
|
|
531
|
-
x1:
|
|
532
|
-
x2:
|
|
533
|
-
y1:
|
|
534
|
-
y2:
|
|
532
|
+
x1: o.value.left,
|
|
533
|
+
x2: o.value.right,
|
|
534
|
+
y1: o.value.top + d.value * l,
|
|
535
|
+
y2: o.value.top + d.value * l,
|
|
535
536
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
536
537
|
"stroke-width": 1,
|
|
537
538
|
"stroke-linecap": "round"
|
|
538
|
-
}, null, 8,
|
|
539
|
+
}, null, 8, Yt))), 256)) : v("", !0),
|
|
539
540
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 }, b(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
|
|
540
|
-
x1:
|
|
541
|
-
x2:
|
|
542
|
-
y1:
|
|
543
|
-
y2:
|
|
541
|
+
x1: o.value.left + d.value * l,
|
|
542
|
+
x2: o.value.left + d.value * l,
|
|
543
|
+
y1: o.value.top,
|
|
544
|
+
y2: o.value.bottom,
|
|
544
545
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
545
546
|
"stroke-width": 1,
|
|
546
547
|
"stroke-linecap": "round"
|
|
547
|
-
}, null, 8,
|
|
548
|
+
}, null, 8, Gt))), 256)) : v("", !0),
|
|
548
549
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 }, b(N.value, (t, l) => (s(), u("line", {
|
|
549
550
|
x1: t.horizontal_x,
|
|
550
551
|
x2: t.horizontal_x,
|
|
551
|
-
y1:
|
|
552
|
-
y2:
|
|
552
|
+
y1: o.value.top,
|
|
553
|
+
y2: o.value.bottom,
|
|
553
554
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
554
555
|
"stroke-width": 1,
|
|
555
556
|
"stroke-linecap": "round"
|
|
556
|
-
}, null, 8,
|
|
557
|
+
}, null, 8, Jt))), 256)) : v("", !0),
|
|
557
558
|
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
558
559
|
e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, b(t.x, (i, n) => (s(), u("rect", {
|
|
559
560
|
x: i,
|
|
@@ -567,7 +568,7 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
567
568
|
"stroke-linecap": "round",
|
|
568
569
|
"stroke-linejoin": "round",
|
|
569
570
|
class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
570
|
-
}, null, 10,
|
|
571
|
+
}, null, 10, qt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
|
|
571
572
|
x: i,
|
|
572
573
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
573
574
|
width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
|
|
@@ -579,100 +580,100 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
579
580
|
"stroke-linecap": "round",
|
|
580
581
|
"stroke-linejoin": "round",
|
|
581
582
|
class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
582
|
-
}, null, 10,
|
|
583
|
+
}, null, 10, Zt))), 256))
|
|
583
584
|
]))), 256)),
|
|
584
585
|
e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
|
|
585
586
|
key: 5,
|
|
586
|
-
x1:
|
|
587
|
-
x2:
|
|
588
|
-
y1:
|
|
589
|
-
y2:
|
|
587
|
+
x1: o.value.left,
|
|
588
|
+
x2: o.value.right,
|
|
589
|
+
y1: o.value.bottom,
|
|
590
|
+
y2: o.value.bottom,
|
|
590
591
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
591
592
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
592
593
|
"stroke-linecap": "round",
|
|
593
594
|
"stroke-linejoin": "round"
|
|
594
|
-
}, null, 8,
|
|
595
|
+
}, null, 8, Kt)) : v("", !0),
|
|
595
596
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
|
|
596
597
|
key: 6,
|
|
597
|
-
x1:
|
|
598
|
-
x2:
|
|
599
|
-
y1:
|
|
600
|
-
y2:
|
|
598
|
+
x1: o.value.left,
|
|
599
|
+
x2: o.value.left,
|
|
600
|
+
y1: o.value.top,
|
|
601
|
+
y2: o.value.bottom,
|
|
601
602
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
602
603
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
603
604
|
"stroke-linecap": "round",
|
|
604
605
|
"stroke-linejoin": "round"
|
|
605
|
-
}, null, 8,
|
|
606
|
+
}, null, 8, Qt)) : v("", !0),
|
|
606
607
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
|
|
607
608
|
key: 7,
|
|
608
|
-
x:
|
|
609
|
-
y:
|
|
609
|
+
x: o.value.left + o.value.width / 2,
|
|
610
|
+
y: o.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
610
611
|
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
611
612
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
612
613
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
613
614
|
"text-anchor": "middle"
|
|
614
|
-
},
|
|
615
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, jt)) : v("", !0),
|
|
615
616
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
|
|
616
617
|
key: 8,
|
|
617
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${
|
|
618
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
618
619
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
619
620
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
620
621
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
621
622
|
"text-anchor": "middle"
|
|
622
|
-
},
|
|
623
|
-
|
|
623
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, ea)) : v("", !0),
|
|
624
|
+
C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
|
|
624
625
|
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
625
626
|
(s(!0), u(h, null, b(t.x, (i, n) => (s(), u("text", {
|
|
626
627
|
x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
627
628
|
y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
628
629
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
629
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(
|
|
630
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
630
631
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
631
632
|
"text-anchor": "middle"
|
|
632
|
-
},
|
|
633
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ta))), 256))
|
|
633
634
|
]))), 256)),
|
|
634
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g",
|
|
635
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", aa, [
|
|
635
636
|
(s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
|
|
636
|
-
x:
|
|
637
|
-
y:
|
|
637
|
+
x: o.value.left + d.value * l + d.value / 2,
|
|
638
|
+
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
638
639
|
"text-anchor": "middle",
|
|
639
640
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
640
641
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
641
642
|
fill: e.value.style.chart.bars.totalValues.color
|
|
642
|
-
},
|
|
643
|
+
}, S(ae(t.value, t, l, t.sign)), 9, la))), 256))
|
|
643
644
|
])) : v("", !0)
|
|
644
645
|
], 64)) : v("", !0),
|
|
645
|
-
|
|
646
|
+
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
|
|
646
647
|
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
647
648
|
(s(!0), u(h, null, b(t.horizontal_x, (i, n) => (s(), u("text", {
|
|
648
649
|
x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
|
|
649
650
|
y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
650
651
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
651
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(
|
|
652
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Xe)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
652
653
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
653
654
|
"text-anchor": "middle"
|
|
654
|
-
},
|
|
655
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Se(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ra))), 256))
|
|
655
656
|
]))), 256)),
|
|
656
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g",
|
|
657
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", oa, [
|
|
657
658
|
(s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
|
|
658
|
-
x:
|
|
659
|
-
y:
|
|
659
|
+
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
660
|
+
y: o.value.top + d.value * l + d.value / 2,
|
|
660
661
|
"text-anchor": "start",
|
|
661
662
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
662
663
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
663
664
|
fill: e.value.style.chart.bars.totalValues.color
|
|
664
|
-
},
|
|
665
|
+
}, S(ae(t.value, t, l, t.sign)), 9, sa))), 256))
|
|
665
666
|
])) : v("", !0)
|
|
666
667
|
], 64)) : v("", !0),
|
|
667
668
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
|
|
668
669
|
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
|
|
669
|
-
x1:
|
|
670
|
-
x2:
|
|
670
|
+
x1: o.value.left,
|
|
671
|
+
x2: o.value.left - 6,
|
|
671
672
|
y1: t.y,
|
|
672
673
|
y2: t.y,
|
|
673
674
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
674
675
|
"stroke-width": 1
|
|
675
|
-
}, null, 8,
|
|
676
|
+
}, null, 8, ia))), 256)),
|
|
676
677
|
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
|
|
677
678
|
x: t.x,
|
|
678
679
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -680,81 +681,81 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
680
681
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
681
682
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
682
683
|
"text-anchor": "end"
|
|
683
|
-
},
|
|
684
|
+
}, S(x(E)({
|
|
684
685
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
685
686
|
v: t.value,
|
|
686
687
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
687
688
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
688
|
-
})), 9,
|
|
689
|
+
})), 9, ua))), 256))
|
|
689
690
|
], 64)) : v("", !0),
|
|
690
691
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
|
|
691
692
|
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
|
|
692
693
|
x1: t.horizontal_x,
|
|
693
694
|
x2: t.horizontal_x,
|
|
694
|
-
y1:
|
|
695
|
-
y2:
|
|
695
|
+
y1: o.value.bottom,
|
|
696
|
+
y2: o.value.bottom + 6,
|
|
696
697
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
697
698
|
"stroke-width": 1,
|
|
698
699
|
"stroke-linecap": "round"
|
|
699
|
-
}, null, 8,
|
|
700
|
+
}, null, 8, na))), 256)),
|
|
700
701
|
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
|
|
701
702
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
702
703
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
703
704
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
704
705
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
705
|
-
transform: `translate(${t.horizontal_x}, ${
|
|
706
|
-
},
|
|
706
|
+
transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
707
|
+
}, S(x(E)({
|
|
707
708
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
708
709
|
v: t.value,
|
|
709
710
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
710
711
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
711
|
-
})), 9,
|
|
712
|
+
})), 9, ca))), 256))
|
|
712
713
|
], 64)) : v("", !0),
|
|
713
714
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 }, b(J.value, (t, l) => (s(), u("text", {
|
|
714
715
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
715
716
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
716
717
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
717
718
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
718
|
-
transform: `translate(${
|
|
719
|
-
},
|
|
719
|
+
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
720
|
+
}, S(t), 9, va))), 256)) : v("", !0),
|
|
720
721
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 }, b(J.value, (t, l) => (s(), u("text", {
|
|
721
722
|
"text-anchor": "end",
|
|
722
723
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
723
724
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
724
725
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
725
|
-
x:
|
|
726
|
-
y:
|
|
727
|
-
},
|
|
728
|
-
|
|
729
|
-
x:
|
|
730
|
-
y:
|
|
726
|
+
x: o.value.left - 8,
|
|
727
|
+
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
|
|
728
|
+
}, S(t), 9, ha))), 256)) : v("", !0),
|
|
729
|
+
C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
730
|
+
x: o.value.left + l * d.value,
|
|
731
|
+
y: o.value.top,
|
|
731
732
|
width: d.value,
|
|
732
|
-
height:
|
|
733
|
+
height: o.value.height < 0 ? 0 : o.value.height,
|
|
733
734
|
onClick: (i) => $e(l),
|
|
734
|
-
onMouseenter: (i) =>
|
|
735
|
-
onMouseleave:
|
|
735
|
+
onMouseenter: (i) => Me(l),
|
|
736
|
+
onMouseleave: r[0] || (r[0] = (i) => {
|
|
736
737
|
U.value = null, j.value = !1;
|
|
737
738
|
}),
|
|
738
|
-
fill: l === U.value ? e.value.style.chart.highlighter.color + x(
|
|
739
|
-
}, null, 40,
|
|
740
|
-
|
|
741
|
-
x:
|
|
742
|
-
y:
|
|
743
|
-
width:
|
|
739
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
740
|
+
}, null, 40, da))), 256)) : v("", !0),
|
|
741
|
+
C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
742
|
+
x: o.value.left,
|
|
743
|
+
y: o.value.top + l * d.value,
|
|
744
|
+
width: o.value.width < 0 ? 0 : o.value.width,
|
|
744
745
|
height: d.value,
|
|
745
746
|
onClick: (i) => $e(l),
|
|
746
|
-
onMouseenter: (i) =>
|
|
747
|
-
onMouseleave:
|
|
747
|
+
onMouseenter: (i) => Me(l),
|
|
748
|
+
onMouseleave: r[1] || (r[1] = (i) => {
|
|
748
749
|
U.value = null, j.value = !1;
|
|
749
750
|
}),
|
|
750
|
-
fill: l === U.value ? e.value.style.chart.highlighter.color + x(
|
|
751
|
-
}, null, 40,
|
|
752
|
-
|
|
753
|
-
], 12,
|
|
754
|
-
a.$slots.watermark ? (s(), u("div",
|
|
755
|
-
|
|
751
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + x(Ue)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
752
|
+
}, null, 40, ya))), 256)) : v("", !0),
|
|
753
|
+
_(a.$slots, "svg", B(W({ ...o.value })), void 0, !0)
|
|
754
|
+
], 12, Dt)) : v("", !0),
|
|
755
|
+
a.$slots.watermark ? (s(), u("div", ga, [
|
|
756
|
+
_(a.$slots, "watermark", B(W({ isPrinting: x(xe) || x(ke) })), void 0, !0)
|
|
756
757
|
])) : v("", !0),
|
|
757
|
-
|
|
758
|
+
H.value ? v("", !0) : (s(), Q(Vt, {
|
|
758
759
|
key: 4,
|
|
759
760
|
config: {
|
|
760
761
|
type: "bar",
|
|
@@ -775,7 +776,7 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
775
776
|
style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
776
777
|
"data-html2canvas-ignore": ""
|
|
777
778
|
}, [
|
|
778
|
-
e.value.style.chart.zoom.show &&
|
|
779
|
+
e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(Tt, {
|
|
779
780
|
key: `slicer_${pe.value}`,
|
|
780
781
|
background: e.value.style.chart.zoom.color,
|
|
781
782
|
borderColor: e.value.style.chart.backgroundColor,
|
|
@@ -791,19 +792,19 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
791
792
|
valueStart: c.value.start,
|
|
792
793
|
valueEnd: c.value.end,
|
|
793
794
|
start: c.value.start,
|
|
794
|
-
"onUpdate:start":
|
|
795
|
+
"onUpdate:start": r[2] || (r[2] = (t) => c.value.start = t),
|
|
795
796
|
end: c.value.end,
|
|
796
|
-
"onUpdate:end":
|
|
797
|
-
onReset:
|
|
797
|
+
"onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
|
|
798
|
+
onReset: Qe
|
|
798
799
|
}, {
|
|
799
|
-
"reset-action":
|
|
800
|
-
|
|
800
|
+
"reset-action": z(({ reset: t }) => [
|
|
801
|
+
_(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
|
|
801
802
|
]),
|
|
802
803
|
_: 3
|
|
803
804
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
|
|
804
805
|
], 4),
|
|
805
|
-
ve(
|
|
806
|
-
show:
|
|
806
|
+
ve(Nt, {
|
|
807
|
+
show: C.value.showTooltip && j.value,
|
|
807
808
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
808
809
|
color: e.value.style.chart.tooltip.color,
|
|
809
810
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -815,13 +816,13 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
815
816
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
816
817
|
parent: X.value,
|
|
817
818
|
content: ue.value,
|
|
818
|
-
isCustom: x(
|
|
819
|
+
isCustom: x(Ye)(e.value.style.chart.tooltip.customFormat)
|
|
819
820
|
}, {
|
|
820
|
-
"tooltip-before":
|
|
821
|
-
|
|
821
|
+
"tooltip-before": z(() => [
|
|
822
|
+
_(a.$slots, "tooltip-before", B(W({ ...ye.value })), void 0, !0)
|
|
822
823
|
]),
|
|
823
|
-
"tooltip-after":
|
|
824
|
-
|
|
824
|
+
"tooltip-after": z(() => [
|
|
825
|
+
_(a.$slots, "tooltip-after", B(W({ ...ye.value })), void 0, !0)
|
|
825
826
|
]),
|
|
826
827
|
_: 3
|
|
827
828
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -829,29 +830,29 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
829
830
|
ref_key: "chartLegend",
|
|
830
831
|
ref: fe
|
|
831
832
|
}, [
|
|
832
|
-
e.value.style.chart.legend.show &&
|
|
833
|
+
e.value.style.chart.legend.show && H.value ? (s(), Q(Pt, {
|
|
833
834
|
key: 0,
|
|
834
835
|
legendSet: Ie.value,
|
|
835
|
-
config:
|
|
836
|
-
onClickMarker:
|
|
836
|
+
config: lt.value,
|
|
837
|
+
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
837
838
|
}, {
|
|
838
|
-
item:
|
|
839
|
+
item: z(({ legend: t }) => [
|
|
839
840
|
D("div", {
|
|
840
841
|
onClick: (l) => t.segregate(),
|
|
841
|
-
style: K(`opacity:${
|
|
842
|
-
},
|
|
842
|
+
style: K(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
843
|
+
}, S(t.name), 13, ba)
|
|
843
844
|
]),
|
|
844
845
|
_: 1
|
|
845
|
-
}, 8, ["legendSet", "config"])) :
|
|
846
|
+
}, 8, ["legendSet", "config"])) : _(a.$slots, "legend", {
|
|
846
847
|
key: 1,
|
|
847
848
|
legend: Ie.value
|
|
848
849
|
}, void 0, !0)
|
|
849
850
|
], 512),
|
|
850
|
-
c.value.end - c.value.start < 200 ? (s(), Q(
|
|
851
|
+
c.value.end - c.value.start < 200 ? (s(), Q(Rt, {
|
|
851
852
|
key: 5,
|
|
852
853
|
hideDetails: "",
|
|
853
854
|
config: {
|
|
854
|
-
open:
|
|
855
|
+
open: C.value.showTable,
|
|
855
856
|
maxHeight: 1e4,
|
|
856
857
|
body: {
|
|
857
858
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -863,20 +864,20 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
863
864
|
}
|
|
864
865
|
}
|
|
865
866
|
}, {
|
|
866
|
-
content:
|
|
867
|
-
ve(
|
|
867
|
+
content: z(() => [
|
|
868
|
+
ve(It, {
|
|
868
869
|
colNames: le.value.colNames,
|
|
869
870
|
head: le.value.head,
|
|
870
871
|
body: le.value.body,
|
|
871
872
|
config: le.value.config,
|
|
872
873
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
873
|
-
onClose:
|
|
874
|
+
onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
|
|
874
875
|
}, {
|
|
875
|
-
th:
|
|
876
|
-
D("div", { innerHTML: t }, null, 8,
|
|
876
|
+
th: z(({ th: t }) => [
|
|
877
|
+
D("div", { innerHTML: t }, null, 8, fa)
|
|
877
878
|
]),
|
|
878
|
-
td:
|
|
879
|
-
|
|
879
|
+
td: z(({ td: t }) => [
|
|
880
|
+
dt(S(isNaN(Number(t)) ? t : x(E)({
|
|
880
881
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
881
882
|
v: t,
|
|
882
883
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -888,9 +889,9 @@ const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht =
|
|
|
888
889
|
]),
|
|
889
890
|
_: 1
|
|
890
891
|
}, 8, ["config"])) : v("", !0)
|
|
891
|
-
], 14,
|
|
892
|
+
], 14, At));
|
|
892
893
|
}
|
|
893
|
-
},
|
|
894
|
+
}, Oa = /* @__PURE__ */ Ft(ma, [["__scopeId", "data-v-6f134df9"]]);
|
|
894
895
|
export {
|
|
895
|
-
|
|
896
|
+
Oa as default
|
|
896
897
|
};
|