vue-data-ui 3.2.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.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-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.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-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as _, computed as v, ref as c, toRefs as Pt, watch as Ve, shallowRef as We, onMounted as Ot, onBeforeUnmount as Ft, createElementBlock as u, openBlock as n, unref as r, normalizeStyle as K, normalizeClass as G, createBlock as S, createCommentVNode as d, createElementVNode as $, createVNode as Q, createSlots as Ge, withCtx as g, renderSlot as f, normalizeProps as B, guardReactiveProps as E, Fragment as I, renderList as L, toDisplayString as X, Teleport as It, resolveDynamicComponent as Lt, mergeProps as Nt, createTextVNode as ve, nextTick as Xe } from "vue";
|
|
2
|
+
import { c as Rt, t as zt, b as Dt, p as N, o as Bt, f as M, e as Et, g as Ye, h as qe, k as He, q as Mt, d as Y, a as je, X as Ut, s as de, i as Vt, S as Je, x as Wt, y as Gt, z as Xt, A as Yt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as qt, u as Ht } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as jt, a as Ke } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Jt, B as Kt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Qt } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ea } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as ta } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
|
|
10
|
+
import aa from "./img-6wPuVVtk.js";
|
|
11
|
+
import oa from "./Title-D17CJXko.js";
|
|
12
|
+
import la from "./Legend-DsogCeTb.js";
|
|
13
|
+
import { t as sa } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import { u as na } from "./useSvgExport-B7-Vrjtu.js";
|
|
15
|
+
import { _ as ra } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ua = ["id"], ia = ["id"], ca = ["xmlns", "viewBox"], va = ["width", "height"], da = ["id"], pa = ["stop-color"], ha = ["stop-color"], ga = { key: 1 }, fa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = { key: 0 }, ya = ["d", "stroke", "stroke-width"], ba = ["d", "stroke", "stroke-width"], ka = { key: 2 }, Ca = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], wa = ["points", "stroke", "stroke-width"], _a = ["points", "stroke", "stroke-width", "fill"], $a = { key: 3 }, Ta = ["cx", "cy", "fill", "r", "stroke"], Aa = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Sa = ["id"], xa = ["onClick"], Pa = {
|
|
19
20
|
key: 0,
|
|
20
21
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
21
|
-
},
|
|
22
|
+
}, Oa = {
|
|
22
23
|
__name: "vue-ui-radar",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,14 +36,14 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
...
|
|
39
|
+
setup(Qe, { expose: Ze, emit: et }) {
|
|
40
|
+
const tt = _(() => import("./Tooltip-CtVdvbZi.js")), at = _(() => import("./BaseIcon-CtqN7W_g.js")), ot = _(() => import("./vue-ui-sparkbar-BkdcYrmg.js")), lt = _(() => import("./vue-ui-accordion-Dch9YrCi.js")), st = _(() => import("./DataTable-BeI6gYJX.js")), nt = _(() => import("./PenAndPaper-BxbYiPy4.js")), rt = _(() => import("./UserOptions-B3vCIe-u.js")), ut = _(() => import("./PackageVersion-C9oklnuy.js")), it = _(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_radar: ct } = jt(), x = Qe, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Rt()), Z = c(!1), ee = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), me = c(null), ye = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), U = c(null), te = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Jt({
|
|
41
|
+
...Pt(x),
|
|
41
42
|
FINAL_CONFIG: e,
|
|
42
43
|
prepareConfig: oe,
|
|
43
44
|
callback: () => {
|
|
44
45
|
Promise.resolve().then(async () => {
|
|
45
|
-
await
|
|
46
|
+
await Xe(), y.value.showTable = e.value.table.show;
|
|
46
47
|
});
|
|
47
48
|
},
|
|
48
49
|
skeletonDataset: {
|
|
@@ -56,7 +57,7 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
56
57
|
{ name: "_", values: [0.6], target: 1 }
|
|
57
58
|
]
|
|
58
59
|
},
|
|
59
|
-
skeletonConfig:
|
|
60
|
+
skeletonConfig: zt({
|
|
60
61
|
defaultConfig: e.value,
|
|
61
62
|
userConfig: {
|
|
62
63
|
userOptions: { show: !1 },
|
|
@@ -83,32 +84,32 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
})
|
|
86
|
-
}), { userOptionsVisible:
|
|
87
|
+
}), { userOptionsVisible: ae, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Zt({ config: e.value }), { svgRef: q } = ea({ config: e.value.style.chart.title });
|
|
87
88
|
function oe() {
|
|
88
|
-
const t =
|
|
89
|
+
const t = Ke({
|
|
89
90
|
userConfig: x.config,
|
|
90
|
-
defaultConfig:
|
|
91
|
+
defaultConfig: ct
|
|
91
92
|
});
|
|
92
93
|
return t.theme ? {
|
|
93
|
-
...
|
|
94
|
-
userConfig:
|
|
94
|
+
...Ke({
|
|
95
|
+
userConfig: sa.vue_ui_radar[t.theme] || x.config,
|
|
95
96
|
defaultConfig: t
|
|
96
97
|
}),
|
|
97
|
-
customPalette:
|
|
98
|
+
customPalette: Dt[t.theme] || N
|
|
98
99
|
} : t;
|
|
99
100
|
}
|
|
100
|
-
|
|
101
|
-
e.value = oe(),
|
|
101
|
+
Ve(() => x.config, (t) => {
|
|
102
|
+
e.value = oe(), ae.value = !e.value.userOptions.showOnChartHover, Ae(), be.value += 1, ke.value += 1, Ce.value += 1, y.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
102
103
|
}, { deep: !0 });
|
|
103
|
-
const T =
|
|
104
|
+
const T = We(null), R = We(null), z = v(() => e.value.debug);
|
|
104
105
|
function Ae() {
|
|
105
|
-
if (
|
|
106
|
+
if (Bt(x.dataset) && M({
|
|
106
107
|
componentName: "VueUiRadar",
|
|
107
108
|
type: "dataset",
|
|
108
|
-
debug:
|
|
109
|
+
debug: z.value
|
|
109
110
|
}), e.value.responsive) {
|
|
110
|
-
const t =
|
|
111
|
-
const { width: a, height: o } =
|
|
111
|
+
const t = qt(() => {
|
|
112
|
+
const { width: a, height: o } = Ht({
|
|
112
113
|
chart: C.value,
|
|
113
114
|
title: e.value.style.chart.title.text ? ge.value : null,
|
|
114
115
|
legend: e.value.style.chart.legend.show ? fe.value : null,
|
|
@@ -119,26 +120,26 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
119
120
|
i.value.width = a, i.value.height = o, ze();
|
|
120
121
|
});
|
|
121
122
|
});
|
|
122
|
-
T.value && (
|
|
123
|
+
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect()), T.value = new ResizeObserver(t), R.value = C.value.parentNode, T.value.observe(R.value);
|
|
123
124
|
}
|
|
124
125
|
ze();
|
|
125
126
|
}
|
|
126
|
-
|
|
127
|
+
Ot(() => {
|
|
127
128
|
we.value = !0, Ae();
|
|
128
|
-
}),
|
|
129
|
-
T.value && (
|
|
129
|
+
}), Ft(() => {
|
|
130
|
+
T.value && (R.value && T.value.unobserve(R.value), T.value.disconnect());
|
|
130
131
|
});
|
|
131
|
-
const { isPrinting:
|
|
132
|
+
const { isPrinting: Se, isImaging: xe, generatePdf: Pe, generateImage: Oe } = Qt({
|
|
132
133
|
elementId: `vue-ui-radar_${b.value}`,
|
|
133
134
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
134
135
|
options: e.value.userOptions.print
|
|
135
|
-
}),
|
|
136
|
+
}), vt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = v(() => Et(e.value.customPalette)), y = c({
|
|
136
137
|
dataLabels: {
|
|
137
138
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
138
139
|
},
|
|
139
140
|
showTable: e.value.table.show,
|
|
140
141
|
showTooltip: e.value.style.chart.tooltip.show
|
|
141
|
-
}),
|
|
142
|
+
}), dt = v(() => ({
|
|
142
143
|
style: {
|
|
143
144
|
backgroundColor: "#FFFFFF00",
|
|
144
145
|
animation: {
|
|
@@ -159,95 +160,95 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
159
160
|
})), i = c({
|
|
160
161
|
height: 312,
|
|
161
162
|
width: 512
|
|
162
|
-
}),
|
|
163
|
+
}), pt = et, p = c([]), V = c(null), D = c(!1);
|
|
163
164
|
function Ie(t) {
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
D.value = !0, p.value.includes(t) ? (V.value = t, p.value = p.value.filter((a) => a !== t), setTimeout(() => {
|
|
166
|
+
D.value = !1, V.value = null;
|
|
166
167
|
}, 500)) : (p.value.push(t), setTimeout(() => {
|
|
167
|
-
|
|
168
|
-
}, 500)),
|
|
168
|
+
D.value = !1;
|
|
169
|
+
}, 500)), pt("selectLegend", P.value.filter((a, o) => !p.value.includes(o)).map((a) => ({
|
|
169
170
|
name: a.name,
|
|
170
171
|
color: a.color,
|
|
171
172
|
proportion: a.totalProportion
|
|
172
173
|
})));
|
|
173
174
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
175
|
+
function ht() {
|
|
176
|
+
return P.value.map((t) => ({
|
|
176
177
|
name: t.name,
|
|
177
178
|
color: t.color,
|
|
178
179
|
proportion: t.totalProportion
|
|
179
180
|
}));
|
|
180
181
|
}
|
|
181
|
-
const
|
|
182
|
+
const m = v(() => [null, void 0].includes(w.value.categories) ? (M({
|
|
182
183
|
componentName: "VueUiRadar",
|
|
183
184
|
type: "datasetAttribute",
|
|
184
185
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
185
|
-
debug:
|
|
186
|
-
}), []) : (w.value.categories.length === 0 ?
|
|
186
|
+
debug: z.value
|
|
187
|
+
}), []) : (w.value.categories.length === 0 ? M({
|
|
187
188
|
componentName: "VueUiRadar",
|
|
188
189
|
type: "datasetAttributeEmpty",
|
|
189
190
|
property: "categories",
|
|
190
|
-
debug:
|
|
191
|
+
debug: z.value
|
|
191
192
|
}) : w.value.categories.forEach((t, a) => {
|
|
192
|
-
|
|
193
|
+
Ye({
|
|
193
194
|
datasetObject: t,
|
|
194
195
|
requiredAttributes: ["name"]
|
|
195
196
|
}).forEach((o) => {
|
|
196
|
-
|
|
197
|
+
M({
|
|
197
198
|
componentName: "VueUiRadar",
|
|
198
199
|
type: "datasetAttribute",
|
|
199
200
|
property: `category.${o} at index ${a}`,
|
|
200
201
|
index: a,
|
|
201
|
-
debug:
|
|
202
|
+
debug: z.value
|
|
202
203
|
});
|
|
203
204
|
});
|
|
204
|
-
}), [null, void 0].includes(w.value.series) ?
|
|
205
|
+
}), [null, void 0].includes(w.value.series) ? M({
|
|
205
206
|
componentName: "VueUiRadar",
|
|
206
207
|
type: "datasetAttribute",
|
|
207
208
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
208
|
-
debug:
|
|
209
|
+
debug: z.value
|
|
209
210
|
}) : w.value.series.forEach((t, a) => {
|
|
210
|
-
|
|
211
|
+
Ye({
|
|
211
212
|
datasetObject: t,
|
|
212
213
|
requiredAttributes: ["name", "values", "target"]
|
|
213
214
|
}).forEach((o) => {
|
|
214
|
-
|
|
215
|
+
M({
|
|
215
216
|
componentName: "VueUiRadar",
|
|
216
217
|
type: "datasetSerieAttribute",
|
|
217
218
|
key: "series",
|
|
218
219
|
property: o,
|
|
219
220
|
index: a,
|
|
220
|
-
debug:
|
|
221
|
+
debug: z.value
|
|
221
222
|
});
|
|
222
223
|
});
|
|
223
224
|
}), w.value.categories.map((t, a) => ({
|
|
224
225
|
name: t.name,
|
|
225
226
|
categoryId: `radar_category_${b.value}_${a}`,
|
|
226
|
-
color:
|
|
227
|
+
color: qe(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
227
228
|
prefix: t.prefix ?? "",
|
|
228
229
|
suffix: t.suffix ?? ""
|
|
229
230
|
})))), k = v(() => w.value.series.map((t, a) => ({
|
|
230
231
|
...t,
|
|
231
|
-
color:
|
|
232
|
+
color: qe(t.color) || Fe.value[a] || N[a] || N[a % N.length],
|
|
232
233
|
serieId: `radar_serie_${b.value}_${a}`,
|
|
233
234
|
formatter: t.formatter || null
|
|
234
|
-
}))),
|
|
235
|
+
}))), Le = v(() => Math.max(...k.value.flatMap((t) => t.values))), Ne = v(() => k.value.length), le = v(() => Math.min(i.value.width, i.value.height) / 3), Re = v(() => He({
|
|
235
236
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
236
237
|
radius: le.value,
|
|
237
|
-
sides:
|
|
238
|
+
sides: Ne.value,
|
|
238
239
|
rotation: 0
|
|
239
|
-
})),
|
|
240
|
+
})), gt = v(() => {
|
|
240
241
|
const t = [];
|
|
241
242
|
for (let a = 0; a < le.value; a += le.value / e.value.style.chart.layout.grid.graduations)
|
|
242
243
|
t.push(a);
|
|
243
244
|
return t;
|
|
244
245
|
}), A = v(() => Re.value.coordinates.map((t, a) => {
|
|
245
|
-
const o = k.value[a].values.map((l) =>
|
|
246
|
+
const o = k.value[a].values.map((l) => mt({
|
|
246
247
|
centerX: i.value.width / 2,
|
|
247
248
|
centerY: i.value.height / 2,
|
|
248
249
|
apexX: t.x,
|
|
249
250
|
apexY: t.y,
|
|
250
|
-
proportion: l / (k.value[a].target ||
|
|
251
|
+
proportion: l / (k.value[a].target || Le.value)
|
|
251
252
|
}));
|
|
252
253
|
return {
|
|
253
254
|
...t,
|
|
@@ -264,47 +265,55 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
264
265
|
let o = "middle";
|
|
265
266
|
return t = Math.round(t), a = Math.round(a), t > i.value.width / 2 && (t += 12, o = "start"), t < i.value.width / 2 && (t -= 12, o = "end"), a > i.value.height / 2 + 1 && (a += 20), a < i.value.height / 2 - 1 && (a -= 12), a === i.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
266
267
|
}
|
|
267
|
-
const
|
|
268
|
+
const ft = v({
|
|
268
269
|
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
269
270
|
set: (t) => t
|
|
270
|
-
}), { autoSizeLabels: ze } =
|
|
271
|
-
svgRef:
|
|
271
|
+
}), { autoSizeLabels: ze } = ta({
|
|
272
|
+
svgRef: q,
|
|
272
273
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
273
274
|
minFontSize: 6,
|
|
274
|
-
sizeRef:
|
|
275
|
+
sizeRef: ft,
|
|
275
276
|
labelClass: ".vue-ui-radar-apex-label"
|
|
276
277
|
});
|
|
277
|
-
function
|
|
278
|
+
function mt({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: s }) {
|
|
278
279
|
return {
|
|
279
|
-
x: t + (o - t) *
|
|
280
|
-
y: a + (l - a) *
|
|
280
|
+
x: t + (o - t) * s,
|
|
281
|
+
y: a + (l - a) * s
|
|
281
282
|
};
|
|
282
283
|
}
|
|
283
|
-
const
|
|
284
|
-
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
285
|
-
return
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
284
|
+
const P = v(() => {
|
|
285
|
+
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Le.value)));
|
|
286
|
+
return m.value.map((a, o) => {
|
|
287
|
+
const l = Mt(t.map((s) => s[o]).reduce((s, h) => s + h, 0) / k.value.length);
|
|
288
|
+
return {
|
|
289
|
+
...a,
|
|
290
|
+
totalProportion: l,
|
|
291
|
+
shape: "circle",
|
|
292
|
+
opacity: p.value.includes(o) ? 0.5 : 1,
|
|
293
|
+
segregate: () => Ie(o),
|
|
294
|
+
isSegregated: p.value.includes(o),
|
|
295
|
+
display: `${a.name}: ${Y({
|
|
296
|
+
v: (l ?? 0) * 100,
|
|
297
|
+
s: "%",
|
|
298
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
299
|
+
})}`
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
}), yt = v(() => ({
|
|
294
303
|
cy: "radar-div-legend",
|
|
295
304
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
296
305
|
color: e.value.style.chart.legend.color,
|
|
297
306
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
298
307
|
paddingBottom: 12,
|
|
299
308
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
300
|
-
})),
|
|
309
|
+
})), H = v(() => {
|
|
301
310
|
const t = [
|
|
302
311
|
{ name: e.value.translations.datapoint, color: "" },
|
|
303
312
|
{ name: e.value.translations.target, color: "" },
|
|
304
|
-
...
|
|
313
|
+
...P.value
|
|
305
314
|
], a = w.value.series.map((l) => [
|
|
306
315
|
l.name,
|
|
307
|
-
|
|
316
|
+
je(
|
|
308
317
|
l.formatter,
|
|
309
318
|
l.target,
|
|
310
319
|
Y({
|
|
@@ -314,12 +323,12 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
314
323
|
r: e.value.table.td.roundingValue
|
|
315
324
|
})
|
|
316
325
|
),
|
|
317
|
-
...l.values.map((
|
|
326
|
+
...l.values.map((s, h) => `${je(
|
|
318
327
|
l.formatter,
|
|
319
|
-
|
|
320
|
-
Y({ p:
|
|
321
|
-
)} (${isNaN(
|
|
322
|
-
v:
|
|
328
|
+
s,
|
|
329
|
+
Y({ p: m.value[h].prefix, v: s, s: m.value[h].suffix, r: e.value.table.td.roundingValue })
|
|
330
|
+
)} (${isNaN(s / l.target) ? "" : Y({
|
|
331
|
+
v: s / l.target * 100,
|
|
323
332
|
s: "%",
|
|
324
333
|
r: e.value.table.td.roundingPercentage
|
|
325
334
|
})})`)
|
|
@@ -337,100 +346,100 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
337
346
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
338
347
|
};
|
|
339
348
|
return { head: t, body: a, config: o, colNames: t };
|
|
340
|
-
}),
|
|
341
|
-
function yt(t, a) {
|
|
342
|
-
Q.value = !1, H.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
343
|
-
}
|
|
349
|
+
}), j = c(null), ne = c([]), re = c(null);
|
|
344
350
|
function bt(t, a) {
|
|
345
|
-
e.value.events.
|
|
351
|
+
Z.value = !1, j.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
346
352
|
}
|
|
347
353
|
function kt(t, a) {
|
|
348
|
-
e.value.events.
|
|
354
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
355
|
+
}
|
|
356
|
+
function Ct(t, a) {
|
|
357
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ne.value = [], j.value = a, Z.value = !0;
|
|
349
358
|
let o = "";
|
|
350
359
|
re.value = {
|
|
351
360
|
datapoint: t,
|
|
352
361
|
seriesIndex: a,
|
|
353
362
|
series: {
|
|
354
|
-
categories:
|
|
363
|
+
categories: m.value,
|
|
355
364
|
datapoints: k.value,
|
|
356
365
|
radar: A.value
|
|
357
366
|
},
|
|
358
367
|
config: e.value
|
|
359
368
|
};
|
|
360
369
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
361
|
-
if (
|
|
370
|
+
if (Xt(l) && Yt(() => l({
|
|
362
371
|
seriesIndex: a,
|
|
363
372
|
datapoint: t,
|
|
364
|
-
series: { categories:
|
|
373
|
+
series: { categories: m.value, datapoints: k.value, radar: A.value },
|
|
365
374
|
config: e.value
|
|
366
375
|
})))
|
|
367
|
-
|
|
376
|
+
ee.value = l({
|
|
368
377
|
seriesIndex: a,
|
|
369
378
|
datapoint: t,
|
|
370
|
-
series: { categories:
|
|
379
|
+
series: { categories: m.value, datapoints: k.value, radar: A.value },
|
|
371
380
|
config: e.value
|
|
372
381
|
});
|
|
373
382
|
else {
|
|
374
383
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
375
|
-
for (let
|
|
376
|
-
p.value.includes(
|
|
377
|
-
name:
|
|
378
|
-
value: t.values[
|
|
379
|
-
color:
|
|
384
|
+
for (let s = 0; s < t.values.length; s += 1)
|
|
385
|
+
p.value.includes(s) || ne.value.push({
|
|
386
|
+
name: m.value[s].name,
|
|
387
|
+
value: t.values[s] / t.target * 100,
|
|
388
|
+
color: m.value[s].color,
|
|
380
389
|
suffix: "%)",
|
|
381
|
-
prefix: `${Y({ p:
|
|
390
|
+
prefix: `${Y({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
382
391
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
383
392
|
formatter: t.formatter
|
|
384
393
|
});
|
|
385
|
-
|
|
394
|
+
ee.value = o;
|
|
386
395
|
}
|
|
387
396
|
}
|
|
388
397
|
function ue(t = null) {
|
|
389
|
-
|
|
390
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...
|
|
398
|
+
Xe(() => {
|
|
399
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...P.value.flatMap((F) => [[F.name], ["%"]])], l = w.value.series.map((F, Fa) => [F.name, F.target, ...F.values.flatMap((ce) => [
|
|
391
400
|
ce,
|
|
392
401
|
isNaN(ce / F.target) ? "" : ce / F.target * 100
|
|
393
|
-
])]),
|
|
394
|
-
t ? t(
|
|
402
|
+
])]), s = a.concat([o]).concat(l), h = Wt(s);
|
|
403
|
+
t ? t(h) : Gt({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
395
404
|
});
|
|
396
405
|
}
|
|
397
|
-
const
|
|
406
|
+
const O = c(!1);
|
|
398
407
|
function De(t) {
|
|
399
|
-
|
|
408
|
+
O.value = t, he.value += 1;
|
|
400
409
|
}
|
|
401
410
|
function Be() {
|
|
402
411
|
y.value.showTable = !y.value.showTable;
|
|
403
412
|
}
|
|
404
|
-
function
|
|
413
|
+
function Ee() {
|
|
405
414
|
y.value.showTooltip = !y.value.showTooltip;
|
|
406
415
|
}
|
|
407
|
-
const
|
|
416
|
+
const J = c(!1);
|
|
408
417
|
function ie() {
|
|
409
|
-
|
|
418
|
+
J.value = !J.value;
|
|
410
419
|
}
|
|
411
|
-
async function
|
|
420
|
+
async function wt({ scale: t = 2 } = {}) {
|
|
412
421
|
if (!C.value) return;
|
|
413
|
-
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri:
|
|
422
|
+
const { width: a, height: o } = C.value.getBoundingClientRect(), l = a / o, { imageUri: s, base64: h } = await aa({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
414
423
|
return {
|
|
415
|
-
imageUri:
|
|
416
|
-
base64:
|
|
424
|
+
imageUri: s,
|
|
425
|
+
base64: h,
|
|
417
426
|
title: e.value.style.chart.title.text,
|
|
418
427
|
width: a,
|
|
419
428
|
height: o,
|
|
420
429
|
aspectRatio: l
|
|
421
430
|
};
|
|
422
431
|
}
|
|
423
|
-
const
|
|
432
|
+
const W = v(() => {
|
|
424
433
|
const t = e.value.table.useDialog && !e.value.table.show, a = y.value.showTable;
|
|
425
434
|
return {
|
|
426
|
-
component: t ?
|
|
435
|
+
component: t ? it : lt,
|
|
427
436
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
428
437
|
props: t ? {
|
|
429
438
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
430
439
|
color: e.value.table.th.color,
|
|
431
440
|
headerColor: e.value.table.th.color,
|
|
432
441
|
headerBg: e.value.table.th.backgroundColor,
|
|
433
|
-
isFullscreen:
|
|
442
|
+
isFullscreen: O.value,
|
|
434
443
|
fullscreenParent: C.value,
|
|
435
444
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
436
445
|
} : {
|
|
@@ -450,53 +459,71 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
450
459
|
}
|
|
451
460
|
};
|
|
452
461
|
});
|
|
453
|
-
|
|
454
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
462
|
+
Ve(() => y.value.showTable, (t) => {
|
|
463
|
+
e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
455
464
|
});
|
|
456
|
-
function
|
|
457
|
-
y.value.showTable = !1,
|
|
465
|
+
function Me() {
|
|
466
|
+
y.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
467
|
+
}
|
|
468
|
+
const _t = v(() => P.value.map((t) => ({
|
|
469
|
+
...t,
|
|
470
|
+
name: t.display
|
|
471
|
+
}))), $t = v(() => e.value.style.chart.backgroundColor), Tt = v(() => e.value.style.chart.legend), At = v(() => e.value.style.chart.title), { exportSvg: St, getSvg: xt } = na({
|
|
472
|
+
svg: q,
|
|
473
|
+
title: At,
|
|
474
|
+
legend: Tt,
|
|
475
|
+
legendItems: _t,
|
|
476
|
+
backgroundColor: $t
|
|
477
|
+
});
|
|
478
|
+
async function Ue({ isCb: t }) {
|
|
479
|
+
if (t) {
|
|
480
|
+
const { blob: a, url: o, text: l, dataUrl: s } = await xt();
|
|
481
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: o, text: l, dataUrl: s });
|
|
482
|
+
} else
|
|
483
|
+
St();
|
|
458
484
|
}
|
|
459
|
-
return
|
|
460
|
-
getData:
|
|
461
|
-
getImage:
|
|
462
|
-
generatePdf:
|
|
485
|
+
return Ze({
|
|
486
|
+
getData: ht,
|
|
487
|
+
getImage: wt,
|
|
488
|
+
generatePdf: Pe,
|
|
463
489
|
generateCsv: ue,
|
|
464
|
-
generateImage:
|
|
490
|
+
generateImage: Oe,
|
|
491
|
+
generateSvg: Ue,
|
|
465
492
|
toggleTable: Be,
|
|
466
|
-
toggleTooltip:
|
|
493
|
+
toggleTooltip: Ee,
|
|
467
494
|
toggleAnnotator: ie,
|
|
468
495
|
toggleFullscreen: De
|
|
469
|
-
}), (t, a) => (
|
|
470
|
-
class:
|
|
496
|
+
}), (t, a) => (n(), u("div", {
|
|
497
|
+
class: G(`vue-data-ui-component vue-ui-radar ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
471
498
|
ref_key: "radarChart",
|
|
472
499
|
ref: C,
|
|
473
500
|
id: `vue-ui-radar_${b.value}`,
|
|
474
|
-
style:
|
|
501
|
+
style: K(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
475
502
|
onMouseenter: a[2] || (a[2] = () => r($e)(!0)),
|
|
476
503
|
onMouseleave: a[3] || (a[3] = () => r($e)(!1))
|
|
477
504
|
}, [
|
|
478
|
-
e.value.userOptions.buttons.annotator ? (
|
|
505
|
+
e.value.userOptions.buttons.annotator ? (n(), S(r(nt), {
|
|
479
506
|
key: 0,
|
|
480
|
-
svgRef: r(
|
|
507
|
+
svgRef: r(q),
|
|
481
508
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
482
509
|
color: e.value.style.chart.color,
|
|
483
|
-
active:
|
|
510
|
+
active: J.value,
|
|
484
511
|
onClose: ie
|
|
485
512
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
486
|
-
|
|
513
|
+
vt.value ? (n(), u("div", {
|
|
487
514
|
key: 1,
|
|
488
515
|
ref_key: "noTitle",
|
|
489
516
|
ref: ye,
|
|
490
517
|
class: "vue-data-ui-no-title-space",
|
|
491
518
|
style: "height:36px; width: 100%;background:transparent"
|
|
492
519
|
}, null, 512)) : d("", !0),
|
|
493
|
-
e.value.style.chart.title.text ? (
|
|
520
|
+
e.value.style.chart.title.text ? (n(), u("div", {
|
|
494
521
|
key: 2,
|
|
495
522
|
ref_key: "chartTitle",
|
|
496
523
|
ref: ge,
|
|
497
524
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
498
525
|
}, [
|
|
499
|
-
(
|
|
526
|
+
(n(), S(oa, {
|
|
500
527
|
key: `title_${be.value}`,
|
|
501
528
|
config: {
|
|
502
529
|
title: {
|
|
@@ -512,110 +539,112 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
512
539
|
], 512)) : d("", !0),
|
|
513
540
|
$("div", {
|
|
514
541
|
id: `legend-top-${b.value}`
|
|
515
|
-
}, null, 8,
|
|
516
|
-
e.value.userOptions.show && pe.value && (r(Te) || r(
|
|
542
|
+
}, null, 8, ia),
|
|
543
|
+
e.value.userOptions.show && pe.value && (r(Te) || r(ae)) ? (n(), S(r(rt), {
|
|
517
544
|
ref_key: "userOptionsRef",
|
|
518
|
-
ref:
|
|
545
|
+
ref: te,
|
|
519
546
|
key: `user_options_${he.value}`,
|
|
520
547
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
521
548
|
color: e.value.style.chart.color,
|
|
522
549
|
isImaging: r(xe),
|
|
523
|
-
isPrinting: r(
|
|
550
|
+
isPrinting: r(Se),
|
|
524
551
|
uid: b.value,
|
|
525
552
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
526
553
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
527
554
|
hasImg: e.value.userOptions.buttons.img,
|
|
555
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
528
556
|
hasXls: e.value.userOptions.buttons.csv,
|
|
529
557
|
hasTable: e.value.userOptions.buttons.table,
|
|
530
558
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
531
|
-
isFullscreen:
|
|
559
|
+
isFullscreen: O.value,
|
|
532
560
|
isTooltip: y.value.showTooltip,
|
|
533
561
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
534
562
|
chartElement: C.value,
|
|
535
563
|
position: e.value.userOptions.position,
|
|
536
564
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
537
|
-
isAnnotation:
|
|
565
|
+
isAnnotation: J.value,
|
|
538
566
|
callbacks: e.value.userOptions.callbacks,
|
|
539
567
|
printScale: e.value.userOptions.print.scale,
|
|
540
568
|
tableDialog: e.value.table.useDialog,
|
|
541
569
|
onToggleFullscreen: De,
|
|
542
|
-
onGeneratePdf: r(
|
|
570
|
+
onGeneratePdf: r(Pe),
|
|
543
571
|
onGenerateCsv: ue,
|
|
544
|
-
onGenerateImage: r(
|
|
572
|
+
onGenerateImage: r(Oe),
|
|
573
|
+
onGenerateSvg: Ue,
|
|
545
574
|
onToggleTable: Be,
|
|
546
|
-
onToggleTooltip:
|
|
575
|
+
onToggleTooltip: Ee,
|
|
547
576
|
onToggleAnnotator: ie,
|
|
548
|
-
style:
|
|
549
|
-
visibility: r(Te) ? r(
|
|
577
|
+
style: K({
|
|
578
|
+
visibility: r(Te) ? r(ae) ? "visible" : "hidden" : "visible"
|
|
550
579
|
})
|
|
551
|
-
},
|
|
580
|
+
}, Ge({ _: 2 }, [
|
|
552
581
|
t.$slots.menuIcon ? {
|
|
553
582
|
name: "menuIcon",
|
|
554
|
-
fn:
|
|
555
|
-
|
|
583
|
+
fn: g(({ isOpen: o, color: l }) => [
|
|
584
|
+
f(t.$slots, "menuIcon", B(E({ isOpen: o, color: l })), void 0, !0)
|
|
556
585
|
]),
|
|
557
586
|
key: "0"
|
|
558
587
|
} : void 0,
|
|
559
588
|
t.$slots.optionTooltip ? {
|
|
560
589
|
name: "optionTooltip",
|
|
561
|
-
fn:
|
|
562
|
-
|
|
590
|
+
fn: g(() => [
|
|
591
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
563
592
|
]),
|
|
564
593
|
key: "1"
|
|
565
594
|
} : void 0,
|
|
566
595
|
t.$slots.optionPdf ? {
|
|
567
596
|
name: "optionPdf",
|
|
568
|
-
fn:
|
|
569
|
-
|
|
597
|
+
fn: g(() => [
|
|
598
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
570
599
|
]),
|
|
571
600
|
key: "2"
|
|
572
601
|
} : void 0,
|
|
573
602
|
t.$slots.optionCsv ? {
|
|
574
603
|
name: "optionCsv",
|
|
575
|
-
fn:
|
|
576
|
-
|
|
604
|
+
fn: g(() => [
|
|
605
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
577
606
|
]),
|
|
578
607
|
key: "3"
|
|
579
608
|
} : void 0,
|
|
580
609
|
t.$slots.optionImg ? {
|
|
581
610
|
name: "optionImg",
|
|
582
|
-
fn:
|
|
583
|
-
|
|
611
|
+
fn: g(() => [
|
|
612
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
584
613
|
]),
|
|
585
614
|
key: "4"
|
|
586
615
|
} : void 0,
|
|
587
616
|
t.$slots.optionTable ? {
|
|
588
617
|
name: "optionTable",
|
|
589
|
-
fn:
|
|
590
|
-
|
|
618
|
+
fn: g(() => [
|
|
619
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
591
620
|
]),
|
|
592
621
|
key: "5"
|
|
593
622
|
} : void 0,
|
|
594
623
|
t.$slots.optionFullscreen ? {
|
|
595
624
|
name: "optionFullscreen",
|
|
596
|
-
fn:
|
|
597
|
-
|
|
625
|
+
fn: g(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
626
|
+
f(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
598
627
|
]),
|
|
599
628
|
key: "6"
|
|
600
629
|
} : void 0,
|
|
601
630
|
t.$slots.optionAnnotator ? {
|
|
602
631
|
name: "optionAnnotator",
|
|
603
|
-
fn:
|
|
604
|
-
|
|
632
|
+
fn: g(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
633
|
+
f(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
605
634
|
]),
|
|
606
635
|
key: "7"
|
|
607
636
|
} : void 0
|
|
608
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
609
|
-
(
|
|
637
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
638
|
+
(n(), u("svg", {
|
|
610
639
|
ref_key: "svgRef",
|
|
611
|
-
ref:
|
|
612
|
-
xmlns: r(
|
|
613
|
-
class:
|
|
640
|
+
ref: q,
|
|
641
|
+
xmlns: r(Ut),
|
|
642
|
+
class: G({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
614
643
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
615
|
-
style:
|
|
644
|
+
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
616
645
|
}, [
|
|
617
|
-
|
|
618
|
-
t.$slots["chart-background"] ? (
|
|
646
|
+
Q(r(ut)),
|
|
647
|
+
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
619
648
|
key: 0,
|
|
620
649
|
x: 0,
|
|
621
650
|
y: 0,
|
|
@@ -625,10 +654,10 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
625
654
|
pointerEvents: "none"
|
|
626
655
|
}
|
|
627
656
|
}, [
|
|
628
|
-
|
|
629
|
-
], 8,
|
|
657
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
658
|
+
], 8, va)) : d("", !0),
|
|
630
659
|
$("defs", null, [
|
|
631
|
-
(
|
|
660
|
+
(n(!0), u(I, null, L(m.value, (o, l) => (n(), u("radialGradient", {
|
|
632
661
|
cx: "50%",
|
|
633
662
|
cy: "50%",
|
|
634
663
|
r: "50%",
|
|
@@ -638,35 +667,35 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
638
667
|
}, [
|
|
639
668
|
$("stop", {
|
|
640
669
|
offset: "0%",
|
|
641
|
-
"stop-color": r(de)(r(
|
|
642
|
-
}, null, 8,
|
|
670
|
+
"stop-color": r(de)(r(Vt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
671
|
+
}, null, 8, pa),
|
|
643
672
|
$("stop", {
|
|
644
673
|
offset: "100%",
|
|
645
674
|
"stop-color": r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
646
|
-
}, null, 8,
|
|
647
|
-
], 8,
|
|
675
|
+
}, null, 8, ha)
|
|
676
|
+
], 8, da))), 256))
|
|
648
677
|
]),
|
|
649
|
-
e.value.style.chart.layout.grid.show ? (
|
|
650
|
-
(
|
|
678
|
+
e.value.style.chart.layout.grid.show ? (n(), u("g", ga, [
|
|
679
|
+
(n(!0), u(I, null, L(A.value, (o) => (n(), u("line", {
|
|
651
680
|
x1: i.value.width / 2,
|
|
652
681
|
y1: i.value.height / 2,
|
|
653
682
|
x2: o.x,
|
|
654
683
|
y2: o.y,
|
|
655
684
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
656
685
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
657
|
-
}, null, 8,
|
|
658
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (
|
|
659
|
-
(
|
|
660
|
-
d: r(
|
|
686
|
+
}, null, 8, fa))), 256)),
|
|
687
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (n(), u("g", ma, [
|
|
688
|
+
(n(!0), u(I, null, L(gt.value, (o) => (n(), u("path", {
|
|
689
|
+
d: r(He)({
|
|
661
690
|
plot: { x: i.value.width / 2, y: i.value.height / 2 },
|
|
662
691
|
radius: o,
|
|
663
|
-
sides:
|
|
692
|
+
sides: Ne.value,
|
|
664
693
|
rotation: 0
|
|
665
694
|
}).path,
|
|
666
695
|
fill: "none",
|
|
667
696
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
668
697
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
669
|
-
}, null, 8,
|
|
698
|
+
}, null, 8, ya))), 256))
|
|
670
699
|
])) : d("", !0)
|
|
671
700
|
])) : d("", !0),
|
|
672
701
|
$("path", {
|
|
@@ -676,62 +705,62 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
676
705
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
677
706
|
"stroke-linejoin": "round",
|
|
678
707
|
"stroke-linecap": "round"
|
|
679
|
-
}, null, 8,
|
|
680
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (
|
|
681
|
-
(
|
|
708
|
+
}, null, 8, ba),
|
|
709
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (n(), u("g", ka, [
|
|
710
|
+
(n(!0), u(I, null, L(A.value, (o, l) => (n(), u("text", {
|
|
682
711
|
class: "vue-ui-radar-apex-label",
|
|
683
712
|
x: o.labelX,
|
|
684
713
|
y: o.labelY,
|
|
685
714
|
"text-anchor": o.labelAnchor,
|
|
686
715
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
687
716
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
688
|
-
onMouseenter: (
|
|
689
|
-
onMouseleave: (
|
|
690
|
-
onClick: (
|
|
691
|
-
},
|
|
717
|
+
onMouseenter: (s) => Ct(o, l),
|
|
718
|
+
onMouseleave: (s) => bt(o, l),
|
|
719
|
+
onClick: (s) => kt(o, l)
|
|
720
|
+
}, X(o.name), 41, Ca))), 256))
|
|
692
721
|
])) : d("", !0),
|
|
693
|
-
(
|
|
722
|
+
(n(!0), u(I, null, L(m.value, (o, l) => (n(), u("g", null, [
|
|
694
723
|
$("g", null, [
|
|
695
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (
|
|
724
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
696
725
|
key: 0,
|
|
697
|
-
points: r(
|
|
726
|
+
points: r(Je)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
698
727
|
stroke: e.value.style.chart.backgroundColor,
|
|
699
728
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
700
729
|
fill: "none",
|
|
701
|
-
class:
|
|
702
|
-
}, null, 10,
|
|
703
|
-
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (
|
|
730
|
+
class: G({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": D.value && V.value === l && e.value.useCssAnimation })
|
|
731
|
+
}, null, 10, wa)) : d("", !0),
|
|
732
|
+
e.value.useCssAnimation || !e.value.useCssAnimation && !p.value.includes(l) ? (n(), u("polygon", {
|
|
704
733
|
key: 1,
|
|
705
|
-
points: r(
|
|
734
|
+
points: r(Je)(A.value.map((s) => s.plots[l]), !1, !0),
|
|
706
735
|
stroke: o.color,
|
|
707
736
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
708
737
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${b.value}_${l})` : r(de)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
709
|
-
class:
|
|
710
|
-
}, null, 10,
|
|
738
|
+
class: G({ "animated-out": p.value.includes(l) && e.value.useCssAnimation, "animated-in": D.value && V.value === l && e.value.useCssAnimation })
|
|
739
|
+
}, null, 10, _a)) : d("", !0)
|
|
711
740
|
])
|
|
712
741
|
]))), 256)),
|
|
713
|
-
e.value.style.chart.layout.plots.show ? (
|
|
714
|
-
(
|
|
715
|
-
(
|
|
716
|
-
cx:
|
|
717
|
-
cy:
|
|
718
|
-
fill: p.value.includes(
|
|
719
|
-
r:
|
|
720
|
-
stroke: p.value.includes(
|
|
742
|
+
e.value.style.chart.layout.plots.show ? (n(), u("g", $a, [
|
|
743
|
+
(n(!0), u(I, null, L(A.value, (o, l) => (n(), u("g", null, [
|
|
744
|
+
(n(!0), u(I, null, L(o.plots, (s, h) => (n(), u("circle", {
|
|
745
|
+
cx: s.x,
|
|
746
|
+
cy: s.y,
|
|
747
|
+
fill: p.value.includes(h) ? "transparent" : m.value[h] ? m.value[h].color : "transparent",
|
|
748
|
+
r: j.value !== null && j.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
749
|
+
stroke: p.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
721
750
|
"stroke-width": 0.5,
|
|
722
|
-
class:
|
|
723
|
-
}, null, 10,
|
|
751
|
+
class: G({ "animated-out": p.value.includes(h) && e.value.useCssAnimation, "animated-in": D.value && V.value === h && e.value.useCssAnimation })
|
|
752
|
+
}, null, 10, Ta))), 256))
|
|
724
753
|
]))), 256))
|
|
725
754
|
])) : d("", !0),
|
|
726
|
-
|
|
727
|
-
], 14,
|
|
728
|
-
t.$slots.watermark ? (
|
|
729
|
-
|
|
755
|
+
f(t.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
756
|
+
], 14, ca)),
|
|
757
|
+
t.$slots.watermark ? (n(), u("div", Aa, [
|
|
758
|
+
f(t.$slots, "watermark", B(E({ isPrinting: r(Se) || r(xe) })), void 0, !0)
|
|
730
759
|
])) : d("", !0),
|
|
731
760
|
$("div", {
|
|
732
761
|
id: `legend-bottom-${b.value}`
|
|
733
|
-
}, null, 8,
|
|
734
|
-
we.value ? (
|
|
762
|
+
}, null, 8, Sa),
|
|
763
|
+
we.value ? (n(), S(It, {
|
|
735
764
|
key: 5,
|
|
736
765
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
737
766
|
}, [
|
|
@@ -739,40 +768,36 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
739
768
|
ref_key: "chartLegend",
|
|
740
769
|
ref: fe
|
|
741
770
|
}, [
|
|
742
|
-
e.value.style.chart.legend.show ? (
|
|
771
|
+
e.value.style.chart.legend.show ? (n(), S(la, {
|
|
743
772
|
key: `legend_${Ce.value}`,
|
|
744
|
-
legendSet:
|
|
745
|
-
config:
|
|
773
|
+
legendSet: P.value,
|
|
774
|
+
config: yt.value,
|
|
746
775
|
onClickMarker: a[0] || (a[0] = ({ i: o }) => Ie(o))
|
|
747
776
|
}, {
|
|
748
|
-
item:
|
|
749
|
-
r(_e) ? d("", !0) : (
|
|
777
|
+
item: g(({ legend: o, index: l }) => [
|
|
778
|
+
r(_e) ? d("", !0) : (n(), u("div", {
|
|
750
779
|
key: 0,
|
|
751
|
-
onClick: (
|
|
752
|
-
style:
|
|
753
|
-
},
|
|
754
|
-
v: o.totalProportion * 100,
|
|
755
|
-
s: "%",
|
|
756
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
757
|
-
})), 13, ka))
|
|
780
|
+
onClick: (s) => o.segregate(),
|
|
781
|
+
style: K(`opacity:${p.value.includes(l) ? 0.5 : 1}`)
|
|
782
|
+
}, X(o.display), 13, xa))
|
|
758
783
|
]),
|
|
759
784
|
_: 1
|
|
760
|
-
}, 8, ["legendSet", "config"])) :
|
|
785
|
+
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
761
786
|
key: 1,
|
|
762
|
-
legend:
|
|
787
|
+
legend: P.value
|
|
763
788
|
}, void 0, !0)
|
|
764
789
|
], 512)
|
|
765
790
|
], 8, ["to"])) : d("", !0),
|
|
766
|
-
t.$slots.source ? (
|
|
791
|
+
t.$slots.source ? (n(), u("div", {
|
|
767
792
|
key: 6,
|
|
768
793
|
ref_key: "source",
|
|
769
794
|
ref: me,
|
|
770
795
|
dir: "auto"
|
|
771
796
|
}, [
|
|
772
|
-
|
|
797
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
773
798
|
], 512)) : d("", !0),
|
|
774
|
-
|
|
775
|
-
show: y.value.showTooltip &&
|
|
799
|
+
Q(r(tt), {
|
|
800
|
+
show: y.value.showTooltip && Z.value,
|
|
776
801
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
777
802
|
color: e.value.style.chart.tooltip.color,
|
|
778
803
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -783,50 +808,50 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
783
808
|
position: e.value.style.chart.tooltip.position,
|
|
784
809
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
785
810
|
parent: C.value,
|
|
786
|
-
content:
|
|
787
|
-
isFullscreen:
|
|
811
|
+
content: ee.value,
|
|
812
|
+
isFullscreen: O.value,
|
|
788
813
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
789
814
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
790
815
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
791
816
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
792
817
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
793
818
|
}, {
|
|
794
|
-
"tooltip-before":
|
|
795
|
-
|
|
819
|
+
"tooltip-before": g(() => [
|
|
820
|
+
f(t.$slots, "tooltip-before", B(E({ ...re.value })), void 0, !0)
|
|
796
821
|
]),
|
|
797
|
-
"tooltip-after":
|
|
798
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (
|
|
799
|
-
|
|
822
|
+
"tooltip-after": g(() => [
|
|
823
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (n(), u("div", Pa, [
|
|
824
|
+
Q(r(ot), {
|
|
800
825
|
dataset: ne.value,
|
|
801
|
-
config:
|
|
826
|
+
config: dt.value,
|
|
802
827
|
backgroundOpacity: 0
|
|
803
828
|
}, null, 8, ["dataset", "config"])
|
|
804
829
|
])),
|
|
805
|
-
|
|
830
|
+
f(t.$slots, "tooltip-after", B(E({ ...re.value })), void 0, !0)
|
|
806
831
|
]),
|
|
807
832
|
_: 3
|
|
808
833
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
809
|
-
pe.value && e.value.userOptions.buttons.table ? (
|
|
834
|
+
pe.value && e.value.userOptions.buttons.table ? (n(), S(Lt(W.value.component), Nt({ key: 7 }, W.value.props, {
|
|
810
835
|
ref_key: "tableUnit",
|
|
811
|
-
ref:
|
|
812
|
-
onClose:
|
|
813
|
-
}),
|
|
814
|
-
content:
|
|
815
|
-
(
|
|
836
|
+
ref: U,
|
|
837
|
+
onClose: Me
|
|
838
|
+
}), Ge({
|
|
839
|
+
content: g(() => [
|
|
840
|
+
(n(), S(r(st), {
|
|
816
841
|
key: `table_${ke.value}`,
|
|
817
|
-
colNames:
|
|
818
|
-
head:
|
|
819
|
-
body:
|
|
820
|
-
config:
|
|
821
|
-
title: e.value.table.useDialog ? "" :
|
|
842
|
+
colNames: H.value.colNames,
|
|
843
|
+
head: H.value.head,
|
|
844
|
+
body: H.value.body,
|
|
845
|
+
config: H.value.config,
|
|
846
|
+
title: e.value.table.useDialog ? "" : W.value.title,
|
|
822
847
|
withCloseButton: !e.value.table.useDialog,
|
|
823
|
-
onClose:
|
|
848
|
+
onClose: Me
|
|
824
849
|
}, {
|
|
825
|
-
th:
|
|
826
|
-
ve(
|
|
850
|
+
th: g(({ th: o }) => [
|
|
851
|
+
ve(X(o.name), 1)
|
|
827
852
|
]),
|
|
828
|
-
td:
|
|
829
|
-
ve(
|
|
853
|
+
td: g(({ td: o }) => [
|
|
854
|
+
ve(X(o), 1)
|
|
830
855
|
]),
|
|
831
856
|
_: 1
|
|
832
857
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -835,32 +860,32 @@ const ea = ["id"], ta = ["id"], aa = ["xmlns", "viewBox"], oa = ["width", "heigh
|
|
|
835
860
|
}, [
|
|
836
861
|
e.value.table.useDialog ? {
|
|
837
862
|
name: "title",
|
|
838
|
-
fn:
|
|
839
|
-
ve(
|
|
863
|
+
fn: g(() => [
|
|
864
|
+
ve(X(W.value.title), 1)
|
|
840
865
|
]),
|
|
841
866
|
key: "0"
|
|
842
867
|
} : void 0,
|
|
843
868
|
e.value.table.useDialog ? {
|
|
844
869
|
name: "actions",
|
|
845
|
-
fn:
|
|
870
|
+
fn: g(() => [
|
|
846
871
|
$("button", {
|
|
847
872
|
tabindex: "0",
|
|
848
873
|
class: "vue-ui-user-options-button",
|
|
849
874
|
onClick: a[1] || (a[1] = (o) => ue(e.value.userOptions.callbacks.csv))
|
|
850
875
|
}, [
|
|
851
|
-
|
|
876
|
+
Q(r(at), {
|
|
852
877
|
name: "excel",
|
|
853
|
-
stroke:
|
|
878
|
+
stroke: W.value.props.color
|
|
854
879
|
}, null, 8, ["stroke"])
|
|
855
880
|
])
|
|
856
881
|
]),
|
|
857
882
|
key: "1"
|
|
858
883
|
} : void 0
|
|
859
884
|
]), 1040)) : d("", !0),
|
|
860
|
-
r(_e) ? (
|
|
861
|
-
], 46,
|
|
885
|
+
r(_e) ? (n(), S(Kt, { key: 8 })) : d("", !0)
|
|
886
|
+
], 46, ua));
|
|
862
887
|
}
|
|
863
|
-
},
|
|
888
|
+
}, qa = /* @__PURE__ */ ra(Oa, [["__scopeId", "data-v-cfb6bdec"]]);
|
|
864
889
|
export {
|
|
865
|
-
|
|
890
|
+
qa as default
|
|
866
891
|
};
|