vue-data-ui 3.2.8 → 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-C40g0Rfc.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-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.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-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.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,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent 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
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import { defineAsyncComponent as P, computed as p, ref as d, toRefs as Lt, watch as Z, shallowRef as qe, onMounted as St, onBeforeUnmount as Pt, watchEffect as Ot, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as F, normalizeClass as X, createBlock as M, createCommentVNode as y, createElementVNode as N, createVNode as me, createSlots as Je, withCtx as b, renderSlot as g, normalizeProps as U, guardReactiveProps as W, Fragment as A, renderList as I, toDisplayString as B, Teleport as Dt, resolveDynamicComponent as Rt, mergeProps as Bt, createTextVNode as Ke, nextTick as Et } from "vue";
|
|
2
|
+
import { c as ye, t as Ht, b as Ut, p as ee, o as Qe, f as Ze, g as Wt, e as Vt, h as jt, C as Gt, T as Xt, U as Yt, V as qt, X as Jt, L as Kt, z as et, D as te, x as Qt, y as Zt, a as tt, d as at, A as ea } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as lt, u as ta } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as aa, a as ot } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as la } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as oa, B as sa } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as na } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as ia } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ua } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as ra } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import { t as ca } from "./themes-Dw-dDudK.js";
|
|
12
|
+
import va from "./Title-D17CJXko.js";
|
|
13
|
+
import da from "./Legend-DsogCeTb.js";
|
|
14
|
+
import { _ as ha } from "./Shape-DJG2zW7b.js";
|
|
15
|
+
import pa from "./img-6wPuVVtk.js";
|
|
16
|
+
import { _ as ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const ya = ["id"], fa = ["id"], ba = ["xmlns", "viewBox"], ga = ["x", "y", "width", "height"], xa = { style: { "pointer-events": "none" } }, ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ca = { key: 0 }, Aa = ["x", "y", "fill", "font-size", "font-weight"], $a = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ta = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], za = { key: 0 }, _a = ["x", "y", "font-size", "fill"], Fa = ["width", "x", "y"], Ma = { style: { width: "100%" } }, Na = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], Ia = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "onMouseenter", "onMouseleave", "onClick"], Sa = {
|
|
17
18
|
key: 4,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, Pa = ["id"], Oa = ["onClick"], Da = ["innerHTML"], Ra = {
|
|
20
21
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -33,25 +34,25 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["selectLegend", "selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
37
|
+
setup(st, { expose: nt, emit: it }) {
|
|
38
|
+
const ut = P(() => import("./Tooltip-CtVdvbZi.js")), rt = P(() => import("./BaseIcon-CtqN7W_g.js")), ct = P(() => import("./vue-ui-accordion-Dch9YrCi.js")), vt = P(() => import("./DataTable-BeI6gYJX.js")), dt = P(() => import("./PenAndPaper-BxbYiPy4.js")), ht = P(() => import("./UserOptions-B3vCIe-u.js")), pt = P(() => import("./PackageVersion-C9oklnuy.js")), mt = P(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_parallel_coordinate_plot: yt } = aa(), $ = st, Y = p({
|
|
38
39
|
get() {
|
|
39
40
|
return !!$.dataset && $.dataset.length;
|
|
40
41
|
},
|
|
41
42
|
set(t) {
|
|
42
43
|
return t;
|
|
43
44
|
}
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
46
|
-
D.value = t,
|
|
45
|
+
}), fe = d(0), z = d(null), be = d(null), ge = d(null), xe = d(null), ke = d(null), we = d(0), Ce = d(0), Ae = d(0), $e = d(!1), V = d(null), ae = d(null), le = d(null), O = d(ye()), D = d(!1);
|
|
46
|
+
function Te(t) {
|
|
47
|
+
D.value = t, fe.value += 1;
|
|
47
48
|
}
|
|
48
|
-
const e = d(
|
|
49
|
-
...
|
|
49
|
+
const e = d(ie()), { loading: R, FINAL_DATASET: ft, manualLoading: oe } = oa({
|
|
50
|
+
...Lt($),
|
|
50
51
|
FINAL_CONFIG: e,
|
|
51
|
-
prepareConfig:
|
|
52
|
+
prepareConfig: ie,
|
|
52
53
|
callback: () => {
|
|
53
54
|
Promise.resolve().then(async () => {
|
|
54
|
-
await
|
|
55
|
+
await Et(), m.value.showTable = e.value.table.show;
|
|
55
56
|
});
|
|
56
57
|
},
|
|
57
58
|
skeletonDataset: [
|
|
@@ -89,7 +90,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
89
90
|
]
|
|
90
91
|
}
|
|
91
92
|
],
|
|
92
|
-
skeletonConfig:
|
|
93
|
+
skeletonConfig: Ht({
|
|
93
94
|
defaultConfig: e.value,
|
|
94
95
|
userConfig: {
|
|
95
96
|
useCssAnimation: !1,
|
|
@@ -116,41 +117,41 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
})
|
|
119
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility:
|
|
120
|
-
function
|
|
121
|
-
const t =
|
|
120
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: ze, keepUserOptionState: _e } = ia({ config: e.value }), { svgRef: ne } = ua({ config: e.value.style.chart.title });
|
|
121
|
+
function ie() {
|
|
122
|
+
const t = ot({
|
|
122
123
|
userConfig: $.config,
|
|
123
|
-
defaultConfig:
|
|
124
|
+
defaultConfig: yt
|
|
124
125
|
});
|
|
125
126
|
return t.theme ? {
|
|
126
|
-
...
|
|
127
|
-
userConfig:
|
|
127
|
+
...ot({
|
|
128
|
+
userConfig: ca.vue_ui_parallel_coordinate_plot[t.theme] || $.config,
|
|
128
129
|
defaultConfig: t
|
|
129
130
|
}),
|
|
130
|
-
customPalette:
|
|
131
|
+
customPalette: Ut[t.theme] || ee
|
|
131
132
|
} : t;
|
|
132
133
|
}
|
|
133
134
|
Z(() => $.config, (t) => {
|
|
134
|
-
R.value || (e.value =
|
|
135
|
+
R.value || (e.value = ie()), se.value = !e.value.userOptions.showOnChartHover, Me(), we.value += 1, Ae.value += 1, Ce.value += 1, m.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
135
136
|
}, { deep: !0 }), Z(() => $.dataset, (t) => {
|
|
136
137
|
Array.isArray(t) && t.length > 0 && (oe.value = !1);
|
|
137
138
|
}, { deep: !0 });
|
|
138
|
-
const L =
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
const L = qe(null), E = qe(null);
|
|
140
|
+
St(() => {
|
|
141
|
+
$e.value = !0, Me();
|
|
141
142
|
});
|
|
142
|
-
const Fe =
|
|
143
|
+
const Fe = p(() => !!e.value.debug);
|
|
143
144
|
function Me() {
|
|
144
|
-
if (
|
|
145
|
+
if (Qe($.dataset) ? (Ze({
|
|
145
146
|
componentName: "VueUiParallelCoordinatePlot",
|
|
146
147
|
type: "dataset",
|
|
147
148
|
debug: Fe.value
|
|
148
149
|
}), oe.value = !0) : $.dataset.forEach((t, o) => {
|
|
149
|
-
|
|
150
|
+
Wt({
|
|
150
151
|
datasetObject: t,
|
|
151
152
|
requiredAttributes: ["name", "series"]
|
|
152
153
|
}).forEach((a) => {
|
|
153
|
-
Y.value = !1,
|
|
154
|
+
Y.value = !1, Ze({
|
|
154
155
|
componentName: "VueUiParallelCoordinatePlot",
|
|
155
156
|
type: "datasetSerieAttribute",
|
|
156
157
|
property: a,
|
|
@@ -158,14 +159,14 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
158
159
|
debug: Fe.value
|
|
159
160
|
});
|
|
160
161
|
});
|
|
161
|
-
}),
|
|
162
|
-
const t =
|
|
163
|
-
const { width: o, height: a } =
|
|
162
|
+
}), Qe($.dataset) || (oe.value = e.value.loading), e.value.responsive) {
|
|
163
|
+
const t = lt(() => {
|
|
164
|
+
const { width: o, height: a } = ta({
|
|
164
165
|
chart: z.value,
|
|
165
|
-
title: e.value.style.chart.title.text ?
|
|
166
|
-
legend: e.value.style.chart.legend.show ?
|
|
167
|
-
source:
|
|
168
|
-
noTitle:
|
|
166
|
+
title: e.value.style.chart.title.text ? be.value : null,
|
|
167
|
+
legend: e.value.style.chart.legend.show ? ge.value : null,
|
|
168
|
+
source: xe.value,
|
|
169
|
+
noTitle: ke.value
|
|
169
170
|
});
|
|
170
171
|
requestAnimationFrame(() => {
|
|
171
172
|
c.value.width = o, c.value.height = a - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = te({
|
|
@@ -198,14 +199,14 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
198
199
|
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(t), E.value = z.value.parentNode, L.value.observe(E.value);
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
|
-
|
|
202
|
+
Pt(() => {
|
|
202
203
|
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
|
|
203
204
|
});
|
|
204
|
-
const { isPrinting: Ne, isImaging: Ie, generatePdf: Le, generateImage:
|
|
205
|
-
elementId: `pcp_${
|
|
205
|
+
const { isPrinting: Ne, isImaging: Ie, generatePdf: Le, generateImage: Se } = la({
|
|
206
|
+
elementId: `pcp_${O.value}`,
|
|
206
207
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
207
208
|
options: e.value.userOptions.print
|
|
208
|
-
}),
|
|
209
|
+
}), bt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
|
|
209
210
|
height: e.value.style.chart.height,
|
|
210
211
|
width: e.value.style.chart.width,
|
|
211
212
|
plotSize: e.value.style.chart.plots.radius,
|
|
@@ -214,19 +215,19 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
214
215
|
// ratio 42.85
|
|
215
216
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
216
217
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
217
|
-
}),
|
|
218
|
+
}), Pe = p(() => c.value.width), Oe = p(() => c.value.height), j = d(0), gt = lt((t) => {
|
|
218
219
|
j.value = t;
|
|
219
220
|
}, 100);
|
|
220
|
-
|
|
221
|
+
Ot((t) => {
|
|
221
222
|
const o = le.value;
|
|
222
223
|
if (!o) return;
|
|
223
224
|
const a = new ResizeObserver((s) => {
|
|
224
|
-
|
|
225
|
+
gt(s[0].contentRect.height);
|
|
225
226
|
});
|
|
226
227
|
a.observe(o), t(() => a.disconnect());
|
|
227
228
|
});
|
|
228
|
-
const h =
|
|
229
|
-
const { top: t, right: o, bottom: a, left: s } = e.value.style.chart.padding, l =
|
|
229
|
+
const h = p(() => {
|
|
230
|
+
const { top: t, right: o, bottom: a, left: s } = e.value.style.chart.padding, l = Oe.value, r = Pe.value;
|
|
230
231
|
return {
|
|
231
232
|
chartHeight: Math.max(1e-3, l),
|
|
232
233
|
chartWidth: Math.max(1e-3, r),
|
|
@@ -237,7 +238,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
237
238
|
right: r - o,
|
|
238
239
|
bottom: l - a - c.value.datapointFontSize
|
|
239
240
|
};
|
|
240
|
-
}),
|
|
241
|
+
}), xt = p(() => Vt(e.value.customPalette)), m = d({
|
|
241
242
|
dataLabels: {
|
|
242
243
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
243
244
|
},
|
|
@@ -245,7 +246,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
245
246
|
showTooltip: e.value.style.chart.tooltip.show
|
|
246
247
|
});
|
|
247
248
|
Z(e, () => {
|
|
248
|
-
|
|
249
|
+
m.value = {
|
|
249
250
|
dataLabels: {
|
|
250
251
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
251
252
|
},
|
|
@@ -257,41 +258,42 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
257
258
|
function De(t) {
|
|
258
259
|
_.value.includes(t) ? _.value = _.value.filter((o) => o !== t) : _.value.push(t);
|
|
259
260
|
}
|
|
260
|
-
const
|
|
261
|
-
const a =
|
|
261
|
+
const S = p(() => ft.value.map((t, o) => {
|
|
262
|
+
const a = jt(t.color) || xt.value[o] || ee[o] || ee[o % ee.length];
|
|
262
263
|
return {
|
|
263
264
|
...t,
|
|
264
265
|
series: t.series.map((s) => ({
|
|
265
266
|
...s,
|
|
266
|
-
id:
|
|
267
|
+
id: ye(),
|
|
267
268
|
color: a
|
|
268
269
|
})),
|
|
269
270
|
seriesIndex: o,
|
|
270
271
|
color: a,
|
|
271
|
-
id:
|
|
272
|
+
id: ye(),
|
|
272
273
|
shape: t.shape || "circle"
|
|
273
274
|
};
|
|
274
|
-
})),
|
|
275
|
+
})), Re = p(() => S.value.map((t) => ({
|
|
275
276
|
...t,
|
|
276
277
|
opacity: _.value.includes(t.id) ? 0.5 : 1,
|
|
277
278
|
segregate: () => De(t.id),
|
|
278
|
-
isSegregated: _.value.includes(t.id)
|
|
279
|
-
|
|
279
|
+
isSegregated: _.value.includes(t.id),
|
|
280
|
+
shape: "circle"
|
|
281
|
+
}))), kt = p(() => ({
|
|
280
282
|
cy: "pcp-div-legend",
|
|
281
283
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
282
284
|
color: e.value.style.chart.legend.color,
|
|
283
285
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
284
286
|
paddingBottom: 12,
|
|
285
287
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
286
|
-
})),
|
|
287
|
-
...
|
|
288
|
-
)), C =
|
|
288
|
+
})), Be = p(() => Math.max(
|
|
289
|
+
...S.value.filter((t) => !_.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((o) => o.values.length)))
|
|
290
|
+
)), C = p(() => h.value.width / Be.value), ue = p(() => S.value.filter((t) => !_.value.includes(t.id))), f = p(() => {
|
|
289
291
|
let t = [];
|
|
290
|
-
for (let o = 0; o <
|
|
291
|
-
const a = Math.min(...
|
|
292
|
-
const
|
|
292
|
+
for (let o = 0; o < Be.value; o += 1) {
|
|
293
|
+
const a = Math.min(...ue.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), s = Math.max(...ue.value.flatMap((x) => x.series.map((k) => k.values[o] || 0) || 0)), l = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = Gt(l, r, e.value.style.chart.yAxis.scaleTicks), T = i.ticks.map((x, k) => {
|
|
294
|
+
const Nt = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), It = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
293
295
|
return {
|
|
294
|
-
y: h.value.bottom - h.value.height * (
|
|
296
|
+
y: h.value.bottom - h.value.height * (Nt / It),
|
|
295
297
|
x: h.value.left + C.value * o + C.value / 2,
|
|
296
298
|
value: x
|
|
297
299
|
};
|
|
@@ -303,7 +305,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
303
305
|
});
|
|
304
306
|
}
|
|
305
307
|
return t;
|
|
306
|
-
}),
|
|
308
|
+
}), re = p(() => ue.value.map((t, o) => ({
|
|
307
309
|
...t,
|
|
308
310
|
series: t.series.map((a, s) => ({
|
|
309
311
|
...a,
|
|
@@ -325,7 +327,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
325
327
|
})).map((t) => ({
|
|
326
328
|
...t,
|
|
327
329
|
series: t.series.map((o) => {
|
|
328
|
-
const a =
|
|
330
|
+
const a = Xt(o.datapoints), s = Yt(o.datapoints), l = qt(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${a}`);
|
|
329
331
|
return {
|
|
330
332
|
...o,
|
|
331
333
|
smoothPath: s,
|
|
@@ -334,11 +336,11 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
334
336
|
};
|
|
335
337
|
})
|
|
336
338
|
})));
|
|
337
|
-
function
|
|
338
|
-
return
|
|
339
|
+
function Ee({ value: t, index: o, datapoint: a }) {
|
|
340
|
+
return tt(
|
|
339
341
|
e.value.style.chart.yAxis.labels.formatters[o] || null,
|
|
340
342
|
t,
|
|
341
|
-
|
|
343
|
+
at({
|
|
342
344
|
p: e.value.style.chart.yAxis.labels.prefixes[o] || "",
|
|
343
345
|
v: t,
|
|
344
346
|
s: e.value.style.chart.yAxis.labels.suffixes[o] || "",
|
|
@@ -347,24 +349,24 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
347
349
|
{ datapoint: a, seriesIndex: o }
|
|
348
350
|
);
|
|
349
351
|
}
|
|
350
|
-
const w = d(null),
|
|
352
|
+
const w = d(null), ce = d(null), ve = d(!1), de = d("");
|
|
351
353
|
function q({ shape: t, serie: o, S: a }) {
|
|
352
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: t }, seriesIndex: a }), w.value = null,
|
|
354
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...o, shape: t }, seriesIndex: a }), w.value = null, ve.value = null;
|
|
353
355
|
}
|
|
354
356
|
function J({ shape: t, serieName: o, serie: a, relativeIndex: s, seriesIndex: l, S: r }) {
|
|
355
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }),
|
|
357
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ce.value = { serie: a, relativeIndex: s, seriesIndex: l, series: S.value, scales: f.value }, ve.value = !0, w.value = a.id;
|
|
356
358
|
let i = "";
|
|
357
359
|
const T = e.value.style.chart.tooltip.customFormat;
|
|
358
|
-
|
|
360
|
+
et(T) && ea(() => T({
|
|
359
361
|
serie: a,
|
|
360
362
|
seriesIndex: a.seriesIndex,
|
|
361
|
-
series:
|
|
363
|
+
series: S.value,
|
|
362
364
|
config: e.value,
|
|
363
365
|
scales: f.value
|
|
364
|
-
})) ?
|
|
366
|
+
})) ? de.value = T({
|
|
365
367
|
serie: a,
|
|
366
368
|
seriesIndex: a.seriesIndex,
|
|
367
|
-
series:
|
|
369
|
+
series: S.value,
|
|
368
370
|
config: e.value,
|
|
369
371
|
scales: f.value
|
|
370
372
|
}) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o ? o + " - " : ""}${a.name}</div>`, f.value.map((x) => x.name).forEach((x, k) => {
|
|
@@ -372,10 +374,10 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
372
374
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
373
375
|
<span>${x}: </span>
|
|
374
376
|
<span>
|
|
375
|
-
${
|
|
377
|
+
${tt(
|
|
376
378
|
e.value.style.chart.yAxis.labels.formatters[k] || null,
|
|
377
379
|
a.datapoints[k].value,
|
|
378
|
-
|
|
380
|
+
at({
|
|
379
381
|
p: e.value.style.chart.yAxis.labels.prefixes[k] || "",
|
|
380
382
|
v: a.datapoints[k].value,
|
|
381
383
|
s: e.value.style.chart.yAxis.labels.suffixes[k] || "",
|
|
@@ -386,13 +388,13 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
386
388
|
</span>
|
|
387
389
|
</div>
|
|
388
390
|
`, e.value.style.chart.comments.showInTooltip && a.datapoints[k].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[k].comment}</div>`);
|
|
389
|
-
}),
|
|
391
|
+
}), de.value = `<div>${i}</div>`);
|
|
390
392
|
}
|
|
391
|
-
function
|
|
392
|
-
return
|
|
393
|
+
function wt() {
|
|
394
|
+
return S.value;
|
|
393
395
|
}
|
|
394
|
-
const H =
|
|
395
|
-
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o =
|
|
396
|
+
const H = p(() => {
|
|
397
|
+
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(f.value.map((l) => l.name)), o = re.value.flatMap((l, r) => l.series.map((i) => [l.name].concat([i.name]).concat(i.values))), a = {
|
|
396
398
|
th: {
|
|
397
399
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
398
400
|
color: e.value.table.th.color,
|
|
@@ -411,41 +413,41 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
411
413
|
config: a,
|
|
412
414
|
colNames: s
|
|
413
415
|
};
|
|
414
|
-
}),
|
|
416
|
+
}), He = p(() => re.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
415
417
|
head: H.value.head,
|
|
416
418
|
body: H.value.body
|
|
417
419
|
});
|
|
418
|
-
function
|
|
419
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a =
|
|
420
|
-
t ? t(r) :
|
|
420
|
+
function he(t = null) {
|
|
421
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = He.value.head, s = He.value.body, l = o.concat([a]).concat(s), r = Qt(l);
|
|
422
|
+
t ? t(r) : Zt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
421
423
|
}
|
|
422
|
-
const
|
|
424
|
+
const Ue = it;
|
|
423
425
|
function K({ serie: t, shape: o, S: a }) {
|
|
424
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, shape: o }, seriesIndex: a }),
|
|
426
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, shape: o }, seriesIndex: a }), Ue("selectDatapoint", t);
|
|
425
427
|
}
|
|
426
428
|
function We(t) {
|
|
427
|
-
|
|
429
|
+
Ue("selectLegend", {
|
|
428
430
|
...t,
|
|
429
431
|
isSegregated: !t.isSegregated,
|
|
430
432
|
opacity: t.isSegregated ? 1 : 0.5
|
|
431
433
|
});
|
|
432
434
|
}
|
|
433
|
-
function Ue() {
|
|
434
|
-
p.value.showTable = !p.value.showTable;
|
|
435
|
-
}
|
|
436
435
|
function Ve() {
|
|
437
|
-
|
|
436
|
+
m.value.showTable = !m.value.showTable;
|
|
438
437
|
}
|
|
439
438
|
function je() {
|
|
440
|
-
|
|
439
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
440
|
+
}
|
|
441
|
+
function Ge() {
|
|
442
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
441
443
|
}
|
|
442
444
|
const Q = d(!1);
|
|
443
|
-
function
|
|
445
|
+
function pe() {
|
|
444
446
|
Q.value = !Q.value;
|
|
445
447
|
}
|
|
446
|
-
async function
|
|
448
|
+
async function Ct({ scale: t = 2 } = {}) {
|
|
447
449
|
if (!z.value) return;
|
|
448
|
-
const { width: o, height: a } = z.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: r } = await
|
|
450
|
+
const { width: o, height: a } = z.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: r } = await pa({ domElement: z.value, base64: !0, img: !0, scale: t });
|
|
449
451
|
return {
|
|
450
452
|
imageUri: l,
|
|
451
453
|
base64: r,
|
|
@@ -455,24 +457,24 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
455
457
|
aspectRatio: s
|
|
456
458
|
};
|
|
457
459
|
}
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
+
const At = d({ start: 0, end: 1 }), $t = p(() => f.value.map((t) => t.name));
|
|
461
|
+
ra({
|
|
460
462
|
timeLabelsEls: le,
|
|
461
|
-
timeLabels:
|
|
462
|
-
slicer:
|
|
463
|
+
timeLabels: $t,
|
|
464
|
+
slicer: At,
|
|
463
465
|
configRef: e,
|
|
464
466
|
rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
|
|
465
467
|
autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
|
|
466
468
|
isAutoSize: !1,
|
|
467
|
-
width:
|
|
468
|
-
height:
|
|
469
|
+
width: Pe,
|
|
470
|
+
height: Oe,
|
|
469
471
|
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
470
472
|
rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
471
473
|
});
|
|
472
|
-
const G =
|
|
473
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
474
|
+
const G = p(() => {
|
|
475
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
|
|
474
476
|
return {
|
|
475
|
-
component: t ?
|
|
477
|
+
component: t ? mt : ct,
|
|
476
478
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
477
479
|
props: t ? {
|
|
478
480
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -499,55 +501,70 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
499
501
|
}
|
|
500
502
|
};
|
|
501
503
|
});
|
|
502
|
-
Z(() =>
|
|
504
|
+
Z(() => m.value.showTable, (t) => {
|
|
503
505
|
e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
|
|
504
506
|
});
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
+
function Xe() {
|
|
508
|
+
m.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
507
509
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
const Tt = p(() => e.value.style.chart.backgroundColor), zt = p(() => e.value.style.chart.legend), _t = p(() => e.value.style.chart.title), { exportSvg: Ft, getSvg: Mt } = na({
|
|
511
|
+
svg: ne,
|
|
512
|
+
title: _t,
|
|
513
|
+
legend: zt,
|
|
514
|
+
legendItems: Re,
|
|
515
|
+
backgroundColor: Tt
|
|
516
|
+
});
|
|
517
|
+
async function Ye({ isCb: t }) {
|
|
518
|
+
if (t) {
|
|
519
|
+
const { blob: o, url: a, text: s, dataUrl: l } = await Mt();
|
|
520
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: l });
|
|
521
|
+
} else
|
|
522
|
+
Ft();
|
|
523
|
+
}
|
|
524
|
+
return nt({
|
|
525
|
+
getData: wt,
|
|
526
|
+
getImage: Ct,
|
|
527
|
+
generateCsv: he,
|
|
512
528
|
generatePdf: Le,
|
|
513
|
-
generateImage:
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
529
|
+
generateImage: Se,
|
|
530
|
+
generateSvg: Ye,
|
|
531
|
+
toggleTable: Ve,
|
|
532
|
+
toggleLabels: je,
|
|
533
|
+
toggleTooltip: Ge,
|
|
534
|
+
toggleAnnotator: pe,
|
|
535
|
+
toggleFullscreen: Te
|
|
519
536
|
}), (t, o) => (n(), u("div", {
|
|
520
537
|
ref_key: "pcpChart",
|
|
521
538
|
ref: z,
|
|
522
539
|
class: X(`vue-data-ui-component vue-ui-pcp ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
523
540
|
style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
524
|
-
id: `pcp_${
|
|
525
|
-
onMouseenter: o[2] || (o[2] = () => v(
|
|
526
|
-
onMouseleave: o[3] || (o[3] = () => v(
|
|
541
|
+
id: `pcp_${O.value}`,
|
|
542
|
+
onMouseenter: o[2] || (o[2] = () => v(ze)(!0)),
|
|
543
|
+
onMouseleave: o[3] || (o[3] = () => v(ze)(!1))
|
|
527
544
|
}, [
|
|
528
|
-
e.value.userOptions.buttons.annotator ? (n(), M(v(
|
|
545
|
+
e.value.userOptions.buttons.annotator ? (n(), M(v(dt), {
|
|
529
546
|
key: 0,
|
|
530
|
-
svgRef: v(
|
|
547
|
+
svgRef: v(ne),
|
|
531
548
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
549
|
color: e.value.style.chart.color,
|
|
533
550
|
active: Q.value,
|
|
534
|
-
onClose:
|
|
535
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
536
|
-
|
|
551
|
+
onClose: pe
|
|
552
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
553
|
+
bt.value ? (n(), u("div", {
|
|
537
554
|
key: 1,
|
|
538
555
|
ref_key: "noTitle",
|
|
539
|
-
ref:
|
|
556
|
+
ref: ke,
|
|
540
557
|
class: "vue-data-ui-no-title-space",
|
|
541
558
|
style: "height:36px; width: 100%;background:transparent"
|
|
542
|
-
}, null, 512)) :
|
|
559
|
+
}, null, 512)) : y("", !0),
|
|
543
560
|
e.value.style.chart.title.text ? (n(), u("div", {
|
|
544
561
|
key: 2,
|
|
545
562
|
ref_key: "chartTitle",
|
|
546
|
-
ref:
|
|
563
|
+
ref: be,
|
|
547
564
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
548
565
|
}, [
|
|
549
|
-
(n(), M(
|
|
550
|
-
key: `title_${
|
|
566
|
+
(n(), M(va, {
|
|
567
|
+
key: `title_${we.value}`,
|
|
551
568
|
config: {
|
|
552
569
|
title: {
|
|
553
570
|
cy: "pcp-div-title",
|
|
@@ -559,28 +576,29 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
559
576
|
}
|
|
560
577
|
}
|
|
561
578
|
}, null, 8, ["config"]))
|
|
562
|
-
], 512)) :
|
|
579
|
+
], 512)) : y("", !0),
|
|
563
580
|
N("div", {
|
|
564
|
-
id: `legend-top-${
|
|
565
|
-
}, null, 8,
|
|
566
|
-
e.value.userOptions.show && Y.value && (v(
|
|
581
|
+
id: `legend-top-${O.value}`
|
|
582
|
+
}, null, 8, fa),
|
|
583
|
+
e.value.userOptions.show && Y.value && (v(_e) || v(se)) ? (n(), M(v(ht), {
|
|
567
584
|
ref_key: "userOptionsRef",
|
|
568
585
|
ref: ae,
|
|
569
|
-
key: `user_options_${
|
|
586
|
+
key: `user_options_${fe.value}`,
|
|
570
587
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
571
588
|
color: e.value.style.chart.color,
|
|
572
589
|
isPrinting: v(Ne),
|
|
573
590
|
isImaging: v(Ie),
|
|
574
|
-
uid:
|
|
591
|
+
uid: O.value,
|
|
575
592
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
576
593
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
577
594
|
hasXls: e.value.userOptions.buttons.csv,
|
|
578
595
|
hasImg: e.value.userOptions.buttons.img,
|
|
596
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
579
597
|
hasTable: e.value.userOptions.buttons.table,
|
|
580
598
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
581
599
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
582
600
|
isFullscreen: D.value,
|
|
583
|
-
isTooltip:
|
|
601
|
+
isTooltip: m.value.showTooltip,
|
|
584
602
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
585
603
|
chartElement: z.value,
|
|
586
604
|
position: e.value.userOptions.position,
|
|
@@ -589,22 +607,23 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
589
607
|
callbacks: e.value.userOptions.callbacks,
|
|
590
608
|
printScale: e.value.userOptions.print.scale,
|
|
591
609
|
tableDialog: e.value.table.useDialog,
|
|
592
|
-
onToggleFullscreen:
|
|
610
|
+
onToggleFullscreen: Te,
|
|
593
611
|
onGeneratePdf: v(Le),
|
|
594
|
-
onGenerateCsv:
|
|
595
|
-
onGenerateImage: v(
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
612
|
+
onGenerateCsv: he,
|
|
613
|
+
onGenerateImage: v(Se),
|
|
614
|
+
onGenerateSvg: Ye,
|
|
615
|
+
onToggleTable: Ve,
|
|
616
|
+
onToggleLabels: je,
|
|
617
|
+
onToggleTooltip: Ge,
|
|
618
|
+
onToggleAnnotator: pe,
|
|
600
619
|
style: F({
|
|
601
|
-
visibility: v(
|
|
620
|
+
visibility: v(_e) ? v(se) ? "visible" : "hidden" : "visible"
|
|
602
621
|
})
|
|
603
|
-
},
|
|
622
|
+
}, Je({ _: 2 }, [
|
|
604
623
|
t.$slots.menuIcon ? {
|
|
605
624
|
name: "menuIcon",
|
|
606
625
|
fn: b(({ isOpen: a, color: s }) => [
|
|
607
|
-
g(t.$slots, "menuIcon", W(
|
|
626
|
+
g(t.$slots, "menuIcon", U(W({ isOpen: a, color: s })), void 0, !0)
|
|
608
627
|
]),
|
|
609
628
|
key: "0"
|
|
610
629
|
} : void 0,
|
|
@@ -646,27 +665,27 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
646
665
|
t.$slots.optionFullscreen ? {
|
|
647
666
|
name: "optionFullscreen",
|
|
648
667
|
fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
649
|
-
g(t.$slots, "optionFullscreen", W(
|
|
668
|
+
g(t.$slots, "optionFullscreen", U(W({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
650
669
|
]),
|
|
651
670
|
key: "6"
|
|
652
671
|
} : void 0,
|
|
653
672
|
t.$slots.optionAnnotator ? {
|
|
654
673
|
name: "optionAnnotator",
|
|
655
674
|
fn: b(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
656
|
-
g(t.$slots, "optionAnnotator", W(
|
|
675
|
+
g(t.$slots, "optionAnnotator", U(W({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
657
676
|
]),
|
|
658
677
|
key: "7"
|
|
659
678
|
} : void 0
|
|
660
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
679
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
661
680
|
(n(), u("svg", {
|
|
662
681
|
ref_key: "svgRef",
|
|
663
|
-
ref:
|
|
664
|
-
xmlns: v(
|
|
682
|
+
ref: ne,
|
|
683
|
+
xmlns: v(Jt),
|
|
665
684
|
class: X({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
666
685
|
viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
|
|
667
686
|
style: F(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
668
687
|
}, [
|
|
669
|
-
|
|
688
|
+
me(v(pt)),
|
|
670
689
|
t.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
671
690
|
key: 0,
|
|
672
691
|
x: h.value.left,
|
|
@@ -678,8 +697,8 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
678
697
|
}
|
|
679
698
|
}, [
|
|
680
699
|
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
681
|
-
], 8,
|
|
682
|
-
(n(!0), u(A, null, I(f.value, (a, s) => (n(), u("g",
|
|
700
|
+
], 8, ga)) : y("", !0),
|
|
701
|
+
(n(!0), u(A, null, I(f.value, (a, s) => (n(), u("g", xa, [
|
|
683
702
|
N("line", {
|
|
684
703
|
x1: h.value.left + C.value * s + C.value / 2,
|
|
685
704
|
x2: h.value.left + C.value * s + C.value / 2,
|
|
@@ -687,7 +706,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
687
706
|
y2: h.value.bottom,
|
|
688
707
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
689
708
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
690
|
-
}, null, 8,
|
|
709
|
+
}, null, 8, ka),
|
|
691
710
|
e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
|
|
692
711
|
(n(!0), u(A, null, I(a.ticks, (l) => (n(), u("line", {
|
|
693
712
|
x1: l.x,
|
|
@@ -696,9 +715,9 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
696
715
|
y2: l.y,
|
|
697
716
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
698
717
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
699
|
-
style: F(`opacity:${w.value && !
|
|
700
|
-
}, null, 12,
|
|
701
|
-
v(R) ?
|
|
718
|
+
style: F(`opacity:${w.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
719
|
+
}, null, 12, wa))), 256)),
|
|
720
|
+
v(R) ? y("", !0) : (n(), u("g", Ca, [
|
|
702
721
|
(n(!0), u(A, null, I(a.ticks, (l) => (n(), u("text", {
|
|
703
722
|
x: l.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
704
723
|
y: l.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
@@ -706,10 +725,10 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
706
725
|
"text-anchor": "end",
|
|
707
726
|
"font-size": c.value.ticksFontSize,
|
|
708
727
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
709
|
-
style: F(`opacity:${w.value && !
|
|
710
|
-
}, B(
|
|
728
|
+
style: F(`opacity:${w.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
729
|
+
}, B(Ee({ value: l.value, index: s, datapoint: l })), 13, Aa))), 256))
|
|
711
730
|
]))
|
|
712
|
-
], 64)) :
|
|
731
|
+
], 64)) : y("", !0)
|
|
713
732
|
]))), 256)),
|
|
714
733
|
e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
|
|
715
734
|
key: 1,
|
|
@@ -726,14 +745,14 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
726
745
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
727
746
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
728
747
|
transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
729
|
-
innerHTML: v(
|
|
748
|
+
innerHTML: v(Kt)({
|
|
730
749
|
content: String(a.name),
|
|
731
750
|
fontSize: c.value.axisNameFontSize,
|
|
732
751
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
733
752
|
x: 0,
|
|
734
753
|
y: 0
|
|
735
754
|
})
|
|
736
|
-
}, null, 8,
|
|
755
|
+
}, null, 8, Ta)) : (n(), u("text", {
|
|
737
756
|
key: 0,
|
|
738
757
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
739
758
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
@@ -741,13 +760,13 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
741
760
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
742
761
|
"text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
743
762
|
transform: `translate(${h.value.left + C.value * s + C.value / 2}, ${j.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
744
|
-
}, B(a.name), 9,
|
|
763
|
+
}, B(a.name), 9, $a))
|
|
745
764
|
], 64))), 256))
|
|
746
|
-
], 512)) :
|
|
747
|
-
(n(!0), u(A, null, I(
|
|
765
|
+
], 512)) : y("", !0),
|
|
766
|
+
(n(!0), u(A, null, I(re.value, (a, s) => (n(), u("g", null, [
|
|
748
767
|
(n(!0), u(A, null, I(a.series, (l, r) => (n(), u("g", null, [
|
|
749
|
-
e.value.style.chart.plots.show ? (n(), u("g",
|
|
750
|
-
(n(!0), u(A, null, I(l.datapoints, (i, T) => (n(), M(
|
|
768
|
+
e.value.style.chart.plots.show ? (n(), u("g", za, [
|
|
769
|
+
(n(!0), u(A, null, I(l.datapoints, (i, T) => (n(), M(ha, {
|
|
751
770
|
plot: { x: i.x, y: i.y },
|
|
752
771
|
color: a.color,
|
|
753
772
|
shape: a.shape,
|
|
@@ -766,7 +785,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
766
785
|
style: F(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
767
786
|
onClick: () => K({ serie: l, shape: a.shape, S: s })
|
|
768
787
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
|
|
769
|
-
|
|
788
|
+
m.value.showTooltip ? y("", !0) : (n(), u(A, { key: 0 }, [
|
|
770
789
|
w.value && w.value === l.id && l.datapoints.length ? (n(), u("text", {
|
|
771
790
|
key: 0,
|
|
772
791
|
x: l.datapoints[0].x - c.value.ticksFontSize,
|
|
@@ -775,7 +794,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
775
794
|
"font-size": c.value.ticksFontSize,
|
|
776
795
|
fill: a.color,
|
|
777
796
|
"font-weight": "bold"
|
|
778
|
-
}, B(l.name), 9,
|
|
797
|
+
}, B(l.name), 9, _a)) : y("", !0)
|
|
779
798
|
], 64)),
|
|
780
799
|
e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i) => (n(), u("g", null, [
|
|
781
800
|
i.comment ? (n(), u("foreignObject", {
|
|
@@ -786,15 +805,15 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
786
805
|
x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
787
806
|
y: i.y + e.value.style.chart.comments.offsetY + 6
|
|
788
807
|
}, [
|
|
789
|
-
N("div",
|
|
808
|
+
N("div", Ma, [
|
|
790
809
|
g(t.$slots, "plot-comment", {
|
|
791
810
|
plot: { ...i, color: a.color }
|
|
792
811
|
}, void 0, !0)
|
|
793
812
|
])
|
|
794
|
-
], 8,
|
|
795
|
-
]))), 256)) :
|
|
796
|
-
])) :
|
|
797
|
-
!v(R) && (
|
|
813
|
+
], 8, Fa)) : y("", !0)
|
|
814
|
+
]))), 256)) : y("", !0)
|
|
815
|
+
])) : y("", !0),
|
|
816
|
+
!v(R) && (m.value.dataLabels.show || w.value && w.value === l.id) ? (n(!0), u(A, { key: 1 }, I(l.datapoints, (i, T) => (n(), u("text", {
|
|
798
817
|
x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
799
818
|
y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
800
819
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
@@ -813,7 +832,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
813
832
|
onMouseleave: (x) => q({ serie: l, shape: a.shape, S: s }),
|
|
814
833
|
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
815
834
|
style: F(`opacity:${w.value ? w.value === l.id ? 1 : 0.2 : 1}`)
|
|
816
|
-
}, B(
|
|
835
|
+
}, B(Ee({ value: i.value, index: T, datapoint: i })), 47, Na))), 256)) : y("", !0),
|
|
817
836
|
N("path", {
|
|
818
837
|
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
819
838
|
stroke: a.color,
|
|
@@ -831,8 +850,8 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
831
850
|
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
832
851
|
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
833
852
|
style: F(`opacity:${w.value ? w.value === l.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${l.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? l.pathLength : 0}`)
|
|
834
|
-
}, null, 46,
|
|
835
|
-
|
|
853
|
+
}, null, 46, Ia),
|
|
854
|
+
m.value.showTooltip ? (n(), u("path", {
|
|
836
855
|
key: 2,
|
|
837
856
|
d: `M${e.value.style.chart.lines.smooth ? l.smoothPath : l.straightPath}`,
|
|
838
857
|
stroke: "transparent",
|
|
@@ -850,29 +869,29 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
850
869
|
onMouseleave: (i) => q({ serie: l, shape: a.shape, S: s }),
|
|
851
870
|
onClick: () => K({ serie: l, shape: a.shape, S: s }),
|
|
852
871
|
style: { opacity: "0" }
|
|
853
|
-
}, null, 42,
|
|
872
|
+
}, null, 42, La)) : y("", !0)
|
|
854
873
|
]))), 256))
|
|
855
874
|
]))), 256)),
|
|
856
875
|
g(t.$slots, "svg", { svg: h.value }, void 0, !0)
|
|
857
|
-
], 14,
|
|
858
|
-
t.$slots.watermark ? (n(), u("div",
|
|
859
|
-
g(t.$slots, "watermark", W(
|
|
860
|
-
])) :
|
|
876
|
+
], 14, ba)),
|
|
877
|
+
t.$slots.watermark ? (n(), u("div", Sa, [
|
|
878
|
+
g(t.$slots, "watermark", U(W({ isPrinting: v(Ne) || v(Ie) })), void 0, !0)
|
|
879
|
+
])) : y("", !0),
|
|
861
880
|
N("div", {
|
|
862
|
-
id: `legend-bottom-${
|
|
863
|
-
}, null, 8,
|
|
864
|
-
|
|
881
|
+
id: `legend-bottom-${O.value}`
|
|
882
|
+
}, null, 8, Pa),
|
|
883
|
+
$e.value ? (n(), M(Dt, {
|
|
865
884
|
key: 5,
|
|
866
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
885
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
867
886
|
}, [
|
|
868
887
|
N("div", {
|
|
869
888
|
ref_key: "chartLegend",
|
|
870
|
-
ref:
|
|
889
|
+
ref: ge
|
|
871
890
|
}, [
|
|
872
|
-
e.value.style.chart.legend.show && Y.value ? (n(), M(
|
|
873
|
-
key: `legend_${
|
|
874
|
-
legendSet:
|
|
875
|
-
config:
|
|
891
|
+
e.value.style.chart.legend.show && Y.value ? (n(), M(da, {
|
|
892
|
+
key: `legend_${Ce.value}`,
|
|
893
|
+
legendSet: Re.value,
|
|
894
|
+
config: kt.value,
|
|
876
895
|
onClickMarker: o[0] || (o[0] = ({ legend: a }) => {
|
|
877
896
|
De(a.id), We(a);
|
|
878
897
|
})
|
|
@@ -883,25 +902,25 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
883
902
|
a.segregate(), We(a);
|
|
884
903
|
},
|
|
885
904
|
style: F(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
|
|
886
|
-
}, B(a.name), 13,
|
|
905
|
+
}, B(a.name), 13, Oa)
|
|
887
906
|
]),
|
|
888
907
|
_: 1
|
|
889
908
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
890
909
|
key: 1,
|
|
891
|
-
legend:
|
|
910
|
+
legend: S.value
|
|
892
911
|
}, void 0, !0)
|
|
893
912
|
], 512)
|
|
894
|
-
], 8, ["to"])) :
|
|
913
|
+
], 8, ["to"])) : y("", !0),
|
|
895
914
|
t.$slots.source ? (n(), u("div", {
|
|
896
915
|
key: 6,
|
|
897
916
|
ref_key: "source",
|
|
898
|
-
ref:
|
|
917
|
+
ref: xe,
|
|
899
918
|
dir: "auto"
|
|
900
919
|
}, [
|
|
901
920
|
g(t.$slots, "source", {}, void 0, !0)
|
|
902
|
-
], 512)) :
|
|
903
|
-
|
|
904
|
-
show:
|
|
921
|
+
], 512)) : y("", !0),
|
|
922
|
+
me(v(ut), {
|
|
923
|
+
show: m.value.showTooltip && ve.value,
|
|
905
924
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
906
925
|
color: e.value.style.chart.tooltip.color,
|
|
907
926
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -912,43 +931,43 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
912
931
|
position: e.value.style.chart.tooltip.position,
|
|
913
932
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
914
933
|
parent: z.value,
|
|
915
|
-
content:
|
|
934
|
+
content: de.value,
|
|
916
935
|
isFullscreen: D.value,
|
|
917
|
-
isCustom: v(
|
|
936
|
+
isCustom: v(et)(e.value.style.chart.tooltip.customFormat),
|
|
918
937
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
919
938
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
920
939
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
921
940
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
922
941
|
}, {
|
|
923
942
|
"tooltip-before": b(() => [
|
|
924
|
-
g(t.$slots, "tooltip-before", W(
|
|
943
|
+
g(t.$slots, "tooltip-before", U(W({ ...ce.value })), void 0, !0)
|
|
925
944
|
]),
|
|
926
945
|
"tooltip-after": b(() => [
|
|
927
|
-
g(t.$slots, "tooltip-after", W(
|
|
946
|
+
g(t.$slots, "tooltip-after", U(W({ ...ce.value })), void 0, !0)
|
|
928
947
|
]),
|
|
929
948
|
_: 3
|
|
930
949
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
931
|
-
Y.value && e.value.userOptions.buttons.table ? (n(), M(
|
|
950
|
+
Y.value && e.value.userOptions.buttons.table ? (n(), M(Rt(G.value.component), Bt({ key: 7 }, G.value.props, {
|
|
932
951
|
ref_key: "tableUnit",
|
|
933
952
|
ref: V,
|
|
934
|
-
onClose:
|
|
935
|
-
}),
|
|
953
|
+
onClose: Xe
|
|
954
|
+
}), Je({
|
|
936
955
|
content: b(() => [
|
|
937
|
-
(n(), M(v(
|
|
938
|
-
key: `table_${
|
|
956
|
+
(n(), M(v(vt), {
|
|
957
|
+
key: `table_${Ae.value}`,
|
|
939
958
|
colNames: H.value.colNames,
|
|
940
959
|
head: H.value.head,
|
|
941
960
|
body: H.value.body,
|
|
942
961
|
config: H.value.config,
|
|
943
962
|
title: e.value.table.useDialog ? "" : G.value.title,
|
|
944
963
|
withCloseButton: !e.value.table.useDialog,
|
|
945
|
-
onClose:
|
|
964
|
+
onClose: Xe
|
|
946
965
|
}, {
|
|
947
966
|
th: b(({ th: a }) => [
|
|
948
|
-
N("div", { innerHTML: a }, null, 8,
|
|
967
|
+
N("div", { innerHTML: a }, null, 8, Da)
|
|
949
968
|
]),
|
|
950
969
|
td: b(({ td: a }) => [
|
|
951
|
-
|
|
970
|
+
Ke(B(a), 1)
|
|
952
971
|
]),
|
|
953
972
|
_: 1
|
|
954
973
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -958,7 +977,7 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
958
977
|
e.value.table.useDialog ? {
|
|
959
978
|
name: "title",
|
|
960
979
|
fn: b(() => [
|
|
961
|
-
|
|
980
|
+
Ke(B(G.value.title), 1)
|
|
962
981
|
]),
|
|
963
982
|
key: "0"
|
|
964
983
|
} : void 0,
|
|
@@ -968,9 +987,9 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
968
987
|
N("button", {
|
|
969
988
|
tabindex: "0",
|
|
970
989
|
class: "vue-ui-user-options-button",
|
|
971
|
-
onClick: o[1] || (o[1] = (a) =>
|
|
990
|
+
onClick: o[1] || (o[1] = (a) => he(e.value.userOptions.callbacks.csv))
|
|
972
991
|
}, [
|
|
973
|
-
|
|
992
|
+
me(v(rt), {
|
|
974
993
|
name: "excel",
|
|
975
994
|
stroke: G.value.props.color
|
|
976
995
|
}, null, 8, ["stroke"])
|
|
@@ -978,11 +997,11 @@ const ra = ["id"], ca = ["id"], va = ["xmlns", "viewBox"], da = ["x", "y", "widt
|
|
|
978
997
|
]),
|
|
979
998
|
key: "1"
|
|
980
999
|
} : void 0
|
|
981
|
-
]), 1040)) :
|
|
982
|
-
v(R) ? (n(), M(
|
|
983
|
-
], 46,
|
|
1000
|
+
]), 1040)) : y("", !0),
|
|
1001
|
+
v(R) ? (n(), M(sa, { key: 8 })) : y("", !0)
|
|
1002
|
+
], 46, ya));
|
|
984
1003
|
}
|
|
985
|
-
},
|
|
1004
|
+
}, tl = /* @__PURE__ */ ma(Ra, [["__scopeId", "data-v-3420293f"]]);
|
|
986
1005
|
export {
|
|
987
|
-
|
|
1006
|
+
tl as default
|
|
988
1007
|
};
|