vue-data-ui 3.2.8 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, computed as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
1
|
+
import { defineAsyncComponent as H, computed as P, ref as _, toRefs as Pt, watch as we, onMounted as Dt, createElementBlock as v, openBlock as u, unref as n, normalizeStyle as z, normalizeClass as Ye, createBlock as Q, createCommentVNode as p, createSlots as Ke, withCtx as S, renderSlot as D, normalizeProps as de, guardReactiveProps as ce, createVNode as Je, createElementVNode as i, Fragment as C, renderList as M, toDisplayString as j, withKeys as Qe, withModifiers as et, mergeProps as Ce, resolveDynamicComponent as St, createTextVNode as tt, nextTick as lt } from "vue";
|
|
2
|
+
import { c as ot, t as At, b as Ot, p as ve, e as Bt, h as It, o as zt, f as he, g as Me, m as R, n as st, q as jt, d as B, X as Nt, s as $, r as X, a as fe, u as at, v as pe, w as G, x as Lt, y as Et } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as Wt, u as Rt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Gt, a as nt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Vt, B as Ut } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ht } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as Xt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Yt from "./img-J2dLIr8Y.js";
|
|
11
|
+
import Kt from "./Title-Camz1Lce.js";
|
|
12
|
+
import { t as Jt } from "./themes-Dw-dDudK.js";
|
|
13
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const el = ["id"], tl = ["xmlns", "viewBox"], ll = ["width", "height"], ol = ["id"], sl = ["stop-color"], al = ["stop-color"], nl = ["id"], rl = ["stop-color"], ul = ["stop-color"], il = ["id"], dl = ["stop-color"], cl = ["stop-color"], vl = ["id"], hl = ["stop-color"], fl = ["stop-color"], pl = ["id"], gl = ["stop-color"], yl = ["stop-color"], kl = ["stop-color"], $l = ["stop-color"], _l = ["stop-color"], ml = { key: 1 }, bl = ["id"], xl = ["stop-color"], wl = ["stop-color"], Cl = ["id"], Ml = ["stop-color"], Fl = ["stop-color"], Tl = ["id"], Pl = ["stop-color"], Dl = ["stop-color"], Sl = ["id"], Al = ["x", "y", "font-size", "font-weight", "fill"], Ol = ["x", "y"], Bl = ["cx", "cy", "stroke", "opacity"], Il = ["d", "stroke"], zl = ["d", "stroke"], jl = { key: 4 }, Nl = { key: 0 }, Ll = ["stroke-dasharray", "d", "stroke", "stroke-width"], El = ["stroke-dasharray", "d", "stroke", "stroke-width"], Wl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Rl = ["stroke-dasharray", "d", "stroke", "stroke-width"], Gl = { key: 1 }, Vl = ["d", "stroke", "stroke-width", "fill"], Ul = ["d", "stroke", "stroke-width", "fill"], Hl = ["d", "stroke", "stroke-width", "fill"], Xl = { key: 2 }, Zl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], ql = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Yl = ["d", "fill", "onMouseenter", "onClick", "onMouseout"], Kl = ["d", "onMouseenter", "onClick", "onMouseout"], Jl = ["d"], Ql = ["d", "stroke"], eo = ["onClick"], to = ["stroke", "d"], lo = ["cx", "cy", "fill", "stroke"], oo = ["x", "y", "width", "height"], so = ["x", "y", "width", "height"], ao = { key: 3 }, no = ["d", "stroke"], ro = ["d", "fill", "stroke"], uo = { key: 0 }, io = ["text-anchor", "x", "y", "fill", "font-size"], co = ["text-anchor", "x", "y", "fill", "font-size"], vo = { key: 4 }, ho = ["d", "fill", "stroke"], fo = { key: 5 }, po = { key: 0 }, go = ["stroke-dasharray", "d", "stroke", "stroke-width"], yo = ["stroke-dasharray", "d", "stroke", "stroke-width"], ko = ["stroke-dasharray", "d", "stroke", "stroke-width"], $o = ["stroke-dasharray", "d", "stroke", "stroke-width"], _o = ["d", "stroke", "stroke-width", "fill"], mo = ["d", "stroke", "stroke-width", "fill"], bo = ["d"], xo = { key: 1 }, wo = ["onClick"], Co = ["id"], Mo = ["stop-color"], Fo = ["stop-color"], To = ["id"], Po = ["stop-color"], Do = ["stop-color"], So = ["stop-color"], Ao = ["stop-color"], Oo = ["stop-color"], Bo = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], Io = ["onMouseenter", "onClick", "onMouseout", "d"], zo = ["onMouseenter", "onClick", "onMouseout", "d", "fill"], jo = ["onClick"], No = ["stroke", "d"], Lo = ["cx", "cy", "fill", "stroke"], Eo = ["x", "y", "width", "height"], Wo = ["x", "y", "width", "height"], Ro = { key: 3 }, Go = ["d", "stroke"], Vo = ["d", "fill", "stroke"], Uo = { key: 0 }, Ho = ["text-anchor", "x", "y", "fill", "font-size"], Xo = ["text-anchor", "x", "y", "fill", "font-size"], Zo = { key: 4 }, qo = ["d", "fill", "stroke"], Yo = {
|
|
14
15
|
key: 3,
|
|
15
16
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
17
|
+
}, Ko = ["innerHTML"], Jo = {
|
|
17
18
|
__name: "vue-ui-3d-bar",
|
|
18
19
|
props: {
|
|
19
20
|
config: {
|
|
@@ -30,14 +31,14 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
emits: ["selectDatapoint"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
...
|
|
34
|
+
setup(rt, { expose: ut, emit: it }) {
|
|
35
|
+
const dt = H(() => import("./BaseIcon-eZbszQrv.js")), ct = H(() => import("./vue-ui-accordion-VTP418mC.js")), vt = H(() => import("./DataTable-yAMEyP6y.js")), ht = H(() => import("./PenAndPaper-Bo-lMUik.js")), ft = H(() => import("./UserOptions-CSja1SGU.js")), pt = H(() => import("./PackageVersion-BfykJm_B.js")), gt = H(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_3d_bar: yt } = Gt(), O = rt, se = it, Fe = P(() => !!O.dataset && Object.keys(O.dataset).length), F = _(ot()), N = _(null), I = _(!1), Te = _(0), Pe = _(0), De = _(null), ee = _(null), ae = _(null), Se = _(null), te = _(!1), le = _(null), ge = _(null), e = _($e()), { loading: Z, FINAL_DATASET: A } = Vt({
|
|
36
|
+
...Pt(O),
|
|
36
37
|
FINAL_CONFIG: e,
|
|
37
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: $e,
|
|
38
39
|
callback: () => {
|
|
39
40
|
Promise.resolve().then(async () => {
|
|
40
|
-
await
|
|
41
|
+
await lt(), Le();
|
|
41
42
|
});
|
|
42
43
|
},
|
|
43
44
|
skeletonDataset: {
|
|
@@ -68,7 +69,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
68
69
|
}
|
|
69
70
|
]
|
|
70
71
|
},
|
|
71
|
-
skeletonConfig:
|
|
72
|
+
skeletonConfig: At({
|
|
72
73
|
defaultConfig: e.value,
|
|
73
74
|
userConfig: {
|
|
74
75
|
customPalette: ["#808080", "#ADADAD", "#DBDBDB"],
|
|
@@ -89,64 +90,64 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
})
|
|
92
|
-
}), { userOptionsVisible:
|
|
93
|
-
function
|
|
94
|
-
const a =
|
|
93
|
+
}), { userOptionsVisible: ye, setUserOptionsVisibility: Ae, keepUserOptionState: Oe } = Zt({ config: e.value }), { svgRef: ke } = qt({ config: e.value.style.chart.title });
|
|
94
|
+
function $e() {
|
|
95
|
+
const a = nt({
|
|
95
96
|
userConfig: O.config,
|
|
96
97
|
defaultConfig: yt
|
|
97
98
|
});
|
|
98
99
|
return a.theme ? {
|
|
99
|
-
...
|
|
100
|
-
userConfig:
|
|
100
|
+
...nt({
|
|
101
|
+
userConfig: Jt.vue_ui_3d_bar[a.theme] || O.config,
|
|
101
102
|
defaultConfig: a
|
|
102
103
|
}),
|
|
103
|
-
customPalette:
|
|
104
|
+
customPalette: Ot[a.theme] || ve
|
|
104
105
|
} : a;
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
-
Z.value || (e.value =
|
|
107
|
+
we(() => O.config, (a) => {
|
|
108
|
+
Z.value || (e.value = $e()), ye.value = !e.value.userOptions.showOnChartHover, Ee(), Te.value += 1, Pe.value += 1, V.value.showTable = e.value.table.show;
|
|
108
109
|
}, { deep: !0 });
|
|
109
|
-
const { isPrinting: Be, isImaging: Ie, generatePdf: ze, generateImage: je } =
|
|
110
|
+
const { isPrinting: Be, isImaging: Ie, generatePdf: ze, generateImage: je } = Ht({
|
|
110
111
|
elementId: `3d_bar_${F.value}`,
|
|
111
112
|
fileName: e.value.style.chart.title.text || "vue-ui-3d-bar",
|
|
112
113
|
options: e.value.userOptions.print
|
|
113
|
-
}), kt =
|
|
114
|
+
}), kt = P(() => Bt(e.value.customPalette)), V = _({
|
|
114
115
|
showTable: e.value.table.show
|
|
115
116
|
});
|
|
116
|
-
|
|
117
|
+
we(e, () => {
|
|
117
118
|
V.value = {
|
|
118
119
|
showTable: e.value.table.show
|
|
119
120
|
};
|
|
120
121
|
}, { immediate: !0 });
|
|
121
|
-
const x =
|
|
122
|
+
const x = P(() => A.value.series && A.value.series.length), _e = _(e.value.style.chart.box.dimensions.width * (x.value ? 2 : 1)), Ne = _(e.value.style.chart.box.dimensions.height), o = P(() => ({
|
|
122
123
|
height: Ne.value,
|
|
123
|
-
width:
|
|
124
|
-
absoluteWidth:
|
|
124
|
+
width: _e.value,
|
|
125
|
+
absoluteWidth: _e.value,
|
|
125
126
|
top: e.value.style.chart.box.dimensions.top,
|
|
126
127
|
bottom: e.value.style.chart.box.dimensions.bottom,
|
|
127
128
|
left: e.value.style.chart.box.dimensions.left,
|
|
128
129
|
right: e.value.style.chart.box.dimensions.right,
|
|
129
130
|
perspective: e.value.style.chart.box.dimensions.perspective
|
|
130
|
-
})), w =
|
|
131
|
+
})), w = P(() => {
|
|
131
132
|
if (x.value) {
|
|
132
|
-
const a =
|
|
133
|
+
const a = A.value.series.map((l) => l.value || 0).reduce((l, d) => l + d, 0), s = A.value.series.map((l, d) => ({
|
|
133
134
|
...l,
|
|
134
135
|
seriesIndex: d,
|
|
135
|
-
id:
|
|
136
|
+
id: ot(),
|
|
136
137
|
proportion: (l.value || 0) / a,
|
|
137
|
-
color:
|
|
138
|
-
breakdown: l.breakdown ? l.breakdown.sort((r,
|
|
138
|
+
color: It(l.color) || kt.value[d] || ve[d] || ve[d % ve.length],
|
|
139
|
+
breakdown: l.breakdown ? l.breakdown.sort((r, y) => y.value - r.value) : null
|
|
139
140
|
})).sort((l, d) => d.value - l.value), t = [];
|
|
140
|
-
let
|
|
141
|
+
let c = 0;
|
|
141
142
|
for (let l = 0; l < s.length; l += 1)
|
|
142
143
|
t.push({
|
|
143
144
|
...s[l],
|
|
144
|
-
fill:
|
|
145
|
-
}),
|
|
145
|
+
fill: $t(c, s[l].proportion, s[l].breakdown, s[l].color)
|
|
146
|
+
}), c += s[l].proportion;
|
|
146
147
|
return t;
|
|
147
148
|
}
|
|
148
149
|
return null;
|
|
149
|
-
}), L =
|
|
150
|
+
}), L = P(() => {
|
|
150
151
|
const a = o.value.width / 2;
|
|
151
152
|
return {
|
|
152
153
|
right: `M${a},${o.value.top} ${o.value.width - o.value.right}, ${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} ${a},${o.value.height - o.value.bottom}`,
|
|
@@ -158,25 +159,25 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
158
159
|
tubeRight: `M${o.value.width - o.value.right},${o.value.top + o.value.perspective} ${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective}`,
|
|
159
160
|
tubeBottom: `M${o.value.width - o.value.right},${o.value.height - o.value.bottom - o.value.perspective} C ${o.value.width - o.value.right},${o.value.height} ${o.value.left},${o.value.height} ${o.value.left},${o.value.height - o.value.bottom - o.value.perspective}`
|
|
160
161
|
};
|
|
161
|
-
}), q = _(e.value.style.chart.animation.use ? 0 :
|
|
162
|
+
}), q = _(e.value.style.chart.animation.use ? 0 : A.value.percentage);
|
|
162
163
|
function Le() {
|
|
163
164
|
let a = 0, s = e.value.style.chart.animation.speed, t = 5e-3 * e.value.style.chart.animation.acceleration;
|
|
164
|
-
function
|
|
165
|
-
q.value += s + a, a += t, q.value <
|
|
165
|
+
function c() {
|
|
166
|
+
q.value += s + a, a += t, q.value < A.value.percentage ? requestAnimationFrame(c) : q.value = A.value.percentage;
|
|
166
167
|
}
|
|
167
|
-
e.value.style.chart.animation.use && (q.value = 0,
|
|
168
|
+
e.value.style.chart.animation.use && (q.value = 0, c());
|
|
168
169
|
}
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
Dt(() => {
|
|
171
|
+
Ee(), Le();
|
|
171
172
|
});
|
|
172
|
-
const ne =
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
173
|
+
const ne = P(() => !!e.value.debug);
|
|
174
|
+
function Ee() {
|
|
175
|
+
if (zt(O.dataset) ? he({
|
|
175
176
|
componentName: "VueUi3dBar",
|
|
176
177
|
type: "dataset",
|
|
177
178
|
debug: ne.value
|
|
178
179
|
}) : O.dataset.series ? O.dataset.series.forEach((a, s) => {
|
|
179
|
-
|
|
180
|
+
Me({
|
|
180
181
|
datasetObject: a,
|
|
181
182
|
requiredAttributes: ["name", "value"]
|
|
182
183
|
}).forEach((t) => {
|
|
@@ -187,8 +188,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
187
188
|
index: s,
|
|
188
189
|
debug: ne.value
|
|
189
190
|
});
|
|
190
|
-
}), a.breakdown && a.breakdown.forEach((t,
|
|
191
|
-
|
|
191
|
+
}), a.breakdown && a.breakdown.forEach((t, c) => {
|
|
192
|
+
Me({
|
|
192
193
|
datasetObject: t,
|
|
193
194
|
requiredAttributes: ["name", "value"]
|
|
194
195
|
}).forEach((l) => {
|
|
@@ -196,12 +197,12 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
196
197
|
componentName: "VueUi3dBar",
|
|
197
198
|
type: "datasetSerieAttribute",
|
|
198
199
|
property: l,
|
|
199
|
-
index: `${s} - ${
|
|
200
|
+
index: `${s} - ${c}`,
|
|
200
201
|
debug: ne.value
|
|
201
202
|
});
|
|
202
203
|
});
|
|
203
204
|
});
|
|
204
|
-
}) :
|
|
205
|
+
}) : Me({
|
|
205
206
|
datasetObject: O.dataset,
|
|
206
207
|
requiredAttributes: ["percentage"]
|
|
207
208
|
}).forEach((a) => {
|
|
@@ -212,31 +213,31 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
212
213
|
debug: ne.value
|
|
213
214
|
});
|
|
214
215
|
}), e.value.responsive) {
|
|
215
|
-
const a =
|
|
216
|
-
const { width: s, height: t } =
|
|
216
|
+
const a = Wt(() => {
|
|
217
|
+
const { width: s, height: t } = Rt({
|
|
217
218
|
chart: N.value,
|
|
218
|
-
title: e.value.style.chart.title.text ?
|
|
219
|
-
source:
|
|
219
|
+
title: e.value.style.chart.title.text ? De.value : null,
|
|
220
|
+
source: Se.value
|
|
220
221
|
});
|
|
221
222
|
requestAnimationFrame(() => {
|
|
222
|
-
Ne.value = t - 12,
|
|
223
|
+
Ne.value = t - 12, _e.value = s;
|
|
223
224
|
});
|
|
224
225
|
});
|
|
225
226
|
ee.value && (ae.value && ee.value.unobserve(ae.value), ee.value.disconnect()), ee.value = new ResizeObserver(a), ae.value = N.value.parentNode, ee.value.observe(ae.value);
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
|
-
const Y =
|
|
229
|
-
function
|
|
230
|
-
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: d, height: r, bottom:
|
|
231
|
-
let
|
|
232
|
-
return
|
|
233
|
-
...
|
|
234
|
-
value:
|
|
235
|
-
color: R(
|
|
236
|
-
})),
|
|
229
|
+
const Y = P(() => o.value.width / 4);
|
|
230
|
+
function $t(a, s, t, c) {
|
|
231
|
+
const l = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: d, height: r, bottom: y, right: W, left: k, perspective: g } = o.value, f = x.value ? d / 4 : d / 2, b = f * 2 + k, h = y + l * a, xe = r - h - g - l * s / 2, Mt = xe > o.value.height / 2 ? "top" : "bottom", He = r * 0.25, Ft = !!t;
|
|
232
|
+
let Xe = null, Ze = null;
|
|
233
|
+
return Ft && (t = t.map((qe, Tt) => ({
|
|
234
|
+
...qe,
|
|
235
|
+
value: qe.value || 0,
|
|
236
|
+
color: R(c, Tt / t.length)
|
|
237
|
+
})), Xe = st(
|
|
237
238
|
{ series: t },
|
|
238
239
|
d / 2 + d / 5,
|
|
239
|
-
|
|
240
|
+
Mt === "top" ? xe - He : xe + He,
|
|
240
241
|
d / 10,
|
|
241
242
|
d / 10,
|
|
242
243
|
1.99999,
|
|
@@ -245,10 +246,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
245
246
|
360,
|
|
246
247
|
105.25,
|
|
247
248
|
d / 20
|
|
248
|
-
),
|
|
249
|
+
), Ze = st(
|
|
249
250
|
{ series: t },
|
|
250
251
|
d - b + d / 14,
|
|
251
|
-
r - h -
|
|
252
|
+
r - h - g - l * s / 2,
|
|
252
253
|
d / 40,
|
|
253
254
|
d / 40,
|
|
254
255
|
1.99999,
|
|
@@ -258,56 +259,56 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
258
259
|
105.25,
|
|
259
260
|
d / 40
|
|
260
261
|
)), {
|
|
261
|
-
donut:
|
|
262
|
-
miniDonut:
|
|
262
|
+
donut: Xe,
|
|
263
|
+
miniDonut: Ze,
|
|
263
264
|
donutR: d / 20,
|
|
264
265
|
CENTER_X: f,
|
|
265
266
|
sidePointer: {
|
|
266
267
|
x: d - b,
|
|
267
268
|
x2: d - b + d / 14,
|
|
268
269
|
xText: d - b + d / 9,
|
|
269
|
-
y: r - h -
|
|
270
|
-
topY: r - h -
|
|
270
|
+
y: r - h - g - l * s / 2,
|
|
271
|
+
topY: r - h - g - l * s,
|
|
271
272
|
height: l * s
|
|
272
273
|
},
|
|
273
274
|
apexBottom: { y: r - h, x: f },
|
|
274
275
|
apexTop: { y: r - h - l * s, x: f },
|
|
275
|
-
right: `M${f},${r - h} ${f},${r - h - l * s} ${d - b},${r - h -
|
|
276
|
-
left: `M${f},${r - h} ${f},${r - h - l * s} ${
|
|
277
|
-
liningTop: `M${
|
|
278
|
-
liningTopShade: `M${
|
|
279
|
-
top: `M${f},${r - h - l * s} ${
|
|
280
|
-
tubeTop: `M${
|
|
281
|
-
bottomTubeTop: `M ${d - b - 0.5},${r - h -
|
|
276
|
+
right: `M${f},${r - h} ${f},${r - h - l * s} ${d - b},${r - h - g - l * s} ${d - b},${r - h - g}Z`,
|
|
277
|
+
left: `M${f},${r - h} ${f},${r - h - l * s} ${k}, ${r - h - g - l * s} ${k},${r - h - g}Z`,
|
|
278
|
+
liningTop: `M${k},${r - h - g - l * s} ${f},${r - h - l * s} ${d - b},${r - h - g - l * s}`,
|
|
279
|
+
liningTopShade: `M${k},${r - h - g - l * s - 0.5} ${f},${r - h - l * s - 0.5} ${d - b},${r - h - g - l * s - 0.5}`,
|
|
280
|
+
top: `M${f},${r - h - l * s} ${k},${r - h - g - l * s} ${f},${r - h - g * 2 - l * s} ${d - b},${r - h - g - l * s} Z`,
|
|
281
|
+
tubeTop: `M${k},${r - h - l * s - g} C ${k},${r - h - l * s - g * 2.5} ${d - b},${r - h - l * s - g * 2.5} ${d - b},${r - h - l * s - g} C ${d - b},${r - h - l * s + g / 2} ${k},${r - h - l * s + g / 2} ${k},${r - h - l * s - g}`,
|
|
282
|
+
bottomTubeTop: `M ${d - b - 0.5},${r - h - g} C ${d - b - 0.5},${r - h + g / 2} ${k},${r - h + g / 2} ${k + 0.5},${r - h - g}`,
|
|
282
283
|
tubeBody: `M
|
|
283
|
-
${
|
|
284
|
-
C ${
|
|
285
|
-
${d - b},${r - h - l * s +
|
|
286
|
-
${d - b},${r - h - l * s -
|
|
287
|
-
L${d - b},${r - h -
|
|
284
|
+
${k},${r - h - l * s - g}
|
|
285
|
+
C ${k},${r - h - l * s + g / 2}
|
|
286
|
+
${d - b},${r - h - l * s + g / 2}
|
|
287
|
+
${d - b},${r - h - l * s - g}
|
|
288
|
+
L${d - b},${r - h - g}
|
|
288
289
|
C
|
|
289
|
-
${d - b},${r - h +
|
|
290
|
-
${
|
|
291
|
-
${
|
|
290
|
+
${d - b},${r - h + g / 2}
|
|
291
|
+
${k},${r - h + g / 2}
|
|
292
|
+
${k},${r - h - g}Z`
|
|
292
293
|
};
|
|
293
294
|
}
|
|
294
|
-
const K =
|
|
295
|
-
const a =
|
|
295
|
+
const K = P(() => {
|
|
296
|
+
const a = jt(q.value / 100), s = o.value.height - o.value.bottom - o.value.top - o.value.perspective * 2, { width: t, height: c, bottom: l, right: d, left: r, perspective: y } = o.value, W = x.value ? t / 4 : t / 2, k = x.value ? W * 2 + r : d, f = l + s * 0;
|
|
296
297
|
return {
|
|
297
|
-
right: `M${
|
|
298
|
-
left: `M${
|
|
299
|
-
top: `M${
|
|
300
|
-
tubeTop: `M${r},${
|
|
298
|
+
right: `M${W},${c - f} ${W},${c - f - s * a} ${t - k},${c - f - y - s * a} ${t - k},${c - f - y}Z`,
|
|
299
|
+
left: `M${W},${c - f} ${W},${c - f - s * a} ${r}, ${c - f - y - s * a} ${r},${c - f - y}Z`,
|
|
300
|
+
top: `M${W},${c - f - s * a} ${r},${c - f - y - s * a} ${W},${c - f - y * 2 - s * a} ${t - k},${c - f - y - s * a} Z`,
|
|
301
|
+
tubeTop: `M${r},${c - f - s * a - y} C ${r},${c - f - s * a - y * 2.5} ${t - k},${c - f - s * a - y * 2.5} ${t - k},${c - f - s * a - y} C ${t - k},${c - f - s * a + y / 2} ${r},${c - f - s * a + y / 2} ${r},${c - f - s * a - y}`,
|
|
301
302
|
tubeBody: `M
|
|
302
|
-
${r},${
|
|
303
|
-
C ${r},${
|
|
304
|
-
${t -
|
|
305
|
-
${t -
|
|
306
|
-
L${t -
|
|
303
|
+
${r},${c - f - s * a - y}
|
|
304
|
+
C ${r},${c - f - s * a + y / 2}
|
|
305
|
+
${t - k},${c - f - s * a + y / 2}
|
|
306
|
+
${t - k},${c - f - s * a - y}
|
|
307
|
+
L${t - k},${c - y * 1.5}
|
|
307
308
|
C
|
|
308
|
-
${t -
|
|
309
|
-
${r},${
|
|
310
|
-
${r},${
|
|
309
|
+
${t - k},${c}
|
|
310
|
+
${r},${c}
|
|
311
|
+
${r},${c - f - y}Z`
|
|
311
312
|
};
|
|
312
313
|
}), m = _(null);
|
|
313
314
|
function T(a, s = !1) {
|
|
@@ -317,64 +318,64 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
317
318
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.seriesIndex }), !I.value && (m.value = null);
|
|
318
319
|
}
|
|
319
320
|
function J(a, s, t = !1) {
|
|
320
|
-
const
|
|
321
|
+
const c = A.value.series.map((r) => r.value || 0).reduce((r, y) => r + y, 0), l = isNaN(a.value / c) ? 0 : a.value / c * 100, d = isNaN(a.value / We(s)) ? 0 : a.value / We(s) * 100;
|
|
321
322
|
return t ? d : l.toFixed(0) + "%";
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function We(a) {
|
|
324
325
|
return [...a].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
325
326
|
}
|
|
326
327
|
const re = _(!1);
|
|
327
328
|
function Re(a) {
|
|
328
329
|
re.value = a;
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
-
return x.value ? w.value :
|
|
331
|
+
function _t() {
|
|
332
|
+
return x.value ? w.value : A.value.percentage;
|
|
332
333
|
}
|
|
333
|
-
const
|
|
334
|
+
const E = P(() => {
|
|
334
335
|
if (x.value) {
|
|
335
|
-
const a = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((
|
|
336
|
-
name:
|
|
336
|
+
const a = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [{ name: t.name, color: t.color }, ...t.breakdown.map((c, l) => ({
|
|
337
|
+
name: c.name,
|
|
337
338
|
color: R(t.color, l / t.breakdown.length)
|
|
338
339
|
}))] : {
|
|
339
340
|
name: t.name,
|
|
340
341
|
color: t.color
|
|
341
|
-
}), s = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((
|
|
342
|
+
}), s = w.value.flatMap((t) => t.breakdown && t.breakdown.length ? [t.value, ...t.breakdown.map((c) => c.value)] : t.value);
|
|
342
343
|
return { head: a, body: s };
|
|
343
344
|
} else
|
|
344
345
|
return null;
|
|
345
346
|
});
|
|
346
|
-
function
|
|
347
|
+
function me(a = null) {
|
|
347
348
|
if (!x.value) {
|
|
348
349
|
console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
|
|
349
350
|
return;
|
|
350
351
|
}
|
|
351
|
-
|
|
352
|
-
const s = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), t =
|
|
352
|
+
lt(() => {
|
|
353
|
+
const s = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), t = E.value.head.map((d, r) => [[
|
|
353
354
|
d.name
|
|
354
|
-
], [
|
|
355
|
-
a ? a(l) :
|
|
355
|
+
], [E.value.body[r]], [isNaN(E.value.body[r] / s) ? "-" : E.value.body[r] / s * 100]]), c = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Lt(c);
|
|
356
|
+
a ? a(l) : Et({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-3d-bar" });
|
|
356
357
|
});
|
|
357
358
|
}
|
|
358
|
-
const ue =
|
|
359
|
+
const ue = P(() => {
|
|
359
360
|
const a = w.value.map((d) => d.value).reduce((d, r) => d + r, 0), s = [
|
|
360
361
|
' <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>',
|
|
361
362
|
B({ p: e.value.style.chart.legend.prefix, v: a, s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue }),
|
|
362
363
|
"100%"
|
|
363
|
-
], t =
|
|
364
|
-
const
|
|
364
|
+
], t = E.value.head.map((d, r) => {
|
|
365
|
+
const y = B({ p: e.value.style.chart.legend.prefix, v: E.value.body[r], s: e.value.style.chart.legend.suffix, r: e.value.table.td.roundingValue });
|
|
365
366
|
return [
|
|
366
367
|
{
|
|
367
368
|
color: d.color,
|
|
368
369
|
name: d.name
|
|
369
370
|
},
|
|
370
|
-
|
|
371
|
-
isNaN(
|
|
372
|
-
v:
|
|
371
|
+
y,
|
|
372
|
+
isNaN(E.value.body[r] / a) ? "-" : B({
|
|
373
|
+
v: E.value.body[r] / a * 100,
|
|
373
374
|
s: "%",
|
|
374
375
|
r: e.value.table.td.roundingPercentage
|
|
375
376
|
})
|
|
376
377
|
];
|
|
377
|
-
}),
|
|
378
|
+
}), c = {
|
|
378
379
|
th: {
|
|
379
380
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
380
381
|
color: e.value.table.th.color,
|
|
@@ -396,32 +397,32 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
396
397
|
],
|
|
397
398
|
head: s,
|
|
398
399
|
body: t,
|
|
399
|
-
config:
|
|
400
|
+
config: c
|
|
400
401
|
};
|
|
401
402
|
});
|
|
402
403
|
function Ge() {
|
|
403
404
|
V.value.showTable = !V.value.showTable;
|
|
404
405
|
}
|
|
405
406
|
const ie = _(!1);
|
|
406
|
-
function
|
|
407
|
+
function be() {
|
|
407
408
|
ie.value = !ie.value;
|
|
408
409
|
}
|
|
409
|
-
async function
|
|
410
|
+
async function mt({ scale: a = 2 } = {}) {
|
|
410
411
|
if (!N.value) return;
|
|
411
|
-
const { width: s, height: t } = N.value.getBoundingClientRect(),
|
|
412
|
+
const { width: s, height: t } = N.value.getBoundingClientRect(), c = s / t, { imageUri: l, base64: d } = await Yt({ domElement: N.value, base64: !0, img: !0, scale: a });
|
|
412
413
|
return {
|
|
413
414
|
imageUri: l,
|
|
414
415
|
base64: d,
|
|
415
416
|
title: e.value.style.chart.title.text,
|
|
416
417
|
width: s,
|
|
417
418
|
height: t,
|
|
418
|
-
aspectRatio:
|
|
419
|
+
aspectRatio: c
|
|
419
420
|
};
|
|
420
421
|
}
|
|
421
|
-
const oe =
|
|
422
|
+
const oe = P(() => {
|
|
422
423
|
const a = e.value.table.useDialog && !e.value.table.show, s = V.value.showTable;
|
|
423
424
|
return {
|
|
424
|
-
component: a ?
|
|
425
|
+
component: a ? gt : ct,
|
|
425
426
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
426
427
|
props: a ? {
|
|
427
428
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -448,46 +449,59 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
448
449
|
}
|
|
449
450
|
};
|
|
450
451
|
});
|
|
451
|
-
|
|
452
|
+
we(() => V.value.showTable, (a) => {
|
|
452
453
|
e.value.table.show || (a && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
453
454
|
});
|
|
454
455
|
function Ve() {
|
|
455
|
-
V.value.showTable = !1,
|
|
456
|
+
V.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
|
|
456
457
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
const bt = P(() => e.value.style.chart.backgroundColor), xt = P(() => e.value.style.chart.title), { exportSvg: wt, getSvg: Ct } = Xt({
|
|
459
|
+
svg: ke,
|
|
460
|
+
title: xt,
|
|
461
|
+
backgroundColor: bt
|
|
462
|
+
});
|
|
463
|
+
async function Ue({ isCb: a }) {
|
|
464
|
+
if (a) {
|
|
465
|
+
const { blob: s, url: t, text: c, dataUrl: l } = await Ct();
|
|
466
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: t, text: c, dataUrl: l });
|
|
467
|
+
} else
|
|
468
|
+
wt();
|
|
469
|
+
}
|
|
470
|
+
return ut({
|
|
471
|
+
getImage: mt,
|
|
472
|
+
generateCsv: me,
|
|
460
473
|
generatePdf: ze,
|
|
461
474
|
generateImage: je,
|
|
462
|
-
|
|
475
|
+
generateSvg: Ue,
|
|
476
|
+
getData: _t,
|
|
463
477
|
toggleTable: Ge,
|
|
464
|
-
toggleAnnotator:
|
|
478
|
+
toggleAnnotator: be,
|
|
465
479
|
toggleFullscreen: Re
|
|
466
|
-
}), (a, s) => (u(),
|
|
480
|
+
}), (a, s) => (u(), v("div", {
|
|
467
481
|
ref_key: "bar3dChart",
|
|
468
482
|
ref: N,
|
|
469
|
-
class:
|
|
483
|
+
class: Ye("vue-data-ui-component vue-ui-3d-bar"),
|
|
470
484
|
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
471
485
|
id: `3d_bar_${F.value}`,
|
|
472
486
|
onMouseenter: s[8] || (s[8] = () => n(Ae)(!0)),
|
|
473
487
|
onMouseleave: s[9] || (s[9] = () => n(Ae)(!1))
|
|
474
488
|
}, [
|
|
475
|
-
e.value.userOptions.buttons.annotator ? (u(), Q(n(
|
|
489
|
+
e.value.userOptions.buttons.annotator ? (u(), Q(n(ht), {
|
|
476
490
|
key: 0,
|
|
477
|
-
svgRef: n(
|
|
491
|
+
svgRef: n(ke),
|
|
478
492
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
479
493
|
color: e.value.style.chart.color,
|
|
480
494
|
active: ie.value,
|
|
481
|
-
onClose:
|
|
495
|
+
onClose: be
|
|
482
496
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
483
|
-
e.value.style.chart.title.text ? (u(),
|
|
497
|
+
e.value.style.chart.title.text ? (u(), v("div", {
|
|
484
498
|
key: 1,
|
|
485
499
|
ref_key: "chartTitle",
|
|
486
|
-
ref:
|
|
500
|
+
ref: De,
|
|
487
501
|
style: "width:100%;background:transparent"
|
|
488
502
|
}, [
|
|
489
|
-
(u(), Q(
|
|
490
|
-
key: `title_${
|
|
503
|
+
(u(), Q(Kt, {
|
|
504
|
+
key: `title_${Te.value}`,
|
|
491
505
|
config: {
|
|
492
506
|
title: {
|
|
493
507
|
cy: "3dBar-div-title",
|
|
@@ -500,10 +514,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
500
514
|
}
|
|
501
515
|
}, null, 8, ["config"]))
|
|
502
516
|
], 512)) : p("", !0),
|
|
503
|
-
e.value.userOptions.show &&
|
|
517
|
+
e.value.userOptions.show && Fe.value && (n(Oe) || n(ye)) ? (u(), Q(n(ft), {
|
|
504
518
|
key: 2,
|
|
505
519
|
ref_key: "userOptionsRef",
|
|
506
|
-
ref:
|
|
520
|
+
ref: ge,
|
|
507
521
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
508
522
|
color: e.value.style.chart.color,
|
|
509
523
|
isPrinting: n(Be),
|
|
@@ -513,6 +527,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
513
527
|
hasTable: !!x.value && e.value.userOptions.buttons.table,
|
|
514
528
|
hasXls: !!x.value && e.value.userOptions.buttons.csv,
|
|
515
529
|
hasImg: e.value.userOptions.buttons.img,
|
|
530
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
516
531
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
517
532
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
518
533
|
chartElement: N.value,
|
|
@@ -524,74 +539,75 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
524
539
|
tableDialog: e.value.table.useDialog,
|
|
525
540
|
onToggleFullscreen: Re,
|
|
526
541
|
onGeneratePdf: n(ze),
|
|
527
|
-
onGenerateCsv:
|
|
542
|
+
onGenerateCsv: me,
|
|
528
543
|
onGenerateImage: n(je),
|
|
544
|
+
onGenerateSvg: Ue,
|
|
529
545
|
onToggleTable: Ge,
|
|
530
|
-
onToggleAnnotator:
|
|
546
|
+
onToggleAnnotator: be,
|
|
531
547
|
style: z({
|
|
532
|
-
visibility: n(
|
|
548
|
+
visibility: n(Oe) ? n(ye) ? "visible" : "hidden" : "visible"
|
|
533
549
|
})
|
|
534
|
-
},
|
|
550
|
+
}, Ke({ _: 2 }, [
|
|
535
551
|
a.$slots.menuIcon ? {
|
|
536
552
|
name: "menuIcon",
|
|
537
|
-
fn:
|
|
538
|
-
|
|
553
|
+
fn: S(({ isOpen: t, color: c }) => [
|
|
554
|
+
D(a.$slots, "menuIcon", de(ce({ isOpen: t, color: c })), void 0, !0)
|
|
539
555
|
]),
|
|
540
556
|
key: "0"
|
|
541
557
|
} : void 0,
|
|
542
558
|
a.$slots.optionPdf ? {
|
|
543
559
|
name: "optionPdf",
|
|
544
|
-
fn:
|
|
545
|
-
|
|
560
|
+
fn: S(() => [
|
|
561
|
+
D(a.$slots, "optionPdf", {}, void 0, !0)
|
|
546
562
|
]),
|
|
547
563
|
key: "1"
|
|
548
564
|
} : void 0,
|
|
549
565
|
a.$slots.optionCsv ? {
|
|
550
566
|
name: "optionCsv",
|
|
551
|
-
fn:
|
|
552
|
-
|
|
567
|
+
fn: S(() => [
|
|
568
|
+
D(a.$slots, "optionCsv", {}, void 0, !0)
|
|
553
569
|
]),
|
|
554
570
|
key: "2"
|
|
555
571
|
} : void 0,
|
|
556
572
|
a.$slots.optionImg ? {
|
|
557
573
|
name: "optionImg",
|
|
558
|
-
fn:
|
|
559
|
-
|
|
574
|
+
fn: S(() => [
|
|
575
|
+
D(a.$slots, "optionImg", {}, void 0, !0)
|
|
560
576
|
]),
|
|
561
577
|
key: "3"
|
|
562
578
|
} : void 0,
|
|
563
579
|
a.$slots.optionTable ? {
|
|
564
580
|
name: "optionTable",
|
|
565
|
-
fn:
|
|
566
|
-
|
|
581
|
+
fn: S(() => [
|
|
582
|
+
D(a.$slots, "optionTable", {}, void 0, !0)
|
|
567
583
|
]),
|
|
568
584
|
key: "4"
|
|
569
585
|
} : void 0,
|
|
570
586
|
a.$slots.optionFullscreen ? {
|
|
571
587
|
name: "optionFullscreen",
|
|
572
|
-
fn:
|
|
573
|
-
|
|
588
|
+
fn: S(({ toggleFullscreen: t, isFullscreen: c }) => [
|
|
589
|
+
D(a.$slots, "optionFullscreen", de(ce({ toggleFullscreen: t, isFullscreen: c })), void 0, !0)
|
|
574
590
|
]),
|
|
575
591
|
key: "5"
|
|
576
592
|
} : void 0,
|
|
577
593
|
a.$slots.optionAnnotator ? {
|
|
578
594
|
name: "optionAnnotator",
|
|
579
|
-
fn:
|
|
580
|
-
|
|
595
|
+
fn: S(({ toggleAnnotator: t, isAnnotator: c }) => [
|
|
596
|
+
D(a.$slots, "optionAnnotator", de(ce({ toggleAnnotator: t, isAnnotator: c })), void 0, !0)
|
|
581
597
|
]),
|
|
582
598
|
key: "6"
|
|
583
599
|
} : void 0
|
|
584
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
585
|
-
(u(),
|
|
600
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasTable", "hasXls", "hasImg", "hasSvg", "hasFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
601
|
+
(u(), v("svg", {
|
|
586
602
|
ref_key: "svgRef",
|
|
587
|
-
ref:
|
|
588
|
-
xmlns: n(
|
|
589
|
-
class:
|
|
603
|
+
ref: ke,
|
|
604
|
+
xmlns: n(Nt),
|
|
605
|
+
class: Ye({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
590
606
|
viewBox: `0 0 ${o.value.absoluteWidth} ${o.value.height}`,
|
|
591
607
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
592
608
|
}, [
|
|
593
|
-
|
|
594
|
-
a.$slots["chart-background"] ? (u(),
|
|
609
|
+
Je(n(pt)),
|
|
610
|
+
a.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
595
611
|
key: 0,
|
|
596
612
|
x: 0,
|
|
597
613
|
y: 0,
|
|
@@ -601,8 +617,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
601
617
|
pointerEvents: "none"
|
|
602
618
|
}
|
|
603
619
|
}, [
|
|
604
|
-
|
|
605
|
-
], 8,
|
|
620
|
+
D(a.$slots, "chart-background", {}, void 0, !0)
|
|
621
|
+
], 8, ll)) : p("", !0),
|
|
606
622
|
i("defs", null, [
|
|
607
623
|
i("radialGradient", {
|
|
608
624
|
id: `gradient_top${F.value}`
|
|
@@ -610,48 +626,48 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
610
626
|
i("stop", {
|
|
611
627
|
offset: "0%",
|
|
612
628
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
613
|
-
}, null, 8,
|
|
629
|
+
}, null, 8, sl),
|
|
614
630
|
i("stop", {
|
|
615
631
|
offset: "100%",
|
|
616
632
|
"stop-color": e.value.style.chart.bar.color
|
|
617
|
-
}, null, 8,
|
|
618
|
-
], 8,
|
|
633
|
+
}, null, 8, al)
|
|
634
|
+
], 8, ol),
|
|
619
635
|
i("radialGradient", {
|
|
620
636
|
id: `gradient_tube_top${F.value}`
|
|
621
637
|
}, [
|
|
622
638
|
i("stop", {
|
|
623
639
|
offset: "0%",
|
|
624
640
|
"stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.5), 80)
|
|
625
|
-
}, null, 8,
|
|
641
|
+
}, null, 8, rl),
|
|
626
642
|
i("stop", {
|
|
627
643
|
offset: "100%",
|
|
628
644
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.1), 80)
|
|
629
|
-
}, null, 8,
|
|
630
|
-
], 8,
|
|
645
|
+
}, null, 8, ul)
|
|
646
|
+
], 8, nl),
|
|
631
647
|
i("radialGradient", {
|
|
632
648
|
id: `gradient_left${F.value}`
|
|
633
649
|
}, [
|
|
634
650
|
i("stop", {
|
|
635
651
|
offset: "0%",
|
|
636
652
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
637
|
-
}, null, 8,
|
|
653
|
+
}, null, 8, dl),
|
|
638
654
|
i("stop", {
|
|
639
655
|
offset: "100%",
|
|
640
656
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
641
|
-
}, null, 8,
|
|
642
|
-
], 8,
|
|
657
|
+
}, null, 8, cl)
|
|
658
|
+
], 8, il),
|
|
643
659
|
i("radialGradient", {
|
|
644
660
|
id: `gradient_right${F.value}`
|
|
645
661
|
}, [
|
|
646
662
|
i("stop", {
|
|
647
663
|
offset: "0%",
|
|
648
664
|
"stop-color": n($)(e.value.style.chart.backgroundColor, 0)
|
|
649
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, hl),
|
|
650
666
|
i("stop", {
|
|
651
667
|
offset: "100%",
|
|
652
668
|
"stop-color": n($)(e.value.style.chart.bar.color, 20)
|
|
653
|
-
}, null, 8,
|
|
654
|
-
], 8,
|
|
669
|
+
}, null, 8, fl)
|
|
670
|
+
], 8, vl),
|
|
655
671
|
i("linearGradient", {
|
|
656
672
|
id: `gradient_tube_body${F.value}`,
|
|
657
673
|
x1: "0%",
|
|
@@ -662,62 +678,62 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
662
678
|
i("stop", {
|
|
663
679
|
offset: "0%",
|
|
664
680
|
"stop-color": `${e.value.style.chart.bar.color}`
|
|
665
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, gl),
|
|
666
682
|
i("stop", {
|
|
667
683
|
offset: "10%",
|
|
668
684
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.7), 100)
|
|
669
|
-
}, null, 8,
|
|
685
|
+
}, null, 8, yl),
|
|
670
686
|
i("stop", {
|
|
671
687
|
offset: "25%",
|
|
672
688
|
"stop-color": n($)(n(X)(e.value.style.chart.bar.color, 0.5), 100)
|
|
673
|
-
}, null, 8,
|
|
689
|
+
}, null, 8, kl),
|
|
674
690
|
i("stop", {
|
|
675
691
|
offset: "75%",
|
|
676
692
|
"stop-color": n($)(e.value.style.chart.bar.color, 80)
|
|
677
|
-
}, null, 8,
|
|
693
|
+
}, null, 8, $l),
|
|
678
694
|
i("stop", {
|
|
679
695
|
offset: "100%",
|
|
680
696
|
"stop-color": n($)(n(R)(e.value.style.chart.bar.color, 0.7), 100)
|
|
681
|
-
}, null, 8,
|
|
682
|
-
], 8,
|
|
697
|
+
}, null, 8, _l)
|
|
698
|
+
], 8, pl)
|
|
683
699
|
]),
|
|
684
|
-
x.value ? (u(),
|
|
685
|
-
(u(!0),
|
|
700
|
+
x.value ? (u(), v("defs", ml, [
|
|
701
|
+
(u(!0), v(C, null, M(w.value, (t) => (u(), v("radialGradient", {
|
|
686
702
|
id: `grad_top_${t.id}`
|
|
687
703
|
}, [
|
|
688
704
|
i("stop", {
|
|
689
705
|
offset: "0%",
|
|
690
706
|
"stop-color": n($)(n(R)(t.color, 0.5), 80)
|
|
691
|
-
}, null, 8,
|
|
707
|
+
}, null, 8, xl),
|
|
692
708
|
i("stop", {
|
|
693
709
|
offset: "100%",
|
|
694
710
|
"stop-color": t.color
|
|
695
|
-
}, null, 8,
|
|
696
|
-
], 8,
|
|
697
|
-
(u(!0),
|
|
711
|
+
}, null, 8, wl)
|
|
712
|
+
], 8, bl))), 256)),
|
|
713
|
+
(u(!0), v(C, null, M(w.value, (t) => (u(), v("linearGradient", {
|
|
698
714
|
id: `grad_left_${t.id}`
|
|
699
715
|
}, [
|
|
700
716
|
i("stop", {
|
|
701
717
|
offset: "0%",
|
|
702
718
|
"stop-color": n($)(t.color, 80)
|
|
703
|
-
}, null, 8,
|
|
719
|
+
}, null, 8, Ml),
|
|
704
720
|
i("stop", {
|
|
705
721
|
offset: "100%",
|
|
706
722
|
"stop-color": n($)(n(X)(t.color, 0.5), 100)
|
|
707
|
-
}, null, 8,
|
|
708
|
-
], 8,
|
|
709
|
-
(u(!0),
|
|
723
|
+
}, null, 8, Fl)
|
|
724
|
+
], 8, Cl))), 256)),
|
|
725
|
+
(u(!0), v(C, null, M(w.value, (t) => (u(), v("linearGradient", {
|
|
710
726
|
id: `grad_right_${t.id}`
|
|
711
727
|
}, [
|
|
712
728
|
i("stop", {
|
|
713
729
|
offset: "2%",
|
|
714
730
|
"stop-color": n($)(n(R)(t.color, 0.5), 100)
|
|
715
|
-
}, null, 8,
|
|
731
|
+
}, null, 8, Pl),
|
|
716
732
|
i("stop", {
|
|
717
733
|
offset: "100%",
|
|
718
734
|
"stop-color": n($)(t.color, 80)
|
|
719
|
-
}, null, 8,
|
|
720
|
-
], 8,
|
|
735
|
+
}, null, 8, Dl)
|
|
736
|
+
], 8, Tl))), 256)),
|
|
721
737
|
i("linearGradient", {
|
|
722
738
|
x1: "0%",
|
|
723
739
|
y1: "0%",
|
|
@@ -733,9 +749,9 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
733
749
|
offset: "100%",
|
|
734
750
|
"stop-color": "#FFFFFF33"
|
|
735
751
|
}, null, -1)
|
|
736
|
-
])], 8,
|
|
752
|
+
])], 8, Sl)
|
|
737
753
|
])) : p("", !0),
|
|
738
|
-
e.value.style.chart.dataLabel.show && ![null, void 0].includes(n(
|
|
754
|
+
e.value.style.chart.dataLabel.show && ![null, void 0].includes(n(A).percentage) && [null, void 0].includes(n(A).series) ? (u(), v("text", {
|
|
739
755
|
key: 2,
|
|
740
756
|
x: o.value.width / 2,
|
|
741
757
|
y: o.value.top - e.value.style.chart.dataLabel.fontSize / 2,
|
|
@@ -747,8 +763,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
747
763
|
v: q.value,
|
|
748
764
|
s: "%",
|
|
749
765
|
r: e.value.style.chart.dataLabel.rounding
|
|
750
|
-
})), 9,
|
|
751
|
-
I.value ? (u(),
|
|
766
|
+
})), 9, Al)) : p("", !0),
|
|
767
|
+
I.value ? (u(), v("g", {
|
|
752
768
|
key: 3,
|
|
753
769
|
role: "button",
|
|
754
770
|
tabindex: "0",
|
|
@@ -757,10 +773,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
757
773
|
I.value = !1, m.value = null;
|
|
758
774
|
}),
|
|
759
775
|
onKeydown: [
|
|
760
|
-
s[1] || (s[1] =
|
|
776
|
+
s[1] || (s[1] = Qe(et((t) => {
|
|
761
777
|
I.value = !1, m.value = null;
|
|
762
778
|
}, ["prevent"]), ["enter"])),
|
|
763
|
-
s[2] || (s[2] =
|
|
779
|
+
s[2] || (s[2] = Qe(et((t) => {
|
|
764
780
|
I.value = !1, m.value = null;
|
|
765
781
|
}, ["prevent"]), ["space"]))
|
|
766
782
|
],
|
|
@@ -780,7 +796,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
780
796
|
height: 24,
|
|
781
797
|
fill: "transparent",
|
|
782
798
|
"pointer-events": "all"
|
|
783
|
-
}, null, 8,
|
|
799
|
+
}, null, 8, Ol),
|
|
784
800
|
i("circle", {
|
|
785
801
|
cx: Y.value,
|
|
786
802
|
cy: o.value.top - 12,
|
|
@@ -790,24 +806,24 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
790
806
|
"stroke-width": "2",
|
|
791
807
|
"vector-effect": "non-scaling-stroke",
|
|
792
808
|
opacity: te.value ? 0.5 : 0
|
|
793
|
-
}, null, 8,
|
|
809
|
+
}, null, 8, Bl),
|
|
794
810
|
i("path", {
|
|
795
811
|
d: `M${Y.value - 6},${o.value.top - 18} ${Y.value + 6},${o.value.top - 6}`,
|
|
796
812
|
stroke: e.value.style.chart.color,
|
|
797
813
|
"stroke-linecap": "round",
|
|
798
814
|
"stroke-width": "2",
|
|
799
815
|
"vector-effect": "non-scaling-stroke"
|
|
800
|
-
}, null, 8,
|
|
816
|
+
}, null, 8, Il),
|
|
801
817
|
i("path", {
|
|
802
818
|
d: `M${Y.value + 6},${o.value.top - 18} ${Y.value - 6},${o.value.top - 6}`,
|
|
803
819
|
stroke: e.value.style.chart.color,
|
|
804
820
|
"stroke-linecap": "round",
|
|
805
821
|
"stroke-width": "2",
|
|
806
822
|
"vector-effect": "non-scaling-stroke"
|
|
807
|
-
}, null, 8,
|
|
823
|
+
}, null, 8, zl)
|
|
808
824
|
], 32)) : p("", !0),
|
|
809
|
-
!e.value.style.shape || e.value.style.shape === "bar" ? (u(),
|
|
810
|
-
x.value ? p("", !0) : (u(),
|
|
825
|
+
!e.value.style.shape || e.value.style.shape === "bar" ? (u(), v("g", jl, [
|
|
826
|
+
x.value ? p("", !0) : (u(), v("g", Nl, [
|
|
811
827
|
i("path", {
|
|
812
828
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
813
829
|
d: L.value.right,
|
|
@@ -816,7 +832,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
816
832
|
"stroke-linejoin": "round",
|
|
817
833
|
"stroke-linecap": "round",
|
|
818
834
|
fill: "none"
|
|
819
|
-
}, null, 8,
|
|
835
|
+
}, null, 8, Ll),
|
|
820
836
|
i("path", {
|
|
821
837
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
822
838
|
d: L.value.left,
|
|
@@ -825,7 +841,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
825
841
|
"stroke-linejoin": "round",
|
|
826
842
|
"stroke-linecap": "round",
|
|
827
843
|
fill: "none"
|
|
828
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, El),
|
|
829
845
|
i("path", {
|
|
830
846
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
831
847
|
d: L.value.side,
|
|
@@ -834,7 +850,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
834
850
|
"stroke-linejoin": "round",
|
|
835
851
|
"stroke-linecap": "round",
|
|
836
852
|
fill: "none"
|
|
837
|
-
}, null, 8,
|
|
853
|
+
}, null, 8, Wl),
|
|
838
854
|
i("path", {
|
|
839
855
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
840
856
|
d: L.value.topSides,
|
|
@@ -843,9 +859,9 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
843
859
|
"stroke-linejoin": "round",
|
|
844
860
|
"stroke-linecap": "round",
|
|
845
861
|
fill: "none"
|
|
846
|
-
}, null, 8,
|
|
862
|
+
}, null, 8, Rl)
|
|
847
863
|
])),
|
|
848
|
-
x.value ? p("", !0) : (u(),
|
|
864
|
+
x.value ? p("", !0) : (u(), v("g", Gl, [
|
|
849
865
|
i("path", {
|
|
850
866
|
d: K.value.right,
|
|
851
867
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -853,7 +869,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
853
869
|
"stroke-linejoin": "round",
|
|
854
870
|
"stroke-linecap": "round",
|
|
855
871
|
fill: `url(#gradient_right${F.value})`
|
|
856
|
-
}, null, 8,
|
|
872
|
+
}, null, 8, Vl),
|
|
857
873
|
i("path", {
|
|
858
874
|
d: K.value.left,
|
|
859
875
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -861,7 +877,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
861
877
|
"stroke-linejoin": "round",
|
|
862
878
|
"stroke-linecap": "round",
|
|
863
879
|
fill: `url(#gradient_left${F.value})`
|
|
864
|
-
}, null, 8,
|
|
880
|
+
}, null, 8, Ul),
|
|
865
881
|
i("path", {
|
|
866
882
|
d: K.value.top,
|
|
867
883
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -869,10 +885,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
869
885
|
"stroke-linejoin": "round",
|
|
870
886
|
"stroke-linecap": "round",
|
|
871
887
|
fill: `url(#gradient_top${F.value})`
|
|
872
|
-
}, null, 8,
|
|
888
|
+
}, null, 8, Hl)
|
|
873
889
|
])),
|
|
874
|
-
x.value ? (u(),
|
|
875
|
-
(u(!0),
|
|
890
|
+
x.value ? (u(), v("g", Xl, [
|
|
891
|
+
(u(!0), v(C, null, M(w.value, (t, c) => (u(), v("g", {
|
|
876
892
|
style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
877
893
|
class: "vue-ui-3d-bar-stack"
|
|
878
894
|
}, [
|
|
@@ -882,21 +898,21 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
882
898
|
onMouseenter: (l) => T(t),
|
|
883
899
|
onClick: (l) => T(t, !0),
|
|
884
900
|
onMouseout: (l) => U(t)
|
|
885
|
-
}, null, 40,
|
|
901
|
+
}, null, 40, Zl),
|
|
886
902
|
i("path", {
|
|
887
903
|
d: t.fill.left,
|
|
888
904
|
fill: `url(#grad_left_${t.id})`,
|
|
889
905
|
onMouseenter: (l) => T(t),
|
|
890
906
|
onClick: (l) => T(t, !0),
|
|
891
907
|
onMouseout: (l) => U(t)
|
|
892
|
-
}, null, 40,
|
|
908
|
+
}, null, 40, ql),
|
|
893
909
|
i("path", {
|
|
894
910
|
d: t.fill.top,
|
|
895
911
|
fill: `url(#grad_top_${t.id})`,
|
|
896
912
|
onMouseenter: (l) => T(t),
|
|
897
913
|
onClick: (l) => T(t, !0),
|
|
898
914
|
onMouseout: (l) => U(t)
|
|
899
|
-
}, null, 40,
|
|
915
|
+
}, null, 40, Yl),
|
|
900
916
|
i("path", {
|
|
901
917
|
d: t.fill.liningTop,
|
|
902
918
|
stroke: "#FFFFFF",
|
|
@@ -906,16 +922,16 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
906
922
|
onMouseenter: (l) => T(t),
|
|
907
923
|
onClick: (l) => T(t, !0),
|
|
908
924
|
onMouseout: (l) => U(t)
|
|
909
|
-
}, null, 40,
|
|
925
|
+
}, null, 40, Kl),
|
|
910
926
|
i("path", {
|
|
911
927
|
d: `M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,
|
|
912
928
|
stroke: "#FFFFFF",
|
|
913
929
|
"stroke-width": "0.5",
|
|
914
930
|
"stroke-linecap": "round"
|
|
915
|
-
}, null, 8,
|
|
931
|
+
}, null, 8, Jl)
|
|
916
932
|
], 4))), 256)),
|
|
917
|
-
(u(!0),
|
|
918
|
-
|
|
933
|
+
(u(!0), v(C, null, M(w.value, (t, c) => (u(), v("g", null, [
|
|
934
|
+
c !== w.value.length - 1 ? (u(), v("path", {
|
|
919
935
|
key: 0,
|
|
920
936
|
d: t.fill.liningTopShade,
|
|
921
937
|
stroke: e.value.style.chart.bar.shadeColor,
|
|
@@ -923,9 +939,9 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
923
939
|
"stroke-linecap": "round",
|
|
924
940
|
fill: "none",
|
|
925
941
|
style: { "pointer-events": "none" }
|
|
926
|
-
}, null, 8,
|
|
942
|
+
}, null, 8, Ql)) : p("", !0)
|
|
927
943
|
]))), 256)),
|
|
928
|
-
(u(!0),
|
|
944
|
+
(u(!0), v(C, null, M(w.value, (t, c) => (u(), v("g", {
|
|
929
945
|
style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
930
946
|
onClick: (l) => se("selectDatapoint", t)
|
|
931
947
|
}, [
|
|
@@ -935,16 +951,16 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
935
951
|
"stroke-width": "0.5",
|
|
936
952
|
"stroke-linecap": "round",
|
|
937
953
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
938
|
-
}, null, 8,
|
|
939
|
-
!t.fill.miniDonut || m.value ? (u(),
|
|
954
|
+
}, null, 8, to),
|
|
955
|
+
!t.fill.miniDonut || m.value ? (u(), v("circle", {
|
|
940
956
|
key: 0,
|
|
941
957
|
cx: t.fill.sidePointer.x2,
|
|
942
958
|
cy: t.fill.sidePointer.y,
|
|
943
959
|
r: 2,
|
|
944
960
|
fill: t.color,
|
|
945
961
|
stroke: e.value.style.chart.backgroundColor
|
|
946
|
-
}, null, 8,
|
|
947
|
-
n(Z) ? (u(),
|
|
962
|
+
}, null, 8, lo)) : p("", !0),
|
|
963
|
+
n(Z) ? (u(), v("rect", {
|
|
948
964
|
key: 1,
|
|
949
965
|
x: t.fill.sidePointer.xText,
|
|
950
966
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
@@ -952,8 +968,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
952
968
|
height: e.value.style.chart.legend.fontSize,
|
|
953
969
|
fill: "#6A6A6A80",
|
|
954
970
|
rx: "3"
|
|
955
|
-
}, null, 8,
|
|
956
|
-
n(Z) ? p("", !0) : (u(),
|
|
971
|
+
}, null, 8, oo)) : p("", !0),
|
|
972
|
+
n(Z) ? p("", !0) : (u(), v("foreignObject", {
|
|
957
973
|
key: 2,
|
|
958
974
|
x: t.fill.sidePointer.xText,
|
|
959
975
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
@@ -961,7 +977,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
961
977
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
962
978
|
style: { overflow: "visible", position: "relative" }
|
|
963
979
|
}, [
|
|
964
|
-
e.value.style.chart.legend.showDefault ? (u(),
|
|
980
|
+
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
965
981
|
key: 0,
|
|
966
982
|
style: z(`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}`)
|
|
967
983
|
}, j(n(fe)(
|
|
@@ -973,32 +989,32 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
973
989
|
s: e.value.style.chart.legend.suffix,
|
|
974
990
|
r: e.value.style.chart.legend.roundingValue
|
|
975
991
|
})})`,
|
|
976
|
-
{ datapoint: t, seriesIndex:
|
|
992
|
+
{ datapoint: t, seriesIndex: c, type: "barDatapoint" }
|
|
977
993
|
)), 5)) : p("", !0),
|
|
978
|
-
|
|
979
|
-
], 8,
|
|
980
|
-
t.fill.donut && m.value === t.id ? (u(),
|
|
981
|
-
(u(!0),
|
|
982
|
-
J(l, t.fill.donut, !0) > 6 ? (u(),
|
|
994
|
+
D(a.$slots, "legend", Ce({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
|
|
995
|
+
], 8, so)),
|
|
996
|
+
t.fill.donut && m.value === t.id ? (u(), v("g", ao, [
|
|
997
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("g", null, [
|
|
998
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
983
999
|
key: 0,
|
|
984
|
-
d: n(
|
|
1000
|
+
d: n(at)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
985
1001
|
stroke: l.color,
|
|
986
1002
|
class: "vue-ui-donut-arc-path",
|
|
987
1003
|
"stroke-width": "0.5",
|
|
988
1004
|
"stroke-linecap": "round",
|
|
989
1005
|
"stroke-linejoin": "round",
|
|
990
1006
|
fill: "none"
|
|
991
|
-
}, null, 8,
|
|
1007
|
+
}, null, 8, no)) : p("", !0)
|
|
992
1008
|
]))), 256)),
|
|
993
|
-
(u(!0),
|
|
1009
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("path", {
|
|
994
1010
|
class: "vue-ui-donut-arc-path",
|
|
995
1011
|
d: l.arcSlice,
|
|
996
1012
|
fill: `${l.color}`,
|
|
997
1013
|
stroke: e.value.style.chart.backgroundColor,
|
|
998
1014
|
"stroke-width": 1
|
|
999
|
-
}, null, 8,
|
|
1000
|
-
(u(!0),
|
|
1001
|
-
J(l, t.fill.donut, !0) > 6 ? (u(),
|
|
1015
|
+
}, null, 8, ro))), 256)),
|
|
1016
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("g", null, [
|
|
1017
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), v("g", uo, [
|
|
1002
1018
|
i("text", {
|
|
1003
1019
|
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
1004
1020
|
x: n(G)(l, !0, 2).x,
|
|
@@ -1015,31 +1031,31 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1015
1031
|
r: e.value.style.chart.legend.roundingValue
|
|
1016
1032
|
})})`,
|
|
1017
1033
|
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
1018
|
-
)), 9,
|
|
1034
|
+
)), 9, io),
|
|
1019
1035
|
i("text", {
|
|
1020
1036
|
"text-anchor": n(G)(l).anchor,
|
|
1021
1037
|
x: n(G)(l, !0, 2).x,
|
|
1022
1038
|
y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1023
1039
|
fill: e.value.style.chart.legend.color,
|
|
1024
1040
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1025
|
-
}, j(l.name), 9,
|
|
1041
|
+
}, j(l.name), 9, co)
|
|
1026
1042
|
])) : p("", !0)
|
|
1027
1043
|
]))), 256))
|
|
1028
1044
|
])) : p("", !0),
|
|
1029
|
-
t.fill.miniDonut && !m.value ? (u(),
|
|
1030
|
-
(u(!0),
|
|
1045
|
+
t.fill.miniDonut && !m.value ? (u(), v("g", vo, [
|
|
1046
|
+
(u(!0), v(C, null, M(t.fill.miniDonut, (l, d) => (u(), v("path", {
|
|
1031
1047
|
class: "vue-ui-donut-arc-path",
|
|
1032
1048
|
d: l.arcSlice,
|
|
1033
1049
|
fill: `${l.color}`,
|
|
1034
1050
|
stroke: e.value.style.chart.backgroundColor,
|
|
1035
1051
|
"stroke-width": 0.5
|
|
1036
|
-
}, null, 8,
|
|
1052
|
+
}, null, 8, ho))), 256))
|
|
1037
1053
|
])) : p("", !0)
|
|
1038
|
-
], 12,
|
|
1054
|
+
], 12, eo))), 256))
|
|
1039
1055
|
])) : p("", !0)
|
|
1040
1056
|
])) : p("", !0),
|
|
1041
|
-
e.value.style.shape === "tube" ? (u(),
|
|
1042
|
-
x.value ? p("", !0) : (u(),
|
|
1057
|
+
e.value.style.shape === "tube" ? (u(), v("g", fo, [
|
|
1058
|
+
x.value ? p("", !0) : (u(), v("g", po, [
|
|
1043
1059
|
i("path", {
|
|
1044
1060
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1045
1061
|
d: L.value.tubeTop,
|
|
@@ -1048,7 +1064,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1048
1064
|
"stroke-linejoin": "round",
|
|
1049
1065
|
"stroke-linecap": "round",
|
|
1050
1066
|
fill: "none"
|
|
1051
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, go),
|
|
1052
1068
|
i("path", {
|
|
1053
1069
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1054
1070
|
d: L.value.tubeLeft,
|
|
@@ -1057,7 +1073,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1057
1073
|
"stroke-linejoin": "round",
|
|
1058
1074
|
"stroke-linecap": "round",
|
|
1059
1075
|
fill: "none"
|
|
1060
|
-
}, null, 8,
|
|
1076
|
+
}, null, 8, yo),
|
|
1061
1077
|
i("path", {
|
|
1062
1078
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1063
1079
|
d: L.value.tubeRight,
|
|
@@ -1066,7 +1082,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1066
1082
|
"stroke-linejoin": "round",
|
|
1067
1083
|
"stroke-linecap": "round",
|
|
1068
1084
|
fill: "none"
|
|
1069
|
-
}, null, 8,
|
|
1085
|
+
}, null, 8, ko),
|
|
1070
1086
|
i("path", {
|
|
1071
1087
|
"stroke-dasharray": e.value.style.chart.box.strokeDasharray,
|
|
1072
1088
|
d: L.value.tubeBottom,
|
|
@@ -1075,7 +1091,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1075
1091
|
"stroke-linejoin": "round",
|
|
1076
1092
|
"stroke-linecap": "round",
|
|
1077
1093
|
fill: "none"
|
|
1078
|
-
}, null, 8,
|
|
1094
|
+
}, null, 8, $o),
|
|
1079
1095
|
i("path", {
|
|
1080
1096
|
d: K.value.tubeTop,
|
|
1081
1097
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -1083,7 +1099,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1083
1099
|
"stroke-linejoin": "round",
|
|
1084
1100
|
"stroke-linecap": "round",
|
|
1085
1101
|
fill: `url(#gradient_tube_top${F.value})`
|
|
1086
|
-
}, null, 8,
|
|
1102
|
+
}, null, 8, _o),
|
|
1087
1103
|
i("path", {
|
|
1088
1104
|
d: K.value.tubeBody,
|
|
1089
1105
|
stroke: e.value.style.chart.bar.stroke,
|
|
@@ -1091,7 +1107,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1091
1107
|
"stroke-linejoin": "round",
|
|
1092
1108
|
"stroke-linecap": "round",
|
|
1093
1109
|
fill: `url(#gradient_tube_body${F.value})`
|
|
1094
|
-
}, null, 8,
|
|
1110
|
+
}, null, 8, mo),
|
|
1095
1111
|
i("path", {
|
|
1096
1112
|
d: K.value.tubeTop,
|
|
1097
1113
|
stroke: "#FFFFFF",
|
|
@@ -1099,10 +1115,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1099
1115
|
"stroke-linejoin": "round",
|
|
1100
1116
|
"stroke-linecap": "round",
|
|
1101
1117
|
fill: "none"
|
|
1102
|
-
}, null, 8,
|
|
1118
|
+
}, null, 8, bo)
|
|
1103
1119
|
])),
|
|
1104
|
-
x.value ? (u(),
|
|
1105
|
-
(u(!0),
|
|
1120
|
+
x.value ? (u(), v("g", xo, [
|
|
1121
|
+
(u(!0), v(C, null, M(w.value, (t, c) => (u(), v("g", {
|
|
1106
1122
|
style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0.3 : 1}`),
|
|
1107
1123
|
class: "vue-ui-3d-bar-stack",
|
|
1108
1124
|
onClick: (l) => se("selectDatapoint", t)
|
|
@@ -1116,12 +1132,12 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1116
1132
|
i("stop", {
|
|
1117
1133
|
offset: "0%",
|
|
1118
1134
|
"stop-color": n($)(n(R)(t.color, 0.5), 80)
|
|
1119
|
-
}, null, 8,
|
|
1135
|
+
}, null, 8, Mo),
|
|
1120
1136
|
i("stop", {
|
|
1121
1137
|
offset: "100%",
|
|
1122
1138
|
"stop-color": n($)(n(X)(t.color, 0.1), 80)
|
|
1123
|
-
}, null, 8,
|
|
1124
|
-
], 8,
|
|
1139
|
+
}, null, 8, Fo)
|
|
1140
|
+
], 8, Co),
|
|
1125
1141
|
i("linearGradient", {
|
|
1126
1142
|
id: `gradient_tube_body_${t.id}`,
|
|
1127
1143
|
x1: "0%",
|
|
@@ -1132,24 +1148,24 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1132
1148
|
i("stop", {
|
|
1133
1149
|
offset: "0%",
|
|
1134
1150
|
"stop-color": `${t.color}`
|
|
1135
|
-
}, null, 8,
|
|
1151
|
+
}, null, 8, Po),
|
|
1136
1152
|
i("stop", {
|
|
1137
1153
|
offset: "10%",
|
|
1138
1154
|
"stop-color": n($)(n(X)(t.color, 0.7), 100)
|
|
1139
|
-
}, null, 8,
|
|
1155
|
+
}, null, 8, Do),
|
|
1140
1156
|
i("stop", {
|
|
1141
1157
|
offset: "25%",
|
|
1142
1158
|
"stop-color": n($)(n(X)(t.color, 0.5), 100)
|
|
1143
|
-
}, null, 8,
|
|
1159
|
+
}, null, 8, So),
|
|
1144
1160
|
i("stop", {
|
|
1145
1161
|
offset: "75%",
|
|
1146
1162
|
"stop-color": n($)(t.color, 80)
|
|
1147
|
-
}, null, 8,
|
|
1163
|
+
}, null, 8, Ao),
|
|
1148
1164
|
i("stop", {
|
|
1149
1165
|
offset: "100%",
|
|
1150
1166
|
"stop-color": n($)(n(R)(t.color, 0.7), 100)
|
|
1151
|
-
}, null, 8,
|
|
1152
|
-
], 8,
|
|
1167
|
+
}, null, 8, Oo)
|
|
1168
|
+
], 8, To)
|
|
1153
1169
|
]),
|
|
1154
1170
|
i("path", {
|
|
1155
1171
|
onMouseenter: (l) => T(t),
|
|
@@ -1161,8 +1177,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1161
1177
|
"stroke-linejoin": "round",
|
|
1162
1178
|
"stroke-linecap": "round",
|
|
1163
1179
|
fill: `url(#gradient_tube_body_${t.id})`
|
|
1164
|
-
}, null, 40,
|
|
1165
|
-
|
|
1180
|
+
}, null, 40, Bo),
|
|
1181
|
+
c > 0 ? (u(), v("path", {
|
|
1166
1182
|
key: 0,
|
|
1167
1183
|
onMouseenter: (l) => T(t),
|
|
1168
1184
|
onClick: (l) => T(t, !0),
|
|
@@ -1173,7 +1189,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1173
1189
|
"stroke-linejoin": "round",
|
|
1174
1190
|
"stroke-linecap": "round",
|
|
1175
1191
|
fill: "none"
|
|
1176
|
-
}, null, 40,
|
|
1192
|
+
}, null, 40, Io)) : p("", !0),
|
|
1177
1193
|
i("path", {
|
|
1178
1194
|
onMouseenter: (l) => T(t),
|
|
1179
1195
|
onClick: (l) => T(t, !0),
|
|
@@ -1184,9 +1200,9 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1184
1200
|
"stroke-linejoin": "round",
|
|
1185
1201
|
"stroke-linecap": "round",
|
|
1186
1202
|
fill: `url(#gradient_tube_top_${t.id})`
|
|
1187
|
-
}, null, 40,
|
|
1188
|
-
], 12,
|
|
1189
|
-
(u(!0),
|
|
1203
|
+
}, null, 40, zo)
|
|
1204
|
+
], 12, wo))), 256)),
|
|
1205
|
+
(u(!0), v(C, null, M(w.value, (t, c) => (u(), v("g", {
|
|
1190
1206
|
style: z(`opacity:${m.value ? m.value === t.id ? 1 : 0 : t.proportion * 100 > e.value.style.chart.legend.hideUnderPercentage ? 1 : 0}`),
|
|
1191
1207
|
onClick: (l) => se("selectDatapoint", t)
|
|
1192
1208
|
}, [
|
|
@@ -1196,16 +1212,16 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1196
1212
|
"stroke-width": "0.5",
|
|
1197
1213
|
"stroke-linecap": "round",
|
|
1198
1214
|
d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
|
|
1199
|
-
}, null, 8,
|
|
1200
|
-
!t.fill.miniDonut || m.value ? (u(),
|
|
1215
|
+
}, null, 8, No),
|
|
1216
|
+
!t.fill.miniDonut || m.value ? (u(), v("circle", {
|
|
1201
1217
|
key: 0,
|
|
1202
1218
|
cx: t.fill.sidePointer.x2,
|
|
1203
1219
|
cy: t.fill.sidePointer.y,
|
|
1204
1220
|
r: 2,
|
|
1205
1221
|
fill: t.color,
|
|
1206
1222
|
stroke: e.value.style.chart.backgroundColor
|
|
1207
|
-
}, null, 8,
|
|
1208
|
-
n(Z) ? (u(),
|
|
1223
|
+
}, null, 8, Lo)) : p("", !0),
|
|
1224
|
+
n(Z) ? (u(), v("rect", {
|
|
1209
1225
|
key: 1,
|
|
1210
1226
|
x: t.fill.sidePointer.xText,
|
|
1211
1227
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize / 2,
|
|
@@ -1213,8 +1229,8 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1213
1229
|
height: e.value.style.chart.legend.fontSize,
|
|
1214
1230
|
fill: "#6A6A6A80",
|
|
1215
1231
|
rx: "3"
|
|
1216
|
-
}, null, 8,
|
|
1217
|
-
n(Z) ? p("", !0) : (u(),
|
|
1232
|
+
}, null, 8, Eo)) : p("", !0),
|
|
1233
|
+
n(Z) ? p("", !0) : (u(), v("foreignObject", {
|
|
1218
1234
|
key: 2,
|
|
1219
1235
|
x: t.fill.sidePointer.xText,
|
|
1220
1236
|
y: t.fill.sidePointer.y - e.value.style.chart.legend.fontSize,
|
|
@@ -1222,7 +1238,7 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1222
1238
|
height: e.value.style.chart.legend.fontSize * 2,
|
|
1223
1239
|
style: { overflow: "visible", position: "relative" }
|
|
1224
1240
|
}, [
|
|
1225
|
-
e.value.style.chart.legend.showDefault ? (u(),
|
|
1241
|
+
e.value.style.chart.legend.showDefault ? (u(), v("div", {
|
|
1226
1242
|
key: 0,
|
|
1227
1243
|
style: z(`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}`)
|
|
1228
1244
|
}, j(n(fe)(
|
|
@@ -1234,32 +1250,32 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1234
1250
|
s: e.value.style.chart.legend.suffix,
|
|
1235
1251
|
r: e.value.style.chart.legend.roundingValue
|
|
1236
1252
|
})})`,
|
|
1237
|
-
{ datapoint: t, seriesIndex:
|
|
1253
|
+
{ datapoint: t, seriesIndex: c, type: "barDatapoint" }
|
|
1238
1254
|
)), 5)) : p("", !0),
|
|
1239
|
-
|
|
1240
|
-
], 8,
|
|
1241
|
-
t.fill.donut && m.value === t.id ? (u(),
|
|
1242
|
-
(u(!0),
|
|
1243
|
-
J(l, t.fill.donut, !0) > 6 ? (u(),
|
|
1255
|
+
D(a.$slots, "legend", Ce({ ref_for: !0 }, { datapoint: t, config: e.value, dataset: w.value }), void 0, !0)
|
|
1256
|
+
], 8, Wo)),
|
|
1257
|
+
t.fill.donut && m.value === t.id ? (u(), v("g", Ro, [
|
|
1258
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("g", null, [
|
|
1259
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), v("path", {
|
|
1244
1260
|
key: 0,
|
|
1245
|
-
d: n(
|
|
1261
|
+
d: n(at)(l, { x: l.cx, y: l.cy }, 0, 8, !1, !0, 10),
|
|
1246
1262
|
stroke: l.color,
|
|
1247
1263
|
class: "vue-ui-donut-arc-path",
|
|
1248
1264
|
"stroke-width": "0.5",
|
|
1249
1265
|
"stroke-linecap": "round",
|
|
1250
1266
|
"stroke-linejoin": "round",
|
|
1251
1267
|
fill: "none"
|
|
1252
|
-
}, null, 8,
|
|
1268
|
+
}, null, 8, Go)) : p("", !0)
|
|
1253
1269
|
]))), 256)),
|
|
1254
|
-
(u(!0),
|
|
1270
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("path", {
|
|
1255
1271
|
class: "vue-ui-donut-arc-path",
|
|
1256
1272
|
d: l.arcSlice,
|
|
1257
1273
|
fill: `${l.color}`,
|
|
1258
1274
|
stroke: e.value.style.chart.backgroundColor,
|
|
1259
1275
|
"stroke-width": 1
|
|
1260
|
-
}, null, 8,
|
|
1261
|
-
(u(!0),
|
|
1262
|
-
J(l, t.fill.donut, !0) > 6 ? (u(),
|
|
1276
|
+
}, null, 8, Vo))), 256)),
|
|
1277
|
+
(u(!0), v(C, null, M(t.fill.donut, (l, d) => (u(), v("g", null, [
|
|
1278
|
+
J(l, t.fill.donut, !0) > 6 ? (u(), v("g", Uo, [
|
|
1263
1279
|
i("text", {
|
|
1264
1280
|
"text-anchor": n(G)(l, !0, 0).anchor,
|
|
1265
1281
|
x: n(G)(l, !0, 2).x,
|
|
@@ -1276,50 +1292,50 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1276
1292
|
r: e.value.style.chart.legend.roundingValue
|
|
1277
1293
|
})})`,
|
|
1278
1294
|
{ datapoint: l, seriesIndex: d, type: "donutDatapoint" }
|
|
1279
|
-
)), 9,
|
|
1295
|
+
)), 9, Ho),
|
|
1280
1296
|
i("text", {
|
|
1281
1297
|
"text-anchor": n(G)(l).anchor,
|
|
1282
1298
|
x: n(G)(l, !0, 2).x,
|
|
1283
1299
|
y: n(pe)(l, 12, 12) + e.value.style.chart.legend.fontSize / 1.5,
|
|
1284
1300
|
fill: e.value.style.chart.legend.color,
|
|
1285
1301
|
"font-size": e.value.style.chart.legend.fontSize / 1.5
|
|
1286
|
-
}, j(l.name), 9,
|
|
1302
|
+
}, j(l.name), 9, Xo)
|
|
1287
1303
|
])) : p("", !0)
|
|
1288
1304
|
]))), 256))
|
|
1289
1305
|
])) : p("", !0),
|
|
1290
|
-
t.fill.miniDonut && !m.value ? (u(),
|
|
1291
|
-
(u(!0),
|
|
1306
|
+
t.fill.miniDonut && !m.value ? (u(), v("g", Zo, [
|
|
1307
|
+
(u(!0), v(C, null, M(t.fill.miniDonut, (l, d) => (u(), v("path", {
|
|
1292
1308
|
class: "vue-ui-donut-arc-path",
|
|
1293
1309
|
d: l.arcSlice,
|
|
1294
1310
|
fill: `${l.color}`,
|
|
1295
1311
|
stroke: e.value.style.chart.backgroundColor,
|
|
1296
1312
|
"stroke-width": 0.5
|
|
1297
|
-
}, null, 8,
|
|
1313
|
+
}, null, 8, qo))), 256))
|
|
1298
1314
|
])) : p("", !0)
|
|
1299
|
-
], 12,
|
|
1315
|
+
], 12, jo))), 256))
|
|
1300
1316
|
])) : p("", !0)
|
|
1301
1317
|
])) : p("", !0),
|
|
1302
|
-
|
|
1303
|
-
], 14,
|
|
1304
|
-
a.$slots.watermark ? (u(),
|
|
1305
|
-
|
|
1318
|
+
D(a.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1319
|
+
], 14, tl)),
|
|
1320
|
+
a.$slots.watermark ? (u(), v("div", Yo, [
|
|
1321
|
+
D(a.$slots, "watermark", de(ce({ isPrinting: n(Be) || n(Ie) })), void 0, !0)
|
|
1306
1322
|
])) : p("", !0),
|
|
1307
|
-
a.$slots.source ? (u(),
|
|
1323
|
+
a.$slots.source ? (u(), v("div", {
|
|
1308
1324
|
key: 4,
|
|
1309
1325
|
ref_key: "source",
|
|
1310
|
-
ref:
|
|
1326
|
+
ref: Se,
|
|
1311
1327
|
dir: "auto"
|
|
1312
1328
|
}, [
|
|
1313
|
-
|
|
1329
|
+
D(a.$slots, "source", {}, void 0, !0)
|
|
1314
1330
|
], 512)) : p("", !0),
|
|
1315
|
-
|
|
1331
|
+
Fe.value && x.value && e.value.userOptions.buttons.table ? (u(), Q(St(oe.value.component), Ce({ key: 5 }, oe.value.props, {
|
|
1316
1332
|
ref_key: "tableUnit",
|
|
1317
1333
|
ref: le,
|
|
1318
1334
|
onClose: Ve
|
|
1319
|
-
}),
|
|
1320
|
-
content:
|
|
1321
|
-
(u(), Q(n(
|
|
1322
|
-
key: `table_${
|
|
1335
|
+
}), Ke({
|
|
1336
|
+
content: S(() => [
|
|
1337
|
+
(u(), Q(n(vt), {
|
|
1338
|
+
key: `table_${Pe.value}`,
|
|
1323
1339
|
colNames: ue.value.colNames,
|
|
1324
1340
|
head: ue.value.head,
|
|
1325
1341
|
body: ue.value.body,
|
|
@@ -1328,14 +1344,14 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1328
1344
|
withCloseButton: !e.value.table.useDialog,
|
|
1329
1345
|
onClose: Ve
|
|
1330
1346
|
}, {
|
|
1331
|
-
th:
|
|
1347
|
+
th: S(({ th: t }) => [
|
|
1332
1348
|
i("div", {
|
|
1333
1349
|
innerHTML: t,
|
|
1334
1350
|
style: { display: "flex", "align-items": "center" }
|
|
1335
|
-
}, null, 8,
|
|
1351
|
+
}, null, 8, Ko)
|
|
1336
1352
|
]),
|
|
1337
|
-
td:
|
|
1338
|
-
|
|
1353
|
+
td: S(({ td: t }) => [
|
|
1354
|
+
tt(j(t.name || t), 1)
|
|
1339
1355
|
]),
|
|
1340
1356
|
_: 1
|
|
1341
1357
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1344,20 +1360,20 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1344
1360
|
}, [
|
|
1345
1361
|
e.value.table.useDialog ? {
|
|
1346
1362
|
name: "title",
|
|
1347
|
-
fn:
|
|
1348
|
-
|
|
1363
|
+
fn: S(() => [
|
|
1364
|
+
tt(j(oe.value.title), 1)
|
|
1349
1365
|
]),
|
|
1350
1366
|
key: "0"
|
|
1351
1367
|
} : void 0,
|
|
1352
1368
|
e.value.table.useDialog ? {
|
|
1353
1369
|
name: "actions",
|
|
1354
|
-
fn:
|
|
1370
|
+
fn: S(() => [
|
|
1355
1371
|
i("button", {
|
|
1356
1372
|
tabindex: "0",
|
|
1357
1373
|
class: "vue-ui-user-options-button",
|
|
1358
|
-
onClick: s[7] || (s[7] = (t) =>
|
|
1374
|
+
onClick: s[7] || (s[7] = (t) => me(e.value.userOptions.callbacks.csv))
|
|
1359
1375
|
}, [
|
|
1360
|
-
|
|
1376
|
+
Je(n(dt), {
|
|
1361
1377
|
name: "excel",
|
|
1362
1378
|
stroke: oe.value.props.color
|
|
1363
1379
|
}, null, 8, ["stroke"])
|
|
@@ -1366,10 +1382,10 @@ const Zt = ["id"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["i
|
|
|
1366
1382
|
key: "1"
|
|
1367
1383
|
} : void 0
|
|
1368
1384
|
]), 1040)) : p("", !0),
|
|
1369
|
-
n(Z) ? (u(), Q(
|
|
1370
|
-
], 44,
|
|
1385
|
+
n(Z) ? (u(), Q(Ut, { key: 6 })) : p("", !0)
|
|
1386
|
+
], 44, el));
|
|
1371
1387
|
}
|
|
1372
|
-
},
|
|
1388
|
+
}, hs = /* @__PURE__ */ Qt(Jo, [["__scopeId", "data-v-a0759208"]]);
|
|
1373
1389
|
export {
|
|
1374
|
-
|
|
1390
|
+
hs as default
|
|
1375
1391
|
};
|