vue-data-ui 3.23.0 → 3.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.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-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/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.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/types/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, G as i, Gt as a, Jt as o, Kt as s, Pt as c, S as l, Vt as ee, X as u, b as d, ct as te, ft as ne, i as re, jt as ie, q as ae, t as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, G as i, Gt as a, Jt as o, Kt as s, Pt as c, S as l, Vt as ee, X as u, b as d, ct as te, ft as ne, i as re, jt as ie, q as ae, t as oe, tt as se, vt as ce, w as le, xt as ue } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as pe } from "./useConfig-
|
|
5
|
-
import { t as me } from "./usePrinter-
|
|
4
|
+
import { t as pe } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as me } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as _e } from "./
|
|
8
|
-
import { t as ve } from "./
|
|
9
|
-
import { t as ye } from "./
|
|
7
|
+
import { t as _e } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ye } from "./useChartExport-DNiwdPmb.js";
|
|
10
10
|
import { t as be } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as xe } from "./img-
|
|
12
|
-
import { n as Se } from "./Title-
|
|
13
|
-
import { t as Ce } from "./Shape-
|
|
11
|
+
import { t as xe } from "./img-Bnokohej.js";
|
|
12
|
+
import { n as Se } from "./Title-BE3qg9xl.js";
|
|
13
|
+
import { t as Ce } from "./Shape-C21CMlWS.js";
|
|
14
14
|
import { t as we } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as Te, t as Ee } from "./useResponsive-ZtArZtUf.js";
|
|
16
16
|
import { t as De } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as Oe } from "./vue-ui-accordion-
|
|
18
|
-
import { t as ke } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Oe } from "./vue-ui-accordion-DegI2lzR.js";
|
|
18
|
+
import { t as ke } from "./BaseLegendToggle-DZVucLnv.js";
|
|
19
19
|
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
20
20
|
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
21
21
|
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
22
22
|
import { t as Ne } from "./useTableResponsive-BAqJPR68.js";
|
|
23
|
-
import { t as Pe } from "./Legend-
|
|
23
|
+
import { t as Pe } from "./Legend-CQxUgOd-.js";
|
|
24
24
|
import { t as Fe } from "./vue_ui_horizontal_bar-C4J4QzXf.js";
|
|
25
25
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as ze, guardReactiveProps as v, mergeProps as Be, nextTick as Ve, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as He, onMounted as Ue, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as We, toDisplayString as E, toRefs as Ge, unref as D, useCssVars as Ke, useSlots as qe, watch as Je, withCtx as O, withKeys as Ye } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-horizontal-bar.vue
|
|
@@ -192,8 +192,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
192
192
|
"selectDatapoint"
|
|
193
193
|
],
|
|
194
194
|
setup(e, { expose: we, emit: Xe }) {
|
|
195
|
-
Ke((e) => ({
|
|
196
|
-
let Rt = ze(() => import("./Tooltip-
|
|
195
|
+
Ke((e) => ({ v36eb389c: e.tdo }));
|
|
196
|
+
let Rt = ze(() => import("./Tooltip-DhjyfHwz.js")), zt = ze(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Bt = ze(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Vt = ze(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ht = ze(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Ut = ze(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_vertical_bar: Wt } = pe(), { isThemeValid: Gt, warnInvalidTheme: Kt } = ve(), qt = qe(), k = e, Jt = p({
|
|
197
197
|
get() {
|
|
198
198
|
return !!k.dataset && k.dataset.length;
|
|
199
199
|
},
|
|
@@ -204,10 +204,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
204
204
|
none: 0,
|
|
205
205
|
asc: 1,
|
|
206
206
|
desc: 2
|
|
207
|
-
}), N = C(0), fn = C(!1), pn = C(0), mn = null, hn = null,
|
|
207
|
+
}), N = C(0), fn = C(!1), pn = C(0), mn = null, hn = null, P = C(null), gn = C({
|
|
208
208
|
x: 0,
|
|
209
209
|
y: 0
|
|
210
|
-
}),
|
|
210
|
+
}), _n = C("pointer"), vn = Xe, F = C(kn());
|
|
211
211
|
de({
|
|
212
212
|
config: () => F.value,
|
|
213
213
|
dataset: () => k.dataset,
|
|
@@ -226,7 +226,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
226
226
|
let { transitionEnabled: I } = be({
|
|
227
227
|
config: () => F.value.transitions,
|
|
228
228
|
dataset: () => k.dataset
|
|
229
|
-
}),
|
|
229
|
+
}), yn = p(() => F.value.userOptions.useCursorPointer), bn = p(() => k.config?.skeletonDataset ?? [
|
|
230
230
|
{
|
|
231
231
|
name: "",
|
|
232
232
|
value: 6,
|
|
@@ -257,7 +257,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
257
257
|
value: 1,
|
|
258
258
|
color: "#d9d9d9"
|
|
259
259
|
}
|
|
260
|
-
]),
|
|
260
|
+
]), xn = p(() => o({
|
|
261
261
|
defaultConfig: {
|
|
262
262
|
useCssAnimation: !1,
|
|
263
263
|
userOptions: { show: !1 },
|
|
@@ -294,34 +294,34 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
294
294
|
} }
|
|
295
295
|
},
|
|
296
296
|
userConfig: F.value.skeletonConfig ?? {}
|
|
297
|
-
})), { loading:
|
|
297
|
+
})), { loading: Sn, FINAL_DATASET: Cn, manualLoading: wn } = he({
|
|
298
298
|
...Ge(k),
|
|
299
299
|
FINAL_CONFIG: F,
|
|
300
|
-
prepareConfig:
|
|
300
|
+
prepareConfig: kn,
|
|
301
301
|
callback: () => {
|
|
302
302
|
Promise.resolve().then(async () => {
|
|
303
|
-
|
|
303
|
+
H.value.showTable = F.value.table.show, Bn();
|
|
304
304
|
});
|
|
305
305
|
},
|
|
306
|
-
skeletonDataset:
|
|
306
|
+
skeletonDataset: bn.value,
|
|
307
307
|
skeletonConfig: o({
|
|
308
308
|
defaultConfig: F.value,
|
|
309
|
-
userConfig:
|
|
309
|
+
userConfig: xn.value
|
|
310
310
|
})
|
|
311
|
-
}), { userOptionsVisible:
|
|
312
|
-
function
|
|
313
|
-
let e =
|
|
311
|
+
}), { userOptionsVisible: Tn, setUserOptionsVisibility: En, keepUserOptionState: Dn } = je({ config: F.value }), { svgRef: On } = Me({ config: F.value.style.chart.title });
|
|
312
|
+
function kn() {
|
|
313
|
+
let e = _e({
|
|
314
314
|
userConfig: k.config,
|
|
315
315
|
defaultConfig: Wt
|
|
316
316
|
}), t = {}, n = e.theme;
|
|
317
317
|
if (n) if (!Gt.value(e)) Kt(e), t = e;
|
|
318
318
|
else {
|
|
319
|
-
let r =
|
|
319
|
+
let r = _e({
|
|
320
320
|
userConfig: Fe[n] || k.config,
|
|
321
321
|
defaultConfig: e
|
|
322
322
|
});
|
|
323
323
|
t = {
|
|
324
|
-
...
|
|
324
|
+
..._e({
|
|
325
325
|
userConfig: k.config,
|
|
326
326
|
defaultConfig: r
|
|
327
327
|
}),
|
|
@@ -333,21 +333,21 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
333
333
|
}
|
|
334
334
|
let L = C(F.value.style.chart.width), R = C(F.value.style.chart.height), z = C(F.value.style.chart.layout.bars.gap);
|
|
335
335
|
Je(() => k.config, (e) => {
|
|
336
|
-
|
|
336
|
+
Sn.value || (F.value = kn()), Tn.value = !F.value.userOptions.showOnChartHover, rn.value += 1, an.value += 1, H.value.showTable = F.value.table.show, H.value.sortDesc = F.value.style.chart.layout.bars.sort === "desc", H.value.showTooltip = F.value.style.chart.tooltip.show, L.value = F.value.style.chart.width, R.value = F.value.style.chart.height, z.value = F.value.style.chart.layout.bars.gap;
|
|
337
337
|
}, { deep: !0 }), Je(() => k.dataset, (e) => {
|
|
338
|
-
Array.isArray(e) && e.length > 0 && (
|
|
338
|
+
Array.isArray(e) && e.length > 0 && (wn.value = !1);
|
|
339
339
|
}, { deep: !0 });
|
|
340
|
-
let { isPrinting:
|
|
340
|
+
let { isPrinting: An, isImaging: jn, generatePdf: Mn, generateImage: Nn } = me({
|
|
341
341
|
elementId: `vue-ui-vertical-bar_${A.value}`,
|
|
342
342
|
fileName: F.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
343
343
|
options: F.value.userOptions.print
|
|
344
|
-
}),
|
|
345
|
-
function
|
|
344
|
+
}), Pn = p(() => F.value.userOptions.show && !F.value.style.chart.title.text), Fn = p(() => le(F.value.customPalette)), In = C(null), Ln = p(() => F.value.table.responsiveBreakpoint), Rn = p(() => F.value.debug), zn = C(0), B = C(null), V = C(null);
|
|
345
|
+
function Bn() {
|
|
346
346
|
if (j.value && (ie(k.dataset) && (se({
|
|
347
347
|
componentName: "VueUiVerticalBar",
|
|
348
348
|
type: "dataset",
|
|
349
|
-
debug:
|
|
350
|
-
}), Jt.value = !1,
|
|
349
|
+
debug: Rn.value
|
|
350
|
+
}), Jt.value = !1, wn.value = !0), ie(k.dataset) || (wn.value = F.value.loading), F.value.responsive)) {
|
|
351
351
|
let e = Te(() => {
|
|
352
352
|
let { width: e, height: t } = Ee({
|
|
353
353
|
chart: j.value,
|
|
@@ -356,33 +356,33 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
356
356
|
source: tn.value,
|
|
357
357
|
noTitle: nn.value
|
|
358
358
|
});
|
|
359
|
-
|
|
359
|
+
zn.value = t / 3, requestAnimationFrame(async () => {
|
|
360
360
|
R.value = t, L.value = e;
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
B.value && (
|
|
364
|
-
|
|
363
|
+
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), Ve(() => {
|
|
364
|
+
V.value = j.value?.parentNode, V.value && B.value.observe(V.value);
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
He(() => {
|
|
369
|
-
B.value && (
|
|
369
|
+
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
370
370
|
});
|
|
371
|
-
let
|
|
371
|
+
let H = C({
|
|
372
372
|
showTable: F.value.table.show,
|
|
373
373
|
sortDesc: F.value.style.chart.layout.bars.sort === "desc",
|
|
374
374
|
showTooltip: F.value.style.chart.tooltip.show
|
|
375
|
-
}),
|
|
375
|
+
}), Vn = p(() => H.value.sortDesc), U = p(() => (Cn.value.forEach((e, t) => {
|
|
376
376
|
!e.value && !e.children && se({
|
|
377
377
|
componentName: "VueUiVerticalBar",
|
|
378
378
|
type: "datasetAttributeEmpty",
|
|
379
379
|
property: `value (index ${t})`,
|
|
380
|
-
debug:
|
|
380
|
+
debug: Rn.value
|
|
381
381
|
}), e.children && (ie(e.children) ? se({
|
|
382
382
|
componentName: "VueUiVerticalBar",
|
|
383
383
|
type: "datasetAttributeEmpty",
|
|
384
384
|
property: `children (index ${t})`,
|
|
385
|
-
debug:
|
|
385
|
+
debug: Rn.value
|
|
386
386
|
}) : e.children.forEach((e, t) => {
|
|
387
387
|
[null, void 0].includes(e.name) && se({
|
|
388
388
|
componentName: "VueUiVerticalBar",
|
|
@@ -390,10 +390,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
390
390
|
property: "name",
|
|
391
391
|
key: "children",
|
|
392
392
|
index: t,
|
|
393
|
-
debug:
|
|
393
|
+
debug: Rn.value
|
|
394
394
|
});
|
|
395
395
|
}));
|
|
396
|
-
}),
|
|
396
|
+
}), Cn.value.map((e, t) => {
|
|
397
397
|
let n = `vertical_parent_${t}_${A.value}`, r = e.children && e.children.length > 0, i = d(e.value ? e.value : r ? e.children.map((e) => e.value || 0).reduce((e, t) => e + t, 0) : 0), a = i >= 0 ? 1 : -1;
|
|
398
398
|
return {
|
|
399
399
|
...e,
|
|
@@ -405,10 +405,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
405
405
|
sign: a,
|
|
406
406
|
hasChildren: r,
|
|
407
407
|
isChild: !1,
|
|
408
|
-
segregate: () =>
|
|
408
|
+
segregate: () => tr(n),
|
|
409
409
|
isSegregated: M.value.includes(n),
|
|
410
|
-
color: l(e.color) ||
|
|
411
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(fn.value ? () => 0 : (e, t) =>
|
|
410
|
+
color: l(e.color) || Fn.value[t] || c[t] || c[t % c.length],
|
|
411
|
+
children: !e.children || !e.children.length ? [] : e.children.toSorted(fn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value).map((r, o) => ({
|
|
412
412
|
...r,
|
|
413
413
|
value: d(Math.abs(r.value)),
|
|
414
414
|
absoluteIndex: t,
|
|
@@ -420,29 +420,29 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
420
420
|
parentSign: a,
|
|
421
421
|
id: `vertical_child_${t}_${o}_${A.value}`,
|
|
422
422
|
childIndex: o,
|
|
423
|
-
color: l(r.color) || l(e.color) ||
|
|
423
|
+
color: l(r.color) || l(e.color) || Fn.value[t] || c[t] || c[t % c.length]
|
|
424
424
|
})).map((t, n) => ({
|
|
425
425
|
...t,
|
|
426
426
|
isFirstChild: n === 0,
|
|
427
427
|
isLastChild: n === e.children.length - 1
|
|
428
428
|
}))
|
|
429
429
|
};
|
|
430
|
-
}).toSorted(fn.value ? () => 0 : (e, t) =>
|
|
430
|
+
}).toSorted(fn.value ? () => 0 : (e, t) => Vn.value ? t.value - e.value : e.value - t.value))), W = p(() => U.value.filter((e) => !M.value.includes(e.id))), G = p(() => W.value.flatMap((e) => e.hasChildren ? e.children : e)), Hn = p(() => U.value.flatMap((e) => e.hasChildren ? e.children : e)), Un = p(() => W.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Wn = p(() => ({
|
|
431
431
|
cy: "vertical-bar-div-legend",
|
|
432
432
|
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
433
433
|
color: F.value.style.chart.legend.color,
|
|
434
434
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
435
435
|
paddingBottom: 12,
|
|
436
436
|
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
437
|
-
})),
|
|
437
|
+
})), K = p(() => F.value.style.chart.layout.bars.parentLabels.show ? F.value.style.chart.layout.bars.parentLabels.fontSize * 3 + F.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), q = p(() => {
|
|
438
438
|
let e = [], t = 0;
|
|
439
|
-
return
|
|
439
|
+
return G.value.forEach((n, r) => {
|
|
440
440
|
n.isChild && n.childIndex === 0 && F.value.style.chart.layout.bars.parentLabels.show && (t += 1), e[r] = t;
|
|
441
441
|
}), e;
|
|
442
|
-
}),
|
|
443
|
-
let e = Math.max(0, ...
|
|
444
|
-
return (R.value - 24 - (
|
|
445
|
-
}),
|
|
442
|
+
}), J = p(() => {
|
|
443
|
+
let e = Math.max(0, ...q.value) * K.value;
|
|
444
|
+
return (R.value - 24 - (Un.value - 1) * z.value - e) / Un.value;
|
|
445
|
+
}), Y = p(() => ({
|
|
446
446
|
width: L.value,
|
|
447
447
|
height: R.value,
|
|
448
448
|
padding: {
|
|
@@ -451,45 +451,45 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
451
451
|
right: 64 + F.value.style.chart.layout.bars.paddingRight,
|
|
452
452
|
bottom: 12
|
|
453
453
|
}
|
|
454
|
-
})),
|
|
455
|
-
function
|
|
454
|
+
})), Gn = C(0);
|
|
455
|
+
function Kn() {
|
|
456
456
|
Ve(() => {
|
|
457
457
|
if (!un.value) {
|
|
458
|
-
|
|
458
|
+
Gn.value = 0;
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
461
|
let e = Array.from(un.value.querySelectorAll("text")).reduce((e, t) => {
|
|
462
462
|
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
463
463
|
return n > e ? n : e;
|
|
464
464
|
}, 0);
|
|
465
|
-
|
|
465
|
+
Gn.value = e + 12;
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
Je(() => [
|
|
469
|
-
|
|
469
|
+
G.value,
|
|
470
470
|
L.value,
|
|
471
471
|
R.value,
|
|
472
472
|
F.value.style.chart.layout.bars.nameLabels,
|
|
473
473
|
F.value.style.chart.layout.bars.offsetX
|
|
474
|
-
], () =>
|
|
475
|
-
|
|
474
|
+
], () => Kn(), { deep: !0 }), Ue(() => {
|
|
475
|
+
Kn();
|
|
476
476
|
});
|
|
477
|
-
function
|
|
477
|
+
function qn() {
|
|
478
478
|
return typeof document > "u" ? null : (mn || (mn = document.createElement("canvas"), hn = mn.getContext("2d")), hn);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let t = String(e ?? ""), n = F.value.style.chart.layout.bars, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = F.value.style.fontFamily, o =
|
|
480
|
+
function Jn(e) {
|
|
481
|
+
let t = String(e ?? ""), n = F.value.style.chart.layout.bars, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = F.value.style.fontFamily, o = qn();
|
|
482
482
|
return o ? (o.font = `${i} ${r}px ${a}`, o.measureText(t).width) : t.length * r * .6;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
let e =
|
|
484
|
+
function Yn() {
|
|
485
|
+
let e = W.value.flatMap((e) => e.children && e.children.length ? e.children.map((e) => Math.abs(e.value)) : Math.abs(e.value));
|
|
486
486
|
return e.length ? Math.max(...e) : 0;
|
|
487
487
|
}
|
|
488
|
-
let
|
|
488
|
+
let Xn = p(() => {
|
|
489
489
|
pn.value;
|
|
490
|
-
let e = F.value.style.chart.layout.bars, t =
|
|
490
|
+
let e = F.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) => ({
|
|
491
491
|
serie: e,
|
|
492
|
-
textWidth:
|
|
492
|
+
textWidth: Jn(yr(e.value, e, t, e.sign))
|
|
493
493
|
}));
|
|
494
494
|
if (!o.length || r <= 0) return {
|
|
495
495
|
left: 0,
|
|
@@ -527,122 +527,122 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
527
527
|
left: 0,
|
|
528
528
|
right: Math.ceil(Math.min(r, -u))
|
|
529
529
|
};
|
|
530
|
-
}),
|
|
531
|
-
function
|
|
530
|
+
}), Zn = p(() => Xn.value.right), Qn = p(() => Xn.value.left);
|
|
531
|
+
function $n() {
|
|
532
532
|
pn.value += 1;
|
|
533
533
|
}
|
|
534
534
|
Ue(() => {
|
|
535
|
-
typeof document > "u" || !document.fonts || (document.fonts.ready.then(
|
|
535
|
+
typeof document > "u" || !document.fonts || (document.fonts.ready.then($n), document.fonts.addEventListener?.("loadingdone", $n));
|
|
536
536
|
}), He(() => {
|
|
537
|
-
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone",
|
|
537
|
+
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone", $n), mn = null, hn = null;
|
|
538
538
|
});
|
|
539
|
-
let
|
|
540
|
-
let e =
|
|
539
|
+
let X = p(() => {
|
|
540
|
+
let e = Gn.value + Math.abs(F.value.style.chart.layout.bars.nameLabels.offsetX) + Qn.value + F.value.style.chart.layout.bars.offsetX, t = Y.value.width - Y.value.padding.right, n = Math.max(0, t - e - Zn.value - F.value.style.chart.layout.bars.offsetX);
|
|
541
541
|
return {
|
|
542
|
-
top:
|
|
543
|
-
bottom:
|
|
542
|
+
top: Y.value.padding.top,
|
|
543
|
+
bottom: Y.value.padding.top + Y.value.height,
|
|
544
544
|
left: e,
|
|
545
545
|
right: t,
|
|
546
546
|
width: n,
|
|
547
|
-
fullHeight:
|
|
547
|
+
fullHeight: Y.value.padding.top + Y.value.padding.bottom + Y.value.height
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
|
-
function
|
|
551
|
-
M.value.length ? M.value = [] :
|
|
550
|
+
function er() {
|
|
551
|
+
M.value.length ? M.value = [] : U.value.forEach((e) => {
|
|
552
552
|
M.value.push(e.id);
|
|
553
|
-
}),
|
|
553
|
+
}), vn("selectLegend", W.value);
|
|
554
554
|
}
|
|
555
|
-
async function
|
|
555
|
+
async function tr(e) {
|
|
556
556
|
if (M.value.includes(e)) M.value = M.value.filter((t) => t !== e);
|
|
557
557
|
else {
|
|
558
|
-
if (M.value.length ===
|
|
558
|
+
if (M.value.length === U.value.length - 1) return;
|
|
559
559
|
M.value.push(e);
|
|
560
560
|
}
|
|
561
|
-
|
|
561
|
+
vn("selectLegend", W.value);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
563
|
+
function nr(e) {
|
|
564
|
+
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);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
let t =
|
|
568
|
-
t !== null && M.value.includes(t.id) &&
|
|
566
|
+
function rr(e) {
|
|
567
|
+
let t = nr(e);
|
|
568
|
+
t !== null && M.value.includes(t.id) && tr(t.id);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
let t =
|
|
572
|
-
t !== null && (M.value.includes(t.id) ||
|
|
570
|
+
function ir(e) {
|
|
571
|
+
let t = nr(e);
|
|
572
|
+
t !== null && (M.value.includes(t.id) || tr(t.id));
|
|
573
573
|
}
|
|
574
|
-
let Z = p(() =>
|
|
575
|
-
function
|
|
574
|
+
let Z = p(() => W.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
575
|
+
function ar(e, t = !1, n = 0) {
|
|
576
576
|
return t ? u({
|
|
577
577
|
v: d(Math.abs(e) / Z.value * 100),
|
|
578
578
|
s: "%",
|
|
579
579
|
r: n
|
|
580
580
|
}) : Math.abs(e) / Z.value;
|
|
581
581
|
}
|
|
582
|
-
let
|
|
582
|
+
let or = p(() => G.value.map((e) => e.sign).includes(-1)), sr = p(() => Math.max(...W.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
583
583
|
function Q(e) {
|
|
584
|
-
let t = e /
|
|
585
|
-
return d(
|
|
584
|
+
let t = e / sr.value;
|
|
585
|
+
return d(X.value.width / (or.value ? 2 : 1) * t);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return Q(e) +
|
|
587
|
+
function cr(e) {
|
|
588
|
+
return Q(e) + X.value.left;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
let n =
|
|
590
|
+
function lr(e, t) {
|
|
591
|
+
let n = W.value.find((t) => t.id === e.parentId);
|
|
592
592
|
return {
|
|
593
|
-
y:
|
|
593
|
+
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value - K.value + F.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
594
594
|
name: n.name,
|
|
595
595
|
value: [
|
|
596
596
|
void 0,
|
|
597
597
|
NaN,
|
|
598
598
|
null
|
|
599
599
|
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
600
|
-
percentageToTotal: isNaN(n.value / Z.value) ? "" :
|
|
600
|
+
percentageToTotal: isNaN(n.value / Z.value) ? "" : ar(n.value, !0, F.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
601
601
|
sign: n.sign
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function ur() {
|
|
605
|
+
return W.value;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
return
|
|
607
|
+
function dr(e, t) {
|
|
608
|
+
return lr(e, t).name;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
let n =
|
|
612
|
-
return
|
|
610
|
+
function fr(e, t) {
|
|
611
|
+
let n = lr(e, t);
|
|
612
|
+
return yr(n.value, n, t, e.parentSign || e.sign);
|
|
613
613
|
}
|
|
614
|
-
let
|
|
615
|
-
function
|
|
616
|
-
|
|
614
|
+
let pr = C(null), mr = C(null);
|
|
615
|
+
function hr({ datapoint: e, seriesIndex: t }) {
|
|
616
|
+
vn("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
|
|
617
617
|
datapoint: e,
|
|
618
618
|
seriesIndex: t
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function gr({ datapoint: e, seriesIndex: t }) {
|
|
622
622
|
F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
623
623
|
datapoint: e,
|
|
624
624
|
seriesIndex: t
|
|
625
|
-
}), Zt.value = null, Yt.value = !1,
|
|
625
|
+
}), Zt.value = null, Yt.value = !1, pr.value = null, P.value === t && (P.value = null);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
627
|
+
function _r(e, t, n = "pointer") {
|
|
628
|
+
_n.value = n, F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
629
629
|
datpoint: e,
|
|
630
630
|
seriesIndex: t
|
|
631
|
-
}), P.value = t, Zt.value = e,
|
|
631
|
+
}), P.value = t, Zt.value = e, mr.value = {
|
|
632
632
|
datapoint: e,
|
|
633
633
|
seriesIndex: t,
|
|
634
|
-
series:
|
|
634
|
+
series: U.value,
|
|
635
635
|
config: F.value
|
|
636
|
-
}, Yt.value = !0,
|
|
636
|
+
}, Yt.value = !0, pr.value = e.id;
|
|
637
637
|
let r = "", i = e.isChild ? e.parentName : e.name, a = e.isChild ? e.name : "", o = F.value.style.chart.tooltip.customFormat;
|
|
638
638
|
ue(o) && te(() => o({
|
|
639
639
|
datapoint: e,
|
|
640
|
-
series:
|
|
640
|
+
series: U.value,
|
|
641
641
|
config: F.value,
|
|
642
642
|
seriesIndex: t
|
|
643
643
|
})) ? Xt.value = o({
|
|
644
644
|
datapoint: e,
|
|
645
|
-
series:
|
|
645
|
+
series: U.value,
|
|
646
646
|
config: F.value,
|
|
647
647
|
seriesIndex: t
|
|
648
648
|
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
@@ -666,7 +666,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
666
666
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
667
667
|
})}</b></div>`)), Xt.value = `<div style="text-align:left">${r}</div>`);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function vr({ legend: e, index: t }) {
|
|
670
670
|
let n = F.value.style.chart.legend;
|
|
671
671
|
return n.showValue ? `${e.name}: ${re(F.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, u({
|
|
672
672
|
p: n.prefix,
|
|
@@ -678,7 +678,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
678
678
|
seriesIndex: t
|
|
679
679
|
})}` : e.name;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function yr(e, t, n, r) {
|
|
682
682
|
if (!F.value.style.chart.layout.bars.dataLabels.value.show) return "";
|
|
683
683
|
let i = re(F.value.style.chart.layout.bars.dataLabels.value.formatter, d(r === -1 && e >= 0 ? -e : e), u({
|
|
684
684
|
p: F.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
@@ -688,7 +688,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
688
688
|
}), {
|
|
689
689
|
datapoint: t,
|
|
690
690
|
seriesIndex: n
|
|
691
|
-
}), a = `(${
|
|
691
|
+
}), a = `(${ar(e, !0, F.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
692
692
|
return `${i}${F.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${a}` : ""}`;
|
|
693
693
|
}
|
|
694
694
|
let $ = p(() => ({
|
|
@@ -701,7 +701,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
701
701
|
F.value.translations.percentageToSerie,
|
|
702
702
|
F.value.translations.percentageToTotal
|
|
703
703
|
],
|
|
704
|
-
body:
|
|
704
|
+
body: G.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
705
705
|
color: e.color,
|
|
706
706
|
parentName: e.parentName,
|
|
707
707
|
parentValue: e.parentValue,
|
|
@@ -730,7 +730,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
730
730
|
childPercentageToTotal: ""
|
|
731
731
|
})
|
|
732
732
|
}));
|
|
733
|
-
function
|
|
733
|
+
function br(e = null) {
|
|
734
734
|
let n = [
|
|
735
735
|
[F.value.style.chart.title.text],
|
|
736
736
|
[F.value.style.chart.title.subtitle.text],
|
|
@@ -743,18 +743,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
743
743
|
e.childValue,
|
|
744
744
|
e.childPercentageToParent,
|
|
745
745
|
e.childPercentageToTotal
|
|
746
|
-
]), o =
|
|
747
|
-
e ? e(
|
|
748
|
-
csvContent:
|
|
746
|
+
]), o = n.concat([i]).concat(a), s = r(o);
|
|
747
|
+
e ? e(s) : t({
|
|
748
|
+
csvContent: s,
|
|
749
749
|
title: F.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
|
-
let
|
|
753
|
-
function
|
|
754
|
-
|
|
752
|
+
let xr = C(!1);
|
|
753
|
+
function Sr(e) {
|
|
754
|
+
xr.value = e, Qt.value += 1;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
|
|
756
|
+
function Cr() {
|
|
757
|
+
H.value.showTable = !H.value.showTable;
|
|
758
758
|
}
|
|
759
759
|
Ue(() => {
|
|
760
760
|
[
|
|
@@ -766,22 +766,22 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
766
766
|
type: "attributeWrongValue",
|
|
767
767
|
property: "style.chart.layout.bars.sort",
|
|
768
768
|
key: F.value.style.chart.layout.bars.sort
|
|
769
|
-
}), N.value = dn.value[F.value.style.chart.layout.bars.sort],
|
|
769
|
+
}), N.value = dn.value[F.value.style.chart.layout.bars.sort], H.value.sortDesc = N.value === 2, fn.value = N.value === 0;
|
|
770
770
|
});
|
|
771
|
-
function
|
|
771
|
+
function wr() {
|
|
772
772
|
N.value += 1, N.value > 2 && (N.value = 0);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
774
|
+
function Tr() {
|
|
775
|
+
wr(), H.value.sortDesc = N.value === 2, fn.value = N.value === 0;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
|
|
777
|
+
function Er() {
|
|
778
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
779
779
|
}
|
|
780
|
-
let
|
|
781
|
-
function
|
|
782
|
-
|
|
780
|
+
let Dr = C(!1);
|
|
781
|
+
function Or() {
|
|
782
|
+
Dr.value = !Dr.value;
|
|
783
783
|
}
|
|
784
|
-
async function
|
|
784
|
+
async function kr({ scale: e = 2 } = {}) {
|
|
785
785
|
if (!j.value) return;
|
|
786
786
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
787
787
|
domElement: j.value,
|
|
@@ -798,8 +798,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
798
798
|
aspectRatio: r
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
let
|
|
802
|
-
let e = F.value.table.useDialog && !F.value.table.show, t =
|
|
801
|
+
let Ar = p(() => {
|
|
802
|
+
let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
|
|
803
803
|
return {
|
|
804
804
|
component: e ? Ut : Oe,
|
|
805
805
|
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -808,10 +808,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
808
808
|
color: F.value.table.th.color,
|
|
809
809
|
headerColor: F.value.table.th.color,
|
|
810
810
|
headerBg: F.value.table.th.backgroundColor,
|
|
811
|
-
isFullscreen:
|
|
811
|
+
isFullscreen: xr.value,
|
|
812
812
|
fullscreenParent: j.value,
|
|
813
813
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
814
|
-
isCursorPointer:
|
|
814
|
+
isCursorPointer: yn.value
|
|
815
815
|
} : {
|
|
816
816
|
hideDetails: !0,
|
|
817
817
|
config: {
|
|
@@ -829,14 +829,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
831
|
});
|
|
832
|
-
Je(() =>
|
|
832
|
+
Je(() => H.value.showTable, (e) => {
|
|
833
833
|
F.value.table.show || (e && F.value.table.useDialog && sn.value ? sn.value.open() : "close" in sn.value && sn.value.close());
|
|
834
834
|
});
|
|
835
|
-
let { isResponsive:
|
|
836
|
-
function
|
|
837
|
-
|
|
835
|
+
let { isResponsive: jr } = Ne(In, Ln);
|
|
836
|
+
function Mr() {
|
|
837
|
+
H.value.showTable = !1, cn.value && cn.value.setTableIconState(!1);
|
|
838
838
|
}
|
|
839
|
-
let
|
|
839
|
+
let Nr = p(() => U.value.map((e, t) => ({
|
|
840
840
|
...e,
|
|
841
841
|
shape: "square",
|
|
842
842
|
display: `${e.name}: ${re(F.value.style.chart.layout.bars.dataLabels.value.formatter, e.value, u({
|
|
@@ -848,57 +848,32 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
848
848
|
datapoint: e,
|
|
849
849
|
seriesIndex: t
|
|
850
850
|
})}`
|
|
851
|
-
}))),
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
backgroundColor:
|
|
851
|
+
}))), Pr = p(() => F.value.style.chart.backgroundColor), Fr = p(() => F.value.style.chart.legend), Ir = p(() => F.value.style.chart.title), Lr = p(() => Nr.value.map((e) => ({
|
|
852
|
+
...e,
|
|
853
|
+
name: e.display
|
|
854
|
+
}))), { isCallbackImaging: Rr, isCallbackSvg: zr, generateSvg: Br, onGenerateImage: Vr } = ye({
|
|
855
|
+
svg: On,
|
|
856
|
+
title: Ir,
|
|
857
|
+
legend: Fr,
|
|
858
|
+
legendItems: Lr,
|
|
859
|
+
backgroundColor: Pr,
|
|
860
|
+
getSvgCallback: () => F.value.userOptions.callbacks.svg,
|
|
861
|
+
generateImage: Nn
|
|
860
862
|
});
|
|
861
|
-
async function Br({ isCb: e }) {
|
|
862
|
-
_n.value = !0, await Ve();
|
|
863
|
-
try {
|
|
864
|
-
if (e) {
|
|
865
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await zr();
|
|
866
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
867
|
-
blob: e,
|
|
868
|
-
url: t,
|
|
869
|
-
text: n,
|
|
870
|
-
dataUrl: r
|
|
871
|
-
}));
|
|
872
|
-
} else await Promise.resolve(Rr());
|
|
873
|
-
} finally {
|
|
874
|
-
_n.value = !1;
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
function Vr(e) {
|
|
878
|
-
if (e?.stage === "start") {
|
|
879
|
-
gn.value = !0;
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
if (e?.stage === "end") {
|
|
883
|
-
gn.value = !1;
|
|
884
|
-
return;
|
|
885
|
-
}
|
|
886
|
-
Fn();
|
|
887
|
-
}
|
|
888
863
|
function Hr() {
|
|
889
864
|
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
890
865
|
}
|
|
891
866
|
async function Ur() {
|
|
892
|
-
if (
|
|
867
|
+
if (vn("copyAlt", {
|
|
893
868
|
config: F.value,
|
|
894
|
-
dataset:
|
|
869
|
+
dataset: W.value
|
|
895
870
|
}), !F.value.userOptions.callbacks.altCopy) {
|
|
896
871
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
897
872
|
return;
|
|
898
873
|
}
|
|
899
874
|
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
900
875
|
config: F.value,
|
|
901
|
-
dataset:
|
|
876
|
+
dataset: W.value
|
|
902
877
|
}));
|
|
903
878
|
}
|
|
904
879
|
let Wr = C(!1);
|
|
@@ -910,17 +885,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
910
885
|
}
|
|
911
886
|
function qr() {
|
|
912
887
|
if (P.value === null) return;
|
|
913
|
-
let e =
|
|
914
|
-
e &&
|
|
888
|
+
let e = G.value[P.value];
|
|
889
|
+
e && gr({
|
|
915
890
|
datapoint: e,
|
|
916
891
|
seriesIndex: P.value
|
|
917
|
-
}), P.value = null,
|
|
892
|
+
}), P.value = null, _n.value = "pointer";
|
|
918
893
|
}
|
|
919
894
|
function Jr(e) {
|
|
920
|
-
if (!
|
|
895
|
+
if (!On.value || Dr.value || document.activeElement !== On.value) return;
|
|
921
896
|
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";
|
|
922
897
|
if (!t && !n && !r && !i) return;
|
|
923
|
-
let a =
|
|
898
|
+
let a = G.value.length;
|
|
924
899
|
if (!a) return;
|
|
925
900
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
926
901
|
qr();
|
|
@@ -928,25 +903,25 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
928
903
|
}
|
|
929
904
|
if (r) {
|
|
930
905
|
if (P.value === null) return;
|
|
931
|
-
let e =
|
|
906
|
+
let e = G.value[P.value];
|
|
932
907
|
if (!e) return;
|
|
933
|
-
|
|
908
|
+
hr({
|
|
934
909
|
datapoint: e,
|
|
935
910
|
seriesIndex: P.value
|
|
936
911
|
});
|
|
937
912
|
return;
|
|
938
913
|
}
|
|
939
|
-
let o = P.value, s = Zt.value ?
|
|
914
|
+
let o = P.value, s = Zt.value ? G.value.findIndex((e) => e.id === Zt.value.id) : null;
|
|
940
915
|
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;
|
|
941
|
-
let c =
|
|
942
|
-
c && (P.value = o, Yr(c),
|
|
916
|
+
let c = G.value[o];
|
|
917
|
+
c && (P.value = o, Yr(c), _r(c, o, "keyboard"));
|
|
943
918
|
}
|
|
944
919
|
function Yr(e) {
|
|
945
920
|
if (!e) return;
|
|
946
|
-
let t =
|
|
921
|
+
let t = X.value.right, n = X.value.top + (z.value + J.value) * e.absoluteIndex + q.value[e.absoluteIndex] * K.value;
|
|
947
922
|
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
948
|
-
let r = a(t, n,
|
|
949
|
-
r && (
|
|
923
|
+
let r = a(t, n, On.value);
|
|
924
|
+
r && (gn.value = r);
|
|
950
925
|
}
|
|
951
926
|
let Xr = p(() => ({
|
|
952
927
|
head: $.value.head,
|
|
@@ -986,28 +961,28 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
986
961
|
}));
|
|
987
962
|
return we({
|
|
988
963
|
autoSize: Hr,
|
|
989
|
-
getData:
|
|
990
|
-
getImage:
|
|
991
|
-
generatePdf:
|
|
992
|
-
generateCsv:
|
|
993
|
-
generateImage:
|
|
964
|
+
getData: ur,
|
|
965
|
+
getImage: kr,
|
|
966
|
+
generatePdf: Mn,
|
|
967
|
+
generateCsv: br,
|
|
968
|
+
generateImage: Nn,
|
|
994
969
|
generateSvg: Br,
|
|
995
|
-
hideSeries:
|
|
996
|
-
showSeries:
|
|
997
|
-
toggleTable:
|
|
998
|
-
toggleSort:
|
|
999
|
-
toggleTooltip:
|
|
1000
|
-
toggleAnnotator:
|
|
1001
|
-
toggleFullscreen:
|
|
970
|
+
hideSeries: ir,
|
|
971
|
+
showSeries: rr,
|
|
972
|
+
toggleTable: Cr,
|
|
973
|
+
toggleSort: Tr,
|
|
974
|
+
toggleTooltip: Er,
|
|
975
|
+
toggleAnnotator: Or,
|
|
976
|
+
toggleFullscreen: Sr,
|
|
1002
977
|
copyAlt: Ur
|
|
1003
978
|
}), (e, t) => (S(), g("div", {
|
|
1004
|
-
class: y(`vue-data-ui-component vue-ui-vertical-bar ${
|
|
979
|
+
class: y(`vue-data-ui-component vue-ui-vertical-bar ${xr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"} ${F.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
1005
980
|
ref_key: "verticalBarChart",
|
|
1006
981
|
ref: j,
|
|
1007
982
|
id: `vue-ui-vertical-bar_${A.value}`,
|
|
1008
983
|
style: x(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor};height:100%`),
|
|
1009
|
-
onMouseenter: t[3] ||= () => D(
|
|
1010
|
-
onMouseleave: t[4] ||= () => D(
|
|
984
|
+
onMouseenter: t[3] ||= () => D(En)(!0),
|
|
985
|
+
onMouseleave: t[4] ||= () => D(En)(!1)
|
|
1011
986
|
}, [
|
|
1012
987
|
_("p", {
|
|
1013
988
|
id: `chart-instructions-${A.value}`,
|
|
@@ -1029,12 +1004,12 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1029
1004
|
])) : h("", !0),
|
|
1030
1005
|
F.value.userOptions.buttons.annotator ? (S(), m(D(Bt), {
|
|
1031
1006
|
key: 1,
|
|
1032
|
-
svgRef: D(
|
|
1007
|
+
svgRef: D(On),
|
|
1033
1008
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1034
1009
|
color: F.value.style.chart.color,
|
|
1035
|
-
active:
|
|
1036
|
-
isCursorPointer:
|
|
1037
|
-
onClose:
|
|
1010
|
+
active: Dr.value,
|
|
1011
|
+
isCursorPointer: yn.value,
|
|
1012
|
+
onClose: Or
|
|
1038
1013
|
}, {
|
|
1039
1014
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1040
1015
|
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1050,7 +1025,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1050
1025
|
"active",
|
|
1051
1026
|
"isCursorPointer"
|
|
1052
1027
|
])) : h("", !0),
|
|
1053
|
-
|
|
1028
|
+
Pn.value ? (S(), g("div", {
|
|
1054
1029
|
key: 2,
|
|
1055
1030
|
ref_key: "noTitle",
|
|
1056
1031
|
ref: nn,
|
|
@@ -1075,14 +1050,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1075
1050
|
}
|
|
1076
1051
|
}
|
|
1077
1052
|
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
1078
|
-
F.value.userOptions.show && Jt.value && (D(
|
|
1053
|
+
F.value.userOptions.show && Jt.value && (D(Dn) || D(Tn)) ? (S(), m(D(Vt), {
|
|
1079
1054
|
ref_key: "userOptionsRef",
|
|
1080
1055
|
ref: cn,
|
|
1081
1056
|
backgroundColor: F.value.style.chart.backgroundColor,
|
|
1082
1057
|
color: F.value.style.chart.color,
|
|
1083
1058
|
key: `user_options_${Qt.value}`,
|
|
1084
|
-
isImaging: D(
|
|
1085
|
-
isPrinting: D(
|
|
1059
|
+
isImaging: D(jn),
|
|
1060
|
+
isPrinting: D(An),
|
|
1086
1061
|
uid: A.value,
|
|
1087
1062
|
hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
|
|
1088
1063
|
hasPdf: F.value.userOptions.buttons.pdf,
|
|
@@ -1093,28 +1068,28 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1093
1068
|
hasSort: F.value.userOptions.buttons.sort,
|
|
1094
1069
|
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
1095
1070
|
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
1096
|
-
isFullscreen:
|
|
1097
|
-
isTooltip:
|
|
1071
|
+
isFullscreen: xr.value,
|
|
1072
|
+
isTooltip: H.value.showTooltip,
|
|
1098
1073
|
titles: { ...F.value.userOptions.buttonTitles },
|
|
1099
1074
|
chartElement: j.value,
|
|
1100
1075
|
position: F.value.userOptions.position,
|
|
1101
1076
|
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
1102
|
-
isAnnotation:
|
|
1077
|
+
isAnnotation: Dr.value,
|
|
1103
1078
|
callbacks: F.value.userOptions.callbacks,
|
|
1104
1079
|
printScale: F.value.userOptions.print.scale,
|
|
1105
1080
|
tableDialog: F.value.table.useDialog,
|
|
1106
|
-
isCursorPointer:
|
|
1107
|
-
onToggleFullscreen:
|
|
1108
|
-
onGeneratePdf: D(
|
|
1109
|
-
onGenerateCsv:
|
|
1110
|
-
onGenerateImage: Vr,
|
|
1111
|
-
onGenerateSvg: Br,
|
|
1112
|
-
onToggleTable:
|
|
1113
|
-
onToggleSort:
|
|
1114
|
-
onToggleTooltip:
|
|
1115
|
-
onToggleAnnotator:
|
|
1081
|
+
isCursorPointer: yn.value,
|
|
1082
|
+
onToggleFullscreen: Sr,
|
|
1083
|
+
onGeneratePdf: D(Mn),
|
|
1084
|
+
onGenerateCsv: br,
|
|
1085
|
+
onGenerateImage: D(Vr),
|
|
1086
|
+
onGenerateSvg: D(Br),
|
|
1087
|
+
onToggleTable: Cr,
|
|
1088
|
+
onToggleSort: Tr,
|
|
1089
|
+
onToggleTooltip: Er,
|
|
1090
|
+
onToggleAnnotator: Or,
|
|
1116
1091
|
onCopyAlt: Ur,
|
|
1117
|
-
style: x({ visibility: D(
|
|
1092
|
+
style: x({ visibility: D(Dn) ? D(Tn) ? "visible" : "hidden" : "visible" })
|
|
1118
1093
|
}, Ie({ _: 2 }, [
|
|
1119
1094
|
e.$slots.menuIcon ? {
|
|
1120
1095
|
name: "menuIcon",
|
|
@@ -1195,31 +1170,31 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1195
1170
|
fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1196
1171
|
key: "13"
|
|
1197
1172
|
} : void 0
|
|
1198
|
-
]), 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.style".split("."))) : h("", !0),
|
|
1173
|
+
]), 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("."))) : h("", !0),
|
|
1199
1174
|
F.value.style.chart.legend.show && F.value.style.chart.legend.position === "top" ? (S(), g("div", {
|
|
1200
1175
|
key: 5,
|
|
1201
1176
|
ref_key: "chartLegend",
|
|
1202
1177
|
ref: en
|
|
1203
1178
|
}, [(S(), m(Pe, {
|
|
1204
1179
|
key: `legend_top_${an.value}`,
|
|
1205
|
-
legendSet:
|
|
1206
|
-
config:
|
|
1207
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1180
|
+
legendSet: U.value,
|
|
1181
|
+
config: Wn.value,
|
|
1182
|
+
onClickMarker: t[0] ||= ({ legend: e }) => tr(e.id)
|
|
1208
1183
|
}, Ie({
|
|
1209
1184
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1210
|
-
onClick: (t) =>
|
|
1185
|
+
onClick: (t) => tr(e.id),
|
|
1211
1186
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1212
|
-
}, E(
|
|
1187
|
+
}, E(vr({
|
|
1213
1188
|
legend: e,
|
|
1214
1189
|
index: t
|
|
1215
1190
|
})), 13, $e)]),
|
|
1216
|
-
legendToggle: O(() => [
|
|
1191
|
+
legendToggle: O(() => [U.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !D(Sn) ? (S(), m(ke, {
|
|
1217
1192
|
key: 0,
|
|
1218
1193
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1219
1194
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1220
1195
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1221
1196
|
checked: M.value.length > 0,
|
|
1222
|
-
onToggle:
|
|
1197
|
+
onToggle: er
|
|
1223
1198
|
}, null, 8, [
|
|
1224
1199
|
"backgroundColor",
|
|
1225
1200
|
"color",
|
|
@@ -1243,11 +1218,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1243
1218
|
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : h("", !0),
|
|
1244
1219
|
_("div", et, [(S(), g("svg", {
|
|
1245
1220
|
ref_key: "svgRef",
|
|
1246
|
-
ref:
|
|
1221
|
+
ref: On,
|
|
1247
1222
|
xmlns: D(oe),
|
|
1248
1223
|
class: y({
|
|
1249
|
-
"vue-data-ui-fullscreen--on":
|
|
1250
|
-
"vue-data-ui-fulscreen--off": !
|
|
1224
|
+
"vue-data-ui-fullscreen--on": xr.value,
|
|
1225
|
+
"vue-data-ui-fulscreen--off": !xr.value,
|
|
1251
1226
|
"vue-data-ui-no-transition": !D(I)
|
|
1252
1227
|
}),
|
|
1253
1228
|
viewBox: `0 0 ${L.value} ${R.value}`,
|
|
@@ -1271,7 +1246,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1271
1246
|
height: R.value,
|
|
1272
1247
|
style: { pointerEvents: "none" }
|
|
1273
1248
|
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
|
|
1274
|
-
_("defs", null, [(S(!0), g(f, null, w(
|
|
1249
|
+
_("defs", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), m(De, {
|
|
1275
1250
|
t: "linear",
|
|
1276
1251
|
x1: "0%",
|
|
1277
1252
|
y1: "0%",
|
|
@@ -1289,35 +1264,35 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1289
1264
|
1
|
|
1290
1265
|
]]
|
|
1291
1266
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1292
|
-
e.$slots.pattern ? (S(), g("g", rt, [(S(!0), g(f, null, w(
|
|
1267
|
+
e.$slots.pattern ? (S(), g("g", rt, [(S(!0), g(f, null, w(G.value, (t) => (S(), g("defs", null, [T(e.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1293
1268
|
seriesIndex: t.absoluteIndex,
|
|
1294
1269
|
patternId: `pattern_${A.value}_${t.absoluteIndex}`
|
|
1295
1270
|
}), void 0, !0)]))), 256))])) : h("", !0),
|
|
1296
|
-
F.value.style.chart.layout.bars.rowColor ? (S(!0), g(f, { key: 2 }, w(
|
|
1271
|
+
F.value.style.chart.layout.bars.rowColor ? (S(!0), g(f, { key: 2 }, w(G.value, (e, t) => (S(), g("g", { key: `row_${e.id}` }, [_("rect", {
|
|
1297
1272
|
x: 0,
|
|
1298
|
-
y:
|
|
1273
|
+
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
|
|
1299
1274
|
width: L.value,
|
|
1300
|
-
height:
|
|
1275
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1301
1276
|
fill: F.value.style.chart.layout.bars.rowColor,
|
|
1302
1277
|
rx: F.value.style.chart.layout.bars.rowRadius,
|
|
1303
1278
|
style: { pointerEvents: "none" },
|
|
1304
1279
|
class: y({ "vue-data-ui-transition": D(I) })
|
|
1305
1280
|
}, null, 10, it)]))), 128)) : h("", !0),
|
|
1306
|
-
(S(!0), g(f, null, w(
|
|
1307
|
-
x: D(d)(
|
|
1308
|
-
y:
|
|
1281
|
+
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", { key: `underlayer_${e.id}` }, [_("rect", {
|
|
1282
|
+
x: D(d)(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),
|
|
1283
|
+
y: X.value.top + (z.value + J.value) * t + q.value[t] * K.value,
|
|
1309
1284
|
width: D(d)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1310
|
-
height:
|
|
1285
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1311
1286
|
fill: F.value.style.chart.layout.bars.underlayerColor,
|
|
1312
1287
|
rx: F.value.style.chart.layout.bars.borderRadius,
|
|
1313
1288
|
class: y({ "vue-data-ui-transition": D(I) })
|
|
1314
1289
|
}, null, 10, at)]))), 128)),
|
|
1315
|
-
(S(!0), g(f, null, w(
|
|
1290
|
+
(S(!0), g(f, null, w(G.value, (t, r) => (S(), g("g", { key: `barloop_${t.id}` }, [
|
|
1316
1291
|
_("rect", {
|
|
1317
|
-
x: D(d)(
|
|
1318
|
-
y:
|
|
1292
|
+
x: D(d)(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),
|
|
1293
|
+
y: X.value.top + (z.value + J.value) * r + q.value[r] * K.value,
|
|
1319
1294
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1320
|
-
height:
|
|
1295
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1321
1296
|
fill: F.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${A.value}_${r})` : D(n)(t.color, F.value.style.chart.layout.bars.fillOpacity),
|
|
1322
1297
|
rx: F.value.style.chart.layout.bars.borderRadius,
|
|
1323
1298
|
stroke: F.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
@@ -1326,37 +1301,37 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1326
1301
|
}, null, 10, ot),
|
|
1327
1302
|
e.$slots.pattern ? (S(), g("rect", {
|
|
1328
1303
|
key: 0,
|
|
1329
|
-
x: D(d)(
|
|
1330
|
-
y:
|
|
1304
|
+
x: D(d)(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),
|
|
1305
|
+
y: X.value.top + (z.value + J.value) * r + q.value[r] * K.value,
|
|
1331
1306
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1332
|
-
height:
|
|
1307
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1333
1308
|
fill: `url(#pattern_${A.value}_${t.absoluteIndex})`,
|
|
1334
1309
|
rx: F.value.style.chart.layout.bars.borderRadius,
|
|
1335
1310
|
stroke: F.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
1336
1311
|
"stroke-width": F.value.style.chart.layout.bars.useStroke ? F.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1337
1312
|
class: y({ "vue-data-ui-transition": D(I) })
|
|
1338
1313
|
}, null, 10, st)) : h("", !0),
|
|
1339
|
-
(!t.isChild || t.isLastChild) && F.value.style.chart.layout.separators.show && r !==
|
|
1314
|
+
(!t.isChild || t.isLastChild) && F.value.style.chart.layout.separators.show && r !== G.value.length - 1 ? (S(), g("path", {
|
|
1340
1315
|
key: 1,
|
|
1341
1316
|
stroke: F.value.style.chart.layout.separators.color,
|
|
1342
1317
|
"stroke-width": F.value.style.chart.layout.separators.strokeWidth,
|
|
1343
1318
|
"stroke-linecap": "round",
|
|
1344
1319
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1345
|
-
d: `M${L.value}, ${
|
|
1320
|
+
d: `M${L.value}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * r + q.value[r] * K.value} ${F.value.style.chart.layout.separators.fullWidth ? 0 : X.value.left}, ${J.value + z.value / 2 + X.value.top + (z.value + J.value) * r + q.value[r] * K.value}`
|
|
1346
1321
|
}, null, 10, ct)) : h("", !0),
|
|
1347
|
-
|
|
1322
|
+
or.value && F.value.style.chart.layout.separators.show ? (S(), g("path", {
|
|
1348
1323
|
key: 2,
|
|
1349
1324
|
stroke: F.value.style.chart.layout.separators.color,
|
|
1350
1325
|
"stroke-width": F.value.style.chart.layout.separators.strokeWidth,
|
|
1351
1326
|
"stroke-linecap": "round",
|
|
1352
1327
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1353
|
-
d: `M${
|
|
1328
|
+
d: `M${X.value.left + X.value.width / 2}, ${X.value.top} ${X.value.left + X.value.width / 2}, ${X.value.bottom}`
|
|
1354
1329
|
}, null, 10, lt)) : h("", !0)
|
|
1355
1330
|
]))), 128)),
|
|
1356
1331
|
_("g", {
|
|
1357
1332
|
ref_key: "parentLabels",
|
|
1358
1333
|
ref: ln
|
|
1359
|
-
}, [(S(!0), g(f, null, w(
|
|
1334
|
+
}, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1360
1335
|
key: `pn_${e.id}`,
|
|
1361
1336
|
class: "vue-ui-horizontal-bar-parent-label"
|
|
1362
1337
|
}, [
|
|
@@ -1364,7 +1339,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1364
1339
|
key: 0,
|
|
1365
1340
|
class: y(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": D(I) }]),
|
|
1366
1341
|
x: 2,
|
|
1367
|
-
y:
|
|
1342
|
+
y: lr(e, t).y - F.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1368
1343
|
height: F.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1369
1344
|
width: F.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1370
1345
|
rx: 1,
|
|
@@ -1373,13 +1348,13 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1373
1348
|
e.isChild && e.childIndex === 0 && F.value.style.chart.layout.bars.parentLabels.show ? (S(), g("text", {
|
|
1374
1349
|
key: 1,
|
|
1375
1350
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1376
|
-
transform: `translate(${F.value.style.chart.layout.bars.parentLabels.offsetX + F.value.style.chart.layout.bars.parentLabels.fontSize}, ${
|
|
1351
|
+
transform: `translate(${F.value.style.chart.layout.bars.parentLabels.offsetX + F.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y})`,
|
|
1377
1352
|
"font-size": F.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1378
1353
|
fill: F.value.style.chart.layout.bars.parentLabels.color,
|
|
1379
1354
|
"font-weight": F.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1380
1355
|
"text-anchor": "start",
|
|
1381
1356
|
innerHTML: D(i)({
|
|
1382
|
-
content: `${
|
|
1357
|
+
content: `${dr(e, t)}`,
|
|
1383
1358
|
fontSize: F.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1384
1359
|
fill: F.value.style.chart.layout.bars.parentLabels.color,
|
|
1385
1360
|
x: 0,
|
|
@@ -1390,24 +1365,24 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1390
1365
|
e.isChild && e.childIndex === 0 && F.value.style.chart.layout.bars.parentLabels.show ? (S(), g("text", {
|
|
1391
1366
|
key: 2,
|
|
1392
1367
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1393
|
-
transform: `translate(${F.value.style.chart.layout.bars.parentLabels.offsetX + F.value.style.chart.layout.bars.parentLabels.fontSize}, ${
|
|
1368
|
+
transform: `translate(${F.value.style.chart.layout.bars.parentLabels.offsetX + F.value.style.chart.layout.bars.parentLabels.fontSize}, ${lr(e, t).y + D(ne)(dr(e, t)) * F.value.style.chart.layout.bars.parentLabels.fontSize * 1.1})`,
|
|
1394
1369
|
"font-size": F.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1395
1370
|
fill: F.value.style.chart.layout.bars.parentLabels.color,
|
|
1396
1371
|
"font-weight": F.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1397
1372
|
"text-anchor": "start"
|
|
1398
|
-
}, E(
|
|
1373
|
+
}, E(fr(e, t)), 11, ft)) : h("", !0)
|
|
1399
1374
|
]))), 128))], 512),
|
|
1400
1375
|
_("g", {
|
|
1401
1376
|
ref_key: "childLabels",
|
|
1402
1377
|
ref: un
|
|
1403
|
-
}, [(S(!0), g(f, null, w(
|
|
1378
|
+
}, [(S(!0), g(f, null, w(Hn.value, (e, t) => (S(), g("g", {
|
|
1404
1379
|
key: `cl_${e.id}`,
|
|
1405
1380
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1406
1381
|
}, [(e.isChild || !e.hasChildren) && F.value.style.chart.layout.bars.nameLabels.show ? (S(), g("text", {
|
|
1407
1382
|
key: 0,
|
|
1408
1383
|
"text-anchor": "start",
|
|
1409
1384
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1410
|
-
transform: `translate(${Math.abs(F.value.style.chart.layout.bars.nameLabels.offsetX)}, ${D(d)(
|
|
1385
|
+
transform: `translate(${Math.abs(F.value.style.chart.layout.bars.nameLabels.offsetX)}, ${D(d)(X.value.top + (z.value + J.value) * t + J.value / 2 + F.value.style.chart.layout.bars.nameLabels.fontSize / 2 + q.value[t] * K.value)})`,
|
|
1411
1386
|
"font-size": F.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1412
1387
|
fill: "transparent",
|
|
1413
1388
|
"font-weight": F.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
@@ -1421,14 +1396,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1421
1396
|
translateY: !0
|
|
1422
1397
|
})
|
|
1423
1398
|
}, null, 10, pt)) : h("", !0)]))), 128))], 512),
|
|
1424
|
-
_("g", null, [(S(!0), g(f, null, w(
|
|
1399
|
+
_("g", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1425
1400
|
key: `vislab_${e.id}`,
|
|
1426
1401
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1427
1402
|
}, [(e.isChild || !e.hasChildren) && F.value.style.chart.layout.bars.nameLabels.show ? (S(), g("text", {
|
|
1428
1403
|
key: 0,
|
|
1429
1404
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1430
1405
|
"text-anchor": "end",
|
|
1431
|
-
transform: `translate(${
|
|
1406
|
+
transform: `translate(${X.value.left + F.value.style.chart.layout.bars.nameLabels.offsetX - 6}, ${X.value.top + (z.value + J.value) * t + J.value / 2 + F.value.style.chart.layout.bars.nameLabels.fontSize / 3 + q.value[t] * K.value})`,
|
|
1432
1407
|
"font-size": F.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1433
1408
|
fill: F.value.style.chart.layout.bars.nameLabels.color,
|
|
1434
1409
|
"font-weight": F.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
@@ -1441,70 +1416,70 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1441
1416
|
translateY: !0
|
|
1442
1417
|
})
|
|
1443
1418
|
}, null, 10, mt)) : h("", !0)]))), 128))]),
|
|
1444
|
-
_("g", null, [(S(!0), g(f, null, w(
|
|
1419
|
+
_("g", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1445
1420
|
key: `sdl_${e.id}`,
|
|
1446
1421
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1447
1422
|
}, [_("text", {
|
|
1448
1423
|
class: y({ "vue-data-ui-transition": D(I) }),
|
|
1449
|
-
transform: `translate(${
|
|
1450
|
-
"text-anchor": !
|
|
1424
|
+
transform: `translate(${or.value ? X.value.left + X.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -F.value.style.chart.layout.bars.dataLabels.offsetX : F.value.style.chart.layout.bars.dataLabels.offsetX) : Math.min(cr(e.value) + 3 + F.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 + F.value.style.chart.layout.bars.dataLabels.fontSize / 3})`,
|
|
1425
|
+
"text-anchor": !or.value || e.sign === -1 ? "start" : "end",
|
|
1451
1426
|
"font-size": F.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1452
1427
|
fill: F.value.style.chart.layout.bars.dataLabels.color,
|
|
1453
1428
|
"font-weight": F.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1454
|
-
}, E(
|
|
1455
|
-
(S(!0), g(f, null, w(
|
|
1429
|
+
}, E(yr(e.value, e, t, e.sign)), 11, ht)]))), 128))]),
|
|
1430
|
+
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", null, [_("rect", {
|
|
1456
1431
|
x: 0,
|
|
1457
|
-
y:
|
|
1432
|
+
y: X.value.top + (z.value + J.value) * t - z.value / 2 + q.value[t] * K.value,
|
|
1458
1433
|
width: L.value,
|
|
1459
|
-
height:
|
|
1460
|
-
fill:
|
|
1461
|
-
onMouseenter: (n) =>
|
|
1462
|
-
onMouseleave: (n) =>
|
|
1434
|
+
height: J.value + z.value <= 0 ? 1e-4 : J.value + z.value,
|
|
1435
|
+
fill: pr.value === e.id ? D(n)(F.value.style.chart.layout.highlighter.color, F.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
1436
|
+
onMouseenter: (n) => _r(e, t, "pointer"),
|
|
1437
|
+
onMouseleave: (n) => gr({
|
|
1463
1438
|
datapoint: e,
|
|
1464
1439
|
seriesIndex: t
|
|
1465
1440
|
}),
|
|
1466
|
-
onClick: (n) =>
|
|
1441
|
+
onClick: (n) => hr({
|
|
1467
1442
|
datapoint: e,
|
|
1468
1443
|
seriesIndex: t
|
|
1469
1444
|
})
|
|
1470
1445
|
}, null, 40, gt)]))), 256)),
|
|
1471
1446
|
T(e.$slots, "svg", { svg: {
|
|
1472
|
-
...
|
|
1473
|
-
drawingArea:
|
|
1474
|
-
isPrintingImg: D(
|
|
1475
|
-
isPrintingSvg:
|
|
1447
|
+
...Y.value,
|
|
1448
|
+
drawingArea: X.value,
|
|
1449
|
+
isPrintingImg: D(An) || D(jn) || D(Rr),
|
|
1450
|
+
isPrintingSvg: D(zr)
|
|
1476
1451
|
} }, void 0, !0)
|
|
1477
1452
|
], 512)], 46, tt)), e.$slots.hint ? (S(), g("div", _t, [T(e.$slots, "hint", b(v({
|
|
1478
1453
|
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1479
1454
|
isVisible: Wr.value
|
|
1480
1455
|
})), void 0, !0)])) : h("", !0)]),
|
|
1481
|
-
e.$slots.watermark ? (S(), g("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: D(
|
|
1456
|
+
e.$slots.watermark ? (S(), g("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: D(An) || D(jn) || D(Rr) || D(zr) })), void 0, !0)])) : h("", !0),
|
|
1482
1457
|
F.value.style.chart.legend.show && F.value.style.chart.legend.position === "bottom" ? (S(), g("div", {
|
|
1483
1458
|
key: 7,
|
|
1484
1459
|
ref_key: "chartLegend",
|
|
1485
1460
|
ref: en
|
|
1486
1461
|
}, [(S(), m(Pe, {
|
|
1487
1462
|
key: `legend_bottom_${an.value}`,
|
|
1488
|
-
legendSet:
|
|
1489
|
-
config:
|
|
1490
|
-
isCursorPointer:
|
|
1491
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1463
|
+
legendSet: U.value,
|
|
1464
|
+
config: Wn.value,
|
|
1465
|
+
isCursorPointer: yn.value,
|
|
1466
|
+
onClickMarker: t[1] ||= ({ legend: e }) => tr(e.id)
|
|
1492
1467
|
}, Ie({
|
|
1493
1468
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1494
|
-
onClick: (t) =>
|
|
1469
|
+
onClick: (t) => tr(e.id),
|
|
1495
1470
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1496
|
-
}, E(
|
|
1471
|
+
}, E(vr({
|
|
1497
1472
|
legend: e,
|
|
1498
1473
|
index: t
|
|
1499
1474
|
})), 13, yt)]),
|
|
1500
|
-
legendToggle: O(() => [
|
|
1475
|
+
legendToggle: O(() => [U.value.length > 2 && F.value.style.chart.legend.selectAllToggle.show && !D(Sn) ? (S(), m(ke, {
|
|
1501
1476
|
key: 0,
|
|
1502
1477
|
backgroundColor: F.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1503
1478
|
color: F.value.style.chart.legend.selectAllToggle.color,
|
|
1504
1479
|
fontSize: F.value.style.chart.legend.fontSize,
|
|
1505
1480
|
checked: M.value.length > 0,
|
|
1506
|
-
isCursorPointer:
|
|
1507
|
-
onToggle:
|
|
1481
|
+
isCursorPointer: yn.value,
|
|
1482
|
+
onToggle: er
|
|
1508
1483
|
}, null, 8, [
|
|
1509
1484
|
"backgroundColor",
|
|
1510
1485
|
"color",
|
|
@@ -1531,7 +1506,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1531
1506
|
"config",
|
|
1532
1507
|
"isCursorPointer"
|
|
1533
1508
|
]))], 512)) : h("", !0),
|
|
1534
|
-
T(e.$slots, "legend", { legend:
|
|
1509
|
+
T(e.$slots, "legend", { legend: U.value }, void 0, !0),
|
|
1535
1510
|
e.$slots.source ? (S(), g("div", {
|
|
1536
1511
|
key: 8,
|
|
1537
1512
|
ref_key: "source",
|
|
@@ -1540,7 +1515,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1540
1515
|
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1541
1516
|
Re(D(Rt), {
|
|
1542
1517
|
teleportTo: F.value.style.chart.tooltip.teleportTo,
|
|
1543
|
-
show:
|
|
1518
|
+
show: H.value.showTooltip && Yt.value && M.value.length < k.dataset.length,
|
|
1544
1519
|
backgroundColor: F.value.style.chart.tooltip.backgroundColor,
|
|
1545
1520
|
color: F.value.style.chart.tooltip.color,
|
|
1546
1521
|
borderRadius: F.value.style.chart.tooltip.borderRadius,
|
|
@@ -1553,18 +1528,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1553
1528
|
offsetY: F.value.style.chart.tooltip.offsetY,
|
|
1554
1529
|
parent: j.value,
|
|
1555
1530
|
content: Xt.value,
|
|
1556
|
-
isFullscreen:
|
|
1531
|
+
isFullscreen: xr.value,
|
|
1557
1532
|
isCustom: F.value.style.chart.tooltip.customFormat && typeof F.value.style.chart.tooltip.customFormat == "function",
|
|
1558
1533
|
smooth: F.value.style.chart.tooltip.smooth,
|
|
1559
1534
|
backdropFilter: F.value.style.chart.tooltip.backdropFilter,
|
|
1560
1535
|
smoothForce: F.value.style.chart.tooltip.smoothForce,
|
|
1561
1536
|
smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1562
|
-
isA11yMode:
|
|
1563
|
-
a11yPosition:
|
|
1537
|
+
isA11yMode: _n.value === "keyboard",
|
|
1538
|
+
a11yPosition: gn.value
|
|
1564
1539
|
}, {
|
|
1565
|
-
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...
|
|
1566
|
-
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...
|
|
1567
|
-
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...
|
|
1540
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...mr.value })), void 0, !0)]),
|
|
1541
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...mr.value })), void 0, !0)]),
|
|
1542
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...mr.value })), void 0, !0)]),
|
|
1568
1543
|
_: 3
|
|
1569
1544
|
}, 8, [
|
|
1570
1545
|
"teleportTo",
|
|
@@ -1590,23 +1565,23 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1590
1565
|
"isA11yMode",
|
|
1591
1566
|
"a11yPosition"
|
|
1592
1567
|
]),
|
|
1593
|
-
Jt.value && F.value.userOptions.buttons.table ? (S(), m(We(
|
|
1568
|
+
Jt.value && F.value.userOptions.buttons.table ? (S(), m(We(Ar.value.component), Be({ key: 9 }, Ar.value.props, {
|
|
1594
1569
|
ref_key: "tableUnit",
|
|
1595
1570
|
ref: sn,
|
|
1596
|
-
onClose:
|
|
1571
|
+
onClose: Mr
|
|
1597
1572
|
}), Ie({
|
|
1598
1573
|
content: O(() => [_("div", {
|
|
1599
1574
|
ref_key: "tableContainer",
|
|
1600
|
-
ref:
|
|
1575
|
+
ref: In,
|
|
1601
1576
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1602
1577
|
style: x(`${F.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1603
1578
|
}, [_("div", bt, [F.value.table.useDialog ? h("", !0) : (S(), g("div", {
|
|
1604
1579
|
key: 0,
|
|
1605
1580
|
role: "button",
|
|
1606
1581
|
tabindex: "0",
|
|
1607
|
-
style: x(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${
|
|
1608
|
-
onClick:
|
|
1609
|
-
onKeypress: Ye(
|
|
1582
|
+
style: x(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${yn.value ? "pointer" : "default"}; background:${F.value.table.th.backgroundColor};`),
|
|
1583
|
+
onClick: Mr,
|
|
1584
|
+
onKeypress: Ye(Mr, ["enter"])
|
|
1610
1585
|
}, [Re(D(zt), {
|
|
1611
1586
|
name: "close",
|
|
1612
1587
|
stroke: F.value.table.th.color,
|
|
@@ -1616,7 +1591,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1616
1591
|
width: "100%",
|
|
1617
1592
|
"container-type": "inline-size"
|
|
1618
1593
|
},
|
|
1619
|
-
class: y({ "vue-ui-responsive": D(
|
|
1594
|
+
class: y({ "vue-ui-responsive": D(jr) })
|
|
1620
1595
|
}, [_("table", xt, [
|
|
1621
1596
|
F.value.table.useDialog ? h("", !0) : (S(), g("caption", {
|
|
1622
1597
|
key: 0,
|
|
@@ -1710,24 +1685,24 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1710
1685
|
_: 2
|
|
1711
1686
|
}, [F.value.table.useDialog ? {
|
|
1712
1687
|
name: "title",
|
|
1713
|
-
fn: O(() => [Le(E(
|
|
1688
|
+
fn: O(() => [Le(E(Ar.value.title), 1)]),
|
|
1714
1689
|
key: "0"
|
|
1715
1690
|
} : void 0, F.value.table.useDialog ? {
|
|
1716
1691
|
name: "actions",
|
|
1717
1692
|
fn: O(() => [_("button", {
|
|
1718
1693
|
tabindex: "0",
|
|
1719
1694
|
class: "vue-ui-user-options-button",
|
|
1720
|
-
onClick: t[2] ||= (e) =>
|
|
1721
|
-
style: x({ cursor:
|
|
1695
|
+
onClick: t[2] ||= (e) => br(F.value.userOptions.callbacks.csv),
|
|
1696
|
+
style: x({ cursor: yn.value ? "pointer" : "default" })
|
|
1722
1697
|
}, [Re(D(zt), {
|
|
1723
1698
|
name: "fileCsv",
|
|
1724
|
-
stroke:
|
|
1699
|
+
stroke: Ar.value.props.color
|
|
1725
1700
|
}, null, 8, ["stroke"])], 4)]),
|
|
1726
1701
|
key: "1"
|
|
1727
1702
|
} : void 0]), 1040)) : h("", !0),
|
|
1728
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1703
|
+
T(e.$slots, "skeleton", {}, () => [D(Sn) ? (S(), m(ge, { key: 0 })) : h("", !0)], !0)
|
|
1729
1704
|
], 46, Ze));
|
|
1730
1705
|
}
|
|
1731
|
-
}, [["__scopeId", "data-v-
|
|
1706
|
+
}, [["__scopeId", "data-v-fa0a2454"]]);
|
|
1732
1707
|
//#endregion
|
|
1733
1708
|
export { Xe as n, Rt as t };
|