vue-data-ui 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-bump.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import kt from "./Legend-
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as _t } from "./Shape-
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
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" } } },
|
|
1
|
+
import { useCssVars as _a, defineAsyncComponent as ae, useSlots as xa, computed as d, ref as i, toRefs as wa, watch as le, onBeforeUnmount as $a, 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 b, normalizeProps as B, guardReactiveProps as O, createSlots as be, createElementVNode as r, toDisplayString as m, Fragment as N, renderList as E, mergeProps as mt, resolveDynamicComponent as Aa, withKeys as La, createTextVNode as Ct, nextTick as Oe } from "vue";
|
|
2
|
+
import { c as Ta, t as Sa, i as Fa, j as Z, a1 as Ne, k as za, g as ue, o as Ee, U as S, m as Ie, a as se, d as U, X as Da, s as Me, h as Pa, $ as Ve, aq as Ba, v as Oa, r as Na, y as Ea, _ as Ia } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { t as Ma, u as Va } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ra, a as Re } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as Ha, B as Xa } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as Ga } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as Ua } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as Wa } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
+
import { u as ja } from "./useTableResponsive-Cbx-ACcP.js";
|
|
10
|
+
import { u as Ya } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as qa } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import kt from "./Legend-DN5UJOBH.js";
|
|
13
|
+
import Ka from "./vue-ui-accordion-DFKaB_05.js";
|
|
14
|
+
import Ja from "./Title-NgeRXqRA.js";
|
|
15
|
+
import { _ as _t } from "./Shape-PzdCMGsP.js";
|
|
16
|
+
import Qa from "./img-6fNF_rG0.js";
|
|
17
|
+
import { _ as Za } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const xt = { userOptions: { show: !1 }, style: { chart: { layout: { bars: { useGradient: !1, borderRadius: 1 } }, legend: { show: !1 } } } }, wt = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { separators: { color: "#4A4A4A" }, bars: { useGradient: !1, borderRadius: 1, underlayerColor: "#1A1A1A", dataLabels: { color: "#CCCCCC" }, nameLabels: { color: "#CCCCCC" }, parentLabels: { color: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, $t = { 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" } } }, At = { 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" } } }, Lt = { 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" } } }, Tt = { 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" } } }, St = { 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" } } }, Ft = { 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" } } }, zt = {
|
|
19
19
|
default: {},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
minimal: xt,
|
|
21
|
+
minimalDark: wt,
|
|
22
|
+
dark: $t,
|
|
23
|
+
celebration: At,
|
|
24
|
+
celebrationNight: Lt,
|
|
25
|
+
hack: Tt,
|
|
26
|
+
zen: St,
|
|
27
|
+
concrete: Ft
|
|
28
|
+
}, io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27
29
|
__proto__: null,
|
|
28
|
-
celebration:
|
|
29
|
-
celebrationNight:
|
|
30
|
-
concrete:
|
|
31
|
-
dark:
|
|
32
|
-
default:
|
|
33
|
-
hack:
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
celebration: At,
|
|
31
|
+
celebrationNight: Lt,
|
|
32
|
+
concrete: Ft,
|
|
33
|
+
dark: $t,
|
|
34
|
+
default: zt,
|
|
35
|
+
hack: Tt,
|
|
36
|
+
minimal: xt,
|
|
37
|
+
minimalDark: wt,
|
|
38
|
+
zen: St
|
|
39
|
+
}, Symbol.toStringTag, { value: "Module" })), el = ["id"], tl = ["onClick"], al = ["xmlns", "viewBox"], ll = ["width", "height"], ol = ["id"], nl = ["stop-color"], rl = ["stop-color"], ul = { key: 1 }, sl = ["x", "y", "width", "height", "fill", "rx"], il = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], cl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], dl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = { class: "vue-ui-horizontal-bar-parent-label" }, bl = ["y", "height", "width", "fill"], pl = ["y", "font-size", "fill", "x", "font-weight", "innerHTML"], fl = ["y", "font-size", "fill", "x", "font-weight"], gl = { class: "vue-ui-horizontal-bar-child-label" }, yl = ["x", "y", "font-size", "font-weight", "innerHTML"], ml = { class: "vue-ui-horizontal-bar-child-label" }, Cl = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], kl = { class: "vue-ui-horizontal-bar-child-label" }, _l = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], xl = ["y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], wl = {
|
|
36
40
|
key: 5,
|
|
37
41
|
class: "vue-data-ui-watermark"
|
|
38
|
-
},
|
|
42
|
+
}, $l = ["onClick"], Al = { style: "width:100%;padding-top: 36px;position:relative" }, Ll = { class: "vue-ui-data-table" }, Tl = { key: 0 }, Sl = { style: { width: "100%" } }, Fl = ["data-cell"], zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Dl = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Bl = ["data-cell"], Ol = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["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 = ["data-cell"], Xl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Gl = {
|
|
39
43
|
__name: "vue-ui-horizontal-bar",
|
|
40
44
|
props: {
|
|
41
45
|
config: {
|
|
@@ -52,43 +56,43 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
emits: ["selectLegend"],
|
|
55
|
-
setup(
|
|
56
|
-
|
|
59
|
+
setup(Dt, { expose: Pt, emit: Bt }) {
|
|
60
|
+
_a((t) => ({
|
|
57
61
|
v5c652955: t.tdo
|
|
58
62
|
}));
|
|
59
|
-
const
|
|
60
|
-
() => import("./PenAndPaper-
|
|
61
|
-
), Nt = ae(
|
|
62
|
-
() => import("./UserOptions-5pXc4J-c.js")
|
|
63
|
-
), Ot = ae(
|
|
64
|
-
() => import("./PackageVersion-C-JOGZBL.js")
|
|
63
|
+
const Ot = ae(() => import("./Tooltip-B6qvABDL.js")), He = ae(() => import("./BaseIcon-4uOct8re.js")), Nt = ae(
|
|
64
|
+
() => import("./PenAndPaper-LTuSTmWE.js")
|
|
65
65
|
), Et = ae(
|
|
66
|
-
() => import("./
|
|
67
|
-
),
|
|
66
|
+
() => import("./UserOptions-CX7Xsusk.js")
|
|
67
|
+
), It = ae(
|
|
68
|
+
() => import("./PackageVersion-CQxJyGQr.js")
|
|
69
|
+
), Mt = ae(
|
|
70
|
+
() => import("./BaseDraggableDialog-BQYfVNu8.js")
|
|
71
|
+
), { vue_ui_vertical_bar: Vt } = Ra(), { isThemeValid: Rt, warnInvalidTheme: Ht } = Wa(), Xt = xa(), C = Dt, pe = d({
|
|
68
72
|
get() {
|
|
69
73
|
return !!C.dataset && C.dataset.length;
|
|
70
74
|
},
|
|
71
75
|
set(t) {
|
|
72
76
|
return t;
|
|
73
77
|
}
|
|
74
|
-
}), F = i(
|
|
78
|
+
}), F = i(Ta()), fe = i(!1), ge = i(""), Gt = i(null), Xe = i(0), I = i(null), Ge = i(null), ye = i(null), Ue = i(null), We = i(null), je = i(0), me = i(0), Ut = i(null), ne = i(null), Ce = i(null), Wt = i(null), ke = i(null), w = i([]), jt = i({ none: 0, asc: 1, desc: 2 }), H = i(0), ie = i(!1), re = i(0), ee = i(0), _e = i(null), Yt = Bt, e = i(Ae()), qt = d(() => [
|
|
75
79
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
76
80
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
77
81
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
78
82
|
{ name: "", value: 3, color: "#d9d9d9" },
|
|
79
83
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
80
84
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
81
|
-
]), { loading: Ye, FINAL_DATASET: qe, manualLoading: xe } =
|
|
82
|
-
...
|
|
85
|
+
]), { loading: Ye, FINAL_DATASET: qe, manualLoading: xe } = Ha({
|
|
86
|
+
...wa(C),
|
|
83
87
|
FINAL_CONFIG: e,
|
|
84
|
-
prepareConfig:
|
|
88
|
+
prepareConfig: Ae,
|
|
85
89
|
callback: () => {
|
|
86
90
|
Promise.resolve().then(async () => {
|
|
87
|
-
x.value.showTable = e.value.table.show,
|
|
91
|
+
x.value.showTable = e.value.table.show, Zt();
|
|
88
92
|
});
|
|
89
93
|
},
|
|
90
|
-
skeletonDataset:
|
|
91
|
-
skeletonConfig:
|
|
94
|
+
skeletonDataset: qt.value,
|
|
95
|
+
skeletonConfig: Sa({
|
|
92
96
|
defaultConfig: e.value,
|
|
93
97
|
userConfig: {
|
|
94
98
|
useCssAnimation: !1,
|
|
@@ -121,38 +125,38 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
})
|
|
124
|
-
}), { userOptionsVisible: we, setUserOptionsVisibility: Ke, keepUserOptionState: Je } =
|
|
128
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: Ke, keepUserOptionState: Je } = Ya({ config: e.value }), { svgRef: $e } = qa({
|
|
125
129
|
config: e.value.style.chart.title
|
|
126
130
|
});
|
|
127
|
-
function
|
|
131
|
+
function Ae() {
|
|
128
132
|
const t = Re({
|
|
129
133
|
userConfig: C.config,
|
|
130
|
-
defaultConfig:
|
|
134
|
+
defaultConfig: Vt
|
|
131
135
|
});
|
|
132
136
|
let l = {};
|
|
133
137
|
const a = t.theme;
|
|
134
138
|
if (a)
|
|
135
|
-
if (!
|
|
136
|
-
|
|
139
|
+
if (!Rt.value(t))
|
|
140
|
+
Ht(t), l = t;
|
|
137
141
|
else {
|
|
138
142
|
const o = Re({
|
|
139
|
-
userConfig:
|
|
143
|
+
userConfig: zt[a] || C.config,
|
|
140
144
|
defaultConfig: t
|
|
141
145
|
});
|
|
142
146
|
l = {
|
|
143
147
|
...Re({ userConfig: C.config, defaultConfig: o }),
|
|
144
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
148
|
+
customPalette: t.customPalette.length ? t.customPalette : Fa[a] || Z
|
|
145
149
|
};
|
|
146
150
|
}
|
|
147
151
|
else
|
|
148
152
|
l = t;
|
|
149
|
-
return C.config &&
|
|
153
|
+
return C.config && Ne(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && Ne(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && Ne(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
150
154
|
}
|
|
151
155
|
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
156
|
le(
|
|
153
157
|
() => C.config,
|
|
154
158
|
(t) => {
|
|
155
|
-
Ye.value || (e.value =
|
|
159
|
+
Ye.value || (e.value = Ae()), 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
160
|
},
|
|
157
161
|
{ deep: !0 }
|
|
158
162
|
), le(
|
|
@@ -162,36 +166,36 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
162
166
|
},
|
|
163
167
|
{ deep: !0 }
|
|
164
168
|
);
|
|
165
|
-
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } =
|
|
169
|
+
const { isPrinting: Qe, isImaging: Ze, generatePdf: et, generateImage: tt } = Ga({
|
|
166
170
|
elementId: `vue-ui-vertical-bar_${F.value}`,
|
|
167
171
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
168
172
|
options: e.value.userOptions.print
|
|
169
|
-
}),
|
|
170
|
-
function
|
|
173
|
+
}), Kt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), at = d(() => za(e.value.customPalette)), lt = i(null), Jt = d(() => e.value.table.responsiveBreakpoint), ce = d(() => !!e.value.debug), Qt = i(0), G = i(null), W = i(null);
|
|
174
|
+
function Zt() {
|
|
171
175
|
if (I.value && (Ee(C.dataset) && (ue({
|
|
172
176
|
componentName: "VueUiVerticalBar",
|
|
173
177
|
type: "dataset",
|
|
174
178
|
debug: ce.value
|
|
175
|
-
}),
|
|
176
|
-
const t =
|
|
177
|
-
const { width: l, height: a } =
|
|
179
|
+
}), pe.value = !1, xe.value = !0), Ee(C.dataset) || (xe.value = e.value.loading), e.value.responsive)) {
|
|
180
|
+
const t = Ma(() => {
|
|
181
|
+
const { width: l, height: a } = Va({
|
|
178
182
|
chart: I.value,
|
|
179
|
-
title: e.value.style.chart.title.text ?
|
|
183
|
+
title: e.value.style.chart.title.text ? Ge.value : null,
|
|
180
184
|
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
181
|
-
source:
|
|
185
|
+
source: Ue.value,
|
|
182
186
|
noTitle: We.value
|
|
183
187
|
});
|
|
184
|
-
|
|
188
|
+
Qt.value = a / 3, requestAnimationFrame(async () => {
|
|
185
189
|
X.value = a, M.value = l;
|
|
186
190
|
});
|
|
187
191
|
});
|
|
188
|
-
|
|
189
|
-
W.value = I.value?.parentNode, W.value &&
|
|
192
|
+
G.value && (W.value && G.value.unobserve(W.value), G.value.disconnect()), G.value = new ResizeObserver(t), Oe(() => {
|
|
193
|
+
W.value = I.value?.parentNode, W.value && G.value.observe(W.value);
|
|
190
194
|
});
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
$a(() => {
|
|
198
|
+
G.value && (W.value && G.value.unobserve(W.value), G.value.disconnect());
|
|
195
199
|
});
|
|
196
200
|
const x = i({
|
|
197
201
|
showTable: e.value.table.show,
|
|
@@ -219,16 +223,16 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
219
223
|
});
|
|
220
224
|
}));
|
|
221
225
|
}), qe.value.map((t, l) => {
|
|
222
|
-
const a = `vertical_parent_${l}_${F.value}`, o = t.children && t.children.length > 0,
|
|
223
|
-
t.value ? t.value : o ? t.children.map((
|
|
224
|
-
), _ =
|
|
226
|
+
const a = `vertical_parent_${l}_${F.value}`, o = t.children && t.children.length > 0, p = S(
|
|
227
|
+
t.value ? t.value : o ? t.children.map((f) => f.value || 0).reduce((f, D) => f + D, 0) : 0
|
|
228
|
+
), _ = p >= 0 ? 1 : -1;
|
|
225
229
|
return {
|
|
226
230
|
...t,
|
|
227
231
|
id: a,
|
|
228
232
|
absoluteIndex: l,
|
|
229
233
|
shape: "square",
|
|
230
234
|
opacity: w.value.includes(a) ? 0.5 : 1,
|
|
231
|
-
value: Math.abs(
|
|
235
|
+
value: Math.abs(p),
|
|
232
236
|
sign: _,
|
|
233
237
|
hasChildren: o,
|
|
234
238
|
isChild: !1,
|
|
@@ -236,45 +240,45 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
236
240
|
isSegregated: w.value.includes(a),
|
|
237
241
|
color: Ie(t.color) || at.value[l] || Z[l] || Z[l % Z.length],
|
|
238
242
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
239
|
-
ie.value ? () => 0 : (
|
|
240
|
-
).map((
|
|
241
|
-
...
|
|
242
|
-
value: S(Math.abs(
|
|
243
|
+
ie.value ? () => 0 : (f, D) => ot.value ? D.value - f.value : f.value - D.value
|
|
244
|
+
).map((f, D) => ({
|
|
245
|
+
...f,
|
|
246
|
+
value: S(Math.abs(f.value)),
|
|
243
247
|
absoluteIndex: l,
|
|
244
|
-
sign:
|
|
248
|
+
sign: f.value >= 0 ? 1 : -1,
|
|
245
249
|
isChild: !0,
|
|
246
250
|
parentId: a,
|
|
247
251
|
parentName: t.name,
|
|
248
|
-
parentValue:
|
|
252
|
+
parentValue: p,
|
|
249
253
|
parentSign: _,
|
|
250
|
-
id: `vertical_child_${l}_${
|
|
251
|
-
childIndex:
|
|
252
|
-
color: Ie(
|
|
253
|
-
})).map((
|
|
254
|
-
...
|
|
255
|
-
isFirstChild:
|
|
256
|
-
isLastChild:
|
|
254
|
+
id: `vertical_child_${l}_${D}_${F.value}`,
|
|
255
|
+
childIndex: D,
|
|
256
|
+
color: Ie(f.color) || Ie(t.color) || at.value[l] || Z[l] || Z[l % Z.length]
|
|
257
|
+
})).map((f, D) => ({
|
|
258
|
+
...f,
|
|
259
|
+
isFirstChild: D === 0,
|
|
260
|
+
isLastChild: D === t.children.length - 1
|
|
257
261
|
}))
|
|
258
262
|
};
|
|
259
263
|
}).toSorted(
|
|
260
264
|
ie.value ? () => 0 : (t, l) => ot.value ? l.value - t.value : t.value - l.value
|
|
261
265
|
))), j = d(() => z.value.filter(
|
|
262
266
|
(t) => !w.value.includes(t.id)
|
|
263
|
-
)), $ = d(() => j.value.flatMap((t) => t.hasChildren ? t.children : t)),
|
|
267
|
+
)), $ = d(() => j.value.flatMap((t) => t.hasChildren ? t.children : t)), ea = 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
268
|
cy: "vertical-bar-div-legend",
|
|
265
269
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
266
270
|
color: e.value.style.chart.legend.color,
|
|
267
271
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
268
272
|
paddingBottom: 12,
|
|
269
273
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
270
|
-
})),
|
|
274
|
+
})), A = 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), L = d(() => {
|
|
271
275
|
const t = [];
|
|
272
276
|
let l = 0;
|
|
273
277
|
return $.value.forEach((a, o) => {
|
|
274
278
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show && (l += 1), t[o] = l;
|
|
275
279
|
}), t;
|
|
276
280
|
}), v = d(() => {
|
|
277
|
-
const l = Math.max(0, ...
|
|
281
|
+
const l = Math.max(0, ...L.value) * A.value;
|
|
278
282
|
return (X.value - 24 - (nt.value - 1) * k.value - l) / nt.value;
|
|
279
283
|
}), R = d(() => ({
|
|
280
284
|
width: M.value,
|
|
@@ -285,18 +289,18 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
285
289
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
286
290
|
bottom: 12
|
|
287
291
|
}
|
|
288
|
-
})),
|
|
292
|
+
})), Le = i(0);
|
|
289
293
|
function ut() {
|
|
290
|
-
|
|
294
|
+
Oe(() => {
|
|
291
295
|
if (!ke.value) {
|
|
292
|
-
|
|
296
|
+
Le.value = 0;
|
|
293
297
|
return;
|
|
294
298
|
}
|
|
295
299
|
const l = Array.from(ke.value.querySelectorAll("text")).reduce((a, o) => {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
300
|
+
const p = o.getBBox?.().width ?? o.getComputedTextLength();
|
|
301
|
+
return p > a ? p : a;
|
|
298
302
|
}, 0);
|
|
299
|
-
|
|
303
|
+
Le.value = l + 12;
|
|
300
304
|
});
|
|
301
305
|
}
|
|
302
306
|
le(
|
|
@@ -313,7 +317,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
313
317
|
ut();
|
|
314
318
|
});
|
|
315
319
|
function de() {
|
|
316
|
-
|
|
320
|
+
Oe(() => {
|
|
317
321
|
re.value = 0, ee.value = 0, requestAnimationFrame(() => {
|
|
318
322
|
if (!_e.value) {
|
|
319
323
|
re.value = 0, ee.value = 0;
|
|
@@ -327,12 +331,12 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
327
331
|
return;
|
|
328
332
|
}
|
|
329
333
|
let l = 1 / 0, a = 0;
|
|
330
|
-
t.forEach((
|
|
331
|
-
const
|
|
334
|
+
t.forEach((ka) => {
|
|
335
|
+
const Pe = ka.getBBox(), gt = Pe.x, yt = Pe.x + Pe.width;
|
|
332
336
|
gt < l && (l = gt), yt > a && (a = yt);
|
|
333
337
|
});
|
|
334
|
-
const o = 0,
|
|
335
|
-
ee.value =
|
|
338
|
+
const o = 0, p = M.value, _ = 24, f = Math.max(0, o - l + _), D = Math.max(0, a - p + _);
|
|
339
|
+
ee.value = f, re.value = D;
|
|
336
340
|
});
|
|
337
341
|
});
|
|
338
342
|
}
|
|
@@ -342,7 +346,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
342
346
|
{ deep: !0 }
|
|
343
347
|
), Be(() => de());
|
|
344
348
|
const c = d(() => {
|
|
345
|
-
const t =
|
|
349
|
+
const t = Le.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
350
|
return {
|
|
347
351
|
top: R.value.padding.top,
|
|
348
352
|
bottom: R.value.padding.top + R.value.height,
|
|
@@ -359,7 +363,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
359
363
|
if (w.value.length === z.value.length - 1) return;
|
|
360
364
|
w.value.push(t);
|
|
361
365
|
}
|
|
362
|
-
|
|
366
|
+
Yt("selectLegend", j.value), de();
|
|
363
367
|
}
|
|
364
368
|
function st(t) {
|
|
365
369
|
if (!z.value.length)
|
|
@@ -367,36 +371,36 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
367
371
|
const l = z.value.find((a) => a.name === t);
|
|
368
372
|
return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
|
|
369
373
|
}
|
|
370
|
-
function
|
|
374
|
+
function ta(t) {
|
|
371
375
|
const l = st(t);
|
|
372
376
|
l !== null && w.value.includes(l.id) && Y(l.id);
|
|
373
377
|
}
|
|
374
|
-
function
|
|
378
|
+
function aa(t) {
|
|
375
379
|
const l = st(t);
|
|
376
380
|
l !== null && (w.value.includes(l.id) || Y(l.id));
|
|
377
381
|
}
|
|
378
382
|
const V = d(() => j.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
379
383
|
function it(t, l = !1, a = 0) {
|
|
380
|
-
return l ?
|
|
384
|
+
return l ? U({
|
|
381
385
|
v: S(Math.abs(t) / V.value * 100),
|
|
382
386
|
s: "%",
|
|
383
387
|
r: a
|
|
384
388
|
}) : Math.abs(t) / V.value;
|
|
385
389
|
}
|
|
386
|
-
const q = d(() => $.value.map((t) => t.sign).includes(-1)),
|
|
390
|
+
const q = d(() => $.value.map((t) => t.sign).includes(-1)), la = d(() => Math.max(
|
|
387
391
|
...j.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)
|
|
388
392
|
));
|
|
389
393
|
function T(t) {
|
|
390
|
-
const l = t /
|
|
394
|
+
const l = t / la.value;
|
|
391
395
|
return c.value.width / (q.value ? 2 : 1) * l;
|
|
392
396
|
}
|
|
393
|
-
function
|
|
397
|
+
function oa(t) {
|
|
394
398
|
return T(t) + c.value.left;
|
|
395
399
|
}
|
|
396
400
|
function te(t, l) {
|
|
397
|
-
const a = j.value.find((
|
|
401
|
+
const a = j.value.find((f) => f.id === t.parentId);
|
|
398
402
|
return {
|
|
399
|
-
y: c.value.top + (k.value + v.value) * l +
|
|
403
|
+
y: c.value.top + (k.value + v.value) * l + L.value[l] * A.value - A.value + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
400
404
|
name: a.name,
|
|
401
405
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
402
406
|
percentageToTotal: isNaN(a.value / V.value) ? "" : it(
|
|
@@ -407,33 +411,33 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
407
411
|
sign: a.sign
|
|
408
412
|
};
|
|
409
413
|
}
|
|
410
|
-
function
|
|
414
|
+
function na() {
|
|
411
415
|
return j.value;
|
|
412
416
|
}
|
|
413
417
|
function ct(t, l) {
|
|
414
418
|
return te(t, l).name;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
420
|
+
function ra(t, l) {
|
|
417
421
|
const a = te(t, l);
|
|
418
422
|
return dt(a.value, a, l, t.parentSign || t.sign);
|
|
419
423
|
}
|
|
420
424
|
const Te = i(null), Se = i(null);
|
|
421
|
-
function
|
|
425
|
+
function ua({ datapoint: t, seriesIndex: l }) {
|
|
422
426
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
423
427
|
}
|
|
424
|
-
function
|
|
425
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
428
|
+
function sa({ datapoint: t, seriesIndex: l }) {
|
|
429
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Gt.value = null, fe.value = !1, Te.value = null;
|
|
426
430
|
}
|
|
427
|
-
function
|
|
431
|
+
function ia(t, l) {
|
|
428
432
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
429
433
|
datapoint: t,
|
|
430
434
|
seriesIndex: l,
|
|
431
435
|
series: z.value,
|
|
432
436
|
config: e.value
|
|
433
|
-
},
|
|
437
|
+
}, fe.value = !0, Te.value = t.id;
|
|
434
438
|
let a = "";
|
|
435
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
436
|
-
|
|
439
|
+
const o = t.isChild ? t.parentName : t.name, p = t.isChild ? t.name : "", _ = e.value.style.chart.tooltip.customFormat;
|
|
440
|
+
Ea(_) && Ia(
|
|
437
441
|
() => _({
|
|
438
442
|
datapoint: t,
|
|
439
443
|
series: z.value,
|
|
@@ -446,23 +450,23 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
446
450
|
config: e.value,
|
|
447
451
|
seriesIndex: l
|
|
448
452
|
}) : (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
|
-
${
|
|
453
|
+
<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}"/>${Xt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${F.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
454
|
+
${p ? `<div>${p}</div>` : ""}
|
|
451
455
|
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${se(
|
|
452
456
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
453
457
|
t.sign === 1 ? t.value : -t.value,
|
|
454
|
-
|
|
458
|
+
U({
|
|
455
459
|
p: e.value.style.chart.tooltip.prefix,
|
|
456
460
|
v: t.sign === 1 ? t.value : -t.value,
|
|
457
461
|
s: e.value.style.chart.tooltip.suffix,
|
|
458
462
|
r: e.value.style.chart.tooltip.roundingValue
|
|
459
463
|
}),
|
|
460
464
|
{ datapoint: t, seriesIndex: l }
|
|
461
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
465
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${U({
|
|
462
466
|
v: Math.abs(t.value) / V.value * 100,
|
|
463
467
|
s: "%",
|
|
464
468
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
465
|
-
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
469
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${U({
|
|
466
470
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
467
471
|
s: "%",
|
|
468
472
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -471,10 +475,10 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
471
475
|
function dt(t, l, a, o) {
|
|
472
476
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
473
477
|
return "";
|
|
474
|
-
const
|
|
478
|
+
const p = se(
|
|
475
479
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
476
480
|
S(o === -1 && t >= 0 ? -t : t),
|
|
477
|
-
|
|
481
|
+
U({
|
|
478
482
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
479
483
|
v: S(o === -1 && t >= 0 ? -t : t),
|
|
480
484
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
@@ -486,9 +490,9 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
486
490
|
!0,
|
|
487
491
|
e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
|
|
488
492
|
)})`;
|
|
489
|
-
return `${
|
|
493
|
+
return `${p}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${_}` : ""}`;
|
|
490
494
|
}
|
|
491
|
-
const
|
|
495
|
+
const P = d(() => {
|
|
492
496
|
const t = [
|
|
493
497
|
e.value.translations.parentName,
|
|
494
498
|
e.value.translations.value,
|
|
@@ -532,16 +536,16 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
532
536
|
[e.value.style.chart.title.text],
|
|
533
537
|
[e.value.style.chart.title.subtitle.text],
|
|
534
538
|
[""]
|
|
535
|
-
], a =
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
]),
|
|
544
|
-
t ? t(_) :
|
|
539
|
+
], a = P.value.head, o = P.value.body.map((f) => [
|
|
540
|
+
f.parentName,
|
|
541
|
+
f.parentValue,
|
|
542
|
+
f.percentageToTotal,
|
|
543
|
+
f.childName,
|
|
544
|
+
f.childValue,
|
|
545
|
+
f.childPercentageToParent,
|
|
546
|
+
f.childPercentageToTotal
|
|
547
|
+
]), p = l.concat([a]).concat(o), _ = Oa(p);
|
|
548
|
+
t ? t(_) : Na({
|
|
545
549
|
csvContent: _,
|
|
546
550
|
title: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
547
551
|
});
|
|
@@ -561,31 +565,31 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
561
565
|
type: "attributeWrongValue",
|
|
562
566
|
property: "style.chart.layout.bars.sort",
|
|
563
567
|
key: e.value.style.chart.layout.bars.sort
|
|
564
|
-
}), H.value =
|
|
568
|
+
}), H.value = jt.value[e.value.style.chart.layout.bars.sort], x.value.sortDesc = H.value === 2, ie.value = H.value === 0;
|
|
565
569
|
});
|
|
566
|
-
function
|
|
570
|
+
function ca() {
|
|
567
571
|
H.value += 1, H.value > 2 && (H.value = 0);
|
|
568
572
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
573
|
+
function bt() {
|
|
574
|
+
ca(), x.value.sortDesc = H.value === 2, ie.value = H.value === 0;
|
|
571
575
|
}
|
|
572
|
-
function
|
|
576
|
+
function pt() {
|
|
573
577
|
x.value.showTooltip = !x.value.showTooltip;
|
|
574
578
|
}
|
|
575
579
|
const ve = i(!1);
|
|
576
580
|
function ze() {
|
|
577
581
|
ve.value = !ve.value;
|
|
578
582
|
}
|
|
579
|
-
async function
|
|
583
|
+
async function da({ scale: t = 2 } = {}) {
|
|
580
584
|
if (!I.value) return;
|
|
581
|
-
const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri:
|
|
585
|
+
const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: p, base64: _ } = await Qa({
|
|
582
586
|
domElement: I.value,
|
|
583
587
|
base64: !0,
|
|
584
588
|
img: !0,
|
|
585
589
|
scale: t
|
|
586
590
|
});
|
|
587
591
|
return {
|
|
588
|
-
imageUri:
|
|
592
|
+
imageUri: p,
|
|
589
593
|
base64: _,
|
|
590
594
|
title: e.value.style.chart.title.text,
|
|
591
595
|
width: l,
|
|
@@ -596,7 +600,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
596
600
|
const he = d(() => {
|
|
597
601
|
const t = e.value.table.useDialog && !e.value.table.show, l = x.value.showTable;
|
|
598
602
|
return {
|
|
599
|
-
component: t ?
|
|
603
|
+
component: t ? Mt : Ka,
|
|
600
604
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
601
605
|
props: t ? {
|
|
602
606
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -629,17 +633,17 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
629
633
|
e.value.table.show || (t && e.value.table.useDialog && ne.value ? ne.value.open() : "close" in ne.value && ne.value.close());
|
|
630
634
|
}
|
|
631
635
|
);
|
|
632
|
-
const { isResponsive:
|
|
633
|
-
function
|
|
636
|
+
const { isResponsive: va } = ja(lt, Jt);
|
|
637
|
+
function De() {
|
|
634
638
|
x.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
|
|
635
639
|
}
|
|
636
|
-
const
|
|
640
|
+
const ha = d(() => z.value.map((t, l) => ({
|
|
637
641
|
...t,
|
|
638
642
|
shape: "square",
|
|
639
643
|
display: `${t.name}: ${se(
|
|
640
644
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
641
645
|
t.value,
|
|
642
|
-
|
|
646
|
+
U({
|
|
643
647
|
p: e.value.style.chart.legend.prefix,
|
|
644
648
|
v: t.value,
|
|
645
649
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -647,39 +651,39 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
647
651
|
}),
|
|
648
652
|
{ datapoint: t, seriesIndex: l }
|
|
649
653
|
)}`
|
|
650
|
-
}))),
|
|
654
|
+
}))), ba = d(() => e.value.style.chart.backgroundColor), pa = d(() => e.value.style.chart.legend), fa = d(() => e.value.style.chart.title), ga = d(() => ha.value.map((t) => ({
|
|
651
655
|
...t,
|
|
652
656
|
name: t.display
|
|
653
|
-
}))), { exportSvg:
|
|
657
|
+
}))), { exportSvg: ya, getSvg: ma } = Ua({
|
|
654
658
|
svg: $e,
|
|
655
|
-
title:
|
|
656
|
-
legend:
|
|
657
|
-
legendItems:
|
|
658
|
-
backgroundColor:
|
|
659
|
+
title: fa,
|
|
660
|
+
legend: pa,
|
|
661
|
+
legendItems: ga,
|
|
662
|
+
backgroundColor: ba
|
|
659
663
|
});
|
|
660
|
-
async function
|
|
664
|
+
async function ft({ isCb: t }) {
|
|
661
665
|
if (t) {
|
|
662
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
663
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
666
|
+
const { blob: l, url: a, text: o, dataUrl: p } = await ma();
|
|
667
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: p });
|
|
664
668
|
} else
|
|
665
|
-
|
|
669
|
+
ya();
|
|
666
670
|
}
|
|
667
|
-
function
|
|
671
|
+
function Ca() {
|
|
668
672
|
console.warn("[autoSize]: this legacy method can be safely removed as it ha no impact.");
|
|
669
673
|
}
|
|
670
|
-
return
|
|
671
|
-
autoSize:
|
|
672
|
-
getData:
|
|
673
|
-
getImage:
|
|
674
|
+
return Pt({
|
|
675
|
+
autoSize: Ca,
|
|
676
|
+
getData: na,
|
|
677
|
+
getImage: da,
|
|
674
678
|
generatePdf: et,
|
|
675
679
|
generateCsv: Fe,
|
|
676
680
|
generateImage: tt,
|
|
677
|
-
generateSvg:
|
|
678
|
-
hideSeries:
|
|
679
|
-
showSeries:
|
|
681
|
+
generateSvg: ft,
|
|
682
|
+
hideSeries: aa,
|
|
683
|
+
showSeries: ta,
|
|
680
684
|
toggleTable: ht,
|
|
681
|
-
toggleSort:
|
|
682
|
-
toggleTooltip:
|
|
685
|
+
toggleSort: bt,
|
|
686
|
+
toggleTooltip: pt,
|
|
683
687
|
toggleAnnotator: ze,
|
|
684
688
|
toggleFullscreen: vt
|
|
685
689
|
}), (t, l) => (n(), u("div", {
|
|
@@ -691,7 +695,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
691
695
|
onMouseenter: l[3] || (l[3] = () => s(Ke)(!0)),
|
|
692
696
|
onMouseleave: l[4] || (l[4] = () => s(Ke)(!1))
|
|
693
697
|
}, [
|
|
694
|
-
e.value.userOptions.buttons.annotator ? (n(), Q(s(
|
|
698
|
+
e.value.userOptions.buttons.annotator ? (n(), Q(s(Nt), {
|
|
695
699
|
key: 0,
|
|
696
700
|
svgRef: s($e),
|
|
697
701
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -699,27 +703,27 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
699
703
|
active: ve.value,
|
|
700
704
|
onClose: ze
|
|
701
705
|
}, {
|
|
702
|
-
"annotator-action-close":
|
|
706
|
+
"annotator-action-close": b(() => [
|
|
703
707
|
g(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
704
708
|
]),
|
|
705
|
-
"annotator-action-color":
|
|
706
|
-
g(t.$slots, "annotator-action-color", B(
|
|
709
|
+
"annotator-action-color": b(({ color: a }) => [
|
|
710
|
+
g(t.$slots, "annotator-action-color", B(O({ color: a })), void 0, !0)
|
|
707
711
|
]),
|
|
708
|
-
"annotator-action-draw":
|
|
709
|
-
g(t.$slots, "annotator-action-draw", B(
|
|
712
|
+
"annotator-action-draw": b(({ mode: a }) => [
|
|
713
|
+
g(t.$slots, "annotator-action-draw", B(O({ mode: a })), void 0, !0)
|
|
710
714
|
]),
|
|
711
|
-
"annotator-action-undo":
|
|
712
|
-
g(t.$slots, "annotator-action-undo", B(
|
|
715
|
+
"annotator-action-undo": b(({ disabled: a }) => [
|
|
716
|
+
g(t.$slots, "annotator-action-undo", B(O({ disabled: a })), void 0, !0)
|
|
713
717
|
]),
|
|
714
|
-
"annotator-action-redo":
|
|
715
|
-
g(t.$slots, "annotator-action-redo", B(
|
|
718
|
+
"annotator-action-redo": b(({ disabled: a }) => [
|
|
719
|
+
g(t.$slots, "annotator-action-redo", B(O({ disabled: a })), void 0, !0)
|
|
716
720
|
]),
|
|
717
|
-
"annotator-action-delete":
|
|
718
|
-
g(t.$slots, "annotator-action-delete", B(
|
|
721
|
+
"annotator-action-delete": b(({ disabled: a }) => [
|
|
722
|
+
g(t.$slots, "annotator-action-delete", B(O({ disabled: a })), void 0, !0)
|
|
719
723
|
]),
|
|
720
724
|
_: 3
|
|
721
725
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
722
|
-
|
|
726
|
+
Kt.value ? (n(), u("div", {
|
|
723
727
|
key: 1,
|
|
724
728
|
ref_key: "noTitle",
|
|
725
729
|
ref: We,
|
|
@@ -729,10 +733,10 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
729
733
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
730
734
|
key: 2,
|
|
731
735
|
ref_key: "chartTitle",
|
|
732
|
-
ref:
|
|
736
|
+
ref: Ge,
|
|
733
737
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
734
738
|
}, [
|
|
735
|
-
(n(), Q(
|
|
739
|
+
(n(), Q(Ja, {
|
|
736
740
|
key: `title_${je.value}`,
|
|
737
741
|
config: {
|
|
738
742
|
title: {
|
|
@@ -746,7 +750,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
746
750
|
}
|
|
747
751
|
}, null, 8, ["config"]))
|
|
748
752
|
], 512)) : y("", !0),
|
|
749
|
-
e.value.userOptions.show &&
|
|
753
|
+
e.value.userOptions.show && pe.value && (s(Je) || s(we)) ? (n(), Q(s(Et), {
|
|
750
754
|
ref_key: "userOptionsRef",
|
|
751
755
|
ref: Ce,
|
|
752
756
|
key: `user_options_${Xe.value}`,
|
|
@@ -777,89 +781,89 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
777
781
|
onGeneratePdf: s(et),
|
|
778
782
|
onGenerateCsv: Fe,
|
|
779
783
|
onGenerateImage: s(tt),
|
|
780
|
-
onGenerateSvg:
|
|
784
|
+
onGenerateSvg: ft,
|
|
781
785
|
onToggleTable: ht,
|
|
782
|
-
onToggleSort:
|
|
783
|
-
onToggleTooltip:
|
|
786
|
+
onToggleSort: bt,
|
|
787
|
+
onToggleTooltip: pt,
|
|
784
788
|
onToggleAnnotator: ze,
|
|
785
789
|
style: h({
|
|
786
790
|
visibility: s(Je) ? s(we) ? "visible" : "hidden" : "visible"
|
|
787
791
|
})
|
|
788
|
-
},
|
|
792
|
+
}, be({ _: 2 }, [
|
|
789
793
|
t.$slots.menuIcon ? {
|
|
790
794
|
name: "menuIcon",
|
|
791
|
-
fn:
|
|
792
|
-
g(t.$slots, "menuIcon", B(
|
|
795
|
+
fn: b(({ isOpen: a, color: o }) => [
|
|
796
|
+
g(t.$slots, "menuIcon", B(O({ isOpen: a, color: o })), void 0, !0)
|
|
793
797
|
]),
|
|
794
798
|
key: "0"
|
|
795
799
|
} : void 0,
|
|
796
800
|
t.$slots.optionTooltip ? {
|
|
797
801
|
name: "optionTooltip",
|
|
798
|
-
fn:
|
|
802
|
+
fn: b(() => [
|
|
799
803
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
800
804
|
]),
|
|
801
805
|
key: "1"
|
|
802
806
|
} : void 0,
|
|
803
807
|
t.$slots.optionPdf ? {
|
|
804
808
|
name: "optionPdf",
|
|
805
|
-
fn:
|
|
809
|
+
fn: b(() => [
|
|
806
810
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
807
811
|
]),
|
|
808
812
|
key: "2"
|
|
809
813
|
} : void 0,
|
|
810
814
|
t.$slots.optionCsv ? {
|
|
811
815
|
name: "optionCsv",
|
|
812
|
-
fn:
|
|
816
|
+
fn: b(() => [
|
|
813
817
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
814
818
|
]),
|
|
815
819
|
key: "3"
|
|
816
820
|
} : void 0,
|
|
817
821
|
t.$slots.optionImg ? {
|
|
818
822
|
name: "optionImg",
|
|
819
|
-
fn:
|
|
823
|
+
fn: b(() => [
|
|
820
824
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
821
825
|
]),
|
|
822
826
|
key: "4"
|
|
823
827
|
} : void 0,
|
|
824
828
|
t.$slots.optionSvg ? {
|
|
825
829
|
name: "optionSvg",
|
|
826
|
-
fn:
|
|
830
|
+
fn: b(() => [
|
|
827
831
|
g(t.$slots, "optionSvg", {}, void 0, !0)
|
|
828
832
|
]),
|
|
829
833
|
key: "5"
|
|
830
834
|
} : void 0,
|
|
831
835
|
t.$slots.optionTable ? {
|
|
832
836
|
name: "optionTable",
|
|
833
|
-
fn:
|
|
837
|
+
fn: b(() => [
|
|
834
838
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
835
839
|
]),
|
|
836
840
|
key: "6"
|
|
837
841
|
} : void 0,
|
|
838
842
|
t.$slots.optionLabels ? {
|
|
839
843
|
name: "optionLabels",
|
|
840
|
-
fn:
|
|
844
|
+
fn: b(() => [
|
|
841
845
|
g(t.$slots, "optionLabels", {}, void 0, !0)
|
|
842
846
|
]),
|
|
843
847
|
key: "7"
|
|
844
848
|
} : void 0,
|
|
845
849
|
t.$slots.optionSort ? {
|
|
846
850
|
name: "optionSort",
|
|
847
|
-
fn:
|
|
851
|
+
fn: b(() => [
|
|
848
852
|
g(t.$slots, "optionSort", {}, void 0, !0)
|
|
849
853
|
]),
|
|
850
854
|
key: "8"
|
|
851
855
|
} : void 0,
|
|
852
856
|
t.$slots.optionFullscreen ? {
|
|
853
857
|
name: "optionFullscreen",
|
|
854
|
-
fn:
|
|
855
|
-
g(t.$slots, "optionFullscreen", B(
|
|
858
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
859
|
+
g(t.$slots, "optionFullscreen", B(O({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
856
860
|
]),
|
|
857
861
|
key: "9"
|
|
858
862
|
} : void 0,
|
|
859
863
|
t.$slots.optionAnnotator ? {
|
|
860
864
|
name: "optionAnnotator",
|
|
861
|
-
fn:
|
|
862
|
-
g(t.$slots, "optionAnnotator", B(
|
|
865
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
866
|
+
g(t.$slots, "optionAnnotator", B(O({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
863
867
|
]),
|
|
864
868
|
key: "10"
|
|
865
869
|
} : void 0
|
|
@@ -874,28 +878,28 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
874
878
|
legendSet: z.value,
|
|
875
879
|
config: rt.value,
|
|
876
880
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Y(a.id))
|
|
877
|
-
},
|
|
878
|
-
item:
|
|
881
|
+
}, be({
|
|
882
|
+
item: b(({ legend: a, index: o }) => [
|
|
879
883
|
r("div", {
|
|
880
|
-
onClick: (
|
|
884
|
+
onClick: (p) => Y(a.id),
|
|
881
885
|
style: h(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
882
886
|
}, m(a.name) + ": " + m(s(se)(
|
|
883
887
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
884
888
|
a.value,
|
|
885
|
-
s(
|
|
889
|
+
s(U)({
|
|
886
890
|
p: e.value.style.chart.legend.prefix,
|
|
887
891
|
v: a.value,
|
|
888
892
|
s: e.value.style.chart.legend.suffix,
|
|
889
893
|
r: e.value.style.chart.legend.roundingValue
|
|
890
894
|
}),
|
|
891
895
|
{ datapoint: a, seriesIndex: o }
|
|
892
|
-
)), 13,
|
|
896
|
+
)), 13, tl)
|
|
893
897
|
]),
|
|
894
898
|
_: 2
|
|
895
899
|
}, [
|
|
896
900
|
t.$slots.pattern ? {
|
|
897
901
|
name: "legend-pattern",
|
|
898
|
-
fn:
|
|
902
|
+
fn: b(({ legend: a, index: o }) => [
|
|
899
903
|
oe(_t, {
|
|
900
904
|
shape: a.shape,
|
|
901
905
|
radius: 30,
|
|
@@ -911,7 +915,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
911
915
|
(n(), u("svg", {
|
|
912
916
|
ref_key: "svgRef",
|
|
913
917
|
ref: $e,
|
|
914
|
-
xmlns: s(
|
|
918
|
+
xmlns: s(Da),
|
|
915
919
|
class: J({
|
|
916
920
|
"vue-data-ui-fullscreen--on": K.value,
|
|
917
921
|
"vue-data-ui-fulscreen--off": !K.value
|
|
@@ -921,10 +925,10 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
921
925
|
}, [
|
|
922
926
|
r("g", {
|
|
923
927
|
ref_key: "G",
|
|
924
|
-
ref:
|
|
928
|
+
ref: Ut,
|
|
925
929
|
class: "vue-data-ui-g"
|
|
926
930
|
}, [
|
|
927
|
-
oe(s(
|
|
931
|
+
oe(s(It)),
|
|
928
932
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
929
933
|
key: 0,
|
|
930
934
|
x: 0,
|
|
@@ -936,8 +940,8 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
936
940
|
}
|
|
937
941
|
}, [
|
|
938
942
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
939
|
-
], 8,
|
|
940
|
-
(n(!0), u(
|
|
943
|
+
], 8, ll)) : y("", !0),
|
|
944
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("linearGradient", {
|
|
941
945
|
x1: "0%",
|
|
942
946
|
y1: "0%",
|
|
943
947
|
x2: "100%",
|
|
@@ -947,29 +951,29 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
947
951
|
r("stop", {
|
|
948
952
|
offset: "0%",
|
|
949
953
|
"stop-color": a.color
|
|
950
|
-
}, null, 8,
|
|
954
|
+
}, null, 8, nl),
|
|
951
955
|
r("stop", {
|
|
952
956
|
offset: "100%",
|
|
953
957
|
"stop-color": s(Me)(
|
|
954
|
-
s(
|
|
958
|
+
s(Pa)(a.color, 0.03),
|
|
955
959
|
100 - e.value.style.chart.layout.bars.gradientIntensity
|
|
956
960
|
)
|
|
957
|
-
}, null, 8,
|
|
958
|
-
], 8,
|
|
959
|
-
t.$slots.pattern ? (n(), u("g",
|
|
960
|
-
(n(!0), u(
|
|
961
|
+
}, null, 8, rl)
|
|
962
|
+
], 8, ol))), 256)),
|
|
963
|
+
t.$slots.pattern ? (n(), u("g", ul, [
|
|
964
|
+
(n(!0), u(N, null, E($.value, (a) => (n(), u("defs", null, [
|
|
961
965
|
g(t.$slots, "pattern", mt({ ref_for: !0 }, {
|
|
962
966
|
seriesIndex: a.absoluteIndex,
|
|
963
967
|
patternId: `pattern_${F.value}_${a.absoluteIndex}`
|
|
964
968
|
}), void 0, !0)
|
|
965
969
|
]))), 256))
|
|
966
970
|
])) : y("", !0),
|
|
967
|
-
(n(!0), u(
|
|
971
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
968
972
|
r("rect", {
|
|
969
973
|
x: s(S)(
|
|
970
974
|
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
975
|
),
|
|
972
|
-
y: c.value.top + (k.value + v.value) * o +
|
|
976
|
+
y: c.value.top + (k.value + v.value) * o + L.value[o] * A.value,
|
|
973
977
|
width: s(S)(
|
|
974
978
|
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
975
979
|
),
|
|
@@ -977,14 +981,14 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
977
981
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
978
982
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
979
983
|
class: J({ animated: e.value.useCssAnimation })
|
|
980
|
-
}, null, 10,
|
|
984
|
+
}, null, 10, sl)
|
|
981
985
|
]))), 256)),
|
|
982
|
-
(n(!0), u(
|
|
986
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
983
987
|
r("rect", {
|
|
984
988
|
x: s(S)(
|
|
985
989
|
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
990
|
),
|
|
987
|
-
y: c.value.top + (k.value + v.value) * o +
|
|
991
|
+
y: c.value.top + (k.value + v.value) * o + L.value[o] * A.value,
|
|
988
992
|
width: s(S)(
|
|
989
993
|
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
990
994
|
),
|
|
@@ -997,13 +1001,13 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
997
1001
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
998
1002
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
999
1003
|
class: J({ animated: e.value.useCssAnimation })
|
|
1000
|
-
}, null, 10,
|
|
1004
|
+
}, null, 10, il),
|
|
1001
1005
|
t.$slots.pattern ? (n(), u("rect", {
|
|
1002
1006
|
key: 0,
|
|
1003
1007
|
x: s(S)(
|
|
1004
1008
|
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
1009
|
),
|
|
1006
|
-
y: c.value.top + (k.value + v.value) * o +
|
|
1010
|
+
y: c.value.top + (k.value + v.value) * o + L.value[o] * A.value,
|
|
1007
1011
|
width: s(S)(
|
|
1008
1012
|
T(a.value) <= 0 ? 1e-4 : T(a.value)
|
|
1009
1013
|
),
|
|
@@ -1013,13 +1017,13 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1013
1017
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
1014
1018
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1015
1019
|
class: J({ animated: e.value.useCssAnimation })
|
|
1016
|
-
}, null, 10,
|
|
1020
|
+
}, null, 10, cl)) : y("", !0),
|
|
1017
1021
|
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== $.value.length - 1 ? (n(), u("line", {
|
|
1018
1022
|
key: 1,
|
|
1019
1023
|
x1: M.value,
|
|
1020
1024
|
x2: e.value.style.chart.layout.separators.fullWidth ? 0 : c.value.left,
|
|
1021
|
-
y1: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o +
|
|
1022
|
-
y2: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o +
|
|
1025
|
+
y1: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o + L.value[o] * A.value,
|
|
1026
|
+
y2: v.value + k.value / 2 + c.value.top + (k.value + v.value) * o + L.value[o] * A.value,
|
|
1023
1027
|
stroke: e.value.style.chart.layout.separators.color,
|
|
1024
1028
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
1025
1029
|
"stroke-linecap": "round",
|
|
@@ -1027,7 +1031,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1027
1031
|
transition: "none !important",
|
|
1028
1032
|
animation: "none !important"
|
|
1029
1033
|
}
|
|
1030
|
-
}, null, 8,
|
|
1034
|
+
}, null, 8, dl)) : y("", !0),
|
|
1031
1035
|
q.value && e.value.style.chart.layout.separators.show ? (n(), u("line", {
|
|
1032
1036
|
key: 2,
|
|
1033
1037
|
x1: c.value.left + c.value.width / 2,
|
|
@@ -1037,13 +1041,13 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1037
1041
|
stroke: e.value.style.chart.layout.separators.color,
|
|
1038
1042
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
1039
1043
|
"stroke-linecap": "round"
|
|
1040
|
-
}, null, 8,
|
|
1044
|
+
}, null, 8, vl)) : y("", !0)
|
|
1041
1045
|
]))), 256)),
|
|
1042
1046
|
r("g", {
|
|
1043
1047
|
ref_key: "parentLabels",
|
|
1044
|
-
ref:
|
|
1048
|
+
ref: Wt
|
|
1045
1049
|
}, [
|
|
1046
|
-
(n(!0), u(
|
|
1050
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", hl, [
|
|
1047
1051
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("rect", {
|
|
1048
1052
|
key: 0,
|
|
1049
1053
|
class: "vue-ui-horizontal-bar-parent-marker",
|
|
@@ -1054,7 +1058,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1054
1058
|
rx: 1,
|
|
1055
1059
|
fill: a.color,
|
|
1056
1060
|
style: { animation: "none !important", transition: "none !important" }
|
|
1057
|
-
}, null, 8,
|
|
1061
|
+
}, null, 8, bl)) : y("", !0),
|
|
1058
1062
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("text", {
|
|
1059
1063
|
key: 1,
|
|
1060
1064
|
y: te(a, o).y,
|
|
@@ -1071,28 +1075,28 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1071
1075
|
y: te(a, o).y,
|
|
1072
1076
|
translateY: !1
|
|
1073
1077
|
})
|
|
1074
|
-
}, null, 8,
|
|
1078
|
+
}, null, 8, pl)) : y("", !0),
|
|
1075
1079
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), u("text", {
|
|
1076
1080
|
key: 2,
|
|
1077
|
-
y: te(a, o).y + s(
|
|
1081
|
+
y: te(a, o).y + s(Ba)(ct(a, o)) * e.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1078
1082
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1079
1083
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1080
1084
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1081
1085
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1082
1086
|
"text-anchor": "start"
|
|
1083
|
-
}, m(
|
|
1087
|
+
}, m(ra(a, o)), 9, fl)) : y("", !0)
|
|
1084
1088
|
]))), 256))
|
|
1085
1089
|
], 512),
|
|
1086
1090
|
r("g", {
|
|
1087
1091
|
ref_key: "childLabels",
|
|
1088
1092
|
ref: ke
|
|
1089
1093
|
}, [
|
|
1090
|
-
(n(!0), u(
|
|
1094
|
+
(n(!0), u(N, null, E(ea.value, (a, o) => (n(), u("g", gl, [
|
|
1091
1095
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), u("text", {
|
|
1092
1096
|
key: 0,
|
|
1093
1097
|
"text-anchor": "start",
|
|
1094
1098
|
x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1095
|
-
y: s(S)(c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 +
|
|
1099
|
+
y: s(S)(c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + L.value[o] * A.value),
|
|
1096
1100
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1097
1101
|
fill: "transparent",
|
|
1098
1102
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
@@ -1102,19 +1106,19 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1102
1106
|
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1103
1107
|
fill: "transparent",
|
|
1104
1108
|
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 +
|
|
1109
|
+
y: s(S)(c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + L.value[o] * A.value),
|
|
1106
1110
|
translateY: !0
|
|
1107
1111
|
})
|
|
1108
|
-
}, null, 8,
|
|
1112
|
+
}, null, 8, yl)) : y("", !0)
|
|
1109
1113
|
]))), 256))
|
|
1110
1114
|
], 512),
|
|
1111
1115
|
r("g", null, [
|
|
1112
|
-
(n(!0), u(
|
|
1116
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", ml, [
|
|
1113
1117
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), u("text", {
|
|
1114
1118
|
key: 0,
|
|
1115
1119
|
"text-anchor": "end",
|
|
1116
1120
|
x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1117
|
-
y: c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 +
|
|
1121
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + L.value[o] * A.value,
|
|
1118
1122
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1119
1123
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1120
1124
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
@@ -1123,50 +1127,50 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1123
1127
|
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1124
1128
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1125
1129
|
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 +
|
|
1130
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + L.value[o] * A.value,
|
|
1127
1131
|
translateY: !0
|
|
1128
1132
|
})
|
|
1129
|
-
}, null, 8,
|
|
1133
|
+
}, null, 8, Cl)) : y("", !0)
|
|
1130
1134
|
]))), 256))
|
|
1131
1135
|
]),
|
|
1132
1136
|
r("g", {
|
|
1133
1137
|
ref_key: "dataLabels",
|
|
1134
1138
|
ref: _e
|
|
1135
1139
|
}, [
|
|
1136
|
-
(n(!0), u(
|
|
1140
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", kl, [
|
|
1137
1141
|
r("text", {
|
|
1138
1142
|
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
|
-
|
|
1143
|
+
oa(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
1140
1144
|
c.value.right - 2
|
|
1141
1145
|
),
|
|
1142
|
-
y: c.value.top + (k.value + v.value) * o + v.value / 2 +
|
|
1146
|
+
y: c.value.top + (k.value + v.value) * o + v.value / 2 + L.value[o] * A.value + e.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1143
1147
|
"text-anchor": !q.value || a.sign === -1 ? "start" : "end",
|
|
1144
1148
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1145
1149
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
1146
1150
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1147
|
-
}, m(dt(a.value, a, o, a.sign)), 9,
|
|
1151
|
+
}, m(dt(a.value, a, o, a.sign)), 9, _l)
|
|
1148
1152
|
]))), 256))
|
|
1149
1153
|
], 512),
|
|
1150
|
-
(n(!0), u(
|
|
1154
|
+
(n(!0), u(N, null, E($.value, (a, o) => (n(), u("g", null, [
|
|
1151
1155
|
r("rect", {
|
|
1152
1156
|
x: 0,
|
|
1153
|
-
y: c.value.top + (k.value + v.value) * o - k.value / 2 +
|
|
1157
|
+
y: c.value.top + (k.value + v.value) * o - k.value / 2 + L.value[o] * A.value,
|
|
1154
1158
|
width: M.value,
|
|
1155
1159
|
height: v.value + k.value <= 0 ? 1e-4 : v.value + k.value,
|
|
1156
1160
|
fill: Te.value === a.id ? s(Me)(
|
|
1157
1161
|
e.value.style.chart.layout.highlighter.color,
|
|
1158
1162
|
e.value.style.chart.layout.highlighter.opacity
|
|
1159
1163
|
) : "transparent",
|
|
1160
|
-
onMouseenter: (
|
|
1161
|
-
onMouseleave: (
|
|
1162
|
-
onClick: (
|
|
1163
|
-
}, null, 40,
|
|
1164
|
+
onMouseenter: (p) => ia(a, o),
|
|
1165
|
+
onMouseleave: (p) => sa({ datapoint: a, seriesIndex: o }),
|
|
1166
|
+
onClick: (p) => ua({ datapoint: a, seriesIndex: o })
|
|
1167
|
+
}, null, 40, xl)
|
|
1164
1168
|
]))), 256)),
|
|
1165
1169
|
g(t.$slots, "svg", { svg: R.value }, void 0, !0)
|
|
1166
1170
|
], 512)
|
|
1167
|
-
], 14,
|
|
1168
|
-
t.$slots.watermark ? (n(), u("div",
|
|
1169
|
-
g(t.$slots, "watermark", B(
|
|
1171
|
+
], 14, al)),
|
|
1172
|
+
t.$slots.watermark ? (n(), u("div", wl, [
|
|
1173
|
+
g(t.$slots, "watermark", B(O({ isPrinting: s(Qe) || s(Ze) })), void 0, !0)
|
|
1170
1174
|
])) : y("", !0),
|
|
1171
1175
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), u("div", {
|
|
1172
1176
|
key: 6,
|
|
@@ -1178,28 +1182,28 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1178
1182
|
legendSet: z.value,
|
|
1179
1183
|
config: rt.value,
|
|
1180
1184
|
onClickMarker: l[1] || (l[1] = ({ legend: a }) => Y(a.id))
|
|
1181
|
-
},
|
|
1182
|
-
item:
|
|
1185
|
+
}, be({
|
|
1186
|
+
item: b(({ legend: a, index: o }) => [
|
|
1183
1187
|
r("div", {
|
|
1184
|
-
onClick: (
|
|
1188
|
+
onClick: (p) => Y(a.id),
|
|
1185
1189
|
style: h(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
1186
1190
|
}, m(a.name) + ": " + m(s(se)(
|
|
1187
1191
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
1188
1192
|
a.value,
|
|
1189
|
-
s(
|
|
1193
|
+
s(U)({
|
|
1190
1194
|
p: e.value.style.chart.legend.prefix,
|
|
1191
1195
|
v: a.value,
|
|
1192
1196
|
s: e.value.style.chart.legend.suffix,
|
|
1193
1197
|
r: e.value.style.chart.legend.roundingValue
|
|
1194
1198
|
}),
|
|
1195
1199
|
{ datapoint: a, seriesIndex: o }
|
|
1196
|
-
)), 13,
|
|
1200
|
+
)), 13, $l)
|
|
1197
1201
|
]),
|
|
1198
1202
|
_: 2
|
|
1199
1203
|
}, [
|
|
1200
1204
|
t.$slots.pattern ? {
|
|
1201
1205
|
name: "legend-pattern",
|
|
1202
|
-
fn:
|
|
1206
|
+
fn: b(({ legend: a, index: o }) => [
|
|
1203
1207
|
oe(_t, {
|
|
1204
1208
|
shape: a.shape,
|
|
1205
1209
|
radius: 30,
|
|
@@ -1216,14 +1220,14 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1216
1220
|
t.$slots.source ? (n(), u("div", {
|
|
1217
1221
|
key: 7,
|
|
1218
1222
|
ref_key: "source",
|
|
1219
|
-
ref:
|
|
1223
|
+
ref: Ue,
|
|
1220
1224
|
dir: "auto"
|
|
1221
1225
|
}, [
|
|
1222
1226
|
g(t.$slots, "source", {}, void 0, !0)
|
|
1223
1227
|
], 512)) : y("", !0),
|
|
1224
|
-
oe(s(
|
|
1228
|
+
oe(s(Ot), {
|
|
1225
1229
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1226
|
-
show: x.value.showTooltip &&
|
|
1230
|
+
show: x.value.showTooltip && fe.value && w.value.length < C.dataset.length,
|
|
1227
1231
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1228
1232
|
color: e.value.style.chart.tooltip.color,
|
|
1229
1233
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1242,34 +1246,34 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1242
1246
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1243
1247
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1244
1248
|
}, {
|
|
1245
|
-
"tooltip-before":
|
|
1246
|
-
g(t.$slots, "tooltip-before", B(
|
|
1249
|
+
"tooltip-before": b(() => [
|
|
1250
|
+
g(t.$slots, "tooltip-before", B(O({ ...Se.value })), void 0, !0)
|
|
1247
1251
|
]),
|
|
1248
|
-
"tooltip-after":
|
|
1249
|
-
g(t.$slots, "tooltip-after", B(
|
|
1252
|
+
"tooltip-after": b(() => [
|
|
1253
|
+
g(t.$slots, "tooltip-after", B(O({ ...Se.value })), void 0, !0)
|
|
1250
1254
|
]),
|
|
1251
1255
|
_: 3
|
|
1252
1256
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1253
|
-
|
|
1257
|
+
pe.value && e.value.userOptions.buttons.table ? (n(), Q(Aa(he.value.component), mt({ key: 8 }, he.value.props, {
|
|
1254
1258
|
ref_key: "tableUnit",
|
|
1255
1259
|
ref: ne,
|
|
1256
|
-
onClose:
|
|
1257
|
-
}),
|
|
1258
|
-
content:
|
|
1260
|
+
onClose: De
|
|
1261
|
+
}), be({
|
|
1262
|
+
content: b(() => [
|
|
1259
1263
|
r("div", {
|
|
1260
1264
|
ref_key: "tableContainer",
|
|
1261
1265
|
ref: lt,
|
|
1262
1266
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1263
1267
|
style: h(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1264
1268
|
}, [
|
|
1265
|
-
r("div",
|
|
1269
|
+
r("div", Al, [
|
|
1266
1270
|
e.value.table.useDialog ? y("", !0) : (n(), u("div", {
|
|
1267
1271
|
key: 0,
|
|
1268
1272
|
role: "button",
|
|
1269
1273
|
tabindex: "0",
|
|
1270
1274
|
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};`),
|
|
1271
|
-
onClick:
|
|
1272
|
-
onKeypress:
|
|
1275
|
+
onClick: De,
|
|
1276
|
+
onKeypress: La(De, ["enter"])
|
|
1273
1277
|
}, [
|
|
1274
1278
|
oe(s(He), {
|
|
1275
1279
|
name: "close",
|
|
@@ -1279,9 +1283,9 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1279
1283
|
], 36)),
|
|
1280
1284
|
r("div", {
|
|
1281
1285
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1282
|
-
class: J({ "vue-ui-responsive": s(
|
|
1286
|
+
class: J({ "vue-ui-responsive": s(va) })
|
|
1283
1287
|
}, [
|
|
1284
|
-
r("table",
|
|
1288
|
+
r("table", Ll, [
|
|
1285
1289
|
e.value.table.useDialog ? y("", !0) : (n(), u("caption", {
|
|
1286
1290
|
key: 0,
|
|
1287
1291
|
style: h({
|
|
@@ -1292,17 +1296,17 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1292
1296
|
class: "vue-ui-data-table__caption"
|
|
1293
1297
|
}, [
|
|
1294
1298
|
Ct(m(e.value.style.chart.title.text) + " ", 1),
|
|
1295
|
-
e.value.style.chart.title.subtitle.text ? (n(), u("span",
|
|
1299
|
+
e.value.style.chart.title.subtitle.text ? (n(), u("span", Tl, m(e.value.style.chart.title.subtitle.text), 1)) : y("", !0)
|
|
1296
1300
|
], 4)),
|
|
1297
1301
|
r("thead", null, [
|
|
1298
1302
|
r("tr", {
|
|
1299
1303
|
role: "row",
|
|
1300
1304
|
style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1301
1305
|
}, [
|
|
1302
|
-
(n(!0), u(
|
|
1306
|
+
(n(!0), u(N, null, E(P.value.head, (a) => (n(), u("th", {
|
|
1303
1307
|
style: h(`outline:${e.value.table.th.outline}`)
|
|
1304
1308
|
}, [
|
|
1305
|
-
r("div",
|
|
1309
|
+
r("div", Sl, m(a), 1)
|
|
1306
1310
|
], 4))), 256))
|
|
1307
1311
|
], 4),
|
|
1308
1312
|
r("tr", null, [
|
|
@@ -1330,7 +1334,7 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1330
1334
|
])
|
|
1331
1335
|
]),
|
|
1332
1336
|
r("tbody", null, [
|
|
1333
|
-
(n(!0), u(
|
|
1337
|
+
(n(!0), u(N, null, E(P.value.body, (a, o) => (n(), u("tr", {
|
|
1334
1338
|
class: J({
|
|
1335
1339
|
"vue-ui-data-table__tbody__row": !0,
|
|
1336
1340
|
"vue-ui-data-table__tbody__row-even": o % 2 === 0,
|
|
@@ -1341,72 +1345,72 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1341
1345
|
r("td", {
|
|
1342
1346
|
class: "vue-ui-data-table__tbody__td",
|
|
1343
1347
|
style: h(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1344
|
-
"data-cell":
|
|
1348
|
+
"data-cell": P.value.head[0] ?? ""
|
|
1345
1349
|
}, [
|
|
1346
|
-
r("div",
|
|
1350
|
+
r("div", zl, [
|
|
1347
1351
|
a.color ? (n(), u("span", {
|
|
1348
1352
|
key: 0,
|
|
1349
1353
|
style: h(`color:${a.color};margin-right:3px`)
|
|
1350
1354
|
}, "⬤", 4)) : y("", !0),
|
|
1351
1355
|
r("span", null, m(a.parentName), 1)
|
|
1352
1356
|
])
|
|
1353
|
-
], 12,
|
|
1357
|
+
], 12, Fl),
|
|
1354
1358
|
r("td", {
|
|
1355
1359
|
class: "vue-ui-data-table__tbody__td",
|
|
1356
1360
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1357
|
-
"data-cell":
|
|
1361
|
+
"data-cell": P.value.head[1] ?? ""
|
|
1358
1362
|
}, [
|
|
1359
|
-
r("div",
|
|
1363
|
+
r("div", Pl, m(e.value.table.td.prefix) + m(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(
|
|
1360
1364
|
e.value.table.td.roundingValue
|
|
1361
1365
|
)) + m(e.value.table.td.suffix), 1)
|
|
1362
|
-
], 12,
|
|
1366
|
+
], 12, Dl),
|
|
1363
1367
|
r("td", {
|
|
1364
1368
|
class: "vue-ui-data-table__tbody__td",
|
|
1365
1369
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1366
|
-
"data-cell":
|
|
1370
|
+
"data-cell": P.value.head[2] ?? ""
|
|
1367
1371
|
}, [
|
|
1368
|
-
r("div",
|
|
1372
|
+
r("div", Ol, m(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(
|
|
1369
1373
|
e.value.table.td.roundingPercentage
|
|
1370
1374
|
)}%`), 1)
|
|
1371
|
-
], 12,
|
|
1375
|
+
], 12, Bl),
|
|
1372
1376
|
r("td", {
|
|
1373
1377
|
class: "vue-ui-data-table__tbody__td",
|
|
1374
1378
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1375
|
-
"data-cell":
|
|
1379
|
+
"data-cell": P.value.head[3] ?? ""
|
|
1376
1380
|
}, [
|
|
1377
|
-
r("div",
|
|
1378
|
-
], 12,
|
|
1381
|
+
r("div", El, m(a.childName), 1)
|
|
1382
|
+
], 12, Nl),
|
|
1379
1383
|
r("td", {
|
|
1380
1384
|
class: "vue-ui-data-table__tbody__td",
|
|
1381
1385
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1382
|
-
"data-cell":
|
|
1386
|
+
"data-cell": P.value.head[4] ?? ""
|
|
1383
1387
|
}, [
|
|
1384
|
-
r("div",
|
|
1388
|
+
r("div", Ml, m(e.value.table.td.prefix) + m(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(
|
|
1385
1389
|
e.value.table.td.roundingValue
|
|
1386
1390
|
)) + m(e.value.table.td.suffix), 1)
|
|
1387
|
-
], 12,
|
|
1391
|
+
], 12, Il),
|
|
1388
1392
|
r("td", {
|
|
1389
1393
|
class: "vue-ui-data-table__tbody__td",
|
|
1390
1394
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1391
|
-
"data-cell":
|
|
1395
|
+
"data-cell": P.value.head[5] ?? ""
|
|
1392
1396
|
}, [
|
|
1393
|
-
r("div",
|
|
1397
|
+
r("div", Rl, m(["", NaN, void 0].includes(
|
|
1394
1398
|
a.childPercentageToParent
|
|
1395
1399
|
) ? "" : `${(a.childPercentageToParent * 100).toFixed(
|
|
1396
1400
|
e.value.table.td.roundingPercentage
|
|
1397
1401
|
)}%`), 1)
|
|
1398
|
-
], 12,
|
|
1402
|
+
], 12, Vl),
|
|
1399
1403
|
r("td", {
|
|
1400
1404
|
class: "vue-ui-data-table__tbody__td",
|
|
1401
1405
|
style: h(`outline:${e.value.table.td.outline}`),
|
|
1402
|
-
"data-cell":
|
|
1406
|
+
"data-cell": P.value.head[6] ?? ""
|
|
1403
1407
|
}, [
|
|
1404
|
-
r("div",
|
|
1408
|
+
r("div", Xl, m(["", NaN, void 0].includes(
|
|
1405
1409
|
a.childPercentageToTotal
|
|
1406
1410
|
) ? "" : `${(a.childPercentageToTotal * 100).toFixed(
|
|
1407
1411
|
e.value.table.td.roundingPercentage
|
|
1408
1412
|
)}%`), 1)
|
|
1409
|
-
], 12,
|
|
1413
|
+
], 12, Hl)
|
|
1410
1414
|
], 6))), 256))
|
|
1411
1415
|
])
|
|
1412
1416
|
])
|
|
@@ -1418,14 +1422,14 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1418
1422
|
}, [
|
|
1419
1423
|
e.value.table.useDialog ? {
|
|
1420
1424
|
name: "title",
|
|
1421
|
-
fn:
|
|
1425
|
+
fn: b(() => [
|
|
1422
1426
|
Ct(m(he.value.title), 1)
|
|
1423
1427
|
]),
|
|
1424
1428
|
key: "0"
|
|
1425
1429
|
} : void 0,
|
|
1426
1430
|
e.value.table.useDialog ? {
|
|
1427
1431
|
name: "actions",
|
|
1428
|
-
fn:
|
|
1432
|
+
fn: b(() => [
|
|
1429
1433
|
r("button", {
|
|
1430
1434
|
tabindex: "0",
|
|
1431
1435
|
class: "vue-ui-user-options-button",
|
|
@@ -1440,15 +1444,15 @@ const xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1440
1444
|
key: "1"
|
|
1441
1445
|
} : void 0
|
|
1442
1446
|
]), 1040)) : y("", !0),
|
|
1443
|
-
s(Ye) ? (n(), Q(
|
|
1444
|
-
], 46,
|
|
1447
|
+
s(Ye) ? (n(), Q(Xa, { key: 9 })) : y("", !0)
|
|
1448
|
+
], 46, el));
|
|
1445
1449
|
}
|
|
1446
|
-
},
|
|
1450
|
+
}, Ul = /* @__PURE__ */ Za(Gl, [["__scopeId", "data-v-2923799c"]]), co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1447
1451
|
__proto__: null,
|
|
1448
|
-
default:
|
|
1452
|
+
default: Ul
|
|
1449
1453
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1450
1454
|
export {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1455
|
+
io as a,
|
|
1456
|
+
co as b,
|
|
1457
|
+
Ul as v
|
|
1454
1458
|
};
|