vue-data-ui 3.25.3 → 3.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-Bn3MY7eL.js} +103 -101
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-KXRhcsxM.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-M2Ws-VwJ.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-BgH3m_LP.js} +30 -14
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-ta2JoIjx.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-bvOuxfN3.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +70 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-C_mX5pOZ.js} +1329 -1313
- package/dist/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings-uXpBcVyo.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-BjdCpsRV.js} +70 -70
- package/dist/vue-data-ui.js +74 -74
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +1831 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-DRf3NQyH.js} +4 -4
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-DUcB3lYs.js} +219 -217
- package/dist/vue-ui-annotator-DZ0O8Xa5.js +3325 -0
- package/dist/vue-ui-bullet-DIOCMF2H.js +702 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-DoHnD1Xy.js} +59 -57
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Cf8TYPl5.js} +453 -447
- package/dist/vue-ui-carousel-table-k1cBJ1i1.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-BMAuaeif.js} +278 -276
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DCe2iPjk.js} +37 -35
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-Eb5hS_z3.js} +34 -32
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-CQWLyEx0.js} +4 -4
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-BqlsutMj.js} +80 -78
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-Be3MmkgS.js} +77 -75
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BqdfbcKX.js} +4 -4
- package/dist/vue-ui-donut-CuQVKuZa.js +2415 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-DckruxZ9.js} +378 -376
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-gzGZ42uH.js} +102 -102
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-BYU-hh2E.js} +142 -140
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-DLRcNDLc.js} +46 -44
- package/dist/vue-ui-funnel-DjoqNN1U.js +749 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BhR4IOra.js} +249 -247
- package/dist/vue-ui-gauge-Cq161Kwp.js +934 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-Ca8kPYr-.js} +41 -39
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-wUqHJICb.js} +4 -4
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-Bl5ymvi9.js} +186 -184
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-D6Y9Xy2K.js} +14 -12
- package/dist/vue-ui-history-plot-CvVjsdCL.js +1698 -0
- package/dist/vue-ui-horizontal-bar-3on3-H3B.js +1711 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-CUpRRIUf.js} +4 -4
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-DR2qUZOG.js} +65 -65
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-D8W-fERs.js} +3 -3
- package/dist/vue-ui-molecule-BExVLLgE.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-TW251icr.js} +205 -203
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CWzJKr3S.js} +129 -127
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-VaYZQK5i.js} +124 -122
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-RM25bxtf.js} +380 -378
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-Dmtwow7n.js} +51 -49
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-Cswm3_eI.js} +190 -188
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-C3GYthqu.js} +315 -313
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CBdDXL80.js} +3 -3
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +905 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-C5skjBTe.js} +353 -344
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-BJ8yEQMw.js} +332 -330
- package/dist/vue-ui-scatter-DXg8ESgr.js +2405 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-D_u8EWeW.js} +60 -60
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DQOp87rr.js} +3 -3
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-CjCufXof.js} +9 -9
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-BniEM15a.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-BtyCrqTQ.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-DQdn3PW1.js} +27 -27
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-9qkNNZG6.js} +254 -254
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +738 -0
- package/dist/vue-ui-stackbar-CkjicNDv.js +2355 -0
- package/dist/vue-ui-stackline-BB1IZta8.js +2469 -0
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +1740 -0
- package/dist/vue-ui-table-BXz_HY2g.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-XmDK1aHJ.js} +10 -10
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-MTEw3imE.js} +14 -14
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-CLx3SPRv.js} +36 -34
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-BDWUNb6t.js} +6 -6
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-DoaypTC-.js} +11 -9
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-Bv7PgpiC.js} +45 -43
- package/dist/vue-ui-waffle-z2DhvSAx.js +1621 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-DYLBJuFb.js} +31 -29
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-CbpEhSdL.js} +32 -30
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-C2atz4Xm.js} +120 -118
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-B3DQ6t46.js} +1496 -1490
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-CpA0W6zM.js} +424 -423
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-CJefORWc.js} +78 -78
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-annotator-MvDwnq7k.js +0 -2886
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,87 +1,87 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { l as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, Ct as n, D as r, G as i, Jt as a, Lt as o, P as s, Pt as c, S as ee, V as te, X as ne, Xt as re, Yt as ie, Zt as ae, _ as oe, _t as se, ht as ce, i as le, lt as ue, nt as de, q as fe, t as pe, w as me } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as _e } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
+
import { t as ve } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as xe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as Ce } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as we } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as Ee } from "./img-DhGApYG0.js";
|
|
13
|
+
import { n as De } from "./Title-CPHi-evi.js";
|
|
14
|
+
import { t as Oe } from "./Shape-CIqU-p2F.js";
|
|
15
|
+
import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
|
|
17
|
+
import { t as Me } from "./BaseLegendToggle-__JnV08B.js";
|
|
18
|
+
import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Ie } from "./Legend-X4kF4PvW.js";
|
|
22
|
+
import { t as Le } from "./vue_ui_parallel_coordinate_plot-CBiOBira.js";
|
|
23
|
+
import { Fragment as l, Teleport as Re, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as He, nextTick as Ue, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as We, onMounted as Ge, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as w, toRefs as Je, unref as T, watch as Ye, watchEffect as Xe, withCtx as E } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-parallel-coordinate-plot.vue
|
|
25
|
-
var
|
|
25
|
+
var Ze = /* @__PURE__ */ e({ default: () => St }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
|
|
26
26
|
"xmlns",
|
|
27
27
|
"aria-describedby",
|
|
28
28
|
"viewBox"
|
|
29
|
-
],
|
|
29
|
+
], rt = [
|
|
30
30
|
"x",
|
|
31
31
|
"y",
|
|
32
32
|
"width",
|
|
33
33
|
"height"
|
|
34
|
-
],
|
|
34
|
+
], it = { style: { "pointer-events": "none" } }, at = [
|
|
35
35
|
"x1",
|
|
36
36
|
"x2",
|
|
37
37
|
"y1",
|
|
38
38
|
"y2",
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width"
|
|
41
|
-
],
|
|
41
|
+
], ot = [
|
|
42
42
|
"d",
|
|
43
43
|
"stroke",
|
|
44
44
|
"stroke-width"
|
|
45
|
-
],
|
|
45
|
+
], st = { key: 0 }, ct = [
|
|
46
46
|
"transform",
|
|
47
47
|
"fill",
|
|
48
48
|
"font-size",
|
|
49
49
|
"font-weight"
|
|
50
|
-
],
|
|
50
|
+
], lt = [
|
|
51
51
|
"fill",
|
|
52
52
|
"font-size",
|
|
53
53
|
"font-weight",
|
|
54
54
|
"text-anchor",
|
|
55
55
|
"transform"
|
|
56
|
-
],
|
|
56
|
+
], ut = [
|
|
57
57
|
"fill",
|
|
58
58
|
"font-size",
|
|
59
59
|
"font-weight",
|
|
60
60
|
"text-anchor",
|
|
61
61
|
"transform",
|
|
62
62
|
"innerHTML"
|
|
63
|
-
],
|
|
63
|
+
], dt = { key: 0 }, ft = [
|
|
64
64
|
"x",
|
|
65
65
|
"y",
|
|
66
66
|
"font-size",
|
|
67
67
|
"fill"
|
|
68
|
-
],
|
|
68
|
+
], pt = [
|
|
69
69
|
"width",
|
|
70
70
|
"x",
|
|
71
71
|
"y"
|
|
72
|
-
],
|
|
72
|
+
], mt = { style: { width: "100%" } }, ht = [
|
|
73
73
|
"d",
|
|
74
74
|
"stroke",
|
|
75
75
|
"stroke-width",
|
|
76
76
|
"onMouseenter",
|
|
77
77
|
"onMouseleave",
|
|
78
78
|
"onClick"
|
|
79
|
-
],
|
|
79
|
+
], gt = [
|
|
80
80
|
"d",
|
|
81
81
|
"onMouseenter",
|
|
82
82
|
"onMouseleave",
|
|
83
83
|
"onClick"
|
|
84
|
-
],
|
|
84
|
+
], _t = [
|
|
85
85
|
"transform",
|
|
86
86
|
"fill",
|
|
87
87
|
"font-weight",
|
|
@@ -90,7 +90,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
90
90
|
"onMouseenter",
|
|
91
91
|
"onMouseleave",
|
|
92
92
|
"onClick"
|
|
93
|
-
],
|
|
93
|
+
], vt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
style: {
|
|
96
96
|
position: "absolute",
|
|
@@ -100,10 +100,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
100
100
|
},
|
|
101
101
|
"data-dom-to-png-ignore": "",
|
|
102
102
|
"aria-hidden": "true"
|
|
103
|
-
},
|
|
103
|
+
}, yt = {
|
|
104
104
|
key: 5,
|
|
105
105
|
class: "vue-data-ui-watermark"
|
|
106
|
-
},
|
|
106
|
+
}, bt = ["id"], xt = ["onClick"], St = /*#__PURE__*/ ke({
|
|
107
107
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
108
108
|
props: {
|
|
109
109
|
config: {
|
|
@@ -124,31 +124,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
124
124
|
"selectDatapoint",
|
|
125
125
|
"copyAlt"
|
|
126
126
|
],
|
|
127
|
-
setup(e, { expose:
|
|
128
|
-
let
|
|
127
|
+
setup(e, { expose: ke, emit: Ze }) {
|
|
128
|
+
let St = h(() => import("./Tooltip-hhrkQ3Lk.js")), Ct = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), wt = h(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), Tt = h(() => import("./DataTable-COIO9gi4.js")), Et = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Dt = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Ot = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), kt = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_parallel_coordinate_plot: At } = _e(), { isThemeValid: jt, warnInvalidTheme: Mt } = Se(), D = e, Nt = u({
|
|
129
129
|
get() {
|
|
130
|
-
return !!
|
|
130
|
+
return !!D.dataset && D.dataset.length;
|
|
131
131
|
},
|
|
132
132
|
set(e) {
|
|
133
133
|
return e;
|
|
134
134
|
}
|
|
135
|
-
}),
|
|
135
|
+
}), Pt = x(0), O = x(null), Ft = x(null), It = x(null), Lt = x(null), Rt = x(null), zt = x(0), Bt = x(0), Vt = x(0), Ht = x(!1), Ut = x(null), Wt = x(null), Gt = x(null), k = x(null), Kt = x({
|
|
136
136
|
x: 0,
|
|
137
137
|
y: 0
|
|
138
|
-
}), qt =
|
|
138
|
+
}), qt = x("pointer"), Jt = x(!1), A = x(fe()), j = x(!1);
|
|
139
139
|
function Yt(e) {
|
|
140
|
-
j.value = e,
|
|
140
|
+
j.value = e, Pt.value += 1;
|
|
141
141
|
}
|
|
142
|
-
let M =
|
|
142
|
+
let M = x(nn()), { transitionEnabled: N } = we({
|
|
143
143
|
config: () => M.value.transitions,
|
|
144
|
-
dataset: () =>
|
|
144
|
+
dataset: () => D.dataset
|
|
145
145
|
});
|
|
146
|
-
|
|
146
|
+
he({
|
|
147
147
|
config: () => M.value,
|
|
148
|
-
dataset: () =>
|
|
148
|
+
dataset: () => D.dataset,
|
|
149
149
|
component: "VueUiParallelCoordinatePlot",
|
|
150
150
|
rules: [
|
|
151
|
-
|
|
151
|
+
ge.emptyArray,
|
|
152
152
|
{
|
|
153
153
|
test: (e) => e.length > 10,
|
|
154
154
|
message: [
|
|
@@ -175,7 +175,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
175
175
|
}
|
|
176
176
|
]
|
|
177
177
|
});
|
|
178
|
-
let P =
|
|
178
|
+
let P = u(() => M.value.userOptions.useCursorPointer), Xt = u(() => ae({
|
|
179
179
|
defaultConfig: {
|
|
180
180
|
useCssAnimation: !1,
|
|
181
181
|
userOptions: { show: !1 },
|
|
@@ -197,16 +197,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
197
197
|
} }
|
|
198
198
|
},
|
|
199
199
|
userConfig: M.value.skeletonConfig ?? {}
|
|
200
|
-
})), { loading: F, FINAL_DATASET: Zt, manualLoading: Qt } =
|
|
201
|
-
...
|
|
200
|
+
})), { loading: F, FINAL_DATASET: Zt, manualLoading: Qt } = ye({
|
|
201
|
+
...Je(D),
|
|
202
202
|
FINAL_CONFIG: M,
|
|
203
203
|
prepareConfig: nn,
|
|
204
204
|
callback: () => {
|
|
205
205
|
Promise.resolve().then(async () => {
|
|
206
|
-
await
|
|
206
|
+
await Ue(), H.value.showTable = M.value.table.show;
|
|
207
207
|
});
|
|
208
208
|
},
|
|
209
|
-
skeletonDataset:
|
|
209
|
+
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
210
210
|
{
|
|
211
211
|
name: "",
|
|
212
212
|
shape: "circle",
|
|
@@ -250,51 +250,51 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
250
250
|
}]
|
|
251
251
|
}
|
|
252
252
|
],
|
|
253
|
-
skeletonConfig:
|
|
253
|
+
skeletonConfig: ae({
|
|
254
254
|
defaultConfig: M.value,
|
|
255
255
|
userConfig: Xt.value
|
|
256
256
|
})
|
|
257
|
-
}), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } =
|
|
257
|
+
}), { userOptionsVisible: $t, setUserOptionsVisibility: en, keepUserOptionState: tn } = Pe({ config: M.value }), { svgRef: I } = Fe({ config: M.value.style.chart.title });
|
|
258
258
|
function nn() {
|
|
259
|
-
let e =
|
|
260
|
-
userConfig:
|
|
261
|
-
defaultConfig:
|
|
259
|
+
let e = xe({
|
|
260
|
+
userConfig: D.config,
|
|
261
|
+
defaultConfig: At
|
|
262
262
|
}), t = e.theme;
|
|
263
263
|
if (!t) return e;
|
|
264
|
-
if (!
|
|
265
|
-
let n =
|
|
266
|
-
userConfig:
|
|
264
|
+
if (!jt.value(e)) return Mt(e), e;
|
|
265
|
+
let n = xe({
|
|
266
|
+
userConfig: Le[t] || D.config,
|
|
267
267
|
defaultConfig: e
|
|
268
|
-
}), r =
|
|
269
|
-
userConfig:
|
|
268
|
+
}), r = xe({
|
|
269
|
+
userConfig: D.config,
|
|
270
270
|
defaultConfig: n
|
|
271
271
|
});
|
|
272
272
|
return {
|
|
273
273
|
...r,
|
|
274
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
274
|
+
customPalette: r.customPalette.length ? r.customPalette : ie[t] || o
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
|
|
278
|
-
F.value || (M.value = nn()), $t.value = !M.value.userOptions.showOnChartHover, an(),
|
|
279
|
-
}, { deep: !0 }),
|
|
277
|
+
Ye(() => D.config, (e) => {
|
|
278
|
+
F.value || (M.value = nn()), $t.value = !M.value.userOptions.showOnChartHover, an(), zt.value += 1, Vt.value += 1, Bt.value += 1, H.value.dataLabels.show = M.value.style.chart.yAxis.labels.datapoints.show, H.value.showTable = M.value.table.show, H.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
279
|
+
}, { deep: !0 }), Ye(() => D.dataset, (e) => {
|
|
280
280
|
Array.isArray(e) && e.length > 0 && (Qt.value = !1);
|
|
281
281
|
}, { deep: !0 });
|
|
282
|
-
let L =
|
|
283
|
-
|
|
284
|
-
|
|
282
|
+
let L = qe(null), R = qe(null);
|
|
283
|
+
Ge(() => {
|
|
284
|
+
Ht.value = !0, an();
|
|
285
285
|
});
|
|
286
|
-
let rn =
|
|
286
|
+
let rn = u(() => M.value.debug);
|
|
287
287
|
function an() {
|
|
288
|
-
if (
|
|
288
|
+
if (c(D.dataset) ? (de({
|
|
289
289
|
componentName: "VueUiParallelCoordinatePlot",
|
|
290
290
|
type: "dataset",
|
|
291
291
|
debug: rn.value
|
|
292
|
-
}), Qt.value = !0) :
|
|
293
|
-
|
|
292
|
+
}), Qt.value = !0) : D.dataset.forEach((e, t) => {
|
|
293
|
+
ce({
|
|
294
294
|
datasetObject: e,
|
|
295
295
|
requiredAttributes: ["name", "series"]
|
|
296
296
|
}).forEach((e) => {
|
|
297
|
-
|
|
297
|
+
Nt.value = !1, de({
|
|
298
298
|
componentName: "VueUiParallelCoordinatePlot",
|
|
299
299
|
type: "datasetSerieAttribute",
|
|
300
300
|
property: e,
|
|
@@ -302,35 +302,35 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
302
302
|
debug: rn.value
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
|
-
}),
|
|
306
|
-
let e =
|
|
307
|
-
let { width: e, height: t } =
|
|
308
|
-
chart:
|
|
309
|
-
title: M.value.style.chart.title.text ?
|
|
310
|
-
legend: M.value.style.chart.legend.show ?
|
|
311
|
-
source:
|
|
312
|
-
noTitle:
|
|
305
|
+
}), c(D.dataset) || (Qt.value = M.value.loading), M.value.responsive) {
|
|
306
|
+
let e = Ae(() => {
|
|
307
|
+
let { width: e, height: t } = je({
|
|
308
|
+
chart: O.value,
|
|
309
|
+
title: M.value.style.chart.title.text ? Ft.value : null,
|
|
310
|
+
legend: M.value.style.chart.legend.show ? It.value : null,
|
|
311
|
+
source: Lt.value,
|
|
312
|
+
noTitle: Rt.value
|
|
313
313
|
});
|
|
314
314
|
requestAnimationFrame(() => {
|
|
315
|
-
z.value.width = e, z.value.height = t - 12, M.value.responsiveProportionalSizing ? (z.value.plotSize =
|
|
315
|
+
z.value.width = e, z.value.height = t - 12, M.value.responsiveProportionalSizing ? (z.value.plotSize = re({
|
|
316
316
|
relator: Math.min(e, t),
|
|
317
317
|
adjuster: 600,
|
|
318
318
|
source: M.value.style.chart.plots.radius,
|
|
319
319
|
threshold: 2,
|
|
320
320
|
fallback: 2
|
|
321
|
-
}), z.value.ticksFontSize =
|
|
321
|
+
}), z.value.ticksFontSize = re({
|
|
322
322
|
relator: Math.min(e, t),
|
|
323
323
|
adjuster: 600,
|
|
324
324
|
source: M.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
325
325
|
threshold: 10,
|
|
326
326
|
fallback: 10
|
|
327
|
-
}), z.value.datapointFontSize =
|
|
327
|
+
}), z.value.datapointFontSize = re({
|
|
328
328
|
relator: Math.min(e, t),
|
|
329
329
|
adjuster: 600,
|
|
330
330
|
source: M.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
331
331
|
threshold: 10,
|
|
332
332
|
fallback: 10
|
|
333
|
-
}), z.value.axisNameFontSize =
|
|
333
|
+
}), z.value.axisNameFontSize = re({
|
|
334
334
|
relator: Math.min(e, t),
|
|
335
335
|
adjuster: 600,
|
|
336
336
|
source: M.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
@@ -339,27 +339,27 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
339
339
|
})) : (z.value.plotSize = M.value.style.chart.plots.radius, z.value.ticksFontSize = M.value.style.chart.yAxis.labels.ticks.fontSize, z.value.datapointFontSize = M.value.style.chart.yAxis.labels.datapoints.fontSize, z.value.axisNameFontSize = M.value.style.chart.yAxis.labels.axisNamesFontSize);
|
|
340
340
|
});
|
|
341
341
|
});
|
|
342
|
-
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value =
|
|
342
|
+
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = O.value.parentNode, L.value.observe(R.value);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
We(() => {
|
|
346
346
|
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect());
|
|
347
347
|
});
|
|
348
|
-
let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } =
|
|
348
|
+
let { isPrinting: on, isImaging: sn, generatePdf: cn, generateImage: ln } = ve({
|
|
349
349
|
elementId: `pcp_${A.value}`,
|
|
350
350
|
fileName: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
|
|
351
351
|
options: M.value.userOptions.print
|
|
352
|
-
}), un =
|
|
352
|
+
}), un = u(() => M.value.userOptions.show && !M.value.style.chart.title.text), z = x({
|
|
353
353
|
height: M.value.style.chart.height,
|
|
354
354
|
width: M.value.style.chart.width,
|
|
355
355
|
plotSize: M.value.style.chart.plots.radius,
|
|
356
356
|
ticksFontSize: M.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
357
357
|
datapointFontSize: M.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
358
358
|
axisNameFontSize: M.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
359
|
-
}), dn =
|
|
359
|
+
}), dn = u(() => z.value.width), fn = u(() => z.value.height), B = x(0), pn = Ae((e) => {
|
|
360
360
|
B.value = e;
|
|
361
361
|
}, 100);
|
|
362
|
-
|
|
362
|
+
Xe((e) => {
|
|
363
363
|
let t = Gt.value;
|
|
364
364
|
if (!t) return;
|
|
365
365
|
let n = new ResizeObserver((e) => {
|
|
@@ -367,7 +367,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
367
367
|
});
|
|
368
368
|
n.observe(t), e(() => n.disconnect());
|
|
369
369
|
});
|
|
370
|
-
let V =
|
|
370
|
+
let V = u(() => {
|
|
371
371
|
let { top: e, right: t, bottom: n, left: r } = M.value.style.chart.padding, i = fn.value, a = dn.value;
|
|
372
372
|
return {
|
|
373
373
|
chartHeight: Math.max(.001, i),
|
|
@@ -379,29 +379,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
379
379
|
right: a - t,
|
|
380
380
|
bottom: i - n - z.value.datapointFontSize
|
|
381
381
|
};
|
|
382
|
-
}), mn =
|
|
382
|
+
}), mn = u(() => me(M.value.customPalette)), H = x({
|
|
383
383
|
dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
|
|
384
384
|
showTable: M.value.table.show,
|
|
385
385
|
showTooltip: M.value.style.chart.tooltip.show
|
|
386
386
|
});
|
|
387
|
-
|
|
387
|
+
Ye(M, () => {
|
|
388
388
|
H.value = {
|
|
389
389
|
dataLabels: { show: M.value.style.chart.yAxis.labels.datapoints.show },
|
|
390
390
|
showTable: M.value.table.show,
|
|
391
391
|
showTooltip: M.value.style.chart.tooltip.show
|
|
392
392
|
};
|
|
393
393
|
}, { immediate: !0 });
|
|
394
|
-
let U =
|
|
394
|
+
let U = x([]);
|
|
395
395
|
function hn() {
|
|
396
396
|
U.value.length ? U.value = [] : G.value.forEach((e) => {
|
|
397
397
|
U.value.push(e.id);
|
|
398
|
-
}),
|
|
398
|
+
}), Mn("selectLegend", q.value);
|
|
399
399
|
}
|
|
400
400
|
function gn(e) {
|
|
401
|
-
U.value.includes(e) ? U.value = U.value.filter((t) => t !== e) : U.value.push(e),
|
|
401
|
+
U.value.includes(e) ? U.value = U.value.filter((t) => t !== e) : U.value.push(e), Mn("selectLegend", q.value);
|
|
402
402
|
}
|
|
403
|
-
let W =
|
|
404
|
-
let n = ee(e.color) || mn.value[t] ||
|
|
403
|
+
let W = u(() => Zt.value.map((e, t) => {
|
|
404
|
+
let n = ee(e.color) || mn.value[t] || o[t] || o[t % o.length];
|
|
405
405
|
return {
|
|
406
406
|
...e,
|
|
407
407
|
series: e.series.map((e) => ({
|
|
@@ -426,20 +426,20 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
426
426
|
let t = _n(e);
|
|
427
427
|
t !== null && (U.value.includes(t.id) || gn(t.id));
|
|
428
428
|
}
|
|
429
|
-
let G =
|
|
429
|
+
let G = u(() => W.value.map((e) => ({
|
|
430
430
|
...e,
|
|
431
431
|
opacity: U.value.includes(e.id) ? .5 : 1,
|
|
432
432
|
segregate: () => gn(e.id),
|
|
433
433
|
isSegregated: U.value.includes(e.id),
|
|
434
434
|
shape: e.shape || "circle"
|
|
435
|
-
}))), bn =
|
|
435
|
+
}))), bn = u(() => ({
|
|
436
436
|
cy: "pcp-div-legend",
|
|
437
437
|
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
438
438
|
color: M.value.style.chart.legend.color,
|
|
439
439
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
440
440
|
paddingBottom: 12,
|
|
441
441
|
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
442
|
-
})), xn =
|
|
442
|
+
})), xn = u(() => Math.max(...W.value.filter((e) => !U.value.includes(e.id)).map((e) => Math.max(...e.series.flatMap((e) => e.values.length))))), K = u(() => V.value.width / xn.value), q = u(() => W.value.filter((e) => !U.value.includes(e.id))), J = u(() => {
|
|
443
443
|
let e = [];
|
|
444
444
|
for (let t = 0; t < xn.value; t += 1) {
|
|
445
445
|
let n = Math.min(...q.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), r = Math.max(...q.value.flatMap((e) => e.series.map((e) => e.values[t] || 0) || 0)), i = r === n ? n / 4 : n, a = r === n ? r * 2 : r, o = oe(i, a, M.value.style.chart.yAxis.scaleTicks), s = o.ticks.map((e, n) => {
|
|
@@ -457,7 +457,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
return e;
|
|
460
|
-
}), Y =
|
|
460
|
+
}), Y = u(() => q.value.map((e, t) => ({
|
|
461
461
|
...e,
|
|
462
462
|
series: e.series.map((n, r) => ({
|
|
463
463
|
...n,
|
|
@@ -479,7 +479,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
479
479
|
})).map((e) => ({
|
|
480
480
|
...e,
|
|
481
481
|
series: e.series.map((e) => {
|
|
482
|
-
let t =
|
|
482
|
+
let t = te(e.datapoints), n = s(e.datapoints, .12), r = se(M.value.style.chart.lines.smooth ? `M ${n}` : `M ${t}`);
|
|
483
483
|
return {
|
|
484
484
|
...e,
|
|
485
485
|
smoothPath: n,
|
|
@@ -487,7 +487,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
487
487
|
pathLength: r
|
|
488
488
|
};
|
|
489
489
|
})
|
|
490
|
-
}))), X =
|
|
490
|
+
}))), X = u(() => Y.value.flatMap((e, t) => e.series.map((n, r) => ({
|
|
491
491
|
shape: e.shape,
|
|
492
492
|
serieName: e.name,
|
|
493
493
|
serie: n,
|
|
@@ -497,7 +497,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
497
497
|
key: `${t}_${r}`
|
|
498
498
|
}))));
|
|
499
499
|
function Sn({ value: e, index: t, datapoint: n }) {
|
|
500
|
-
return
|
|
500
|
+
return le(M.value.style.chart.yAxis.labels.formatters[t] || null, e, ne({
|
|
501
501
|
p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
502
502
|
v: e,
|
|
503
503
|
s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
@@ -507,8 +507,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
507
507
|
seriesIndex: t
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
let Z =
|
|
511
|
-
function
|
|
510
|
+
let Z = x(null), Cn = x(null), wn = x(!1), Tn = x("");
|
|
511
|
+
function En({ shape: e, serie: t, S: n }) {
|
|
512
512
|
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
513
513
|
datapoint: {
|
|
514
514
|
...t,
|
|
@@ -519,67 +519,67 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
519
519
|
let r = k.value === null ? null : X.value[k.value];
|
|
520
520
|
qt.value === "keyboard" && r && r.serie.id === t.id || (Z.value = null, wn.value = !1);
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Dn(e) {
|
|
523
523
|
if (!I.value || !e?.datapoints?.length) return;
|
|
524
524
|
let t = e.datapoints[Math.floor(e.datapoints.length / 2)];
|
|
525
525
|
if (!t) return;
|
|
526
|
-
let n =
|
|
526
|
+
let n = a(t.x, t.y, I.value);
|
|
527
527
|
n && (Kt.value = n);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function On({ shape: e, serieName: t, serie: r, relativeIndex: i, seriesIndex: a, S: o, triggerMode: s = "pointer" }) {
|
|
530
530
|
M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
531
531
|
datapoint: {
|
|
532
|
-
...
|
|
532
|
+
...r,
|
|
533
533
|
shape: e
|
|
534
534
|
},
|
|
535
|
-
seriesIndex:
|
|
536
|
-
}), qt.value =
|
|
535
|
+
seriesIndex: o
|
|
536
|
+
}), qt.value = s, Cn.value = {
|
|
537
537
|
config: M.value,
|
|
538
|
-
datapoint:
|
|
539
|
-
serie:
|
|
540
|
-
relativeIndex:
|
|
541
|
-
seriesIndex:
|
|
538
|
+
datapoint: r,
|
|
539
|
+
serie: r,
|
|
540
|
+
relativeIndex: i,
|
|
541
|
+
seriesIndex: a,
|
|
542
542
|
series: W.value,
|
|
543
543
|
scales: J.value
|
|
544
|
-
}, wn.value = !0, Z.value =
|
|
545
|
-
let
|
|
546
|
-
|
|
547
|
-
serie:
|
|
548
|
-
seriesIndex:
|
|
544
|
+
}, wn.value = !0, Z.value = r.id;
|
|
545
|
+
let c = "", ee = M.value.style.chart.tooltip.customFormat;
|
|
546
|
+
n(ee) && ue(() => ee({
|
|
547
|
+
serie: r,
|
|
548
|
+
seriesIndex: r.seriesIndex,
|
|
549
549
|
series: W.value,
|
|
550
550
|
config: M.value,
|
|
551
551
|
scales: J.value
|
|
552
552
|
})) ? Tn.value = ee({
|
|
553
|
-
serie:
|
|
554
|
-
seriesIndex:
|
|
553
|
+
serie: r,
|
|
554
|
+
seriesIndex: r.seriesIndex,
|
|
555
555
|
series: W.value,
|
|
556
556
|
config: M.value,
|
|
557
557
|
scales: J.value
|
|
558
|
-
}) : (
|
|
559
|
-
|
|
558
|
+
}) : (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t ? t + " - " : ""}${r.name}</div>`, J.value.map((e) => e.name).forEach((e, t) => {
|
|
559
|
+
c += `
|
|
560
560
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
561
561
|
<span>${e}: </span>
|
|
562
562
|
<span>
|
|
563
|
-
${
|
|
563
|
+
${le(M.value.style.chart.yAxis.labels.formatters[t] || null, r.datapoints[t].value, ne({
|
|
564
564
|
p: M.value.style.chart.yAxis.labels.prefixes[t] || "",
|
|
565
|
-
v:
|
|
565
|
+
v: r.datapoints[t].value,
|
|
566
566
|
s: M.value.style.chart.yAxis.labels.suffixes[t] || "",
|
|
567
567
|
r: M.value.style.chart.yAxis.labels.roundings[t] || ""
|
|
568
568
|
}), {
|
|
569
|
-
datapoint:
|
|
569
|
+
datapoint: r.datapoints[t],
|
|
570
570
|
seriesIndex: t
|
|
571
571
|
})}
|
|
572
572
|
</span>
|
|
573
573
|
</div>
|
|
574
|
-
`, M.value.style.chart.comments.showInTooltip &&
|
|
575
|
-
}), Tn.value = `<div>${
|
|
576
|
-
|
|
574
|
+
`, M.value.style.chart.comments.showInTooltip && r.datapoints[t].comment && (c += `<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.datapoints[t].comment}</div>`);
|
|
575
|
+
}), Tn.value = `<div>${c}</div>`), s === "keyboard" && Ue(() => {
|
|
576
|
+
Dn(r);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function kn() {
|
|
580
580
|
return W.value;
|
|
581
581
|
}
|
|
582
|
-
let
|
|
582
|
+
let Q = u(() => {
|
|
583
583
|
let e = [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(J.value.map((e) => e.name));
|
|
584
584
|
return {
|
|
585
585
|
body: Y.value.flatMap((e, t) => e.series.map((t) => [e.name, t.name].concat(t.values))),
|
|
@@ -599,53 +599,53 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
599
599
|
},
|
|
600
600
|
colNames: [M.value.table.columnNames.series, M.value.table.columnNames.item].concat(J.value.map((e) => e.name))
|
|
601
601
|
};
|
|
602
|
-
}),
|
|
602
|
+
}), An = u(() => Y.value.length === 0 ? {
|
|
603
603
|
head: [],
|
|
604
604
|
body: [],
|
|
605
605
|
config: {},
|
|
606
606
|
columnNames: []
|
|
607
607
|
} : {
|
|
608
|
-
head:
|
|
609
|
-
body:
|
|
608
|
+
head: Q.value.head,
|
|
609
|
+
body: Q.value.body
|
|
610
610
|
});
|
|
611
|
-
function
|
|
612
|
-
let
|
|
611
|
+
function jn(e = null) {
|
|
612
|
+
let n = [
|
|
613
613
|
[M.value.style.chart.title.text],
|
|
614
614
|
[M.value.style.chart.title.subtitle.text],
|
|
615
615
|
[""]
|
|
616
|
-
], i =
|
|
616
|
+
], i = An.value.head, a = An.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
617
617
|
e ? e(s) : t({
|
|
618
618
|
csvContent: s,
|
|
619
619
|
title: M.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
let
|
|
623
|
-
function
|
|
622
|
+
let Mn = Ze;
|
|
623
|
+
function Nn({ serie: e, shape: t, S: n }) {
|
|
624
624
|
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
625
625
|
datapoint: {
|
|
626
626
|
...e,
|
|
627
627
|
shape: t
|
|
628
628
|
},
|
|
629
629
|
seriesIndex: n
|
|
630
|
-
}),
|
|
630
|
+
}), Mn("selectDatapoint", e);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Pn() {
|
|
633
633
|
H.value.showTable = !H.value.showTable;
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Fn() {
|
|
636
636
|
H.value.dataLabels.show = !H.value.dataLabels.show;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function In() {
|
|
639
639
|
H.value.showTooltip = !H.value.showTooltip;
|
|
640
640
|
}
|
|
641
|
-
let
|
|
642
|
-
function
|
|
643
|
-
|
|
641
|
+
let Ln = x(!1);
|
|
642
|
+
function Rn() {
|
|
643
|
+
Ln.value = !Ln.value;
|
|
644
644
|
}
|
|
645
|
-
async function
|
|
646
|
-
if (!
|
|
647
|
-
let { width: t, height: n } =
|
|
648
|
-
domElement:
|
|
645
|
+
async function zn({ scale: e = 2 } = {}) {
|
|
646
|
+
if (!O.value) return;
|
|
647
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
|
|
648
|
+
domElement: O.value,
|
|
649
649
|
base64: !0,
|
|
650
650
|
img: !0,
|
|
651
651
|
scale: e
|
|
@@ -659,14 +659,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
659
659
|
aspectRatio: r
|
|
660
660
|
};
|
|
661
661
|
}
|
|
662
|
-
let
|
|
662
|
+
let Bn = x({
|
|
663
663
|
start: 0,
|
|
664
664
|
end: 1
|
|
665
|
-
}),
|
|
666
|
-
|
|
665
|
+
}), Vn = u(() => J.value.map((e) => e.name));
|
|
666
|
+
Te({
|
|
667
667
|
timeLabelsEls: Gt,
|
|
668
|
-
timeLabels:
|
|
669
|
-
slicer:
|
|
668
|
+
timeLabels: Vn,
|
|
669
|
+
slicer: Bn,
|
|
670
670
|
configRef: M,
|
|
671
671
|
rotationPath: [
|
|
672
672
|
"style",
|
|
@@ -689,10 +689,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
689
689
|
targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
|
|
690
690
|
rotation: M.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
|
|
691
691
|
});
|
|
692
|
-
let
|
|
692
|
+
let Hn = u(() => {
|
|
693
693
|
let e = M.value.table.useDialog && !M.value.table.show, t = H.value.showTable;
|
|
694
694
|
return {
|
|
695
|
-
component: e ?
|
|
695
|
+
component: e ? kt : wt,
|
|
696
696
|
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
697
697
|
props: e ? {
|
|
698
698
|
backgroundColor: M.value.table.th.backgroundColor,
|
|
@@ -700,7 +700,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
700
700
|
headerColor: M.value.table.th.color,
|
|
701
701
|
headerBg: M.value.table.th.backgroundColor,
|
|
702
702
|
isFullscreen: j.value,
|
|
703
|
-
fullscreenParent:
|
|
703
|
+
fullscreenParent: O.value,
|
|
704
704
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
705
705
|
isCursorPointer: P.value
|
|
706
706
|
} : {
|
|
@@ -720,23 +720,23 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
});
|
|
723
|
-
|
|
724
|
-
M.value.table.show || (e && M.value.table.useDialog &&
|
|
723
|
+
Ye(() => H.value.showTable, (e) => {
|
|
724
|
+
M.value.table.show || (e && M.value.table.useDialog && Ut.value ? Ut.value.open() : "close" in Ut.value && Ut.value.close());
|
|
725
725
|
});
|
|
726
|
-
function
|
|
726
|
+
function Un() {
|
|
727
727
|
H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
728
728
|
}
|
|
729
|
-
let
|
|
729
|
+
let Wn = u(() => M.value.style.chart.backgroundColor), Gn = u(() => M.value.style.chart.legend), Kn = u(() => M.value.style.chart.title), { isCallbackImaging: qn, isCallbackSvg: Jn, generateSvg: Yn, onGenerateImage: Xn } = Ce({
|
|
730
730
|
svg: I,
|
|
731
|
-
title:
|
|
732
|
-
legend:
|
|
731
|
+
title: Kn,
|
|
732
|
+
legend: Gn,
|
|
733
733
|
legendItems: G,
|
|
734
|
-
backgroundColor:
|
|
734
|
+
backgroundColor: Wn,
|
|
735
735
|
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
736
736
|
generateImage: ln
|
|
737
737
|
});
|
|
738
|
-
async function
|
|
739
|
-
if (
|
|
738
|
+
async function Zn() {
|
|
739
|
+
if (Mn("copyAlt", {
|
|
740
740
|
config: M.value,
|
|
741
741
|
dataset: Y.value
|
|
742
742
|
}), !M.value.userOptions.callbacks.altCopy) {
|
|
@@ -748,14 +748,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
748
748
|
dataset: Y.value
|
|
749
749
|
}));
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Qn(e) {
|
|
752
752
|
let t = X.value.length;
|
|
753
753
|
return t ? (e % t + t) % t : null;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function $n() {
|
|
756
756
|
if (k.value !== null) {
|
|
757
757
|
let e = X.value[k.value];
|
|
758
|
-
e &&
|
|
758
|
+
e && En({
|
|
759
759
|
shape: e.shape,
|
|
760
760
|
serie: e.serie,
|
|
761
761
|
S: e.S
|
|
@@ -763,25 +763,25 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
763
763
|
}
|
|
764
764
|
k.value = null, qt.value = "pointer", Z.value = null, wn.value = !1;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function er() {
|
|
767
767
|
k.value = null, Jt.value = !0;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
769
|
+
function tr() {
|
|
770
|
+
$n(), Jt.value = !1;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
if (!I.value ||
|
|
772
|
+
function nr(e) {
|
|
773
|
+
if (!I.value || Ln.value || document.activeElement !== I.value || !X.value.length) return;
|
|
774
774
|
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
775
775
|
if (!t && !n && !r && !i) return;
|
|
776
776
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
777
|
-
|
|
777
|
+
$n();
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
780
|
if (r) {
|
|
781
781
|
if (k.value === null) return;
|
|
782
782
|
let e = X.value[k.value];
|
|
783
783
|
if (!e) return;
|
|
784
|
-
|
|
784
|
+
Nn({
|
|
785
785
|
serie: e.serie,
|
|
786
786
|
shape: e.shape,
|
|
787
787
|
S: e.S
|
|
@@ -789,9 +789,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
791
|
let a = k.value;
|
|
792
|
-
a = a === null ? n ? 0 : X.value.length - 1 :
|
|
792
|
+
a = a === null ? n ? 0 : X.value.length - 1 : Qn(a + (n ? 1 : -1));
|
|
793
793
|
let o = X.value[a];
|
|
794
|
-
o && (k.value = a,
|
|
794
|
+
o && (k.value = a, On({
|
|
795
795
|
shape: o.shape,
|
|
796
796
|
serieName: o.serieName,
|
|
797
797
|
serie: o.serie,
|
|
@@ -801,9 +801,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
801
801
|
triggerMode: "keyboard"
|
|
802
802
|
}));
|
|
803
803
|
}
|
|
804
|
-
let
|
|
805
|
-
head:
|
|
806
|
-
body:
|
|
804
|
+
let $ = u(() => ({
|
|
805
|
+
head: Q.value.head,
|
|
806
|
+
body: Q.value.body.map((e) => [
|
|
807
807
|
e[0] ?? "",
|
|
808
808
|
e[1] ?? "",
|
|
809
809
|
...e.slice(2)
|
|
@@ -811,85 +811,87 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
811
811
|
caption: M.value.a11y.translations.tableCaption,
|
|
812
812
|
notice: M.value.a11y.translations.tableAvailable
|
|
813
813
|
}));
|
|
814
|
-
return
|
|
815
|
-
getData:
|
|
816
|
-
getImage:
|
|
817
|
-
generateCsv:
|
|
814
|
+
return ke({
|
|
815
|
+
getData: kn,
|
|
816
|
+
getImage: zn,
|
|
817
|
+
generateCsv: jn,
|
|
818
818
|
generatePdf: cn,
|
|
819
819
|
generateImage: ln,
|
|
820
|
-
generateSvg:
|
|
820
|
+
generateSvg: Yn,
|
|
821
821
|
hideSeries: yn,
|
|
822
822
|
showSeries: vn,
|
|
823
|
-
toggleTable:
|
|
824
|
-
toggleLabels:
|
|
825
|
-
toggleTooltip:
|
|
826
|
-
toggleAnnotator:
|
|
823
|
+
toggleTable: Pn,
|
|
824
|
+
toggleLabels: Fn,
|
|
825
|
+
toggleTooltip: In,
|
|
826
|
+
toggleAnnotator: Rn,
|
|
827
827
|
toggleFullscreen: Yt,
|
|
828
|
-
copyAlt:
|
|
829
|
-
}), (e, t) => (
|
|
828
|
+
copyAlt: Zn
|
|
829
|
+
}), (e, t) => (b(), p("div", {
|
|
830
830
|
ref_key: "pcpChart",
|
|
831
|
-
ref:
|
|
832
|
-
class:
|
|
833
|
-
style:
|
|
831
|
+
ref: O,
|
|
832
|
+
class: _(`vue-data-ui-component vue-ui-pcp ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
833
|
+
style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height:100%" : ""}`),
|
|
834
834
|
id: `pcp_${A.value}`,
|
|
835
|
-
onMouseenter: t[2] ||= () =>
|
|
836
|
-
onMouseleave: t[3] ||= () =>
|
|
835
|
+
onMouseenter: t[2] ||= () => T(en)(!0),
|
|
836
|
+
onMouseleave: t[3] ||= () => T(en)(!1)
|
|
837
837
|
}, [
|
|
838
|
-
|
|
838
|
+
m("div", {
|
|
839
839
|
id: `chart-instructions-${A.value}`,
|
|
840
840
|
class: "sr-only"
|
|
841
|
-
}, [
|
|
842
|
-
|
|
841
|
+
}, [m("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
842
|
+
$.value.body.length ? (b(), d(Ne, {
|
|
843
843
|
key: 0,
|
|
844
844
|
uid: A.value,
|
|
845
|
-
head:
|
|
846
|
-
body:
|
|
847
|
-
caption:
|
|
848
|
-
notice:
|
|
845
|
+
head: $.value.head,
|
|
846
|
+
body: $.value.body,
|
|
847
|
+
caption: $.value.caption,
|
|
848
|
+
notice: $.value.notice
|
|
849
849
|
}, null, 8, [
|
|
850
850
|
"uid",
|
|
851
851
|
"head",
|
|
852
852
|
"body",
|
|
853
853
|
"caption",
|
|
854
854
|
"notice"
|
|
855
|
-
])) :
|
|
856
|
-
M.value.userOptions.buttons.annotator ? (
|
|
855
|
+
])) : f("", !0),
|
|
856
|
+
M.value.userOptions.buttons.annotator ? (b(), d(T(Et), {
|
|
857
857
|
key: 1,
|
|
858
|
-
svgRef:
|
|
858
|
+
svgRef: T(I),
|
|
859
859
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
860
860
|
color: M.value.style.chart.color,
|
|
861
|
-
active:
|
|
861
|
+
active: Ln.value,
|
|
862
862
|
isCursorPointer: P.value,
|
|
863
|
-
|
|
863
|
+
palette: M.value.userOptions.annotatorPalette,
|
|
864
|
+
onClose: Rn
|
|
864
865
|
}, {
|
|
865
|
-
"annotator-action-close":
|
|
866
|
-
"annotator-action-color":
|
|
867
|
-
"annotator-action-draw":
|
|
868
|
-
"annotator-action-undo":
|
|
869
|
-
"annotator-action-redo":
|
|
870
|
-
"annotator-action-delete":
|
|
866
|
+
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
867
|
+
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
868
|
+
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
869
|
+
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
870
|
+
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
871
|
+
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
871
872
|
_: 3
|
|
872
873
|
}, 8, [
|
|
873
874
|
"svgRef",
|
|
874
875
|
"backgroundColor",
|
|
875
876
|
"color",
|
|
876
877
|
"active",
|
|
877
|
-
"isCursorPointer"
|
|
878
|
-
|
|
879
|
-
|
|
878
|
+
"isCursorPointer",
|
|
879
|
+
"palette"
|
|
880
|
+
])) : f("", !0),
|
|
881
|
+
un.value ? (b(), p("div", {
|
|
880
882
|
key: 2,
|
|
881
883
|
ref_key: "noTitle",
|
|
882
|
-
ref:
|
|
884
|
+
ref: Rt,
|
|
883
885
|
class: "vue-data-ui-no-title-space",
|
|
884
886
|
style: "height:36px; width: 100%;background:transparent"
|
|
885
|
-
}, null, 512)) :
|
|
886
|
-
M.value.style.chart.title.text ? (
|
|
887
|
+
}, null, 512)) : f("", !0),
|
|
888
|
+
M.value.style.chart.title.text ? (b(), p("div", {
|
|
887
889
|
key: 3,
|
|
888
890
|
ref_key: "chartTitle",
|
|
889
|
-
ref:
|
|
891
|
+
ref: Ft,
|
|
890
892
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
891
|
-
}, [(
|
|
892
|
-
key: `title_${
|
|
893
|
+
}, [(b(), d(De, {
|
|
894
|
+
key: `title_${zt.value}`,
|
|
893
895
|
config: {
|
|
894
896
|
title: {
|
|
895
897
|
cy: "pcp-div-title",
|
|
@@ -900,16 +902,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
900
902
|
...M.value.style.chart.title.subtitle
|
|
901
903
|
}
|
|
902
904
|
}
|
|
903
|
-
}, null, 8, ["config"]))], 512)) :
|
|
904
|
-
|
|
905
|
-
M.value.userOptions.show &&
|
|
905
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
906
|
+
m("div", { id: `legend-top-${A.value}` }, null, 8, et),
|
|
907
|
+
M.value.userOptions.show && Nt.value && (T(tn) || T($t)) ? (b(), d(T(Dt), {
|
|
906
908
|
ref_key: "userOptionsRef",
|
|
907
909
|
ref: Wt,
|
|
908
|
-
key: `user_options_${
|
|
910
|
+
key: `user_options_${Pt.value}`,
|
|
909
911
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
910
912
|
color: M.value.style.chart.color,
|
|
911
|
-
isPrinting:
|
|
912
|
-
isImaging:
|
|
913
|
+
isPrinting: T(on),
|
|
914
|
+
isImaging: T(sn),
|
|
913
915
|
uid: A.value,
|
|
914
916
|
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
915
917
|
hasPdf: M.value.userOptions.buttons.pdf,
|
|
@@ -923,29 +925,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
923
925
|
isFullscreen: j.value,
|
|
924
926
|
isTooltip: H.value.showTooltip,
|
|
925
927
|
titles: { ...M.value.userOptions.buttonTitles },
|
|
926
|
-
chartElement:
|
|
928
|
+
chartElement: O.value,
|
|
927
929
|
position: M.value.userOptions.position,
|
|
928
930
|
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
929
|
-
isAnnotation:
|
|
931
|
+
isAnnotation: Ln.value,
|
|
930
932
|
callbacks: M.value.userOptions.callbacks,
|
|
931
933
|
printScale: M.value.userOptions.print.scale,
|
|
932
934
|
tableDialog: M.value.table.useDialog,
|
|
933
935
|
isCursorPointer: P.value,
|
|
934
936
|
onToggleFullscreen: Yt,
|
|
935
|
-
onGeneratePdf:
|
|
936
|
-
onGenerateCsv:
|
|
937
|
-
onGenerateImage:
|
|
938
|
-
onGenerateSvg:
|
|
939
|
-
onToggleTable:
|
|
940
|
-
onToggleLabels:
|
|
941
|
-
onToggleTooltip:
|
|
942
|
-
onToggleAnnotator:
|
|
943
|
-
onCopyAlt:
|
|
944
|
-
style:
|
|
945
|
-
},
|
|
937
|
+
onGeneratePdf: T(cn),
|
|
938
|
+
onGenerateCsv: jn,
|
|
939
|
+
onGenerateImage: T(Xn),
|
|
940
|
+
onGenerateSvg: T(Yn),
|
|
941
|
+
onToggleTable: Pn,
|
|
942
|
+
onToggleLabels: Fn,
|
|
943
|
+
onToggleTooltip: In,
|
|
944
|
+
onToggleAnnotator: Rn,
|
|
945
|
+
onCopyAlt: Zn,
|
|
946
|
+
style: y({ visibility: T(tn) ? T($t) ? "visible" : "hidden" : "visible" })
|
|
947
|
+
}, ze({ _: 2 }, [
|
|
946
948
|
e.$slots.menuIcon ? {
|
|
947
949
|
name: "menuIcon",
|
|
948
|
-
fn:
|
|
950
|
+
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
949
951
|
isOpen: t,
|
|
950
952
|
color: n
|
|
951
953
|
})), void 0, !0)]),
|
|
@@ -953,42 +955,42 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
953
955
|
} : void 0,
|
|
954
956
|
e.$slots.optionTooltip ? {
|
|
955
957
|
name: "optionTooltip",
|
|
956
|
-
fn:
|
|
958
|
+
fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
957
959
|
key: "1"
|
|
958
960
|
} : void 0,
|
|
959
961
|
e.$slots.optionPdf ? {
|
|
960
962
|
name: "optionPdf",
|
|
961
|
-
fn:
|
|
963
|
+
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
962
964
|
key: "2"
|
|
963
965
|
} : void 0,
|
|
964
966
|
e.$slots.optionCsv ? {
|
|
965
967
|
name: "optionCsv",
|
|
966
|
-
fn:
|
|
968
|
+
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
967
969
|
key: "3"
|
|
968
970
|
} : void 0,
|
|
969
971
|
e.$slots.optionImg ? {
|
|
970
972
|
name: "optionImg",
|
|
971
|
-
fn:
|
|
973
|
+
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
972
974
|
key: "4"
|
|
973
975
|
} : void 0,
|
|
974
976
|
e.$slots.optionSvg ? {
|
|
975
977
|
name: "optionSvg",
|
|
976
|
-
fn:
|
|
978
|
+
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
977
979
|
key: "5"
|
|
978
980
|
} : void 0,
|
|
979
981
|
e.$slots.optionTable ? {
|
|
980
982
|
name: "optionTable",
|
|
981
|
-
fn:
|
|
983
|
+
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
982
984
|
key: "6"
|
|
983
985
|
} : void 0,
|
|
984
986
|
e.$slots.optionLabels ? {
|
|
985
987
|
name: "optionLabels",
|
|
986
|
-
fn:
|
|
988
|
+
fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
|
|
987
989
|
key: "7"
|
|
988
990
|
} : void 0,
|
|
989
991
|
e.$slots.optionFullscreen ? {
|
|
990
992
|
name: "optionFullscreen",
|
|
991
|
-
fn:
|
|
993
|
+
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
992
994
|
toggleFullscreen: t,
|
|
993
995
|
isFullscreen: n
|
|
994
996
|
})), void 0, !0)]),
|
|
@@ -996,7 +998,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
996
998
|
} : void 0,
|
|
997
999
|
e.$slots.optionAnnotator ? {
|
|
998
1000
|
name: "optionAnnotator",
|
|
999
|
-
fn:
|
|
1001
|
+
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
1000
1002
|
toggleAnnotator: t,
|
|
1001
1003
|
isAnnotator: n
|
|
1002
1004
|
})), void 0, !0)]),
|
|
@@ -1004,79 +1006,79 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1004
1006
|
} : void 0,
|
|
1005
1007
|
e.$slots.optionAltCopy ? {
|
|
1006
1008
|
name: "optionAltCopy",
|
|
1007
|
-
fn:
|
|
1009
|
+
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1008
1010
|
key: "10"
|
|
1009
1011
|
} : void 0,
|
|
1010
1012
|
e.$slots["custom-menu-before"] ? {
|
|
1011
1013
|
name: "custom-menu-before",
|
|
1012
|
-
fn:
|
|
1014
|
+
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1013
1015
|
key: "11"
|
|
1014
1016
|
} : void 0,
|
|
1015
1017
|
e.$slots["custom-menu-after"] ? {
|
|
1016
1018
|
name: "custom-menu-after",
|
|
1017
|
-
fn:
|
|
1019
|
+
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1018
1020
|
key: "12"
|
|
1019
1021
|
} : void 0
|
|
1020
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) :
|
|
1021
|
-
|
|
1022
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : f("", !0),
|
|
1023
|
+
m("div", tt, [(b(), p("svg", {
|
|
1022
1024
|
ref_key: "svgRef",
|
|
1023
1025
|
ref: I,
|
|
1024
|
-
xmlns:
|
|
1026
|
+
xmlns: T(pe),
|
|
1025
1027
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1026
|
-
class:
|
|
1028
|
+
class: _({
|
|
1027
1029
|
"vue-data-ui-fullscreen--on": j.value,
|
|
1028
1030
|
"vue-data-ui-fulscreen--off": !j.value,
|
|
1029
|
-
"vue-data-ui-no-transition": !
|
|
1031
|
+
"vue-data-ui-no-transition": !T(N)
|
|
1030
1032
|
}),
|
|
1031
1033
|
viewBox: `0 0 ${V.value.chartWidth <= 0 ? 10 : V.value.chartWidth} ${V.value.chartHeight <= 0 ? 10 : V.value.chartHeight}`,
|
|
1032
|
-
style:
|
|
1034
|
+
style: y(`max-width:100%; overflow: visible; background:transparent;color:${M.value.style.chart.color}`),
|
|
1033
1035
|
tabindex: "0",
|
|
1034
|
-
onFocus:
|
|
1035
|
-
onBlur:
|
|
1036
|
-
onKeydown:
|
|
1036
|
+
onFocus: er,
|
|
1037
|
+
onBlur: tr,
|
|
1038
|
+
onKeydown: nr
|
|
1037
1039
|
}, [
|
|
1038
|
-
|
|
1039
|
-
e.$slots["chart-background"] ? (
|
|
1040
|
+
Ve(T(Ot)),
|
|
1041
|
+
e.$slots["chart-background"] ? (b(), p("foreignObject", {
|
|
1040
1042
|
key: 0,
|
|
1041
1043
|
x: V.value.left,
|
|
1042
1044
|
y: V.value.top,
|
|
1043
1045
|
width: V.value.width,
|
|
1044
1046
|
height: V.value.height,
|
|
1045
1047
|
style: { pointerEvents: "none" }
|
|
1046
|
-
}, [
|
|
1047
|
-
(
|
|
1048
|
+
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, rt)) : f("", !0),
|
|
1049
|
+
(b(!0), p(l, null, S(J.value, (e, t) => (b(), p("g", it, [m("line", {
|
|
1048
1050
|
x1: V.value.left + K.value * t + K.value / 2,
|
|
1049
1051
|
x2: V.value.left + K.value * t + K.value / 2,
|
|
1050
1052
|
y1: V.value.top,
|
|
1051
1053
|
y2: V.value.bottom,
|
|
1052
1054
|
stroke: M.value.style.chart.yAxis.stroke,
|
|
1053
1055
|
"stroke-width": M.value.style.chart.yAxis.strokeWidth
|
|
1054
|
-
}, null, 8,
|
|
1055
|
-
class:
|
|
1056
|
+
}, null, 8, at), M.value.style.chart.yAxis.labels.ticks.show ? (b(), p(l, { key: 0 }, [(b(!0), p(l, null, S(e.ticks, (t, n) => (b(), p("path", {
|
|
1057
|
+
class: _({ "vue-data-ui-transition": T(N) }),
|
|
1056
1058
|
key: `tick_${e.name}_${n}`,
|
|
1057
1059
|
d: `M${t.x},${t.y} ${t.x - 10},${t.y}`,
|
|
1058
1060
|
stroke: M.value.style.chart.yAxis.stroke,
|
|
1059
1061
|
"stroke-width": M.value.style.chart.yAxis.strokeWidth,
|
|
1060
|
-
style:
|
|
1061
|
-
}, null, 14,
|
|
1062
|
+
style: y(`opacity:${Z.value && !H.value.showTooltip ? .2 : 1}`)
|
|
1063
|
+
}, null, 14, ot))), 128)), T(F) ? f("", !0) : (b(), p("g", st, [(b(!0), p(l, null, S(e.ticks, (n, r) => (b(), p("text", {
|
|
1062
1064
|
key: `tl_${e.name}_${r}`,
|
|
1063
|
-
class:
|
|
1065
|
+
class: _({ "vue-data-ui-transition": T(N) }),
|
|
1064
1066
|
transform: `translate(${n.x - 12 + M.value.style.chart.yAxis.labels.ticks.offsetX}, ${n.y + M.value.style.chart.yAxis.labels.ticks.offsetY + z.value.ticksFontSize / 3})`,
|
|
1065
1067
|
fill: M.value.style.chart.yAxis.labels.ticks.color,
|
|
1066
1068
|
"text-anchor": "end",
|
|
1067
1069
|
"font-size": z.value.ticksFontSize,
|
|
1068
1070
|
"font-weight": M.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
1069
|
-
style:
|
|
1070
|
-
},
|
|
1071
|
+
style: y(`opacity:${Z.value && !H.value.showTooltip ? .2 : 1}`)
|
|
1072
|
+
}, w(Sn({
|
|
1071
1073
|
value: n.value,
|
|
1072
1074
|
index: t,
|
|
1073
1075
|
datapoint: n
|
|
1074
|
-
})), 15,
|
|
1075
|
-
M.value.style.chart.yAxis.labels.showAxisNames ? (
|
|
1076
|
+
})), 15, ct))), 128))]))], 64)) : f("", !0)]))), 256)),
|
|
1077
|
+
M.value.style.chart.yAxis.labels.showAxisNames ? (b(), p("g", {
|
|
1076
1078
|
key: 1,
|
|
1077
1079
|
ref_key: "xAxisLabels",
|
|
1078
1080
|
ref: Gt
|
|
1079
|
-
}, [(
|
|
1081
|
+
}, [(b(!0), p(l, null, S(J.value, (e, t) => (b(), p(l, null, [String(e.name).includes("\n") ? (b(), p("text", {
|
|
1080
1082
|
key: 1,
|
|
1081
1083
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1082
1084
|
fill: M.value.style.chart.yAxis.labels.axisNamesColor,
|
|
@@ -1084,14 +1086,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1084
1086
|
"font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1085
1087
|
"text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1086
1088
|
transform: `translate(${V.value.left + K.value * t + K.value / 2}, ${B.value - z.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`,
|
|
1087
|
-
innerHTML:
|
|
1089
|
+
innerHTML: T(i)({
|
|
1088
1090
|
content: String(e.name),
|
|
1089
1091
|
fontSize: z.value.axisNameFontSize,
|
|
1090
1092
|
fill: M.value.style.chart.yAxis.labels.axisNamesColor,
|
|
1091
1093
|
x: 0,
|
|
1092
1094
|
y: 0
|
|
1093
1095
|
})
|
|
1094
|
-
}, null, 8,
|
|
1096
|
+
}, null, 8, ut)) : (b(), p("text", {
|
|
1095
1097
|
key: 0,
|
|
1096
1098
|
class: "vue-ui-parallel-coordinate-plot-x-label",
|
|
1097
1099
|
fill: M.value.style.chart.yAxis.labels.axisNamesColor,
|
|
@@ -1099,10 +1101,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1099
1101
|
"font-weight": M.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
1100
1102
|
"text-anchor": M.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : M.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
|
|
1101
1103
|
transform: `translate(${V.value.left + K.value * t + K.value / 2}, ${B.value - z.value.axisNameFontSize}), rotate(${M.value.style.chart.yAxis.labels.axisNamesRotation})`
|
|
1102
|
-
},
|
|
1103
|
-
(
|
|
1104
|
-
M.value.style.chart.plots.show ? (
|
|
1105
|
-
(
|
|
1104
|
+
}, w(e.name), 9, lt))], 64))), 256))], 512)) : f("", !0),
|
|
1105
|
+
(b(!0), p(l, null, S(Y.value, (t, n) => (b(), p("g", null, [(b(!0), p(l, null, S(t.series, (r, i) => (b(), p("g", null, [
|
|
1106
|
+
M.value.style.chart.plots.show ? (b(), p("g", dt, [
|
|
1107
|
+
(b(!0), p(l, null, S(r.datapoints, (e, a) => (b(), d(Oe, {
|
|
1106
1108
|
plot: {
|
|
1107
1109
|
x: e.x,
|
|
1108
1110
|
y: e.y
|
|
@@ -1112,7 +1114,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1112
1114
|
radius: t.shape === "triangle" ? z.value.plotSize * 1.2 : z.value.plotSize,
|
|
1113
1115
|
stroke: M.value.style.chart.backgroundColor,
|
|
1114
1116
|
strokeWidth: .5,
|
|
1115
|
-
onMouseenter: (e) =>
|
|
1117
|
+
onMouseenter: (e) => On({
|
|
1116
1118
|
shape: t.shape,
|
|
1117
1119
|
serieName: t.name,
|
|
1118
1120
|
serie: r,
|
|
@@ -1121,13 +1123,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1121
1123
|
S: n,
|
|
1122
1124
|
triggerMode: "pointer"
|
|
1123
1125
|
}),
|
|
1124
|
-
onMouseleave: (e) =>
|
|
1126
|
+
onMouseleave: (e) => En({
|
|
1125
1127
|
serie: r,
|
|
1126
1128
|
shape: t.shape,
|
|
1127
1129
|
S: n
|
|
1128
1130
|
}),
|
|
1129
|
-
style:
|
|
1130
|
-
onClick: () =>
|
|
1131
|
+
style: y(`opacity:${Z.value ? Z.value === r.id ? M.value.style.chart.plots.opacity : .2 : M.value.style.chart.plots.opacity}`),
|
|
1132
|
+
onClick: () => Nn({
|
|
1131
1133
|
serie: r,
|
|
1132
1134
|
shape: t.shape,
|
|
1133
1135
|
S: n
|
|
@@ -1143,7 +1145,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1143
1145
|
"style",
|
|
1144
1146
|
"onClick"
|
|
1145
1147
|
]))), 256)),
|
|
1146
|
-
H.value.showTooltip ?
|
|
1148
|
+
H.value.showTooltip ? f("", !0) : (b(), p(l, { key: 0 }, [Z.value && Z.value === r.id && r.datapoints.length ? (b(), p("text", {
|
|
1147
1149
|
key: 0,
|
|
1148
1150
|
x: r.datapoints[0].x - z.value.ticksFontSize,
|
|
1149
1151
|
y: r.datapoints[0].y + z.value.ticksFontSize / 3,
|
|
@@ -1151,29 +1153,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1151
1153
|
"font-size": z.value.ticksFontSize,
|
|
1152
1154
|
fill: t.color,
|
|
1153
1155
|
"font-weight": "bold"
|
|
1154
|
-
},
|
|
1155
|
-
M.value.style.chart.comments.show ? (
|
|
1156
|
+
}, w(r.name), 9, ft)) : f("", !0)], 64)),
|
|
1157
|
+
M.value.style.chart.comments.show ? (b(!0), p(l, { key: 1 }, S(r.datapoints, (n) => (b(), p("g", null, [n.comment ? (b(), p("foreignObject", {
|
|
1156
1158
|
key: 0,
|
|
1157
1159
|
style: { overflow: "visible" },
|
|
1158
1160
|
height: "12",
|
|
1159
1161
|
width: M.value.style.chart.comments.width,
|
|
1160
1162
|
x: n.x - M.value.style.chart.comments.width / 2 + M.value.style.chart.comments.offsetX,
|
|
1161
1163
|
y: n.y + M.value.style.chart.comments.offsetY + 6
|
|
1162
|
-
}, [
|
|
1164
|
+
}, [m("div", mt, [C(e.$slots, "plot-comment", { plot: {
|
|
1163
1165
|
...n,
|
|
1164
1166
|
color: t.color
|
|
1165
|
-
} }, void 0, !0)])], 8,
|
|
1166
|
-
])) :
|
|
1167
|
-
|
|
1167
|
+
} }, void 0, !0)])], 8, pt)) : f("", !0)]))), 256)) : f("", !0)
|
|
1168
|
+
])) : f("", !0),
|
|
1169
|
+
m("path", {
|
|
1168
1170
|
d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1169
1171
|
stroke: t.color,
|
|
1170
1172
|
"stroke-width": M.value.style.chart.lines.strokeWidth,
|
|
1171
1173
|
fill: "none",
|
|
1172
|
-
class:
|
|
1174
|
+
class: _({
|
|
1173
1175
|
"vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
|
|
1174
|
-
"vue-data-ui-transition":
|
|
1176
|
+
"vue-data-ui-transition": T(N)
|
|
1175
1177
|
}),
|
|
1176
|
-
onMouseenter: (e) =>
|
|
1178
|
+
onMouseenter: (e) => On({
|
|
1177
1179
|
shape: t.shape,
|
|
1178
1180
|
serieName: t.name,
|
|
1179
1181
|
serie: r,
|
|
@@ -1182,29 +1184,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1182
1184
|
S: n,
|
|
1183
1185
|
triggerMode: "pointer"
|
|
1184
1186
|
}),
|
|
1185
|
-
onMouseleave: (e) =>
|
|
1187
|
+
onMouseleave: (e) => En({
|
|
1186
1188
|
serie: r,
|
|
1187
1189
|
shape: t.shape,
|
|
1188
1190
|
S: n
|
|
1189
1191
|
}),
|
|
1190
|
-
onClick: () =>
|
|
1192
|
+
onClick: () => Nn({
|
|
1191
1193
|
serie: r,
|
|
1192
1194
|
shape: t.shape,
|
|
1193
1195
|
S: n
|
|
1194
1196
|
}),
|
|
1195
|
-
style:
|
|
1196
|
-
}, null, 46,
|
|
1197
|
-
H.value.showTooltip ? (
|
|
1197
|
+
style: y(`opacity:${Z.value ? Z.value === r.id ? M.value.style.chart.lines.opacity : .2 : M.value.style.chart.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation ? r.pathLength : 0}`)
|
|
1198
|
+
}, null, 46, ht),
|
|
1199
|
+
H.value.showTooltip ? (b(), p("path", {
|
|
1198
1200
|
key: 1,
|
|
1199
1201
|
d: `M${M.value.style.chart.lines.smooth ? r.smoothPath : r.straightPath}`,
|
|
1200
1202
|
stroke: "transparent",
|
|
1201
1203
|
"stroke-width": 12,
|
|
1202
1204
|
fill: "none",
|
|
1203
|
-
class:
|
|
1205
|
+
class: _({
|
|
1204
1206
|
"vue-ui-pcp-animated vue-data-ui-line-animated": M.value.useCssAnimation,
|
|
1205
|
-
"vue-data-ui-transition":
|
|
1207
|
+
"vue-data-ui-transition": T(N)
|
|
1206
1208
|
}),
|
|
1207
|
-
onMouseenter: (e) =>
|
|
1209
|
+
onMouseenter: (e) => On({
|
|
1208
1210
|
shape: t.shape,
|
|
1209
1211
|
serieName: t.name,
|
|
1210
1212
|
serie: r,
|
|
@@ -1213,28 +1215,28 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1213
1215
|
S: n,
|
|
1214
1216
|
triggerMode: "pointer"
|
|
1215
1217
|
}),
|
|
1216
|
-
onMouseleave: (e) =>
|
|
1218
|
+
onMouseleave: (e) => En({
|
|
1217
1219
|
serie: r,
|
|
1218
1220
|
shape: t.shape,
|
|
1219
1221
|
S: n
|
|
1220
1222
|
}),
|
|
1221
|
-
onClick: () =>
|
|
1223
|
+
onClick: () => Nn({
|
|
1222
1224
|
serie: r,
|
|
1223
1225
|
shape: t.shape,
|
|
1224
1226
|
S: n
|
|
1225
1227
|
}),
|
|
1226
1228
|
style: { opacity: "0" }
|
|
1227
|
-
}, null, 42,
|
|
1229
|
+
}, null, 42, gt)) : f("", !0)
|
|
1228
1230
|
]))), 256))]))), 256)),
|
|
1229
|
-
(
|
|
1231
|
+
(b(!0), p(l, null, S(Y.value, (e, t) => (b(), p("g", null, [(b(!0), p(l, null, S(e.series, (n, r) => (b(), p("g", null, [!T(F) && (H.value.dataLabels.show || Z.value && Z.value === n.id) ? (b(!0), p(l, { key: 0 }, S(n.datapoints, (i, a) => (b(), p("text", {
|
|
1230
1232
|
key: `pl_${n.id}_${a}`,
|
|
1231
1233
|
transform: `translate(${i.x + 12 + M.value.style.chart.yAxis.labels.datapoints.offsetX}, ${i.y + M.value.style.chart.yAxis.labels.datapoints.offsetY + z.value.datapointFontSize / 3})`,
|
|
1232
1234
|
fill: M.value.style.chart.yAxis.labels.datapoints.useSerieColor ? e.color : M.value.style.chart.yAxis.labels.datapoints.color,
|
|
1233
1235
|
"text-anchor": "start",
|
|
1234
1236
|
"font-weight": M.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
1235
|
-
class:
|
|
1237
|
+
class: _({
|
|
1236
1238
|
"vue-ui-pcp-plot-label": !0,
|
|
1237
|
-
"vue-data-ui-transition":
|
|
1239
|
+
"vue-data-ui-transition": T(N)
|
|
1238
1240
|
}),
|
|
1239
1241
|
"font-size": z.value.datapointFontSize,
|
|
1240
1242
|
stroke: M.value.style.chart.backgroundColor,
|
|
@@ -1242,7 +1244,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1242
1244
|
"stroke-linecap": "round",
|
|
1243
1245
|
"stroke-linejoin": "round",
|
|
1244
1246
|
"paint-order": "stroke fill",
|
|
1245
|
-
onMouseenter: (i) =>
|
|
1247
|
+
onMouseenter: (i) => On({
|
|
1246
1248
|
shape: e.shape,
|
|
1247
1249
|
serieName: e.name,
|
|
1248
1250
|
serie: n,
|
|
@@ -1251,41 +1253,41 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1251
1253
|
S: t,
|
|
1252
1254
|
triggerMode: "pointer"
|
|
1253
1255
|
}),
|
|
1254
|
-
onMouseleave: (r) =>
|
|
1256
|
+
onMouseleave: (r) => En({
|
|
1255
1257
|
serie: n,
|
|
1256
1258
|
shape: e.shape,
|
|
1257
1259
|
S: t
|
|
1258
1260
|
}),
|
|
1259
|
-
onClick: () =>
|
|
1261
|
+
onClick: () => Nn({
|
|
1260
1262
|
serie: n,
|
|
1261
1263
|
shape: e.shape,
|
|
1262
1264
|
S: t
|
|
1263
1265
|
}),
|
|
1264
|
-
style:
|
|
1265
|
-
},
|
|
1266
|
+
style: y(`opacity:${Z.value ? Z.value === n.id ? 1 : .2 : 1}`)
|
|
1267
|
+
}, w(Sn({
|
|
1266
1268
|
value: i.value,
|
|
1267
1269
|
index: a,
|
|
1268
1270
|
datapoint: i
|
|
1269
|
-
})), 47,
|
|
1270
|
-
|
|
1271
|
+
})), 47, _t))), 128)) : f("", !0)]))), 256))]))), 256)),
|
|
1272
|
+
C(e.$slots, "svg", { svg: {
|
|
1271
1273
|
...V.value,
|
|
1272
|
-
isPrintingImg:
|
|
1273
|
-
isPrintingSvg:
|
|
1274
|
+
isPrintingImg: T(on) || T(sn) || T(qn),
|
|
1275
|
+
isPrintingSvg: T(Jn)
|
|
1274
1276
|
} }, void 0, !0)
|
|
1275
|
-
], 46,
|
|
1277
|
+
], 46, nt)), e.$slots.hint ? (b(), p("div", vt, [C(e.$slots, "hint", v(g({
|
|
1276
1278
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1277
1279
|
isVisible: Jt.value
|
|
1278
|
-
})), void 0, !0)])) :
|
|
1279
|
-
e.$slots.watermark ? (
|
|
1280
|
-
|
|
1281
|
-
|
|
1280
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
1281
|
+
e.$slots.watermark ? (b(), p("div", yt, [C(e.$slots, "watermark", v(g({ isPrinting: T(on) || T(sn) || T(qn) || T(Jn) })), void 0, !0)])) : f("", !0),
|
|
1282
|
+
m("div", { id: `legend-bottom-${A.value}` }, null, 8, bt),
|
|
1283
|
+
Ht.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (b(), d(Re, {
|
|
1282
1284
|
key: 6,
|
|
1283
1285
|
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
1284
|
-
}, [
|
|
1286
|
+
}, [m("div", {
|
|
1285
1287
|
ref_key: "chartLegend",
|
|
1286
|
-
ref:
|
|
1287
|
-
}, [
|
|
1288
|
-
key: `legend_${
|
|
1288
|
+
ref: It
|
|
1289
|
+
}, [C(e.$slots, "legend", { legend: G.value }, () => [M.value.style.chart.legend.show && Nt.value ? (b(), d(Ie, {
|
|
1290
|
+
key: `legend_${Bt.value}`,
|
|
1289
1291
|
legendSet: G.value,
|
|
1290
1292
|
config: bn.value,
|
|
1291
1293
|
isCursorPointer: P.value,
|
|
@@ -1293,11 +1295,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1293
1295
|
gn(e.id);
|
|
1294
1296
|
}
|
|
1295
1297
|
}, {
|
|
1296
|
-
item:
|
|
1298
|
+
item: E(({ legend: e, index: t }) => [m("div", {
|
|
1297
1299
|
onClick: (t) => e.segregate(),
|
|
1298
|
-
style:
|
|
1299
|
-
},
|
|
1300
|
-
legendToggle:
|
|
1300
|
+
style: y(`opacity:${U.value.includes(e.id) ? .5 : 1}`)
|
|
1301
|
+
}, w(e.name), 13, xt)]),
|
|
1302
|
+
legendToggle: E(() => [G.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(F) ? (b(), d(Me, {
|
|
1301
1303
|
key: 0,
|
|
1302
1304
|
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1303
1305
|
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1311,20 +1313,20 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1311
1313
|
"fontSize",
|
|
1312
1314
|
"checked",
|
|
1313
1315
|
"isCursorPointer"
|
|
1314
|
-
])) :
|
|
1316
|
+
])) : f("", !0)]),
|
|
1315
1317
|
_: 1
|
|
1316
1318
|
}, 8, [
|
|
1317
1319
|
"legendSet",
|
|
1318
1320
|
"config",
|
|
1319
1321
|
"isCursorPointer"
|
|
1320
|
-
])) :
|
|
1321
|
-
e.$slots.source ? (
|
|
1322
|
+
])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
|
|
1323
|
+
e.$slots.source ? (b(), p("div", {
|
|
1322
1324
|
key: 7,
|
|
1323
1325
|
ref_key: "source",
|
|
1324
|
-
ref:
|
|
1326
|
+
ref: Lt,
|
|
1325
1327
|
dir: "auto"
|
|
1326
|
-
}, [
|
|
1327
|
-
|
|
1328
|
+
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
1329
|
+
Ve(T(St), {
|
|
1328
1330
|
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1329
1331
|
show: H.value.showTooltip && wn.value,
|
|
1330
1332
|
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1337,10 +1339,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1337
1339
|
position: M.value.style.chart.tooltip.position,
|
|
1338
1340
|
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1339
1341
|
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1340
|
-
parent:
|
|
1342
|
+
parent: O.value,
|
|
1341
1343
|
content: Tn.value,
|
|
1342
1344
|
isFullscreen: j.value,
|
|
1343
|
-
isCustom:
|
|
1345
|
+
isCustom: T(n)(M.value.style.chart.tooltip.customFormat),
|
|
1344
1346
|
smooth: M.value.style.chart.tooltip.smooth,
|
|
1345
1347
|
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1346
1348
|
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
@@ -1348,9 +1350,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1348
1350
|
isA11yMode: qt.value === "keyboard",
|
|
1349
1351
|
a11yPosition: Kt.value
|
|
1350
1352
|
}, {
|
|
1351
|
-
"tooltip-before":
|
|
1352
|
-
tooltip:
|
|
1353
|
-
"tooltip-after":
|
|
1353
|
+
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Cn.value })), void 0, !0)]),
|
|
1354
|
+
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Cn.value })), void 0, !0)]),
|
|
1355
|
+
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...Cn.value })), void 0, !0)]),
|
|
1354
1356
|
_: 3
|
|
1355
1357
|
}, 8, [
|
|
1356
1358
|
"teleportTo",
|
|
@@ -1376,24 +1378,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1376
1378
|
"isA11yMode",
|
|
1377
1379
|
"a11yPosition"
|
|
1378
1380
|
]),
|
|
1379
|
-
|
|
1381
|
+
Nt.value && M.value.userOptions.buttons.table ? (b(), d(Ke(Hn.value.component), He({ key: 8 }, Hn.value.props, {
|
|
1380
1382
|
ref_key: "tableUnit",
|
|
1381
|
-
ref:
|
|
1382
|
-
onClose:
|
|
1383
|
-
}),
|
|
1384
|
-
content:
|
|
1385
|
-
key: `table_${
|
|
1386
|
-
colNames:
|
|
1387
|
-
head:
|
|
1388
|
-
body:
|
|
1389
|
-
config:
|
|
1390
|
-
title: M.value.table.useDialog ? "" :
|
|
1383
|
+
ref: Ut,
|
|
1384
|
+
onClose: Un
|
|
1385
|
+
}), ze({
|
|
1386
|
+
content: E(() => [(b(), d(T(Tt), {
|
|
1387
|
+
key: `table_${Vt.value}`,
|
|
1388
|
+
colNames: Q.value.colNames,
|
|
1389
|
+
head: Q.value.head,
|
|
1390
|
+
body: Q.value.body,
|
|
1391
|
+
config: Q.value.config,
|
|
1392
|
+
title: M.value.table.useDialog ? "" : Hn.value.title,
|
|
1391
1393
|
withCloseButton: !M.value.table.useDialog,
|
|
1392
1394
|
isCursorPointer: P.value,
|
|
1393
|
-
onClose:
|
|
1395
|
+
onClose: Un
|
|
1394
1396
|
}, {
|
|
1395
|
-
th:
|
|
1396
|
-
td:
|
|
1397
|
+
th: E(({ th: e }) => [m("div", null, w(e), 1)]),
|
|
1398
|
+
td: E(({ td: e }) => [Be(w(e), 1)]),
|
|
1397
1399
|
_: 1
|
|
1398
1400
|
}, 8, [
|
|
1399
1401
|
"colNames",
|
|
@@ -1407,24 +1409,24 @@ var Qe = /* @__PURE__ */ e({ default: () => Ct }), $e = ["id"], et = ["id"], tt
|
|
|
1407
1409
|
_: 2
|
|
1408
1410
|
}, [M.value.table.useDialog ? {
|
|
1409
1411
|
name: "title",
|
|
1410
|
-
fn:
|
|
1412
|
+
fn: E(() => [Be(w(Hn.value.title), 1)]),
|
|
1411
1413
|
key: "0"
|
|
1412
1414
|
} : void 0, M.value.table.useDialog ? {
|
|
1413
1415
|
name: "actions",
|
|
1414
|
-
fn:
|
|
1416
|
+
fn: E(() => [m("button", {
|
|
1415
1417
|
tabindex: "0",
|
|
1416
1418
|
class: "vue-ui-user-options-button",
|
|
1417
|
-
onClick: t[1] ||= (e) =>
|
|
1418
|
-
style:
|
|
1419
|
-
}, [
|
|
1419
|
+
onClick: t[1] ||= (e) => jn(M.value.userOptions.callbacks.csv),
|
|
1420
|
+
style: y({ cursor: P.value ? "pointer" : "default" })
|
|
1421
|
+
}, [Ve(T(Ct), {
|
|
1420
1422
|
name: "fileCsv",
|
|
1421
|
-
stroke:
|
|
1423
|
+
stroke: Hn.value.props.color
|
|
1422
1424
|
}, null, 8, ["stroke"])], 4)]),
|
|
1423
1425
|
key: "1"
|
|
1424
|
-
} : void 0]), 1040)) :
|
|
1425
|
-
|
|
1426
|
-
], 46,
|
|
1426
|
+
} : void 0]), 1040)) : f("", !0),
|
|
1427
|
+
C(e.$slots, "skeleton", {}, () => [T(F) ? (b(), d(be, { key: 0 })) : f("", !0)], !0)
|
|
1428
|
+
], 46, Qe));
|
|
1427
1429
|
}
|
|
1428
|
-
}, [["__scopeId", "data-v-
|
|
1430
|
+
}, [["__scopeId", "data-v-6fef6e95"]]);
|
|
1429
1431
|
//#endregion
|
|
1430
|
-
export {
|
|
1432
|
+
export { Ze as n, St as t };
|