vue-data-ui 3.5.2 → 3.7.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/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,20 +1,37 @@
|
|
|
1
|
-
import { defineAsyncComponent as Z, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as Z, computed as P, ref as b, toRefs as It, watch as xe, onMounted as Nt, createElementBlock as v, openBlock as u, unref as n, normalizeStyle as j, normalizeClass as Ke, createBlock as te, createCommentVNode as p, withCtx as x, renderSlot as _, normalizeProps as z, guardReactiveProps as I, createSlots as Je, createVNode as Qe, createElementVNode as i, Fragment as D, renderList as F, toDisplayString as N, withKeys as et, withModifiers as tt, mergeProps as we, resolveDynamicComponent as Lt, createTextVNode as ot, nextTick as lt } from "vue";
|
|
2
|
+
import { c as at, t as Wt, i as Rt, p as ve, j as Gt, l as Vt, o as Ut, g as he, k as Ae, n as V, Z as st, M as Ht, d as O, X as Xt, s as $, r as q, a as fe, _ as nt, $ as pe, a0 as U, u as Zt, q as qt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Yt, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Jt, a as De } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Qt, B as eo } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as to } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as oo } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as lo } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as ao } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as so } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import no from "./img-DUzJeMlr.js";
|
|
12
|
+
import ro from "./Title-DfFUb9hd.js";
|
|
13
|
+
import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", box: { stroke: "#5A5A5A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, legend: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, ut = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", bar: { color: "#D32F2F" }, box: { stroke: "#5D4037" }, title: { color: "#424242", subtitle: { color: "#757575" } }, legend: { color: "#424242" }, dataLabel: { color: "#424242" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, it = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", bar: { color: "#D32F2F" }, box: { stroke: "#5D4037" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, legend: { color: "#BDBDBD" }, dataLabel: { color: "#BDBDBD" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, dt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", bar: { color: "#66CC66" }, box: { stroke: "#333333" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, legend: { color: "#99AA99" }, dataLabel: { color: "#AACCAA" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, ct = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", bar: { color: "#B9B99D" }, box: { stroke: "#DCDFE7" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, legend: { color: "#99AA99" }, dataLabel: { color: "#A0AC94" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", bar: { color: "#4A6A75" }, box: { stroke: "#DEE1DE" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, legend: { color: "#61747E" }, dataLabel: { color: "#61747E" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, ht = {
|
|
15
|
+
default: {},
|
|
16
|
+
dark: rt,
|
|
17
|
+
celebration: ut,
|
|
18
|
+
celebrationNight: it,
|
|
19
|
+
hack: dt,
|
|
20
|
+
zen: ct,
|
|
21
|
+
concrete: vt
|
|
22
|
+
}, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
celebration: ut,
|
|
25
|
+
celebrationNight: it,
|
|
26
|
+
concrete: vt,
|
|
27
|
+
dark: rt,
|
|
28
|
+
default: ht,
|
|
29
|
+
hack: dt,
|
|
30
|
+
zen: ct
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), io = ["id"], co = ["xmlns", "viewBox"], vo = ["width", "height"], ho = ["id"], fo = ["stop-color"], po = ["stop-color"], go = ["id"], ko = ["stop-color"], yo = ["stop-color"], $o = ["id"], bo = ["stop-color"], _o = ["stop-color"], mo = ["id"], Co = ["stop-color"], xo = ["stop-color"], wo = ["id"], Ao = ["stop-color"], Do = ["stop-color"], Fo = ["stop-color"], Mo = ["stop-color"], To = ["stop-color"], Po = { key: 1 }, So = ["id"], Bo = ["stop-color"], Oo = ["stop-color"], Eo = ["id"], jo = ["stop-color"], zo = ["stop-color"], Io = ["id"], No = ["stop-color"], Lo = ["stop-color"], Wo = ["id"], Ro = ["x", "y", "font-size", "font-weight", "fill"], Go = ["x", "y"], Vo = ["cx", "cy", "stroke", "opacity"], Uo = ["d", "stroke"], Ho = ["d", "stroke"], Xo = { key: 4 }, Zo = { key: 0 }, qo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Yo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ko = ["stroke-dasharray", "d", "stroke", "stroke-width"], Jo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Qo = { key: 1 }, el = ["d", "stroke", "stroke-width", "fill"], tl = ["d", "stroke", "stroke-width", "fill"], ol = ["d", "stroke", "stroke-width", "fill"], ll = { key: 2 }, al = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], sl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], nl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], rl = ["d", "onMouseenter", "onClick", "onMouseout"], ul = ["d"], il = ["d", "stroke"], dl = ["onClick"], cl = ["stroke", "d"], vl = ["cx", "cy", "fill", "stroke"], hl = ["x", "y", "width", "height"], fl = ["x", "y", "width", "height"], pl = { key: 3 }, gl = ["d", "stroke"], kl = ["d", "fill", "stroke"], yl = { key: 0 }, $l = ["text-anchor", "x", "y", "fill", "font-size"], bl = ["text-anchor", "x", "y", "fill", "font-size"], _l = { key: 4 }, ml = ["d", "fill", "stroke"], Cl = { key: 5 }, xl = { key: 0 }, wl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Al = ["stroke-dasharray", "d", "stroke", "stroke-width"], Dl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Fl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ml = ["d", "stroke", "stroke-width", "fill"], Tl = ["d", "stroke", "stroke-width", "fill"], Pl = ["d"], Sl = { key: 1 }, Bl = ["onClick"], Ol = ["id"], El = ["stop-color"], jl = ["stop-color"], zl = ["id"], Il = ["stop-color"], Nl = ["stop-color"], Ll = ["stop-color"], Wl = ["stop-color"], Rl = ["stop-color"], Gl = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Vl = ["onMouseenter", "onClick", "onMouseout", "d"], Ul = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Hl = ["onClick"], Xl = ["stroke", "d"], Zl = ["cx", "cy", "fill", "stroke"], ql = ["x", "y", "width", "height"], Yl = ["x", "y", "width", "height"], Kl = { key: 3 }, Jl = ["d", "stroke"], Ql = ["d", "fill", "stroke"], ea = { key: 0 }, ta = ["text-anchor", "x", "y", "fill", "font-size"], oa = ["text-anchor", "x", "y", "fill", "font-size"], la = { key: 4 }, aa = ["d", "fill", "stroke"], sa = {
|
|
15
32
|
key: 3,
|
|
16
33
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
34
|
+
}, na = ["innerHTML"], ra = {
|
|
18
35
|
__name: "vue-ui-3d-bar",
|
|
19
36
|
props: {
|
|
20
37
|
config: {
|
|
@@ -31,14 +48,14 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
31
48
|
}
|
|
32
49
|
},
|
|
33
50
|
emits: ["selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
51
|
+
setup(ft, { expose: pt, emit: gt }) {
|
|
52
|
+
const kt = Z(() => import("./BaseIcon-CofSxalQ.js")), yt = Z(() => import("./vue-ui-accordion-DSdZUn2C.js")), $t = Z(() => import("./DataTable-CHaOCmsE.js")), bt = Z(() => import("./PenAndPaper-HCZQTkqi.js")), _t = Z(() => import("./UserOptions-B3I-s3Lw.js")), mt = Z(() => import("./PackageVersion-Bq_mtsqr.js")), Ct = Z(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_3d_bar: xt } = Jt(), { isThemeValid: wt, warnInvalidTheme: At } = lo(), S = ft, ne = gt, Fe = P(() => !!S.dataset && Object.keys(S.dataset).length), M = b(at()), L = b(null), E = b(!1), Me = b(0), Te = b(0), Pe = b(null), oe = b(null), re = b(null), Se = b(null), le = b(!1), ae = b(null), ge = b(null), e = b($e()), { loading: Y, FINAL_DATASET: B } = Qt({
|
|
53
|
+
...It(S),
|
|
37
54
|
FINAL_CONFIG: e,
|
|
38
55
|
prepareConfig: $e,
|
|
39
56
|
callback: () => {
|
|
40
57
|
Promise.resolve().then(async () => {
|
|
41
|
-
await
|
|
58
|
+
await lt(), Le();
|
|
42
59
|
});
|
|
43
60
|
},
|
|
44
61
|
skeletonDataset: {
|
|
@@ -69,7 +86,7 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
69
86
|
}
|
|
70
87
|
]
|
|
71
88
|
},
|
|
72
|
-
skeletonConfig:
|
|
89
|
+
skeletonConfig: Wt({
|
|
73
90
|
defaultConfig: e.value,
|
|
74
91
|
userConfig: {
|
|
75
92
|
customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
|
|
@@ -90,94 +107,101 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
})
|
|
93
|
-
}), { userOptionsVisible:
|
|
110
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Be, keepUserOptionState: Oe } = ao({ config: e.value }), { svgRef: ye } = so({ config: e.value.style.chart.title });
|
|
94
111
|
function $e() {
|
|
95
|
-
const a =
|
|
96
|
-
userConfig:
|
|
97
|
-
defaultConfig:
|
|
112
|
+
const a = De({
|
|
113
|
+
userConfig: S.config,
|
|
114
|
+
defaultConfig: xt
|
|
115
|
+
}), l = a.theme;
|
|
116
|
+
if (!l) return a;
|
|
117
|
+
if (!wt.value(a))
|
|
118
|
+
return At(a), a;
|
|
119
|
+
const t = De({
|
|
120
|
+
userConfig: ht[l] || S.config,
|
|
121
|
+
defaultConfig: a
|
|
122
|
+
}), d = De({
|
|
123
|
+
userConfig: S.config,
|
|
124
|
+
defaultConfig: t
|
|
98
125
|
});
|
|
99
|
-
return
|
|
100
|
-
...
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}),
|
|
104
|
-
customPalette: Ot[a.theme] || ve
|
|
105
|
-
} : a;
|
|
126
|
+
return {
|
|
127
|
+
...d,
|
|
128
|
+
customPalette: d.customPalette.length ? d.customPalette : Rt[l] || ve
|
|
129
|
+
};
|
|
106
130
|
}
|
|
107
|
-
|
|
108
|
-
Y.value || (e.value = $e()),
|
|
131
|
+
xe(() => S.config, (a) => {
|
|
132
|
+
Y.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, We(), Me.value += 1, Te.value += 1, H.value.showTable = e.value.table.show;
|
|
109
133
|
}, { deep: !0 });
|
|
110
|
-
const { isPrinting:
|
|
111
|
-
elementId: `3d_bar_${
|
|
134
|
+
const { isPrinting: Ee, isImaging: je, generatePdf: ze, generateImage: Ie } = to({
|
|
135
|
+
elementId: `3d_bar_${M.value}`,
|
|
112
136
|
fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
113
137
|
options: e.value.userOptions.print
|
|
114
|
-
}),
|
|
138
|
+
}), Dt = P(() => Gt(e.value.customPalette)), H = b({
|
|
115
139
|
showTable: e.value.table.show
|
|
116
140
|
});
|
|
117
|
-
|
|
141
|
+
xe(e, () => {
|
|
118
142
|
H.value = {
|
|
119
143
|
showTable: e.value.table.show
|
|
120
144
|
};
|
|
121
145
|
}, { immediate: !0 });
|
|
122
|
-
const
|
|
146
|
+
const w = P(() => B.value.series && B.value.series.length), be = b(e.value.style.chart.box.dimensions.width * (w.value ? 2 : 1)), Ne = b(e.value.style.chart.box.dimensions.height), s = P(() => ({
|
|
123
147
|
height: Ne.value,
|
|
124
|
-
width:
|
|
125
|
-
absoluteWidth:
|
|
148
|
+
width: be.value,
|
|
149
|
+
absoluteWidth: be.value,
|
|
126
150
|
top: e.value.style.chart.box.dimensions.top,
|
|
127
151
|
bottom: e.value.style.chart.box.dimensions.bottom,
|
|
128
152
|
left: e.value.style.chart.box.dimensions.left,
|
|
129
153
|
right: e.value.style.chart.box.dimensions.right,
|
|
130
154
|
perspective: e.value.style.chart.box.dimensions.perspective
|
|
131
|
-
})),
|
|
132
|
-
if (
|
|
133
|
-
const a =
|
|
155
|
+
})), A = P(() => {
|
|
156
|
+
if (w.value) {
|
|
157
|
+
const a = B.value.series.map((o) => o.value || 0).reduce((o, c) => o + c, 0), l = B.value.series.map((o, c) => ({
|
|
134
158
|
...o,
|
|
135
|
-
seriesIndex:
|
|
136
|
-
id:
|
|
159
|
+
seriesIndex: c,
|
|
160
|
+
id: at(),
|
|
137
161
|
proportion: (o.value || 0) / a,
|
|
138
|
-
color:
|
|
139
|
-
breakdown: o.breakdown ? o.breakdown.sort((r,
|
|
140
|
-
})).sort((o,
|
|
141
|
-
let
|
|
142
|
-
for (let o = 0; o <
|
|
162
|
+
color: Vt(o.color) || Dt.value[c] || ve[c] || ve[c % ve.length],
|
|
163
|
+
breakdown: o.breakdown ? o.breakdown.sort((r, k) => k.value - r.value) : null
|
|
164
|
+
})).sort((o, c) => c.value - o.value), t = [];
|
|
165
|
+
let d = 0;
|
|
166
|
+
for (let o = 0; o < l.length; o += 1)
|
|
143
167
|
t.push({
|
|
144
|
-
...
|
|
145
|
-
fill:
|
|
146
|
-
}),
|
|
168
|
+
...l[o],
|
|
169
|
+
fill: Ft(d, l[o].proportion, l[o].breakdown, l[o].color)
|
|
170
|
+
}), d += l[o].proportion;
|
|
147
171
|
return t;
|
|
148
172
|
}
|
|
149
173
|
return null;
|
|
150
|
-
}),
|
|
151
|
-
const a =
|
|
174
|
+
}), W = P(() => {
|
|
175
|
+
const a = s.value.width / 2;
|
|
152
176
|
return {
|
|
153
|
-
right: `M${a},${
|
|
154
|
-
left: `M${a},${
|
|
155
|
-
side: `M${a},${
|
|
156
|
-
topSides: `M${
|
|
157
|
-
tubeTop: `M${
|
|
158
|
-
tubeLeft: `M${
|
|
159
|
-
tubeRight: `M${
|
|
160
|
-
tubeBottom: `M${
|
|
177
|
+
right: `M${a},${s.value.top} ${s.value.width - s.value.right}, ${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} ${a},${s.value.height - s.value.bottom}`,
|
|
178
|
+
left: `M${a},${s.value.top} ${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective} ${a},${s.value.height - s.value.bottom}`,
|
|
179
|
+
side: `M${a},${s.value.height - s.value.bottom} ${a},${s.value.top + s.value.perspective * 2}`,
|
|
180
|
+
topSides: `M${s.value.left},${s.value.top + s.value.perspective} ${a},${s.value.top + s.value.perspective * 2} ${s.value.width - s.value.right},${s.value.top + s.value.perspective}`,
|
|
181
|
+
tubeTop: `M${s.value.left},${s.value.top + s.value.perspective} C ${s.value.left},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top + s.value.perspective} C ${s.value.width - s.value.right},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective}`,
|
|
182
|
+
tubeLeft: `M${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`,
|
|
183
|
+
tubeRight: `M${s.value.width - s.value.right},${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective}`,
|
|
184
|
+
tubeBottom: `M${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} C ${s.value.width - s.value.right},${s.value.height} ${s.value.left},${s.value.height} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`
|
|
161
185
|
};
|
|
162
|
-
}), K =
|
|
186
|
+
}), K = b(e.value.style.chart.animation.use ? 0 : B.value.percentage);
|
|
163
187
|
function Le() {
|
|
164
|
-
let a = 0,
|
|
165
|
-
function
|
|
166
|
-
K.value +=
|
|
188
|
+
let a = 0, l = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
|
|
189
|
+
function d() {
|
|
190
|
+
K.value += l + a, a += t, K.value < B.value.percentage ? requestAnimationFrame(d) : K.value = B.value.percentage;
|
|
167
191
|
}
|
|
168
|
-
e.value.style.chart.animation.use && (K.value = 0,
|
|
192
|
+
e.value.style.chart.animation.use && (K.value = 0, d());
|
|
169
193
|
}
|
|
170
|
-
|
|
194
|
+
Nt(() => {
|
|
171
195
|
We(), Le();
|
|
172
196
|
});
|
|
173
|
-
const ue =
|
|
197
|
+
const ue = P(() => !!e.value.debug);
|
|
174
198
|
function We() {
|
|
175
|
-
if (
|
|
199
|
+
if (Ut(S.dataset) ? he({
|
|
176
200
|
componentName: "VueUi3dBar",
|
|
177
201
|
type: "dataset",
|
|
178
202
|
debug: ue.value
|
|
179
|
-
}) :
|
|
180
|
-
|
|
203
|
+
}) : S.dataset.series ? S.dataset.series.forEach((a, l) => {
|
|
204
|
+
Ae({
|
|
181
205
|
datasetObject: a,
|
|
182
206
|
requiredAttributes: ["name", "value"]
|
|
183
207
|
}).forEach((t) => {
|
|
@@ -185,11 +209,11 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
185
209
|
componentName: "VueUi3dBar",
|
|
186
210
|
type: "datasetSerieAttribute",
|
|
187
211
|
property: t,
|
|
188
|
-
index:
|
|
212
|
+
index: l,
|
|
189
213
|
debug: ue.value
|
|
190
214
|
});
|
|
191
|
-
}), a.breakdown && a.breakdown.forEach((t,
|
|
192
|
-
|
|
215
|
+
}), a.breakdown && a.breakdown.forEach((t, d) => {
|
|
216
|
+
Ae({
|
|
193
217
|
datasetObject: t,
|
|
194
218
|
requiredAttributes: ["name", "value"]
|
|
195
219
|
}).forEach((o) => {
|
|
@@ -197,13 +221,13 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
197
221
|
componentName: "VueUi3dBar",
|
|
198
222
|
type: "datasetSerieAttribute",
|
|
199
223
|
property: o,
|
|
200
|
-
index: `${
|
|
224
|
+
index: `${l} - ${d}`,
|
|
201
225
|
debug: ue.value
|
|
202
226
|
});
|
|
203
227
|
});
|
|
204
228
|
});
|
|
205
|
-
}) :
|
|
206
|
-
datasetObject:
|
|
229
|
+
}) : Ae({
|
|
230
|
+
datasetObject: S.dataset,
|
|
207
231
|
requiredAttributes: ["percentage"]
|
|
208
232
|
}).forEach((a) => {
|
|
209
233
|
he({
|
|
@@ -213,169 +237,169 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
213
237
|
debug: ue.value
|
|
214
238
|
});
|
|
215
239
|
}), e.value.responsive) {
|
|
216
|
-
const a =
|
|
217
|
-
const { width:
|
|
218
|
-
chart:
|
|
219
|
-
title: e.value.style.chart.title.text ?
|
|
220
|
-
source:
|
|
240
|
+
const a = Yt(() => {
|
|
241
|
+
const { width: l, height: t } = Kt({
|
|
242
|
+
chart: L.value,
|
|
243
|
+
title: e.value.style.chart.title.text ? Pe.value : null,
|
|
244
|
+
source: Se.value
|
|
221
245
|
});
|
|
222
246
|
requestAnimationFrame(() => {
|
|
223
|
-
Ne.value = t - 12,
|
|
247
|
+
Ne.value = t - 12, be.value = l;
|
|
224
248
|
});
|
|
225
249
|
});
|
|
226
|
-
oe.value && (re.value && oe.value.unobserve(re.value), oe.value.disconnect()), oe.value = new ResizeObserver(a), re.value =
|
|
250
|
+
oe.value && (re.value && oe.value.unobserve(re.value), oe.value.disconnect()), oe.value = new ResizeObserver(a), re.value = L.value.parentNode, oe.value.observe(re.value);
|
|
227
251
|
}
|
|
228
252
|
}
|
|
229
|
-
const
|
|
230
|
-
function
|
|
231
|
-
const o =
|
|
232
|
-
let
|
|
233
|
-
return
|
|
234
|
-
...
|
|
235
|
-
value:
|
|
236
|
-
color: V(
|
|
237
|
-
})),
|
|
253
|
+
const J = P(() => s.value.width / 4);
|
|
254
|
+
function Ft(a, l, t, d) {
|
|
255
|
+
const o = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: c, height: r, bottom: k, right: G, left: y, perspective: g } = s.value, f = w.value ? c / 4 : c / 2, C = f * 2 + y, h = k + o * a, Ce = r - h - g - o * l / 2, Et = Ce > s.value.height / 2 ? "top" : "bottom", Xe = r * 0.25, jt = !!t;
|
|
256
|
+
let Ze = null, qe = null;
|
|
257
|
+
return jt && (t = t.map((Ye, zt) => ({
|
|
258
|
+
...Ye,
|
|
259
|
+
value: Ye.value || 0,
|
|
260
|
+
color: V(d, zt / t.length)
|
|
261
|
+
})), Ze = st(
|
|
238
262
|
{ series: t },
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
263
|
+
c / 2 + c / 5,
|
|
264
|
+
Et === "top" ? Ce - Xe : Ce + Xe,
|
|
265
|
+
c / 10,
|
|
266
|
+
c / 10,
|
|
243
267
|
1.99999,
|
|
244
268
|
2,
|
|
245
269
|
1,
|
|
246
270
|
360,
|
|
247
271
|
105.25,
|
|
248
|
-
|
|
249
|
-
),
|
|
272
|
+
c / 20
|
|
273
|
+
), qe = st(
|
|
250
274
|
{ series: t },
|
|
251
|
-
|
|
252
|
-
r - h - g - o *
|
|
253
|
-
|
|
254
|
-
|
|
275
|
+
c - C + c / 14,
|
|
276
|
+
r - h - g - o * l / 2,
|
|
277
|
+
c / 40,
|
|
278
|
+
c / 40,
|
|
255
279
|
1.99999,
|
|
256
280
|
2,
|
|
257
281
|
1,
|
|
258
282
|
360,
|
|
259
283
|
105.25,
|
|
260
|
-
|
|
284
|
+
c / 40
|
|
261
285
|
)), {
|
|
262
|
-
donut:
|
|
263
|
-
miniDonut:
|
|
264
|
-
donutR:
|
|
286
|
+
donut: Ze,
|
|
287
|
+
miniDonut: qe,
|
|
288
|
+
donutR: c / 20,
|
|
265
289
|
CENTER_X: f,
|
|
266
290
|
sidePointer: {
|
|
267
|
-
x:
|
|
268
|
-
x2:
|
|
269
|
-
xText:
|
|
270
|
-
y: r - h - g - o *
|
|
271
|
-
topY: r - h - g - o *
|
|
272
|
-
height: o *
|
|
291
|
+
x: c - C,
|
|
292
|
+
x2: c - C + c / 14,
|
|
293
|
+
xText: c - C + c / 9,
|
|
294
|
+
y: r - h - g - o * l / 2,
|
|
295
|
+
topY: r - h - g - o * l,
|
|
296
|
+
height: o * l
|
|
273
297
|
},
|
|
274
298
|
apexBottom: { y: r - h, x: f },
|
|
275
|
-
apexTop: { y: r - h - o *
|
|
276
|
-
right: `M${f},${r - h} ${f},${r - h - o *
|
|
277
|
-
left: `M${f},${r - h} ${f},${r - h - o *
|
|
278
|
-
liningTop: `M${
|
|
279
|
-
liningTopShade: `M${
|
|
280
|
-
top: `M${f},${r - h - o *
|
|
281
|
-
tubeTop: `M${
|
|
282
|
-
bottomTubeTop: `M ${
|
|
299
|
+
apexTop: { y: r - h - o * l, x: f },
|
|
300
|
+
right: `M${f},${r - h} ${f},${r - h - o * l} ${c - C},${r - h - g - o * l} ${c - C},${r - h - g}Z`,
|
|
301
|
+
left: `M${f},${r - h} ${f},${r - h - o * l} ${y}, ${r - h - g - o * l} ${y},${r - h - g}Z`,
|
|
302
|
+
liningTop: `M${y},${r - h - g - o * l} ${f},${r - h - o * l} ${c - C},${r - h - g - o * l}`,
|
|
303
|
+
liningTopShade: `M${y},${r - h - g - o * l - 0.5} ${f},${r - h - o * l - 0.5} ${c - C},${r - h - g - o * l - 0.5}`,
|
|
304
|
+
top: `M${f},${r - h - o * l} ${y},${r - h - g - o * l} ${f},${r - h - g * 2 - o * l} ${c - C},${r - h - g - o * l} Z`,
|
|
305
|
+
tubeTop: `M${y},${r - h - o * l - g} C ${y},${r - h - o * l - g * 2.5} ${c - C},${r - h - o * l - g * 2.5} ${c - C},${r - h - o * l - g} C ${c - C},${r - h - o * l + g / 2} ${y},${r - h - o * l + g / 2} ${y},${r - h - o * l - g}`,
|
|
306
|
+
bottomTubeTop: `M ${c - C - 0.5},${r - h - g} C ${c - C - 0.5},${r - h + g / 2} ${y},${r - h + g / 2} ${y + 0.5},${r - h - g}`,
|
|
283
307
|
tubeBody: `M
|
|
284
|
-
${
|
|
285
|
-
C ${
|
|
286
|
-
${
|
|
287
|
-
${
|
|
288
|
-
L${
|
|
308
|
+
${y},${r - h - o * l - g}
|
|
309
|
+
C ${y},${r - h - o * l + g / 2}
|
|
310
|
+
${c - C},${r - h - o * l + g / 2}
|
|
311
|
+
${c - C},${r - h - o * l - g}
|
|
312
|
+
L${c - C},${r - h - g}
|
|
289
313
|
C
|
|
290
|
-
${
|
|
291
|
-
${
|
|
292
|
-
${
|
|
314
|
+
${c - C},${r - h + g / 2}
|
|
315
|
+
${y},${r - h + g / 2}
|
|
316
|
+
${y},${r - h - g}Z`
|
|
293
317
|
};
|
|
294
318
|
}
|
|
295
|
-
const
|
|
296
|
-
const a =
|
|
319
|
+
const Q = P(() => {
|
|
320
|
+
const a = Ht(K.value / 100), l = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: t, height: d, bottom: o, right: c, left: r, perspective: k } = s.value, G = w.value ? t / 4 : t / 2, y = w.value ? G * 2 + r : c, f = o + l * 0;
|
|
297
321
|
return {
|
|
298
|
-
right: `M${G},${
|
|
299
|
-
left: `M${G},${
|
|
300
|
-
top: `M${G},${
|
|
301
|
-
tubeTop: `M${r},${
|
|
322
|
+
right: `M${G},${d - f} ${G},${d - f - l * a} ${t - y},${d - f - k - l * a} ${t - y},${d - f - k}Z`,
|
|
323
|
+
left: `M${G},${d - f} ${G},${d - f - l * a} ${r}, ${d - f - k - l * a} ${r},${d - f - k}Z`,
|
|
324
|
+
top: `M${G},${d - f - l * a} ${r},${d - f - k - l * a} ${G},${d - f - k * 2 - l * a} ${t - y},${d - f - k - l * a} Z`,
|
|
325
|
+
tubeTop: `M${r},${d - f - l * a - k} C ${r},${d - f - l * a - k * 2.5} ${t - y},${d - f - l * a - k * 2.5} ${t - y},${d - f - l * a - k} C ${t - y},${d - f - l * a + k / 2} ${r},${d - f - l * a + k / 2} ${r},${d - f - l * a - k}`,
|
|
302
326
|
tubeBody: `M
|
|
303
|
-
${r},${
|
|
304
|
-
C ${r},${
|
|
305
|
-
${t -
|
|
306
|
-
${t -
|
|
307
|
-
L${t -
|
|
327
|
+
${r},${d - f - l * a - k}
|
|
328
|
+
C ${r},${d - f - l * a + k / 2}
|
|
329
|
+
${t - y},${d - f - l * a + k / 2}
|
|
330
|
+
${t - y},${d - f - l * a - k}
|
|
331
|
+
L${t - y},${d - k * 1.5}
|
|
308
332
|
C
|
|
309
|
-
${t -
|
|
310
|
-
${r},${
|
|
311
|
-
${r},${
|
|
333
|
+
${t - y},${d}
|
|
334
|
+
${r},${d}
|
|
335
|
+
${r},${d - f - k}Z`
|
|
312
336
|
};
|
|
313
|
-
}),
|
|
314
|
-
function
|
|
315
|
-
e.value.events.datapointEnter && !
|
|
337
|
+
}), m = b(null);
|
|
338
|
+
function T(a, l = !1) {
|
|
339
|
+
e.value.events.datapointEnter && !l && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.seriesIndex }), e.value.events.datapointClick && l && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.seriesIndex }), ne("selectDatapoint", a), l || (m.value = a.id), l && E.value && (E.value = !1), l && !E.value && (E.value = !0);
|
|
316
340
|
}
|
|
317
341
|
function X(a) {
|
|
318
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !
|
|
319
|
-
}
|
|
320
|
-
function ee(a, s, t = !1) {
|
|
321
|
-
const c = A.value.series.map((r) => r.value || 0).reduce((r, y) => r + y, 0), o = isNaN(a.value / c) ? 0 : a.value / c * 100, d = isNaN(a.value / Ee(s)) ? 0 : a.value / Ee(s) * 100;
|
|
322
|
-
return t ? d : o.toFixed(0) + "%";
|
|
342
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !E.value && (m.value = null);
|
|
323
343
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
344
|
+
function ee(a, l, t = !1) {
|
|
345
|
+
const d = B.value.series.map((r) => r.value || 0).reduce((r, k) => r + k, 0), o = isNaN(a.value / d) ? 0 : a.value / d * 100, c = isNaN(a.value / Re(l)) ? 0 : a.value / Re(l) * 100;
|
|
346
|
+
return t ? c : o.toFixed(0) + "%";
|
|
326
347
|
}
|
|
327
|
-
const ie = _(!1);
|
|
328
348
|
function Re(a) {
|
|
349
|
+
return [...a].map((l) => l.value).reduce((l, t) => l + t, 0);
|
|
350
|
+
}
|
|
351
|
+
const ie = b(!1);
|
|
352
|
+
function Ge(a) {
|
|
329
353
|
ie.value = a;
|
|
330
354
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
355
|
+
function Mt() {
|
|
356
|
+
return w.value ? A.value : B.value.percentage;
|
|
333
357
|
}
|
|
334
|
-
const R =
|
|
335
|
-
if (
|
|
336
|
-
const a =
|
|
337
|
-
name:
|
|
358
|
+
const R = P(() => {
|
|
359
|
+
if (w.value) {
|
|
360
|
+
const a = A.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((d, o) => ({
|
|
361
|
+
name: d.name,
|
|
338
362
|
color: V(t.color, o / t.breakdown.length)
|
|
339
363
|
}))] : {
|
|
340
364
|
name: t.name,
|
|
341
365
|
color: t.color
|
|
342
|
-
}),
|
|
343
|
-
return { head: a, body:
|
|
366
|
+
}), l = A.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((d) => d.value)] : t.value);
|
|
367
|
+
return { head: a, body: l };
|
|
344
368
|
} else
|
|
345
369
|
return null;
|
|
346
370
|
});
|
|
347
|
-
function
|
|
348
|
-
if (!
|
|
371
|
+
function _e(a = null) {
|
|
372
|
+
if (!w.value) {
|
|
349
373
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
350
374
|
return;
|
|
351
375
|
}
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
], [R.value.body[r]], [isNaN(R.value.body[r] /
|
|
356
|
-
a ? a(o) :
|
|
376
|
+
lt(() => {
|
|
377
|
+
const l = A.value.map((c) => c.value).reduce((c, r) => c + r, 0), t = R.value.head.map((c, r) => [[
|
|
378
|
+
c.name
|
|
379
|
+
], [R.value.body[r]], [isNaN(R.value.body[r] / l) ? "-" : R.value.body[r] / l * 100]]), d = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = Zt(d);
|
|
380
|
+
a ? a(o) : qt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
357
381
|
});
|
|
358
382
|
}
|
|
359
|
-
const de =
|
|
360
|
-
const a =
|
|
383
|
+
const de = P(() => {
|
|
384
|
+
const a = A.value.map((c) => c.value).reduce((c, r) => c + r, 0), l = [
|
|
361
385
|
' <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>',
|
|
362
|
-
|
|
386
|
+
O({ p: e.value.style.chart.legend.prefix, v: a, s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue }),
|
|
363
387
|
"100%"
|
|
364
|
-
], t = R.value.head.map((
|
|
365
|
-
const
|
|
388
|
+
], t = R.value.head.map((c, r) => {
|
|
389
|
+
const k = O({ p: e.value.style.chart.legend.prefix, v: R.value.body[r], s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue });
|
|
366
390
|
return [
|
|
367
391
|
{
|
|
368
|
-
color:
|
|
369
|
-
name:
|
|
392
|
+
color: c.color,
|
|
393
|
+
name: c.name
|
|
370
394
|
},
|
|
371
|
-
|
|
372
|
-
isNaN(R.value.body[r] / a) ? "-" :
|
|
395
|
+
k,
|
|
396
|
+
isNaN(R.value.body[r] / a) ? "-" : O({
|
|
373
397
|
v: R.value.body[r] / a * 100,
|
|
374
398
|
s: "%",
|
|
375
399
|
r: e.value.table.td.roundingPercentage
|
|
376
400
|
})
|
|
377
401
|
];
|
|
378
|
-
}),
|
|
402
|
+
}), d = {
|
|
379
403
|
th: {
|
|
380
404
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
381
405
|
color: e.value.table.th.color,
|
|
@@ -395,34 +419,34 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
395
419
|
e.value.table.columnNames.value,
|
|
396
420
|
e.value.table.columnNames.percentage
|
|
397
421
|
],
|
|
398
|
-
head:
|
|
422
|
+
head: l,
|
|
399
423
|
body: t,
|
|
400
|
-
config:
|
|
424
|
+
config: d
|
|
401
425
|
};
|
|
402
426
|
});
|
|
403
|
-
function
|
|
427
|
+
function Ve() {
|
|
404
428
|
H.value.showTable = !H.value.showTable;
|
|
405
429
|
}
|
|
406
|
-
const ce =
|
|
407
|
-
function
|
|
430
|
+
const ce = b(!1);
|
|
431
|
+
function me() {
|
|
408
432
|
ce.value = !ce.value;
|
|
409
433
|
}
|
|
410
|
-
async function
|
|
411
|
-
if (!
|
|
412
|
-
const { width:
|
|
434
|
+
async function Tt({ scale: a = 2 } = {}) {
|
|
435
|
+
if (!L.value) return;
|
|
436
|
+
const { width: l, height: t } = L.value.getBoundingClientRect(), d = l / t, { imageUri: o, base64: c } = await no({ domElement: L.value, base64: !0, img: !0, scale: a });
|
|
413
437
|
return {
|
|
414
438
|
imageUri: o,
|
|
415
|
-
base64:
|
|
439
|
+
base64: c,
|
|
416
440
|
title: e.value.style.chart.title.text,
|
|
417
|
-
width:
|
|
441
|
+
width: l,
|
|
418
442
|
height: t,
|
|
419
|
-
aspectRatio:
|
|
443
|
+
aspectRatio: d
|
|
420
444
|
};
|
|
421
445
|
}
|
|
422
|
-
const se =
|
|
423
|
-
const a = e.value.table.useDialog && !e.value.table.show,
|
|
446
|
+
const se = P(() => {
|
|
447
|
+
const a = e.value.table.useDialog && !e.value.table.show, l = H.value.showTable;
|
|
424
448
|
return {
|
|
425
|
-
component: a ?
|
|
449
|
+
component: a ? Ct : yt,
|
|
426
450
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
427
451
|
props: a ? {
|
|
428
452
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -430,12 +454,12 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
430
454
|
headerColor: e.value.table.th.color,
|
|
431
455
|
headerBg: e.value.table.th.backgroundColor,
|
|
432
456
|
isFullscreen: ie.value,
|
|
433
|
-
fullscreenParent:
|
|
457
|
+
fullscreenParent: L.value,
|
|
434
458
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
435
459
|
} : {
|
|
436
460
|
hideDetails: !0,
|
|
437
461
|
config: {
|
|
438
|
-
open:
|
|
462
|
+
open: l,
|
|
439
463
|
maxHeight: 1e4,
|
|
440
464
|
body: {
|
|
441
465
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -449,79 +473,79 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
449
473
|
}
|
|
450
474
|
};
|
|
451
475
|
});
|
|
452
|
-
|
|
476
|
+
xe(() => H.value.showTable, (a) => {
|
|
453
477
|
e.value.table.show || (a && e.value.table.useDialog && ae.value ? ae.value.open() : "close" in ae.value && ae.value.close());
|
|
454
478
|
});
|
|
455
|
-
function
|
|
479
|
+
function Ue() {
|
|
456
480
|
H.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
|
|
457
481
|
}
|
|
458
|
-
const
|
|
459
|
-
svg:
|
|
460
|
-
title:
|
|
461
|
-
backgroundColor:
|
|
482
|
+
const Pt = P(() => e.value.style.chart.backgroundColor), St = P(() => e.value.style.chart.title), { exportSvg: Bt, getSvg: Ot } = oo({
|
|
483
|
+
svg: ye,
|
|
484
|
+
title: St,
|
|
485
|
+
backgroundColor: Pt
|
|
462
486
|
});
|
|
463
|
-
async function
|
|
487
|
+
async function He({ isCb: a }) {
|
|
464
488
|
if (a) {
|
|
465
|
-
const { blob:
|
|
466
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
489
|
+
const { blob: l, url: t, text: d, dataUrl: o } = await Ot();
|
|
490
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: d, dataUrl: o });
|
|
467
491
|
} else
|
|
468
|
-
|
|
492
|
+
Bt();
|
|
469
493
|
}
|
|
470
|
-
return
|
|
471
|
-
getImage:
|
|
472
|
-
generateCsv:
|
|
494
|
+
return pt({
|
|
495
|
+
getImage: Tt,
|
|
496
|
+
generateCsv: _e,
|
|
473
497
|
generatePdf: ze,
|
|
474
|
-
generateImage:
|
|
475
|
-
generateSvg:
|
|
476
|
-
getData:
|
|
477
|
-
toggleTable:
|
|
478
|
-
toggleAnnotator:
|
|
479
|
-
toggleFullscreen:
|
|
480
|
-
}), (a,
|
|
498
|
+
generateImage: Ie,
|
|
499
|
+
generateSvg: He,
|
|
500
|
+
getData: Mt,
|
|
501
|
+
toggleTable: Ve,
|
|
502
|
+
toggleAnnotator: me,
|
|
503
|
+
toggleFullscreen: Ge
|
|
504
|
+
}), (a, l) => (u(), v("div", {
|
|
481
505
|
ref_key: "bar3dChart",
|
|
482
|
-
ref:
|
|
483
|
-
class:
|
|
484
|
-
style:
|
|
485
|
-
id: `3d_bar_${
|
|
486
|
-
onMouseenter:
|
|
487
|
-
onMouseleave:
|
|
506
|
+
ref: L,
|
|
507
|
+
class: Ke("vue-data-ui-component vue-ui-3d-bar"),
|
|
508
|
+
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
509
|
+
id: `3d_bar_${M.value}`,
|
|
510
|
+
onMouseenter: l[8] || (l[8] = () => n(Be)(!0)),
|
|
511
|
+
onMouseleave: l[9] || (l[9] = () => n(Be)(!1))
|
|
488
512
|
}, [
|
|
489
|
-
e.value.userOptions.buttons.annotator ? (u(), te(n(
|
|
513
|
+
e.value.userOptions.buttons.annotator ? (u(), te(n(bt), {
|
|
490
514
|
key: 0,
|
|
491
|
-
svgRef: n(
|
|
515
|
+
svgRef: n(ye),
|
|
492
516
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
493
517
|
color: e.value.style.chart.color,
|
|
494
518
|
active: ce.value,
|
|
495
|
-
onClose:
|
|
519
|
+
onClose: me
|
|
496
520
|
}, {
|
|
497
|
-
"annotator-action-close":
|
|
498
|
-
|
|
521
|
+
"annotator-action-close": x(() => [
|
|
522
|
+
_(a.$slots, "annotator-action-close", {}, void 0, !0)
|
|
499
523
|
]),
|
|
500
|
-
"annotator-action-color":
|
|
501
|
-
|
|
524
|
+
"annotator-action-color": x(({ color: t }) => [
|
|
525
|
+
_(a.$slots, "annotator-action-color", z(I({ color: t })), void 0, !0)
|
|
502
526
|
]),
|
|
503
|
-
"annotator-action-draw":
|
|
504
|
-
|
|
527
|
+
"annotator-action-draw": x(({ mode: t }) => [
|
|
528
|
+
_(a.$slots, "annotator-action-draw", z(I({ mode: t })), void 0, !0)
|
|
505
529
|
]),
|
|
506
|
-
"annotator-action-undo":
|
|
507
|
-
|
|
530
|
+
"annotator-action-undo": x(({ disabled: t }) => [
|
|
531
|
+
_(a.$slots, "annotator-action-undo", z(I({ disabled: t })), void 0, !0)
|
|
508
532
|
]),
|
|
509
|
-
"annotator-action-redo":
|
|
510
|
-
|
|
533
|
+
"annotator-action-redo": x(({ disabled: t }) => [
|
|
534
|
+
_(a.$slots, "annotator-action-redo", z(I({ disabled: t })), void 0, !0)
|
|
511
535
|
]),
|
|
512
|
-
"annotator-action-delete":
|
|
513
|
-
|
|
536
|
+
"annotator-action-delete": x(({ disabled: t }) => [
|
|
537
|
+
_(a.$slots, "annotator-action-delete", z(I({ disabled: t })), void 0, !0)
|
|
514
538
|
]),
|
|
515
539
|
_: 3
|
|
516
540
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
517
541
|
e.value.style.chart.title.text ? (u(), v("div", {
|
|
518
542
|
key: 1,
|
|
519
543
|
ref_key: "chartTitle",
|
|
520
|
-
ref:
|
|
544
|
+
ref: Pe,
|
|
521
545
|
style: "width:100%;background:transparent"
|
|
522
546
|
}, [
|
|
523
|
-
(u(), te(
|
|
524
|
-
key: `title_${
|
|
547
|
+
(u(), te(ro, {
|
|
548
|
+
key: `title_${Me.value}`,
|
|
525
549
|
config: {
|
|
526
550
|
title: {
|
|
527
551
|
cy: "3dBar-div-title",
|
|
@@ -534,169 +558,169 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
534
558
|
}
|
|
535
559
|
}, null, 8, ["config"]))
|
|
536
560
|
], 512)) : p("", !0),
|
|
537
|
-
e.value.userOptions.show && Fe.value && (n(Oe) || n(
|
|
561
|
+
e.value.userOptions.show && Fe.value && (n(Oe) || n(ke)) ? (u(), te(n(_t), {
|
|
538
562
|
key: 2,
|
|
539
563
|
ref_key: "userOptionsRef",
|
|
540
564
|
ref: ge,
|
|
541
565
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
542
566
|
color: e.value.style.chart.color,
|
|
543
|
-
isPrinting: n(
|
|
544
|
-
isImaging: n(
|
|
545
|
-
uid:
|
|
567
|
+
isPrinting: n(Ee),
|
|
568
|
+
isImaging: n(je),
|
|
569
|
+
uid: M.value,
|
|
546
570
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
547
|
-
hasTable: !!
|
|
548
|
-
hasXls: !!
|
|
571
|
+
hasTable: !!w.value && e.value.userOptions.buttons.table,
|
|
572
|
+
hasXls: !!w.value && e.value.userOptions.buttons.csv,
|
|
549
573
|
hasImg: e.value.userOptions.buttons.img,
|
|
550
574
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
551
575
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
552
576
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
553
|
-
chartElement:
|
|
577
|
+
chartElement: L.value,
|
|
554
578
|
position: e.value.userOptions.position,
|
|
555
579
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
556
580
|
isAnnotation: ce.value,
|
|
557
581
|
callbacks: e.value.userOptions.callbacks,
|
|
558
582
|
printScale: e.value.userOptions.print.scale,
|
|
559
583
|
tableDialog: e.value.table.useDialog,
|
|
560
|
-
onToggleFullscreen:
|
|
584
|
+
onToggleFullscreen: Ge,
|
|
561
585
|
onGeneratePdf: n(ze),
|
|
562
|
-
onGenerateCsv:
|
|
563
|
-
onGenerateImage: n(
|
|
564
|
-
onGenerateSvg:
|
|
565
|
-
onToggleTable:
|
|
566
|
-
onToggleAnnotator:
|
|
567
|
-
style:
|
|
568
|
-
visibility: n(Oe) ? n(
|
|
586
|
+
onGenerateCsv: _e,
|
|
587
|
+
onGenerateImage: n(Ie),
|
|
588
|
+
onGenerateSvg: He,
|
|
589
|
+
onToggleTable: Ve,
|
|
590
|
+
onToggleAnnotator: me,
|
|
591
|
+
style: j({
|
|
592
|
+
visibility: n(Oe) ? n(ke) ? "visible" : "hidden" : "visible"
|
|
569
593
|
})
|
|
570
|
-
},
|
|
594
|
+
}, Je({ _: 2 }, [
|
|
571
595
|
a.$slots.menuIcon ? {
|
|
572
596
|
name: "menuIcon",
|
|
573
|
-
fn:
|
|
574
|
-
|
|
597
|
+
fn: x(({ isOpen: t, color: d }) => [
|
|
598
|
+
_(a.$slots, "menuIcon", z(I({ isOpen: t, color: d })), void 0, !0)
|
|
575
599
|
]),
|
|
576
600
|
key: "0"
|
|
577
601
|
} : void 0,
|
|
578
602
|
a.$slots.optionPdf ? {
|
|
579
603
|
name: "optionPdf",
|
|
580
|
-
fn:
|
|
581
|
-
|
|
604
|
+
fn: x(() => [
|
|
605
|
+
_(a.$slots, "optionPdf", {}, void 0, !0)
|
|
582
606
|
]),
|
|
583
607
|
key: "1"
|
|
584
608
|
} : void 0,
|
|
585
609
|
a.$slots.optionCsv ? {
|
|
586
610
|
name: "optionCsv",
|
|
587
|
-
fn:
|
|
588
|
-
|
|
611
|
+
fn: x(() => [
|
|
612
|
+
_(a.$slots, "optionCsv", {}, void 0, !0)
|
|
589
613
|
]),
|
|
590
614
|
key: "2"
|
|
591
615
|
} : void 0,
|
|
592
616
|
a.$slots.optionImg ? {
|
|
593
617
|
name: "optionImg",
|
|
594
|
-
fn:
|
|
595
|
-
|
|
618
|
+
fn: x(() => [
|
|
619
|
+
_(a.$slots, "optionImg", {}, void 0, !0)
|
|
596
620
|
]),
|
|
597
621
|
key: "3"
|
|
598
622
|
} : void 0,
|
|
599
623
|
a.$slots.optionSvg ? {
|
|
600
624
|
name: "optionSvg",
|
|
601
|
-
fn:
|
|
602
|
-
|
|
625
|
+
fn: x(() => [
|
|
626
|
+
_(a.$slots, "optionSvg", {}, void 0, !0)
|
|
603
627
|
]),
|
|
604
628
|
key: "4"
|
|
605
629
|
} : void 0,
|
|
606
630
|
a.$slots.optionTable ? {
|
|
607
631
|
name: "optionTable",
|
|
608
|
-
fn:
|
|
609
|
-
|
|
632
|
+
fn: x(() => [
|
|
633
|
+
_(a.$slots, "optionTable", {}, void 0, !0)
|
|
610
634
|
]),
|
|
611
635
|
key: "5"
|
|
612
636
|
} : void 0,
|
|
613
637
|
a.$slots.optionFullscreen ? {
|
|
614
638
|
name: "optionFullscreen",
|
|
615
|
-
fn:
|
|
616
|
-
|
|
639
|
+
fn: x(({ toggleFullscreen: t, isFullscreen: d }) => [
|
|
640
|
+
_(a.$slots, "optionFullscreen", z(I({ toggleFullscreen: t, isFullscreen: d })), void 0, !0)
|
|
617
641
|
]),
|
|
618
642
|
key: "6"
|
|
619
643
|
} : void 0,
|
|
620
644
|
a.$slots.optionAnnotator ? {
|
|
621
645
|
name: "optionAnnotator",
|
|
622
|
-
fn:
|
|
623
|
-
|
|
646
|
+
fn: x(({ toggleAnnotator: t, isAnnotator: d }) => [
|
|
647
|
+
_(a.$slots, "optionAnnotator", z(I({ toggleAnnotator: t, isAnnotator: d })), void 0, !0)
|
|
624
648
|
]),
|
|
625
649
|
key: "7"
|
|
626
650
|
} : void 0
|
|
627
651
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasSvg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
628
652
|
(u(), v("svg", {
|
|
629
653
|
ref_key: "svgRef",
|
|
630
|
-
ref:
|
|
631
|
-
xmlns: n(
|
|
632
|
-
class:
|
|
633
|
-
viewBox: `0 0 ${
|
|
634
|
-
style:
|
|
654
|
+
ref: ye,
|
|
655
|
+
xmlns: n(Xt),
|
|
656
|
+
class: Ke({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value, animated: e.value.useCssAnimation }),
|
|
657
|
+
viewBox: `0 0 ${s.value.absoluteWidth} ${s.value.height}`,
|
|
658
|
+
style: j(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
635
659
|
}, [
|
|
636
|
-
Qe(n(
|
|
660
|
+
Qe(n(mt)),
|
|
637
661
|
a.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
638
662
|
key: 0,
|
|
639
663
|
x: 0,
|
|
640
664
|
y: 0,
|
|
641
|
-
width:
|
|
642
|
-
height:
|
|
665
|
+
width: s.value.absoluteWidth,
|
|
666
|
+
height: s.value.height,
|
|
643
667
|
style: {
|
|
644
668
|
pointerEvents: "none"
|
|
645
669
|
}
|
|
646
670
|
}, [
|
|
647
|
-
|
|
648
|
-
], 8,
|
|
671
|
+
_(a.$slots, "chart-background", {}, void 0, !0)
|
|
672
|
+
], 8, vo)) : p("", !0),
|
|
649
673
|
i("defs", null, [
|
|
650
674
|
i("radialGradient", {
|
|
651
|
-
id: `gradient_top${
|
|
675
|
+
id: `gradient_top${M.value}`
|
|
652
676
|
}, [
|
|
653
677
|
i("stop", {
|
|
654
678
|
offset: "0%",
|
|
655
679
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
656
|
-
}, null, 8,
|
|
680
|
+
}, null, 8, fo),
|
|
657
681
|
i("stop", {
|
|
658
682
|
offset: "100%",
|
|
659
683
|
"stop-color": e.value.style.chart.bar.color
|
|
660
|
-
}, null, 8,
|
|
661
|
-
], 8,
|
|
684
|
+
}, null, 8, po)
|
|
685
|
+
], 8, ho),
|
|
662
686
|
i("radialGradient", {
|
|
663
|
-
id: `gradient_tube_top${
|
|
687
|
+
id: `gradient_tube_top${M.value}`
|
|
664
688
|
}, [
|
|
665
689
|
i("stop", {
|
|
666
690
|
offset: "0%",
|
|
667
691
|
"stop-color": n($)(n(V)(e.value.style.chart.bar.color, 0.5), 80)
|
|
668
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, ko),
|
|
669
693
|
i("stop", {
|
|
670
694
|
offset: "100%",
|
|
671
695
|
"stop-color": n($)(n(q)(e.value.style.chart.bar.color, 0.1), 80)
|
|
672
|
-
}, null, 8,
|
|
673
|
-
], 8,
|
|
696
|
+
}, null, 8, yo)
|
|
697
|
+
], 8, go),
|
|
674
698
|
i("radialGradient", {
|
|
675
|
-
id: `gradient_left${
|
|
699
|
+
id: `gradient_left${M.value}`
|
|
676
700
|
}, [
|
|
677
701
|
i("stop", {
|
|
678
702
|
offset: "0%",
|
|
679
703
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
680
|
-
}, null, 8,
|
|
704
|
+
}, null, 8, bo),
|
|
681
705
|
i("stop", {
|
|
682
706
|
offset: "100%",
|
|
683
707
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
684
|
-
}, null, 8,
|
|
685
|
-
], 8,
|
|
708
|
+
}, null, 8, _o)
|
|
709
|
+
], 8, $o),
|
|
686
710
|
i("radialGradient", {
|
|
687
|
-
id: `gradient_right${
|
|
711
|
+
id: `gradient_right${M.value}`
|
|
688
712
|
}, [
|
|
689
713
|
i("stop", {
|
|
690
714
|
offset: "0%",
|
|
691
715
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
692
|
-
}, null, 8,
|
|
716
|
+
}, null, 8, Co),
|
|
693
717
|
i("stop", {
|
|
694
718
|
offset: "100%",
|
|
695
719
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
696
|
-
}, null, 8,
|
|
697
|
-
], 8,
|
|
720
|
+
}, null, 8, xo)
|
|
721
|
+
], 8, mo),
|
|
698
722
|
i("linearGradient", {
|
|
699
|
-
id: `gradient_tube_body${
|
|
723
|
+
id: `gradient_tube_body${M.value}`,
|
|
700
724
|
x1: "0%",
|
|
701
725
|
y1: "0%",
|
|
702
726
|
x2: "100%",
|
|
@@ -705,69 +729,69 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
705
729
|
i("stop", {
|
|
706
730
|
offset: "0%",
|
|
707
731
|
"stop-color": `${e.value.style.chart.bar.color}`
|
|
708
|
-
}, null, 8,
|
|
732
|
+
}, null, 8, Ao),
|
|
709
733
|
i("stop", {
|
|
710
734
|
offset: "10%",
|
|
711
735
|
"stop-color": n($)(n(q)(e.value.style.chart.bar.color, 0.7), 100)
|
|
712
|
-
}, null, 8,
|
|
736
|
+
}, null, 8, Do),
|
|
713
737
|
i("stop", {
|
|
714
738
|
offset: "25%",
|
|
715
739
|
"stop-color": n($)(n(q)(e.value.style.chart.bar.color, 0.5), 100)
|
|
716
|
-
}, null, 8,
|
|
740
|
+
}, null, 8, Fo),
|
|
717
741
|
i("stop", {
|
|
718
742
|
offset: "75%",
|
|
719
743
|
"stop-color": n($)(e.value.style.chart.bar.color, 80)
|
|
720
|
-
}, null, 8,
|
|
744
|
+
}, null, 8, Mo),
|
|
721
745
|
i("stop", {
|
|
722
746
|
offset: "100%",
|
|
723
747
|
"stop-color": n($)(n(V)(e.value.style.chart.bar.color, 0.7), 100)
|
|
724
|
-
}, null, 8,
|
|
725
|
-
], 8,
|
|
748
|
+
}, null, 8, To)
|
|
749
|
+
], 8, wo)
|
|
726
750
|
]),
|
|
727
|
-
|
|
728
|
-
(u(!0), v(
|
|
751
|
+
w.value ? (u(), v("defs", Po, [
|
|
752
|
+
(u(!0), v(D, null, F(A.value, (t) => (u(), v("radialGradient", {
|
|
729
753
|
id: `grad_top_${t.id}`
|
|
730
754
|
}, [
|
|
731
755
|
i("stop", {
|
|
732
756
|
offset: "0%",
|
|
733
757
|
"stop-color": n($)(n(V)(t.color, 0.5), 80)
|
|
734
|
-
}, null, 8,
|
|
758
|
+
}, null, 8, Bo),
|
|
735
759
|
i("stop", {
|
|
736
760
|
offset: "100%",
|
|
737
761
|
"stop-color": t.color
|
|
738
|
-
}, null, 8,
|
|
739
|
-
], 8,
|
|
740
|
-
(u(!0), v(
|
|
762
|
+
}, null, 8, Oo)
|
|
763
|
+
], 8, So))), 256)),
|
|
764
|
+
(u(!0), v(D, null, F(A.value, (t) => (u(), v("linearGradient", {
|
|
741
765
|
id: `grad_left_${t.id}`
|
|
742
766
|
}, [
|
|
743
767
|
i("stop", {
|
|
744
768
|
offset: "0%",
|
|
745
769
|
"stop-color": n($)(t.color, 80)
|
|
746
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, jo),
|
|
747
771
|
i("stop", {
|
|
748
772
|
offset: "100%",
|
|
749
773
|
"stop-color": n($)(n(q)(t.color, 0.5), 100)
|
|
750
|
-
}, null, 8,
|
|
751
|
-
], 8,
|
|
752
|
-
(u(!0), v(
|
|
774
|
+
}, null, 8, zo)
|
|
775
|
+
], 8, Eo))), 256)),
|
|
776
|
+
(u(!0), v(D, null, F(A.value, (t) => (u(), v("linearGradient", {
|
|
753
777
|
id: `grad_right_${t.id}`
|
|
754
778
|
}, [
|
|
755
779
|
i("stop", {
|
|
756
780
|
offset: "2%",
|
|
757
781
|
"stop-color": n($)(n(V)(t.color, 0.5), 100)
|
|
758
|
-
}, null, 8,
|
|
782
|
+
}, null, 8, No),
|
|
759
783
|
i("stop", {
|
|
760
784
|
offset: "100%",
|
|
761
785
|
"stop-color": n($)(t.color, 80)
|
|
762
|
-
}, null, 8,
|
|
763
|
-
], 8,
|
|
786
|
+
}, null, 8, Lo)
|
|
787
|
+
], 8, Io))), 256)),
|
|
764
788
|
i("linearGradient", {
|
|
765
789
|
x1: "0%",
|
|
766
790
|
y1: "0%",
|
|
767
791
|
x2: "0%",
|
|
768
792
|
y2: "100%",
|
|
769
|
-
id: `vertical_line_${
|
|
770
|
-
}, [...
|
|
793
|
+
id: `vertical_line_${M.value}`
|
|
794
|
+
}, [...l[10] || (l[10] = [
|
|
771
795
|
i("stop", {
|
|
772
796
|
offset: "0%",
|
|
773
797
|
"stop-color": "#FFFFFF"
|
|
@@ -776,189 +800,189 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
776
800
|
offset: "100%",
|
|
777
801
|
"stop-color": "#FFFFFF33"
|
|
778
802
|
}, null, -1)
|
|
779
|
-
])], 8,
|
|
803
|
+
])], 8, Wo)
|
|
780
804
|
])) : p("", !0),
|
|
781
|
-
e.value.style.chart.dataLabel.show && ![null, void 0].includes(n(
|
|
805
|
+
e.value.style.chart.dataLabel.show && ![null, void 0].includes(n(B).percentage) && [null, void 0].includes(n(B).series) ? (u(), v("text", {
|
|
782
806
|
key: 2,
|
|
783
|
-
x:
|
|
784
|
-
y:
|
|
807
|
+
x: s.value.width / 2,
|
|
808
|
+
y: s.value.top - e.value.style.chart.dataLabel.fontSize / 2,
|
|
785
809
|
"font-size": e.value.style.chart.dataLabel.fontSize,
|
|
786
810
|
"font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
787
811
|
fill: e.value.style.chart.dataLabel.color,
|
|
788
812
|
"text-anchor": "middle"
|
|
789
|
-
},
|
|
813
|
+
}, N(n(O)({
|
|
790
814
|
v: K.value,
|
|
791
815
|
s: "%",
|
|
792
816
|
r: e.value.style.chart.dataLabel.rounding
|
|
793
|
-
})), 9,
|
|
794
|
-
|
|
817
|
+
})), 9, Ro)) : p("", !0),
|
|
818
|
+
E.value ? (u(), v("g", {
|
|
795
819
|
key: 3,
|
|
796
820
|
role: "button",
|
|
797
821
|
tabindex: "0",
|
|
798
822
|
"aria-label": "Clear selection",
|
|
799
|
-
onClick:
|
|
800
|
-
|
|
823
|
+
onClick: l[0] || (l[0] = (t) => {
|
|
824
|
+
E.value = !1, m.value = null;
|
|
801
825
|
}),
|
|
802
826
|
onKeydown: [
|
|
803
|
-
|
|
804
|
-
|
|
827
|
+
l[1] || (l[1] = et(tt((t) => {
|
|
828
|
+
E.value = !1, m.value = null;
|
|
805
829
|
}, ["prevent"]), ["enter"])),
|
|
806
|
-
|
|
807
|
-
|
|
830
|
+
l[2] || (l[2] = et(tt((t) => {
|
|
831
|
+
E.value = !1, m.value = null;
|
|
808
832
|
}, ["prevent"]), ["space"]))
|
|
809
833
|
],
|
|
810
|
-
onFocus:
|
|
811
|
-
onBlur:
|
|
812
|
-
onMouseenter:
|
|
813
|
-
onMouseleave:
|
|
834
|
+
onFocus: l[3] || (l[3] = (t) => le.value = !0),
|
|
835
|
+
onBlur: l[4] || (l[4] = (t) => le.value = !1),
|
|
836
|
+
onMouseenter: l[5] || (l[5] = (t) => le.value = !0),
|
|
837
|
+
onMouseleave: l[6] || (l[6] = (t) => le.value = !1),
|
|
814
838
|
class: "svg-btn",
|
|
815
839
|
"data-dom-to-png-ignore": "",
|
|
816
840
|
style: { cursor: "pointer", outline: "none" }
|
|
817
841
|
}, [
|
|
818
|
-
|
|
842
|
+
l[11] || (l[11] = i("title", null, "Clear selection", -1)),
|
|
819
843
|
i("rect", {
|
|
820
|
-
x:
|
|
821
|
-
y:
|
|
844
|
+
x: J.value - 12,
|
|
845
|
+
y: s.value.top - 24,
|
|
822
846
|
width: 24,
|
|
823
847
|
height: 24,
|
|
824
848
|
fill: "transparent",
|
|
825
849
|
"pointer-events": "all"
|
|
826
|
-
}, null, 8,
|
|
850
|
+
}, null, 8, Go),
|
|
827
851
|
i("circle", {
|
|
828
|
-
cx:
|
|
829
|
-
cy:
|
|
852
|
+
cx: J.value,
|
|
853
|
+
cy: s.value.top - 12,
|
|
830
854
|
r: "10",
|
|
831
855
|
fill: "none",
|
|
832
856
|
stroke: e.value.style.chart.color,
|
|
833
857
|
"stroke-width": "2",
|
|
834
858
|
"vector-effect": "non-scaling-stroke",
|
|
835
859
|
opacity: le.value ? 0.5 : 0
|
|
836
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, Vo),
|
|
837
861
|
i("path", {
|
|
838
|
-
d: `M${
|
|
862
|
+
d: `M${J.value - 6},${s.value.top - 18} ${J.value + 6},${s.value.top - 6}`,
|
|
839
863
|
stroke: e.value.style.chart.color,
|
|
840
864
|
"stroke-linecap": "round",
|
|
841
865
|
"stroke-width": "2",
|
|
842
866
|
"vector-effect": "non-scaling-stroke"
|
|
843
|
-
}, null, 8,
|
|
867
|
+
}, null, 8, Uo),
|
|
844
868
|
i("path", {
|
|
845
|
-
d: `M${
|
|
869
|
+
d: `M${J.value + 6},${s.value.top - 18} ${J.value - 6},${s.value.top - 6}`,
|
|
846
870
|
stroke: e.value.style.chart.color,
|
|
847
871
|
"stroke-linecap": "round",
|
|
848
872
|
"stroke-width": "2",
|
|
849
873
|
"vector-effect": "non-scaling-stroke"
|
|
850
|
-
}, null, 8,
|
|
874
|
+
}, null, 8, Ho)
|
|
851
875
|
], 32)) : p("", !0),
|
|
852
|
-
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), v("g",
|
|
853
|
-
|
|
876
|
+
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), v("g", Xo, [
|
|
877
|
+
w.value ? p("", !0) : (u(), v("g", Zo, [
|
|
854
878
|
i("path", {
|
|
855
879
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
856
|
-
d:
|
|
880
|
+
d: W.value.right,
|
|
857
881
|
stroke: e.value.style.chart.box.stroke,
|
|
858
882
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
859
883
|
"stroke-linejoin": "round",
|
|
860
884
|
"stroke-linecap": "round",
|
|
861
885
|
fill: "none"
|
|
862
|
-
}, null, 8,
|
|
886
|
+
}, null, 8, qo),
|
|
863
887
|
i("path", {
|
|
864
888
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
865
|
-
d:
|
|
889
|
+
d: W.value.left,
|
|
866
890
|
stroke: e.value.style.chart.box.stroke,
|
|
867
891
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
868
892
|
"stroke-linejoin": "round",
|
|
869
893
|
"stroke-linecap": "round",
|
|
870
894
|
fill: "none"
|
|
871
|
-
}, null, 8,
|
|
895
|
+
}, null, 8, Yo),
|
|
872
896
|
i("path", {
|
|
873
897
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
874
|
-
d:
|
|
898
|
+
d: W.value.side,
|
|
875
899
|
stroke: e.value.style.chart.box.stroke,
|
|
876
900
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
877
901
|
"stroke-linejoin": "round",
|
|
878
902
|
"stroke-linecap": "round",
|
|
879
903
|
fill: "none"
|
|
880
|
-
}, null, 8,
|
|
904
|
+
}, null, 8, Ko),
|
|
881
905
|
i("path", {
|
|
882
906
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
883
|
-
d:
|
|
907
|
+
d: W.value.topSides,
|
|
884
908
|
stroke: e.value.style.chart.box.stroke,
|
|
885
909
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
886
910
|
"stroke-linejoin": "round",
|
|
887
911
|
"stroke-linecap": "round",
|
|
888
912
|
fill: "none"
|
|
889
|
-
}, null, 8,
|
|
913
|
+
}, null, 8, Jo)
|
|
890
914
|
])),
|
|
891
|
-
|
|
915
|
+
w.value ? p("", !0) : (u(), v("g", Qo, [
|
|
892
916
|
i("path", {
|
|
893
|
-
d:
|
|
917
|
+
d: Q.value.right,
|
|
894
918
|
stroke: e.value.style.chart.bar.stroke,
|
|
895
919
|
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
896
920
|
"stroke-linejoin": "round",
|
|
897
921
|
"stroke-linecap": "round",
|
|
898
|
-
fill: `url(#gradient_right${
|
|
899
|
-
}, null, 8,
|
|
922
|
+
fill: `url(#gradient_right${M.value})`
|
|
923
|
+
}, null, 8, el),
|
|
900
924
|
i("path", {
|
|
901
|
-
d:
|
|
925
|
+
d: Q.value.left,
|
|
902
926
|
stroke: e.value.style.chart.bar.stroke,
|
|
903
927
|
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
904
928
|
"stroke-linejoin": "round",
|
|
905
929
|
"stroke-linecap": "round",
|
|
906
|
-
fill: `url(#gradient_left${
|
|
907
|
-
}, null, 8,
|
|
930
|
+
fill: `url(#gradient_left${M.value})`
|
|
931
|
+
}, null, 8, tl),
|
|
908
932
|
i("path", {
|
|
909
|
-
d:
|
|
933
|
+
d: Q.value.top,
|
|
910
934
|
stroke: e.value.style.chart.bar.stroke,
|
|
911
935
|
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
912
936
|
"stroke-linejoin": "round",
|
|
913
937
|
"stroke-linecap": "round",
|
|
914
|
-
fill: `url(#gradient_top${
|
|
915
|
-
}, null, 8,
|
|
938
|
+
fill: `url(#gradient_top${M.value})`
|
|
939
|
+
}, null, 8, ol)
|
|
916
940
|
])),
|
|
917
|
-
|
|
918
|
-
(u(!0), v(
|
|
919
|
-
style:
|
|
941
|
+
w.value ? (u(), v("g", ll, [
|
|
942
|
+
(u(!0), v(D, null, F(A.value, (t, d) => (u(), v("g", {
|
|
943
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
920
944
|
class: "vue-ui-3d-bar-stack"
|
|
921
945
|
}, [
|
|
922
946
|
i("path", {
|
|
923
947
|
d: t.fill.right,
|
|
924
948
|
fill: `url(#grad_right_${t.id})`,
|
|
925
|
-
onMouseenter: (o) =>
|
|
926
|
-
onClick: (o) =>
|
|
949
|
+
onMouseenter: (o) => T(t),
|
|
950
|
+
onClick: (o) => T(t, !0),
|
|
927
951
|
onMouseout: (o) => X(t)
|
|
928
|
-
}, null, 40,
|
|
952
|
+
}, null, 40, al),
|
|
929
953
|
i("path", {
|
|
930
954
|
d: t.fill.left,
|
|
931
955
|
fill: `url(#grad_left_${t.id})`,
|
|
932
|
-
onMouseenter: (o) =>
|
|
933
|
-
onClick: (o) =>
|
|
956
|
+
onMouseenter: (o) => T(t),
|
|
957
|
+
onClick: (o) => T(t, !0),
|
|
934
958
|
onMouseout: (o) => X(t)
|
|
935
|
-
}, null, 40,
|
|
959
|
+
}, null, 40, sl),
|
|
936
960
|
i("path", {
|
|
937
961
|
d: t.fill.top,
|
|
938
962
|
fill: `url(#grad_top_${t.id})`,
|
|
939
|
-
onMouseenter: (o) =>
|
|
940
|
-
onClick: (o) =>
|
|
963
|
+
onMouseenter: (o) => T(t),
|
|
964
|
+
onClick: (o) => T(t, !0),
|
|
941
965
|
onMouseout: (o) => X(t)
|
|
942
|
-
}, null, 40,
|
|
966
|
+
}, null, 40, nl),
|
|
943
967
|
i("path", {
|
|
944
968
|
d: t.fill.liningTop,
|
|
945
969
|
stroke: "#FFFFFF",
|
|
946
970
|
"stroke-width": "0.5",
|
|
947
971
|
"stroke-linecap": "round",
|
|
948
972
|
fill: "none",
|
|
949
|
-
onMouseenter: (o) =>
|
|
950
|
-
onClick: (o) =>
|
|
973
|
+
onMouseenter: (o) => T(t),
|
|
974
|
+
onClick: (o) => T(t, !0),
|
|
951
975
|
onMouseout: (o) => X(t)
|
|
952
|
-
}, null, 40,
|
|
976
|
+
}, null, 40, rl),
|
|
953
977
|
i("path", {
|
|
954
978
|
d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
|
|
955
979
|
stroke: "#FFFFFF",
|
|
956
980
|
"stroke-width": "0.5",
|
|
957
981
|
"stroke-linecap": "round"
|
|
958
|
-
}, null, 8,
|
|
982
|
+
}, null, 8, ul)
|
|
959
983
|
], 4))), 256)),
|
|
960
|
-
(u(!0), v(
|
|
961
|
-
|
|
984
|
+
(u(!0), v(D, null, F(A.value, (t, d) => (u(), v("g", null, [
|
|
985
|
+
d !== A.value.length - 1 ? (u(), v("path", {
|
|
962
986
|
key: 0,
|
|
963
987
|
d: t.fill.liningTopShade,
|
|
964
988
|
stroke: e.value.style.chart.bar.shadeColor,
|
|
@@ -966,10 +990,10 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
966
990
|
"stroke-linecap": "round",
|
|
967
991
|
fill: "none",
|
|
968
992
|
style: { "pointer-events": "none" }
|
|
969
|
-
}, null, 8,
|
|
993
|
+
}, null, 8, il)) : p("", !0)
|
|
970
994
|
]))), 256)),
|
|
971
|
-
(u(!0), v(
|
|
972
|
-
style:
|
|
995
|
+
(u(!0), v(D, null, F(A.value, (t, d) => (u(), v("g", {
|
|
996
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
973
997
|
onClick: (o) => ne("selectDatapoint", t)
|
|
974
998
|
}, [
|
|
975
999
|
i("path", {
|
|
@@ -978,175 +1002,175 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
978
1002
|
"stroke-width": "0.5",
|
|
979
1003
|
"stroke-linecap": "round",
|
|
980
1004
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
981
|
-
}, null, 8,
|
|
982
|
-
!t.fill.miniDonut ||
|
|
1005
|
+
}, null, 8, cl),
|
|
1006
|
+
!t.fill.miniDonut || m.value ? (u(), v("circle", {
|
|
983
1007
|
key: 0,
|
|
984
1008
|
cx: t.fill.sidePointer.x2,
|
|
985
1009
|
cy: t.fill.sidePointer.y,
|
|
986
1010
|
r: 2,
|
|
987
1011
|
fill: t.color,
|
|
988
1012
|
stroke: e.value.style.chart.backgroundColor
|
|
989
|
-
}, null, 8,
|
|
1013
|
+
}, null, 8, vl)) : p("", !0),
|
|
990
1014
|
n(Y) ? (u(), v("rect", {
|
|
991
1015
|
key: 1,
|
|
992
1016
|
x: t.fill.sidePointer.xText,
|
|
993
1017
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
994
|
-
width:
|
|
1018
|
+
width: s.value.width / 3,
|
|
995
1019
|
height: e.value.style.chart.legend.fontSize,
|
|
996
1020
|
fill: "#6A6A6A80",
|
|
997
1021
|
rx: "3"
|
|
998
|
-
}, null, 8,
|
|
1022
|
+
}, null, 8, hl)) : p("", !0),
|
|
999
1023
|
n(Y) ? p("", !0) : (u(), v("foreignObject", {
|
|
1000
1024
|
key: 2,
|
|
1001
1025
|
x: t.fill.sidePointer.xText,
|
|
1002
1026
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
1003
|
-
width:
|
|
1027
|
+
width: s.value.absoluteWidth / 3,
|
|
1004
1028
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
1005
1029
|
style: { overflow: "visible", position: "relative" }
|
|
1006
1030
|
}, [
|
|
1007
1031
|
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
1008
1032
|
key: 0,
|
|
1009
|
-
style:
|
|
1010
|
-
},
|
|
1033
|
+
style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
|
|
1034
|
+
}, N(n(fe)(
|
|
1011
1035
|
e.value.style.chart.dataLabel.formatter,
|
|
1012
1036
|
t.value,
|
|
1013
|
-
`${t.name}: ${n(
|
|
1037
|
+
`${t.name}: ${n(O)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(O)({
|
|
1014
1038
|
p: e.value.style.chart.legend.prefix,
|
|
1015
1039
|
v: t.value,
|
|
1016
1040
|
s: e.value.style.chart.legend.suffix,
|
|
1017
1041
|
r: e.value.style.chart.legend.roundingValue
|
|
1018
1042
|
})})`,
|
|
1019
|
-
{ datapoint: t, seriesIndex:
|
|
1043
|
+
{ datapoint: t, seriesIndex: d, type: "barDatapoint" }
|
|
1020
1044
|
)), 5)) : p("", !0),
|
|
1021
|
-
|
|
1022
|
-
], 8,
|
|
1023
|
-
t.fill.donut &&
|
|
1024
|
-
(u(!0), v(
|
|
1045
|
+
_(a.$slots, "legend", we({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: A.value }), void 0, !0)
|
|
1046
|
+
], 8, fl)),
|
|
1047
|
+
t.fill.donut && m.value === t.id ? (u(), v("g", pl, [
|
|
1048
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1025
1049
|
ee(o, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
1026
1050
|
key: 0,
|
|
1027
|
-
d: n(
|
|
1051
|
+
d: n(nt)(o, { x: o.cx, y: o.cy }, 0, 8, !1, !0, 10),
|
|
1028
1052
|
stroke: o.color,
|
|
1029
1053
|
class: "vue-ui-donut-arc-path",
|
|
1030
1054
|
"stroke-width": "0.5",
|
|
1031
1055
|
"stroke-linecap": "round",
|
|
1032
1056
|
"stroke-linejoin": "round",
|
|
1033
1057
|
fill: "none"
|
|
1034
|
-
}, null, 8,
|
|
1058
|
+
}, null, 8, gl)) : p("", !0)
|
|
1035
1059
|
]))), 256)),
|
|
1036
|
-
(u(!0), v(
|
|
1060
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("path", {
|
|
1037
1061
|
class: "vue-ui-donut-arc-path",
|
|
1038
1062
|
d: o.arcSlice,
|
|
1039
1063
|
fill: `${o.color}`,
|
|
1040
1064
|
stroke: e.value.style.chart.backgroundColor,
|
|
1041
1065
|
"stroke-width": 1
|
|
1042
|
-
}, null, 8,
|
|
1043
|
-
(u(!0), v(
|
|
1044
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g",
|
|
1066
|
+
}, null, 8, kl))), 256)),
|
|
1067
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1068
|
+
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g", yl, [
|
|
1045
1069
|
i("text", {
|
|
1046
1070
|
"text-anchor": n(U)(o, !0, 0).anchor,
|
|
1047
1071
|
x: n(U)(o, !0, 2).x,
|
|
1048
1072
|
y: n(pe)(o, 12, 12),
|
|
1049
1073
|
fill: e.value.style.chart.legend.color,
|
|
1050
1074
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1051
|
-
},
|
|
1075
|
+
}, N(n(fe)(
|
|
1052
1076
|
e.value.style.chart.dataLabel.formatter,
|
|
1053
1077
|
o.value,
|
|
1054
|
-
`${ee(o, t.fill.donut)} (${n(
|
|
1078
|
+
`${ee(o, t.fill.donut)} (${n(O)({
|
|
1055
1079
|
p: e.value.style.chart.legend.prefix,
|
|
1056
1080
|
v: o.value,
|
|
1057
1081
|
s: e.value.style.chart.legend.suffix,
|
|
1058
1082
|
r: e.value.style.chart.legend.roundingValue
|
|
1059
1083
|
})})`,
|
|
1060
|
-
{ datapoint: o, seriesIndex:
|
|
1061
|
-
)), 9,
|
|
1084
|
+
{ datapoint: o, seriesIndex: c, type: "donutDatapoint" }
|
|
1085
|
+
)), 9, $l),
|
|
1062
1086
|
i("text", {
|
|
1063
1087
|
"text-anchor": n(U)(o).anchor,
|
|
1064
1088
|
x: n(U)(o, !0, 2).x,
|
|
1065
1089
|
y: n(pe)(o, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1066
1090
|
fill: e.value.style.chart.legend.color,
|
|
1067
1091
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1068
|
-
},
|
|
1092
|
+
}, N(o.name), 9, bl)
|
|
1069
1093
|
])) : p("", !0)
|
|
1070
1094
|
]))), 256))
|
|
1071
1095
|
])) : p("", !0),
|
|
1072
|
-
t.fill.miniDonut && !
|
|
1073
|
-
(u(!0), v(
|
|
1096
|
+
t.fill.miniDonut && !m.value ? (u(), v("g", _l, [
|
|
1097
|
+
(u(!0), v(D, null, F(t.fill.miniDonut, (o, c) => (u(), v("path", {
|
|
1074
1098
|
class: "vue-ui-donut-arc-path",
|
|
1075
1099
|
d: o.arcSlice,
|
|
1076
1100
|
fill: `${o.color}`,
|
|
1077
1101
|
stroke: e.value.style.chart.backgroundColor,
|
|
1078
1102
|
"stroke-width": 0.5
|
|
1079
|
-
}, null, 8,
|
|
1103
|
+
}, null, 8, ml))), 256))
|
|
1080
1104
|
])) : p("", !0)
|
|
1081
|
-
], 12,
|
|
1105
|
+
], 12, dl))), 256))
|
|
1082
1106
|
])) : p("", !0)
|
|
1083
1107
|
])) : p("", !0),
|
|
1084
|
-
e.value.style.shape === "tube" ? (u(), v("g",
|
|
1085
|
-
|
|
1108
|
+
e.value.style.shape === "tube" ? (u(), v("g", Cl, [
|
|
1109
|
+
w.value ? p("", !0) : (u(), v("g", xl, [
|
|
1086
1110
|
i("path", {
|
|
1087
1111
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1088
|
-
d:
|
|
1112
|
+
d: W.value.tubeTop,
|
|
1089
1113
|
stroke: e.value.style.chart.box.stroke,
|
|
1090
1114
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1091
1115
|
"stroke-linejoin": "round",
|
|
1092
1116
|
"stroke-linecap": "round",
|
|
1093
1117
|
fill: "none"
|
|
1094
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, wl),
|
|
1095
1119
|
i("path", {
|
|
1096
1120
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1097
|
-
d:
|
|
1121
|
+
d: W.value.tubeLeft,
|
|
1098
1122
|
stroke: e.value.style.chart.box.stroke,
|
|
1099
1123
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1100
1124
|
"stroke-linejoin": "round",
|
|
1101
1125
|
"stroke-linecap": "round",
|
|
1102
1126
|
fill: "none"
|
|
1103
|
-
}, null, 8,
|
|
1127
|
+
}, null, 8, Al),
|
|
1104
1128
|
i("path", {
|
|
1105
1129
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1106
|
-
d:
|
|
1130
|
+
d: W.value.tubeRight,
|
|
1107
1131
|
stroke: e.value.style.chart.box.stroke,
|
|
1108
1132
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1109
1133
|
"stroke-linejoin": "round",
|
|
1110
1134
|
"stroke-linecap": "round",
|
|
1111
1135
|
fill: "none"
|
|
1112
|
-
}, null, 8,
|
|
1136
|
+
}, null, 8, Dl),
|
|
1113
1137
|
i("path", {
|
|
1114
1138
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1115
|
-
d:
|
|
1139
|
+
d: W.value.tubeBottom,
|
|
1116
1140
|
stroke: e.value.style.chart.box.stroke,
|
|
1117
1141
|
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1118
1142
|
"stroke-linejoin": "round",
|
|
1119
1143
|
"stroke-linecap": "round",
|
|
1120
1144
|
fill: "none"
|
|
1121
|
-
}, null, 8,
|
|
1145
|
+
}, null, 8, Fl),
|
|
1122
1146
|
i("path", {
|
|
1123
|
-
d:
|
|
1147
|
+
d: Q.value.tubeTop,
|
|
1124
1148
|
stroke: e.value.style.chart.bar.stroke,
|
|
1125
1149
|
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
1126
1150
|
"stroke-linejoin": "round",
|
|
1127
1151
|
"stroke-linecap": "round",
|
|
1128
|
-
fill: `url(#gradient_tube_top${
|
|
1129
|
-
}, null, 8,
|
|
1152
|
+
fill: `url(#gradient_tube_top${M.value})`
|
|
1153
|
+
}, null, 8, Ml),
|
|
1130
1154
|
i("path", {
|
|
1131
|
-
d:
|
|
1155
|
+
d: Q.value.tubeBody,
|
|
1132
1156
|
stroke: e.value.style.chart.bar.stroke,
|
|
1133
1157
|
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
1134
1158
|
"stroke-linejoin": "round",
|
|
1135
1159
|
"stroke-linecap": "round",
|
|
1136
|
-
fill: `url(#gradient_tube_body${
|
|
1137
|
-
}, null, 8,
|
|
1160
|
+
fill: `url(#gradient_tube_body${M.value})`
|
|
1161
|
+
}, null, 8, Tl),
|
|
1138
1162
|
i("path", {
|
|
1139
|
-
d:
|
|
1163
|
+
d: Q.value.tubeTop,
|
|
1140
1164
|
stroke: "#FFFFFF",
|
|
1141
1165
|
"stroke-width": 0.5,
|
|
1142
1166
|
"stroke-linejoin": "round",
|
|
1143
1167
|
"stroke-linecap": "round",
|
|
1144
1168
|
fill: "none"
|
|
1145
|
-
}, null, 8,
|
|
1169
|
+
}, null, 8, Pl)
|
|
1146
1170
|
])),
|
|
1147
|
-
|
|
1148
|
-
(u(!0), v(
|
|
1149
|
-
style:
|
|
1171
|
+
w.value ? (u(), v("g", Sl, [
|
|
1172
|
+
(u(!0), v(D, null, F(A.value, (t, d) => (u(), v("g", {
|
|
1173
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
1150
1174
|
class: "vue-ui-3d-bar-stack",
|
|
1151
1175
|
onClick: (o) => ne("selectDatapoint", t)
|
|
1152
1176
|
}, [
|
|
@@ -1159,12 +1183,12 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1159
1183
|
i("stop", {
|
|
1160
1184
|
offset: "0%",
|
|
1161
1185
|
"stop-color": n($)(n(V)(t.color, 0.5), 80)
|
|
1162
|
-
}, null, 8,
|
|
1186
|
+
}, null, 8, El),
|
|
1163
1187
|
i("stop", {
|
|
1164
1188
|
offset: "100%",
|
|
1165
1189
|
"stop-color": n($)(n(q)(t.color, 0.1), 80)
|
|
1166
|
-
}, null, 8,
|
|
1167
|
-
], 8,
|
|
1190
|
+
}, null, 8, jl)
|
|
1191
|
+
], 8, Ol),
|
|
1168
1192
|
i("linearGradient", {
|
|
1169
1193
|
id: `gradient_tube_body_${t.id}`,
|
|
1170
1194
|
x1: "0%",
|
|
@@ -1175,28 +1199,28 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1175
1199
|
i("stop", {
|
|
1176
1200
|
offset: "0%",
|
|
1177
1201
|
"stop-color": `${t.color}`
|
|
1178
|
-
}, null, 8,
|
|
1202
|
+
}, null, 8, Il),
|
|
1179
1203
|
i("stop", {
|
|
1180
1204
|
offset: "10%",
|
|
1181
1205
|
"stop-color": n($)(n(q)(t.color, 0.7), 100)
|
|
1182
|
-
}, null, 8,
|
|
1206
|
+
}, null, 8, Nl),
|
|
1183
1207
|
i("stop", {
|
|
1184
1208
|
offset: "25%",
|
|
1185
1209
|
"stop-color": n($)(n(q)(t.color, 0.5), 100)
|
|
1186
|
-
}, null, 8,
|
|
1210
|
+
}, null, 8, Ll),
|
|
1187
1211
|
i("stop", {
|
|
1188
1212
|
offset: "75%",
|
|
1189
1213
|
"stop-color": n($)(t.color, 80)
|
|
1190
|
-
}, null, 8,
|
|
1214
|
+
}, null, 8, Wl),
|
|
1191
1215
|
i("stop", {
|
|
1192
1216
|
offset: "100%",
|
|
1193
1217
|
"stop-color": n($)(n(V)(t.color, 0.7), 100)
|
|
1194
|
-
}, null, 8,
|
|
1195
|
-
], 8,
|
|
1218
|
+
}, null, 8, Rl)
|
|
1219
|
+
], 8, zl)
|
|
1196
1220
|
]),
|
|
1197
1221
|
i("path", {
|
|
1198
|
-
onMouseenter: (o) =>
|
|
1199
|
-
onClick: (o) =>
|
|
1222
|
+
onMouseenter: (o) => T(t),
|
|
1223
|
+
onClick: (o) => T(t, !0),
|
|
1200
1224
|
onMouseout: (o) => X(t),
|
|
1201
1225
|
d: t.fill.tubeBody,
|
|
1202
1226
|
stroke: "#FFFFFF",
|
|
@@ -1204,11 +1228,11 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1204
1228
|
"stroke-linejoin": "round",
|
|
1205
1229
|
"stroke-linecap": "round",
|
|
1206
1230
|
fill: `url(#gradient_tube_body_${t.id})`
|
|
1207
|
-
}, null, 40,
|
|
1208
|
-
|
|
1231
|
+
}, null, 40, Gl),
|
|
1232
|
+
d > 0 ? (u(), v("path", {
|
|
1209
1233
|
key: 0,
|
|
1210
|
-
onMouseenter: (o) =>
|
|
1211
|
-
onClick: (o) =>
|
|
1234
|
+
onMouseenter: (o) => T(t),
|
|
1235
|
+
onClick: (o) => T(t, !0),
|
|
1212
1236
|
onMouseout: (o) => X(t),
|
|
1213
1237
|
d: t.fill.bottomTubeTop,
|
|
1214
1238
|
stroke: "#000000",
|
|
@@ -1216,10 +1240,10 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1216
1240
|
"stroke-linejoin": "round",
|
|
1217
1241
|
"stroke-linecap": "round",
|
|
1218
1242
|
fill: "none"
|
|
1219
|
-
}, null, 40,
|
|
1243
|
+
}, null, 40, Vl)) : p("", !0),
|
|
1220
1244
|
i("path", {
|
|
1221
|
-
onMouseenter: (o) =>
|
|
1222
|
-
onClick: (o) =>
|
|
1245
|
+
onMouseenter: (o) => T(t),
|
|
1246
|
+
onClick: (o) => T(t, !0),
|
|
1223
1247
|
onMouseout: (o) => X(t),
|
|
1224
1248
|
d: t.fill.tubeTop,
|
|
1225
1249
|
stroke: "#FFFFFF",
|
|
@@ -1227,10 +1251,10 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1227
1251
|
"stroke-linejoin": "round",
|
|
1228
1252
|
"stroke-linecap": "round",
|
|
1229
1253
|
fill: `url(#gradient_tube_top_${t.id})`
|
|
1230
|
-
}, null, 40,
|
|
1231
|
-
], 12,
|
|
1232
|
-
(u(!0), v(
|
|
1233
|
-
style:
|
|
1254
|
+
}, null, 40, Ul)
|
|
1255
|
+
], 12, Bl))), 256)),
|
|
1256
|
+
(u(!0), v(D, null, F(A.value, (t, d) => (u(), v("g", {
|
|
1257
|
+
style: j(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1234
1258
|
onClick: (o) => ne("selectDatapoint", t)
|
|
1235
1259
|
}, [
|
|
1236
1260
|
i("path", {
|
|
@@ -1239,146 +1263,146 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1239
1263
|
"stroke-width": "0.5",
|
|
1240
1264
|
"stroke-linecap": "round",
|
|
1241
1265
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1242
|
-
}, null, 8,
|
|
1243
|
-
!t.fill.miniDonut ||
|
|
1266
|
+
}, null, 8, Xl),
|
|
1267
|
+
!t.fill.miniDonut || m.value ? (u(), v("circle", {
|
|
1244
1268
|
key: 0,
|
|
1245
1269
|
cx: t.fill.sidePointer.x2,
|
|
1246
1270
|
cy: t.fill.sidePointer.y,
|
|
1247
1271
|
r: 2,
|
|
1248
1272
|
fill: t.color,
|
|
1249
1273
|
stroke: e.value.style.chart.backgroundColor
|
|
1250
|
-
}, null, 8,
|
|
1274
|
+
}, null, 8, Zl)) : p("", !0),
|
|
1251
1275
|
n(Y) ? (u(), v("rect", {
|
|
1252
1276
|
key: 1,
|
|
1253
1277
|
x: t.fill.sidePointer.xText,
|
|
1254
1278
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
1255
|
-
width:
|
|
1279
|
+
width: s.value.width / 3,
|
|
1256
1280
|
height: e.value.style.chart.legend.fontSize,
|
|
1257
1281
|
fill: "#6A6A6A80",
|
|
1258
1282
|
rx: "3"
|
|
1259
|
-
}, null, 8,
|
|
1283
|
+
}, null, 8, ql)) : p("", !0),
|
|
1260
1284
|
n(Y) ? p("", !0) : (u(), v("foreignObject", {
|
|
1261
1285
|
key: 2,
|
|
1262
1286
|
x: t.fill.sidePointer.xText,
|
|
1263
1287
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
1264
|
-
width:
|
|
1288
|
+
width: s.value.absoluteWidth / 3,
|
|
1265
1289
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
1266
1290
|
style: { overflow: "visible", position: "relative" }
|
|
1267
1291
|
}, [
|
|
1268
1292
|
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
1269
1293
|
key: 0,
|
|
1270
|
-
style:
|
|
1271
|
-
},
|
|
1294
|
+
style: j(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}`)
|
|
1295
|
+
}, N(n(fe)(
|
|
1272
1296
|
e.value.style.chart.dataLabel.formatter,
|
|
1273
1297
|
t.value,
|
|
1274
|
-
`${t.name}: ${n(
|
|
1298
|
+
`${t.name}: ${n(O)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(O)({
|
|
1275
1299
|
p: e.value.style.chart.legend.prefix,
|
|
1276
1300
|
v: t.value,
|
|
1277
1301
|
s: e.value.style.chart.legend.suffix,
|
|
1278
1302
|
r: e.value.style.chart.legend.roundingValue
|
|
1279
1303
|
})})`,
|
|
1280
|
-
{ datapoint: t, seriesIndex:
|
|
1304
|
+
{ datapoint: t, seriesIndex: d, type: "barDatapoint" }
|
|
1281
1305
|
)), 5)) : p("", !0),
|
|
1282
|
-
|
|
1283
|
-
], 8,
|
|
1284
|
-
t.fill.donut &&
|
|
1285
|
-
(u(!0), v(
|
|
1306
|
+
_(a.$slots, "legend", we({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: A.value }), void 0, !0)
|
|
1307
|
+
], 8, Yl)),
|
|
1308
|
+
t.fill.donut && m.value === t.id ? (u(), v("g", Kl, [
|
|
1309
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1286
1310
|
ee(o, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
1287
1311
|
key: 0,
|
|
1288
|
-
d: n(
|
|
1312
|
+
d: n(nt)(o, { x: o.cx, y: o.cy }, 0, 8, !1, !0, 10),
|
|
1289
1313
|
stroke: o.color,
|
|
1290
1314
|
class: "vue-ui-donut-arc-path",
|
|
1291
1315
|
"stroke-width": "0.5",
|
|
1292
1316
|
"stroke-linecap": "round",
|
|
1293
1317
|
"stroke-linejoin": "round",
|
|
1294
1318
|
fill: "none"
|
|
1295
|
-
}, null, 8,
|
|
1319
|
+
}, null, 8, Jl)) : p("", !0)
|
|
1296
1320
|
]))), 256)),
|
|
1297
|
-
(u(!0), v(
|
|
1321
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("path", {
|
|
1298
1322
|
class: "vue-ui-donut-arc-path",
|
|
1299
1323
|
d: o.arcSlice,
|
|
1300
1324
|
fill: `${o.color}`,
|
|
1301
1325
|
stroke: e.value.style.chart.backgroundColor,
|
|
1302
1326
|
"stroke-width": 1
|
|
1303
|
-
}, null, 8,
|
|
1304
|
-
(u(!0), v(
|
|
1305
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g",
|
|
1327
|
+
}, null, 8, Ql))), 256)),
|
|
1328
|
+
(u(!0), v(D, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1329
|
+
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g", ea, [
|
|
1306
1330
|
i("text", {
|
|
1307
1331
|
"text-anchor": n(U)(o, !0, 0).anchor,
|
|
1308
1332
|
x: n(U)(o, !0, 2).x,
|
|
1309
1333
|
y: n(pe)(o, 12, 12),
|
|
1310
1334
|
fill: e.value.style.chart.legend.color,
|
|
1311
1335
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1312
|
-
},
|
|
1336
|
+
}, N(n(fe)(
|
|
1313
1337
|
e.value.style.chart.dataLabel.formatter,
|
|
1314
1338
|
o.value,
|
|
1315
|
-
`${ee(o, t.fill.donut)} (${n(
|
|
1339
|
+
`${ee(o, t.fill.donut)} (${n(O)({
|
|
1316
1340
|
p: e.value.style.chart.legend.prefix,
|
|
1317
1341
|
v: o.value,
|
|
1318
1342
|
s: e.value.style.chart.legend.suffix,
|
|
1319
1343
|
r: e.value.style.chart.legend.roundingValue
|
|
1320
1344
|
})})`,
|
|
1321
|
-
{ datapoint: o, seriesIndex:
|
|
1322
|
-
)), 9,
|
|
1345
|
+
{ datapoint: o, seriesIndex: c, type: "donutDatapoint" }
|
|
1346
|
+
)), 9, ta),
|
|
1323
1347
|
i("text", {
|
|
1324
1348
|
"text-anchor": n(U)(o).anchor,
|
|
1325
1349
|
x: n(U)(o, !0, 2).x,
|
|
1326
1350
|
y: n(pe)(o, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1327
1351
|
fill: e.value.style.chart.legend.color,
|
|
1328
1352
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1329
|
-
},
|
|
1353
|
+
}, N(o.name), 9, oa)
|
|
1330
1354
|
])) : p("", !0)
|
|
1331
1355
|
]))), 256))
|
|
1332
1356
|
])) : p("", !0),
|
|
1333
|
-
t.fill.miniDonut && !
|
|
1334
|
-
(u(!0), v(
|
|
1357
|
+
t.fill.miniDonut && !m.value ? (u(), v("g", la, [
|
|
1358
|
+
(u(!0), v(D, null, F(t.fill.miniDonut, (o, c) => (u(), v("path", {
|
|
1335
1359
|
class: "vue-ui-donut-arc-path",
|
|
1336
1360
|
d: o.arcSlice,
|
|
1337
1361
|
fill: `${o.color}`,
|
|
1338
1362
|
stroke: e.value.style.chart.backgroundColor,
|
|
1339
1363
|
"stroke-width": 0.5
|
|
1340
|
-
}, null, 8,
|
|
1364
|
+
}, null, 8, aa))), 256))
|
|
1341
1365
|
])) : p("", !0)
|
|
1342
|
-
], 12,
|
|
1366
|
+
], 12, Hl))), 256))
|
|
1343
1367
|
])) : p("", !0)
|
|
1344
1368
|
])) : p("", !0),
|
|
1345
|
-
|
|
1346
|
-
], 14,
|
|
1347
|
-
a.$slots.watermark ? (u(), v("div",
|
|
1348
|
-
|
|
1369
|
+
_(a.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
1370
|
+
], 14, co)),
|
|
1371
|
+
a.$slots.watermark ? (u(), v("div", sa, [
|
|
1372
|
+
_(a.$slots, "watermark", z(I({ isPrinting: n(Ee) || n(je) })), void 0, !0)
|
|
1349
1373
|
])) : p("", !0),
|
|
1350
1374
|
a.$slots.source ? (u(), v("div", {
|
|
1351
1375
|
key: 4,
|
|
1352
1376
|
ref_key: "source",
|
|
1353
|
-
ref:
|
|
1377
|
+
ref: Se,
|
|
1354
1378
|
dir: "auto"
|
|
1355
1379
|
}, [
|
|
1356
|
-
|
|
1380
|
+
_(a.$slots, "source", {}, void 0, !0)
|
|
1357
1381
|
], 512)) : p("", !0),
|
|
1358
|
-
Fe.value &&
|
|
1382
|
+
Fe.value && w.value && e.value.userOptions.buttons.table ? (u(), te(Lt(se.value.component), we({ key: 5 }, se.value.props, {
|
|
1359
1383
|
ref_key: "tableUnit",
|
|
1360
1384
|
ref: ae,
|
|
1361
|
-
onClose:
|
|
1362
|
-
}),
|
|
1363
|
-
content:
|
|
1364
|
-
(u(), te(n(
|
|
1365
|
-
key: `table_${
|
|
1385
|
+
onClose: Ue
|
|
1386
|
+
}), Je({
|
|
1387
|
+
content: x(() => [
|
|
1388
|
+
(u(), te(n($t), {
|
|
1389
|
+
key: `table_${Te.value}`,
|
|
1366
1390
|
colNames: de.value.colNames,
|
|
1367
1391
|
head: de.value.head,
|
|
1368
1392
|
body: de.value.body,
|
|
1369
1393
|
config: de.value.config,
|
|
1370
1394
|
title: e.value.table.useDialog ? "" : se.value.title,
|
|
1371
1395
|
withCloseButton: !e.value.table.useDialog,
|
|
1372
|
-
onClose:
|
|
1396
|
+
onClose: Ue
|
|
1373
1397
|
}, {
|
|
1374
|
-
th:
|
|
1398
|
+
th: x(({ th: t }) => [
|
|
1375
1399
|
i("div", {
|
|
1376
1400
|
innerHTML: t,
|
|
1377
1401
|
style: { display: "flex", "align-items": "center" }
|
|
1378
|
-
}, null, 8,
|
|
1402
|
+
}, null, 8, na)
|
|
1379
1403
|
]),
|
|
1380
|
-
td:
|
|
1381
|
-
|
|
1404
|
+
td: x(({ td: t }) => [
|
|
1405
|
+
ot(N(t.name || t), 1)
|
|
1382
1406
|
]),
|
|
1383
1407
|
_: 1
|
|
1384
1408
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1387,20 +1411,20 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1387
1411
|
}, [
|
|
1388
1412
|
e.value.table.useDialog ? {
|
|
1389
1413
|
name: "title",
|
|
1390
|
-
fn:
|
|
1391
|
-
|
|
1414
|
+
fn: x(() => [
|
|
1415
|
+
ot(N(se.value.title), 1)
|
|
1392
1416
|
]),
|
|
1393
1417
|
key: "0"
|
|
1394
1418
|
} : void 0,
|
|
1395
1419
|
e.value.table.useDialog ? {
|
|
1396
1420
|
name: "actions",
|
|
1397
|
-
fn:
|
|
1421
|
+
fn: x(() => [
|
|
1398
1422
|
i("button", {
|
|
1399
1423
|
tabindex: "0",
|
|
1400
1424
|
class: "vue-ui-user-options-button",
|
|
1401
|
-
onClick:
|
|
1425
|
+
onClick: l[7] || (l[7] = (t) => _e(e.value.userOptions.callbacks.csv))
|
|
1402
1426
|
}, [
|
|
1403
|
-
Qe(n(
|
|
1427
|
+
Qe(n(kt), {
|
|
1404
1428
|
name: "excel",
|
|
1405
1429
|
stroke: se.value.props.color
|
|
1406
1430
|
}, null, 8, ["stroke"])
|
|
@@ -1409,10 +1433,15 @@ const eo = ["id"], to = ["xmlns", "viewBox"], oo = ["width", "height"], lo = ["i
|
|
|
1409
1433
|
key: "1"
|
|
1410
1434
|
} : void 0
|
|
1411
1435
|
]), 1040)) : p("", !0),
|
|
1412
|
-
n(Y) ? (u(), te(
|
|
1413
|
-
], 44,
|
|
1436
|
+
n(Y) ? (u(), te(eo, { key: 6 })) : p("", !0)
|
|
1437
|
+
], 44, io));
|
|
1414
1438
|
}
|
|
1415
|
-
},
|
|
1439
|
+
}, ua = /* @__PURE__ */ uo(ra, [["__scopeId", "data-v-915f9cac"]]), xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1440
|
+
__proto__: null,
|
|
1441
|
+
default: ua
|
|
1442
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1416
1443
|
export {
|
|
1417
|
-
|
|
1444
|
+
Ca as a,
|
|
1445
|
+
xa as b,
|
|
1446
|
+
ua as v
|
|
1418
1447
|
};
|