vue-data-ui 3.22.5 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-YOcaZtwF.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-B80rr2N_.js → render-common-CUAlQvAQ.js} +22 -22
- 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/types/vue-data-ui.d.ts +13 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-D9Iw5xlb.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-BzHSHKqe.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-BZ1Slxfu.js +0 -1757
- package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
- package/dist/vue-ui-chestnut-B3OHA5rg.js +0 -2010
- package/dist/vue-ui-chord-DETV2viY.js +0 -1391
- package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
- package/dist/vue-ui-dumbbell-Cmr65TNE.js +0 -1530
- package/dist/vue-ui-funnel-BLRBDW1a.js +0 -777
- package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
- package/dist/vue-ui-history-plot-BiWpOHKE.js +0 -1715
- package/dist/vue-ui-molecule-DB3rmTw1.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +0 -1416
- package/dist/vue-ui-quadrant-BvAmtyAE.js +0 -1978
- package/dist/vue-ui-relation-circle-Dl1aWFAI.js +0 -924
- package/dist/vue-ui-rings-CyrvskTi.js +0 -1246
- package/dist/vue-ui-sparkstackbar-DnrZkIIc.js +0 -662
- package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
- package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as pe } from "./useConfig-
|
|
4
|
-
import { t as me } from "./usePrinter-
|
|
2
|
+
import { At as t, Dt as n, H as r, Ht as i, It as a, Lt as o, Q as s, S as ee, Vt as te, W as ne, Wt as re, X as ie, _t as ae, at as oe, b as se, ct as ce, i as le, mt as ue, q as c, t as de, v as l, w as fe } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as pe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as me } from "./usePrinter-CRp5IW3v.js";
|
|
5
5
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-
|
|
7
|
+
import { t as ve } from "./useNestedProp-BEo2N1Db.js";
|
|
8
8
|
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./img-
|
|
10
|
-
import { n as xe } from "./Title-
|
|
11
|
-
import { t as Se } from "./Shape-
|
|
9
|
+
import { t as be } from "./img-B_y5qDdm.js";
|
|
10
|
+
import { n as xe } from "./Title-C-p0ilWB.js";
|
|
11
|
+
import { t as Se } from "./Shape-BSetplwm.js";
|
|
12
12
|
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as Ee } from "./vue-ui-accordion-
|
|
16
|
-
import { t as De } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Ee } from "./vue-ui-accordion-CfMrbDoq.js";
|
|
16
|
+
import { t as De } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
17
17
|
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
18
18
|
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
20
|
import { t as je } from "./useTableResponsive-B24Uwt2E.js";
|
|
21
|
-
import { t as Me } from "./Legend-
|
|
21
|
+
import { t as Me } from "./Legend-D-635Kag.js";
|
|
22
22
|
import { t as Ne } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
|
|
23
23
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as Le, guardReactiveProps as g, mergeProps as Re, nextTick as ze, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Be, onMounted as Ve, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as He, toDisplayString as w, toRefs as Ue, unref as T, useCssVars as We, useSlots as Ge, watch as Ke, withCtx as E, withKeys as qe } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-horizontal-bar.vue
|
|
@@ -202,14 +202,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
202
202
|
],
|
|
203
203
|
setup(e, { expose: Ce, emit: Je }) {
|
|
204
204
|
We((e) => ({ v44273546: e.tdo }));
|
|
205
|
-
let Ut = Le(() => import("./Tooltip-
|
|
205
|
+
let Ut = Le(() => import("./Tooltip-YabpoXo1.js")), Wt = Le(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), Gt = Le(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), Kt = Le(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), qt = Le(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), Jt = Le(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_vertical_bar: Yt } = pe(), { isThemeValid: Xt, warnInvalidTheme: Zt } = ye(), Qt = Ge(), D = e, $t = d({
|
|
206
206
|
get() {
|
|
207
207
|
return !!D.dataset && D.dataset.length;
|
|
208
208
|
},
|
|
209
209
|
set(e) {
|
|
210
210
|
return e;
|
|
211
211
|
}
|
|
212
|
-
}), O = x(
|
|
212
|
+
}), O = x(ne()), en = x(!1), tn = x(""), nn = x(null), rn = x(0), k = x(null), an = x(null), on = x(null), sn = x(null), cn = x(null), ln = x(0), un = x(0), dn = x(null), fn = x(null), pn = x(null), mn = x(null), hn = x(null), A = x([]), gn = x({
|
|
213
213
|
none: 0,
|
|
214
214
|
asc: 1,
|
|
215
215
|
desc: 2
|
|
@@ -247,7 +247,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
247
247
|
value: 1,
|
|
248
248
|
color: "#d9d9d9"
|
|
249
249
|
}
|
|
250
|
-
]), Dn = d(() =>
|
|
250
|
+
]), Dn = d(() => re({
|
|
251
251
|
defaultConfig: {
|
|
252
252
|
useCssAnimation: !1,
|
|
253
253
|
userOptions: { show: !1 },
|
|
@@ -290,11 +290,11 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
290
290
|
prepareConfig: Fn,
|
|
291
291
|
callback: () => {
|
|
292
292
|
Promise.resolve().then(async () => {
|
|
293
|
-
|
|
293
|
+
B.value.showTable = N.value.table.show, Kn();
|
|
294
294
|
});
|
|
295
295
|
},
|
|
296
296
|
skeletonDataset: En.value,
|
|
297
|
-
skeletonConfig:
|
|
297
|
+
skeletonConfig: re({
|
|
298
298
|
defaultConfig: N.value,
|
|
299
299
|
userConfig: Dn.value
|
|
300
300
|
})
|
|
@@ -303,27 +303,27 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
303
303
|
let e = ve({
|
|
304
304
|
userConfig: D.config,
|
|
305
305
|
defaultConfig: Yt
|
|
306
|
-
}),
|
|
307
|
-
if (
|
|
306
|
+
}), n = {}, r = e.theme;
|
|
307
|
+
if (r) if (!Xt.value(e)) Zt(e), n = e;
|
|
308
308
|
else {
|
|
309
|
-
let
|
|
310
|
-
userConfig: Ne[
|
|
309
|
+
let a = ve({
|
|
310
|
+
userConfig: Ne[r] || D.config,
|
|
311
311
|
defaultConfig: e
|
|
312
312
|
});
|
|
313
|
-
|
|
313
|
+
n = {
|
|
314
314
|
...ve({
|
|
315
315
|
userConfig: D.config,
|
|
316
|
-
defaultConfig:
|
|
316
|
+
defaultConfig: a
|
|
317
317
|
}),
|
|
318
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
318
|
+
customPalette: e.customPalette.length ? e.customPalette : i[r] || t
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
else
|
|
322
|
-
return D.config &&
|
|
321
|
+
else n = e;
|
|
322
|
+
return D.config && ue(D.config, "events.datapointEnter") ? n.events.datapointEnter = D.config.events.datapointEnter : n.events.datapointEnter = null, D.config && ue(D.config, "events.datapointLeave") ? n.events.datapointLeave = D.config.events.datapointLeave : n.events.datapointLeave = null, D.config && ue(D.config, "events.datapointClick") ? n.events.datapointClick = D.config.events.datapointClick : n.events.datapointClick = null, n;
|
|
323
323
|
}
|
|
324
324
|
let F = x(N.value.style.chart.width), I = x(N.value.style.chart.height), L = x(N.value.style.chart.layout.bars.gap);
|
|
325
325
|
Ke(() => D.config, (e) => {
|
|
326
|
-
On.value || (N.value = Fn()), jn.value = !N.value.userOptions.showOnChartHover, ln.value += 1, un.value += 1,
|
|
326
|
+
On.value || (N.value = Fn()), jn.value = !N.value.userOptions.showOnChartHover, ln.value += 1, un.value += 1, B.value.showTable = N.value.table.show, B.value.sortDesc = N.value.style.chart.layout.bars.sort === "desc", B.value.showTooltip = N.value.style.chart.tooltip.show, F.value = N.value.style.chart.width, I.value = N.value.style.chart.height, L.value = N.value.style.chart.layout.bars.gap;
|
|
327
327
|
}, { deep: !0 }), Ke(() => D.dataset, (e) => {
|
|
328
328
|
Array.isArray(e) && e.length > 0 && (An.value = !1);
|
|
329
329
|
}, { deep: !0 });
|
|
@@ -331,13 +331,13 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
331
331
|
elementId: `vue-ui-vertical-bar_${O.value}`,
|
|
332
332
|
fileName: N.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
333
333
|
options: N.value.userOptions.print
|
|
334
|
-
}), Bn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Vn = d(() =>
|
|
335
|
-
function
|
|
336
|
-
if (k.value && (
|
|
334
|
+
}), Bn = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), Vn = d(() => ee(N.value.customPalette)), Hn = x(null), Un = d(() => N.value.table.responsiveBreakpoint), Wn = d(() => !!N.value.debug), Gn = x(0), R = x(null), z = x(null);
|
|
335
|
+
function Kn() {
|
|
336
|
+
if (k.value && (n(D.dataset) && (s({
|
|
337
337
|
componentName: "VueUiVerticalBar",
|
|
338
338
|
type: "dataset",
|
|
339
339
|
debug: Wn.value
|
|
340
|
-
}), $t.value = !1, An.value = !0),
|
|
340
|
+
}), $t.value = !1, An.value = !0), n(D.dataset) || (An.value = N.value.loading), N.value.responsive)) {
|
|
341
341
|
let e = we(() => {
|
|
342
342
|
let { width: e, height: t } = Te({
|
|
343
343
|
chart: k.value,
|
|
@@ -350,31 +350,31 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
350
350
|
I.value = t, F.value = e;
|
|
351
351
|
});
|
|
352
352
|
});
|
|
353
|
-
R.value && (
|
|
354
|
-
|
|
353
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), ze(() => {
|
|
354
|
+
z.value = k.value?.parentNode, z.value && R.value.observe(z.value);
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
Be(() => {
|
|
359
|
-
R.value && (
|
|
359
|
+
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
360
360
|
});
|
|
361
|
-
let
|
|
361
|
+
let B = x({
|
|
362
362
|
showTable: N.value.table.show,
|
|
363
363
|
sortDesc: N.value.style.chart.layout.bars.sort === "desc",
|
|
364
364
|
showTooltip: N.value.style.chart.tooltip.show
|
|
365
|
-
}),
|
|
366
|
-
!e.value && !e.children &&
|
|
365
|
+
}), qn = d(() => B.value.sortDesc), V = d(() => (kn.value.forEach((e, t) => {
|
|
366
|
+
!e.value && !e.children && s({
|
|
367
367
|
componentName: "VueUiVerticalBar",
|
|
368
368
|
type: "datasetAttributeEmpty",
|
|
369
369
|
property: `value (index ${t})`,
|
|
370
370
|
debug: Wn.value
|
|
371
|
-
}), e.children && (
|
|
371
|
+
}), e.children && (n(e.children) ? s({
|
|
372
372
|
componentName: "VueUiVerticalBar",
|
|
373
373
|
type: "datasetAttributeEmpty",
|
|
374
374
|
property: `children (index ${t})`,
|
|
375
375
|
debug: Wn.value
|
|
376
376
|
}) : e.children.forEach((e, t) => {
|
|
377
|
-
[null, void 0].includes(e.name) &&
|
|
377
|
+
[null, void 0].includes(e.name) && s({
|
|
378
378
|
componentName: "VueUiVerticalBar",
|
|
379
379
|
type: "datasetSerieAttribute",
|
|
380
380
|
property: "name",
|
|
@@ -383,56 +383,56 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
383
383
|
debug: Wn.value
|
|
384
384
|
});
|
|
385
385
|
}));
|
|
386
|
-
}), kn.value.map((e,
|
|
387
|
-
let
|
|
386
|
+
}), kn.value.map((e, n) => {
|
|
387
|
+
let r = `vertical_parent_${n}_${O.value}`, i = e.children && e.children.length > 0, a = l(e.value ? e.value : i ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), o = a >= 0 ? 1 : -1;
|
|
388
388
|
return {
|
|
389
389
|
...e,
|
|
390
|
-
id:
|
|
391
|
-
absoluteIndex:
|
|
390
|
+
id: r,
|
|
391
|
+
absoluteIndex: n,
|
|
392
392
|
shape: "square",
|
|
393
|
-
opacity: A.value.includes(
|
|
394
|
-
value: Math.abs(
|
|
395
|
-
sign:
|
|
396
|
-
hasChildren:
|
|
393
|
+
opacity: A.value.includes(r) ? .5 : 1,
|
|
394
|
+
value: Math.abs(a),
|
|
395
|
+
sign: o,
|
|
396
|
+
hasChildren: i,
|
|
397
397
|
isChild: !1,
|
|
398
|
-
segregate: () =>
|
|
399
|
-
isSegregated: A.value.includes(
|
|
400
|
-
color:
|
|
401
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(_n.value ? () => 0 : (e, t) =>
|
|
402
|
-
...
|
|
403
|
-
value: l(Math.abs(
|
|
404
|
-
absoluteIndex:
|
|
405
|
-
sign:
|
|
398
|
+
segregate: () => Y(r),
|
|
399
|
+
isSegregated: A.value.includes(r),
|
|
400
|
+
color: se(e.color) || Vn.value[n] || t[n] || t[n % t.length],
|
|
401
|
+
children: !e.children || !e.children.length ? [] : e.children.toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value).map((i, s) => ({
|
|
402
|
+
...i,
|
|
403
|
+
value: l(Math.abs(i.value)),
|
|
404
|
+
absoluteIndex: n,
|
|
405
|
+
sign: i.value >= 0 ? 1 : -1,
|
|
406
406
|
isChild: !0,
|
|
407
|
-
parentId:
|
|
407
|
+
parentId: r,
|
|
408
408
|
parentName: e.name,
|
|
409
|
-
parentValue:
|
|
410
|
-
parentSign:
|
|
411
|
-
id: `vertical_child_${
|
|
412
|
-
childIndex:
|
|
413
|
-
color:
|
|
409
|
+
parentValue: a,
|
|
410
|
+
parentSign: o,
|
|
411
|
+
id: `vertical_child_${n}_${s}_${O.value}`,
|
|
412
|
+
childIndex: s,
|
|
413
|
+
color: se(i.color) || se(e.color) || Vn.value[n] || t[n] || t[n % t.length]
|
|
414
414
|
})).map((t, n) => ({
|
|
415
415
|
...t,
|
|
416
416
|
isFirstChild: n === 0,
|
|
417
417
|
isLastChild: n === e.children.length - 1
|
|
418
418
|
}))
|
|
419
419
|
};
|
|
420
|
-
}).toSorted(_n.value ? () => 0 : (e, t) =>
|
|
420
|
+
}).toSorted(_n.value ? () => 0 : (e, t) => qn.value ? t.value - e.value : e.value - t.value))), H = d(() => V.value.filter((e) => !A.value.includes(e.id))), U = d(() => H.value.flatMap((e) => e.hasChildren ? e.children : e)), Jn = d(() => V.value.flatMap((e) => e.hasChildren ? e.children : e)), Yn = d(() => H.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Xn = d(() => ({
|
|
421
421
|
cy: "vertical-bar-div-legend",
|
|
422
422
|
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
423
423
|
color: N.value.style.chart.legend.color,
|
|
424
424
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
425
425
|
paddingBottom: 12,
|
|
426
426
|
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
427
|
-
})),
|
|
427
|
+
})), W = d(() => N.value.style.chart.layout.bars.parentLabels.show ? N.value.style.chart.layout.bars.parentLabels.fontSize * 3 + N.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), G = d(() => {
|
|
428
428
|
let e = [], t = 0;
|
|
429
|
-
return
|
|
429
|
+
return U.value.forEach((n, r) => {
|
|
430
430
|
n.isChild && n.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
|
|
431
431
|
}), e;
|
|
432
|
-
}),
|
|
433
|
-
let e = Math.max(0, ...
|
|
434
|
-
return (I.value - 24 - (
|
|
435
|
-
}),
|
|
432
|
+
}), K = d(() => {
|
|
433
|
+
let e = Math.max(0, ...G.value) * W.value;
|
|
434
|
+
return (I.value - 24 - (Yn.value - 1) * L.value - e) / Yn.value;
|
|
435
|
+
}), q = d(() => ({
|
|
436
436
|
width: F.value,
|
|
437
437
|
height: I.value,
|
|
438
438
|
padding: {
|
|
@@ -441,29 +441,29 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
441
441
|
right: 64 + N.value.style.chart.layout.bars.paddingRight,
|
|
442
442
|
bottom: 12
|
|
443
443
|
}
|
|
444
|
-
})),
|
|
445
|
-
function
|
|
444
|
+
})), Zn = x(0);
|
|
445
|
+
function Qn() {
|
|
446
446
|
ze(() => {
|
|
447
447
|
if (!hn.value) {
|
|
448
|
-
|
|
448
|
+
Zn.value = 0;
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
|
-
|
|
451
|
+
Zn.value = Array.from(hn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
452
452
|
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
453
453
|
return n > e ? n : e;
|
|
454
454
|
}, 0) + 12;
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
Ke(() => [
|
|
458
|
-
|
|
458
|
+
U.value,
|
|
459
459
|
F.value,
|
|
460
460
|
I.value,
|
|
461
461
|
N.value.style.chart.layout.bars.nameLabels,
|
|
462
462
|
N.value.style.chart.layout.bars.offsetX
|
|
463
|
-
], () =>
|
|
464
|
-
|
|
463
|
+
], () => Qn(), { deep: !0 }), Ve(() => {
|
|
464
|
+
Qn();
|
|
465
465
|
});
|
|
466
|
-
function
|
|
466
|
+
function $n() {
|
|
467
467
|
ze(() => {
|
|
468
468
|
vn.value = 0, yn.value = 0, requestAnimationFrame(() => {
|
|
469
469
|
if (!bn.value) {
|
|
@@ -485,124 +485,124 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
Ke(A, () =>
|
|
489
|
-
|
|
488
|
+
Ke(A, () => $n(), { deep: !0 }), Ke(() => [
|
|
489
|
+
U.value,
|
|
490
490
|
F.value,
|
|
491
491
|
I.value
|
|
492
|
-
], () =>
|
|
493
|
-
let
|
|
494
|
-
let e =
|
|
492
|
+
], () => $n(), { deep: !0 }), Ve(() => $n());
|
|
493
|
+
let J = d(() => {
|
|
494
|
+
let e = Zn.value + Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX) + yn.value + N.value.style.chart.layout.bars.offsetX, t = q.value.width - q.value.padding.right, n = Math.max(0, t - e - vn.value - yn.value - N.value.style.chart.layout.bars.offsetX);
|
|
495
495
|
return {
|
|
496
|
-
top:
|
|
497
|
-
bottom:
|
|
496
|
+
top: q.value.padding.top,
|
|
497
|
+
bottom: q.value.padding.top + q.value.height,
|
|
498
498
|
left: e,
|
|
499
499
|
right: t,
|
|
500
500
|
width: n,
|
|
501
|
-
fullHeight:
|
|
501
|
+
fullHeight: q.value.padding.top + q.value.padding.bottom + q.value.height
|
|
502
502
|
};
|
|
503
503
|
});
|
|
504
|
-
function
|
|
505
|
-
A.value.length ? A.value = [] :
|
|
504
|
+
function er() {
|
|
505
|
+
A.value.length ? A.value = [] : V.value.forEach((e) => {
|
|
506
506
|
A.value.push(e.id);
|
|
507
|
-
}),
|
|
507
|
+
}), $n(), Tn("selectLegend", H.value);
|
|
508
508
|
}
|
|
509
|
-
async function
|
|
509
|
+
async function Y(e) {
|
|
510
510
|
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e);
|
|
511
511
|
else {
|
|
512
|
-
if (A.value.length ===
|
|
512
|
+
if (A.value.length === V.value.length - 1) return;
|
|
513
513
|
A.value.push(e);
|
|
514
514
|
}
|
|
515
|
-
Tn("selectLegend",
|
|
515
|
+
Tn("selectLegend", H.value), $n();
|
|
516
|
+
}
|
|
517
|
+
function tr(e) {
|
|
518
|
+
return V.value.length ? V.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
516
519
|
}
|
|
517
520
|
function nr(e) {
|
|
518
|
-
|
|
521
|
+
let t = tr(e);
|
|
522
|
+
t !== null && A.value.includes(t.id) && Y(t.id);
|
|
519
523
|
}
|
|
520
524
|
function rr(e) {
|
|
521
|
-
let t =
|
|
522
|
-
t !== null && A.value.includes(t.id)
|
|
525
|
+
let t = tr(e);
|
|
526
|
+
t !== null && (A.value.includes(t.id) || Y(t.id));
|
|
523
527
|
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
t !== null && (A.value.includes(t.id) || J(t.id));
|
|
527
|
-
}
|
|
528
|
-
let Y = d(() => V.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
529
|
-
function ar(e, t = !1, n = 0) {
|
|
528
|
+
let X = d(() => H.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
529
|
+
function ir(e, t = !1, n = 0) {
|
|
530
530
|
return t ? c({
|
|
531
|
-
v: l(Math.abs(e) /
|
|
531
|
+
v: l(Math.abs(e) / X.value * 100),
|
|
532
532
|
s: "%",
|
|
533
533
|
r: n
|
|
534
|
-
}) : Math.abs(e) /
|
|
534
|
+
}) : Math.abs(e) / X.value;
|
|
535
535
|
}
|
|
536
|
-
let
|
|
537
|
-
function
|
|
538
|
-
let t = e /
|
|
539
|
-
return l(
|
|
536
|
+
let Z = d(() => U.value.map((e) => e.sign).includes(-1)), ar = d(() => Math.max(...H.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
537
|
+
function Q(e) {
|
|
538
|
+
let t = e / ar.value;
|
|
539
|
+
return l(J.value.width / (Z.value ? 2 : 1) * t);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
return
|
|
541
|
+
function or(e) {
|
|
542
|
+
return Q(e) + J.value.left;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
let n =
|
|
544
|
+
function sr(e, t) {
|
|
545
|
+
let n = H.value.find((t) => t.id === e.parentId);
|
|
546
546
|
return {
|
|
547
|
-
y:
|
|
547
|
+
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value - W.value + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
548
548
|
name: n.name,
|
|
549
549
|
value: [
|
|
550
550
|
void 0,
|
|
551
551
|
NaN,
|
|
552
552
|
null
|
|
553
553
|
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
554
|
-
percentageToTotal: isNaN(n.value /
|
|
554
|
+
percentageToTotal: isNaN(n.value / X.value) ? "" : ir(n.value, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
555
555
|
sign: n.sign
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function cr() {
|
|
559
|
+
return H.value;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return
|
|
561
|
+
function lr(e, t) {
|
|
562
|
+
return sr(e, t).name;
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
let n =
|
|
566
|
-
return
|
|
564
|
+
function ur(e, t) {
|
|
565
|
+
let n = sr(e, t);
|
|
566
|
+
return _r(n.value, n, t, e.parentSign || e.sign);
|
|
567
567
|
}
|
|
568
|
-
let
|
|
569
|
-
function
|
|
568
|
+
let dr = x(null), fr = x(null);
|
|
569
|
+
function pr({ datapoint: e, seriesIndex: t }) {
|
|
570
570
|
Tn("selectDatapoint", e), N.value.events.datapointClick && N.value.events.datapointClick({
|
|
571
571
|
datapoint: e,
|
|
572
572
|
seriesIndex: t
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function mr({ datapoint: e, seriesIndex: t }) {
|
|
576
576
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
577
577
|
datapoint: e,
|
|
578
578
|
seriesIndex: t
|
|
579
|
-
}), nn.value = null, en.value = !1,
|
|
579
|
+
}), nn.value = null, en.value = !1, dr.value = null, M.value === t && (M.value = null);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function hr(e, t, n = "pointer") {
|
|
582
582
|
wn.value = n, N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
583
583
|
datpoint: e,
|
|
584
584
|
seriesIndex: t
|
|
585
|
-
}), M.value = t, nn.value = e,
|
|
585
|
+
}), M.value = t, nn.value = e, fr.value = {
|
|
586
586
|
datapoint: e,
|
|
587
587
|
seriesIndex: t,
|
|
588
|
-
series:
|
|
588
|
+
series: V.value,
|
|
589
589
|
config: N.value
|
|
590
|
-
}, en.value = !0,
|
|
590
|
+
}, en.value = !0, dr.value = e.id;
|
|
591
591
|
let r = "", i = e.isChild ? e.parentName : e.name, a = e.isChild ? e.name : "", o = N.value.style.chart.tooltip.customFormat;
|
|
592
|
-
|
|
592
|
+
ae(o) && oe(() => o({
|
|
593
593
|
datapoint: e,
|
|
594
|
-
series:
|
|
594
|
+
series: V.value,
|
|
595
595
|
config: N.value,
|
|
596
596
|
seriesIndex: t
|
|
597
597
|
})) ? tn.value = o({
|
|
598
598
|
datapoint: e,
|
|
599
|
-
series:
|
|
599
|
+
series: V.value,
|
|
600
600
|
config: N.value,
|
|
601
601
|
seriesIndex: t
|
|
602
602
|
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
603
603
|
<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}"/>${Qt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${O.value}_${e.absoluteIndex})"/>` : ""}</svg> ${i}</div>
|
|
604
604
|
${a ? `<div>${a}</div>` : ""}
|
|
605
|
-
</div>`, N.value.style.chart.tooltip.showValue && (r += `<div>${N.value.translations.value}: <b>${
|
|
605
|
+
</div>`, N.value.style.chart.tooltip.showValue && (r += `<div>${N.value.translations.value}: <b>${le(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, c({
|
|
606
606
|
p: N.value.style.chart.tooltip.prefix,
|
|
607
607
|
v: e.sign === 1 ? e.value : -e.value,
|
|
608
608
|
s: N.value.style.chart.tooltip.suffix,
|
|
@@ -611,7 +611,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
611
611
|
datapoint: e,
|
|
612
612
|
seriesIndex: t
|
|
613
613
|
})}</b></div>`), N.value.style.chart.tooltip.showPercentage && (r += `<div>${N.value.translations.percentageToTotal} : <b>${c({
|
|
614
|
-
v: Math.abs(e.value) /
|
|
614
|
+
v: Math.abs(e.value) / X.value * 100,
|
|
615
615
|
s: "%",
|
|
616
616
|
r: N.value.style.chart.tooltip.roundingPercentage
|
|
617
617
|
})}</b></div>`, e.isChild && (r += `<div>${N.value.translations.percentageToSerie}: <b>${c({
|
|
@@ -620,9 +620,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
620
620
|
r: N.value.style.chart.tooltip.roundingPercentage
|
|
621
621
|
})}</b></div>`)), tn.value = `<div style="text-align:left">${r}</div>`);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function gr({ legend: e, index: t }) {
|
|
624
624
|
let n = N.value.style.chart.legend;
|
|
625
|
-
return n.showValue ? `${e.name}: ${
|
|
625
|
+
return n.showValue ? `${e.name}: ${le(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, c({
|
|
626
626
|
p: n.prefix,
|
|
627
627
|
v: e.value,
|
|
628
628
|
s: n.suffix,
|
|
@@ -632,9 +632,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
632
632
|
seriesIndex: t
|
|
633
633
|
})}` : e.name;
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function _r(e, t, n, r) {
|
|
636
636
|
if (!N.value.style.chart.layout.bars.dataLabels.value.show) return "";
|
|
637
|
-
let i =
|
|
637
|
+
let i = le(N.value.style.chart.layout.bars.dataLabels.value.formatter, l(r === -1 && e >= 0 ? -e : e), c({
|
|
638
638
|
p: N.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
639
639
|
v: l(r === -1 && e >= 0 ? -e : e),
|
|
640
640
|
s: N.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
@@ -642,10 +642,10 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
642
642
|
}), {
|
|
643
643
|
datapoint: t,
|
|
644
644
|
seriesIndex: n
|
|
645
|
-
}), a = `(${
|
|
645
|
+
}), a = `(${ir(e, !0, N.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
646
646
|
return `${i}${N.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${a}` : ""}`;
|
|
647
647
|
}
|
|
648
|
-
let
|
|
648
|
+
let $ = d(() => ({
|
|
649
649
|
head: [
|
|
650
650
|
N.value.translations.parentName,
|
|
651
651
|
N.value.translations.value,
|
|
@@ -655,15 +655,15 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
655
655
|
N.value.translations.percentageToSerie,
|
|
656
656
|
N.value.translations.percentageToTotal
|
|
657
657
|
],
|
|
658
|
-
body:
|
|
658
|
+
body: U.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
659
659
|
color: e.color,
|
|
660
660
|
parentName: e.parentName,
|
|
661
661
|
parentValue: e.parentValue,
|
|
662
|
-
percentageToTotal: e.parentValue /
|
|
662
|
+
percentageToTotal: e.parentValue / X.value,
|
|
663
663
|
childName: e.name,
|
|
664
664
|
childValue: e.sign === 1 ? e.value : -e.value,
|
|
665
665
|
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
666
|
-
childPercentageToTotal: Math.abs(e.value) /
|
|
666
|
+
childPercentageToTotal: Math.abs(e.value) / X.value
|
|
667
667
|
} : {
|
|
668
668
|
color: "",
|
|
669
669
|
parentName: "",
|
|
@@ -672,24 +672,24 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
672
672
|
childName: e.name,
|
|
673
673
|
childValue: e.sign === 1 ? e.value : -e.value,
|
|
674
674
|
childPercentageToParent: Math.abs(e.value) / Math.abs(e.parentValue),
|
|
675
|
-
childPercentageToTotal: Math.abs(e.value) /
|
|
675
|
+
childPercentageToTotal: Math.abs(e.value) / X.value
|
|
676
676
|
} : {
|
|
677
677
|
color: e.color,
|
|
678
678
|
parentName: e.name,
|
|
679
679
|
parentValue: e.sign === 1 ? e.value : -e.value,
|
|
680
|
-
percentageToTotal: Math.abs(e.value) /
|
|
680
|
+
percentageToTotal: Math.abs(e.value) / X.value,
|
|
681
681
|
childName: "",
|
|
682
682
|
childValue: "",
|
|
683
683
|
childPercentageToParent: "",
|
|
684
684
|
childPercentageToTotal: ""
|
|
685
685
|
})
|
|
686
686
|
}));
|
|
687
|
-
function
|
|
687
|
+
function vr(e = null) {
|
|
688
688
|
let t = [
|
|
689
689
|
[N.value.style.chart.title.text],
|
|
690
690
|
[N.value.style.chart.title.subtitle.text],
|
|
691
691
|
[""]
|
|
692
|
-
], n =
|
|
692
|
+
], n = $.value.head, r = $.value.body.map((e) => [
|
|
693
693
|
e.parentName,
|
|
694
694
|
e.parentValue,
|
|
695
695
|
e.percentageToTotal,
|
|
@@ -703,33 +703,33 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
703
703
|
title: N.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
let
|
|
706
|
+
let yr = x(!1);
|
|
707
707
|
function br(e) {
|
|
708
|
-
|
|
708
|
+
yr.value = e, rn.value += 1;
|
|
709
709
|
}
|
|
710
710
|
function xr() {
|
|
711
|
-
|
|
711
|
+
B.value.showTable = !B.value.showTable;
|
|
712
712
|
}
|
|
713
713
|
Ve(() => {
|
|
714
714
|
[
|
|
715
715
|
"none",
|
|
716
716
|
"asc",
|
|
717
717
|
"desc"
|
|
718
|
-
].includes(N.value.style.chart.layout.bars.sort) ||
|
|
718
|
+
].includes(N.value.style.chart.layout.bars.sort) || s({
|
|
719
719
|
componentName: "VueUiVerticalBar",
|
|
720
720
|
type: "attributeWrongValue",
|
|
721
721
|
property: "style.chart.layout.bars.sort",
|
|
722
722
|
key: N.value.style.chart.layout.bars.sort
|
|
723
|
-
}), j.value = gn.value[N.value.style.chart.layout.bars.sort],
|
|
723
|
+
}), j.value = gn.value[N.value.style.chart.layout.bars.sort], B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
|
|
724
724
|
});
|
|
725
725
|
function Sr() {
|
|
726
726
|
j.value += 1, j.value > 2 && (j.value = 0);
|
|
727
727
|
}
|
|
728
728
|
function Cr() {
|
|
729
|
-
Sr(),
|
|
729
|
+
Sr(), B.value.sortDesc = j.value === 2, _n.value = j.value === 0;
|
|
730
730
|
}
|
|
731
731
|
function wr() {
|
|
732
|
-
|
|
732
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
733
733
|
}
|
|
734
734
|
let Tr = x(!1);
|
|
735
735
|
function Er() {
|
|
@@ -753,7 +753,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
755
|
let Or = d(() => {
|
|
756
|
-
let e = N.value.table.useDialog && !N.value.table.show, t =
|
|
756
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = B.value.showTable;
|
|
757
757
|
return {
|
|
758
758
|
component: e ? Jt : Ee,
|
|
759
759
|
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -762,7 +762,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
762
762
|
color: N.value.table.th.color,
|
|
763
763
|
headerColor: N.value.table.th.color,
|
|
764
764
|
headerBg: N.value.table.th.backgroundColor,
|
|
765
|
-
isFullscreen:
|
|
765
|
+
isFullscreen: yr.value,
|
|
766
766
|
fullscreenParent: k.value,
|
|
767
767
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
768
768
|
isCursorPointer: P.value
|
|
@@ -783,17 +783,17 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
});
|
|
786
|
-
Ke(() =>
|
|
786
|
+
Ke(() => B.value.showTable, (e) => {
|
|
787
787
|
N.value.table.show || (e && N.value.table.useDialog && fn.value ? fn.value.open() : "close" in fn.value && fn.value.close());
|
|
788
788
|
});
|
|
789
789
|
let { isResponsive: kr } = je(Hn, Un);
|
|
790
790
|
function Ar() {
|
|
791
|
-
|
|
791
|
+
B.value.showTable = !1, pn.value && pn.value.setTableIconState(!1);
|
|
792
792
|
}
|
|
793
|
-
let jr = d(() =>
|
|
793
|
+
let jr = d(() => V.value.map((e, t) => ({
|
|
794
794
|
...e,
|
|
795
795
|
shape: "square",
|
|
796
|
-
display: `${e.name}: ${
|
|
796
|
+
display: `${e.name}: ${le(N.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, c({
|
|
797
797
|
p: N.value.style.chart.legend.prefix,
|
|
798
798
|
v: e.value,
|
|
799
799
|
s: N.value.style.chart.legend.suffix,
|
|
@@ -845,14 +845,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
845
845
|
async function zr() {
|
|
846
846
|
if (Tn("copyAlt", {
|
|
847
847
|
config: N.value,
|
|
848
|
-
dataset:
|
|
848
|
+
dataset: H.value
|
|
849
849
|
}), !N.value.userOptions.callbacks.altCopy) {
|
|
850
850
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
851
851
|
return;
|
|
852
852
|
}
|
|
853
853
|
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
854
854
|
config: N.value,
|
|
855
|
-
dataset:
|
|
855
|
+
dataset: H.value
|
|
856
856
|
}));
|
|
857
857
|
}
|
|
858
858
|
let Br = x(!1);
|
|
@@ -864,8 +864,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
864
864
|
}
|
|
865
865
|
function Ur() {
|
|
866
866
|
if (M.value === null) return;
|
|
867
|
-
let e =
|
|
868
|
-
e &&
|
|
867
|
+
let e = U.value[M.value];
|
|
868
|
+
e && mr({
|
|
869
869
|
datapoint: e,
|
|
870
870
|
seriesIndex: M.value
|
|
871
871
|
}), M.value = null, wn.value = "pointer";
|
|
@@ -874,7 +874,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
874
874
|
if (!Pn.value || Tr.value || document.activeElement !== Pn.value) return;
|
|
875
875
|
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";
|
|
876
876
|
if (!t && !n && !r && !i) return;
|
|
877
|
-
let a =
|
|
877
|
+
let a = U.value.length;
|
|
878
878
|
if (!a) return;
|
|
879
879
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
880
880
|
Ur();
|
|
@@ -882,29 +882,29 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
882
882
|
}
|
|
883
883
|
if (r) {
|
|
884
884
|
if (M.value === null) return;
|
|
885
|
-
let e =
|
|
885
|
+
let e = U.value[M.value];
|
|
886
886
|
if (!e) return;
|
|
887
|
-
|
|
887
|
+
pr({
|
|
888
888
|
datapoint: e,
|
|
889
889
|
seriesIndex: M.value
|
|
890
890
|
});
|
|
891
891
|
return;
|
|
892
892
|
}
|
|
893
|
-
let o = M.value,
|
|
894
|
-
o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) :
|
|
895
|
-
let
|
|
896
|
-
|
|
893
|
+
let o = M.value, s = nn.value ? U.value.findIndex((e) => e.id === nn.value.id) : null;
|
|
894
|
+
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;
|
|
895
|
+
let ee = U.value[o];
|
|
896
|
+
ee && (M.value = o, Gr(ee), hr(ee, o, "keyboard"));
|
|
897
897
|
}
|
|
898
898
|
function Gr(e) {
|
|
899
899
|
if (!e) return;
|
|
900
|
-
let t =
|
|
900
|
+
let t = J.value.right, n = J.value.top + (L.value + K.value) * e.absoluteIndex + G.value[e.absoluteIndex] * W.value;
|
|
901
901
|
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
902
|
-
let
|
|
903
|
-
|
|
902
|
+
let r = te(t, n, Pn.value);
|
|
903
|
+
r && (Cn.value = r);
|
|
904
904
|
}
|
|
905
905
|
let Kr = d(() => ({
|
|
906
|
-
head:
|
|
907
|
-
body:
|
|
906
|
+
head: $.value.head,
|
|
907
|
+
body: $.value.body.map((e) => [
|
|
908
908
|
e.parentName,
|
|
909
909
|
e.parentValue === "" ? "" : c({
|
|
910
910
|
v: e.parentValue,
|
|
@@ -940,14 +940,14 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
940
940
|
}));
|
|
941
941
|
return Ce({
|
|
942
942
|
autoSize: Rr,
|
|
943
|
-
getData:
|
|
943
|
+
getData: cr,
|
|
944
944
|
getImage: Dr,
|
|
945
945
|
generatePdf: Rn,
|
|
946
|
-
generateCsv:
|
|
946
|
+
generateCsv: vr,
|
|
947
947
|
generateImage: zn,
|
|
948
948
|
generateSvg: Ir,
|
|
949
|
-
hideSeries:
|
|
950
|
-
showSeries:
|
|
949
|
+
hideSeries: rr,
|
|
950
|
+
showSeries: nr,
|
|
951
951
|
toggleTable: xr,
|
|
952
952
|
toggleSort: Cr,
|
|
953
953
|
toggleTooltip: wr,
|
|
@@ -955,7 +955,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
955
955
|
toggleFullscreen: br,
|
|
956
956
|
copyAlt: zr
|
|
957
957
|
}), (e, t) => (b(), m("div", {
|
|
958
|
-
class: _(`vue-data-ui-component vue-ui-vertical-bar ${
|
|
958
|
+
class: _(`vue-data-ui-component vue-ui-vertical-bar ${yr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"} ${N.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
959
959
|
ref_key: "verticalBarChart",
|
|
960
960
|
ref: k,
|
|
961
961
|
id: `vue-ui-vertical-bar_${O.value}`,
|
|
@@ -1047,8 +1047,8 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1047
1047
|
hasSort: N.value.userOptions.buttons.sort,
|
|
1048
1048
|
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1049
1049
|
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1050
|
-
isFullscreen:
|
|
1051
|
-
isTooltip:
|
|
1050
|
+
isFullscreen: yr.value,
|
|
1051
|
+
isTooltip: B.value.showTooltip,
|
|
1052
1052
|
titles: { ...N.value.userOptions.buttonTitles },
|
|
1053
1053
|
chartElement: k.value,
|
|
1054
1054
|
position: N.value.userOptions.position,
|
|
@@ -1060,7 +1060,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1060
1060
|
isCursorPointer: P.value,
|
|
1061
1061
|
onToggleFullscreen: br,
|
|
1062
1062
|
onGeneratePdf: T(Rn),
|
|
1063
|
-
onGenerateCsv:
|
|
1063
|
+
onGenerateCsv: vr,
|
|
1064
1064
|
onGenerateImage: Lr,
|
|
1065
1065
|
onGenerateSvg: Ir,
|
|
1066
1066
|
onToggleTable: xr,
|
|
@@ -1156,24 +1156,24 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1156
1156
|
ref: on
|
|
1157
1157
|
}, [(b(), f(Me, {
|
|
1158
1158
|
key: `legend_top_${un.value}`,
|
|
1159
|
-
legendSet:
|
|
1160
|
-
config:
|
|
1161
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1159
|
+
legendSet: V.value,
|
|
1160
|
+
config: Xn.value,
|
|
1161
|
+
onClickMarker: t[0] ||= ({ legend: e }) => Y(e.id)
|
|
1162
1162
|
}, Pe({
|
|
1163
1163
|
item: E(({ legend: e, index: t }) => [h("div", {
|
|
1164
|
-
onClick: (t) =>
|
|
1164
|
+
onClick: (t) => Y(e.id),
|
|
1165
1165
|
style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
|
|
1166
|
-
}, w(
|
|
1166
|
+
}, w(gr({
|
|
1167
1167
|
legend: e,
|
|
1168
1168
|
index: t
|
|
1169
1169
|
})), 13, Ze)]),
|
|
1170
|
-
legendToggle: E(() => [
|
|
1170
|
+
legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
|
|
1171
1171
|
key: 0,
|
|
1172
1172
|
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1173
1173
|
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1174
1174
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
1175
1175
|
checked: A.value.length > 0,
|
|
1176
|
-
onToggle:
|
|
1176
|
+
onToggle: er
|
|
1177
1177
|
}, null, 8, [
|
|
1178
1178
|
"backgroundColor",
|
|
1179
1179
|
"color",
|
|
@@ -1198,10 +1198,10 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1198
1198
|
h("div", Qe, [(b(), m("svg", {
|
|
1199
1199
|
ref_key: "svgRef",
|
|
1200
1200
|
ref: Pn,
|
|
1201
|
-
xmlns: T(
|
|
1201
|
+
xmlns: T(de),
|
|
1202
1202
|
class: _({
|
|
1203
|
-
"vue-data-ui-fullscreen--on":
|
|
1204
|
-
"vue-data-ui-fulscreen--off":
|
|
1203
|
+
"vue-data-ui-fullscreen--on": yr.value,
|
|
1204
|
+
"vue-data-ui-fulscreen--off": !yr.value
|
|
1205
1205
|
}),
|
|
1206
1206
|
viewBox: `0 0 ${F.value} ${I.value}`,
|
|
1207
1207
|
style: y(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
@@ -1224,7 +1224,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1224
1224
|
height: I.value,
|
|
1225
1225
|
style: { pointerEvents: "none" }
|
|
1226
1226
|
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : p("", !0),
|
|
1227
|
-
(b(!0), m(u, null, S(
|
|
1227
|
+
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("linearGradient", {
|
|
1228
1228
|
x1: "0%",
|
|
1229
1229
|
y1: "0%",
|
|
1230
1230
|
x2: "100%",
|
|
@@ -1235,37 +1235,37 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1235
1235
|
"stop-color": e.color
|
|
1236
1236
|
}, null, 8, nt), h("stop", {
|
|
1237
1237
|
offset: "100%",
|
|
1238
|
-
"stop-color": T(
|
|
1238
|
+
"stop-color": T(a)(T(o)(e.color, .03), 100 - N.value.style.chart.layout.bars.gradientIntensity)
|
|
1239
1239
|
}, null, 8, rt)], 8, tt))), 256)),
|
|
1240
|
-
e.$slots.pattern ? (b(), m("g", it, [(b(!0), m(u, null, S(
|
|
1240
|
+
e.$slots.pattern ? (b(), m("g", it, [(b(!0), m(u, null, S(U.value, (t) => (b(), m("defs", null, [C(e.$slots, "pattern", Re({ ref_for: !0 }, {
|
|
1241
1241
|
seriesIndex: t.absoluteIndex,
|
|
1242
1242
|
patternId: `pattern_${O.value}_${t.absoluteIndex}`
|
|
1243
1243
|
}), void 0, !0)]))), 256))])) : p("", !0),
|
|
1244
|
-
N.value.style.chart.layout.bars.rowColor ? (b(!0), m(u, { key: 2 }, S(
|
|
1244
|
+
N.value.style.chart.layout.bars.rowColor ? (b(!0), m(u, { key: 2 }, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1245
1245
|
x: 0,
|
|
1246
|
-
y:
|
|
1246
|
+
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
|
|
1247
1247
|
width: F.value,
|
|
1248
|
-
height:
|
|
1248
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1249
1249
|
fill: N.value.style.chart.layout.bars.rowColor,
|
|
1250
1250
|
rx: N.value.style.chart.layout.bars.rowRadius,
|
|
1251
1251
|
style: { pointerEvents: "none" }
|
|
1252
1252
|
}, null, 8, at)]))), 256)) : p("", !0),
|
|
1253
|
-
(b(!0), m(u, null, S(
|
|
1254
|
-
x: T(l)(
|
|
1255
|
-
y:
|
|
1256
|
-
width: T(l)(
|
|
1257
|
-
height:
|
|
1253
|
+
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1254
|
+
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : J.value.left),
|
|
1255
|
+
y: J.value.top + (L.value + K.value) * t + G.value[t] * W.value,
|
|
1256
|
+
width: T(l)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1257
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1258
1258
|
fill: N.value.style.chart.layout.bars.underlayerColor,
|
|
1259
1259
|
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1260
1260
|
class: _({ animated: N.value.useCssAnimation })
|
|
1261
1261
|
}, null, 10, ot)]))), 256)),
|
|
1262
|
-
(b(!0), m(u, null, S(
|
|
1262
|
+
(b(!0), m(u, null, S(U.value, (t, n) => (b(), m("g", null, [
|
|
1263
1263
|
h("rect", {
|
|
1264
|
-
x: T(l)(
|
|
1265
|
-
y:
|
|
1266
|
-
width: T(l)(
|
|
1267
|
-
height:
|
|
1268
|
-
fill: N.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${O.value}_${n})` : T(
|
|
1264
|
+
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
|
|
1265
|
+
y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1266
|
+
width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1267
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1268
|
+
fill: N.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${O.value}_${n})` : T(a)(t.color, N.value.style.chart.layout.bars.fillOpacity),
|
|
1269
1269
|
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1270
1270
|
stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1271
1271
|
"stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
|
|
@@ -1273,22 +1273,22 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1273
1273
|
}, null, 10, st),
|
|
1274
1274
|
e.$slots.pattern ? (b(), m("rect", {
|
|
1275
1275
|
key: 0,
|
|
1276
|
-
x: T(l)(
|
|
1277
|
-
y:
|
|
1278
|
-
width: T(l)(
|
|
1279
|
-
height:
|
|
1276
|
+
x: T(l)(Z.value ? J.value.left + J.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : J.value.left),
|
|
1277
|
+
y: J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1278
|
+
width: T(l)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1279
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
1280
1280
|
fill: `url(#pattern_${O.value}_${t.absoluteIndex})`,
|
|
1281
1281
|
rx: N.value.style.chart.layout.bars.borderRadius,
|
|
1282
1282
|
stroke: N.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1283
1283
|
"stroke-width": N.value.style.chart.layout.bars.useStroke ? N.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1284
1284
|
class: _({ animated: N.value.useCssAnimation })
|
|
1285
1285
|
}, null, 10, ct)) : p("", !0),
|
|
1286
|
-
(!t.isChild || t.isLastChild) && N.value.style.chart.layout.separators.show && n !==
|
|
1286
|
+
(!t.isChild || t.isLastChild) && N.value.style.chart.layout.separators.show && n !== U.value.length - 1 ? (b(), m("line", {
|
|
1287
1287
|
key: 1,
|
|
1288
1288
|
x1: F.value,
|
|
1289
|
-
x2: N.value.style.chart.layout.separators.fullWidth ? 0 :
|
|
1290
|
-
y1:
|
|
1291
|
-
y2:
|
|
1289
|
+
x2: N.value.style.chart.layout.separators.fullWidth ? 0 : J.value.left,
|
|
1290
|
+
y1: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1291
|
+
y2: K.value + L.value / 2 + J.value.top + (L.value + K.value) * n + G.value[n] * W.value,
|
|
1292
1292
|
stroke: N.value.style.chart.layout.separators.color,
|
|
1293
1293
|
"stroke-width": N.value.style.chart.layout.separators.strokeWidth,
|
|
1294
1294
|
"stroke-linecap": "round",
|
|
@@ -1297,12 +1297,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1297
1297
|
animation: "none !important"
|
|
1298
1298
|
}
|
|
1299
1299
|
}, null, 8, lt)) : p("", !0),
|
|
1300
|
-
|
|
1300
|
+
Z.value && N.value.style.chart.layout.separators.show ? (b(), m("line", {
|
|
1301
1301
|
key: 2,
|
|
1302
|
-
x1:
|
|
1303
|
-
x2:
|
|
1304
|
-
y1:
|
|
1305
|
-
y2:
|
|
1302
|
+
x1: J.value.left + J.value.width / 2,
|
|
1303
|
+
x2: J.value.left + J.value.width / 2,
|
|
1304
|
+
y1: J.value.top,
|
|
1305
|
+
y2: J.value.bottom,
|
|
1306
1306
|
stroke: N.value.style.chart.layout.separators.color,
|
|
1307
1307
|
"stroke-width": N.value.style.chart.layout.separators.strokeWidth,
|
|
1308
1308
|
"stroke-linecap": "round"
|
|
@@ -1311,12 +1311,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1311
1311
|
h("g", {
|
|
1312
1312
|
ref_key: "parentLabels",
|
|
1313
1313
|
ref: mn
|
|
1314
|
-
}, [(b(!0), m(u, null, S(
|
|
1314
|
+
}, [(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", dt, [
|
|
1315
1315
|
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("rect", {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
class: "vue-ui-horizontal-bar-parent-marker",
|
|
1318
1318
|
x: 2,
|
|
1319
|
-
y:
|
|
1319
|
+
y: sr(e, t).y - N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1320
1320
|
height: N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1321
1321
|
width: N.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1322
1322
|
rx: 1,
|
|
@@ -1328,99 +1328,99 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1328
1328
|
}, null, 8, ft)) : p("", !0),
|
|
1329
1329
|
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
|
|
1330
1330
|
key: 1,
|
|
1331
|
-
y:
|
|
1331
|
+
y: sr(e, t).y,
|
|
1332
1332
|
"font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1333
1333
|
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1334
1334
|
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1335
1335
|
"font-weight": N.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1336
1336
|
"text-anchor": "start",
|
|
1337
|
-
innerHTML: T(
|
|
1338
|
-
content: `${
|
|
1337
|
+
innerHTML: T(r)({
|
|
1338
|
+
content: `${lr(e, t)}`,
|
|
1339
1339
|
fontSize: N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1340
1340
|
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1341
1341
|
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1342
|
-
y:
|
|
1342
|
+
y: sr(e, t).y,
|
|
1343
1343
|
translateY: !1
|
|
1344
1344
|
})
|
|
1345
1345
|
}, null, 8, pt)) : p("", !0),
|
|
1346
1346
|
e.isChild && e.childIndex === 0 && N.value.style.chart.layout.bars.parentLabels.show ? (b(), m("text", {
|
|
1347
1347
|
key: 2,
|
|
1348
|
-
y:
|
|
1348
|
+
y: sr(e, t).y + T(ce)(lr(e, t)) * N.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1349
1349
|
"font-size": N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1350
1350
|
fill: N.value.style.chart.layout.bars.parentLabels.color,
|
|
1351
1351
|
x: N.value.style.chart.layout.bars.parentLabels.offsetX + N.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1352
1352
|
"font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1353
1353
|
"text-anchor": "start"
|
|
1354
|
-
}, w(
|
|
1354
|
+
}, w(ur(e, t)), 9, mt)) : p("", !0)
|
|
1355
1355
|
]))), 256))], 512),
|
|
1356
1356
|
h("g", {
|
|
1357
1357
|
ref_key: "childLabels",
|
|
1358
1358
|
ref: hn
|
|
1359
|
-
}, [(b(!0), m(u, null, S(
|
|
1359
|
+
}, [(b(!0), m(u, null, S(Jn.value, (e, t) => (b(), m("g", ht, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
|
|
1360
1360
|
key: 0,
|
|
1361
1361
|
"text-anchor": "start",
|
|
1362
1362
|
x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1363
|
-
y: T(l)(
|
|
1363
|
+
y: T(l)(J.value.top + (L.value + K.value) * t + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[t] * W.value),
|
|
1364
1364
|
"font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1365
1365
|
fill: "transparent",
|
|
1366
1366
|
"font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1367
1367
|
style: { "user-select": "none" },
|
|
1368
|
-
innerHTML: T(
|
|
1368
|
+
innerHTML: T(r)({
|
|
1369
1369
|
content: e.name,
|
|
1370
1370
|
fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1371
1371
|
fill: "transparent",
|
|
1372
1372
|
x: Math.abs(N.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1373
|
-
y: T(l)(
|
|
1373
|
+
y: T(l)(J.value.top + (L.value + K.value) * t + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 2 + G.value[t] * W.value),
|
|
1374
1374
|
translateY: !0
|
|
1375
1375
|
})
|
|
1376
1376
|
}, null, 8, gt)) : p("", !0)]))), 256))], 512),
|
|
1377
|
-
h("g", null, [(b(!0), m(u, null, S(
|
|
1377
|
+
h("g", null, [(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", _t, [(e.isChild || !e.hasChildren) && N.value.style.chart.layout.bars.nameLabels.show ? (b(), m("text", {
|
|
1378
1378
|
key: 0,
|
|
1379
1379
|
"text-anchor": "end",
|
|
1380
|
-
x:
|
|
1381
|
-
y:
|
|
1380
|
+
x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1381
|
+
y: J.value.top + (L.value + K.value) * t + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[t] * W.value,
|
|
1382
1382
|
"font-size": N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1383
1383
|
fill: N.value.style.chart.layout.bars.nameLabels.color,
|
|
1384
1384
|
"font-weight": N.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1385
|
-
innerHTML: T(
|
|
1385
|
+
innerHTML: T(r)({
|
|
1386
1386
|
content: e.name,
|
|
1387
1387
|
fontSize: N.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1388
1388
|
fill: N.value.style.chart.layout.bars.nameLabels.color,
|
|
1389
|
-
x:
|
|
1390
|
-
y:
|
|
1389
|
+
x: J.value.left + N.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1390
|
+
y: J.value.top + (L.value + K.value) * t + K.value / 2 + N.value.style.chart.layout.bars.nameLabels.fontSize / 3 + G.value[t] * W.value,
|
|
1391
1391
|
translateY: !0
|
|
1392
1392
|
})
|
|
1393
1393
|
}, null, 8, vt)) : p("", !0)]))), 256))]),
|
|
1394
1394
|
h("g", {
|
|
1395
1395
|
ref_key: "dataLabels",
|
|
1396
1396
|
ref: bn
|
|
1397
|
-
}, [(b(!0), m(u, null, S(
|
|
1398
|
-
x:
|
|
1399
|
-
y:
|
|
1400
|
-
"text-anchor": !
|
|
1397
|
+
}, [(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", yt, [h("text", {
|
|
1398
|
+
x: Z.value ? J.value.left + J.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -N.value.style.chart.layout.bars.dataLabels.offsetX : N.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(or(e.value) + 3 + N.value.style.chart.layout.bars.dataLabels.offsetX, J.value.right - 2),
|
|
1399
|
+
y: J.value.top + (L.value + K.value) * t + K.value / 2 + G.value[t] * W.value + N.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1400
|
+
"text-anchor": !Z.value || e.sign === -1 ? "start" : "end",
|
|
1401
1401
|
"font-size": N.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1402
1402
|
fill: N.value.style.chart.layout.bars.dataLabels.color,
|
|
1403
1403
|
"font-weight": N.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1404
|
-
}, w(
|
|
1405
|
-
(b(!0), m(u, null, S(
|
|
1404
|
+
}, w(_r(e.value, e, t, e.sign)), 9, bt)]))), 256))], 512),
|
|
1405
|
+
(b(!0), m(u, null, S(U.value, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1406
1406
|
x: 0,
|
|
1407
|
-
y:
|
|
1407
|
+
y: J.value.top + (L.value + K.value) * t - L.value / 2 + G.value[t] * W.value,
|
|
1408
1408
|
width: F.value,
|
|
1409
|
-
height:
|
|
1410
|
-
fill:
|
|
1411
|
-
onMouseenter: (n) =>
|
|
1412
|
-
onMouseleave: (n) =>
|
|
1409
|
+
height: K.value + L.value <= 0 ? 1e-4 : K.value + L.value,
|
|
1410
|
+
fill: dr.value === e.id ? T(a)(N.value.style.chart.layout.highlighter.color, N.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1411
|
+
onMouseenter: (n) => hr(e, t, "pointer"),
|
|
1412
|
+
onMouseleave: (n) => mr({
|
|
1413
1413
|
datapoint: e,
|
|
1414
1414
|
seriesIndex: t
|
|
1415
1415
|
}),
|
|
1416
|
-
onClick: (n) =>
|
|
1416
|
+
onClick: (n) => pr({
|
|
1417
1417
|
datapoint: e,
|
|
1418
1418
|
seriesIndex: t
|
|
1419
1419
|
})
|
|
1420
1420
|
}, null, 40, xt)]))), 256)),
|
|
1421
1421
|
C(e.$slots, "svg", { svg: {
|
|
1422
|
-
...
|
|
1423
|
-
drawingArea:
|
|
1422
|
+
...q.value,
|
|
1423
|
+
drawingArea: J.value,
|
|
1424
1424
|
isPrintingImg: T(In) || T(Ln) || xn.value,
|
|
1425
1425
|
isPrintingSvg: Sn.value
|
|
1426
1426
|
} }, void 0, !0)
|
|
@@ -1435,26 +1435,26 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1435
1435
|
ref: on
|
|
1436
1436
|
}, [(b(), f(Me, {
|
|
1437
1437
|
key: `legend_bottom_${un.value}`,
|
|
1438
|
-
legendSet:
|
|
1439
|
-
config:
|
|
1438
|
+
legendSet: V.value,
|
|
1439
|
+
config: Xn.value,
|
|
1440
1440
|
isCursorPointer: P.value,
|
|
1441
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1441
|
+
onClickMarker: t[1] ||= ({ legend: e }) => Y(e.id)
|
|
1442
1442
|
}, Pe({
|
|
1443
1443
|
item: E(({ legend: e, index: t }) => [h("div", {
|
|
1444
|
-
onClick: (t) =>
|
|
1444
|
+
onClick: (t) => Y(e.id),
|
|
1445
1445
|
style: y(`opacity:${A.value.includes(e.id) ? .5 : 1}`)
|
|
1446
|
-
}, w(
|
|
1446
|
+
}, w(gr({
|
|
1447
1447
|
legend: e,
|
|
1448
1448
|
index: t
|
|
1449
1449
|
})), 13, wt)]),
|
|
1450
|
-
legendToggle: E(() => [
|
|
1450
|
+
legendToggle: E(() => [V.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !T(On) ? (b(), f(De, {
|
|
1451
1451
|
key: 0,
|
|
1452
1452
|
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1453
1453
|
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1454
1454
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
1455
1455
|
checked: A.value.length > 0,
|
|
1456
1456
|
isCursorPointer: P.value,
|
|
1457
|
-
onToggle:
|
|
1457
|
+
onToggle: er
|
|
1458
1458
|
}, null, 8, [
|
|
1459
1459
|
"backgroundColor",
|
|
1460
1460
|
"color",
|
|
@@ -1481,7 +1481,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1481
1481
|
"config",
|
|
1482
1482
|
"isCursorPointer"
|
|
1483
1483
|
]))], 512)) : p("", !0),
|
|
1484
|
-
C(e.$slots, "legend", { legend:
|
|
1484
|
+
C(e.$slots, "legend", { legend: V.value }, void 0, !0),
|
|
1485
1485
|
e.$slots.source ? (b(), m("div", {
|
|
1486
1486
|
key: 8,
|
|
1487
1487
|
ref_key: "source",
|
|
@@ -1490,7 +1490,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1490
1490
|
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1491
1491
|
Ie(T(Ut), {
|
|
1492
1492
|
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1493
|
-
show:
|
|
1493
|
+
show: B.value.showTooltip && en.value && A.value.length < D.dataset.length,
|
|
1494
1494
|
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1495
1495
|
color: N.value.style.chart.tooltip.color,
|
|
1496
1496
|
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
@@ -1503,7 +1503,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1503
1503
|
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1504
1504
|
parent: k.value,
|
|
1505
1505
|
content: tn.value,
|
|
1506
|
-
isFullscreen:
|
|
1506
|
+
isFullscreen: yr.value,
|
|
1507
1507
|
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
1508
1508
|
smooth: N.value.style.chart.tooltip.smooth,
|
|
1509
1509
|
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
@@ -1512,9 +1512,9 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1512
1512
|
isA11yMode: wn.value === "keyboard",
|
|
1513
1513
|
a11yPosition: Cn.value
|
|
1514
1514
|
}, {
|
|
1515
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...
|
|
1516
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...
|
|
1517
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...
|
|
1515
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...fr.value })), void 0, !0)]),
|
|
1516
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...fr.value })), void 0, !0)]),
|
|
1517
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...fr.value })), void 0, !0)]),
|
|
1518
1518
|
_: 3
|
|
1519
1519
|
}, 8, [
|
|
1520
1520
|
"teleportTo",
|
|
@@ -1580,16 +1580,16 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1580
1580
|
h("thead", null, [h("tr", {
|
|
1581
1581
|
role: "row",
|
|
1582
1582
|
style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
|
|
1583
|
-
}, [(b(!0), m(u, null, S(
|
|
1583
|
+
}, [(b(!0), m(u, null, S($.value.head, (e) => (b(), m("th", { style: y(`outline:${N.value.table.th.outline}`) }, [h("div", Ot, w(e), 1)], 4))), 256))], 4), h("tr", null, [
|
|
1584
1584
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1585
|
-
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + w(N.value.table.td.prefix) + w(isNaN(
|
|
1585
|
+
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + w(N.value.table.td.prefix) + w(isNaN(X.value) ? "" : X.value.toFixed(N.value.table.td.roundingValue)) + w(N.value.table.td.suffix), 5),
|
|
1586
1586
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
1587
1587
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1588
1588
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1589
1589
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4),
|
|
1590
1590
|
h("th", { style: y(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color};outline:${N.value.table.th.outline}`) }, null, 4)
|
|
1591
1591
|
])]),
|
|
1592
|
-
h("tbody", null, [(b(!0), m(u, null, S(
|
|
1592
|
+
h("tbody", null, [(b(!0), m(u, null, S($.value.body, (e, t) => (b(), m("tr", {
|
|
1593
1593
|
class: _({
|
|
1594
1594
|
"vue-ui-data-table__tbody__row": !0,
|
|
1595
1595
|
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
@@ -1600,7 +1600,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1600
1600
|
h("td", {
|
|
1601
1601
|
class: "vue-ui-data-table__tbody__td",
|
|
1602
1602
|
style: y(`outline:${N.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1603
|
-
"data-cell":
|
|
1603
|
+
"data-cell": $.value.head[0] ?? ""
|
|
1604
1604
|
}, [h("div", At, [e.color ? (b(), m("span", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
style: y(`color:${e.color};margin-right:3px`)
|
|
@@ -1608,7 +1608,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1608
1608
|
h("td", {
|
|
1609
1609
|
class: "vue-ui-data-table__tbody__td",
|
|
1610
1610
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1611
|
-
"data-cell":
|
|
1611
|
+
"data-cell": $.value.head[1] ?? ""
|
|
1612
1612
|
}, [h("div", Mt, w(N.value.table.td.prefix) + w([
|
|
1613
1613
|
"",
|
|
1614
1614
|
NaN,
|
|
@@ -1617,7 +1617,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1617
1617
|
h("td", {
|
|
1618
1618
|
class: "vue-ui-data-table__tbody__td",
|
|
1619
1619
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1620
|
-
"data-cell":
|
|
1620
|
+
"data-cell": $.value.head[2] ?? ""
|
|
1621
1621
|
}, [h("div", Pt, w([
|
|
1622
1622
|
"",
|
|
1623
1623
|
NaN,
|
|
@@ -1626,12 +1626,12 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1626
1626
|
h("td", {
|
|
1627
1627
|
class: "vue-ui-data-table__tbody__td",
|
|
1628
1628
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1629
|
-
"data-cell":
|
|
1629
|
+
"data-cell": $.value.head[3] ?? ""
|
|
1630
1630
|
}, [h("div", It, w(e.childName), 1)], 12, Ft),
|
|
1631
1631
|
h("td", {
|
|
1632
1632
|
class: "vue-ui-data-table__tbody__td",
|
|
1633
1633
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1634
|
-
"data-cell":
|
|
1634
|
+
"data-cell": $.value.head[4] ?? ""
|
|
1635
1635
|
}, [h("div", Rt, w(N.value.table.td.prefix) + w([
|
|
1636
1636
|
"",
|
|
1637
1637
|
NaN,
|
|
@@ -1640,7 +1640,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1640
1640
|
h("td", {
|
|
1641
1641
|
class: "vue-ui-data-table__tbody__td",
|
|
1642
1642
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1643
|
-
"data-cell":
|
|
1643
|
+
"data-cell": $.value.head[5] ?? ""
|
|
1644
1644
|
}, [h("div", Bt, w([
|
|
1645
1645
|
"",
|
|
1646
1646
|
NaN,
|
|
@@ -1649,7 +1649,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1649
1649
|
h("td", {
|
|
1650
1650
|
class: "vue-ui-data-table__tbody__td",
|
|
1651
1651
|
style: y(`outline:${N.value.table.td.outline}`),
|
|
1652
|
-
"data-cell":
|
|
1652
|
+
"data-cell": $.value.head[6] ?? ""
|
|
1653
1653
|
}, [h("div", Ht, w([
|
|
1654
1654
|
"",
|
|
1655
1655
|
NaN,
|
|
@@ -1667,7 +1667,7 @@ var Je = /* @__PURE__ */ e({ default: () => Ut }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1667
1667
|
fn: E(() => [h("button", {
|
|
1668
1668
|
tabindex: "0",
|
|
1669
1669
|
class: "vue-ui-user-options-button",
|
|
1670
|
-
onClick: t[2] ||= (e) =>
|
|
1670
|
+
onClick: t[2] ||= (e) => vr(N.value.userOptions.callbacks.csv),
|
|
1671
1671
|
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1672
1672
|
}, [Ie(T(Wt), {
|
|
1673
1673
|
name: "fileCsv",
|