vue-data-ui 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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-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-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-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,1442 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as Ia, computed as m, ref as y, onMounted as Rt, toRefs as Na, watch as ze, shallowRef as It, onBeforeUnmount as Nt, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ge, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as p, mergeProps as Ce, toDisplayString as T, Teleport as Oa, resolveDynamicComponent as Pa, createTextVNode as Pt } from "vue";
|
|
2
|
-
import { u as Va, a as Vt } from "./useNestedProp-Ce3PwN8T.js";
|
|
3
|
-
import { c as Dt, t as Da, b as Ea, p as Se, B as se, e as Fa, o as Et, f as Ft, g as Ua, h as Ha, a8 as _e, a9 as Ut, C as Ht, X as Ba, m as Wa, a4 as $e, E as Bt, a as Te, d as ee, L as Ya, H as Xa, z as Wt, x as Ga, y as Ja, A as qa } from "./lib-CEjkWSLj.js";
|
|
4
|
-
import { t as Je, u as Za } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as Ka } from "./usePrinter-DJ1iH-F_.js";
|
|
6
|
-
import { u as Qa, B as ja } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as el } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as tl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
-
import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
-
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import { u as Yt, a as sl } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
12
|
-
import rl from "./img-J2dLIr8Y.js";
|
|
13
|
-
import ol from "./Title-Camz1Lce.js";
|
|
14
|
-
import { _ as nl } from "./Shape-BceHSLHf.js";
|
|
15
|
-
import { t as il } from "./themes-Dw-dDudK.js";
|
|
16
|
-
import ul from "./Legend-By4rru90.js";
|
|
17
|
-
import { S as cl } from "./Slicer-Znzt0gSE.js";
|
|
18
|
-
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
-
const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "width", "height"], bl = { key: 1 }, fl = ["id"], ml = ["stop-color"], pl = ["stop-color"], xl = ["stop-color"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Cl = { key: 0 }, Sl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], _l = { key: 0 }, $l = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ml = { key: 0 }, Al = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nl = ["x", "y", "font-size", "fill", "font-weight"], Ol = ["transform", "font-size", "fill", "font-weight"], Pl = ["x", "y", "font-size", "fill", "font-weight"], Vl = ["x", "y", "font-size", "font-weight", "fill"], Dl = ["x", "y", "font-size", "fill", "font-weight"], El = ["x", "y", "font-size", "font-weight", "fill"], Fl = ["x1", "x2", "y1", "y2", "stroke"], Ul = ["x", "y", "font-size", "font-weight", "fill"], Hl = ["x1", "x2", "y1", "y2", "stroke"], Bl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Wl = { key: 0 }, Yl = { key: 1 }, Xl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Gl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Jl = { key: 0 }, ql = { key: 1 }, Zl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Kl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ql = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], jl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], es = {
|
|
20
|
-
key: 3,
|
|
21
|
-
class: "vue-data-ui-watermark"
|
|
22
|
-
}, ts = ["id"], as = ["onClick"], ls = ["innerHTML"], ss = {
|
|
23
|
-
__name: "vue-ui-stackbar",
|
|
24
|
-
props: {
|
|
25
|
-
config: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
dataset: {
|
|
32
|
-
type: Array,
|
|
33
|
-
default() {
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
39
|
-
setup(Me, { expose: Xt, emit: Gt }) {
|
|
40
|
-
const Jt = H(() => import("./Tooltip-VOcQEHa4.js")), qt = H(() => import("./BaseIcon-eZbszQrv.js")), Zt = H(() => import("./vue-ui-accordion-VTP418mC.js")), Kt = H(() => import("./DataTable-yAMEyP6y.js")), Qt = H(() => import("./PenAndPaper-Bo-lMUik.js")), jt = H(() => import("./UserOptions-CSja1SGU.js")), ea = H(() => import("./PackageVersion-r-Q1R3nV.js")), ta = H(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_stackbar: aa } = Va(), la = Ia(), f = Me, Ae = Gt, ve = m({
|
|
41
|
-
get() {
|
|
42
|
-
return !!f.dataset && f.dataset.length;
|
|
43
|
-
},
|
|
44
|
-
set(a) {
|
|
45
|
-
return a;
|
|
46
|
-
}
|
|
47
|
-
}), O = y(null), M = y(Dt()), Re = y(!1), Ie = y(null), Ne = y(""), _ = y([]), qe = y(0), Ze = y(null), Ke = y(null), Qe = y(null), je = y(null), et = y(0), re = y(!1), de = y(null), X = y(!1), tt = y(0), sa = y(0), ra = y(0), at = y(null), lt = y(!1), oe = y(null), Oe = y(null), Pe = y(null), Ve = y(null), G = y(null), J = y(null), oa = y(null), st = y(null);
|
|
48
|
-
Rt(() => {
|
|
49
|
-
lt.value = !0, He();
|
|
50
|
-
});
|
|
51
|
-
const e = y(Fe()), { loading: ne, FINAL_DATASET: ge, manualLoading: ye } = Qa({
|
|
52
|
-
...Na(f),
|
|
53
|
-
FINAL_CONFIG: e,
|
|
54
|
-
prepareConfig: Fe,
|
|
55
|
-
callback: () => {
|
|
56
|
-
Promise.resolve().then(async () => {
|
|
57
|
-
await Be();
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
skeletonDataset: [
|
|
61
|
-
{
|
|
62
|
-
name: "",
|
|
63
|
-
series: [2, 3, 5, 8, 13, 21],
|
|
64
|
-
color: "#BABABA"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "",
|
|
68
|
-
series: [1, 2, 3, 5, 8, 13],
|
|
69
|
-
color: "#CACACA"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
skeletonConfig: Da({
|
|
73
|
-
defaultConfig: e.value,
|
|
74
|
-
userConfig: {
|
|
75
|
-
userOptions: { show: !1 },
|
|
76
|
-
useCssAnimation: !1,
|
|
77
|
-
table: { show: !1 },
|
|
78
|
-
tooltip: { show: !1 },
|
|
79
|
-
style: {
|
|
80
|
-
chart: {
|
|
81
|
-
backgroundColor: "#99999930",
|
|
82
|
-
bars: {
|
|
83
|
-
totalValues: { show: !1 },
|
|
84
|
-
dataLabels: { show: !1 }
|
|
85
|
-
},
|
|
86
|
-
grid: {
|
|
87
|
-
scale: {
|
|
88
|
-
scaleMin: 0,
|
|
89
|
-
scaleMax: 40
|
|
90
|
-
},
|
|
91
|
-
x: {
|
|
92
|
-
axisColor: "#6A6A6A",
|
|
93
|
-
linesColor: "#6A6A6A",
|
|
94
|
-
axisName: { show: !1 },
|
|
95
|
-
timeLabels: { show: !1 }
|
|
96
|
-
},
|
|
97
|
-
y: {
|
|
98
|
-
axisColor: "#6A6A6A",
|
|
99
|
-
linesColor: "#6A6A6A",
|
|
100
|
-
axisName: { show: !1 },
|
|
101
|
-
axisLabels: { show: !1 }
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
legend: {
|
|
105
|
-
backgroundColor: "transparent"
|
|
106
|
-
},
|
|
107
|
-
padding: {
|
|
108
|
-
left: 24,
|
|
109
|
-
right: 24,
|
|
110
|
-
bottom: 12
|
|
111
|
-
},
|
|
112
|
-
zoom: {
|
|
113
|
-
show: !1,
|
|
114
|
-
startIndex: null,
|
|
115
|
-
endIndex: null
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
})
|
|
121
|
-
}), { userOptionsVisible: De, setUserOptionsVisibility: rt, keepUserOptionState: ot } = al({ config: e.value }), { svgRef: Ee } = ll({ config: e.value.style.chart.title });
|
|
122
|
-
function Fe() {
|
|
123
|
-
const a = Vt({
|
|
124
|
-
userConfig: f.config,
|
|
125
|
-
defaultConfig: aa
|
|
126
|
-
});
|
|
127
|
-
let l = {};
|
|
128
|
-
return a.theme ? l = {
|
|
129
|
-
...Vt({
|
|
130
|
-
userConfig: il.vue_ui_stackbar[a.theme] || f.config,
|
|
131
|
-
defaultConfig: a
|
|
132
|
-
}),
|
|
133
|
-
customPalette: Ea[a.theme] || Se
|
|
134
|
-
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
135
|
-
}
|
|
136
|
-
const nt = m(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), it = m(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
137
|
-
ze(() => f.config, (a) => {
|
|
138
|
-
ne.value || (e.value = Fe()), De.value = !e.value.userOptions.showOnChartHover, He(), tt.value += 1, sa.value += 1, ra.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
139
|
-
}, { deep: !0 }), ze(() => f.dataset, (a) => {
|
|
140
|
-
Array.isArray(a) && a.length > 0 && (ye.value = !1), yt();
|
|
141
|
-
}, { deep: !0 });
|
|
142
|
-
const z = y({
|
|
143
|
-
dataLabels: {
|
|
144
|
-
show: e.value.style.chart.bars.dataLabels.show
|
|
145
|
-
},
|
|
146
|
-
showTable: e.value.table.show,
|
|
147
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
148
|
-
});
|
|
149
|
-
ze(e, () => {
|
|
150
|
-
z.value = {
|
|
151
|
-
dataLabels: {
|
|
152
|
-
show: e.value.style.chart.bars.dataLabels.show
|
|
153
|
-
},
|
|
154
|
-
showTable: e.value.table.show,
|
|
155
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
156
|
-
};
|
|
157
|
-
}, { immediate: !0 });
|
|
158
|
-
const { isPrinting: ut, isImaging: ct, generatePdf: ht, generateImage: vt } = Ka({
|
|
159
|
-
elementId: `stackbar_${M.value}`,
|
|
160
|
-
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
161
|
-
options: e.value.userOptions.print
|
|
162
|
-
}), te = y({
|
|
163
|
-
width: e.value.style.chart.width,
|
|
164
|
-
height: e.value.style.chart.height,
|
|
165
|
-
paddingRatio: {
|
|
166
|
-
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
167
|
-
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
168
|
-
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
169
|
-
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
170
|
-
}
|
|
171
|
-
}), na = m(() => Fa(e.value.customPalette)), E = It(null), ae = It(null), dt = y(null);
|
|
172
|
-
Rt(() => {
|
|
173
|
-
He();
|
|
174
|
-
});
|
|
175
|
-
const Ue = m(() => !!e.value.debug);
|
|
176
|
-
function He() {
|
|
177
|
-
if (Et(f.dataset) ? (Ft({
|
|
178
|
-
componentName: "VueUiStackbar",
|
|
179
|
-
type: "dataset",
|
|
180
|
-
debug: Ue.value
|
|
181
|
-
}), ye.value = !0) : f.dataset.forEach((a, l) => {
|
|
182
|
-
Ua({
|
|
183
|
-
datasetObject: a,
|
|
184
|
-
requiredAttributes: ["name", "series"]
|
|
185
|
-
}).forEach((t) => {
|
|
186
|
-
ve.value = !1, Ft({
|
|
187
|
-
componentName: "VueUiStackbar",
|
|
188
|
-
type: "datasetSerieAttribute",
|
|
189
|
-
property: t,
|
|
190
|
-
index: l,
|
|
191
|
-
debug: Ue.value
|
|
192
|
-
}), ye.value = !0;
|
|
193
|
-
});
|
|
194
|
-
}), Et(f.dataset) || (ye.value = e.value.loading), setTimeout(() => {
|
|
195
|
-
X.value = !0;
|
|
196
|
-
}, 10), e.value.responsive) {
|
|
197
|
-
const a = Je(() => {
|
|
198
|
-
X.value = !1;
|
|
199
|
-
const { width: l, height: t } = Za({
|
|
200
|
-
chart: O.value,
|
|
201
|
-
title: e.value.style.chart.title.text ? Ze.value : null,
|
|
202
|
-
legend: e.value.style.chart.legend.show ? Ke.value : null,
|
|
203
|
-
slicer: e.value.style.chart.zoom.show && U.value > 1 ? Qe.value : null,
|
|
204
|
-
source: je.value
|
|
205
|
-
});
|
|
206
|
-
requestAnimationFrame(() => {
|
|
207
|
-
te.value.width = l, te.value.height = t - 12, clearTimeout(dt.value), dt.value = setTimeout(() => {
|
|
208
|
-
X.value = !0;
|
|
209
|
-
}, 10);
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect()), E.value = new ResizeObserver(a), ae.value = O.value.parentNode, E.value.observe(ae.value);
|
|
213
|
-
}
|
|
214
|
-
Be();
|
|
215
|
-
}
|
|
216
|
-
Nt(() => {
|
|
217
|
-
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
218
|
-
});
|
|
219
|
-
function ia() {
|
|
220
|
-
let a = 0;
|
|
221
|
-
e.value.orientation === "vertical" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
|
|
222
|
-
const u = c.getComputedTextLength();
|
|
223
|
-
return u > s ? u : s;
|
|
224
|
-
}, 0)), e.value.orientation === "horizontal" && J.value && (a = Array.from(J.value.querySelectorAll("text")).reduce((s, c) => {
|
|
225
|
-
const u = c.getComputedTextLength();
|
|
226
|
-
return u > s ? u : s;
|
|
227
|
-
}, 0));
|
|
228
|
-
const l = Ve.value ? Ve.value.getBoundingClientRect().width : 0;
|
|
229
|
-
return a + l + (l ? 24 : 0);
|
|
230
|
-
}
|
|
231
|
-
const be = y(0), fe = y(0), ua = Je((a) => {
|
|
232
|
-
be.value = a;
|
|
233
|
-
}, 100);
|
|
234
|
-
Yt({ elementRef: e.value.orientation === "vertical" ? J : G, callback: ua, attr: "height" });
|
|
235
|
-
const ca = Je((a) => {
|
|
236
|
-
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
237
|
-
}, 100);
|
|
238
|
-
Yt({ elementRef: st, callback: ca, attr: "width", earlyReturn: e.value.orientation === "vertical" }), Nt(() => {
|
|
239
|
-
be.value = 0, fe.value = 0;
|
|
240
|
-
});
|
|
241
|
-
const gt = m(() => {
|
|
242
|
-
let a = 0;
|
|
243
|
-
Pe.value && (a = Pe.value.getBBox().height);
|
|
244
|
-
let l = 0;
|
|
245
|
-
return e.value.orientation === "vertical" && J.value && (l = be.value), e.value.orientation === "horizontal" && G.value && (l = be.value), a + l;
|
|
246
|
-
}), n = m(() => {
|
|
247
|
-
const { height: a, width: l } = te.value, { right: t } = te.value.paddingRatio;
|
|
248
|
-
let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
249
|
-
e.value.style.chart.grid.y.axisLabels.show && (c = ia());
|
|
250
|
-
const u = e.value.style.chart.padding.top + s, S = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - gt.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - gt.value - s;
|
|
251
|
-
return {
|
|
252
|
-
chartHeight: a,
|
|
253
|
-
chartWidth: l,
|
|
254
|
-
top: u,
|
|
255
|
-
right: S,
|
|
256
|
-
bottom: q,
|
|
257
|
-
left: Z,
|
|
258
|
-
width: Math.max(0, K),
|
|
259
|
-
height: Math.max(0, P)
|
|
260
|
-
};
|
|
261
|
-
}), F = m(() => ge.value.map((a, l) => {
|
|
262
|
-
const t = Ha(a.color) || na.value[l] || Se[l] || Se[l % Se.length];
|
|
263
|
-
return {
|
|
264
|
-
...a,
|
|
265
|
-
// In distributed mode, all values are converted to positive
|
|
266
|
-
series: JSON.parse(JSON.stringify(a.series)).map((s) => e.value.style.chart.bars.distributed ? Math.abs(s) : s),
|
|
267
|
-
// Store signs to manage display of neg values in distributed mode
|
|
268
|
-
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
269
|
-
absoluteIndex: l,
|
|
270
|
-
id: Dt(),
|
|
271
|
-
color: t
|
|
272
|
-
};
|
|
273
|
-
})), U = m(() => Math.max(...F.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = y({
|
|
274
|
-
start: 0,
|
|
275
|
-
end: Math.max(...ge.value.map((a) => a.series.length))
|
|
276
|
-
});
|
|
277
|
-
function yt() {
|
|
278
|
-
Be();
|
|
279
|
-
}
|
|
280
|
-
async function Be() {
|
|
281
|
-
await Ot(), await Ot();
|
|
282
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = at.value, s = Math.max(...ge.value.map((c) => c.series.length));
|
|
283
|
-
h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ha(l + 1)) : (h.value.end = s, t.setEndValue(s))) : (h.value = { start: 0, end: s }, et.value += 1);
|
|
284
|
-
}
|
|
285
|
-
function ha(a) {
|
|
286
|
-
const l = Math.max(...ge.value.map((t) => t.series.length));
|
|
287
|
-
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
288
|
-
}
|
|
289
|
-
const g = m(() => {
|
|
290
|
-
let a;
|
|
291
|
-
return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
292
|
-
}), ie = m(() => _e(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), va = m(() => _e(F.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
293
|
-
...a,
|
|
294
|
-
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
295
|
-
}))).slice(h.value.start, h.value.end)), me = m(() => {
|
|
296
|
-
const a = F.value.filter((l) => !_.value.includes(l.id));
|
|
297
|
-
return {
|
|
298
|
-
positive: _e(a.map((l) => ({
|
|
299
|
-
...l,
|
|
300
|
-
series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
301
|
-
}))),
|
|
302
|
-
negative: _e(a.map((l) => ({
|
|
303
|
-
...l,
|
|
304
|
-
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
305
|
-
})))
|
|
306
|
-
};
|
|
307
|
-
}), N = m(() => {
|
|
308
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
309
|
-
return s.ticks.map((c) => ({
|
|
310
|
-
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
311
|
-
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
312
|
-
x: n.value.left - 8,
|
|
313
|
-
horizontal_zero: n.value.left + n.value.width * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
314
|
-
horizontal_x: n.value.left + n.value.width * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
315
|
-
horizontal_y: n.value.bottom - 8,
|
|
316
|
-
value: c
|
|
317
|
-
}));
|
|
318
|
-
}), $ = m(() => tl({
|
|
319
|
-
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
320
|
-
maxDatapoints: U.value,
|
|
321
|
-
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
322
|
-
start: h.value.start,
|
|
323
|
-
end: h.value.end
|
|
324
|
-
})), w = m(() => {
|
|
325
|
-
if (!ve.value && !ne.value) return [];
|
|
326
|
-
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
327
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), S = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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) : Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, 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: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Mt = N.value[0] ? N.value[0].zero : n.value.bottom, At = N.value[0] ? N.value[0].horizontal_zero : n.value.left;
|
|
328
|
-
return F.value.filter((ce) => !_.value.includes(ce.id)).map((ce) => {
|
|
329
|
-
const V = ce.series.slice(h.value.start, h.value.end), Ca = ce.signedSeries.slice(h.value.start, h.value.end), Sa = V.map((x, k) => n.value.left + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), _a = V.map((x, k) => n.value.top + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), $a = V.map((x, k) => {
|
|
330
|
-
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
331
|
-
let Q, I;
|
|
332
|
-
return x > 0 ? (I = A * R, Q = Mt - I - a[k], a[k] += I) : (I = A * R, Q = Mt + t[k], t[k] += Math.abs(I)), Q;
|
|
333
|
-
}), Ta = V.map((x, k) => {
|
|
334
|
-
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
335
|
-
let Q, I;
|
|
336
|
-
return x > 0 ? (I = Le * R, Q = At + l[k], l[k] += I) : (I = Le * R, Q = At - Math.abs(I) - s[k], s[k] += Math.abs(I)), Q;
|
|
337
|
-
}), Ma = V.map((x, k) => {
|
|
338
|
-
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
339
|
-
return x > 0 ? A * R : A * Math.abs(R);
|
|
340
|
-
}), Aa = V.map((x, k) => {
|
|
341
|
-
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
342
|
-
return x > 0 ? Le * R : Le * Math.abs(R);
|
|
343
|
-
}), Ra = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
|
|
344
|
-
return {
|
|
345
|
-
...ce,
|
|
346
|
-
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / Ra),
|
|
347
|
-
series: V,
|
|
348
|
-
signedSeries: Ca,
|
|
349
|
-
x: Sa,
|
|
350
|
-
y: $a,
|
|
351
|
-
height: Ma,
|
|
352
|
-
horizontal_width: Aa,
|
|
353
|
-
horizontal_y: _a,
|
|
354
|
-
horizontal_x: Ta
|
|
355
|
-
};
|
|
356
|
-
});
|
|
357
|
-
}), bt = m(() => va.value.map((a, l) => ({
|
|
358
|
-
value: a,
|
|
359
|
-
sign: a >= 0 ? 1 : -1
|
|
360
|
-
})));
|
|
361
|
-
function pe(a, l, t, s, c) {
|
|
362
|
-
const u = c === -1 && a >= 0 ? -a : a;
|
|
363
|
-
return Te(
|
|
364
|
-
e.value.style.chart.bars.dataLabels.formatter,
|
|
365
|
-
u,
|
|
366
|
-
ee({
|
|
367
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
368
|
-
v: u,
|
|
369
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
370
|
-
r: e.value.style.chart.bars.dataLabels.rounding
|
|
371
|
-
}),
|
|
372
|
-
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
function ft(a, l, t, s) {
|
|
376
|
-
return Te(
|
|
377
|
-
e.value.style.chart.bars.dataLabels.formatter,
|
|
378
|
-
a,
|
|
379
|
-
ee({
|
|
380
|
-
v: isNaN(a) ? 0 : a,
|
|
381
|
-
s: "%",
|
|
382
|
-
r: e.value.style.chart.bars.dataLabels.rounding
|
|
383
|
-
}),
|
|
384
|
-
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
385
|
-
);
|
|
386
|
-
}
|
|
387
|
-
function mt(a) {
|
|
388
|
-
const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
389
|
-
name: t.name,
|
|
390
|
-
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
391
|
-
proportion: t.proportions[a] || null,
|
|
392
|
-
color: t.color,
|
|
393
|
-
id: t.id
|
|
394
|
-
}));
|
|
395
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
396
|
-
}
|
|
397
|
-
function pt(a) {
|
|
398
|
-
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
399
|
-
name: l.name,
|
|
400
|
-
absoluteIndex: l.absoluteIndex,
|
|
401
|
-
value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
|
|
402
|
-
proportion: l.proportions[a] || null,
|
|
403
|
-
color: l.color,
|
|
404
|
-
id: l.id
|
|
405
|
-
}));
|
|
406
|
-
}
|
|
407
|
-
function xt(a) {
|
|
408
|
-
if (e.value.events.datapointLeave) {
|
|
409
|
-
const l = pt(a);
|
|
410
|
-
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
|
|
411
|
-
}
|
|
412
|
-
Re.value = null, de.value = null;
|
|
413
|
-
}
|
|
414
|
-
function kt(a) {
|
|
415
|
-
de.value = a, Re.value = !0;
|
|
416
|
-
const l = e.value.style.chart.tooltip.customFormat, t = pt(a);
|
|
417
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ie.value = {
|
|
418
|
-
datapoint: t,
|
|
419
|
-
seriesIndex: a,
|
|
420
|
-
config: e.value,
|
|
421
|
-
series: w.value
|
|
422
|
-
};
|
|
423
|
-
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
424
|
-
if (Wt(l) && qa(() => l({
|
|
425
|
-
seriesIndex: a,
|
|
426
|
-
datapoint: t,
|
|
427
|
-
series: w.value,
|
|
428
|
-
config: e.value
|
|
429
|
-
})))
|
|
430
|
-
Ne.value = l({
|
|
431
|
-
seriesIndex: a,
|
|
432
|
-
datapoint: t,
|
|
433
|
-
series: w.value,
|
|
434
|
-
config: e.value
|
|
435
|
-
});
|
|
436
|
-
else {
|
|
437
|
-
const {
|
|
438
|
-
showValue: c,
|
|
439
|
-
showPercentage: u,
|
|
440
|
-
borderColor: S,
|
|
441
|
-
roundingValue: q,
|
|
442
|
-
roundingPercentage: Z
|
|
443
|
-
} = e.value.style.chart.tooltip;
|
|
444
|
-
let K = "";
|
|
445
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${S};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
446
|
-
const P = [
|
|
447
|
-
c && u ? "(" : "",
|
|
448
|
-
c && u ? ")" : ""
|
|
449
|
-
];
|
|
450
|
-
t.reverse().forEach((A) => {
|
|
451
|
-
K += `
|
|
452
|
-
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
453
|
-
<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_${A.id})` : A.color}"/>${la.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
|
|
454
|
-
${A.name}${c || u ? ":" : ""} ${c ? ee({
|
|
455
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
456
|
-
v: A.value,
|
|
457
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
458
|
-
r: q
|
|
459
|
-
}) : ""} ${P[0]}${u ? ee({
|
|
460
|
-
v: isNaN(A.value / s) ? 0 : Math.abs(A.value) / s * 100,
|
|
461
|
-
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
462
|
-
s: "%",
|
|
463
|
-
r: Z
|
|
464
|
-
}) : ""}${P[1]}
|
|
465
|
-
</div>
|
|
466
|
-
`;
|
|
467
|
-
}), Ne.value = `<div>${K}</div>`;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
const da = m(() => te.value.width), ga = m(() => te.value.height);
|
|
471
|
-
sl({
|
|
472
|
-
timeLabelsEls: e.value.orientation === "vertical" ? J : G,
|
|
473
|
-
timeLabels: $,
|
|
474
|
-
slicer: h,
|
|
475
|
-
configRef: e,
|
|
476
|
-
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
477
|
-
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
478
|
-
isAutoSize: !1,
|
|
479
|
-
width: da,
|
|
480
|
-
height: ga,
|
|
481
|
-
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
482
|
-
});
|
|
483
|
-
function wt(a) {
|
|
484
|
-
re.value = a, qe.value += 1;
|
|
485
|
-
}
|
|
486
|
-
function Lt() {
|
|
487
|
-
z.value.showTable = !z.value.showTable;
|
|
488
|
-
}
|
|
489
|
-
function zt() {
|
|
490
|
-
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
491
|
-
}
|
|
492
|
-
function Ct() {
|
|
493
|
-
z.value.showTooltip = !z.value.showTooltip;
|
|
494
|
-
}
|
|
495
|
-
function ya() {
|
|
496
|
-
return w.value;
|
|
497
|
-
}
|
|
498
|
-
const St = m(() => {
|
|
499
|
-
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
500
|
-
const a = w.value.map(({ name: t, color: s }) => ({
|
|
501
|
-
label: t,
|
|
502
|
-
color: s
|
|
503
|
-
})), l = [];
|
|
504
|
-
return $.value.forEach((t) => {
|
|
505
|
-
const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
|
|
506
|
-
F.value.forEach((c) => {
|
|
507
|
-
s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
|
|
508
|
-
}), l.push(s);
|
|
509
|
-
}), { head: a, body: l };
|
|
510
|
-
});
|
|
511
|
-
function We(a = null) {
|
|
512
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...St.value.head.map((S) => S.label)], s = St.value.body, c = l.concat([t]).concat(s), u = Ga(c);
|
|
513
|
-
a ? a(u) : Ja({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
514
|
-
}
|
|
515
|
-
const xe = m(() => {
|
|
516
|
-
const a = [""].concat(w.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>');
|
|
517
|
-
let l = [];
|
|
518
|
-
for (let c = 0; c < U.value; c += 1) {
|
|
519
|
-
const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, q) => S + q, 0);
|
|
520
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((S) => (S.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
521
|
-
}
|
|
522
|
-
const t = {
|
|
523
|
-
th: {
|
|
524
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
525
|
-
color: e.value.table.th.color,
|
|
526
|
-
outline: e.value.table.th.outline
|
|
527
|
-
},
|
|
528
|
-
td: {
|
|
529
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
530
|
-
color: e.value.table.td.color,
|
|
531
|
-
outline: e.value.table.td.outline
|
|
532
|
-
},
|
|
533
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
534
|
-
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
535
|
-
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
536
|
-
});
|
|
537
|
-
function ba(a, l) {
|
|
538
|
-
if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
|
|
539
|
-
_.value = _.value.filter((t) => t !== l.id);
|
|
540
|
-
else {
|
|
541
|
-
if (_.value.length === F.value.length - 1) return;
|
|
542
|
-
_.value.push(l.id);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
const Ye = m(() => F.value.map((a, l) => ({
|
|
546
|
-
...a,
|
|
547
|
-
shape: "square"
|
|
548
|
-
})).map((a) => ({
|
|
549
|
-
...a,
|
|
550
|
-
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
551
|
-
segregate: () => ba(a.absoluteIndex, a),
|
|
552
|
-
isSegregated: _.value.includes(a.id)
|
|
553
|
-
}))), fa = m(() => ({
|
|
554
|
-
cy: "stackbar-legend",
|
|
555
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
556
|
-
color: e.value.style.chart.legend.color,
|
|
557
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
558
|
-
paddingBottom: 12,
|
|
559
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
560
|
-
})), ke = y(!1);
|
|
561
|
-
function Xe() {
|
|
562
|
-
ke.value = !ke.value;
|
|
563
|
-
}
|
|
564
|
-
function we(a, l) {
|
|
565
|
-
const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
|
|
566
|
-
name: s.name,
|
|
567
|
-
value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
|
|
568
|
-
proportion: s.proportions[l] || null,
|
|
569
|
-
color: s.color,
|
|
570
|
-
id: s.id
|
|
571
|
-
}));
|
|
572
|
-
Ae("selectTimeLabel", {
|
|
573
|
-
datapoint: t,
|
|
574
|
-
absoluteIndex: a.absoluteIndex,
|
|
575
|
-
label: a.text
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
const ma = m(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
579
|
-
function _t(a, l) {
|
|
580
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? it.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : it.value ? (nt.value && Ue.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 > ma.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : nt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
581
|
-
}
|
|
582
|
-
async function pa({ scale: a = 2 } = {}) {
|
|
583
|
-
if (!O.value) return;
|
|
584
|
-
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await rl({ domElement: O.value, base64: !0, img: !0, scale: a });
|
|
585
|
-
return {
|
|
586
|
-
imageUri: c,
|
|
587
|
-
base64: u,
|
|
588
|
-
title: e.value.style.chart.title.text,
|
|
589
|
-
width: l,
|
|
590
|
-
height: t,
|
|
591
|
-
aspectRatio: s
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
const ue = m(() => {
|
|
595
|
-
const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
|
|
596
|
-
return {
|
|
597
|
-
component: a ? ta : Zt,
|
|
598
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
599
|
-
props: a ? {
|
|
600
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
601
|
-
color: e.value.table.th.color,
|
|
602
|
-
headerColor: e.value.table.th.color,
|
|
603
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
604
|
-
isFullscreen: re.value,
|
|
605
|
-
fullscreenParent: O.value,
|
|
606
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
607
|
-
} : {
|
|
608
|
-
hideDetails: !0,
|
|
609
|
-
config: {
|
|
610
|
-
open: l,
|
|
611
|
-
maxHeight: 1e4,
|
|
612
|
-
body: {
|
|
613
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
614
|
-
color: e.value.style.chart.color
|
|
615
|
-
},
|
|
616
|
-
head: {
|
|
617
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
618
|
-
color: e.value.style.chart.color
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
});
|
|
624
|
-
ze(() => z.value.showTable, (a) => {
|
|
625
|
-
e.value.table.show || (a && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
626
|
-
});
|
|
627
|
-
function $t() {
|
|
628
|
-
z.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
|
|
629
|
-
}
|
|
630
|
-
const xa = m(() => e.value.style.chart.backgroundColor), ka = m(() => e.value.style.chart.legend), wa = m(() => e.value.style.chart.title), { exportSvg: La, getSvg: za } = el({
|
|
631
|
-
svg: Ee,
|
|
632
|
-
title: wa,
|
|
633
|
-
legend: ka,
|
|
634
|
-
legendItems: Ye,
|
|
635
|
-
backgroundColor: xa
|
|
636
|
-
});
|
|
637
|
-
async function Tt({ isCb: a }) {
|
|
638
|
-
if (a) {
|
|
639
|
-
const { blob: l, url: t, text: s, dataUrl: c } = await za();
|
|
640
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: s, dataUrl: c });
|
|
641
|
-
} else
|
|
642
|
-
La();
|
|
643
|
-
}
|
|
644
|
-
return Xt({
|
|
645
|
-
getData: ya,
|
|
646
|
-
getImage: pa,
|
|
647
|
-
generatePdf: ht,
|
|
648
|
-
generateCsv: We,
|
|
649
|
-
generateImage: vt,
|
|
650
|
-
generateSvg: Tt,
|
|
651
|
-
toggleTable: Lt,
|
|
652
|
-
toggleLabels: zt,
|
|
653
|
-
toggleTooltip: Ct,
|
|
654
|
-
toggleAnnotator: Xe,
|
|
655
|
-
toggleFullscreen: wt
|
|
656
|
-
}), (a, l) => (r(), o("div", {
|
|
657
|
-
id: `stackbar_${M.value}`,
|
|
658
|
-
ref_key: "stackbarChart",
|
|
659
|
-
ref: O,
|
|
660
|
-
class: le({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
|
|
661
|
-
style: j(`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%" : ""}`),
|
|
662
|
-
onMouseenter: l[4] || (l[4] = () => v(rt)(!0)),
|
|
663
|
-
onMouseleave: l[5] || (l[5] = () => v(rt)(!1))
|
|
664
|
-
}, [
|
|
665
|
-
e.value.userOptions.buttons.annotator ? (r(), B(v(Qt), {
|
|
666
|
-
key: 0,
|
|
667
|
-
svgRef: v(Ee),
|
|
668
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
669
|
-
color: e.value.style.chart.color,
|
|
670
|
-
active: ke.value,
|
|
671
|
-
onClose: Xe
|
|
672
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
673
|
-
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
674
|
-
e.value.style.chart.title.text ? (r(), o("div", {
|
|
675
|
-
key: 1,
|
|
676
|
-
ref_key: "chartTitle",
|
|
677
|
-
ref: Ze,
|
|
678
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
679
|
-
}, [
|
|
680
|
-
(r(), B(ol, {
|
|
681
|
-
key: `title_${tt.value}`,
|
|
682
|
-
config: {
|
|
683
|
-
title: {
|
|
684
|
-
cy: "stackbar-title",
|
|
685
|
-
...e.value.style.chart.title
|
|
686
|
-
},
|
|
687
|
-
subtitle: {
|
|
688
|
-
cy: "stackbar-subtitle",
|
|
689
|
-
...e.value.style.chart.title.subtitle
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}, null, 8, ["config"]))
|
|
693
|
-
], 512)) : d("", !0),
|
|
694
|
-
D("div", {
|
|
695
|
-
id: `legend-top-${M.value}`
|
|
696
|
-
}, null, 8, dl),
|
|
697
|
-
e.value.userOptions.show && ve.value && (v(ot) || v(De)) ? (r(), B(v(jt), {
|
|
698
|
-
ref_key: "userOptionsRef",
|
|
699
|
-
ref: Oe,
|
|
700
|
-
key: `user_option_${qe.value}`,
|
|
701
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
702
|
-
color: e.value.style.chart.color,
|
|
703
|
-
isPrinting: v(ut),
|
|
704
|
-
isImaging: v(ct),
|
|
705
|
-
uid: M.value,
|
|
706
|
-
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
707
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
708
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
709
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
710
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
711
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
712
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
713
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
714
|
-
isFullscreen: re.value,
|
|
715
|
-
chartElement: O.value,
|
|
716
|
-
position: e.value.userOptions.position,
|
|
717
|
-
isTooltip: z.value.showTooltip,
|
|
718
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
719
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
720
|
-
isAnnotation: ke.value,
|
|
721
|
-
callbacks: e.value.userOptions.callbacks,
|
|
722
|
-
printScale: e.value.userOptions.print.scale,
|
|
723
|
-
tableDialog: e.value.table.useDialog,
|
|
724
|
-
onToggleFullscreen: wt,
|
|
725
|
-
onGeneratePdf: v(ht),
|
|
726
|
-
onGenerateCsv: We,
|
|
727
|
-
onGenerateImage: v(vt),
|
|
728
|
-
onGenerateSvg: Tt,
|
|
729
|
-
onToggleTable: Lt,
|
|
730
|
-
onToggleLabels: zt,
|
|
731
|
-
onToggleTooltip: Ct,
|
|
732
|
-
onToggleAnnotator: Xe,
|
|
733
|
-
style: j({
|
|
734
|
-
visibility: v(ot) ? v(De) ? "visible" : "hidden" : "visible"
|
|
735
|
-
})
|
|
736
|
-
}, Ge({ _: 2 }, [
|
|
737
|
-
a.$slots.menuIcon ? {
|
|
738
|
-
name: "menuIcon",
|
|
739
|
-
fn: C(({ isOpen: t, color: s }) => [
|
|
740
|
-
L(a.$slots, "menuIcon", W(Y({ isOpen: t, color: s })), void 0, !0)
|
|
741
|
-
]),
|
|
742
|
-
key: "0"
|
|
743
|
-
} : void 0,
|
|
744
|
-
a.$slots.optionTooltip ? {
|
|
745
|
-
name: "optionTooltip",
|
|
746
|
-
fn: C(() => [
|
|
747
|
-
L(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
748
|
-
]),
|
|
749
|
-
key: "1"
|
|
750
|
-
} : void 0,
|
|
751
|
-
a.$slots.optionPdf ? {
|
|
752
|
-
name: "optionPdf",
|
|
753
|
-
fn: C(() => [
|
|
754
|
-
L(a.$slots, "optionPdf", {}, void 0, !0)
|
|
755
|
-
]),
|
|
756
|
-
key: "2"
|
|
757
|
-
} : void 0,
|
|
758
|
-
a.$slots.optionCsv ? {
|
|
759
|
-
name: "optionCsv",
|
|
760
|
-
fn: C(() => [
|
|
761
|
-
L(a.$slots, "optionCsv", {}, void 0, !0)
|
|
762
|
-
]),
|
|
763
|
-
key: "3"
|
|
764
|
-
} : void 0,
|
|
765
|
-
a.$slots.optionImg ? {
|
|
766
|
-
name: "optionImg",
|
|
767
|
-
fn: C(() => [
|
|
768
|
-
L(a.$slots, "optionImg", {}, void 0, !0)
|
|
769
|
-
]),
|
|
770
|
-
key: "4"
|
|
771
|
-
} : void 0,
|
|
772
|
-
a.$slots.optionTable ? {
|
|
773
|
-
name: "optionTable",
|
|
774
|
-
fn: C(() => [
|
|
775
|
-
L(a.$slots, "optionTable", {}, void 0, !0)
|
|
776
|
-
]),
|
|
777
|
-
key: "5"
|
|
778
|
-
} : void 0,
|
|
779
|
-
a.$slots.optionLabels ? {
|
|
780
|
-
name: "optionLabels",
|
|
781
|
-
fn: C(() => [
|
|
782
|
-
L(a.$slots, "optionLabels", {}, void 0, !0)
|
|
783
|
-
]),
|
|
784
|
-
key: "6"
|
|
785
|
-
} : void 0,
|
|
786
|
-
a.$slots.optionFullscreen ? {
|
|
787
|
-
name: "optionFullscreen",
|
|
788
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
789
|
-
L(a.$slots, "optionFullscreen", W(Y({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
790
|
-
]),
|
|
791
|
-
key: "7"
|
|
792
|
-
} : void 0,
|
|
793
|
-
a.$slots.optionAnnotator ? {
|
|
794
|
-
name: "optionAnnotator",
|
|
795
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
796
|
-
L(a.$slots, "optionAnnotator", W(Y({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
797
|
-
]),
|
|
798
|
-
key: "8"
|
|
799
|
-
} : void 0
|
|
800
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
801
|
-
(r(), o("svg", {
|
|
802
|
-
ref_key: "svgRef",
|
|
803
|
-
ref: Ee,
|
|
804
|
-
xmlns: v(Ba),
|
|
805
|
-
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
806
|
-
class: le({ "vue-data-ui-loading": v(ne) }),
|
|
807
|
-
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
808
|
-
}, [
|
|
809
|
-
he(v(ea)),
|
|
810
|
-
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
811
|
-
key: 0,
|
|
812
|
-
x: n.value.left,
|
|
813
|
-
y: n.value.top,
|
|
814
|
-
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
815
|
-
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
816
|
-
style: {
|
|
817
|
-
pointerEvents: "none"
|
|
818
|
-
}
|
|
819
|
-
}, [
|
|
820
|
-
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
821
|
-
], 8, yl)) : d("", !0),
|
|
822
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs", bl, [
|
|
823
|
-
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("linearGradient", {
|
|
824
|
-
id: `gradient_${t.id}`,
|
|
825
|
-
x1: "0%",
|
|
826
|
-
y1: "0%",
|
|
827
|
-
x2: "0%",
|
|
828
|
-
y2: "100%"
|
|
829
|
-
}, [
|
|
830
|
-
D("stop", {
|
|
831
|
-
offset: "0%",
|
|
832
|
-
"stop-color": t.color
|
|
833
|
-
}, null, 8, ml),
|
|
834
|
-
D("stop", {
|
|
835
|
-
offset: "61.8%",
|
|
836
|
-
"stop-color": v(Wa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
837
|
-
}, null, 8, pl),
|
|
838
|
-
D("stop", {
|
|
839
|
-
offset: "100%",
|
|
840
|
-
"stop-color": t.color
|
|
841
|
-
}, null, 8, xl)
|
|
842
|
-
], 8, fl))), 256))
|
|
843
|
-
])) : d("", !0),
|
|
844
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, p(N.value, (t, s) => (r(), o("line", {
|
|
845
|
-
x1: n.value.left,
|
|
846
|
-
x2: n.value.right,
|
|
847
|
-
y1: t.y,
|
|
848
|
-
y2: t.y,
|
|
849
|
-
stroke: e.value.style.chart.grid.x.linesColor,
|
|
850
|
-
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
851
|
-
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
852
|
-
"stroke-linecap": "round"
|
|
853
|
-
}, null, 8, kl))), 256)) : d("", !0),
|
|
854
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, p(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
855
|
-
x1: n.value.left,
|
|
856
|
-
x2: n.value.right,
|
|
857
|
-
y1: n.value.top + g.value * s,
|
|
858
|
-
y2: n.value.top + g.value * s,
|
|
859
|
-
stroke: e.value.style.chart.grid.x.linesColor,
|
|
860
|
-
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
861
|
-
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
862
|
-
"stroke-linecap": "round"
|
|
863
|
-
}, null, 8, wl))), 256)) : d("", !0),
|
|
864
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, p(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
865
|
-
x1: n.value.left + g.value * s,
|
|
866
|
-
x2: n.value.left + g.value * s,
|
|
867
|
-
y1: n.value.top,
|
|
868
|
-
y2: n.value.bottom,
|
|
869
|
-
stroke: e.value.style.chart.grid.y.linesColor,
|
|
870
|
-
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
871
|
-
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
872
|
-
"stroke-linecap": "round"
|
|
873
|
-
}, null, 8, Ll))), 256)) : d("", !0),
|
|
874
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, p(N.value, (t, s) => (r(), o("line", {
|
|
875
|
-
x1: t.horizontal_x,
|
|
876
|
-
x2: t.horizontal_x,
|
|
877
|
-
y1: n.value.top,
|
|
878
|
-
y2: n.value.bottom,
|
|
879
|
-
stroke: e.value.style.chart.grid.y.linesColor,
|
|
880
|
-
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
881
|
-
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
882
|
-
"stroke-linecap": "round"
|
|
883
|
-
}, null, 8, zl))), 256)) : d("", !0),
|
|
884
|
-
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
885
|
-
a.$slots.pattern ? (r(), o("defs", Cl, [
|
|
886
|
-
L(a.$slots, "pattern", Ce({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${M.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
887
|
-
])) : d("", !0),
|
|
888
|
-
e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
|
|
889
|
-
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o("rect", {
|
|
890
|
-
x: c,
|
|
891
|
-
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
892
|
-
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
893
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
894
|
-
width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
895
|
-
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
896
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
897
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
898
|
-
"stroke-linecap": "round",
|
|
899
|
-
"stroke-linejoin": "round",
|
|
900
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
901
|
-
}, null, 10, Sl))), 256)),
|
|
902
|
-
a.$slots.pattern ? (r(), o("g", _l, [
|
|
903
|
-
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o("rect", {
|
|
904
|
-
x: c,
|
|
905
|
-
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
906
|
-
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
907
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
908
|
-
width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
909
|
-
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
910
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
911
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
912
|
-
"stroke-linecap": "round",
|
|
913
|
-
"stroke-linejoin": "round",
|
|
914
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
915
|
-
}, null, 10, $l))), 256))
|
|
916
|
-
])) : d("", !0)
|
|
917
|
-
], 64)) : (r(), o(b, { key: 2 }, [
|
|
918
|
-
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
919
|
-
x: v($e)(c, n.value.left),
|
|
920
|
-
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
921
|
-
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
922
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
923
|
-
height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
924
|
-
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
925
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
926
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
927
|
-
"stroke-linecap": "round",
|
|
928
|
-
"stroke-linejoin": "round",
|
|
929
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
930
|
-
}, null, 10, Tl))), 256)),
|
|
931
|
-
a.$slots.pattern ? (r(), o("g", Ml, [
|
|
932
|
-
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
933
|
-
x: v($e)(c, n.value.left),
|
|
934
|
-
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
935
|
-
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
936
|
-
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
937
|
-
height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
938
|
-
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
939
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
940
|
-
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
941
|
-
"stroke-linecap": "round",
|
|
942
|
-
"stroke-linejoin": "round",
|
|
943
|
-
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
944
|
-
}, null, 10, Al))), 256))
|
|
945
|
-
])) : d("", !0)
|
|
946
|
-
], 64))
|
|
947
|
-
]))), 256)),
|
|
948
|
-
e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
|
|
949
|
-
key: 6,
|
|
950
|
-
x1: n.value.left,
|
|
951
|
-
x2: n.value.right,
|
|
952
|
-
y1: n.value.bottom,
|
|
953
|
-
y2: n.value.bottom,
|
|
954
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
955
|
-
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
956
|
-
"stroke-linecap": "round",
|
|
957
|
-
"stroke-linejoin": "round"
|
|
958
|
-
}, null, 8, Rl)) : d("", !0),
|
|
959
|
-
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
960
|
-
key: 7,
|
|
961
|
-
x1: n.value.left,
|
|
962
|
-
x2: n.value.left,
|
|
963
|
-
y1: n.value.top,
|
|
964
|
-
y2: n.value.bottom,
|
|
965
|
-
stroke: e.value.style.chart.grid.y.axisColor,
|
|
966
|
-
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
967
|
-
"stroke-linecap": "round",
|
|
968
|
-
"stroke-linejoin": "round"
|
|
969
|
-
}, null, 8, Il)) : d("", !0),
|
|
970
|
-
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
971
|
-
key: 8,
|
|
972
|
-
ref_key: "xAxisLabel",
|
|
973
|
-
ref: Pe,
|
|
974
|
-
x: n.value.left + n.value.width / 2,
|
|
975
|
-
y: n.value.chartHeight - 3,
|
|
976
|
-
"font-size": e.value.style.chart.grid.x.axisName.fontSize,
|
|
977
|
-
fill: e.value.style.chart.grid.x.axisName.color,
|
|
978
|
-
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
979
|
-
"text-anchor": "middle"
|
|
980
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9, Nl)) : d("", !0),
|
|
981
|
-
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
982
|
-
key: 9,
|
|
983
|
-
ref_key: "yAxisLabel",
|
|
984
|
-
ref: Ve,
|
|
985
|
-
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
|
|
986
|
-
"font-size": e.value.style.chart.grid.y.axisName.fontSize,
|
|
987
|
-
fill: e.value.style.chart.grid.y.axisName.color,
|
|
988
|
-
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
989
|
-
"text-anchor": "middle"
|
|
990
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ol)) : d("", !0),
|
|
991
|
-
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
|
|
992
|
-
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
993
|
-
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o(b, null, [
|
|
994
|
-
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
995
|
-
key: 0,
|
|
996
|
-
x: c + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
997
|
-
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
998
|
-
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
999
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1000
|
-
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1001
|
-
"text-anchor": "middle"
|
|
1002
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Pl)) : d("", !0)
|
|
1003
|
-
], 64))), 256))
|
|
1004
|
-
]))), 256)),
|
|
1005
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
1006
|
-
key: 0,
|
|
1007
|
-
ref_key: "sumTop",
|
|
1008
|
-
ref: oa
|
|
1009
|
-
}, [
|
|
1010
|
-
(r(!0), o(b, null, p(bt.value, (t, s) => (r(), o(b, null, [
|
|
1011
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1012
|
-
key: 0,
|
|
1013
|
-
x: n.value.left + g.value * s + g.value / 2,
|
|
1014
|
-
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
1015
|
-
"text-anchor": "middle",
|
|
1016
|
-
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1017
|
-
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1018
|
-
fill: e.value.style.chart.bars.totalValues.color
|
|
1019
|
-
}, T(pe(t.value, t, s, t.sign)), 9, Vl)) : d("", !0)
|
|
1020
|
-
], 64))), 256))
|
|
1021
|
-
], 512)) : d("", !0)
|
|
1022
|
-
], 64)) : d("", !0),
|
|
1023
|
-
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
|
|
1024
|
-
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
1025
|
-
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o(b, null, [
|
|
1026
|
-
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
1027
|
-
key: 0,
|
|
1028
|
-
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
1029
|
-
y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1030
|
-
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1031
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1032
|
-
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1033
|
-
"text-anchor": "middle"
|
|
1034
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Dl)) : d("", !0)
|
|
1035
|
-
], 64))), 256))
|
|
1036
|
-
]))), 256)),
|
|
1037
|
-
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
1038
|
-
key: 0,
|
|
1039
|
-
ref_key: "sumRight",
|
|
1040
|
-
ref: st
|
|
1041
|
-
}, [
|
|
1042
|
-
(r(!0), o(b, null, p(bt.value, (t, s) => (r(), o(b, null, [
|
|
1043
|
-
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1044
|
-
key: 0,
|
|
1045
|
-
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1046
|
-
y: n.value.top + g.value * s + g.value / 2,
|
|
1047
|
-
"text-anchor": "start",
|
|
1048
|
-
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1049
|
-
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1050
|
-
fill: e.value.style.chart.bars.totalValues.color
|
|
1051
|
-
}, T(pe(t.value, t, s, t.sign)), 9, El)) : d("", !0)
|
|
1052
|
-
], 64))), 256))
|
|
1053
|
-
], 512)) : d("", !0)
|
|
1054
|
-
], 64)) : d("", !0),
|
|
1055
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1056
|
-
key: 12,
|
|
1057
|
-
ref_key: "scaleLabels",
|
|
1058
|
-
ref: G
|
|
1059
|
-
}, [
|
|
1060
|
-
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("line", {
|
|
1061
|
-
x1: n.value.left,
|
|
1062
|
-
x2: n.value.left - 6,
|
|
1063
|
-
y1: t.y,
|
|
1064
|
-
y2: t.y,
|
|
1065
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1066
|
-
"stroke-width": 1
|
|
1067
|
-
}, null, 8, Fl))), 256)),
|
|
1068
|
-
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("text", {
|
|
1069
|
-
x: t.x,
|
|
1070
|
-
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1071
|
-
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1072
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1073
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1074
|
-
"text-anchor": "end"
|
|
1075
|
-
}, T(v(Te)(
|
|
1076
|
-
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1077
|
-
t.value,
|
|
1078
|
-
v(ee)({
|
|
1079
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1080
|
-
v: t.value,
|
|
1081
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1082
|
-
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1083
|
-
}),
|
|
1084
|
-
{ datapoint: t }
|
|
1085
|
-
)), 9, Ul))), 256))
|
|
1086
|
-
], 512)) : d("", !0),
|
|
1087
|
-
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1088
|
-
key: 13,
|
|
1089
|
-
ref_key: "scaleLabels",
|
|
1090
|
-
ref: G
|
|
1091
|
-
}, [
|
|
1092
|
-
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("line", {
|
|
1093
|
-
x1: t.horizontal_x,
|
|
1094
|
-
x2: t.horizontal_x,
|
|
1095
|
-
y1: n.value.bottom,
|
|
1096
|
-
y2: n.value.bottom + 6,
|
|
1097
|
-
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1098
|
-
"stroke-width": 1,
|
|
1099
|
-
"stroke-linecap": "round"
|
|
1100
|
-
}, null, 8, Hl))), 256)),
|
|
1101
|
-
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("text", {
|
|
1102
|
-
class: "vue-data-ui-time-label",
|
|
1103
|
-
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1104
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1105
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1106
|
-
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1107
|
-
transform: `translate(${t.horizontal_x}, ${n.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})`
|
|
1108
|
-
}, T(v(Te)(
|
|
1109
|
-
e.value.style.chart.grid.y.axisLabels.formatter,
|
|
1110
|
-
t.value,
|
|
1111
|
-
v(ee)({
|
|
1112
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1113
|
-
v: t.value,
|
|
1114
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1115
|
-
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1116
|
-
}),
|
|
1117
|
-
{ datapoint: t }
|
|
1118
|
-
)), 9, Bl))), 256))
|
|
1119
|
-
], 512)) : d("", !0),
|
|
1120
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1121
|
-
key: 14,
|
|
1122
|
-
ref_key: "timeLabelsEls",
|
|
1123
|
-
ref: J
|
|
1124
|
-
}, [
|
|
1125
|
-
a.$slots["time-label"] ? (r(), o("g", Wl, [
|
|
1126
|
-
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1127
|
-
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1128
|
-
x: n.value.left + g.value * s + g.value / 2,
|
|
1129
|
-
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1130
|
-
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1131
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1132
|
-
transform: `translate(${n.value.left + g.value * s + g.value / 2}, ${n.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})`,
|
|
1133
|
-
absoluteIndex: t.absoluteIndex,
|
|
1134
|
-
content: t.text,
|
|
1135
|
-
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1136
|
-
show: !0
|
|
1137
|
-
}), void 0, !0)
|
|
1138
|
-
]))), 256))
|
|
1139
|
-
])) : (r(), o("g", Yl, [
|
|
1140
|
-
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1141
|
-
String(t.text).includes(`
|
|
1142
|
-
`) ? (r(), o("text", {
|
|
1143
|
-
key: s + "-multi",
|
|
1144
|
-
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1145
|
-
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1146
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1147
|
-
transform: `
|
|
1148
|
-
translate(
|
|
1149
|
-
${n.value.left + g.value * s + g.value / 2},
|
|
1150
|
-
${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1151
|
-
),
|
|
1152
|
-
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1153
|
-
`,
|
|
1154
|
-
style: { cursor: "pointer" },
|
|
1155
|
-
innerHTML: v(Ya)({
|
|
1156
|
-
content: String(t.text),
|
|
1157
|
-
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1158
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1159
|
-
x: 0,
|
|
1160
|
-
y: 0
|
|
1161
|
-
}),
|
|
1162
|
-
onClick: () => we(t, s)
|
|
1163
|
-
}, null, 8, Gl)) : (r(), o("text", {
|
|
1164
|
-
class: "vue-data-ui-time-label",
|
|
1165
|
-
key: s,
|
|
1166
|
-
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1167
|
-
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1168
|
-
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1169
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1170
|
-
transform: `translate(${n.value.left + g.value * s + g.value / 2}, ${n.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})`,
|
|
1171
|
-
style: { cursor: "pointer" },
|
|
1172
|
-
onClick: () => we(t, s)
|
|
1173
|
-
}, T(t.text), 9, Xl))
|
|
1174
|
-
]))), 256))
|
|
1175
|
-
]))
|
|
1176
|
-
], 512)) : d("", !0),
|
|
1177
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1178
|
-
key: 15,
|
|
1179
|
-
ref_key: "timeLabelsEls",
|
|
1180
|
-
ref: J
|
|
1181
|
-
}, [
|
|
1182
|
-
a.$slots["time-label"] ? (r(), o("g", Jl, [
|
|
1183
|
-
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1184
|
-
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1185
|
-
x: n.value.left - 8,
|
|
1186
|
-
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1187
|
-
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1188
|
-
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1189
|
-
transform: null,
|
|
1190
|
-
absoluteIndex: t.absoluteIndex,
|
|
1191
|
-
content: t.text,
|
|
1192
|
-
textAnchor: "end",
|
|
1193
|
-
show: !0
|
|
1194
|
-
}), void 0, !0)
|
|
1195
|
-
]))), 256))
|
|
1196
|
-
])) : (r(), o("g", ql, [
|
|
1197
|
-
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1198
|
-
String(t.text).includes(`
|
|
1199
|
-
`) ? (r(), o("text", {
|
|
1200
|
-
key: 1,
|
|
1201
|
-
"text-anchor": "end",
|
|
1202
|
-
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1203
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1204
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1205
|
-
x: n.value.left - 8,
|
|
1206
|
-
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1207
|
-
style: { cursor: "pointer" },
|
|
1208
|
-
onClick: () => we(t, s),
|
|
1209
|
-
innerHTML: v(Xa)({
|
|
1210
|
-
content: String(t.text),
|
|
1211
|
-
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1212
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1213
|
-
x: n.value.left - 8,
|
|
1214
|
-
y: 0
|
|
1215
|
-
})
|
|
1216
|
-
}, null, 8, Kl)) : (r(), o("text", {
|
|
1217
|
-
key: 0,
|
|
1218
|
-
"text-anchor": "end",
|
|
1219
|
-
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1220
|
-
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1221
|
-
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1222
|
-
x: n.value.left - 8,
|
|
1223
|
-
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1224
|
-
style: {
|
|
1225
|
-
cursor: "pointer"
|
|
1226
|
-
},
|
|
1227
|
-
onClick: () => we(t, s)
|
|
1228
|
-
}, T(t.text), 9, Zl))
|
|
1229
|
-
]))), 256))
|
|
1230
|
-
]))
|
|
1231
|
-
], 512)) : d("", !0),
|
|
1232
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, p(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1233
|
-
x: n.value.left + s * g.value,
|
|
1234
|
-
y: n.value.top,
|
|
1235
|
-
width: g.value,
|
|
1236
|
-
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1237
|
-
onClick: () => mt(s),
|
|
1238
|
-
onMouseenter: () => kt(s),
|
|
1239
|
-
onMouseleave: () => xt(s),
|
|
1240
|
-
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1241
|
-
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1242
|
-
}, null, 44, Ql))), 256)) : d("", !0),
|
|
1243
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, p(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1244
|
-
x: n.value.left,
|
|
1245
|
-
y: n.value.top + s * g.value,
|
|
1246
|
-
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1247
|
-
height: g.value,
|
|
1248
|
-
onClick: () => mt(s),
|
|
1249
|
-
onMouseenter: () => kt(s),
|
|
1250
|
-
onMouseleave: () => xt(s),
|
|
1251
|
-
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1252
|
-
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1253
|
-
}, null, 44, jl))), 256)) : d("", !0),
|
|
1254
|
-
L(a.$slots, "svg", W(Y({ ...n.value })), void 0, !0)
|
|
1255
|
-
], 14, gl)),
|
|
1256
|
-
a.$slots.watermark ? (r(), o("div", es, [
|
|
1257
|
-
L(a.$slots, "watermark", W(Y({ isPrinting: v(ut) || v(ct) })), void 0, !0)
|
|
1258
|
-
])) : d("", !0),
|
|
1259
|
-
D("div", {
|
|
1260
|
-
ref_key: "chartSlicer",
|
|
1261
|
-
ref: Qe,
|
|
1262
|
-
style: j(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1263
|
-
"data-dom-to-png-ignore": ""
|
|
1264
|
-
}, [
|
|
1265
|
-
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(cl, {
|
|
1266
|
-
ref_key: "slicerComponent",
|
|
1267
|
-
ref: at,
|
|
1268
|
-
key: `slicer_${et.value}`,
|
|
1269
|
-
background: e.value.style.chart.zoom.color,
|
|
1270
|
-
borderColor: e.value.style.chart.backgroundColor,
|
|
1271
|
-
fontSize: e.value.style.chart.zoom.fontSize,
|
|
1272
|
-
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
1273
|
-
labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
|
|
1274
|
-
labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
|
|
1275
|
-
textColor: e.value.style.chart.color,
|
|
1276
|
-
inputColor: e.value.style.chart.zoom.color,
|
|
1277
|
-
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1278
|
-
max: Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1279
|
-
min: 0,
|
|
1280
|
-
valueStart: h.value.start,
|
|
1281
|
-
valueEnd: h.value.end,
|
|
1282
|
-
start: h.value.start,
|
|
1283
|
-
"onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
|
|
1284
|
-
end: h.value.end,
|
|
1285
|
-
"onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
|
|
1286
|
-
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1287
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Me.dataset.map((t) => t.series.length)),
|
|
1288
|
-
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1289
|
-
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1290
|
-
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
1291
|
-
focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
|
|
1292
|
-
onReset: yt
|
|
1293
|
-
}, {
|
|
1294
|
-
"reset-action": C(({ reset: t }) => [
|
|
1295
|
-
L(a.$slots, "reset-action", W(Y({ reset: t })), void 0, !0)
|
|
1296
|
-
]),
|
|
1297
|
-
_: 3
|
|
1298
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : d("", !0)
|
|
1299
|
-
], 4),
|
|
1300
|
-
he(v(Jt), {
|
|
1301
|
-
show: z.value.showTooltip && Re.value,
|
|
1302
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1303
|
-
color: e.value.style.chart.tooltip.color,
|
|
1304
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
1305
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
1306
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
1307
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
1308
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1309
|
-
position: e.value.style.chart.tooltip.position,
|
|
1310
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1311
|
-
parent: O.value,
|
|
1312
|
-
content: Ne.value,
|
|
1313
|
-
isFullscreen: re.value,
|
|
1314
|
-
isCustom: v(Wt)(e.value.style.chart.tooltip.customFormat),
|
|
1315
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
1316
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1317
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1318
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1319
|
-
}, {
|
|
1320
|
-
"tooltip-before": C(() => [
|
|
1321
|
-
L(a.$slots, "tooltip-before", W(Y({ ...Ie.value })), void 0, !0)
|
|
1322
|
-
]),
|
|
1323
|
-
"tooltip-after": C(() => [
|
|
1324
|
-
L(a.$slots, "tooltip-after", W(Y({ ...Ie.value })), void 0, !0)
|
|
1325
|
-
]),
|
|
1326
|
-
_: 3
|
|
1327
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1328
|
-
D("div", {
|
|
1329
|
-
id: `legend-bottom-${M.value}`
|
|
1330
|
-
}, null, 8, ts),
|
|
1331
|
-
lt.value ? (r(), B(Oa, {
|
|
1332
|
-
key: 4,
|
|
1333
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1334
|
-
}, [
|
|
1335
|
-
D("div", {
|
|
1336
|
-
ref_key: "chartLegend",
|
|
1337
|
-
ref: Ke
|
|
1338
|
-
}, [
|
|
1339
|
-
e.value.style.chart.legend.show ? (r(), B(ul, {
|
|
1340
|
-
key: 0,
|
|
1341
|
-
legendSet: Ye.value,
|
|
1342
|
-
config: fa.value,
|
|
1343
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1344
|
-
}, Ge({
|
|
1345
|
-
item: C(({ legend: t }) => [
|
|
1346
|
-
v(ne) ? d("", !0) : (r(), o("div", {
|
|
1347
|
-
key: 0,
|
|
1348
|
-
onClick: (s) => t.segregate(),
|
|
1349
|
-
style: j(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
1350
|
-
}, T(t.name), 13, as))
|
|
1351
|
-
]),
|
|
1352
|
-
_: 2
|
|
1353
|
-
}, [
|
|
1354
|
-
a.$slots.pattern ? {
|
|
1355
|
-
name: "legend-pattern",
|
|
1356
|
-
fn: C(({ legend: t, index: s }) => [
|
|
1357
|
-
he(nl, {
|
|
1358
|
-
shape: t.shape,
|
|
1359
|
-
radius: 30,
|
|
1360
|
-
stroke: "none",
|
|
1361
|
-
plot: { x: 30, y: 30 },
|
|
1362
|
-
fill: `url(#pattern_${M.value}_${s})`
|
|
1363
|
-
}, null, 8, ["shape", "fill"])
|
|
1364
|
-
]),
|
|
1365
|
-
key: "0"
|
|
1366
|
-
} : void 0
|
|
1367
|
-
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1368
|
-
key: 1,
|
|
1369
|
-
legend: Ye.value
|
|
1370
|
-
}, void 0, !0)
|
|
1371
|
-
], 512)
|
|
1372
|
-
], 8, ["to"])) : d("", !0),
|
|
1373
|
-
a.$slots.source ? (r(), o("div", {
|
|
1374
|
-
key: 5,
|
|
1375
|
-
ref_key: "source",
|
|
1376
|
-
ref: je,
|
|
1377
|
-
dir: "auto"
|
|
1378
|
-
}, [
|
|
1379
|
-
L(a.$slots, "source", {}, void 0, !0)
|
|
1380
|
-
], 512)) : d("", !0),
|
|
1381
|
-
ve.value && e.value.userOptions.buttons.table ? (r(), B(Pa(ue.value.component), Ce({ key: 6 }, ue.value.props, {
|
|
1382
|
-
ref_key: "tableUnit",
|
|
1383
|
-
ref: oe,
|
|
1384
|
-
onClose: $t
|
|
1385
|
-
}), Ge({
|
|
1386
|
-
content: C(() => [
|
|
1387
|
-
he(v(Kt), {
|
|
1388
|
-
colNames: xe.value.colNames,
|
|
1389
|
-
head: xe.value.head,
|
|
1390
|
-
body: xe.value.body,
|
|
1391
|
-
config: xe.value.config,
|
|
1392
|
-
title: e.value.table.useDialog ? "" : ue.value.title,
|
|
1393
|
-
withCloseButton: !e.value.table.useDialog,
|
|
1394
|
-
onClose: $t
|
|
1395
|
-
}, {
|
|
1396
|
-
th: C(({ th: t }) => [
|
|
1397
|
-
D("div", { innerHTML: t }, null, 8, ls)
|
|
1398
|
-
]),
|
|
1399
|
-
td: C(({ td: t }) => [
|
|
1400
|
-
Pt(T(isNaN(Number(t)) ? t : v(ee)({
|
|
1401
|
-
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1402
|
-
v: t,
|
|
1403
|
-
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
1404
|
-
r: e.value.table.td.roundingValue
|
|
1405
|
-
})), 1)
|
|
1406
|
-
]),
|
|
1407
|
-
_: 1
|
|
1408
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
1409
|
-
]),
|
|
1410
|
-
_: 2
|
|
1411
|
-
}, [
|
|
1412
|
-
e.value.table.useDialog ? {
|
|
1413
|
-
name: "title",
|
|
1414
|
-
fn: C(() => [
|
|
1415
|
-
Pt(T(ue.value.title), 1)
|
|
1416
|
-
]),
|
|
1417
|
-
key: "0"
|
|
1418
|
-
} : void 0,
|
|
1419
|
-
e.value.table.useDialog ? {
|
|
1420
|
-
name: "actions",
|
|
1421
|
-
fn: C(() => [
|
|
1422
|
-
D("button", {
|
|
1423
|
-
tabindex: "0",
|
|
1424
|
-
class: "vue-ui-user-options-button",
|
|
1425
|
-
onClick: l[3] || (l[3] = (t) => We(e.value.userOptions.callbacks.csv))
|
|
1426
|
-
}, [
|
|
1427
|
-
he(v(qt), {
|
|
1428
|
-
name: "excel",
|
|
1429
|
-
stroke: ue.value.props.color
|
|
1430
|
-
}, null, 8, ["stroke"])
|
|
1431
|
-
])
|
|
1432
|
-
]),
|
|
1433
|
-
key: "1"
|
|
1434
|
-
} : void 0
|
|
1435
|
-
]), 1040)) : d("", !0),
|
|
1436
|
-
v(ne) ? (r(), B(ja, { key: 7 })) : d("", !0)
|
|
1437
|
-
], 46, vl));
|
|
1438
|
-
}
|
|
1439
|
-
}, Ls = /* @__PURE__ */ hl(ss, [["__scopeId", "data-v-d52bebfe"]]);
|
|
1440
|
-
export {
|
|
1441
|
-
Ls as default
|
|
1442
|
-
};
|