vue-data-ui 2.3.29 → 2.3.31
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-Bh7WeO_g.js → Arrow-CiAaagmx.js} +1 -1
- package/dist/{Arrow-B8z06v67.cjs → Arrow-CiUBvBlb.cjs} +1 -1
- package/dist/{BaseIcon-BG_bJS3R.js → BaseIcon-BHjAlRHU.js} +1 -1
- package/dist/{BaseIcon-DDCJA3rm.cjs → BaseIcon-D5tyFpQV.cjs} +1 -1
- package/dist/{DataTable-Doh_4M84.cjs → DataTable-ByKKUsaO.cjs} +1 -1
- package/dist/{DataTable-CsPidn0_.js → DataTable-DqPGv4Ms.js} +2 -2
- package/dist/{Legend-CkQ_zypV.js → Legend-3WC5-bUm.js} +1 -1
- package/dist/{Legend-B20rRwGi.cjs → Legend-BfwTJ9M-.cjs} +1 -1
- package/dist/{Shape-B4gGeBLI.js → Shape-C4kR-mjQ.js} +1 -1
- package/dist/{Shape-B8O8_E6l.cjs → Shape-CAjMa3HT.cjs} +1 -1
- package/dist/{Slicer-BXveU40S.cjs → Slicer-BScyt_Vx.cjs} +1 -1
- package/dist/{Slicer-DaEfxscP.js → Slicer-CPKkdrpR.js} +1 -1
- package/dist/{Title-eBTH8iGJ.js → Title-CKSMMGjd.js} +1 -1
- package/dist/{Title-BU6E8Xld.cjs → Title-CNJKmNgA.cjs} +1 -1
- package/dist/{Tooltip-Oicp_EIo.cjs → Tooltip-BIHm4byQ.cjs} +1 -1
- package/dist/{Tooltip-B11OahTD.js → Tooltip-C9Q2lE3W.js} +1 -1
- package/dist/{index-BlXzlBwZ.js → index-BJ6NXF-z.js} +2 -1
- package/dist/index-DQvb5Vgo.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-BoNl5H_z.js → useNestedProp-AR9tJrsp.js} +1 -1
- package/dist/{useNestedProp-Cggpoz7e.cjs → useNestedProp-D1F0KM3m.cjs} +1 -1
- package/dist/{usePrinter-CZ8F5Cth.js → usePrinter-BUIam1ao.js} +1 -1
- package/dist/{usePrinter-DoYKBzst.cjs → usePrinter-C4oaA82s.cjs} +1 -1
- package/dist/{vue-data-ui-CGgiWEo3.cjs → vue-data-ui-Ch_eQQZR.cjs} +1 -1
- package/dist/{vue-data-ui-BOqzG_nZ.js → vue-data-ui-DfNedsHE.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CpntMt7p.cjs → vue-ui-3d-bar-BiF2mAOR.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CjnVg4YI.js → vue-ui-3d-bar-cav5cdhf.js} +7 -7
- package/dist/{vue-ui-accordion-CTYvdLLH.cjs → vue-ui-accordion-D5-giD3x.cjs} +1 -1
- package/dist/{vue-ui-accordion-wHRG3nXl.js → vue-ui-accordion-GCDGaaYO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-vmCwgRy9.js → vue-ui-age-pyramid-CCDfdeJE.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DDiL1Zje.cjs → vue-ui-age-pyramid-DA-7y6nN.cjs} +1 -1
- package/dist/{vue-ui-annotator-DQ3wKf9n.cjs → vue-ui-annotator-BKzaeqJR.cjs} +1 -1
- package/dist/{vue-ui-annotator-9FGJdNLY.js → vue-ui-annotator-B_vPtBm9.js} +1 -1
- package/dist/{vue-ui-candlestick-DpMr2r0i.js → vue-ui-candlestick-CeZC3-9i.js} +9 -9
- package/dist/{vue-ui-candlestick-6joQ9JKQ.cjs → vue-ui-candlestick-Cgg58gem.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CgR4ADOz.js → vue-ui-carousel-table-e0zW3fCz.js} +4 -4
- package/dist/{vue-ui-carousel-table-BV0EOLqU.cjs → vue-ui-carousel-table-ySFFobPq.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Ca2878kV.js → vue-ui-chestnut-ClIE26od.js} +6 -6
- package/dist/{vue-ui-chestnut-CxoCcw_B.cjs → vue-ui-chestnut-Cxw7FjDt.cjs} +1 -1
- package/dist/{vue-ui-cursor-BW8C6oUc.js → vue-ui-cursor-5ilFNncb.js} +2 -2
- package/dist/{vue-ui-cursor-DxF_gXQf.cjs → vue-ui-cursor-DyIiGBho.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DN4nErBZ.js → vue-ui-dashboard-CXrmy76c.js} +2 -2
- package/dist/{vue-ui-dashboard-BGrVyITN.cjs → vue-ui-dashboard-D-JyU495.cjs} +1 -1
- package/dist/{vue-ui-digits-CpSKBG2c.cjs → vue-ui-digits-B30HSHeA.cjs} +1 -1
- package/dist/{vue-ui-digits-CmSFSs5S.js → vue-ui-digits-BEZa60-l.js} +2 -2
- package/dist/{vue-ui-donut-C29yXH3H.cjs → vue-ui-donut-0jWL1Wzc.cjs} +1 -1
- package/dist/{vue-ui-donut-BqfRwAIM.js → vue-ui-donut-GPrnPVJq.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DIR7yBUC.js → vue-ui-donut-evolution-D0LbULdi.js} +9 -9
- package/dist/{vue-ui-donut-evolution-COFG73Xl.cjs → vue-ui-donut-evolution-hoHN3gzZ.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BASuPAvI.js → vue-ui-dumbbell-67OcxNA7.js} +8 -8
- package/dist/{vue-ui-dumbbell-1NA60u3h.cjs → vue-ui-dumbbell-Cb87RX2P.cjs} +1 -1
- package/dist/{vue-ui-flow-DBK7d0DQ.cjs → vue-ui-flow-DPVIb1Kj.cjs} +1 -1
- package/dist/{vue-ui-flow-wq0aqc5r.js → vue-ui-flow-Vi3PWSP4.js} +7 -7
- package/dist/{vue-ui-galaxy-BgdVvk4N.cjs → vue-ui-galaxy-B5oGFG97.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CFQ2hQAl.js → vue-ui-galaxy-BgO0ZTYY.js} +9 -9
- package/dist/{vue-ui-gauge-CIN265dN.js → vue-ui-gauge-B0w9GJOy.js} +5 -5
- package/dist/{vue-ui-gauge-C4_kEbgg.cjs → vue-ui-gauge-qe4o6Sjl.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpT3iwC9.cjs → vue-ui-gizmo-BVoL7TEm.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DRXWEpqU.js → vue-ui-gizmo-BXN_MwN4.js} +2 -2
- package/dist/{vue-ui-heatmap-CVD7FVfk.cjs → vue-ui-heatmap-8TBiusXd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dc0ft_Ga.js → vue-ui-heatmap-BHNaaYJl.js} +8 -8
- package/dist/{vue-ui-kpi-WDZIt76s.cjs → vue-ui-kpi-BeGFsXxC.cjs} +1 -1
- package/dist/{vue-ui-kpi-DDL1TvBP.js → vue-ui-kpi-DTu-z6sj.js} +2 -2
- package/dist/{vue-ui-mini-loader-B2C5U55l.js → vue-ui-mini-loader-BHX2lzqL.js} +2 -2
- package/dist/{vue-ui-mini-loader-BcGSpUfg.cjs → vue-ui-mini-loader-D1vhrkOt.cjs} +1 -1
- package/dist/{vue-ui-molecule-C5BmRi2R.cjs → vue-ui-molecule-Bow2JLXO.cjs} +1 -1
- package/dist/{vue-ui-molecule-CD3cPNOq.js → vue-ui-molecule-DLbPBobL.js} +9 -9
- package/dist/{vue-ui-mood-radar-D0KbeV5j.js → vue-ui-mood-radar-C0-KPgNg.js} +9 -9
- package/dist/{vue-ui-mood-radar-afS64zg-.cjs → vue-ui-mood-radar-CqosXQQX.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BGoc1RFX.js → vue-ui-nested-donuts-BFa-oFEx.js} +9 -9
- package/dist/{vue-ui-nested-donuts-D-TeyOtL.cjs → vue-ui-nested-donuts-C2NpczwE.cjs} +1 -1
- package/dist/{vue-ui-onion-B_khL0Kv.js → vue-ui-onion-BexMkS4E.js} +9 -9
- package/dist/{vue-ui-onion-CFdbWLu3.cjs → vue-ui-onion-DwdVlm0O.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CP4V0K8m.js → vue-ui-parallel-coordinate-plot-BALCmQ5Z.js} +247 -237
- package/dist/vue-ui-parallel-coordinate-plot-BKKl2c7B.cjs +8 -0
- package/dist/{vue-ui-quadrant-C6-A8Gx_.cjs → vue-ui-quadrant-BPoDyM8A.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C1YbjeI7.js → vue-ui-quadrant-CTrV6HgE.js} +10 -10
- package/dist/{vue-ui-quick-chart-CtWhs_2c.js → vue-ui-quick-chart-BmMbY6SQ.js} +6 -6
- package/dist/{vue-ui-quick-chart-ConXdEsU.cjs → vue-ui-quick-chart-D4GFWcp7.cjs} +1 -1
- package/dist/{vue-ui-radar-DMJLLVWb.cjs → vue-ui-radar-7sSdEfcO.cjs} +1 -1
- package/dist/{vue-ui-radar-B2vAPYa7.js → vue-ui-radar-Clfa-6Le.js} +10 -10
- package/dist/{vue-ui-rating-xGz4av68.js → vue-ui-rating-Ce8pPHCS.js} +2 -2
- package/dist/{vue-ui-rating-DhZ0tltR.cjs → vue-ui-rating-Cs45C-53.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-hb4Q051h.cjs → vue-ui-relation-circle-CuZjr_W8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BQK8wMQE.js → vue-ui-relation-circle-DokQNUAI.js} +5 -5
- package/dist/{vue-ui-rings-ZKjhNx5K.js → vue-ui-rings-Cd_5yc8m.js} +9 -9
- package/dist/{vue-ui-rings-D1EW3d4M.cjs → vue-ui-rings-DlcUcstZ.cjs} +1 -1
- package/dist/{vue-ui-scatter-CHONk8k0.js → vue-ui-scatter-CGUY8yGo.js} +10 -10
- package/dist/{vue-ui-scatter-CMRe2b2K.cjs → vue-ui-scatter-Diih7alT.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DcKhT745.cjs → vue-ui-screenshot-C4CVXRBT.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DmGe5ptH.js → vue-ui-screenshot-CslXMiXF.js} +1 -1
- package/dist/{vue-ui-skeleton-j-IOiy5w.cjs → vue-ui-skeleton-6fxZMdtV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CJ2R5R6u.js → vue-ui-skeleton-DdAE1RlM.js} +2 -2
- package/dist/{vue-ui-smiley-DXVcosKR.js → vue-ui-smiley-DTY5KiDB.js} +2 -2
- package/dist/{vue-ui-smiley-D5Jn6d5f.cjs → vue-ui-smiley-enpMVkNM.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Gg6TxR4m.js → vue-ui-spark-trend-CNqfwxj9.js} +4 -4
- package/dist/{vue-ui-spark-trend-CWH3W7h3.cjs → vue-ui-spark-trend-UUDAPzlU.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BsoKTXr2.cjs → vue-ui-sparkbar-BEwF2ZHO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DUx1qVzQ.js → vue-ui-sparkbar-D2M_uMU8.js} +3 -3
- package/dist/{vue-ui-sparkgauge-xrvp9g87.js → vue-ui-sparkgauge-BQo2RtDp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DPusPoRv.cjs → vue-ui-sparkgauge-DCXz-sVO.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DzYXMNj8.js → vue-ui-sparkhistogram-B83GykeL.js} +4 -4
- package/dist/{vue-ui-sparkhistogram---JRg2R1.cjs → vue-ui-sparkhistogram-DnJyQqnN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CGWePkVI.js → vue-ui-sparkline-DDGgABlc.js} +3 -3
- package/dist/{vue-ui-sparkline-1Z6GnwoN.cjs → vue-ui-sparkline-pblHktJQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DCc68t8g.cjs → vue-ui-sparkstackbar-Btx1pr5F.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DFgeRAbQ.js → vue-ui-sparkstackbar-CA3xOex0.js} +3 -3
- package/dist/{vue-ui-stackbar-B0dWToaf.js → vue-ui-stackbar-BhLDK1Rx.js} +10 -10
- package/dist/{vue-ui-stackbar-Cz0mT8Mo.cjs → vue-ui-stackbar-DPsuPIje.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DZt1Wq20.cjs → vue-ui-strip-plot-BaLXVgu4.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BFqd-S7c.js → vue-ui-strip-plot-CX2aCzHG.js} +9 -9
- package/dist/{vue-ui-table-DtwEoIzI.js → vue-ui-table-ClECxS2U.js} +1 -1
- package/dist/{vue-ui-table-heatmap-3RSMOHkc.cjs → vue-ui-table-heatmap-9BG7K8wL.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C8b3pE04.js → vue-ui-table-heatmap-BL8cy2H3.js} +4 -4
- package/dist/{vue-ui-table-CMvyMuc4.cjs → vue-ui-table-sQc-MSR_.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BrqhBv29.js → vue-ui-table-sparkline-D0CF7Nwo.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BKOaVFtt.cjs → vue-ui-table-sparkline-Dptv8kIS.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DMkLvJgE.js → vue-ui-thermometer-BIWGfZUV.js} +5 -5
- package/dist/{vue-ui-thermometer-CKgIqM5y.cjs → vue-ui-thermometer-CDI0CdOu.cjs} +1 -1
- package/dist/{vue-ui-timer-D7fvoR77.cjs → vue-ui-timer-BUj9O2DA.cjs} +1 -1
- package/dist/{vue-ui-timer-RA9yfgBk.js → vue-ui-timer-CLoIqr2Z.js} +4 -4
- package/dist/{vue-ui-tiremarks-C7y6Mbxe.cjs → vue-ui-tiremarks-BbTYG885.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B_EncUi6.js → vue-ui-tiremarks-QCCPssnC.js} +5 -5
- package/dist/{vue-ui-treemap-BuGZgQsr.js → vue-ui-treemap-B1mD4WbM.js} +9 -9
- package/dist/{vue-ui-treemap-CfngjVUS.cjs → vue-ui-treemap-D6YxChmu.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DKbq4bX4.cjs → vue-ui-vertical-bar-CIbzBp6T.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-T4bFd3JF.js → vue-ui-vertical-bar-Cq7SX6st.js} +9 -9
- package/dist/{vue-ui-waffle-CrxmrYsV.js → vue-ui-waffle-BMYYVoRM.js} +55 -55
- package/dist/{vue-ui-waffle-BJFbhWnA.cjs → vue-ui-waffle-xeawcYID.cjs} +1 -1
- package/dist/{vue-ui-wheel-BDRvKR1Z.cjs → vue-ui-wheel-Sp4i7L2L.cjs} +1 -1
- package/dist/{vue-ui-wheel-DOyC7NgR.js → vue-ui-wheel-t6sMmDHN.js} +5 -5
- package/dist/{vue-ui-word-cloud-DBxVNlJ3.js → vue-ui-word-cloud-BURJJFyJ.js} +7 -7
- package/dist/{vue-ui-word-cloud-Dmcelg3z.cjs → vue-ui-word-cloud-ohI8RK1_.cjs} +1 -1
- package/dist/{vue-ui-xy-BIbvJSh2.js → vue-ui-xy-CruxD8qY.js} +12 -12
- package/dist/{vue-ui-xy-CVKaR90p.cjs → vue-ui-xy-DcjiVoXA.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-2AaNivzI.cjs → vue-ui-xy-canvas-B5pcGCvN.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CXVni3kC.js → vue-ui-xy-canvas-D3KZ8rIM.js} +10 -10
- package/package.json +1 -1
- package/dist/index-hKWfT7Wa.cjs +0 -4
- package/dist/vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs +0 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as y, ref as f, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { computed as y, ref as f, onMounted as Ne, onBeforeUnmount as Pe, openBlock as u, createElementBlock as i, normalizeClass as E, normalizeStyle as _, createVNode as K, createCommentVNode as g, createBlock as D, unref as T, createSlots as Le, withCtx as b, renderSlot as x, normalizeProps as j, guardReactiveProps as R, Fragment as C, renderList as z, createElementVNode as I, toDisplayString as P, createTextVNode as Se } from "vue";
|
|
2
|
+
import { u as Oe, c as Q, t as De, a as We, p as U, o as Be, e as ye, g as Ee, b as je, d as Re, A as Ue, L as Ve, M as Ge, N as He, X as Xe, w as fe, i as ge, f as be, x as Ye, q as qe, r as Je, C as V } from "./index-BJ6NXF-z.js";
|
|
3
|
+
import { t as Ke, u as Qe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ze } from "./Title-CKSMMGjd.js";
|
|
5
|
+
import { L as et } from "./Legend-3WC5-bUm.js";
|
|
6
|
+
import { _ as tt } from "./Tooltip-C9Q2lE3W.js";
|
|
7
|
+
import { _ as at } from "./Shape-C4kR-mjQ.js";
|
|
8
|
+
import { u as lt, U as ot } from "./usePrinter-BUIam1ao.js";
|
|
9
|
+
import { D as st } from "./DataTable-DqPGv4Ms.js";
|
|
10
|
+
import nt from "./vue-ui-accordion-GCDGaaYO.js";
|
|
11
|
+
import ut from "./vue-ui-skeleton-DdAE1RlM.js";
|
|
12
|
+
import { u as xe } from "./useNestedProp-AR9tJrsp.js";
|
|
13
|
+
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const rt = ["id"], ct = ["xmlns", "viewBox"], vt = { style: { "pointer-events": "none" } }, dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ht = ["x", "y", "fill", "font-size", "font-weight"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], mt = ["x", "y", "fill", "font-size", "font-weight"], yt = { key: 0 }, ft = ["x", "y", "font-size", "fill"], gt = ["width", "x", "y"], bt = { style: { width: "100%" } }, xt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], kt = ["d", "stroke", "stroke-width", "onMouseenter"], Ct = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, wt = ["onClick"], $t = ["innerHTML"], _t = {
|
|
18
18
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,86 +31,86 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const M =
|
|
34
|
+
setup(ke, { expose: Ce, emit: Z }) {
|
|
35
|
+
const M = ke, { vue_ui_parallel_coordinate_plot: we } = Oe(), F = y({
|
|
36
36
|
get() {
|
|
37
37
|
return !!M.dataset && M.dataset.length;
|
|
38
38
|
},
|
|
39
|
-
set(
|
|
40
|
-
return
|
|
39
|
+
set(a) {
|
|
40
|
+
return a;
|
|
41
41
|
}
|
|
42
42
|
}), ee = f(0), L = f(null), te = f(null), ae = f(null), G = f(Q()), S = f(!1);
|
|
43
|
-
function
|
|
44
|
-
S.value =
|
|
43
|
+
function $e(a) {
|
|
44
|
+
S.value = a, ee.value += 1;
|
|
45
45
|
}
|
|
46
46
|
const e = y(() => {
|
|
47
|
-
const
|
|
47
|
+
const a = xe({
|
|
48
48
|
userConfig: M.config,
|
|
49
|
-
defaultConfig:
|
|
49
|
+
defaultConfig: we
|
|
50
50
|
});
|
|
51
|
-
return
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
54
|
-
defaultConfig:
|
|
51
|
+
return a.theme ? {
|
|
52
|
+
...xe({
|
|
53
|
+
userConfig: De.vue_ui_parallel_coordinate_plot[a.theme] || M.config,
|
|
54
|
+
defaultConfig: a
|
|
55
55
|
}),
|
|
56
|
-
customPalette:
|
|
57
|
-
} :
|
|
56
|
+
customPalette: We[a.theme] || U
|
|
57
|
+
} : a;
|
|
58
58
|
}), W = f(null);
|
|
59
|
-
|
|
60
|
-
if (
|
|
59
|
+
Ne(() => {
|
|
60
|
+
if (Be(M.dataset) ? ye({
|
|
61
61
|
componentName: "VueUiParallelCoordinatePlot",
|
|
62
62
|
type: "dataset"
|
|
63
|
-
}) : M.dataset.forEach((
|
|
64
|
-
|
|
65
|
-
datasetObject:
|
|
63
|
+
}) : M.dataset.forEach((a, l) => {
|
|
64
|
+
Ee({
|
|
65
|
+
datasetObject: a,
|
|
66
66
|
requiredAttributes: ["name", "series"]
|
|
67
|
-
}).forEach((
|
|
68
|
-
|
|
67
|
+
}).forEach((t) => {
|
|
68
|
+
F.value = !1, ye({
|
|
69
69
|
componentName: "VueUiParallelCoordinatePlot",
|
|
70
70
|
type: "datasetSerieAttribute",
|
|
71
|
-
property:
|
|
71
|
+
property: t,
|
|
72
72
|
index: l
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
}), e.value.responsive) {
|
|
76
|
-
const
|
|
77
|
-
const { width: l, height:
|
|
76
|
+
const a = Ke(() => {
|
|
77
|
+
const { width: l, height: t } = Qe({
|
|
78
78
|
chart: L.value,
|
|
79
79
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
80
80
|
legend: e.value.style.chart.legend.show ? ae.value : null
|
|
81
81
|
});
|
|
82
|
-
c.value.width = l, c.value.height =
|
|
83
|
-
relator: Math.min(l,
|
|
82
|
+
c.value.width = l, c.value.height = t, c.value.plotSize = V({
|
|
83
|
+
relator: Math.min(l, t),
|
|
84
84
|
adjuster: 600,
|
|
85
85
|
source: e.value.style.chart.plots.radius,
|
|
86
86
|
threshold: 2,
|
|
87
87
|
fallback: 2
|
|
88
88
|
}), c.value.ticksFontSize = V({
|
|
89
|
-
relator: Math.min(l,
|
|
89
|
+
relator: Math.min(l, t),
|
|
90
90
|
adjuster: 600,
|
|
91
91
|
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
92
92
|
threshold: 10,
|
|
93
93
|
fallback: 10
|
|
94
94
|
}), c.value.datapointFontSize = V({
|
|
95
|
-
relator: Math.min(l,
|
|
95
|
+
relator: Math.min(l, t),
|
|
96
96
|
adjuster: 600,
|
|
97
97
|
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
98
98
|
threshold: 10,
|
|
99
99
|
fallback: 10
|
|
100
100
|
}), c.value.axisNameFontSize = V({
|
|
101
|
-
relator: Math.min(l,
|
|
101
|
+
relator: Math.min(l, t),
|
|
102
102
|
adjuster: 600,
|
|
103
103
|
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
104
104
|
threshold: 12,
|
|
105
105
|
fallback: 12
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
W.value = new ResizeObserver(
|
|
108
|
+
W.value = new ResizeObserver(a), W.value.observe(L.value.parentNode);
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), Pe(() => {
|
|
111
111
|
W.value && W.value.disconnect();
|
|
112
112
|
});
|
|
113
|
-
const { isPrinting: le, isImaging: oe, generatePdf: se, generateImage: ne } =
|
|
113
|
+
const { isPrinting: le, isImaging: oe, generatePdf: se, generateImage: ne } = lt({
|
|
114
114
|
elementId: `pcp_${G.value}`,
|
|
115
115
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
116
116
|
}), c = f({
|
|
@@ -123,46 +123,46 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
123
123
|
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
124
124
|
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
125
125
|
}), v = y(() => {
|
|
126
|
-
const { top:
|
|
126
|
+
const { top: a, right: l, bottom: t, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
|
|
127
127
|
return {
|
|
128
128
|
chartHeight: n,
|
|
129
129
|
chartWidth: s,
|
|
130
|
-
height: n -
|
|
130
|
+
height: n - a - t,
|
|
131
131
|
width: s - o - l,
|
|
132
|
-
top:
|
|
132
|
+
top: a,
|
|
133
133
|
left: o,
|
|
134
134
|
right: s - l,
|
|
135
|
-
bottom: n -
|
|
135
|
+
bottom: n - t
|
|
136
136
|
};
|
|
137
|
-
}),
|
|
137
|
+
}), _e = y(() => je(e.value.customPalette)), m = f({
|
|
138
138
|
dataLabels: {
|
|
139
139
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
140
140
|
},
|
|
141
141
|
showTable: e.value.table.show,
|
|
142
142
|
showTooltip: e.value.style.chart.tooltip.show
|
|
143
143
|
}), w = f([]);
|
|
144
|
-
function ue(
|
|
145
|
-
w.value.includes(
|
|
144
|
+
function ue(a) {
|
|
145
|
+
w.value.includes(a) ? w.value = w.value.filter((l) => l !== a) : w.value.push(a);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
const
|
|
147
|
+
const A = y(() => M.dataset.map((a, l) => {
|
|
148
|
+
const t = Re(a.color) || _e.value[l] || U[l] || U[l % U.length];
|
|
149
149
|
return {
|
|
150
|
-
...
|
|
151
|
-
series:
|
|
150
|
+
...a,
|
|
151
|
+
series: a.series.map((o) => ({
|
|
152
152
|
...o,
|
|
153
153
|
id: Q(),
|
|
154
|
-
color:
|
|
154
|
+
color: t
|
|
155
155
|
})),
|
|
156
156
|
seriesIndex: l,
|
|
157
|
-
color:
|
|
157
|
+
color: t,
|
|
158
158
|
id: Q(),
|
|
159
|
-
shape:
|
|
159
|
+
shape: a.shape || "circle"
|
|
160
160
|
};
|
|
161
|
-
})),
|
|
162
|
-
...
|
|
163
|
-
opacity: w.value.includes(
|
|
164
|
-
segregate: () => ue(
|
|
165
|
-
isSegregated: w.value.includes(
|
|
161
|
+
})), Ae = y(() => A.value.map((a) => ({
|
|
162
|
+
...a,
|
|
163
|
+
opacity: w.value.includes(a.id) ? 0.5 : 1,
|
|
164
|
+
segregate: () => ue(a.id),
|
|
165
|
+
isSegregated: w.value.includes(a.id)
|
|
166
166
|
}))), Te = y(() => ({
|
|
167
167
|
cy: "pcp-div-legend",
|
|
168
168
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -171,102 +171,112 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
171
171
|
paddingBottom: 12,
|
|
172
172
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
173
173
|
})), ie = y(() => Math.max(
|
|
174
|
-
...
|
|
175
|
-
)), k = y(() => v.value.width / ie.value), H = y(() =>
|
|
176
|
-
let
|
|
174
|
+
...A.value.filter((a) => !w.value.includes(a.id)).map((a) => Math.max(...a.series.flatMap((l) => l.values.length)))
|
|
175
|
+
)), k = y(() => v.value.width / ie.value), H = y(() => A.value.filter((a) => !w.value.includes(a.id))), p = y(() => {
|
|
176
|
+
let a = [];
|
|
177
177
|
for (let l = 0; l < ie.value; l += 1) {
|
|
178
|
-
const
|
|
179
|
-
const
|
|
178
|
+
const t = Math.min(...H.value.flatMap((d) => d.series.map((B) => B.values[l] || 0) || 0)), o = Math.max(...H.value.flatMap((d) => d.series.map((B) => B.values[l] || 0) || 0)), n = o === t ? t / 4 : t, s = o === t ? o * 2 : o, r = Ue(n, s, e.value.style.chart.yAxis.scaleTicks), $ = r.ticks.map((d, B) => {
|
|
179
|
+
const Ie = r.min < 0 ? d + Math.abs(r.min) : d - Math.abs(r.min), Fe = r.min < 0 ? r.max + Math.abs(r.min) : r.max - Math.abs(r.min);
|
|
180
180
|
return {
|
|
181
|
-
y: v.value.bottom - v.value.height * (
|
|
181
|
+
y: v.value.bottom - v.value.height * (Ie / Fe),
|
|
182
182
|
x: v.value.left + k.value * l + k.value / 2,
|
|
183
|
-
value:
|
|
183
|
+
value: d
|
|
184
184
|
};
|
|
185
185
|
});
|
|
186
|
-
|
|
186
|
+
a.push({
|
|
187
187
|
scale: r,
|
|
188
188
|
ticks: $,
|
|
189
189
|
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
return
|
|
193
|
-
}), X = y(() => H.value.map((
|
|
194
|
-
...
|
|
195
|
-
series:
|
|
196
|
-
...
|
|
197
|
-
datapoints:
|
|
198
|
-
const r =
|
|
192
|
+
return a;
|
|
193
|
+
}), X = y(() => H.value.map((a, l) => ({
|
|
194
|
+
...a,
|
|
195
|
+
series: a.series.map((t, o) => ({
|
|
196
|
+
...t,
|
|
197
|
+
datapoints: t.values.map((n, s) => {
|
|
198
|
+
const r = p.value[s].scale.min < 0 ? (n || 0) + Math.abs(p.value[s].scale.min) : (n || 0) - Math.abs(p.value[s].scale.min), $ = p.value[s].scale.min < 0 ? p.value[s].scale.max + Math.abs(p.value[s].scale.min) : p.value[s].scale.max - Math.abs(p.value[s].scale.min);
|
|
199
199
|
return {
|
|
200
|
-
name:
|
|
201
|
-
seriesName:
|
|
200
|
+
name: t.name,
|
|
201
|
+
seriesName: a.name,
|
|
202
202
|
axisIndex: s,
|
|
203
203
|
datapointIndex: o,
|
|
204
204
|
seriesIndex: l,
|
|
205
205
|
value: n || 0,
|
|
206
206
|
x: v.value.left + k.value * s + k.value / 2,
|
|
207
207
|
y: v.value.bottom - v.value.height * (r / $),
|
|
208
|
-
comment:
|
|
208
|
+
comment: t.comments && t.comments[s] || ""
|
|
209
209
|
};
|
|
210
210
|
})
|
|
211
211
|
}))
|
|
212
|
-
})).map((
|
|
213
|
-
...
|
|
214
|
-
series:
|
|
215
|
-
const
|
|
212
|
+
})).map((a) => ({
|
|
213
|
+
...a,
|
|
214
|
+
series: a.series.map((l) => {
|
|
215
|
+
const t = Ve(l.datapoints), o = Ge(l.datapoints, 0.12), n = He(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${t}`);
|
|
216
216
|
return {
|
|
217
217
|
...l,
|
|
218
218
|
smoothPath: o,
|
|
219
|
-
straightPath:
|
|
219
|
+
straightPath: t,
|
|
220
220
|
pathLength: n
|
|
221
221
|
};
|
|
222
222
|
})
|
|
223
223
|
})));
|
|
224
|
-
function re({ value:
|
|
225
|
-
return ge(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
function re({ value: a, index: l, datapoint: t }) {
|
|
225
|
+
return ge(
|
|
226
|
+
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
227
|
+
a,
|
|
228
|
+
be({
|
|
229
|
+
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
230
|
+
v: a,
|
|
231
|
+
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
232
|
+
r: e.value.style.chart.yAxis.labels.roundings[l] || 0
|
|
233
|
+
}),
|
|
234
|
+
{ datapoint: t, seriesIndex: l }
|
|
235
|
+
);
|
|
231
236
|
}
|
|
232
|
-
const
|
|
233
|
-
function J({ shape:
|
|
234
|
-
Y.value = { serie:
|
|
237
|
+
const h = f(null), Y = f(null), O = f(!1), q = f("");
|
|
238
|
+
function J({ shape: a, serieName: l, serie: t, relativeIndex: o, seriesIndex: n }) {
|
|
239
|
+
Y.value = { serie: t, relativeIndex: o, seriesIndex: n, series: A.value, scales: p.value }, O.value = !0, h.value = t.id;
|
|
235
240
|
let s = "";
|
|
236
241
|
const r = e.value.style.chart.tooltip.customFormat;
|
|
237
|
-
fe(r) &&
|
|
238
|
-
serie:
|
|
239
|
-
seriesIndex:
|
|
240
|
-
series:
|
|
242
|
+
fe(r) && Ye(() => r({
|
|
243
|
+
serie: t,
|
|
244
|
+
seriesIndex: t.seriesIndex,
|
|
245
|
+
series: A.value,
|
|
241
246
|
config: e.value,
|
|
242
|
-
scales:
|
|
247
|
+
scales: p.value
|
|
243
248
|
})) ? q.value = r({
|
|
244
|
-
serie:
|
|
245
|
-
seriesIndex:
|
|
246
|
-
series:
|
|
249
|
+
serie: t,
|
|
250
|
+
seriesIndex: t.seriesIndex,
|
|
251
|
+
series: A.value,
|
|
247
252
|
config: e.value,
|
|
248
|
-
scales:
|
|
249
|
-
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${
|
|
253
|
+
scales: p.value
|
|
254
|
+
}) : (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${t.name}</div>`, p.value.map(($) => $.name).forEach(($, d) => {
|
|
250
255
|
s += `
|
|
251
256
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
252
257
|
<span>${$}: </span>
|
|
253
258
|
<span>
|
|
254
|
-
${ge(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
259
|
+
${ge(
|
|
260
|
+
e.value.style.chart.yAxis.labels.formatters[d] || null,
|
|
261
|
+
t.datapoints[d].value,
|
|
262
|
+
be({
|
|
263
|
+
p: e.value.style.chart.yAxis.labels.prefixes[d] || "",
|
|
264
|
+
v: t.datapoints[d].value,
|
|
265
|
+
s: e.value.style.chart.yAxis.labels.suffixes[d] || "",
|
|
266
|
+
r: e.value.style.chart.yAxis.labels.roundings[d] || ""
|
|
267
|
+
}),
|
|
268
|
+
{ datapoint: t.datapoints[d], seriesIndex: d }
|
|
269
|
+
)}
|
|
260
270
|
</span>
|
|
261
271
|
</div>
|
|
262
|
-
`, e.value.style.chart.comments.showInTooltip &&
|
|
272
|
+
`, e.value.style.chart.comments.showInTooltip && t.datapoints[d].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.datapoints[d].comment}</div>`);
|
|
263
273
|
}), q.value = `<div>${s}</div>`);
|
|
264
274
|
}
|
|
265
275
|
function ze() {
|
|
266
|
-
return
|
|
276
|
+
return A.value;
|
|
267
277
|
}
|
|
268
278
|
const N = y(() => {
|
|
269
|
-
const
|
|
279
|
+
const a = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(p.value.map((n) => n.name)), l = X.value.flatMap((n, s) => n.series.map((r) => [n.name].concat([r.name]).concat(r.values))), t = {
|
|
270
280
|
th: {
|
|
271
281
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
272
282
|
color: e.value.table.th.color,
|
|
@@ -278,11 +288,11 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
278
288
|
outline: e.value.table.td.outline
|
|
279
289
|
},
|
|
280
290
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
281
|
-
}, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(
|
|
291
|
+
}, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(p.value.map((n) => n.name));
|
|
282
292
|
return {
|
|
283
293
|
body: l,
|
|
284
|
-
head:
|
|
285
|
-
config:
|
|
294
|
+
head: a,
|
|
295
|
+
config: t,
|
|
286
296
|
colNames: o
|
|
287
297
|
};
|
|
288
298
|
}), ce = y(() => X.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
@@ -290,29 +300,29 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
290
300
|
body: N.value.body
|
|
291
301
|
});
|
|
292
302
|
function ve() {
|
|
293
|
-
const
|
|
294
|
-
|
|
303
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ce.value.head, t = ce.value.body, o = a.concat([l]).concat(t), n = qe(o);
|
|
304
|
+
Je({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
295
305
|
}
|
|
296
|
-
function
|
|
297
|
-
Z("selectDatapoint",
|
|
306
|
+
function Me(a) {
|
|
307
|
+
Z("selectDatapoint", a);
|
|
298
308
|
}
|
|
299
|
-
function de(
|
|
309
|
+
function de(a) {
|
|
300
310
|
Z("selectLegend", {
|
|
301
|
-
...
|
|
302
|
-
isSegregated: !
|
|
303
|
-
opacity:
|
|
311
|
+
...a,
|
|
312
|
+
isSegregated: !a.isSegregated,
|
|
313
|
+
opacity: a.isSegregated ? 1 : 0.5
|
|
304
314
|
});
|
|
305
315
|
}
|
|
306
316
|
function he() {
|
|
307
|
-
|
|
317
|
+
m.value.showTable = !m.value.showTable;
|
|
308
318
|
}
|
|
309
319
|
function pe() {
|
|
310
|
-
|
|
320
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
311
321
|
}
|
|
312
322
|
function me() {
|
|
313
|
-
|
|
323
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
314
324
|
}
|
|
315
|
-
return
|
|
325
|
+
return Ce({
|
|
316
326
|
getData: ze,
|
|
317
327
|
generateCsv: ve,
|
|
318
328
|
generatePdf: se,
|
|
@@ -320,7 +330,7 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
320
330
|
toggleTable: he,
|
|
321
331
|
toggleLabels: pe,
|
|
322
332
|
toggleTooltip: me
|
|
323
|
-
}), (
|
|
333
|
+
}), (a, l) => (u(), i("div", {
|
|
324
334
|
ref_key: "pcpChart",
|
|
325
335
|
ref: L,
|
|
326
336
|
class: E(`vue-ui-pcp ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -333,7 +343,7 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
333
343
|
ref: te,
|
|
334
344
|
style: _(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
335
345
|
}, [
|
|
336
|
-
K(
|
|
346
|
+
K(Ze, {
|
|
337
347
|
config: {
|
|
338
348
|
title: {
|
|
339
349
|
cy: "pcp-div-title",
|
|
@@ -346,13 +356,13 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
346
356
|
}
|
|
347
357
|
}, null, 8, ["config"])
|
|
348
358
|
], 4)) : g("", !0),
|
|
349
|
-
e.value.userOptions.show &&
|
|
359
|
+
e.value.userOptions.show && F.value ? (u(), D(ot, {
|
|
350
360
|
ref: "details",
|
|
351
361
|
key: `user_options_${ee.value}`,
|
|
352
362
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
353
363
|
color: e.value.style.chart.color,
|
|
354
|
-
isPrinting:
|
|
355
|
-
isImaging:
|
|
364
|
+
isPrinting: T(le),
|
|
365
|
+
isImaging: T(oe),
|
|
356
366
|
uid: G.value,
|
|
357
367
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
358
368
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -362,140 +372,140 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
362
372
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
363
373
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
364
374
|
isFullscreen: S.value,
|
|
365
|
-
isTooltip:
|
|
375
|
+
isTooltip: m.value.showTooltip,
|
|
366
376
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
367
377
|
chartElement: L.value,
|
|
368
|
-
onToggleFullscreen:
|
|
369
|
-
onGeneratePdf:
|
|
378
|
+
onToggleFullscreen: $e,
|
|
379
|
+
onGeneratePdf: T(se),
|
|
370
380
|
onGenerateCsv: ve,
|
|
371
|
-
onGenerateImage:
|
|
381
|
+
onGenerateImage: T(ne),
|
|
372
382
|
onToggleTable: he,
|
|
373
383
|
onToggleLabels: pe,
|
|
374
384
|
onToggleTooltip: me
|
|
375
|
-
},
|
|
376
|
-
|
|
385
|
+
}, Le({ _: 2 }, [
|
|
386
|
+
a.$slots.optionPdf ? {
|
|
377
387
|
name: "optionPdf",
|
|
378
388
|
fn: b(() => [
|
|
379
|
-
x(
|
|
389
|
+
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
380
390
|
]),
|
|
381
391
|
key: "0"
|
|
382
392
|
} : void 0,
|
|
383
|
-
|
|
393
|
+
a.$slots.optionCsv ? {
|
|
384
394
|
name: "optionCsv",
|
|
385
395
|
fn: b(() => [
|
|
386
|
-
x(
|
|
396
|
+
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
387
397
|
]),
|
|
388
398
|
key: "1"
|
|
389
399
|
} : void 0,
|
|
390
|
-
|
|
400
|
+
a.$slots.optionImg ? {
|
|
391
401
|
name: "optionImg",
|
|
392
402
|
fn: b(() => [
|
|
393
|
-
x(
|
|
403
|
+
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
394
404
|
]),
|
|
395
405
|
key: "2"
|
|
396
406
|
} : void 0,
|
|
397
|
-
|
|
407
|
+
a.$slots.optionTable ? {
|
|
398
408
|
name: "optionTable",
|
|
399
409
|
fn: b(() => [
|
|
400
|
-
x(
|
|
410
|
+
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
401
411
|
]),
|
|
402
412
|
key: "3"
|
|
403
413
|
} : void 0,
|
|
404
|
-
|
|
414
|
+
a.$slots.optionLabels ? {
|
|
405
415
|
name: "optionLabels",
|
|
406
416
|
fn: b(() => [
|
|
407
|
-
x(
|
|
417
|
+
x(a.$slots, "optionLabels", {}, void 0, !0)
|
|
408
418
|
]),
|
|
409
419
|
key: "4"
|
|
410
420
|
} : void 0,
|
|
411
|
-
|
|
421
|
+
a.$slots.optionFullscreen ? {
|
|
412
422
|
name: "optionFullscreen",
|
|
413
|
-
fn: b(({ toggleFullscreen:
|
|
414
|
-
x(
|
|
423
|
+
fn: b(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
424
|
+
x(a.$slots, "optionFullscreen", j(R({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
415
425
|
]),
|
|
416
426
|
key: "5"
|
|
417
427
|
} : void 0
|
|
418
428
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
419
|
-
|
|
429
|
+
F.value ? (u(), i("svg", {
|
|
420
430
|
key: 2,
|
|
421
|
-
xmlns:
|
|
431
|
+
xmlns: T(Xe),
|
|
422
432
|
class: E({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
423
433
|
viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
|
|
424
434
|
style: _(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
425
435
|
}, [
|
|
426
|
-
(u(!0), i(C, null,
|
|
427
|
-
|
|
436
|
+
(u(!0), i(C, null, z(p.value, (t, o) => (u(), i("g", vt, [
|
|
437
|
+
I("line", {
|
|
428
438
|
x1: v.value.left + k.value * o + k.value / 2,
|
|
429
439
|
x2: v.value.left + k.value * o + k.value / 2,
|
|
430
440
|
y1: v.value.top,
|
|
431
441
|
y2: v.value.bottom,
|
|
432
442
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
433
443
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
434
|
-
}, null, 8,
|
|
435
|
-
|
|
444
|
+
}, null, 8, dt),
|
|
445
|
+
I("text", {
|
|
436
446
|
x: v.value.left + k.value * o + k.value / 2,
|
|
437
447
|
y: v.value.top - 24,
|
|
438
448
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
439
449
|
"font-size": c.value.axisNameFontSize,
|
|
440
450
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
441
451
|
"text-anchor": "middle"
|
|
442
|
-
}, P(
|
|
452
|
+
}, P(t.name), 9, ht),
|
|
443
453
|
e.value.style.chart.yAxis.labels.ticks.show ? (u(), i(C, { key: 0 }, [
|
|
444
|
-
(u(!0), i(C, null,
|
|
454
|
+
(u(!0), i(C, null, z(t.ticks, (n) => (u(), i("line", {
|
|
445
455
|
x1: n.x,
|
|
446
456
|
x2: n.x - 10,
|
|
447
457
|
y1: n.y,
|
|
448
458
|
y2: n.y,
|
|
449
459
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
450
460
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
451
|
-
style: _(`opacity:${
|
|
452
|
-
}, null, 12,
|
|
453
|
-
(u(!0), i(C, null,
|
|
461
|
+
style: _(`opacity:${h.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
462
|
+
}, null, 12, pt))), 256)),
|
|
463
|
+
(u(!0), i(C, null, z(t.ticks, (n) => (u(), i("text", {
|
|
454
464
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
455
465
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
456
466
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
457
467
|
"text-anchor": "end",
|
|
458
468
|
"font-size": c.value.ticksFontSize,
|
|
459
469
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
460
|
-
style: _(`opacity:${
|
|
461
|
-
}, P(re({ value: n.value, index: o })), 13,
|
|
470
|
+
style: _(`opacity:${h.value && !m.value.showTooltip ? 0.2 : 1}`)
|
|
471
|
+
}, P(re({ value: n.value, index: o, datapoint: n })), 13, mt))), 256))
|
|
462
472
|
], 64)) : g("", !0)
|
|
463
473
|
]))), 256)),
|
|
464
|
-
(u(!0), i(C, null,
|
|
465
|
-
(u(!0), i(C, null,
|
|
466
|
-
e.value.style.chart.plots.show ? (u(), i("g",
|
|
467
|
-
(u(!0), i(C, null,
|
|
474
|
+
(u(!0), i(C, null, z(X.value, (t) => (u(), i("g", null, [
|
|
475
|
+
(u(!0), i(C, null, z(t.series, (o, n) => (u(), i("g", null, [
|
|
476
|
+
e.value.style.chart.plots.show ? (u(), i("g", yt, [
|
|
477
|
+
(u(!0), i(C, null, z(o.datapoints, (s) => (u(), D(at, {
|
|
468
478
|
plot: { x: s.x, y: s.y },
|
|
469
|
-
color:
|
|
470
|
-
shape:
|
|
471
|
-
radius:
|
|
479
|
+
color: t.color,
|
|
480
|
+
shape: t.shape,
|
|
481
|
+
radius: t.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
472
482
|
stroke: e.value.style.chart.backgroundColor,
|
|
473
483
|
strokeWidth: 0.5,
|
|
474
484
|
onMouseenter: (r) => J({
|
|
475
|
-
shape:
|
|
476
|
-
serieName:
|
|
485
|
+
shape: t.shape,
|
|
486
|
+
serieName: t.name,
|
|
477
487
|
serie: o,
|
|
478
488
|
relativeIndex: n,
|
|
479
489
|
seriesIndex: o.seriesIndex
|
|
480
490
|
}),
|
|
481
491
|
onMouseleave: l[0] || (l[0] = (r) => {
|
|
482
|
-
|
|
492
|
+
h.value = null, O.value = !1;
|
|
483
493
|
}),
|
|
484
|
-
style: _(`opacity:${
|
|
485
|
-
onClick: () =>
|
|
494
|
+
style: _(`opacity:${h.value ? h.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
495
|
+
onClick: () => Me(s)
|
|
486
496
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
487
|
-
|
|
488
|
-
|
|
497
|
+
m.value.showTooltip ? g("", !0) : (u(), i(C, { key: 0 }, [
|
|
498
|
+
h.value && h.value === o.id && o.datapoints.length ? (u(), i("text", {
|
|
489
499
|
key: 0,
|
|
490
500
|
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
491
501
|
y: o.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
492
502
|
"text-anchor": "end",
|
|
493
503
|
"font-size": c.value.ticksFontSize,
|
|
494
|
-
fill:
|
|
504
|
+
fill: t.color,
|
|
495
505
|
"font-weight": "bold"
|
|
496
|
-
}, P(o.name), 9,
|
|
506
|
+
}, P(o.name), 9, ft)) : g("", !0)
|
|
497
507
|
], 64)),
|
|
498
|
-
e.value.style.chart.comments.show ? (u(!0), i(C, { key: 1 },
|
|
508
|
+
e.value.style.chart.comments.show ? (u(!0), i(C, { key: 1 }, z(o.datapoints, (s) => (u(), i("g", null, [
|
|
499
509
|
s.comment ? (u(), i("foreignObject", {
|
|
500
510
|
key: 0,
|
|
501
511
|
style: { overflow: "visible" },
|
|
@@ -504,60 +514,60 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
504
514
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
505
515
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
506
516
|
}, [
|
|
507
|
-
|
|
508
|
-
x(
|
|
509
|
-
plot: { ...s, color:
|
|
517
|
+
I("div", bt, [
|
|
518
|
+
x(a.$slots, "plot-comment", {
|
|
519
|
+
plot: { ...s, color: t.color }
|
|
510
520
|
}, void 0, !0)
|
|
511
521
|
])
|
|
512
|
-
], 8,
|
|
522
|
+
], 8, gt)) : g("", !0)
|
|
513
523
|
]))), 256)) : g("", !0)
|
|
514
524
|
])) : g("", !0),
|
|
515
|
-
|
|
525
|
+
m.value.dataLabels.show || h.value && h.value === o.id ? (u(!0), i(C, { key: 1 }, z(o.datapoints, (s, r) => (u(), i("text", {
|
|
516
526
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
517
527
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
518
|
-
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ?
|
|
528
|
+
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? t.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
519
529
|
"text-anchor": "start",
|
|
520
530
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
521
531
|
class: E({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
522
532
|
"font-size": c.value.datapointFontSize,
|
|
523
533
|
onMouseenter: ($) => J({
|
|
524
|
-
shape:
|
|
525
|
-
serieName:
|
|
534
|
+
shape: t.shape,
|
|
535
|
+
serieName: t.name,
|
|
526
536
|
serie: o,
|
|
527
537
|
relativeIndex: n,
|
|
528
538
|
seriesIndex: o.seriesIndex
|
|
529
539
|
}),
|
|
530
540
|
onMouseleave: l[1] || (l[1] = ($) => {
|
|
531
|
-
|
|
541
|
+
h.value = null, O.value = !1;
|
|
532
542
|
}),
|
|
533
|
-
style: _(`opacity:${
|
|
534
|
-
}, P(re({ value: s.value, index: r })), 45,
|
|
535
|
-
|
|
543
|
+
style: _(`opacity:${h.value ? h.value === o.id ? 1 : 0.2 : 1}`)
|
|
544
|
+
}, P(re({ value: s.value, index: r, datapoint: s })), 45, xt))), 256)) : g("", !0),
|
|
545
|
+
I("path", {
|
|
536
546
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
537
|
-
stroke:
|
|
547
|
+
stroke: t.color,
|
|
538
548
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
539
549
|
fill: "none",
|
|
540
550
|
class: E({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
541
551
|
onMouseenter: (s) => J({
|
|
542
|
-
shape:
|
|
543
|
-
serieName:
|
|
552
|
+
shape: t.shape,
|
|
553
|
+
serieName: t.name,
|
|
544
554
|
serie: o,
|
|
545
555
|
relativeIndex: n,
|
|
546
556
|
seriesIndex: o.seriesIndex
|
|
547
557
|
}),
|
|
548
558
|
onMouseleave: l[2] || (l[2] = (s) => {
|
|
549
|
-
|
|
559
|
+
h.value = null, O.value = !1;
|
|
550
560
|
}),
|
|
551
|
-
style: _(`opacity:${
|
|
552
|
-
}, null, 46,
|
|
561
|
+
style: _(`opacity:${h.value ? h.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
|
|
562
|
+
}, null, 46, kt)
|
|
553
563
|
]))), 256))
|
|
554
564
|
]))), 256)),
|
|
555
|
-
x(
|
|
556
|
-
], 14,
|
|
557
|
-
|
|
558
|
-
x(
|
|
565
|
+
x(a.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
566
|
+
], 14, ct)) : g("", !0),
|
|
567
|
+
a.$slots.watermark ? (u(), i("div", Ct, [
|
|
568
|
+
x(a.$slots, "watermark", j(R({ isPrinting: T(le) || T(oe) })), void 0, !0)
|
|
559
569
|
])) : g("", !0),
|
|
560
|
-
|
|
570
|
+
F.value ? g("", !0) : (u(), D(ut, {
|
|
561
571
|
key: 4,
|
|
562
572
|
config: {
|
|
563
573
|
type: "parallelCoordinatePlot",
|
|
@@ -566,34 +576,34 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
566
576
|
}
|
|
567
577
|
}
|
|
568
578
|
}, null, 8, ["config"])),
|
|
569
|
-
|
|
579
|
+
I("div", {
|
|
570
580
|
ref_key: "chartLegend",
|
|
571
581
|
ref: ae
|
|
572
582
|
}, [
|
|
573
|
-
e.value.style.chart.legend.show &&
|
|
583
|
+
e.value.style.chart.legend.show && F.value ? (u(), D(et, {
|
|
574
584
|
key: 0,
|
|
575
|
-
legendSet:
|
|
585
|
+
legendSet: Ae.value,
|
|
576
586
|
config: Te.value,
|
|
577
|
-
onClickMarker: l[3] || (l[3] = ({ legend:
|
|
578
|
-
ue(
|
|
587
|
+
onClickMarker: l[3] || (l[3] = ({ legend: t }) => {
|
|
588
|
+
ue(t.id), de(t);
|
|
579
589
|
})
|
|
580
590
|
}, {
|
|
581
|
-
item: b(({ legend:
|
|
582
|
-
|
|
591
|
+
item: b(({ legend: t, index: o }) => [
|
|
592
|
+
I("div", {
|
|
583
593
|
onClick: (n) => {
|
|
584
|
-
|
|
594
|
+
t.segregate(), de(t);
|
|
585
595
|
},
|
|
586
|
-
style: _(`opacity:${w.value.includes(
|
|
587
|
-
}, P(
|
|
596
|
+
style: _(`opacity:${w.value.includes(t.id) ? 0.5 : 1}`)
|
|
597
|
+
}, P(t.name), 13, wt)
|
|
588
598
|
]),
|
|
589
599
|
_: 1
|
|
590
|
-
}, 8, ["legendSet", "config"])) : x(
|
|
600
|
+
}, 8, ["legendSet", "config"])) : x(a.$slots, "legend", {
|
|
591
601
|
key: 1,
|
|
592
|
-
legend:
|
|
602
|
+
legend: A.value
|
|
593
603
|
}, void 0, !0)
|
|
594
604
|
], 512),
|
|
595
|
-
K(
|
|
596
|
-
show:
|
|
605
|
+
K(tt, {
|
|
606
|
+
show: m.value.showTooltip && O.value,
|
|
597
607
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
598
608
|
color: e.value.style.chart.tooltip.color,
|
|
599
609
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -605,21 +615,21 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
605
615
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
606
616
|
parent: L.value,
|
|
607
617
|
content: q.value,
|
|
608
|
-
isCustom:
|
|
618
|
+
isCustom: T(fe)(e.value.style.chart.tooltip.customFormat)
|
|
609
619
|
}, {
|
|
610
620
|
"tooltip-before": b(() => [
|
|
611
|
-
x(
|
|
621
|
+
x(a.$slots, "tooltip-before", j(R({ ...Y.value })), void 0, !0)
|
|
612
622
|
]),
|
|
613
623
|
"tooltip-after": b(() => [
|
|
614
|
-
x(
|
|
624
|
+
x(a.$slots, "tooltip-after", j(R({ ...Y.value })), void 0, !0)
|
|
615
625
|
]),
|
|
616
626
|
_: 3
|
|
617
627
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
618
|
-
|
|
628
|
+
F.value ? (u(), D(nt, {
|
|
619
629
|
key: 5,
|
|
620
630
|
hideDetails: "",
|
|
621
631
|
config: {
|
|
622
|
-
open:
|
|
632
|
+
open: m.value.showTable,
|
|
623
633
|
maxHeight: 1e4,
|
|
624
634
|
body: {
|
|
625
635
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -632,28 +642,28 @@ const it = ["id"], rt = ["xmlns", "viewBox"], ct = { style: { "pointer-events":
|
|
|
632
642
|
}
|
|
633
643
|
}, {
|
|
634
644
|
content: b(() => [
|
|
635
|
-
K(
|
|
645
|
+
K(st, {
|
|
636
646
|
colNames: N.value.colNames,
|
|
637
647
|
head: N.value.head,
|
|
638
648
|
body: N.value.body,
|
|
639
649
|
config: N.value.config,
|
|
640
650
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
641
|
-
onClose: l[4] || (l[4] = (
|
|
651
|
+
onClose: l[4] || (l[4] = (t) => m.value.showTable = !1)
|
|
642
652
|
}, {
|
|
643
|
-
th: b(({ th:
|
|
644
|
-
|
|
653
|
+
th: b(({ th: t }) => [
|
|
654
|
+
I("div", { innerHTML: t }, null, 8, $t)
|
|
645
655
|
]),
|
|
646
|
-
td: b(({ td:
|
|
647
|
-
|
|
656
|
+
td: b(({ td: t }) => [
|
|
657
|
+
Se(P(t), 1)
|
|
648
658
|
]),
|
|
649
659
|
_: 1
|
|
650
660
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
651
661
|
]),
|
|
652
662
|
_: 1
|
|
653
663
|
}, 8, ["config"])) : g("", !0)
|
|
654
|
-
], 14,
|
|
664
|
+
], 14, rt));
|
|
655
665
|
}
|
|
656
|
-
},
|
|
666
|
+
}, Bt = /* @__PURE__ */ it(_t, [["__scopeId", "data-v-b44d373d"]]);
|
|
657
667
|
export {
|
|
658
|
-
|
|
668
|
+
Bt as default
|
|
659
669
|
};
|