vue-data-ui 3.25.11 → 3.25.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,224 +1,224 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { l as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, $t as n, D as r, Ft as i, Pt as a, Q as o, Rt as s, S as c, Vt as l, X as u, at as d, b as f, f as p, h as m, i as h, nt as ee, p as te, qt as g, t as ne, tn as re, vt as ie, w as ae } from "./lib-DOpaUOQx.js";
|
|
3
|
+
import { n as oe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as se } from "./useConfig-C2uy4ltq.js";
|
|
5
|
+
import { t as ce } from "./usePrinter-BBBooAGP.js";
|
|
6
|
+
import { n as le, t as ue } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as de } from "./useNestedProp-Bux0f4iY.js";
|
|
8
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as pe } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as me } from "./img-W50sC9SC.js";
|
|
11
|
+
import { n as he } from "./Title-DeqmC-vN.js";
|
|
12
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as _ } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as ye } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
+
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
+
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
+
import { t as Se } from "./vue_ui_3d_bar-C4R7o-yX.js";
|
|
19
|
+
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Ce, createTextVNode as we, createVNode as w, defineAsyncComponent as T, guardReactiveProps as E, mergeProps as Te, nextTick as Ee, normalizeClass as De, normalizeProps as D, normalizeStyle as O, onMounted as Oe, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as ke, toDisplayString as N, toRefs as Ae, unref as P, watch as je, withCtx as F, withKeys as Me, withModifiers as Ne } from "vue";
|
|
20
20
|
//#region src/components/vue-ui-3d-bar.vue
|
|
21
|
-
var
|
|
21
|
+
var Pe = /* @__PURE__ */ e({ default: () => en }), Fe = ["id"], Ie = ["id"], Le = {
|
|
22
22
|
"aria-live": "polite",
|
|
23
23
|
class: "sr-only"
|
|
24
|
-
},
|
|
24
|
+
}, Re = { style: { position: "relative" } }, ze = [
|
|
25
25
|
"xmlns",
|
|
26
26
|
"viewBox",
|
|
27
27
|
"aria-describedby"
|
|
28
|
-
],
|
|
28
|
+
], Be = ["width", "height"], Ve = { key: 1 }, He = [
|
|
29
29
|
"x",
|
|
30
30
|
"y",
|
|
31
31
|
"font-size",
|
|
32
32
|
"font-weight",
|
|
33
33
|
"fill"
|
|
34
|
-
],
|
|
34
|
+
], Ue = ["x", "y"], We = [
|
|
35
35
|
"cx",
|
|
36
36
|
"cy",
|
|
37
37
|
"stroke",
|
|
38
38
|
"opacity"
|
|
39
|
-
],
|
|
39
|
+
], Ge = ["d", "stroke"], Ke = ["d", "stroke"], qe = { key: 4 }, Je = { key: 0 }, Ye = [
|
|
40
40
|
"stroke-dasharray",
|
|
41
41
|
"d",
|
|
42
42
|
"stroke",
|
|
43
43
|
"stroke-width"
|
|
44
|
-
],
|
|
44
|
+
], Xe = [
|
|
45
45
|
"stroke-dasharray",
|
|
46
46
|
"d",
|
|
47
47
|
"stroke",
|
|
48
48
|
"stroke-width"
|
|
49
|
-
],
|
|
49
|
+
], Ze = [
|
|
50
50
|
"stroke-dasharray",
|
|
51
51
|
"d",
|
|
52
52
|
"stroke",
|
|
53
53
|
"stroke-width"
|
|
54
|
-
],
|
|
54
|
+
], Qe = [
|
|
55
55
|
"stroke-dasharray",
|
|
56
56
|
"d",
|
|
57
57
|
"stroke",
|
|
58
58
|
"stroke-width"
|
|
59
|
-
],
|
|
59
|
+
], $e = { key: 1 }, et = [
|
|
60
60
|
"d",
|
|
61
61
|
"stroke",
|
|
62
62
|
"stroke-width",
|
|
63
63
|
"fill"
|
|
64
|
-
],
|
|
64
|
+
], tt = [
|
|
65
65
|
"d",
|
|
66
66
|
"stroke",
|
|
67
67
|
"stroke-width",
|
|
68
68
|
"fill"
|
|
69
|
-
],
|
|
69
|
+
], nt = [
|
|
70
70
|
"d",
|
|
71
71
|
"stroke",
|
|
72
72
|
"stroke-width",
|
|
73
73
|
"fill"
|
|
74
|
-
],
|
|
74
|
+
], rt = { key: 2 }, it = ["aria-label"], at = [
|
|
75
75
|
"d",
|
|
76
76
|
"fill",
|
|
77
77
|
"onMouseenter",
|
|
78
78
|
"onClick",
|
|
79
79
|
"onMouseout"
|
|
80
|
-
],
|
|
80
|
+
], ot = [
|
|
81
81
|
"d",
|
|
82
82
|
"fill",
|
|
83
83
|
"onMouseenter",
|
|
84
84
|
"onClick",
|
|
85
85
|
"onMouseout"
|
|
86
|
-
],
|
|
86
|
+
], st = [
|
|
87
87
|
"d",
|
|
88
88
|
"fill",
|
|
89
89
|
"onMouseenter",
|
|
90
90
|
"onClick",
|
|
91
91
|
"onMouseout"
|
|
92
|
-
],
|
|
92
|
+
], ct = [
|
|
93
93
|
"d",
|
|
94
94
|
"onMouseenter",
|
|
95
95
|
"onClick",
|
|
96
96
|
"onMouseout"
|
|
97
|
-
],
|
|
97
|
+
], lt = ["d"], ut = ["d", "stroke"], dt = ["onClick"], ft = ["stroke", "d"], pt = [
|
|
98
98
|
"cx",
|
|
99
99
|
"cy",
|
|
100
100
|
"fill",
|
|
101
101
|
"stroke"
|
|
102
|
-
],
|
|
102
|
+
], mt = [
|
|
103
103
|
"x",
|
|
104
104
|
"y",
|
|
105
105
|
"width",
|
|
106
106
|
"height"
|
|
107
|
-
],
|
|
107
|
+
], ht = [
|
|
108
108
|
"x",
|
|
109
109
|
"y",
|
|
110
110
|
"width",
|
|
111
111
|
"height"
|
|
112
|
-
],
|
|
112
|
+
], gt = { key: 3 }, _t = ["d", "stroke"], vt = [
|
|
113
113
|
"d",
|
|
114
114
|
"fill",
|
|
115
115
|
"stroke"
|
|
116
|
-
],
|
|
116
|
+
], yt = { key: 0 }, bt = [
|
|
117
117
|
"text-anchor",
|
|
118
118
|
"x",
|
|
119
119
|
"y",
|
|
120
120
|
"fill",
|
|
121
121
|
"font-size",
|
|
122
122
|
"font-weight"
|
|
123
|
-
],
|
|
123
|
+
], xt = [
|
|
124
124
|
"text-anchor",
|
|
125
125
|
"x",
|
|
126
126
|
"y",
|
|
127
127
|
"fill",
|
|
128
128
|
"font-size",
|
|
129
129
|
"font-weight"
|
|
130
|
-
],
|
|
130
|
+
], St = { key: 4 }, Ct = [
|
|
131
131
|
"d",
|
|
132
132
|
"fill",
|
|
133
133
|
"stroke"
|
|
134
|
-
],
|
|
134
|
+
], wt = { key: 5 }, Tt = { key: 0 }, Et = [
|
|
135
135
|
"stroke-dasharray",
|
|
136
136
|
"d",
|
|
137
137
|
"stroke",
|
|
138
138
|
"stroke-width"
|
|
139
|
-
],
|
|
139
|
+
], Dt = [
|
|
140
140
|
"stroke-dasharray",
|
|
141
141
|
"d",
|
|
142
142
|
"stroke",
|
|
143
143
|
"stroke-width"
|
|
144
|
-
],
|
|
144
|
+
], Ot = [
|
|
145
145
|
"stroke-dasharray",
|
|
146
146
|
"d",
|
|
147
147
|
"stroke",
|
|
148
148
|
"stroke-width"
|
|
149
|
-
],
|
|
149
|
+
], kt = [
|
|
150
150
|
"stroke-dasharray",
|
|
151
151
|
"d",
|
|
152
152
|
"stroke",
|
|
153
153
|
"stroke-width"
|
|
154
|
-
],
|
|
154
|
+
], At = [
|
|
155
155
|
"d",
|
|
156
156
|
"stroke",
|
|
157
157
|
"stroke-width",
|
|
158
158
|
"fill"
|
|
159
|
-
],
|
|
159
|
+
], jt = [
|
|
160
160
|
"d",
|
|
161
161
|
"stroke",
|
|
162
162
|
"stroke-width",
|
|
163
163
|
"fill"
|
|
164
|
-
],
|
|
164
|
+
], Mt = ["d"], Nt = { key: 1 }, Pt = ["aria-label"], Ft = [
|
|
165
165
|
"onMouseenter",
|
|
166
166
|
"onClick",
|
|
167
167
|
"onMouseout",
|
|
168
168
|
"d",
|
|
169
169
|
"fill"
|
|
170
|
-
],
|
|
170
|
+
], It = [
|
|
171
171
|
"onMouseenter",
|
|
172
172
|
"onClick",
|
|
173
173
|
"onMouseout",
|
|
174
174
|
"d"
|
|
175
|
-
],
|
|
175
|
+
], Lt = [
|
|
176
176
|
"onMouseenter",
|
|
177
177
|
"onClick",
|
|
178
178
|
"onMouseout",
|
|
179
179
|
"d",
|
|
180
180
|
"fill"
|
|
181
|
-
],
|
|
181
|
+
], Rt = ["onClick"], zt = ["stroke", "d"], Bt = [
|
|
182
182
|
"cx",
|
|
183
183
|
"cy",
|
|
184
184
|
"fill",
|
|
185
185
|
"stroke"
|
|
186
|
-
],
|
|
186
|
+
], Vt = [
|
|
187
187
|
"x",
|
|
188
188
|
"y",
|
|
189
189
|
"width",
|
|
190
190
|
"height"
|
|
191
|
-
],
|
|
191
|
+
], Ht = [
|
|
192
192
|
"x",
|
|
193
193
|
"y",
|
|
194
194
|
"width",
|
|
195
195
|
"height"
|
|
196
|
-
],
|
|
196
|
+
], Ut = { key: 3 }, Wt = ["d", "stroke"], Gt = [
|
|
197
197
|
"d",
|
|
198
198
|
"fill",
|
|
199
199
|
"stroke"
|
|
200
|
-
],
|
|
200
|
+
], Kt = { key: 0 }, qt = [
|
|
201
201
|
"text-anchor",
|
|
202
202
|
"x",
|
|
203
203
|
"y",
|
|
204
204
|
"fill",
|
|
205
205
|
"font-size",
|
|
206
206
|
"font-weight"
|
|
207
|
-
],
|
|
207
|
+
], Jt = [
|
|
208
208
|
"text-anchor",
|
|
209
209
|
"x",
|
|
210
210
|
"y",
|
|
211
211
|
"fill",
|
|
212
212
|
"font-size",
|
|
213
213
|
"font-weight"
|
|
214
|
-
],
|
|
214
|
+
], Yt = { key: 4 }, Xt = [
|
|
215
215
|
"d",
|
|
216
216
|
"fill",
|
|
217
217
|
"stroke"
|
|
218
|
-
],
|
|
218
|
+
], Zt = {
|
|
219
219
|
key: 4,
|
|
220
220
|
class: "vue-data-ui-watermark"
|
|
221
|
-
},
|
|
221
|
+
}, Qt = { key: 0 }, $t = { key: 1 }, en = /*#__PURE__*/ ge({
|
|
222
222
|
__name: "vue-ui-3d-bar",
|
|
223
223
|
props: {
|
|
224
224
|
config: {
|
|
@@ -235,11 +235,11 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
emits: ["selectDatapoint", "copyAlt"],
|
|
238
|
-
setup(e, { expose:
|
|
239
|
-
let
|
|
240
|
-
|
|
238
|
+
setup(e, { expose: ge, emit: Pe }) {
|
|
239
|
+
let en = T(() => import("./BaseIcon-Dlz7gfx0.js").then((e) => e.n)), tn = T(() => import("./vue-ui-accordion-yHZMJLaY.js").then((e) => e.n)), nn = T(() => import("./DataTable-BD1eZ0zB.js")), rn = T(() => import("./PenAndPaper-XdUD8uB3.js").then((e) => e.t)), an = T(() => import("./UserOptions-wFD9vo9g.js").then((e) => e.n)), on = T(() => import("./PackageVersion-D5QkTJQU.js").then((e) => e.t)), sn = T(() => import("./BaseDraggableDialog-Ck6R5Q0K.js").then((e) => e.n)), { vue_ui_3d_bar: cn } = se(), { isThemeValid: ln, warnInvalidTheme: un } = fe(), I = e, dn = Pe, fn = y(() => !!I.dataset && Object.keys(I.dataset).length), L = A(u()), R = A(null), z = A(!1), pn = A(0), mn = A(0), hn = A(null), gn = A(null), _n = A(null), vn = A(null), yn = A(!1), bn = A(null), xn = A(null), B = A(null), V = A(""), H = A(An()), Sn = y(() => H.value.style), U = y(() => H.value.style.chart), W = y(() => H.value.userOptions);
|
|
240
|
+
oe({
|
|
241
241
|
config: () => H.value,
|
|
242
|
-
dataset: () =>
|
|
242
|
+
dataset: () => I.dataset,
|
|
243
243
|
component: "VueUi3dBar",
|
|
244
244
|
rules: [{
|
|
245
245
|
test: (e) => e?.series && e.series.length > 8,
|
|
@@ -261,7 +261,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
261
261
|
]
|
|
262
262
|
}]
|
|
263
263
|
});
|
|
264
|
-
let Cn =
|
|
264
|
+
let Cn = y(() => H.value.userOptions.useCursorPointer), wn = y(() => re({
|
|
265
265
|
defaultConfig: {
|
|
266
266
|
customPalette: [
|
|
267
267
|
"#808080",
|
|
@@ -281,16 +281,16 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
281
281
|
} }
|
|
282
282
|
},
|
|
283
283
|
userConfig: H.value.skeletonConfig ?? {}
|
|
284
|
-
})), { loading: Tn, FINAL_DATASET: G } =
|
|
285
|
-
...
|
|
284
|
+
})), { loading: Tn, FINAL_DATASET: G } = le({
|
|
285
|
+
...Ae(I),
|
|
286
286
|
FINAL_CONFIG: H,
|
|
287
287
|
prepareConfig: An,
|
|
288
288
|
callback: () => {
|
|
289
289
|
Promise.resolve().then(async () => {
|
|
290
|
-
await
|
|
290
|
+
await Ee(), zn();
|
|
291
291
|
});
|
|
292
292
|
},
|
|
293
|
-
skeletonDataset:
|
|
293
|
+
skeletonDataset: I.config?.skeletonDataset ?? { series: [
|
|
294
294
|
{
|
|
295
295
|
name: "_",
|
|
296
296
|
value: 21,
|
|
@@ -325,42 +325,42 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
325
325
|
}]
|
|
326
326
|
}
|
|
327
327
|
] },
|
|
328
|
-
skeletonConfig:
|
|
328
|
+
skeletonConfig: re({
|
|
329
329
|
defaultConfig: H.value,
|
|
330
330
|
userConfig: wn.value
|
|
331
331
|
})
|
|
332
|
-
}), { userOptionsVisible: En, setUserOptionsVisibility: Dn, keepUserOptionState: On } =
|
|
332
|
+
}), { userOptionsVisible: En, setUserOptionsVisibility: Dn, keepUserOptionState: On } = be({ config: H.value }), { svgRef: kn } = xe({ config: H.value.style.chart.title });
|
|
333
333
|
function An() {
|
|
334
|
-
let e =
|
|
335
|
-
userConfig:
|
|
336
|
-
defaultConfig:
|
|
334
|
+
let e = de({
|
|
335
|
+
userConfig: I.config,
|
|
336
|
+
defaultConfig: cn
|
|
337
337
|
}), t = e.theme;
|
|
338
338
|
if (!t) return e;
|
|
339
|
-
if (!
|
|
340
|
-
let
|
|
341
|
-
userConfig:
|
|
339
|
+
if (!ln.value(e)) return un(e), e;
|
|
340
|
+
let r = de({
|
|
341
|
+
userConfig: Se[t] || I.config,
|
|
342
342
|
defaultConfig: e
|
|
343
|
-
}), i =
|
|
344
|
-
userConfig:
|
|
345
|
-
defaultConfig:
|
|
343
|
+
}), i = de({
|
|
344
|
+
userConfig: I.config,
|
|
345
|
+
defaultConfig: r
|
|
346
346
|
});
|
|
347
347
|
return {
|
|
348
348
|
...i,
|
|
349
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
349
|
+
customPalette: i.customPalette.length ? i.customPalette : n[t] || l
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
|
|
353
|
-
Tn.value || (H.value = An()), En.value = !H.value.userOptions.showOnChartHover, Hn(),
|
|
352
|
+
je(() => I.config, (e) => {
|
|
353
|
+
Tn.value || (H.value = An()), En.value = !H.value.userOptions.showOnChartHover, Hn(), pn.value += 1, mn.value += 1, K.value.showTable = H.value.table.show;
|
|
354
354
|
}, { deep: !0 });
|
|
355
|
-
let { isPrinting: jn, isImaging: Mn, generatePdf: Nn, generateImage: Pn } =
|
|
356
|
-
elementId: `3d_bar_${
|
|
355
|
+
let { isPrinting: jn, isImaging: Mn, generatePdf: Nn, generateImage: Pn } = ce({
|
|
356
|
+
elementId: `3d_bar_${L.value}`,
|
|
357
357
|
fileName: U.value.title.text || "vue-ui-3d-bar",
|
|
358
358
|
options: H.value.userOptions.print
|
|
359
|
-
}), Fn =
|
|
360
|
-
|
|
359
|
+
}), Fn = y(() => ae(H.value.customPalette)), K = A({ showTable: H.value.table.show });
|
|
360
|
+
je(H, () => {
|
|
361
361
|
K.value = { showTable: H.value.table.show };
|
|
362
362
|
}, { immediate: !0 });
|
|
363
|
-
let q =
|
|
363
|
+
let q = y(() => G.value.series && G.value.series.length), In = A(U.value.box.dimensions.width * (q.value ? 2 : 1)), Ln = A(U.value.box.dimensions.height), J = y(() => ({
|
|
364
364
|
height: Ln.value,
|
|
365
365
|
width: In.value,
|
|
366
366
|
absoluteWidth: In.value,
|
|
@@ -369,24 +369,24 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
369
369
|
left: U.value.box.dimensions.left,
|
|
370
370
|
right: U.value.box.dimensions.right,
|
|
371
371
|
perspective: U.value.box.dimensions.perspective
|
|
372
|
-
})), Y =
|
|
372
|
+
})), Y = y(() => {
|
|
373
373
|
if (q.value) {
|
|
374
374
|
let e = G.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), t = G.value.series.map((t, n) => ({
|
|
375
375
|
...t,
|
|
376
376
|
seriesIndex: n,
|
|
377
|
-
id:
|
|
377
|
+
id: u(),
|
|
378
378
|
proportion: (t.value || 0) / e,
|
|
379
|
-
color:
|
|
379
|
+
color: c(t.color) || Fn.value[n] || l[n] || l[n % l.length],
|
|
380
380
|
breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
|
|
381
|
-
})).sort((e, t) => t.value - e.value), n = [],
|
|
381
|
+
})).sort((e, t) => t.value - e.value), n = [], r = 0;
|
|
382
382
|
for (let e = 0; e < t.length; e += 1) n.push({
|
|
383
383
|
...t[e],
|
|
384
|
-
fill: Wn(
|
|
385
|
-
}),
|
|
384
|
+
fill: Wn(r, t[e].proportion, t[e].breakdown, t[e].color)
|
|
385
|
+
}), r += t[e].proportion;
|
|
386
386
|
return n;
|
|
387
387
|
}
|
|
388
388
|
return null;
|
|
389
|
-
}), X =
|
|
389
|
+
}), X = y(() => {
|
|
390
390
|
let e = J.value.width / 2, t = J.value;
|
|
391
391
|
return {
|
|
392
392
|
right: `M${e},${t.top} ${t.width - t.right}, ${t.top + t.perspective} ${t.width - t.right},${t.height - t.bottom - t.perspective} ${e},${t.height - t.bottom}`,
|
|
@@ -398,7 +398,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
398
398
|
tubeRight: `M${t.width - t.right},${t.top + t.perspective} ${t.width - t.right},${t.height - t.bottom - t.perspective}`,
|
|
399
399
|
tubeBottom: `M${t.width - t.right},${t.height - t.bottom - t.perspective} C ${t.width - t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height - t.bottom - t.perspective}`
|
|
400
400
|
};
|
|
401
|
-
}), Rn =
|
|
401
|
+
}), Rn = A(U.value.animation.use ? 0 : G.value.percentage);
|
|
402
402
|
function zn() {
|
|
403
403
|
let e = 0, t = U.value.animation.speed, n = .005 * U.value.animation.acceleration;
|
|
404
404
|
function r() {
|
|
@@ -406,21 +406,21 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
406
406
|
}
|
|
407
407
|
U.value.animation.use && (Rn.value = 0, r());
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
Oe(() => {
|
|
410
410
|
Hn(), zn();
|
|
411
411
|
});
|
|
412
|
-
let Bn =
|
|
412
|
+
let Bn = y(() => H.value.debug);
|
|
413
413
|
function Vn() {
|
|
414
|
-
Bn.value && (
|
|
414
|
+
Bn.value && (s(I.dataset) ? d({
|
|
415
415
|
componentName: "VueUi3dBar",
|
|
416
416
|
type: "dataset",
|
|
417
417
|
debug: Bn.value
|
|
418
|
-
}) :
|
|
419
|
-
|
|
418
|
+
}) : I.dataset.series ? I.dataset.series.forEach((e, t) => {
|
|
419
|
+
ie({
|
|
420
420
|
datasetObject: e,
|
|
421
421
|
requiredAttributes: ["name", "value"]
|
|
422
422
|
}).forEach((e) => {
|
|
423
|
-
|
|
423
|
+
d({
|
|
424
424
|
componentName: "VueUi3dBar",
|
|
425
425
|
type: "datasetSerieAttribute",
|
|
426
426
|
property: e,
|
|
@@ -428,11 +428,11 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
428
428
|
debug: Bn.value
|
|
429
429
|
});
|
|
430
430
|
}), e.breakdown && e.breakdown.forEach((e, n) => {
|
|
431
|
-
|
|
431
|
+
ie({
|
|
432
432
|
datasetObject: e,
|
|
433
433
|
requiredAttributes: ["name", "value"]
|
|
434
434
|
}).forEach((e) => {
|
|
435
|
-
|
|
435
|
+
d({
|
|
436
436
|
componentName: "VueUi3dBar",
|
|
437
437
|
type: "datasetSerieAttribute",
|
|
438
438
|
property: e,
|
|
@@ -441,11 +441,11 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
441
441
|
});
|
|
442
442
|
});
|
|
443
443
|
});
|
|
444
|
-
}) :
|
|
445
|
-
datasetObject:
|
|
444
|
+
}) : ie({
|
|
445
|
+
datasetObject: I.dataset,
|
|
446
446
|
requiredAttributes: ["percentage"]
|
|
447
447
|
}).forEach((e) => {
|
|
448
|
-
|
|
448
|
+
d({
|
|
449
449
|
componentName: "VueUi3dBar",
|
|
450
450
|
type: "datasetAttribute",
|
|
451
451
|
property: e,
|
|
@@ -455,67 +455,67 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
455
455
|
}
|
|
456
456
|
function Hn() {
|
|
457
457
|
if (Vn(), H.value.responsive) {
|
|
458
|
-
let e =
|
|
459
|
-
let { width: e, height: t } =
|
|
460
|
-
chart:
|
|
461
|
-
title: U.value.title.text ?
|
|
462
|
-
source:
|
|
458
|
+
let e = _e(() => {
|
|
459
|
+
let { width: e, height: t } = ve({
|
|
460
|
+
chart: R.value,
|
|
461
|
+
title: U.value.title.text ? hn.value : null,
|
|
462
|
+
source: vn.value
|
|
463
463
|
});
|
|
464
464
|
requestAnimationFrame(() => {
|
|
465
465
|
Ln.value = t - 12, In.value = e;
|
|
466
466
|
});
|
|
467
467
|
});
|
|
468
|
-
|
|
468
|
+
gn.value && (_n.value && gn.value.unobserve(_n.value), gn.value.disconnect()), gn.value = new ResizeObserver(e), _n.value = R.value.parentNode, gn.value.observe(_n.value);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
let Un =
|
|
471
|
+
let Un = y(() => J.value.width / 4);
|
|
472
472
|
function Wn(e, t, n, r) {
|
|
473
|
-
let
|
|
474
|
-
return
|
|
473
|
+
let o = J.value.height - J.value.bottom - J.value.top - J.value.perspective * 2, { width: s, height: c, bottom: l, right: u, left: d, perspective: f } = J.value, p = q.value ? s / 4 : s / 2, m = p * 2 + d, h = l + o * e, ee = c - h - f - o * t / 2, te = ee > J.value.height / 2 ? "top" : "bottom", g = c * .25, ne = !!n, re = null, ie = null;
|
|
474
|
+
return ne && (n = n.map((e, t) => ({
|
|
475
475
|
...e,
|
|
476
476
|
value: e.value || 0,
|
|
477
|
-
color:
|
|
478
|
-
})),
|
|
479
|
-
donut:
|
|
480
|
-
miniDonut:
|
|
481
|
-
donutR:
|
|
482
|
-
CENTER_X:
|
|
477
|
+
color: a(r, t / n.length)
|
|
478
|
+
})), re = i({ series: n }, s / 2 + s / 5, te === "top" ? ee - g : ee + g, s / 10, s / 10, 1.99999, 2, 1, 360, 105.25, s / 20), ie = i({ series: n }, s - m + s / 14, c - h - f - o * t / 2, s / 40, s / 40, 1.99999, 2, 1, 360, 105.25, s / 40)), {
|
|
479
|
+
donut: re,
|
|
480
|
+
miniDonut: ie,
|
|
481
|
+
donutR: s / 20,
|
|
482
|
+
CENTER_X: p,
|
|
483
483
|
sidePointer: {
|
|
484
|
-
x:
|
|
485
|
-
x2:
|
|
486
|
-
xText:
|
|
487
|
-
y:
|
|
488
|
-
topY:
|
|
489
|
-
height:
|
|
484
|
+
x: s - m,
|
|
485
|
+
x2: s - m + s / 14,
|
|
486
|
+
xText: s - m + s / 9,
|
|
487
|
+
y: c - h - f - o * t / 2,
|
|
488
|
+
topY: c - h - f - o * t,
|
|
489
|
+
height: o * t
|
|
490
490
|
},
|
|
491
491
|
apexBottom: {
|
|
492
|
-
y:
|
|
493
|
-
x:
|
|
492
|
+
y: c - h,
|
|
493
|
+
x: p
|
|
494
494
|
},
|
|
495
495
|
apexTop: {
|
|
496
|
-
y:
|
|
497
|
-
x:
|
|
496
|
+
y: c - h - o * t,
|
|
497
|
+
x: p
|
|
498
498
|
},
|
|
499
|
-
right: `M${
|
|
500
|
-
left: `M${
|
|
501
|
-
liningTop: `M${
|
|
502
|
-
liningTopShade: `M${
|
|
503
|
-
top: `M${
|
|
504
|
-
tubeTop: `M${
|
|
505
|
-
bottomTubeTop: `M ${
|
|
499
|
+
right: `M${p},${c - h} ${p},${c - h - o * t} ${s - m},${c - h - f - o * t} ${s - m},${c - h - f}Z`,
|
|
500
|
+
left: `M${p},${c - h} ${p},${c - h - o * t} ${d}, ${c - h - f - o * t} ${d},${c - h - f}Z`,
|
|
501
|
+
liningTop: `M${d},${c - h - f - o * t} ${p},${c - h - o * t} ${s - m},${c - h - f - o * t}`,
|
|
502
|
+
liningTopShade: `M${d},${c - h - f - o * t - .5} ${p},${c - h - o * t - .5} ${s - m},${c - h - f - o * t - .5}`,
|
|
503
|
+
top: `M${p},${c - h - o * t} ${d},${c - h - f - o * t} ${p},${c - h - f * 2 - o * t} ${s - m},${c - h - f - o * t} Z`,
|
|
504
|
+
tubeTop: `M${d},${c - h - o * t - f} C ${d},${c - h - o * t - f * 2.5} ${s - m},${c - h - o * t - f * 2.5} ${s - m},${c - h - o * t - f} C ${s - m},${c - h - o * t + f / 2} ${d},${c - h - o * t + f / 2} ${d},${c - h - o * t - f}`,
|
|
505
|
+
bottomTubeTop: `M ${s - m - .5},${c - h - f} C ${s - m - .5},${c - h + f / 2} ${d},${c - h + f / 2} ${d + .5},${c - h - f}`,
|
|
506
506
|
tubeBody: `M
|
|
507
|
-
${
|
|
508
|
-
C ${
|
|
509
|
-
${
|
|
510
|
-
${
|
|
511
|
-
L${
|
|
507
|
+
${d},${c - h - o * t - f}
|
|
508
|
+
C ${d},${c - h - o * t + f / 2}
|
|
509
|
+
${s - m},${c - h - o * t + f / 2}
|
|
510
|
+
${s - m},${c - h - o * t - f}
|
|
511
|
+
L${s - m},${c - h - f}
|
|
512
512
|
C
|
|
513
|
-
${
|
|
514
|
-
${
|
|
515
|
-
${
|
|
513
|
+
${s - m},${c - h + f / 2}
|
|
514
|
+
${d},${c - h + f / 2}
|
|
515
|
+
${d},${c - h - f}Z`
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
let Gn =
|
|
518
|
+
let Gn = y(() => {
|
|
519
519
|
let e = f(Rn.value / 100), t = J.value.height - J.value.bottom - J.value.top - J.value.perspective * 2, { width: n, height: r, bottom: i, right: a, left: o, perspective: s } = J.value, c = q.value ? n / 4 : n / 2, l = q.value ? c * 2 + o : a, u = i + t * 0;
|
|
520
520
|
return {
|
|
521
521
|
right: `M${c},${r - u} ${c},${r - u - t * e} ${n - l},${r - u - s - t * e} ${n - l},${r - u - s}Z`,
|
|
@@ -533,7 +533,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
533
533
|
${o},${r}
|
|
534
534
|
${o},${r - u - s}Z`
|
|
535
535
|
};
|
|
536
|
-
}), Z =
|
|
536
|
+
}), Z = A(null);
|
|
537
537
|
function Q(e, t = !1) {
|
|
538
538
|
H.value.events.datapointEnter && !t && H.value.events.datapointEnter({
|
|
539
539
|
datapoint: e,
|
|
@@ -541,54 +541,54 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
541
541
|
}), H.value.events.datapointClick && t && H.value.events.datapointClick({
|
|
542
542
|
datapoint: e,
|
|
543
543
|
seriesIndex: e.seriesIndex
|
|
544
|
-
}),
|
|
544
|
+
}), dn("selectDatapoint", e);
|
|
545
545
|
let n = Y.value?.findIndex((t) => t.id === e.id) ?? null;
|
|
546
|
-
n !== null && n !== -1 && (B.value = n, V.value = mr(e)), t || (Z.value = e.id), t &&
|
|
546
|
+
n !== null && n !== -1 && (B.value = n, V.value = mr(e)), t || (Z.value = e.id), t && z.value && (z.value = !1), t && !z.value && (z.value = !0);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Kn(e) {
|
|
549
549
|
H.value.events.datapointLeave && H.value.events.datapointLeave({
|
|
550
550
|
datapoint: e,
|
|
551
551
|
seriesIndex: e.seriesIndex
|
|
552
|
-
}), !
|
|
552
|
+
}), !z.value && (Z.value = null, B.value = null, V.value = "");
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
let r = G.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), i = isNaN(e.value / r) ? 0 : e.value / r * 100, a = isNaN(e.value /
|
|
554
|
+
function qn(e, t, n = !1) {
|
|
555
|
+
let r = G.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), i = isNaN(e.value / r) ? 0 : e.value / r * 100, a = isNaN(e.value / Jn(t)) ? 0 : e.value / Jn(t) * 100;
|
|
556
556
|
return n ? a : i.toFixed(0) + "%";
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Jn(e) {
|
|
559
559
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
560
560
|
}
|
|
561
|
-
let
|
|
562
|
-
function
|
|
563
|
-
|
|
561
|
+
let Yn = A(!1);
|
|
562
|
+
function Xn(e) {
|
|
563
|
+
Yn.value = e;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Zn() {
|
|
566
566
|
return q.value ? Y.value : G.value.percentage;
|
|
567
567
|
}
|
|
568
|
-
let
|
|
568
|
+
let Qn = y(() => q.value ? {
|
|
569
569
|
head: Y.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
|
|
570
570
|
name: e.name,
|
|
571
571
|
color: e.color
|
|
572
572
|
}, ...e.breakdown.map((t, n) => ({
|
|
573
573
|
name: t.name,
|
|
574
|
-
color:
|
|
574
|
+
color: a(e.color, n / e.breakdown.length)
|
|
575
575
|
}))] : {
|
|
576
576
|
name: e.name,
|
|
577
577
|
color: e.color
|
|
578
578
|
}),
|
|
579
579
|
body: Y.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((e) => e.value)] : e.value)
|
|
580
580
|
} : null);
|
|
581
|
-
function
|
|
581
|
+
function $n(e = null) {
|
|
582
582
|
if (!q.value) {
|
|
583
583
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
586
|
-
|
|
587
|
-
let
|
|
586
|
+
Ee(() => {
|
|
587
|
+
let t = Y.value.map((e) => e.value).reduce((e, t) => e + t, 0), n = Qn.value.head.map((e, n) => [
|
|
588
588
|
[e.name],
|
|
589
|
-
[
|
|
590
|
-
[isNaN(
|
|
591
|
-
]),
|
|
589
|
+
[Qn.value.body[n]],
|
|
590
|
+
[isNaN(Qn.value.body[n] / t) ? "-" : Qn.value.body[n] / t * 100]
|
|
591
|
+
]), i = [
|
|
592
592
|
[U.value.title.text],
|
|
593
593
|
[U.value.title.subtitle.text],
|
|
594
594
|
[
|
|
@@ -596,14 +596,14 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
596
596
|
["val"],
|
|
597
597
|
["%"]
|
|
598
598
|
]
|
|
599
|
-
].concat(
|
|
600
|
-
e ? e(
|
|
601
|
-
csvContent:
|
|
599
|
+
].concat(n), a = r(i);
|
|
600
|
+
e ? e(a) : ee({
|
|
601
|
+
csvContent: a,
|
|
602
602
|
title: U.value.title.text || "vue-ui-3d-bar"
|
|
603
603
|
});
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
let $
|
|
606
|
+
let $ = y(() => {
|
|
607
607
|
if (!q.value || !Array.isArray(Y.value) || !Y.value.length) return {
|
|
608
608
|
colNames: [],
|
|
609
609
|
head: [],
|
|
@@ -624,44 +624,44 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
624
624
|
shape: H.value.style.shape === "tube" ? "circle" : "square"
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
|
-
let e = Y.value.reduce((e, t) => e + t.value, 0),
|
|
627
|
+
let e = Y.value.reduce((e, t) => e + t.value, 0), n = [
|
|
628
628
|
"__SUM__",
|
|
629
|
-
|
|
629
|
+
t({
|
|
630
630
|
p: U.value.legend.prefix,
|
|
631
631
|
v: e,
|
|
632
632
|
s: U.value.legend.suffix,
|
|
633
633
|
r: H.value.table.td.roundingValue
|
|
634
634
|
}),
|
|
635
635
|
"100%"
|
|
636
|
-
],
|
|
637
|
-
let
|
|
636
|
+
], r = Qn.value.head.map((n, r) => {
|
|
637
|
+
let i = Qn.value.body[r];
|
|
638
638
|
return [
|
|
639
639
|
{
|
|
640
|
-
color:
|
|
641
|
-
name:
|
|
640
|
+
color: n.color,
|
|
641
|
+
name: n.name
|
|
642
642
|
},
|
|
643
|
-
|
|
643
|
+
t({
|
|
644
644
|
p: U.value.legend.prefix,
|
|
645
|
-
v:
|
|
645
|
+
v: i,
|
|
646
646
|
s: U.value.legend.suffix,
|
|
647
647
|
r: H.value.table.td.roundingValue
|
|
648
648
|
}),
|
|
649
|
-
isNaN(
|
|
650
|
-
v:
|
|
649
|
+
isNaN(i / e) ? "-" : t({
|
|
650
|
+
v: i / e * 100,
|
|
651
651
|
s: "%",
|
|
652
652
|
r: H.value.table.td.roundingPercentage
|
|
653
653
|
})
|
|
654
654
|
];
|
|
655
|
-
}),
|
|
655
|
+
}), i = r.map((e) => e.map((e, t) => t === 0 ? e.name : e));
|
|
656
656
|
return {
|
|
657
657
|
colNames: [
|
|
658
658
|
H.value.table.columnNames.series,
|
|
659
659
|
H.value.table.columnNames.value,
|
|
660
660
|
H.value.table.columnNames.percentage
|
|
661
661
|
],
|
|
662
|
-
head:
|
|
663
|
-
body:
|
|
664
|
-
a11yBody:
|
|
662
|
+
head: n,
|
|
663
|
+
body: r,
|
|
664
|
+
a11yBody: i,
|
|
665
665
|
config: {
|
|
666
666
|
th: {
|
|
667
667
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
@@ -681,14 +681,14 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
681
681
|
function er() {
|
|
682
682
|
K.value.showTable = !K.value.showTable;
|
|
683
683
|
}
|
|
684
|
-
let tr =
|
|
684
|
+
let tr = A(!1);
|
|
685
685
|
function nr() {
|
|
686
686
|
tr.value = !tr.value;
|
|
687
687
|
}
|
|
688
688
|
async function rr({ scale: e = 2 } = {}) {
|
|
689
|
-
if (!
|
|
690
|
-
let { width: t, height: n } =
|
|
691
|
-
domElement:
|
|
689
|
+
if (!R.value) return;
|
|
690
|
+
let { width: t, height: n } = R.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
691
|
+
domElement: R.value,
|
|
692
692
|
base64: !0,
|
|
693
693
|
img: !0,
|
|
694
694
|
scale: e
|
|
@@ -702,18 +702,18 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
702
702
|
aspectRatio: r
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
|
-
let ir =
|
|
705
|
+
let ir = y(() => {
|
|
706
706
|
let e = H.value.table.useDialog && !H.value.table.show, t = K.value.showTable;
|
|
707
707
|
return {
|
|
708
|
-
component: e ?
|
|
708
|
+
component: e ? sn : tn,
|
|
709
709
|
title: `${U.value.title.text}${U.value.title.subtitle.text ? `: ${U.value.title.subtitle.text}` : ""}`,
|
|
710
710
|
props: e ? {
|
|
711
711
|
backgroundColor: H.value.table.th.backgroundColor,
|
|
712
712
|
color: H.value.table.th.color,
|
|
713
713
|
headerColor: H.value.table.th.color,
|
|
714
714
|
headerBg: H.value.table.th.backgroundColor,
|
|
715
|
-
isFullscreen:
|
|
716
|
-
fullscreenParent:
|
|
715
|
+
isFullscreen: Yn.value,
|
|
716
|
+
fullscreenParent: R.value,
|
|
717
717
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
718
718
|
} : {
|
|
719
719
|
hideDetails: !0,
|
|
@@ -732,13 +732,13 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
734
|
});
|
|
735
|
-
|
|
735
|
+
je(() => K.value.showTable, (e) => {
|
|
736
736
|
H.value.table.show || (e && H.value.table.useDialog && bn.value ? bn.value.open() : "close" in bn.value && bn.value.close());
|
|
737
737
|
});
|
|
738
738
|
function ar() {
|
|
739
739
|
K.value.showTable = !1, xn.value && xn.value.setTableIconState(!1);
|
|
740
740
|
}
|
|
741
|
-
let or =
|
|
741
|
+
let or = y(() => H.value.style.chart.backgroundColor), sr = y(() => H.value.style.chart.title), { isCallbackImaging: cr, isCallbackSvg: lr, generateSvg: ur, onGenerateImage: dr } = pe({
|
|
742
742
|
svg: kn,
|
|
743
743
|
title: sr,
|
|
744
744
|
legend: null,
|
|
@@ -748,7 +748,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
748
748
|
generateImage: Pn
|
|
749
749
|
});
|
|
750
750
|
async function fr() {
|
|
751
|
-
if (
|
|
751
|
+
if (dn("copyAlt", {
|
|
752
752
|
config: H.value,
|
|
753
753
|
dataset: G.value
|
|
754
754
|
}), !H.value.userOptions.callbacks.altCopy) {
|
|
@@ -761,21 +761,21 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
761
761
|
}));
|
|
762
762
|
}
|
|
763
763
|
function pr() {
|
|
764
|
-
B.value = null, V.value = "",
|
|
764
|
+
B.value = null, V.value = "", z.value = !1, Z.value = null;
|
|
765
765
|
}
|
|
766
766
|
function mr(e) {
|
|
767
767
|
if (!e) return "";
|
|
768
|
-
let
|
|
768
|
+
let n = t({
|
|
769
769
|
p: U.value.legend.prefix,
|
|
770
770
|
v: e.value,
|
|
771
771
|
s: U.value.legend.suffix,
|
|
772
772
|
r: U.value.legend.roundingValue
|
|
773
|
-
}),
|
|
773
|
+
}), r = t({
|
|
774
774
|
v: e.proportion * 100,
|
|
775
775
|
s: "%",
|
|
776
776
|
r: U.value.legend.roundingPercentage
|
|
777
777
|
});
|
|
778
|
-
return `${e.name}: ${
|
|
778
|
+
return `${e.name}: ${n}, ${r}`;
|
|
779
779
|
}
|
|
780
780
|
function hr(e) {
|
|
781
781
|
if (!q.value || !Y.value?.length) return;
|
|
@@ -783,10 +783,10 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
783
783
|
t && (B.value = e, Z.value = t.id, V.value = mr(t));
|
|
784
784
|
}
|
|
785
785
|
function gr() {
|
|
786
|
-
|
|
786
|
+
yn.value = !0, q.value && Y.value?.length && B.value === null && hr(0);
|
|
787
787
|
}
|
|
788
788
|
function _r() {
|
|
789
|
-
|
|
789
|
+
yn.value = !1, z.value || (B.value = null, Z.value = null, V.value = "");
|
|
790
790
|
}
|
|
791
791
|
function vr(e) {
|
|
792
792
|
if (!q.value || !Y.value?.length || !kn.value || document.activeElement !== kn.value) return;
|
|
@@ -806,38 +806,38 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
806
806
|
let a = B.value;
|
|
807
807
|
a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1)), hr(a);
|
|
808
808
|
}
|
|
809
|
-
let yr =
|
|
810
|
-
headers:
|
|
811
|
-
rows:
|
|
809
|
+
let yr = y(() => ({
|
|
810
|
+
headers: $.value?.colNames ?? [],
|
|
811
|
+
rows: $.value?.a11yBody ?? []
|
|
812
812
|
}));
|
|
813
|
-
return
|
|
813
|
+
return ge({
|
|
814
814
|
getImage: rr,
|
|
815
|
-
generateCsv:
|
|
815
|
+
generateCsv: $n,
|
|
816
816
|
generatePdf: Nn,
|
|
817
817
|
generateImage: Pn,
|
|
818
818
|
generateSvg: ur,
|
|
819
|
-
getData:
|
|
819
|
+
getData: Zn,
|
|
820
820
|
toggleTable: er,
|
|
821
821
|
toggleAnnotator: nr,
|
|
822
|
-
toggleFullscreen:
|
|
822
|
+
toggleFullscreen: Xn,
|
|
823
823
|
copyAlt: fr
|
|
824
|
-
}), (e,
|
|
824
|
+
}), (e, n) => (k(), S("div", {
|
|
825
825
|
ref_key: "bar3dChart",
|
|
826
|
-
ref:
|
|
827
|
-
class:
|
|
828
|
-
style:
|
|
829
|
-
id: `3d_bar_${
|
|
830
|
-
onMouseenter:
|
|
831
|
-
onMouseleave:
|
|
826
|
+
ref: R,
|
|
827
|
+
class: De("vue-data-ui-component vue-ui-3d-bar"),
|
|
828
|
+
style: O(`font-family:${Sn.value.fontFamily};width:100%; text-align:center;background:${U.value.backgroundColor}`),
|
|
829
|
+
id: `3d_bar_${L.value}`,
|
|
830
|
+
onMouseenter: n[8] ||= () => P(Dn)(!0),
|
|
831
|
+
onMouseleave: n[9] ||= () => P(Dn)(!1)
|
|
832
832
|
}, [
|
|
833
|
-
|
|
834
|
-
id: `chart-instructions-${
|
|
833
|
+
C("div", {
|
|
834
|
+
id: `chart-instructions-${L.value}`,
|
|
835
835
|
class: "sr-only"
|
|
836
|
-
}, [
|
|
837
|
-
|
|
838
|
-
yr.value?.rows?.length ? (
|
|
836
|
+
}, [C("p", null, N(H.value.a11y.translations.keyboardNavigation), 1)], 8, Ie),
|
|
837
|
+
C("div", Le, N(V.value), 1),
|
|
838
|
+
yr.value?.rows?.length ? (k(), b(ye, {
|
|
839
839
|
key: 0,
|
|
840
|
-
uid:
|
|
840
|
+
uid: L.value,
|
|
841
841
|
head: yr.value.headers,
|
|
842
842
|
body: yr.value.rows,
|
|
843
843
|
notice: H.value.a11y.translations.tableAvailable,
|
|
@@ -848,10 +848,10 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
848
848
|
"body",
|
|
849
849
|
"notice",
|
|
850
850
|
"caption"
|
|
851
|
-
])) :
|
|
852
|
-
W.value.buttons.annotator ? (
|
|
851
|
+
])) : x("", !0),
|
|
852
|
+
W.value.buttons.annotator ? (k(), b(P(rn), {
|
|
853
853
|
key: 1,
|
|
854
|
-
svgRef:
|
|
854
|
+
svgRef: P(kn),
|
|
855
855
|
backgroundColor: U.value.backgroundColor,
|
|
856
856
|
color: U.value.color,
|
|
857
857
|
active: tr.value,
|
|
@@ -859,12 +859,12 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
859
859
|
palette: W.value.annotatorPalette,
|
|
860
860
|
onClose: nr
|
|
861
861
|
}, {
|
|
862
|
-
"annotator-action-close":
|
|
863
|
-
"annotator-action-color":
|
|
864
|
-
"annotator-action-draw":
|
|
865
|
-
"annotator-action-undo":
|
|
866
|
-
"annotator-action-redo":
|
|
867
|
-
"annotator-action-delete":
|
|
862
|
+
"annotator-action-close": F(() => [M(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
863
|
+
"annotator-action-color": F(({ color: t }) => [M(e.$slots, "annotator-action-color", D(E({ color: t })), void 0, !0)]),
|
|
864
|
+
"annotator-action-draw": F(({ mode: t }) => [M(e.$slots, "annotator-action-draw", D(E({ mode: t })), void 0, !0)]),
|
|
865
|
+
"annotator-action-undo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-undo", D(E({ disabled: t })), void 0, !0)]),
|
|
866
|
+
"annotator-action-redo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-redo", D(E({ disabled: t })), void 0, !0)]),
|
|
867
|
+
"annotator-action-delete": F(({ disabled: t }) => [M(e.$slots, "annotator-action-delete", D(E({ disabled: t })), void 0, !0)]),
|
|
868
868
|
_: 3
|
|
869
869
|
}, 8, [
|
|
870
870
|
"svgRef",
|
|
@@ -873,14 +873,14 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
873
873
|
"active",
|
|
874
874
|
"isCursorPointer",
|
|
875
875
|
"palette"
|
|
876
|
-
])) :
|
|
877
|
-
U.value.title.text ? (
|
|
876
|
+
])) : x("", !0),
|
|
877
|
+
U.value.title.text ? (k(), S("div", {
|
|
878
878
|
key: 2,
|
|
879
879
|
ref_key: "chartTitle",
|
|
880
|
-
ref:
|
|
880
|
+
ref: hn,
|
|
881
881
|
style: "width:100%;background:transparent"
|
|
882
|
-
}, [(
|
|
883
|
-
key: `title_${
|
|
882
|
+
}, [(k(), b(he, {
|
|
883
|
+
key: `title_${pn.value}`,
|
|
884
884
|
config: {
|
|
885
885
|
title: {
|
|
886
886
|
cy: "3dBar-div-title",
|
|
@@ -891,16 +891,16 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
891
891
|
...U.value.title.subtitle
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
}, null, 8, ["config"]))], 512)) :
|
|
895
|
-
W.value.show &&
|
|
894
|
+
}, null, 8, ["config"]))], 512)) : x("", !0),
|
|
895
|
+
W.value.show && fn.value && (P(On) || P(En)) ? (k(), b(P(an), {
|
|
896
896
|
key: 3,
|
|
897
897
|
ref_key: "userOptionsRef",
|
|
898
898
|
ref: xn,
|
|
899
899
|
backgroundColor: U.value.backgroundColor,
|
|
900
900
|
color: U.value.color,
|
|
901
|
-
isPrinting:
|
|
902
|
-
isImaging:
|
|
903
|
-
uid:
|
|
901
|
+
isPrinting: P(jn),
|
|
902
|
+
isImaging: P(Mn),
|
|
903
|
+
uid: L.value,
|
|
904
904
|
hasPdf: W.value.buttons.pdf,
|
|
905
905
|
hasTable: !!q.value && W.value.buttons.table,
|
|
906
906
|
hasXls: !!q.value && W.value.buttons.csv,
|
|
@@ -909,7 +909,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
909
909
|
hasFullscreen: W.value.buttons.fullscreen,
|
|
910
910
|
hasAltCopy: W.value.buttons.altCopy,
|
|
911
911
|
titles: { ...W.value.buttonTitles },
|
|
912
|
-
chartElement:
|
|
912
|
+
chartElement: R.value,
|
|
913
913
|
position: W.value.position,
|
|
914
914
|
hasAnnotator: W.value.buttons.annotator,
|
|
915
915
|
isAnnotation: tr.value,
|
|
@@ -917,19 +917,19 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
917
917
|
printScale: W.value.print.scale,
|
|
918
918
|
tableDialog: H.value.table.useDialog,
|
|
919
919
|
isCursorPointer: Cn.value,
|
|
920
|
-
onToggleFullscreen:
|
|
921
|
-
onGeneratePdf:
|
|
922
|
-
onGenerateCsv:
|
|
923
|
-
onGenerateImage:
|
|
924
|
-
onGenerateSvg:
|
|
920
|
+
onToggleFullscreen: Xn,
|
|
921
|
+
onGeneratePdf: P(Nn),
|
|
922
|
+
onGenerateCsv: $n,
|
|
923
|
+
onGenerateImage: P(dr),
|
|
924
|
+
onGenerateSvg: P(ur),
|
|
925
925
|
onToggleTable: er,
|
|
926
926
|
onToggleAnnotator: nr,
|
|
927
927
|
onCopyAlt: fr,
|
|
928
|
-
style:
|
|
929
|
-
},
|
|
928
|
+
style: O({ visibility: P(On) ? P(En) ? "visible" : "hidden" : "visible" })
|
|
929
|
+
}, Ce({ _: 2 }, [
|
|
930
930
|
e.$slots.menuIcon ? {
|
|
931
931
|
name: "menuIcon",
|
|
932
|
-
fn:
|
|
932
|
+
fn: F(({ isOpen: t, color: n }) => [M(e.$slots, "menuIcon", D(E({
|
|
933
933
|
isOpen: t,
|
|
934
934
|
color: n
|
|
935
935
|
})), void 0, !0)]),
|
|
@@ -937,32 +937,32 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
937
937
|
} : void 0,
|
|
938
938
|
e.$slots.optionPdf ? {
|
|
939
939
|
name: "optionPdf",
|
|
940
|
-
fn:
|
|
940
|
+
fn: F(() => [M(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
941
941
|
key: "1"
|
|
942
942
|
} : void 0,
|
|
943
943
|
e.$slots.optionCsv ? {
|
|
944
944
|
name: "optionCsv",
|
|
945
|
-
fn:
|
|
945
|
+
fn: F(() => [M(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
946
946
|
key: "2"
|
|
947
947
|
} : void 0,
|
|
948
948
|
e.$slots.optionImg ? {
|
|
949
949
|
name: "optionImg",
|
|
950
|
-
fn:
|
|
950
|
+
fn: F(() => [M(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
951
951
|
key: "3"
|
|
952
952
|
} : void 0,
|
|
953
953
|
e.$slots.optionSvg ? {
|
|
954
954
|
name: "optionSvg",
|
|
955
|
-
fn:
|
|
955
|
+
fn: F(() => [M(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
956
956
|
key: "4"
|
|
957
957
|
} : void 0,
|
|
958
958
|
e.$slots.optionTable ? {
|
|
959
959
|
name: "optionTable",
|
|
960
|
-
fn:
|
|
960
|
+
fn: F(() => [M(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
961
961
|
key: "5"
|
|
962
962
|
} : void 0,
|
|
963
963
|
e.$slots.optionFullscreen ? {
|
|
964
964
|
name: "optionFullscreen",
|
|
965
|
-
fn:
|
|
965
|
+
fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [M(e.$slots, "optionFullscreen", D(E({
|
|
966
966
|
toggleFullscreen: t,
|
|
967
967
|
isFullscreen: n
|
|
968
968
|
})), void 0, !0)]),
|
|
@@ -970,7 +970,7 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
970
970
|
} : void 0,
|
|
971
971
|
e.$slots.optionAnnotator ? {
|
|
972
972
|
name: "optionAnnotator",
|
|
973
|
-
fn:
|
|
973
|
+
fn: F(({ toggleAnnotator: t, isAnnotator: n }) => [M(e.$slots, "optionAnnotator", D(E({
|
|
974
974
|
toggleAnnotator: t,
|
|
975
975
|
isAnnotator: n
|
|
976
976
|
})), void 0, !0)]),
|
|
@@ -978,17 +978,17 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
978
978
|
} : void 0,
|
|
979
979
|
e.$slots.optionAltCopy ? {
|
|
980
980
|
name: "optionAltCopy",
|
|
981
|
-
fn:
|
|
981
|
+
fn: F(({ altCopy: t }) => [M(e.$slots, "optionAltCopy", D(E({ altCopy: t })), void 0, !0)]),
|
|
982
982
|
key: "8"
|
|
983
983
|
} : void 0,
|
|
984
984
|
e.$slots["custom-menu-before"] ? {
|
|
985
985
|
name: "custom-menu-before",
|
|
986
|
-
fn:
|
|
986
|
+
fn: F(() => [M(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
987
987
|
key: "9"
|
|
988
988
|
} : void 0,
|
|
989
989
|
e.$slots["custom-menu-after"] ? {
|
|
990
990
|
name: "custom-menu-after",
|
|
991
|
-
fn:
|
|
991
|
+
fn: F(() => [M(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
992
992
|
key: "10"
|
|
993
993
|
} : void 0
|
|
994
994
|
]), 1032, [
|
|
@@ -1017,39 +1017,39 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1017
1017
|
"onGenerateImage",
|
|
1018
1018
|
"onGenerateSvg",
|
|
1019
1019
|
"style"
|
|
1020
|
-
])) :
|
|
1021
|
-
|
|
1020
|
+
])) : x("", !0),
|
|
1021
|
+
C("div", Re, [(k(), S("svg", {
|
|
1022
1022
|
ref_key: "svgRef",
|
|
1023
1023
|
ref: kn,
|
|
1024
|
-
xmlns:
|
|
1025
|
-
class:
|
|
1026
|
-
"vue-data-ui-fullscreen--on":
|
|
1027
|
-
"vue-data-ui-fulscreen--off": !
|
|
1024
|
+
xmlns: P(ne),
|
|
1025
|
+
class: De({
|
|
1026
|
+
"vue-data-ui-fullscreen--on": Yn.value,
|
|
1027
|
+
"vue-data-ui-fulscreen--off": !Yn.value
|
|
1028
1028
|
}),
|
|
1029
1029
|
viewBox: `0 0 ${J.value.absoluteWidth} ${J.value.height}`,
|
|
1030
|
-
style:
|
|
1030
|
+
style: O(`max-width:100%; overflow: visible; background:transparent;color:${U.value.color}`),
|
|
1031
1031
|
tabindex: "0",
|
|
1032
|
-
"aria-describedby": `chart-instructions-${
|
|
1032
|
+
"aria-describedby": `chart-instructions-${L.value}`,
|
|
1033
1033
|
onFocus: gr,
|
|
1034
1034
|
onBlur: _r,
|
|
1035
1035
|
onKeydown: vr
|
|
1036
1036
|
}, [
|
|
1037
|
-
|
|
1038
|
-
e.$slots["chart-background"] ? (
|
|
1037
|
+
w(P(on)),
|
|
1038
|
+
e.$slots["chart-background"] ? (k(), S("foreignObject", {
|
|
1039
1039
|
key: 0,
|
|
1040
1040
|
x: 0,
|
|
1041
1041
|
y: 0,
|
|
1042
1042
|
width: J.value.absoluteWidth,
|
|
1043
1043
|
height: J.value.height,
|
|
1044
1044
|
style: { pointerEvents: "none" }
|
|
1045
|
-
}, [
|
|
1046
|
-
|
|
1047
|
-
|
|
1045
|
+
}, [M(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : x("", !0),
|
|
1046
|
+
C("defs", null, [
|
|
1047
|
+
w(_, {
|
|
1048
1048
|
t: "radial",
|
|
1049
|
-
id: `gradient_top${
|
|
1049
|
+
id: `gradient_top${L.value}`,
|
|
1050
1050
|
stops: [[
|
|
1051
1051
|
"0%",
|
|
1052
|
-
|
|
1052
|
+
P(g)(U.value.backgroundColor, 0),
|
|
1053
1053
|
1
|
|
1054
1054
|
], [
|
|
1055
1055
|
"100%",
|
|
@@ -1057,48 +1057,48 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1057
1057
|
1
|
|
1058
1058
|
]]
|
|
1059
1059
|
}, null, 8, ["id", "stops"]),
|
|
1060
|
-
|
|
1060
|
+
w(_, {
|
|
1061
1061
|
t: "radial",
|
|
1062
|
-
id: `gradient_tube_top${
|
|
1062
|
+
id: `gradient_tube_top${L.value}`,
|
|
1063
1063
|
stops: [[
|
|
1064
1064
|
"0%",
|
|
1065
|
-
|
|
1065
|
+
P(g)(P(a)(U.value.bar.color, .5), 80),
|
|
1066
1066
|
1
|
|
1067
1067
|
], [
|
|
1068
1068
|
"100%",
|
|
1069
|
-
|
|
1069
|
+
P(g)(P(o)(U.value.bar.color, .1), 80),
|
|
1070
1070
|
1
|
|
1071
1071
|
]]
|
|
1072
1072
|
}, null, 8, ["id", "stops"]),
|
|
1073
|
-
|
|
1073
|
+
w(_, {
|
|
1074
1074
|
t: "radial",
|
|
1075
|
-
id: `gradient_left${
|
|
1075
|
+
id: `gradient_left${L.value}`,
|
|
1076
1076
|
stops: [[
|
|
1077
1077
|
"0%",
|
|
1078
|
-
|
|
1078
|
+
P(g)(U.value.backgroundColor, 0),
|
|
1079
1079
|
1
|
|
1080
1080
|
], [
|
|
1081
1081
|
"100%",
|
|
1082
|
-
|
|
1082
|
+
P(g)(U.value.bar.color, 20),
|
|
1083
1083
|
1
|
|
1084
1084
|
]]
|
|
1085
1085
|
}, null, 8, ["id", "stops"]),
|
|
1086
|
-
|
|
1086
|
+
w(_, {
|
|
1087
1087
|
t: "radial",
|
|
1088
|
-
id: `gradient_right${
|
|
1088
|
+
id: `gradient_right${L.value}`,
|
|
1089
1089
|
stops: [[
|
|
1090
1090
|
"0%",
|
|
1091
|
-
|
|
1091
|
+
P(g)(U.value.backgroundColor, 0),
|
|
1092
1092
|
1
|
|
1093
1093
|
], [
|
|
1094
1094
|
"100%",
|
|
1095
|
-
|
|
1095
|
+
P(g)(U.value.bar.color, 20),
|
|
1096
1096
|
1
|
|
1097
1097
|
]]
|
|
1098
1098
|
}, null, 8, ["id", "stops"]),
|
|
1099
|
-
|
|
1099
|
+
w(_, {
|
|
1100
1100
|
t: "linear",
|
|
1101
|
-
id: `gradient_tube_body${
|
|
1101
|
+
id: `gradient_tube_body${L.value}`,
|
|
1102
1102
|
x1: "0%",
|
|
1103
1103
|
y1: "0%",
|
|
1104
1104
|
x2: "100%",
|
|
@@ -1111,35 +1111,35 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1111
1111
|
],
|
|
1112
1112
|
[
|
|
1113
1113
|
"10%",
|
|
1114
|
-
|
|
1114
|
+
P(g)(P(o)(U.value.bar.color, .7), 100),
|
|
1115
1115
|
1
|
|
1116
1116
|
],
|
|
1117
1117
|
[
|
|
1118
1118
|
"25%",
|
|
1119
|
-
|
|
1119
|
+
P(g)(P(o)(U.value.bar.color, .5), 100),
|
|
1120
1120
|
1
|
|
1121
1121
|
],
|
|
1122
1122
|
[
|
|
1123
1123
|
"75%",
|
|
1124
|
-
|
|
1124
|
+
P(g)(U.value.bar.color, 80),
|
|
1125
1125
|
1
|
|
1126
1126
|
],
|
|
1127
1127
|
[
|
|
1128
1128
|
"100%",
|
|
1129
|
-
|
|
1129
|
+
P(g)(P(a)(U.value.bar.color, .7), 100),
|
|
1130
1130
|
1
|
|
1131
1131
|
]
|
|
1132
1132
|
]
|
|
1133
1133
|
}, null, 8, ["id", "stops"])
|
|
1134
1134
|
]),
|
|
1135
|
-
q.value ? (
|
|
1136
|
-
(
|
|
1135
|
+
q.value ? (k(), S("defs", Ve, [
|
|
1136
|
+
(k(!0), S(v, null, j(Y.value, (e) => (k(), b(_, {
|
|
1137
1137
|
t: "radial",
|
|
1138
1138
|
id: `grad_top_${e.id}`,
|
|
1139
1139
|
key: `grad_top_${e.id}`,
|
|
1140
1140
|
stops: [[
|
|
1141
1141
|
"0%",
|
|
1142
|
-
|
|
1142
|
+
P(g)(P(a)(e.color, .5), 80),
|
|
1143
1143
|
1
|
|
1144
1144
|
], [
|
|
1145
1145
|
"100%",
|
|
@@ -1147,41 +1147,41 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1147
1147
|
1
|
|
1148
1148
|
]]
|
|
1149
1149
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1150
|
-
(
|
|
1150
|
+
(k(!0), S(v, null, j(Y.value, (e) => (k(), b(_, {
|
|
1151
1151
|
t: "linear",
|
|
1152
1152
|
id: `grad_left_${e.id}`,
|
|
1153
1153
|
key: `grad_left_${e.id}`,
|
|
1154
1154
|
stops: [[
|
|
1155
1155
|
"0%",
|
|
1156
|
-
|
|
1156
|
+
P(g)(e.color, 80),
|
|
1157
1157
|
1
|
|
1158
1158
|
], [
|
|
1159
1159
|
"100%",
|
|
1160
|
-
|
|
1160
|
+
P(g)(P(o)(e.color, .5), 100),
|
|
1161
1161
|
1
|
|
1162
1162
|
]]
|
|
1163
1163
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1164
|
-
(
|
|
1164
|
+
(k(!0), S(v, null, j(Y.value, (e) => (k(), b(_, {
|
|
1165
1165
|
t: "linear",
|
|
1166
1166
|
id: `grad_right_${e.id}`,
|
|
1167
1167
|
key: `grad_right_${e.id}`,
|
|
1168
1168
|
stops: [[
|
|
1169
1169
|
"2%",
|
|
1170
|
-
|
|
1170
|
+
P(g)(P(a)(e.color, .5), 100),
|
|
1171
1171
|
1
|
|
1172
1172
|
], [
|
|
1173
1173
|
"100%",
|
|
1174
|
-
|
|
1174
|
+
P(g)(e.color, 80),
|
|
1175
1175
|
1
|
|
1176
1176
|
]]
|
|
1177
1177
|
}, null, 8, ["id", "stops"]))), 128)),
|
|
1178
|
-
|
|
1178
|
+
w(_, {
|
|
1179
1179
|
t: "linear",
|
|
1180
1180
|
x1: "0%",
|
|
1181
1181
|
y1: "0%",
|
|
1182
1182
|
x2: "0%",
|
|
1183
1183
|
y2: "100%",
|
|
1184
|
-
id: `vertical_line_${
|
|
1184
|
+
id: `vertical_line_${L.value}`,
|
|
1185
1185
|
stops: [[
|
|
1186
1186
|
"0%",
|
|
1187
1187
|
"#FFFFFF",
|
|
@@ -1192,8 +1192,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1192
1192
|
1
|
|
1193
1193
|
]]
|
|
1194
1194
|
}, null, 8, ["id"])
|
|
1195
|
-
])) :
|
|
1196
|
-
U.value.dataLabel.show && ![null, void 0].includes(
|
|
1195
|
+
])) : x("", !0),
|
|
1196
|
+
U.value.dataLabel.show && ![null, void 0].includes(P(G).percentage) && [null, void 0].includes(P(G).series) ? (k(), S("text", {
|
|
1197
1197
|
key: 2,
|
|
1198
1198
|
x: J.value.width / 2,
|
|
1199
1199
|
y: J.value.top - U.value.dataLabel.fontSize / 2,
|
|
@@ -1201,45 +1201,45 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1201
1201
|
"font-weight": U.value.dataLabel.bold ? "bold" : "normal",
|
|
1202
1202
|
fill: U.value.dataLabel.color,
|
|
1203
1203
|
"text-anchor": "middle"
|
|
1204
|
-
},
|
|
1204
|
+
}, N(P(t)({
|
|
1205
1205
|
v: Rn.value,
|
|
1206
1206
|
s: "%",
|
|
1207
1207
|
r: U.value.dataLabel.rounding
|
|
1208
|
-
})), 9,
|
|
1209
|
-
|
|
1208
|
+
})), 9, He)) : x("", !0),
|
|
1209
|
+
z.value ? (k(), S("g", {
|
|
1210
1210
|
key: 3,
|
|
1211
1211
|
role: "button",
|
|
1212
1212
|
tabindex: "0",
|
|
1213
1213
|
"aria-label": "Clear selection",
|
|
1214
|
-
onClick:
|
|
1215
|
-
|
|
1214
|
+
onClick: n[0] ||= (e) => {
|
|
1215
|
+
z.value = !1, Z.value = null;
|
|
1216
1216
|
},
|
|
1217
|
-
onKeydown: [
|
|
1218
|
-
|
|
1219
|
-
}, ["prevent"]), ["enter"]),
|
|
1220
|
-
|
|
1217
|
+
onKeydown: [n[1] ||= Me(Ne((e) => {
|
|
1218
|
+
z.value = !1, Z.value = null;
|
|
1219
|
+
}, ["prevent"]), ["enter"]), n[2] ||= Me(Ne((e) => {
|
|
1220
|
+
z.value = !1, Z.value = null;
|
|
1221
1221
|
}, ["prevent"]), ["space"])],
|
|
1222
|
-
onFocus:
|
|
1223
|
-
onBlur:
|
|
1224
|
-
onMouseenter:
|
|
1225
|
-
onMouseleave:
|
|
1222
|
+
onFocus: n[3] ||= (e) => yn.value = !0,
|
|
1223
|
+
onBlur: n[4] ||= (e) => yn.value = !1,
|
|
1224
|
+
onMouseenter: n[5] ||= (e) => yn.value = !0,
|
|
1225
|
+
onMouseleave: n[6] ||= (e) => yn.value = !1,
|
|
1226
1226
|
class: "svg-btn",
|
|
1227
1227
|
"data-dom-to-png-ignore": "",
|
|
1228
|
-
style:
|
|
1228
|
+
style: O({
|
|
1229
1229
|
cursor: Cn.value ? "pointer" : "default",
|
|
1230
1230
|
outline: "none"
|
|
1231
1231
|
})
|
|
1232
1232
|
}, [
|
|
1233
|
-
|
|
1234
|
-
|
|
1233
|
+
n[10] ||= C("title", null, "Clear selection", -1),
|
|
1234
|
+
C("rect", {
|
|
1235
1235
|
x: Un.value - 12,
|
|
1236
1236
|
y: J.value.top - 24,
|
|
1237
1237
|
width: 24,
|
|
1238
1238
|
height: 24,
|
|
1239
1239
|
fill: "transparent",
|
|
1240
1240
|
"pointer-events": "all"
|
|
1241
|
-
}, null, 8,
|
|
1242
|
-
|
|
1241
|
+
}, null, 8, Ue),
|
|
1242
|
+
C("circle", {
|
|
1243
1243
|
cx: Un.value,
|
|
1244
1244
|
cy: J.value.top - 12,
|
|
1245
1245
|
r: "10",
|
|
@@ -1247,26 +1247,26 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1247
1247
|
stroke: U.value.color,
|
|
1248
1248
|
"stroke-width": "2",
|
|
1249
1249
|
"vector-effect": "non-scaling-stroke",
|
|
1250
|
-
opacity:
|
|
1251
|
-
}, null, 8,
|
|
1252
|
-
|
|
1250
|
+
opacity: yn.value ? .5 : 0
|
|
1251
|
+
}, null, 8, We),
|
|
1252
|
+
C("path", {
|
|
1253
1253
|
d: `M${Un.value - 6},${J.value.top - 18} ${Un.value + 6},${J.value.top - 6}`,
|
|
1254
1254
|
stroke: U.value.color,
|
|
1255
1255
|
"stroke-linecap": "round",
|
|
1256
1256
|
"stroke-width": "2",
|
|
1257
1257
|
"vector-effect": "non-scaling-stroke"
|
|
1258
|
-
}, null, 8,
|
|
1259
|
-
|
|
1258
|
+
}, null, 8, Ge),
|
|
1259
|
+
C("path", {
|
|
1260
1260
|
d: `M${Un.value + 6},${J.value.top - 18} ${Un.value - 6},${J.value.top - 6}`,
|
|
1261
1261
|
stroke: U.value.color,
|
|
1262
1262
|
"stroke-linecap": "round",
|
|
1263
1263
|
"stroke-width": "2",
|
|
1264
1264
|
"vector-effect": "non-scaling-stroke"
|
|
1265
|
-
}, null, 8,
|
|
1266
|
-
], 36)) :
|
|
1267
|
-
!Sn.value.shape || Sn.value.shape === "bar" ? (
|
|
1268
|
-
q.value ?
|
|
1269
|
-
|
|
1265
|
+
}, null, 8, Ke)
|
|
1266
|
+
], 36)) : x("", !0),
|
|
1267
|
+
!Sn.value.shape || Sn.value.shape === "bar" ? (k(), S("g", qe, [
|
|
1268
|
+
q.value ? x("", !0) : (k(), S("g", Je, [
|
|
1269
|
+
C("path", {
|
|
1270
1270
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1271
1271
|
d: X.value.right,
|
|
1272
1272
|
stroke: U.value.box.stroke,
|
|
@@ -1274,8 +1274,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1274
1274
|
"stroke-linejoin": "round",
|
|
1275
1275
|
"stroke-linecap": "round",
|
|
1276
1276
|
fill: "none"
|
|
1277
|
-
}, null, 8,
|
|
1278
|
-
|
|
1277
|
+
}, null, 8, Ye),
|
|
1278
|
+
C("path", {
|
|
1279
1279
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1280
1280
|
d: X.value.left,
|
|
1281
1281
|
stroke: U.value.box.stroke,
|
|
@@ -1283,8 +1283,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1283
1283
|
"stroke-linejoin": "round",
|
|
1284
1284
|
"stroke-linecap": "round",
|
|
1285
1285
|
fill: "none"
|
|
1286
|
-
}, null, 8,
|
|
1287
|
-
|
|
1286
|
+
}, null, 8, Xe),
|
|
1287
|
+
C("path", {
|
|
1288
1288
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1289
1289
|
d: X.value.side,
|
|
1290
1290
|
stroke: U.value.box.stroke,
|
|
@@ -1292,8 +1292,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1292
1292
|
"stroke-linejoin": "round",
|
|
1293
1293
|
"stroke-linecap": "round",
|
|
1294
1294
|
fill: "none"
|
|
1295
|
-
}, null, 8,
|
|
1296
|
-
|
|
1295
|
+
}, null, 8, Ze),
|
|
1296
|
+
C("path", {
|
|
1297
1297
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1298
1298
|
d: X.value.topSides,
|
|
1299
1299
|
stroke: U.value.box.stroke,
|
|
@@ -1301,63 +1301,63 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1301
1301
|
"stroke-linejoin": "round",
|
|
1302
1302
|
"stroke-linecap": "round",
|
|
1303
1303
|
fill: "none"
|
|
1304
|
-
}, null, 8,
|
|
1304
|
+
}, null, 8, Qe)
|
|
1305
1305
|
])),
|
|
1306
|
-
q.value ?
|
|
1307
|
-
|
|
1306
|
+
q.value ? x("", !0) : (k(), S("g", $e, [
|
|
1307
|
+
C("path", {
|
|
1308
1308
|
d: Gn.value.right,
|
|
1309
1309
|
stroke: U.value.bar.stroke,
|
|
1310
1310
|
"stroke-width": U.value.bar.strokeWidth,
|
|
1311
1311
|
"stroke-linejoin": "round",
|
|
1312
1312
|
"stroke-linecap": "round",
|
|
1313
|
-
fill: `url(#gradient_right${
|
|
1314
|
-
}, null, 8,
|
|
1315
|
-
|
|
1313
|
+
fill: `url(#gradient_right${L.value})`
|
|
1314
|
+
}, null, 8, et),
|
|
1315
|
+
C("path", {
|
|
1316
1316
|
d: Gn.value.left,
|
|
1317
1317
|
stroke: U.value.bar.stroke,
|
|
1318
1318
|
"stroke-width": U.value.bar.strokeWidth,
|
|
1319
1319
|
"stroke-linejoin": "round",
|
|
1320
1320
|
"stroke-linecap": "round",
|
|
1321
|
-
fill: `url(#gradient_left${
|
|
1322
|
-
}, null, 8,
|
|
1323
|
-
|
|
1321
|
+
fill: `url(#gradient_left${L.value})`
|
|
1322
|
+
}, null, 8, tt),
|
|
1323
|
+
C("path", {
|
|
1324
1324
|
d: Gn.value.top,
|
|
1325
1325
|
stroke: U.value.bar.stroke,
|
|
1326
1326
|
"stroke-width": U.value.bar.strokeWidth,
|
|
1327
1327
|
"stroke-linejoin": "round",
|
|
1328
1328
|
"stroke-linecap": "round",
|
|
1329
|
-
fill: `url(#gradient_top${
|
|
1330
|
-
}, null, 8,
|
|
1329
|
+
fill: `url(#gradient_top${L.value})`
|
|
1330
|
+
}, null, 8, nt)
|
|
1331
1331
|
])),
|
|
1332
|
-
q.value ? (
|
|
1333
|
-
(
|
|
1334
|
-
style:
|
|
1332
|
+
q.value ? (k(), S("g", rt, [
|
|
1333
|
+
(k(!0), S(v, null, j(Y.value, (e, t) => (k(), S("g", {
|
|
1334
|
+
style: O(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
|
|
1335
1335
|
class: "vue-ui-3d-bar-stack",
|
|
1336
1336
|
role: "img",
|
|
1337
1337
|
"aria-label": mr(e)
|
|
1338
1338
|
}, [
|
|
1339
|
-
|
|
1339
|
+
C("path", {
|
|
1340
1340
|
d: e.fill.right,
|
|
1341
1341
|
fill: `url(#grad_right_${e.id})`,
|
|
1342
1342
|
onMouseenter: (t) => Q(e),
|
|
1343
1343
|
onClick: (t) => Q(e, !0),
|
|
1344
|
-
onMouseout: (t) =>
|
|
1345
|
-
}, null, 40,
|
|
1346
|
-
|
|
1344
|
+
onMouseout: (t) => Kn(e)
|
|
1345
|
+
}, null, 40, at),
|
|
1346
|
+
C("path", {
|
|
1347
1347
|
d: e.fill.left,
|
|
1348
1348
|
fill: `url(#grad_left_${e.id})`,
|
|
1349
1349
|
onMouseenter: (t) => Q(e),
|
|
1350
1350
|
onClick: (t) => Q(e, !0),
|
|
1351
|
-
onMouseout: (t) =>
|
|
1352
|
-
}, null, 40,
|
|
1353
|
-
|
|
1351
|
+
onMouseout: (t) => Kn(e)
|
|
1352
|
+
}, null, 40, ot),
|
|
1353
|
+
C("path", {
|
|
1354
1354
|
d: e.fill.top,
|
|
1355
1355
|
fill: `url(#grad_top_${e.id})`,
|
|
1356
1356
|
onMouseenter: (t) => Q(e),
|
|
1357
1357
|
onClick: (t) => Q(e, !0),
|
|
1358
|
-
onMouseout: (t) =>
|
|
1359
|
-
}, null, 40,
|
|
1360
|
-
|
|
1358
|
+
onMouseout: (t) => Kn(e)
|
|
1359
|
+
}, null, 40, st),
|
|
1360
|
+
C("path", {
|
|
1361
1361
|
d: e.fill.liningTop,
|
|
1362
1362
|
stroke: "#FFFFFF",
|
|
1363
1363
|
"stroke-width": "0.5",
|
|
@@ -1365,16 +1365,16 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1365
1365
|
fill: "none",
|
|
1366
1366
|
onMouseenter: (t) => Q(e),
|
|
1367
1367
|
onClick: (t) => Q(e, !0),
|
|
1368
|
-
onMouseout: (t) =>
|
|
1369
|
-
}, null, 40,
|
|
1370
|
-
|
|
1368
|
+
onMouseout: (t) => Kn(e)
|
|
1369
|
+
}, null, 40, ct),
|
|
1370
|
+
C("path", {
|
|
1371
1371
|
d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
|
|
1372
1372
|
stroke: "#FFFFFF",
|
|
1373
1373
|
"stroke-width": "0.5",
|
|
1374
1374
|
"stroke-linecap": "round"
|
|
1375
|
-
}, null, 8,
|
|
1376
|
-
], 12,
|
|
1377
|
-
(
|
|
1375
|
+
}, null, 8, lt)
|
|
1376
|
+
], 12, it))), 256)),
|
|
1377
|
+
(k(!0), S(v, null, j(Y.value, (e, t) => (k(), S("g", null, [t === Y.value.length - 1 ? x("", !0) : (k(), S("path", {
|
|
1378
1378
|
key: 0,
|
|
1379
1379
|
d: e.fill.liningTopShade,
|
|
1380
1380
|
stroke: U.value.bar.shadeColor,
|
|
@@ -1382,70 +1382,70 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1382
1382
|
"stroke-linecap": "round",
|
|
1383
1383
|
fill: "none",
|
|
1384
1384
|
style: { "pointer-events": "none" }
|
|
1385
|
-
}, null, 8,
|
|
1386
|
-
(
|
|
1387
|
-
style:
|
|
1388
|
-
onClick: (e) =>
|
|
1385
|
+
}, null, 8, ut))]))), 256)),
|
|
1386
|
+
(k(!0), S(v, null, j(Y.value, (n, r) => (k(), S("g", {
|
|
1387
|
+
style: O(`opacity:${Z.value ? +(Z.value === n.id) : +(n.proportion * 100 > U.value.legend.hideUnderPercentage)}`),
|
|
1388
|
+
onClick: (e) => dn("selectDatapoint", n)
|
|
1389
1389
|
}, [
|
|
1390
|
-
|
|
1390
|
+
C("path", {
|
|
1391
1391
|
stroke: U.value.color,
|
|
1392
1392
|
"stroke-dasharray": "1",
|
|
1393
1393
|
"stroke-width": "0.5",
|
|
1394
1394
|
"stroke-linecap": "round",
|
|
1395
|
-
d: `M${
|
|
1396
|
-
}, null, 8,
|
|
1397
|
-
!
|
|
1395
|
+
d: `M${n.fill.sidePointer.x},${n.fill.sidePointer.y} ${n.fill.sidePointer.x2},${n.fill.sidePointer.y}`
|
|
1396
|
+
}, null, 8, ft),
|
|
1397
|
+
!n.fill.miniDonut || Z.value ? (k(), S("circle", {
|
|
1398
1398
|
key: 0,
|
|
1399
|
-
cx:
|
|
1400
|
-
cy:
|
|
1399
|
+
cx: n.fill.sidePointer.x2,
|
|
1400
|
+
cy: n.fill.sidePointer.y,
|
|
1401
1401
|
r: 2,
|
|
1402
|
-
fill:
|
|
1402
|
+
fill: n.color,
|
|
1403
1403
|
stroke: U.value.backgroundColor
|
|
1404
|
-
}, null, 8,
|
|
1405
|
-
|
|
1404
|
+
}, null, 8, pt)) : x("", !0),
|
|
1405
|
+
P(Tn) ? (k(), S("rect", {
|
|
1406
1406
|
key: 1,
|
|
1407
|
-
x:
|
|
1408
|
-
y:
|
|
1407
|
+
x: n.fill.sidePointer.xText,
|
|
1408
|
+
y: n.fill.sidePointer.y - U.value.legend.fontSize / 2,
|
|
1409
1409
|
width: J.value.width / 3,
|
|
1410
1410
|
height: U.value.legend.fontSize,
|
|
1411
1411
|
fill: "#6A6A6A80",
|
|
1412
1412
|
rx: "3"
|
|
1413
|
-
}, null, 8,
|
|
1414
|
-
|
|
1413
|
+
}, null, 8, mt)) : x("", !0),
|
|
1414
|
+
P(Tn) ? x("", !0) : (k(), S("foreignObject", {
|
|
1415
1415
|
key: 2,
|
|
1416
|
-
x:
|
|
1417
|
-
y:
|
|
1416
|
+
x: n.fill.sidePointer.xText,
|
|
1417
|
+
y: n.fill.sidePointer.y - U.value.legend.fontSize,
|
|
1418
1418
|
width: J.value.absoluteWidth / 3,
|
|
1419
1419
|
height: U.value.legend.fontSize * 2,
|
|
1420
1420
|
style: {
|
|
1421
1421
|
overflow: "visible",
|
|
1422
1422
|
position: "relative"
|
|
1423
1423
|
}
|
|
1424
|
-
}, [U.value.legend.showDefault ? (
|
|
1424
|
+
}, [U.value.legend.showDefault ? (k(), S("div", {
|
|
1425
1425
|
key: 0,
|
|
1426
|
-
style:
|
|
1427
|
-
},
|
|
1428
|
-
v:
|
|
1426
|
+
style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${U.value.legend.fontSize}px; text-align:left; line-height: ${U.value.legend.fontSize}px; color:${U.value.legend.color}; font-weight:${U.value.legend.bold ? "bold" : "normal"}`)
|
|
1427
|
+
}, N(P(h)(U.value.dataLabel.formatter, n.value, `${n.name}: ${P(t)({
|
|
1428
|
+
v: n.proportion * 100,
|
|
1429
1429
|
s: "%",
|
|
1430
1430
|
r: U.value.legend.roundingPercentage
|
|
1431
|
-
})} (${
|
|
1431
|
+
})} (${P(t)({
|
|
1432
1432
|
p: U.value.legend.prefix,
|
|
1433
|
-
v:
|
|
1433
|
+
v: n.value,
|
|
1434
1434
|
s: U.value.legend.suffix,
|
|
1435
1435
|
r: U.value.legend.roundingValue
|
|
1436
1436
|
})})`, {
|
|
1437
|
-
datapoint:
|
|
1438
|
-
seriesIndex:
|
|
1437
|
+
datapoint: n,
|
|
1438
|
+
seriesIndex: r,
|
|
1439
1439
|
type: "barDatapoint"
|
|
1440
|
-
})), 5)) :
|
|
1441
|
-
datapoint:
|
|
1440
|
+
})), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
|
|
1441
|
+
datapoint: n,
|
|
1442
1442
|
config: H.value,
|
|
1443
1443
|
dataset: Y.value
|
|
1444
|
-
}), void 0, !0)], 8,
|
|
1445
|
-
|
|
1446
|
-
(
|
|
1444
|
+
}), void 0, !0)], 8, ht)),
|
|
1445
|
+
n.fill.donut && Z.value === n.id ? (k(), S("g", gt, [
|
|
1446
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, t) => (k(), S("g", null, [qn(e, n.fill.donut, !0) > 6 ? (k(), S("path", {
|
|
1447
1447
|
key: 0,
|
|
1448
|
-
d:
|
|
1448
|
+
d: P(m)(e, {
|
|
1449
1449
|
x: e.cx,
|
|
1450
1450
|
y: e.cy
|
|
1451
1451
|
}, 0, 8, !1, !0, 10),
|
|
@@ -1455,51 +1455,51 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1455
1455
|
"stroke-linecap": "round",
|
|
1456
1456
|
"stroke-linejoin": "round",
|
|
1457
1457
|
fill: "none"
|
|
1458
|
-
}, null, 8,
|
|
1459
|
-
(
|
|
1458
|
+
}, null, 8, _t)) : x("", !0)]))), 256)),
|
|
1459
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, t) => (k(), S("path", {
|
|
1460
1460
|
class: "vue-ui-donut-arc-path",
|
|
1461
1461
|
d: e.arcSlice,
|
|
1462
1462
|
fill: `${e.color}`,
|
|
1463
1463
|
stroke: U.value.backgroundColor,
|
|
1464
1464
|
"stroke-width": 1
|
|
1465
|
-
}, null, 8,
|
|
1466
|
-
(
|
|
1467
|
-
"text-anchor":
|
|
1468
|
-
x:
|
|
1469
|
-
y:
|
|
1465
|
+
}, null, 8, vt))), 256)),
|
|
1466
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, r) => (k(), S("g", null, [qn(e, n.fill.donut, !0) > 6 ? (k(), S("g", yt, [C("text", {
|
|
1467
|
+
"text-anchor": P(p)(e, !0, 0).anchor,
|
|
1468
|
+
x: P(p)(e, !0, 2).x,
|
|
1469
|
+
y: P(te)(e, 12, 12),
|
|
1470
1470
|
fill: U.value.legend.color,
|
|
1471
1471
|
"font-size": U.value.legend.fontSize / 1.5,
|
|
1472
1472
|
"font-weight": U.value.legend.bold ? "bold" : "normal"
|
|
1473
|
-
},
|
|
1473
|
+
}, N(P(h)(U.value.dataLabel.formatter, e.value, `${qn(e, n.fill.donut)} (${P(t)({
|
|
1474
1474
|
p: H.value.style.chart.legend.prefix,
|
|
1475
1475
|
v: e.value,
|
|
1476
1476
|
s: H.value.style.chart.legend.suffix,
|
|
1477
1477
|
r: H.value.style.chart.legend.roundingValue
|
|
1478
1478
|
})})`, {
|
|
1479
1479
|
datapoint: e,
|
|
1480
|
-
seriesIndex:
|
|
1480
|
+
seriesIndex: r,
|
|
1481
1481
|
type: "donutDatapoint"
|
|
1482
|
-
})), 9,
|
|
1483
|
-
"text-anchor":
|
|
1484
|
-
x:
|
|
1485
|
-
y:
|
|
1482
|
+
})), 9, bt), C("text", {
|
|
1483
|
+
"text-anchor": P(p)(e).anchor,
|
|
1484
|
+
x: P(p)(e, !0, 2).x,
|
|
1485
|
+
y: P(te)(e, 12, 12) + U.value.legend.fontSize / 1.5,
|
|
1486
1486
|
fill: U.value.legend.color,
|
|
1487
1487
|
"font-size": U.value.legend.fontSize / 1.5,
|
|
1488
1488
|
"font-weight": U.value.legend.bold ? "bold" : "normal"
|
|
1489
|
-
},
|
|
1490
|
-
])) :
|
|
1491
|
-
|
|
1489
|
+
}, N(e.name), 9, xt)])) : x("", !0)]))), 256))
|
|
1490
|
+
])) : x("", !0),
|
|
1491
|
+
n.fill.miniDonut && !Z.value ? (k(), S("g", St, [(k(!0), S(v, null, j(n.fill.miniDonut, (e, t) => (k(), S("path", {
|
|
1492
1492
|
class: "vue-ui-donut-arc-path",
|
|
1493
1493
|
d: e.arcSlice,
|
|
1494
1494
|
fill: `${e.color}`,
|
|
1495
1495
|
stroke: U.value.backgroundColor,
|
|
1496
1496
|
"stroke-width": .5
|
|
1497
|
-
}, null, 8,
|
|
1498
|
-
], 12,
|
|
1499
|
-
])) :
|
|
1500
|
-
])) :
|
|
1501
|
-
Sn.value.shape === "tube" ? (
|
|
1502
|
-
|
|
1497
|
+
}, null, 8, Ct))), 256))])) : x("", !0)
|
|
1498
|
+
], 12, dt))), 256))
|
|
1499
|
+
])) : x("", !0)
|
|
1500
|
+
])) : x("", !0),
|
|
1501
|
+
Sn.value.shape === "tube" ? (k(), S("g", wt, [q.value ? x("", !0) : (k(), S("g", Tt, [
|
|
1502
|
+
C("path", {
|
|
1503
1503
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1504
1504
|
d: X.value.tubeTop,
|
|
1505
1505
|
stroke: U.value.box.stroke,
|
|
@@ -1507,8 +1507,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1507
1507
|
"stroke-linejoin": "round",
|
|
1508
1508
|
"stroke-linecap": "round",
|
|
1509
1509
|
fill: "none"
|
|
1510
|
-
}, null, 8,
|
|
1511
|
-
|
|
1510
|
+
}, null, 8, Et),
|
|
1511
|
+
C("path", {
|
|
1512
1512
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1513
1513
|
d: X.value.tubeLeft,
|
|
1514
1514
|
stroke: U.value.box.stroke,
|
|
@@ -1516,8 +1516,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1516
1516
|
"stroke-linejoin": "round",
|
|
1517
1517
|
"stroke-linecap": "round",
|
|
1518
1518
|
fill: "none"
|
|
1519
|
-
}, null, 8,
|
|
1520
|
-
|
|
1519
|
+
}, null, 8, Dt),
|
|
1520
|
+
C("path", {
|
|
1521
1521
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1522
1522
|
d: X.value.tubeRight,
|
|
1523
1523
|
stroke: U.value.box.stroke,
|
|
@@ -1525,8 +1525,8 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1525
1525
|
"stroke-linejoin": "round",
|
|
1526
1526
|
"stroke-linecap": "round",
|
|
1527
1527
|
fill: "none"
|
|
1528
|
-
}, null, 8,
|
|
1529
|
-
|
|
1528
|
+
}, null, 8, Ot),
|
|
1529
|
+
C("path", {
|
|
1530
1530
|
"stroke-dasharray": U.value.box.strokeDasharray,
|
|
1531
1531
|
d: X.value.tubeBottom,
|
|
1532
1532
|
stroke: U.value.box.stroke,
|
|
@@ -1534,52 +1534,52 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1534
1534
|
"stroke-linejoin": "round",
|
|
1535
1535
|
"stroke-linecap": "round",
|
|
1536
1536
|
fill: "none"
|
|
1537
|
-
}, null, 8,
|
|
1538
|
-
|
|
1537
|
+
}, null, 8, kt),
|
|
1538
|
+
C("path", {
|
|
1539
1539
|
d: Gn.value.tubeTop,
|
|
1540
1540
|
stroke: U.value.bar.stroke,
|
|
1541
1541
|
"stroke-width": U.value.bar.strokeWidth,
|
|
1542
1542
|
"stroke-linejoin": "round",
|
|
1543
1543
|
"stroke-linecap": "round",
|
|
1544
|
-
fill: `url(#gradient_tube_top${
|
|
1545
|
-
}, null, 8,
|
|
1546
|
-
|
|
1544
|
+
fill: `url(#gradient_tube_top${L.value})`
|
|
1545
|
+
}, null, 8, At),
|
|
1546
|
+
C("path", {
|
|
1547
1547
|
d: Gn.value.tubeBody,
|
|
1548
1548
|
stroke: U.value.bar.stroke,
|
|
1549
1549
|
"stroke-width": U.value.bar.strokeWidth,
|
|
1550
1550
|
"stroke-linejoin": "round",
|
|
1551
1551
|
"stroke-linecap": "round",
|
|
1552
|
-
fill: `url(#gradient_tube_body${
|
|
1553
|
-
}, null, 8,
|
|
1554
|
-
|
|
1552
|
+
fill: `url(#gradient_tube_body${L.value})`
|
|
1553
|
+
}, null, 8, jt),
|
|
1554
|
+
C("path", {
|
|
1555
1555
|
d: Gn.value.tubeTop,
|
|
1556
1556
|
stroke: "#FFFFFF",
|
|
1557
1557
|
"stroke-width": .5,
|
|
1558
1558
|
"stroke-linejoin": "round",
|
|
1559
1559
|
"stroke-linecap": "round",
|
|
1560
1560
|
fill: "none"
|
|
1561
|
-
}, null, 8,
|
|
1562
|
-
])), q.value ? (
|
|
1563
|
-
style:
|
|
1561
|
+
}, null, 8, Mt)
|
|
1562
|
+
])), q.value ? (k(), S("g", Nt, [(k(!0), S(v, null, j(Y.value, (e, t) => (k(), S("g", {
|
|
1563
|
+
style: O(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
|
|
1564
1564
|
class: "vue-ui-3d-bar-stack",
|
|
1565
1565
|
role: "img",
|
|
1566
1566
|
"aria-label": mr(e)
|
|
1567
1567
|
}, [
|
|
1568
|
-
|
|
1568
|
+
C("defs", null, [w(_, {
|
|
1569
1569
|
t: "radial",
|
|
1570
1570
|
id: `gradient_tube_top_${e.id}`,
|
|
1571
1571
|
fx: "10%",
|
|
1572
1572
|
cy: "55%",
|
|
1573
1573
|
stops: [[
|
|
1574
1574
|
"0%",
|
|
1575
|
-
|
|
1575
|
+
P(g)(P(a)(e.color, .5), 80),
|
|
1576
1576
|
1
|
|
1577
1577
|
], [
|
|
1578
1578
|
"100%",
|
|
1579
|
-
|
|
1579
|
+
P(g)(P(o)(e.color, .1), 80),
|
|
1580
1580
|
1
|
|
1581
1581
|
]]
|
|
1582
|
-
}, null, 8, ["id", "stops"]),
|
|
1582
|
+
}, null, 8, ["id", "stops"]), w(_, {
|
|
1583
1583
|
t: "linear",
|
|
1584
1584
|
id: `gradient_tube_body_${e.id}`,
|
|
1585
1585
|
x1: "0%",
|
|
@@ -1594,123 +1594,123 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1594
1594
|
],
|
|
1595
1595
|
[
|
|
1596
1596
|
"10%",
|
|
1597
|
-
|
|
1597
|
+
P(g)(P(o)(e.color, .7), 100),
|
|
1598
1598
|
1
|
|
1599
1599
|
],
|
|
1600
1600
|
[
|
|
1601
1601
|
"25%",
|
|
1602
|
-
|
|
1602
|
+
P(g)(P(o)(e.color, .5), 100),
|
|
1603
1603
|
1
|
|
1604
1604
|
],
|
|
1605
1605
|
[
|
|
1606
1606
|
"75%",
|
|
1607
|
-
|
|
1607
|
+
P(g)(e.color, 80),
|
|
1608
1608
|
1
|
|
1609
1609
|
],
|
|
1610
1610
|
[
|
|
1611
1611
|
"100%",
|
|
1612
|
-
|
|
1612
|
+
P(g)(P(a)(e.color, .7), 100),
|
|
1613
1613
|
1
|
|
1614
1614
|
]
|
|
1615
1615
|
]
|
|
1616
1616
|
}, null, 8, ["id", "stops"])]),
|
|
1617
|
-
|
|
1617
|
+
C("path", {
|
|
1618
1618
|
onMouseenter: (t) => Q(e),
|
|
1619
1619
|
onClick: (t) => Q(e, !0),
|
|
1620
|
-
onMouseout: (t) =>
|
|
1620
|
+
onMouseout: (t) => Kn(e),
|
|
1621
1621
|
d: e.fill.tubeBody,
|
|
1622
1622
|
stroke: "#FFFFFF",
|
|
1623
1623
|
"stroke-width": .5,
|
|
1624
1624
|
"stroke-linejoin": "round",
|
|
1625
1625
|
"stroke-linecap": "round",
|
|
1626
1626
|
fill: `url(#gradient_tube_body_${e.id})`
|
|
1627
|
-
}, null, 40,
|
|
1628
|
-
t > 0 ? (
|
|
1627
|
+
}, null, 40, Ft),
|
|
1628
|
+
t > 0 ? (k(), S("path", {
|
|
1629
1629
|
key: 0,
|
|
1630
1630
|
onMouseenter: (t) => Q(e),
|
|
1631
1631
|
onClick: (t) => Q(e, !0),
|
|
1632
|
-
onMouseout: (t) =>
|
|
1632
|
+
onMouseout: (t) => Kn(e),
|
|
1633
1633
|
d: e.fill.bottomTubeTop,
|
|
1634
1634
|
stroke: "#000000",
|
|
1635
1635
|
"stroke-width": .5,
|
|
1636
1636
|
"stroke-linejoin": "round",
|
|
1637
1637
|
"stroke-linecap": "round",
|
|
1638
1638
|
fill: "none"
|
|
1639
|
-
}, null, 40,
|
|
1640
|
-
|
|
1639
|
+
}, null, 40, It)) : x("", !0),
|
|
1640
|
+
C("path", {
|
|
1641
1641
|
onMouseenter: (t) => Q(e),
|
|
1642
1642
|
onClick: (t) => Q(e, !0),
|
|
1643
|
-
onMouseout: (t) =>
|
|
1643
|
+
onMouseout: (t) => Kn(e),
|
|
1644
1644
|
d: e.fill.tubeTop,
|
|
1645
1645
|
stroke: "#FFFFFF",
|
|
1646
1646
|
"stroke-width": .5,
|
|
1647
1647
|
"stroke-linejoin": "round",
|
|
1648
1648
|
"stroke-linecap": "round",
|
|
1649
1649
|
fill: `url(#gradient_tube_top_${e.id})`
|
|
1650
|
-
}, null, 40,
|
|
1651
|
-
], 12,
|
|
1652
|
-
style:
|
|
1653
|
-
onClick: (e) =>
|
|
1650
|
+
}, null, 40, Lt)
|
|
1651
|
+
], 12, Pt))), 256)), (k(!0), S(v, null, j(Y.value, (n, r) => (k(), S("g", {
|
|
1652
|
+
style: O(`opacity:${Z.value ? +(Z.value === n.id) : +(n.proportion * 100 > U.value.legend.hideUnderPercentage)}`),
|
|
1653
|
+
onClick: (e) => dn("selectDatapoint", n)
|
|
1654
1654
|
}, [
|
|
1655
|
-
|
|
1655
|
+
C("path", {
|
|
1656
1656
|
stroke: U.value.color,
|
|
1657
1657
|
"stroke-dasharray": "1",
|
|
1658
1658
|
"stroke-width": "0.5",
|
|
1659
1659
|
"stroke-linecap": "round",
|
|
1660
|
-
d: `M${
|
|
1661
|
-
}, null, 8,
|
|
1662
|
-
!
|
|
1660
|
+
d: `M${n.fill.sidePointer.x},${n.fill.sidePointer.y} ${n.fill.sidePointer.x2},${n.fill.sidePointer.y}`
|
|
1661
|
+
}, null, 8, zt),
|
|
1662
|
+
!n.fill.miniDonut || Z.value ? (k(), S("circle", {
|
|
1663
1663
|
key: 0,
|
|
1664
|
-
cx:
|
|
1665
|
-
cy:
|
|
1664
|
+
cx: n.fill.sidePointer.x2,
|
|
1665
|
+
cy: n.fill.sidePointer.y,
|
|
1666
1666
|
r: 2,
|
|
1667
|
-
fill:
|
|
1667
|
+
fill: n.color,
|
|
1668
1668
|
stroke: U.value.backgroundColor
|
|
1669
|
-
}, null, 8,
|
|
1670
|
-
|
|
1669
|
+
}, null, 8, Bt)) : x("", !0),
|
|
1670
|
+
P(Tn) ? (k(), S("rect", {
|
|
1671
1671
|
key: 1,
|
|
1672
|
-
x:
|
|
1673
|
-
y:
|
|
1672
|
+
x: n.fill.sidePointer.xText,
|
|
1673
|
+
y: n.fill.sidePointer.y - U.value.legend.fontSize / 2,
|
|
1674
1674
|
width: J.value.width / 3,
|
|
1675
1675
|
height: U.value.legend.fontSize,
|
|
1676
1676
|
fill: "#6A6A6A80",
|
|
1677
1677
|
rx: "3"
|
|
1678
|
-
}, null, 8,
|
|
1679
|
-
|
|
1678
|
+
}, null, 8, Vt)) : x("", !0),
|
|
1679
|
+
P(Tn) ? x("", !0) : (k(), S("foreignObject", {
|
|
1680
1680
|
key: 2,
|
|
1681
|
-
x:
|
|
1682
|
-
y:
|
|
1681
|
+
x: n.fill.sidePointer.xText,
|
|
1682
|
+
y: n.fill.sidePointer.y - U.value.legend.fontSize,
|
|
1683
1683
|
width: J.value.absoluteWidth / 3,
|
|
1684
1684
|
height: U.value.legend.fontSize * 2,
|
|
1685
1685
|
style: {
|
|
1686
1686
|
overflow: "visible",
|
|
1687
1687
|
position: "relative"
|
|
1688
1688
|
}
|
|
1689
|
-
}, [U.value.legend.showDefault ? (
|
|
1689
|
+
}, [U.value.legend.showDefault ? (k(), S("div", {
|
|
1690
1690
|
key: 0,
|
|
1691
|
-
style:
|
|
1692
|
-
},
|
|
1693
|
-
v:
|
|
1691
|
+
style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${U.value.legend.fontSize}px; text-align:left; line-height: ${U.value.legend.fontSize}px; color:${U.value.legend.color};font-weight:${U.value.legend.bold ? "bold" : "normal"}`)
|
|
1692
|
+
}, N(P(h)(U.value.dataLabel.formatter, n.value, `${n.name}: ${P(t)({
|
|
1693
|
+
v: n.proportion * 100,
|
|
1694
1694
|
s: "%",
|
|
1695
1695
|
r: U.value.legend.roundingPercentage
|
|
1696
|
-
})} (${
|
|
1696
|
+
})} (${P(t)({
|
|
1697
1697
|
p: U.value.legend.prefix,
|
|
1698
|
-
v:
|
|
1698
|
+
v: n.value,
|
|
1699
1699
|
s: U.value.legend.suffix,
|
|
1700
1700
|
r: U.value.legend.roundingValue
|
|
1701
1701
|
})})`, {
|
|
1702
|
-
datapoint:
|
|
1703
|
-
seriesIndex:
|
|
1702
|
+
datapoint: n,
|
|
1703
|
+
seriesIndex: r,
|
|
1704
1704
|
type: "barDatapoint"
|
|
1705
|
-
})), 5)) :
|
|
1706
|
-
datapoint:
|
|
1705
|
+
})), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
|
|
1706
|
+
datapoint: n,
|
|
1707
1707
|
config: H.value,
|
|
1708
1708
|
dataset: Y.value
|
|
1709
|
-
}), void 0, !0)], 8,
|
|
1710
|
-
|
|
1711
|
-
(
|
|
1709
|
+
}), void 0, !0)], 8, Ht)),
|
|
1710
|
+
n.fill.donut && Z.value === n.id ? (k(), S("g", Ut, [
|
|
1711
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, t) => (k(), S("g", null, [qn(e, n.fill.donut, !0) > 6 ? (k(), S("path", {
|
|
1712
1712
|
key: 0,
|
|
1713
|
-
d:
|
|
1713
|
+
d: P(m)(e, {
|
|
1714
1714
|
x: e.cx,
|
|
1715
1715
|
y: e.cy
|
|
1716
1716
|
}, 0, 8, !1, !0, 10),
|
|
@@ -1720,82 +1720,82 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1720
1720
|
"stroke-linecap": "round",
|
|
1721
1721
|
"stroke-linejoin": "round",
|
|
1722
1722
|
fill: "none"
|
|
1723
|
-
}, null, 8,
|
|
1724
|
-
(
|
|
1723
|
+
}, null, 8, Wt)) : x("", !0)]))), 256)),
|
|
1724
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, t) => (k(), S("path", {
|
|
1725
1725
|
class: "vue-ui-donut-arc-path",
|
|
1726
1726
|
d: e.arcSlice,
|
|
1727
1727
|
fill: `${e.color}`,
|
|
1728
1728
|
stroke: U.value.backgroundColor,
|
|
1729
1729
|
"stroke-width": 1
|
|
1730
|
-
}, null, 8,
|
|
1731
|
-
(
|
|
1732
|
-
"text-anchor":
|
|
1733
|
-
x:
|
|
1734
|
-
y:
|
|
1730
|
+
}, null, 8, Gt))), 256)),
|
|
1731
|
+
(k(!0), S(v, null, j(n.fill.donut, (e, r) => (k(), S("g", null, [qn(e, n.fill.donut, !0) > 6 ? (k(), S("g", Kt, [C("text", {
|
|
1732
|
+
"text-anchor": P(p)(e, !0, 0).anchor,
|
|
1733
|
+
x: P(p)(e, !0, 2).x,
|
|
1734
|
+
y: P(te)(e, 12, 12),
|
|
1735
1735
|
fill: U.value.legend.color,
|
|
1736
1736
|
"font-size": U.value.legend.fontSize / 1.5,
|
|
1737
1737
|
"font-weight": U.value.legend.bold ? "bold" : "normal"
|
|
1738
|
-
},
|
|
1738
|
+
}, N(P(h)(U.value.dataLabel.formatter, e.value, `${qn(e, n.fill.donut)} (${P(t)({
|
|
1739
1739
|
p: H.value.style.chart.legend.prefix,
|
|
1740
1740
|
v: e.value,
|
|
1741
1741
|
s: H.value.style.chart.legend.suffix,
|
|
1742
1742
|
r: H.value.style.chart.legend.roundingValue
|
|
1743
1743
|
})})`, {
|
|
1744
1744
|
datapoint: e,
|
|
1745
|
-
seriesIndex:
|
|
1745
|
+
seriesIndex: r,
|
|
1746
1746
|
type: "donutDatapoint"
|
|
1747
|
-
})), 9,
|
|
1748
|
-
"text-anchor":
|
|
1749
|
-
x:
|
|
1750
|
-
y:
|
|
1747
|
+
})), 9, qt), C("text", {
|
|
1748
|
+
"text-anchor": P(p)(e).anchor,
|
|
1749
|
+
x: P(p)(e, !0, 2).x,
|
|
1750
|
+
y: P(te)(e, 12, 12) + U.value.legend.fontSize / 1.5,
|
|
1751
1751
|
fill: U.value.legend.color,
|
|
1752
1752
|
"font-size": U.value.legend.fontSize / 1.5,
|
|
1753
1753
|
"font-weight": U.value.legend.bold ? "bold" : "normal"
|
|
1754
|
-
},
|
|
1755
|
-
])) :
|
|
1756
|
-
|
|
1754
|
+
}, N(e.name), 9, Jt)])) : x("", !0)]))), 256))
|
|
1755
|
+
])) : x("", !0),
|
|
1756
|
+
n.fill.miniDonut && !Z.value ? (k(), S("g", Yt, [(k(!0), S(v, null, j(n.fill.miniDonut, (e, t) => (k(), S("path", {
|
|
1757
1757
|
class: "vue-ui-donut-arc-path",
|
|
1758
1758
|
d: e.arcSlice,
|
|
1759
1759
|
fill: `${e.color}`,
|
|
1760
1760
|
stroke: U.value.backgroundColor,
|
|
1761
1761
|
"stroke-width": .5
|
|
1762
|
-
}, null, 8,
|
|
1763
|
-
], 12,
|
|
1764
|
-
|
|
1762
|
+
}, null, 8, Xt))), 256))])) : x("", !0)
|
|
1763
|
+
], 12, Rt))), 256))])) : x("", !0)])) : x("", !0),
|
|
1764
|
+
M(e.$slots, "svg", { svg: {
|
|
1765
1765
|
...J.value,
|
|
1766
|
-
isPrintingImg:
|
|
1767
|
-
isPrintingSvg:
|
|
1766
|
+
isPrintingImg: P(jn) || P(Mn) || P(cr),
|
|
1767
|
+
isPrintingSvg: P(lr)
|
|
1768
1768
|
} }, void 0, !0)
|
|
1769
|
-
], 46,
|
|
1770
|
-
e.$slots.watermark ? (
|
|
1771
|
-
e.$slots.source ? (
|
|
1769
|
+
], 46, ze))]),
|
|
1770
|
+
e.$slots.watermark ? (k(), S("div", Zt, [M(e.$slots, "watermark", D(E({ isPrinting: P(jn) || P(Mn) || P(lr) || P(cr) })), void 0, !0)])) : x("", !0),
|
|
1771
|
+
e.$slots.source ? (k(), S("div", {
|
|
1772
1772
|
key: 5,
|
|
1773
1773
|
ref_key: "source",
|
|
1774
|
-
ref:
|
|
1774
|
+
ref: vn,
|
|
1775
1775
|
dir: "auto"
|
|
1776
|
-
}, [
|
|
1777
|
-
|
|
1776
|
+
}, [M(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
1777
|
+
fn.value && q.value && W.value.buttons.table ? (k(), b(ke(ir.value.component), Te({ key: 6 }, ir.value.props, {
|
|
1778
1778
|
ref_key: "tableUnit",
|
|
1779
1779
|
ref: bn,
|
|
1780
1780
|
onClose: ar
|
|
1781
|
-
}),
|
|
1782
|
-
content:
|
|
1783
|
-
key: `table_${
|
|
1784
|
-
colNames:
|
|
1785
|
-
head:
|
|
1786
|
-
body:
|
|
1787
|
-
config:
|
|
1781
|
+
}), Ce({
|
|
1782
|
+
content: F(() => [(k(), b(P(nn), {
|
|
1783
|
+
key: `table_${mn.value}`,
|
|
1784
|
+
colNames: $.value.colNames,
|
|
1785
|
+
head: $.value.head,
|
|
1786
|
+
body: $.value.body,
|
|
1787
|
+
config: $.value.config,
|
|
1788
1788
|
title: H.value.table.useDialog ? "" : ir.value.title,
|
|
1789
1789
|
withCloseButton: !H.value.table.useDialog,
|
|
1790
1790
|
isCursorPointer: Cn.value,
|
|
1791
1791
|
onClose: ar
|
|
1792
1792
|
}, {
|
|
1793
|
-
th:
|
|
1793
|
+
th: F(({ th: e }) => [e === "__SUM__" ? (k(), S("div", Qt, [w(P(en), {
|
|
1794
1794
|
name: "sigma",
|
|
1795
|
-
stroke:
|
|
1795
|
+
stroke: $.value.config.th.color,
|
|
1796
1796
|
size: 16
|
|
1797
|
-
}, null, 8, ["stroke"])])) : (
|
|
1798
|
-
td:
|
|
1797
|
+
}, null, 8, ["stroke"])])) : (k(), S("div", $t, N(e), 1))]),
|
|
1798
|
+
td: F(({ td: e }) => [we(N(e.name || e), 1)]),
|
|
1799
1799
|
_: 1
|
|
1800
1800
|
}, 8, [
|
|
1801
1801
|
"colNames",
|
|
@@ -1809,23 +1809,23 @@ var Fe = /* @__PURE__ */ e({ default: () => tn }), Ie = ["id"], Le = ["id"], Re
|
|
|
1809
1809
|
_: 2
|
|
1810
1810
|
}, [H.value.table.useDialog ? {
|
|
1811
1811
|
name: "title",
|
|
1812
|
-
fn:
|
|
1812
|
+
fn: F(() => [we(N(ir.value.title), 1)]),
|
|
1813
1813
|
key: "0"
|
|
1814
1814
|
} : void 0, H.value.table.useDialog ? {
|
|
1815
1815
|
name: "actions",
|
|
1816
|
-
fn:
|
|
1816
|
+
fn: F(() => [C("button", {
|
|
1817
1817
|
tabindex: "0",
|
|
1818
1818
|
class: "vue-ui-user-options-button",
|
|
1819
|
-
onClick:
|
|
1820
|
-
}, [
|
|
1819
|
+
onClick: n[7] ||= (e) => $n(W.value.callbacks.csv)
|
|
1820
|
+
}, [w(P(en), {
|
|
1821
1821
|
name: "fileCsv",
|
|
1822
1822
|
stroke: ir.value.props.color
|
|
1823
1823
|
}, null, 8, ["stroke"])])]),
|
|
1824
1824
|
key: "1"
|
|
1825
|
-
} : void 0]), 1040)) :
|
|
1826
|
-
|
|
1827
|
-
], 44,
|
|
1825
|
+
} : void 0]), 1040)) : x("", !0),
|
|
1826
|
+
M(e.$slots, "skeleton", {}, () => [P(Tn) ? (k(), b(ue, { key: 0 })) : x("", !0)], !0)
|
|
1827
|
+
], 44, Fe));
|
|
1828
1828
|
}
|
|
1829
1829
|
}, [["__scopeId", "data-v-4e9eda2a"]]);
|
|
1830
1830
|
//#endregion
|
|
1831
|
-
export {
|
|
1831
|
+
export { Pe as n, en as t };
|