vue-data-ui 3.25.3 → 3.25.4
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-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.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-hill.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-label.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-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,1709 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, G as r, Ht as i, It as a, Jt as o, Nt as s, S as c, St as ee, Ut as te, X as l, Xt as ne, b as u, i as re, lt as ie, nt as ae, pt as oe, q as se, qt as ce, t as le, w as ue, yt as de } from "./lib-C7t_vY8w.js";
|
|
3
|
-
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as me } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as he } from "./usePrinter-VVTuFI6H.js";
|
|
6
|
-
import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-BfTgFMXF.js";
|
|
8
|
-
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as xe } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as Se } from "./img-IjqD_xWl.js";
|
|
12
|
-
import { n as Ce } from "./Title-DIf1lG-_.js";
|
|
13
|
-
import { t as we } from "./Shape-BBKymE00.js";
|
|
14
|
-
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
-
import { l as Ee, t as De } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
-
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as ke } from "./vue-ui-accordion-DuARUUdY.js";
|
|
18
|
-
import { t as Ae } from "./BaseLegendToggle-BF-thEu0.js";
|
|
19
|
-
import { t as je } from "./A11yDataTable-DdRsVULz.js";
|
|
20
|
-
import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
|
-
import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
|
-
import { t as Pe } from "./useTableResponsive-BAqJPR68.js";
|
|
23
|
-
import { t as Fe } from "./Legend-DmitJZi5.js";
|
|
24
|
-
import { t as Ie } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
|
|
25
|
-
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as Be, guardReactiveProps as _, mergeProps as Ve, nextTick as He, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ue, onMounted as We, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ge, toDisplayString as T, toRefs as Ke, unref as E, useCssVars as qe, useSlots as Je, watch as Ye, withCtx as D, withKeys as Xe } from "vue";
|
|
26
|
-
//#region src/components/vue-ui-horizontal-bar.vue
|
|
27
|
-
var Ze = /* @__PURE__ */ e({ default: () => zt }), Qe = ["id"], $e = ["id"], et = ["onClick"], tt = { style: { position: "relative" } }, nt = [
|
|
28
|
-
"xmlns",
|
|
29
|
-
"viewBox",
|
|
30
|
-
"aria-describedby"
|
|
31
|
-
], rt = ["width", "height"], it = { key: 1 }, at = [
|
|
32
|
-
"y",
|
|
33
|
-
"width",
|
|
34
|
-
"height",
|
|
35
|
-
"fill",
|
|
36
|
-
"rx"
|
|
37
|
-
], ot = [
|
|
38
|
-
"x",
|
|
39
|
-
"y",
|
|
40
|
-
"width",
|
|
41
|
-
"height",
|
|
42
|
-
"fill",
|
|
43
|
-
"rx"
|
|
44
|
-
], st = [
|
|
45
|
-
"x",
|
|
46
|
-
"y",
|
|
47
|
-
"width",
|
|
48
|
-
"height",
|
|
49
|
-
"fill",
|
|
50
|
-
"rx",
|
|
51
|
-
"stroke",
|
|
52
|
-
"stroke-width"
|
|
53
|
-
], ct = [
|
|
54
|
-
"x",
|
|
55
|
-
"y",
|
|
56
|
-
"width",
|
|
57
|
-
"height",
|
|
58
|
-
"fill",
|
|
59
|
-
"rx",
|
|
60
|
-
"stroke",
|
|
61
|
-
"stroke-width"
|
|
62
|
-
], lt = [
|
|
63
|
-
"stroke",
|
|
64
|
-
"stroke-width",
|
|
65
|
-
"d"
|
|
66
|
-
], ut = [
|
|
67
|
-
"stroke",
|
|
68
|
-
"stroke-width",
|
|
69
|
-
"d"
|
|
70
|
-
], dt = [
|
|
71
|
-
"y",
|
|
72
|
-
"height",
|
|
73
|
-
"width",
|
|
74
|
-
"fill"
|
|
75
|
-
], ft = [
|
|
76
|
-
"transform",
|
|
77
|
-
"font-size",
|
|
78
|
-
"fill",
|
|
79
|
-
"font-weight",
|
|
80
|
-
"innerHTML"
|
|
81
|
-
], pt = [
|
|
82
|
-
"transform",
|
|
83
|
-
"font-size",
|
|
84
|
-
"fill",
|
|
85
|
-
"font-weight"
|
|
86
|
-
], mt = [
|
|
87
|
-
"transform",
|
|
88
|
-
"font-size",
|
|
89
|
-
"font-weight",
|
|
90
|
-
"innerHTML"
|
|
91
|
-
], ht = [
|
|
92
|
-
"transform",
|
|
93
|
-
"font-size",
|
|
94
|
-
"fill",
|
|
95
|
-
"font-weight",
|
|
96
|
-
"innerHTML"
|
|
97
|
-
], gt = [
|
|
98
|
-
"transform",
|
|
99
|
-
"text-anchor",
|
|
100
|
-
"font-size",
|
|
101
|
-
"fill",
|
|
102
|
-
"font-weight"
|
|
103
|
-
], _t = [
|
|
104
|
-
"y",
|
|
105
|
-
"width",
|
|
106
|
-
"height",
|
|
107
|
-
"fill",
|
|
108
|
-
"onMouseenter",
|
|
109
|
-
"onMouseleave",
|
|
110
|
-
"onClick"
|
|
111
|
-
], vt = {
|
|
112
|
-
key: 0,
|
|
113
|
-
style: {
|
|
114
|
-
position: "absolute",
|
|
115
|
-
top: "100%",
|
|
116
|
-
left: "0",
|
|
117
|
-
width: "100%"
|
|
118
|
-
},
|
|
119
|
-
"data-dom-to-png-ignore": "",
|
|
120
|
-
"aria-hidden": "true"
|
|
121
|
-
}, yt = {
|
|
122
|
-
key: 6,
|
|
123
|
-
class: "vue-data-ui-watermark"
|
|
124
|
-
}, bt = ["onClick"], xt = { style: "width:100%;padding-top: 36px;position:relative" }, St = { class: "vue-ui-data-table" }, Ct = { key: 0 }, wt = { style: { width: "100%" } }, Tt = ["data-cell"], Et = { style: {
|
|
125
|
-
display: "flex",
|
|
126
|
-
"align-items": "center",
|
|
127
|
-
gap: "5px",
|
|
128
|
-
"justify-content": "flex-end",
|
|
129
|
-
width: "100%",
|
|
130
|
-
"padding-right": "3px"
|
|
131
|
-
} }, Dt = ["data-cell"], Ot = { style: {
|
|
132
|
-
display: "flex",
|
|
133
|
-
"align-items": "center",
|
|
134
|
-
gap: "5px",
|
|
135
|
-
"justify-content": "flex-end",
|
|
136
|
-
width: "100%",
|
|
137
|
-
"padding-right": "3px"
|
|
138
|
-
} }, kt = ["data-cell"], At = { style: {
|
|
139
|
-
display: "flex",
|
|
140
|
-
"align-items": "center",
|
|
141
|
-
gap: "5px",
|
|
142
|
-
"justify-content": "flex-end",
|
|
143
|
-
width: "100%",
|
|
144
|
-
"padding-right": "3px"
|
|
145
|
-
} }, jt = ["data-cell"], Mt = { style: {
|
|
146
|
-
display: "flex",
|
|
147
|
-
"align-items": "center",
|
|
148
|
-
gap: "5px",
|
|
149
|
-
"justify-content": "flex-end",
|
|
150
|
-
width: "100%",
|
|
151
|
-
"padding-right": "3px"
|
|
152
|
-
} }, Nt = ["data-cell"], Pt = { style: {
|
|
153
|
-
display: "flex",
|
|
154
|
-
"align-items": "center",
|
|
155
|
-
gap: "5px",
|
|
156
|
-
"justify-content": "flex-end",
|
|
157
|
-
width: "100%",
|
|
158
|
-
"padding-right": "3px"
|
|
159
|
-
} }, Ft = ["data-cell"], It = { style: {
|
|
160
|
-
display: "flex",
|
|
161
|
-
"align-items": "center",
|
|
162
|
-
gap: "5px",
|
|
163
|
-
"justify-content": "flex-end",
|
|
164
|
-
width: "100%",
|
|
165
|
-
"padding-right": "3px"
|
|
166
|
-
} }, Lt = ["data-cell"], Rt = { style: {
|
|
167
|
-
display: "flex",
|
|
168
|
-
"align-items": "center",
|
|
169
|
-
gap: "5px",
|
|
170
|
-
"justify-content": "flex-end",
|
|
171
|
-
width: "100%",
|
|
172
|
-
"padding-right": "3px"
|
|
173
|
-
} }, zt = /*#__PURE__*/ Te({
|
|
174
|
-
__name: "vue-ui-horizontal-bar",
|
|
175
|
-
props: {
|
|
176
|
-
config: {
|
|
177
|
-
type: Object,
|
|
178
|
-
default() {
|
|
179
|
-
return {};
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
dataset: {
|
|
183
|
-
type: Array,
|
|
184
|
-
default() {
|
|
185
|
-
return [];
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
emits: [
|
|
190
|
-
"selectLegend",
|
|
191
|
-
"copyAlt",
|
|
192
|
-
"selectDatapoint"
|
|
193
|
-
],
|
|
194
|
-
setup(e, { expose: Te, emit: Ze }) {
|
|
195
|
-
qe((e) => ({ v36eb389c: e.tdo }));
|
|
196
|
-
let zt = Be(() => import("./Tooltip-C3jBTIhR.js")), Bt = Be(() => import("./BaseIcon-CVrQHhw1.js").then((e) => e.n)), Vt = Be(() => import("./PenAndPaper-DzM1vUXR.js").then((e) => e.t)), Ht = Be(() => import("./UserOptions-m0uxKoiy.js").then((e) => e.n)), Ut = Be(() => import("./PackageVersion-hRJtldYi.js").then((e) => e.t)), Wt = Be(() => import("./BaseDraggableDialog-BCQY4Tir.js").then((e) => e.n)), { vue_ui_vertical_bar: Gt } = me(), { isThemeValid: Kt, warnInvalidTheme: qt } = ye(), Jt = Je(), O = e, Yt = f({
|
|
197
|
-
get() {
|
|
198
|
-
return !!O.dataset && O.dataset.length;
|
|
199
|
-
},
|
|
200
|
-
set(e) {
|
|
201
|
-
return e;
|
|
202
|
-
}
|
|
203
|
-
}), k = S(se()), Xt = S(!1), Zt = S(""), Qt = S(null), $t = S(0), A = S(null), en = S(null), tn = S(null), nn = S(null), rn = S(null), an = S(0), on = S(0), sn = S(null), cn = S(null), ln = S(null), un = S(null), dn = S(null), j = S([]), fn = S({
|
|
204
|
-
none: 0,
|
|
205
|
-
asc: 1,
|
|
206
|
-
desc: 2
|
|
207
|
-
}), M = S(0), pn = S(!1), mn = S(0), hn = null, gn = null, N = S(null), _n = S({
|
|
208
|
-
x: 0,
|
|
209
|
-
y: 0
|
|
210
|
-
}), vn = S("pointer"), yn = Ze, P = S(kn());
|
|
211
|
-
fe({
|
|
212
|
-
config: () => P.value,
|
|
213
|
-
dataset: () => O.dataset,
|
|
214
|
-
component: "VueUiHorizontalBar",
|
|
215
|
-
rules: [pe.emptyArray, {
|
|
216
|
-
test: (e) => e.length > 50 || e.some((e) => e.children && e.children.length > 50),
|
|
217
|
-
message: [
|
|
218
|
-
"👀 There are > 50 series / bars, which will probably force users to scroll. Consider:",
|
|
219
|
-
"",
|
|
220
|
-
"▶️ Grouping small values into an \"Other\" category.",
|
|
221
|
-
"",
|
|
222
|
-
"▶️ Using filters, or several instances of the component with subsets of related series."
|
|
223
|
-
]
|
|
224
|
-
}]
|
|
225
|
-
});
|
|
226
|
-
let { transitionEnabled: F } = xe({
|
|
227
|
-
config: () => P.value.transitions,
|
|
228
|
-
dataset: () => O.dataset
|
|
229
|
-
}), I = f(() => P.value.userOptions.useCursorPointer), bn = f(() => O.config?.skeletonDataset ?? [
|
|
230
|
-
{
|
|
231
|
-
name: "",
|
|
232
|
-
value: 6,
|
|
233
|
-
color: "#d9d9d9"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: "",
|
|
237
|
-
value: 5,
|
|
238
|
-
color: "#d9d9d9"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
name: "",
|
|
242
|
-
value: 4,
|
|
243
|
-
color: "#d9d9d9"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: "",
|
|
247
|
-
value: 3,
|
|
248
|
-
color: "#d9d9d9"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: "",
|
|
252
|
-
value: 2,
|
|
253
|
-
color: "#d9d9d9"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: "",
|
|
257
|
-
value: 1,
|
|
258
|
-
color: "#d9d9d9"
|
|
259
|
-
}
|
|
260
|
-
]), xn = f(() => ne({
|
|
261
|
-
defaultConfig: {
|
|
262
|
-
useCssAnimation: !1,
|
|
263
|
-
userOptions: { show: !1 },
|
|
264
|
-
table: { show: !1 },
|
|
265
|
-
style: { chart: {
|
|
266
|
-
backgroundColor: "#99999930",
|
|
267
|
-
layout: {
|
|
268
|
-
bars: {
|
|
269
|
-
offsetX: 110,
|
|
270
|
-
dataLabels: {
|
|
271
|
-
color: "transparent",
|
|
272
|
-
value: {
|
|
273
|
-
prefix: "",
|
|
274
|
-
suffix: "",
|
|
275
|
-
formatter: null
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
nameLabels: { color: "transparent" }
|
|
279
|
-
},
|
|
280
|
-
separators: { color: "#7A7A7A" }
|
|
281
|
-
},
|
|
282
|
-
legend: {
|
|
283
|
-
show: !0,
|
|
284
|
-
backgroundColor: "transparent",
|
|
285
|
-
color: "transparent",
|
|
286
|
-
prefix: "",
|
|
287
|
-
suffix: "",
|
|
288
|
-
formatter: null
|
|
289
|
-
},
|
|
290
|
-
title: {
|
|
291
|
-
color: "#1A1A1A",
|
|
292
|
-
subtitle: { color: "#5A5A5A" }
|
|
293
|
-
}
|
|
294
|
-
} }
|
|
295
|
-
},
|
|
296
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
297
|
-
})), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = ge({
|
|
298
|
-
...Ke(O),
|
|
299
|
-
FINAL_CONFIG: P,
|
|
300
|
-
prepareConfig: kn,
|
|
301
|
-
callback: () => {
|
|
302
|
-
Promise.resolve().then(async () => {
|
|
303
|
-
H.value.showTable = P.value.table.show, Bn();
|
|
304
|
-
});
|
|
305
|
-
},
|
|
306
|
-
skeletonDataset: bn.value,
|
|
307
|
-
skeletonConfig: ne({
|
|
308
|
-
defaultConfig: P.value,
|
|
309
|
-
userConfig: xn.value
|
|
310
|
-
})
|
|
311
|
-
}), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = Me({ config: P.value }), { svgRef: On } = Ne({ config: P.value.style.chart.title });
|
|
312
|
-
function kn() {
|
|
313
|
-
let e = ve({
|
|
314
|
-
userConfig: O.config,
|
|
315
|
-
defaultConfig: Gt
|
|
316
|
-
}), t = {}, n = e.theme;
|
|
317
|
-
if (n) {
|
|
318
|
-
if (!Kt.value(e)) qt(e), t = e;
|
|
319
|
-
else {
|
|
320
|
-
let r = ve({
|
|
321
|
-
userConfig: Ie[n] || O.config,
|
|
322
|
-
defaultConfig: e
|
|
323
|
-
});
|
|
324
|
-
t = {
|
|
325
|
-
...ve({
|
|
326
|
-
userConfig: O.config,
|
|
327
|
-
defaultConfig: r
|
|
328
|
-
}),
|
|
329
|
-
customPalette: e.customPalette.length ? e.customPalette : o[n] || a
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
} else t = e;
|
|
333
|
-
return O.config && de(O.config, "events.datapointEnter") ? t.events.datapointEnter = O.config.events.datapointEnter : t.events.datapointEnter = null, O.config && de(O.config, "events.datapointLeave") ? t.events.datapointLeave = O.config.events.datapointLeave : t.events.datapointLeave = null, O.config && de(O.config, "events.datapointClick") ? t.events.datapointClick = O.config.events.datapointClick : t.events.datapointClick = null, t;
|
|
334
|
-
}
|
|
335
|
-
let L = S(P.value.style.chart.width), R = S(P.value.style.chart.height), z = S(P.value.style.chart.layout.bars.gap);
|
|
336
|
-
Ye(() => O.config, (e) => {
|
|
337
|
-
Sn.value || (P.value = kn()), Tn.value = !P.value.userOptions.showOnChartHover, an.value += 1, on.value += 1, H.value.showTable = P.value.table.show, H.value.sortDesc = P.value.style.chart.layout.bars.sort === "desc", H.value.showTooltip = P.value.style.chart.tooltip.show, L.value = P.value.style.chart.width, R.value = P.value.style.chart.height, z.value = P.value.style.chart.layout.bars.gap;
|
|
338
|
-
}, { deep: !0 }), Ye(() => O.dataset, (e) => {
|
|
339
|
-
Array.isArray(e) && e.length > 0 && (wn.value = !1);
|
|
340
|
-
}, { deep: !0 });
|
|
341
|
-
let { isPrinting: An, isImaging: jn, generatePdf: Mn, generateImage: Nn } = he({
|
|
342
|
-
elementId: `vue-ui-vertical-bar_${k.value}`,
|
|
343
|
-
fileName: P.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
344
|
-
options: P.value.userOptions.print
|
|
345
|
-
}), Pn = f(() => P.value.userOptions.show && !P.value.style.chart.title.text), Fn = f(() => ue(P.value.customPalette)), In = S(null), Ln = f(() => P.value.table.responsiveBreakpoint), Rn = f(() => P.value.debug), zn = S(0), B = S(null), V = S(null);
|
|
346
|
-
function Bn() {
|
|
347
|
-
if (A.value && (s(O.dataset) && (ae({
|
|
348
|
-
componentName: "VueUiVerticalBar",
|
|
349
|
-
type: "dataset",
|
|
350
|
-
debug: Rn.value
|
|
351
|
-
}), Yt.value = !1, wn.value = !0), s(O.dataset) || (wn.value = P.value.loading), P.value.responsive)) {
|
|
352
|
-
let e = Ee(() => {
|
|
353
|
-
let { width: e, height: t } = De({
|
|
354
|
-
chart: A.value,
|
|
355
|
-
title: P.value.style.chart.title.text ? en.value : null,
|
|
356
|
-
legend: P.value.style.chart.legend.show ? tn.value : null,
|
|
357
|
-
source: nn.value,
|
|
358
|
-
noTitle: rn.value
|
|
359
|
-
});
|
|
360
|
-
zn.value = t / 3, requestAnimationFrame(async () => {
|
|
361
|
-
R.value = t, L.value = e;
|
|
362
|
-
});
|
|
363
|
-
});
|
|
364
|
-
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), He(() => {
|
|
365
|
-
V.value = A.value?.parentNode, V.value && B.value.observe(V.value);
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
Ue(() => {
|
|
370
|
-
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
371
|
-
});
|
|
372
|
-
let H = S({
|
|
373
|
-
showTable: P.value.table.show,
|
|
374
|
-
sortDesc: P.value.style.chart.layout.bars.sort === "desc",
|
|
375
|
-
showTooltip: P.value.style.chart.tooltip.show
|
|
376
|
-
}), Vn = f(() => H.value.sortDesc), U = f(() => (Cn.value.forEach((e, t) => {
|
|
377
|
-
!e.value && !e.children && ae({
|
|
378
|
-
componentName: "VueUiVerticalBar",
|
|
379
|
-
type: "datasetAttributeEmpty",
|
|
380
|
-
property: `value (index ${t})`,
|
|
381
|
-
debug: Rn.value
|
|
382
|
-
}), e.children && (s(e.children) ? ae({
|
|
383
|
-
componentName: "VueUiVerticalBar",
|
|
384
|
-
type: "datasetAttributeEmpty",
|
|
385
|
-
property: `children (index ${t})`,
|
|
386
|
-
debug: Rn.value
|
|
387
|
-
}) : e.children.forEach((e, t) => {
|
|
388
|
-
[null, void 0].includes(e.name) && ae({
|
|
389
|
-
componentName: "VueUiVerticalBar",
|
|
390
|
-
type: "datasetSerieAttribute",
|
|
391
|
-
property: "name",
|
|
392
|
-
key: "children",
|
|
393
|
-
index: t,
|
|
394
|
-
debug: Rn.value
|
|
395
|
-
});
|
|
396
|
-
}));
|
|
397
|
-
}), Cn.value.map((e, t) => {
|
|
398
|
-
let n = `vertical_parent_${t}_${k.value}`, r = e.children && e.children.length > 0, i = u(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), o = i >= 0 ? 1 : -1;
|
|
399
|
-
return {
|
|
400
|
-
...e,
|
|
401
|
-
id: n,
|
|
402
|
-
absoluteIndex: t,
|
|
403
|
-
shape: "square",
|
|
404
|
-
opacity: j.value.includes(n) ? .5 : 1,
|
|
405
|
-
value: Math.abs(i),
|
|
406
|
-
sign: o,
|
|
407
|
-
hasChildren: r,
|
|
408
|
-
isChild: !1,
|
|
409
|
-
segregate: () => tr(n),
|
|
410
|
-
isSegregated: j.value.includes(n),
|
|
411
|
-
color: c(e.color) || Fn.value[t] || a[t] || a[t % a.length],
|
|
412
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(pn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value).map((r, s) => ({
|
|
413
|
-
...r,
|
|
414
|
-
value: u(Math.abs(r.value)),
|
|
415
|
-
absoluteIndex: t,
|
|
416
|
-
sign: r.value >= 0 ? 1 : -1,
|
|
417
|
-
isChild: !0,
|
|
418
|
-
parentId: n,
|
|
419
|
-
parentName: e.name,
|
|
420
|
-
parentValue: i,
|
|
421
|
-
parentSign: o,
|
|
422
|
-
id: `vertical_child_${t}_${s}_${k.value}`,
|
|
423
|
-
childIndex: s,
|
|
424
|
-
color: c(r.color) || c(e.color) || Fn.value[t] || a[t] || a[t % a.length]
|
|
425
|
-
})).map((t, n) => ({
|
|
426
|
-
...t,
|
|
427
|
-
isFirstChild: n === 0,
|
|
428
|
-
isLastChild: n === e.children.length - 1
|
|
429
|
-
}))
|
|
430
|
-
};
|
|
431
|
-
}).toSorted(pn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value))), W = f(() => U.value.filter((e) => !j.value.includes(e.id))), G = f(() => W.value.flatMap((e) => e.hasChildren ? e.children : e)), Hn = f(() => U.value.flatMap((e) => e.hasChildren ? e.children : e)), Un = f(() => W.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Wn = f(() => ({
|
|
432
|
-
cy: "vertical-bar-div-legend",
|
|
433
|
-
backgroundColor: P.value.style.chart.legend.backgroundColor,
|
|
434
|
-
color: P.value.style.chart.legend.color,
|
|
435
|
-
fontSize: P.value.style.chart.legend.fontSize,
|
|
436
|
-
paddingBottom: 12,
|
|
437
|
-
fontWeight: P.value.style.chart.legend.bold ? "bold" : ""
|
|
438
|
-
})), K = f(() => P.value.style.chart.layout.bars.parentLabels.show ? P.value.style.chart.layout.bars.parentLabels.fontSize * 3 + P.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), q = f(() => {
|
|
439
|
-
let e = [], t = 0;
|
|
440
|
-
return G.value.forEach((n, r) => {
|
|
441
|
-
n.isChild && n.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
|
|
442
|
-
}), e;
|
|
443
|
-
}), J = f(() => {
|
|
444
|
-
let e = Math.max(0, ...q.value) * K.value;
|
|
445
|
-
return (R.value - 24 - (Un.value - 1) * z.value - e) / Un.value;
|
|
446
|
-
}), Y = f(() => ({
|
|
447
|
-
width: L.value,
|
|
448
|
-
height: R.value,
|
|
449
|
-
padding: {
|
|
450
|
-
top: 12,
|
|
451
|
-
left: 128 + P.value.style.chart.layout.bars.offsetX,
|
|
452
|
-
right: 64 + P.value.style.chart.layout.bars.paddingRight,
|
|
453
|
-
bottom: 12
|
|
454
|
-
}
|
|
455
|
-
})), Gn = S(0);
|
|
456
|
-
function Kn() {
|
|
457
|
-
He(() => {
|
|
458
|
-
if (!dn.value) {
|
|
459
|
-
Gn.value = 0;
|
|
460
|
-
return;
|
|
461
|
-
}
|
|
462
|
-
let e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
463
|
-
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
464
|
-
return n > e ? n : e;
|
|
465
|
-
}, 0);
|
|
466
|
-
Gn.value = e + 12;
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
Ye(() => [
|
|
470
|
-
G.value,
|
|
471
|
-
L.value,
|
|
472
|
-
R.value,
|
|
473
|
-
P.value.style.chart.layout.bars.nameLabels,
|
|
474
|
-
P.value.style.chart.layout.bars.offsetX
|
|
475
|
-
], () => Kn(), { deep: !0 }), We(() => {
|
|
476
|
-
Kn();
|
|
477
|
-
});
|
|
478
|
-
function qn() {
|
|
479
|
-
return typeof document > "u" ? null : (hn || (hn = document.createElement("canvas"), gn = hn.getContext("2d")), gn);
|
|
480
|
-
}
|
|
481
|
-
function Jn(e) {
|
|
482
|
-
let t = String(e ?? ""), n = P.value.style.chart.layout.bars, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = P.value.style.fontFamily, o = qn();
|
|
483
|
-
return o ? (o.font = `${i} ${r}px ${a}`, o.measureText(t).width) : t.length * r * .6;
|
|
484
|
-
}
|
|
485
|
-
function Yn() {
|
|
486
|
-
let e = W.value.flatMap((e) => e.children && e.children.length ? e.children.map((e) => Math.abs(e.value)) : Math.abs(e.value));
|
|
487
|
-
return e.length ? Math.max(...e) : 0;
|
|
488
|
-
}
|
|
489
|
-
let Xn = f(() => {
|
|
490
|
-
mn.value;
|
|
491
|
-
let e = P.value.style.chart.layout.bars, t = Gn.value + Math.abs(e.nameLabels.offsetX) + e.offsetX, n = Y.value.width - Y.value.padding.right, r = Math.max(0, n - t - e.offsetX), i = Y.value.width - 40, a = Yn(), o = G.value.map((e, t) => ({
|
|
492
|
-
serie: e,
|
|
493
|
-
textWidth: Jn(yr(e.value, e, t, e.sign))
|
|
494
|
-
}));
|
|
495
|
-
if (!o.length || r <= 0) return {
|
|
496
|
-
left: 0,
|
|
497
|
-
right: 0
|
|
498
|
-
};
|
|
499
|
-
if (!o.some(({ serie: e }) => e.sign === -1)) {
|
|
500
|
-
let n = o.reduce((n, { serie: o, textWidth: s }) => {
|
|
501
|
-
let c = a ? Math.abs(o.value) / a : 0;
|
|
502
|
-
if (c <= 0 || s <= 0) return n;
|
|
503
|
-
let ee = (t + r * c + 3 + e.dataLabels.offsetX + s - i) / c;
|
|
504
|
-
return Math.max(n, ee);
|
|
505
|
-
}, 0);
|
|
506
|
-
return {
|
|
507
|
-
left: 0,
|
|
508
|
-
right: Math.ceil(Math.min(r, Math.max(0, n)))
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
let s = t + r / 2, c = -Infinity, ee = Infinity;
|
|
512
|
-
o.forEach(({ serie: t, textWidth: n }) => {
|
|
513
|
-
if (t.sign === -1) {
|
|
514
|
-
let t = s + 12 + e.dataLabels.offsetX + n;
|
|
515
|
-
ee = Math.min(ee, i - t);
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
let r = s - 12 - e.dataLabels.offsetX - n;
|
|
519
|
-
c = Math.max(c, 40 - r);
|
|
520
|
-
});
|
|
521
|
-
let te = 0;
|
|
522
|
-
te = c > ee ? (c + ee) / 2 : Math.min(ee, Math.max(c, 0));
|
|
523
|
-
let l = te * 2;
|
|
524
|
-
return l >= 0 ? {
|
|
525
|
-
left: Math.ceil(Math.min(r, l)),
|
|
526
|
-
right: 0
|
|
527
|
-
} : {
|
|
528
|
-
left: 0,
|
|
529
|
-
right: Math.ceil(Math.min(r, -l))
|
|
530
|
-
};
|
|
531
|
-
}), Zn = f(() => Xn.value.right), Qn = f(() => Xn.value.left);
|
|
532
|
-
function $n() {
|
|
533
|
-
mn.value += 1;
|
|
534
|
-
}
|
|
535
|
-
We(() => {
|
|
536
|
-
typeof document > "u" || !document.fonts || (document.fonts.ready.then($n), document.fonts.addEventListener?.("loadingdone", $n));
|
|
537
|
-
}), Ue(() => {
|
|
538
|
-
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone", $n), hn = null, gn = null;
|
|
539
|
-
});
|
|
540
|
-
let X = f(() => {
|
|
541
|
-
let e = Gn.value + Math.abs(P.value.style.chart.layout.bars.nameLabels.offsetX) + Qn.value + P.value.style.chart.layout.bars.offsetX, t = Y.value.width - Y.value.padding.right, n = Math.max(0, t - e - Zn.value - P.value.style.chart.layout.bars.offsetX);
|
|
542
|
-
return {
|
|
543
|
-
top: Y.value.padding.top,
|
|
544
|
-
bottom: Y.value.padding.top + Y.value.height,
|
|
545
|
-
left: e,
|
|
546
|
-
right: t,
|
|
547
|
-
width: n,
|
|
548
|
-
fullHeight: Y.value.padding.top + Y.value.padding.bottom + Y.value.height
|
|
549
|
-
};
|
|
550
|
-
});
|
|
551
|
-
function er() {
|
|
552
|
-
j.value.length ? j.value = [] : U.value.forEach((e) => {
|
|
553
|
-
j.value.push(e.id);
|
|
554
|
-
}), yn("selectLegend", W.value);
|
|
555
|
-
}
|
|
556
|
-
async function tr(e) {
|
|
557
|
-
if (j.value.includes(e)) j.value = j.value.filter((t) => t !== e);
|
|
558
|
-
else {
|
|
559
|
-
if (j.value.length === U.value.length - 1) return;
|
|
560
|
-
j.value.push(e);
|
|
561
|
-
}
|
|
562
|
-
yn("selectLegend", W.value);
|
|
563
|
-
}
|
|
564
|
-
function nr(e) {
|
|
565
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (Rn.value && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (Rn.value && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
566
|
-
}
|
|
567
|
-
function rr(e) {
|
|
568
|
-
let t = nr(e);
|
|
569
|
-
t !== null && j.value.includes(t.id) && tr(t.id);
|
|
570
|
-
}
|
|
571
|
-
function ir(e) {
|
|
572
|
-
let t = nr(e);
|
|
573
|
-
t !== null && (j.value.includes(t.id) || tr(t.id));
|
|
574
|
-
}
|
|
575
|
-
let Z = f(() => W.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
576
|
-
function ar(e, t = !1, n = 0) {
|
|
577
|
-
return t ? l({
|
|
578
|
-
v: u(Math.abs(e) / Z.value * 100),
|
|
579
|
-
s: "%",
|
|
580
|
-
r: n
|
|
581
|
-
}) : Math.abs(e) / Z.value;
|
|
582
|
-
}
|
|
583
|
-
let or = f(() => G.value.map((e) => e.sign).includes(-1)), sr = f(() => Math.max(...W.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
584
|
-
function Q(e) {
|
|
585
|
-
let t = e / sr.value;
|
|
586
|
-
return u(X.value.width / (or.value ? 2 : 1) * t);
|
|
587
|
-
}
|
|
588
|
-
function cr(e) {
|
|
589
|
-
return Q(e) + X.value.left;
|
|
590
|
-
}
|
|
591
|
-
function lr(e, t) {
|
|
592
|
-
let n = W.value.find((t) => t.id === e.parentId);
|
|
593
|
-
return {
|
|
594
|
-
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value - K.value + P.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
595
|
-
name: n.name,
|
|
596
|
-
value: [
|
|
597
|
-
void 0,
|
|
598
|
-
NaN,
|
|
599
|
-
null
|
|
600
|
-
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
601
|
-
percentageToTotal: isNaN(n.value / Z.value) ? "" : ar(n.value, !0, P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
602
|
-
sign: n.sign
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
function ur() {
|
|
606
|
-
return W.value;
|
|
607
|
-
}
|
|
608
|
-
function dr(e, t) {
|
|
609
|
-
return lr(e, t).name;
|
|
610
|
-
}
|
|
611
|
-
function fr(e, t) {
|
|
612
|
-
let n = lr(e, t);
|
|
613
|
-
return yr(n.value, n, t, e.parentSign || e.sign);
|
|
614
|
-
}
|
|
615
|
-
let pr = S(null), mr = S(null);
|
|
616
|
-
function hr({ datapoint: e, seriesIndex: t }) {
|
|
617
|
-
yn("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
618
|
-
datapoint: e,
|
|
619
|
-
seriesIndex: t
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
function gr({ datapoint: e, seriesIndex: t }) {
|
|
623
|
-
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
624
|
-
datapoint: e,
|
|
625
|
-
seriesIndex: t
|
|
626
|
-
}), Qt.value = null, Xt.value = !1, pr.value = null, N.value === t && (N.value = null);
|
|
627
|
-
}
|
|
628
|
-
function _r(e, t, n = "pointer") {
|
|
629
|
-
vn.value = n, P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
630
|
-
datpoint: e,
|
|
631
|
-
seriesIndex: t
|
|
632
|
-
}), N.value = t, Qt.value = e, mr.value = {
|
|
633
|
-
datapoint: e,
|
|
634
|
-
seriesIndex: t,
|
|
635
|
-
series: U.value,
|
|
636
|
-
config: P.value
|
|
637
|
-
}, Xt.value = !0, pr.value = e.id;
|
|
638
|
-
let r = "", i = e.isChild ? e.parentName : e.name, a = e.isChild ? e.name : "", o = P.value.style.chart.tooltip.customFormat;
|
|
639
|
-
ee(o) && ie(() => o({
|
|
640
|
-
datapoint: e,
|
|
641
|
-
series: U.value,
|
|
642
|
-
config: P.value,
|
|
643
|
-
seriesIndex: t
|
|
644
|
-
})) ? Zt.value = o({
|
|
645
|
-
datapoint: e,
|
|
646
|
-
series: U.value,
|
|
647
|
-
config: P.value,
|
|
648
|
-
seriesIndex: t
|
|
649
|
-
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
650
|
-
<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="${e.color}"/>${Jt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${k.value}_${e.absoluteIndex})"/>` : ""}</svg> ${i}</div>
|
|
651
|
-
${a ? `<div>${a}</div>` : ""}
|
|
652
|
-
</div>`, P.value.style.chart.tooltip.showValue && (r += `<div>${P.value.translations.value}: <b>${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, l({
|
|
653
|
-
p: P.value.style.chart.tooltip.prefix,
|
|
654
|
-
v: e.sign === 1 ? e.value : -e.value,
|
|
655
|
-
s: P.value.style.chart.tooltip.suffix,
|
|
656
|
-
r: P.value.style.chart.tooltip.roundingValue
|
|
657
|
-
}), {
|
|
658
|
-
datapoint: e,
|
|
659
|
-
seriesIndex: t
|
|
660
|
-
})}</b></div>`), P.value.style.chart.tooltip.showPercentage && (r += `<div>${P.value.translations.percentageToTotal} : <b>${l({
|
|
661
|
-
v: Math.abs(e.value) / Z.value * 100,
|
|
662
|
-
s: "%",
|
|
663
|
-
r: P.value.style.chart.tooltip.roundingPercentage
|
|
664
|
-
})}</b></div>`, e.isChild && (r += `<div>${P.value.translations.percentageToSerie}: <b>${l({
|
|
665
|
-
v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
|
|
666
|
-
s: "%",
|
|
667
|
-
r: P.value.style.chart.tooltip.roundingPercentage
|
|
668
|
-
})}</b></div>`)), Zt.value = `<div style="text-align:left">${r}</div>`);
|
|
669
|
-
}
|
|
670
|
-
function vr({ legend: e, index: t }) {
|
|
671
|
-
let n = P.value.style.chart.legend;
|
|
672
|
-
return n.showValue ? `${e.name}: ${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, l({
|
|
673
|
-
p: n.prefix,
|
|
674
|
-
v: e.value,
|
|
675
|
-
s: n.suffix,
|
|
676
|
-
r: n.roundingValue
|
|
677
|
-
}), {
|
|
678
|
-
datapoint: e,
|
|
679
|
-
seriesIndex: t
|
|
680
|
-
})}` : e.name;
|
|
681
|
-
}
|
|
682
|
-
function yr(e, t, n, r) {
|
|
683
|
-
if (!P.value.style.chart.layout.bars.dataLabels.value.show) return "";
|
|
684
|
-
let i = re(P.value.style.chart.layout.bars.dataLabels.value.formatter, u(r === -1 && e >= 0 ? -e : e), l({
|
|
685
|
-
p: P.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
686
|
-
v: u(r === -1 && e >= 0 ? -e : e),
|
|
687
|
-
s: P.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
688
|
-
r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
689
|
-
}), {
|
|
690
|
-
datapoint: t,
|
|
691
|
-
seriesIndex: n
|
|
692
|
-
}), a = `(${ar(e, !0, P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
693
|
-
return `${i}${P.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${a}` : ""}`;
|
|
694
|
-
}
|
|
695
|
-
let $ = f(() => ({
|
|
696
|
-
head: [
|
|
697
|
-
P.value.translations.parentName,
|
|
698
|
-
P.value.translations.value,
|
|
699
|
-
P.value.translations.percentageToTotal,
|
|
700
|
-
P.value.translations.childName,
|
|
701
|
-
P.value.translations.value,
|
|
702
|
-
P.value.translations.percentageToSerie,
|
|
703
|
-
P.value.translations.percentageToTotal
|
|
704
|
-
],
|
|
705
|
-
body: G.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
706
|
-
color: e.color,
|
|
707
|
-
parentName: e.parentName,
|
|
708
|
-
parentValue: e.parentValue,
|
|
709
|
-
percentageToTotal: e.parentValue / Z.value,
|
|
710
|
-
childName: e.name,
|
|
711
|
-
childValue: e.sign === 1 ? e.value : -e.value,
|
|
712
|
-
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
713
|
-
childPercentageToTotal: Math.abs(e.value) / Z.value
|
|
714
|
-
} : {
|
|
715
|
-
color: "",
|
|
716
|
-
parentName: "",
|
|
717
|
-
parentValue: "",
|
|
718
|
-
percentageToTotal: "",
|
|
719
|
-
childName: e.name,
|
|
720
|
-
childValue: e.sign === 1 ? e.value : -e.value,
|
|
721
|
-
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
722
|
-
childPercentageToTotal: Math.abs(e.value) / Z.value
|
|
723
|
-
} : {
|
|
724
|
-
color: e.color,
|
|
725
|
-
parentName: e.name,
|
|
726
|
-
parentValue: e.sign === 1 ? e.value : -e.value,
|
|
727
|
-
percentageToTotal: Math.abs(e.value) / Z.value,
|
|
728
|
-
childName: "",
|
|
729
|
-
childValue: "",
|
|
730
|
-
childPercentageToParent: "",
|
|
731
|
-
childPercentageToTotal: ""
|
|
732
|
-
})
|
|
733
|
-
}));
|
|
734
|
-
function br(e = null) {
|
|
735
|
-
let r = [
|
|
736
|
-
[P.value.style.chart.title.text],
|
|
737
|
-
[P.value.style.chart.title.subtitle.text],
|
|
738
|
-
[""]
|
|
739
|
-
], i = $.value.head, a = $.value.body.map((e) => [
|
|
740
|
-
e.parentName,
|
|
741
|
-
e.parentValue,
|
|
742
|
-
e.percentageToTotal,
|
|
743
|
-
e.childName,
|
|
744
|
-
e.childValue,
|
|
745
|
-
e.childPercentageToParent,
|
|
746
|
-
e.childPercentageToTotal
|
|
747
|
-
]), o = r.concat([i]).concat(a), s = n(o);
|
|
748
|
-
e ? e(s) : t({
|
|
749
|
-
csvContent: s,
|
|
750
|
-
title: P.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
let xr = S(!1);
|
|
754
|
-
function Sr(e) {
|
|
755
|
-
xr.value = e, $t.value += 1;
|
|
756
|
-
}
|
|
757
|
-
function Cr() {
|
|
758
|
-
H.value.showTable = !H.value.showTable;
|
|
759
|
-
}
|
|
760
|
-
We(() => {
|
|
761
|
-
[
|
|
762
|
-
"none",
|
|
763
|
-
"asc",
|
|
764
|
-
"desc"
|
|
765
|
-
].includes(P.value.style.chart.layout.bars.sort) || ae({
|
|
766
|
-
componentName: "VueUiVerticalBar",
|
|
767
|
-
type: "attributeWrongValue",
|
|
768
|
-
property: "style.chart.layout.bars.sort",
|
|
769
|
-
key: P.value.style.chart.layout.bars.sort
|
|
770
|
-
}), M.value = fn.value[P.value.style.chart.layout.bars.sort], H.value.sortDesc = M.value === 2, pn.value = M.value === 0;
|
|
771
|
-
});
|
|
772
|
-
function wr() {
|
|
773
|
-
M.value += 1, M.value > 2 && (M.value = 0);
|
|
774
|
-
}
|
|
775
|
-
function Tr() {
|
|
776
|
-
wr(), H.value.sortDesc = M.value === 2, pn.value = M.value === 0;
|
|
777
|
-
}
|
|
778
|
-
function Er() {
|
|
779
|
-
H.value.showTooltip = !H.value.showTooltip;
|
|
780
|
-
}
|
|
781
|
-
let Dr = S(!1);
|
|
782
|
-
function Or() {
|
|
783
|
-
Dr.value = !Dr.value;
|
|
784
|
-
}
|
|
785
|
-
async function kr({ scale: e = 2 } = {}) {
|
|
786
|
-
if (!A.value) return;
|
|
787
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
788
|
-
domElement: A.value,
|
|
789
|
-
base64: !0,
|
|
790
|
-
img: !0,
|
|
791
|
-
scale: e
|
|
792
|
-
});
|
|
793
|
-
return {
|
|
794
|
-
imageUri: i,
|
|
795
|
-
base64: a,
|
|
796
|
-
title: P.value.style.chart.title.text,
|
|
797
|
-
width: t,
|
|
798
|
-
height: n,
|
|
799
|
-
aspectRatio: r
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
let Ar = f(() => {
|
|
803
|
-
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
804
|
-
return {
|
|
805
|
-
component: e ? Wt : ke,
|
|
806
|
-
title: `${P.value.style.chart.title.text}${P.value.style.chart.title.subtitle.text ? `: ${P.value.style.chart.title.subtitle.text}` : ""}`,
|
|
807
|
-
props: e ? {
|
|
808
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
809
|
-
color: P.value.table.th.color,
|
|
810
|
-
headerColor: P.value.table.th.color,
|
|
811
|
-
headerBg: P.value.table.th.backgroundColor,
|
|
812
|
-
isFullscreen: xr.value,
|
|
813
|
-
fullscreenParent: A.value,
|
|
814
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
815
|
-
isCursorPointer: I.value
|
|
816
|
-
} : {
|
|
817
|
-
hideDetails: !0,
|
|
818
|
-
config: {
|
|
819
|
-
open: t,
|
|
820
|
-
maxHeight: 1e4,
|
|
821
|
-
body: {
|
|
822
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
823
|
-
color: P.value.style.chart.color
|
|
824
|
-
},
|
|
825
|
-
head: {
|
|
826
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
827
|
-
color: P.value.style.chart.color
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
});
|
|
833
|
-
Ye(() => H.value.showTable, (e) => {
|
|
834
|
-
P.value.table.show || (e && P.value.table.useDialog && cn.value ? cn.value.open() : "close" in cn.value && cn.value.close());
|
|
835
|
-
});
|
|
836
|
-
let { isResponsive: jr } = Pe(In, Ln);
|
|
837
|
-
function Mr() {
|
|
838
|
-
H.value.showTable = !1, ln.value && ln.value.setTableIconState(!1);
|
|
839
|
-
}
|
|
840
|
-
let Nr = f(() => U.value.map((e, t) => ({
|
|
841
|
-
...e,
|
|
842
|
-
shape: "square",
|
|
843
|
-
display: `${e.name}: ${re(P.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, l({
|
|
844
|
-
p: P.value.style.chart.legend.prefix,
|
|
845
|
-
v: e.value,
|
|
846
|
-
s: P.value.style.chart.legend.suffix,
|
|
847
|
-
r: P.value.style.chart.legend.roundingValue
|
|
848
|
-
}), {
|
|
849
|
-
datapoint: e,
|
|
850
|
-
seriesIndex: t
|
|
851
|
-
})}`
|
|
852
|
-
}))), Pr = f(() => P.value.style.chart.backgroundColor), Fr = f(() => P.value.style.chart.legend), Ir = f(() => P.value.style.chart.title), Lr = f(() => Nr.value.map((e) => ({
|
|
853
|
-
...e,
|
|
854
|
-
name: e.display
|
|
855
|
-
}))), { isCallbackImaging: Rr, isCallbackSvg: zr, generateSvg: Br, onGenerateImage: Vr } = be({
|
|
856
|
-
svg: On,
|
|
857
|
-
title: Ir,
|
|
858
|
-
legend: Fr,
|
|
859
|
-
legendItems: Lr,
|
|
860
|
-
backgroundColor: Pr,
|
|
861
|
-
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
862
|
-
generateImage: Nn
|
|
863
|
-
});
|
|
864
|
-
function Hr() {
|
|
865
|
-
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
866
|
-
}
|
|
867
|
-
async function Ur() {
|
|
868
|
-
if (yn("copyAlt", {
|
|
869
|
-
config: P.value,
|
|
870
|
-
dataset: W.value
|
|
871
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
872
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
873
|
-
return;
|
|
874
|
-
}
|
|
875
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
876
|
-
config: P.value,
|
|
877
|
-
dataset: W.value
|
|
878
|
-
}));
|
|
879
|
-
}
|
|
880
|
-
let Wr = S(!1);
|
|
881
|
-
function Gr() {
|
|
882
|
-
N.value = null, Wr.value = !0;
|
|
883
|
-
}
|
|
884
|
-
function Kr() {
|
|
885
|
-
N.value = null, Xt.value = !1, Wr.value = !1;
|
|
886
|
-
}
|
|
887
|
-
function qr() {
|
|
888
|
-
if (N.value === null) return;
|
|
889
|
-
let e = G.value[N.value];
|
|
890
|
-
e && gr({
|
|
891
|
-
datapoint: e,
|
|
892
|
-
seriesIndex: N.value
|
|
893
|
-
}), N.value = null, vn.value = "pointer";
|
|
894
|
-
}
|
|
895
|
-
function Jr(e) {
|
|
896
|
-
if (!On.value || Dr.value || document.activeElement !== On.value) return;
|
|
897
|
-
let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
898
|
-
if (!t && !n && !r && !i) return;
|
|
899
|
-
let a = G.value.length;
|
|
900
|
-
if (!a) return;
|
|
901
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
902
|
-
qr();
|
|
903
|
-
return;
|
|
904
|
-
}
|
|
905
|
-
if (r) {
|
|
906
|
-
if (N.value === null) return;
|
|
907
|
-
let e = G.value[N.value];
|
|
908
|
-
if (!e) return;
|
|
909
|
-
hr({
|
|
910
|
-
datapoint: e,
|
|
911
|
-
seriesIndex: N.value
|
|
912
|
-
});
|
|
913
|
-
return;
|
|
914
|
-
}
|
|
915
|
-
let o = N.value, s = Qt.value ? G.value.findIndex((e) => e.id === Qt.value.id) : null;
|
|
916
|
-
o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
|
|
917
|
-
let c = G.value[o];
|
|
918
|
-
c && (N.value = o, Yr(c), _r(c, o, "keyboard"));
|
|
919
|
-
}
|
|
920
|
-
function Yr(e) {
|
|
921
|
-
if (!e) return;
|
|
922
|
-
let t = X.value.right, n = X.value.top + (z.value + J.value) * e.absoluteIndex + q.value[e.absoluteIndex] * K.value;
|
|
923
|
-
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
924
|
-
let r = ce(t, n, On.value);
|
|
925
|
-
r && (_n.value = r);
|
|
926
|
-
}
|
|
927
|
-
let Xr = f(() => ({
|
|
928
|
-
head: $.value.head,
|
|
929
|
-
body: $.value.body.map((e) => [
|
|
930
|
-
e.parentName,
|
|
931
|
-
e.parentValue === "" ? "" : l({
|
|
932
|
-
v: e.parentValue,
|
|
933
|
-
r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
934
|
-
p: P.value.style.chart.layout.bars.dataLabels.prefix,
|
|
935
|
-
s: P.value.style.chart.layout.bars.dataLabels.suffix
|
|
936
|
-
}),
|
|
937
|
-
e.percentageToTotal === "" ? "" : l({
|
|
938
|
-
v: e.percentageToTotal * 100,
|
|
939
|
-
r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
940
|
-
s: "%"
|
|
941
|
-
}),
|
|
942
|
-
e.childName,
|
|
943
|
-
e.childValue === "" ? "" : l({
|
|
944
|
-
v: e.childValue,
|
|
945
|
-
r: P.value.style.chart.layout.bars.dataLabels.value.roundingValue,
|
|
946
|
-
p: P.value.style.chart.layout.bars.dataLabels.prefix,
|
|
947
|
-
s: P.value.style.chart.layout.bars.dataLabels.suffix
|
|
948
|
-
}),
|
|
949
|
-
e.childPercentageToParent === "" ? "" : l({
|
|
950
|
-
v: e.childPercentageToParent * 100,
|
|
951
|
-
r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
952
|
-
s: "%"
|
|
953
|
-
}),
|
|
954
|
-
e.childPercentageToTotal === "" ? "" : l({
|
|
955
|
-
v: e.childPercentageToTotal * 100,
|
|
956
|
-
r: P.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage,
|
|
957
|
-
s: "%"
|
|
958
|
-
})
|
|
959
|
-
]),
|
|
960
|
-
caption: P.value.a11y.translations.tableCaption,
|
|
961
|
-
notice: P.value.a11y.translations.tableAvailable
|
|
962
|
-
}));
|
|
963
|
-
return Te({
|
|
964
|
-
autoSize: Hr,
|
|
965
|
-
getData: ur,
|
|
966
|
-
getImage: kr,
|
|
967
|
-
generatePdf: Mn,
|
|
968
|
-
generateCsv: br,
|
|
969
|
-
generateImage: Nn,
|
|
970
|
-
generateSvg: Br,
|
|
971
|
-
hideSeries: ir,
|
|
972
|
-
showSeries: rr,
|
|
973
|
-
toggleTable: Cr,
|
|
974
|
-
toggleSort: Tr,
|
|
975
|
-
toggleTooltip: Er,
|
|
976
|
-
toggleAnnotator: Or,
|
|
977
|
-
toggleFullscreen: Sr,
|
|
978
|
-
copyAlt: Ur
|
|
979
|
-
}), (e, t) => (x(), h("div", {
|
|
980
|
-
class: v(`vue-data-ui-component vue-ui-vertical-bar ${xr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${P.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
981
|
-
ref_key: "verticalBarChart",
|
|
982
|
-
ref: A,
|
|
983
|
-
id: `vue-ui-vertical-bar_${k.value}`,
|
|
984
|
-
style: b(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor};height:100%`),
|
|
985
|
-
onMouseenter: t[3] ||= () => E(En)(!0),
|
|
986
|
-
onMouseleave: t[4] ||= () => E(En)(!1)
|
|
987
|
-
}, [
|
|
988
|
-
g("p", {
|
|
989
|
-
id: `chart-instructions-${k.value}`,
|
|
990
|
-
class: "sr-only"
|
|
991
|
-
}, T(P.value.a11y.translations.keyboardNavigation), 9, $e),
|
|
992
|
-
Xr.value.body.length ? (x(), p(je, {
|
|
993
|
-
key: 0,
|
|
994
|
-
uid: k.value,
|
|
995
|
-
head: Xr.value.head,
|
|
996
|
-
body: Xr.value.body,
|
|
997
|
-
caption: Xr.value.caption,
|
|
998
|
-
notice: Xr.value.notice
|
|
999
|
-
}, null, 8, [
|
|
1000
|
-
"uid",
|
|
1001
|
-
"head",
|
|
1002
|
-
"body",
|
|
1003
|
-
"caption",
|
|
1004
|
-
"notice"
|
|
1005
|
-
])) : m("", !0),
|
|
1006
|
-
P.value.userOptions.buttons.annotator ? (x(), p(E(Vt), {
|
|
1007
|
-
key: 1,
|
|
1008
|
-
svgRef: E(On),
|
|
1009
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1010
|
-
color: P.value.style.chart.color,
|
|
1011
|
-
active: Dr.value,
|
|
1012
|
-
isCursorPointer: I.value,
|
|
1013
|
-
onClose: Or
|
|
1014
|
-
}, {
|
|
1015
|
-
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1016
|
-
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
1017
|
-
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
1018
|
-
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
1019
|
-
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
1020
|
-
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
1021
|
-
_: 3
|
|
1022
|
-
}, 8, [
|
|
1023
|
-
"svgRef",
|
|
1024
|
-
"backgroundColor",
|
|
1025
|
-
"color",
|
|
1026
|
-
"active",
|
|
1027
|
-
"isCursorPointer"
|
|
1028
|
-
])) : m("", !0),
|
|
1029
|
-
Pn.value ? (x(), h("div", {
|
|
1030
|
-
key: 2,
|
|
1031
|
-
ref_key: "noTitle",
|
|
1032
|
-
ref: rn,
|
|
1033
|
-
class: "vue-data-ui-no-title-space",
|
|
1034
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
1035
|
-
}, null, 512)) : m("", !0),
|
|
1036
|
-
P.value.style.chart.title.text ? (x(), h("div", {
|
|
1037
|
-
key: 3,
|
|
1038
|
-
ref_key: "chartTitle",
|
|
1039
|
-
ref: en,
|
|
1040
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1041
|
-
}, [(x(), p(Ce, {
|
|
1042
|
-
key: `title_${an.value}`,
|
|
1043
|
-
config: {
|
|
1044
|
-
title: {
|
|
1045
|
-
cy: "vertical-bar-div-title",
|
|
1046
|
-
...P.value.style.chart.title
|
|
1047
|
-
},
|
|
1048
|
-
subtitle: {
|
|
1049
|
-
cy: "vertical-bar-div-subtitle",
|
|
1050
|
-
...P.value.style.chart.title.subtitle
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1054
|
-
P.value.userOptions.show && Yt.value && (E(Dn) || E(Tn)) ? (x(), p(E(Ht), {
|
|
1055
|
-
ref_key: "userOptionsRef",
|
|
1056
|
-
ref: ln,
|
|
1057
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1058
|
-
color: P.value.style.chart.color,
|
|
1059
|
-
key: `user_options_${$t.value}`,
|
|
1060
|
-
isImaging: E(jn),
|
|
1061
|
-
isPrinting: E(An),
|
|
1062
|
-
uid: k.value,
|
|
1063
|
-
hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.chart.tooltip.show,
|
|
1064
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
1065
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
1066
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
1067
|
-
hasXls: P.value.userOptions.buttons.csv,
|
|
1068
|
-
hasTable: P.value.userOptions.buttons.table,
|
|
1069
|
-
hasSort: P.value.userOptions.buttons.sort,
|
|
1070
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1071
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1072
|
-
isFullscreen: xr.value,
|
|
1073
|
-
isTooltip: H.value.showTooltip,
|
|
1074
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
1075
|
-
chartElement: A.value,
|
|
1076
|
-
position: P.value.userOptions.position,
|
|
1077
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1078
|
-
isAnnotation: Dr.value,
|
|
1079
|
-
callbacks: P.value.userOptions.callbacks,
|
|
1080
|
-
printScale: P.value.userOptions.print.scale,
|
|
1081
|
-
tableDialog: P.value.table.useDialog,
|
|
1082
|
-
isCursorPointer: I.value,
|
|
1083
|
-
onToggleFullscreen: Sr,
|
|
1084
|
-
onGeneratePdf: E(Mn),
|
|
1085
|
-
onGenerateCsv: br,
|
|
1086
|
-
onGenerateImage: E(Vr),
|
|
1087
|
-
onGenerateSvg: E(Br),
|
|
1088
|
-
onToggleTable: Cr,
|
|
1089
|
-
onToggleSort: Tr,
|
|
1090
|
-
onToggleTooltip: Er,
|
|
1091
|
-
onToggleAnnotator: Or,
|
|
1092
|
-
onCopyAlt: Ur,
|
|
1093
|
-
style: b({ visibility: E(Dn) ? E(Tn) ? "visible" : "hidden" : "visible" })
|
|
1094
|
-
}, Le({ _: 2 }, [
|
|
1095
|
-
e.$slots.menuIcon ? {
|
|
1096
|
-
name: "menuIcon",
|
|
1097
|
-
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
1098
|
-
isOpen: t,
|
|
1099
|
-
color: n
|
|
1100
|
-
})), void 0, !0)]),
|
|
1101
|
-
key: "0"
|
|
1102
|
-
} : void 0,
|
|
1103
|
-
e.$slots.optionTooltip ? {
|
|
1104
|
-
name: "optionTooltip",
|
|
1105
|
-
fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1106
|
-
key: "1"
|
|
1107
|
-
} : void 0,
|
|
1108
|
-
e.$slots.optionPdf ? {
|
|
1109
|
-
name: "optionPdf",
|
|
1110
|
-
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1111
|
-
key: "2"
|
|
1112
|
-
} : void 0,
|
|
1113
|
-
e.$slots.optionCsv ? {
|
|
1114
|
-
name: "optionCsv",
|
|
1115
|
-
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1116
|
-
key: "3"
|
|
1117
|
-
} : void 0,
|
|
1118
|
-
e.$slots.optionImg ? {
|
|
1119
|
-
name: "optionImg",
|
|
1120
|
-
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1121
|
-
key: "4"
|
|
1122
|
-
} : void 0,
|
|
1123
|
-
e.$slots.optionSvg ? {
|
|
1124
|
-
name: "optionSvg",
|
|
1125
|
-
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1126
|
-
key: "5"
|
|
1127
|
-
} : void 0,
|
|
1128
|
-
e.$slots.optionTable ? {
|
|
1129
|
-
name: "optionTable",
|
|
1130
|
-
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1131
|
-
key: "6"
|
|
1132
|
-
} : void 0,
|
|
1133
|
-
e.$slots.optionLabels ? {
|
|
1134
|
-
name: "optionLabels",
|
|
1135
|
-
fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1136
|
-
key: "7"
|
|
1137
|
-
} : void 0,
|
|
1138
|
-
e.$slots.optionSort ? {
|
|
1139
|
-
name: "optionSort",
|
|
1140
|
-
fn: D(() => [w(e.$slots, "optionSort", {}, void 0, !0)]),
|
|
1141
|
-
key: "8"
|
|
1142
|
-
} : void 0,
|
|
1143
|
-
e.$slots.optionFullscreen ? {
|
|
1144
|
-
name: "optionFullscreen",
|
|
1145
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
|
|
1146
|
-
toggleFullscreen: t,
|
|
1147
|
-
isFullscreen: n
|
|
1148
|
-
})), void 0, !0)]),
|
|
1149
|
-
key: "9"
|
|
1150
|
-
} : void 0,
|
|
1151
|
-
e.$slots.optionAnnotator ? {
|
|
1152
|
-
name: "optionAnnotator",
|
|
1153
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
|
|
1154
|
-
toggleAnnotator: t,
|
|
1155
|
-
isAnnotator: n
|
|
1156
|
-
})), void 0, !0)]),
|
|
1157
|
-
key: "10"
|
|
1158
|
-
} : void 0,
|
|
1159
|
-
e.$slots.optionAltCopy ? {
|
|
1160
|
-
name: "optionAltCopy",
|
|
1161
|
-
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
1162
|
-
key: "11"
|
|
1163
|
-
} : void 0,
|
|
1164
|
-
e.$slots["custom-menu-before"] ? {
|
|
1165
|
-
name: "custom-menu-before",
|
|
1166
|
-
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1167
|
-
key: "12"
|
|
1168
|
-
} : void 0,
|
|
1169
|
-
e.$slots["custom-menu-after"] ? {
|
|
1170
|
-
name: "custom-menu-after",
|
|
1171
|
-
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1172
|
-
key: "13"
|
|
1173
|
-
} : void 0
|
|
1174
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasSort.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1175
|
-
P.value.style.chart.legend.show && P.value.style.chart.legend.position === "top" ? (x(), h("div", {
|
|
1176
|
-
key: 5,
|
|
1177
|
-
ref_key: "chartLegend",
|
|
1178
|
-
ref: tn
|
|
1179
|
-
}, [(x(), p(Fe, {
|
|
1180
|
-
key: `legend_top_${on.value}`,
|
|
1181
|
-
legendSet: U.value,
|
|
1182
|
-
config: Wn.value,
|
|
1183
|
-
onClickMarker: t[0] ||= ({ legend: e }) => tr(e.id)
|
|
1184
|
-
}, Le({
|
|
1185
|
-
item: D(({ legend: e, index: t }) => [g("div", {
|
|
1186
|
-
onClick: (t) => tr(e.id),
|
|
1187
|
-
style: b(`opacity:${j.value.includes(e.id) ? .5 : 1}`)
|
|
1188
|
-
}, T(vr({
|
|
1189
|
-
legend: e,
|
|
1190
|
-
index: t
|
|
1191
|
-
})), 13, et)]),
|
|
1192
|
-
legendToggle: D(() => [U.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !E(Sn) ? (x(), p(Ae, {
|
|
1193
|
-
key: 0,
|
|
1194
|
-
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1195
|
-
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1196
|
-
fontSize: P.value.style.chart.legend.fontSize,
|
|
1197
|
-
checked: j.value.length > 0,
|
|
1198
|
-
onToggle: er
|
|
1199
|
-
}, null, 8, [
|
|
1200
|
-
"backgroundColor",
|
|
1201
|
-
"color",
|
|
1202
|
-
"fontSize",
|
|
1203
|
-
"checked"
|
|
1204
|
-
])) : m("", !0)]),
|
|
1205
|
-
_: 2
|
|
1206
|
-
}, [e.$slots.pattern ? {
|
|
1207
|
-
name: "legend-pattern",
|
|
1208
|
-
fn: D(({ legend: e, index: t }) => [ze(we, {
|
|
1209
|
-
shape: e.shape,
|
|
1210
|
-
radius: 30,
|
|
1211
|
-
stroke: "none",
|
|
1212
|
-
plot: {
|
|
1213
|
-
x: 30,
|
|
1214
|
-
y: 30
|
|
1215
|
-
},
|
|
1216
|
-
fill: `url(#pattern_${k.value}_${t})`
|
|
1217
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1218
|
-
key: "0"
|
|
1219
|
-
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : m("", !0),
|
|
1220
|
-
g("div", tt, [(x(), h("svg", {
|
|
1221
|
-
ref_key: "svgRef",
|
|
1222
|
-
ref: On,
|
|
1223
|
-
xmlns: E(le),
|
|
1224
|
-
class: v({
|
|
1225
|
-
"vue-data-ui-fullscreen--on": xr.value,
|
|
1226
|
-
"vue-data-ui-fulscreen--off": !xr.value,
|
|
1227
|
-
"vue-data-ui-no-transition": !E(F)
|
|
1228
|
-
}),
|
|
1229
|
-
viewBox: `0 0 ${L.value} ${R.value}`,
|
|
1230
|
-
style: b(`max-width:100%;overflow:visible;background:transparent;color:${P.value.style.chart.color}`),
|
|
1231
|
-
tabindex: "0",
|
|
1232
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1233
|
-
onFocus: Gr,
|
|
1234
|
-
onBlur: Kr,
|
|
1235
|
-
onKeydown: Jr
|
|
1236
|
-
}, [g("g", {
|
|
1237
|
-
ref_key: "G",
|
|
1238
|
-
ref: sn,
|
|
1239
|
-
class: "vue-data-ui-g"
|
|
1240
|
-
}, [
|
|
1241
|
-
ze(E(Ut)),
|
|
1242
|
-
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1243
|
-
key: 0,
|
|
1244
|
-
x: 0,
|
|
1245
|
-
y: 0,
|
|
1246
|
-
width: L.value,
|
|
1247
|
-
height: R.value,
|
|
1248
|
-
style: { pointerEvents: "none" }
|
|
1249
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : m("", !0),
|
|
1250
|
-
g("defs", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), p(Oe, {
|
|
1251
|
-
t: "linear",
|
|
1252
|
-
x1: "0%",
|
|
1253
|
-
y1: "0%",
|
|
1254
|
-
x2: "100%",
|
|
1255
|
-
y2: "0%",
|
|
1256
|
-
id: `vertical_bar_gradient_${k.value}_${t}`,
|
|
1257
|
-
key: `vertical_bar_gradient_${k.value}_${t}`,
|
|
1258
|
-
stops: [[
|
|
1259
|
-
"0%",
|
|
1260
|
-
e.color,
|
|
1261
|
-
1
|
|
1262
|
-
], [
|
|
1263
|
-
"100%",
|
|
1264
|
-
E(i)(E(te)(e.color, .03), 100 - P.value.style.chart.layout.bars.gradientIntensity),
|
|
1265
|
-
1
|
|
1266
|
-
]]
|
|
1267
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1268
|
-
e.$slots.pattern ? (x(), h("g", it, [(x(!0), h(d, null, C(G.value, (t) => (x(), h("defs", null, [w(e.$slots, "pattern", Ve({ ref_for: !0 }, {
|
|
1269
|
-
seriesIndex: t.absoluteIndex,
|
|
1270
|
-
patternId: `pattern_${k.value}_${t.absoluteIndex}`
|
|
1271
|
-
}), void 0, !0)]))), 256))])) : m("", !0),
|
|
1272
|
-
P.value.style.chart.layout.bars.rowColor ? (x(!0), h(d, { key: 2 }, C(G.value, (e, t) => (x(), h("g", { key: `row_${e.id}` }, [g("rect", {
|
|
1273
|
-
x: 0,
|
|
1274
|
-
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
|
|
1275
|
-
width: L.value,
|
|
1276
|
-
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1277
|
-
fill: P.value.style.chart.layout.bars.rowColor,
|
|
1278
|
-
rx: P.value.style.chart.layout.bars.rowRadius,
|
|
1279
|
-
style: { pointerEvents: "none" },
|
|
1280
|
-
class: v({ "vue-data-ui-transition": E(F) })
|
|
1281
|
-
}, null, 10, at)]))), 128)) : m("", !0),
|
|
1282
|
-
(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", { key: `underlayer_${e.id}` }, [g("rect", {
|
|
1283
|
-
x: E(u)(or.value ? X.value.left + X.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : X.value.left),
|
|
1284
|
-
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
|
|
1285
|
-
width: E(u)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1286
|
-
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1287
|
-
fill: P.value.style.chart.layout.bars.underlayerColor,
|
|
1288
|
-
rx: P.value.style.chart.layout.bars.borderRadius,
|
|
1289
|
-
class: v({ "vue-data-ui-transition": E(F) })
|
|
1290
|
-
}, null, 10, ot)]))), 128)),
|
|
1291
|
-
(x(!0), h(d, null, C(G.value, (t, n) => (x(), h("g", { key: `barloop_${t.id}` }, [
|
|
1292
|
-
g("rect", {
|
|
1293
|
-
x: E(u)(or.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1294
|
-
y: X.value.top + (z.value + J.value) * n + q.value[n] * K.value,
|
|
1295
|
-
width: E(u)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1296
|
-
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1297
|
-
fill: P.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${k.value}_${n})` : E(i)(t.color, P.value.style.chart.layout.bars.fillOpacity),
|
|
1298
|
-
rx: P.value.style.chart.layout.bars.borderRadius,
|
|
1299
|
-
stroke: P.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1300
|
-
"stroke-width": P.value.style.chart.layout.bars.useStroke ? P.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1301
|
-
class: v({ "vue-data-ui-transition": E(F) })
|
|
1302
|
-
}, null, 10, st),
|
|
1303
|
-
e.$slots.pattern ? (x(), h("rect", {
|
|
1304
|
-
key: 0,
|
|
1305
|
-
x: E(u)(or.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1306
|
-
y: X.value.top + (z.value + J.value) * n + q.value[n] * K.value,
|
|
1307
|
-
width: E(u)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1308
|
-
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1309
|
-
fill: `url(#pattern_${k.value}_${t.absoluteIndex})`,
|
|
1310
|
-
rx: P.value.style.chart.layout.bars.borderRadius,
|
|
1311
|
-
stroke: P.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1312
|
-
"stroke-width": P.value.style.chart.layout.bars.useStroke ? P.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1313
|
-
class: v({ "vue-data-ui-transition": E(F) })
|
|
1314
|
-
}, null, 10, ct)) : m("", !0),
|
|
1315
|
-
(!t.isChild || t.isLastChild) && P.value.style.chart.layout.separators.show && n !== G.value.length - 1 ? (x(), h("path", {
|
|
1316
|
-
key: 1,
|
|
1317
|
-
stroke: P.value.style.chart.layout.separators.color,
|
|
1318
|
-
"stroke-width": P.value.style.chart.layout.separators.strokeWidth,
|
|
1319
|
-
"stroke-linecap": "round",
|
|
1320
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1321
|
-
d: `M${L.value}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * n + q.value[n] * K.value} ${P.value.style.chart.layout.separators.fullWidth ? 0 : X.value.left}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * n + q.value[n] * K.value}`
|
|
1322
|
-
}, null, 10, lt)) : m("", !0),
|
|
1323
|
-
or.value && P.value.style.chart.layout.separators.show ? (x(), h("path", {
|
|
1324
|
-
key: 2,
|
|
1325
|
-
stroke: P.value.style.chart.layout.separators.color,
|
|
1326
|
-
"stroke-width": P.value.style.chart.layout.separators.strokeWidth,
|
|
1327
|
-
"stroke-linecap": "round",
|
|
1328
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1329
|
-
d: `M${X.value.left + X.value.width / 2}, ${X.value.top} ${X.value.left + X.value.width / 2}, ${X.value.bottom}`
|
|
1330
|
-
}, null, 10, ut)) : m("", !0)
|
|
1331
|
-
]))), 128)),
|
|
1332
|
-
g("g", {
|
|
1333
|
-
ref_key: "parentLabels",
|
|
1334
|
-
ref: un
|
|
1335
|
-
}, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
|
|
1336
|
-
key: `pn_${e.id}`,
|
|
1337
|
-
class: "vue-ui-horizontal-bar-parent-label"
|
|
1338
|
-
}, [
|
|
1339
|
-
e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("rect", {
|
|
1340
|
-
key: 0,
|
|
1341
|
-
class: v(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": E(F) }]),
|
|
1342
|
-
x: 2,
|
|
1343
|
-
y: lr(e, t).y - P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1344
|
-
height: P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1345
|
-
width: P.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1346
|
-
rx: 1,
|
|
1347
|
-
fill: e.color
|
|
1348
|
-
}, null, 10, dt)) : m("", !0),
|
|
1349
|
-
e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("text", {
|
|
1350
|
-
key: 1,
|
|
1351
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1352
|
-
transform: `translate(${P.value.style.chart.layout.bars.parentLabels.offsetX + P.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y})`,
|
|
1353
|
-
"font-size": P.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1354
|
-
fill: P.value.style.chart.layout.bars.parentLabels.color,
|
|
1355
|
-
"font-weight": P.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1356
|
-
"text-anchor": "start",
|
|
1357
|
-
innerHTML: E(r)({
|
|
1358
|
-
content: `${dr(e, t)}`,
|
|
1359
|
-
fontSize: P.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1360
|
-
fill: P.value.style.chart.layout.bars.parentLabels.color,
|
|
1361
|
-
x: 0,
|
|
1362
|
-
y: 0,
|
|
1363
|
-
translateY: !1
|
|
1364
|
-
})
|
|
1365
|
-
}, null, 10, ft)) : m("", !0),
|
|
1366
|
-
e.isChild && e.childIndex === 0 && P.value.style.chart.layout.bars.parentLabels.show ? (x(), h("text", {
|
|
1367
|
-
key: 2,
|
|
1368
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1369
|
-
transform: `translate(${P.value.style.chart.layout.bars.parentLabels.offsetX + P.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y + E(oe)(dr(e, t)) * P.value.style.chart.layout.bars.parentLabels.fontSize * 1.1})`,
|
|
1370
|
-
"font-size": P.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1371
|
-
fill: P.value.style.chart.layout.bars.parentLabels.color,
|
|
1372
|
-
"font-weight": P.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1373
|
-
"text-anchor": "start"
|
|
1374
|
-
}, T(fr(e, t)), 11, pt)) : m("", !0)
|
|
1375
|
-
]))), 128))], 512),
|
|
1376
|
-
g("g", {
|
|
1377
|
-
ref_key: "childLabels",
|
|
1378
|
-
ref: dn
|
|
1379
|
-
}, [(x(!0), h(d, null, C(Hn.value, (e, t) => (x(), h("g", {
|
|
1380
|
-
key: `cl_${e.id}`,
|
|
1381
|
-
class: "vue-ui-horizontal-bar-child-label"
|
|
1382
|
-
}, [(e.isChild || !e.hasChildren) && P.value.style.chart.layout.bars.nameLabels.show ? (x(), h("text", {
|
|
1383
|
-
key: 0,
|
|
1384
|
-
"text-anchor": "start",
|
|
1385
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1386
|
-
transform: `translate(${Math.abs(P.value.style.chart.layout.bars.nameLabels.offsetX)}, ${E(u)(X.value.top + (z.value + J.value) * t + J.value / 2 + P.value.style.chart.layout.bars.nameLabels.fontSize / 2 + q.value[t] * K.value)})`,
|
|
1387
|
-
"font-size": P.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1388
|
-
fill: "transparent",
|
|
1389
|
-
"font-weight": P.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1390
|
-
style: { "user-select": "none" },
|
|
1391
|
-
innerHTML: E(r)({
|
|
1392
|
-
content: e.name,
|
|
1393
|
-
fontSize: P.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1394
|
-
fill: "transparent",
|
|
1395
|
-
x: 0,
|
|
1396
|
-
y: 0,
|
|
1397
|
-
translateY: !0
|
|
1398
|
-
})
|
|
1399
|
-
}, null, 10, mt)) : m("", !0)]))), 128))], 512),
|
|
1400
|
-
g("g", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
|
|
1401
|
-
key: `vislab_${e.id}`,
|
|
1402
|
-
class: "vue-ui-horizontal-bar-child-label"
|
|
1403
|
-
}, [(e.isChild || !e.hasChildren) && P.value.style.chart.layout.bars.nameLabels.show ? (x(), h("text", {
|
|
1404
|
-
key: 0,
|
|
1405
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1406
|
-
"text-anchor": "end",
|
|
1407
|
-
transform: `translate(${X.value.left + P.value.style.chart.layout.bars.nameLabels.offsetX - 6}, ${X.value.top + (z.value + J.value) * t + J.value / 2 + P.value.style.chart.layout.bars.nameLabels.fontSize / 3 + q.value[t] * K.value})`,
|
|
1408
|
-
"font-size": P.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1409
|
-
fill: P.value.style.chart.layout.bars.nameLabels.color,
|
|
1410
|
-
"font-weight": P.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1411
|
-
innerHTML: E(r)({
|
|
1412
|
-
content: e.name,
|
|
1413
|
-
fontSize: P.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1414
|
-
fill: P.value.style.chart.layout.bars.nameLabels.color,
|
|
1415
|
-
x: 0,
|
|
1416
|
-
y: 0,
|
|
1417
|
-
translateY: !0
|
|
1418
|
-
})
|
|
1419
|
-
}, null, 10, ht)) : m("", !0)]))), 128))]),
|
|
1420
|
-
g("g", null, [(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", {
|
|
1421
|
-
key: `sdl_${e.id}`,
|
|
1422
|
-
class: "vue-ui-horizontal-bar-child-label"
|
|
1423
|
-
}, [g("text", {
|
|
1424
|
-
class: v({ "vue-data-ui-transition": E(F) }),
|
|
1425
|
-
transform: `translate(${or.value ? X.value.left + X.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -P.value.style.chart.layout.bars.dataLabels.offsetX : P.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(cr(e.value) + 3 + P.value.style.chart.layout.bars.dataLabels.offsetX, X.value.right - 2)},${X.value.top + (z.value + J.value) * t + J.value / 2 + q.value[t] * K.value + P.value.style.chart.layout.bars.dataLabels.fontSize / 3})`,
|
|
1426
|
-
"text-anchor": !or.value || e.sign === -1 ? "start" : "end",
|
|
1427
|
-
"font-size": P.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1428
|
-
fill: P.value.style.chart.layout.bars.dataLabels.color,
|
|
1429
|
-
"font-weight": P.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1430
|
-
}, T(yr(e.value, e, t, e.sign)), 11, gt)]))), 128))]),
|
|
1431
|
-
(x(!0), h(d, null, C(G.value, (e, t) => (x(), h("g", null, [g("rect", {
|
|
1432
|
-
x: 0,
|
|
1433
|
-
y: X.value.top + (z.value + J.value) * t - z.value / 2 + q.value[t] * K.value,
|
|
1434
|
-
width: L.value,
|
|
1435
|
-
height: J.value + z.value <= 0 ? 1e-4 : J.value + z.value,
|
|
1436
|
-
fill: pr.value === e.id ? E(i)(P.value.style.chart.layout.highlighter.color, P.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1437
|
-
onMouseenter: (n) => _r(e, t, "pointer"),
|
|
1438
|
-
onMouseleave: (n) => gr({
|
|
1439
|
-
datapoint: e,
|
|
1440
|
-
seriesIndex: t
|
|
1441
|
-
}),
|
|
1442
|
-
onClick: (n) => hr({
|
|
1443
|
-
datapoint: e,
|
|
1444
|
-
seriesIndex: t
|
|
1445
|
-
})
|
|
1446
|
-
}, null, 40, _t)]))), 256)),
|
|
1447
|
-
w(e.$slots, "svg", { svg: {
|
|
1448
|
-
...Y.value,
|
|
1449
|
-
drawingArea: X.value,
|
|
1450
|
-
isPrintingImg: E(An) || E(jn) || E(Rr),
|
|
1451
|
-
isPrintingSvg: E(zr)
|
|
1452
|
-
} }, void 0, !0)
|
|
1453
|
-
], 512)], 46, nt)), e.$slots.hint ? (x(), h("div", vt, [w(e.$slots, "hint", y(_({
|
|
1454
|
-
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1455
|
-
isVisible: Wr.value
|
|
1456
|
-
})), void 0, !0)])) : m("", !0)]),
|
|
1457
|
-
e.$slots.watermark ? (x(), h("div", yt, [w(e.$slots, "watermark", y(_({ isPrinting: E(An) || E(jn) || E(Rr) || E(zr) })), void 0, !0)])) : m("", !0),
|
|
1458
|
-
P.value.style.chart.legend.show && P.value.style.chart.legend.position === "bottom" ? (x(), h("div", {
|
|
1459
|
-
key: 7,
|
|
1460
|
-
ref_key: "chartLegend",
|
|
1461
|
-
ref: tn
|
|
1462
|
-
}, [(x(), p(Fe, {
|
|
1463
|
-
key: `legend_bottom_${on.value}`,
|
|
1464
|
-
legendSet: U.value,
|
|
1465
|
-
config: Wn.value,
|
|
1466
|
-
isCursorPointer: I.value,
|
|
1467
|
-
onClickMarker: t[1] ||= ({ legend: e }) => tr(e.id)
|
|
1468
|
-
}, Le({
|
|
1469
|
-
item: D(({ legend: e, index: t }) => [g("div", {
|
|
1470
|
-
onClick: (t) => tr(e.id),
|
|
1471
|
-
style: b(`opacity:${j.value.includes(e.id) ? .5 : 1}`)
|
|
1472
|
-
}, T(vr({
|
|
1473
|
-
legend: e,
|
|
1474
|
-
index: t
|
|
1475
|
-
})), 13, bt)]),
|
|
1476
|
-
legendToggle: D(() => [U.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !E(Sn) ? (x(), p(Ae, {
|
|
1477
|
-
key: 0,
|
|
1478
|
-
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1479
|
-
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1480
|
-
fontSize: P.value.style.chart.legend.fontSize,
|
|
1481
|
-
checked: j.value.length > 0,
|
|
1482
|
-
isCursorPointer: I.value,
|
|
1483
|
-
onToggle: er
|
|
1484
|
-
}, null, 8, [
|
|
1485
|
-
"backgroundColor",
|
|
1486
|
-
"color",
|
|
1487
|
-
"fontSize",
|
|
1488
|
-
"checked",
|
|
1489
|
-
"isCursorPointer"
|
|
1490
|
-
])) : m("", !0)]),
|
|
1491
|
-
_: 2
|
|
1492
|
-
}, [e.$slots.pattern ? {
|
|
1493
|
-
name: "legend-pattern",
|
|
1494
|
-
fn: D(({ legend: e, index: t }) => [ze(we, {
|
|
1495
|
-
shape: e.shape,
|
|
1496
|
-
radius: 30,
|
|
1497
|
-
stroke: "none",
|
|
1498
|
-
plot: {
|
|
1499
|
-
x: 30,
|
|
1500
|
-
y: 30
|
|
1501
|
-
},
|
|
1502
|
-
fill: `url(#pattern_${k.value}_${t})`
|
|
1503
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1504
|
-
key: "0"
|
|
1505
|
-
} : void 0]), 1032, [
|
|
1506
|
-
"legendSet",
|
|
1507
|
-
"config",
|
|
1508
|
-
"isCursorPointer"
|
|
1509
|
-
]))], 512)) : m("", !0),
|
|
1510
|
-
w(e.$slots, "legend", { legend: U.value }, void 0, !0),
|
|
1511
|
-
e.$slots.source ? (x(), h("div", {
|
|
1512
|
-
key: 8,
|
|
1513
|
-
ref_key: "source",
|
|
1514
|
-
ref: nn,
|
|
1515
|
-
dir: "auto"
|
|
1516
|
-
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1517
|
-
ze(E(zt), {
|
|
1518
|
-
teleportTo: P.value.style.chart.tooltip.teleportTo,
|
|
1519
|
-
show: H.value.showTooltip && Xt.value && j.value.length < O.dataset.length,
|
|
1520
|
-
backgroundColor: P.value.style.chart.tooltip.backgroundColor,
|
|
1521
|
-
color: P.value.style.chart.tooltip.color,
|
|
1522
|
-
borderRadius: P.value.style.chart.tooltip.borderRadius,
|
|
1523
|
-
borderColor: P.value.style.chart.tooltip.borderColor,
|
|
1524
|
-
borderWidth: P.value.style.chart.tooltip.borderWidth,
|
|
1525
|
-
fontSize: P.value.style.chart.tooltip.fontSize,
|
|
1526
|
-
backgroundOpacity: P.value.style.chart.tooltip.backgroundOpacity,
|
|
1527
|
-
position: P.value.style.chart.tooltip.position,
|
|
1528
|
-
offsetX: P.value.style.chart.tooltip.offsetX,
|
|
1529
|
-
offsetY: P.value.style.chart.tooltip.offsetY,
|
|
1530
|
-
parent: A.value,
|
|
1531
|
-
content: Zt.value,
|
|
1532
|
-
isFullscreen: xr.value,
|
|
1533
|
-
isCustom: P.value.style.chart.tooltip.customFormat && typeof P.value.style.chart.tooltip.customFormat == "function",
|
|
1534
|
-
smooth: P.value.style.chart.tooltip.smooth,
|
|
1535
|
-
backdropFilter: P.value.style.chart.tooltip.backdropFilter,
|
|
1536
|
-
smoothForce: P.value.style.chart.tooltip.smoothForce,
|
|
1537
|
-
smoothSnapThreshold: P.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1538
|
-
isA11yMode: vn.value === "keyboard",
|
|
1539
|
-
a11yPosition: _n.value
|
|
1540
|
-
}, {
|
|
1541
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...mr.value })), void 0, !0)]),
|
|
1542
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...mr.value })), void 0, !0)]),
|
|
1543
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...mr.value })), void 0, !0)]),
|
|
1544
|
-
_: 3
|
|
1545
|
-
}, 8, [
|
|
1546
|
-
"teleportTo",
|
|
1547
|
-
"show",
|
|
1548
|
-
"backgroundColor",
|
|
1549
|
-
"color",
|
|
1550
|
-
"borderRadius",
|
|
1551
|
-
"borderColor",
|
|
1552
|
-
"borderWidth",
|
|
1553
|
-
"fontSize",
|
|
1554
|
-
"backgroundOpacity",
|
|
1555
|
-
"position",
|
|
1556
|
-
"offsetX",
|
|
1557
|
-
"offsetY",
|
|
1558
|
-
"parent",
|
|
1559
|
-
"content",
|
|
1560
|
-
"isFullscreen",
|
|
1561
|
-
"isCustom",
|
|
1562
|
-
"smooth",
|
|
1563
|
-
"backdropFilter",
|
|
1564
|
-
"smoothForce",
|
|
1565
|
-
"smoothSnapThreshold",
|
|
1566
|
-
"isA11yMode",
|
|
1567
|
-
"a11yPosition"
|
|
1568
|
-
]),
|
|
1569
|
-
Yt.value && P.value.userOptions.buttons.table ? (x(), p(Ge(Ar.value.component), Ve({ key: 9 }, Ar.value.props, {
|
|
1570
|
-
ref_key: "tableUnit",
|
|
1571
|
-
ref: cn,
|
|
1572
|
-
onClose: Mr
|
|
1573
|
-
}), Le({
|
|
1574
|
-
content: D(() => [g("div", {
|
|
1575
|
-
ref_key: "tableContainer",
|
|
1576
|
-
ref: In,
|
|
1577
|
-
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1578
|
-
style: b(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1579
|
-
}, [g("div", xt, [P.value.table.useDialog ? m("", !0) : (x(), h("div", {
|
|
1580
|
-
key: 0,
|
|
1581
|
-
role: "button",
|
|
1582
|
-
tabindex: "0",
|
|
1583
|
-
style: b(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${I.value ? "pointer" : "default"}; background:${P.value.table.th.backgroundColor};`),
|
|
1584
|
-
onClick: Mr,
|
|
1585
|
-
onKeypress: Xe(Mr, ["enter"])
|
|
1586
|
-
}, [ze(E(Bt), {
|
|
1587
|
-
name: "close",
|
|
1588
|
-
stroke: P.value.table.th.color,
|
|
1589
|
-
"stroke-width": 2
|
|
1590
|
-
}, null, 8, ["stroke"])], 36)), g("div", {
|
|
1591
|
-
style: {
|
|
1592
|
-
width: "100%",
|
|
1593
|
-
"container-type": "inline-size"
|
|
1594
|
-
},
|
|
1595
|
-
class: v({ "vue-ui-responsive": E(jr) })
|
|
1596
|
-
}, [g("table", St, [
|
|
1597
|
-
P.value.table.useDialog ? m("", !0) : (x(), h("caption", {
|
|
1598
|
-
key: 0,
|
|
1599
|
-
style: b({
|
|
1600
|
-
backgroundColor: P.value.table.th.backgroundColor,
|
|
1601
|
-
color: P.value.table.th.color,
|
|
1602
|
-
outline: P.value.table.th.outline
|
|
1603
|
-
}),
|
|
1604
|
-
class: "vue-ui-data-table__caption"
|
|
1605
|
-
}, [Re(T(P.value.style.chart.title.text) + " ", 1), P.value.style.chart.title.subtitle.text ? (x(), h("span", Ct, T(P.value.style.chart.title.subtitle.text), 1)) : m("", !0)], 4)),
|
|
1606
|
-
g("thead", null, [g("tr", {
|
|
1607
|
-
role: "row",
|
|
1608
|
-
style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
|
|
1609
|
-
}, [(x(!0), h(d, null, C($.value.head, (e) => (x(), h("th", { style: b(`outline:${P.value.table.th.outline}`) }, [g("div", wt, T(e), 1)], 4))), 256))], 4), g("tr", null, [
|
|
1610
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1611
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + T(P.value.table.td.prefix) + T(isNaN(Z.value) ? "" : Z.value.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 5),
|
|
1612
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
1613
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1614
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1615
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1616
|
-
g("th", { style: b(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4)
|
|
1617
|
-
])]),
|
|
1618
|
-
g("tbody", null, [(x(!0), h(d, null, C($.value.body, (e, t) => (x(), h("tr", {
|
|
1619
|
-
class: v({
|
|
1620
|
-
"vue-ui-data-table__tbody__row": !0,
|
|
1621
|
-
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1622
|
-
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1623
|
-
}),
|
|
1624
|
-
style: b(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
|
|
1625
|
-
}, [
|
|
1626
|
-
g("td", {
|
|
1627
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1628
|
-
style: b(`outline:${P.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1629
|
-
"data-cell": $.value.head[0] ?? ""
|
|
1630
|
-
}, [g("div", Et, [e.color ? (x(), h("span", {
|
|
1631
|
-
key: 0,
|
|
1632
|
-
style: b(`color:${e.color};margin-right:3px`)
|
|
1633
|
-
}, "⬤", 4)) : m("", !0), g("span", null, T(e.parentName), 1)])], 12, Tt),
|
|
1634
|
-
g("td", {
|
|
1635
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1636
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1637
|
-
"data-cell": $.value.head[1] ?? ""
|
|
1638
|
-
}, [g("div", Ot, T(P.value.table.td.prefix) + T([
|
|
1639
|
-
"",
|
|
1640
|
-
NaN,
|
|
1641
|
-
void 0
|
|
1642
|
-
].includes(e.parentValue) ? "" : e.parentValue.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 1)], 12, Dt),
|
|
1643
|
-
g("td", {
|
|
1644
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1645
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1646
|
-
"data-cell": $.value.head[2] ?? ""
|
|
1647
|
-
}, [g("div", At, T([
|
|
1648
|
-
"",
|
|
1649
|
-
NaN,
|
|
1650
|
-
void 0
|
|
1651
|
-
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, kt),
|
|
1652
|
-
g("td", {
|
|
1653
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1654
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1655
|
-
"data-cell": $.value.head[3] ?? ""
|
|
1656
|
-
}, [g("div", Mt, T(e.childName), 1)], 12, jt),
|
|
1657
|
-
g("td", {
|
|
1658
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1659
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1660
|
-
"data-cell": $.value.head[4] ?? ""
|
|
1661
|
-
}, [g("div", Pt, T(P.value.table.td.prefix) + T([
|
|
1662
|
-
"",
|
|
1663
|
-
NaN,
|
|
1664
|
-
void 0
|
|
1665
|
-
].includes(e.childValue) ? "" : e.childValue.toFixed(P.value.table.td.roundingValue)) + T(P.value.table.td.suffix), 1)], 12, Nt),
|
|
1666
|
-
g("td", {
|
|
1667
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1668
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1669
|
-
"data-cell": $.value.head[5] ?? ""
|
|
1670
|
-
}, [g("div", It, T([
|
|
1671
|
-
"",
|
|
1672
|
-
NaN,
|
|
1673
|
-
void 0
|
|
1674
|
-
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Ft),
|
|
1675
|
-
g("td", {
|
|
1676
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1677
|
-
style: b(`outline:${P.value.table.td.outline}`),
|
|
1678
|
-
"data-cell": $.value.head[6] ?? ""
|
|
1679
|
-
}, [g("div", Rt, T([
|
|
1680
|
-
"",
|
|
1681
|
-
NaN,
|
|
1682
|
-
void 0
|
|
1683
|
-
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Lt)
|
|
1684
|
-
], 6))), 256))])
|
|
1685
|
-
])], 2)])], 4)]),
|
|
1686
|
-
_: 2
|
|
1687
|
-
}, [P.value.table.useDialog ? {
|
|
1688
|
-
name: "title",
|
|
1689
|
-
fn: D(() => [Re(T(Ar.value.title), 1)]),
|
|
1690
|
-
key: "0"
|
|
1691
|
-
} : void 0, P.value.table.useDialog ? {
|
|
1692
|
-
name: "actions",
|
|
1693
|
-
fn: D(() => [g("button", {
|
|
1694
|
-
tabindex: "0",
|
|
1695
|
-
class: "vue-ui-user-options-button",
|
|
1696
|
-
onClick: t[2] ||= (e) => br(P.value.userOptions.callbacks.csv),
|
|
1697
|
-
style: b({ cursor: I.value ? "pointer" : "default" })
|
|
1698
|
-
}, [ze(E(Bt), {
|
|
1699
|
-
name: "fileCsv",
|
|
1700
|
-
stroke: Ar.value.props.color
|
|
1701
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1702
|
-
key: "1"
|
|
1703
|
-
} : void 0]), 1040)) : m("", !0),
|
|
1704
|
-
w(e.$slots, "skeleton", {}, () => [E(Sn) ? (x(), p(_e, { key: 0 })) : m("", !0)], !0)
|
|
1705
|
-
], 46, Qe));
|
|
1706
|
-
}
|
|
1707
|
-
}, [["__scopeId", "data-v-fa0a2454"]]);
|
|
1708
|
-
//#endregion
|
|
1709
|
-
export { Ze as n, zt as t };
|