vue-data-ui 2.3.28 → 2.3.30
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 +15 -0
- package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as y, ref as h, onMounted as xe, openBlock as u, createElementBlock 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 y, ref as h, onMounted as xe, openBlock as u, createElementBlock as n, normalizeClass as ke, normalizeStyle as A, renderSlot as p, createVNode as Z, createCommentVNode as d, createBlock as H, unref as w, createSlots as Ae, withCtx as m, normalizeProps as M, guardReactiveProps as O, Fragment as x, renderList as $, createElementVNode as R, toDisplayString as z, createTextVNode as He } from "vue";
|
|
2
|
+
import { u as Ee, c as we, o as Be, e as Ce, g as Ue, t as We, a as Ge, p as G, b as Xe, d as Ye, _ as Je, A as j, X as qe, l as Ke, D as Qe, f as V, v as Ze, w as $e, i as Le, x as je, q as et, r as tt } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { u as _e } from "./useNestedProp-BoNl5H_z.js";
|
|
4
|
+
import { t as at, u as lt } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import { u as ot, U as rt } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { S as st } from "./Slicer-DaEfxscP.js";
|
|
7
|
+
import { _ as ut } from "./Tooltip-B11OahTD.js";
|
|
8
|
+
import { _ as it } from "./Title-eBTH8iGJ.js";
|
|
9
|
+
import { L as nt } from "./Legend-CkQ_zypV.js";
|
|
10
|
+
import ct from "./vue-ui-accordion-wHRG3nXl.js";
|
|
11
|
+
import { D as vt } from "./DataTable-CsPidn0_.js";
|
|
12
|
+
import dt from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
13
|
+
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const gt = ["id"], yt = ["xmlns", "viewBox"], bt = { key: 0 }, ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], xt = ["stop-color"], kt = ["x1", "x2", "y1", "y2", "stroke"], wt = ["x1", "x2", "y1", "y2", "stroke"], Ct = ["d", "fill", "stroke", "stroke-width"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = ["x", "y", "font-size", "fill", "font-weight"], St = ["transform", "font-size", "fill", "font-weight"], Tt = ["x", "y", "font-size", "fill", "font-weight"], zt = { key: 0 }, Nt = ["x", "y", "font-size", "font-weight", "fill"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Pt = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["text-anchor", "font-size", "font-weight", "fill", "transform"], Mt = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ot = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Vt = ["onClick"], Dt = ["innerHTML"], It = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,21 +31,21 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend"],
|
|
34
|
-
setup(ee, { expose:
|
|
35
|
-
const _ = ee, { vue_ui_stackbar:
|
|
34
|
+
setup(ee, { expose: Se, emit: te }) {
|
|
35
|
+
const _ = ee, { vue_ui_stackbar: Te } = Ee(), P = y({
|
|
36
36
|
get() {
|
|
37
37
|
return !!_.dataset && _.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), D = h(null), X = h(we()), Y = h(!1), ae = h(null), J = h(""), L = h([]), le = h(0), oe = h(null), re = h(null), se = h(null), ue = h(0), q = h(!1),
|
|
42
|
+
}), D = h(null), X = h(we()), Y = h(!1), ae = h(null), J = h(""), L = h([]), le = h(0), oe = h(null), re = h(null), se = h(null), ue = h(0), q = h(!1), K = h(null);
|
|
43
43
|
xe(() => {
|
|
44
|
-
|
|
44
|
+
Be(_.dataset) ? Ce({
|
|
45
45
|
componentName: "VueUiStackbar",
|
|
46
46
|
type: "dataset"
|
|
47
47
|
}) : _.dataset.forEach((a, l) => {
|
|
48
|
-
|
|
48
|
+
Ue({
|
|
49
49
|
datasetObject: a,
|
|
50
50
|
requiredAttributes: ["name", "series"]
|
|
51
51
|
}).forEach((t) => {
|
|
@@ -59,24 +59,24 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
const e = y(() => {
|
|
62
|
-
const a =
|
|
62
|
+
const a = _e({
|
|
63
63
|
userConfig: _.config,
|
|
64
|
-
defaultConfig:
|
|
64
|
+
defaultConfig: Te
|
|
65
65
|
});
|
|
66
66
|
return a.theme ? {
|
|
67
|
-
...
|
|
68
|
-
userConfig:
|
|
67
|
+
..._e({
|
|
68
|
+
userConfig: We.vue_ui_stackbar[a.theme] || _.config,
|
|
69
69
|
defaultConfig: a
|
|
70
70
|
}),
|
|
71
|
-
customPalette:
|
|
71
|
+
customPalette: Ge[a.theme] || G
|
|
72
72
|
} : a;
|
|
73
|
-
}),
|
|
73
|
+
}), C = h({
|
|
74
74
|
dataLabels: {
|
|
75
75
|
show: e.value.style.chart.bars.dataLabels.show
|
|
76
76
|
},
|
|
77
77
|
showTable: e.value.table.show,
|
|
78
78
|
showTooltip: e.value.style.chart.tooltip.show
|
|
79
|
-
}), { isPrinting: ie, isImaging: ne, generatePdf: ce, generateImage: ve } =
|
|
79
|
+
}), { isPrinting: ie, isImaging: ne, generatePdf: ce, generateImage: ve } = ot({
|
|
80
80
|
elementId: `stackbar_${X.value}`,
|
|
81
81
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
82
82
|
}), E = h({
|
|
@@ -88,11 +88,11 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
88
88
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
89
89
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), ze = y(() => Xe(e.value.customPalette)), de = h(null);
|
|
92
92
|
xe(() => {
|
|
93
93
|
if (e.value.responsive) {
|
|
94
|
-
const a =
|
|
95
|
-
const { width: l, height: t } =
|
|
94
|
+
const a = at(() => {
|
|
95
|
+
const { width: l, height: t } = lt({
|
|
96
96
|
chart: D.value,
|
|
97
97
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
98
98
|
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
@@ -104,19 +104,19 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
const s = y(() => {
|
|
107
|
-
const { height: a, width: l } = E.value, { right: t } = E.value.paddingRatio,
|
|
107
|
+
const { height: a, width: l } = E.value, { right: t } = E.value.paddingRatio, o = e.value.style.chart.padding.top, r = l - l * t, i = a - e.value.style.chart.padding.bottom, g = e.value.style.chart.padding.left, f = l - g - l * t, k = a - o - e.value.style.chart.padding.bottom;
|
|
108
108
|
return {
|
|
109
109
|
chartHeight: a,
|
|
110
110
|
chartWidth: l,
|
|
111
|
-
top:
|
|
112
|
-
right:
|
|
113
|
-
bottom:
|
|
111
|
+
top: o,
|
|
112
|
+
right: r,
|
|
113
|
+
bottom: i,
|
|
114
114
|
left: g,
|
|
115
115
|
width: f,
|
|
116
116
|
height: k
|
|
117
117
|
};
|
|
118
118
|
}), F = y(() => _.dataset.map((a, l) => {
|
|
119
|
-
const t =
|
|
119
|
+
const t = Ye(a.color) || ze.value[l] || G[l] || G[l % G.length];
|
|
120
120
|
return {
|
|
121
121
|
...a,
|
|
122
122
|
absoluteIndex: l,
|
|
@@ -127,7 +127,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
127
127
|
start: 0,
|
|
128
128
|
end: Math.max(..._.dataset.map((a) => a.series.length))
|
|
129
129
|
});
|
|
130
|
-
function
|
|
130
|
+
function Ne() {
|
|
131
131
|
c.value = {
|
|
132
132
|
start: 0,
|
|
133
133
|
end: Math.max(..._.dataset.map((a) => a.series.length))
|
|
@@ -136,7 +136,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
136
136
|
const b = y(() => {
|
|
137
137
|
const a = s.value.width / (c.value.end - c.value.start);
|
|
138
138
|
return a <= 0 ? 0 : a;
|
|
139
|
-
}), N = y(() =>
|
|
139
|
+
}), N = y(() => Je(F.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), Q = y(() => {
|
|
140
140
|
const a = Math.max(...N.value), l = j(0, a, e.value.style.chart.grid.scale.ticks);
|
|
141
141
|
return l.ticks.map((t) => ({
|
|
142
142
|
y: s.value.bottom - s.value.height * (t / l.max),
|
|
@@ -146,47 +146,57 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
146
146
|
}), U = y(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), v = y(() => {
|
|
147
147
|
if (!P.value) return [];
|
|
148
148
|
let a = Array(B.value).fill(0);
|
|
149
|
-
const l = s.value.height, t = Math.max(...N.value),
|
|
150
|
-
return F.value.filter((
|
|
151
|
-
const g =
|
|
149
|
+
const l = s.value.height, t = Math.max(...N.value), r = j(0, t, e.value.style.chart.grid.scale.ticks).max;
|
|
150
|
+
return F.value.filter((i) => !L.value.includes(i.id)).map((i) => {
|
|
151
|
+
const g = i.series.slice(c.value.start, c.value.end);
|
|
152
152
|
return {
|
|
153
|
-
...
|
|
154
|
-
proportions: g.map((f, k) => e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) /
|
|
153
|
+
...i,
|
|
154
|
+
proportions: g.map((f, k) => e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) / r),
|
|
155
155
|
series: g,
|
|
156
156
|
x: g.map((f, k) => s.value.left + b.value * k + b.value * e.value.style.chart.bars.gapRatio / 4),
|
|
157
157
|
y: g.map((f, k) => {
|
|
158
|
-
const S = e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) /
|
|
159
|
-
return a[k] +=
|
|
158
|
+
const S = e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) / r, I = l * S, T = l - I - a[k];
|
|
159
|
+
return a[k] += I, T + s.value.top;
|
|
160
160
|
}),
|
|
161
161
|
height: g.map((f, k) => {
|
|
162
|
-
const S = e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) /
|
|
162
|
+
const S = e.value.style.chart.bars.distributed ? (f || 0) / N.value[k] : (f || 0) / r;
|
|
163
163
|
return l * S <= 0 ? 0 : l * S;
|
|
164
164
|
})
|
|
165
165
|
};
|
|
166
166
|
});
|
|
167
|
-
}),
|
|
167
|
+
}), Re = y(() => {
|
|
168
168
|
const a = Math.max(...N.value), t = j(0, a, e.value.style.chart.grid.scale.ticks).max;
|
|
169
|
-
return N.value.map((
|
|
170
|
-
value:
|
|
171
|
-
y: (1 -
|
|
169
|
+
return N.value.map((o, r) => ({
|
|
170
|
+
value: o,
|
|
171
|
+
y: (1 - o / t) * s.value.height
|
|
172
172
|
}));
|
|
173
173
|
});
|
|
174
|
-
function he(a) {
|
|
175
|
-
return
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
function he(a, l, t, o) {
|
|
175
|
+
return Le(
|
|
176
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
177
|
+
a,
|
|
178
|
+
V({
|
|
179
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
180
|
+
v: a,
|
|
181
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
182
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
183
|
+
}),
|
|
184
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
185
|
+
);
|
|
181
186
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
function Pe(a, l, t, o) {
|
|
188
|
+
return Le(
|
|
189
|
+
e.value.style.chart.bars.dataLabels.formatter,
|
|
190
|
+
a,
|
|
191
|
+
V({
|
|
192
|
+
v: a,
|
|
193
|
+
s: "%",
|
|
194
|
+
r: e.value.style.chart.bars.dataLabels.rounding
|
|
195
|
+
}),
|
|
196
|
+
{ datapoint: l, seriesIndex: t, datapointIndex: o }
|
|
197
|
+
);
|
|
188
198
|
}
|
|
189
|
-
function
|
|
199
|
+
function Fe(a) {
|
|
190
200
|
const l = JSON.parse(JSON.stringify(v.value)).map((t) => ({
|
|
191
201
|
name: t.name,
|
|
192
202
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -196,16 +206,16 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
196
206
|
}));
|
|
197
207
|
te("selectDatapoint", { datapoint: l, period: U.value[a] });
|
|
198
208
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
201
|
-
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(v.value)).map((
|
|
202
|
-
name:
|
|
203
|
-
value:
|
|
204
|
-
proportion:
|
|
205
|
-
color:
|
|
206
|
-
id:
|
|
207
|
-
})),
|
|
208
|
-
if ($e(l) &&
|
|
209
|
+
function Me(a) {
|
|
210
|
+
K.value = a, Y.value = !0;
|
|
211
|
+
const l = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(v.value)).map((r) => ({
|
|
212
|
+
name: r.name,
|
|
213
|
+
value: r.series[a] === 0 ? 0 : r.series[a] || null,
|
|
214
|
+
proportion: r.proportions[a] || null,
|
|
215
|
+
color: r.color,
|
|
216
|
+
id: r.id
|
|
217
|
+
})), o = t.map((r) => r.value).reduce((r, i) => r + i, 0);
|
|
218
|
+
if ($e(l) && je(() => l({
|
|
209
219
|
seriesIndex: a,
|
|
210
220
|
datapoint: t,
|
|
211
221
|
series: v.value,
|
|
@@ -219,76 +229,76 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
219
229
|
});
|
|
220
230
|
else {
|
|
221
231
|
const {
|
|
222
|
-
showValue:
|
|
223
|
-
showPercentage:
|
|
232
|
+
showValue: r,
|
|
233
|
+
showPercentage: i,
|
|
224
234
|
borderColor: g,
|
|
225
235
|
roundingValue: f,
|
|
226
236
|
roundingPercentage: k
|
|
227
237
|
} = e.value.style.chart.tooltip;
|
|
228
238
|
let S = "";
|
|
229
239
|
U.value[a] && (S += `<div style="width:100%;text-align:center;border-bottom:1px solid ${g};padding-bottom:6px;margin-bottom:3px;">${U.value[a]}</div>`);
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
240
|
+
const I = [
|
|
241
|
+
r && i ? "(" : "",
|
|
242
|
+
r && i ? ")" : ""
|
|
233
243
|
];
|
|
234
244
|
t.reverse().forEach((T) => {
|
|
235
245
|
S += `
|
|
236
246
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
237
247
|
<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_${T.id})` : T.color}"/></svg>
|
|
238
|
-
${T.name}${
|
|
248
|
+
${T.name}${r || i ? ":" : ""} ${r ? V({
|
|
239
249
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
240
250
|
v: T.value,
|
|
241
251
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
242
252
|
r: f
|
|
243
|
-
}) : ""} ${
|
|
244
|
-
v: isNaN(T.value /
|
|
253
|
+
}) : ""} ${I[0]}${i ? V({
|
|
254
|
+
v: isNaN(T.value / o) ? 0 : T.value / o * 100,
|
|
245
255
|
s: "%",
|
|
246
256
|
r: k
|
|
247
|
-
}) : ""}${
|
|
257
|
+
}) : ""}${I[1]}
|
|
248
258
|
</div>
|
|
249
259
|
`;
|
|
250
260
|
}), J.value = `<div>${S}</div>`;
|
|
251
261
|
}
|
|
252
262
|
}
|
|
253
|
-
function
|
|
263
|
+
function Oe(a) {
|
|
254
264
|
q.value = a, le.value += 1;
|
|
255
265
|
}
|
|
256
266
|
function ge() {
|
|
257
|
-
|
|
267
|
+
C.value.showTable = !C.value.showTable;
|
|
258
268
|
}
|
|
259
269
|
function ye() {
|
|
260
|
-
|
|
270
|
+
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
261
271
|
}
|
|
262
272
|
function be() {
|
|
263
|
-
|
|
273
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
264
274
|
}
|
|
265
|
-
function
|
|
275
|
+
function Ve() {
|
|
266
276
|
return v.value;
|
|
267
277
|
}
|
|
268
278
|
const fe = y(() => {
|
|
269
279
|
if (v.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
270
|
-
const a = v.value.map(({ name: t, color:
|
|
280
|
+
const a = v.value.map(({ name: t, color: o }) => ({
|
|
271
281
|
label: t,
|
|
272
|
-
color:
|
|
282
|
+
color: o
|
|
273
283
|
})), l = [];
|
|
274
284
|
for (let t = c.value.start; t < c.value.end; t += 1) {
|
|
275
|
-
const
|
|
276
|
-
F.value.forEach((
|
|
277
|
-
|
|
278
|
-
}), l.push(
|
|
285
|
+
const o = [e.value.style.chart.grid.x.timeLabels.values[t] || t + 1];
|
|
286
|
+
F.value.forEach((r) => {
|
|
287
|
+
o.push(Number((r.series[t] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
288
|
+
}), l.push(o);
|
|
279
289
|
}
|
|
280
290
|
return { head: a, body: l };
|
|
281
291
|
});
|
|
282
292
|
function pe() {
|
|
283
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...fe.value.head.map((
|
|
284
|
-
|
|
293
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ["", ...fe.value.head.map((i) => i.label)], t = fe.value.body, o = a.concat([l]).concat(t), r = et(o);
|
|
294
|
+
tt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
285
295
|
}
|
|
286
296
|
const W = y(() => {
|
|
287
|
-
const a = [""].concat(v.value.map((
|
|
297
|
+
const a = [""].concat(v.value.map((r) => r.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>');
|
|
288
298
|
let l = [];
|
|
289
|
-
for (let
|
|
290
|
-
const
|
|
291
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[
|
|
299
|
+
for (let r = 0; r < B.value; r += 1) {
|
|
300
|
+
const i = v.value.map((g) => g.series[r] ?? 0).reduce((g, f) => g + f, 0);
|
|
301
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[r] ?? r + 1].concat(v.value.map((g) => (g.series[r] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((i ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
292
302
|
}
|
|
293
303
|
const t = {
|
|
294
304
|
th: {
|
|
@@ -302,8 +312,8 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
302
312
|
outline: e.value.table.td.outline
|
|
303
313
|
},
|
|
304
314
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
305
|
-
},
|
|
306
|
-
return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames:
|
|
315
|
+
}, o = [e.value.table.columnNames.period].concat(v.value.map((r) => r.name)).concat(e.value.table.columnNames.total);
|
|
316
|
+
return { head: a, body: l.slice(0, c.value.end - c.value.start), config: t, colNames: o };
|
|
307
317
|
});
|
|
308
318
|
function De(a, l) {
|
|
309
319
|
if (te("selectLegend", v.value.find((t) => t.absoluteIndex === a)), L.value.includes(l.id))
|
|
@@ -321,7 +331,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
321
331
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
322
332
|
segregate: () => De(a.absoluteIndex, a),
|
|
323
333
|
isSegregated: L.value.includes(a.id)
|
|
324
|
-
}))),
|
|
334
|
+
}))), Ie = y(() => ({
|
|
325
335
|
cy: "stackbar-legend",
|
|
326
336
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
327
337
|
color: e.value.style.chart.legend.color,
|
|
@@ -329,15 +339,15 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
329
339
|
paddingBottom: 12,
|
|
330
340
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
331
341
|
}));
|
|
332
|
-
return
|
|
333
|
-
getData:
|
|
342
|
+
return Se({
|
|
343
|
+
getData: Ve,
|
|
334
344
|
generatePdf: ce,
|
|
335
345
|
generateCsv: pe,
|
|
336
346
|
generateImage: ve,
|
|
337
347
|
toggleTable: ge,
|
|
338
348
|
toggleLabels: ye,
|
|
339
349
|
toggleTooltip: be
|
|
340
|
-
}), (a, l) => (u(),
|
|
350
|
+
}), (a, l) => (u(), n("div", {
|
|
341
351
|
id: `stackbar_${X.value}`,
|
|
342
352
|
ref_key: "stackbarChart",
|
|
343
353
|
ref: D,
|
|
@@ -345,13 +355,13 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
345
355
|
style: A(`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%" : ""}`)
|
|
346
356
|
}, [
|
|
347
357
|
p(a.$slots, "userConfig", {}, void 0, !0),
|
|
348
|
-
e.value.style.chart.title.text ? (u(),
|
|
358
|
+
e.value.style.chart.title.text ? (u(), n("div", {
|
|
349
359
|
key: 0,
|
|
350
360
|
ref_key: "chartTitle",
|
|
351
361
|
ref: oe,
|
|
352
362
|
style: A(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
353
363
|
}, [
|
|
354
|
-
|
|
364
|
+
Z(it, {
|
|
355
365
|
config: {
|
|
356
366
|
title: {
|
|
357
367
|
cy: "stackbar-title",
|
|
@@ -364,13 +374,13 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
364
374
|
}
|
|
365
375
|
}, null, 8, ["config"])
|
|
366
376
|
], 4)) : d("", !0),
|
|
367
|
-
e.value.userOptions.show && P.value ? (u(),
|
|
377
|
+
e.value.userOptions.show && P.value ? (u(), H(rt, {
|
|
368
378
|
ref: "details",
|
|
369
379
|
key: `user_option_${le.value}`,
|
|
370
380
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
371
381
|
color: e.value.style.chart.color,
|
|
372
|
-
isPrinting:
|
|
373
|
-
isImaging:
|
|
382
|
+
isPrinting: w(ie),
|
|
383
|
+
isImaging: w(ne),
|
|
374
384
|
uid: X.value,
|
|
375
385
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
376
386
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -381,12 +391,12 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
381
391
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
382
392
|
isFullscreen: q.value,
|
|
383
393
|
chartElement: D.value,
|
|
384
|
-
isTooltip:
|
|
394
|
+
isTooltip: C.value.showTooltip,
|
|
385
395
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
386
|
-
onToggleFullscreen:
|
|
387
|
-
onGeneratePdf:
|
|
396
|
+
onToggleFullscreen: Oe,
|
|
397
|
+
onGeneratePdf: w(ce),
|
|
388
398
|
onGenerateCsv: pe,
|
|
389
|
-
onGenerateImage:
|
|
399
|
+
onGenerateImage: w(ve),
|
|
390
400
|
onToggleTable: ge,
|
|
391
401
|
onToggleLabels: ye,
|
|
392
402
|
onToggleTooltip: be
|
|
@@ -435,20 +445,20 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
435
445
|
} : void 0,
|
|
436
446
|
a.$slots.optionFullscreen ? {
|
|
437
447
|
name: "optionFullscreen",
|
|
438
|
-
fn: m(({ toggleFullscreen: t, isFullscreen:
|
|
439
|
-
p(a.$slots, "optionFullscreen", M(O({ toggleFullscreen: t, isFullscreen:
|
|
448
|
+
fn: m(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
449
|
+
p(a.$slots, "optionFullscreen", M(O({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
440
450
|
]),
|
|
441
451
|
key: "6"
|
|
442
452
|
} : void 0
|
|
443
453
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
444
|
-
P.value ? (u(),
|
|
454
|
+
P.value ? (u(), n("svg", {
|
|
445
455
|
key: 2,
|
|
446
|
-
xmlns:
|
|
456
|
+
xmlns: w(qe),
|
|
447
457
|
viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.chartHeight <= 0 ? 10 : s.value.chartHeight}`,
|
|
448
458
|
style: A(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
449
459
|
}, [
|
|
450
|
-
e.value.style.chart.bars.gradient.show ? (u(),
|
|
451
|
-
(u(!0),
|
|
460
|
+
e.value.style.chart.bars.gradient.show ? (u(), n("defs", bt, [
|
|
461
|
+
(u(!0), n(x, null, $(v.value, (t, o) => (u(), n("linearGradient", {
|
|
452
462
|
id: `gradient_${t.id}`,
|
|
453
463
|
x1: "0%",
|
|
454
464
|
y1: "0%",
|
|
@@ -458,44 +468,44 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
458
468
|
R("stop", {
|
|
459
469
|
offset: "0%",
|
|
460
470
|
"stop-color": t.color
|
|
461
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, pt),
|
|
462
472
|
R("stop", {
|
|
463
473
|
offset: "61.8%",
|
|
464
|
-
"stop-color":
|
|
465
|
-
}, null, 8,
|
|
474
|
+
"stop-color": w(Ke)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
475
|
+
}, null, 8, mt),
|
|
466
476
|
R("stop", {
|
|
467
477
|
offset: "100%",
|
|
468
478
|
"stop-color": t.color
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
479
|
+
}, null, 8, xt)
|
|
480
|
+
], 8, ft))), 256))
|
|
471
481
|
])) : d("", !0),
|
|
472
|
-
e.value.style.chart.grid.x.showHorizontalLines ? (u(!0),
|
|
482
|
+
e.value.style.chart.grid.x.showHorizontalLines ? (u(!0), n(x, { key: 1 }, $(Q.value, (t, o) => (u(), n("line", {
|
|
473
483
|
x1: s.value.left,
|
|
474
484
|
x2: s.value.right,
|
|
475
485
|
y1: t.y,
|
|
476
486
|
y2: t.y,
|
|
477
487
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
478
488
|
"stroke-width": 1
|
|
479
|
-
}, null, 8,
|
|
480
|
-
e.value.style.chart.grid.y.showVerticalLines ? (u(!0),
|
|
481
|
-
x1: s.value.left + b.value *
|
|
482
|
-
x2: s.value.left + b.value *
|
|
489
|
+
}, null, 8, kt))), 256)) : d("", !0),
|
|
490
|
+
e.value.style.chart.grid.y.showVerticalLines ? (u(!0), n(x, { key: 2 }, $(c.value.end - c.value.start + 1, (t, o) => (u(), n("line", {
|
|
491
|
+
x1: s.value.left + b.value * o,
|
|
492
|
+
x2: s.value.left + b.value * o,
|
|
483
493
|
y1: s.value.top,
|
|
484
494
|
y2: s.value.bottom,
|
|
485
495
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
486
496
|
"stroke-width": 1
|
|
487
|
-
}, null, 8,
|
|
488
|
-
(u(!0),
|
|
489
|
-
(u(!0),
|
|
490
|
-
d:
|
|
497
|
+
}, null, 8, wt))), 256)) : d("", !0),
|
|
498
|
+
(u(!0), n(x, null, $(v.value, (t, o) => (u(), n("g", null, [
|
|
499
|
+
(u(!0), n(x, null, $(t.x, (r, i) => (u(), n("path", {
|
|
500
|
+
d: o === v.value.length - 1 && v.value.at(-1).series[i] || !v.value.at(-1).series[i] && o < v.value.length - 1 && v.value[o].series[i] && !v.value[o + 1].series[i] ? `M ${r},${t.y[i]}
|
|
491
501
|
h ${b.value * (1 - e.value.style.chart.bars.gapRatio / 2) - e.value.style.chart.bars.borderRadius}
|
|
492
502
|
a ${e.value.style.chart.bars.borderRadius},${e.value.style.chart.bars.borderRadius} 0 0 1 ${e.value.style.chart.bars.borderRadius},${e.value.style.chart.bars.borderRadius}
|
|
493
|
-
v ${t.height[
|
|
503
|
+
v ${t.height[i] - e.value.style.chart.bars.borderRadius < 0 ? 0 : t.height[i] - e.value.style.chart.bars.borderRadius}
|
|
494
504
|
h -${b.value * (1 - e.value.style.chart.bars.gapRatio / 2)}
|
|
495
|
-
v -${t.height[
|
|
496
|
-
a ${e.value.style.chart.bars.borderRadius},${e.value.style.chart.bars.borderRadius} 0 0 1 ${e.value.style.chart.bars.borderRadius},-${e.value.style.chart.bars.borderRadius} z` : `M ${
|
|
505
|
+
v -${t.height[i] - e.value.style.chart.bars.borderRadius < 0 ? 0 : t.height[i] - e.value.style.chart.bars.borderRadius}
|
|
506
|
+
a ${e.value.style.chart.bars.borderRadius},${e.value.style.chart.bars.borderRadius} 0 0 1 ${e.value.style.chart.bars.borderRadius},-${e.value.style.chart.bars.borderRadius} z` : `M ${r},${t.y[i]}
|
|
497
507
|
h ${b.value * (1 - e.value.style.chart.bars.gapRatio / 2)}
|
|
498
|
-
v ${t.height[
|
|
508
|
+
v ${t.height[i] < 0 ? 0 : t.height[i]}
|
|
499
509
|
h -${b.value * (1 - e.value.style.chart.bars.gapRatio / 2)} z`,
|
|
500
510
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
501
511
|
stroke: e.value.style.chart.backgroundColor,
|
|
@@ -503,9 +513,9 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
503
513
|
"stroke-linecap": "round",
|
|
504
514
|
"stroke-linejoin": "round",
|
|
505
515
|
class: ke({ "vue-data-ui-bar-animated": e.value.useCssAnimation })
|
|
506
|
-
}, null, 10,
|
|
516
|
+
}, null, 10, Ct))), 256))
|
|
507
517
|
]))), 256)),
|
|
508
|
-
e.value.style.chart.grid.x.showAxis ? (u(),
|
|
518
|
+
e.value.style.chart.grid.x.showAxis ? (u(), n("line", {
|
|
509
519
|
key: 3,
|
|
510
520
|
x1: s.value.left,
|
|
511
521
|
x2: s.value.right,
|
|
@@ -515,8 +525,8 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
515
525
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
516
526
|
"stroke-linecap": "round",
|
|
517
527
|
"stroke-linejoin": "round"
|
|
518
|
-
}, null, 8,
|
|
519
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (u(),
|
|
528
|
+
}, null, 8, $t)) : d("", !0),
|
|
529
|
+
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (u(), n("line", {
|
|
520
530
|
key: 4,
|
|
521
531
|
x1: s.value.left,
|
|
522
532
|
x2: s.value.left,
|
|
@@ -526,8 +536,8 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
526
536
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
527
537
|
"stroke-linecap": "round",
|
|
528
538
|
"stroke-linejoin": "round"
|
|
529
|
-
}, null, 8,
|
|
530
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (u(),
|
|
539
|
+
}, null, 8, Lt)) : d("", !0),
|
|
540
|
+
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (u(), n("text", {
|
|
531
541
|
key: 5,
|
|
532
542
|
x: s.value.left + s.value.width / 2,
|
|
533
543
|
y: s.value.chartHeight + e.value.style.chart.grid.x.axisName.offsetY,
|
|
@@ -535,85 +545,85 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
535
545
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
536
546
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
537
547
|
"text-anchor": "middle"
|
|
538
|
-
}, z(e.value.style.chart.grid.x.axisName.text), 9,
|
|
539
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (u(),
|
|
548
|
+
}, z(e.value.style.chart.grid.x.axisName.text), 9, _t)) : d("", !0),
|
|
549
|
+
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (u(), n("text", {
|
|
540
550
|
key: 6,
|
|
541
551
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
542
552
|
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
543
553
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
544
554
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
545
555
|
"text-anchor": "middle"
|
|
546
|
-
}, z(e.value.style.chart.grid.y.axisName.text), 9,
|
|
547
|
-
|
|
548
|
-
(u(!0),
|
|
549
|
-
(u(!0),
|
|
550
|
-
x:
|
|
551
|
-
y: t.y[
|
|
556
|
+
}, z(e.value.style.chart.grid.y.axisName.text), 9, St)) : d("", !0),
|
|
557
|
+
C.value.dataLabels.show ? (u(), n(x, { key: 7 }, [
|
|
558
|
+
(u(!0), n(x, null, $(v.value, (t, o) => (u(), n("g", null, [
|
|
559
|
+
(u(!0), n(x, null, $(t.x, (r, i) => (u(), n("text", {
|
|
560
|
+
x: r + b.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
561
|
+
y: t.y[i] + t.proportions[i] * s.value.height / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
552
562
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
553
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
563
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? w(Qe)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
554
564
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
555
565
|
"text-anchor": "middle"
|
|
556
|
-
}, z(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
566
|
+
}, z(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Pe(t.proportions[i] * 100, t, o, i) : he(t.series[i], t, o, i)), 9, Tt))), 256))
|
|
557
567
|
]))), 256)),
|
|
558
|
-
e.value.style.chart.bars.totalValues.show && v.value.length > 1 ? (u(),
|
|
559
|
-
(u(!0),
|
|
560
|
-
x: s.value.left + b.value *
|
|
568
|
+
e.value.style.chart.bars.totalValues.show && v.value.length > 1 ? (u(), n("g", zt, [
|
|
569
|
+
(u(!0), n(x, null, $(Re.value, (t, o) => (u(), n("text", {
|
|
570
|
+
x: s.value.left + b.value * o + b.value / 2,
|
|
561
571
|
y: (e.value.style.chart.bars.distributed ? s.value.top - e.value.style.chart.bars.totalValues.fontSize / 3 : t.y) + e.value.style.chart.bars.totalValues.offsetY,
|
|
562
572
|
"text-anchor": "middle",
|
|
563
573
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
564
574
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
565
575
|
fill: e.value.style.chart.bars.totalValues.color
|
|
566
|
-
}, z(he(t.value)), 9,
|
|
576
|
+
}, z(he(t.value, t, o)), 9, Nt))), 256))
|
|
567
577
|
])) : d("", !0)
|
|
568
578
|
], 64)) : d("", !0),
|
|
569
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed ? (u(),
|
|
570
|
-
(u(!0),
|
|
579
|
+
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed ? (u(), n(x, { key: 8 }, [
|
|
580
|
+
(u(!0), n(x, null, $(Q.value, (t, o) => (u(), n("line", {
|
|
571
581
|
x1: s.value.left,
|
|
572
582
|
x2: s.value.left - 6,
|
|
573
583
|
y1: t.y,
|
|
574
584
|
y2: t.y,
|
|
575
585
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
576
586
|
"stroke-width": 1
|
|
577
|
-
}, null, 8,
|
|
578
|
-
(u(!0),
|
|
587
|
+
}, null, 8, Rt))), 256)),
|
|
588
|
+
(u(!0), n(x, null, $(Q.value, (t, o) => (u(), n("text", {
|
|
579
589
|
x: t.x,
|
|
580
590
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
581
591
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
582
592
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
583
593
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
584
594
|
"text-anchor": "end"
|
|
585
|
-
}, z(
|
|
595
|
+
}, z(w(V)({
|
|
586
596
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
587
597
|
v: t.value,
|
|
588
598
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
589
599
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
590
|
-
})), 9,
|
|
600
|
+
})), 9, Pt))), 256))
|
|
591
601
|
], 64)) : d("", !0),
|
|
592
|
-
e.value.style.chart.grid.x.timeLabels.show ? (u(!0),
|
|
602
|
+
e.value.style.chart.grid.x.timeLabels.show ? (u(!0), n(x, { key: 9 }, $(U.value, (t, o) => (u(), n("text", {
|
|
593
603
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
594
604
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
595
605
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
596
606
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
597
|
-
transform: `translate(${s.value.left + b.value *
|
|
598
|
-
}, z(t), 9,
|
|
599
|
-
|
|
600
|
-
x: s.value.left +
|
|
607
|
+
transform: `translate(${s.value.left + b.value * o + b.value / 2}, ${s.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})`
|
|
608
|
+
}, z(t), 9, Ft))), 256)) : d("", !0),
|
|
609
|
+
C.value.showTooltip ? (u(!0), n(x, { key: 10 }, $(c.value.end - c.value.start, (t, o) => (u(), n("rect", {
|
|
610
|
+
x: s.value.left + o * b.value,
|
|
601
611
|
y: s.value.top,
|
|
602
612
|
width: b.value,
|
|
603
613
|
height: s.value.height,
|
|
604
|
-
onClick: (
|
|
605
|
-
onMouseenter: (
|
|
606
|
-
onMouseleave: l[0] || (l[0] = (
|
|
607
|
-
|
|
614
|
+
onClick: (r) => Fe(o),
|
|
615
|
+
onMouseenter: (r) => Me(o),
|
|
616
|
+
onMouseleave: l[0] || (l[0] = (r) => {
|
|
617
|
+
K.value = null, Y.value = !1;
|
|
608
618
|
}),
|
|
609
|
-
fill:
|
|
610
|
-
}, null, 40,
|
|
619
|
+
fill: o === K.value ? e.value.style.chart.highlighter.color + w(Ze)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
620
|
+
}, null, 40, Mt))), 256)) : d("", !0),
|
|
611
621
|
p(a.$slots, "svg", M(O({ ...s.value })), void 0, !0)
|
|
612
|
-
], 12,
|
|
613
|
-
a.$slots.watermark ? (u(),
|
|
614
|
-
p(a.$slots, "watermark", M(O({ isPrinting:
|
|
622
|
+
], 12, yt)) : d("", !0),
|
|
623
|
+
a.$slots.watermark ? (u(), n("div", Ot, [
|
|
624
|
+
p(a.$slots, "watermark", M(O({ isPrinting: w(ie) || w(ne) })), void 0, !0)
|
|
615
625
|
])) : d("", !0),
|
|
616
|
-
P.value ? d("", !0) : (u(),
|
|
626
|
+
P.value ? d("", !0) : (u(), H(dt, {
|
|
617
627
|
key: 4,
|
|
618
628
|
config: {
|
|
619
629
|
type: "bar",
|
|
@@ -634,7 +644,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
634
644
|
style: A(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
635
645
|
"data-html2canvas-ignore": ""
|
|
636
646
|
}, [
|
|
637
|
-
e.value.style.chart.zoom.show && B.value > 1 ? (u(),
|
|
647
|
+
e.value.style.chart.zoom.show && B.value > 1 ? (u(), H(st, {
|
|
638
648
|
key: `slicer_${ue.value}`,
|
|
639
649
|
background: e.value.style.chart.zoom.color,
|
|
640
650
|
borderColor: e.value.style.chart.backgroundColor,
|
|
@@ -653,7 +663,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
653
663
|
"onUpdate:start": l[1] || (l[1] = (t) => c.value.start = t),
|
|
654
664
|
end: c.value.end,
|
|
655
665
|
"onUpdate:end": l[2] || (l[2] = (t) => c.value.end = t),
|
|
656
|
-
onReset:
|
|
666
|
+
onReset: Ne
|
|
657
667
|
}, {
|
|
658
668
|
"reset-action": m(({ reset: t }) => [
|
|
659
669
|
p(a.$slots, "reset-action", M(O({ reset: t })), void 0, !0)
|
|
@@ -661,8 +671,8 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
661
671
|
_: 3
|
|
662
672
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : d("", !0)
|
|
663
673
|
], 4),
|
|
664
|
-
|
|
665
|
-
show:
|
|
674
|
+
Z(ut, {
|
|
675
|
+
show: C.value.showTooltip && Y.value,
|
|
666
676
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
667
677
|
color: e.value.style.chart.tooltip.color,
|
|
668
678
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -674,7 +684,7 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
674
684
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
675
685
|
parent: D.value,
|
|
676
686
|
content: J.value,
|
|
677
|
-
isCustom:
|
|
687
|
+
isCustom: w($e)(e.value.style.chart.tooltip.customFormat)
|
|
678
688
|
}, {
|
|
679
689
|
"tooltip-before": m(() => [
|
|
680
690
|
p(a.$slots, "tooltip-before", M(O({ ...ae.value })), void 0, !0)
|
|
@@ -688,17 +698,17 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
688
698
|
ref_key: "chartLegend",
|
|
689
699
|
ref: re
|
|
690
700
|
}, [
|
|
691
|
-
e.value.style.chart.legend.show && P.value ? (u(),
|
|
701
|
+
e.value.style.chart.legend.show && P.value ? (u(), H(nt, {
|
|
692
702
|
key: 0,
|
|
693
703
|
legendSet: me.value,
|
|
694
|
-
config:
|
|
704
|
+
config: Ie.value,
|
|
695
705
|
onClickMarker: l[3] || (l[3] = ({ legend: t }) => t.segregate())
|
|
696
706
|
}, {
|
|
697
707
|
item: m(({ legend: t }) => [
|
|
698
708
|
R("div", {
|
|
699
|
-
onClick: (
|
|
709
|
+
onClick: (o) => t.segregate(),
|
|
700
710
|
style: A(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
701
|
-
}, z(t.name), 13,
|
|
711
|
+
}, z(t.name), 13, Vt)
|
|
702
712
|
]),
|
|
703
713
|
_: 1
|
|
704
714
|
}, 8, ["legendSet", "config"])) : p(a.$slots, "legend", {
|
|
@@ -706,11 +716,11 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
706
716
|
legend: me.value
|
|
707
717
|
}, void 0, !0)
|
|
708
718
|
], 512),
|
|
709
|
-
c.value.end - c.value.start < 200 ? (u(),
|
|
719
|
+
c.value.end - c.value.start < 200 ? (u(), H(ct, {
|
|
710
720
|
key: 5,
|
|
711
721
|
hideDetails: "",
|
|
712
722
|
config: {
|
|
713
|
-
open:
|
|
723
|
+
open: C.value.showTable,
|
|
714
724
|
maxHeight: 1e4,
|
|
715
725
|
body: {
|
|
716
726
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -723,28 +733,33 @@ const ht = ["id"], gt = ["xmlns", "viewBox"], yt = { key: 0 }, bt = ["id"], ft =
|
|
|
723
733
|
}
|
|
724
734
|
}, {
|
|
725
735
|
content: m(() => [
|
|
726
|
-
|
|
736
|
+
Z(vt, {
|
|
727
737
|
colNames: W.value.colNames,
|
|
728
738
|
head: W.value.head,
|
|
729
739
|
body: W.value.body,
|
|
730
740
|
config: W.value.config,
|
|
731
741
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
732
|
-
onClose: l[4] || (l[4] = (t) =>
|
|
742
|
+
onClose: l[4] || (l[4] = (t) => C.value.showTable = !1)
|
|
733
743
|
}, {
|
|
734
744
|
th: m(({ th: t }) => [
|
|
735
745
|
R("div", { innerHTML: t }, null, 8, Dt)
|
|
736
746
|
]),
|
|
737
747
|
td: m(({ td: t }) => [
|
|
738
|
-
|
|
748
|
+
He(z(isNaN(Number(t)) ? t : w(V)({
|
|
749
|
+
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
750
|
+
v: t,
|
|
751
|
+
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
752
|
+
r: e.value.table.td.roundingValue
|
|
753
|
+
})), 1)
|
|
739
754
|
]),
|
|
740
755
|
_: 1
|
|
741
756
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
742
757
|
]),
|
|
743
758
|
_: 1
|
|
744
759
|
}, 8, ["config"])) : d("", !0)
|
|
745
|
-
], 14,
|
|
760
|
+
], 14, gt));
|
|
746
761
|
}
|
|
747
|
-
},
|
|
762
|
+
}, Zt = /* @__PURE__ */ ht(It, [["__scopeId", "data-v-63fd67c1"]]);
|
|
748
763
|
export {
|
|
749
|
-
|
|
764
|
+
Zt as default
|
|
750
765
|
};
|