vue-data-ui 3.9.15 → 3.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{Arrow-f1dKmuRH.js → Arrow-ChEFq9U7.js} +1 -1
- package/dist/{BaseDraggableDialog-CAJxIF6g.js → BaseDraggableDialog-Z5LfhW87.js} +2 -2
- package/dist/{BaseIcon-4i3dd7Ty.js → BaseIcon-CbVDYv89.js} +1 -1
- package/dist/{BaseZoomControls-C0H509ZF.js → BaseZoomControls-e4hnaBoq.js} +2 -2
- package/dist/{ColorPicker-B9oF4-O6.js → ColorPicker-B2OcIXIs.js} +2 -2
- package/dist/{DataTable-WrXCJkfE.js → DataTable-BT_IeqPe.js} +2 -2
- package/dist/{Legend-D6z73edh.js → Legend-D2xmnFPH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-7clRuQVF.js → NonSvgPenAndPaper-Dgnix4B_.js} +3 -3
- package/dist/{PackageVersion-BLzm8l_I.js → PackageVersion-Br3DrrFh.js} +1 -1
- package/dist/{PenAndPaper-DxIUvoQ8.js → PenAndPaper-CvyKWfNl.js} +3 -3
- package/dist/{Shape-DAHhCEdg.js → Shape-12_eh8zD.js} +1 -1
- package/dist/{Slicer-Bn8azYkD.js → Slicer-BCPOPoP2.js} +2 -2
- package/dist/{SlicerPreview-oV3dMuV1.js → SlicerPreview-CgKqSG-h.js} +2 -2
- package/dist/{SparkTooltip-D7iYVquk.js → SparkTooltip-D_OsZuuE.js} +1 -1
- package/dist/{Title-DGnfNZuO.js → Title-DSOZzIrU.js} +1 -1
- package/dist/{Tooltip-TDyKgLB6.js → Tooltip-D0pGX8qz.js} +1 -1
- package/dist/{UserOptions-CzJWRC4s.js → UserOptions-BQO4YFrn.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.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 +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.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 +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-C2K57N1M.js → dom-to-png-WXGPkYro.js} +1 -1
- package/dist/{img-DKigoPDs.js → img-CqYIrJ8I.js} +1 -1
- package/dist/{labelUtils-PMU3ZGCb.js → labelUtils-B3mOOEke.js} +1 -1
- package/dist/{lib-BwysEpWI.js → lib-2iaAPQ_c.js} +340 -322
- package/dist/{pdf-BHGnVnBG.js → pdf-Q5BpWMSa.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DO2dxQ78.js → useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js} +1 -1
- package/dist/{useNestedProp-OFRiX4kU.js → useNestedProp-2p4Tjzc8.js} +3 -2
- package/dist/{usePrinter-BJzHDpYF.js → usePrinter-ChVMpU2f.js} +2 -2
- package/dist/{vue-data-ui-DLBPk_qz.js → vue-data-ui-BWmTki6E.js} +67 -67
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-B3kUXUiU.js → vue-ui-3d-bar-HXoQbs8d.js} +6 -6
- package/dist/{vue-ui-accordion-DUuwVsuJ.js → vue-ui-accordion-Dm0mNNKQ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-ByKj9osZ.js → vue-ui-age-pyramid-CGsJUmDL.js} +6 -6
- package/dist/{vue-ui-annotator-BZuXK7ov.js → vue-ui-annotator-BorYyD6t.js} +7 -7
- package/dist/{vue-ui-bullet-DcFBb0YG.js → vue-ui-bullet-B5H4sazy.js} +7 -7
- package/dist/{vue-ui-candlestick-B0rV5Vhv.js → vue-ui-candlestick-COYxFrX8.js} +7 -7
- package/dist/{vue-ui-carousel-table-CKRr0PUC.js → vue-ui-carousel-table-BsGu8u47.js} +4 -4
- package/dist/{vue-ui-chestnut-CsTwZfmt.js → vue-ui-chestnut-CPleio5s.js} +5 -5
- package/dist/{vue-ui-chord-Ci7wdPU5.js → vue-ui-chord-BL2kiRYa.js} +8 -8
- package/dist/{vue-ui-circle-pack-CosGMpWi.js → vue-ui-circle-pack-Ctax0o8l.js} +6 -6
- package/dist/{vue-ui-cursor-Druq_LcL.js → vue-ui-cursor-CcGTsKr9.js} +3 -3
- package/dist/{vue-ui-dag-TkXJQIwo.js → vue-ui-dag-BZeJu8RB.js} +7 -7
- package/dist/{vue-ui-dashboard-C1PRSeLr.js → vue-ui-dashboard-DU95z4Iw.js} +68 -68
- package/dist/{vue-ui-digits-DDh5Vxvc.js → vue-ui-digits-DsKNaw_K.js} +2 -2
- package/dist/{vue-ui-donut-CKDYWkKE.js → vue-ui-donut-CN7x4Wrm.js} +9 -9
- package/dist/{vue-ui-donut-evolution-BvNNQtyL.js → vue-ui-donut-evolution-D4zNv3y3.js} +8 -8
- package/dist/{vue-ui-dumbbell-D4uWpexA.js → vue-ui-dumbbell-CWi8sl8t.js} +7 -7
- package/dist/{vue-ui-flow-CTLxckNx.js → vue-ui-flow-BydA9ef6.js} +7 -7
- package/dist/{vue-ui-funnel-BWyQixj8.js → vue-ui-funnel-C83WaW6R.js} +6 -6
- package/dist/{vue-ui-galaxy-C0TDWUTS.js → vue-ui-galaxy-BnY90Ga4.js} +8 -8
- package/dist/{vue-ui-gauge-ChOANZyZ.js → vue-ui-gauge-HqwbKAiY.js} +7 -7
- package/dist/{vue-ui-geo-Cv7JzD1c.js → vue-ui-geo-wW6nP6hV.js} +7 -7
- package/dist/{vue-ui-gizmo-Cd8foemN.js → vue-ui-gizmo-B_MBb1r3.js} +3 -3
- package/dist/{vue-ui-heatmap-mxoacXPq.js → vue-ui-heatmap-Ctb6By74.js} +7 -7
- package/dist/{vue-ui-history-plot-BsyGaRQT.js → vue-ui-history-plot-ptSYfBrS.js} +7 -7
- package/dist/{vue-ui-horizontal-bar-e_tYBG4d.js → vue-ui-horizontal-bar-Oj8JxE1o.js} +483 -459
- package/dist/{vue-ui-kpi-DQRm5B2_.js → vue-ui-kpi-CyQCcR37.js} +3 -3
- package/dist/{vue-ui-mini-loader-CObyi21D.js → vue-ui-mini-loader-CXB5jl9q.js} +2 -2
- package/dist/{vue-ui-molecule-DjucsQhe.js → vue-ui-molecule-B3f4D6xs.js} +5 -5
- package/dist/{vue-ui-mood-radar-DOd2rxuT.js → vue-ui-mood-radar-BymSOzbZ.js} +7 -7
- package/dist/{vue-ui-nested-donuts-DE7p2Fgp.js → vue-ui-nested-donuts-Bm75G0c4.js} +8 -8
- package/dist/{vue-ui-onion-BATuVto7.js → vue-ui-onion-BPPHtjJs.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BLp7NM3E.js → vue-ui-parallel-coordinate-plot-CesySg69.js} +8 -8
- package/dist/{vue-ui-quadrant-AW-eksks.js → vue-ui-quadrant-Dxhvwzha.js} +8 -8
- package/dist/{vue-ui-quick-chart-BCnCOAxm.js → vue-ui-quick-chart-CmfR2FF6.js} +6 -6
- package/dist/{vue-ui-radar-B710xZlD.js → vue-ui-radar-9TUuj49-.js} +8 -8
- package/dist/{vue-ui-rating-iq2tKZ_U.js → vue-ui-rating-C-sJPTB9.js} +2 -2
- package/dist/{vue-ui-relation-circle-C4noyjHV.js → vue-ui-relation-circle-CSw8wygj.js} +7 -7
- package/dist/{vue-ui-ridgeline-Ciih1SOm.js → vue-ui-ridgeline-pwJ8hRsj.js} +8 -8
- package/dist/{vue-ui-rings-Bwak5MGF.js → vue-ui-rings-BQK3rKYv.js} +9 -9
- package/dist/{vue-ui-scatter-Bbk87yp_.js → vue-ui-scatter-DqGnrGmi.js} +8 -8
- package/dist/{vue-ui-skeleton-DTP-lHk-.js → vue-ui-skeleton-CprmuWSV.js} +3 -3
- package/dist/{vue-ui-smiley-Ccv9c7pA.js → vue-ui-smiley-TGFkjkro.js} +2 -2
- package/dist/{vue-ui-spark-trend-BEVWCHis.js → vue-ui-spark-trend-BMgbFhyC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BHfJPNZl.js → vue-ui-sparkbar-BR9c9pzQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-3xNJCJ70.js → vue-ui-sparkgauge-QR8NMM76.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-_lV4WXS_.js → vue-ui-sparkhistogram-BZPWjy4g.js} +4 -4
- package/dist/{vue-ui-sparkline-BfFlV5kx.js → vue-ui-sparkline-B7DUXyD7.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-v3ayd3bl.js → vue-ui-sparkstackbar-CBURF9DG.js} +3 -3
- package/dist/{vue-ui-stackbar-YQygDhDd.js → vue-ui-stackbar-8wfpQv75.js} +9 -9
- package/dist/{vue-ui-stackline-x9MMyg_1.js → vue-ui-stackline-KEkKIgeE.js} +9 -9
- package/dist/{vue-ui-strip-plot-Csh9RwiY.js → vue-ui-strip-plot-tBq-1HEl.js} +7 -7
- package/dist/{vue-ui-table-BBmsVv1l.js → vue-ui-table-DQtQ5vth.js} +5 -5
- package/dist/{vue-ui-table-heatmap-B-T8pWI-.js → vue-ui-table-heatmap-CUOXC4JX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BmkIssWR.js → vue-ui-table-sparkline-B-fJpPuE.js} +4 -4
- package/dist/{vue-ui-thermometer-HNdHuF-6.js → vue-ui-thermometer-BjWvhObo.js} +7 -7
- package/dist/{vue-ui-timer-BHHgGQZo.js → vue-ui-timer-KHzMsLix.js} +5 -5
- package/dist/{vue-ui-tiremarks-H585-mQM.js → vue-ui-tiremarks-DHTm-0Rk.js} +6 -6
- package/dist/{vue-ui-treemap-YXAtO95p.js → vue-ui-treemap-BUskEYhL.js} +8 -8
- package/dist/{vue-ui-waffle-BE8SWjIj.js → vue-ui-waffle-DB2x0hkH.js} +9 -9
- package/dist/{vue-ui-wheel-DWxbunQa.js → vue-ui-wheel-CIF3OMNS.js} +6 -6
- package/dist/{vue-ui-word-cloud-JwfLrZoU.js → vue-ui-word-cloud-DA2S9vUS.js} +7 -7
- package/dist/{vue-ui-world-CkgiS9TT.js → vue-ui-world-GYXka5Ap.js} +6 -6
- package/dist/{vue-ui-xy-COxHwrGr.js → vue-ui-xy-GG6jRpRS.js} +9 -9
- package/dist/{vue-ui-xy-canvas-Cg7fpBqF.js → vue-ui-xy-canvas-s7QCO2Kv.js} +10 -10
- package/package.json +1 -1
|
@@ -1,41 +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
|
|
1
|
+
import { useCssVars as Ca, defineAsyncComponent as ae, useSlots as ka, computed as d, ref as i, toRefs as _a, watch as le, onBeforeUnmount as xa, onMounted as Be, createElementBlock as u, openBlock as n, unref as s, normalizeStyle as h, normalizeClass as J, createBlock as Q, createCommentVNode as y, renderSlot as g, createVNode as oe, withCtx as f, normalizeProps as B, guardReactiveProps as N, createSlots as fe, createElementVNode as r, toDisplayString as m, Fragment as O, renderList as E, mergeProps as mt, resolveDynamicComponent as wa, withKeys as $a, createTextVNode as Ct, nextTick as Ne } from "vue";
|
|
2
|
+
import { c as La, t as Aa, i as Ta, j as Z, a1 as Oe, k as Sa, g as ue, o as Ee, U as S, m as Ie, a as se, d as G, X as Fa, s as Me, h as za, $ as Ve, aq as Pa, v as Da, r as Ba, y as Na, _ as Oa } from "./lib-2iaAPQ_c.js";
|
|
3
|
+
import { t as Ea, u as Ia } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ma, a as Re } from "./useNestedProp-2p4Tjzc8.js";
|
|
5
|
+
import { u as Va, B as Ra } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as Ha } from "./usePrinter-ChVMpU2f.js";
|
|
7
|
+
import { u as Xa } from "./useSvgExport-ByUukOZt.js";
|
|
8
8
|
import { u as Ua } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
9
|
import { u as Ga } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
10
|
+
import { u as Wa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ja } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import kt from "./Legend-D2xmnFPH.js";
|
|
13
|
+
import Ya from "./vue-ui-accordion-Dm0mNNKQ.js";
|
|
14
|
+
import qa from "./Title-DSOZzIrU.js";
|
|
15
|
+
import { _ as _t } from "./Shape-12_eh8zD.js";
|
|
16
|
+
import Ka from "./img-CqYIrJ8I.js";
|
|
17
|
+
import { _ as Ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const xt = { 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" } } }, wt = { 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" } } }, $t = { 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" } } }, Lt = { 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" } } }, At = { 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" } } }, Tt = { 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" } } }, St = {
|
|
19
19
|
default: {},
|
|
20
|
-
dark:
|
|
21
|
-
celebration:
|
|
22
|
-
celebrationNight:
|
|
23
|
-
hack:
|
|
24
|
-
zen:
|
|
25
|
-
concrete:
|
|
26
|
-
},
|
|
20
|
+
dark: xt,
|
|
21
|
+
celebration: wt,
|
|
22
|
+
celebrationNight: $t,
|
|
23
|
+
hack: Lt,
|
|
24
|
+
zen: At,
|
|
25
|
+
concrete: Tt
|
|
26
|
+
}, uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
27
|
__proto__: null,
|
|
28
|
-
celebration:
|
|
29
|
-
celebrationNight:
|
|
30
|
-
concrete:
|
|
31
|
-
dark:
|
|
32
|
-
default:
|
|
33
|
-
hack:
|
|
34
|
-
zen:
|
|
35
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
28
|
+
celebration: wt,
|
|
29
|
+
celebrationNight: $t,
|
|
30
|
+
concrete: Tt,
|
|
31
|
+
dark: xt,
|
|
32
|
+
default: St,
|
|
33
|
+
hack: Lt,
|
|
34
|
+
zen: At
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = ["id"], Za = ["onClick"], el = ["xmlns", "viewBox"], tl = ["width", "height"], al = ["id"], ll = ["stop-color"], ol = ["stop-color"], nl = { key: 1 }, rl = ["x", "y", "width", "height", "fill", "rx"], ul = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], sl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = { class: "vue-ui-horizontal-bar-parent-label" }, vl = ["y", "height", "width", "fill"], hl = ["y", "font-size", "fill", "x", "font-weight", "innerHTML"], fl = ["y", "font-size", "fill", "x", "font-weight"], pl = { class: "vue-ui-horizontal-bar-child-label" }, bl = ["x", "y", "font-size", "font-weight", "innerHTML"], gl = { class: "vue-ui-horizontal-bar-child-label" }, yl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], ml = { class: "vue-ui-horizontal-bar-child-label" }, Cl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], kl = ["y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], _l = {
|
|
36
36
|
key: 5,
|
|
37
37
|
class: "vue-data-ui-watermark"
|
|
38
|
-
},
|
|
38
|
+
}, xl = ["onClick"], wl = { style: "width:100%;padding-top: 36px;position:relative" }, $l = { class: "vue-ui-data-table" }, Ll = { key: 0 }, Al = { style: { width: "100%" } }, Tl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fl = ["data-cell"], zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Pl = ["data-cell"], Dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Bl = ["data-cell"], Nl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ol = ["data-cell"], El = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Il = ["data-cell"], Ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Vl = ["data-cell"], Rl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Hl = {
|
|
39
39
|
__name: "vue-ui-horizontal-bar",
|
|
40
40
|
props: {
|
|
41
41
|
config: {
|
|
@@ -52,43 +52,43 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectLegend"],
|
|
55
|
-
setup(
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
setup(Ft, { expose: zt, emit: Pt }) {
|
|
56
|
+
Ca((t) => ({
|
|
57
|
+
v48241b92: t.tdo
|
|
58
58
|
}));
|
|
59
|
-
const
|
|
60
|
-
() => import("./PenAndPaper-
|
|
61
|
-
),
|
|
62
|
-
() => import("./UserOptions-
|
|
63
|
-
),
|
|
64
|
-
() => import("./PackageVersion-
|
|
65
|
-
),
|
|
66
|
-
() => import("./BaseDraggableDialog-
|
|
67
|
-
), { vue_ui_vertical_bar:
|
|
59
|
+
const Dt = ae(() => import("./Tooltip-D0pGX8qz.js")), He = ae(() => import("./BaseIcon-CbVDYv89.js")), Bt = ae(
|
|
60
|
+
() => import("./PenAndPaper-CvyKWfNl.js")
|
|
61
|
+
), Nt = ae(
|
|
62
|
+
() => import("./UserOptions-BQO4YFrn.js")
|
|
63
|
+
), Ot = ae(
|
|
64
|
+
() => import("./PackageVersion-Br3DrrFh.js")
|
|
65
|
+
), Et = ae(
|
|
66
|
+
() => import("./BaseDraggableDialog-Z5LfhW87.js")
|
|
67
|
+
), { vue_ui_vertical_bar: It } = Ma(), { isThemeValid: Mt, warnInvalidTheme: Vt } = Ua(), Rt = ka(), C = Ft, pe = d({
|
|
68
68
|
get() {
|
|
69
69
|
return !!C.dataset && C.dataset.length;
|
|
70
70
|
},
|
|
71
71
|
set(t) {
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
}),
|
|
74
|
+
}), F = i(La()), be = i(!1), ge = i(""), Ht = i(null), Xe = i(0), I = i(null), Ue = i(null), ye = i(null), Ge = i(null), We = i(null), je = i(0), me = i(0), Xt = i(null), ne = i(null), Ce = i(null), Ut = i(null), ke = i(null), w = i([]), Gt = i({ none: 0, asc: 1, desc: 2 }), H = i(0), ie = i(!1), re = i(0), ee = i(0), _e = i(null), Wt = Pt, e = i(Le()), jt = d(() => [
|
|
75
75
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
76
76
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
77
77
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
78
78
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
79
79
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
80
80
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
81
|
-
]), { loading:
|
|
82
|
-
...
|
|
81
|
+
]), { loading: Ye, FINAL_DATASET: qe, manualLoading: xe } = Va({
|
|
82
|
+
..._a(C),
|
|
83
83
|
FINAL_CONFIG: e,
|
|
84
84
|
prepareConfig: Le,
|
|
85
85
|
callback: () => {
|
|
86
86
|
Promise.resolve().then(async () => {
|
|
87
|
-
x.value.showTable = e.value.table.show,
|
|
87
|
+
x.value.showTable = e.value.table.show, Jt();
|
|
88
88
|
});
|
|
89
89
|
},
|
|
90
|
-
skeletonDataset:
|
|
91
|
-
skeletonConfig:
|
|
90
|
+
skeletonDataset: jt.value,
|
|
91
|
+
skeletonConfig: Aa({
|
|
92
92
|
defaultConfig: e.value,
|
|
93
93
|
userConfig: {
|
|
94
94
|
useCssAnimation: !1,
|
|
@@ -121,83 +121,83 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
})
|
|
124
|
-
}), { userOptionsVisible: we, setUserOptionsVisibility:
|
|
124
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: Ke, keepUserOptionState: Je } = Wa({ config: e.value }), { svgRef: $e } = ja({
|
|
125
125
|
config: e.value.style.chart.title
|
|
126
126
|
});
|
|
127
127
|
function Le() {
|
|
128
|
-
const t =
|
|
128
|
+
const t = Re({
|
|
129
129
|
userConfig: C.config,
|
|
130
|
-
defaultConfig:
|
|
130
|
+
defaultConfig: It
|
|
131
131
|
});
|
|
132
132
|
let l = {};
|
|
133
133
|
const a = t.theme;
|
|
134
134
|
if (a)
|
|
135
|
-
if (!
|
|
136
|
-
|
|
135
|
+
if (!Mt.value(t))
|
|
136
|
+
Vt(t), l = t;
|
|
137
137
|
else {
|
|
138
|
-
const o =
|
|
139
|
-
userConfig:
|
|
138
|
+
const o = Re({
|
|
139
|
+
userConfig: St[a] || C.config,
|
|
140
140
|
defaultConfig: t
|
|
141
141
|
});
|
|
142
142
|
l = {
|
|
143
|
-
...
|
|
144
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
143
|
+
...Re({ userConfig: C.config, defaultConfig: o }),
|
|
144
|
+
customPalette: t.customPalette.length ? t.customPalette : Ta[a] || Z
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
else
|
|
148
148
|
l = t;
|
|
149
|
-
return C.config &&
|
|
149
|
+
return C.config && Oe(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && Oe(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && Oe(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
|
|
151
|
+
const M = i(e.value.style.chart.width), X = i(e.value.style.chart.height), k = i(e.value.style.chart.layout.bars.gap);
|
|
152
|
+
le(
|
|
153
153
|
() => C.config,
|
|
154
154
|
(t) => {
|
|
155
|
-
|
|
155
|
+
Ye.value || (e.value = Le()), we.value = !e.value.userOptions.showOnChartHover, je.value += 1, me.value += 1, x.value.showTable = e.value.table.show, x.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", x.value.showTooltip = e.value.style.chart.tooltip.show, M.value = e.value.style.chart.width, X.value = e.value.style.chart.height, k.value = e.value.style.chart.layout.bars.gap;
|
|
156
156
|
},
|
|
157
157
|
{ deep: !0 }
|
|
158
|
-
),
|
|
158
|
+
), le(
|
|
159
159
|
() => C.dataset,
|
|
160
160
|
(t) => {
|
|
161
161
|
Array.isArray(t) && t.length > 0 && (xe.value = !1);
|
|
162
162
|
},
|
|
163
163
|
{ deep: !0 }
|
|
164
164
|
);
|
|
165
|
-
const { isPrinting:
|
|
166
|
-
elementId: `vue-ui-vertical-bar_${
|
|
165
|
+
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = Ha({
|
|
166
|
+
elementId: `vue-ui-vertical-bar_${F.value}`,
|
|
167
167
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
168
168
|
options: e.value.userOptions.print
|
|
169
|
-
}),
|
|
170
|
-
function
|
|
169
|
+
}), Yt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = d(() => Sa(e.value.customPalette)), lt = i(null), qt = d(() => e.value.table.responsiveBreakpoint), ce = d(() => !!e.value.debug), Kt = i(0), U = i(null), W = i(null);
|
|
170
|
+
function Jt() {
|
|
171
171
|
if (I.value && (Ee(C.dataset) && (ue({
|
|
172
172
|
componentName: "VueUiVerticalBar",
|
|
173
173
|
type: "dataset",
|
|
174
174
|
debug: ce.value
|
|
175
|
-
}),
|
|
176
|
-
const t =
|
|
177
|
-
const { width: l, height: a } =
|
|
175
|
+
}), pe.value = !1, xe.value = !0), Ee(C.dataset) || (xe.value = e.value.loading), e.value.responsive)) {
|
|
176
|
+
const t = Ea(() => {
|
|
177
|
+
const { width: l, height: a } = Ia({
|
|
178
178
|
chart: I.value,
|
|
179
|
-
title: e.value.style.chart.title.text ?
|
|
179
|
+
title: e.value.style.chart.title.text ? Ue.value : null,
|
|
180
180
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
181
|
-
source:
|
|
181
|
+
source: Ge.value,
|
|
182
182
|
noTitle: We.value
|
|
183
183
|
});
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
Kt.value = a / 3, requestAnimationFrame(async () => {
|
|
185
|
+
X.value = a, M.value = l;
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect()), U.value = new ResizeObserver(t), Ne(() => {
|
|
189
|
+
W.value = I.value?.parentNode, W.value && U.value.observe(W.value);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
xa(() => {
|
|
194
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect());
|
|
195
195
|
});
|
|
196
|
-
const x =
|
|
196
|
+
const x = i({
|
|
197
197
|
showTable: e.value.table.show,
|
|
198
198
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
199
199
|
showTooltip: e.value.style.chart.tooltip.show
|
|
200
|
-
}),
|
|
200
|
+
}), ot = d(() => x.value.sortDesc), z = d(() => (qe.value.forEach((t, l) => {
|
|
201
201
|
!t.value && !t.children && ue({
|
|
202
202
|
componentName: "VueUiVerticalBar",
|
|
203
203
|
type: "datasetAttributeEmpty",
|
|
@@ -219,130 +219,130 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
}), qe.value.map((t, l) => {
|
|
222
|
-
const a = `vertical_parent_${l}_${
|
|
223
|
-
t.value ? t.value : o ? t.children.map((b) => b.value || 0).reduce((b,
|
|
224
|
-
), _ =
|
|
222
|
+
const a = `vertical_parent_${l}_${F.value}`, o = t.children && t.children.length > 0, p = S(
|
|
223
|
+
t.value ? t.value : o ? t.children.map((b) => b.value || 0).reduce((b, P) => b + P, 0) : 0
|
|
224
|
+
), _ = p >= 0 ? 1 : -1;
|
|
225
225
|
return {
|
|
226
226
|
...t,
|
|
227
227
|
id: a,
|
|
228
228
|
absoluteIndex: l,
|
|
229
229
|
shape: "square",
|
|
230
230
|
opacity: w.value.includes(a) ? 0.5 : 1,
|
|
231
|
-
value: Math.abs(
|
|
231
|
+
value: Math.abs(p),
|
|
232
232
|
sign: _,
|
|
233
233
|
hasChildren: o,
|
|
234
234
|
isChild: !1,
|
|
235
|
-
segregate: () =>
|
|
235
|
+
segregate: () => Y(a),
|
|
236
236
|
isSegregated: w.value.includes(a),
|
|
237
|
-
color: Ie(t.color) ||
|
|
237
|
+
color: Ie(t.color) || at.value[l] || Z[l] || Z[l % Z.length],
|
|
238
238
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
239
|
-
ie.value ? () => 0 : (b,
|
|
240
|
-
).map((b,
|
|
239
|
+
ie.value ? () => 0 : (b, P) => ot.value ? P.value - b.value : b.value - P.value
|
|
240
|
+
).map((b, P) => ({
|
|
241
241
|
...b,
|
|
242
|
-
value:
|
|
242
|
+
value: S(Math.abs(b.value)),
|
|
243
243
|
absoluteIndex: l,
|
|
244
244
|
sign: b.value >= 0 ? 1 : -1,
|
|
245
245
|
isChild: !0,
|
|
246
246
|
parentId: a,
|
|
247
247
|
parentName: t.name,
|
|
248
|
-
parentValue:
|
|
248
|
+
parentValue: p,
|
|
249
249
|
parentSign: _,
|
|
250
|
-
id: `vertical_child_${l}_${
|
|
251
|
-
childIndex:
|
|
252
|
-
color: Ie(b.color) || Ie(t.color) ||
|
|
253
|
-
})).map((b,
|
|
250
|
+
id: `vertical_child_${l}_${P}_${F.value}`,
|
|
251
|
+
childIndex: P,
|
|
252
|
+
color: Ie(b.color) || Ie(t.color) || at.value[l] || Z[l] || Z[l % Z.length]
|
|
253
|
+
})).map((b, P) => ({
|
|
254
254
|
...b,
|
|
255
|
-
isFirstChild:
|
|
256
|
-
isLastChild:
|
|
255
|
+
isFirstChild: P === 0,
|
|
256
|
+
isLastChild: P === t.children.length - 1
|
|
257
257
|
}))
|
|
258
258
|
};
|
|
259
259
|
}).toSorted(
|
|
260
|
-
ie.value ? () => 0 : (t, l) =>
|
|
261
|
-
))), j = d(() =>
|
|
260
|
+
ie.value ? () => 0 : (t, l) => ot.value ? l.value - t.value : t.value - l.value
|
|
261
|
+
))), j = d(() => z.value.filter(
|
|
262
262
|
(t) => !w.value.includes(t.id)
|
|
263
|
-
)), $ = d(() => j.value.flatMap((t) => t.hasChildren ? t.children : t)),
|
|
263
|
+
)), $ = d(() => j.value.flatMap((t) => t.hasChildren ? t.children : t)), Qt = d(() => z.value.flatMap((t) => t.hasChildren ? t.children : t)), nt = d(() => j.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0)), rt = d(() => ({
|
|
264
264
|
cy: "vertical-bar-div-legend",
|
|
265
265
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
266
266
|
color: e.value.style.chart.legend.color,
|
|
267
267
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
268
268
|
paddingBottom: 12,
|
|
269
269
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
270
|
-
})),
|
|
270
|
+
})), L = d(() => e.value.style.chart.layout.bars.parentLabels.show ? e.value.style.chart.layout.bars.parentLabels.fontSize * 3 + e.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), A = d(() => {
|
|
271
271
|
const t = [];
|
|
272
272
|
let l = 0;
|
|
273
273
|
return $.value.forEach((a, o) => {
|
|
274
274
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show && (l += 1), t[o] = l;
|
|
275
275
|
}), t;
|
|
276
|
-
}),
|
|
277
|
-
const l = Math.max(0, ...
|
|
278
|
-
return (
|
|
276
|
+
}), v = d(() => {
|
|
277
|
+
const l = Math.max(0, ...A.value) * L.value;
|
|
278
|
+
return (X.value - 24 - (nt.value - 1) * k.value - l) / nt.value;
|
|
279
279
|
}), R = d(() => ({
|
|
280
|
-
width:
|
|
281
|
-
height:
|
|
280
|
+
width: M.value,
|
|
281
|
+
height: X.value,
|
|
282
282
|
padding: {
|
|
283
283
|
top: 12,
|
|
284
284
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
285
285
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
286
286
|
bottom: 12
|
|
287
287
|
}
|
|
288
|
-
})), Ae =
|
|
289
|
-
function
|
|
290
|
-
|
|
288
|
+
})), Ae = i(0);
|
|
289
|
+
function ut() {
|
|
290
|
+
Ne(() => {
|
|
291
291
|
if (!ke.value) {
|
|
292
292
|
Ae.value = 0;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
const l = Array.from(ke.value.querySelectorAll("text")).reduce((a, o) => {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
296
|
+
const p = o.getBBox?.().width ?? o.getComputedTextLength();
|
|
297
|
+
return p > a ? p : a;
|
|
298
298
|
}, 0);
|
|
299
299
|
Ae.value = l + 12;
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
le(
|
|
303
303
|
() => [
|
|
304
304
|
$.value,
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
M.value,
|
|
306
|
+
X.value,
|
|
307
307
|
e.value.style.chart.layout.bars.nameLabels,
|
|
308
308
|
e.value.style.chart.layout.bars.offsetX
|
|
309
309
|
],
|
|
310
|
-
() =>
|
|
310
|
+
() => ut(),
|
|
311
311
|
{ deep: !0 }
|
|
312
|
-
),
|
|
313
|
-
|
|
312
|
+
), Be(() => {
|
|
313
|
+
ut();
|
|
314
314
|
});
|
|
315
315
|
function de() {
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
Ne(() => {
|
|
317
|
+
re.value = 0, ee.value = 0, requestAnimationFrame(() => {
|
|
318
318
|
if (!_e.value) {
|
|
319
|
-
|
|
319
|
+
re.value = 0, ee.value = 0;
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
const t = Array.from(
|
|
323
323
|
_e.value.querySelectorAll("text")
|
|
324
324
|
);
|
|
325
325
|
if (!t.length) {
|
|
326
|
-
|
|
326
|
+
re.value = 0, ee.value = 0;
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
329
|
let l = 1 / 0, a = 0;
|
|
330
|
-
t.forEach((
|
|
331
|
-
const
|
|
332
|
-
|
|
330
|
+
t.forEach((ma) => {
|
|
331
|
+
const De = ma.getBBox(), gt = De.x, yt = De.x + De.width;
|
|
332
|
+
gt < l && (l = gt), yt > a && (a = yt);
|
|
333
333
|
});
|
|
334
|
-
const o = 0,
|
|
335
|
-
ee.value = b,
|
|
334
|
+
const o = 0, p = M.value, _ = 24, b = Math.max(0, o - l + _), P = Math.max(0, a - p + _);
|
|
335
|
+
ee.value = b, re.value = P;
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
() => [$.value,
|
|
339
|
+
le(w, () => de(), { deep: !0 }), le(
|
|
340
|
+
() => [$.value, M.value, X.value],
|
|
341
341
|
() => de(),
|
|
342
342
|
{ deep: !0 }
|
|
343
|
-
),
|
|
343
|
+
), Be(() => de());
|
|
344
344
|
const c = d(() => {
|
|
345
|
-
const t = Ae.value + Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX) + ee.value + e.value.style.chart.layout.bars.offsetX, l = R.value.width - R.value.padding.right, a = Math.max(0, l - t -
|
|
345
|
+
const t = Ae.value + Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX) + ee.value + e.value.style.chart.layout.bars.offsetX, l = R.value.width - R.value.padding.right, a = Math.max(0, l - t - re.value - ee.value - e.value.style.chart.layout.bars.offsetX);
|
|
346
346
|
return {
|
|
347
347
|
top: R.value.padding.top,
|
|
348
348
|
bottom: R.value.padding.top + R.value.height,
|
|
@@ -352,54 +352,54 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
352
352
|
fullHeight: R.value.padding.top + R.value.padding.bottom + R.value.height
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
|
-
async function
|
|
355
|
+
async function Y(t) {
|
|
356
356
|
if (w.value.includes(t))
|
|
357
357
|
w.value = w.value.filter((l) => l !== t);
|
|
358
358
|
else {
|
|
359
|
-
if (w.value.length ===
|
|
359
|
+
if (w.value.length === z.value.length - 1) return;
|
|
360
360
|
w.value.push(t);
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
Wt("selectLegend", j.value), de();
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (!
|
|
364
|
+
function st(t) {
|
|
365
|
+
if (!z.value.length)
|
|
366
366
|
return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
|
|
367
|
-
const l =
|
|
367
|
+
const l = z.value.find((a) => a.name === t);
|
|
368
368
|
return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
const l =
|
|
372
|
-
l !== null && w.value.includes(l.id) &&
|
|
370
|
+
function Zt(t) {
|
|
371
|
+
const l = st(t);
|
|
372
|
+
l !== null && w.value.includes(l.id) && Y(l.id);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
const l =
|
|
376
|
-
l !== null && (w.value.includes(l.id) ||
|
|
374
|
+
function ea(t) {
|
|
375
|
+
const l = st(t);
|
|
376
|
+
l !== null && (w.value.includes(l.id) || Y(l.id));
|
|
377
377
|
}
|
|
378
|
-
const
|
|
379
|
-
function
|
|
380
|
-
return l ?
|
|
381
|
-
v:
|
|
378
|
+
const V = d(() => j.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
379
|
+
function it(t, l = !1, a = 0) {
|
|
380
|
+
return l ? G({
|
|
381
|
+
v: S(Math.abs(t) / V.value * 100),
|
|
382
382
|
s: "%",
|
|
383
383
|
r: a
|
|
384
|
-
}) : Math.abs(t) /
|
|
384
|
+
}) : Math.abs(t) / V.value;
|
|
385
385
|
}
|
|
386
|
-
const
|
|
386
|
+
const q = d(() => $.value.map((t) => t.sign).includes(-1)), ta = d(() => Math.max(
|
|
387
387
|
...j.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)
|
|
388
388
|
));
|
|
389
|
-
function
|
|
390
|
-
const l = t /
|
|
391
|
-
return c.value.width / (
|
|
389
|
+
function T(t) {
|
|
390
|
+
const l = t / ta.value;
|
|
391
|
+
return c.value.width / (q.value ? 2 : 1) * l;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return
|
|
393
|
+
function aa(t) {
|
|
394
|
+
return T(t) + c.value.left;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function te(t, l) {
|
|
397
397
|
const a = j.value.find((b) => b.id === t.parentId);
|
|
398
398
|
return {
|
|
399
|
-
y: c.value.top + (k.value +
|
|
399
|
+
y: c.value.top + (k.value + v.value) * l + A.value[l] * L.value - L.value + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
400
400
|
name: a.name,
|
|
401
401
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
402
|
-
percentageToTotal: isNaN(a.value /
|
|
402
|
+
percentageToTotal: isNaN(a.value / V.value) ? "" : it(
|
|
403
403
|
a.value,
|
|
404
404
|
!0,
|
|
405
405
|
e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
|
|
@@ -407,88 +407,88 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
407
407
|
sign: a.sign
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function la() {
|
|
411
411
|
return j.value;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
return
|
|
413
|
+
function ct(t, l) {
|
|
414
|
+
return te(t, l).name;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
const a =
|
|
418
|
-
return
|
|
416
|
+
function oa(t, l) {
|
|
417
|
+
const a = te(t, l);
|
|
418
|
+
return dt(a.value, a, l, t.parentSign || t.sign);
|
|
419
419
|
}
|
|
420
|
-
const Te =
|
|
421
|
-
function
|
|
420
|
+
const Te = i(null), Se = i(null);
|
|
421
|
+
function na({ datapoint: t, seriesIndex: l }) {
|
|
422
422
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
424
|
+
function ra({ datapoint: t, seriesIndex: l }) {
|
|
425
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Ht.value = null, be.value = !1, Te.value = null;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function ua(t, l) {
|
|
428
428
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
429
429
|
datapoint: t,
|
|
430
430
|
seriesIndex: l,
|
|
431
|
-
series:
|
|
431
|
+
series: z.value,
|
|
432
432
|
config: e.value
|
|
433
433
|
}, be.value = !0, Te.value = t.id;
|
|
434
434
|
let a = "";
|
|
435
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
436
|
-
|
|
435
|
+
const o = t.isChild ? t.parentName : t.name, p = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
|
|
436
|
+
Na(_) && Oa(
|
|
437
437
|
() => _({
|
|
438
438
|
datapoint: t,
|
|
439
|
-
series:
|
|
439
|
+
series: z.value,
|
|
440
440
|
config: e.value,
|
|
441
441
|
seriesIndex: l
|
|
442
442
|
})
|
|
443
443
|
) ? ge.value = _({
|
|
444
444
|
datapoint: t,
|
|
445
|
-
series:
|
|
445
|
+
series: z.value,
|
|
446
446
|
config: e.value,
|
|
447
447
|
seriesIndex: l
|
|
448
448
|
}) : (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;">
|
|
449
|
-
<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}"/>${
|
|
450
|
-
${
|
|
449
|
+
<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}"/>${Rt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${F.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
450
|
+
${p ? `<div>${p}</div>` : ""}
|
|
451
451
|
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${se(
|
|
452
452
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
453
453
|
t.sign === 1 ? t.value : -t.value,
|
|
454
|
-
|
|
454
|
+
G({
|
|
455
455
|
p: e.value.style.chart.tooltip.prefix,
|
|
456
456
|
v: t.sign === 1 ? t.value : -t.value,
|
|
457
457
|
s: e.value.style.chart.tooltip.suffix,
|
|
458
458
|
r: e.value.style.chart.tooltip.roundingValue
|
|
459
459
|
}),
|
|
460
460
|
{ datapoint: t, seriesIndex: l }
|
|
461
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
462
|
-
v: Math.abs(t.value) /
|
|
461
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${G({
|
|
462
|
+
v: Math.abs(t.value) / V.value * 100,
|
|
463
463
|
s: "%",
|
|
464
464
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
465
|
-
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
465
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${G({
|
|
466
466
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
467
467
|
s: "%",
|
|
468
468
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
469
469
|
})}</b></div>`)), ge.value = `<div style="text-align:left">${a}</div>`);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function dt(t, l, a, o) {
|
|
472
472
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
473
473
|
return "";
|
|
474
|
-
const
|
|
474
|
+
const p = se(
|
|
475
475
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
476
|
-
|
|
477
|
-
|
|
476
|
+
S(o === -1 && t >= 0 ? -t : t),
|
|
477
|
+
G({
|
|
478
478
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
479
|
-
v:
|
|
479
|
+
v: S(o === -1 && t >= 0 ? -t : t),
|
|
480
480
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
481
481
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
482
482
|
}),
|
|
483
483
|
{ datapoint: l, seriesIndex: a }
|
|
484
|
-
), _ = `(${
|
|
484
|
+
), _ = `(${it(
|
|
485
485
|
t,
|
|
486
486
|
!0,
|
|
487
487
|
e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
|
|
488
488
|
)})`;
|
|
489
|
-
return `${
|
|
489
|
+
return `${p}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${_}` : ""}`;
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const D = d(() => {
|
|
492
492
|
const t = [
|
|
493
493
|
e.value.translations.parentName,
|
|
494
494
|
e.value.translations.value,
|
|
@@ -501,11 +501,11 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
501
501
|
color: a.color,
|
|
502
502
|
parentName: a.parentName,
|
|
503
503
|
parentValue: a.parentValue,
|
|
504
|
-
percentageToTotal: a.parentValue /
|
|
504
|
+
percentageToTotal: a.parentValue / V.value,
|
|
505
505
|
childName: a.name,
|
|
506
506
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
507
507
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
508
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
508
|
+
childPercentageToTotal: Math.abs(a.value) / V.value
|
|
509
509
|
} : {
|
|
510
510
|
color: "",
|
|
511
511
|
parentName: "",
|
|
@@ -514,12 +514,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
514
514
|
childName: a.name,
|
|
515
515
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
516
516
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
517
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
517
|
+
childPercentageToTotal: Math.abs(a.value) / V.value
|
|
518
518
|
} : {
|
|
519
519
|
color: a.color,
|
|
520
520
|
parentName: a.name,
|
|
521
521
|
parentValue: a.sign === 1 ? a.value : -a.value,
|
|
522
|
-
percentageToTotal: Math.abs(a.value) /
|
|
522
|
+
percentageToTotal: Math.abs(a.value) / V.value,
|
|
523
523
|
childName: "",
|
|
524
524
|
childValue: "",
|
|
525
525
|
childPercentageToParent: "",
|
|
@@ -532,7 +532,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
532
532
|
[e.value.style.chart.title.text],
|
|
533
533
|
[e.value.style.chart.title.subtitle.text],
|
|
534
534
|
[""]
|
|
535
|
-
], a =
|
|
535
|
+
], a = D.value.head, o = D.value.body.map((b) => [
|
|
536
536
|
b.parentName,
|
|
537
537
|
b.parentValue,
|
|
538
538
|
b.percentageToTotal,
|
|
@@ -540,20 +540,20 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
540
540
|
b.childValue,
|
|
541
541
|
b.childPercentageToParent,
|
|
542
542
|
b.childPercentageToTotal
|
|
543
|
-
]),
|
|
544
|
-
t ? t(_) :
|
|
543
|
+
]), p = l.concat([a]).concat(o), _ = Da(p);
|
|
544
|
+
t ? t(_) : Ba({
|
|
545
545
|
csvContent: _,
|
|
546
546
|
title: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
|
-
const K =
|
|
550
|
-
function
|
|
551
|
-
K.value = t,
|
|
549
|
+
const K = i(!1);
|
|
550
|
+
function vt(t) {
|
|
551
|
+
K.value = t, Xe.value += 1;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ht() {
|
|
554
554
|
x.value.showTable = !x.value.showTable;
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
Be(() => {
|
|
557
557
|
["none", "asc", "desc"].includes(
|
|
558
558
|
e.value.style.chart.layout.bars.sort
|
|
559
559
|
) || ue({
|
|
@@ -561,31 +561,31 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
561
561
|
type: "attributeWrongValue",
|
|
562
562
|
property: "style.chart.layout.bars.sort",
|
|
563
563
|
key: e.value.style.chart.layout.bars.sort
|
|
564
|
-
}),
|
|
564
|
+
}), H.value = Gt.value[e.value.style.chart.layout.bars.sort], x.value.sortDesc = H.value === 2, ie.value = H.value === 0;
|
|
565
565
|
});
|
|
566
|
-
function
|
|
567
|
-
|
|
566
|
+
function sa() {
|
|
567
|
+
H.value += 1, H.value > 2 && (H.value = 0);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
569
|
+
function ft() {
|
|
570
|
+
sa(), x.value.sortDesc = H.value === 2, ie.value = H.value === 0;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function pt() {
|
|
573
573
|
x.value.showTooltip = !x.value.showTooltip;
|
|
574
574
|
}
|
|
575
|
-
const ve =
|
|
576
|
-
function
|
|
575
|
+
const ve = i(!1);
|
|
576
|
+
function ze() {
|
|
577
577
|
ve.value = !ve.value;
|
|
578
578
|
}
|
|
579
|
-
async function
|
|
579
|
+
async function ia({ scale: t = 2 } = {}) {
|
|
580
580
|
if (!I.value) return;
|
|
581
|
-
const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri:
|
|
581
|
+
const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: p, base64: _ } = await Ka({
|
|
582
582
|
domElement: I.value,
|
|
583
583
|
base64: !0,
|
|
584
584
|
img: !0,
|
|
585
585
|
scale: t
|
|
586
586
|
});
|
|
587
587
|
return {
|
|
588
|
-
imageUri:
|
|
588
|
+
imageUri: p,
|
|
589
589
|
base64: _,
|
|
590
590
|
title: e.value.style.chart.title.text,
|
|
591
591
|
width: l,
|
|
@@ -596,7 +596,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
596
596
|
const he = d(() => {
|
|
597
597
|
const t = e.value.table.useDialog && !e.value.table.show, l = x.value.showTable;
|
|
598
598
|
return {
|
|
599
|
-
component: t ?
|
|
599
|
+
component: t ? Et : Ya,
|
|
600
600
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
601
601
|
props: t ? {
|
|
602
602
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -623,23 +623,23 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
});
|
|
626
|
-
|
|
626
|
+
le(
|
|
627
627
|
() => x.value.showTable,
|
|
628
628
|
(t) => {
|
|
629
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
629
|
+
e.value.table.show || (t && e.value.table.useDialog && ne.value ? ne.value.open() : "close" in ne.value && ne.value.close());
|
|
630
630
|
}
|
|
631
631
|
);
|
|
632
|
-
const { isResponsive:
|
|
633
|
-
function
|
|
632
|
+
const { isResponsive: ca } = Ga(lt, qt);
|
|
633
|
+
function Pe() {
|
|
634
634
|
x.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
|
|
635
635
|
}
|
|
636
|
-
const
|
|
636
|
+
const da = d(() => z.value.map((t, l) => ({
|
|
637
637
|
...t,
|
|
638
638
|
shape: "square",
|
|
639
639
|
display: `${t.name}: ${se(
|
|
640
640
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
641
641
|
t.value,
|
|
642
|
-
|
|
642
|
+
G({
|
|
643
643
|
p: e.value.style.chart.legend.prefix,
|
|
644
644
|
v: t.value,
|
|
645
645
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -647,79 +647,79 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
647
647
|
}),
|
|
648
648
|
{ datapoint: t, seriesIndex: l }
|
|
649
649
|
)}`
|
|
650
|
-
}))),
|
|
650
|
+
}))), va = d(() => e.value.style.chart.backgroundColor), ha = d(() => e.value.style.chart.legend), fa = d(() => e.value.style.chart.title), pa = d(() => da.value.map((t) => ({
|
|
651
651
|
...t,
|
|
652
652
|
name: t.display
|
|
653
|
-
}))), { exportSvg:
|
|
653
|
+
}))), { exportSvg: ba, getSvg: ga } = Xa({
|
|
654
654
|
svg: $e,
|
|
655
|
-
title:
|
|
656
|
-
legend:
|
|
655
|
+
title: fa,
|
|
656
|
+
legend: ha,
|
|
657
657
|
legendItems: pa,
|
|
658
|
-
backgroundColor:
|
|
658
|
+
backgroundColor: va
|
|
659
659
|
});
|
|
660
|
-
async function
|
|
660
|
+
async function bt({ isCb: t }) {
|
|
661
661
|
if (t) {
|
|
662
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
663
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
662
|
+
const { blob: l, url: a, text: o, dataUrl: p } = await ga();
|
|
663
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: p });
|
|
664
664
|
} else
|
|
665
|
-
|
|
665
|
+
ba();
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function ya() {
|
|
668
668
|
console.warn("[autoSize]: this legacy method can be safely removed as it ha no impact.");
|
|
669
669
|
}
|
|
670
|
-
return
|
|
671
|
-
autoSize:
|
|
672
|
-
getData:
|
|
673
|
-
getImage:
|
|
674
|
-
generatePdf:
|
|
670
|
+
return zt({
|
|
671
|
+
autoSize: ya,
|
|
672
|
+
getData: la,
|
|
673
|
+
getImage: ia,
|
|
674
|
+
generatePdf: et,
|
|
675
675
|
generateCsv: Fe,
|
|
676
|
-
generateImage:
|
|
677
|
-
generateSvg:
|
|
678
|
-
hideSeries:
|
|
679
|
-
showSeries:
|
|
680
|
-
toggleTable:
|
|
681
|
-
toggleSort:
|
|
682
|
-
toggleTooltip:
|
|
683
|
-
toggleAnnotator:
|
|
684
|
-
toggleFullscreen:
|
|
676
|
+
generateImage: tt,
|
|
677
|
+
generateSvg: bt,
|
|
678
|
+
hideSeries: ea,
|
|
679
|
+
showSeries: Zt,
|
|
680
|
+
toggleTable: ht,
|
|
681
|
+
toggleSort: ft,
|
|
682
|
+
toggleTooltip: pt,
|
|
683
|
+
toggleAnnotator: ze,
|
|
684
|
+
toggleFullscreen: vt
|
|
685
685
|
}), (t, l) => (n(), u("div", {
|
|
686
686
|
class: J(`vue-data-ui-component vue-ui-vertical-bar ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
687
687
|
ref_key: "verticalBarChart",
|
|
688
688
|
ref: I,
|
|
689
|
-
id: `vue-ui-vertical-bar_${
|
|
689
|
+
id: `vue-ui-vertical-bar_${F.value}`,
|
|
690
690
|
style: h(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};height:100%`),
|
|
691
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
692
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
691
|
+
onMouseenter: l[3] || (l[3] = () => s(Ke)(!0)),
|
|
692
|
+
onMouseleave: l[4] || (l[4] = () => s(Ke)(!1))
|
|
693
693
|
}, [
|
|
694
|
-
e.value.userOptions.buttons.annotator ? (n(), Q(
|
|
694
|
+
e.value.userOptions.buttons.annotator ? (n(), Q(s(Bt), {
|
|
695
695
|
key: 0,
|
|
696
|
-
svgRef:
|
|
696
|
+
svgRef: s($e),
|
|
697
697
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
698
698
|
color: e.value.style.chart.color,
|
|
699
699
|
active: ve.value,
|
|
700
|
-
onClose:
|
|
700
|
+
onClose: ze
|
|
701
701
|
}, {
|
|
702
|
-
"annotator-action-close":
|
|
702
|
+
"annotator-action-close": f(() => [
|
|
703
703
|
g(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
704
704
|
]),
|
|
705
|
-
"annotator-action-color":
|
|
706
|
-
g(t.$slots, "annotator-action-color", N(
|
|
705
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
706
|
+
g(t.$slots, "annotator-action-color", B(N({ color: a })), void 0, !0)
|
|
707
707
|
]),
|
|
708
|
-
"annotator-action-draw":
|
|
709
|
-
g(t.$slots, "annotator-action-draw", N(
|
|
708
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
709
|
+
g(t.$slots, "annotator-action-draw", B(N({ mode: a })), void 0, !0)
|
|
710
710
|
]),
|
|
711
|
-
"annotator-action-undo":
|
|
712
|
-
g(t.$slots, "annotator-action-undo", N(
|
|
711
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
712
|
+
g(t.$slots, "annotator-action-undo", B(N({ disabled: a })), void 0, !0)
|
|
713
713
|
]),
|
|
714
|
-
"annotator-action-redo":
|
|
715
|
-
g(t.$slots, "annotator-action-redo", N(
|
|
714
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
715
|
+
g(t.$slots, "annotator-action-redo", B(N({ disabled: a })), void 0, !0)
|
|
716
716
|
]),
|
|
717
|
-
"annotator-action-delete":
|
|
718
|
-
g(t.$slots, "annotator-action-delete", N(
|
|
717
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
718
|
+
g(t.$slots, "annotator-action-delete", B(N({ disabled: a })), void 0, !0)
|
|
719
719
|
]),
|
|
720
720
|
_: 3
|
|
721
721
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
722
|
-
|
|
722
|
+
Yt.value ? (n(), u("div", {
|
|
723
723
|
key: 1,
|
|
724
724
|
ref_key: "noTitle",
|
|
725
725
|
ref: We,
|
|
@@ -729,11 +729,11 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
729
729
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
730
730
|
key: 2,
|
|
731
731
|
ref_key: "chartTitle",
|
|
732
|
-
ref:
|
|
732
|
+
ref: Ue,
|
|
733
733
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
734
734
|
}, [
|
|
735
|
-
(n(), Q(
|
|
736
|
-
key: `title_${
|
|
735
|
+
(n(), Q(qa, {
|
|
736
|
+
key: `title_${je.value}`,
|
|
737
737
|
config: {
|
|
738
738
|
title: {
|
|
739
739
|
cy: "vertical-bar-div-title",
|
|
@@ -746,15 +746,15 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
746
746
|
}
|
|
747
747
|
}, null, 8, ["config"]))
|
|
748
748
|
], 512)) : y("", !0),
|
|
749
|
-
e.value.userOptions.show &&
|
|
749
|
+
e.value.userOptions.show && pe.value && (s(Je) || s(we)) ? (n(), Q(s(Nt), {
|
|
750
750
|
ref_key: "userOptionsRef",
|
|
751
751
|
ref: Ce,
|
|
752
|
-
key: `user_options_${
|
|
752
|
+
key: `user_options_${Xe.value}`,
|
|
753
753
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
754
754
|
color: e.value.style.chart.color,
|
|
755
|
-
isImaging:
|
|
756
|
-
isPrinting:
|
|
757
|
-
uid:
|
|
755
|
+
isImaging: s(Ze),
|
|
756
|
+
isPrinting: s(Qe),
|
|
757
|
+
uid: F.value,
|
|
758
758
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
759
759
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
760
760
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -773,93 +773,93 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
773
773
|
callbacks: e.value.userOptions.callbacks,
|
|
774
774
|
printScale: e.value.userOptions.print.scale,
|
|
775
775
|
tableDialog: e.value.table.useDialog,
|
|
776
|
-
onToggleFullscreen:
|
|
777
|
-
onGeneratePdf:
|
|
776
|
+
onToggleFullscreen: vt,
|
|
777
|
+
onGeneratePdf: s(et),
|
|
778
778
|
onGenerateCsv: Fe,
|
|
779
|
-
onGenerateImage:
|
|
780
|
-
onGenerateSvg:
|
|
781
|
-
onToggleTable:
|
|
782
|
-
onToggleSort:
|
|
783
|
-
onToggleTooltip:
|
|
784
|
-
onToggleAnnotator:
|
|
779
|
+
onGenerateImage: s(tt),
|
|
780
|
+
onGenerateSvg: bt,
|
|
781
|
+
onToggleTable: ht,
|
|
782
|
+
onToggleSort: ft,
|
|
783
|
+
onToggleTooltip: pt,
|
|
784
|
+
onToggleAnnotator: ze,
|
|
785
785
|
style: h({
|
|
786
|
-
visibility:
|
|
786
|
+
visibility: s(Je) ? s(we) ? "visible" : "hidden" : "visible"
|
|
787
787
|
})
|
|
788
|
-
},
|
|
788
|
+
}, fe({ _: 2 }, [
|
|
789
789
|
t.$slots.menuIcon ? {
|
|
790
790
|
name: "menuIcon",
|
|
791
|
-
fn:
|
|
792
|
-
g(t.$slots, "menuIcon", N(
|
|
791
|
+
fn: f(({ isOpen: a, color: o }) => [
|
|
792
|
+
g(t.$slots, "menuIcon", B(N({ isOpen: a, color: o })), void 0, !0)
|
|
793
793
|
]),
|
|
794
794
|
key: "0"
|
|
795
795
|
} : void 0,
|
|
796
796
|
t.$slots.optionTooltip ? {
|
|
797
797
|
name: "optionTooltip",
|
|
798
|
-
fn:
|
|
798
|
+
fn: f(() => [
|
|
799
799
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
800
800
|
]),
|
|
801
801
|
key: "1"
|
|
802
802
|
} : void 0,
|
|
803
803
|
t.$slots.optionPdf ? {
|
|
804
804
|
name: "optionPdf",
|
|
805
|
-
fn:
|
|
805
|
+
fn: f(() => [
|
|
806
806
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
807
807
|
]),
|
|
808
808
|
key: "2"
|
|
809
809
|
} : void 0,
|
|
810
810
|
t.$slots.optionCsv ? {
|
|
811
811
|
name: "optionCsv",
|
|
812
|
-
fn:
|
|
812
|
+
fn: f(() => [
|
|
813
813
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
814
814
|
]),
|
|
815
815
|
key: "3"
|
|
816
816
|
} : void 0,
|
|
817
817
|
t.$slots.optionImg ? {
|
|
818
818
|
name: "optionImg",
|
|
819
|
-
fn:
|
|
819
|
+
fn: f(() => [
|
|
820
820
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
821
821
|
]),
|
|
822
822
|
key: "4"
|
|
823
823
|
} : void 0,
|
|
824
824
|
t.$slots.optionSvg ? {
|
|
825
825
|
name: "optionSvg",
|
|
826
|
-
fn:
|
|
826
|
+
fn: f(() => [
|
|
827
827
|
g(t.$slots, "optionSvg", {}, void 0, !0)
|
|
828
828
|
]),
|
|
829
829
|
key: "5"
|
|
830
830
|
} : void 0,
|
|
831
831
|
t.$slots.optionTable ? {
|
|
832
832
|
name: "optionTable",
|
|
833
|
-
fn:
|
|
833
|
+
fn: f(() => [
|
|
834
834
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
835
835
|
]),
|
|
836
836
|
key: "6"
|
|
837
837
|
} : void 0,
|
|
838
838
|
t.$slots.optionLabels ? {
|
|
839
839
|
name: "optionLabels",
|
|
840
|
-
fn:
|
|
840
|
+
fn: f(() => [
|
|
841
841
|
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
842
842
|
]),
|
|
843
843
|
key: "7"
|
|
844
844
|
} : void 0,
|
|
845
845
|
t.$slots.optionSort ? {
|
|
846
846
|
name: "optionSort",
|
|
847
|
-
fn:
|
|
847
|
+
fn: f(() => [
|
|
848
848
|
g(t.$slots, "optionSort", {}, void 0, !0)
|
|
849
849
|
]),
|
|
850
850
|
key: "8"
|
|
851
851
|
} : void 0,
|
|
852
852
|
t.$slots.optionFullscreen ? {
|
|
853
853
|
name: "optionFullscreen",
|
|
854
|
-
fn:
|
|
855
|
-
g(t.$slots, "optionFullscreen", N(
|
|
854
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
855
|
+
g(t.$slots, "optionFullscreen", B(N({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
856
856
|
]),
|
|
857
857
|
key: "9"
|
|
858
858
|
} : void 0,
|
|
859
859
|
t.$slots.optionAnnotator ? {
|
|
860
860
|
name: "optionAnnotator",
|
|
861
|
-
fn:
|
|
862
|
-
g(t.$slots, "optionAnnotator", N(
|
|
861
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
862
|
+
g(t.$slots, "optionAnnotator", B(N({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
863
863
|
]),
|
|
864
864
|
key: "10"
|
|
865
865
|
} : void 0
|
|
@@ -869,39 +869,39 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
869
869
|
ref_key: "chartLegend",
|
|
870
870
|
ref: ye
|
|
871
871
|
}, [
|
|
872
|
-
(n(), Q(
|
|
872
|
+
(n(), Q(kt, {
|
|
873
873
|
key: `legend_top_${me.value}`,
|
|
874
|
-
legendSet:
|
|
875
|
-
config:
|
|
876
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
877
|
-
},
|
|
878
|
-
item:
|
|
874
|
+
legendSet: z.value,
|
|
875
|
+
config: rt.value,
|
|
876
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Y(a.id))
|
|
877
|
+
}, fe({
|
|
878
|
+
item: f(({ legend: a, index: o }) => [
|
|
879
879
|
r("div", {
|
|
880
|
-
onClick: (
|
|
880
|
+
onClick: (p) => Y(a.id),
|
|
881
881
|
style: h(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
882
|
-
},
|
|
882
|
+
}, m(a.name) + ": " + m(s(se)(
|
|
883
883
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
884
884
|
a.value,
|
|
885
|
-
|
|
885
|
+
s(G)({
|
|
886
886
|
p: e.value.style.chart.legend.prefix,
|
|
887
887
|
v: a.value,
|
|
888
888
|
s: e.value.style.chart.legend.suffix,
|
|
889
889
|
r: e.value.style.chart.legend.roundingValue
|
|
890
890
|
}),
|
|
891
891
|
{ datapoint: a, seriesIndex: o }
|
|
892
|
-
)), 13,
|
|
892
|
+
)), 13, Za)
|
|
893
893
|
]),
|
|
894
894
|
_: 2
|
|
895
895
|
}, [
|
|
896
896
|
t.$slots.pattern ? {
|
|
897
897
|
name: "legend-pattern",
|
|
898
|
-
fn:
|
|
899
|
-
|
|
898
|
+
fn: f(({ legend: a, index: o }) => [
|
|
899
|
+
oe(_t, {
|
|
900
900
|
shape: a.shape,
|
|
901
901
|
radius: 30,
|
|
902
902
|
stroke: "none",
|
|
903
903
|
plot: { x: 30, y: 30 },
|
|
904
|
-
fill: `url(#pattern_${
|
|
904
|
+
fill: `url(#pattern_${F.value}_${o})`
|
|
905
905
|
}, null, 8, ["shape", "fill"])
|
|
906
906
|
]),
|
|
907
907
|
key: "0"
|
|
@@ -911,85 +911,85 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
911
911
|
(n(), u("svg", {
|
|
912
912
|
ref_key: "svgRef",
|
|
913
913
|
ref: $e,
|
|
914
|
-
xmlns:
|
|
914
|
+
xmlns: s(Fa),
|
|
915
915
|
class: J({
|
|
916
916
|
"vue-data-ui-fullscreen--on": K.value,
|
|
917
917
|
"vue-data-ui-fulscreen--off": !K.value
|
|
918
918
|
}),
|
|
919
|
-
viewBox: `0 0 ${
|
|
919
|
+
viewBox: `0 0 ${M.value} ${X.value}`,
|
|
920
920
|
style: h(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
921
921
|
}, [
|
|
922
922
|
r("g", {
|
|
923
923
|
ref_key: "G",
|
|
924
|
-
ref:
|
|
924
|
+
ref: Xt,
|
|
925
925
|
class: "vue-data-ui-g"
|
|
926
926
|
}, [
|
|
927
|
-
|
|
927
|
+
oe(s(Ot)),
|
|
928
928
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
929
929
|
key: 0,
|
|
930
930
|
x: 0,
|
|
931
931
|
y: 0,
|
|
932
|
-
width:
|
|
933
|
-
height:
|
|
932
|
+
width: M.value,
|
|
933
|
+
height: X.value,
|
|
934
934
|
style: {
|
|
935
935
|
pointerEvents: "none"
|
|
936
936
|
}
|
|
937
937
|
}, [
|
|
938
938
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
939
|
-
], 8,
|
|
940
|
-
(n(!0), u(
|
|
939
|
+
], 8, tl)) : y("", !0),
|
|
940
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("linearGradient", {
|
|
941
941
|
x1: "0%",
|
|
942
942
|
y1: "0%",
|
|
943
943
|
x2: "100%",
|
|
944
944
|
y2: "0%",
|
|
945
|
-
id: `vertical_bar_gradient_${
|
|
945
|
+
id: `vertical_bar_gradient_${F.value}_${o}`
|
|
946
946
|
}, [
|
|
947
947
|
r("stop", {
|
|
948
948
|
offset: "0%",
|
|
949
949
|
"stop-color": a.color
|
|
950
|
-
}, null, 8,
|
|
950
|
+
}, null, 8, ll),
|
|
951
951
|
r("stop", {
|
|
952
952
|
offset: "100%",
|
|
953
|
-
"stop-color":
|
|
954
|
-
|
|
953
|
+
"stop-color": s(Me)(
|
|
954
|
+
s(za)(a.color, 0.03),
|
|
955
955
|
100 - e.value.style.chart.layout.bars.gradientIntensity
|
|
956
956
|
)
|
|
957
|
-
}, null, 8,
|
|
958
|
-
], 8,
|
|
959
|
-
t.$slots.pattern ? (n(), u("g",
|
|
960
|
-
(n(!0), u(
|
|
961
|
-
g(t.$slots, "pattern",
|
|
957
|
+
}, null, 8, ol)
|
|
958
|
+
], 8, al))), 256)),
|
|
959
|
+
t.$slots.pattern ? (n(), u("g", nl, [
|
|
960
|
+
(n(!0), u(O, null, E($.value, (a) => (n(), u("defs", null, [
|
|
961
|
+
g(t.$slots, "pattern", mt({ ref_for: !0 }, {
|
|
962
962
|
seriesIndex: a.absoluteIndex,
|
|
963
|
-
patternId: `pattern_${
|
|
963
|
+
patternId: `pattern_${F.value}_${a.absoluteIndex}`
|
|
964
964
|
}), void 0, !0)
|
|
965
965
|
]))), 256))
|
|
966
966
|
])) : y("", !0),
|
|
967
|
-
(n(!0), u(
|
|
967
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
968
968
|
r("rect", {
|
|
969
|
-
x:
|
|
970
|
-
|
|
969
|
+
x: s(S)(
|
|
970
|
+
q.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : c.value.left
|
|
971
971
|
),
|
|
972
|
-
y: c.value.top + (k.value +
|
|
973
|
-
width:
|
|
974
|
-
|
|
972
|
+
y: c.value.top + (k.value + v.value) * o + A.value[o] * L.value,
|
|
973
|
+
width: s(S)(
|
|
974
|
+
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
975
975
|
),
|
|
976
|
-
height:
|
|
976
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
977
977
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
978
978
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
979
979
|
class: J({ animated: e.value.useCssAnimation })
|
|
980
|
-
}, null, 10,
|
|
980
|
+
}, null, 10, rl)
|
|
981
981
|
]))), 256)),
|
|
982
|
-
(n(!0), u(
|
|
982
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
983
983
|
r("rect", {
|
|
984
|
-
x:
|
|
985
|
-
|
|
984
|
+
x: s(S)(
|
|
985
|
+
q.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : c.value.left
|
|
986
986
|
),
|
|
987
|
-
y: c.value.top + (k.value +
|
|
988
|
-
width:
|
|
989
|
-
|
|
987
|
+
y: c.value.top + (k.value + v.value) * o + A.value[o] * L.value,
|
|
988
|
+
width: s(S)(
|
|
989
|
+
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
990
990
|
),
|
|
991
|
-
height:
|
|
992
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
991
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
992
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${F.value}_${o})` : s(Me)(
|
|
993
993
|
a.color,
|
|
994
994
|
e.value.style.chart.layout.bars.fillOpacity
|
|
995
995
|
),
|
|
@@ -997,29 +997,29 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
997
997
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
998
998
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
999
999
|
class: J({ animated: e.value.useCssAnimation })
|
|
1000
|
-
}, null, 10,
|
|
1000
|
+
}, null, 10, ul),
|
|
1001
1001
|
t.$slots.pattern ? (n(), u("rect", {
|
|
1002
1002
|
key: 0,
|
|
1003
|
-
x:
|
|
1004
|
-
|
|
1003
|
+
x: s(S)(
|
|
1004
|
+
q.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : c.value.left
|
|
1005
1005
|
),
|
|
1006
|
-
y: c.value.top + (k.value +
|
|
1007
|
-
width:
|
|
1008
|
-
|
|
1006
|
+
y: c.value.top + (k.value + v.value) * o + A.value[o] * L.value,
|
|
1007
|
+
width: s(S)(
|
|
1008
|
+
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
1009
1009
|
),
|
|
1010
|
-
height:
|
|
1011
|
-
fill: `url(#pattern_${
|
|
1010
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
1011
|
+
fill: `url(#pattern_${F.value}_${a.absoluteIndex})`,
|
|
1012
1012
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
1013
1013
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
1014
1014
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1015
1015
|
class: J({ animated: e.value.useCssAnimation })
|
|
1016
|
-
}, null, 10,
|
|
1016
|
+
}, null, 10, sl)) : y("", !0),
|
|
1017
1017
|
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== $.value.length - 1 ? (n(), u("line", {
|
|
1018
1018
|
key: 1,
|
|
1019
|
-
x1:
|
|
1019
|
+
x1: M.value,
|
|
1020
1020
|
x2: e.value.style.chart.layout.separators.fullWidth ? 0 : c.value.left,
|
|
1021
|
-
y1:
|
|
1022
|
-
y2:
|
|
1021
|
+
y1: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o + A.value[o] * L.value,
|
|
1022
|
+
y2: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o + A.value[o] * L.value,
|
|
1023
1023
|
stroke: e.value.style.chart.layout.separators.color,
|
|
1024
1024
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
1025
1025
|
"stroke-linecap": "round",
|
|
@@ -1027,8 +1027,8 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1027
1027
|
transition: "none !important",
|
|
1028
1028
|
animation: "none !important"
|
|
1029
1029
|
}
|
|
1030
|
-
}, null, 8,
|
|
1031
|
-
|
|
1030
|
+
}, null, 8, il)) : y("", !0),
|
|
1031
|
+
q.value && e.value.style.chart.layout.separators.show ? (n(), u("line", {
|
|
1032
1032
|
key: 2,
|
|
1033
1033
|
x1: c.value.left + c.value.width / 2,
|
|
1034
1034
|
x2: c.value.left + c.value.width / 2,
|
|
@@ -1037,167 +1037,191 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1037
1037
|
stroke: e.value.style.chart.layout.separators.color,
|
|
1038
1038
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
1039
1039
|
"stroke-linecap": "round"
|
|
1040
|
-
}, null, 8,
|
|
1040
|
+
}, null, 8, cl)) : y("", !0)
|
|
1041
1041
|
]))), 256)),
|
|
1042
1042
|
r("g", {
|
|
1043
1043
|
ref_key: "parentLabels",
|
|
1044
1044
|
ref: Ut
|
|
1045
1045
|
}, [
|
|
1046
|
-
(n(!0), u(
|
|
1046
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", dl, [
|
|
1047
1047
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("rect", {
|
|
1048
1048
|
key: 0,
|
|
1049
1049
|
class: "vue-ui-horizontal-bar-parent-marker",
|
|
1050
1050
|
x: 2,
|
|
1051
|
-
y:
|
|
1051
|
+
y: te(a, o).y - e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1052
1052
|
height: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1053
1053
|
width: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1054
1054
|
rx: 1,
|
|
1055
1055
|
fill: a.color,
|
|
1056
1056
|
style: { animation: "none !important", transition: "none !important" }
|
|
1057
|
-
}, null, 8,
|
|
1057
|
+
}, null, 8, vl)) : y("", !0),
|
|
1058
1058
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("text", {
|
|
1059
1059
|
key: 1,
|
|
1060
|
-
y:
|
|
1060
|
+
y: te(a, o).y,
|
|
1061
1061
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1062
1062
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1063
1063
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1064
1064
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1065
|
-
"text-anchor": "start"
|
|
1066
|
-
|
|
1065
|
+
"text-anchor": "start",
|
|
1066
|
+
innerHTML: s(Ve)({
|
|
1067
|
+
content: `${ct(a, o)}`,
|
|
1068
|
+
fontSize: e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1069
|
+
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1070
|
+
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1071
|
+
y: te(a, o).y,
|
|
1072
|
+
translateY: !1
|
|
1073
|
+
})
|
|
1074
|
+
}, null, 8, hl)) : y("", !0),
|
|
1067
1075
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("text", {
|
|
1068
1076
|
key: 2,
|
|
1069
|
-
y:
|
|
1077
|
+
y: te(a, o).y + s(Pa)(ct(a, o)) * e.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1070
1078
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1071
1079
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1072
1080
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1073
1081
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1074
1082
|
"text-anchor": "start"
|
|
1075
|
-
},
|
|
1083
|
+
}, m(oa(a, o)), 9, fl)) : y("", !0)
|
|
1076
1084
|
]))), 256))
|
|
1077
1085
|
], 512),
|
|
1078
1086
|
r("g", {
|
|
1079
1087
|
ref_key: "childLabels",
|
|
1080
1088
|
ref: ke
|
|
1081
1089
|
}, [
|
|
1082
|
-
(n(!0), u(
|
|
1090
|
+
(n(!0), u(O, null, E(Qt.value, (a, o) => (n(), u("g", pl, [
|
|
1083
1091
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), u("text", {
|
|
1084
1092
|
key: 0,
|
|
1085
1093
|
"text-anchor": "start",
|
|
1086
1094
|
x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1087
|
-
y:
|
|
1095
|
+
y: s(S)(c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
|
|
1088
1096
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1089
1097
|
fill: "transparent",
|
|
1090
1098
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1091
|
-
style: { "user-select": "none" }
|
|
1092
|
-
|
|
1099
|
+
style: { "user-select": "none" },
|
|
1100
|
+
innerHTML: s(Ve)({
|
|
1101
|
+
content: a.name,
|
|
1102
|
+
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1103
|
+
fill: "transparent",
|
|
1104
|
+
x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1105
|
+
y: s(S)(c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
|
|
1106
|
+
translateY: !0
|
|
1107
|
+
})
|
|
1108
|
+
}, null, 8, bl)) : y("", !0)
|
|
1093
1109
|
]))), 256))
|
|
1094
1110
|
], 512),
|
|
1095
1111
|
r("g", null, [
|
|
1096
|
-
(n(!0), u(
|
|
1112
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", gl, [
|
|
1097
1113
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), u("text", {
|
|
1098
1114
|
key: 0,
|
|
1099
1115
|
"text-anchor": "end",
|
|
1100
1116
|
x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1101
|
-
y: c.value.top + (k.value +
|
|
1117
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
|
|
1102
1118
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1103
1119
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1104
|
-
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
1105
|
-
|
|
1120
|
+
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1121
|
+
innerHTML: s(Ve)({
|
|
1122
|
+
content: a.name,
|
|
1123
|
+
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1124
|
+
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1125
|
+
x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1126
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
|
|
1127
|
+
translateY: !0
|
|
1128
|
+
})
|
|
1129
|
+
}, null, 8, yl)) : y("", !0)
|
|
1106
1130
|
]))), 256))
|
|
1107
1131
|
]),
|
|
1108
1132
|
r("g", {
|
|
1109
1133
|
ref_key: "dataLabels",
|
|
1110
1134
|
ref: _e
|
|
1111
1135
|
}, [
|
|
1112
|
-
(n(!0), u(
|
|
1136
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", ml, [
|
|
1113
1137
|
r("text", {
|
|
1114
|
-
x:
|
|
1115
|
-
|
|
1138
|
+
x: q.value ? c.value.left + c.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) : Math.min(
|
|
1139
|
+
aa(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
1116
1140
|
c.value.right - 2
|
|
1117
1141
|
),
|
|
1118
|
-
y: c.value.top + (k.value +
|
|
1119
|
-
"text-anchor": !
|
|
1142
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + A.value[o] * L.value + e.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1143
|
+
"text-anchor": !q.value || a.sign === -1 ? "start" : "end",
|
|
1120
1144
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1121
1145
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
1122
1146
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1123
|
-
},
|
|
1147
|
+
}, m(dt(a.value, a, o, a.sign)), 9, Cl)
|
|
1124
1148
|
]))), 256))
|
|
1125
1149
|
], 512),
|
|
1126
|
-
(n(!0), u(
|
|
1150
|
+
(n(!0), u(O, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
1127
1151
|
r("rect", {
|
|
1128
1152
|
x: 0,
|
|
1129
|
-
y: c.value.top + (k.value +
|
|
1130
|
-
width:
|
|
1131
|
-
height:
|
|
1132
|
-
fill: Te.value === a.id ?
|
|
1153
|
+
y: c.value.top + (k.value + v.value) * o - k.value / 2 + A.value[o] * L.value,
|
|
1154
|
+
width: M.value,
|
|
1155
|
+
height: v.value + k.value <= 0 ? 1e-4 : v.value + k.value,
|
|
1156
|
+
fill: Te.value === a.id ? s(Me)(
|
|
1133
1157
|
e.value.style.chart.layout.highlighter.color,
|
|
1134
1158
|
e.value.style.chart.layout.highlighter.opacity
|
|
1135
1159
|
) : "transparent",
|
|
1136
|
-
onMouseenter: (
|
|
1137
|
-
onMouseleave: (
|
|
1138
|
-
onClick: (
|
|
1139
|
-
}, null, 40,
|
|
1160
|
+
onMouseenter: (p) => ua(a, o),
|
|
1161
|
+
onMouseleave: (p) => ra({ datapoint: a, seriesIndex: o }),
|
|
1162
|
+
onClick: (p) => na({ datapoint: a, seriesIndex: o })
|
|
1163
|
+
}, null, 40, kl)
|
|
1140
1164
|
]))), 256)),
|
|
1141
1165
|
g(t.$slots, "svg", { svg: R.value }, void 0, !0)
|
|
1142
1166
|
], 512)
|
|
1143
|
-
], 14,
|
|
1144
|
-
t.$slots.watermark ? (n(), u("div",
|
|
1145
|
-
g(t.$slots, "watermark", N(
|
|
1167
|
+
], 14, el)),
|
|
1168
|
+
t.$slots.watermark ? (n(), u("div", _l, [
|
|
1169
|
+
g(t.$slots, "watermark", B(N({ isPrinting: s(Qe) || s(Ze) })), void 0, !0)
|
|
1146
1170
|
])) : y("", !0),
|
|
1147
1171
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), u("div", {
|
|
1148
1172
|
key: 6,
|
|
1149
1173
|
ref_key: "chartLegend",
|
|
1150
1174
|
ref: ye
|
|
1151
1175
|
}, [
|
|
1152
|
-
(n(), Q(
|
|
1176
|
+
(n(), Q(kt, {
|
|
1153
1177
|
key: `legend_bottom_${me.value}`,
|
|
1154
|
-
legendSet:
|
|
1155
|
-
config:
|
|
1156
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
1157
|
-
},
|
|
1158
|
-
item:
|
|
1178
|
+
legendSet: z.value,
|
|
1179
|
+
config: rt.value,
|
|
1180
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => Y(a.id))
|
|
1181
|
+
}, fe({
|
|
1182
|
+
item: f(({ legend: a, index: o }) => [
|
|
1159
1183
|
r("div", {
|
|
1160
|
-
onClick: (
|
|
1184
|
+
onClick: (p) => Y(a.id),
|
|
1161
1185
|
style: h(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
1162
|
-
},
|
|
1186
|
+
}, m(a.name) + ": " + m(s(se)(
|
|
1163
1187
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
1164
1188
|
a.value,
|
|
1165
|
-
|
|
1189
|
+
s(G)({
|
|
1166
1190
|
p: e.value.style.chart.legend.prefix,
|
|
1167
1191
|
v: a.value,
|
|
1168
1192
|
s: e.value.style.chart.legend.suffix,
|
|
1169
1193
|
r: e.value.style.chart.legend.roundingValue
|
|
1170
1194
|
}),
|
|
1171
1195
|
{ datapoint: a, seriesIndex: o }
|
|
1172
|
-
)), 13,
|
|
1196
|
+
)), 13, xl)
|
|
1173
1197
|
]),
|
|
1174
1198
|
_: 2
|
|
1175
1199
|
}, [
|
|
1176
1200
|
t.$slots.pattern ? {
|
|
1177
1201
|
name: "legend-pattern",
|
|
1178
|
-
fn:
|
|
1179
|
-
|
|
1202
|
+
fn: f(({ legend: a, index: o }) => [
|
|
1203
|
+
oe(_t, {
|
|
1180
1204
|
shape: a.shape,
|
|
1181
1205
|
radius: 30,
|
|
1182
1206
|
stroke: "none",
|
|
1183
1207
|
plot: { x: 30, y: 30 },
|
|
1184
|
-
fill: `url(#pattern_${
|
|
1208
|
+
fill: `url(#pattern_${F.value}_${o})`
|
|
1185
1209
|
}, null, 8, ["shape", "fill"])
|
|
1186
1210
|
]),
|
|
1187
1211
|
key: "0"
|
|
1188
1212
|
} : void 0
|
|
1189
1213
|
]), 1032, ["legendSet", "config"]))
|
|
1190
1214
|
], 512)) : y("", !0),
|
|
1191
|
-
g(t.$slots, "legend", { legend:
|
|
1215
|
+
g(t.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
1192
1216
|
t.$slots.source ? (n(), u("div", {
|
|
1193
1217
|
key: 7,
|
|
1194
1218
|
ref_key: "source",
|
|
1195
|
-
ref:
|
|
1219
|
+
ref: Ge,
|
|
1196
1220
|
dir: "auto"
|
|
1197
1221
|
}, [
|
|
1198
1222
|
g(t.$slots, "source", {}, void 0, !0)
|
|
1199
1223
|
], 512)) : y("", !0),
|
|
1200
|
-
|
|
1224
|
+
oe(s(Dt), {
|
|
1201
1225
|
show: x.value.showTooltip && be.value && w.value.length < C.dataset.length,
|
|
1202
1226
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1203
1227
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1217,36 +1241,36 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1217
1241
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1218
1242
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1219
1243
|
}, {
|
|
1220
|
-
"tooltip-before":
|
|
1221
|
-
g(t.$slots, "tooltip-before", N(
|
|
1244
|
+
"tooltip-before": f(() => [
|
|
1245
|
+
g(t.$slots, "tooltip-before", B(N({ ...Se.value })), void 0, !0)
|
|
1222
1246
|
]),
|
|
1223
|
-
"tooltip-after":
|
|
1224
|
-
g(t.$slots, "tooltip-after", N(
|
|
1247
|
+
"tooltip-after": f(() => [
|
|
1248
|
+
g(t.$slots, "tooltip-after", B(N({ ...Se.value })), void 0, !0)
|
|
1225
1249
|
]),
|
|
1226
1250
|
_: 3
|
|
1227
1251
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1228
|
-
|
|
1252
|
+
pe.value && e.value.userOptions.buttons.table ? (n(), Q(wa(he.value.component), mt({ key: 8 }, he.value.props, {
|
|
1229
1253
|
ref_key: "tableUnit",
|
|
1230
|
-
ref:
|
|
1231
|
-
onClose:
|
|
1232
|
-
}),
|
|
1233
|
-
content:
|
|
1254
|
+
ref: ne,
|
|
1255
|
+
onClose: Pe
|
|
1256
|
+
}), fe({
|
|
1257
|
+
content: f(() => [
|
|
1234
1258
|
r("div", {
|
|
1235
1259
|
ref_key: "tableContainer",
|
|
1236
|
-
ref:
|
|
1260
|
+
ref: lt,
|
|
1237
1261
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1238
1262
|
style: h(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1239
1263
|
}, [
|
|
1240
|
-
r("div",
|
|
1264
|
+
r("div", wl, [
|
|
1241
1265
|
e.value.table.useDialog ? y("", !0) : (n(), u("div", {
|
|
1242
1266
|
key: 0,
|
|
1243
1267
|
role: "button",
|
|
1244
1268
|
tabindex: "0",
|
|
1245
1269
|
style: h(`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};`),
|
|
1246
|
-
onClick:
|
|
1247
|
-
onKeypress:
|
|
1270
|
+
onClick: Pe,
|
|
1271
|
+
onKeypress: $a(Pe, ["enter"])
|
|
1248
1272
|
}, [
|
|
1249
|
-
|
|
1273
|
+
oe(s(He), {
|
|
1250
1274
|
name: "close",
|
|
1251
1275
|
stroke: e.value.table.th.color,
|
|
1252
1276
|
"stroke-width": 2
|
|
@@ -1254,9 +1278,9 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1254
1278
|
], 36)),
|
|
1255
1279
|
r("div", {
|
|
1256
1280
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1257
|
-
class: J({ "vue-ui-responsive":
|
|
1281
|
+
class: J({ "vue-ui-responsive": s(ca) })
|
|
1258
1282
|
}, [
|
|
1259
|
-
r("table",
|
|
1283
|
+
r("table", $l, [
|
|
1260
1284
|
e.value.table.useDialog ? y("", !0) : (n(), u("caption", {
|
|
1261
1285
|
key: 0,
|
|
1262
1286
|
style: h({
|
|
@@ -1266,18 +1290,18 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1266
1290
|
}),
|
|
1267
1291
|
class: "vue-ui-data-table__caption"
|
|
1268
1292
|
}, [
|
|
1269
|
-
|
|
1270
|
-
e.value.style.chart.title.subtitle.text ? (n(), u("span",
|
|
1293
|
+
Ct(m(e.value.style.chart.title.text) + " ", 1),
|
|
1294
|
+
e.value.style.chart.title.subtitle.text ? (n(), u("span", Ll, m(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
1271
1295
|
], 4)),
|
|
1272
1296
|
r("thead", null, [
|
|
1273
1297
|
r("tr", {
|
|
1274
1298
|
role: "row",
|
|
1275
1299
|
style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1276
1300
|
}, [
|
|
1277
|
-
(n(!0), u(
|
|
1301
|
+
(n(!0), u(O, null, E(D.value.head, (a) => (n(), u("th", {
|
|
1278
1302
|
style: h(`outline:${e.value.table.th.outline}`)
|
|
1279
1303
|
}, [
|
|
1280
|
-
r("div",
|
|
1304
|
+
r("div", Al, m(a), 1)
|
|
1281
1305
|
], 4))), 256))
|
|
1282
1306
|
], 4),
|
|
1283
1307
|
r("tr", null, [
|
|
@@ -1286,7 +1310,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1286
1310
|
}, null, 4),
|
|
1287
1311
|
r("th", {
|
|
1288
1312
|
style: h(`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`)
|
|
1289
|
-
}, " ∑ " +
|
|
1313
|
+
}, " ∑ " + m(e.value.table.td.prefix) + m(isNaN(V.value) ? "" : V.value.toFixed(e.value.table.td.roundingValue)) + m(e.value.table.td.suffix), 5),
|
|
1290
1314
|
r("th", {
|
|
1291
1315
|
style: h(`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`)
|
|
1292
1316
|
}, " 100% ", 4),
|
|
@@ -1305,7 +1329,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1305
1329
|
])
|
|
1306
1330
|
]),
|
|
1307
1331
|
r("tbody", null, [
|
|
1308
|
-
(n(!0), u(
|
|
1332
|
+
(n(!0), u(O, null, E(D.value.body, (a, o) => (n(), u("tr", {
|
|
1309
1333
|
class: J({
|
|
1310
1334
|
"vue-ui-data-table__tbody__row": !0,
|
|
1311
1335
|
"vue-ui-data-table__tbody__row-even": o % 2 === 0,
|
|
@@ -1316,72 +1340,72 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1316
1340
|
r("td", {
|
|
1317
1341
|
class: "vue-ui-data-table__tbody__td",
|
|
1318
1342
|
style: h(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1319
|
-
"data-cell":
|
|
1343
|
+
"data-cell": D.value.head[0] ?? ""
|
|
1320
1344
|
}, [
|
|
1321
|
-
r("div",
|
|
1345
|
+
r("div", Sl, [
|
|
1322
1346
|
a.color ? (n(), u("span", {
|
|
1323
1347
|
key: 0,
|
|
1324
1348
|
style: h(`color:${a.color};margin-right:3px`)
|
|
1325
1349
|
}, "⬤", 4)) : y("", !0),
|
|
1326
|
-
r("span", null,
|
|
1350
|
+
r("span", null, m(a.parentName), 1)
|
|
1327
1351
|
])
|
|
1328
|
-
], 12,
|
|
1352
|
+
], 12, Tl),
|
|
1329
1353
|
r("td", {
|
|
1330
1354
|
class: "vue-ui-data-table__tbody__td",
|
|
1331
1355
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1332
|
-
"data-cell":
|
|
1356
|
+
"data-cell": D.value.head[1] ?? ""
|
|
1333
1357
|
}, [
|
|
1334
|
-
r("div",
|
|
1358
|
+
r("div", zl, m(e.value.table.td.prefix) + m(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(
|
|
1335
1359
|
e.value.table.td.roundingValue
|
|
1336
|
-
)) +
|
|
1337
|
-
], 12,
|
|
1360
|
+
)) + m(e.value.table.td.suffix), 1)
|
|
1361
|
+
], 12, Fl),
|
|
1338
1362
|
r("td", {
|
|
1339
1363
|
class: "vue-ui-data-table__tbody__td",
|
|
1340
1364
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1341
|
-
"data-cell":
|
|
1365
|
+
"data-cell": D.value.head[2] ?? ""
|
|
1342
1366
|
}, [
|
|
1343
|
-
r("div",
|
|
1367
|
+
r("div", Dl, m(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(
|
|
1344
1368
|
e.value.table.td.roundingPercentage
|
|
1345
1369
|
)}%`), 1)
|
|
1346
|
-
], 12,
|
|
1370
|
+
], 12, Pl),
|
|
1347
1371
|
r("td", {
|
|
1348
1372
|
class: "vue-ui-data-table__tbody__td",
|
|
1349
1373
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1350
|
-
"data-cell":
|
|
1374
|
+
"data-cell": D.value.head[3] ?? ""
|
|
1351
1375
|
}, [
|
|
1352
|
-
r("div",
|
|
1353
|
-
], 12,
|
|
1376
|
+
r("div", Nl, m(a.childName), 1)
|
|
1377
|
+
], 12, Bl),
|
|
1354
1378
|
r("td", {
|
|
1355
1379
|
class: "vue-ui-data-table__tbody__td",
|
|
1356
1380
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1357
|
-
"data-cell":
|
|
1381
|
+
"data-cell": D.value.head[4] ?? ""
|
|
1358
1382
|
}, [
|
|
1359
|
-
r("div",
|
|
1383
|
+
r("div", El, m(e.value.table.td.prefix) + m(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(
|
|
1360
1384
|
e.value.table.td.roundingValue
|
|
1361
|
-
)) +
|
|
1362
|
-
], 12,
|
|
1385
|
+
)) + m(e.value.table.td.suffix), 1)
|
|
1386
|
+
], 12, Ol),
|
|
1363
1387
|
r("td", {
|
|
1364
1388
|
class: "vue-ui-data-table__tbody__td",
|
|
1365
1389
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1366
|
-
"data-cell":
|
|
1390
|
+
"data-cell": D.value.head[5] ?? ""
|
|
1367
1391
|
}, [
|
|
1368
|
-
r("div",
|
|
1392
|
+
r("div", Ml, m(["", NaN, void 0].includes(
|
|
1369
1393
|
a.childPercentageToParent
|
|
1370
1394
|
) ? "" : `${(a.childPercentageToParent * 100).toFixed(
|
|
1371
1395
|
e.value.table.td.roundingPercentage
|
|
1372
1396
|
)}%`), 1)
|
|
1373
|
-
], 12,
|
|
1397
|
+
], 12, Il),
|
|
1374
1398
|
r("td", {
|
|
1375
1399
|
class: "vue-ui-data-table__tbody__td",
|
|
1376
1400
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1377
|
-
"data-cell":
|
|
1401
|
+
"data-cell": D.value.head[6] ?? ""
|
|
1378
1402
|
}, [
|
|
1379
|
-
r("div",
|
|
1403
|
+
r("div", Rl, m(["", NaN, void 0].includes(
|
|
1380
1404
|
a.childPercentageToTotal
|
|
1381
1405
|
) ? "" : `${(a.childPercentageToTotal * 100).toFixed(
|
|
1382
1406
|
e.value.table.td.roundingPercentage
|
|
1383
1407
|
)}%`), 1)
|
|
1384
|
-
], 12,
|
|
1408
|
+
], 12, Vl)
|
|
1385
1409
|
], 6))), 256))
|
|
1386
1410
|
])
|
|
1387
1411
|
])
|
|
@@ -1393,20 +1417,20 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1393
1417
|
}, [
|
|
1394
1418
|
e.value.table.useDialog ? {
|
|
1395
1419
|
name: "title",
|
|
1396
|
-
fn:
|
|
1397
|
-
|
|
1420
|
+
fn: f(() => [
|
|
1421
|
+
Ct(m(he.value.title), 1)
|
|
1398
1422
|
]),
|
|
1399
1423
|
key: "0"
|
|
1400
1424
|
} : void 0,
|
|
1401
1425
|
e.value.table.useDialog ? {
|
|
1402
1426
|
name: "actions",
|
|
1403
|
-
fn:
|
|
1427
|
+
fn: f(() => [
|
|
1404
1428
|
r("button", {
|
|
1405
1429
|
tabindex: "0",
|
|
1406
1430
|
class: "vue-ui-user-options-button",
|
|
1407
1431
|
onClick: l[2] || (l[2] = (a) => Fe(e.value.userOptions.callbacks.csv))
|
|
1408
1432
|
}, [
|
|
1409
|
-
|
|
1433
|
+
oe(s(He), {
|
|
1410
1434
|
name: "excel",
|
|
1411
1435
|
stroke: he.value.props.color
|
|
1412
1436
|
}, null, 8, ["stroke"])
|
|
@@ -1415,15 +1439,15 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1415
1439
|
key: "1"
|
|
1416
1440
|
} : void 0
|
|
1417
1441
|
]), 1040)) : y("", !0),
|
|
1418
|
-
|
|
1419
|
-
], 46,
|
|
1442
|
+
s(Ye) ? (n(), Q(Ra, { key: 9 })) : y("", !0)
|
|
1443
|
+
], 46, Qa));
|
|
1420
1444
|
}
|
|
1421
|
-
},
|
|
1445
|
+
}, Xl = /* @__PURE__ */ Ja(Hl, [["__scopeId", "data-v-b9914315"]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1422
1446
|
__proto__: null,
|
|
1423
|
-
default:
|
|
1447
|
+
default: Xl
|
|
1424
1448
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1425
1449
|
export {
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1450
|
+
uo as a,
|
|
1451
|
+
so as b,
|
|
1452
|
+
Xl as v
|
|
1429
1453
|
};
|