vue-data-ui 3.25.5 → 3.25.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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- 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 +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, Ct as n, D as r, G as i, Jt as a, Lt as o, Pt as s, S as c, Ut as l, Wt as ee, X as u, Yt as te, Zt as ne, b as d, bt as re, i as ie, lt as ae, mt as oe, nt as se, q as ce, t as le, w as ue } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as pe } from "./useConfig-
|
|
4
|
+
import { t as pe } from "./useConfig-CIQZ6_r7.js";
|
|
5
5
|
import { t as me } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as _e } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -14,8 +14,8 @@ import { t as Ce } from "./Shape-CIqU-p2F.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-BSmBUjwZ.js";
|
|
18
|
+
import { t as ke } from "./BaseLegendToggle-CXQrLjd-.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";
|
|
@@ -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-hhrkQ3Lk.js")), zt = ze(() => import("./BaseIcon-
|
|
195
|
+
Ke((e) => ({ v0e84999d: e.tdo }));
|
|
196
|
+
let Rt = ze(() => import("./Tooltip-hhrkQ3Lk.js")), zt = ze(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Bt = ze(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Vt = ze(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ht = ze(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), Ut = ze(() => import("./BaseDraggableDialog-Gm4Q30j0.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,12 +204,12 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
204
204
|
none: 0,
|
|
205
205
|
asc: 1,
|
|
206
206
|
desc: 2
|
|
207
|
-
}),
|
|
207
|
+
}), fn = C(0), pn = C(!1), mn = C(0), hn = null, gn = null, N = C(null), _n = C({
|
|
208
208
|
x: 0,
|
|
209
209
|
y: 0
|
|
210
|
-
}),
|
|
210
|
+
}), vn = C("pointer"), yn = Xe, P = C(An()), F = p(() => P.value.style.chart.layout.bars), I = p(() => P.value.style.chart.layout), L = p(() => P.value.style.chart.tooltip), R = p(() => P.value.style.chart);
|
|
211
211
|
de({
|
|
212
|
-
config: () =>
|
|
212
|
+
config: () => P.value,
|
|
213
213
|
dataset: () => k.dataset,
|
|
214
214
|
component: "VueUiHorizontalBar",
|
|
215
215
|
rules: [fe.emptyArray, {
|
|
@@ -223,10 +223,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
223
223
|
]
|
|
224
224
|
}]
|
|
225
225
|
});
|
|
226
|
-
let { transitionEnabled:
|
|
227
|
-
config: () =>
|
|
226
|
+
let { transitionEnabled: z } = be({
|
|
227
|
+
config: () => P.value.transitions,
|
|
228
228
|
dataset: () => k.dataset
|
|
229
|
-
}),
|
|
229
|
+
}), bn = p(() => P.value.userOptions.useCursorPointer), xn = 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
|
+
]), Sn = p(() => ne({
|
|
261
261
|
defaultConfig: {
|
|
262
262
|
useCssAnimation: !1,
|
|
263
263
|
userOptions: { show: !1 },
|
|
@@ -293,23 +293,23 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
293
293
|
}
|
|
294
294
|
} }
|
|
295
295
|
},
|
|
296
|
-
userConfig:
|
|
297
|
-
})), { loading:
|
|
296
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
297
|
+
})), { loading: Cn, FINAL_DATASET: wn, manualLoading: Tn } = he({
|
|
298
298
|
...Ge(k),
|
|
299
|
-
FINAL_CONFIG:
|
|
300
|
-
prepareConfig:
|
|
299
|
+
FINAL_CONFIG: P,
|
|
300
|
+
prepareConfig: An,
|
|
301
301
|
callback: () => {
|
|
302
302
|
Promise.resolve().then(async () => {
|
|
303
|
-
H.value.showTable =
|
|
303
|
+
H.value.showTable = P.value.table.show, Wn();
|
|
304
304
|
});
|
|
305
305
|
},
|
|
306
|
-
skeletonDataset:
|
|
306
|
+
skeletonDataset: xn.value,
|
|
307
307
|
skeletonConfig: ne({
|
|
308
|
-
defaultConfig:
|
|
309
|
-
userConfig:
|
|
308
|
+
defaultConfig: P.value,
|
|
309
|
+
userConfig: Sn.value
|
|
310
310
|
})
|
|
311
|
-
}), { userOptionsVisible:
|
|
312
|
-
function
|
|
311
|
+
}), { userOptionsVisible: En, setUserOptionsVisibility: Dn, keepUserOptionState: On } = je({ config: P.value }), { svgRef: kn } = Me({ config: R.value.title });
|
|
312
|
+
function An() {
|
|
313
313
|
let e = _e({
|
|
314
314
|
userConfig: k.config,
|
|
315
315
|
defaultConfig: Wt
|
|
@@ -332,58 +332,58 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
332
332
|
} else t = e;
|
|
333
333
|
return k.config && re(k.config, "events.datapointEnter") ? t.events.datapointEnter = k.config.events.datapointEnter : t.events.datapointEnter = null, k.config && re(k.config, "events.datapointLeave") ? t.events.datapointLeave = k.config.events.datapointLeave : t.events.datapointLeave = null, k.config && re(k.config, "events.datapointClick") ? t.events.datapointClick = k.config.events.datapointClick : t.events.datapointClick = null, t;
|
|
334
334
|
}
|
|
335
|
-
let
|
|
335
|
+
let B = C(R.value.width), jn = C(R.value.height), V = C(F.value.gap);
|
|
336
336
|
Je(() => k.config, (e) => {
|
|
337
|
-
|
|
337
|
+
Cn.value || (P.value = An()), En.value = !P.value.userOptions.showOnChartHover, rn.value += 1, an.value += 1, H.value.showTable = P.value.table.show, H.value.sortDesc = F.value.sort === "desc", H.value.showTooltip = L.value.show, B.value = R.value.width, jn.value = R.value.height, V.value = F.value.gap;
|
|
338
338
|
}, { deep: !0 }), Je(() => k.dataset, (e) => {
|
|
339
|
-
Array.isArray(e) && e.length > 0 && (
|
|
339
|
+
Array.isArray(e) && e.length > 0 && (Tn.value = !1);
|
|
340
340
|
}, { deep: !0 });
|
|
341
|
-
let { isPrinting:
|
|
341
|
+
let { isPrinting: Mn, isImaging: Nn, generatePdf: Pn, generateImage: Fn } = me({
|
|
342
342
|
elementId: `vue-ui-vertical-bar_${A.value}`,
|
|
343
|
-
fileName:
|
|
344
|
-
options:
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
343
|
+
fileName: R.value.title.text || "vue-ui-vertical-bar",
|
|
344
|
+
options: P.value.userOptions.print
|
|
345
|
+
}), In = p(() => P.value.userOptions.show && !R.value.title.text), Ln = p(() => ue(P.value.customPalette)), Rn = C(null), zn = p(() => P.value.table.responsiveBreakpoint), Bn = p(() => P.value.debug), Vn = C(0), Hn = C(null), Un = C(null);
|
|
346
|
+
function Wn() {
|
|
347
347
|
if (j.value && (s(k.dataset) && (se({
|
|
348
348
|
componentName: "VueUiVerticalBar",
|
|
349
349
|
type: "dataset",
|
|
350
|
-
debug:
|
|
351
|
-
}), Jt.value = !1,
|
|
350
|
+
debug: Bn.value
|
|
351
|
+
}), Jt.value = !1, Tn.value = !0), s(k.dataset) || (Tn.value = P.value.loading), P.value.responsive)) {
|
|
352
352
|
let e = Te(() => {
|
|
353
353
|
let { width: e, height: t } = Ee({
|
|
354
354
|
chart: j.value,
|
|
355
|
-
title:
|
|
356
|
-
legend:
|
|
355
|
+
title: R.value.title.text ? $t.value : null,
|
|
356
|
+
legend: R.value.legend.show ? en.value : null,
|
|
357
357
|
source: tn.value,
|
|
358
358
|
noTitle: nn.value
|
|
359
359
|
});
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
Vn.value = t / 3, requestAnimationFrame(async () => {
|
|
361
|
+
jn.value = t, B.value = e;
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
Hn.value && (Un.value && Hn.value.unobserve(Un.value), Hn.value.disconnect()), Hn.value = new ResizeObserver(e), Ve(() => {
|
|
365
|
+
Un.value = j.value?.parentNode, Un.value && Hn.value.observe(Un.value);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
He(() => {
|
|
370
|
-
|
|
370
|
+
Hn.value && (Un.value && Hn.value.unobserve(Un.value), Hn.value.disconnect());
|
|
371
371
|
});
|
|
372
372
|
let H = C({
|
|
373
|
-
showTable:
|
|
374
|
-
sortDesc: F.value.
|
|
375
|
-
showTooltip:
|
|
376
|
-
}),
|
|
373
|
+
showTable: P.value.table.show,
|
|
374
|
+
sortDesc: F.value.sort === "desc",
|
|
375
|
+
showTooltip: L.value.show
|
|
376
|
+
}), Gn = p(() => H.value.sortDesc), U = p(() => (wn.value.forEach((e, t) => {
|
|
377
377
|
!e.value && !e.children && se({
|
|
378
378
|
componentName: "VueUiVerticalBar",
|
|
379
379
|
type: "datasetAttributeEmpty",
|
|
380
380
|
property: `value (index ${t})`,
|
|
381
|
-
debug:
|
|
381
|
+
debug: Bn.value
|
|
382
382
|
}), e.children && (s(e.children) ? se({
|
|
383
383
|
componentName: "VueUiVerticalBar",
|
|
384
384
|
type: "datasetAttributeEmpty",
|
|
385
385
|
property: `children (index ${t})`,
|
|
386
|
-
debug:
|
|
386
|
+
debug: Bn.value
|
|
387
387
|
}) : e.children.forEach((e, t) => {
|
|
388
388
|
[null, void 0].includes(e.name) && se({
|
|
389
389
|
componentName: "VueUiVerticalBar",
|
|
@@ -391,10 +391,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
391
391
|
property: "name",
|
|
392
392
|
key: "children",
|
|
393
393
|
index: t,
|
|
394
|
-
debug:
|
|
394
|
+
debug: Bn.value
|
|
395
395
|
});
|
|
396
396
|
}));
|
|
397
|
-
}),
|
|
397
|
+
}), wn.value.map((e, t) => {
|
|
398
398
|
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;
|
|
399
399
|
return {
|
|
400
400
|
...e,
|
|
@@ -406,10 +406,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
406
406
|
sign: a,
|
|
407
407
|
hasChildren: r,
|
|
408
408
|
isChild: !1,
|
|
409
|
-
segregate: () =>
|
|
409
|
+
segregate: () => ar(n),
|
|
410
410
|
isSegregated: M.value.includes(n),
|
|
411
|
-
color: c(e.color) ||
|
|
412
|
-
children: !e.children || !e.children.length ? [] : e.children.toSorted(
|
|
411
|
+
color: c(e.color) || Ln.value[t] || o[t] || o[t % o.length],
|
|
412
|
+
children: !e.children || !e.children.length ? [] : e.children.toSorted(pn.value ? () => 0 : (e, t) => Gn.value ? t.value - e.value : e.value - t.value).map((r, s) => ({
|
|
413
413
|
...r,
|
|
414
414
|
value: d(Math.abs(r.value)),
|
|
415
415
|
absoluteIndex: t,
|
|
@@ -421,76 +421,76 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
421
421
|
parentSign: a,
|
|
422
422
|
id: `vertical_child_${t}_${s}_${A.value}`,
|
|
423
423
|
childIndex: s,
|
|
424
|
-
color: c(r.color) || c(e.color) ||
|
|
424
|
+
color: c(r.color) || c(e.color) || Ln.value[t] || o[t] || o[t % o.length]
|
|
425
425
|
})).map((t, n) => ({
|
|
426
426
|
...t,
|
|
427
427
|
isFirstChild: n === 0,
|
|
428
428
|
isLastChild: n === e.children.length - 1
|
|
429
429
|
}))
|
|
430
430
|
};
|
|
431
|
-
}).toSorted(
|
|
431
|
+
}).toSorted(pn.value ? () => 0 : (e, t) => Gn.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)), Kn = p(() => U.value.flatMap((e) => e.hasChildren ? e.children : e)), qn = p(() => W.value.flatMap((e) => e.children && e.children.length > 0 ? e.children.length : 1).reduce((e, t) => e + t, 0)), Jn = p(() => ({
|
|
432
432
|
cy: "vertical-bar-div-legend",
|
|
433
|
-
backgroundColor:
|
|
434
|
-
color:
|
|
435
|
-
fontSize:
|
|
433
|
+
backgroundColor: R.value.legend.backgroundColor,
|
|
434
|
+
color: R.value.legend.color,
|
|
435
|
+
fontSize: R.value.legend.fontSize,
|
|
436
436
|
paddingBottom: 12,
|
|
437
|
-
fontWeight:
|
|
438
|
-
})), K = p(() => F.value.
|
|
437
|
+
fontWeight: R.value.legend.bold ? "bold" : ""
|
|
438
|
+
})), K = p(() => F.value.parentLabels.show ? F.value.parentLabels.fontSize * 3 + F.value.parentLabels.paddingBottom : 0), q = p(() => {
|
|
439
439
|
let e = [], t = 0;
|
|
440
440
|
return G.value.forEach((n, r) => {
|
|
441
|
-
n.isChild && n.childIndex === 0 && F.value.
|
|
441
|
+
n.isChild && n.childIndex === 0 && F.value.parentLabels.show && (t += 1), e[r] = t;
|
|
442
442
|
}), e;
|
|
443
443
|
}), J = p(() => {
|
|
444
444
|
let e = Math.max(0, ...q.value) * K.value;
|
|
445
|
-
return (
|
|
445
|
+
return (jn.value - 24 - (qn.value - 1) * V.value - e) / qn.value;
|
|
446
446
|
}), Y = p(() => ({
|
|
447
|
-
width:
|
|
448
|
-
height:
|
|
447
|
+
width: B.value,
|
|
448
|
+
height: jn.value,
|
|
449
449
|
padding: {
|
|
450
450
|
top: 12,
|
|
451
|
-
left: 128 + F.value.
|
|
452
|
-
right: 64 + F.value.
|
|
451
|
+
left: 128 + F.value.offsetX,
|
|
452
|
+
right: 64 + F.value.paddingRight,
|
|
453
453
|
bottom: 12
|
|
454
454
|
}
|
|
455
|
-
})),
|
|
456
|
-
function
|
|
455
|
+
})), Yn = C(0);
|
|
456
|
+
function Xn() {
|
|
457
457
|
Ve(() => {
|
|
458
458
|
if (!un.value) {
|
|
459
|
-
|
|
459
|
+
Yn.value = 0;
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
462
|
let e = Array.from(un.value.querySelectorAll("text")).reduce((e, t) => {
|
|
463
463
|
let n = t.getBBox?.().width ?? t.getComputedTextLength();
|
|
464
464
|
return n > e ? n : e;
|
|
465
465
|
}, 0);
|
|
466
|
-
|
|
466
|
+
Yn.value = e + 12;
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
Je(() => [
|
|
470
470
|
G.value,
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
F.value.
|
|
474
|
-
F.value.
|
|
475
|
-
], () =>
|
|
476
|
-
|
|
471
|
+
B.value,
|
|
472
|
+
jn.value,
|
|
473
|
+
F.value.nameLabels,
|
|
474
|
+
F.value.offsetX
|
|
475
|
+
], () => Xn(), { deep: !0 }), Ue(() => {
|
|
476
|
+
Xn();
|
|
477
477
|
});
|
|
478
|
-
function
|
|
479
|
-
return typeof document > "u" ? null : (
|
|
478
|
+
function Zn() {
|
|
479
|
+
return typeof document > "u" ? null : (hn || (hn = document.createElement("canvas"), gn = hn.getContext("2d")), gn);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
let t = String(e ?? ""), n = F.value
|
|
481
|
+
function Qn(e) {
|
|
482
|
+
let t = String(e ?? ""), n = F.value, r = n.dataLabels.fontSize, i = n.dataLabels.bold ? 700 : 400, a = P.value.style.fontFamily, o = Zn();
|
|
483
483
|
return o ? (o.font = `${i} ${r}px ${a}`, o.measureText(t).width) : t.length * r * .6;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function $n() {
|
|
486
486
|
let e = W.value.flatMap((e) => e.children && e.children.length ? e.children.map((e) => Math.abs(e.value)) : Math.abs(e.value));
|
|
487
487
|
return e.length ? Math.max(...e) : 0;
|
|
488
488
|
}
|
|
489
|
-
let
|
|
490
|
-
|
|
491
|
-
let e = F.value
|
|
489
|
+
let er = p(() => {
|
|
490
|
+
mn.value;
|
|
491
|
+
let e = F.value, t = Yn.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 = $n(), o = G.value.map((e, t) => ({
|
|
492
492
|
serie: e,
|
|
493
|
-
textWidth:
|
|
493
|
+
textWidth: Qn(Cr(e.value, e, t, e.sign))
|
|
494
494
|
}));
|
|
495
495
|
if (!o.length || r <= 0) return {
|
|
496
496
|
left: 0,
|
|
@@ -528,17 +528,17 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
528
528
|
left: 0,
|
|
529
529
|
right: Math.ceil(Math.min(r, -u))
|
|
530
530
|
};
|
|
531
|
-
}),
|
|
532
|
-
function
|
|
533
|
-
|
|
531
|
+
}), tr = p(() => er.value.right), nr = p(() => er.value.left);
|
|
532
|
+
function rr() {
|
|
533
|
+
mn.value += 1;
|
|
534
534
|
}
|
|
535
535
|
Ue(() => {
|
|
536
|
-
typeof document > "u" || !document.fonts || (document.fonts.ready.then(
|
|
536
|
+
typeof document > "u" || !document.fonts || (document.fonts.ready.then(rr), document.fonts.addEventListener?.("loadingdone", rr));
|
|
537
537
|
}), He(() => {
|
|
538
|
-
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone",
|
|
538
|
+
typeof document < "u" && document.fonts && document.fonts.removeEventListener?.("loadingdone", rr), hn = null, gn = null;
|
|
539
539
|
});
|
|
540
540
|
let X = p(() => {
|
|
541
|
-
let e =
|
|
541
|
+
let e = Yn.value + Math.abs(F.value.nameLabels.offsetX) + nr.value + F.value.offsetX, t = Y.value.width - Y.value.padding.right, n = Math.max(0, t - e - tr.value - F.value.offsetX);
|
|
542
542
|
return {
|
|
543
543
|
top: Y.value.padding.top,
|
|
544
544
|
bottom: Y.value.padding.top + Y.value.height,
|
|
@@ -548,128 +548,128 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
548
548
|
fullHeight: Y.value.padding.top + Y.value.padding.bottom + Y.value.height
|
|
549
549
|
};
|
|
550
550
|
});
|
|
551
|
-
function
|
|
551
|
+
function ir() {
|
|
552
552
|
M.value.length ? M.value = [] : U.value.forEach((e) => {
|
|
553
553
|
M.value.push(e.id);
|
|
554
|
-
}),
|
|
554
|
+
}), yn("selectLegend", W.value);
|
|
555
555
|
}
|
|
556
|
-
async function
|
|
556
|
+
async function ar(e) {
|
|
557
557
|
if (M.value.includes(e)) M.value = M.value.filter((t) => t !== e);
|
|
558
558
|
else {
|
|
559
559
|
if (M.value.length === U.value.length - 1) return;
|
|
560
560
|
M.value.push(e);
|
|
561
561
|
}
|
|
562
|
-
|
|
562
|
+
yn("selectLegend", W.value);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return U.value.length ? U.value.find((t) => t.name === e) || (
|
|
564
|
+
function or(e) {
|
|
565
|
+
return U.value.length ? U.value.find((t) => t.name === e) || (Bn.value && console.warn(`VueUiHorizontalBar - Series name not found "${e}"`), null) : (Bn.value && console.warn("VueUiHorizontalBar - There are no series to show."), null);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
let t =
|
|
569
|
-
t !== null && M.value.includes(t.id) &&
|
|
567
|
+
function sr(e) {
|
|
568
|
+
let t = or(e);
|
|
569
|
+
t !== null && M.value.includes(t.id) && ar(t.id);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
let t =
|
|
573
|
-
t !== null && (M.value.includes(t.id) ||
|
|
571
|
+
function cr(e) {
|
|
572
|
+
let t = or(e);
|
|
573
|
+
t !== null && (M.value.includes(t.id) || ar(t.id));
|
|
574
574
|
}
|
|
575
575
|
let Z = p(() => W.value.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0));
|
|
576
|
-
function
|
|
576
|
+
function lr(e, t = !1, n = 0) {
|
|
577
577
|
return t ? u({
|
|
578
578
|
v: d(Math.abs(e) / Z.value * 100),
|
|
579
579
|
s: "%",
|
|
580
580
|
r: n
|
|
581
581
|
}) : Math.abs(e) / Z.value;
|
|
582
582
|
}
|
|
583
|
-
let
|
|
583
|
+
let ur = p(() => G.value.map((e) => e.sign).includes(-1)), dr = p(() => Math.max(...W.value.flatMap((e) => e.children && e.children.length ? Math.max(...e.children.map((e) => e.value)) : e.value)));
|
|
584
584
|
function Q(e) {
|
|
585
|
-
let t = e /
|
|
586
|
-
return d(X.value.width / (
|
|
585
|
+
let t = e / dr.value;
|
|
586
|
+
return d(X.value.width / (ur.value ? 2 : 1) * t);
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function fr(e) {
|
|
589
589
|
return Q(e) + X.value.left;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function pr(e, t) {
|
|
592
592
|
let n = W.value.find((t) => t.id === e.parentId);
|
|
593
593
|
return {
|
|
594
|
-
y: X.value.top + (
|
|
594
|
+
y: X.value.top + (V.value + J.value) * t + q.value[t] * K.value - K.value + F.value.parentLabels.fontSize,
|
|
595
595
|
name: n.name,
|
|
596
596
|
value: [
|
|
597
597
|
void 0,
|
|
598
598
|
NaN,
|
|
599
599
|
null
|
|
600
600
|
].includes(n.value) ? "" : n.sign === 1 ? n.value : -n.value,
|
|
601
|
-
percentageToTotal: isNaN(n.value / Z.value) ? "" :
|
|
601
|
+
percentageToTotal: isNaN(n.value / Z.value) ? "" : lr(n.value, !0, F.value.dataLabels.percentage.roundingPercentage),
|
|
602
602
|
sign: n.sign
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function mr() {
|
|
606
606
|
return W.value;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
608
|
+
function hr(e, t) {
|
|
609
|
+
return pr(e, t).name;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
let n =
|
|
613
|
-
return
|
|
611
|
+
function gr(e, t) {
|
|
612
|
+
let n = pr(e, t);
|
|
613
|
+
return Cr(n.value, n, t, e.parentSign || e.sign);
|
|
614
614
|
}
|
|
615
|
-
let
|
|
616
|
-
function
|
|
617
|
-
|
|
615
|
+
let _r = C(null), vr = C(null);
|
|
616
|
+
function yr({ datapoint: e, seriesIndex: t }) {
|
|
617
|
+
yn("selectDatapoint", e), P.value.events.datapointClick && P.value.events.datapointClick({
|
|
618
618
|
datapoint: e,
|
|
619
619
|
seriesIndex: t
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
|
|
622
|
+
function br({ datapoint: e, seriesIndex: t }) {
|
|
623
|
+
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
624
624
|
datapoint: e,
|
|
625
625
|
seriesIndex: t
|
|
626
|
-
}), Zt.value = null, Yt.value = !1,
|
|
626
|
+
}), Zt.value = null, Yt.value = !1, _r.value = null, N.value === t && (N.value = null);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
|
|
628
|
+
function xr(e, t, r = "pointer") {
|
|
629
|
+
vn.value = r, P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
630
630
|
datpoint: e,
|
|
631
631
|
seriesIndex: t
|
|
632
|
-
}),
|
|
632
|
+
}), N.value = t, Zt.value = e, vr.value = {
|
|
633
633
|
datapoint: e,
|
|
634
634
|
seriesIndex: t,
|
|
635
635
|
series: U.value,
|
|
636
|
-
config:
|
|
637
|
-
}, Yt.value = !0,
|
|
638
|
-
let i = "", a = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s =
|
|
636
|
+
config: P.value
|
|
637
|
+
}, Yt.value = !0, _r.value = e.id;
|
|
638
|
+
let i = "", a = e.isChild ? e.parentName : e.name, o = e.isChild ? e.name : "", s = L.value.customFormat;
|
|
639
639
|
n(s) && ae(() => s({
|
|
640
640
|
datapoint: e,
|
|
641
641
|
series: U.value,
|
|
642
|
-
config:
|
|
642
|
+
config: P.value,
|
|
643
643
|
seriesIndex: t
|
|
644
644
|
})) ? Xt.value = s({
|
|
645
645
|
datapoint: e,
|
|
646
646
|
series: U.value,
|
|
647
|
-
config:
|
|
647
|
+
config: P.value,
|
|
648
648
|
seriesIndex: t
|
|
649
|
-
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
649
|
+
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
650
650
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${e.color}"/>${qt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${A.value}_${e.absoluteIndex})"/>` : ""}</svg> ${a}</div>
|
|
651
651
|
${o ? `<div>${o}</div>` : ""}
|
|
652
|
-
</div>`,
|
|
653
|
-
p:
|
|
652
|
+
</div>`, L.value.showValue && (i += `<div>${P.value.translations.value}: <b>${ie(F.value.dataLabels.value.formatter, e.sign === 1 ? e.value : -e.value, u({
|
|
653
|
+
p: L.value.prefix,
|
|
654
654
|
v: e.sign === 1 ? e.value : -e.value,
|
|
655
|
-
s:
|
|
656
|
-
r:
|
|
655
|
+
s: L.value.suffix,
|
|
656
|
+
r: L.value.roundingValue
|
|
657
657
|
}), {
|
|
658
658
|
datapoint: e,
|
|
659
659
|
seriesIndex: t
|
|
660
|
-
})}</b></div>`),
|
|
660
|
+
})}</b></div>`), L.value.showPercentage && (i += `<div>${P.value.translations.percentageToTotal} : <b>${u({
|
|
661
661
|
v: Math.abs(e.value) / Z.value * 100,
|
|
662
662
|
s: "%",
|
|
663
|
-
r:
|
|
664
|
-
})}</b></div>`, e.isChild && (i += `<div>${
|
|
663
|
+
r: L.value.roundingPercentage
|
|
664
|
+
})}</b></div>`, e.isChild && (i += `<div>${P.value.translations.percentageToSerie}: <b>${u({
|
|
665
665
|
v: Math.abs(e.value) / Math.abs(e.parentValue) * 100,
|
|
666
666
|
s: "%",
|
|
667
|
-
r:
|
|
667
|
+
r: L.value.roundingPercentage
|
|
668
668
|
})}</b></div>`)), Xt.value = `<div style="text-align:left">${i}</div>`);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
let n =
|
|
672
|
-
return n.showValue ? `${e.name}: ${ie(F.value.
|
|
670
|
+
function Sr({ legend: e, index: t }) {
|
|
671
|
+
let n = R.value.legend;
|
|
672
|
+
return n.showValue ? `${e.name}: ${ie(F.value.dataLabels.value.formatter, e.value, u({
|
|
673
673
|
p: n.prefix,
|
|
674
674
|
v: e.value,
|
|
675
675
|
s: n.suffix,
|
|
@@ -679,28 +679,28 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
679
679
|
seriesIndex: t
|
|
680
680
|
})}` : e.name;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
if (!F.value.
|
|
684
|
-
let i = ie(F.value.
|
|
685
|
-
p: F.value.
|
|
682
|
+
function Cr(e, t, n, r) {
|
|
683
|
+
if (!F.value.dataLabels.value.show) return "";
|
|
684
|
+
let i = ie(F.value.dataLabels.value.formatter, d(r === -1 && e >= 0 ? -e : e), u({
|
|
685
|
+
p: F.value.dataLabels.value.prefix,
|
|
686
686
|
v: d(r === -1 && e >= 0 ? -e : e),
|
|
687
|
-
s: F.value.
|
|
688
|
-
r: F.value.
|
|
687
|
+
s: F.value.dataLabels.value.suffix,
|
|
688
|
+
r: F.value.dataLabels.value.roundingValue
|
|
689
689
|
}), {
|
|
690
690
|
datapoint: t,
|
|
691
691
|
seriesIndex: n
|
|
692
|
-
}), a = `(${
|
|
693
|
-
return `${i}${F.value.
|
|
692
|
+
}), a = `(${lr(e, !0, F.value.dataLabels.percentage.roundingPercentage)})`;
|
|
693
|
+
return `${i}${F.value.dataLabels.percentage.show ? ` ${a}` : ""}`;
|
|
694
694
|
}
|
|
695
695
|
let $ = p(() => ({
|
|
696
696
|
head: [
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
697
|
+
P.value.translations.parentName,
|
|
698
|
+
P.value.translations.value,
|
|
699
|
+
P.value.translations.percentageToTotal,
|
|
700
|
+
P.value.translations.childName,
|
|
701
|
+
P.value.translations.value,
|
|
702
|
+
P.value.translations.percentageToSerie,
|
|
703
|
+
P.value.translations.percentageToTotal
|
|
704
704
|
],
|
|
705
705
|
body: G.value.map((e) => e.isChild ? e.isFirstChild ? {
|
|
706
706
|
color: e.color,
|
|
@@ -731,10 +731,10 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
731
731
|
childPercentageToTotal: ""
|
|
732
732
|
})
|
|
733
733
|
}));
|
|
734
|
-
function
|
|
734
|
+
function wr(e = null) {
|
|
735
735
|
let n = [
|
|
736
|
-
[
|
|
737
|
-
[
|
|
736
|
+
[R.value.title.text],
|
|
737
|
+
[R.value.title.subtitle.text],
|
|
738
738
|
[""]
|
|
739
739
|
], i = $.value.head, a = $.value.body.map((e) => [
|
|
740
740
|
e.parentName,
|
|
@@ -747,14 +747,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
747
747
|
]), o = n.concat([i]).concat(a), s = r(o);
|
|
748
748
|
e ? e(s) : t({
|
|
749
749
|
csvContent: s,
|
|
750
|
-
title:
|
|
750
|
+
title: R.value.title.text || "vue-ui-vertical-bar"
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
|
-
let
|
|
754
|
-
function
|
|
755
|
-
|
|
753
|
+
let Tr = C(!1);
|
|
754
|
+
function Er(e) {
|
|
755
|
+
Tr.value = e, Qt.value += 1;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Dr() {
|
|
758
758
|
H.value.showTable = !H.value.showTable;
|
|
759
759
|
}
|
|
760
760
|
Ue(() => {
|
|
@@ -762,27 +762,27 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
762
762
|
"none",
|
|
763
763
|
"asc",
|
|
764
764
|
"desc"
|
|
765
|
-
].includes(F.value.
|
|
765
|
+
].includes(F.value.sort) || se({
|
|
766
766
|
componentName: "VueUiVerticalBar",
|
|
767
767
|
type: "attributeWrongValue",
|
|
768
768
|
property: "style.chart.layout.bars.sort",
|
|
769
|
-
key: F.value.
|
|
770
|
-
}),
|
|
769
|
+
key: F.value.sort
|
|
770
|
+
}), fn.value = dn.value[F.value.sort], H.value.sortDesc = fn.value === 2, pn.value = fn.value === 0;
|
|
771
771
|
});
|
|
772
|
-
function
|
|
773
|
-
|
|
772
|
+
function Or() {
|
|
773
|
+
fn.value += 1, fn.value > 2 && (fn.value = 0);
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
|
|
775
|
+
function kr() {
|
|
776
|
+
Or(), H.value.sortDesc = fn.value === 2, pn.value = fn.value === 0;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Ar() {
|
|
779
779
|
H.value.showTooltip = !H.value.showTooltip;
|
|
780
780
|
}
|
|
781
|
-
let
|
|
782
|
-
function
|
|
783
|
-
|
|
781
|
+
let jr = C(!1);
|
|
782
|
+
function Mr() {
|
|
783
|
+
jr.value = !jr.value;
|
|
784
784
|
}
|
|
785
|
-
async function
|
|
785
|
+
async function Nr({ scale: e = 2 } = {}) {
|
|
786
786
|
if (!j.value) return;
|
|
787
787
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
788
788
|
domElement: j.value,
|
|
@@ -793,209 +793,209 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
793
793
|
return {
|
|
794
794
|
imageUri: i,
|
|
795
795
|
base64: a,
|
|
796
|
-
title:
|
|
796
|
+
title: R.value.title.text,
|
|
797
797
|
width: t,
|
|
798
798
|
height: n,
|
|
799
799
|
aspectRatio: r
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
let
|
|
803
|
-
let e =
|
|
802
|
+
let Pr = p(() => {
|
|
803
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
804
804
|
return {
|
|
805
805
|
component: e ? Ut : Oe,
|
|
806
|
-
title: `${
|
|
806
|
+
title: `${R.value.title.text}${R.value.title.subtitle.text ? `: ${R.value.title.subtitle.text}` : ""}`,
|
|
807
807
|
props: e ? {
|
|
808
|
-
backgroundColor:
|
|
809
|
-
color:
|
|
810
|
-
headerColor:
|
|
811
|
-
headerBg:
|
|
812
|
-
isFullscreen:
|
|
808
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
809
|
+
color: P.value.table.th.color,
|
|
810
|
+
headerColor: P.value.table.th.color,
|
|
811
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
812
|
+
isFullscreen: Tr.value,
|
|
813
813
|
fullscreenParent: j.value,
|
|
814
814
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
815
|
-
isCursorPointer:
|
|
815
|
+
isCursorPointer: bn.value
|
|
816
816
|
} : {
|
|
817
817
|
hideDetails: !0,
|
|
818
818
|
config: {
|
|
819
819
|
open: t,
|
|
820
820
|
maxHeight: 1e4,
|
|
821
821
|
body: {
|
|
822
|
-
backgroundColor:
|
|
823
|
-
color:
|
|
822
|
+
backgroundColor: R.value.backgroundColor,
|
|
823
|
+
color: R.value.color
|
|
824
824
|
},
|
|
825
825
|
head: {
|
|
826
|
-
backgroundColor:
|
|
827
|
-
color:
|
|
826
|
+
backgroundColor: R.value.backgroundColor,
|
|
827
|
+
color: R.value.color
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
};
|
|
832
832
|
});
|
|
833
833
|
Je(() => H.value.showTable, (e) => {
|
|
834
|
-
|
|
834
|
+
P.value.table.show || (e && P.value.table.useDialog && sn.value ? sn.value.open() : "close" in sn.value && sn.value.close());
|
|
835
835
|
});
|
|
836
|
-
let { isResponsive:
|
|
837
|
-
function
|
|
836
|
+
let { isResponsive: Fr } = Ne(Rn, zn);
|
|
837
|
+
function Ir() {
|
|
838
838
|
H.value.showTable = !1, cn.value && cn.value.setTableIconState(!1);
|
|
839
839
|
}
|
|
840
|
-
let
|
|
840
|
+
let Lr = p(() => U.value.map((e, t) => ({
|
|
841
841
|
...e,
|
|
842
842
|
shape: "square",
|
|
843
|
-
display: `${e.name}: ${ie(F.value.
|
|
844
|
-
p:
|
|
843
|
+
display: `${e.name}: ${ie(F.value.dataLabels.value.formatter, e.value, u({
|
|
844
|
+
p: R.value.legend.prefix,
|
|
845
845
|
v: e.value,
|
|
846
|
-
s:
|
|
847
|
-
r:
|
|
846
|
+
s: R.value.legend.suffix,
|
|
847
|
+
r: R.value.legend.roundingValue
|
|
848
848
|
}), {
|
|
849
849
|
datapoint: e,
|
|
850
850
|
seriesIndex: t
|
|
851
851
|
})}`
|
|
852
|
-
}))),
|
|
852
|
+
}))), Rr = p(() => R.value.backgroundColor), zr = p(() => R.value.legend), Br = p(() => R.value.title), Vr = p(() => Lr.value.map((e) => ({
|
|
853
853
|
...e,
|
|
854
854
|
name: e.display
|
|
855
|
-
}))), { isCallbackImaging:
|
|
856
|
-
svg:
|
|
857
|
-
title:
|
|
858
|
-
legend:
|
|
859
|
-
legendItems:
|
|
860
|
-
backgroundColor:
|
|
861
|
-
getSvgCallback: () =>
|
|
862
|
-
generateImage:
|
|
855
|
+
}))), { isCallbackImaging: Hr, isCallbackSvg: Ur, generateSvg: Wr, onGenerateImage: Gr } = ye({
|
|
856
|
+
svg: kn,
|
|
857
|
+
title: Br,
|
|
858
|
+
legend: zr,
|
|
859
|
+
legendItems: Vr,
|
|
860
|
+
backgroundColor: Rr,
|
|
861
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
862
|
+
generateImage: Fn
|
|
863
863
|
});
|
|
864
|
-
function
|
|
864
|
+
function Kr() {
|
|
865
865
|
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
866
866
|
}
|
|
867
|
-
async function
|
|
868
|
-
if (
|
|
869
|
-
config:
|
|
867
|
+
async function qr() {
|
|
868
|
+
if (yn("copyAlt", {
|
|
869
|
+
config: P.value,
|
|
870
870
|
dataset: W.value
|
|
871
|
-
}), !
|
|
871
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
872
872
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
873
873
|
return;
|
|
874
874
|
}
|
|
875
|
-
await Promise.resolve(
|
|
876
|
-
config:
|
|
875
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
876
|
+
config: P.value,
|
|
877
877
|
dataset: W.value
|
|
878
878
|
}));
|
|
879
879
|
}
|
|
880
|
-
let
|
|
881
|
-
function
|
|
882
|
-
|
|
880
|
+
let Jr = C(!1);
|
|
881
|
+
function Yr() {
|
|
882
|
+
N.value = null, Jr.value = !0;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
884
|
+
function Xr() {
|
|
885
|
+
N.value = null, Yt.value = !1, Jr.value = !1;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
if (
|
|
889
|
-
let e = G.value[
|
|
890
|
-
e &&
|
|
887
|
+
function Zr() {
|
|
888
|
+
if (N.value === null) return;
|
|
889
|
+
let e = G.value[N.value];
|
|
890
|
+
e && br({
|
|
891
891
|
datapoint: e,
|
|
892
|
-
seriesIndex:
|
|
893
|
-
}),
|
|
892
|
+
seriesIndex: N.value
|
|
893
|
+
}), N.value = null, vn.value = "pointer";
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
if (!
|
|
895
|
+
function Qr(e) {
|
|
896
|
+
if (!kn.value || jr.value || document.activeElement !== kn.value) return;
|
|
897
897
|
let t = e.key === "ArrowRight" || e.key === "ArrowDown", n = e.key === "ArrowLeft" || e.key === "ArrowUp", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
898
898
|
if (!t && !n && !r && !i) return;
|
|
899
899
|
let a = G.value.length;
|
|
900
900
|
if (!a) return;
|
|
901
901
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
902
|
-
|
|
902
|
+
Zr();
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
905
|
if (r) {
|
|
906
|
-
if (
|
|
907
|
-
let e = G.value[
|
|
906
|
+
if (N.value === null) return;
|
|
907
|
+
let e = G.value[N.value];
|
|
908
908
|
if (!e) return;
|
|
909
|
-
|
|
909
|
+
yr({
|
|
910
910
|
datapoint: e,
|
|
911
|
-
seriesIndex:
|
|
911
|
+
seriesIndex: N.value
|
|
912
912
|
});
|
|
913
913
|
return;
|
|
914
914
|
}
|
|
915
|
-
let o =
|
|
915
|
+
let o = N.value, s = Zt.value ? G.value.findIndex((e) => e.id === Zt.value.id) : null;
|
|
916
916
|
o !== null && o >= 0 && o < a ? t ? (o += 1, o >= a && (o = 0)) : n && (--o, o < 0 && (o = a - 1)) : s !== null && s >= 0 && s < a ? (o = t ? s + 1 : s - 1, o >= a && (o = 0), o < 0 && (o = a - 1)) : o = t ? 0 : a - 1;
|
|
917
917
|
let c = G.value[o];
|
|
918
|
-
c && (
|
|
918
|
+
c && (N.value = o, $r(c), xr(c, o, "keyboard"));
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function $r(e) {
|
|
921
921
|
if (!e) return;
|
|
922
|
-
let t = X.value.right, n = X.value.top + (
|
|
922
|
+
let t = X.value.right, n = X.value.top + (V.value + J.value) * e.absoluteIndex + q.value[e.absoluteIndex] * K.value;
|
|
923
923
|
if (!Number.isFinite(t) || !Number.isFinite(n)) return;
|
|
924
|
-
let r = a(t, n,
|
|
925
|
-
r && (
|
|
924
|
+
let r = a(t, n, kn.value);
|
|
925
|
+
r && (_n.value = r);
|
|
926
926
|
}
|
|
927
|
-
let
|
|
927
|
+
let ei = p(() => ({
|
|
928
928
|
head: $.value.head,
|
|
929
929
|
body: $.value.body.map((e) => [
|
|
930
930
|
e.parentName,
|
|
931
931
|
e.parentValue === "" ? "" : u({
|
|
932
932
|
v: e.parentValue,
|
|
933
|
-
r: F.value.
|
|
934
|
-
p: F.value.
|
|
935
|
-
s: F.value.
|
|
933
|
+
r: F.value.dataLabels.value.roundingValue,
|
|
934
|
+
p: F.value.dataLabels.prefix,
|
|
935
|
+
s: F.value.dataLabels.suffix
|
|
936
936
|
}),
|
|
937
937
|
e.percentageToTotal === "" ? "" : u({
|
|
938
938
|
v: e.percentageToTotal * 100,
|
|
939
|
-
r: F.value.
|
|
939
|
+
r: F.value.dataLabels.percentage.roundingPercentage,
|
|
940
940
|
s: "%"
|
|
941
941
|
}),
|
|
942
942
|
e.childName,
|
|
943
943
|
e.childValue === "" ? "" : u({
|
|
944
944
|
v: e.childValue,
|
|
945
|
-
r: F.value.
|
|
946
|
-
p: F.value.
|
|
947
|
-
s: F.value.
|
|
945
|
+
r: F.value.dataLabels.value.roundingValue,
|
|
946
|
+
p: F.value.dataLabels.prefix,
|
|
947
|
+
s: F.value.dataLabels.suffix
|
|
948
948
|
}),
|
|
949
949
|
e.childPercentageToParent === "" ? "" : u({
|
|
950
950
|
v: e.childPercentageToParent * 100,
|
|
951
|
-
r: F.value.
|
|
951
|
+
r: F.value.dataLabels.percentage.roundingPercentage,
|
|
952
952
|
s: "%"
|
|
953
953
|
}),
|
|
954
954
|
e.childPercentageToTotal === "" ? "" : u({
|
|
955
955
|
v: e.childPercentageToTotal * 100,
|
|
956
|
-
r: F.value.
|
|
956
|
+
r: F.value.dataLabels.percentage.roundingPercentage,
|
|
957
957
|
s: "%"
|
|
958
958
|
})
|
|
959
959
|
]),
|
|
960
|
-
caption:
|
|
961
|
-
notice:
|
|
960
|
+
caption: P.value.a11y.translations.tableCaption,
|
|
961
|
+
notice: P.value.a11y.translations.tableAvailable
|
|
962
962
|
}));
|
|
963
963
|
return we({
|
|
964
|
-
autoSize:
|
|
965
|
-
getData:
|
|
966
|
-
getImage:
|
|
967
|
-
generatePdf:
|
|
968
|
-
generateCsv:
|
|
969
|
-
generateImage:
|
|
970
|
-
generateSvg:
|
|
971
|
-
hideSeries:
|
|
972
|
-
showSeries:
|
|
973
|
-
toggleTable:
|
|
974
|
-
toggleSort:
|
|
975
|
-
toggleTooltip:
|
|
976
|
-
toggleAnnotator:
|
|
977
|
-
toggleFullscreen:
|
|
978
|
-
copyAlt:
|
|
964
|
+
autoSize: Kr,
|
|
965
|
+
getData: mr,
|
|
966
|
+
getImage: Nr,
|
|
967
|
+
generatePdf: Pn,
|
|
968
|
+
generateCsv: wr,
|
|
969
|
+
generateImage: Fn,
|
|
970
|
+
generateSvg: Wr,
|
|
971
|
+
hideSeries: cr,
|
|
972
|
+
showSeries: sr,
|
|
973
|
+
toggleTable: Dr,
|
|
974
|
+
toggleSort: kr,
|
|
975
|
+
toggleTooltip: Ar,
|
|
976
|
+
toggleAnnotator: Mr,
|
|
977
|
+
toggleFullscreen: Er,
|
|
978
|
+
copyAlt: qr
|
|
979
979
|
}), (e, t) => (S(), g("div", {
|
|
980
|
-
class: y(`vue-data-ui-component vue-ui-vertical-bar ${
|
|
980
|
+
class: y(`vue-data-ui-component vue-ui-vertical-bar ${Tr.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"} ${P.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
981
981
|
ref_key: "verticalBarChart",
|
|
982
982
|
ref: j,
|
|
983
983
|
id: `vue-ui-vertical-bar_${A.value}`,
|
|
984
|
-
style: x(`font-family:${
|
|
985
|
-
onMouseenter: t[3] ||= () => D(
|
|
986
|
-
onMouseleave: t[4] ||= () => D(
|
|
984
|
+
style: x(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${R.value.backgroundColor};height:100%`),
|
|
985
|
+
onMouseenter: t[3] ||= () => D(Dn)(!0),
|
|
986
|
+
onMouseleave: t[4] ||= () => D(Dn)(!1)
|
|
987
987
|
}, [
|
|
988
988
|
_("p", {
|
|
989
989
|
id: `chart-instructions-${A.value}`,
|
|
990
990
|
class: "sr-only"
|
|
991
|
-
}, E(
|
|
992
|
-
|
|
991
|
+
}, E(P.value.a11y.translations.keyboardNavigation), 9, Qe),
|
|
992
|
+
ei.value.body.length ? (S(), m(Ae, {
|
|
993
993
|
key: 0,
|
|
994
994
|
uid: A.value,
|
|
995
|
-
head:
|
|
996
|
-
body:
|
|
997
|
-
caption:
|
|
998
|
-
notice:
|
|
995
|
+
head: ei.value.head,
|
|
996
|
+
body: ei.value.body,
|
|
997
|
+
caption: ei.value.caption,
|
|
998
|
+
notice: ei.value.notice
|
|
999
999
|
}, null, 8, [
|
|
1000
1000
|
"uid",
|
|
1001
1001
|
"head",
|
|
@@ -1003,15 +1003,15 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1003
1003
|
"caption",
|
|
1004
1004
|
"notice"
|
|
1005
1005
|
])) : h("", !0),
|
|
1006
|
-
|
|
1006
|
+
P.value.userOptions.buttons.annotator ? (S(), m(D(Bt), {
|
|
1007
1007
|
key: 1,
|
|
1008
|
-
svgRef: D(
|
|
1009
|
-
backgroundColor:
|
|
1010
|
-
color:
|
|
1011
|
-
active:
|
|
1012
|
-
isCursorPointer:
|
|
1013
|
-
palette:
|
|
1014
|
-
onClose:
|
|
1008
|
+
svgRef: D(kn),
|
|
1009
|
+
backgroundColor: R.value.backgroundColor,
|
|
1010
|
+
color: R.value.color,
|
|
1011
|
+
active: jr.value,
|
|
1012
|
+
isCursorPointer: bn.value,
|
|
1013
|
+
palette: P.value.userOptions.annotatorPalette,
|
|
1014
|
+
onClose: Mr
|
|
1015
1015
|
}, {
|
|
1016
1016
|
"annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1017
1017
|
"annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1028,14 +1028,14 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1028
1028
|
"isCursorPointer",
|
|
1029
1029
|
"palette"
|
|
1030
1030
|
])) : h("", !0),
|
|
1031
|
-
|
|
1031
|
+
In.value ? (S(), g("div", {
|
|
1032
1032
|
key: 2,
|
|
1033
1033
|
ref_key: "noTitle",
|
|
1034
1034
|
ref: nn,
|
|
1035
1035
|
class: "vue-data-ui-no-title-space",
|
|
1036
1036
|
style: "height:36px; width: 100%;background:transparent"
|
|
1037
1037
|
}, null, 512)) : h("", !0),
|
|
1038
|
-
|
|
1038
|
+
R.value.title.text ? (S(), g("div", {
|
|
1039
1039
|
key: 3,
|
|
1040
1040
|
ref_key: "chartTitle",
|
|
1041
1041
|
ref: $t,
|
|
@@ -1045,54 +1045,54 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1045
1045
|
config: {
|
|
1046
1046
|
title: {
|
|
1047
1047
|
cy: "vertical-bar-div-title",
|
|
1048
|
-
...
|
|
1048
|
+
...R.value.title
|
|
1049
1049
|
},
|
|
1050
1050
|
subtitle: {
|
|
1051
1051
|
cy: "vertical-bar-div-subtitle",
|
|
1052
|
-
...
|
|
1052
|
+
...R.value.title.subtitle
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
}, null, 8, ["config"]))], 512)) : h("", !0),
|
|
1056
|
-
|
|
1056
|
+
P.value.userOptions.show && Jt.value && (D(On) || D(En)) ? (S(), m(D(Vt), {
|
|
1057
1057
|
ref_key: "userOptionsRef",
|
|
1058
1058
|
ref: cn,
|
|
1059
|
-
backgroundColor:
|
|
1060
|
-
color:
|
|
1059
|
+
backgroundColor: R.value.backgroundColor,
|
|
1060
|
+
color: R.value.color,
|
|
1061
1061
|
key: `user_options_${Qt.value}`,
|
|
1062
|
-
isImaging: D(
|
|
1063
|
-
isPrinting: D(
|
|
1062
|
+
isImaging: D(Nn),
|
|
1063
|
+
isPrinting: D(Mn),
|
|
1064
1064
|
uid: A.value,
|
|
1065
|
-
hasTooltip:
|
|
1066
|
-
hasPdf:
|
|
1067
|
-
hasImg:
|
|
1068
|
-
hasSvg:
|
|
1069
|
-
hasXls:
|
|
1070
|
-
hasTable:
|
|
1071
|
-
hasSort:
|
|
1072
|
-
hasFullscreen:
|
|
1073
|
-
hasAltCopy:
|
|
1074
|
-
isFullscreen:
|
|
1065
|
+
hasTooltip: P.value.userOptions.buttons.tooltip && L.value.show,
|
|
1066
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
1067
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
1068
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
1069
|
+
hasXls: P.value.userOptions.buttons.csv,
|
|
1070
|
+
hasTable: P.value.userOptions.buttons.table,
|
|
1071
|
+
hasSort: P.value.userOptions.buttons.sort,
|
|
1072
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
1073
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
1074
|
+
isFullscreen: Tr.value,
|
|
1075
1075
|
isTooltip: H.value.showTooltip,
|
|
1076
|
-
titles: { ...
|
|
1076
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
1077
1077
|
chartElement: j.value,
|
|
1078
|
-
position:
|
|
1079
|
-
hasAnnotator:
|
|
1080
|
-
isAnnotation:
|
|
1081
|
-
callbacks:
|
|
1082
|
-
printScale:
|
|
1083
|
-
tableDialog:
|
|
1084
|
-
isCursorPointer:
|
|
1085
|
-
onToggleFullscreen:
|
|
1086
|
-
onGeneratePdf: D(
|
|
1087
|
-
onGenerateCsv:
|
|
1088
|
-
onGenerateImage: D(
|
|
1089
|
-
onGenerateSvg: D(
|
|
1090
|
-
onToggleTable:
|
|
1091
|
-
onToggleSort:
|
|
1092
|
-
onToggleTooltip:
|
|
1093
|
-
onToggleAnnotator:
|
|
1094
|
-
onCopyAlt:
|
|
1095
|
-
style: x({ visibility: D(
|
|
1078
|
+
position: P.value.userOptions.position,
|
|
1079
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
1080
|
+
isAnnotation: jr.value,
|
|
1081
|
+
callbacks: P.value.userOptions.callbacks,
|
|
1082
|
+
printScale: P.value.userOptions.print.scale,
|
|
1083
|
+
tableDialog: P.value.table.useDialog,
|
|
1084
|
+
isCursorPointer: bn.value,
|
|
1085
|
+
onToggleFullscreen: Er,
|
|
1086
|
+
onGeneratePdf: D(Pn),
|
|
1087
|
+
onGenerateCsv: wr,
|
|
1088
|
+
onGenerateImage: D(Gr),
|
|
1089
|
+
onGenerateSvg: D(Wr),
|
|
1090
|
+
onToggleTable: Dr,
|
|
1091
|
+
onToggleSort: kr,
|
|
1092
|
+
onToggleTooltip: Ar,
|
|
1093
|
+
onToggleAnnotator: Mr,
|
|
1094
|
+
onCopyAlt: qr,
|
|
1095
|
+
style: x({ visibility: D(On) ? D(En) ? "visible" : "hidden" : "visible" })
|
|
1096
1096
|
}, Ie({ _: 2 }, [
|
|
1097
1097
|
e.$slots.menuIcon ? {
|
|
1098
1098
|
name: "menuIcon",
|
|
@@ -1174,30 +1174,30 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1174
1174
|
key: "13"
|
|
1175
1175
|
} : void 0
|
|
1176
1176
|
]), 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),
|
|
1177
|
-
|
|
1177
|
+
R.value.legend.show && R.value.legend.position === "top" ? (S(), g("div", {
|
|
1178
1178
|
key: 5,
|
|
1179
1179
|
ref_key: "chartLegend",
|
|
1180
1180
|
ref: en
|
|
1181
1181
|
}, [(S(), m(Pe, {
|
|
1182
1182
|
key: `legend_top_${an.value}`,
|
|
1183
1183
|
legendSet: U.value,
|
|
1184
|
-
config:
|
|
1185
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1184
|
+
config: Jn.value,
|
|
1185
|
+
onClickMarker: t[0] ||= ({ legend: e }) => ar(e.id)
|
|
1186
1186
|
}, Ie({
|
|
1187
1187
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1188
|
-
onClick: (t) =>
|
|
1188
|
+
onClick: (t) => ar(e.id),
|
|
1189
1189
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1190
|
-
}, E(
|
|
1190
|
+
}, E(Sr({
|
|
1191
1191
|
legend: e,
|
|
1192
1192
|
index: t
|
|
1193
1193
|
})), 13, $e)]),
|
|
1194
|
-
legendToggle: O(() => [U.value.length > 2 &&
|
|
1194
|
+
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(Cn) ? (S(), m(ke, {
|
|
1195
1195
|
key: 0,
|
|
1196
|
-
backgroundColor:
|
|
1197
|
-
color:
|
|
1198
|
-
fontSize:
|
|
1196
|
+
backgroundColor: R.value.legend.selectAllToggle.backgroundColor,
|
|
1197
|
+
color: R.value.legend.selectAllToggle.color,
|
|
1198
|
+
fontSize: R.value.legend.fontSize,
|
|
1199
1199
|
checked: M.value.length > 0,
|
|
1200
|
-
onToggle:
|
|
1200
|
+
onToggle: ir
|
|
1201
1201
|
}, null, 8, [
|
|
1202
1202
|
"backgroundColor",
|
|
1203
1203
|
"color",
|
|
@@ -1221,20 +1221,20 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1221
1221
|
} : void 0]), 1032, ["legendSet", "config"]))], 512)) : h("", !0),
|
|
1222
1222
|
_("div", et, [(S(), g("svg", {
|
|
1223
1223
|
ref_key: "svgRef",
|
|
1224
|
-
ref:
|
|
1224
|
+
ref: kn,
|
|
1225
1225
|
xmlns: D(le),
|
|
1226
1226
|
class: y({
|
|
1227
|
-
"vue-data-ui-fullscreen--on":
|
|
1228
|
-
"vue-data-ui-fulscreen--off": !
|
|
1229
|
-
"vue-data-ui-no-transition": !D(
|
|
1227
|
+
"vue-data-ui-fullscreen--on": Tr.value,
|
|
1228
|
+
"vue-data-ui-fulscreen--off": !Tr.value,
|
|
1229
|
+
"vue-data-ui-no-transition": !D(z)
|
|
1230
1230
|
}),
|
|
1231
|
-
viewBox: `0 0 ${
|
|
1232
|
-
style: x(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1231
|
+
viewBox: `0 0 ${B.value} ${jn.value}`,
|
|
1232
|
+
style: x(`max-width:100%;overflow:visible;background:transparent;color:${R.value.color}`),
|
|
1233
1233
|
tabindex: "0",
|
|
1234
1234
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1235
|
-
onFocus:
|
|
1236
|
-
onBlur:
|
|
1237
|
-
onKeydown:
|
|
1235
|
+
onFocus: Yr,
|
|
1236
|
+
onBlur: Xr,
|
|
1237
|
+
onKeydown: Qr
|
|
1238
1238
|
}, [_("g", {
|
|
1239
1239
|
ref_key: "G",
|
|
1240
1240
|
ref: on,
|
|
@@ -1245,8 +1245,8 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1245
1245
|
key: 0,
|
|
1246
1246
|
x: 0,
|
|
1247
1247
|
y: 0,
|
|
1248
|
-
width:
|
|
1249
|
-
height:
|
|
1248
|
+
width: B.value,
|
|
1249
|
+
height: jn.value,
|
|
1250
1250
|
style: { pointerEvents: "none" }
|
|
1251
1251
|
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : h("", !0),
|
|
1252
1252
|
_("defs", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), m(De, {
|
|
@@ -1263,7 +1263,7 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1263
1263
|
1
|
|
1264
1264
|
], [
|
|
1265
1265
|
"100%",
|
|
1266
|
-
D(l)(D(ee)(e.color, .03), 100 - F.value.
|
|
1266
|
+
D(l)(D(ee)(e.color, .03), 100 - F.value.gradientIntensity),
|
|
1267
1267
|
1
|
|
1268
1268
|
]]
|
|
1269
1269
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
@@ -1271,63 +1271,63 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1271
1271
|
seriesIndex: t.absoluteIndex,
|
|
1272
1272
|
patternId: `pattern_${A.value}_${t.absoluteIndex}`
|
|
1273
1273
|
}), void 0, !0)]))), 256))])) : h("", !0),
|
|
1274
|
-
F.value.
|
|
1274
|
+
F.value.rowColor ? (S(!0), g(f, { key: 2 }, w(G.value, (e, t) => (S(), g("g", { key: `row_${e.id}` }, [_("rect", {
|
|
1275
1275
|
x: 0,
|
|
1276
|
-
y: X.value.top + (
|
|
1277
|
-
width:
|
|
1276
|
+
y: X.value.top + (V.value + J.value) * t + q.value[t] * K.value,
|
|
1277
|
+
width: B.value,
|
|
1278
1278
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1279
|
-
fill: F.value.
|
|
1280
|
-
rx: F.value.
|
|
1279
|
+
fill: F.value.rowColor,
|
|
1280
|
+
rx: F.value.rowRadius,
|
|
1281
1281
|
style: { pointerEvents: "none" },
|
|
1282
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1282
|
+
class: y({ "vue-data-ui-transition": D(z) })
|
|
1283
1283
|
}, null, 10, it)]))), 128)) : h("", !0),
|
|
1284
1284
|
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", { key: `underlayer_${e.id}` }, [_("rect", {
|
|
1285
|
-
x: D(d)(
|
|
1286
|
-
y: X.value.top + (
|
|
1285
|
+
x: D(d)(ur.value ? X.value.left + X.value.width / 2 - (e.sign === 1 ? 0 : Q(e.value) <= 0 ? 1e-4 : Q(e.value)) : X.value.left),
|
|
1286
|
+
y: X.value.top + (V.value + J.value) * t + q.value[t] * K.value,
|
|
1287
1287
|
width: D(d)(Q(e.value) <= 0 ? 1e-4 : Q(e.value)),
|
|
1288
1288
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1289
|
-
fill: F.value.
|
|
1290
|
-
rx: F.value.
|
|
1291
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1289
|
+
fill: F.value.underlayerColor,
|
|
1290
|
+
rx: F.value.borderRadius,
|
|
1291
|
+
class: y({ "vue-data-ui-transition": D(z) })
|
|
1292
1292
|
}, null, 10, at)]))), 128)),
|
|
1293
1293
|
(S(!0), g(f, null, w(G.value, (t, n) => (S(), g("g", { key: `barloop_${t.id}` }, [
|
|
1294
1294
|
_("rect", {
|
|
1295
|
-
x: D(d)(
|
|
1296
|
-
y: X.value.top + (
|
|
1295
|
+
x: D(d)(ur.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1296
|
+
y: X.value.top + (V.value + J.value) * n + q.value[n] * K.value,
|
|
1297
1297
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1298
1298
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1299
|
-
fill: F.value.
|
|
1300
|
-
rx: F.value.
|
|
1301
|
-
stroke: F.value.
|
|
1302
|
-
"stroke-width": F.value.
|
|
1303
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1299
|
+
fill: F.value.useGradient ? `url(#vertical_bar_gradient_${A.value}_${n})` : D(l)(t.color, F.value.fillOpacity),
|
|
1300
|
+
rx: F.value.borderRadius,
|
|
1301
|
+
stroke: F.value.useStroke ? t.color : "none",
|
|
1302
|
+
"stroke-width": F.value.useStroke ? F.value.strokeWidth : 0,
|
|
1303
|
+
class: y({ "vue-data-ui-transition": D(z) })
|
|
1304
1304
|
}, null, 10, ot),
|
|
1305
1305
|
e.$slots.pattern ? (S(), g("rect", {
|
|
1306
1306
|
key: 0,
|
|
1307
|
-
x: D(d)(
|
|
1308
|
-
y: X.value.top + (
|
|
1307
|
+
x: D(d)(ur.value ? X.value.left + X.value.width / 2 - (t.sign === 1 ? 0 : Q(t.value) <= 0 ? 1e-4 : Q(t.value)) : X.value.left),
|
|
1308
|
+
y: X.value.top + (V.value + J.value) * n + q.value[n] * K.value,
|
|
1309
1309
|
width: D(d)(Q(t.value) <= 0 ? 1e-4 : Q(t.value)),
|
|
1310
1310
|
height: J.value <= 0 ? 1e-4 : J.value,
|
|
1311
1311
|
fill: `url(#pattern_${A.value}_${t.absoluteIndex})`,
|
|
1312
|
-
rx: F.value.
|
|
1313
|
-
stroke: F.value.
|
|
1314
|
-
"stroke-width": F.value.
|
|
1315
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1312
|
+
rx: F.value.borderRadius,
|
|
1313
|
+
stroke: F.value.useStroke ? t.color : "none",
|
|
1314
|
+
"stroke-width": F.value.useStroke ? F.value.strokeWidth : 0,
|
|
1315
|
+
class: y({ "vue-data-ui-transition": D(z) })
|
|
1316
1316
|
}, null, 10, st)) : h("", !0),
|
|
1317
|
-
(!t.isChild || t.isLastChild) &&
|
|
1317
|
+
(!t.isChild || t.isLastChild) && I.value.separators.show && n !== G.value.length - 1 ? (S(), g("path", {
|
|
1318
1318
|
key: 1,
|
|
1319
|
-
stroke:
|
|
1320
|
-
"stroke-width":
|
|
1319
|
+
stroke: I.value.separators.color,
|
|
1320
|
+
"stroke-width": I.value.separators.strokeWidth,
|
|
1321
1321
|
"stroke-linecap": "round",
|
|
1322
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1323
|
-
d: `M${
|
|
1322
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1323
|
+
d: `M${B.value}, ${J.value + V.value / 2 + X.value.top + (V.value + J.value) * n + q.value[n] * K.value} ${I.value.separators.fullWidth ? 0 : X.value.left}, ${J.value + V.value / 2 + X.value.top + (V.value + J.value) * n + q.value[n] * K.value}`
|
|
1324
1324
|
}, null, 10, ct)) : h("", !0),
|
|
1325
|
-
|
|
1325
|
+
ur.value && I.value.separators.show ? (S(), g("path", {
|
|
1326
1326
|
key: 2,
|
|
1327
|
-
stroke:
|
|
1328
|
-
"stroke-width":
|
|
1327
|
+
stroke: I.value.separators.color,
|
|
1328
|
+
"stroke-width": I.value.separators.strokeWidth,
|
|
1329
1329
|
"stroke-linecap": "round",
|
|
1330
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1330
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1331
1331
|
d: `M${X.value.left + X.value.width / 2}, ${X.value.top} ${X.value.left + X.value.width / 2}, ${X.value.bottom}`
|
|
1332
1332
|
}, null, 10, lt)) : h("", !0)
|
|
1333
1333
|
]))), 128)),
|
|
@@ -1338,61 +1338,61 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1338
1338
|
key: `pn_${e.id}`,
|
|
1339
1339
|
class: "vue-ui-horizontal-bar-parent-label"
|
|
1340
1340
|
}, [
|
|
1341
|
-
e.isChild && e.childIndex === 0 && F.value.
|
|
1341
|
+
e.isChild && e.childIndex === 0 && F.value.parentLabels.show ? (S(), g("rect", {
|
|
1342
1342
|
key: 0,
|
|
1343
|
-
class: y(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": D(
|
|
1343
|
+
class: y(["vue-ui-horizontal-bar-parent-marker", { "vue-data-ui-transition": D(z) }]),
|
|
1344
1344
|
x: 2,
|
|
1345
|
-
y:
|
|
1346
|
-
height: F.value.
|
|
1347
|
-
width: F.value.
|
|
1345
|
+
y: pr(e, t).y - F.value.parentLabels.fontSize / 1.5,
|
|
1346
|
+
height: F.value.parentLabels.fontSize / 1.5,
|
|
1347
|
+
width: F.value.parentLabels.fontSize / 1.5,
|
|
1348
1348
|
rx: 1,
|
|
1349
1349
|
fill: e.color
|
|
1350
1350
|
}, null, 10, ut)) : h("", !0),
|
|
1351
|
-
e.isChild && e.childIndex === 0 && F.value.
|
|
1351
|
+
e.isChild && e.childIndex === 0 && F.value.parentLabels.show ? (S(), g("text", {
|
|
1352
1352
|
key: 1,
|
|
1353
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1354
|
-
transform: `translate(${F.value.
|
|
1355
|
-
"font-size": F.value.
|
|
1356
|
-
fill: F.value.
|
|
1357
|
-
"font-weight": F.value.
|
|
1353
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1354
|
+
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${pr(e, t).y})`,
|
|
1355
|
+
"font-size": F.value.parentLabels.fontSize,
|
|
1356
|
+
fill: F.value.parentLabels.color,
|
|
1357
|
+
"font-weight": F.value.parentLabels.bold ? "bold" : "normal",
|
|
1358
1358
|
"text-anchor": "start",
|
|
1359
1359
|
innerHTML: D(i)({
|
|
1360
|
-
content: `${
|
|
1361
|
-
fontSize: F.value.
|
|
1362
|
-
fill:
|
|
1360
|
+
content: `${hr(e, t)}`,
|
|
1361
|
+
fontSize: F.value.parentLabels.fontSize,
|
|
1362
|
+
fill: I.value.bars.parentLabels.color,
|
|
1363
1363
|
x: 0,
|
|
1364
1364
|
y: 0,
|
|
1365
1365
|
translateY: !1
|
|
1366
1366
|
})
|
|
1367
1367
|
}, null, 10, dt)) : h("", !0),
|
|
1368
|
-
e.isChild && e.childIndex === 0 && F.value.
|
|
1368
|
+
e.isChild && e.childIndex === 0 && F.value.parentLabels.show ? (S(), g("text", {
|
|
1369
1369
|
key: 2,
|
|
1370
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1371
|
-
transform: `translate(${F.value.
|
|
1372
|
-
"font-size": F.value.
|
|
1373
|
-
fill: F.value.
|
|
1374
|
-
"font-weight": F.value.
|
|
1370
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1371
|
+
transform: `translate(${F.value.parentLabels.offsetX + F.value.parentLabels.fontSize}, ${pr(e, t).y + D(oe)(hr(e, t)) * F.value.parentLabels.fontSize * 1.1})`,
|
|
1372
|
+
"font-size": F.value.parentLabels.fontSize,
|
|
1373
|
+
fill: F.value.parentLabels.color,
|
|
1374
|
+
"font-weight": F.value.dataLabels.bold ? "bold" : "normal",
|
|
1375
1375
|
"text-anchor": "start"
|
|
1376
|
-
}, E(
|
|
1376
|
+
}, E(gr(e, t)), 11, ft)) : h("", !0)
|
|
1377
1377
|
]))), 128))], 512),
|
|
1378
1378
|
_("g", {
|
|
1379
1379
|
ref_key: "childLabels",
|
|
1380
1380
|
ref: un
|
|
1381
|
-
}, [(S(!0), g(f, null, w(
|
|
1381
|
+
}, [(S(!0), g(f, null, w(Kn.value, (e, t) => (S(), g("g", {
|
|
1382
1382
|
key: `cl_${e.id}`,
|
|
1383
1383
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1384
|
-
}, [(e.isChild || !e.hasChildren) && F.value.
|
|
1384
|
+
}, [(e.isChild || !e.hasChildren) && F.value.nameLabels.show ? (S(), g("text", {
|
|
1385
1385
|
key: 0,
|
|
1386
1386
|
"text-anchor": "start",
|
|
1387
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1388
|
-
transform: `translate(${Math.abs(F.value.
|
|
1389
|
-
"font-size": F.value.
|
|
1387
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1388
|
+
transform: `translate(${Math.abs(F.value.nameLabels.offsetX)}, ${D(d)(X.value.top + (V.value + J.value) * t + J.value / 2 + F.value.nameLabels.fontSize / 2 + q.value[t] * K.value)})`,
|
|
1389
|
+
"font-size": F.value.nameLabels.fontSize,
|
|
1390
1390
|
fill: "transparent",
|
|
1391
|
-
"font-weight": F.value.
|
|
1391
|
+
"font-weight": F.value.nameLabels.bold ? "bold" : "normal",
|
|
1392
1392
|
style: { "user-select": "none" },
|
|
1393
1393
|
innerHTML: D(i)({
|
|
1394
1394
|
content: e.name,
|
|
1395
|
-
fontSize: F.value.
|
|
1395
|
+
fontSize: F.value.nameLabels.fontSize,
|
|
1396
1396
|
fill: "transparent",
|
|
1397
1397
|
x: 0,
|
|
1398
1398
|
y: 0,
|
|
@@ -1402,18 +1402,18 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1402
1402
|
_("g", null, [(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", {
|
|
1403
1403
|
key: `vislab_${e.id}`,
|
|
1404
1404
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1405
|
-
}, [(e.isChild || !e.hasChildren) && F.value.
|
|
1405
|
+
}, [(e.isChild || !e.hasChildren) && F.value.nameLabels.show ? (S(), g("text", {
|
|
1406
1406
|
key: 0,
|
|
1407
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1407
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1408
1408
|
"text-anchor": "end",
|
|
1409
|
-
transform: `translate(${X.value.left + F.value.
|
|
1410
|
-
"font-size": F.value.
|
|
1411
|
-
fill: F.value.
|
|
1412
|
-
"font-weight": F.value.
|
|
1409
|
+
transform: `translate(${X.value.left + F.value.nameLabels.offsetX - 6}, ${X.value.top + (V.value + J.value) * t + J.value / 2 + F.value.nameLabels.fontSize / 3 + q.value[t] * K.value})`,
|
|
1410
|
+
"font-size": F.value.nameLabels.fontSize,
|
|
1411
|
+
fill: F.value.nameLabels.color,
|
|
1412
|
+
"font-weight": F.value.nameLabels.bold ? "bold" : "normal",
|
|
1413
1413
|
innerHTML: D(i)({
|
|
1414
1414
|
content: e.name,
|
|
1415
|
-
fontSize: F.value.
|
|
1416
|
-
fill:
|
|
1415
|
+
fontSize: F.value.nameLabels.fontSize,
|
|
1416
|
+
fill: I.value.bars.nameLabels.color,
|
|
1417
1417
|
x: 0,
|
|
1418
1418
|
y: 0,
|
|
1419
1419
|
translateY: !0
|
|
@@ -1423,25 +1423,25 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1423
1423
|
key: `sdl_${e.id}`,
|
|
1424
1424
|
class: "vue-ui-horizontal-bar-child-label"
|
|
1425
1425
|
}, [_("text", {
|
|
1426
|
-
class: y({ "vue-data-ui-transition": D(
|
|
1427
|
-
transform: `translate(${
|
|
1428
|
-
"text-anchor": !
|
|
1429
|
-
"font-size": F.value.
|
|
1430
|
-
fill: F.value.
|
|
1431
|
-
"font-weight": F.value.
|
|
1432
|
-
}, E(
|
|
1426
|
+
class: y({ "vue-data-ui-transition": D(z) }),
|
|
1427
|
+
transform: `translate(${ur.value ? X.value.left + X.value.width / 2 + (e.sign === 1 ? -12 : 12) + (e.sign === 1 ? -I.value.bars.dataLabels.offsetX : I.value.bars.dataLabels.offsetX) : Math.min(fr(e.value) + 3 + R.value.layout.bars.dataLabels.offsetX, X.value.right - 2)},${X.value.top + (V.value + J.value) * t + J.value / 2 + q.value[t] * K.value + F.value.dataLabels.fontSize / 3})`,
|
|
1428
|
+
"text-anchor": !ur.value || e.sign === -1 ? "start" : "end",
|
|
1429
|
+
"font-size": F.value.dataLabels.fontSize,
|
|
1430
|
+
fill: F.value.dataLabels.color,
|
|
1431
|
+
"font-weight": F.value.dataLabels.bold ? "bold" : "normal"
|
|
1432
|
+
}, E(Cr(e.value, e, t, e.sign)), 11, ht)]))), 128))]),
|
|
1433
1433
|
(S(!0), g(f, null, w(G.value, (e, t) => (S(), g("g", null, [_("rect", {
|
|
1434
1434
|
x: 0,
|
|
1435
|
-
y: X.value.top + (
|
|
1436
|
-
width:
|
|
1437
|
-
height: J.value +
|
|
1438
|
-
fill:
|
|
1439
|
-
onMouseenter: (n) =>
|
|
1440
|
-
onMouseleave: (n) =>
|
|
1435
|
+
y: X.value.top + (V.value + J.value) * t - V.value / 2 + q.value[t] * K.value,
|
|
1436
|
+
width: B.value,
|
|
1437
|
+
height: J.value + V.value <= 0 ? 1e-4 : J.value + V.value,
|
|
1438
|
+
fill: _r.value === e.id ? D(l)(I.value.highlighter.color, I.value.highlighter.opacity) : "transparent",
|
|
1439
|
+
onMouseenter: (n) => xr(e, t, "pointer"),
|
|
1440
|
+
onMouseleave: (n) => br({
|
|
1441
1441
|
datapoint: e,
|
|
1442
1442
|
seriesIndex: t
|
|
1443
1443
|
}),
|
|
1444
|
-
onClick: (n) =>
|
|
1444
|
+
onClick: (n) => yr({
|
|
1445
1445
|
datapoint: e,
|
|
1446
1446
|
seriesIndex: t
|
|
1447
1447
|
})
|
|
@@ -1449,40 +1449,40 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1449
1449
|
T(e.$slots, "svg", { svg: {
|
|
1450
1450
|
...Y.value,
|
|
1451
1451
|
drawingArea: X.value,
|
|
1452
|
-
isPrintingImg: D(
|
|
1453
|
-
isPrintingSvg: D(
|
|
1452
|
+
isPrintingImg: D(Mn) || D(Nn) || D(Hr),
|
|
1453
|
+
isPrintingSvg: D(Ur)
|
|
1454
1454
|
} }, void 0, !0)
|
|
1455
1455
|
], 512)], 46, tt)), e.$slots.hint ? (S(), g("div", _t, [T(e.$slots, "hint", b(v({
|
|
1456
|
-
hint:
|
|
1457
|
-
isVisible:
|
|
1456
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1457
|
+
isVisible: Jr.value
|
|
1458
1458
|
})), void 0, !0)])) : h("", !0)]),
|
|
1459
|
-
e.$slots.watermark ? (S(), g("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: D(
|
|
1460
|
-
|
|
1459
|
+
e.$slots.watermark ? (S(), g("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: D(Mn) || D(Nn) || D(Hr) || D(Ur) })), void 0, !0)])) : h("", !0),
|
|
1460
|
+
R.value.legend.show && R.value.legend.position === "bottom" ? (S(), g("div", {
|
|
1461
1461
|
key: 7,
|
|
1462
1462
|
ref_key: "chartLegend",
|
|
1463
1463
|
ref: en
|
|
1464
1464
|
}, [(S(), m(Pe, {
|
|
1465
1465
|
key: `legend_bottom_${an.value}`,
|
|
1466
1466
|
legendSet: U.value,
|
|
1467
|
-
config:
|
|
1468
|
-
isCursorPointer:
|
|
1469
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1467
|
+
config: Jn.value,
|
|
1468
|
+
isCursorPointer: bn.value,
|
|
1469
|
+
onClickMarker: t[1] ||= ({ legend: e }) => ar(e.id)
|
|
1470
1470
|
}, Ie({
|
|
1471
1471
|
item: O(({ legend: e, index: t }) => [_("div", {
|
|
1472
|
-
onClick: (t) =>
|
|
1472
|
+
onClick: (t) => ar(e.id),
|
|
1473
1473
|
style: x(`opacity:${M.value.includes(e.id) ? .5 : 1}`)
|
|
1474
|
-
}, E(
|
|
1474
|
+
}, E(Sr({
|
|
1475
1475
|
legend: e,
|
|
1476
1476
|
index: t
|
|
1477
1477
|
})), 13, yt)]),
|
|
1478
|
-
legendToggle: O(() => [U.value.length > 2 &&
|
|
1478
|
+
legendToggle: O(() => [U.value.length > 2 && R.value.legend.selectAllToggle.show && !D(Cn) ? (S(), m(ke, {
|
|
1479
1479
|
key: 0,
|
|
1480
|
-
backgroundColor:
|
|
1481
|
-
color:
|
|
1482
|
-
fontSize:
|
|
1480
|
+
backgroundColor: R.value.legend.selectAllToggle.backgroundColor,
|
|
1481
|
+
color: R.value.legend.selectAllToggle.color,
|
|
1482
|
+
fontSize: R.value.legend.fontSize,
|
|
1483
1483
|
checked: M.value.length > 0,
|
|
1484
|
-
isCursorPointer:
|
|
1485
|
-
onToggle:
|
|
1484
|
+
isCursorPointer: bn.value,
|
|
1485
|
+
onToggle: ir
|
|
1486
1486
|
}, null, 8, [
|
|
1487
1487
|
"backgroundColor",
|
|
1488
1488
|
"color",
|
|
@@ -1517,32 +1517,32 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1517
1517
|
dir: "auto"
|
|
1518
1518
|
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1519
1519
|
Re(D(Rt), {
|
|
1520
|
-
teleportTo:
|
|
1520
|
+
teleportTo: L.value.teleportTo,
|
|
1521
1521
|
show: H.value.showTooltip && Yt.value && M.value.length < k.dataset.length,
|
|
1522
|
-
backgroundColor:
|
|
1523
|
-
color:
|
|
1524
|
-
borderRadius:
|
|
1525
|
-
borderColor:
|
|
1526
|
-
borderWidth:
|
|
1527
|
-
fontSize:
|
|
1528
|
-
backgroundOpacity:
|
|
1529
|
-
position:
|
|
1530
|
-
offsetX:
|
|
1531
|
-
offsetY:
|
|
1522
|
+
backgroundColor: L.value.backgroundColor,
|
|
1523
|
+
color: L.value.color,
|
|
1524
|
+
borderRadius: L.value.borderRadius,
|
|
1525
|
+
borderColor: L.value.borderColor,
|
|
1526
|
+
borderWidth: L.value.borderWidth,
|
|
1527
|
+
fontSize: L.value.fontSize,
|
|
1528
|
+
backgroundOpacity: L.value.backgroundOpacity,
|
|
1529
|
+
position: L.value.position,
|
|
1530
|
+
offsetX: L.value.offsetX,
|
|
1531
|
+
offsetY: L.value.offsetY,
|
|
1532
1532
|
parent: j.value,
|
|
1533
1533
|
content: Xt.value,
|
|
1534
|
-
isFullscreen:
|
|
1535
|
-
isCustom:
|
|
1536
|
-
smooth:
|
|
1537
|
-
backdropFilter:
|
|
1538
|
-
smoothForce:
|
|
1539
|
-
smoothSnapThreshold:
|
|
1540
|
-
isA11yMode:
|
|
1541
|
-
a11yPosition:
|
|
1534
|
+
isFullscreen: Tr.value,
|
|
1535
|
+
isCustom: L.value.customFormat && typeof L.value.customFormat == "function",
|
|
1536
|
+
smooth: L.value.smooth,
|
|
1537
|
+
backdropFilter: L.value.backdropFilter,
|
|
1538
|
+
smoothForce: L.value.smoothForce,
|
|
1539
|
+
smoothSnapThreshold: L.value.smoothSnapThreshold,
|
|
1540
|
+
isA11yMode: vn.value === "keyboard",
|
|
1541
|
+
a11yPosition: _n.value
|
|
1542
1542
|
}, {
|
|
1543
|
-
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...
|
|
1544
|
-
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...
|
|
1545
|
-
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...
|
|
1543
|
+
"tooltip-before": O(() => [T(e.$slots, "tooltip-before", b(v({ ...vr.value })), void 0, !0)]),
|
|
1544
|
+
tooltip: O(() => [T(e.$slots, "tooltip", b(v({ ...vr.value })), void 0, !0)]),
|
|
1545
|
+
"tooltip-after": O(() => [T(e.$slots, "tooltip-after", b(v({ ...vr.value })), void 0, !0)]),
|
|
1546
1546
|
_: 3
|
|
1547
1547
|
}, 8, [
|
|
1548
1548
|
"teleportTo",
|
|
@@ -1568,54 +1568,54 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1568
1568
|
"isA11yMode",
|
|
1569
1569
|
"a11yPosition"
|
|
1570
1570
|
]),
|
|
1571
|
-
Jt.value &&
|
|
1571
|
+
Jt.value && P.value.userOptions.buttons.table ? (S(), m(We(Pr.value.component), Be({ key: 9 }, Pr.value.props, {
|
|
1572
1572
|
ref_key: "tableUnit",
|
|
1573
1573
|
ref: sn,
|
|
1574
|
-
onClose:
|
|
1574
|
+
onClose: Ir
|
|
1575
1575
|
}), Ie({
|
|
1576
1576
|
content: O(() => [_("div", {
|
|
1577
1577
|
ref_key: "tableContainer",
|
|
1578
|
-
ref:
|
|
1578
|
+
ref: Rn,
|
|
1579
1579
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1580
|
-
style: x(`${
|
|
1581
|
-
}, [_("div", bt, [
|
|
1580
|
+
style: x(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1581
|
+
}, [_("div", bt, [P.value.table.useDialog ? h("", !0) : (S(), g("div", {
|
|
1582
1582
|
key: 0,
|
|
1583
1583
|
role: "button",
|
|
1584
1584
|
tabindex: "0",
|
|
1585
|
-
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:${
|
|
1586
|
-
onClick:
|
|
1587
|
-
onKeypress: Ye(
|
|
1585
|
+
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:${bn.value ? "pointer" : "default"}; background:${P.value.table.th.backgroundColor};`),
|
|
1586
|
+
onClick: Ir,
|
|
1587
|
+
onKeypress: Ye(Ir, ["enter"])
|
|
1588
1588
|
}, [Re(D(zt), {
|
|
1589
1589
|
name: "close",
|
|
1590
|
-
stroke:
|
|
1590
|
+
stroke: P.value.table.th.color,
|
|
1591
1591
|
"stroke-width": 2
|
|
1592
1592
|
}, null, 8, ["stroke"])], 36)), _("div", {
|
|
1593
1593
|
style: {
|
|
1594
1594
|
width: "100%",
|
|
1595
1595
|
"container-type": "inline-size"
|
|
1596
1596
|
},
|
|
1597
|
-
class: y({ "vue-ui-responsive": D(
|
|
1597
|
+
class: y({ "vue-ui-responsive": D(Fr) })
|
|
1598
1598
|
}, [_("table", xt, [
|
|
1599
|
-
|
|
1599
|
+
P.value.table.useDialog ? h("", !0) : (S(), g("caption", {
|
|
1600
1600
|
key: 0,
|
|
1601
1601
|
style: x({
|
|
1602
|
-
backgroundColor:
|
|
1603
|
-
color:
|
|
1604
|
-
outline:
|
|
1602
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
1603
|
+
color: P.value.table.th.color,
|
|
1604
|
+
outline: P.value.table.th.outline
|
|
1605
1605
|
}),
|
|
1606
1606
|
class: "vue-ui-data-table__caption"
|
|
1607
|
-
}, [Le(E(
|
|
1607
|
+
}, [Le(E(R.value.title.text) + " ", 1), R.value.title.subtitle.text ? (S(), g("span", St, E(R.value.title.subtitle.text), 1)) : h("", !0)], 4)),
|
|
1608
1608
|
_("thead", null, [_("tr", {
|
|
1609
1609
|
role: "row",
|
|
1610
|
-
style: x(`background:${
|
|
1611
|
-
}, [(S(!0), g(f, null, w($.value.head, (e) => (S(), g("th", { style: x(`outline:${
|
|
1612
|
-
_("th", { style: x(`background:${
|
|
1613
|
-
_("th", { style: x(`background:${
|
|
1614
|
-
_("th", { style: x(`background:${
|
|
1615
|
-
_("th", { style: x(`background:${
|
|
1616
|
-
_("th", { style: x(`background:${
|
|
1617
|
-
_("th", { style: x(`background:${
|
|
1618
|
-
_("th", { style: x(`background:${
|
|
1610
|
+
style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
|
|
1611
|
+
}, [(S(!0), g(f, null, w($.value.head, (e) => (S(), g("th", { style: x(`outline:${P.value.table.th.outline}`) }, [_("div", Ct, E(e), 1)], 4))), 256))], 4), _("tr", null, [
|
|
1612
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1613
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " ∑ " + E(P.value.table.td.prefix) + E(isNaN(Z.value) ? "" : Z.value.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 5),
|
|
1614
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`) }, " 100% ", 4),
|
|
1615
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1616
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1617
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4),
|
|
1618
|
+
_("th", { style: x(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`) }, null, 4)
|
|
1619
1619
|
])]),
|
|
1620
1620
|
_("tbody", null, [(S(!0), g(f, null, w($.value.body, (e, t) => (S(), g("tr", {
|
|
1621
1621
|
class: y({
|
|
@@ -1623,11 +1623,11 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1623
1623
|
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1624
1624
|
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1625
1625
|
}),
|
|
1626
|
-
style: x(`background:${
|
|
1626
|
+
style: x(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
|
|
1627
1627
|
}, [
|
|
1628
1628
|
_("td", {
|
|
1629
1629
|
class: "vue-ui-data-table__tbody__td",
|
|
1630
|
-
style: x(`outline:${
|
|
1630
|
+
style: x(`outline:${P.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1631
1631
|
"data-cell": $.value.head[0] ?? ""
|
|
1632
1632
|
}, [_("div", Tt, [e.color ? (S(), g("span", {
|
|
1633
1633
|
key: 0,
|
|
@@ -1635,77 +1635,77 @@ var Xe = /* @__PURE__ */ e({ default: () => Rt }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1635
1635
|
}, "⬤", 4)) : h("", !0), _("span", null, E(e.parentName), 1)])], 12, wt),
|
|
1636
1636
|
_("td", {
|
|
1637
1637
|
class: "vue-ui-data-table__tbody__td",
|
|
1638
|
-
style: x(`outline:${
|
|
1638
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1639
1639
|
"data-cell": $.value.head[1] ?? ""
|
|
1640
|
-
}, [_("div", Dt, E(
|
|
1640
|
+
}, [_("div", Dt, E(P.value.table.td.prefix) + E([
|
|
1641
1641
|
"",
|
|
1642
1642
|
NaN,
|
|
1643
1643
|
void 0
|
|
1644
|
-
].includes(e.parentValue) ? "" : e.parentValue.toFixed(
|
|
1644
|
+
].includes(e.parentValue) ? "" : e.parentValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12, Et),
|
|
1645
1645
|
_("td", {
|
|
1646
1646
|
class: "vue-ui-data-table__tbody__td",
|
|
1647
|
-
style: x(`outline:${
|
|
1647
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1648
1648
|
"data-cell": $.value.head[2] ?? ""
|
|
1649
1649
|
}, [_("div", kt, E([
|
|
1650
1650
|
"",
|
|
1651
1651
|
NaN,
|
|
1652
1652
|
void 0
|
|
1653
|
-
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(
|
|
1653
|
+
].includes(e.percentageToTotal) ? "" : `${(e.percentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Ot),
|
|
1654
1654
|
_("td", {
|
|
1655
1655
|
class: "vue-ui-data-table__tbody__td",
|
|
1656
|
-
style: x(`outline:${
|
|
1656
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1657
1657
|
"data-cell": $.value.head[3] ?? ""
|
|
1658
1658
|
}, [_("div", jt, E(e.childName), 1)], 12, At),
|
|
1659
1659
|
_("td", {
|
|
1660
1660
|
class: "vue-ui-data-table__tbody__td",
|
|
1661
|
-
style: x(`outline:${
|
|
1661
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1662
1662
|
"data-cell": $.value.head[4] ?? ""
|
|
1663
|
-
}, [_("div", Nt, E(
|
|
1663
|
+
}, [_("div", Nt, E(P.value.table.td.prefix) + E([
|
|
1664
1664
|
"",
|
|
1665
1665
|
NaN,
|
|
1666
1666
|
void 0
|
|
1667
|
-
].includes(e.childValue) ? "" : e.childValue.toFixed(
|
|
1667
|
+
].includes(e.childValue) ? "" : e.childValue.toFixed(P.value.table.td.roundingValue)) + E(P.value.table.td.suffix), 1)], 12, Mt),
|
|
1668
1668
|
_("td", {
|
|
1669
1669
|
class: "vue-ui-data-table__tbody__td",
|
|
1670
|
-
style: x(`outline:${
|
|
1670
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1671
1671
|
"data-cell": $.value.head[5] ?? ""
|
|
1672
1672
|
}, [_("div", Ft, E([
|
|
1673
1673
|
"",
|
|
1674
1674
|
NaN,
|
|
1675
1675
|
void 0
|
|
1676
|
-
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(
|
|
1676
|
+
].includes(e.childPercentageToParent) ? "" : `${(e.childPercentageToParent * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, Pt),
|
|
1677
1677
|
_("td", {
|
|
1678
1678
|
class: "vue-ui-data-table__tbody__td",
|
|
1679
|
-
style: x(`outline:${
|
|
1679
|
+
style: x(`outline:${P.value.table.td.outline}`),
|
|
1680
1680
|
"data-cell": $.value.head[6] ?? ""
|
|
1681
1681
|
}, [_("div", Lt, E([
|
|
1682
1682
|
"",
|
|
1683
1683
|
NaN,
|
|
1684
1684
|
void 0
|
|
1685
|
-
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(
|
|
1685
|
+
].includes(e.childPercentageToTotal) ? "" : `${(e.childPercentageToTotal * 100).toFixed(P.value.table.td.roundingPercentage)}%`), 1)], 12, It)
|
|
1686
1686
|
], 6))), 256))])
|
|
1687
1687
|
])], 2)])], 4)]),
|
|
1688
1688
|
_: 2
|
|
1689
|
-
}, [
|
|
1689
|
+
}, [P.value.table.useDialog ? {
|
|
1690
1690
|
name: "title",
|
|
1691
|
-
fn: O(() => [Le(E(
|
|
1691
|
+
fn: O(() => [Le(E(Pr.value.title), 1)]),
|
|
1692
1692
|
key: "0"
|
|
1693
|
-
} : void 0,
|
|
1693
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1694
1694
|
name: "actions",
|
|
1695
1695
|
fn: O(() => [_("button", {
|
|
1696
1696
|
tabindex: "0",
|
|
1697
1697
|
class: "vue-ui-user-options-button",
|
|
1698
|
-
onClick: t[2] ||= (e) =>
|
|
1699
|
-
style: x({ cursor:
|
|
1698
|
+
onClick: t[2] ||= (e) => wr(P.value.userOptions.callbacks.csv),
|
|
1699
|
+
style: x({ cursor: bn.value ? "pointer" : "default" })
|
|
1700
1700
|
}, [Re(D(zt), {
|
|
1701
1701
|
name: "fileCsv",
|
|
1702
|
-
stroke:
|
|
1702
|
+
stroke: Pr.value.props.color
|
|
1703
1703
|
}, null, 8, ["stroke"])], 4)]),
|
|
1704
1704
|
key: "1"
|
|
1705
1705
|
} : void 0]), 1040)) : h("", !0),
|
|
1706
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1706
|
+
T(e.$slots, "skeleton", {}, () => [D(Cn) ? (S(), m(ge, { key: 0 })) : h("", !0)], !0)
|
|
1707
1707
|
], 46, Ze));
|
|
1708
1708
|
}
|
|
1709
|
-
}, [["__scopeId", "data-v-
|
|
1709
|
+
}, [["__scopeId", "data-v-b857482b"]]);
|
|
1710
1710
|
//#endregion
|
|
1711
1711
|
export { Xe as n, Rt as t };
|