vue-data-ui 3.6.0 → 3.7.0
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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,24 +1,41 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
1
|
+
import { useCssVars as sa, defineAsyncComponent as Z, useSlots as ia, computed as f, ref as i, toRefs as ca, watch as Be, shallowRef as ht, onMounted as De, nextTick as he, onBeforeUnmount as da, createElementBlock as c, openBlock as u, unref as r, normalizeStyle as v, normalizeClass as j, createBlock as H, createCommentVNode as m, renderSlot as b, createVNode as ee, withCtx as h, normalizeProps as N, guardReactiveProps as z, createSlots as pe, createElementVNode as n, toDisplayString as p, Fragment as te, renderList as ae, mergeProps as pt, resolveDynamicComponent as va, withKeys as ha, createTextVNode as gt } from "vue";
|
|
2
|
+
import { c as pa, t as ga, i as fa, p as q, W as Ne, j as ba, M as L, o as ze, g as ue, l as Ee, a as re, d as M, X as ya, s as Oe, h as ma, u as Ca, q as ka, x as xa, R as wa } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as _a, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Aa, a as Ve } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Ta, B as Sa } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as La } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as Fa } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Pa } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Ba } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
+
import { u as Da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Na } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import ft from "./Legend-Web3GjlR.js";
|
|
13
|
+
import za from "./vue-ui-accordion-DSdZUn2C.js";
|
|
14
|
+
import Ea from "./Title-DfFUb9hd.js";
|
|
15
|
+
import { _ as bt } from "./Shape-DE6X_t31.js";
|
|
16
|
+
import Oa from "./img-DUzJeMlr.js";
|
|
17
|
+
import { _ as Va } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const yt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { separators: { color: "#4A4A4A" }, bars: { dataLabels: { color: "#CCCCCC" }, nameLabels: { color: "#CCCCCC" }, parentLabels: { color: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, mt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#424242" }, nameLabels: { color: "#424242" }, parentLabels: { color: "#424242" } }, highlighter: { color: "#FF8A65" }, separators: { show: !1 } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ct = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#BDBDBD" }, nameLabels: { color: "#BDBDBD" }, parentLabels: { color: "#FFF8E1" } }, highlighter: { color: "#FF8A65" }, separators: { show: !1 } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#AACCAA" }, nameLabels: { color: "#99CC99" }, parentLabels: { color: "#99CC99" } }, highlighter: { color: "#66CC66" }, separators: { show: !1 } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, xt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { bars: { borderRadius: 8, useGradient: !0, dataLabels: { color: "#A0AC94" }, nameLabels: { color: "#8A9892" }, parentLabels: { color: "#8A9892" } }, highlighter: { color: "#8F837A" }, separators: { show: !1 } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, wt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { bars: { borderRadius: 0, useGradient: !0, dataLabels: { color: "#61747E" }, nameLabels: { color: "#8A9892" }, parentLabels: { color: "#8A9892" } }, highlighter: { color: "#50606C" }, separators: { show: !0, color: "#DEE1DE" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, _t = {
|
|
19
|
+
default: {},
|
|
20
|
+
dark: yt,
|
|
21
|
+
celebration: mt,
|
|
22
|
+
celebrationNight: Ct,
|
|
23
|
+
hack: kt,
|
|
24
|
+
zen: xt,
|
|
25
|
+
concrete: wt
|
|
26
|
+
}, Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
|
+
__proto__: null,
|
|
28
|
+
celebration: mt,
|
|
29
|
+
celebrationNight: Ct,
|
|
30
|
+
concrete: wt,
|
|
31
|
+
dark: yt,
|
|
32
|
+
default: _t,
|
|
33
|
+
hack: kt,
|
|
34
|
+
zen: xt
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), Ia = ["id"], Ma = ["onClick"], Ra = ["xmlns", "viewBox"], Ua = ["x", "width", "height"], Ga = ["id"], Wa = ["stop-color"], Xa = ["stop-color"], ja = { key: 1 }, Ha = ["x", "y", "width", "height", "fill", "rx"], qa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ya = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qa = { class: "vue-ui-horizontal-bar-child-label" }, Za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], el = ["x", "y", "font-size", "fill", "font-weight"], tl = { class: "vue-ui-horizontal-bar-parent-label" }, al = ["x", "y", "font-size", "fill", "font-weight"], ll = ["x", "y", "font-size", "fill", "font-weight"], ol = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], nl = {
|
|
19
36
|
key: 5,
|
|
20
37
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
38
|
+
}, ul = ["onClick"], rl = { style: "width:100%;padding-top: 36px;position:relative" }, sl = { class: "vue-ui-data-table" }, il = { key: 0 }, cl = { style: { width: "100%" } }, dl = ["data-cell"], vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, hl = ["data-cell"], pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ml = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], xl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = {
|
|
22
39
|
__name: "vue-ui-vertical-bar",
|
|
23
40
|
props: {
|
|
24
41
|
config: {
|
|
@@ -35,35 +52,35 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
35
52
|
}
|
|
36
53
|
},
|
|
37
54
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
setup($t, { expose: At, emit: Tt }) {
|
|
56
|
+
sa((t) => ({
|
|
57
|
+
a360556e: t.tdo
|
|
41
58
|
}));
|
|
42
|
-
const
|
|
59
|
+
const St = Z(() => import("./Tooltip-WD0Ros6G.js")), Ie = Z(() => import("./BaseIcon-CofSxalQ.js")), Lt = Z(() => import("./PenAndPaper-HCZQTkqi.js")), Ft = Z(() => import("./UserOptions-B3I-s3Lw.js")), Pt = Z(() => import("./PackageVersion-Bq_mtsqr.js")), Bt = Z(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_vertical_bar: Dt } = Aa(), { isThemeValid: Nt, warnInvalidTheme: zt } = Pa(), Et = ia(), C = $t, ge = f({
|
|
43
60
|
get() {
|
|
44
|
-
return !!
|
|
61
|
+
return !!C.dataset && C.dataset.length;
|
|
45
62
|
},
|
|
46
63
|
set(t) {
|
|
47
64
|
return t;
|
|
48
65
|
}
|
|
49
|
-
}),
|
|
66
|
+
}), S = i(pa()), fe = i(!1), be = i(""), le = i(0), Ot = i(null), Me = i(0), F = i(null), Re = i(null), ye = i(null), Ue = i(null), Ge = i(null), We = i(0), me = i(0), Y = i(null), oe = i(null), Ce = i(null), Vt = Tt, e = i($e()), It = f(() => [
|
|
50
67
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
51
68
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
52
69
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
53
70
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
54
71
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
55
72
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
56
|
-
]), { loading:
|
|
57
|
-
...
|
|
73
|
+
]), { loading: Xe, FINAL_DATASET: ke, manualLoading: xe } = Ta({
|
|
74
|
+
...ca(C),
|
|
58
75
|
FINAL_CONFIG: e,
|
|
59
|
-
prepareConfig:
|
|
76
|
+
prepareConfig: $e,
|
|
60
77
|
callback: () => {
|
|
61
78
|
Promise.resolve().then(async () => {
|
|
62
|
-
|
|
79
|
+
J(), _.value.showTable = e.value.table.show, await V();
|
|
63
80
|
});
|
|
64
81
|
},
|
|
65
|
-
skeletonDataset:
|
|
66
|
-
skeletonConfig:
|
|
82
|
+
skeletonDataset: It.value,
|
|
83
|
+
skeletonConfig: ga({
|
|
67
84
|
defaultConfig: e.value,
|
|
68
85
|
userConfig: {
|
|
69
86
|
useCssAnimation: !1,
|
|
@@ -109,116 +126,129 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
109
126
|
}
|
|
110
127
|
}
|
|
111
128
|
})
|
|
112
|
-
}), { userOptionsVisible:
|
|
113
|
-
function
|
|
114
|
-
const t =
|
|
115
|
-
userConfig:
|
|
116
|
-
defaultConfig:
|
|
129
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: je, keepUserOptionState: He } = Da({ config: e.value }), { svgRef: _e } = Na({ config: e.value.style.chart.title });
|
|
130
|
+
function $e() {
|
|
131
|
+
const t = Ve({
|
|
132
|
+
userConfig: C.config,
|
|
133
|
+
defaultConfig: Dt
|
|
117
134
|
});
|
|
118
135
|
let l = {};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
136
|
+
const a = t.theme;
|
|
137
|
+
if (a)
|
|
138
|
+
if (!Nt.value(t))
|
|
139
|
+
zt(t), l = t;
|
|
140
|
+
else {
|
|
141
|
+
const o = Ve({
|
|
142
|
+
userConfig: _t[a] || C.config,
|
|
143
|
+
defaultConfig: t
|
|
144
|
+
});
|
|
145
|
+
l = {
|
|
146
|
+
...Ve({
|
|
147
|
+
userConfig: C.config,
|
|
148
|
+
defaultConfig: o
|
|
149
|
+
}),
|
|
150
|
+
customPalette: t.customPalette.length ? t.customPalette : fa[a] || q
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
else
|
|
154
|
+
l = t;
|
|
155
|
+
return C.config && Ne(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && Ne(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && Ne(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
126
156
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}, { deep: !0 }),
|
|
130
|
-
Array.isArray(t) && t.length > 0 && (
|
|
157
|
+
Be(() => C.config, (t) => {
|
|
158
|
+
Xe.value || (e.value = $e()), we.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, me.value += 1, g.value = e.value.style.chart.layout.bars.height, k.value = e.value.style.chart.layout.bars.gap, _.value.showTable = e.value.table.show, _.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
159
|
+
}, { deep: !0 }), Be(() => C.dataset, (t) => {
|
|
160
|
+
Array.isArray(t) && t.length > 0 && (xe.value = !1), J();
|
|
131
161
|
}, { deep: !0 });
|
|
132
|
-
const { isPrinting:
|
|
133
|
-
elementId: `vue-ui-vertical-bar_${
|
|
162
|
+
const { isPrinting: qe, isImaging: Ye, generatePdf: Ke, generateImage: Je } = La({
|
|
163
|
+
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
134
164
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
135
165
|
options: e.value.userOptions.print
|
|
136
|
-
}),
|
|
137
|
-
const [t, l, a, o] =
|
|
166
|
+
}), Mt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = f(() => ba(e.value.customPalette)), Ze = i(null), Rt = f(() => e.value.table.responsiveBreakpoint), O = ht(null), K = ht(null), se = i("0 0 10 10"), P = f(() => {
|
|
167
|
+
const [t, l, a, o] = se.value.split(" ").map(Number);
|
|
138
168
|
return { x: t, y: l, width: a, height: o };
|
|
139
169
|
});
|
|
140
|
-
|
|
141
|
-
await he(),
|
|
170
|
+
De(async () => {
|
|
171
|
+
await he(), tt(), V();
|
|
142
172
|
});
|
|
143
|
-
async function
|
|
144
|
-
if (
|
|
173
|
+
async function V() {
|
|
174
|
+
if (se.value = `0 0 ${$.value.width} ${s.value.fullHeight}`, !e.value.autoSize || !Y.value) return;
|
|
145
175
|
const t = Y.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = Y.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
146
176
|
if (t && t.length) {
|
|
147
|
-
const
|
|
148
|
-
const
|
|
149
|
-
return
|
|
150
|
-
})),
|
|
151
|
-
const
|
|
152
|
-
return
|
|
177
|
+
const y = Math.max(...Array.from(t).flatMap((d) => {
|
|
178
|
+
const x = d.querySelectorAll("text");
|
|
179
|
+
return x.length ? Array.from(x).map((Q) => Q.getBBox().width) : 0;
|
|
180
|
+
})), w = Math.max(...Array.from(l).flatMap((d) => {
|
|
181
|
+
const x = d.querySelectorAll("text");
|
|
182
|
+
return x.length ? Array.from(x).map((Q) => Q.getBBox().width) : 0;
|
|
153
183
|
}));
|
|
154
184
|
Array.from(t).forEach((d) => {
|
|
155
|
-
const
|
|
156
|
-
Array.from(
|
|
157
|
-
|
|
185
|
+
const x = d.querySelectorAll("text");
|
|
186
|
+
Array.from(x).forEach(async (Q) => {
|
|
187
|
+
Q.setAttribute("x", 0), Q.setAttribute("x", L(-y - w));
|
|
158
188
|
});
|
|
159
189
|
});
|
|
160
190
|
}
|
|
161
191
|
await he();
|
|
162
192
|
const a = Y.value ? Y.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
163
|
-
|
|
193
|
+
se.value = [
|
|
164
194
|
a.x + -o,
|
|
165
195
|
0,
|
|
166
196
|
a.width + o * 2,
|
|
167
|
-
|
|
197
|
+
s.value.fullHeight
|
|
168
198
|
].join(" ");
|
|
169
199
|
}
|
|
170
|
-
let
|
|
171
|
-
|
|
172
|
-
|
|
200
|
+
let et;
|
|
201
|
+
De(() => {
|
|
202
|
+
F.value && (et = new ResizeObserver((t) => {
|
|
173
203
|
for (const l of t) {
|
|
174
204
|
const { width: a, height: o } = l.contentRect;
|
|
175
205
|
if (a > 0 && o > 0) {
|
|
176
206
|
Promise.resolve().then(async () => {
|
|
177
|
-
|
|
207
|
+
J(), await V();
|
|
178
208
|
});
|
|
179
209
|
break;
|
|
180
210
|
}
|
|
181
211
|
}
|
|
182
|
-
}),
|
|
212
|
+
}), et.observe(F.value.parentElement));
|
|
183
213
|
});
|
|
184
|
-
const ie =
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
214
|
+
const ie = f(() => !!e.value.debug), Ae = i(0);
|
|
215
|
+
function tt() {
|
|
216
|
+
if (ze(C.dataset) && (ue({
|
|
187
217
|
componentName: "VueUiVerticalBar",
|
|
188
218
|
type: "dataset",
|
|
189
219
|
debug: ie.value
|
|
190
|
-
}),
|
|
191
|
-
const t =
|
|
192
|
-
const { width: l, height: a } =
|
|
193
|
-
chart:
|
|
220
|
+
}), ge.value = !1, xe.value = !0), le.value = ke.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), ze(C.dataset) || (xe.value = e.value.loading), e.value.responsive) {
|
|
221
|
+
const t = _a(() => {
|
|
222
|
+
const { width: l, height: a } = $a({
|
|
223
|
+
chart: F.value,
|
|
194
224
|
title: e.value.style.chart.title.text ? Re.value : null,
|
|
195
|
-
legend: e.value.style.chart.legend.show ?
|
|
196
|
-
source:
|
|
197
|
-
noTitle:
|
|
225
|
+
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
226
|
+
source: Ue.value,
|
|
227
|
+
noTitle: Ge.value
|
|
198
228
|
});
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const o =
|
|
202
|
-
|
|
229
|
+
Ae.value = a / 3, requestAnimationFrame(async () => {
|
|
230
|
+
ot.value = l;
|
|
231
|
+
const o = k.value * (le.value - 1);
|
|
232
|
+
g.value = (a - o) / le.value, await he(), V();
|
|
203
233
|
});
|
|
204
234
|
});
|
|
205
|
-
|
|
235
|
+
O.value && (K.value && O.value.unobserve(K.value), O.value.disconnect()), O.value = new ResizeObserver(t), K.value = F.value.parentNode, O.value.observe(K.value), e.value.autoSize && V();
|
|
206
236
|
}
|
|
207
237
|
}
|
|
208
|
-
|
|
209
|
-
|
|
238
|
+
da(() => {
|
|
239
|
+
O.value && (K.value && O.value.unobserve(K.value), O.value.disconnect());
|
|
210
240
|
});
|
|
211
241
|
const _ = i({
|
|
212
242
|
showTable: e.value.table.show,
|
|
213
243
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
214
244
|
showTooltip: e.value.style.chart.tooltip.show
|
|
215
|
-
}),
|
|
245
|
+
}), at = f(() => _.value.sortDesc), B = f(() => (ke.value.forEach((t, l) => {
|
|
216
246
|
!t.value && !t.children && ue({
|
|
217
247
|
componentName: "VueUiVerticalBar",
|
|
218
248
|
type: "datasetAttributeEmpty",
|
|
219
249
|
property: `value (index ${l})`,
|
|
220
250
|
debug: ie.value
|
|
221
|
-
}), t.children && (
|
|
251
|
+
}), t.children && (ze(t.children) ? ue({
|
|
222
252
|
componentName: "VueUiVerticalBar",
|
|
223
253
|
type: "datasetAttributeEmpty",
|
|
224
254
|
property: `children (index ${l})`,
|
|
@@ -233,186 +263,186 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
233
263
|
debug: ie.value
|
|
234
264
|
});
|
|
235
265
|
}));
|
|
236
|
-
}),
|
|
237
|
-
const a = `vertical_parent_${l}_${
|
|
266
|
+
}), ke.value.map((t, l) => {
|
|
267
|
+
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, y = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, x) => d + x, 0) : 0), w = y >= 0 ? 1 : -1;
|
|
238
268
|
return {
|
|
239
269
|
...t,
|
|
240
270
|
id: a,
|
|
241
271
|
absoluteIndex: l,
|
|
242
272
|
shape: "square",
|
|
243
|
-
opacity:
|
|
244
|
-
value: Math.abs(
|
|
245
|
-
sign:
|
|
273
|
+
opacity: A.value.includes(a) ? 0.5 : 1,
|
|
274
|
+
value: Math.abs(y),
|
|
275
|
+
sign: w,
|
|
246
276
|
hasChildren: o,
|
|
247
277
|
isChild: !1,
|
|
248
|
-
segregate: () =>
|
|
249
|
-
isSegregated:
|
|
250
|
-
color:
|
|
251
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
278
|
+
segregate: () => R(a),
|
|
279
|
+
isSegregated: A.value.includes(a),
|
|
280
|
+
color: Ee(t.color) || Qe.value[l] || q[l] || q[l % q.length],
|
|
281
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ce.value ? () => 0 : (d, x) => at.value ? x.value - d.value : d.value - x.value).map((d, x) => ({
|
|
252
282
|
...d,
|
|
253
|
-
value:
|
|
283
|
+
value: L(Math.abs(d.value)),
|
|
254
284
|
absoluteIndex: l,
|
|
255
285
|
sign: d.value >= 0 ? 1 : -1,
|
|
256
286
|
isChild: !0,
|
|
257
287
|
parentId: a,
|
|
258
288
|
parentName: t.name,
|
|
259
|
-
parentValue:
|
|
260
|
-
parentSign:
|
|
261
|
-
id: `vertical_child_${l}_${
|
|
262
|
-
childIndex:
|
|
263
|
-
color:
|
|
264
|
-
})).map((d,
|
|
289
|
+
parentValue: y,
|
|
290
|
+
parentSign: w,
|
|
291
|
+
id: `vertical_child_${l}_${x}_${S.value}`,
|
|
292
|
+
childIndex: x,
|
|
293
|
+
color: Ee(d.color) || Ee(t.color) || Qe.value[l] || q[l] || q[l % q.length]
|
|
294
|
+
})).map((d, x) => ({
|
|
265
295
|
...d,
|
|
266
|
-
isFirstChild:
|
|
267
|
-
isLastChild:
|
|
296
|
+
isFirstChild: x === 0,
|
|
297
|
+
isLastChild: x === t.children.length - 1
|
|
268
298
|
}))
|
|
269
299
|
};
|
|
270
|
-
}).toSorted(
|
|
300
|
+
}).toSorted(ce.value ? () => 0 : (t, l) => at.value ? l.value - t.value : t.value - l.value))), lt = f(() => ({
|
|
271
301
|
cy: "vertical-bar-div-legend",
|
|
272
302
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
273
303
|
color: e.value.style.chart.legend.color,
|
|
274
304
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
275
305
|
paddingBottom: 12,
|
|
276
306
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
277
|
-
})),
|
|
278
|
-
width:
|
|
279
|
-
height:
|
|
307
|
+
})), g = i(e.value.style.chart.layout.bars.height), k = i(e.value.style.chart.layout.bars.gap), Ut = f(() => (g.value + k.value) * le.value), ot = i(512), $ = f(() => ({
|
|
308
|
+
width: ot.value,
|
|
309
|
+
height: Ut.value,
|
|
280
310
|
padding: {
|
|
281
311
|
top: 12,
|
|
282
312
|
left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
|
|
283
313
|
right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
|
|
284
314
|
bottom: 12
|
|
285
315
|
}
|
|
286
|
-
})),
|
|
287
|
-
fullHeight:
|
|
288
|
-
top:
|
|
289
|
-
left:
|
|
290
|
-
right:
|
|
291
|
-
bottom:
|
|
292
|
-
width:
|
|
316
|
+
})), s = f(() => ({
|
|
317
|
+
fullHeight: $.value.padding.top + $.value.padding.bottom + $.value.height,
|
|
318
|
+
top: $.value.padding.top,
|
|
319
|
+
left: $.value.padding.left,
|
|
320
|
+
right: $.value.width - $.value.padding.right,
|
|
321
|
+
bottom: $.value.padding.top + $.value.height,
|
|
322
|
+
width: $.value.width - ($.value.padding.left + $.value.padding.right)
|
|
293
323
|
}));
|
|
294
|
-
async function
|
|
295
|
-
le.value = U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await
|
|
324
|
+
async function J() {
|
|
325
|
+
le.value = U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await V();
|
|
296
326
|
}
|
|
297
|
-
const
|
|
298
|
-
async function
|
|
299
|
-
if (
|
|
300
|
-
|
|
327
|
+
const A = i([]);
|
|
328
|
+
async function R(t) {
|
|
329
|
+
if (A.value.includes(t))
|
|
330
|
+
A.value = A.value.filter((l) => l !== t);
|
|
301
331
|
else {
|
|
302
|
-
if (
|
|
303
|
-
|
|
332
|
+
if (A.value.length === B.value.length - 1) return;
|
|
333
|
+
A.value.push(t);
|
|
304
334
|
}
|
|
305
|
-
|
|
335
|
+
J(), await he(), e.value.autoSize && V(), Vt("selectLegend", U.value);
|
|
306
336
|
}
|
|
307
|
-
function
|
|
308
|
-
if (!
|
|
337
|
+
function nt(t) {
|
|
338
|
+
if (!B.value.length)
|
|
309
339
|
return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
|
|
310
|
-
const l =
|
|
340
|
+
const l = B.value.find((a) => a.name === t);
|
|
311
341
|
return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
|
|
312
342
|
}
|
|
313
|
-
function
|
|
314
|
-
const l =
|
|
315
|
-
l !== null &&
|
|
343
|
+
function Gt(t) {
|
|
344
|
+
const l = nt(t);
|
|
345
|
+
l !== null && A.value.includes(l.id) && R(l.id);
|
|
316
346
|
}
|
|
317
|
-
function
|
|
318
|
-
const l =
|
|
319
|
-
l !== null && (
|
|
347
|
+
function Wt(t) {
|
|
348
|
+
const l = nt(t);
|
|
349
|
+
l !== null && (A.value.includes(l.id) || R(l.id));
|
|
320
350
|
}
|
|
321
|
-
const U =
|
|
322
|
-
function
|
|
323
|
-
return l ?
|
|
324
|
-
v:
|
|
351
|
+
const U = f(() => B.value.filter((t) => !A.value.includes(t.id))), E = f(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
352
|
+
function ut(t, l = !1, a = 0) {
|
|
353
|
+
return l ? M({
|
|
354
|
+
v: L(Math.abs(t) / E.value * 100),
|
|
325
355
|
s: "%",
|
|
326
356
|
r: a
|
|
327
|
-
}) : Math.abs(t) /
|
|
357
|
+
}) : Math.abs(t) / E.value;
|
|
328
358
|
}
|
|
329
|
-
const
|
|
330
|
-
function
|
|
331
|
-
const l = t /
|
|
332
|
-
return
|
|
359
|
+
const G = f(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), W = f(() => G.value.map((t) => t.sign).includes(-1)), Xt = f(() => Math.max(...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
360
|
+
function T(t) {
|
|
361
|
+
const l = t / Xt.value;
|
|
362
|
+
return s.value.width / (W.value ? 2 : 1) * l;
|
|
333
363
|
}
|
|
334
|
-
function
|
|
335
|
-
return
|
|
364
|
+
function jt(t) {
|
|
365
|
+
return T(t) + s.value.left;
|
|
336
366
|
}
|
|
337
367
|
function ne(t, l) {
|
|
338
|
-
const a = U.value.find((
|
|
368
|
+
const a = U.value.find((w) => w.id === t.parentId), o = s.value.top + (k.value + g.value) * l, y = a.children.length * (k.value + g.value);
|
|
339
369
|
return {
|
|
340
|
-
y: o +
|
|
370
|
+
y: o + y / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
341
371
|
name: a.name,
|
|
342
372
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
343
|
-
percentageToTotal: isNaN(a.value /
|
|
373
|
+
percentageToTotal: isNaN(a.value / E.value) ? "" : ut(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
344
374
|
sign: a.sign
|
|
345
375
|
};
|
|
346
376
|
}
|
|
347
|
-
function
|
|
377
|
+
function Ht() {
|
|
348
378
|
return U.value;
|
|
349
379
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
380
|
+
const Te = i(null), Se = i(null);
|
|
381
|
+
function qt({ datapoint: t, seriesIndex: l }) {
|
|
352
382
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
353
383
|
}
|
|
354
|
-
function
|
|
355
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
384
|
+
function Yt({ datapoint: t, seriesIndex: l }) {
|
|
385
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Ot.value = null, fe.value = !1, Te.value = null;
|
|
356
386
|
}
|
|
357
|
-
function
|
|
358
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }),
|
|
387
|
+
function Kt(t, l) {
|
|
388
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
359
389
|
datapoint: t,
|
|
360
390
|
seriesIndex: l,
|
|
361
|
-
series:
|
|
391
|
+
series: B.value,
|
|
362
392
|
config: e.value
|
|
363
|
-
},
|
|
393
|
+
}, fe.value = !0, Te.value = t.id;
|
|
364
394
|
let a = "";
|
|
365
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
366
|
-
|
|
395
|
+
const o = t.isChild ? t.parentName : t.name, y = t.isChild ? t.name : "", w = e.value.style.chart.tooltip.customFormat;
|
|
396
|
+
xa(w) && wa(() => w({
|
|
367
397
|
datapoint: t,
|
|
368
|
-
series:
|
|
398
|
+
series: B.value,
|
|
369
399
|
config: e.value,
|
|
370
400
|
seriesIndex: l
|
|
371
|
-
})) ?
|
|
401
|
+
})) ? be.value = w({
|
|
372
402
|
datapoint: t,
|
|
373
|
-
series:
|
|
403
|
+
series: B.value,
|
|
374
404
|
config: e.value,
|
|
375
405
|
seriesIndex: l
|
|
376
406
|
}) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
377
|
-
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${
|
|
378
|
-
${
|
|
379
|
-
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${
|
|
407
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${Et.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
408
|
+
${y ? `<div>${y}</div>` : ""}
|
|
409
|
+
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${re(
|
|
380
410
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
381
411
|
t.sign === 1 ? t.value : -t.value,
|
|
382
|
-
|
|
412
|
+
M({
|
|
383
413
|
p: e.value.style.chart.tooltip.prefix,
|
|
384
414
|
v: t.sign === 1 ? t.value : -t.value,
|
|
385
415
|
s: e.value.style.chart.tooltip.suffix,
|
|
386
416
|
r: e.value.style.chart.tooltip.roundingValue
|
|
387
417
|
}),
|
|
388
418
|
{ datapoint: t, seriesIndex: l }
|
|
389
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
390
|
-
v: Math.abs(t.value) /
|
|
419
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${M({
|
|
420
|
+
v: Math.abs(t.value) / E.value * 100,
|
|
391
421
|
s: "%",
|
|
392
422
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
393
|
-
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
423
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${M({
|
|
394
424
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
395
425
|
s: "%",
|
|
396
426
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
397
|
-
})}</b></div>`)),
|
|
427
|
+
})}</b></div>`)), be.value = `<div style="text-align:left">${a}</div>`);
|
|
398
428
|
}
|
|
399
|
-
function
|
|
429
|
+
function rt(t, l, a, o) {
|
|
400
430
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
401
431
|
return "";
|
|
402
|
-
const
|
|
432
|
+
const y = re(
|
|
403
433
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
404
|
-
|
|
405
|
-
|
|
434
|
+
L(o === -1 && t >= 0 ? -t : t),
|
|
435
|
+
M({
|
|
406
436
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
407
|
-
v:
|
|
437
|
+
v: L(o === -1 && t >= 0 ? -t : t),
|
|
408
438
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
409
439
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
410
440
|
}),
|
|
411
441
|
{ datapoint: l, seriesIndex: a }
|
|
412
|
-
),
|
|
413
|
-
return `${
|
|
442
|
+
), w = `(${ut(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
443
|
+
return `${y}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
|
|
414
444
|
}
|
|
415
|
-
const
|
|
445
|
+
const D = f(() => {
|
|
416
446
|
const t = [
|
|
417
447
|
e.value.translations.parentName,
|
|
418
448
|
e.value.translations.value,
|
|
@@ -421,15 +451,15 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
421
451
|
e.value.translations.value,
|
|
422
452
|
e.value.translations.percentageToSerie,
|
|
423
453
|
e.value.translations.percentageToTotal
|
|
424
|
-
], l =
|
|
454
|
+
], l = G.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
425
455
|
color: a.color,
|
|
426
456
|
parentName: a.parentName,
|
|
427
457
|
parentValue: a.parentValue,
|
|
428
|
-
percentageToTotal: a.parentValue /
|
|
458
|
+
percentageToTotal: a.parentValue / E.value,
|
|
429
459
|
childName: a.name,
|
|
430
460
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
431
461
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
432
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
462
|
+
childPercentageToTotal: Math.abs(a.value) / E.value
|
|
433
463
|
} : {
|
|
434
464
|
color: "",
|
|
435
465
|
parentName: "",
|
|
@@ -438,12 +468,12 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
438
468
|
childName: a.name,
|
|
439
469
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
440
470
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
441
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
471
|
+
childPercentageToTotal: Math.abs(a.value) / E.value
|
|
442
472
|
} : {
|
|
443
473
|
color: a.color,
|
|
444
474
|
parentName: a.name,
|
|
445
475
|
parentValue: a.sign === 1 ? a.value : -a.value,
|
|
446
|
-
percentageToTotal: Math.abs(a.value) /
|
|
476
|
+
percentageToTotal: Math.abs(a.value) / E.value,
|
|
447
477
|
childName: "",
|
|
448
478
|
childValue: "",
|
|
449
479
|
childPercentageToParent: "",
|
|
@@ -451,8 +481,8 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
451
481
|
});
|
|
452
482
|
return { head: t, body: l };
|
|
453
483
|
});
|
|
454
|
-
function
|
|
455
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
484
|
+
function Le(t = null) {
|
|
485
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = D.value.head, o = D.value.body.map((d) => [
|
|
456
486
|
d.parentName,
|
|
457
487
|
d.parentValue,
|
|
458
488
|
d.percentageToTotal,
|
|
@@ -460,66 +490,66 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
460
490
|
d.childValue,
|
|
461
491
|
d.childPercentageToParent,
|
|
462
492
|
d.childPercentageToTotal
|
|
463
|
-
]),
|
|
464
|
-
t ? t(
|
|
493
|
+
]), y = l.concat([a]).concat(o), w = Ca(y);
|
|
494
|
+
t ? t(w) : ka({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
465
495
|
}
|
|
466
|
-
const
|
|
496
|
+
const X = i(!1);
|
|
467
497
|
function st(t) {
|
|
468
|
-
|
|
498
|
+
X.value = t, Me.value += 1;
|
|
469
499
|
}
|
|
470
|
-
function
|
|
500
|
+
function it() {
|
|
471
501
|
_.value.showTable = !_.value.showTable;
|
|
472
502
|
}
|
|
473
|
-
const
|
|
503
|
+
const Jt = i({
|
|
474
504
|
none: 0,
|
|
475
505
|
asc: 1,
|
|
476
506
|
desc: 2
|
|
477
|
-
}),
|
|
478
|
-
|
|
507
|
+
}), I = i(0), ce = i(!1);
|
|
508
|
+
De(() => {
|
|
479
509
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
|
|
480
510
|
componentName: "VueUiVerticalBar",
|
|
481
511
|
type: "attributeWrongValue",
|
|
482
512
|
property: "style.chart.layout.bars.sort",
|
|
483
513
|
key: e.value.style.chart.layout.bars.sort
|
|
484
|
-
}),
|
|
514
|
+
}), I.value = Jt.value[e.value.style.chart.layout.bars.sort], _.value.sortDesc = I.value === 2, ce.value = I.value === 0;
|
|
485
515
|
});
|
|
486
|
-
function
|
|
487
|
-
|
|
516
|
+
function Qt() {
|
|
517
|
+
I.value += 1, I.value > 2 && (I.value = 0);
|
|
488
518
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
519
|
+
function ct() {
|
|
520
|
+
Qt(), _.value.sortDesc = I.value === 2, ce.value = I.value === 0, J();
|
|
491
521
|
}
|
|
492
|
-
function
|
|
522
|
+
function dt() {
|
|
493
523
|
_.value.showTooltip = !_.value.showTooltip;
|
|
494
524
|
}
|
|
495
525
|
const de = i(!1);
|
|
496
|
-
function
|
|
526
|
+
function Fe() {
|
|
497
527
|
de.value = !de.value;
|
|
498
528
|
}
|
|
499
|
-
async function
|
|
500
|
-
if (!
|
|
501
|
-
const { width: l, height: a } =
|
|
529
|
+
async function Zt({ scale: t = 2 } = {}) {
|
|
530
|
+
if (!F.value) return;
|
|
531
|
+
const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: y, base64: w } = await Oa({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
502
532
|
return {
|
|
503
|
-
imageUri:
|
|
504
|
-
base64:
|
|
533
|
+
imageUri: y,
|
|
534
|
+
base64: w,
|
|
505
535
|
title: e.value.style.chart.title.text,
|
|
506
536
|
width: l,
|
|
507
537
|
height: a,
|
|
508
538
|
aspectRatio: o
|
|
509
539
|
};
|
|
510
540
|
}
|
|
511
|
-
const
|
|
541
|
+
const ve = f(() => {
|
|
512
542
|
const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
|
|
513
543
|
return {
|
|
514
|
-
component: t ?
|
|
544
|
+
component: t ? Bt : za,
|
|
515
545
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
516
546
|
props: t ? {
|
|
517
547
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
518
548
|
color: e.value.table.th.color,
|
|
519
549
|
headerColor: e.value.table.th.color,
|
|
520
550
|
headerBg: e.value.table.th.backgroundColor,
|
|
521
|
-
isFullscreen:
|
|
522
|
-
fullscreenParent:
|
|
551
|
+
isFullscreen: X.value,
|
|
552
|
+
fullscreenParent: F.value,
|
|
523
553
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
524
554
|
} : {
|
|
525
555
|
hideDetails: !0,
|
|
@@ -538,20 +568,20 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
538
568
|
}
|
|
539
569
|
};
|
|
540
570
|
});
|
|
541
|
-
|
|
571
|
+
Be(() => _.value.showTable, (t) => {
|
|
542
572
|
e.value.table.show || (t && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
543
573
|
});
|
|
544
|
-
const { isResponsive:
|
|
545
|
-
function
|
|
546
|
-
_.value.showTable = !1,
|
|
574
|
+
const { isResponsive: ea } = Ba(Ze, Rt);
|
|
575
|
+
function Pe() {
|
|
576
|
+
_.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
|
|
547
577
|
}
|
|
548
|
-
const
|
|
578
|
+
const ta = f(() => B.value.map((t, l) => ({
|
|
549
579
|
...t,
|
|
550
580
|
shape: "square",
|
|
551
|
-
display: `${t.name}: ${
|
|
581
|
+
display: `${t.name}: ${re(
|
|
552
582
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
553
583
|
t.value,
|
|
554
|
-
|
|
584
|
+
M({
|
|
555
585
|
p: e.value.style.chart.legend.prefix,
|
|
556
586
|
v: t.value,
|
|
557
587
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -559,92 +589,92 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
559
589
|
}),
|
|
560
590
|
{ datapoint: t, seriesIndex: l }
|
|
561
591
|
)}`
|
|
562
|
-
}))),
|
|
592
|
+
}))), aa = f(() => e.value.style.chart.backgroundColor), la = f(() => e.value.style.chart.legend), oa = f(() => e.value.style.chart.title), na = f(() => ta.value.map((t) => ({
|
|
563
593
|
...t,
|
|
564
594
|
name: t.display
|
|
565
|
-
}))), { exportSvg:
|
|
595
|
+
}))), { exportSvg: ua, getSvg: ra } = Fa({
|
|
566
596
|
svg: _e,
|
|
567
|
-
title:
|
|
568
|
-
legend:
|
|
569
|
-
legendItems:
|
|
570
|
-
backgroundColor:
|
|
597
|
+
title: oa,
|
|
598
|
+
legend: la,
|
|
599
|
+
legendItems: na,
|
|
600
|
+
backgroundColor: aa
|
|
571
601
|
});
|
|
572
|
-
async function
|
|
602
|
+
async function vt({ isCb: t }) {
|
|
573
603
|
if (t) {
|
|
574
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
575
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
604
|
+
const { blob: l, url: a, text: o, dataUrl: y } = await ra();
|
|
605
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: y });
|
|
576
606
|
} else
|
|
577
|
-
|
|
607
|
+
ua();
|
|
578
608
|
}
|
|
579
|
-
return
|
|
580
|
-
autoSize:
|
|
609
|
+
return At({
|
|
610
|
+
autoSize: V,
|
|
581
611
|
// v3
|
|
582
|
-
getData:
|
|
583
|
-
getImage:
|
|
584
|
-
recalculateHeight:
|
|
585
|
-
generatePdf:
|
|
586
|
-
generateCsv:
|
|
587
|
-
generateImage:
|
|
588
|
-
generateSvg:
|
|
589
|
-
hideSeries:
|
|
590
|
-
showSeries:
|
|
591
|
-
toggleTable:
|
|
592
|
-
toggleSort:
|
|
593
|
-
toggleTooltip:
|
|
594
|
-
toggleAnnotator:
|
|
612
|
+
getData: Ht,
|
|
613
|
+
getImage: Zt,
|
|
614
|
+
recalculateHeight: J,
|
|
615
|
+
generatePdf: Ke,
|
|
616
|
+
generateCsv: Le,
|
|
617
|
+
generateImage: Je,
|
|
618
|
+
generateSvg: vt,
|
|
619
|
+
hideSeries: Wt,
|
|
620
|
+
showSeries: Gt,
|
|
621
|
+
toggleTable: it,
|
|
622
|
+
toggleSort: ct,
|
|
623
|
+
toggleTooltip: dt,
|
|
624
|
+
toggleAnnotator: Fe,
|
|
595
625
|
toggleFullscreen: st
|
|
596
|
-
}), (t, l) => (u(),
|
|
597
|
-
class:
|
|
626
|
+
}), (t, l) => (u(), c("div", {
|
|
627
|
+
class: j(`vue-data-ui-component vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
598
628
|
ref_key: "verticalBarChart",
|
|
599
|
-
ref:
|
|
600
|
-
id: `vue-ui-vertical-bar_${
|
|
601
|
-
style:
|
|
602
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
603
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
629
|
+
ref: F,
|
|
630
|
+
id: `vue-ui-vertical-bar_${S.value}`,
|
|
631
|
+
style: v(`padding-top:${e.value.responsive && e.value.autoSize ? `${Ae.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Ae.value}px` : "height: 100%" : ""}`),
|
|
632
|
+
onMouseenter: l[3] || (l[3] = () => r(je)(!0)),
|
|
633
|
+
onMouseleave: l[4] || (l[4] = () => r(je)(!1))
|
|
604
634
|
}, [
|
|
605
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
635
|
+
e.value.userOptions.buttons.annotator ? (u(), H(r(Lt), {
|
|
606
636
|
key: 0,
|
|
607
|
-
svgRef:
|
|
637
|
+
svgRef: r(_e),
|
|
608
638
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
609
639
|
color: e.value.style.chart.color,
|
|
610
640
|
active: de.value,
|
|
611
|
-
onClose:
|
|
641
|
+
onClose: Fe
|
|
612
642
|
}, {
|
|
613
643
|
"annotator-action-close": h(() => [
|
|
614
|
-
|
|
644
|
+
b(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
615
645
|
]),
|
|
616
646
|
"annotator-action-color": h(({ color: a }) => [
|
|
617
|
-
|
|
647
|
+
b(t.$slots, "annotator-action-color", N(z({ color: a })), void 0, !0)
|
|
618
648
|
]),
|
|
619
649
|
"annotator-action-draw": h(({ mode: a }) => [
|
|
620
|
-
|
|
650
|
+
b(t.$slots, "annotator-action-draw", N(z({ mode: a })), void 0, !0)
|
|
621
651
|
]),
|
|
622
652
|
"annotator-action-undo": h(({ disabled: a }) => [
|
|
623
|
-
|
|
653
|
+
b(t.$slots, "annotator-action-undo", N(z({ disabled: a })), void 0, !0)
|
|
624
654
|
]),
|
|
625
655
|
"annotator-action-redo": h(({ disabled: a }) => [
|
|
626
|
-
|
|
656
|
+
b(t.$slots, "annotator-action-redo", N(z({ disabled: a })), void 0, !0)
|
|
627
657
|
]),
|
|
628
658
|
"annotator-action-delete": h(({ disabled: a }) => [
|
|
629
|
-
|
|
659
|
+
b(t.$slots, "annotator-action-delete", N(z({ disabled: a })), void 0, !0)
|
|
630
660
|
]),
|
|
631
661
|
_: 3
|
|
632
662
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
633
|
-
|
|
663
|
+
Mt.value ? (u(), c("div", {
|
|
634
664
|
key: 1,
|
|
635
665
|
ref_key: "noTitle",
|
|
636
|
-
ref:
|
|
666
|
+
ref: Ge,
|
|
637
667
|
class: "vue-data-ui-no-title-space",
|
|
638
668
|
style: "height:36px; width: 100%;background:transparent"
|
|
639
669
|
}, null, 512)) : m("", !0),
|
|
640
|
-
e.value.style.chart.title.text ? (u(),
|
|
670
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
641
671
|
key: 2,
|
|
642
672
|
ref_key: "chartTitle",
|
|
643
673
|
ref: Re,
|
|
644
674
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
645
675
|
}, [
|
|
646
|
-
(u(),
|
|
647
|
-
key: `title_${
|
|
676
|
+
(u(), H(Ea, {
|
|
677
|
+
key: `title_${We.value}`,
|
|
648
678
|
config: {
|
|
649
679
|
title: {
|
|
650
680
|
cy: "vertical-bar-div-title",
|
|
@@ -657,15 +687,15 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
657
687
|
}
|
|
658
688
|
}, null, 8, ["config"]))
|
|
659
689
|
], 512)) : m("", !0),
|
|
660
|
-
e.value.userOptions.show &&
|
|
690
|
+
e.value.userOptions.show && ge.value && (r(He) || r(we)) ? (u(), H(r(Ft), {
|
|
661
691
|
ref_key: "userOptionsRef",
|
|
662
|
-
ref:
|
|
663
|
-
key: `user_options_${
|
|
692
|
+
ref: Ce,
|
|
693
|
+
key: `user_options_${Me.value}`,
|
|
664
694
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
665
695
|
color: e.value.style.chart.color,
|
|
666
|
-
isImaging:
|
|
667
|
-
isPrinting:
|
|
668
|
-
uid:
|
|
696
|
+
isImaging: r(Ye),
|
|
697
|
+
isPrinting: r(qe),
|
|
698
|
+
uid: S.value,
|
|
669
699
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
670
700
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
671
701
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -674,10 +704,10 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
674
704
|
hasTable: e.value.userOptions.buttons.table,
|
|
675
705
|
hasSort: e.value.userOptions.buttons.sort,
|
|
676
706
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
677
|
-
isFullscreen:
|
|
707
|
+
isFullscreen: X.value,
|
|
678
708
|
isTooltip: _.value.showTooltip,
|
|
679
709
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
680
|
-
chartElement:
|
|
710
|
+
chartElement: F.value,
|
|
681
711
|
position: e.value.userOptions.position,
|
|
682
712
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
683
713
|
isAnnotation: de.value,
|
|
@@ -685,354 +715,354 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
685
715
|
printScale: e.value.userOptions.print.scale,
|
|
686
716
|
tableDialog: e.value.table.useDialog,
|
|
687
717
|
onToggleFullscreen: st,
|
|
688
|
-
onGeneratePdf:
|
|
689
|
-
onGenerateCsv:
|
|
690
|
-
onGenerateImage:
|
|
691
|
-
onGenerateSvg:
|
|
692
|
-
onToggleTable:
|
|
693
|
-
onToggleSort:
|
|
694
|
-
onToggleTooltip:
|
|
695
|
-
onToggleAnnotator:
|
|
696
|
-
style:
|
|
697
|
-
visibility:
|
|
718
|
+
onGeneratePdf: r(Ke),
|
|
719
|
+
onGenerateCsv: Le,
|
|
720
|
+
onGenerateImage: r(Je),
|
|
721
|
+
onGenerateSvg: vt,
|
|
722
|
+
onToggleTable: it,
|
|
723
|
+
onToggleSort: ct,
|
|
724
|
+
onToggleTooltip: dt,
|
|
725
|
+
onToggleAnnotator: Fe,
|
|
726
|
+
style: v({
|
|
727
|
+
visibility: r(He) ? r(we) ? "visible" : "hidden" : "visible"
|
|
698
728
|
})
|
|
699
729
|
}, pe({ _: 2 }, [
|
|
700
730
|
t.$slots.menuIcon ? {
|
|
701
731
|
name: "menuIcon",
|
|
702
732
|
fn: h(({ isOpen: a, color: o }) => [
|
|
703
|
-
|
|
733
|
+
b(t.$slots, "menuIcon", N(z({ isOpen: a, color: o })), void 0, !0)
|
|
704
734
|
]),
|
|
705
735
|
key: "0"
|
|
706
736
|
} : void 0,
|
|
707
737
|
t.$slots.optionTooltip ? {
|
|
708
738
|
name: "optionTooltip",
|
|
709
739
|
fn: h(() => [
|
|
710
|
-
|
|
740
|
+
b(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
711
741
|
]),
|
|
712
742
|
key: "1"
|
|
713
743
|
} : void 0,
|
|
714
744
|
t.$slots.optionPdf ? {
|
|
715
745
|
name: "optionPdf",
|
|
716
746
|
fn: h(() => [
|
|
717
|
-
|
|
747
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
718
748
|
]),
|
|
719
749
|
key: "2"
|
|
720
750
|
} : void 0,
|
|
721
751
|
t.$slots.optionCsv ? {
|
|
722
752
|
name: "optionCsv",
|
|
723
753
|
fn: h(() => [
|
|
724
|
-
|
|
754
|
+
b(t.$slots, "optionCsv", {}, void 0, !0)
|
|
725
755
|
]),
|
|
726
756
|
key: "3"
|
|
727
757
|
} : void 0,
|
|
728
758
|
t.$slots.optionImg ? {
|
|
729
759
|
name: "optionImg",
|
|
730
760
|
fn: h(() => [
|
|
731
|
-
|
|
761
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
732
762
|
]),
|
|
733
763
|
key: "4"
|
|
734
764
|
} : void 0,
|
|
735
765
|
t.$slots.optionSvg ? {
|
|
736
766
|
name: "optionSvg",
|
|
737
767
|
fn: h(() => [
|
|
738
|
-
|
|
768
|
+
b(t.$slots, "optionSvg", {}, void 0, !0)
|
|
739
769
|
]),
|
|
740
770
|
key: "5"
|
|
741
771
|
} : void 0,
|
|
742
772
|
t.$slots.optionTable ? {
|
|
743
773
|
name: "optionTable",
|
|
744
774
|
fn: h(() => [
|
|
745
|
-
|
|
775
|
+
b(t.$slots, "optionTable", {}, void 0, !0)
|
|
746
776
|
]),
|
|
747
777
|
key: "6"
|
|
748
778
|
} : void 0,
|
|
749
779
|
t.$slots.optionLabels ? {
|
|
750
780
|
name: "optionLabels",
|
|
751
781
|
fn: h(() => [
|
|
752
|
-
|
|
782
|
+
b(t.$slots, "optionLabels", {}, void 0, !0)
|
|
753
783
|
]),
|
|
754
784
|
key: "7"
|
|
755
785
|
} : void 0,
|
|
756
786
|
t.$slots.optionSort ? {
|
|
757
787
|
name: "optionSort",
|
|
758
788
|
fn: h(() => [
|
|
759
|
-
|
|
789
|
+
b(t.$slots, "optionSort", {}, void 0, !0)
|
|
760
790
|
]),
|
|
761
791
|
key: "8"
|
|
762
792
|
} : void 0,
|
|
763
793
|
t.$slots.optionFullscreen ? {
|
|
764
794
|
name: "optionFullscreen",
|
|
765
795
|
fn: h(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
766
|
-
|
|
796
|
+
b(t.$slots, "optionFullscreen", N(z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
767
797
|
]),
|
|
768
798
|
key: "9"
|
|
769
799
|
} : void 0,
|
|
770
800
|
t.$slots.optionAnnotator ? {
|
|
771
801
|
name: "optionAnnotator",
|
|
772
802
|
fn: h(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
773
|
-
|
|
803
|
+
b(t.$slots, "optionAnnotator", N(z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
774
804
|
]),
|
|
775
805
|
key: "10"
|
|
776
806
|
} : void 0
|
|
777
807
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
778
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(),
|
|
808
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), c("div", {
|
|
779
809
|
key: 4,
|
|
780
810
|
ref_key: "chartLegend",
|
|
781
|
-
ref:
|
|
811
|
+
ref: ye
|
|
782
812
|
}, [
|
|
783
|
-
(u(),
|
|
813
|
+
(u(), H(ft, {
|
|
784
814
|
key: `legend_top_${me.value}`,
|
|
785
|
-
legendSet:
|
|
786
|
-
config:
|
|
787
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
815
|
+
legendSet: B.value,
|
|
816
|
+
config: lt.value,
|
|
817
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => R(a.id))
|
|
788
818
|
}, pe({
|
|
789
819
|
item: h(({ legend: a, index: o }) => [
|
|
790
820
|
n("div", {
|
|
791
|
-
onClick: (
|
|
792
|
-
style:
|
|
793
|
-
}, p(a.name) + ": " + p(
|
|
821
|
+
onClick: (y) => R(a.id),
|
|
822
|
+
style: v(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
823
|
+
}, p(a.name) + ": " + p(r(re)(
|
|
794
824
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
795
825
|
a.value,
|
|
796
|
-
|
|
826
|
+
r(M)({
|
|
797
827
|
p: e.value.style.chart.legend.prefix,
|
|
798
828
|
v: a.value,
|
|
799
829
|
s: e.value.style.chart.legend.suffix,
|
|
800
830
|
r: e.value.style.chart.legend.roundingValue
|
|
801
831
|
}),
|
|
802
832
|
{ datapoint: a, seriesIndex: o }
|
|
803
|
-
)), 13,
|
|
833
|
+
)), 13, Ma)
|
|
804
834
|
]),
|
|
805
835
|
_: 2
|
|
806
836
|
}, [
|
|
807
837
|
t.$slots.pattern ? {
|
|
808
838
|
name: "legend-pattern",
|
|
809
839
|
fn: h(({ legend: a, index: o }) => [
|
|
810
|
-
ee(
|
|
840
|
+
ee(bt, {
|
|
811
841
|
shape: a.shape,
|
|
812
842
|
radius: 30,
|
|
813
843
|
stroke: "none",
|
|
814
844
|
plot: { x: 30, y: 30 },
|
|
815
|
-
fill: `url(#pattern_${
|
|
845
|
+
fill: `url(#pattern_${S.value}_${o})`
|
|
816
846
|
}, null, 8, ["shape", "fill"])
|
|
817
847
|
]),
|
|
818
848
|
key: "0"
|
|
819
849
|
} : void 0
|
|
820
850
|
]), 1032, ["legendSet", "config"]))
|
|
821
851
|
], 512)) : m("", !0),
|
|
822
|
-
(u(),
|
|
852
|
+
(u(), c("svg", {
|
|
823
853
|
ref_key: "svgRef",
|
|
824
854
|
ref: _e,
|
|
825
|
-
xmlns:
|
|
826
|
-
class:
|
|
827
|
-
viewBox:
|
|
828
|
-
style:
|
|
855
|
+
xmlns: r(ya),
|
|
856
|
+
class: j({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
857
|
+
viewBox: se.value,
|
|
858
|
+
style: v(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
829
859
|
}, [
|
|
830
860
|
n("g", {
|
|
831
861
|
ref_key: "G",
|
|
832
862
|
ref: Y,
|
|
833
863
|
class: "vue-data-ui-g"
|
|
834
864
|
}, [
|
|
835
|
-
ee(
|
|
836
|
-
t.$slots["chart-background"] ? (u(),
|
|
865
|
+
ee(r(Pt)),
|
|
866
|
+
t.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
837
867
|
key: 0,
|
|
838
|
-
x:
|
|
868
|
+
x: P.value.x,
|
|
839
869
|
y: 0,
|
|
840
|
-
width:
|
|
841
|
-
height:
|
|
870
|
+
width: P.value.width,
|
|
871
|
+
height: P.value.height,
|
|
842
872
|
style: {
|
|
843
873
|
pointerEvents: "none"
|
|
844
874
|
}
|
|
845
875
|
}, [
|
|
846
|
-
|
|
847
|
-
], 8,
|
|
848
|
-
(u(!0),
|
|
876
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
877
|
+
], 8, Ua)) : m("", !0),
|
|
878
|
+
(u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("linearGradient", {
|
|
849
879
|
x1: "0%",
|
|
850
880
|
y1: "0%",
|
|
851
881
|
x2: "100%",
|
|
852
882
|
y2: "0%",
|
|
853
|
-
id: `vertical_bar_gradient_${
|
|
883
|
+
id: `vertical_bar_gradient_${S.value}_${o}`
|
|
854
884
|
}, [
|
|
855
885
|
n("stop", {
|
|
856
886
|
offset: "0%",
|
|
857
887
|
"stop-color": a.color
|
|
858
|
-
}, null, 8,
|
|
888
|
+
}, null, 8, Wa),
|
|
859
889
|
n("stop", {
|
|
860
890
|
offset: "100%",
|
|
861
|
-
"stop-color":
|
|
862
|
-
}, null, 8,
|
|
863
|
-
], 8,
|
|
864
|
-
t.$slots.pattern ? (u(),
|
|
865
|
-
(u(!0),
|
|
866
|
-
|
|
891
|
+
"stop-color": r(Oe)(r(ma)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
892
|
+
}, null, 8, Xa)
|
|
893
|
+
], 8, Ga))), 256)),
|
|
894
|
+
t.$slots.pattern ? (u(), c("g", ja, [
|
|
895
|
+
(u(!0), c(te, null, ae(G.value, (a) => (u(), c("defs", null, [
|
|
896
|
+
b(t.$slots, "pattern", pt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
867
897
|
]))), 256))
|
|
868
898
|
])) : m("", !0),
|
|
869
|
-
(u(!0),
|
|
899
|
+
(u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("g", null, [
|
|
870
900
|
n("rect", {
|
|
871
|
-
x:
|
|
872
|
-
y:
|
|
873
|
-
width:
|
|
874
|
-
height:
|
|
901
|
+
x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
|
|
902
|
+
y: s.value.top + (k.value + g.value) * o,
|
|
903
|
+
width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
904
|
+
height: g.value <= 0 ? 1e-4 : g.value,
|
|
875
905
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
876
906
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
877
|
-
class:
|
|
878
|
-
}, null, 10,
|
|
907
|
+
class: j({ animated: e.value.useCssAnimation })
|
|
908
|
+
}, null, 10, Ha)
|
|
879
909
|
]))), 256)),
|
|
880
|
-
(u(!0),
|
|
910
|
+
(u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("g", null, [
|
|
881
911
|
n("rect", {
|
|
882
|
-
x:
|
|
883
|
-
y:
|
|
884
|
-
width:
|
|
885
|
-
height:
|
|
886
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
912
|
+
x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
|
|
913
|
+
y: s.value.top + (k.value + g.value) * o,
|
|
914
|
+
width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
915
|
+
height: g.value <= 0 ? 1e-4 : g.value,
|
|
916
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : r(Oe)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
887
917
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
888
918
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
889
919
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
890
|
-
class:
|
|
891
|
-
}, null, 10,
|
|
892
|
-
t.$slots.pattern ? (u(),
|
|
920
|
+
class: j({ animated: e.value.useCssAnimation })
|
|
921
|
+
}, null, 10, qa),
|
|
922
|
+
t.$slots.pattern ? (u(), c("rect", {
|
|
893
923
|
key: 0,
|
|
894
|
-
x:
|
|
895
|
-
y:
|
|
896
|
-
width:
|
|
897
|
-
height:
|
|
898
|
-
fill: `url(#pattern_${
|
|
924
|
+
x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
|
|
925
|
+
y: s.value.top + (k.value + g.value) * o,
|
|
926
|
+
width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
927
|
+
height: g.value <= 0 ? 1e-4 : g.value,
|
|
928
|
+
fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
|
|
899
929
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
900
930
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
901
931
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
902
|
-
class:
|
|
903
|
-
}, null, 10,
|
|
904
|
-
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
932
|
+
class: j({ animated: e.value.useCssAnimation })
|
|
933
|
+
}, null, 10, Ya)) : m("", !0),
|
|
934
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== G.value.length - 1 ? (u(), c("line", {
|
|
905
935
|
key: 1,
|
|
906
|
-
x1:
|
|
907
|
-
x2: e.value.style.chart.layout.separators.fullWidth ?
|
|
908
|
-
y1:
|
|
909
|
-
y2:
|
|
936
|
+
x1: P.value.x,
|
|
937
|
+
x2: e.value.style.chart.layout.separators.fullWidth ? P.value.width - Math.abs(P.value.x) : s.value.left,
|
|
938
|
+
y1: g.value + k.value / 2 + s.value.top + (k.value + g.value) * o,
|
|
939
|
+
y2: g.value + k.value / 2 + s.value.top + (k.value + g.value) * o,
|
|
910
940
|
stroke: e.value.style.chart.layout.separators.color,
|
|
911
941
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
912
942
|
"stroke-linecap": "round",
|
|
913
943
|
style: { transition: "none !important", animation: "none !important" }
|
|
914
|
-
}, null, 8,
|
|
915
|
-
|
|
944
|
+
}, null, 8, Ka)) : m("", !0),
|
|
945
|
+
W.value && e.value.style.chart.layout.separators.show ? (u(), c("line", {
|
|
916
946
|
key: 2,
|
|
917
|
-
x1:
|
|
918
|
-
x2:
|
|
919
|
-
y1:
|
|
920
|
-
y2:
|
|
947
|
+
x1: s.value.left + s.value.width / 2,
|
|
948
|
+
x2: s.value.left + s.value.width / 2,
|
|
949
|
+
y1: s.value.top,
|
|
950
|
+
y2: s.value.bottom,
|
|
921
951
|
stroke: e.value.style.chart.layout.separators.color,
|
|
922
952
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
923
953
|
"stroke-linecap": "round"
|
|
924
|
-
}, null, 8,
|
|
925
|
-
n("g",
|
|
954
|
+
}, null, 8, Ja)) : m("", !0),
|
|
955
|
+
n("g", Qa, [
|
|
926
956
|
n("text", {
|
|
927
|
-
x:
|
|
928
|
-
y:
|
|
929
|
-
"text-anchor": !
|
|
957
|
+
x: W.value ? s.value.left + s.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : jt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
958
|
+
y: s.value.top + (k.value + g.value) * o + g.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
959
|
+
"text-anchor": !W.value || a.sign === -1 ? "start" : "end",
|
|
930
960
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
931
961
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
932
962
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
933
|
-
}, p(
|
|
934
|
-
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(),
|
|
963
|
+
}, p(rt(a.value, a, o, a.sign)), 9, Za),
|
|
964
|
+
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), c("text", {
|
|
935
965
|
key: 0,
|
|
936
966
|
"text-anchor": "end",
|
|
937
|
-
x:
|
|
938
|
-
y:
|
|
967
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
968
|
+
y: s.value.top + (k.value + g.value) * o + g.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
939
969
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
940
970
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
941
971
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
942
|
-
}, p(a.name), 9,
|
|
972
|
+
}, p(a.name), 9, el)) : m("", !0)
|
|
943
973
|
]),
|
|
944
|
-
n("g",
|
|
945
|
-
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(),
|
|
974
|
+
n("g", tl, [
|
|
975
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
|
|
946
976
|
key: 0,
|
|
947
|
-
x: e.value.autoSize ? void 0 :
|
|
977
|
+
x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
948
978
|
y: ne(a, o).y,
|
|
949
979
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
950
980
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
951
981
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
952
982
|
"text-anchor": "start"
|
|
953
|
-
}, p(ne(a, o).name), 9,
|
|
954
|
-
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(),
|
|
983
|
+
}, p(ne(a, o).name), 9, al)) : m("", !0),
|
|
984
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
|
|
955
985
|
key: 1,
|
|
956
|
-
x: e.value.autoSize ? void 0 :
|
|
986
|
+
x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
957
987
|
y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
958
988
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
959
989
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
960
990
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
961
991
|
"text-anchor": "start"
|
|
962
|
-
}, p(
|
|
992
|
+
}, p(rt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, ll)) : m("", !0)
|
|
963
993
|
]),
|
|
964
994
|
n("rect", {
|
|
965
|
-
x:
|
|
966
|
-
y:
|
|
967
|
-
width:
|
|
968
|
-
height:
|
|
969
|
-
fill:
|
|
970
|
-
onMouseenter: (
|
|
971
|
-
onMouseleave: (
|
|
972
|
-
onClick: (
|
|
973
|
-
}, null, 40,
|
|
995
|
+
x: P.value.x,
|
|
996
|
+
y: s.value.top + (k.value + g.value) * o - k.value / 2,
|
|
997
|
+
width: P.value.width,
|
|
998
|
+
height: g.value + k.value <= 0 ? 1e-4 : g.value + k.value,
|
|
999
|
+
fill: Te.value === a.id ? r(Oe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1000
|
+
onMouseenter: (y) => Kt(a, o),
|
|
1001
|
+
onMouseleave: (y) => Yt({ datapoint: a, seriesIndex: o }),
|
|
1002
|
+
onClick: (y) => qt({ datapoint: a, seriesIndex: o })
|
|
1003
|
+
}, null, 40, ol)
|
|
974
1004
|
]))), 256)),
|
|
975
|
-
|
|
1005
|
+
b(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
976
1006
|
], 512)
|
|
977
|
-
], 14,
|
|
978
|
-
t.$slots.watermark ? (u(),
|
|
979
|
-
|
|
1007
|
+
], 14, Ra)),
|
|
1008
|
+
t.$slots.watermark ? (u(), c("div", nl, [
|
|
1009
|
+
b(t.$slots, "watermark", N(z({ isPrinting: r(qe) || r(Ye) })), void 0, !0)
|
|
980
1010
|
])) : m("", !0),
|
|
981
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(),
|
|
1011
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), c("div", {
|
|
982
1012
|
key: 6,
|
|
983
1013
|
ref_key: "chartLegend",
|
|
984
|
-
ref:
|
|
1014
|
+
ref: ye
|
|
985
1015
|
}, [
|
|
986
|
-
(u(),
|
|
1016
|
+
(u(), H(ft, {
|
|
987
1017
|
key: `legend_bottom_${me.value}`,
|
|
988
|
-
legendSet:
|
|
989
|
-
config:
|
|
990
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
1018
|
+
legendSet: B.value,
|
|
1019
|
+
config: lt.value,
|
|
1020
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => R(a.id))
|
|
991
1021
|
}, pe({
|
|
992
1022
|
item: h(({ legend: a, index: o }) => [
|
|
993
1023
|
n("div", {
|
|
994
|
-
onClick: (
|
|
995
|
-
style:
|
|
996
|
-
}, p(a.name) + ": " + p(
|
|
1024
|
+
onClick: (y) => R(a.id),
|
|
1025
|
+
style: v(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
1026
|
+
}, p(a.name) + ": " + p(r(re)(
|
|
997
1027
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
998
1028
|
a.value,
|
|
999
|
-
|
|
1029
|
+
r(M)({
|
|
1000
1030
|
p: e.value.style.chart.legend.prefix,
|
|
1001
1031
|
v: a.value,
|
|
1002
1032
|
s: e.value.style.chart.legend.suffix,
|
|
1003
1033
|
r: e.value.style.chart.legend.roundingValue
|
|
1004
1034
|
}),
|
|
1005
1035
|
{ datapoint: a, seriesIndex: o }
|
|
1006
|
-
)), 13,
|
|
1036
|
+
)), 13, ul)
|
|
1007
1037
|
]),
|
|
1008
1038
|
_: 2
|
|
1009
1039
|
}, [
|
|
1010
1040
|
t.$slots.pattern ? {
|
|
1011
1041
|
name: "legend-pattern",
|
|
1012
1042
|
fn: h(({ legend: a, index: o }) => [
|
|
1013
|
-
ee(
|
|
1043
|
+
ee(bt, {
|
|
1014
1044
|
shape: a.shape,
|
|
1015
1045
|
radius: 30,
|
|
1016
1046
|
stroke: "none",
|
|
1017
1047
|
plot: { x: 30, y: 30 },
|
|
1018
|
-
fill: `url(#pattern_${
|
|
1048
|
+
fill: `url(#pattern_${S.value}_${o})`
|
|
1019
1049
|
}, null, 8, ["shape", "fill"])
|
|
1020
1050
|
]),
|
|
1021
1051
|
key: "0"
|
|
1022
1052
|
} : void 0
|
|
1023
1053
|
]), 1032, ["legendSet", "config"]))
|
|
1024
1054
|
], 512)) : m("", !0),
|
|
1025
|
-
|
|
1026
|
-
t.$slots.source ? (u(),
|
|
1055
|
+
b(t.$slots, "legend", { legend: B.value }, void 0, !0),
|
|
1056
|
+
t.$slots.source ? (u(), c("div", {
|
|
1027
1057
|
key: 7,
|
|
1028
1058
|
ref_key: "source",
|
|
1029
|
-
ref:
|
|
1059
|
+
ref: Ue,
|
|
1030
1060
|
dir: "auto"
|
|
1031
1061
|
}, [
|
|
1032
|
-
|
|
1062
|
+
b(t.$slots, "source", {}, void 0, !0)
|
|
1033
1063
|
], 512)) : m("", !0),
|
|
1034
|
-
ee(
|
|
1035
|
-
show: _.value.showTooltip &&
|
|
1064
|
+
ee(r(St), {
|
|
1065
|
+
show: _.value.showTooltip && fe.value && A.value.length < C.dataset.length,
|
|
1036
1066
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1037
1067
|
color: e.value.style.chart.tooltip.color,
|
|
1038
1068
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1042,9 +1072,9 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1042
1072
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1043
1073
|
position: e.value.style.chart.tooltip.position,
|
|
1044
1074
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1045
|
-
parent:
|
|
1046
|
-
content:
|
|
1047
|
-
isFullscreen:
|
|
1075
|
+
parent: F.value,
|
|
1076
|
+
content: be.value,
|
|
1077
|
+
isFullscreen: X.value,
|
|
1048
1078
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1049
1079
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1050
1080
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -1052,35 +1082,35 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1052
1082
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1053
1083
|
}, {
|
|
1054
1084
|
"tooltip-before": h(() => [
|
|
1055
|
-
|
|
1085
|
+
b(t.$slots, "tooltip-before", N(z({ ...Se.value })), void 0, !0)
|
|
1056
1086
|
]),
|
|
1057
1087
|
"tooltip-after": h(() => [
|
|
1058
|
-
|
|
1088
|
+
b(t.$slots, "tooltip-after", N(z({ ...Se.value })), void 0, !0)
|
|
1059
1089
|
]),
|
|
1060
1090
|
_: 3
|
|
1061
1091
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1062
|
-
|
|
1092
|
+
ge.value && e.value.userOptions.buttons.table ? (u(), H(va(ve.value.component), pt({ key: 8 }, ve.value.props, {
|
|
1063
1093
|
ref_key: "tableUnit",
|
|
1064
1094
|
ref: oe,
|
|
1065
|
-
onClose:
|
|
1095
|
+
onClose: Pe
|
|
1066
1096
|
}), pe({
|
|
1067
1097
|
content: h(() => [
|
|
1068
1098
|
n("div", {
|
|
1069
1099
|
ref_key: "tableContainer",
|
|
1070
|
-
ref:
|
|
1100
|
+
ref: Ze,
|
|
1071
1101
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1072
|
-
style:
|
|
1102
|
+
style: v(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1073
1103
|
}, [
|
|
1074
|
-
n("div",
|
|
1075
|
-
e.value.table.useDialog ? m("", !0) : (u(),
|
|
1104
|
+
n("div", rl, [
|
|
1105
|
+
e.value.table.useDialog ? m("", !0) : (u(), c("div", {
|
|
1076
1106
|
key: 0,
|
|
1077
1107
|
role: "button",
|
|
1078
1108
|
tabindex: "0",
|
|
1079
|
-
style:
|
|
1080
|
-
onClick:
|
|
1081
|
-
onKeypress:
|
|
1109
|
+
style: v(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1110
|
+
onClick: Pe,
|
|
1111
|
+
onKeypress: ha(Pe, ["enter"])
|
|
1082
1112
|
}, [
|
|
1083
|
-
ee(
|
|
1113
|
+
ee(r(Ie), {
|
|
1084
1114
|
name: "close",
|
|
1085
1115
|
stroke: e.value.table.th.color,
|
|
1086
1116
|
"stroke-width": 2
|
|
@@ -1088,112 +1118,112 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1088
1118
|
], 36)),
|
|
1089
1119
|
n("div", {
|
|
1090
1120
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1091
|
-
class:
|
|
1121
|
+
class: j({ "vue-ui-responsive": r(ea) })
|
|
1092
1122
|
}, [
|
|
1093
|
-
n("table",
|
|
1094
|
-
e.value.table.useDialog ? m("", !0) : (u(),
|
|
1123
|
+
n("table", sl, [
|
|
1124
|
+
e.value.table.useDialog ? m("", !0) : (u(), c("caption", {
|
|
1095
1125
|
key: 0,
|
|
1096
|
-
style:
|
|
1126
|
+
style: v({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1097
1127
|
class: "vue-ui-data-table__caption"
|
|
1098
1128
|
}, [
|
|
1099
|
-
|
|
1100
|
-
e.value.style.chart.title.subtitle.text ? (u(),
|
|
1129
|
+
gt(p(e.value.style.chart.title.text) + " ", 1),
|
|
1130
|
+
e.value.style.chart.title.subtitle.text ? (u(), c("span", il, p(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
1101
1131
|
], 4)),
|
|
1102
1132
|
n("thead", null, [
|
|
1103
1133
|
n("tr", {
|
|
1104
1134
|
role: "row",
|
|
1105
|
-
style:
|
|
1135
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1106
1136
|
}, [
|
|
1107
|
-
(u(!0),
|
|
1108
|
-
style:
|
|
1137
|
+
(u(!0), c(te, null, ae(D.value.head, (a) => (u(), c("th", {
|
|
1138
|
+
style: v(`outline:${e.value.table.th.outline}`)
|
|
1109
1139
|
}, [
|
|
1110
|
-
n("div",
|
|
1140
|
+
n("div", cl, p(a), 1)
|
|
1111
1141
|
], 4))), 256))
|
|
1112
1142
|
], 4),
|
|
1113
1143
|
n("tr", null, [
|
|
1114
1144
|
n("th", {
|
|
1115
|
-
style:
|
|
1145
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1116
1146
|
}, null, 4),
|
|
1117
1147
|
n("th", {
|
|
1118
|
-
style:
|
|
1119
|
-
}, "∑ " + p(e.value.table.td.prefix) + p(isNaN(
|
|
1148
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1149
|
+
}, "∑ " + p(e.value.table.td.prefix) + p(isNaN(E.value) ? "" : E.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
|
|
1120
1150
|
n("th", {
|
|
1121
|
-
style:
|
|
1151
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1122
1152
|
}, "100%", 4),
|
|
1123
1153
|
n("th", {
|
|
1124
|
-
style:
|
|
1154
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1125
1155
|
}, null, 4),
|
|
1126
1156
|
n("th", {
|
|
1127
|
-
style:
|
|
1157
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1128
1158
|
}, null, 4),
|
|
1129
1159
|
n("th", {
|
|
1130
|
-
style:
|
|
1160
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1131
1161
|
}, null, 4),
|
|
1132
1162
|
n("th", {
|
|
1133
|
-
style:
|
|
1163
|
+
style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1134
1164
|
}, null, 4)
|
|
1135
1165
|
])
|
|
1136
1166
|
]),
|
|
1137
1167
|
n("tbody", null, [
|
|
1138
|
-
(u(!0),
|
|
1139
|
-
class:
|
|
1140
|
-
style:
|
|
1168
|
+
(u(!0), c(te, null, ae(D.value.body, (a, o) => (u(), c("tr", {
|
|
1169
|
+
class: j({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1170
|
+
style: v(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1141
1171
|
}, [
|
|
1142
1172
|
n("td", {
|
|
1143
1173
|
class: "vue-ui-data-table__tbody__td",
|
|
1144
|
-
style:
|
|
1145
|
-
"data-cell":
|
|
1174
|
+
style: v(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1175
|
+
"data-cell": D.value.head[0] ?? ""
|
|
1146
1176
|
}, [
|
|
1147
|
-
n("div",
|
|
1148
|
-
a.color ? (u(),
|
|
1177
|
+
n("div", vl, [
|
|
1178
|
+
a.color ? (u(), c("span", {
|
|
1149
1179
|
key: 0,
|
|
1150
|
-
style:
|
|
1180
|
+
style: v(`color:${a.color};margin-right:3px`)
|
|
1151
1181
|
}, "⬤", 4)) : m("", !0),
|
|
1152
1182
|
n("span", null, p(a.parentName), 1)
|
|
1153
1183
|
])
|
|
1154
|
-
], 12,
|
|
1184
|
+
], 12, dl),
|
|
1155
1185
|
n("td", {
|
|
1156
1186
|
class: "vue-ui-data-table__tbody__td",
|
|
1157
|
-
style:
|
|
1158
|
-
"data-cell":
|
|
1187
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1188
|
+
"data-cell": D.value.head[1] ?? ""
|
|
1159
1189
|
}, [
|
|
1160
|
-
n("div",
|
|
1161
|
-
], 12,
|
|
1190
|
+
n("div", pl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
|
|
1191
|
+
], 12, hl),
|
|
1162
1192
|
n("td", {
|
|
1163
1193
|
class: "vue-ui-data-table__tbody__td",
|
|
1164
|
-
style:
|
|
1165
|
-
"data-cell":
|
|
1194
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1195
|
+
"data-cell": D.value.head[2] ?? ""
|
|
1166
1196
|
}, [
|
|
1167
|
-
n("div",
|
|
1168
|
-
], 12,
|
|
1197
|
+
n("div", fl, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1198
|
+
], 12, gl),
|
|
1169
1199
|
n("td", {
|
|
1170
1200
|
class: "vue-ui-data-table__tbody__td",
|
|
1171
|
-
style:
|
|
1172
|
-
"data-cell":
|
|
1201
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1202
|
+
"data-cell": D.value.head[3] ?? ""
|
|
1173
1203
|
}, [
|
|
1174
|
-
n("div",
|
|
1175
|
-
], 12,
|
|
1204
|
+
n("div", yl, p(a.childName), 1)
|
|
1205
|
+
], 12, bl),
|
|
1176
1206
|
n("td", {
|
|
1177
1207
|
class: "vue-ui-data-table__tbody__td",
|
|
1178
|
-
style:
|
|
1179
|
-
"data-cell":
|
|
1208
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1209
|
+
"data-cell": D.value.head[4] ?? ""
|
|
1180
1210
|
}, [
|
|
1181
|
-
n("div",
|
|
1182
|
-
], 12,
|
|
1211
|
+
n("div", Cl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
|
|
1212
|
+
], 12, ml),
|
|
1183
1213
|
n("td", {
|
|
1184
1214
|
class: "vue-ui-data-table__tbody__td",
|
|
1185
|
-
style:
|
|
1186
|
-
"data-cell":
|
|
1215
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1216
|
+
"data-cell": D.value.head[5] ?? ""
|
|
1187
1217
|
}, [
|
|
1188
|
-
n("div",
|
|
1189
|
-
], 12,
|
|
1218
|
+
n("div", xl, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1219
|
+
], 12, kl),
|
|
1190
1220
|
n("td", {
|
|
1191
1221
|
class: "vue-ui-data-table__tbody__td",
|
|
1192
|
-
style:
|
|
1193
|
-
"data-cell":
|
|
1222
|
+
style: v(`outline:${e.value.table.td.outline}`),
|
|
1223
|
+
"data-cell": D.value.head[6] ?? ""
|
|
1194
1224
|
}, [
|
|
1195
|
-
n("div",
|
|
1196
|
-
], 12,
|
|
1225
|
+
n("div", _l, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1226
|
+
], 12, wl)
|
|
1197
1227
|
], 6))), 256))
|
|
1198
1228
|
])
|
|
1199
1229
|
])
|
|
@@ -1206,7 +1236,7 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1206
1236
|
e.value.table.useDialog ? {
|
|
1207
1237
|
name: "title",
|
|
1208
1238
|
fn: h(() => [
|
|
1209
|
-
|
|
1239
|
+
gt(p(ve.value.title), 1)
|
|
1210
1240
|
]),
|
|
1211
1241
|
key: "0"
|
|
1212
1242
|
} : void 0,
|
|
@@ -1216,21 +1246,26 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1216
1246
|
n("button", {
|
|
1217
1247
|
tabindex: "0",
|
|
1218
1248
|
class: "vue-ui-user-options-button",
|
|
1219
|
-
onClick: l[2] || (l[2] = (a) =>
|
|
1249
|
+
onClick: l[2] || (l[2] = (a) => Le(e.value.userOptions.callbacks.csv))
|
|
1220
1250
|
}, [
|
|
1221
|
-
ee(
|
|
1251
|
+
ee(r(Ie), {
|
|
1222
1252
|
name: "excel",
|
|
1223
|
-
stroke:
|
|
1253
|
+
stroke: ve.value.props.color
|
|
1224
1254
|
}, null, 8, ["stroke"])
|
|
1225
1255
|
])
|
|
1226
1256
|
]),
|
|
1227
1257
|
key: "1"
|
|
1228
1258
|
} : void 0
|
|
1229
1259
|
]), 1040)) : m("", !0),
|
|
1230
|
-
|
|
1231
|
-
], 46,
|
|
1260
|
+
r(Xe) ? (u(), H(Sa, { key: 9 })) : m("", !0)
|
|
1261
|
+
], 46, Ia));
|
|
1232
1262
|
}
|
|
1233
|
-
},
|
|
1263
|
+
}, Al = /* @__PURE__ */ Va($l, [["__scopeId", "data-v-7f6e5c2f"]]), Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1264
|
+
__proto__: null,
|
|
1265
|
+
default: Al
|
|
1266
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1234
1267
|
export {
|
|
1235
|
-
|
|
1268
|
+
Wl as a,
|
|
1269
|
+
Xl as b,
|
|
1270
|
+
Al as v
|
|
1236
1271
|
};
|