vue-data-ui 3.9.22 → 3.10.1
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/README.md +76 -57
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-BHlNyA0A.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-DtXe9QC_.js → BaseIcon-4uOct8re.js} +29 -22
- package/dist/{BaseZoomControls-Dp7lD8dn.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-CnWVxKGw.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-BriHstj2.js → DataTable-DyoDzNNY.js} +16 -16
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7GKy0EX.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-DS0AcLc9.js → PackageVersion-D6MO5wwI.js} +1 -1
- package/dist/{PenAndPaper-DBbQVgYt.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-CdBkrOVw.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-DAWQCjXt.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B7pkWzTi.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-CEsHe7Td.js → UserOptions-CX7Xsusk.js} +7 -7
- 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 +5 -0
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +218 -6
- package/dist/types/vue-ui-bump.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-Ckf_2P_V.js} +271 -163
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-nqF_cACH.js → vue-data-ui-BzP8Tvow.js} +79 -77
- package/dist/vue-data-ui.js +90 -88
- package/dist/{vue-ui-3d-bar-DmrhwUsA.js → vue-ui-3d-bar-CHeF8XHm.js} +222 -218
- package/dist/{vue-ui-accordion-CDvNAvXX.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C0hgxDIF.js → vue-ui-age-pyramid-CJSA_Lp7.js} +177 -173
- package/dist/{vue-ui-annotator-koqMAb87.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-BXJCZyhh.js → vue-ui-bullet-BGO-5x4w.js} +135 -131
- package/dist/vue-ui-bump-Ds8aQyR-.js +1006 -0
- package/dist/{vue-ui-candlestick-3YdnfK3I.js → vue-ui-candlestick-Chk1Rxwa.js} +304 -300
- package/dist/{vue-ui-carousel-table-5pBU7CnX.js → vue-ui-carousel-table-BX4wS5vL.js} +4 -4
- package/dist/{vue-ui-chestnut-BmjwbHgq.js → vue-ui-chestnut-DRGQVzIZ.js} +326 -322
- package/dist/{vue-ui-chord-C_2QTHYi.js → vue-ui-chord-CzS4uqvo.js} +171 -167
- package/dist/{vue-ui-circle-pack-BeHZwuM4.js → vue-ui-circle-pack-CTo8Eihw.js} +162 -158
- package/dist/{vue-ui-cursor-YR7_jEcG.js → vue-ui-cursor-DQ1eQR4G.js} +3 -3
- package/dist/{vue-ui-dag-h6p8aZFf.js → vue-ui-dag-Vw67oxw7.js} +451 -447
- package/dist/{vue-ui-dashboard-Cl6Jnf6s.js → vue-ui-dashboard-CBX0gXdp.js} +68 -68
- package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-n-wyE9bw.js → vue-ui-donut-8T6Nmsxq.js} +467 -463
- package/dist/{vue-ui-donut-evolution-DoQwbNv4.js → vue-ui-donut-evolution-C2QW-9s6.js} +354 -350
- package/dist/{vue-ui-dumbbell-BWEAHSG8.js → vue-ui-dumbbell-Bn9pd4ij.js} +240 -236
- package/dist/{vue-ui-flow-CRgC7Mlx.js → vue-ui-flow-LxJoqDKq.js} +171 -167
- package/dist/{vue-ui-funnel-CfIPZ_zB.js → vue-ui-funnel-Dijfg4TW.js} +133 -129
- package/dist/{vue-ui-galaxy-Cp_rz8IL.js → vue-ui-galaxy-J7ABN21x.js} +146 -142
- package/dist/{vue-ui-gauge-DjJ8LiGL.js → vue-ui-gauge-DAUj4HG5.js} +175 -171
- package/dist/{vue-ui-geo-DUa0LJdd.js → vue-ui-geo-DZIQ7n5z.js} +123 -119
- package/dist/{vue-ui-gizmo-DDMnc-mn.js → vue-ui-gizmo-iP8kliCe.js} +3 -3
- package/dist/{vue-ui-heatmap-Bu78wjql.js → vue-ui-heatmap-BzJ9NhwA.js} +231 -227
- package/dist/{vue-ui-history-plot-I7RFpR4m.js → vue-ui-history-plot-CiKEQ6JR.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-B76RcVtC.js → vue-ui-horizontal-bar-HXGUUZ4g.js} +325 -321
- package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-B0EQor9C.js → vue-ui-molecule-BOOgtokk.js} +183 -179
- package/dist/{vue-ui-mood-radar-BXHszrJ5.js → vue-ui-mood-radar-DZzGx5Dp.js} +162 -158
- package/dist/{vue-ui-nested-donuts-Cs09jqNS.js → vue-ui-nested-donuts-BA1-O-gB.js} +178 -174
- package/dist/{vue-ui-onion-Cd4M3NhO.js → vue-ui-onion-thpUoiBE.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-B3jKFKQp.js → vue-ui-parallel-coordinate-plot-DR3Ipc9q.js} +195 -191
- package/dist/{vue-ui-quadrant-BGdcyL_G.js → vue-ui-quadrant-CmCVv7Io.js} +243 -239
- package/dist/{vue-ui-quick-chart-RISnAtAO.js → vue-ui-quick-chart-D7CQqjbb.js} +295 -291
- package/dist/{vue-ui-radar-CiyUH5vY.js → vue-ui-radar-C5BYiNeE.js} +168 -164
- package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-GJ2m1KJi.js → vue-ui-relation-circle-BkWUI7cy.js} +185 -181
- package/dist/vue-ui-ridgeline-CokXNDQ5.js +1306 -0
- package/dist/{vue-ui-rings-DStX7GN9.js → vue-ui-rings-COs-uwPW.js} +299 -295
- package/dist/{vue-ui-scatter-C06XR1wk.js → vue-ui-scatter-od9j3nbg.js} +354 -350
- package/dist/{vue-ui-skeleton-BhhCaDDt.js → vue-ui-skeleton-199nlzz-.js} +3 -3
- package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-D0C6wQaQ.js → vue-ui-spark-trend-CCh-2vX7.js} +120 -116
- package/dist/{vue-ui-sparkbar-BdiOrr_4.js → vue-ui-sparkbar-TotwU9iC.js} +84 -80
- package/dist/{vue-ui-sparkgauge-Bn69Wf48.js → vue-ui-sparkgauge-ma4q7p0M.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-B2igFeIs.js → vue-ui-sparkhistogram-DkkFMKuS.js} +109 -105
- package/dist/{vue-ui-sparkline-0VCC5bBB.js → vue-ui-sparkline-B9SwcngG.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DXNNFyVU.js → vue-ui-sparkstackbar-DYz-Vson.js} +99 -95
- package/dist/{vue-ui-stackbar-O6Qnmp0y.js → vue-ui-stackbar-C_Tl2URC.js} +376 -372
- package/dist/{vue-ui-stackline-DXR5bwam.js → vue-ui-stackline-CXpElu5C.js} +347 -343
- package/dist/{vue-ui-strip-plot-Dbkd9HLL.js → vue-ui-strip-plot-DzcjpnIg.js} +248 -244
- package/dist/{vue-ui-table-CY9ofQw5.js → vue-ui-table-D_TQyQhl.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Cl927pNj.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-JdC2NOYh.js → vue-ui-table-sparkline-CF5BnI-6.js} +174 -170
- package/dist/{vue-ui-thermometer-9e1IkvL9.js → vue-ui-thermometer-BmmwTeyy.js} +133 -129
- package/dist/{vue-ui-timer-C85qvi3A.js → vue-ui-timer-Bffy4n-P.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dvynr7Ca.js → vue-ui-tiremarks-pMFoFCHr.js} +156 -152
- package/dist/{vue-ui-treemap-B2d4oGJZ.js → vue-ui-treemap-DSaqUKWM.js} +161 -157
- package/dist/{vue-ui-waffle-B3NfAP3B.js → vue-ui-waffle-BavDRJin.js} +185 -181
- package/dist/{vue-ui-wheel-Cti5RCaK.js → vue-ui-wheel-toELK-fC.js} +125 -121
- package/dist/{vue-ui-word-cloud-BGyunVJT.js → vue-ui-word-cloud-DCTGuXdW.js} +179 -175
- package/dist/{vue-ui-world-BjGu6FvN.js → vue-ui-world-7QFSvpGk.js} +6 -6
- package/dist/{vue-ui-xy-BC1zUOGw.js → vue-ui-xy-CTJtVYBG.js} +697 -693
- package/dist/{vue-ui-xy-canvas-ks3CRcLY.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BAukx7WE.js +0 -1302
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import { defineAsyncComponent as j, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as va, t as
|
|
4
|
-
import { t as ft, u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as pa, a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
import
|
|
17
|
-
import { S as
|
|
18
|
-
import { _ as
|
|
19
|
-
const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#
|
|
1
|
+
import { defineAsyncComponent as j, useSlots as El, computed as b, ref as d, onMounted as ia, toRefs as Rl, watch as Se, shallowRef as ua, onBeforeUnmount as gt, watchEffect as ca, nextTick as Il, createElementBlock as n, openBlock as s, normalizeStyle as ne, normalizeClass as ve, createBlock as ee, createCommentVNode as y, renderSlot as k, createElementVNode as te, createVNode as _e, unref as m, withCtx as A, normalizeProps as U, guardReactiveProps as H, createSlots as bt, Fragment as x, renderList as w, mergeProps as Me, toDisplayString as B, Teleport as Bl, resolveDynamicComponent as Vl, createTextVNode as ha } from "vue";
|
|
2
|
+
import { u as Ul, a as yt } from "./useNestedProp-Ckf_2P_V.js";
|
|
3
|
+
import { c as va, t as Hl, i as Xl, j as He, a1 as de, k as Yl, o as da, g as ga, l as Wl, m as ql, ar as Te, O as ba, N as ya, S as Gl, X as Jl, q as Zl, Q as ie, x as fa, a as ge, d as ae, $ as Ql, as as Kl, y as ma, v as jl, r as eo, _ as to } from "./lib-CVHM9FhP.js";
|
|
4
|
+
import { t as ft, u as ao } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as lo } from "./usePrinter-1NmjuP-i.js";
|
|
6
|
+
import { u as oo, B as ro } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as pa, a as so, l as no } from "./useTimeLabels-DKoynYae.js";
|
|
8
|
+
import { u as io } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as uo } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as co } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ho } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as vo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import go from "./img-6fNF_rG0.js";
|
|
14
|
+
import bo from "./Title-NgeRXqRA.js";
|
|
15
|
+
import { _ as yo } from "./Shape-PzdCMGsP.js";
|
|
16
|
+
import fo from "./Legend-DN5UJOBH.js";
|
|
17
|
+
import { S as mo } from "./SlicerPreview-CSc_cazO.js";
|
|
18
|
+
import { _ as po } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const xa = { userOptions: { show: !1 }, style: { chart: { legend: { show: !1 }, bars: { gradient: { show: !1 } }, zoom: { minimap: { show: !0 } } } } }, Ca = { userOptions: { show: !1 }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { show: !0, selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" }, bars: { gradient: { show: !1 }, totalValues: { color: "#CCCCCC" } }, grid: { frame: { stroke: "#5A5A5A" }, x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } }, ka = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, bars: { totalValues: { color: "#CCCCCC" } }, grid: { frame: { stroke: "#5A5A5A" }, x: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, timeLabels: { color: "#CCCCCC" } }, y: { axisColor: "#5A5A5A", linesColor: "#4A4A4A", axisName: { color: "#CCCCCC" }, axisLabels: { color: "#CCCCCC" } } } } } }, wa = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#424242" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, bars: { totalValues: { color: "#424242" } }, grid: { x: { axisColor: "#5D403780", axisName: { color: "#424242" }, timeLabels: { color: "#424242" } }, y: { axisColor: "#5D403780", axisName: { color: "#424242" }, axisLabels: { color: "#424242" } } } } } }, Aa = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, highlighter: { color: "#FFF8E1" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, bars: { totalValues: { color: "#BDBDBD" } }, grid: { x: { axisColor: "#5D403740", axisName: { color: "#BDBDBD" }, timeLabels: { color: "#BDBDBD" } }, y: { axisColor: "#5D4037", axisName: { color: "#BDBDBD" }, axisLabels: { color: "#BDBDBD" } } } } } }, La = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, bars: { totalValues: { color: "#99AA99" } }, grid: { x: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, timeLabels: { color: "#99AA99" } }, y: { axisColor: "#5F6A5F", axisName: { color: "#66CC66" }, axisLabels: { color: "#99AA99" } } } } } }, za = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, bars: { borderRadius: 4, totalValues: { show: !1 }, dataLabels: { show: !1 } }, grid: { x: { showAxis: !1, axisName: { color: "#8F837A" }, timeLabels: { show: !1 } }, y: { showAxis: !1, axisName: { color: "#8F837A" }, axisLabels: { show: !1 } } } } } }, Sa = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, bars: { totalValues: { color: "#50606C" } }, grid: { x: { showHorizontalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, timeLabels: { color: "#61747E" } }, y: { showVerticalLines: !0, axisColor: "#829C98", axisName: { color: "#50606C" }, axisLabels: { color: "#61747E" } } } } } }, _a = {
|
|
20
20
|
default: {},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
minimal: xa,
|
|
22
|
+
minimalDark: Ca,
|
|
23
|
+
dark: ka,
|
|
24
|
+
celebration: wa,
|
|
25
|
+
celebrationNight: Aa,
|
|
26
|
+
hack: La,
|
|
27
|
+
zen: za,
|
|
28
|
+
concrete: Sa
|
|
29
|
+
}, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28
30
|
__proto__: null,
|
|
29
|
-
celebration:
|
|
30
|
-
celebrationNight:
|
|
31
|
-
concrete:
|
|
32
|
-
dark:
|
|
33
|
-
default:
|
|
34
|
-
hack:
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
celebration: wa,
|
|
32
|
+
celebrationNight: Aa,
|
|
33
|
+
concrete: Sa,
|
|
34
|
+
dark: ka,
|
|
35
|
+
default: _a,
|
|
36
|
+
hack: La,
|
|
37
|
+
minimal: xa,
|
|
38
|
+
minimalDark: Ca,
|
|
39
|
+
zen: za
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), xo = ["id"], Co = ["id"], ko = ["xmlns", "viewBox"], wo = ["x", "y", "width", "height"], Ao = { key: 1 }, Lo = ["id"], zo = ["stop-color"], So = ["stop-color"], _o = ["stop-color"], Mo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], To = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], $o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Do = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], No = { key: 0 }, Po = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Oo = { key: 0 }, Eo = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Ro = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Io = { key: 0 }, Bo = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Vo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ho = ["x", "y", "font-size", "fill", "font-weight"], Xo = ["transform", "font-size", "fill", "font-weight"], Yo = ["x", "y", "font-size", "fill", "font-weight"], Wo = ["x", "y", "font-size", "font-weight", "fill"], qo = ["x", "y", "font-size", "fill", "font-weight"], Go = ["x", "y", "font-size", "font-weight", "fill"], Jo = ["x1", "x2", "y1", "y2", "stroke"], Zo = ["x", "y", "font-size", "font-weight", "fill"], Qo = ["x1", "x2", "y1", "y2", "stroke"], Ko = ["font-size", "font-weight", "fill", "text-anchor", "transform"], jo = { key: 0 }, er = { key: 1 }, tr = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], ar = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], lr = { key: 0 }, or = { key: 1 }, rr = ["font-size", "font-weight", "fill", "x", "y", "onClick"], sr = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], nr = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], ir = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], ur = ["data-start", "data-end"], cr = {
|
|
37
41
|
key: 3,
|
|
38
42
|
class: "vue-data-ui-watermark"
|
|
39
|
-
},
|
|
43
|
+
}, hr = ["x", "y", "height", "width", "fill", "stroke"], vr = ["id"], dr = ["onClick"], gr = ["innerHTML"], br = {
|
|
40
44
|
__name: "vue-ui-stackbar",
|
|
41
45
|
props: {
|
|
42
46
|
config: {
|
|
@@ -57,20 +61,20 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX"],
|
|
60
|
-
setup(Xe, { expose:
|
|
61
|
-
const
|
|
64
|
+
setup(Xe, { expose: Ma, emit: Ta }) {
|
|
65
|
+
const $a = j(() => import("./Tooltip-B6qvABDL.js")), Fa = j(() => import("./BaseIcon-4uOct8re.js")), Da = j(() => import("./vue-ui-accordion-DFKaB_05.js")), Na = j(() => import("./DataTable-DyoDzNNY.js")), Pa = j(() => import("./PenAndPaper-LTuSTmWE.js")), Oa = j(() => import("./UserOptions-CX7Xsusk.js")), Ea = j(() => import("./PackageVersion-D6MO5wwI.js")), Ra = j(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_stackbar: Ia } = Ul(), { isThemeValid: Ba, warnInvalidTheme: Va } = uo(), Ua = El(), C = Xe, be = Ta, ye = b({
|
|
62
66
|
get() {
|
|
63
|
-
return !!
|
|
67
|
+
return !!C.dataset && C.dataset.length;
|
|
64
68
|
},
|
|
65
69
|
set(a) {
|
|
66
70
|
return a;
|
|
67
71
|
}
|
|
68
|
-
}), J = d(null), V = d(va()), Ye = d(!1), We = d(null), qe = d(""), F = d([]), mt = d(0), pt = d(null), xt = d(null), fe = d(null),
|
|
72
|
+
}), J = d(null), V = d(va()), Ye = d(!1), We = d(null), qe = d(""), F = d([]), mt = d(0), pt = d(null), xt = d(null), fe = d(null), Ct = d(null), me = d(!1), G = d(null), le = d(!1), kt = d(0), Ha = d(0), Xa = d(0), wt = d(!1), pe = d(null), Ge = d(null), Je = d(null), Ze = d(null), oe = d(null), re = d(null), Ya = d(null), Qe = d(null), Ke = d(null);
|
|
69
73
|
ia(() => {
|
|
70
74
|
wt.value = !0, ot();
|
|
71
75
|
});
|
|
72
|
-
const e = d(at()), { loading: xe, FINAL_DATASET: je, manualLoading: $e } =
|
|
73
|
-
...
|
|
76
|
+
const e = d(at()), { loading: xe, FINAL_DATASET: je, manualLoading: $e } = oo({
|
|
77
|
+
...Rl(C),
|
|
74
78
|
FINAL_CONFIG: e,
|
|
75
79
|
prepareConfig: at,
|
|
76
80
|
callback: () => {
|
|
@@ -90,7 +94,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
90
94
|
color: "#CACACA"
|
|
91
95
|
}
|
|
92
96
|
],
|
|
93
|
-
skeletonConfig:
|
|
97
|
+
skeletonConfig: Hl({
|
|
94
98
|
defaultConfig: e.value,
|
|
95
99
|
userConfig: {
|
|
96
100
|
userOptions: { show: !1 },
|
|
@@ -142,44 +146,44 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
142
146
|
}
|
|
143
147
|
}
|
|
144
148
|
})
|
|
145
|
-
}), { userOptionsVisible: et, setUserOptionsVisibility:
|
|
146
|
-
function
|
|
147
|
-
|
|
149
|
+
}), { userOptionsVisible: et, setUserOptionsVisibility: At, keepUserOptionState: Lt } = co({ config: e.value }), { svgRef: tt } = ho({ config: e.value.style.chart.title });
|
|
150
|
+
function Wa() {
|
|
151
|
+
At(!0);
|
|
148
152
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
153
|
+
function qa() {
|
|
154
|
+
At(!1), be("selectX", { seriesIndex: null, datapoint: null }), G.value = null;
|
|
151
155
|
}
|
|
152
156
|
function at() {
|
|
153
157
|
const a = yt({
|
|
154
|
-
userConfig:
|
|
155
|
-
defaultConfig:
|
|
158
|
+
userConfig: C.config,
|
|
159
|
+
defaultConfig: Ia
|
|
156
160
|
});
|
|
157
161
|
let l = {};
|
|
158
162
|
const t = a.theme;
|
|
159
163
|
if (t)
|
|
160
|
-
if (!
|
|
161
|
-
|
|
164
|
+
if (!Ba.value(a))
|
|
165
|
+
Va(a), l = a;
|
|
162
166
|
else {
|
|
163
167
|
const o = yt({
|
|
164
|
-
userConfig:
|
|
168
|
+
userConfig: _a[t] || C.config,
|
|
165
169
|
defaultConfig: a
|
|
166
170
|
});
|
|
167
171
|
l = {
|
|
168
172
|
...yt({
|
|
169
|
-
userConfig:
|
|
173
|
+
userConfig: C.config,
|
|
170
174
|
defaultConfig: o
|
|
171
175
|
}),
|
|
172
|
-
customPalette: a.customPalette.length ? a.customPalette :
|
|
176
|
+
customPalette: a.customPalette.length ? a.customPalette : Xl[t] || He
|
|
173
177
|
};
|
|
174
178
|
}
|
|
175
179
|
else
|
|
176
180
|
l = a;
|
|
177
|
-
return
|
|
181
|
+
return C.config && de(C.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = C.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, C.config && de(C.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = C.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, C.config && de(C.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = C.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, C.config && de(C.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = C.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, C.config && de(C.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = C.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, C.config && de(C.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = C.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
178
182
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
xe.value || (e.value = at()), et.value = !e.value.userOptions.showOnChartHover, ot(),
|
|
182
|
-
}, { deep: !0 }),
|
|
183
|
+
const zt = b(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), St = b(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
184
|
+
Se(() => C.config, (a) => {
|
|
185
|
+
xe.value || (e.value = at()), et.value = !e.value.userOptions.showOnChartHover, ot(), kt.value += 1, Ha.value += 1, Xa.value += 1, T.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, T.value.showTable = e.value.table.show, T.value.showTooltip = e.value.style.chart.tooltip.show, Ne();
|
|
186
|
+
}, { deep: !0 }), Se(() => C.dataset, (a) => {
|
|
183
187
|
Array.isArray(a) && a.length > 0 && ($e.value = !1), Ot();
|
|
184
188
|
}, { deep: !0 });
|
|
185
189
|
const T = d({
|
|
@@ -189,7 +193,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
189
193
|
showTable: e.value.table.show,
|
|
190
194
|
showTooltip: e.value.style.chart.tooltip.show
|
|
191
195
|
});
|
|
192
|
-
|
|
196
|
+
Se(e, () => {
|
|
193
197
|
T.value = {
|
|
194
198
|
dataLabels: {
|
|
195
199
|
show: e.value.style.chart.bars.dataLabels.show
|
|
@@ -198,7 +202,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
198
202
|
showTooltip: e.value.style.chart.tooltip.show
|
|
199
203
|
};
|
|
200
204
|
}, { immediate: !0 });
|
|
201
|
-
const { isPrinting: _t, isImaging: Mt, generatePdf: Tt, generateImage: $t } =
|
|
205
|
+
const { isPrinting: _t, isImaging: Mt, generatePdf: Tt, generateImage: $t } = lo({
|
|
202
206
|
elementId: `stackbar_${V.value}`,
|
|
203
207
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
204
208
|
options: e.value.userOptions.print
|
|
@@ -211,18 +215,18 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
211
215
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
212
216
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
213
217
|
}
|
|
214
|
-
}),
|
|
218
|
+
}), Ga = b(() => Yl(e.value.customPalette)), Q = ua(null), ce = ua(null), Ft = d(null);
|
|
215
219
|
ia(() => {
|
|
216
220
|
ot();
|
|
217
221
|
});
|
|
218
222
|
const lt = b(() => !!e.value.debug);
|
|
219
223
|
function ot() {
|
|
220
|
-
if (da(
|
|
224
|
+
if (da(C.dataset) ? (ga({
|
|
221
225
|
componentName: "VueUiStackbar",
|
|
222
226
|
type: "dataset",
|
|
223
227
|
debug: lt.value
|
|
224
|
-
}), $e.value = !0) :
|
|
225
|
-
|
|
228
|
+
}), $e.value = !0) : C.dataset.forEach((a, l) => {
|
|
229
|
+
Wl({
|
|
226
230
|
datasetObject: a,
|
|
227
231
|
requiredAttributes: ["name", "series"]
|
|
228
232
|
}).forEach((t) => {
|
|
@@ -234,17 +238,17 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
234
238
|
debug: lt.value
|
|
235
239
|
}), $e.value = !0;
|
|
236
240
|
});
|
|
237
|
-
}), da(
|
|
241
|
+
}), da(C.dataset) || ($e.value = e.value.loading), setTimeout(() => {
|
|
238
242
|
le.value = !0;
|
|
239
243
|
}, 10), e.value.responsive) {
|
|
240
244
|
const a = ft(() => {
|
|
241
245
|
le.value = !1;
|
|
242
|
-
const { width: l, height: t } =
|
|
246
|
+
const { width: l, height: t } = ao({
|
|
243
247
|
chart: J.value,
|
|
244
248
|
title: e.value.style.chart.title.text ? pt.value : null,
|
|
245
249
|
legend: e.value.style.chart.legend.show ? xt.value : null,
|
|
246
250
|
slicer: e.value.style.chart.zoom.show && D.value > 6 ? fe.value.$el : null,
|
|
247
|
-
source:
|
|
251
|
+
source: Ct.value
|
|
248
252
|
});
|
|
249
253
|
requestAnimationFrame(() => {
|
|
250
254
|
ue.value.width = l, ue.value.height = t - 12, clearTimeout(Ft.value), Ft.value = setTimeout(() => {
|
|
@@ -259,7 +263,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
259
263
|
gt(() => {
|
|
260
264
|
Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect());
|
|
261
265
|
});
|
|
262
|
-
function
|
|
266
|
+
function Ja() {
|
|
263
267
|
let a = 0;
|
|
264
268
|
e.value.orientation === "vertical" && oe.value && (a = Array.from(oe.value.querySelectorAll("text")).reduce((o, c) => {
|
|
265
269
|
const r = c.getComputedTextLength();
|
|
@@ -271,21 +275,21 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
271
275
|
const l = Ze.value ? Ze.value.getBoundingClientRect().width : 0;
|
|
272
276
|
return a + l + (l ? 24 : 0);
|
|
273
277
|
}
|
|
274
|
-
const Fe = d(0), De = d(0),
|
|
278
|
+
const Fe = d(0), De = d(0), Za = ft((a) => {
|
|
275
279
|
Fe.value = a;
|
|
276
280
|
}, 100);
|
|
277
281
|
ca((a) => {
|
|
278
282
|
const l = e.value.orientation === "vertical" ? re.value : oe.value;
|
|
279
283
|
if (!l) return;
|
|
280
284
|
const t = new ResizeObserver((o) => {
|
|
281
|
-
|
|
285
|
+
Za(o[0].contentRect.height);
|
|
282
286
|
});
|
|
283
287
|
t.observe(l), a(() => t.disconnect());
|
|
284
288
|
});
|
|
285
|
-
const
|
|
289
|
+
const Qa = ft((a) => {
|
|
286
290
|
De.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
287
291
|
}, 100);
|
|
288
|
-
function
|
|
292
|
+
function Ka() {
|
|
289
293
|
if (e.value.orientation !== "horizontal") return 0;
|
|
290
294
|
const a = Qe.value;
|
|
291
295
|
if (!a) return 0;
|
|
@@ -305,8 +309,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
305
309
|
const l = Qe.value;
|
|
306
310
|
if (!l) return;
|
|
307
311
|
const t = () => {
|
|
308
|
-
const r =
|
|
309
|
-
|
|
312
|
+
const r = Ka();
|
|
313
|
+
Qa(r);
|
|
310
314
|
};
|
|
311
315
|
t();
|
|
312
316
|
const o = new ResizeObserver(t);
|
|
@@ -325,21 +329,21 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
325
329
|
return e.value.orientation === "vertical" && re.value && (l = Fe.value), e.value.orientation === "horizontal" && oe.value && (l = Fe.value), a + l;
|
|
326
330
|
}), u = b(() => {
|
|
327
331
|
const { height: a, width: l } = ue.value, { right: t } = ue.value.paddingRatio;
|
|
328
|
-
let o = e.value.style.chart.bars.totalValues.show &&
|
|
329
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
330
|
-
const r = e.value.style.chart.padding.top + o, f = l - l * t - De.value,
|
|
332
|
+
let o = e.value.style.chart.bars.totalValues.show && C.dataset && C.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
333
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = Ja());
|
|
334
|
+
const r = e.value.style.chart.padding.top + o, f = l - l * t - De.value, L = a - e.value.style.chart.padding.bottom - Dt.value - o, M = e.value.style.chart.padding.left + c, N = l - M - l * t - De.value, $ = a - r - e.value.style.chart.padding.bottom - Dt.value - o;
|
|
331
335
|
return {
|
|
332
336
|
chartHeight: a,
|
|
333
337
|
chartWidth: l,
|
|
334
338
|
top: r,
|
|
335
339
|
right: f,
|
|
336
|
-
bottom:
|
|
340
|
+
bottom: L,
|
|
337
341
|
left: M,
|
|
338
342
|
width: Math.max(0, N),
|
|
339
343
|
height: Math.max(0, $)
|
|
340
344
|
};
|
|
341
|
-
}),
|
|
342
|
-
const { left: a, top: l, width: t, height: o } = u.value, c = h.value.start, r = h.value.end, f = Math.max(1, r - c),
|
|
345
|
+
}), ja = b(() => {
|
|
346
|
+
const { left: a, top: l, width: t, height: o } = u.value, c = h.value.start, r = h.value.end, f = Math.max(1, r - c), L = Math.max(0, Math.min(f, (R.value.start ?? c) - c)), M = Math.max(0, Math.min(f, (R.value.end ?? r) - c)), N = Math.max(0, M - L), $ = {
|
|
343
347
|
fill: e.value.style.chart.zoom.preview.fill,
|
|
344
348
|
stroke: e.value.style.chart.zoom.preview.stroke,
|
|
345
349
|
"stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
|
|
@@ -356,7 +360,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
356
360
|
const E = o / f;
|
|
357
361
|
return {
|
|
358
362
|
x: a,
|
|
359
|
-
y: l +
|
|
363
|
+
y: l + L * E,
|
|
360
364
|
width: t,
|
|
361
365
|
height: N * E,
|
|
362
366
|
...$
|
|
@@ -364,7 +368,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
364
368
|
} else {
|
|
365
369
|
const E = t / f;
|
|
366
370
|
return {
|
|
367
|
-
x: a +
|
|
371
|
+
x: a + L * E,
|
|
368
372
|
y: l,
|
|
369
373
|
width: N * E,
|
|
370
374
|
height: o,
|
|
@@ -372,7 +376,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
372
376
|
};
|
|
373
377
|
}
|
|
374
378
|
}), X = b(() => je.value.map((a, l) => {
|
|
375
|
-
const t =
|
|
379
|
+
const t = ql(a.color) || Ga.value[l] || He[l] || He[l % He.length];
|
|
376
380
|
return {
|
|
377
381
|
...a,
|
|
378
382
|
// In distributed mode, all values are converted to positive
|
|
@@ -384,7 +388,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
384
388
|
color: t
|
|
385
389
|
};
|
|
386
390
|
})), D = b(() => Math.max(...X.value.filter((a) => !F.value.includes(a.id)).map((a) => a.series.length)));
|
|
387
|
-
function
|
|
391
|
+
function el(a) {
|
|
388
392
|
Ke.value = a;
|
|
389
393
|
}
|
|
390
394
|
const h = d({
|
|
@@ -399,32 +403,32 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
399
403
|
let l = Math.max(0, Math.min(h.value.start ?? 0, a - 1)), t = Math.max(l + 1, Math.min(h.value.end ?? a, a));
|
|
400
404
|
(!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = a), h.value.start = l, h.value.end = t, R.value.start = l, R.value.end = t, fe.value && (fe.value.setStartValue(l), fe.value.setEndValue(t));
|
|
401
405
|
}
|
|
402
|
-
const
|
|
403
|
-
function
|
|
406
|
+
const Ce = d(null);
|
|
407
|
+
function tl() {
|
|
404
408
|
return new Promise((a) => requestAnimationFrame(
|
|
405
409
|
() => requestAnimationFrame(() => a())
|
|
406
410
|
));
|
|
407
411
|
}
|
|
408
412
|
gt(() => {
|
|
409
|
-
|
|
413
|
+
Ce.value && cancelAnimationFrame(Ce.value);
|
|
410
414
|
});
|
|
411
415
|
async function Ot() {
|
|
412
|
-
Be(), await
|
|
413
|
-
await
|
|
416
|
+
Be(), await Il(), Ce.value && cancelAnimationFrame(Ce.value), Ce.value = requestAnimationFrame(async () => {
|
|
417
|
+
await tl(), Be();
|
|
414
418
|
});
|
|
415
419
|
}
|
|
416
420
|
const p = b(() => {
|
|
417
421
|
let a;
|
|
418
422
|
return e.value.orientation === "vertical" ? a = u.value.width / (h.value.end - h.value.start) : a = u.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
419
|
-
}),
|
|
423
|
+
}), ke = b(() => Te(X.value.filter((a) => !F.value.includes(a.id))).slice(h.value.start, h.value.end)), se = b(() => e.value.style.chart.zoom.minimap.show ? Te(X.value.map((a) => ({
|
|
420
424
|
...a,
|
|
421
425
|
series: a.series.map((l) => l ?? 0)
|
|
422
|
-
})).filter((a) => !F.value.includes(a.id))) : []),
|
|
426
|
+
})).filter((a) => !F.value.includes(a.id))) : []), al = b(() => e.value.style.chart.zoom.minimap.show ? [{
|
|
423
427
|
name: "",
|
|
424
428
|
series: se.value,
|
|
425
429
|
color: "#000000",
|
|
426
430
|
isVisible: !0
|
|
427
|
-
}] : []),
|
|
431
|
+
}] : []), ll = b(() => Te(X.value.filter((a) => !F.value.includes(a.id)).map((a) => ({
|
|
428
432
|
...a,
|
|
429
433
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
430
434
|
}))).slice(h.value.start, h.value.end)), Pe = b(() => {
|
|
@@ -462,25 +466,25 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
462
466
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
463
467
|
start: 0,
|
|
464
468
|
end: D.value
|
|
465
|
-
})),
|
|
469
|
+
})), ol = b(() => {
|
|
466
470
|
const a = e.value.style.chart.grid.x.timeLabels.modulo;
|
|
467
471
|
return O.value.length ? Math.min(a, [...new Set(O.value.map((l) => l.text))].length) : a;
|
|
468
472
|
}), Et = b(() => {
|
|
469
|
-
const a = e.value.style.chart.grid.x.timeLabels, l = O.value || [], t = we.value || [], o = h.value.start ?? 0, c = G.value, r = D.value, f = l.map((M) => M?.text ?? ""),
|
|
470
|
-
return
|
|
473
|
+
const a = e.value.style.chart.grid.x.timeLabels, l = O.value || [], t = we.value || [], o = h.value.start ?? 0, c = G.value, r = D.value, f = l.map((M) => M?.text ?? ""), L = t.map((M) => M?.text ?? "");
|
|
474
|
+
return Gl(
|
|
471
475
|
!!a.showOnlyFirstAndLast,
|
|
472
476
|
!!a.showOnlyAtModulo,
|
|
473
|
-
Math.max(1,
|
|
477
|
+
Math.max(1, ol.value || 1),
|
|
474
478
|
f,
|
|
475
|
-
|
|
479
|
+
L,
|
|
476
480
|
o,
|
|
477
481
|
c,
|
|
478
482
|
r
|
|
479
483
|
);
|
|
480
484
|
}), Rt = b(() => {
|
|
481
|
-
const a = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l =
|
|
485
|
+
const a = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = so({
|
|
482
486
|
useUTC: a.useUTC,
|
|
483
|
-
locale:
|
|
487
|
+
locale: no[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
484
488
|
januaryAsYear: a.januaryAsYear
|
|
485
489
|
});
|
|
486
490
|
return (t, o) => {
|
|
@@ -493,27 +497,27 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
493
497
|
}))), rt = b(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
|
|
494
498
|
text: Rt.value(t, e.value.style.chart.tooltip.timeFormat),
|
|
495
499
|
absoluteIndex: t
|
|
496
|
-
}))),
|
|
500
|
+
}))), z = b(() => {
|
|
497
501
|
if (!ye.value && !xe.value) return [];
|
|
498
502
|
let a = Array(D.value).fill(0), l = Array(D.value).fill(0), t = Array(D.value).fill(0), o = Array(D.value).fill(0);
|
|
499
|
-
const c = Math.max(...Pe.value.positive) || 0, r = Math.min(...Pe.value.negative), f = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r,
|
|
503
|
+
const c = Math.max(...Pe.value.positive) || 0, r = Math.min(...Pe.value.negative), f = [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, L = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ba(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : f > 0 ? 0 : f, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : ya(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : f > 0 ? 0 : f, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: M, max: N } = L, $ = N + (M >= 0 ? 0 : Math.abs(M)) || 1, E = u.value.height, I = u.value.width, ze = Y.value[0] ? Y.value[0].zero : u.value.bottom, W = Y.value[0] ? Y.value[0].horizontal_zero : u.value.left;
|
|
500
504
|
let la = Array(se.value.length).fill(0), oa = Array(se.value.length).fill(0);
|
|
501
505
|
return X.value.filter((he) => !F.value.includes(he.id)).map((he) => {
|
|
502
|
-
const K = he.series.slice(), ra = K.map((v, g) => la[g]),
|
|
506
|
+
const K = he.series.slice(), ra = K.map((v, g) => la[g]), Al = K.map((v, g) => oa[g]);
|
|
503
507
|
K.forEach((v, g) => {
|
|
504
508
|
(Number(v) || 0) >= 0 ? la[g] += Number(v) || 0 : oa[g] += Math.abs(Number(v) || 0);
|
|
505
509
|
});
|
|
506
|
-
const Z = he.series.slice(h.value.start, h.value.end),
|
|
510
|
+
const Z = he.series.slice(h.value.start, h.value.end), Ll = he.signedSeries.slice(h.value.start, h.value.end), zl = Z.map((v, g) => u.value.left + p.value * g + p.value * e.value.style.chart.bars.gapRatio / 4), Ue = (se.value || []).filter(Number.isFinite), ht = Ue.length ? Math.max(...Ue) : 0, vt = Ue.length ? Math.min(...Ue) : 0;
|
|
507
511
|
function sa({ minimapH: v }) {
|
|
508
|
-
const
|
|
509
|
-
if (
|
|
512
|
+
const S = ht > 0, P = vt < 0;
|
|
513
|
+
if (S && P) {
|
|
510
514
|
const q = Math.max(ht, Math.abs(vt)) || 1e-9;
|
|
511
515
|
return {
|
|
512
516
|
pxPerUnit: v / 2 / q,
|
|
513
517
|
zero: v / 2
|
|
514
518
|
};
|
|
515
519
|
}
|
|
516
|
-
if (
|
|
520
|
+
if (S) {
|
|
517
521
|
const q = Math.max(1e-9, ht);
|
|
518
522
|
return {
|
|
519
523
|
pxPerUnit: v / q,
|
|
@@ -526,60 +530,60 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
526
530
|
zero: 0
|
|
527
531
|
};
|
|
528
532
|
}
|
|
529
|
-
const
|
|
530
|
-
const
|
|
531
|
-
return K.map((P, _) => v + g * _ +
|
|
532
|
-
},
|
|
533
|
-
const
|
|
533
|
+
const Sl = ({ left: v, unitW: g }) => {
|
|
534
|
+
const S = g * (e.value.style.chart.bars.gapRatio / 4);
|
|
535
|
+
return K.map((P, _) => v + g * _ + S);
|
|
536
|
+
}, _l = Z.map((v, g) => u.value.top + p.value * g + p.value * e.value.style.chart.bars.gapRatio / 4), Ml = Z.map((v, g) => {
|
|
537
|
+
const S = e.value.style.chart.bars.distributed ? (v || 0) / ke.value[g] : (v || 0) / $;
|
|
534
538
|
let P, _;
|
|
535
|
-
return v > 0 ? (_ = E *
|
|
536
|
-
}),
|
|
539
|
+
return v > 0 ? (_ = E * S, P = ze - _ - a[g], a[g] += _) : (_ = E * S, P = ze + t[g], t[g] += Math.abs(_)), P;
|
|
540
|
+
}), Tl = ({ minimapH: v }) => {
|
|
537
541
|
if (e.value.style.chart.bars.distributed)
|
|
538
542
|
return K.map((_, q) => {
|
|
539
|
-
const dt = Math.abs(Number(_) || 0), na = Math.abs(se.value?.[q] || 0) || 1e-9,
|
|
540
|
-
return v -
|
|
543
|
+
const dt = Math.abs(Number(_) || 0), na = Math.abs(se.value?.[q] || 0) || 1e-9, Ol = (ra[q] + dt) / na;
|
|
544
|
+
return v - Ol * v;
|
|
541
545
|
});
|
|
542
|
-
const { pxPerUnit: g, zero:
|
|
546
|
+
const { pxPerUnit: g, zero: S } = sa({ minimapH: v });
|
|
543
547
|
return K.map((P, _) => {
|
|
544
548
|
const q = Number(P) || 0;
|
|
545
|
-
return q >= 0 ?
|
|
549
|
+
return q >= 0 ? S - (ra[_] + q) * g : S + Al[_] * g;
|
|
546
550
|
});
|
|
547
|
-
},
|
|
548
|
-
const
|
|
551
|
+
}, $l = Z.map((v, g) => {
|
|
552
|
+
const S = e.value.style.chart.bars.distributed ? (v || 0) / ke.value[g] : (v || 0) / $;
|
|
549
553
|
let P, _;
|
|
550
|
-
return v > 0 ? (_ = I *
|
|
551
|
-
}),
|
|
552
|
-
const
|
|
553
|
-
return v > 0 ? E *
|
|
554
|
-
}),
|
|
554
|
+
return v > 0 ? (_ = I * S, P = W + l[g], l[g] += _) : (_ = I * S, P = W - Math.abs(_) - o[g], o[g] += Math.abs(_)), P;
|
|
555
|
+
}), Fl = Z.map((v, g) => {
|
|
556
|
+
const S = e.value.style.chart.bars.distributed ? (v || 0) / ke.value[g] : (v || 0) / $;
|
|
557
|
+
return v > 0 ? E * S : E * Math.abs(S);
|
|
558
|
+
}), Dl = ({ minimapH: v }) => {
|
|
555
559
|
if (e.value.style.chart.bars.distributed)
|
|
556
560
|
return K.map((P, _) => {
|
|
557
561
|
const q = Math.abs(Number(P) || 0), dt = Math.abs(se.value?.[_] || 0) || 1e-9;
|
|
558
562
|
return q / dt * v;
|
|
559
563
|
});
|
|
560
564
|
const { pxPerUnit: g } = sa({ minimapH: v });
|
|
561
|
-
return K.map((
|
|
562
|
-
},
|
|
563
|
-
const
|
|
564
|
-
return v > 0 ? I *
|
|
565
|
-
}),
|
|
565
|
+
return K.map((S) => Math.abs(Number(S) || 0) * g);
|
|
566
|
+
}, Nl = Z.map((v, g) => {
|
|
567
|
+
const S = e.value.style.chart.bars.distributed ? (v || 0) / ke.value[g] : (v || 0) / $;
|
|
568
|
+
return v > 0 ? I * S : I * Math.abs(S);
|
|
569
|
+
}), Pl = Z.map((v) => Math.abs(v)).reduce((v, g) => v + g, 0);
|
|
566
570
|
return {
|
|
567
571
|
...he,
|
|
568
|
-
proportions: Z.map((v, g) => e.value.style.chart.bars.distributed ? (v || 0) /
|
|
572
|
+
proportions: Z.map((v, g) => e.value.style.chart.bars.distributed ? (v || 0) / ke.value[g] : (v || 0) / Pl),
|
|
569
573
|
series: Z,
|
|
570
|
-
signedSeries:
|
|
571
|
-
x:
|
|
572
|
-
y:
|
|
573
|
-
height:
|
|
574
|
-
horizontal_width:
|
|
575
|
-
horizontal_y:
|
|
576
|
-
horizontal_x:
|
|
577
|
-
xMinimap:
|
|
578
|
-
yMinimap:
|
|
579
|
-
heightMinimap:
|
|
574
|
+
signedSeries: Ll,
|
|
575
|
+
x: zl,
|
|
576
|
+
y: Ml,
|
|
577
|
+
height: Fl,
|
|
578
|
+
horizontal_width: Nl,
|
|
579
|
+
horizontal_y: _l,
|
|
580
|
+
horizontal_x: $l,
|
|
581
|
+
xMinimap: Sl,
|
|
582
|
+
yMinimap: Tl,
|
|
583
|
+
heightMinimap: Dl
|
|
580
584
|
};
|
|
581
585
|
});
|
|
582
|
-
}), Bt = b(() =>
|
|
586
|
+
}), Bt = b(() => ll.value.map((a, l) => ({
|
|
583
587
|
value: a,
|
|
584
588
|
sign: a >= 0 ? 1 : -1
|
|
585
589
|
})));
|
|
@@ -610,7 +614,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
610
614
|
);
|
|
611
615
|
}
|
|
612
616
|
function Ut(a) {
|
|
613
|
-
const l = JSON.parse(JSON.stringify(
|
|
617
|
+
const l = JSON.parse(JSON.stringify(z.value)).map((t) => ({
|
|
614
618
|
name: t.name,
|
|
615
619
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
616
620
|
proportion: t.proportions[a] || null,
|
|
@@ -620,7 +624,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
620
624
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), be("selectDatapoint", { datapoint: l, period: O.value[a] });
|
|
621
625
|
}
|
|
622
626
|
function st(a) {
|
|
623
|
-
return JSON.parse(JSON.stringify(
|
|
627
|
+
return JSON.parse(JSON.stringify(z.value)).map((l) => ({
|
|
624
628
|
name: l.name,
|
|
625
629
|
absoluteIndex: l.absoluteIndex,
|
|
626
630
|
value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
|
|
@@ -637,9 +641,9 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
637
641
|
}
|
|
638
642
|
Ye.value = null, G.value = null;
|
|
639
643
|
}
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
if ([null, void 0].includes(
|
|
644
|
+
const rl = b(() => Array(D.value).fill(0).map((a, l) => st(l)));
|
|
645
|
+
Se(() => C.selectedXIndex, (a) => {
|
|
646
|
+
if ([null, void 0].includes(C.selectedXIndex)) {
|
|
643
647
|
G.value = null;
|
|
644
648
|
return;
|
|
645
649
|
}
|
|
@@ -649,30 +653,30 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
649
653
|
function Xt(a) {
|
|
650
654
|
G.value = a, Ye.value = !0;
|
|
651
655
|
const l = e.value.style.chart.tooltip.customFormat, t = st(a);
|
|
652
|
-
|
|
656
|
+
Cl({ seriesIndex: a, datapoint: t }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), We.value = {
|
|
653
657
|
datapoint: t,
|
|
654
658
|
seriesIndex: a,
|
|
655
659
|
config: e.value,
|
|
656
|
-
series:
|
|
660
|
+
series: z.value
|
|
657
661
|
};
|
|
658
662
|
const o = t.map((r) => Math.abs(r.value)).reduce((r, f) => r + f, 0), c = t.map((r) => ie(r.value)).reduce((r, f) => r + f, 0);
|
|
659
|
-
if (ma(l) &&
|
|
663
|
+
if (ma(l) && to(() => l({
|
|
660
664
|
seriesIndex: a,
|
|
661
665
|
datapoint: t,
|
|
662
|
-
series:
|
|
666
|
+
series: z.value,
|
|
663
667
|
config: e.value
|
|
664
668
|
})))
|
|
665
669
|
qe.value = l({
|
|
666
670
|
seriesIndex: a,
|
|
667
671
|
datapoint: t,
|
|
668
|
-
series:
|
|
672
|
+
series: z.value,
|
|
669
673
|
config: e.value
|
|
670
674
|
});
|
|
671
675
|
else {
|
|
672
676
|
const {
|
|
673
677
|
showValue: r,
|
|
674
678
|
showTotal: f,
|
|
675
|
-
totalTranslation:
|
|
679
|
+
totalTranslation: L,
|
|
676
680
|
showPercentage: M,
|
|
677
681
|
borderColor: N,
|
|
678
682
|
roundingValue: $,
|
|
@@ -680,7 +684,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
680
684
|
} = e.value.style.chart.tooltip;
|
|
681
685
|
let I = "";
|
|
682
686
|
(O.value[a] && O.value[a].text || rt.value[a] && rt.value[a].text && e.value.style.chart.tooltip.showTimeLabel) && (I += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? O.value[a]?.text : rt.value[a]?.text || we.value[a]?.text || ""}</div>`), f && (I += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
683
|
-
<span>${
|
|
687
|
+
<span>${L}:</span>
|
|
684
688
|
<span>
|
|
685
689
|
${ge(
|
|
686
690
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
@@ -691,18 +695,18 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
691
695
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
692
696
|
r: $
|
|
693
697
|
}),
|
|
694
|
-
{ datapoint: { name:
|
|
698
|
+
{ datapoint: { name: L, value: c } }
|
|
695
699
|
)}
|
|
696
700
|
</span>
|
|
697
701
|
</div>`);
|
|
698
|
-
const
|
|
702
|
+
const ze = [
|
|
699
703
|
r && M ? "(" : "",
|
|
700
704
|
r && M ? ")" : ""
|
|
701
705
|
];
|
|
702
706
|
t.reverse().forEach((W) => {
|
|
703
707
|
I += `
|
|
704
708
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
705
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${W.id})` : W.color}"/>${
|
|
709
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${W.id})` : W.color}"/>${Ua.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${W.absoluteIndex})"/>` : ""}</svg>
|
|
706
710
|
${W.name}${r || M ? ":" : ""} ${r ? ge(
|
|
707
711
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
708
712
|
W.value,
|
|
@@ -712,19 +716,19 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
712
716
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
713
717
|
r: $
|
|
714
718
|
})
|
|
715
|
-
) : ""} ${
|
|
719
|
+
) : ""} ${ze[0]}${M ? ae({
|
|
716
720
|
v: isNaN(W.value / o) ? 0 : Math.abs(W.value) / o * 100,
|
|
717
721
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
718
722
|
s: "%",
|
|
719
723
|
r: E
|
|
720
|
-
}) : ""}${
|
|
724
|
+
}) : ""}${ze[1]}
|
|
721
725
|
</div>
|
|
722
726
|
`;
|
|
723
727
|
}), qe.value = `<div>${I}</div>`;
|
|
724
728
|
}
|
|
725
729
|
}
|
|
726
|
-
const
|
|
727
|
-
|
|
730
|
+
const sl = b(() => ue.value.width), nl = b(() => ue.value.height);
|
|
731
|
+
vo({
|
|
728
732
|
timeLabelsEls: e.value.orientation === "vertical" ? re : oe,
|
|
729
733
|
timeLabels: O,
|
|
730
734
|
slicer: h,
|
|
@@ -732,8 +736,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
732
736
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
733
737
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
734
738
|
isAutoSize: !1,
|
|
735
|
-
width:
|
|
736
|
-
height:
|
|
739
|
+
width: sl,
|
|
740
|
+
height: nl,
|
|
737
741
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
738
742
|
});
|
|
739
743
|
function Yt(a) {
|
|
@@ -748,12 +752,12 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
748
752
|
function Gt() {
|
|
749
753
|
T.value.showTooltip = !T.value.showTooltip;
|
|
750
754
|
}
|
|
751
|
-
function
|
|
752
|
-
return
|
|
755
|
+
function il() {
|
|
756
|
+
return z.value;
|
|
753
757
|
}
|
|
754
758
|
const Jt = b(() => {
|
|
755
|
-
if (
|
|
756
|
-
const a =
|
|
759
|
+
if (z.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
760
|
+
const a = z.value.map(({ name: t, color: o }) => ({
|
|
757
761
|
label: t,
|
|
758
762
|
color: o
|
|
759
763
|
})), l = [];
|
|
@@ -765,15 +769,15 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
765
769
|
}), { head: a, body: l };
|
|
766
770
|
});
|
|
767
771
|
function nt(a = null) {
|
|
768
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Jt.value.head.map((f) => f.label)], o = Jt.value.body, c = l.concat([t]).concat(o), r =
|
|
769
|
-
a ? a(r) :
|
|
772
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...Jt.value.head.map((f) => f.label)], o = Jt.value.body, c = l.concat([t]).concat(o), r = jl(c);
|
|
773
|
+
a ? a(r) : eo({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
770
774
|
}
|
|
771
775
|
const Ee = b(() => {
|
|
772
|
-
const a = [""].concat(
|
|
776
|
+
const a = [""].concat(z.value.map((c) => c.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
773
777
|
let l = [];
|
|
774
778
|
for (let c = 0; c < D.value; c += 1) {
|
|
775
|
-
const r =
|
|
776
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? O.value[c].text : c + 1].concat(
|
|
779
|
+
const r = z.value.map((f) => f.series[c] ?? 0).reduce((f, L) => f + L, 0);
|
|
780
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? O.value[c].text : c + 1].concat(z.value.map((f) => (f.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((r ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
777
781
|
}
|
|
778
782
|
const t = {
|
|
779
783
|
th: {
|
|
@@ -787,7 +791,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
787
791
|
outline: e.value.table.td.outline
|
|
788
792
|
},
|
|
789
793
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
790
|
-
}, o = [e.value.table.columnNames.period].concat(
|
|
794
|
+
}, o = [e.value.table.columnNames.period].concat(z.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
791
795
|
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: o };
|
|
792
796
|
});
|
|
793
797
|
function it(a) {
|
|
@@ -797,7 +801,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
797
801
|
if (F.value.length === X.value.length - 1) return;
|
|
798
802
|
F.value.push(a.id);
|
|
799
803
|
}
|
|
800
|
-
be("selectLegend",
|
|
804
|
+
be("selectLegend", z.value);
|
|
801
805
|
}
|
|
802
806
|
function Zt(a) {
|
|
803
807
|
if (!X.value.length)
|
|
@@ -805,11 +809,11 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
805
809
|
const l = X.value.find((t) => t.name === a);
|
|
806
810
|
return l || (e.value.debug && console.warn(`VueUiStackbar - Series name not found "${a}"`), null);
|
|
807
811
|
}
|
|
808
|
-
function
|
|
812
|
+
function ul(a) {
|
|
809
813
|
const l = Zt(a);
|
|
810
814
|
l !== null && F.value.includes(l.id) && it({ id: l.id });
|
|
811
815
|
}
|
|
812
|
-
function
|
|
816
|
+
function cl(a) {
|
|
813
817
|
const l = Zt(a);
|
|
814
818
|
l !== null && (F.value.includes(l.id) || it({ id: l.id }));
|
|
815
819
|
}
|
|
@@ -821,7 +825,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
821
825
|
opacity: F.value.includes(a.id) ? 0.5 : 1,
|
|
822
826
|
segregate: () => it(a),
|
|
823
827
|
isSegregated: F.value.includes(a.id)
|
|
824
|
-
}))),
|
|
828
|
+
}))), hl = b(() => ({
|
|
825
829
|
cy: "stackbar-legend",
|
|
826
830
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
827
831
|
color: e.value.style.chart.legend.color,
|
|
@@ -833,7 +837,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
833
837
|
Re.value = !Re.value;
|
|
834
838
|
}
|
|
835
839
|
function Ie(a, l) {
|
|
836
|
-
const t = JSON.parse(JSON.stringify(
|
|
840
|
+
const t = JSON.parse(JSON.stringify(z.value)).map((o) => ({
|
|
837
841
|
name: o.name,
|
|
838
842
|
value: o.series[l] === 0 ? 0 : (o.signedSeries[l] === -1 && o.series[l] >= 0 ? -o.series[l] : o.series[l]) || null,
|
|
839
843
|
proportion: o.proportions[l] || null,
|
|
@@ -846,13 +850,13 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
846
850
|
label: a.text
|
|
847
851
|
});
|
|
848
852
|
}
|
|
849
|
-
const
|
|
853
|
+
const vl = b(() => Math.max(...z.value.flatMap((a) => a.series)));
|
|
850
854
|
function Qt(a, l) {
|
|
851
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
855
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? St.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : St.value ? (zt.value && lt.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > vl.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : zt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
852
856
|
}
|
|
853
|
-
async function
|
|
857
|
+
async function dl({ scale: a = 2 } = {}) {
|
|
854
858
|
if (!J.value) return;
|
|
855
|
-
const { width: l, height: t } = J.value.getBoundingClientRect(), o = l / t, { imageUri: c, base64: r } = await
|
|
859
|
+
const { width: l, height: t } = J.value.getBoundingClientRect(), o = l / t, { imageUri: c, base64: r } = await go({ domElement: J.value, base64: !0, img: !0, scale: a });
|
|
856
860
|
return {
|
|
857
861
|
imageUri: c,
|
|
858
862
|
base64: r,
|
|
@@ -862,10 +866,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
862
866
|
aspectRatio: o
|
|
863
867
|
};
|
|
864
868
|
}
|
|
865
|
-
const
|
|
869
|
+
const Ae = b(() => {
|
|
866
870
|
const a = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
|
|
867
871
|
return {
|
|
868
|
-
component: a ?
|
|
872
|
+
component: a ? Ra : Da,
|
|
869
873
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
870
874
|
props: a ? {
|
|
871
875
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -892,54 +896,54 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
892
896
|
}
|
|
893
897
|
};
|
|
894
898
|
});
|
|
895
|
-
|
|
899
|
+
Se(() => T.value.showTable, (a) => {
|
|
896
900
|
e.value.table.show || (a && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
|
|
897
901
|
});
|
|
898
902
|
function Kt() {
|
|
899
903
|
T.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
|
|
900
904
|
}
|
|
901
|
-
const
|
|
905
|
+
const gl = b(() => e.value.style.chart.backgroundColor), bl = b(() => e.value.style.chart.legend), yl = b(() => e.value.style.chart.title), { exportSvg: fl, getSvg: ml } = io({
|
|
902
906
|
svg: tt,
|
|
903
|
-
title:
|
|
904
|
-
legend:
|
|
907
|
+
title: yl,
|
|
908
|
+
legend: bl,
|
|
905
909
|
legendItems: ut,
|
|
906
|
-
backgroundColor:
|
|
910
|
+
backgroundColor: gl
|
|
907
911
|
});
|
|
908
912
|
async function jt({ isCb: a }) {
|
|
909
913
|
if (a) {
|
|
910
|
-
const { blob: l, url: t, text: o, dataUrl: c } = await
|
|
914
|
+
const { blob: l, url: t, text: o, dataUrl: c } = await ml();
|
|
911
915
|
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: o, dataUrl: c });
|
|
912
916
|
} else
|
|
913
|
-
|
|
917
|
+
fl();
|
|
914
918
|
}
|
|
915
919
|
function ea(a) {
|
|
916
920
|
const l = D.value;
|
|
917
921
|
return a > l ? l : a < 0 || a < h.value.start ? e.value.style.chart.zoom.startIndex !== null ? h.value.start + 1 : 1 : a;
|
|
918
922
|
}
|
|
919
|
-
const
|
|
923
|
+
const Le = d(!1), ta = d(!1);
|
|
920
924
|
function Be() {
|
|
921
|
-
if (!
|
|
922
|
-
|
|
925
|
+
if (!Le.value) {
|
|
926
|
+
Le.value = !0;
|
|
923
927
|
try {
|
|
924
928
|
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = D.value, o = a ?? 0, c = l != null ? Math.min(ea(l + 1), t) : t;
|
|
925
929
|
Ve.value = !0, h.value.start = o, h.value.end = c, R.value.start = o, R.value.end = c, Ne(), ta.value = !0;
|
|
926
930
|
} finally {
|
|
927
931
|
queueMicrotask(() => {
|
|
928
932
|
Ve.value = !1;
|
|
929
|
-
}),
|
|
933
|
+
}), Le.value = !1;
|
|
930
934
|
}
|
|
931
935
|
}
|
|
932
936
|
}
|
|
933
937
|
const Ve = d(!1);
|
|
934
|
-
function
|
|
935
|
-
|
|
938
|
+
function pl(a) {
|
|
939
|
+
Le.value || Ve.value || a !== h.value.start && (h.value.start = a, R.value.start = a, Ne());
|
|
936
940
|
}
|
|
937
|
-
function
|
|
938
|
-
if (
|
|
941
|
+
function xl(a) {
|
|
942
|
+
if (Le.value || Ve.value) return;
|
|
939
943
|
const l = ea(a);
|
|
940
944
|
l !== h.value.end && (h.value.end = l, R.value.end = l, Ne());
|
|
941
945
|
}
|
|
942
|
-
function
|
|
946
|
+
function Cl({ seriesIndex: a, datapoint: l }) {
|
|
943
947
|
const t = h.value.start + a;
|
|
944
948
|
be("selectX", {
|
|
945
949
|
dataset: l,
|
|
@@ -950,37 +954,37 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
950
954
|
function aa() {
|
|
951
955
|
return { y0: Y.value?.[0]?.zero ?? u.value.bottom };
|
|
952
956
|
}
|
|
953
|
-
function
|
|
957
|
+
function kl(a) {
|
|
954
958
|
const { y0: l } = aa(), t = e.value.style.chart.bars.totalValues, o = Math.max(2, t.fontSize * 0.3 + t.offsetY);
|
|
955
959
|
let c = 1 / 0, r = !1;
|
|
956
|
-
for (const N of
|
|
960
|
+
for (const N of z.value || []) {
|
|
957
961
|
const $ = N?.series?.[a] ?? 0, E = N?.height?.[a] ?? 0, I = N?.y?.[a];
|
|
958
962
|
$ > 0 && E > 0 && Number.isFinite(I) && (r = !0, I < c && (c = I));
|
|
959
963
|
}
|
|
960
|
-
const
|
|
964
|
+
const L = (r && Number.isFinite(c) ? c : l) - o;
|
|
961
965
|
return Math.min(
|
|
962
|
-
Math.max(
|
|
966
|
+
Math.max(L, 0),
|
|
963
967
|
u.value.bottom
|
|
964
968
|
);
|
|
965
969
|
}
|
|
966
|
-
function
|
|
970
|
+
function wl(a) {
|
|
967
971
|
const { x0: l } = aa(), t = Math.max(2, e.value.style.chart.bars.totalValues.fontSize * 0.3 + e.value.style.chart.bars.totalValues.offsetX);
|
|
968
972
|
let o = -1 / 0, c = !1;
|
|
969
|
-
for (const f of
|
|
970
|
-
const
|
|
971
|
-
Number.isFinite(M) &&
|
|
973
|
+
for (const f of z.value || []) {
|
|
974
|
+
const L = f?.series?.[a] ?? 0, M = f?.horizontal_x?.[a], N = f?.horizontal_width?.[a], $ = Number.isFinite(N) ? Math.max(0, N) : 0;
|
|
975
|
+
Number.isFinite(M) && L > 0 && $ > 0 && (c = !0, o = Math.max(o, M + $));
|
|
972
976
|
}
|
|
973
977
|
return (c && Number.isFinite(o) ? o : l) + t;
|
|
974
978
|
}
|
|
975
|
-
return
|
|
976
|
-
getData:
|
|
977
|
-
getImage:
|
|
979
|
+
return Ma({
|
|
980
|
+
getData: il,
|
|
981
|
+
getImage: dl,
|
|
978
982
|
generatePdf: Tt,
|
|
979
983
|
generateCsv: nt,
|
|
980
984
|
generateImage: $t,
|
|
981
985
|
generateSvg: jt,
|
|
982
|
-
hideSeries:
|
|
983
|
-
showSeries:
|
|
986
|
+
hideSeries: cl,
|
|
987
|
+
showSeries: ul,
|
|
984
988
|
toggleTable: Wt,
|
|
985
989
|
toggleLabels: qt,
|
|
986
990
|
toggleTooltip: Gt,
|
|
@@ -992,10 +996,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
992
996
|
ref: J,
|
|
993
997
|
class: ve({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": me.value }),
|
|
994
998
|
style: ne(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
995
|
-
onMouseenter:
|
|
996
|
-
onMouseleave:
|
|
999
|
+
onMouseenter: Wa,
|
|
1000
|
+
onMouseleave: qa
|
|
997
1001
|
}, [
|
|
998
|
-
e.value.userOptions.buttons.annotator ? (s(), ee(m(
|
|
1002
|
+
e.value.userOptions.buttons.annotator ? (s(), ee(m(Pa), {
|
|
999
1003
|
key: 0,
|
|
1000
1004
|
svgRef: m(tt),
|
|
1001
1005
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1003,35 +1007,35 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1003
1007
|
active: Re.value,
|
|
1004
1008
|
onClose: ct
|
|
1005
1009
|
}, {
|
|
1006
|
-
"annotator-action-close":
|
|
1007
|
-
|
|
1010
|
+
"annotator-action-close": A(() => [
|
|
1011
|
+
k(a.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1008
1012
|
]),
|
|
1009
|
-
"annotator-action-color":
|
|
1010
|
-
|
|
1013
|
+
"annotator-action-color": A(({ color: t }) => [
|
|
1014
|
+
k(a.$slots, "annotator-action-color", U(H({ color: t })), void 0, !0)
|
|
1011
1015
|
]),
|
|
1012
|
-
"annotator-action-draw":
|
|
1013
|
-
|
|
1016
|
+
"annotator-action-draw": A(({ mode: t }) => [
|
|
1017
|
+
k(a.$slots, "annotator-action-draw", U(H({ mode: t })), void 0, !0)
|
|
1014
1018
|
]),
|
|
1015
|
-
"annotator-action-undo":
|
|
1016
|
-
|
|
1019
|
+
"annotator-action-undo": A(({ disabled: t }) => [
|
|
1020
|
+
k(a.$slots, "annotator-action-undo", U(H({ disabled: t })), void 0, !0)
|
|
1017
1021
|
]),
|
|
1018
|
-
"annotator-action-redo":
|
|
1019
|
-
|
|
1022
|
+
"annotator-action-redo": A(({ disabled: t }) => [
|
|
1023
|
+
k(a.$slots, "annotator-action-redo", U(H({ disabled: t })), void 0, !0)
|
|
1020
1024
|
]),
|
|
1021
|
-
"annotator-action-delete":
|
|
1022
|
-
|
|
1025
|
+
"annotator-action-delete": A(({ disabled: t }) => [
|
|
1026
|
+
k(a.$slots, "annotator-action-delete", U(H({ disabled: t })), void 0, !0)
|
|
1023
1027
|
]),
|
|
1024
1028
|
_: 3
|
|
1025
1029
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
1026
|
-
|
|
1030
|
+
k(a.$slots, "userConfig", {}, void 0, !0),
|
|
1027
1031
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
1028
1032
|
key: 1,
|
|
1029
1033
|
ref_key: "chartTitle",
|
|
1030
1034
|
ref: pt,
|
|
1031
1035
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1032
1036
|
}, [
|
|
1033
|
-
(s(), ee(
|
|
1034
|
-
key: `title_${
|
|
1037
|
+
(s(), ee(bo, {
|
|
1038
|
+
key: `title_${kt.value}`,
|
|
1035
1039
|
config: {
|
|
1036
1040
|
title: {
|
|
1037
1041
|
cy: "stackbar-title",
|
|
@@ -1046,8 +1050,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1046
1050
|
], 512)) : y("", !0),
|
|
1047
1051
|
te("div", {
|
|
1048
1052
|
id: `legend-top-${V.value}`
|
|
1049
|
-
}, null, 8,
|
|
1050
|
-
e.value.userOptions.show && ye.value && (m(
|
|
1053
|
+
}, null, 8, Co),
|
|
1054
|
+
e.value.userOptions.show && ye.value && (m(Lt) || m(et)) ? (s(), ee(m(Oa), {
|
|
1051
1055
|
ref_key: "userOptionsRef",
|
|
1052
1056
|
ref: Ge,
|
|
1053
1057
|
key: `user_option_${mt.value}`,
|
|
@@ -1084,76 +1088,76 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1084
1088
|
onToggleTooltip: Gt,
|
|
1085
1089
|
onToggleAnnotator: ct,
|
|
1086
1090
|
style: ne({
|
|
1087
|
-
visibility: m(
|
|
1091
|
+
visibility: m(Lt) ? m(et) ? "visible" : "hidden" : "visible"
|
|
1088
1092
|
})
|
|
1089
1093
|
}, bt({ _: 2 }, [
|
|
1090
1094
|
a.$slots.menuIcon ? {
|
|
1091
1095
|
name: "menuIcon",
|
|
1092
|
-
fn:
|
|
1093
|
-
|
|
1096
|
+
fn: A(({ isOpen: t, color: o }) => [
|
|
1097
|
+
k(a.$slots, "menuIcon", U(H({ isOpen: t, color: o })), void 0, !0)
|
|
1094
1098
|
]),
|
|
1095
1099
|
key: "0"
|
|
1096
1100
|
} : void 0,
|
|
1097
1101
|
a.$slots.optionTooltip ? {
|
|
1098
1102
|
name: "optionTooltip",
|
|
1099
|
-
fn:
|
|
1100
|
-
|
|
1103
|
+
fn: A(() => [
|
|
1104
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1101
1105
|
]),
|
|
1102
1106
|
key: "1"
|
|
1103
1107
|
} : void 0,
|
|
1104
1108
|
a.$slots.optionPdf ? {
|
|
1105
1109
|
name: "optionPdf",
|
|
1106
|
-
fn:
|
|
1107
|
-
|
|
1110
|
+
fn: A(() => [
|
|
1111
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1108
1112
|
]),
|
|
1109
1113
|
key: "2"
|
|
1110
1114
|
} : void 0,
|
|
1111
1115
|
a.$slots.optionCsv ? {
|
|
1112
1116
|
name: "optionCsv",
|
|
1113
|
-
fn:
|
|
1114
|
-
|
|
1117
|
+
fn: A(() => [
|
|
1118
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1115
1119
|
]),
|
|
1116
1120
|
key: "3"
|
|
1117
1121
|
} : void 0,
|
|
1118
1122
|
a.$slots.optionImg ? {
|
|
1119
1123
|
name: "optionImg",
|
|
1120
|
-
fn:
|
|
1121
|
-
|
|
1124
|
+
fn: A(() => [
|
|
1125
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
1122
1126
|
]),
|
|
1123
1127
|
key: "4"
|
|
1124
1128
|
} : void 0,
|
|
1125
1129
|
a.$slots.optionSvg ? {
|
|
1126
1130
|
name: "optionSvg",
|
|
1127
|
-
fn:
|
|
1128
|
-
|
|
1131
|
+
fn: A(() => [
|
|
1132
|
+
k(a.$slots, "optionSvg", {}, void 0, !0)
|
|
1129
1133
|
]),
|
|
1130
1134
|
key: "5"
|
|
1131
1135
|
} : void 0,
|
|
1132
1136
|
a.$slots.optionTable ? {
|
|
1133
1137
|
name: "optionTable",
|
|
1134
|
-
fn:
|
|
1135
|
-
|
|
1138
|
+
fn: A(() => [
|
|
1139
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
1136
1140
|
]),
|
|
1137
1141
|
key: "6"
|
|
1138
1142
|
} : void 0,
|
|
1139
1143
|
a.$slots.optionLabels ? {
|
|
1140
1144
|
name: "optionLabels",
|
|
1141
|
-
fn:
|
|
1142
|
-
|
|
1145
|
+
fn: A(() => [
|
|
1146
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1143
1147
|
]),
|
|
1144
1148
|
key: "7"
|
|
1145
1149
|
} : void 0,
|
|
1146
1150
|
a.$slots.optionFullscreen ? {
|
|
1147
1151
|
name: "optionFullscreen",
|
|
1148
|
-
fn:
|
|
1149
|
-
|
|
1152
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
1153
|
+
k(a.$slots, "optionFullscreen", U(H({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
1150
1154
|
]),
|
|
1151
1155
|
key: "8"
|
|
1152
1156
|
} : void 0,
|
|
1153
1157
|
a.$slots.optionAnnotator ? {
|
|
1154
1158
|
name: "optionAnnotator",
|
|
1155
|
-
fn:
|
|
1156
|
-
|
|
1159
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
1160
|
+
k(a.$slots, "optionAnnotator", U(H({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
1157
1161
|
]),
|
|
1158
1162
|
key: "9"
|
|
1159
1163
|
} : void 0
|
|
@@ -1161,12 +1165,12 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1161
1165
|
(s(), n("svg", {
|
|
1162
1166
|
ref_key: "svgRef",
|
|
1163
1167
|
ref: tt,
|
|
1164
|
-
xmlns: m(
|
|
1168
|
+
xmlns: m(Jl),
|
|
1165
1169
|
viewBox: `0 0 ${u.value.chartWidth <= 0 ? 10 : u.value.chartWidth} ${u.value.chartHeight <= 0 ? 10 : u.value.chartHeight}`,
|
|
1166
1170
|
class: ve({ "vue-data-ui-loading": m(xe) }),
|
|
1167
1171
|
style: ne(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
1168
1172
|
}, [
|
|
1169
|
-
_e(m(
|
|
1173
|
+
_e(m(Ea)),
|
|
1170
1174
|
a.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
1171
1175
|
key: 0,
|
|
1172
1176
|
x: u.value.left,
|
|
@@ -1177,10 +1181,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1177
1181
|
pointerEvents: "none"
|
|
1178
1182
|
}
|
|
1179
1183
|
}, [
|
|
1180
|
-
|
|
1181
|
-
], 8,
|
|
1182
|
-
e.value.style.chart.bars.gradient.show ? (s(), n("defs",
|
|
1183
|
-
(s(!0), n(x, null, w(
|
|
1184
|
+
k(a.$slots, "chart-background", {}, void 0, !0)
|
|
1185
|
+
], 8, wo)) : y("", !0),
|
|
1186
|
+
e.value.style.chart.bars.gradient.show ? (s(), n("defs", Ao, [
|
|
1187
|
+
(s(!0), n(x, null, w(z.value, (t, o) => (s(), n("linearGradient", {
|
|
1184
1188
|
id: `gradient_${t.id}`,
|
|
1185
1189
|
x1: "0%",
|
|
1186
1190
|
y1: "0%",
|
|
@@ -1190,16 +1194,16 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1190
1194
|
te("stop", {
|
|
1191
1195
|
offset: "0%",
|
|
1192
1196
|
"stop-color": t.color
|
|
1193
|
-
}, null, 8,
|
|
1197
|
+
}, null, 8, zo),
|
|
1194
1198
|
te("stop", {
|
|
1195
1199
|
offset: "61.8%",
|
|
1196
|
-
"stop-color": m(
|
|
1197
|
-
}, null, 8,
|
|
1200
|
+
"stop-color": m(Zl)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
1201
|
+
}, null, 8, So),
|
|
1198
1202
|
te("stop", {
|
|
1199
1203
|
offset: "100%",
|
|
1200
1204
|
"stop-color": t.color
|
|
1201
|
-
}, null, 8,
|
|
1202
|
-
], 8,
|
|
1205
|
+
}, null, 8, _o)
|
|
1206
|
+
], 8, Lo))), 256))
|
|
1203
1207
|
])) : y("", !0),
|
|
1204
1208
|
e.value.style.chart.grid.frame.show ? (s(), n("rect", {
|
|
1205
1209
|
key: 2,
|
|
@@ -1214,7 +1218,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1214
1218
|
"stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
|
|
1215
1219
|
"stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
|
|
1216
1220
|
"stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
|
|
1217
|
-
}, null, 8,
|
|
1221
|
+
}, null, 8, Mo)) : y("", !0),
|
|
1218
1222
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), n(x, { key: 3 }, w(Y.value, (t, o) => (s(), n("line", {
|
|
1219
1223
|
x1: u.value.left,
|
|
1220
1224
|
x2: u.value.right,
|
|
@@ -1224,7 +1228,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1224
1228
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1225
1229
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1226
1230
|
"stroke-linecap": "round"
|
|
1227
|
-
}, null, 8,
|
|
1231
|
+
}, null, 8, To))), 256)) : y("", !0),
|
|
1228
1232
|
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), n(x, { key: 4 }, w(h.value.end - h.value.start + 1, (t, o) => (s(), n("line", {
|
|
1229
1233
|
x1: u.value.left,
|
|
1230
1234
|
x2: u.value.right,
|
|
@@ -1234,7 +1238,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1234
1238
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
1235
1239
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
1236
1240
|
"stroke-linecap": "round"
|
|
1237
|
-
}, null, 8,
|
|
1241
|
+
}, null, 8, $o))), 256)) : y("", !0),
|
|
1238
1242
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), n(x, { key: 5 }, w(h.value.end - h.value.start + 1, (t, o) => (s(), n("line", {
|
|
1239
1243
|
x1: u.value.left + p.value * o,
|
|
1240
1244
|
x2: u.value.left + p.value * o,
|
|
@@ -1244,7 +1248,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1244
1248
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1245
1249
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1246
1250
|
"stroke-linecap": "round"
|
|
1247
|
-
}, null, 8,
|
|
1251
|
+
}, null, 8, Fo))), 256)) : y("", !0),
|
|
1248
1252
|
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (s(!0), n(x, { key: 6 }, w(Y.value, (t, o) => (s(), n("line", {
|
|
1249
1253
|
x1: t.horizontal_x,
|
|
1250
1254
|
x2: t.horizontal_x,
|
|
@@ -1254,10 +1258,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1254
1258
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
1255
1259
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
1256
1260
|
"stroke-linecap": "round"
|
|
1257
|
-
}, null, 8,
|
|
1258
|
-
(s(!0), n(x, null, w(
|
|
1259
|
-
a.$slots.pattern ? (s(), n("defs",
|
|
1260
|
-
|
|
1261
|
+
}, null, 8, Do))), 256)) : y("", !0),
|
|
1262
|
+
(s(!0), n(x, null, w(z.value, (t, o) => (s(), n("g", null, [
|
|
1263
|
+
a.$slots.pattern ? (s(), n("defs", No, [
|
|
1264
|
+
k(a.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
1261
1265
|
])) : y("", !0),
|
|
1262
1266
|
e.value.orientation === "vertical" ? (s(), n(x, { key: 1 }, [
|
|
1263
1267
|
(s(!0), n(x, null, w(t.x, (c, r) => (s(), n("rect", {
|
|
@@ -1272,8 +1276,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1272
1276
|
"stroke-linecap": "round",
|
|
1273
1277
|
"stroke-linejoin": "round",
|
|
1274
1278
|
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
|
|
1275
|
-
}, null, 10,
|
|
1276
|
-
a.$slots.pattern ? (s(), n("g",
|
|
1279
|
+
}, null, 10, Po))), 256)),
|
|
1280
|
+
a.$slots.pattern ? (s(), n("g", Oo, [
|
|
1277
1281
|
(s(!0), n(x, null, w(t.x, (c, r) => (s(), n("rect", {
|
|
1278
1282
|
x: c,
|
|
1279
1283
|
y: m(ie)(t.y[r]),
|
|
@@ -1286,7 +1290,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1286
1290
|
"stroke-linecap": "round",
|
|
1287
1291
|
"stroke-linejoin": "round",
|
|
1288
1292
|
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
|
|
1289
|
-
}, null, 10,
|
|
1293
|
+
}, null, 10, Eo))), 256))
|
|
1290
1294
|
])) : y("", !0)
|
|
1291
1295
|
], 64)) : (s(), n(x, { key: 2 }, [
|
|
1292
1296
|
(s(!0), n(x, null, w(t.horizontal_x, (c, r) => (s(), n("rect", {
|
|
@@ -1301,8 +1305,8 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1301
1305
|
"stroke-linecap": "round",
|
|
1302
1306
|
"stroke-linejoin": "round",
|
|
1303
1307
|
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
|
|
1304
|
-
}, null, 10,
|
|
1305
|
-
a.$slots.pattern ? (s(), n("g",
|
|
1308
|
+
}, null, 10, Ro))), 256)),
|
|
1309
|
+
a.$slots.pattern ? (s(), n("g", Io, [
|
|
1306
1310
|
(s(!0), n(x, null, w(t.horizontal_x, (c, r) => (s(), n("rect", {
|
|
1307
1311
|
x: m(ie)(c, u.value.left),
|
|
1308
1312
|
y: t.horizontal_y[r] < 0 ? 0 : t.horizontal_y[r],
|
|
@@ -1315,7 +1319,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1315
1319
|
"stroke-linecap": "round",
|
|
1316
1320
|
"stroke-linejoin": "round",
|
|
1317
1321
|
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
|
|
1318
|
-
}, null, 10,
|
|
1322
|
+
}, null, 10, Bo))), 256))
|
|
1319
1323
|
])) : y("", !0)
|
|
1320
1324
|
], 64))
|
|
1321
1325
|
]))), 256)),
|
|
@@ -1329,7 +1333,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1329
1333
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
1330
1334
|
"stroke-linecap": "round",
|
|
1331
1335
|
"stroke-linejoin": "round"
|
|
1332
|
-
}, null, 8,
|
|
1336
|
+
}, null, 8, Vo)) : y("", !0),
|
|
1333
1337
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), n("line", {
|
|
1334
1338
|
key: 8,
|
|
1335
1339
|
x1: u.value.left,
|
|
@@ -1340,7 +1344,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1340
1344
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
1341
1345
|
"stroke-linecap": "round",
|
|
1342
1346
|
"stroke-linejoin": "round"
|
|
1343
|
-
}, null, 8,
|
|
1347
|
+
}, null, 8, Uo)) : y("", !0),
|
|
1344
1348
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), n("text", {
|
|
1345
1349
|
key: 9,
|
|
1346
1350
|
ref_key: "xAxisLabel",
|
|
@@ -1351,7 +1355,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1351
1355
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
1352
1356
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
1353
1357
|
"text-anchor": "middle"
|
|
1354
|
-
}, B(e.value.style.chart.grid.x.axisName.text), 9,
|
|
1358
|
+
}, B(e.value.style.chart.grid.x.axisName.text), 9, Ho)) : y("", !0),
|
|
1355
1359
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), n("text", {
|
|
1356
1360
|
key: 10,
|
|
1357
1361
|
ref_key: "yAxisLabel",
|
|
@@ -1361,9 +1365,9 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1361
1365
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
1362
1366
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
1363
1367
|
"text-anchor": "middle"
|
|
1364
|
-
}, B(e.value.style.chart.grid.y.axisName.text), 9,
|
|
1368
|
+
}, B(e.value.style.chart.grid.y.axisName.text), 9, Xo)) : y("", !0),
|
|
1365
1369
|
T.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), n(x, { key: 11 }, [
|
|
1366
|
-
(s(!0), n(x, null, w(
|
|
1370
|
+
(s(!0), n(x, null, w(z.value, (t, o) => (s(), n("g", null, [
|
|
1367
1371
|
(s(!0), n(x, null, w(t.x, (c, r) => (s(), n(x, null, [
|
|
1368
1372
|
Qt(t.series[r], t.proportions[r]) ? (s(), n("text", {
|
|
1369
1373
|
key: 0,
|
|
@@ -1373,29 +1377,29 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1373
1377
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(fa)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1374
1378
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1375
1379
|
"text-anchor": "middle"
|
|
1376
|
-
}, B(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Vt(t.proportions[r] * 100, t, o, r) : Oe(t.series[r], t, o, r, t.signedSeries[r])), 9,
|
|
1380
|
+
}, B(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Vt(t.proportions[r] * 100, t, o, r) : Oe(t.series[r], t, o, r, t.signedSeries[r])), 9, Yo)) : y("", !0)
|
|
1377
1381
|
], 64))), 256))
|
|
1378
1382
|
]))), 256)),
|
|
1379
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
1383
|
+
e.value.style.chart.bars.totalValues.show && z.value.length > 1 ? (s(), n("g", {
|
|
1380
1384
|
key: 0,
|
|
1381
1385
|
ref_key: "sumTop",
|
|
1382
|
-
ref:
|
|
1386
|
+
ref: Ya
|
|
1383
1387
|
}, [
|
|
1384
1388
|
(s(!0), n(x, null, w(Bt.value, (t, o) => (s(), n(x, null, [
|
|
1385
1389
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
1386
1390
|
key: 0,
|
|
1387
1391
|
x: u.value.left + p.value * o + p.value / 2,
|
|
1388
|
-
y:
|
|
1392
|
+
y: kl(o),
|
|
1389
1393
|
"text-anchor": "middle",
|
|
1390
1394
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1391
1395
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1392
1396
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1393
|
-
}, B(Oe(t.value, t, o, t.sign)), 9,
|
|
1397
|
+
}, B(Oe(t.value, t, o, t.sign)), 9, Wo)) : y("", !0)
|
|
1394
1398
|
], 64))), 256))
|
|
1395
1399
|
], 512)) : y("", !0)
|
|
1396
1400
|
], 64)) : y("", !0),
|
|
1397
1401
|
T.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), n(x, { key: 12 }, [
|
|
1398
|
-
(s(!0), n(x, null, w(
|
|
1402
|
+
(s(!0), n(x, null, w(z.value, (t, o) => (s(), n("g", null, [
|
|
1399
1403
|
(s(!0), n(x, null, w(t.horizontal_x, (c, r) => (s(), n(x, null, [
|
|
1400
1404
|
Qt(t.series[r], t.proportions[r]) ? (s(), n("text", {
|
|
1401
1405
|
key: 0,
|
|
@@ -1405,10 +1409,10 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1405
1409
|
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(fa)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1406
1410
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1407
1411
|
"text-anchor": "middle"
|
|
1408
|
-
}, B(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Vt(t.proportions[r] * 100, t, o, r) : Oe(t.series[r], t, o, r, t.signedSeries[r])), 9,
|
|
1412
|
+
}, B(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Vt(t.proportions[r] * 100, t, o, r) : Oe(t.series[r], t, o, r, t.signedSeries[r])), 9, qo)) : y("", !0)
|
|
1409
1413
|
], 64))), 256))
|
|
1410
1414
|
]))), 256)),
|
|
1411
|
-
e.value.style.chart.bars.totalValues.show &&
|
|
1415
|
+
e.value.style.chart.bars.totalValues.show && z.value.length > 1 ? (s(), n("g", {
|
|
1412
1416
|
key: 0,
|
|
1413
1417
|
ref_key: "sumRight",
|
|
1414
1418
|
ref: Qe
|
|
@@ -1416,13 +1420,13 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1416
1420
|
(s(!0), n(x, null, w(Bt.value, (t, o) => (s(), n(x, null, [
|
|
1417
1421
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (s(), n("text", {
|
|
1418
1422
|
key: 0,
|
|
1419
|
-
x:
|
|
1423
|
+
x: wl(o),
|
|
1420
1424
|
y: u.value.top + p.value * o + p.value / 2 + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1421
1425
|
"text-anchor": "start",
|
|
1422
1426
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1423
1427
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1424
1428
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1425
|
-
}, B(Oe(t.value, t, o, t.sign)), 9,
|
|
1429
|
+
}, B(Oe(t.value, t, o, t.sign)), 9, Go)) : y("", !0)
|
|
1426
1430
|
], 64))), 256))
|
|
1427
1431
|
], 512)) : y("", !0)
|
|
1428
1432
|
], 64)) : y("", !0),
|
|
@@ -1438,7 +1442,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1438
1442
|
y2: t.y,
|
|
1439
1443
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1440
1444
|
"stroke-width": 1
|
|
1441
|
-
}, null, 8,
|
|
1445
|
+
}, null, 8, Jo))), 256)),
|
|
1442
1446
|
(s(!0), n(x, null, w(Y.value, (t, o) => (s(), n("text", {
|
|
1443
1447
|
x: t.x,
|
|
1444
1448
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -1456,7 +1460,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1456
1460
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1457
1461
|
}),
|
|
1458
1462
|
{ datapoint: t }
|
|
1459
|
-
)), 9,
|
|
1463
|
+
)), 9, Zo))), 256))
|
|
1460
1464
|
], 512)) : y("", !0),
|
|
1461
1465
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), n("g", {
|
|
1462
1466
|
key: 14,
|
|
@@ -1471,7 +1475,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1471
1475
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1472
1476
|
"stroke-width": 1,
|
|
1473
1477
|
"stroke-linecap": "round"
|
|
1474
|
-
}, null, 8,
|
|
1478
|
+
}, null, 8, Qo))), 256)),
|
|
1475
1479
|
(s(!0), n(x, null, w(Y.value, (t, o) => (s(), n("text", {
|
|
1476
1480
|
class: "vue-data-ui-time-label",
|
|
1477
1481
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1489,16 +1493,16 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1489
1493
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1490
1494
|
}),
|
|
1491
1495
|
{ datapoint: t }
|
|
1492
|
-
)), 9,
|
|
1496
|
+
)), 9, Ko))), 256))
|
|
1493
1497
|
], 512)) : y("", !0),
|
|
1494
1498
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(), n("g", {
|
|
1495
1499
|
key: 15,
|
|
1496
1500
|
ref_key: "timeLabelsEls",
|
|
1497
1501
|
ref: re
|
|
1498
1502
|
}, [
|
|
1499
|
-
a.$slots["time-label"] ? (s(), n("g",
|
|
1503
|
+
a.$slots["time-label"] ? (s(), n("g", jo, [
|
|
1500
1504
|
(s(!0), n(x, null, w(Et.value, (t, o) => (s(), n("g", null, [
|
|
1501
|
-
|
|
1505
|
+
k(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
1502
1506
|
x: u.value.left + p.value * o + p.value / 2,
|
|
1503
1507
|
y: u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1504
1508
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1510,7 +1514,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1510
1514
|
show: !0
|
|
1511
1515
|
}), void 0, !0)
|
|
1512
1516
|
]))), 256))
|
|
1513
|
-
])) : (s(), n("g",
|
|
1517
|
+
])) : (s(), n("g", er, [
|
|
1514
1518
|
(s(!0), n(x, null, w(Et.value, (t, o) => (s(), n("g", null, [
|
|
1515
1519
|
String(t.text).includes(`
|
|
1516
1520
|
`) ? (s(), n("text", {
|
|
@@ -1526,7 +1530,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1526
1530
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1527
1531
|
`,
|
|
1528
1532
|
style: { cursor: "pointer" },
|
|
1529
|
-
innerHTML: m(
|
|
1533
|
+
innerHTML: m(Ql)({
|
|
1530
1534
|
content: String(t.text),
|
|
1531
1535
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1532
1536
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1534,7 +1538,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1534
1538
|
y: 0
|
|
1535
1539
|
}),
|
|
1536
1540
|
onClick: () => Ie(t, o)
|
|
1537
|
-
}, null, 8,
|
|
1541
|
+
}, null, 8, ar)) : (s(), n("text", {
|
|
1538
1542
|
class: "vue-data-ui-time-label",
|
|
1539
1543
|
key: o,
|
|
1540
1544
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1544,7 +1548,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1544
1548
|
transform: `translate(${u.value.left + p.value * o + p.value / 2}, ${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1545
1549
|
style: { cursor: "pointer" },
|
|
1546
1550
|
onClick: () => Ie(t, o)
|
|
1547
|
-
}, B(t.text), 9,
|
|
1551
|
+
}, B(t.text), 9, tr))
|
|
1548
1552
|
]))), 256))
|
|
1549
1553
|
]))
|
|
1550
1554
|
], 512)) : y("", !0),
|
|
@@ -1553,9 +1557,9 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1553
1557
|
ref_key: "timeLabelsEls",
|
|
1554
1558
|
ref: re
|
|
1555
1559
|
}, [
|
|
1556
|
-
a.$slots["time-label"] ? (s(), n("g",
|
|
1560
|
+
a.$slots["time-label"] ? (s(), n("g", lr, [
|
|
1557
1561
|
(s(!0), n(x, null, w(O.value, (t, o) => (s(), n("g", null, [
|
|
1558
|
-
|
|
1562
|
+
k(a.$slots, "time-label", Me({ ref_for: !0 }, {
|
|
1559
1563
|
x: u.value.left - 8,
|
|
1560
1564
|
y: u.value.top + p.value * o + p.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1561
1565
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
@@ -1567,7 +1571,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1567
1571
|
show: !0
|
|
1568
1572
|
}), void 0, !0)
|
|
1569
1573
|
]))), 256))
|
|
1570
|
-
])) : (s(), n("g",
|
|
1574
|
+
])) : (s(), n("g", or, [
|
|
1571
1575
|
(s(!0), n(x, null, w(O.value, (t, o) => (s(), n("g", null, [
|
|
1572
1576
|
String(t.text).includes(`
|
|
1573
1577
|
`) ? (s(), n("text", {
|
|
@@ -1580,14 +1584,14 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1580
1584
|
y: u.value.top + p.value * o + p.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1581
1585
|
style: { cursor: "pointer" },
|
|
1582
1586
|
onClick: () => Ie(t, o),
|
|
1583
|
-
innerHTML: m(
|
|
1587
|
+
innerHTML: m(Kl)({
|
|
1584
1588
|
content: String(t.text),
|
|
1585
1589
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1586
1590
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1587
1591
|
x: u.value.left - 8,
|
|
1588
1592
|
y: 0
|
|
1589
1593
|
})
|
|
1590
|
-
}, null, 8,
|
|
1594
|
+
}, null, 8, sr)) : (s(), n("text", {
|
|
1591
1595
|
key: 0,
|
|
1592
1596
|
"text-anchor": "end",
|
|
1593
1597
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1599,7 +1603,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1599
1603
|
cursor: "pointer"
|
|
1600
1604
|
},
|
|
1601
1605
|
onClick: () => Ie(t, o)
|
|
1602
|
-
}, B(t.text), 9,
|
|
1606
|
+
}, B(t.text), 9, rr))
|
|
1603
1607
|
]))), 256))
|
|
1604
1608
|
]))
|
|
1605
1609
|
], 512)) : y("", !0),
|
|
@@ -1613,7 +1617,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1613
1617
|
onMouseleave: () => Ht(o),
|
|
1614
1618
|
fill: o === G.value || o === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1615
1619
|
style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1616
|
-
}, null, 44,
|
|
1620
|
+
}, null, 44, nr))), 256)) : y("", !0),
|
|
1617
1621
|
T.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), n(x, { key: 18 }, w(h.value.end - h.value.start, (t, o) => (s(), n("rect", {
|
|
1618
1622
|
x: u.value.left,
|
|
1619
1623
|
y: u.value.top + o * p.value,
|
|
@@ -1624,26 +1628,26 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1624
1628
|
onMouseleave: () => Ht(o),
|
|
1625
1629
|
fill: o === G.value || o === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1626
1630
|
style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1627
|
-
}, null, 44,
|
|
1628
|
-
Nt.value ? (s(), n("rect", Me({ key: 19 },
|
|
1631
|
+
}, null, 44, ir))), 256)) : y("", !0),
|
|
1632
|
+
Nt.value ? (s(), n("rect", Me({ key: 19 }, ja.value, {
|
|
1629
1633
|
"data-start": h.value.start,
|
|
1630
1634
|
"data-end": h.value.end
|
|
1631
|
-
}), null, 16,
|
|
1632
|
-
|
|
1635
|
+
}), null, 16, ur)) : y("", !0),
|
|
1636
|
+
k(a.$slots, "svg", {
|
|
1633
1637
|
svg: {
|
|
1634
1638
|
drawingArea: u.value,
|
|
1635
|
-
data:
|
|
1639
|
+
data: z.value
|
|
1636
1640
|
}
|
|
1637
1641
|
}, void 0, !0)
|
|
1638
|
-
], 14,
|
|
1639
|
-
a.$slots.watermark ? (s(), n("div",
|
|
1640
|
-
|
|
1642
|
+
], 14, ko)),
|
|
1643
|
+
a.$slots.watermark ? (s(), n("div", cr, [
|
|
1644
|
+
k(a.$slots, "watermark", U(H({ isPrinting: m(_t) || m(Mt) })), void 0, !0)
|
|
1641
1645
|
])) : y("", !0),
|
|
1642
|
-
e.value.style.chart.zoom.show && D.value > 6 && ye.value && ta.value ? (s(), ee(
|
|
1646
|
+
e.value.style.chart.zoom.show && D.value > 6 && ye.value && ta.value ? (s(), ee(mo, {
|
|
1643
1647
|
key: 4,
|
|
1644
1648
|
ref_key: "chartSlicer",
|
|
1645
1649
|
ref: fe,
|
|
1646
|
-
allMinimaps:
|
|
1650
|
+
allMinimaps: al.value,
|
|
1647
1651
|
background: e.value.style.chart.zoom.color,
|
|
1648
1652
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1649
1653
|
customFormat: e.value.style.chart.zoom.customFormat,
|
|
@@ -1674,7 +1678,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1674
1678
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Xe.dataset.map((t) => t.series.length)),
|
|
1675
1679
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1676
1680
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1677
|
-
selectedSeries:
|
|
1681
|
+
selectedSeries: rl.value,
|
|
1678
1682
|
smoothMinimap: !1,
|
|
1679
1683
|
start: h.value.start,
|
|
1680
1684
|
textColor: e.value.style.chart.color,
|
|
@@ -1683,26 +1687,26 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1683
1687
|
valueEnd: h.value.end,
|
|
1684
1688
|
valueStart: h.value.start,
|
|
1685
1689
|
verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
|
|
1686
|
-
"onUpdate:end":
|
|
1687
|
-
"onUpdate:start":
|
|
1688
|
-
onTrapMouse:
|
|
1690
|
+
"onUpdate:end": xl,
|
|
1691
|
+
"onUpdate:start": pl,
|
|
1692
|
+
onTrapMouse: el,
|
|
1689
1693
|
onReset: Ot,
|
|
1690
1694
|
onFutureEnd: l[0] || (l[0] = (t) => Pt("end", t)),
|
|
1691
1695
|
onFutureStart: l[1] || (l[1] = (t) => Pt("start", t))
|
|
1692
1696
|
}, {
|
|
1693
|
-
"reset-action":
|
|
1694
|
-
|
|
1697
|
+
"reset-action": A(({ reset: t }) => [
|
|
1698
|
+
k(a.$slots, "reset-action", U(H({ reset: t })), void 0, !0)
|
|
1695
1699
|
]),
|
|
1696
|
-
slotMap:
|
|
1697
|
-
(s(!0), n(x, null, w(
|
|
1700
|
+
slotMap: A(({ width: t, height: o, unitW: c }) => [
|
|
1701
|
+
(s(!0), n(x, null, w(z.value, (r) => (s(), n("g", {
|
|
1698
1702
|
key: r.id
|
|
1699
1703
|
}, [
|
|
1700
|
-
(s(!0), n(x, null, w(r.xMinimap({ left: 0, unitW: c }), (f,
|
|
1701
|
-
key:
|
|
1702
|
-
x:
|
|
1703
|
-
y: Math.max(0, Math.min(o, r.yMinimap({ minimapH: o })[
|
|
1704
|
-
height: r.heightMinimap({ minimapH: o })[
|
|
1705
|
-
width: [0, D.value - 1].includes(
|
|
1704
|
+
(s(!0), n(x, null, w(r.xMinimap({ left: 0, unitW: c }), (f, L) => (s(), n("rect", {
|
|
1705
|
+
key: L,
|
|
1706
|
+
x: L === 0 ? f - c * (e.value.style.chart.bars.gapRatio / 4) : f - c / 2,
|
|
1707
|
+
y: Math.max(0, Math.min(o, r.yMinimap({ minimapH: o })[L])),
|
|
1708
|
+
height: r.heightMinimap({ minimapH: o })[L],
|
|
1709
|
+
width: [0, D.value - 1].includes(L) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
1706
1710
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${r.id})` : r.color,
|
|
1707
1711
|
stroke: e.value.style.chart.backgroundColor,
|
|
1708
1712
|
"stroke-width": 0.5,
|
|
@@ -1710,14 +1714,14 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1710
1714
|
"stroke-linecap": "round",
|
|
1711
1715
|
"stroke-linejoin": "round",
|
|
1712
1716
|
style: ne({
|
|
1713
|
-
opacity:
|
|
1717
|
+
opacity: L >= R.value.start && L <= R.value.end ? 1 : 0.62
|
|
1714
1718
|
})
|
|
1715
|
-
}, null, 12,
|
|
1719
|
+
}, null, 12, hr))), 128))
|
|
1716
1720
|
]))), 128))
|
|
1717
1721
|
]),
|
|
1718
1722
|
_: 3
|
|
1719
1723
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : y("", !0),
|
|
1720
|
-
_e(m(
|
|
1724
|
+
_e(m($a), {
|
|
1721
1725
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1722
1726
|
show: T.value.showTooltip && Ye.value,
|
|
1723
1727
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1738,18 +1742,18 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1738
1742
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1739
1743
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1740
1744
|
}, {
|
|
1741
|
-
"tooltip-before":
|
|
1742
|
-
|
|
1745
|
+
"tooltip-before": A(() => [
|
|
1746
|
+
k(a.$slots, "tooltip-before", U(H({ ...We.value })), void 0, !0)
|
|
1743
1747
|
]),
|
|
1744
|
-
"tooltip-after":
|
|
1745
|
-
|
|
1748
|
+
"tooltip-after": A(() => [
|
|
1749
|
+
k(a.$slots, "tooltip-after", U(H({ ...We.value })), void 0, !0)
|
|
1746
1750
|
]),
|
|
1747
1751
|
_: 3
|
|
1748
1752
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1749
1753
|
te("div", {
|
|
1750
1754
|
id: `legend-bottom-${V.value}`
|
|
1751
|
-
}, null, 8,
|
|
1752
|
-
wt.value ? (s(), ee(
|
|
1755
|
+
}, null, 8, vr),
|
|
1756
|
+
wt.value ? (s(), ee(Bl, {
|
|
1753
1757
|
key: 5,
|
|
1754
1758
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${V.value}` : `#legend-bottom-${V.value}`
|
|
1755
1759
|
}, [
|
|
@@ -1757,25 +1761,25 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1757
1761
|
ref_key: "chartLegend",
|
|
1758
1762
|
ref: xt
|
|
1759
1763
|
}, [
|
|
1760
|
-
e.value.style.chart.legend.show ? (s(), ee(
|
|
1764
|
+
e.value.style.chart.legend.show ? (s(), ee(fo, {
|
|
1761
1765
|
key: 0,
|
|
1762
1766
|
legendSet: ut.value,
|
|
1763
|
-
config:
|
|
1767
|
+
config: hl.value,
|
|
1764
1768
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1765
1769
|
}, bt({
|
|
1766
|
-
item:
|
|
1770
|
+
item: A(({ legend: t }) => [
|
|
1767
1771
|
m(xe) ? y("", !0) : (s(), n("div", {
|
|
1768
1772
|
key: 0,
|
|
1769
1773
|
onClick: (o) => t.segregate(),
|
|
1770
1774
|
style: ne(`opacity:${F.value.includes(t.id) ? 0.5 : 1}`)
|
|
1771
|
-
}, B(t.name), 13,
|
|
1775
|
+
}, B(t.name), 13, dr))
|
|
1772
1776
|
]),
|
|
1773
1777
|
_: 2
|
|
1774
1778
|
}, [
|
|
1775
1779
|
a.$slots.pattern ? {
|
|
1776
1780
|
name: "legend-pattern",
|
|
1777
|
-
fn:
|
|
1778
|
-
_e(
|
|
1781
|
+
fn: A(({ legend: t, index: o }) => [
|
|
1782
|
+
_e(yo, {
|
|
1779
1783
|
shape: t.shape,
|
|
1780
1784
|
radius: 30,
|
|
1781
1785
|
stroke: "none",
|
|
@@ -1785,7 +1789,7 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1785
1789
|
]),
|
|
1786
1790
|
key: "0"
|
|
1787
1791
|
} : void 0
|
|
1788
|
-
]), 1032, ["legendSet", "config"])) :
|
|
1792
|
+
]), 1032, ["legendSet", "config"])) : k(a.$slots, "legend", {
|
|
1789
1793
|
key: 1,
|
|
1790
1794
|
legend: ut.value
|
|
1791
1795
|
}, void 0, !0)
|
|
@@ -1794,30 +1798,30 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1794
1798
|
a.$slots.source ? (s(), n("div", {
|
|
1795
1799
|
key: 6,
|
|
1796
1800
|
ref_key: "source",
|
|
1797
|
-
ref:
|
|
1801
|
+
ref: Ct,
|
|
1798
1802
|
dir: "auto"
|
|
1799
1803
|
}, [
|
|
1800
|
-
|
|
1804
|
+
k(a.$slots, "source", {}, void 0, !0)
|
|
1801
1805
|
], 512)) : y("", !0),
|
|
1802
|
-
ye.value && e.value.userOptions.buttons.table ? (s(), ee(
|
|
1806
|
+
ye.value && e.value.userOptions.buttons.table ? (s(), ee(Vl(Ae.value.component), Me({ key: 7 }, Ae.value.props, {
|
|
1803
1807
|
ref_key: "tableUnit",
|
|
1804
1808
|
ref: pe,
|
|
1805
1809
|
onClose: Kt
|
|
1806
1810
|
}), bt({
|
|
1807
|
-
content:
|
|
1808
|
-
_e(m(
|
|
1811
|
+
content: A(() => [
|
|
1812
|
+
_e(m(Na), {
|
|
1809
1813
|
colNames: Ee.value.colNames,
|
|
1810
1814
|
head: Ee.value.head,
|
|
1811
1815
|
body: Ee.value.body,
|
|
1812
1816
|
config: Ee.value.config,
|
|
1813
|
-
title: e.value.table.useDialog ? "" :
|
|
1817
|
+
title: e.value.table.useDialog ? "" : Ae.value.title,
|
|
1814
1818
|
withCloseButton: !e.value.table.useDialog,
|
|
1815
1819
|
onClose: Kt
|
|
1816
1820
|
}, {
|
|
1817
|
-
th:
|
|
1818
|
-
te("div", { innerHTML: t }, null, 8,
|
|
1821
|
+
th: A(({ th: t }) => [
|
|
1822
|
+
te("div", { innerHTML: t }, null, 8, gr)
|
|
1819
1823
|
]),
|
|
1820
|
-
td:
|
|
1824
|
+
td: A(({ td: t }) => [
|
|
1821
1825
|
ha(B(isNaN(Number(t)) ? t : m(ae)({
|
|
1822
1826
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1823
1827
|
v: t,
|
|
@@ -1832,37 +1836,37 @@ const xa = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td:
|
|
|
1832
1836
|
}, [
|
|
1833
1837
|
e.value.table.useDialog ? {
|
|
1834
1838
|
name: "title",
|
|
1835
|
-
fn:
|
|
1836
|
-
ha(B(
|
|
1839
|
+
fn: A(() => [
|
|
1840
|
+
ha(B(Ae.value.title), 1)
|
|
1837
1841
|
]),
|
|
1838
1842
|
key: "0"
|
|
1839
1843
|
} : void 0,
|
|
1840
1844
|
e.value.table.useDialog ? {
|
|
1841
1845
|
name: "actions",
|
|
1842
|
-
fn:
|
|
1846
|
+
fn: A(() => [
|
|
1843
1847
|
te("button", {
|
|
1844
1848
|
tabindex: "0",
|
|
1845
1849
|
class: "vue-ui-user-options-button",
|
|
1846
1850
|
onClick: l[3] || (l[3] = (t) => nt(e.value.userOptions.callbacks.csv))
|
|
1847
1851
|
}, [
|
|
1848
|
-
_e(m(
|
|
1852
|
+
_e(m(Fa), {
|
|
1849
1853
|
name: "excel",
|
|
1850
|
-
stroke:
|
|
1854
|
+
stroke: Ae.value.props.color
|
|
1851
1855
|
}, null, 8, ["stroke"])
|
|
1852
1856
|
])
|
|
1853
1857
|
]),
|
|
1854
1858
|
key: "1"
|
|
1855
1859
|
} : void 0
|
|
1856
1860
|
]), 1040)) : y("", !0),
|
|
1857
|
-
m(xe) ? (s(), ee(
|
|
1858
|
-
], 46,
|
|
1861
|
+
m(xe) ? (s(), ee(ro, { key: 8 })) : y("", !0)
|
|
1862
|
+
], 46, xo));
|
|
1859
1863
|
}
|
|
1860
|
-
},
|
|
1864
|
+
}, yr = /* @__PURE__ */ po(br, [["__scopeId", "data-v-66450d13"]]), Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1861
1865
|
__proto__: null,
|
|
1862
|
-
default:
|
|
1866
|
+
default: yr
|
|
1863
1867
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1864
1868
|
export {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1869
|
+
Or as a,
|
|
1870
|
+
Er as b,
|
|
1871
|
+
yr as v
|
|
1868
1872
|
};
|