vue-data-ui 3.15.12 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- 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-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,1484 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as Z, computed as M, ref as $, toRefs as Nt, watch as Fe, onMounted as Lt, openBlock as u, createElementBlock as v, unref as n, normalizeStyle as I, normalizeClass as ot, createBlock as te, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as j, createCommentVNode as p, createSlots as lt, createVNode as at, createElementVNode as i, Fragment as T, renderList as F, toDisplayString as L, withKeys as st, withModifiers as nt, mergeProps as Ae, resolveDynamicComponent as Et, createTextVNode as rt, nextTick as De } from "vue";
|
|
2
|
-
import { j as ut, t as it, m as Wt, p as pe, n as Rt, s as Vt, o as Gt, q as ge, r as Se, x as G, a3 as dt, K as Ut, l as z, X as Ht, u as _, w as q, k as ye, a4 as ct, a5 as ke, a6 as U, a0 as Xt, a1 as Zt } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { t as qt, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Yt } from "./useConfig-CIgyKZ6R.js";
|
|
5
|
-
import { u as Jt, B as Qt } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
-
import { u as eo } from "./usePrinter-DiK5R6k-.js";
|
|
7
|
-
import { u as to } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
-
import { u as Oe } from "./useNestedProp-BBT0mbHh.js";
|
|
9
|
-
import { u as oo } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
-
import { u as lo } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as ao } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
-
import so from "./img-BYYzY_QU.js";
|
|
13
|
-
import no from "./Title-BfyrP-jp.js";
|
|
14
|
-
import ro from "./vue_ui_3d_bar-CL0iX8Qi.js";
|
|
15
|
-
import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const io = ["id"], co = ["xmlns", "viewBox"], vo = ["width", "height"], ho = ["id"], fo = ["stop-color"], po = ["stop-color"], go = ["id"], yo = ["stop-color"], ko = ["stop-color"], $o = ["id"], mo = ["stop-color"], _o = ["stop-color"], bo = ["id"], wo = ["stop-color"], xo = ["stop-color"], Co = ["id"], Po = ["stop-color"], Mo = ["stop-color"], To = ["stop-color"], Fo = ["stop-color"], Ao = ["stop-color"], Do = { key: 1 }, So = ["id"], Oo = ["stop-color"], Io = ["stop-color"], Bo = ["id"], jo = ["stop-color"], zo = ["stop-color"], No = ["id"], Lo = ["stop-color"], Eo = ["stop-color"], Wo = ["id"], Ro = ["x", "y", "font-size", "font-weight", "fill"], Vo = ["x", "y"], Go = ["cx", "cy", "stroke", "opacity"], Uo = ["d", "stroke"], Ho = ["d", "stroke"], Xo = { key: 4 }, Zo = { key: 0 }, qo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ko = ["stroke-dasharray", "d", "stroke", "stroke-width"], Yo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Jo = ["stroke-dasharray", "d", "stroke", "stroke-width"], Qo = { key: 1 }, el = ["d", "stroke", "stroke-width", "fill"], tl = ["d", "stroke", "stroke-width", "fill"], ol = ["d", "stroke", "stroke-width", "fill"], ll = { key: 2 }, al = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], sl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], nl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], rl = ["d", "onMouseenter", "onClick", "onMouseout"], ul = ["d"], il = ["d", "stroke"], dl = ["onClick"], cl = ["stroke", "d"], vl = ["cx", "cy", "fill", "stroke"], hl = ["x", "y", "width", "height"], fl = ["x", "y", "width", "height"], pl = { key: 3 }, gl = ["d", "stroke"], yl = ["d", "fill", "stroke"], kl = { key: 0 }, $l = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], ml = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], _l = { key: 4 }, bl = ["d", "fill", "stroke"], wl = { key: 5 }, xl = { key: 0 }, Cl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Pl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Ml = ["stroke-dasharray", "d", "stroke", "stroke-width"], Tl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Fl = ["d", "stroke", "stroke-width", "fill"], Al = ["d", "stroke", "stroke-width", "fill"], Dl = ["d"], Sl = { key: 1 }, Ol = ["onClick"], Il = ["id"], Bl = ["stop-color"], jl = ["stop-color"], zl = ["id"], Nl = ["stop-color"], Ll = ["stop-color"], El = ["stop-color"], Wl = ["stop-color"], Rl = ["stop-color"], Vl = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Gl = ["onMouseenter", "onClick", "onMouseout", "d"], Ul = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Hl = ["onClick"], Xl = ["stroke", "d"], Zl = ["cx", "cy", "fill", "stroke"], ql = ["x", "y", "width", "height"], Kl = ["x", "y", "width", "height"], Yl = { key: 3 }, Jl = ["d", "stroke"], Ql = ["d", "fill", "stroke"], ea = { key: 0 }, ta = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], oa = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], la = { key: 4 }, aa = ["d", "fill", "stroke"], sa = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "vue-data-ui-watermark"
|
|
19
|
-
}, na = ["innerHTML"], ra = {
|
|
20
|
-
__name: "vue-ui-3d-bar",
|
|
21
|
-
props: {
|
|
22
|
-
config: {
|
|
23
|
-
type: Object,
|
|
24
|
-
default() {
|
|
25
|
-
return {};
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
dataset: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["selectDatapoint", "copyAlt"],
|
|
36
|
-
setup(vt, { expose: ht, emit: ft }) {
|
|
37
|
-
const pt = Z(() => import("./BaseIcon-CNx8Tzl5.js")), gt = Z(() => import("./vue-ui-accordion-BGHTqIBt.js")), yt = Z(() => import("./DataTable-Bo1pmAqG.js")), kt = Z(() => import("./PenAndPaper-DWV1FMIi.js")), $t = Z(() => import("./UserOptions-CrLqEimB.js")), mt = Z(() => import("./PackageVersion-DN9d0ME5.js")), _t = Z(() => import("./BaseDraggableDialog-DSpKTn3R.js")), { vue_ui_3d_bar: bt } = Yt(), { isThemeValid: wt, warnInvalidTheme: xt } = oo(), O = vt, oe = ft, Ie = M(() => !!O.dataset && Object.keys(O.dataset).length), A = $(ut()), E = $(null), N = $(!1), Be = $(0), je = $(0), ze = $(null), le = $(null), re = $(null), Ne = $(null), ae = $(!1), se = $(null), $e = $(null), ue = $(!1), ie = $(!1), e = $(be()), de = M(() => e.value.userOptions.useCursorPointer), Ct = M(() => it({
|
|
38
|
-
defaultConfig: {
|
|
39
|
-
customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
|
|
40
|
-
userOptions: { show: !1 },
|
|
41
|
-
table: { show: !1 },
|
|
42
|
-
style: {
|
|
43
|
-
chart: {
|
|
44
|
-
backgroundColor: "#99999930",
|
|
45
|
-
color: "#6A6A6A",
|
|
46
|
-
bar: {
|
|
47
|
-
color: "#ADADAD",
|
|
48
|
-
stroke: "#6A6A6A"
|
|
49
|
-
},
|
|
50
|
-
box: {
|
|
51
|
-
stroke: "#6A6A6A"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
57
|
-
})), { loading: K, FINAL_DATASET: S } = Jt({
|
|
58
|
-
...Nt(O),
|
|
59
|
-
FINAL_CONFIG: e,
|
|
60
|
-
prepareConfig: be,
|
|
61
|
-
callback: () => {
|
|
62
|
-
Promise.resolve().then(async () => {
|
|
63
|
-
await De(), Ge();
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
67
|
-
series: [
|
|
68
|
-
{
|
|
69
|
-
name: "_",
|
|
70
|
-
value: 21,
|
|
71
|
-
breakdown: [
|
|
72
|
-
{ name: "_", value: 13 },
|
|
73
|
-
{ name: "_", value: 8 }
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "_",
|
|
78
|
-
value: 13,
|
|
79
|
-
breakdown: [
|
|
80
|
-
{ name: "_", value: 8 },
|
|
81
|
-
{ name: "_", value: 5 }
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "_",
|
|
86
|
-
value: 8,
|
|
87
|
-
breakdown: [
|
|
88
|
-
{ name: "_", value: 5 },
|
|
89
|
-
{ name: "_", value: 3 }
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
skeletonConfig: it({
|
|
95
|
-
defaultConfig: e.value,
|
|
96
|
-
userConfig: Ct.value
|
|
97
|
-
})
|
|
98
|
-
}), { userOptionsVisible: me, setUserOptionsVisibility: Le, keepUserOptionState: Ee } = lo({ config: e.value }), { svgRef: _e } = ao({ config: e.value.style.chart.title });
|
|
99
|
-
function be() {
|
|
100
|
-
const l = Oe({
|
|
101
|
-
userConfig: O.config,
|
|
102
|
-
defaultConfig: bt
|
|
103
|
-
}), a = l.theme;
|
|
104
|
-
if (!a) return l;
|
|
105
|
-
if (!wt.value(l))
|
|
106
|
-
return xt(l), l;
|
|
107
|
-
const t = Oe({
|
|
108
|
-
userConfig: ro[a] || O.config,
|
|
109
|
-
defaultConfig: l
|
|
110
|
-
}), d = Oe({
|
|
111
|
-
userConfig: O.config,
|
|
112
|
-
defaultConfig: t
|
|
113
|
-
});
|
|
114
|
-
return {
|
|
115
|
-
...d,
|
|
116
|
-
customPalette: d.customPalette.length ? d.customPalette : Wt[a] || pe
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
Fe(() => O.config, (l) => {
|
|
120
|
-
K.value || (e.value = be()), me.value = !e.value.userOptions.showOnChartHover, Ue(), Be.value += 1, je.value += 1, H.value.showTable = e.value.table.show;
|
|
121
|
-
}, { deep: !0 });
|
|
122
|
-
const { isPrinting: we, isImaging: xe, generatePdf: We, generateImage: Re } = eo({
|
|
123
|
-
elementId: `3d_bar_${A.value}`,
|
|
124
|
-
fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
125
|
-
options: e.value.userOptions.print
|
|
126
|
-
}), Pt = M(() => Rt(e.value.customPalette)), H = $({
|
|
127
|
-
showTable: e.value.table.show
|
|
128
|
-
});
|
|
129
|
-
Fe(e, () => {
|
|
130
|
-
H.value = {
|
|
131
|
-
showTable: e.value.table.show
|
|
132
|
-
};
|
|
133
|
-
}, { immediate: !0 });
|
|
134
|
-
const C = M(() => S.value.series && S.value.series.length), Ce = $(e.value.style.chart.box.dimensions.width * (C.value ? 2 : 1)), Ve = $(e.value.style.chart.box.dimensions.height), s = M(() => ({
|
|
135
|
-
height: Ve.value,
|
|
136
|
-
width: Ce.value,
|
|
137
|
-
absoluteWidth: Ce.value,
|
|
138
|
-
top: e.value.style.chart.box.dimensions.top,
|
|
139
|
-
bottom: e.value.style.chart.box.dimensions.bottom,
|
|
140
|
-
left: e.value.style.chart.box.dimensions.left,
|
|
141
|
-
right: e.value.style.chart.box.dimensions.right,
|
|
142
|
-
perspective: e.value.style.chart.box.dimensions.perspective
|
|
143
|
-
})), P = M(() => {
|
|
144
|
-
if (C.value) {
|
|
145
|
-
const l = S.value.series.map((o) => o.value || 0).reduce((o, c) => o + c, 0), a = S.value.series.map((o, c) => ({
|
|
146
|
-
...o,
|
|
147
|
-
seriesIndex: c,
|
|
148
|
-
id: ut(),
|
|
149
|
-
proportion: (o.value || 0) / l,
|
|
150
|
-
color: Vt(o.color) || Pt.value[c] || pe[c] || pe[c % pe.length],
|
|
151
|
-
breakdown: o.breakdown ? o.breakdown.sort((r, y) => y.value - r.value) : null
|
|
152
|
-
})).sort((o, c) => c.value - o.value), t = [];
|
|
153
|
-
let d = 0;
|
|
154
|
-
for (let o = 0; o < a.length; o += 1)
|
|
155
|
-
t.push({
|
|
156
|
-
...a[o],
|
|
157
|
-
fill: Mt(d, a[o].proportion, a[o].breakdown, a[o].color)
|
|
158
|
-
}), d += a[o].proportion;
|
|
159
|
-
return t;
|
|
160
|
-
}
|
|
161
|
-
return null;
|
|
162
|
-
}), W = M(() => {
|
|
163
|
-
const l = s.value.width / 2;
|
|
164
|
-
return {
|
|
165
|
-
right: `M${l},${s.value.top} ${s.value.width - s.value.right}, ${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} ${l},${s.value.height - s.value.bottom}`,
|
|
166
|
-
left: `M${l},${s.value.top} ${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective} ${l},${s.value.height - s.value.bottom}`,
|
|
167
|
-
side: `M${l},${s.value.height - s.value.bottom} ${l},${s.value.top + s.value.perspective * 2}`,
|
|
168
|
-
topSides: `M${s.value.left},${s.value.top + s.value.perspective} ${l},${s.value.top + s.value.perspective * 2} ${s.value.width - s.value.right},${s.value.top + s.value.perspective}`,
|
|
169
|
-
tubeTop: `M${s.value.left},${s.value.top + s.value.perspective} C ${s.value.left},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top - s.value.perspective / 3} ${s.value.width - s.value.right},${s.value.top + s.value.perspective} C ${s.value.width - s.value.right},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective * 2.3} ${s.value.left},${s.value.top + s.value.perspective}`,
|
|
170
|
-
tubeLeft: `M${s.value.left},${s.value.top + s.value.perspective} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`,
|
|
171
|
-
tubeRight: `M${s.value.width - s.value.right},${s.value.top + s.value.perspective} ${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective}`,
|
|
172
|
-
tubeBottom: `M${s.value.width - s.value.right},${s.value.height - s.value.bottom - s.value.perspective} C ${s.value.width - s.value.right},${s.value.height} ${s.value.left},${s.value.height} ${s.value.left},${s.value.height - s.value.bottom - s.value.perspective}`
|
|
173
|
-
};
|
|
174
|
-
}), Y = $(e.value.style.chart.animation.use ? 0 : S.value.percentage);
|
|
175
|
-
function Ge() {
|
|
176
|
-
let l = 0, a = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
|
|
177
|
-
function d() {
|
|
178
|
-
Y.value += a + l, l += t, Y.value < S.value.percentage ? requestAnimationFrame(d) : Y.value = S.value.percentage;
|
|
179
|
-
}
|
|
180
|
-
e.value.style.chart.animation.use && (Y.value = 0, d());
|
|
181
|
-
}
|
|
182
|
-
Lt(() => {
|
|
183
|
-
Ue(), Ge();
|
|
184
|
-
});
|
|
185
|
-
const ce = M(() => !!e.value.debug);
|
|
186
|
-
function Ue() {
|
|
187
|
-
if (Gt(O.dataset) ? ge({
|
|
188
|
-
componentName: "VueUi3dBar",
|
|
189
|
-
type: "dataset",
|
|
190
|
-
debug: ce.value
|
|
191
|
-
}) : O.dataset.series ? O.dataset.series.forEach((l, a) => {
|
|
192
|
-
Se({
|
|
193
|
-
datasetObject: l,
|
|
194
|
-
requiredAttributes: ["name", "value"]
|
|
195
|
-
}).forEach((t) => {
|
|
196
|
-
ge({
|
|
197
|
-
componentName: "VueUi3dBar",
|
|
198
|
-
type: "datasetSerieAttribute",
|
|
199
|
-
property: t,
|
|
200
|
-
index: a,
|
|
201
|
-
debug: ce.value
|
|
202
|
-
});
|
|
203
|
-
}), l.breakdown && l.breakdown.forEach((t, d) => {
|
|
204
|
-
Se({
|
|
205
|
-
datasetObject: t,
|
|
206
|
-
requiredAttributes: ["name", "value"]
|
|
207
|
-
}).forEach((o) => {
|
|
208
|
-
ge({
|
|
209
|
-
componentName: "VueUi3dBar",
|
|
210
|
-
type: "datasetSerieAttribute",
|
|
211
|
-
property: o,
|
|
212
|
-
index: `${a} - ${d}`,
|
|
213
|
-
debug: ce.value
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
}) : Se({
|
|
218
|
-
datasetObject: O.dataset,
|
|
219
|
-
requiredAttributes: ["percentage"]
|
|
220
|
-
}).forEach((l) => {
|
|
221
|
-
ge({
|
|
222
|
-
componentName: "VueUi3dBar",
|
|
223
|
-
type: "datasetAttribute",
|
|
224
|
-
property: l,
|
|
225
|
-
debug: ce.value
|
|
226
|
-
});
|
|
227
|
-
}), e.value.responsive) {
|
|
228
|
-
const l = qt(() => {
|
|
229
|
-
const { width: a, height: t } = Kt({
|
|
230
|
-
chart: E.value,
|
|
231
|
-
title: e.value.style.chart.title.text ? ze.value : null,
|
|
232
|
-
source: Ne.value
|
|
233
|
-
});
|
|
234
|
-
requestAnimationFrame(() => {
|
|
235
|
-
Ve.value = t - 12, Ce.value = a;
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
le.value && (re.value && le.value.unobserve(re.value), le.value.disconnect()), le.value = new ResizeObserver(l), re.value = E.value.parentNode, le.value.observe(re.value);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
const J = M(() => s.value.width / 4);
|
|
242
|
-
function Mt(l, a, t, d) {
|
|
243
|
-
const o = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: c, height: r, bottom: y, right: V, left: k, perspective: g } = s.value, f = C.value ? c / 4 : c / 2, x = f * 2 + k, h = y + o * l, Te = r - h - g - o * a / 2, Bt = Te > s.value.height / 2 ? "top" : "bottom", Je = r * 0.25, jt = !!t;
|
|
244
|
-
let Qe = null, et = null;
|
|
245
|
-
return jt && (t = t.map((tt, zt) => ({
|
|
246
|
-
...tt,
|
|
247
|
-
value: tt.value || 0,
|
|
248
|
-
color: G(d, zt / t.length)
|
|
249
|
-
})), Qe = dt(
|
|
250
|
-
{ series: t },
|
|
251
|
-
c / 2 + c / 5,
|
|
252
|
-
Bt === "top" ? Te - Je : Te + Je,
|
|
253
|
-
c / 10,
|
|
254
|
-
c / 10,
|
|
255
|
-
1.99999,
|
|
256
|
-
2,
|
|
257
|
-
1,
|
|
258
|
-
360,
|
|
259
|
-
105.25,
|
|
260
|
-
c / 20
|
|
261
|
-
), et = dt(
|
|
262
|
-
{ series: t },
|
|
263
|
-
c - x + c / 14,
|
|
264
|
-
r - h - g - o * a / 2,
|
|
265
|
-
c / 40,
|
|
266
|
-
c / 40,
|
|
267
|
-
1.99999,
|
|
268
|
-
2,
|
|
269
|
-
1,
|
|
270
|
-
360,
|
|
271
|
-
105.25,
|
|
272
|
-
c / 40
|
|
273
|
-
)), {
|
|
274
|
-
donut: Qe,
|
|
275
|
-
miniDonut: et,
|
|
276
|
-
donutR: c / 20,
|
|
277
|
-
CENTER_X: f,
|
|
278
|
-
sidePointer: {
|
|
279
|
-
x: c - x,
|
|
280
|
-
x2: c - x + c / 14,
|
|
281
|
-
xText: c - x + c / 9,
|
|
282
|
-
y: r - h - g - o * a / 2,
|
|
283
|
-
topY: r - h - g - o * a,
|
|
284
|
-
height: o * a
|
|
285
|
-
},
|
|
286
|
-
apexBottom: { y: r - h, x: f },
|
|
287
|
-
apexTop: { y: r - h - o * a, x: f },
|
|
288
|
-
right: `M${f},${r - h} ${f},${r - h - o * a} ${c - x},${r - h - g - o * a} ${c - x},${r - h - g}Z`,
|
|
289
|
-
left: `M${f},${r - h} ${f},${r - h - o * a} ${k}, ${r - h - g - o * a} ${k},${r - h - g}Z`,
|
|
290
|
-
liningTop: `M${k},${r - h - g - o * a} ${f},${r - h - o * a} ${c - x},${r - h - g - o * a}`,
|
|
291
|
-
liningTopShade: `M${k},${r - h - g - o * a - 0.5} ${f},${r - h - o * a - 0.5} ${c - x},${r - h - g - o * a - 0.5}`,
|
|
292
|
-
top: `M${f},${r - h - o * a} ${k},${r - h - g - o * a} ${f},${r - h - g * 2 - o * a} ${c - x},${r - h - g - o * a} Z`,
|
|
293
|
-
tubeTop: `M${k},${r - h - o * a - g} C ${k},${r - h - o * a - g * 2.5} ${c - x},${r - h - o * a - g * 2.5} ${c - x},${r - h - o * a - g} C ${c - x},${r - h - o * a + g / 2} ${k},${r - h - o * a + g / 2} ${k},${r - h - o * a - g}`,
|
|
294
|
-
bottomTubeTop: `M ${c - x - 0.5},${r - h - g} C ${c - x - 0.5},${r - h + g / 2} ${k},${r - h + g / 2} ${k + 0.5},${r - h - g}`,
|
|
295
|
-
tubeBody: `M
|
|
296
|
-
${k},${r - h - o * a - g}
|
|
297
|
-
C ${k},${r - h - o * a + g / 2}
|
|
298
|
-
${c - x},${r - h - o * a + g / 2}
|
|
299
|
-
${c - x},${r - h - o * a - g}
|
|
300
|
-
L${c - x},${r - h - g}
|
|
301
|
-
C
|
|
302
|
-
${c - x},${r - h + g / 2}
|
|
303
|
-
${k},${r - h + g / 2}
|
|
304
|
-
${k},${r - h - g}Z`
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
const Q = M(() => {
|
|
308
|
-
const l = Ut(Y.value / 100), a = s.value.height - s.value.bottom - s.value.top - s.value.perspective * 2, { width: t, height: d, bottom: o, right: c, left: r, perspective: y } = s.value, V = C.value ? t / 4 : t / 2, k = C.value ? V * 2 + r : c, f = o + a * 0;
|
|
309
|
-
return {
|
|
310
|
-
right: `M${V},${d - f} ${V},${d - f - a * l} ${t - k},${d - f - y - a * l} ${t - k},${d - f - y}Z`,
|
|
311
|
-
left: `M${V},${d - f} ${V},${d - f - a * l} ${r}, ${d - f - y - a * l} ${r},${d - f - y}Z`,
|
|
312
|
-
top: `M${V},${d - f - a * l} ${r},${d - f - y - a * l} ${V},${d - f - y * 2 - a * l} ${t - k},${d - f - y - a * l} Z`,
|
|
313
|
-
tubeTop: `M${r},${d - f - a * l - y} C ${r},${d - f - a * l - y * 2.5} ${t - k},${d - f - a * l - y * 2.5} ${t - k},${d - f - a * l - y} C ${t - k},${d - f - a * l + y / 2} ${r},${d - f - a * l + y / 2} ${r},${d - f - a * l - y}`,
|
|
314
|
-
tubeBody: `M
|
|
315
|
-
${r},${d - f - a * l - y}
|
|
316
|
-
C ${r},${d - f - a * l + y / 2}
|
|
317
|
-
${t - k},${d - f - a * l + y / 2}
|
|
318
|
-
${t - k},${d - f - a * l - y}
|
|
319
|
-
L${t - k},${d - y * 1.5}
|
|
320
|
-
C
|
|
321
|
-
${t - k},${d}
|
|
322
|
-
${r},${d}
|
|
323
|
-
${r},${d - f - y}Z`
|
|
324
|
-
};
|
|
325
|
-
}), w = $(null);
|
|
326
|
-
function D(l, a = !1) {
|
|
327
|
-
e.value.events.datapointEnter && !a && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.seriesIndex }), e.value.events.datapointClick && a && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), oe("selectDatapoint", l), a || (w.value = l.id), a && N.value && (N.value = !1), a && !N.value && (N.value = !0);
|
|
328
|
-
}
|
|
329
|
-
function X(l) {
|
|
330
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.seriesIndex }), !N.value && (w.value = null);
|
|
331
|
-
}
|
|
332
|
-
function ee(l, a, t = !1) {
|
|
333
|
-
const d = S.value.series.map((r) => r.value || 0).reduce((r, y) => r + y, 0), o = isNaN(l.value / d) ? 0 : l.value / d * 100, c = isNaN(l.value / He(a)) ? 0 : l.value / He(a) * 100;
|
|
334
|
-
return t ? c : o.toFixed(0) + "%";
|
|
335
|
-
}
|
|
336
|
-
function He(l) {
|
|
337
|
-
return [...l].map((a) => a.value).reduce((a, t) => a + t, 0);
|
|
338
|
-
}
|
|
339
|
-
const ve = $(!1);
|
|
340
|
-
function Xe(l) {
|
|
341
|
-
ve.value = l;
|
|
342
|
-
}
|
|
343
|
-
function Tt() {
|
|
344
|
-
return C.value ? P.value : S.value.percentage;
|
|
345
|
-
}
|
|
346
|
-
const R = M(() => {
|
|
347
|
-
if (C.value) {
|
|
348
|
-
const l = P.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((d, o) => ({
|
|
349
|
-
name: d.name,
|
|
350
|
-
color: G(t.color, o / t.breakdown.length)
|
|
351
|
-
}))] : {
|
|
352
|
-
name: t.name,
|
|
353
|
-
color: t.color
|
|
354
|
-
}), a = P.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((d) => d.value)] : t.value);
|
|
355
|
-
return { head: l, body: a };
|
|
356
|
-
} else
|
|
357
|
-
return null;
|
|
358
|
-
});
|
|
359
|
-
function Pe(l = null) {
|
|
360
|
-
if (!C.value) {
|
|
361
|
-
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
De(() => {
|
|
365
|
-
const a = P.value.map((c) => c.value).reduce((c, r) => c + r, 0), t = R.value.head.map((c, r) => [[
|
|
366
|
-
c.name
|
|
367
|
-
], [R.value.body[r]], [isNaN(R.value.body[r] / a) ? "-" : R.value.body[r] / a * 100]]), d = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = Xt(d);
|
|
368
|
-
l ? l(o) : Zt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
const he = M(() => {
|
|
372
|
-
const l = P.value.map((c) => c.value).reduce((c, r) => c + r, 0), a = [
|
|
373
|
-
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
374
|
-
z({ p: e.value.style.chart.legend.prefix, v: l, s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue }),
|
|
375
|
-
"100%"
|
|
376
|
-
], t = R.value.head.map((c, r) => {
|
|
377
|
-
const y = z({ p: e.value.style.chart.legend.prefix, v: R.value.body[r], s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue });
|
|
378
|
-
return [
|
|
379
|
-
{
|
|
380
|
-
color: c.color,
|
|
381
|
-
name: c.name
|
|
382
|
-
},
|
|
383
|
-
y,
|
|
384
|
-
isNaN(R.value.body[r] / l) ? "-" : z({
|
|
385
|
-
v: R.value.body[r] / l * 100,
|
|
386
|
-
s: "%",
|
|
387
|
-
r: e.value.table.td.roundingPercentage
|
|
388
|
-
})
|
|
389
|
-
];
|
|
390
|
-
}), d = {
|
|
391
|
-
th: {
|
|
392
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
393
|
-
color: e.value.table.th.color,
|
|
394
|
-
outline: e.value.table.th.outline
|
|
395
|
-
},
|
|
396
|
-
td: {
|
|
397
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
398
|
-
color: e.value.table.td.color,
|
|
399
|
-
outline: e.value.table.td.outline
|
|
400
|
-
},
|
|
401
|
-
breakpoint: e.value.table.responsiveBreakpoint,
|
|
402
|
-
shape: e.value.style.shape === "tube" ? "circle" : "square"
|
|
403
|
-
};
|
|
404
|
-
return {
|
|
405
|
-
colNames: [
|
|
406
|
-
e.value.table.columnNames.series,
|
|
407
|
-
e.value.table.columnNames.value,
|
|
408
|
-
e.value.table.columnNames.percentage
|
|
409
|
-
],
|
|
410
|
-
head: a,
|
|
411
|
-
body: t,
|
|
412
|
-
config: d
|
|
413
|
-
};
|
|
414
|
-
});
|
|
415
|
-
function Ze() {
|
|
416
|
-
H.value.showTable = !H.value.showTable;
|
|
417
|
-
}
|
|
418
|
-
const fe = $(!1);
|
|
419
|
-
function Me() {
|
|
420
|
-
fe.value = !fe.value;
|
|
421
|
-
}
|
|
422
|
-
async function Ft({ scale: l = 2 } = {}) {
|
|
423
|
-
if (!E.value) return;
|
|
424
|
-
const { width: a, height: t } = E.value.getBoundingClientRect(), d = a / t, { imageUri: o, base64: c } = await so({ domElement: E.value, base64: !0, img: !0, scale: l });
|
|
425
|
-
return {
|
|
426
|
-
imageUri: o,
|
|
427
|
-
base64: c,
|
|
428
|
-
title: e.value.style.chart.title.text,
|
|
429
|
-
width: a,
|
|
430
|
-
height: t,
|
|
431
|
-
aspectRatio: d
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
const ne = M(() => {
|
|
435
|
-
const l = e.value.table.useDialog && !e.value.table.show, a = H.value.showTable;
|
|
436
|
-
return {
|
|
437
|
-
component: l ? _t : gt,
|
|
438
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
439
|
-
props: l ? {
|
|
440
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
441
|
-
color: e.value.table.th.color,
|
|
442
|
-
headerColor: e.value.table.th.color,
|
|
443
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
444
|
-
isFullscreen: ve.value,
|
|
445
|
-
fullscreenParent: E.value,
|
|
446
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
447
|
-
} : {
|
|
448
|
-
hideDetails: !0,
|
|
449
|
-
config: {
|
|
450
|
-
open: a,
|
|
451
|
-
maxHeight: 1e4,
|
|
452
|
-
body: {
|
|
453
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
454
|
-
color: e.value.style.chart.color
|
|
455
|
-
},
|
|
456
|
-
head: {
|
|
457
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
458
|
-
color: e.value.style.chart.color
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
});
|
|
464
|
-
Fe(() => H.value.showTable, (l) => {
|
|
465
|
-
e.value.table.show || (l && e.value.table.useDialog && se.value ? se.value.open() : "close" in se.value && se.value.close());
|
|
466
|
-
});
|
|
467
|
-
function qe() {
|
|
468
|
-
H.value.showTable = !1, $e.value && $e.value.setTableIconState(!1);
|
|
469
|
-
}
|
|
470
|
-
const At = M(() => e.value.style.chart.backgroundColor), Dt = M(() => e.value.style.chart.title), { exportSvg: St, getSvg: Ot } = to({
|
|
471
|
-
svg: _e,
|
|
472
|
-
title: Dt,
|
|
473
|
-
backgroundColor: At
|
|
474
|
-
});
|
|
475
|
-
async function Ke({ isCb: l }) {
|
|
476
|
-
ue.value = !0, await De();
|
|
477
|
-
try {
|
|
478
|
-
if (l) {
|
|
479
|
-
const { blob: a, url: t, text: d, dataUrl: o } = await Ot();
|
|
480
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: t, text: d, dataUrl: o }));
|
|
481
|
-
} else
|
|
482
|
-
await Promise.resolve(St());
|
|
483
|
-
} finally {
|
|
484
|
-
ue.value = !1;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function It(l) {
|
|
488
|
-
if (l?.stage === "start") {
|
|
489
|
-
ie.value = !0;
|
|
490
|
-
return;
|
|
491
|
-
}
|
|
492
|
-
if (l?.stage === "end") {
|
|
493
|
-
ie.value = !1;
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
Re();
|
|
497
|
-
}
|
|
498
|
-
async function Ye() {
|
|
499
|
-
if (oe("copyAlt", {
|
|
500
|
-
config: e.value,
|
|
501
|
-
dataset: S.value
|
|
502
|
-
}), !e.value.userOptions.callbacks.altCopy) {
|
|
503
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
506
|
-
await Promise.resolve(e.value.userOptions.callbacks.altCopy({ config: e.value, dataset: S.value }));
|
|
507
|
-
}
|
|
508
|
-
return ht({
|
|
509
|
-
getImage: Ft,
|
|
510
|
-
generateCsv: Pe,
|
|
511
|
-
generatePdf: We,
|
|
512
|
-
generateImage: Re,
|
|
513
|
-
generateSvg: Ke,
|
|
514
|
-
getData: Tt,
|
|
515
|
-
toggleTable: Ze,
|
|
516
|
-
toggleAnnotator: Me,
|
|
517
|
-
toggleFullscreen: Xe,
|
|
518
|
-
copyAlt: Ye
|
|
519
|
-
}), (l, a) => (u(), v("div", {
|
|
520
|
-
ref_key: "bar3dChart",
|
|
521
|
-
ref: E,
|
|
522
|
-
class: ot("vue-data-ui-component vue-ui-3d-bar"),
|
|
523
|
-
style: I(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
524
|
-
id: `3d_bar_${A.value}`,
|
|
525
|
-
onMouseenter: a[8] || (a[8] = () => n(Le)(!0)),
|
|
526
|
-
onMouseleave: a[9] || (a[9] = () => n(Le)(!1))
|
|
527
|
-
}, [
|
|
528
|
-
e.value.userOptions.buttons.annotator ? (u(), te(n(kt), {
|
|
529
|
-
key: 0,
|
|
530
|
-
svgRef: n(_e),
|
|
531
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
|
-
color: e.value.style.chart.color,
|
|
533
|
-
active: fe.value,
|
|
534
|
-
isCursorPointer: de.value,
|
|
535
|
-
onClose: Me
|
|
536
|
-
}, {
|
|
537
|
-
"annotator-action-close": b(() => [
|
|
538
|
-
m(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
539
|
-
]),
|
|
540
|
-
"annotator-action-color": b(({ color: t }) => [
|
|
541
|
-
m(l.$slots, "annotator-action-color", B(j({ color: t })), void 0, !0)
|
|
542
|
-
]),
|
|
543
|
-
"annotator-action-draw": b(({ mode: t }) => [
|
|
544
|
-
m(l.$slots, "annotator-action-draw", B(j({ mode: t })), void 0, !0)
|
|
545
|
-
]),
|
|
546
|
-
"annotator-action-undo": b(({ disabled: t }) => [
|
|
547
|
-
m(l.$slots, "annotator-action-undo", B(j({ disabled: t })), void 0, !0)
|
|
548
|
-
]),
|
|
549
|
-
"annotator-action-redo": b(({ disabled: t }) => [
|
|
550
|
-
m(l.$slots, "annotator-action-redo", B(j({ disabled: t })), void 0, !0)
|
|
551
|
-
]),
|
|
552
|
-
"annotator-action-delete": b(({ disabled: t }) => [
|
|
553
|
-
m(l.$slots, "annotator-action-delete", B(j({ disabled: t })), void 0, !0)
|
|
554
|
-
]),
|
|
555
|
-
_: 3
|
|
556
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
|
|
557
|
-
e.value.style.chart.title.text ? (u(), v("div", {
|
|
558
|
-
key: 1,
|
|
559
|
-
ref_key: "chartTitle",
|
|
560
|
-
ref: ze,
|
|
561
|
-
style: "width:100%;background:transparent"
|
|
562
|
-
}, [
|
|
563
|
-
(u(), te(no, {
|
|
564
|
-
key: `title_${Be.value}`,
|
|
565
|
-
config: {
|
|
566
|
-
title: {
|
|
567
|
-
cy: "3dBar-div-title",
|
|
568
|
-
...e.value.style.chart.title
|
|
569
|
-
},
|
|
570
|
-
subtitle: {
|
|
571
|
-
cy: "3dBar-div-subtitle",
|
|
572
|
-
...e.value.style.chart.title.subtitle
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}, null, 8, ["config"]))
|
|
576
|
-
], 512)) : p("", !0),
|
|
577
|
-
e.value.userOptions.show && Ie.value && (n(Ee) || n(me)) ? (u(), te(n($t), {
|
|
578
|
-
key: 2,
|
|
579
|
-
ref_key: "userOptionsRef",
|
|
580
|
-
ref: $e,
|
|
581
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
582
|
-
color: e.value.style.chart.color,
|
|
583
|
-
isPrinting: n(we),
|
|
584
|
-
isImaging: n(xe),
|
|
585
|
-
uid: A.value,
|
|
586
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
587
|
-
hasTable: !!C.value && e.value.userOptions.buttons.table,
|
|
588
|
-
hasXls: !!C.value && e.value.userOptions.buttons.csv,
|
|
589
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
590
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
591
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
592
|
-
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
593
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
594
|
-
chartElement: E.value,
|
|
595
|
-
position: e.value.userOptions.position,
|
|
596
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
597
|
-
isAnnotation: fe.value,
|
|
598
|
-
callbacks: e.value.userOptions.callbacks,
|
|
599
|
-
printScale: e.value.userOptions.print.scale,
|
|
600
|
-
tableDialog: e.value.table.useDialog,
|
|
601
|
-
isCursorPointer: de.value,
|
|
602
|
-
onToggleFullscreen: Xe,
|
|
603
|
-
onGeneratePdf: n(We),
|
|
604
|
-
onGenerateCsv: Pe,
|
|
605
|
-
onGenerateImage: It,
|
|
606
|
-
onGenerateSvg: Ke,
|
|
607
|
-
onToggleTable: Ze,
|
|
608
|
-
onToggleAnnotator: Me,
|
|
609
|
-
onCopyAlt: Ye,
|
|
610
|
-
style: I({
|
|
611
|
-
visibility: n(Ee) ? n(me) ? "visible" : "hidden" : "visible"
|
|
612
|
-
})
|
|
613
|
-
}, lt({ _: 2 }, [
|
|
614
|
-
l.$slots.menuIcon ? {
|
|
615
|
-
name: "menuIcon",
|
|
616
|
-
fn: b(({ isOpen: t, color: d }) => [
|
|
617
|
-
m(l.$slots, "menuIcon", B(j({ isOpen: t, color: d })), void 0, !0)
|
|
618
|
-
]),
|
|
619
|
-
key: "0"
|
|
620
|
-
} : void 0,
|
|
621
|
-
l.$slots.optionPdf ? {
|
|
622
|
-
name: "optionPdf",
|
|
623
|
-
fn: b(() => [
|
|
624
|
-
m(l.$slots, "optionPdf", {}, void 0, !0)
|
|
625
|
-
]),
|
|
626
|
-
key: "1"
|
|
627
|
-
} : void 0,
|
|
628
|
-
l.$slots.optionCsv ? {
|
|
629
|
-
name: "optionCsv",
|
|
630
|
-
fn: b(() => [
|
|
631
|
-
m(l.$slots, "optionCsv", {}, void 0, !0)
|
|
632
|
-
]),
|
|
633
|
-
key: "2"
|
|
634
|
-
} : void 0,
|
|
635
|
-
l.$slots.optionImg ? {
|
|
636
|
-
name: "optionImg",
|
|
637
|
-
fn: b(() => [
|
|
638
|
-
m(l.$slots, "optionImg", {}, void 0, !0)
|
|
639
|
-
]),
|
|
640
|
-
key: "3"
|
|
641
|
-
} : void 0,
|
|
642
|
-
l.$slots.optionSvg ? {
|
|
643
|
-
name: "optionSvg",
|
|
644
|
-
fn: b(() => [
|
|
645
|
-
m(l.$slots, "optionSvg", {}, void 0, !0)
|
|
646
|
-
]),
|
|
647
|
-
key: "4"
|
|
648
|
-
} : void 0,
|
|
649
|
-
l.$slots.optionTable ? {
|
|
650
|
-
name: "optionTable",
|
|
651
|
-
fn: b(() => [
|
|
652
|
-
m(l.$slots, "optionTable", {}, void 0, !0)
|
|
653
|
-
]),
|
|
654
|
-
key: "5"
|
|
655
|
-
} : void 0,
|
|
656
|
-
l.$slots.optionFullscreen ? {
|
|
657
|
-
name: "optionFullscreen",
|
|
658
|
-
fn: b(({ toggleFullscreen: t, isFullscreen: d }) => [
|
|
659
|
-
m(l.$slots, "optionFullscreen", B(j({ toggleFullscreen: t, isFullscreen: d })), void 0, !0)
|
|
660
|
-
]),
|
|
661
|
-
key: "6"
|
|
662
|
-
} : void 0,
|
|
663
|
-
l.$slots.optionAnnotator ? {
|
|
664
|
-
name: "optionAnnotator",
|
|
665
|
-
fn: b(({ toggleAnnotator: t, isAnnotator: d }) => [
|
|
666
|
-
m(l.$slots, "optionAnnotator", B(j({ toggleAnnotator: t, isAnnotator: d })), void 0, !0)
|
|
667
|
-
]),
|
|
668
|
-
key: "7"
|
|
669
|
-
} : void 0,
|
|
670
|
-
l.$slots.optionAltCopy ? {
|
|
671
|
-
name: "optionAltCopy",
|
|
672
|
-
fn: b(({ altCopy: t }) => [
|
|
673
|
-
m(l.$slots, "optionAltCopy", B(j({ altCopy: t })), void 0, !0)
|
|
674
|
-
]),
|
|
675
|
-
key: "8"
|
|
676
|
-
} : void 0
|
|
677
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
|
|
678
|
-
(u(), v("svg", {
|
|
679
|
-
ref_key: "svgRef",
|
|
680
|
-
ref: _e,
|
|
681
|
-
xmlns: n(Ht),
|
|
682
|
-
class: ot({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
|
|
683
|
-
viewBox: `0 0 ${s.value.absoluteWidth} ${s.value.height}`,
|
|
684
|
-
style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
685
|
-
}, [
|
|
686
|
-
at(n(mt)),
|
|
687
|
-
l.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
688
|
-
key: 0,
|
|
689
|
-
x: 0,
|
|
690
|
-
y: 0,
|
|
691
|
-
width: s.value.absoluteWidth,
|
|
692
|
-
height: s.value.height,
|
|
693
|
-
style: {
|
|
694
|
-
pointerEvents: "none"
|
|
695
|
-
}
|
|
696
|
-
}, [
|
|
697
|
-
m(l.$slots, "chart-background", {}, void 0, !0)
|
|
698
|
-
], 8, vo)) : p("", !0),
|
|
699
|
-
i("defs", null, [
|
|
700
|
-
i("radialGradient", {
|
|
701
|
-
id: `gradient_top${A.value}`
|
|
702
|
-
}, [
|
|
703
|
-
i("stop", {
|
|
704
|
-
offset: "0%",
|
|
705
|
-
"stop-color": n(_)(e.value.style.chart.backgroundColor, 0)
|
|
706
|
-
}, null, 8, fo),
|
|
707
|
-
i("stop", {
|
|
708
|
-
offset: "100%",
|
|
709
|
-
"stop-color": e.value.style.chart.bar.color
|
|
710
|
-
}, null, 8, po)
|
|
711
|
-
], 8, ho),
|
|
712
|
-
i("radialGradient", {
|
|
713
|
-
id: `gradient_tube_top${A.value}`
|
|
714
|
-
}, [
|
|
715
|
-
i("stop", {
|
|
716
|
-
offset: "0%",
|
|
717
|
-
"stop-color": n(_)(n(G)(e.value.style.chart.bar.color, 0.5), 80)
|
|
718
|
-
}, null, 8, yo),
|
|
719
|
-
i("stop", {
|
|
720
|
-
offset: "100%",
|
|
721
|
-
"stop-color": n(_)(n(q)(e.value.style.chart.bar.color, 0.1), 80)
|
|
722
|
-
}, null, 8, ko)
|
|
723
|
-
], 8, go),
|
|
724
|
-
i("radialGradient", {
|
|
725
|
-
id: `gradient_left${A.value}`
|
|
726
|
-
}, [
|
|
727
|
-
i("stop", {
|
|
728
|
-
offset: "0%",
|
|
729
|
-
"stop-color": n(_)(e.value.style.chart.backgroundColor, 0)
|
|
730
|
-
}, null, 8, mo),
|
|
731
|
-
i("stop", {
|
|
732
|
-
offset: "100%",
|
|
733
|
-
"stop-color": n(_)(e.value.style.chart.bar.color, 20)
|
|
734
|
-
}, null, 8, _o)
|
|
735
|
-
], 8, $o),
|
|
736
|
-
i("radialGradient", {
|
|
737
|
-
id: `gradient_right${A.value}`
|
|
738
|
-
}, [
|
|
739
|
-
i("stop", {
|
|
740
|
-
offset: "0%",
|
|
741
|
-
"stop-color": n(_)(e.value.style.chart.backgroundColor, 0)
|
|
742
|
-
}, null, 8, wo),
|
|
743
|
-
i("stop", {
|
|
744
|
-
offset: "100%",
|
|
745
|
-
"stop-color": n(_)(e.value.style.chart.bar.color, 20)
|
|
746
|
-
}, null, 8, xo)
|
|
747
|
-
], 8, bo),
|
|
748
|
-
i("linearGradient", {
|
|
749
|
-
id: `gradient_tube_body${A.value}`,
|
|
750
|
-
x1: "0%",
|
|
751
|
-
y1: "0%",
|
|
752
|
-
x2: "100%",
|
|
753
|
-
y2: "0%"
|
|
754
|
-
}, [
|
|
755
|
-
i("stop", {
|
|
756
|
-
offset: "0%",
|
|
757
|
-
"stop-color": `${e.value.style.chart.bar.color}`
|
|
758
|
-
}, null, 8, Po),
|
|
759
|
-
i("stop", {
|
|
760
|
-
offset: "10%",
|
|
761
|
-
"stop-color": n(_)(n(q)(e.value.style.chart.bar.color, 0.7), 100)
|
|
762
|
-
}, null, 8, Mo),
|
|
763
|
-
i("stop", {
|
|
764
|
-
offset: "25%",
|
|
765
|
-
"stop-color": n(_)(n(q)(e.value.style.chart.bar.color, 0.5), 100)
|
|
766
|
-
}, null, 8, To),
|
|
767
|
-
i("stop", {
|
|
768
|
-
offset: "75%",
|
|
769
|
-
"stop-color": n(_)(e.value.style.chart.bar.color, 80)
|
|
770
|
-
}, null, 8, Fo),
|
|
771
|
-
i("stop", {
|
|
772
|
-
offset: "100%",
|
|
773
|
-
"stop-color": n(_)(n(G)(e.value.style.chart.bar.color, 0.7), 100)
|
|
774
|
-
}, null, 8, Ao)
|
|
775
|
-
], 8, Co)
|
|
776
|
-
]),
|
|
777
|
-
C.value ? (u(), v("defs", Do, [
|
|
778
|
-
(u(!0), v(T, null, F(P.value, (t) => (u(), v("radialGradient", {
|
|
779
|
-
id: `grad_top_${t.id}`
|
|
780
|
-
}, [
|
|
781
|
-
i("stop", {
|
|
782
|
-
offset: "0%",
|
|
783
|
-
"stop-color": n(_)(n(G)(t.color, 0.5), 80)
|
|
784
|
-
}, null, 8, Oo),
|
|
785
|
-
i("stop", {
|
|
786
|
-
offset: "100%",
|
|
787
|
-
"stop-color": t.color
|
|
788
|
-
}, null, 8, Io)
|
|
789
|
-
], 8, So))), 256)),
|
|
790
|
-
(u(!0), v(T, null, F(P.value, (t) => (u(), v("linearGradient", {
|
|
791
|
-
id: `grad_left_${t.id}`
|
|
792
|
-
}, [
|
|
793
|
-
i("stop", {
|
|
794
|
-
offset: "0%",
|
|
795
|
-
"stop-color": n(_)(t.color, 80)
|
|
796
|
-
}, null, 8, jo),
|
|
797
|
-
i("stop", {
|
|
798
|
-
offset: "100%",
|
|
799
|
-
"stop-color": n(_)(n(q)(t.color, 0.5), 100)
|
|
800
|
-
}, null, 8, zo)
|
|
801
|
-
], 8, Bo))), 256)),
|
|
802
|
-
(u(!0), v(T, null, F(P.value, (t) => (u(), v("linearGradient", {
|
|
803
|
-
id: `grad_right_${t.id}`
|
|
804
|
-
}, [
|
|
805
|
-
i("stop", {
|
|
806
|
-
offset: "2%",
|
|
807
|
-
"stop-color": n(_)(n(G)(t.color, 0.5), 100)
|
|
808
|
-
}, null, 8, Lo),
|
|
809
|
-
i("stop", {
|
|
810
|
-
offset: "100%",
|
|
811
|
-
"stop-color": n(_)(t.color, 80)
|
|
812
|
-
}, null, 8, Eo)
|
|
813
|
-
], 8, No))), 256)),
|
|
814
|
-
i("linearGradient", {
|
|
815
|
-
x1: "0%",
|
|
816
|
-
y1: "0%",
|
|
817
|
-
x2: "0%",
|
|
818
|
-
y2: "100%",
|
|
819
|
-
id: `vertical_line_${A.value}`
|
|
820
|
-
}, [...a[10] || (a[10] = [
|
|
821
|
-
i("stop", {
|
|
822
|
-
offset: "0%",
|
|
823
|
-
"stop-color": "#FFFFFF"
|
|
824
|
-
}, null, -1),
|
|
825
|
-
i("stop", {
|
|
826
|
-
offset: "100%",
|
|
827
|
-
"stop-color": "#FFFFFF33"
|
|
828
|
-
}, null, -1)
|
|
829
|
-
])], 8, Wo)
|
|
830
|
-
])) : p("", !0),
|
|
831
|
-
e.value.style.chart.dataLabel.show && ![null, void 0].includes(n(S).percentage) && [null, void 0].includes(n(S).series) ? (u(), v("text", {
|
|
832
|
-
key: 2,
|
|
833
|
-
x: s.value.width / 2,
|
|
834
|
-
y: s.value.top - e.value.style.chart.dataLabel.fontSize / 2,
|
|
835
|
-
"font-size": e.value.style.chart.dataLabel.fontSize,
|
|
836
|
-
"font-weight": e.value.style.chart.dataLabel.bold ? "bold" : "normal",
|
|
837
|
-
fill: e.value.style.chart.dataLabel.color,
|
|
838
|
-
"text-anchor": "middle"
|
|
839
|
-
}, L(n(z)({
|
|
840
|
-
v: Y.value,
|
|
841
|
-
s: "%",
|
|
842
|
-
r: e.value.style.chart.dataLabel.rounding
|
|
843
|
-
})), 9, Ro)) : p("", !0),
|
|
844
|
-
N.value ? (u(), v("g", {
|
|
845
|
-
key: 3,
|
|
846
|
-
role: "button",
|
|
847
|
-
tabindex: "0",
|
|
848
|
-
"aria-label": "Clear selection",
|
|
849
|
-
onClick: a[0] || (a[0] = (t) => {
|
|
850
|
-
N.value = !1, w.value = null;
|
|
851
|
-
}),
|
|
852
|
-
onKeydown: [
|
|
853
|
-
a[1] || (a[1] = st(nt((t) => {
|
|
854
|
-
N.value = !1, w.value = null;
|
|
855
|
-
}, ["prevent"]), ["enter"])),
|
|
856
|
-
a[2] || (a[2] = st(nt((t) => {
|
|
857
|
-
N.value = !1, w.value = null;
|
|
858
|
-
}, ["prevent"]), ["space"]))
|
|
859
|
-
],
|
|
860
|
-
onFocus: a[3] || (a[3] = (t) => ae.value = !0),
|
|
861
|
-
onBlur: a[4] || (a[4] = (t) => ae.value = !1),
|
|
862
|
-
onMouseenter: a[5] || (a[5] = (t) => ae.value = !0),
|
|
863
|
-
onMouseleave: a[6] || (a[6] = (t) => ae.value = !1),
|
|
864
|
-
class: "svg-btn",
|
|
865
|
-
"data-dom-to-png-ignore": "",
|
|
866
|
-
style: I({
|
|
867
|
-
cursor: de.value ? "pointer" : "default",
|
|
868
|
-
outline: "none"
|
|
869
|
-
})
|
|
870
|
-
}, [
|
|
871
|
-
a[11] || (a[11] = i("title", null, "Clear selection", -1)),
|
|
872
|
-
i("rect", {
|
|
873
|
-
x: J.value - 12,
|
|
874
|
-
y: s.value.top - 24,
|
|
875
|
-
width: 24,
|
|
876
|
-
height: 24,
|
|
877
|
-
fill: "transparent",
|
|
878
|
-
"pointer-events": "all"
|
|
879
|
-
}, null, 8, Vo),
|
|
880
|
-
i("circle", {
|
|
881
|
-
cx: J.value,
|
|
882
|
-
cy: s.value.top - 12,
|
|
883
|
-
r: "10",
|
|
884
|
-
fill: "none",
|
|
885
|
-
stroke: e.value.style.chart.color,
|
|
886
|
-
"stroke-width": "2",
|
|
887
|
-
"vector-effect": "non-scaling-stroke",
|
|
888
|
-
opacity: ae.value ? 0.5 : 0
|
|
889
|
-
}, null, 8, Go),
|
|
890
|
-
i("path", {
|
|
891
|
-
d: `M${J.value - 6},${s.value.top - 18} ${J.value + 6},${s.value.top - 6}`,
|
|
892
|
-
stroke: e.value.style.chart.color,
|
|
893
|
-
"stroke-linecap": "round",
|
|
894
|
-
"stroke-width": "2",
|
|
895
|
-
"vector-effect": "non-scaling-stroke"
|
|
896
|
-
}, null, 8, Uo),
|
|
897
|
-
i("path", {
|
|
898
|
-
d: `M${J.value + 6},${s.value.top - 18} ${J.value - 6},${s.value.top - 6}`,
|
|
899
|
-
stroke: e.value.style.chart.color,
|
|
900
|
-
"stroke-linecap": "round",
|
|
901
|
-
"stroke-width": "2",
|
|
902
|
-
"vector-effect": "non-scaling-stroke"
|
|
903
|
-
}, null, 8, Ho)
|
|
904
|
-
], 36)) : p("", !0),
|
|
905
|
-
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), v("g", Xo, [
|
|
906
|
-
C.value ? p("", !0) : (u(), v("g", Zo, [
|
|
907
|
-
i("path", {
|
|
908
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
909
|
-
d: W.value.right,
|
|
910
|
-
stroke: e.value.style.chart.box.stroke,
|
|
911
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
912
|
-
"stroke-linejoin": "round",
|
|
913
|
-
"stroke-linecap": "round",
|
|
914
|
-
fill: "none"
|
|
915
|
-
}, null, 8, qo),
|
|
916
|
-
i("path", {
|
|
917
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
918
|
-
d: W.value.left,
|
|
919
|
-
stroke: e.value.style.chart.box.stroke,
|
|
920
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
921
|
-
"stroke-linejoin": "round",
|
|
922
|
-
"stroke-linecap": "round",
|
|
923
|
-
fill: "none"
|
|
924
|
-
}, null, 8, Ko),
|
|
925
|
-
i("path", {
|
|
926
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
927
|
-
d: W.value.side,
|
|
928
|
-
stroke: e.value.style.chart.box.stroke,
|
|
929
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
930
|
-
"stroke-linejoin": "round",
|
|
931
|
-
"stroke-linecap": "round",
|
|
932
|
-
fill: "none"
|
|
933
|
-
}, null, 8, Yo),
|
|
934
|
-
i("path", {
|
|
935
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
936
|
-
d: W.value.topSides,
|
|
937
|
-
stroke: e.value.style.chart.box.stroke,
|
|
938
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
939
|
-
"stroke-linejoin": "round",
|
|
940
|
-
"stroke-linecap": "round",
|
|
941
|
-
fill: "none"
|
|
942
|
-
}, null, 8, Jo)
|
|
943
|
-
])),
|
|
944
|
-
C.value ? p("", !0) : (u(), v("g", Qo, [
|
|
945
|
-
i("path", {
|
|
946
|
-
d: Q.value.right,
|
|
947
|
-
stroke: e.value.style.chart.bar.stroke,
|
|
948
|
-
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
949
|
-
"stroke-linejoin": "round",
|
|
950
|
-
"stroke-linecap": "round",
|
|
951
|
-
fill: `url(#gradient_right${A.value})`
|
|
952
|
-
}, null, 8, el),
|
|
953
|
-
i("path", {
|
|
954
|
-
d: Q.value.left,
|
|
955
|
-
stroke: e.value.style.chart.bar.stroke,
|
|
956
|
-
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
957
|
-
"stroke-linejoin": "round",
|
|
958
|
-
"stroke-linecap": "round",
|
|
959
|
-
fill: `url(#gradient_left${A.value})`
|
|
960
|
-
}, null, 8, tl),
|
|
961
|
-
i("path", {
|
|
962
|
-
d: Q.value.top,
|
|
963
|
-
stroke: e.value.style.chart.bar.stroke,
|
|
964
|
-
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
965
|
-
"stroke-linejoin": "round",
|
|
966
|
-
"stroke-linecap": "round",
|
|
967
|
-
fill: `url(#gradient_top${A.value})`
|
|
968
|
-
}, null, 8, ol)
|
|
969
|
-
])),
|
|
970
|
-
C.value ? (u(), v("g", ll, [
|
|
971
|
-
(u(!0), v(T, null, F(P.value, (t, d) => (u(), v("g", {
|
|
972
|
-
style: I(`opacity:${w.value ? w.value === t.id ? 1 : 0.3 : 1}`),
|
|
973
|
-
class: "vue-ui-3d-bar-stack"
|
|
974
|
-
}, [
|
|
975
|
-
i("path", {
|
|
976
|
-
d: t.fill.right,
|
|
977
|
-
fill: `url(#grad_right_${t.id})`,
|
|
978
|
-
onMouseenter: (o) => D(t),
|
|
979
|
-
onClick: (o) => D(t, !0),
|
|
980
|
-
onMouseout: (o) => X(t)
|
|
981
|
-
}, null, 40, al),
|
|
982
|
-
i("path", {
|
|
983
|
-
d: t.fill.left,
|
|
984
|
-
fill: `url(#grad_left_${t.id})`,
|
|
985
|
-
onMouseenter: (o) => D(t),
|
|
986
|
-
onClick: (o) => D(t, !0),
|
|
987
|
-
onMouseout: (o) => X(t)
|
|
988
|
-
}, null, 40, sl),
|
|
989
|
-
i("path", {
|
|
990
|
-
d: t.fill.top,
|
|
991
|
-
fill: `url(#grad_top_${t.id})`,
|
|
992
|
-
onMouseenter: (o) => D(t),
|
|
993
|
-
onClick: (o) => D(t, !0),
|
|
994
|
-
onMouseout: (o) => X(t)
|
|
995
|
-
}, null, 40, nl),
|
|
996
|
-
i("path", {
|
|
997
|
-
d: t.fill.liningTop,
|
|
998
|
-
stroke: "#FFFFFF",
|
|
999
|
-
"stroke-width": "0.5",
|
|
1000
|
-
"stroke-linecap": "round",
|
|
1001
|
-
fill: "none",
|
|
1002
|
-
onMouseenter: (o) => D(t),
|
|
1003
|
-
onClick: (o) => D(t, !0),
|
|
1004
|
-
onMouseout: (o) => X(t)
|
|
1005
|
-
}, null, 40, rl),
|
|
1006
|
-
i("path", {
|
|
1007
|
-
d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
|
|
1008
|
-
stroke: "#FFFFFF",
|
|
1009
|
-
"stroke-width": "0.5",
|
|
1010
|
-
"stroke-linecap": "round"
|
|
1011
|
-
}, null, 8, ul)
|
|
1012
|
-
], 4))), 256)),
|
|
1013
|
-
(u(!0), v(T, null, F(P.value, (t, d) => (u(), v("g", null, [
|
|
1014
|
-
d !== P.value.length - 1 ? (u(), v("path", {
|
|
1015
|
-
key: 0,
|
|
1016
|
-
d: t.fill.liningTopShade,
|
|
1017
|
-
stroke: e.value.style.chart.bar.shadeColor,
|
|
1018
|
-
"stroke-width": "0.5",
|
|
1019
|
-
"stroke-linecap": "round",
|
|
1020
|
-
fill: "none",
|
|
1021
|
-
style: { "pointer-events": "none" }
|
|
1022
|
-
}, null, 8, il)) : p("", !0)
|
|
1023
|
-
]))), 256)),
|
|
1024
|
-
(u(!0), v(T, null, F(P.value, (t, d) => (u(), v("g", {
|
|
1025
|
-
style: I(`opacity:${w.value ? w.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1026
|
-
onClick: (o) => oe("selectDatapoint", t)
|
|
1027
|
-
}, [
|
|
1028
|
-
i("path", {
|
|
1029
|
-
stroke: e.value.style.chart.color,
|
|
1030
|
-
"stroke-dasharray": "1",
|
|
1031
|
-
"stroke-width": "0.5",
|
|
1032
|
-
"stroke-linecap": "round",
|
|
1033
|
-
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1034
|
-
}, null, 8, cl),
|
|
1035
|
-
!t.fill.miniDonut || w.value ? (u(), v("circle", {
|
|
1036
|
-
key: 0,
|
|
1037
|
-
cx: t.fill.sidePointer.x2,
|
|
1038
|
-
cy: t.fill.sidePointer.y,
|
|
1039
|
-
r: 2,
|
|
1040
|
-
fill: t.color,
|
|
1041
|
-
stroke: e.value.style.chart.backgroundColor
|
|
1042
|
-
}, null, 8, vl)) : p("", !0),
|
|
1043
|
-
n(K) ? (u(), v("rect", {
|
|
1044
|
-
key: 1,
|
|
1045
|
-
x: t.fill.sidePointer.xText,
|
|
1046
|
-
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
1047
|
-
width: s.value.width / 3,
|
|
1048
|
-
height: e.value.style.chart.legend.fontSize,
|
|
1049
|
-
fill: "#6A6A6A80",
|
|
1050
|
-
rx: "3"
|
|
1051
|
-
}, null, 8, hl)) : p("", !0),
|
|
1052
|
-
n(K) ? p("", !0) : (u(), v("foreignObject", {
|
|
1053
|
-
key: 2,
|
|
1054
|
-
x: t.fill.sidePointer.xText,
|
|
1055
|
-
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
1056
|
-
width: s.value.absoluteWidth / 3,
|
|
1057
|
-
height: e.value.style.chart.legend.fontSize * 2,
|
|
1058
|
-
style: { overflow: "visible", position: "relative" }
|
|
1059
|
-
}, [
|
|
1060
|
-
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
1061
|
-
key: 0,
|
|
1062
|
-
style: I(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color}; font-weight:${e.value.style.chart.legend.bold ? "bold" : "normal"}`)
|
|
1063
|
-
}, L(n(ye)(
|
|
1064
|
-
e.value.style.chart.dataLabel.formatter,
|
|
1065
|
-
t.value,
|
|
1066
|
-
`${t.name}: ${n(z)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(z)({
|
|
1067
|
-
p: e.value.style.chart.legend.prefix,
|
|
1068
|
-
v: t.value,
|
|
1069
|
-
s: e.value.style.chart.legend.suffix,
|
|
1070
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1071
|
-
})})`,
|
|
1072
|
-
{ datapoint: t, seriesIndex: d, type: "barDatapoint" }
|
|
1073
|
-
)), 5)) : p("", !0),
|
|
1074
|
-
m(l.$slots, "legend", Ae({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: P.value }), void 0, !0)
|
|
1075
|
-
], 8, fl)),
|
|
1076
|
-
t.fill.donut && w.value === t.id ? (u(), v("g", pl, [
|
|
1077
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1078
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
1079
|
-
key: 0,
|
|
1080
|
-
d: n(ct)(o, { x: o.cx, y: o.cy }, 0, 8, !1, !0, 10),
|
|
1081
|
-
stroke: o.color,
|
|
1082
|
-
class: "vue-ui-donut-arc-path",
|
|
1083
|
-
"stroke-width": "0.5",
|
|
1084
|
-
"stroke-linecap": "round",
|
|
1085
|
-
"stroke-linejoin": "round",
|
|
1086
|
-
fill: "none"
|
|
1087
|
-
}, null, 8, gl)) : p("", !0)
|
|
1088
|
-
]))), 256)),
|
|
1089
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("path", {
|
|
1090
|
-
class: "vue-ui-donut-arc-path",
|
|
1091
|
-
d: o.arcSlice,
|
|
1092
|
-
fill: `${o.color}`,
|
|
1093
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1094
|
-
"stroke-width": 1
|
|
1095
|
-
}, null, 8, yl))), 256)),
|
|
1096
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1097
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g", kl, [
|
|
1098
|
-
i("text", {
|
|
1099
|
-
"text-anchor": n(U)(o, !0, 0).anchor,
|
|
1100
|
-
x: n(U)(o, !0, 2).x,
|
|
1101
|
-
y: n(ke)(o, 12, 12),
|
|
1102
|
-
fill: e.value.style.chart.legend.color,
|
|
1103
|
-
"font-size": e.value.style.chart.legend.fontSize / 1.5,
|
|
1104
|
-
"font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1105
|
-
}, L(n(ye)(
|
|
1106
|
-
e.value.style.chart.dataLabel.formatter,
|
|
1107
|
-
o.value,
|
|
1108
|
-
`${ee(o, t.fill.donut)} (${n(z)({
|
|
1109
|
-
p: e.value.style.chart.legend.prefix,
|
|
1110
|
-
v: o.value,
|
|
1111
|
-
s: e.value.style.chart.legend.suffix,
|
|
1112
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1113
|
-
})})`,
|
|
1114
|
-
{ datapoint: o, seriesIndex: c, type: "donutDatapoint" }
|
|
1115
|
-
)), 9, $l),
|
|
1116
|
-
i("text", {
|
|
1117
|
-
"text-anchor": n(U)(o).anchor,
|
|
1118
|
-
x: n(U)(o, !0, 2).x,
|
|
1119
|
-
y: n(ke)(o, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1120
|
-
fill: e.value.style.chart.legend.color,
|
|
1121
|
-
"font-size": e.value.style.chart.legend.fontSize / 1.5,
|
|
1122
|
-
"font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1123
|
-
}, L(o.name), 9, ml)
|
|
1124
|
-
])) : p("", !0)
|
|
1125
|
-
]))), 256))
|
|
1126
|
-
])) : p("", !0),
|
|
1127
|
-
t.fill.miniDonut && !w.value ? (u(), v("g", _l, [
|
|
1128
|
-
(u(!0), v(T, null, F(t.fill.miniDonut, (o, c) => (u(), v("path", {
|
|
1129
|
-
class: "vue-ui-donut-arc-path",
|
|
1130
|
-
d: o.arcSlice,
|
|
1131
|
-
fill: `${o.color}`,
|
|
1132
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1133
|
-
"stroke-width": 0.5
|
|
1134
|
-
}, null, 8, bl))), 256))
|
|
1135
|
-
])) : p("", !0)
|
|
1136
|
-
], 12, dl))), 256))
|
|
1137
|
-
])) : p("", !0)
|
|
1138
|
-
])) : p("", !0),
|
|
1139
|
-
e.value.style.shape === "tube" ? (u(), v("g", wl, [
|
|
1140
|
-
C.value ? p("", !0) : (u(), v("g", xl, [
|
|
1141
|
-
i("path", {
|
|
1142
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1143
|
-
d: W.value.tubeTop,
|
|
1144
|
-
stroke: e.value.style.chart.box.stroke,
|
|
1145
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1146
|
-
"stroke-linejoin": "round",
|
|
1147
|
-
"stroke-linecap": "round",
|
|
1148
|
-
fill: "none"
|
|
1149
|
-
}, null, 8, Cl),
|
|
1150
|
-
i("path", {
|
|
1151
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1152
|
-
d: W.value.tubeLeft,
|
|
1153
|
-
stroke: e.value.style.chart.box.stroke,
|
|
1154
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1155
|
-
"stroke-linejoin": "round",
|
|
1156
|
-
"stroke-linecap": "round",
|
|
1157
|
-
fill: "none"
|
|
1158
|
-
}, null, 8, Pl),
|
|
1159
|
-
i("path", {
|
|
1160
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1161
|
-
d: W.value.tubeRight,
|
|
1162
|
-
stroke: e.value.style.chart.box.stroke,
|
|
1163
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1164
|
-
"stroke-linejoin": "round",
|
|
1165
|
-
"stroke-linecap": "round",
|
|
1166
|
-
fill: "none"
|
|
1167
|
-
}, null, 8, Ml),
|
|
1168
|
-
i("path", {
|
|
1169
|
-
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1170
|
-
d: W.value.tubeBottom,
|
|
1171
|
-
stroke: e.value.style.chart.box.stroke,
|
|
1172
|
-
"stroke-width": e.value.style.chart.box.strokeWidth,
|
|
1173
|
-
"stroke-linejoin": "round",
|
|
1174
|
-
"stroke-linecap": "round",
|
|
1175
|
-
fill: "none"
|
|
1176
|
-
}, null, 8, Tl),
|
|
1177
|
-
i("path", {
|
|
1178
|
-
d: Q.value.tubeTop,
|
|
1179
|
-
stroke: e.value.style.chart.bar.stroke,
|
|
1180
|
-
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
1181
|
-
"stroke-linejoin": "round",
|
|
1182
|
-
"stroke-linecap": "round",
|
|
1183
|
-
fill: `url(#gradient_tube_top${A.value})`
|
|
1184
|
-
}, null, 8, Fl),
|
|
1185
|
-
i("path", {
|
|
1186
|
-
d: Q.value.tubeBody,
|
|
1187
|
-
stroke: e.value.style.chart.bar.stroke,
|
|
1188
|
-
"stroke-width": e.value.style.chart.bar.strokeWidth,
|
|
1189
|
-
"stroke-linejoin": "round",
|
|
1190
|
-
"stroke-linecap": "round",
|
|
1191
|
-
fill: `url(#gradient_tube_body${A.value})`
|
|
1192
|
-
}, null, 8, Al),
|
|
1193
|
-
i("path", {
|
|
1194
|
-
d: Q.value.tubeTop,
|
|
1195
|
-
stroke: "#FFFFFF",
|
|
1196
|
-
"stroke-width": 0.5,
|
|
1197
|
-
"stroke-linejoin": "round",
|
|
1198
|
-
"stroke-linecap": "round",
|
|
1199
|
-
fill: "none"
|
|
1200
|
-
}, null, 8, Dl)
|
|
1201
|
-
])),
|
|
1202
|
-
C.value ? (u(), v("g", Sl, [
|
|
1203
|
-
(u(!0), v(T, null, F(P.value, (t, d) => (u(), v("g", {
|
|
1204
|
-
style: I(`opacity:${w.value ? w.value === t.id ? 1 : 0.3 : 1}`),
|
|
1205
|
-
class: "vue-ui-3d-bar-stack",
|
|
1206
|
-
onClick: (o) => oe("selectDatapoint", t)
|
|
1207
|
-
}, [
|
|
1208
|
-
i("defs", null, [
|
|
1209
|
-
i("radialGradient", {
|
|
1210
|
-
id: `gradient_tube_top_${t.id}`,
|
|
1211
|
-
fx: "10%",
|
|
1212
|
-
cy: "55%"
|
|
1213
|
-
}, [
|
|
1214
|
-
i("stop", {
|
|
1215
|
-
offset: "0%",
|
|
1216
|
-
"stop-color": n(_)(n(G)(t.color, 0.5), 80)
|
|
1217
|
-
}, null, 8, Bl),
|
|
1218
|
-
i("stop", {
|
|
1219
|
-
offset: "100%",
|
|
1220
|
-
"stop-color": n(_)(n(q)(t.color, 0.1), 80)
|
|
1221
|
-
}, null, 8, jl)
|
|
1222
|
-
], 8, Il),
|
|
1223
|
-
i("linearGradient", {
|
|
1224
|
-
id: `gradient_tube_body_${t.id}`,
|
|
1225
|
-
x1: "0%",
|
|
1226
|
-
y1: "0%",
|
|
1227
|
-
x2: "100%",
|
|
1228
|
-
y2: "0%"
|
|
1229
|
-
}, [
|
|
1230
|
-
i("stop", {
|
|
1231
|
-
offset: "0%",
|
|
1232
|
-
"stop-color": `${t.color}`
|
|
1233
|
-
}, null, 8, Nl),
|
|
1234
|
-
i("stop", {
|
|
1235
|
-
offset: "10%",
|
|
1236
|
-
"stop-color": n(_)(n(q)(t.color, 0.7), 100)
|
|
1237
|
-
}, null, 8, Ll),
|
|
1238
|
-
i("stop", {
|
|
1239
|
-
offset: "25%",
|
|
1240
|
-
"stop-color": n(_)(n(q)(t.color, 0.5), 100)
|
|
1241
|
-
}, null, 8, El),
|
|
1242
|
-
i("stop", {
|
|
1243
|
-
offset: "75%",
|
|
1244
|
-
"stop-color": n(_)(t.color, 80)
|
|
1245
|
-
}, null, 8, Wl),
|
|
1246
|
-
i("stop", {
|
|
1247
|
-
offset: "100%",
|
|
1248
|
-
"stop-color": n(_)(n(G)(t.color, 0.7), 100)
|
|
1249
|
-
}, null, 8, Rl)
|
|
1250
|
-
], 8, zl)
|
|
1251
|
-
]),
|
|
1252
|
-
i("path", {
|
|
1253
|
-
onMouseenter: (o) => D(t),
|
|
1254
|
-
onClick: (o) => D(t, !0),
|
|
1255
|
-
onMouseout: (o) => X(t),
|
|
1256
|
-
d: t.fill.tubeBody,
|
|
1257
|
-
stroke: "#FFFFFF",
|
|
1258
|
-
"stroke-width": 0.5,
|
|
1259
|
-
"stroke-linejoin": "round",
|
|
1260
|
-
"stroke-linecap": "round",
|
|
1261
|
-
fill: `url(#gradient_tube_body_${t.id})`
|
|
1262
|
-
}, null, 40, Vl),
|
|
1263
|
-
d > 0 ? (u(), v("path", {
|
|
1264
|
-
key: 0,
|
|
1265
|
-
onMouseenter: (o) => D(t),
|
|
1266
|
-
onClick: (o) => D(t, !0),
|
|
1267
|
-
onMouseout: (o) => X(t),
|
|
1268
|
-
d: t.fill.bottomTubeTop,
|
|
1269
|
-
stroke: "#000000",
|
|
1270
|
-
"stroke-width": 0.5,
|
|
1271
|
-
"stroke-linejoin": "round",
|
|
1272
|
-
"stroke-linecap": "round",
|
|
1273
|
-
fill: "none"
|
|
1274
|
-
}, null, 40, Gl)) : p("", !0),
|
|
1275
|
-
i("path", {
|
|
1276
|
-
onMouseenter: (o) => D(t),
|
|
1277
|
-
onClick: (o) => D(t, !0),
|
|
1278
|
-
onMouseout: (o) => X(t),
|
|
1279
|
-
d: t.fill.tubeTop,
|
|
1280
|
-
stroke: "#FFFFFF",
|
|
1281
|
-
"stroke-width": 0.5,
|
|
1282
|
-
"stroke-linejoin": "round",
|
|
1283
|
-
"stroke-linecap": "round",
|
|
1284
|
-
fill: `url(#gradient_tube_top_${t.id})`
|
|
1285
|
-
}, null, 40, Ul)
|
|
1286
|
-
], 12, Ol))), 256)),
|
|
1287
|
-
(u(!0), v(T, null, F(P.value, (t, d) => (u(), v("g", {
|
|
1288
|
-
style: I(`opacity:${w.value ? w.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1289
|
-
onClick: (o) => oe("selectDatapoint", t)
|
|
1290
|
-
}, [
|
|
1291
|
-
i("path", {
|
|
1292
|
-
stroke: e.value.style.chart.color,
|
|
1293
|
-
"stroke-dasharray": "1",
|
|
1294
|
-
"stroke-width": "0.5",
|
|
1295
|
-
"stroke-linecap": "round",
|
|
1296
|
-
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1297
|
-
}, null, 8, Xl),
|
|
1298
|
-
!t.fill.miniDonut || w.value ? (u(), v("circle", {
|
|
1299
|
-
key: 0,
|
|
1300
|
-
cx: t.fill.sidePointer.x2,
|
|
1301
|
-
cy: t.fill.sidePointer.y,
|
|
1302
|
-
r: 2,
|
|
1303
|
-
fill: t.color,
|
|
1304
|
-
stroke: e.value.style.chart.backgroundColor
|
|
1305
|
-
}, null, 8, Zl)) : p("", !0),
|
|
1306
|
-
n(K) ? (u(), v("rect", {
|
|
1307
|
-
key: 1,
|
|
1308
|
-
x: t.fill.sidePointer.xText,
|
|
1309
|
-
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
1310
|
-
width: s.value.width / 3,
|
|
1311
|
-
height: e.value.style.chart.legend.fontSize,
|
|
1312
|
-
fill: "#6A6A6A80",
|
|
1313
|
-
rx: "3"
|
|
1314
|
-
}, null, 8, ql)) : p("", !0),
|
|
1315
|
-
n(K) ? p("", !0) : (u(), v("foreignObject", {
|
|
1316
|
-
key: 2,
|
|
1317
|
-
x: t.fill.sidePointer.xText,
|
|
1318
|
-
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
1319
|
-
width: s.value.absoluteWidth / 3,
|
|
1320
|
-
height: e.value.style.chart.legend.fontSize * 2,
|
|
1321
|
-
style: { overflow: "visible", position: "relative" }
|
|
1322
|
-
}, [
|
|
1323
|
-
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
1324
|
-
key: 0,
|
|
1325
|
-
style: I(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${e.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${e.value.style.chart.legend.fontSize}px; color:${e.value.style.chart.legend.color};font-weight:${e.value.style.chart.legend.bold ? "bold" : "normal"}`)
|
|
1326
|
-
}, L(n(ye)(
|
|
1327
|
-
e.value.style.chart.dataLabel.formatter,
|
|
1328
|
-
t.value,
|
|
1329
|
-
`${t.name}: ${n(z)({ v: t.proportion * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })} (${n(z)({
|
|
1330
|
-
p: e.value.style.chart.legend.prefix,
|
|
1331
|
-
v: t.value,
|
|
1332
|
-
s: e.value.style.chart.legend.suffix,
|
|
1333
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1334
|
-
})})`,
|
|
1335
|
-
{ datapoint: t, seriesIndex: d, type: "barDatapoint" }
|
|
1336
|
-
)), 5)) : p("", !0),
|
|
1337
|
-
m(l.$slots, "legend", Ae({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: P.value }), void 0, !0)
|
|
1338
|
-
], 8, Kl)),
|
|
1339
|
-
t.fill.donut && w.value === t.id ? (u(), v("g", Yl, [
|
|
1340
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1341
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
1342
|
-
key: 0,
|
|
1343
|
-
d: n(ct)(o, { x: o.cx, y: o.cy }, 0, 8, !1, !0, 10),
|
|
1344
|
-
stroke: o.color,
|
|
1345
|
-
class: "vue-ui-donut-arc-path",
|
|
1346
|
-
"stroke-width": "0.5",
|
|
1347
|
-
"stroke-linecap": "round",
|
|
1348
|
-
"stroke-linejoin": "round",
|
|
1349
|
-
fill: "none"
|
|
1350
|
-
}, null, 8, Jl)) : p("", !0)
|
|
1351
|
-
]))), 256)),
|
|
1352
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("path", {
|
|
1353
|
-
class: "vue-ui-donut-arc-path",
|
|
1354
|
-
d: o.arcSlice,
|
|
1355
|
-
fill: `${o.color}`,
|
|
1356
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1357
|
-
"stroke-width": 1
|
|
1358
|
-
}, null, 8, Ql))), 256)),
|
|
1359
|
-
(u(!0), v(T, null, F(t.fill.donut, (o, c) => (u(), v("g", null, [
|
|
1360
|
-
ee(o, t.fill.donut, !0) > 6 ? (u(), v("g", ea, [
|
|
1361
|
-
i("text", {
|
|
1362
|
-
"text-anchor": n(U)(o, !0, 0).anchor,
|
|
1363
|
-
x: n(U)(o, !0, 2).x,
|
|
1364
|
-
y: n(ke)(o, 12, 12),
|
|
1365
|
-
fill: e.value.style.chart.legend.color,
|
|
1366
|
-
"font-size": e.value.style.chart.legend.fontSize / 1.5,
|
|
1367
|
-
"font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1368
|
-
}, L(n(ye)(
|
|
1369
|
-
e.value.style.chart.dataLabel.formatter,
|
|
1370
|
-
o.value,
|
|
1371
|
-
`${ee(o, t.fill.donut)} (${n(z)({
|
|
1372
|
-
p: e.value.style.chart.legend.prefix,
|
|
1373
|
-
v: o.value,
|
|
1374
|
-
s: e.value.style.chart.legend.suffix,
|
|
1375
|
-
r: e.value.style.chart.legend.roundingValue
|
|
1376
|
-
})})`,
|
|
1377
|
-
{ datapoint: o, seriesIndex: c, type: "donutDatapoint" }
|
|
1378
|
-
)), 9, ta),
|
|
1379
|
-
i("text", {
|
|
1380
|
-
"text-anchor": n(U)(o).anchor,
|
|
1381
|
-
x: n(U)(o, !0, 2).x,
|
|
1382
|
-
y: n(ke)(o, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1383
|
-
fill: e.value.style.chart.legend.color,
|
|
1384
|
-
"font-size": e.value.style.chart.legend.fontSize / 1.5,
|
|
1385
|
-
"font-weight": e.value.style.chart.legend.bold ? "bold" : "normal"
|
|
1386
|
-
}, L(o.name), 9, oa)
|
|
1387
|
-
])) : p("", !0)
|
|
1388
|
-
]))), 256))
|
|
1389
|
-
])) : p("", !0),
|
|
1390
|
-
t.fill.miniDonut && !w.value ? (u(), v("g", la, [
|
|
1391
|
-
(u(!0), v(T, null, F(t.fill.miniDonut, (o, c) => (u(), v("path", {
|
|
1392
|
-
class: "vue-ui-donut-arc-path",
|
|
1393
|
-
d: o.arcSlice,
|
|
1394
|
-
fill: `${o.color}`,
|
|
1395
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
1396
|
-
"stroke-width": 0.5
|
|
1397
|
-
}, null, 8, aa))), 256))
|
|
1398
|
-
])) : p("", !0)
|
|
1399
|
-
], 12, Hl))), 256))
|
|
1400
|
-
])) : p("", !0)
|
|
1401
|
-
])) : p("", !0),
|
|
1402
|
-
m(l.$slots, "svg", {
|
|
1403
|
-
svg: {
|
|
1404
|
-
...s.value,
|
|
1405
|
-
isPrintingImg: n(we) | n(xe) | ie.value,
|
|
1406
|
-
isPrintingSvg: ue.value
|
|
1407
|
-
}
|
|
1408
|
-
}, void 0, !0)
|
|
1409
|
-
], 14, co)),
|
|
1410
|
-
l.$slots.watermark ? (u(), v("div", sa, [
|
|
1411
|
-
m(l.$slots, "watermark", B(j({ isPrinting: n(we) || n(xe) || ue.value || ie.value })), void 0, !0)
|
|
1412
|
-
])) : p("", !0),
|
|
1413
|
-
l.$slots.source ? (u(), v("div", {
|
|
1414
|
-
key: 4,
|
|
1415
|
-
ref_key: "source",
|
|
1416
|
-
ref: Ne,
|
|
1417
|
-
dir: "auto"
|
|
1418
|
-
}, [
|
|
1419
|
-
m(l.$slots, "source", {}, void 0, !0)
|
|
1420
|
-
], 512)) : p("", !0),
|
|
1421
|
-
Ie.value && C.value && e.value.userOptions.buttons.table ? (u(), te(Et(ne.value.component), Ae({ key: 5 }, ne.value.props, {
|
|
1422
|
-
ref_key: "tableUnit",
|
|
1423
|
-
ref: se,
|
|
1424
|
-
onClose: qe
|
|
1425
|
-
}), lt({
|
|
1426
|
-
content: b(() => [
|
|
1427
|
-
(u(), te(n(yt), {
|
|
1428
|
-
key: `table_${je.value}`,
|
|
1429
|
-
colNames: he.value.colNames,
|
|
1430
|
-
head: he.value.head,
|
|
1431
|
-
body: he.value.body,
|
|
1432
|
-
config: he.value.config,
|
|
1433
|
-
title: e.value.table.useDialog ? "" : ne.value.title,
|
|
1434
|
-
withCloseButton: !e.value.table.useDialog,
|
|
1435
|
-
isCursorPointer: de.value,
|
|
1436
|
-
onClose: qe
|
|
1437
|
-
}, {
|
|
1438
|
-
th: b(({ th: t }) => [
|
|
1439
|
-
i("div", {
|
|
1440
|
-
innerHTML: t,
|
|
1441
|
-
style: { display: "flex", "align-items": "center" }
|
|
1442
|
-
}, null, 8, na)
|
|
1443
|
-
]),
|
|
1444
|
-
td: b(({ td: t }) => [
|
|
1445
|
-
rt(L(t.name || t), 1)
|
|
1446
|
-
]),
|
|
1447
|
-
_: 1
|
|
1448
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1449
|
-
]),
|
|
1450
|
-
_: 2
|
|
1451
|
-
}, [
|
|
1452
|
-
e.value.table.useDialog ? {
|
|
1453
|
-
name: "title",
|
|
1454
|
-
fn: b(() => [
|
|
1455
|
-
rt(L(ne.value.title), 1)
|
|
1456
|
-
]),
|
|
1457
|
-
key: "0"
|
|
1458
|
-
} : void 0,
|
|
1459
|
-
e.value.table.useDialog ? {
|
|
1460
|
-
name: "actions",
|
|
1461
|
-
fn: b(() => [
|
|
1462
|
-
i("button", {
|
|
1463
|
-
tabindex: "0",
|
|
1464
|
-
class: "vue-ui-user-options-button",
|
|
1465
|
-
onClick: a[7] || (a[7] = (t) => Pe(e.value.userOptions.callbacks.csv))
|
|
1466
|
-
}, [
|
|
1467
|
-
at(n(pt), {
|
|
1468
|
-
name: "fileCsv",
|
|
1469
|
-
stroke: ne.value.props.color
|
|
1470
|
-
}, null, 8, ["stroke"])
|
|
1471
|
-
])
|
|
1472
|
-
]),
|
|
1473
|
-
key: "1"
|
|
1474
|
-
} : void 0
|
|
1475
|
-
]), 1040)) : p("", !0),
|
|
1476
|
-
m(l.$slots, "skeleton", {}, () => [
|
|
1477
|
-
n(K) ? (u(), te(Qt, { key: 0 })) : p("", !0)
|
|
1478
|
-
], !0)
|
|
1479
|
-
], 44, io));
|
|
1480
|
-
}
|
|
1481
|
-
}, xa = /* @__PURE__ */ uo(ra, [["__scopeId", "data-v-2041df8b"]]);
|
|
1482
|
-
export {
|
|
1483
|
-
xa as default
|
|
1484
|
-
};
|