vue-data-ui 2.3.43 → 2.3.45
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 +1 -1
- package/dist/{Arrow-CWpE_zpe.js → Arrow-Ctlg95U8.js} +1 -1
- package/dist/{Arrow-BX4nehl3.cjs → Arrow-HEq-nlrw.cjs} +1 -1
- package/dist/{BaseIcon-DExFkY_J.cjs → BaseIcon-DAllT7Xd.cjs} +1 -1
- package/dist/{BaseIcon-CvUiZjEX.js → BaseIcon-SOUJcJNI.js} +1 -1
- package/dist/{DataTable-BwXjoB6L.cjs → DataTable-CpDBCn7U.cjs} +1 -1
- package/dist/{DataTable-DxcXjsBO.js → DataTable-zx4eBGpA.js} +2 -2
- package/dist/{Legend-CsoM5Opb.cjs → Legend-Ch4wH-kK.cjs} +1 -1
- package/dist/{Legend-WlisJgNx.js → Legend-DHmy6Ryw.js} +1 -1
- package/dist/{Shape-KaYj09DC.js → Shape-CQnpEROe.js} +1 -1
- package/dist/{Shape-BFjPrzUQ.cjs → Shape-Va1vqZKB.cjs} +1 -1
- package/dist/{Slicer-CMyTqI-E.cjs → Slicer-7qUL39RL.cjs} +1 -1
- package/dist/{Slicer-CdefiSuP.js → Slicer-CwVoKTxE.js} +1 -1
- package/dist/{Title-BtxIcOzw.js → Title-Cw7gk_b-.js} +1 -1
- package/dist/{Title-CO92NMAL.cjs → Title-tPZ6dD7n.cjs} +1 -1
- package/dist/{Tooltip-LICk5YoE.js → Tooltip-Dh7Rk7h8.js} +1 -1
- package/dist/{Tooltip-CAVFRdaz.cjs → Tooltip-mwVno8dy.cjs} +1 -1
- package/dist/index-B2yAjO70.cjs +4 -0
- package/dist/{index-Bbk73zTN.js → index-BtUHRUym.js} +4 -1
- 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-UmsAOi8p.cjs → useNestedProp-BgiHePG5.cjs} +1 -1
- package/dist/{useNestedProp-DyRlubve.js → useNestedProp-dj8NfogN.js} +1 -1
- package/dist/{usePrinter-BmgVJQqN.js → usePrinter-CG4wyZaf.js} +1 -1
- package/dist/{usePrinter-C98FQ0-q.cjs → usePrinter-DWElqLH0.cjs} +1 -1
- package/dist/{vue-data-ui-CBnsql5A.js → vue-data-ui-D9OmfznV.js} +57 -57
- package/dist/{vue-data-ui-CU0iVEcI.cjs → vue-data-ui-DlEHOUpL.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DjO8gk8_.js → vue-ui-3d-bar-BuoAlWbG.js} +7 -7
- package/dist/{vue-ui-3d-bar-D7Hgh9_L.cjs → vue-ui-3d-bar-vH1iEHhl.cjs} +1 -1
- package/dist/{vue-ui-accordion-CL_FobK9.js → vue-ui-accordion-BN4KrzlD.js} +3 -3
- package/dist/{vue-ui-accordion-CM5vg9Tx.cjs → vue-ui-accordion-CqQkjoPn.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-RYNu3tHb.cjs → vue-ui-age-pyramid-B3d0MOlW.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CAJyYi0a.js → vue-ui-age-pyramid-NwacHWds.js} +8 -8
- package/dist/{vue-ui-annotator-Cm1zAF7m.cjs → vue-ui-annotator-4CFg58OC.cjs} +1 -1
- package/dist/{vue-ui-annotator-DFadnHMB.js → vue-ui-annotator-ByXR1gL3.js} +1 -1
- package/dist/{vue-ui-candlestick-DxKxcHMq.js → vue-ui-candlestick-BfqazfiH.js} +9 -9
- package/dist/{vue-ui-candlestick-DG4ZvO5e.cjs → vue-ui-candlestick-DyA-ghJ9.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BVkgLC3s.cjs → vue-ui-carousel-table-CD2K7H-l.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Blb5YFEv.js → vue-ui-carousel-table-DYsH2Yp1.js} +4 -4
- package/dist/{vue-ui-chestnut-B8Hz3FYZ.js → vue-ui-chestnut-SRnaEdid.js} +6 -6
- package/dist/{vue-ui-chestnut-DWApH23R.cjs → vue-ui-chestnut-ZF9-nCi_.cjs} +1 -1
- package/dist/{vue-ui-cursor-D9asBQMh.cjs → vue-ui-cursor-BeDk95cI.cjs} +1 -1
- package/dist/{vue-ui-cursor-BxcQpwOY.js → vue-ui-cursor-BeoGVuIZ.js} +2 -2
- package/dist/{vue-ui-dashboard-CEvxFYWL.cjs → vue-ui-dashboard-B46dE1gK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DgcdkN2P.js → vue-ui-dashboard-DXbVeu6w.js} +2 -2
- package/dist/{vue-ui-digits-B6mHBfpO.cjs → vue-ui-digits-B7fD81ff.cjs} +1 -1
- package/dist/{vue-ui-digits-CQyz7F1E.js → vue-ui-digits-DizgKes0.js} +2 -2
- package/dist/{vue-ui-donut-MAqy-4_Q.js → vue-ui-donut-B5vgDoBi.js} +9 -9
- package/dist/{vue-ui-donut-Bk9ZauPi.cjs → vue-ui-donut-BrI09Is-.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-LwQMywJy.js → vue-ui-donut-evolution-C47y1eQp.js} +9 -9
- package/dist/{vue-ui-donut-evolution-D8rLY20T.cjs → vue-ui-donut-evolution-DQuNz9i2.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B82B7yyh.js → vue-ui-dumbbell-3rDmDs-o.js} +8 -8
- package/dist/{vue-ui-dumbbell-DeIwE9rZ.cjs → vue-ui-dumbbell-DU2QkGgz.cjs} +1 -1
- package/dist/{vue-ui-flow-MAa_-OBP.cjs → vue-ui-flow-B_x2ipPe.cjs} +1 -1
- package/dist/{vue-ui-flow-hFsm0I_o.js → vue-ui-flow-DOZhKpWR.js} +7 -7
- package/dist/{vue-ui-galaxy-DGCAtMPJ.cjs → vue-ui-galaxy-BesSgZcY.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CA4vT6T9.js → vue-ui-galaxy-DlLG0xKi.js} +9 -9
- package/dist/{vue-ui-gauge-DnoClf1q.js → vue-ui-gauge-8RafppPz.js} +5 -5
- package/dist/{vue-ui-gauge-adb9MqKU.cjs → vue-ui-gauge-BxwG1Kwo.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CM2rrjW-.js → vue-ui-gizmo-7kvomyBv.js} +2 -2
- package/dist/{vue-ui-gizmo-tANH2jdv.cjs → vue-ui-gizmo-BLGwCunm.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CBlqLxiH.cjs → vue-ui-heatmap-Cio9d_p1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B1s4zxvm.js → vue-ui-heatmap-DrYunXgc.js} +8 -8
- package/dist/{vue-ui-kpi-BFTk7ZU3.cjs → vue-ui-kpi-BqaqS0Sc.cjs} +1 -1
- package/dist/{vue-ui-kpi-DqKvoNCy.js → vue-ui-kpi-d1wsMxlV.js} +3 -3
- package/dist/{vue-ui-mini-loader-D-AqqkAZ.js → vue-ui-mini-loader-CJwfVr_M.js} +2 -2
- package/dist/{vue-ui-mini-loader-BXwRtFgE.cjs → vue-ui-mini-loader-DhJ12J5b.cjs} +1 -1
- package/dist/{vue-ui-molecule-h4UuWEAW.cjs → vue-ui-molecule-DxWAKzbW.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzHocdro.js → vue-ui-molecule-Uzqk850W.js} +9 -9
- package/dist/{vue-ui-mood-radar-CS7QJHs3.cjs → vue-ui-mood-radar-DY8gtaPz.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-1Tlf6aw2.js → vue-ui-mood-radar-psceCBqR.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BeCVjHuA.cjs → vue-ui-nested-donuts-Bu9OL68Y.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Du7HPk1D.js → vue-ui-nested-donuts-CFiRn0jk.js} +9 -9
- package/dist/{vue-ui-onion-CKIprro6.cjs → vue-ui-onion-CAxDBRGS.cjs} +1 -1
- package/dist/{vue-ui-onion-D6mP-ozX.js → vue-ui-onion-kPRNeXuX.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-4duj4p9w.js → vue-ui-parallel-coordinate-plot-CYBmGnIu.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-rOpV6LMo.cjs → vue-ui-parallel-coordinate-plot-DaVxlANN.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BucLsuLe.js → vue-ui-quadrant-COeLNV2o.js} +10 -10
- package/dist/{vue-ui-quadrant-t8JYBTSb.cjs → vue-ui-quadrant-D182YkSv.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-iWzK1xOC.cjs → vue-ui-quick-chart-DdsSfSj4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-QV_7Fkz8.js → vue-ui-quick-chart-S7bmmFTP.js} +6 -6
- package/dist/{vue-ui-radar-BqDGkijn.cjs → vue-ui-radar-BNYp4Cvf.cjs} +1 -1
- package/dist/{vue-ui-radar-BjHAeK_r.js → vue-ui-radar-BjdwArGH.js} +10 -10
- package/dist/{vue-ui-rating-Urv4VkCQ.cjs → vue-ui-rating-Bms5i1i6.cjs} +1 -1
- package/dist/{vue-ui-rating-DCBbo_zw.js → vue-ui-rating-D3wjp0wH.js} +2 -2
- package/dist/{vue-ui-relation-circle-D5mWVeOH.cjs → vue-ui-relation-circle-Bh_LkmOB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dqus5AEv.js → vue-ui-relation-circle-D49d4Zkk.js} +5 -5
- package/dist/{vue-ui-rings-CenKPWLm.js → vue-ui-rings-C16aSDsP.js} +9 -9
- package/dist/{vue-ui-rings-BASFY1MR.cjs → vue-ui-rings-D99azl6b.cjs} +1 -1
- package/dist/{vue-ui-scatter-C7_wKZgM.cjs → vue-ui-scatter-C70x1iYX.cjs} +1 -1
- package/dist/{vue-ui-scatter-DKVRfyEx.js → vue-ui-scatter-DfcaiZ96.js} +10 -10
- package/dist/{vue-ui-screenshot-BbsapvVI.js → vue-ui-screenshot-Bf1vsmAF.js} +1 -1
- package/dist/{vue-ui-screenshot-BPVBFgZc.cjs → vue-ui-screenshot-DvDE7zxX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B5cqEJh5.js → vue-ui-skeleton-BcXNZYl9.js} +2 -2
- package/dist/{vue-ui-skeleton-0RSYEYO5.cjs → vue-ui-skeleton-c-ouk0AX.cjs} +1 -1
- package/dist/{vue-ui-smiley-BVh_PrQG.cjs → vue-ui-smiley-CLoPBQAZ.cjs} +1 -1
- package/dist/{vue-ui-smiley-c3WVJntN.js → vue-ui-smiley-CreoeEFq.js} +2 -2
- package/dist/{vue-ui-spark-trend-CXxzIkgB.cjs → vue-ui-spark-trend-DUb_IRKf.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-k-2KrIOw.js → vue-ui-spark-trend-D_tOD4Ta.js} +4 -4
- package/dist/{vue-ui-sparkbar-BHmNelWN.cjs → vue-ui-sparkbar-Bsq08omU.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CfMBd1i2.js → vue-ui-sparkbar-CsIEMgM0.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C4EZKUcd.js → vue-ui-sparkgauge-3YzN4m6q.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C8Yzul1-.cjs → vue-ui-sparkgauge-Ctekz6Kd.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-HUZeHvwQ.cjs → vue-ui-sparkhistogram-CKDuTdfc.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CYCMk0Nn.js → vue-ui-sparkhistogram-CjWwG7Zl.js} +4 -4
- package/dist/vue-ui-sparkline-B91EoUVn.cjs +1 -0
- package/dist/vue-ui-sparkline-XrDJFglg.js +359 -0
- package/dist/{vue-ui-sparkstackbar-yntdZ_U1.js → vue-ui-sparkstackbar-BKKSkrnj.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DtE-w92H.cjs → vue-ui-sparkstackbar-r0XJQN3g.cjs} +1 -1
- package/dist/vue-ui-stackbar-CL5GsQiN.cjs +6 -0
- package/dist/vue-ui-stackbar-D4J9Z7wX.js +896 -0
- package/dist/{vue-ui-strip-plot-DnwkdcDH.cjs → vue-ui-strip-plot--P365ByW.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B7RNUPFq.js → vue-ui-strip-plot-DsuLc5K4.js} +9 -9
- package/dist/{vue-ui-table-CVZTOrVv.cjs → vue-ui-table-CGrGa90U.cjs} +1 -1
- package/dist/{vue-ui-table-D9nv-3WZ.js → vue-ui-table-DJjj6FvX.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CyoJgm-p.js → vue-ui-table-heatmap-Dql-qWPD.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Ciq5iK60.cjs → vue-ui-table-heatmap-v9N0LVg3.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BzBBbPlM.js → vue-ui-table-sparkline-C9TVGFyf.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DMHBrCHg.cjs → vue-ui-table-sparkline-LIvHkJR_.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CMwBVDKP.cjs → vue-ui-thermometer-4aCLqzTu.cjs} +1 -1
- package/dist/{vue-ui-thermometer-B7GO1JVB.js → vue-ui-thermometer-BEexIekI.js} +5 -5
- package/dist/{vue-ui-timer-DOhULfFA.js → vue-ui-timer-CY7pvqXf.js} +4 -4
- package/dist/{vue-ui-timer-DL-jbhys.cjs → vue-ui-timer-CuJ9p9tE.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CKSWZEz6.cjs → vue-ui-tiremarks-BCfOhCQd.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CdSz4A3e.js → vue-ui-tiremarks-D7LgNJ-Z.js} +5 -5
- package/dist/{vue-ui-treemap-Bnf6Dwud.js → vue-ui-treemap-Dg58TlVx.js} +9 -9
- package/dist/{vue-ui-treemap-DuidfPhy.cjs → vue-ui-treemap-HRbke0i3.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-MKgSL3sf.cjs → vue-ui-vertical-bar-BmOJ8w-M.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CanIt-Gp.js → vue-ui-vertical-bar-DYHw0QLR.js} +9 -9
- package/dist/{vue-ui-waffle-BTqxJCqj.js → vue-ui-waffle-BWDLUS-8.js} +9 -9
- package/dist/{vue-ui-waffle-CaOODGGV.cjs → vue-ui-waffle-DiNMc4kF.cjs} +1 -1
- package/dist/{vue-ui-wheel-CGeoj8Je.js → vue-ui-wheel-D5EMxg2C.js} +5 -5
- package/dist/{vue-ui-wheel-CFwuHnTA.cjs → vue-ui-wheel-DSudyI0a.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-jTnL4pfH.js → vue-ui-word-cloud-BcW7UgaX.js} +7 -7
- package/dist/{vue-ui-word-cloud-aGr6Wv6n.cjs → vue-ui-word-cloud-CXx7qEQS.cjs} +1 -1
- package/dist/{vue-ui-xy-Oy6S6E9Z.js → vue-ui-xy-CAJ3QM9F.js} +12 -12
- package/dist/{vue-ui-xy-DpqPRTcU.cjs → vue-ui-xy-JfWTcv1D.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas--KPN7UHp.cjs → vue-ui-xy-canvas-BFRvVrf9.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D9QelGDC.js → vue-ui-xy-canvas-BPAwiR3E.js} +10 -10
- package/package.json +1 -1
- package/dist/index-CSbGUkq2.cjs +0 -4
- package/dist/vue-ui-sparkline-BDrgcGQT.cjs +0 -1
- package/dist/vue-ui-sparkline-CqaXadBL.js +0 -342
- package/dist/vue-ui-stackbar-7edtVj-o.cjs +0 -6
- package/dist/vue-ui-stackbar-7wKRXzJb.js +0 -786
|
@@ -0,0 +1,896 @@
|
|
|
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 w, createVNode as ve, createCommentVNode as v, createBlock as Q, unref as x, createSlots as ct, withCtx as C, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as b, createElementVNode as D, toDisplayString as L, createTextVNode as vt } from "vue";
|
|
2
|
+
import { u as ht, c as De, o as dt, e as He, g as yt, t as gt, a as bt, p as re, b as ft, d as mt, a0 as se, A as Ee, X as pt, l as xt, D as Be, f as H, v as We, w as Xe, i as Ue, x as kt, q as wt, r as Ct } from "./index-BtUHRUym.js";
|
|
3
|
+
import { u as Ye } from "./useNestedProp-dj8NfogN.js";
|
|
4
|
+
import { t as _t, u as zt } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import { u as Lt, U as St } from "./usePrinter-CG4wyZaf.js";
|
|
6
|
+
import { S as $t } from "./Slicer-CwVoKTxE.js";
|
|
7
|
+
import { _ as Tt } from "./Tooltip-Dh7Rk7h8.js";
|
|
8
|
+
import { _ as Nt } from "./Title-Cw7gk_b-.js";
|
|
9
|
+
import { L as Mt } from "./Legend-DHmy6Ryw.js";
|
|
10
|
+
import Ot from "./vue-ui-accordion-BN4KrzlD.js";
|
|
11
|
+
import { D as Rt } from "./DataTable-zx4eBGpA.js";
|
|
12
|
+
import Pt from "./vue-ui-skeleton-BcXNZYl9.js";
|
|
13
|
+
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Vt = ["id"], Ft = ["xmlns", "viewBox"], At = { key: 0 }, Dt = ["id"], Ht = ["stop-color"], Et = ["stop-color"], Bt = ["stop-color"], Wt = ["x1", "x2", "y1", "y2", "stroke"], Xt = ["x1", "x2", "y1", "y2", "stroke"], Ut = ["x1", "x2", "y1", "y2", "stroke"], Yt = ["x1", "x2", "y1", "y2", "stroke"], Gt = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Jt = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Kt = ["x", "y", "font-size", "fill", "font-weight"], Qt = ["transform", "font-size", "fill", "font-weight"], jt = ["x", "y", "font-size", "fill", "font-weight"], ea = { key: 0 }, ta = ["x", "y", "font-size", "font-weight", "fill"], aa = ["x", "y", "font-size", "fill", "font-weight"], la = { key: 0 }, oa = ["x", "y", "font-size", "font-weight", "fill"], ra = ["x1", "x2", "y1", "y2", "stroke"], sa = ["x", "y", "font-size", "font-weight", "fill"], ia = ["x1", "x2", "y1", "y2", "stroke"], ua = ["font-size", "font-weight", "fill", "text-anchor", "transform"], na = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ca = ["font-size", "font-weight", "fill", "x", "y"], va = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ha = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], da = {
|
|
15
|
+
key: 3,
|
|
16
|
+
class: "vue-data-ui-watermark"
|
|
17
|
+
}, ya = ["onClick"], ga = ["innerHTML"], ba = {
|
|
18
|
+
__name: "vue-ui-stackbar",
|
|
19
|
+
props: {
|
|
20
|
+
config: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default() {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
dataset: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default() {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["selectDatapoint", "selectLegend"],
|
|
34
|
+
setup(he, { expose: Ge, emit: de }) {
|
|
35
|
+
const M = he, { vue_ui_stackbar: Je } = ht(), E = p({
|
|
36
|
+
get() {
|
|
37
|
+
return !!M.dataset && M.dataset.length;
|
|
38
|
+
},
|
|
39
|
+
set(a) {
|
|
40
|
+
return a;
|
|
41
|
+
}
|
|
42
|
+
}), X = f(null), ie = f(De()), j = f(!1), ye = f(null), ue = f(""), _ = 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
|
+
Ae(() => {
|
|
44
|
+
dt(M.dataset) ? He({
|
|
45
|
+
componentName: "VueUiStackbar",
|
|
46
|
+
type: "dataset"
|
|
47
|
+
}) : M.dataset.forEach((a, o) => {
|
|
48
|
+
yt({
|
|
49
|
+
datasetObject: a,
|
|
50
|
+
requiredAttributes: ["name", "series"]
|
|
51
|
+
}).forEach((t) => {
|
|
52
|
+
E.value = !1, He({
|
|
53
|
+
componentName: "VueUiStackbar",
|
|
54
|
+
type: "datasetSerieAttribute",
|
|
55
|
+
property: t,
|
|
56
|
+
index: o
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}), setTimeout(() => {
|
|
60
|
+
Y.value = !0;
|
|
61
|
+
}, 10);
|
|
62
|
+
});
|
|
63
|
+
const e = p(() => {
|
|
64
|
+
const a = Ye({
|
|
65
|
+
userConfig: M.config,
|
|
66
|
+
defaultConfig: Je
|
|
67
|
+
});
|
|
68
|
+
return a.theme ? {
|
|
69
|
+
...Ye({
|
|
70
|
+
userConfig: gt.vue_ui_stackbar[a.theme] || M.config,
|
|
71
|
+
defaultConfig: a
|
|
72
|
+
}),
|
|
73
|
+
customPalette: bt[a.theme] || re
|
|
74
|
+
} : a;
|
|
75
|
+
}), k = f({
|
|
76
|
+
dataLabels: {
|
|
77
|
+
show: e.value.style.chart.bars.dataLabels.show
|
|
78
|
+
},
|
|
79
|
+
showTable: e.value.table.show,
|
|
80
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
81
|
+
}), { isPrinting: xe, isImaging: ke, generatePdf: we, generateImage: Ce } = Lt({
|
|
82
|
+
elementId: `stackbar_${ie.value}`,
|
|
83
|
+
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
84
|
+
}), ee = f({
|
|
85
|
+
width: e.value.style.chart.width,
|
|
86
|
+
height: e.value.style.chart.height,
|
|
87
|
+
paddingRatio: {
|
|
88
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
89
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
90
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
91
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
92
|
+
}
|
|
93
|
+
}), qe = p(() => ft(e.value.customPalette)), _e = f(null), ze = f(null);
|
|
94
|
+
Ae(() => {
|
|
95
|
+
if (e.value.responsive) {
|
|
96
|
+
const a = _t(() => {
|
|
97
|
+
Y.value = !1;
|
|
98
|
+
const { width: o, height: t } = zt({
|
|
99
|
+
chart: X.value,
|
|
100
|
+
title: e.value.style.chart.title.text ? be.value : null,
|
|
101
|
+
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
102
|
+
slicer: e.value.style.chart.zoom.show && P.value > 1 ? me.value : null
|
|
103
|
+
});
|
|
104
|
+
ee.value.width = o, ee.value.height = t, clearTimeout(ze.value), ze.value = setTimeout(() => {
|
|
105
|
+
Y.value = !0;
|
|
106
|
+
}, 10);
|
|
107
|
+
});
|
|
108
|
+
_e.value = new ResizeObserver(a), _e.value.observe(X.value.parentNode);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
const r = p(() => {
|
|
112
|
+
const { height: a, width: o } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = o - o * t, n = a - e.value.style.chart.padding.bottom, z = e.value.style.chart.padding.left, I = o - z - o * t, V = a - l - e.value.style.chart.padding.bottom;
|
|
113
|
+
return {
|
|
114
|
+
chartHeight: a,
|
|
115
|
+
chartWidth: o,
|
|
116
|
+
top: l,
|
|
117
|
+
right: i,
|
|
118
|
+
bottom: n,
|
|
119
|
+
left: z,
|
|
120
|
+
width: I,
|
|
121
|
+
height: V < 0 ? 0 : V
|
|
122
|
+
};
|
|
123
|
+
}), R = p(() => M.dataset.map((a, o) => {
|
|
124
|
+
const t = mt(a.color) || qe.value[o] || re[o] || re[o % re.length];
|
|
125
|
+
return {
|
|
126
|
+
...a,
|
|
127
|
+
// In distributed mode, all values are converted to positive
|
|
128
|
+
series: JSON.parse(JSON.stringify(a.series)).map((l) => e.value.style.chart.bars.distributed ? Math.abs(l) : l),
|
|
129
|
+
// Store signs to manage display of neg values in distributed mode
|
|
130
|
+
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
131
|
+
absoluteIndex: o,
|
|
132
|
+
id: De(),
|
|
133
|
+
color: t
|
|
134
|
+
};
|
|
135
|
+
})), P = p(() => Math.max(...R.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), c = f({
|
|
136
|
+
start: 0,
|
|
137
|
+
end: Math.max(...M.dataset.map((a) => a.series.length))
|
|
138
|
+
});
|
|
139
|
+
function Ze() {
|
|
140
|
+
c.value = {
|
|
141
|
+
start: 0,
|
|
142
|
+
end: Math.max(...M.dataset.map((a) => a.series.length))
|
|
143
|
+
}, pe.value += 1;
|
|
144
|
+
}
|
|
145
|
+
const d = p(() => {
|
|
146
|
+
let a;
|
|
147
|
+
return e.value.orientation === "vertical" ? a = r.value.width / (c.value.end - c.value.start) : a = r.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
148
|
+
}), G = p(() => se(R.value.filter((a) => !_.value.includes(a.id))).slice(c.value.start, c.value.end)), Ke = p(() => se(R.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
149
|
+
...a,
|
|
150
|
+
series: a.series.map((o, t) => a.signedSeries[t] === -1 && o >= 0 ? -o : o)
|
|
151
|
+
}))).slice(c.value.start, c.value.end)), te = p(() => {
|
|
152
|
+
const a = R.value.filter((o) => !_.value.includes(o.id));
|
|
153
|
+
return {
|
|
154
|
+
positive: se(a.map((o) => ({
|
|
155
|
+
...o,
|
|
156
|
+
series: o.series.slice(c.value.start, c.value.end).map((t) => t >= 0 ? t : 0)
|
|
157
|
+
}))),
|
|
158
|
+
negative: se(a.map((o) => ({
|
|
159
|
+
...o,
|
|
160
|
+
series: o.series.slice(c.value.start, c.value.end).map((t) => t < 0 ? t : 0)
|
|
161
|
+
})))
|
|
162
|
+
};
|
|
163
|
+
}), N = p(() => {
|
|
164
|
+
const a = Math.max(...te.value.positive), o = Math.min(...te.value.negative), t = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, l = Ee(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
165
|
+
return l.ticks.map((i) => ({
|
|
166
|
+
zero: r.value.bottom - r.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
167
|
+
y: r.value.bottom - r.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
168
|
+
x: r.value.left - 8,
|
|
169
|
+
horizontal_zero: r.value.left + r.value.width * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
170
|
+
horizontal_x: r.value.left + r.value.width * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
171
|
+
horizontal_y: r.value.bottom - 8,
|
|
172
|
+
value: i
|
|
173
|
+
}));
|
|
174
|
+
}), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
|
|
175
|
+
if (!E.value) return [];
|
|
176
|
+
let a = Array(P.value).fill(0), o = Array(P.value).fill(0), t = Array(P.value).fill(0), l = Array(P.value).fill(0);
|
|
177
|
+
const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), z = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = Ee(z > 0 ? 0 : z, 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, S = r.value.height, oe = r.value.width, Ve = N.value[0] ? N.value[0].zero : r.value.bottom, Fe = N.value[0] ? N.value[0].horizontal_zero : r.value.left;
|
|
178
|
+
return R.value.filter((Z) => !_.value.includes(Z.id)).map((Z) => {
|
|
179
|
+
const O = Z.series.slice(c.value.start, c.value.end), at = Z.signedSeries.slice(c.value.start, c.value.end), lt = O.map((y, g) => r.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), ot = O.map((y, g) => r.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), rt = O.map((y, g) => {
|
|
180
|
+
const $ = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
181
|
+
let A, T;
|
|
182
|
+
return y > 0 ? (T = S * $, A = Ve - T - a[g], a[g] += T) : (T = S * $, A = Ve + t[g], t[g] += Math.abs(T)), A;
|
|
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($);
|
|
190
|
+
}), ut = O.map((y, g) => {
|
|
191
|
+
const $ = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
192
|
+
return y > 0 ? oe * $ : oe * Math.abs($);
|
|
193
|
+
}), nt = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
|
|
194
|
+
return {
|
|
195
|
+
...Z,
|
|
196
|
+
proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / nt),
|
|
197
|
+
series: O,
|
|
198
|
+
signedSeries: at,
|
|
199
|
+
x: lt,
|
|
200
|
+
y: rt,
|
|
201
|
+
height: it,
|
|
202
|
+
horizontal_width: ut,
|
|
203
|
+
horizontal_y: ot,
|
|
204
|
+
horizontal_x: st
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
}), Le = p(() => Ke.value.map((a, o) => ({
|
|
208
|
+
value: a,
|
|
209
|
+
sign: a >= 0 ? 1 : -1
|
|
210
|
+
})));
|
|
211
|
+
function ae(a, o, t, l, i) {
|
|
212
|
+
const n = i === -1 && a >= 0 ? -a : a;
|
|
213
|
+
return Ue(
|
|
214
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
215
|
+
n,
|
|
216
|
+
H({
|
|
217
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
218
|
+
v: n,
|
|
219
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
220
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
221
|
+
}),
|
|
222
|
+
{ datapoint: o, seriesIndex: t, datapointIndex: l }
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
function Se(a, o, t, l) {
|
|
226
|
+
return Ue(
|
|
227
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
228
|
+
a,
|
|
229
|
+
H({
|
|
230
|
+
v: a,
|
|
231
|
+
s: "%",
|
|
232
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
233
|
+
}),
|
|
234
|
+
{ datapoint: o, seriesIndex: t, datapointIndex: l }
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
function $e(a) {
|
|
238
|
+
const o = JSON.parse(JSON.stringify(m.value)).map((t) => ({
|
|
239
|
+
name: t.name,
|
|
240
|
+
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
241
|
+
proportion: t.proportions[a] || null,
|
|
242
|
+
color: t.color,
|
|
243
|
+
id: t.id
|
|
244
|
+
}));
|
|
245
|
+
de("selectDatapoint", { datapoint: o, period: J.value[a] });
|
|
246
|
+
}
|
|
247
|
+
function Te(a) {
|
|
248
|
+
U.value = a, j.value = !0;
|
|
249
|
+
const o = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
|
|
250
|
+
name: i.name,
|
|
251
|
+
value: i.series[a] === 0 ? 0 : (i.signedSeries[a] === -1 && i.series[a] >= 0 ? -i.series[a] : i.series[a]) || null,
|
|
252
|
+
proportion: i.proportions[a] || null,
|
|
253
|
+
color: i.color,
|
|
254
|
+
id: i.id
|
|
255
|
+
})), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
|
|
256
|
+
if (Xe(o) && kt(() => o({
|
|
257
|
+
seriesIndex: a,
|
|
258
|
+
datapoint: t,
|
|
259
|
+
series: m.value,
|
|
260
|
+
config: e.value
|
|
261
|
+
})))
|
|
262
|
+
ue.value = o({
|
|
263
|
+
seriesIndex: a,
|
|
264
|
+
datapoint: t,
|
|
265
|
+
series: m.value,
|
|
266
|
+
config: e.value
|
|
267
|
+
});
|
|
268
|
+
else {
|
|
269
|
+
const {
|
|
270
|
+
showValue: i,
|
|
271
|
+
showPercentage: n,
|
|
272
|
+
borderColor: z,
|
|
273
|
+
roundingValue: I,
|
|
274
|
+
roundingPercentage: V
|
|
275
|
+
} = e.value.style.chart.tooltip;
|
|
276
|
+
let q = "";
|
|
277
|
+
J.value[a] && (q += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z};padding-bottom:6px;margin-bottom:3px;">${J.value[a]}</div>`);
|
|
278
|
+
const F = [
|
|
279
|
+
i && n ? "(" : "",
|
|
280
|
+
i && n ? ")" : ""
|
|
281
|
+
];
|
|
282
|
+
t.reverse().forEach((S) => {
|
|
283
|
+
q += `
|
|
284
|
+
<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_${S.id})` : S.color}"/></svg>
|
|
286
|
+
${S.name}${i || n ? ":" : ""} ${i ? H({
|
|
287
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
288
|
+
v: S.value,
|
|
289
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
290
|
+
r: I
|
|
291
|
+
}) : ""} ${F[0]}${n ? H({
|
|
292
|
+
v: isNaN(S.value / l) ? 0 : Math.abs(S.value) / l * 100,
|
|
293
|
+
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
294
|
+
s: "%",
|
|
295
|
+
r: V
|
|
296
|
+
}) : ""}${F[1]}
|
|
297
|
+
</div>
|
|
298
|
+
`;
|
|
299
|
+
}), ue.value = `<div>${q}</div>`;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function Qe(a) {
|
|
303
|
+
ne.value = a, ge.value += 1;
|
|
304
|
+
}
|
|
305
|
+
function Ne() {
|
|
306
|
+
k.value.showTable = !k.value.showTable;
|
|
307
|
+
}
|
|
308
|
+
function Me() {
|
|
309
|
+
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
310
|
+
}
|
|
311
|
+
function Oe() {
|
|
312
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
313
|
+
}
|
|
314
|
+
function je() {
|
|
315
|
+
return m.value;
|
|
316
|
+
}
|
|
317
|
+
const Re = p(() => {
|
|
318
|
+
if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
319
|
+
const a = m.value.map(({ name: t, color: l }) => ({
|
|
320
|
+
label: t,
|
|
321
|
+
color: l
|
|
322
|
+
})), o = [];
|
|
323
|
+
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
324
|
+
const l = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
325
|
+
R.value.forEach((i) => {
|
|
326
|
+
l.push(Number((i.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
327
|
+
}), o.push(l);
|
|
328
|
+
}
|
|
329
|
+
return { head: a, body: o };
|
|
330
|
+
});
|
|
331
|
+
function Pe() {
|
|
332
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = ["", ...Re.value.head.map((n) => n.label)], t = Re.value.body, l = a.concat([o]).concat(t), i = wt(l);
|
|
333
|
+
Ct({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
334
|
+
}
|
|
335
|
+
const le = p(() => {
|
|
336
|
+
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 o = [];
|
|
338
|
+
for (let i = 0; i < P.value; i += 1) {
|
|
339
|
+
const n = m.value.map((z) => z.series[i] ?? 0).reduce((z, I) => z + I, 0);
|
|
340
|
+
o.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[i] ?? i + 1].concat(m.value.map((z) => (z.series[i] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
341
|
+
}
|
|
342
|
+
const t = {
|
|
343
|
+
th: {
|
|
344
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
345
|
+
color: e.value.table.th.color,
|
|
346
|
+
outline: e.value.table.th.outline
|
|
347
|
+
},
|
|
348
|
+
td: {
|
|
349
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
350
|
+
color: e.value.table.td.color,
|
|
351
|
+
outline: e.value.table.td.outline
|
|
352
|
+
},
|
|
353
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
354
|
+
}, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
|
|
355
|
+
return { head: a, body: o.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
356
|
+
});
|
|
357
|
+
function et(a, o) {
|
|
358
|
+
if (de("selectLegend", m.value.find((t) => t.absoluteIndex === a)), _.value.includes(o.id))
|
|
359
|
+
_.value = _.value.filter((t) => t !== o.id);
|
|
360
|
+
else {
|
|
361
|
+
if (_.value.length === R.value.length - 1) return;
|
|
362
|
+
_.value.push(o.id);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
const Ie = p(() => R.value.map((a, o) => ({
|
|
366
|
+
...a,
|
|
367
|
+
shape: "square"
|
|
368
|
+
})).map((a) => ({
|
|
369
|
+
...a,
|
|
370
|
+
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
371
|
+
segregate: () => et(a.absoluteIndex, a),
|
|
372
|
+
isSegregated: _.value.includes(a.id)
|
|
373
|
+
}))), tt = p(() => ({
|
|
374
|
+
cy: "stackbar-legend",
|
|
375
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
376
|
+
color: e.value.style.chart.legend.color,
|
|
377
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
378
|
+
paddingBottom: 12,
|
|
379
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
380
|
+
}));
|
|
381
|
+
return Ge({
|
|
382
|
+
getData: je,
|
|
383
|
+
generatePdf: we,
|
|
384
|
+
generateCsv: Pe,
|
|
385
|
+
generateImage: Ce,
|
|
386
|
+
toggleTable: Ne,
|
|
387
|
+
toggleLabels: Me,
|
|
388
|
+
toggleTooltip: Oe
|
|
389
|
+
}), (a, o) => (s(), u("div", {
|
|
390
|
+
id: `stackbar_${ie.value}`,
|
|
391
|
+
ref_key: "stackbarChart",
|
|
392
|
+
ref: X,
|
|
393
|
+
class: ce({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
394
|
+
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
|
+
w(a.$slots, "userConfig", {}, void 0, !0),
|
|
397
|
+
e.value.style.chart.title.text ? (s(), u("div", {
|
|
398
|
+
key: 0,
|
|
399
|
+
ref_key: "chartTitle",
|
|
400
|
+
ref: be,
|
|
401
|
+
style: K(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
402
|
+
}, [
|
|
403
|
+
ve(Nt, {
|
|
404
|
+
config: {
|
|
405
|
+
title: {
|
|
406
|
+
cy: "stackbar-title",
|
|
407
|
+
...e.value.style.chart.title
|
|
408
|
+
},
|
|
409
|
+
subtitle: {
|
|
410
|
+
cy: "stackbar-subtitle",
|
|
411
|
+
...e.value.style.chart.title.subtitle
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}, null, 8, ["config"])
|
|
415
|
+
], 4)) : v("", !0),
|
|
416
|
+
e.value.userOptions.show && E.value ? (s(), Q(St, {
|
|
417
|
+
ref: "details",
|
|
418
|
+
key: `user_option_${ge.value}`,
|
|
419
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
420
|
+
color: e.value.style.chart.color,
|
|
421
|
+
isPrinting: x(xe),
|
|
422
|
+
isImaging: x(ke),
|
|
423
|
+
uid: ie.value,
|
|
424
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
425
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
426
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
427
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
428
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
429
|
+
hasLabel: e.value.userOptions.buttons.labels,
|
|
430
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
431
|
+
isFullscreen: ne.value,
|
|
432
|
+
chartElement: X.value,
|
|
433
|
+
isTooltip: k.value.showTooltip,
|
|
434
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
435
|
+
onToggleFullscreen: Qe,
|
|
436
|
+
onGeneratePdf: x(we),
|
|
437
|
+
onGenerateCsv: Pe,
|
|
438
|
+
onGenerateImage: x(Ce),
|
|
439
|
+
onToggleTable: Ne,
|
|
440
|
+
onToggleLabels: Me,
|
|
441
|
+
onToggleTooltip: Oe
|
|
442
|
+
}, ct({ _: 2 }, [
|
|
443
|
+
a.$slots.optionTooltip ? {
|
|
444
|
+
name: "optionTooltip",
|
|
445
|
+
fn: C(() => [
|
|
446
|
+
w(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
key: "0"
|
|
449
|
+
} : void 0,
|
|
450
|
+
a.$slots.optionPdf ? {
|
|
451
|
+
name: "optionPdf",
|
|
452
|
+
fn: C(() => [
|
|
453
|
+
w(a.$slots, "optionPdf", {}, void 0, !0)
|
|
454
|
+
]),
|
|
455
|
+
key: "1"
|
|
456
|
+
} : void 0,
|
|
457
|
+
a.$slots.optionCsv ? {
|
|
458
|
+
name: "optionCsv",
|
|
459
|
+
fn: C(() => [
|
|
460
|
+
w(a.$slots, "optionCsv", {}, void 0, !0)
|
|
461
|
+
]),
|
|
462
|
+
key: "2"
|
|
463
|
+
} : void 0,
|
|
464
|
+
a.$slots.optionImg ? {
|
|
465
|
+
name: "optionImg",
|
|
466
|
+
fn: C(() => [
|
|
467
|
+
w(a.$slots, "optionImg", {}, void 0, !0)
|
|
468
|
+
]),
|
|
469
|
+
key: "3"
|
|
470
|
+
} : void 0,
|
|
471
|
+
a.$slots.optionTable ? {
|
|
472
|
+
name: "optionTable",
|
|
473
|
+
fn: C(() => [
|
|
474
|
+
w(a.$slots, "optionTable", {}, void 0, !0)
|
|
475
|
+
]),
|
|
476
|
+
key: "4"
|
|
477
|
+
} : void 0,
|
|
478
|
+
a.$slots.optionLabels ? {
|
|
479
|
+
name: "optionLabels",
|
|
480
|
+
fn: C(() => [
|
|
481
|
+
w(a.$slots, "optionLabels", {}, void 0, !0)
|
|
482
|
+
]),
|
|
483
|
+
key: "5"
|
|
484
|
+
} : void 0,
|
|
485
|
+
a.$slots.optionFullscreen ? {
|
|
486
|
+
name: "optionFullscreen",
|
|
487
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
488
|
+
w(a.$slots, "optionFullscreen", B(W({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
489
|
+
]),
|
|
490
|
+
key: "6"
|
|
491
|
+
} : void 0
|
|
492
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
493
|
+
E.value ? (s(), u("svg", {
|
|
494
|
+
key: 2,
|
|
495
|
+
xmlns: x(pt),
|
|
496
|
+
viewBox: `0 0 ${r.value.chartWidth <= 0 ? 10 : r.value.chartWidth} ${r.value.chartHeight <= 0 ? 10 : r.value.chartHeight}`,
|
|
497
|
+
style: K(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
498
|
+
}, [
|
|
499
|
+
e.value.style.chart.bars.gradient.show ? (s(), u("defs", At, [
|
|
500
|
+
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("linearGradient", {
|
|
501
|
+
id: `gradient_${t.id}`,
|
|
502
|
+
x1: "0%",
|
|
503
|
+
y1: "0%",
|
|
504
|
+
x2: "0%",
|
|
505
|
+
y2: "100%"
|
|
506
|
+
}, [
|
|
507
|
+
D("stop", {
|
|
508
|
+
offset: "0%",
|
|
509
|
+
"stop-color": t.color
|
|
510
|
+
}, null, 8, Ht),
|
|
511
|
+
D("stop", {
|
|
512
|
+
offset: "61.8%",
|
|
513
|
+
"stop-color": x(xt)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
514
|
+
}, null, 8, Et),
|
|
515
|
+
D("stop", {
|
|
516
|
+
offset: "100%",
|
|
517
|
+
"stop-color": t.color
|
|
518
|
+
}, null, 8, Bt)
|
|
519
|
+
], 8, Dt))), 256))
|
|
520
|
+
])) : v("", !0),
|
|
521
|
+
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: r.value.left,
|
|
523
|
+
x2: r.value.right,
|
|
524
|
+
y1: t.y,
|
|
525
|
+
y2: t.y,
|
|
526
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
527
|
+
"stroke-width": 1,
|
|
528
|
+
"stroke-linecap": "round"
|
|
529
|
+
}, null, 8, Wt))), 256)) : v("", !0),
|
|
530
|
+
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: r.value.left,
|
|
532
|
+
x2: r.value.right,
|
|
533
|
+
y1: r.value.top + d.value * l,
|
|
534
|
+
y2: r.value.top + d.value * l,
|
|
535
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
536
|
+
"stroke-width": 1,
|
|
537
|
+
"stroke-linecap": "round"
|
|
538
|
+
}, null, 8, Xt))), 256)) : v("", !0),
|
|
539
|
+
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: r.value.left + d.value * l,
|
|
541
|
+
x2: r.value.left + d.value * l,
|
|
542
|
+
y1: r.value.top,
|
|
543
|
+
y2: r.value.bottom,
|
|
544
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
545
|
+
"stroke-width": 1,
|
|
546
|
+
"stroke-linecap": "round"
|
|
547
|
+
}, null, 8, Ut))), 256)) : v("", !0),
|
|
548
|
+
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
|
+
x1: t.horizontal_x,
|
|
550
|
+
x2: t.horizontal_x,
|
|
551
|
+
y1: r.value.top,
|
|
552
|
+
y2: r.value.bottom,
|
|
553
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
554
|
+
"stroke-width": 1,
|
|
555
|
+
"stroke-linecap": "round"
|
|
556
|
+
}, null, 8, Yt))), 256)) : v("", !0),
|
|
557
|
+
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
558
|
+
e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, b(t.x, (i, n) => (s(), u("rect", {
|
|
559
|
+
x: i,
|
|
560
|
+
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
561
|
+
height: t.height[n] < 0 ? 1e-4 : t.height[n],
|
|
562
|
+
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
563
|
+
width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
564
|
+
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
565
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
566
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
567
|
+
"stroke-linecap": "round",
|
|
568
|
+
"stroke-linejoin": "round",
|
|
569
|
+
class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
570
|
+
}, null, 10, Gt))), 256)) : (s(!0), u(h, { key: 1 }, b(t.horizontal_x, (i, n) => (s(), u("rect", {
|
|
571
|
+
x: i,
|
|
572
|
+
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
573
|
+
width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
|
|
574
|
+
rx: e.value.style.chart.bars.borderRadius > t.height[n] / 2 ? (t.height[n] < 0 ? 0 : t.height[n]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
575
|
+
height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
576
|
+
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
577
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
578
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
579
|
+
"stroke-linecap": "round",
|
|
580
|
+
"stroke-linejoin": "round",
|
|
581
|
+
class: ce({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
582
|
+
}, null, 10, Jt))), 256))
|
|
583
|
+
]))), 256)),
|
|
584
|
+
e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
|
|
585
|
+
key: 5,
|
|
586
|
+
x1: r.value.left,
|
|
587
|
+
x2: r.value.right,
|
|
588
|
+
y1: r.value.bottom,
|
|
589
|
+
y2: r.value.bottom,
|
|
590
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
591
|
+
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
592
|
+
"stroke-linecap": "round",
|
|
593
|
+
"stroke-linejoin": "round"
|
|
594
|
+
}, null, 8, qt)) : v("", !0),
|
|
595
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
|
|
596
|
+
key: 6,
|
|
597
|
+
x1: r.value.left,
|
|
598
|
+
x2: r.value.left,
|
|
599
|
+
y1: r.value.top,
|
|
600
|
+
y2: r.value.bottom,
|
|
601
|
+
stroke: e.value.style.chart.grid.y.axisColor,
|
|
602
|
+
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
603
|
+
"stroke-linecap": "round",
|
|
604
|
+
"stroke-linejoin": "round"
|
|
605
|
+
}, null, 8, Zt)) : v("", !0),
|
|
606
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
|
|
607
|
+
key: 7,
|
|
608
|
+
x: r.value.left + r.value.width / 2,
|
|
609
|
+
y: r.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
610
|
+
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
611
|
+
fill: e.value.style.chart.grid.x.axisName.color,
|
|
612
|
+
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
613
|
+
"text-anchor": "middle"
|
|
614
|
+
}, L(e.value.style.chart.grid.x.axisName.text), 9, Kt)) : v("", !0),
|
|
615
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
|
|
616
|
+
key: 8,
|
|
617
|
+
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
|
|
618
|
+
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
619
|
+
fill: e.value.style.chart.grid.y.axisName.color,
|
|
620
|
+
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
621
|
+
"text-anchor": "middle"
|
|
622
|
+
}, L(e.value.style.chart.grid.y.axisName.text), 9, Qt)) : v("", !0),
|
|
623
|
+
k.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
|
|
624
|
+
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
625
|
+
(s(!0), u(h, null, b(t.x, (i, n) => (s(), u("text", {
|
|
626
|
+
x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
627
|
+
y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
628
|
+
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
629
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Be)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
630
|
+
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
631
|
+
"text-anchor": "middle"
|
|
632
|
+
}, L(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, jt))), 256))
|
|
633
|
+
]))), 256)),
|
|
634
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", ea, [
|
|
635
|
+
(s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
|
|
636
|
+
x: r.value.left + d.value * l + d.value / 2,
|
|
637
|
+
y: r.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
638
|
+
"text-anchor": "middle",
|
|
639
|
+
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
640
|
+
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
641
|
+
fill: e.value.style.chart.bars.totalValues.color
|
|
642
|
+
}, L(ae(t.value, t, l, t.sign)), 9, ta))), 256))
|
|
643
|
+
])) : v("", !0)
|
|
644
|
+
], 64)) : v("", !0),
|
|
645
|
+
k.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
|
|
646
|
+
(s(!0), u(h, null, b(m.value, (t, l) => (s(), u("g", null, [
|
|
647
|
+
(s(!0), u(h, null, b(t.horizontal_x, (i, n) => (s(), u("text", {
|
|
648
|
+
x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
|
|
649
|
+
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
|
+
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
651
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? x(Be)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
652
|
+
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
653
|
+
"text-anchor": "middle"
|
|
654
|
+
}, L(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, aa))), 256))
|
|
655
|
+
]))), 256)),
|
|
656
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", la, [
|
|
657
|
+
(s(!0), u(h, null, b(Le.value, (t, l) => (s(), u("text", {
|
|
658
|
+
x: r.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
659
|
+
y: r.value.top + d.value * l + d.value / 2,
|
|
660
|
+
"text-anchor": "start",
|
|
661
|
+
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
662
|
+
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
663
|
+
fill: e.value.style.chart.bars.totalValues.color
|
|
664
|
+
}, L(ae(t.value, t, l, t.sign)), 9, oa))), 256))
|
|
665
|
+
])) : v("", !0)
|
|
666
|
+
], 64)) : v("", !0),
|
|
667
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
|
|
668
|
+
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
|
|
669
|
+
x1: r.value.left,
|
|
670
|
+
x2: r.value.left - 6,
|
|
671
|
+
y1: t.y,
|
|
672
|
+
y2: t.y,
|
|
673
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
674
|
+
"stroke-width": 1
|
|
675
|
+
}, null, 8, ra))), 256)),
|
|
676
|
+
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
|
|
677
|
+
x: t.x,
|
|
678
|
+
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
679
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
680
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
681
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
682
|
+
"text-anchor": "end"
|
|
683
|
+
}, L(x(H)({
|
|
684
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
685
|
+
v: t.value,
|
|
686
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
687
|
+
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
688
|
+
})), 9, sa))), 256))
|
|
689
|
+
], 64)) : v("", !0),
|
|
690
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
|
|
691
|
+
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("line", {
|
|
692
|
+
x1: t.horizontal_x,
|
|
693
|
+
x2: t.horizontal_x,
|
|
694
|
+
y1: r.value.bottom,
|
|
695
|
+
y2: r.value.bottom + 6,
|
|
696
|
+
stroke: e.value.style.chart.grid.x.axisColor,
|
|
697
|
+
"stroke-width": 1,
|
|
698
|
+
"stroke-linecap": "round"
|
|
699
|
+
}, null, 8, ia))), 256)),
|
|
700
|
+
(s(!0), u(h, null, b(N.value, (t, l) => (s(), u("text", {
|
|
701
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
702
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
703
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
704
|
+
"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}, ${r.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})`
|
|
706
|
+
}, L(x(H)({
|
|
707
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
708
|
+
v: t.value,
|
|
709
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
710
|
+
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
711
|
+
})), 9, ua))), 256))
|
|
712
|
+
], 64)) : v("", !0),
|
|
713
|
+
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
|
+
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
715
|
+
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
716
|
+
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
717
|
+
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
718
|
+
transform: `translate(${r.value.left + d.value * l + d.value / 2}, ${r.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})`
|
|
719
|
+
}, L(t), 9, na))), 256)) : v("", !0),
|
|
720
|
+
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
|
+
"text-anchor": "end",
|
|
722
|
+
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
723
|
+
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
724
|
+
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
725
|
+
x: r.value.left - 8,
|
|
726
|
+
y: r.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
|
|
727
|
+
}, L(t), 9, ca))), 256)) : v("", !0),
|
|
728
|
+
k.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
729
|
+
x: r.value.left + l * d.value,
|
|
730
|
+
y: r.value.top,
|
|
731
|
+
width: d.value,
|
|
732
|
+
height: r.value.height < 0 ? 0 : r.value.height,
|
|
733
|
+
onClick: (i) => $e(l),
|
|
734
|
+
onMouseenter: (i) => Te(l),
|
|
735
|
+
onMouseleave: o[0] || (o[0] = (i) => {
|
|
736
|
+
U.value = null, j.value = !1;
|
|
737
|
+
}),
|
|
738
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + x(We)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
739
|
+
}, null, 40, va))), 256)) : v("", !0),
|
|
740
|
+
k.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, b(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
741
|
+
x: r.value.left,
|
|
742
|
+
y: r.value.top + l * d.value,
|
|
743
|
+
width: r.value.width < 0 ? 0 : r.value.width,
|
|
744
|
+
height: d.value,
|
|
745
|
+
onClick: (i) => $e(l),
|
|
746
|
+
onMouseenter: (i) => Te(l),
|
|
747
|
+
onMouseleave: o[1] || (o[1] = (i) => {
|
|
748
|
+
U.value = null, j.value = !1;
|
|
749
|
+
}),
|
|
750
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + x(We)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
751
|
+
}, null, 40, ha))), 256)) : v("", !0),
|
|
752
|
+
w(a.$slots, "svg", B(W({ ...r.value })), void 0, !0)
|
|
753
|
+
], 12, Ft)) : v("", !0),
|
|
754
|
+
a.$slots.watermark ? (s(), u("div", da, [
|
|
755
|
+
w(a.$slots, "watermark", B(W({ isPrinting: x(xe) || x(ke) })), void 0, !0)
|
|
756
|
+
])) : v("", !0),
|
|
757
|
+
E.value ? v("", !0) : (s(), Q(Pt, {
|
|
758
|
+
key: 4,
|
|
759
|
+
config: {
|
|
760
|
+
type: "bar",
|
|
761
|
+
style: {
|
|
762
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
763
|
+
bar: {
|
|
764
|
+
axis: {
|
|
765
|
+
color: "#CCCCCC"
|
|
766
|
+
},
|
|
767
|
+
color: "#CCCCCC"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}, null, 8, ["config"])),
|
|
772
|
+
D("div", {
|
|
773
|
+
ref_key: "chartSlicer",
|
|
774
|
+
ref: me,
|
|
775
|
+
style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
776
|
+
"data-html2canvas-ignore": ""
|
|
777
|
+
}, [
|
|
778
|
+
e.value.style.chart.zoom.show && P.value > 1 ? (s(), Q($t, {
|
|
779
|
+
key: `slicer_${pe.value}`,
|
|
780
|
+
background: e.value.style.chart.zoom.color,
|
|
781
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
782
|
+
fontSize: e.value.style.chart.zoom.fontSize,
|
|
783
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
784
|
+
labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? e.value.style.chart.grid.x.timeLabels.values[c.value.start] : "",
|
|
785
|
+
labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] : "",
|
|
786
|
+
textColor: e.value.style.chart.color,
|
|
787
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
788
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
789
|
+
max: Math.max(...he.dataset.map((t) => t.series.length)),
|
|
790
|
+
min: 0,
|
|
791
|
+
valueStart: c.value.start,
|
|
792
|
+
valueEnd: c.value.end,
|
|
793
|
+
start: c.value.start,
|
|
794
|
+
"onUpdate:start": o[2] || (o[2] = (t) => c.value.start = t),
|
|
795
|
+
end: c.value.end,
|
|
796
|
+
"onUpdate:end": o[3] || (o[3] = (t) => c.value.end = t),
|
|
797
|
+
onReset: Ze
|
|
798
|
+
}, {
|
|
799
|
+
"reset-action": C(({ reset: t }) => [
|
|
800
|
+
w(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
|
|
801
|
+
]),
|
|
802
|
+
_: 3
|
|
803
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
|
|
804
|
+
], 4),
|
|
805
|
+
ve(Tt, {
|
|
806
|
+
show: k.value.showTooltip && j.value,
|
|
807
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
808
|
+
color: e.value.style.chart.tooltip.color,
|
|
809
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
810
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
811
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
812
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
813
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
814
|
+
position: e.value.style.chart.tooltip.position,
|
|
815
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
816
|
+
parent: X.value,
|
|
817
|
+
content: ue.value,
|
|
818
|
+
isCustom: x(Xe)(e.value.style.chart.tooltip.customFormat)
|
|
819
|
+
}, {
|
|
820
|
+
"tooltip-before": C(() => [
|
|
821
|
+
w(a.$slots, "tooltip-before", B(W({ ...ye.value })), void 0, !0)
|
|
822
|
+
]),
|
|
823
|
+
"tooltip-after": C(() => [
|
|
824
|
+
w(a.$slots, "tooltip-after", B(W({ ...ye.value })), void 0, !0)
|
|
825
|
+
]),
|
|
826
|
+
_: 3
|
|
827
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
828
|
+
D("div", {
|
|
829
|
+
ref_key: "chartLegend",
|
|
830
|
+
ref: fe
|
|
831
|
+
}, [
|
|
832
|
+
e.value.style.chart.legend.show && E.value ? (s(), Q(Mt, {
|
|
833
|
+
key: 0,
|
|
834
|
+
legendSet: Ie.value,
|
|
835
|
+
config: tt.value,
|
|
836
|
+
onClickMarker: o[4] || (o[4] = ({ legend: t }) => t.segregate())
|
|
837
|
+
}, {
|
|
838
|
+
item: C(({ legend: t }) => [
|
|
839
|
+
D("div", {
|
|
840
|
+
onClick: (l) => t.segregate(),
|
|
841
|
+
style: K(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
842
|
+
}, L(t.name), 13, ya)
|
|
843
|
+
]),
|
|
844
|
+
_: 1
|
|
845
|
+
}, 8, ["legendSet", "config"])) : w(a.$slots, "legend", {
|
|
846
|
+
key: 1,
|
|
847
|
+
legend: Ie.value
|
|
848
|
+
}, void 0, !0)
|
|
849
|
+
], 512),
|
|
850
|
+
c.value.end - c.value.start < 200 ? (s(), Q(Ot, {
|
|
851
|
+
key: 5,
|
|
852
|
+
hideDetails: "",
|
|
853
|
+
config: {
|
|
854
|
+
open: k.value.showTable,
|
|
855
|
+
maxHeight: 1e4,
|
|
856
|
+
body: {
|
|
857
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
858
|
+
color: e.value.style.chart.color
|
|
859
|
+
},
|
|
860
|
+
head: {
|
|
861
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
862
|
+
color: e.value.style.chart.color
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}, {
|
|
866
|
+
content: C(() => [
|
|
867
|
+
ve(Rt, {
|
|
868
|
+
colNames: le.value.colNames,
|
|
869
|
+
head: le.value.head,
|
|
870
|
+
body: le.value.body,
|
|
871
|
+
config: le.value.config,
|
|
872
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
873
|
+
onClose: o[5] || (o[5] = (t) => k.value.showTable = !1)
|
|
874
|
+
}, {
|
|
875
|
+
th: C(({ th: t }) => [
|
|
876
|
+
D("div", { innerHTML: t }, null, 8, ga)
|
|
877
|
+
]),
|
|
878
|
+
td: C(({ td: t }) => [
|
|
879
|
+
vt(L(isNaN(Number(t)) ? t : x(H)({
|
|
880
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
881
|
+
v: t,
|
|
882
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
883
|
+
r: e.value.table.td.roundingValue
|
|
884
|
+
})), 1)
|
|
885
|
+
]),
|
|
886
|
+
_: 1
|
|
887
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
888
|
+
]),
|
|
889
|
+
_: 1
|
|
890
|
+
}, 8, ["config"])) : v("", !0)
|
|
891
|
+
], 14, Vt));
|
|
892
|
+
}
|
|
893
|
+
}, Na = /* @__PURE__ */ It(ba, [["__scopeId", "data-v-31c32788"]]);
|
|
894
|
+
export {
|
|
895
|
+
Na as default
|
|
896
|
+
};
|