vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,686 +0,0 @@
|
|
|
1
|
-
import { computed as f, ref as h, watch as De, onMounted as We, onBeforeUnmount as Ee, openBlock as i, createElementBlock as u, normalizeClass as B, normalizeStyle as z, createBlock as I, createCommentVNode as g, unref as A, createSlots as Be, withCtx as b, renderSlot as x, normalizeProps as R, guardReactiveProps as j, createVNode as xe, Fragment as C, renderList as M, createElementVNode as F, toDisplayString as S, createTextVNode as Re } from "vue";
|
|
2
|
-
import { u as je, c as J, t as Ue, a as Ve, p as U, o as Ge, e as ke, g as He, b as Xe, d as Ye, C as qe, Q as Qe, R as Je, S as Ke, X as Ze, x as Ce, i as we, f as $e, y as et, q as tt, r as at, E as V } from "./index-DDXisDKy.js";
|
|
3
|
-
import { t as lt, u as ot } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as st } from "./Title-DYNLqCCT.js";
|
|
5
|
-
import { L as nt } from "./Legend-DXLiSLHd.js";
|
|
6
|
-
import { _ as it } from "./Tooltip-CICAYyQj.js";
|
|
7
|
-
import { _ as ut } from "./Shape-CO_Ak9Zm.js";
|
|
8
|
-
import { u as rt, U as ct } from "./usePrinter-8ofTb2MJ.js";
|
|
9
|
-
import { D as vt } from "./DataTable-DL2agEJ3.js";
|
|
10
|
-
import dt from "./vue-ui-accordion-D_1fE5EF.js";
|
|
11
|
-
import ht from "./vue-ui-skeleton-B2sRnIXX.js";
|
|
12
|
-
import { u as _e } from "./useNestedProp-S1UXxUgm.js";
|
|
13
|
-
import { _ as pt } from "./PackageVersion-DtnhR89q.js";
|
|
14
|
-
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events": "none" } }, bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xt = ["x", "y", "fill", "font-size", "font-weight"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 0 }, $t = ["x", "y", "font-size", "fill"], _t = ["width", "x", "y"], Tt = { style: { width: "100%" } }, zt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], At = ["d", "stroke", "stroke-width", "onMouseenter"], Mt = {
|
|
16
|
-
key: 3,
|
|
17
|
-
class: "vue-data-ui-watermark"
|
|
18
|
-
}, It = ["onClick"], Ft = ["innerHTML"], Pt = {
|
|
19
|
-
__name: "vue-ui-parallel-coordinate-plot",
|
|
20
|
-
props: {
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default() {
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
dataset: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default() {
|
|
30
|
-
return [];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(Te, { expose: ze, emit: K }) {
|
|
36
|
-
const _ = Te, { vue_ui_parallel_coordinate_plot: Ae } = je(), P = f({
|
|
37
|
-
get() {
|
|
38
|
-
return !!_.dataset && _.dataset.length;
|
|
39
|
-
},
|
|
40
|
-
set(t) {
|
|
41
|
-
return t;
|
|
42
|
-
}
|
|
43
|
-
}), Z = h(0), L = h(null), ee = h(null), te = h(null), ae = h(0), le = h(0), oe = h(0), G = h(J()), O = h(!1);
|
|
44
|
-
function Me(t) {
|
|
45
|
-
O.value = t, Z.value += 1;
|
|
46
|
-
}
|
|
47
|
-
const e = f({
|
|
48
|
-
get: () => se(),
|
|
49
|
-
set: (t) => t
|
|
50
|
-
});
|
|
51
|
-
function se() {
|
|
52
|
-
const t = _e({
|
|
53
|
-
userConfig: _.config,
|
|
54
|
-
defaultConfig: Ae
|
|
55
|
-
});
|
|
56
|
-
return t.theme ? {
|
|
57
|
-
..._e({
|
|
58
|
-
userConfig: Ue.vue_ui_parallel_coordinate_plot[t.theme] || _.config,
|
|
59
|
-
defaultConfig: t
|
|
60
|
-
}),
|
|
61
|
-
customPalette: Ve[t.theme] || U
|
|
62
|
-
} : t;
|
|
63
|
-
}
|
|
64
|
-
De(() => _.config, (t) => {
|
|
65
|
-
e.value = se(), ne(), ae.value += 1, oe.value += 1, le.value += 1;
|
|
66
|
-
}, { deep: !0 });
|
|
67
|
-
const W = h(null);
|
|
68
|
-
We(() => {
|
|
69
|
-
ne();
|
|
70
|
-
});
|
|
71
|
-
function ne() {
|
|
72
|
-
if (Ge(_.dataset) ? ke({
|
|
73
|
-
componentName: "VueUiParallelCoordinatePlot",
|
|
74
|
-
type: "dataset"
|
|
75
|
-
}) : _.dataset.forEach((t, l) => {
|
|
76
|
-
He({
|
|
77
|
-
datasetObject: t,
|
|
78
|
-
requiredAttributes: ["name", "series"]
|
|
79
|
-
}).forEach((a) => {
|
|
80
|
-
P.value = !1, ke({
|
|
81
|
-
componentName: "VueUiParallelCoordinatePlot",
|
|
82
|
-
type: "datasetSerieAttribute",
|
|
83
|
-
property: a,
|
|
84
|
-
index: l
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}), e.value.responsive) {
|
|
88
|
-
const t = lt(() => {
|
|
89
|
-
const { width: l, height: a } = ot({
|
|
90
|
-
chart: L.value,
|
|
91
|
-
title: e.value.style.chart.title.text ? ee.value : null,
|
|
92
|
-
legend: e.value.style.chart.legend.show ? te.value : null
|
|
93
|
-
});
|
|
94
|
-
c.value.width = l, c.value.height = a, c.value.plotSize = V({
|
|
95
|
-
relator: Math.min(l, a),
|
|
96
|
-
adjuster: 600,
|
|
97
|
-
source: e.value.style.chart.plots.radius,
|
|
98
|
-
threshold: 2,
|
|
99
|
-
fallback: 2
|
|
100
|
-
}), c.value.ticksFontSize = V({
|
|
101
|
-
relator: Math.min(l, a),
|
|
102
|
-
adjuster: 600,
|
|
103
|
-
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
104
|
-
threshold: 10,
|
|
105
|
-
fallback: 10
|
|
106
|
-
}), c.value.datapointFontSize = V({
|
|
107
|
-
relator: Math.min(l, a),
|
|
108
|
-
adjuster: 600,
|
|
109
|
-
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
110
|
-
threshold: 10,
|
|
111
|
-
fallback: 10
|
|
112
|
-
}), c.value.axisNameFontSize = V({
|
|
113
|
-
relator: Math.min(l, a),
|
|
114
|
-
adjuster: 600,
|
|
115
|
-
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
116
|
-
threshold: 12,
|
|
117
|
-
fallback: 12
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
W.value = new ResizeObserver(t), W.value.observe(L.value.parentNode);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
Ee(() => {
|
|
124
|
-
W.value && W.value.disconnect();
|
|
125
|
-
});
|
|
126
|
-
const { isPrinting: ie, isImaging: ue, generatePdf: re, generateImage: ce } = rt({
|
|
127
|
-
elementId: `pcp_${G.value}`,
|
|
128
|
-
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
129
|
-
}), c = h({
|
|
130
|
-
height: e.value.style.chart.height,
|
|
131
|
-
width: e.value.style.chart.width,
|
|
132
|
-
plotSize: e.value.style.chart.plots.radius,
|
|
133
|
-
// ratio 100
|
|
134
|
-
ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
135
|
-
// ratio 42.85
|
|
136
|
-
datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
137
|
-
axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
|
|
138
|
-
}), v = f(() => {
|
|
139
|
-
const { top: t, right: l, bottom: a, left: o } = e.value.style.chart.padding, n = c.value.height, s = c.value.width;
|
|
140
|
-
return {
|
|
141
|
-
chartHeight: n,
|
|
142
|
-
chartWidth: s,
|
|
143
|
-
height: n - t - a,
|
|
144
|
-
width: s - o - l,
|
|
145
|
-
top: t,
|
|
146
|
-
left: o,
|
|
147
|
-
right: s - l,
|
|
148
|
-
bottom: n - a
|
|
149
|
-
};
|
|
150
|
-
}), Ie = f(() => Xe(e.value.customPalette)), y = h({
|
|
151
|
-
dataLabels: {
|
|
152
|
-
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
153
|
-
},
|
|
154
|
-
showTable: e.value.table.show,
|
|
155
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
156
|
-
}), w = h([]);
|
|
157
|
-
function ve(t) {
|
|
158
|
-
w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t);
|
|
159
|
-
}
|
|
160
|
-
const T = f(() => _.dataset.map((t, l) => {
|
|
161
|
-
const a = Ye(t.color) || Ie.value[l] || U[l] || U[l % U.length];
|
|
162
|
-
return {
|
|
163
|
-
...t,
|
|
164
|
-
series: t.series.map((o) => ({
|
|
165
|
-
...o,
|
|
166
|
-
id: J(),
|
|
167
|
-
color: a
|
|
168
|
-
})),
|
|
169
|
-
seriesIndex: l,
|
|
170
|
-
color: a,
|
|
171
|
-
id: J(),
|
|
172
|
-
shape: t.shape || "circle"
|
|
173
|
-
};
|
|
174
|
-
})), Fe = f(() => T.value.map((t) => ({
|
|
175
|
-
...t,
|
|
176
|
-
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
177
|
-
segregate: () => ve(t.id),
|
|
178
|
-
isSegregated: w.value.includes(t.id)
|
|
179
|
-
}))), Pe = f(() => ({
|
|
180
|
-
cy: "pcp-div-legend",
|
|
181
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
182
|
-
color: e.value.style.chart.legend.color,
|
|
183
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
184
|
-
paddingBottom: 12,
|
|
185
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
186
|
-
})), de = f(() => Math.max(
|
|
187
|
-
...T.value.filter((t) => !w.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
188
|
-
)), k = f(() => v.value.width / de.value), H = f(() => T.value.filter((t) => !w.value.includes(t.id))), m = f(() => {
|
|
189
|
-
let t = [];
|
|
190
|
-
for (let l = 0; l < de.value; l += 1) {
|
|
191
|
-
const a = Math.min(...H.value.flatMap((d) => d.series.map((E) => E.values[l] || 0) || 0)), o = Math.max(...H.value.flatMap((d) => d.series.map((E) => E.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, r = qe(n, s, e.value.style.chart.yAxis.scaleTicks), $ = r.ticks.map((d, E) => {
|
|
192
|
-
const Le = r.min < 0 ? d + Math.abs(r.min) : d - Math.abs(r.min), Oe = r.min < 0 ? r.max + Math.abs(r.min) : r.max - Math.abs(r.min);
|
|
193
|
-
return {
|
|
194
|
-
y: v.value.bottom - v.value.height * (Le / Oe),
|
|
195
|
-
x: v.value.left + k.value * l + k.value / 2,
|
|
196
|
-
value: d
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
t.push({
|
|
200
|
-
scale: r,
|
|
201
|
-
ticks: $,
|
|
202
|
-
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
return t;
|
|
206
|
-
}), X = f(() => H.value.map((t, l) => ({
|
|
207
|
-
...t,
|
|
208
|
-
series: t.series.map((a, o) => ({
|
|
209
|
-
...a,
|
|
210
|
-
datapoints: a.values.map((n, s) => {
|
|
211
|
-
const r = m.value[s].scale.min < 0 ? (n || 0) + Math.abs(m.value[s].scale.min) : (n || 0) - Math.abs(m.value[s].scale.min), $ = m.value[s].scale.min < 0 ? m.value[s].scale.max + Math.abs(m.value[s].scale.min) : m.value[s].scale.max - Math.abs(m.value[s].scale.min);
|
|
212
|
-
return {
|
|
213
|
-
name: a.name,
|
|
214
|
-
seriesName: t.name,
|
|
215
|
-
axisIndex: s,
|
|
216
|
-
datapointIndex: o,
|
|
217
|
-
seriesIndex: l,
|
|
218
|
-
value: n || 0,
|
|
219
|
-
x: v.value.left + k.value * s + k.value / 2,
|
|
220
|
-
y: v.value.bottom - v.value.height * (r / $),
|
|
221
|
-
comment: a.comments && a.comments[s] || ""
|
|
222
|
-
};
|
|
223
|
-
})
|
|
224
|
-
}))
|
|
225
|
-
})).map((t) => ({
|
|
226
|
-
...t,
|
|
227
|
-
series: t.series.map((l) => {
|
|
228
|
-
const a = Qe(l.datapoints), o = Je(l.datapoints), n = Ke(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
|
|
229
|
-
return {
|
|
230
|
-
...l,
|
|
231
|
-
smoothPath: o,
|
|
232
|
-
straightPath: a,
|
|
233
|
-
pathLength: n
|
|
234
|
-
};
|
|
235
|
-
})
|
|
236
|
-
})));
|
|
237
|
-
function he({ value: t, index: l, datapoint: a }) {
|
|
238
|
-
return we(
|
|
239
|
-
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
240
|
-
t,
|
|
241
|
-
$e({
|
|
242
|
-
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
243
|
-
v: t,
|
|
244
|
-
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
245
|
-
r: e.value.style.chart.yAxis.labels.roundings[l] || 0
|
|
246
|
-
}),
|
|
247
|
-
{ datapoint: a, seriesIndex: l }
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
const p = h(null), Y = h(null), D = h(!1), q = h("");
|
|
251
|
-
function Q({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
252
|
-
Y.value = { serie: a, relativeIndex: o, seriesIndex: n, series: T.value, scales: m.value }, D.value = !0, p.value = a.id;
|
|
253
|
-
let s = "";
|
|
254
|
-
const r = e.value.style.chart.tooltip.customFormat;
|
|
255
|
-
Ce(r) && et(() => r({
|
|
256
|
-
serie: a,
|
|
257
|
-
seriesIndex: a.seriesIndex,
|
|
258
|
-
series: T.value,
|
|
259
|
-
config: e.value,
|
|
260
|
-
scales: m.value
|
|
261
|
-
})) ? q.value = r({
|
|
262
|
-
serie: a,
|
|
263
|
-
seriesIndex: a.seriesIndex,
|
|
264
|
-
series: T.value,
|
|
265
|
-
config: e.value,
|
|
266
|
-
scales: m.value
|
|
267
|
-
}) : (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 + " - " : ""}${a.name}</div>`, m.value.map(($) => $.name).forEach(($, d) => {
|
|
268
|
-
s += `
|
|
269
|
-
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
270
|
-
<span>${$}: </span>
|
|
271
|
-
<span>
|
|
272
|
-
${we(
|
|
273
|
-
e.value.style.chart.yAxis.labels.formatters[d] || null,
|
|
274
|
-
a.datapoints[d].value,
|
|
275
|
-
$e({
|
|
276
|
-
p: e.value.style.chart.yAxis.labels.prefixes[d] || "",
|
|
277
|
-
v: a.datapoints[d].value,
|
|
278
|
-
s: e.value.style.chart.yAxis.labels.suffixes[d] || "",
|
|
279
|
-
r: e.value.style.chart.yAxis.labels.roundings[d] || ""
|
|
280
|
-
}),
|
|
281
|
-
{ datapoint: a.datapoints[d], seriesIndex: d }
|
|
282
|
-
)}
|
|
283
|
-
</span>
|
|
284
|
-
</div>
|
|
285
|
-
`, e.value.style.chart.comments.showInTooltip && a.datapoints[d].comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[d].comment}</div>`);
|
|
286
|
-
}), q.value = `<div>${s}</div>`);
|
|
287
|
-
}
|
|
288
|
-
function Ne() {
|
|
289
|
-
return T.value;
|
|
290
|
-
}
|
|
291
|
-
const N = f(() => {
|
|
292
|
-
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(m.value.map((n) => n.name)), l = X.value.flatMap((n, s) => n.series.map((r) => [n.name].concat([r.name]).concat(r.values))), a = {
|
|
293
|
-
th: {
|
|
294
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
295
|
-
color: e.value.table.th.color,
|
|
296
|
-
outline: e.value.table.th.outline
|
|
297
|
-
},
|
|
298
|
-
td: {
|
|
299
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
300
|
-
color: e.value.table.td.color,
|
|
301
|
-
outline: e.value.table.td.outline
|
|
302
|
-
},
|
|
303
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
304
|
-
}, o = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(m.value.map((n) => n.name));
|
|
305
|
-
return {
|
|
306
|
-
body: l,
|
|
307
|
-
head: t,
|
|
308
|
-
config: a,
|
|
309
|
-
colNames: o
|
|
310
|
-
};
|
|
311
|
-
}), pe = f(() => X.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
312
|
-
head: N.value.head,
|
|
313
|
-
body: N.value.body
|
|
314
|
-
});
|
|
315
|
-
function me() {
|
|
316
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = pe.value.head, a = pe.value.body, o = t.concat([l]).concat(a), n = tt(o);
|
|
317
|
-
at({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
318
|
-
}
|
|
319
|
-
function Se(t) {
|
|
320
|
-
K("selectDatapoint", t);
|
|
321
|
-
}
|
|
322
|
-
function ye(t) {
|
|
323
|
-
K("selectLegend", {
|
|
324
|
-
...t,
|
|
325
|
-
isSegregated: !t.isSegregated,
|
|
326
|
-
opacity: t.isSegregated ? 1 : 0.5
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
function fe() {
|
|
330
|
-
y.value.showTable = !y.value.showTable;
|
|
331
|
-
}
|
|
332
|
-
function ge() {
|
|
333
|
-
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
334
|
-
}
|
|
335
|
-
function be() {
|
|
336
|
-
y.value.showTooltip = !y.value.showTooltip;
|
|
337
|
-
}
|
|
338
|
-
return ze({
|
|
339
|
-
getData: Ne,
|
|
340
|
-
generateCsv: me,
|
|
341
|
-
generatePdf: re,
|
|
342
|
-
generateImage: ce,
|
|
343
|
-
toggleTable: fe,
|
|
344
|
-
toggleLabels: ge,
|
|
345
|
-
toggleTooltip: be
|
|
346
|
-
}), (t, l) => (i(), u("div", {
|
|
347
|
-
ref_key: "pcpChart",
|
|
348
|
-
ref: L,
|
|
349
|
-
class: B(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
350
|
-
style: z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
351
|
-
id: `pcp_${G.value}`
|
|
352
|
-
}, [
|
|
353
|
-
e.value.style.chart.title.text ? (i(), u("div", {
|
|
354
|
-
key: 0,
|
|
355
|
-
ref_key: "chartTitle",
|
|
356
|
-
ref: ee,
|
|
357
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
358
|
-
}, [
|
|
359
|
-
(i(), I(st, {
|
|
360
|
-
key: `title_${ae.value}`,
|
|
361
|
-
config: {
|
|
362
|
-
title: {
|
|
363
|
-
cy: "pcp-div-title",
|
|
364
|
-
...e.value.style.chart.title
|
|
365
|
-
},
|
|
366
|
-
subtitle: {
|
|
367
|
-
cy: "pcp-div-subtitle",
|
|
368
|
-
...e.value.style.chart.title.subtitle
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}, null, 8, ["config"]))
|
|
372
|
-
], 512)) : g("", !0),
|
|
373
|
-
e.value.userOptions.show && P.value ? (i(), I(ct, {
|
|
374
|
-
ref: "details",
|
|
375
|
-
key: `user_options_${Z.value}`,
|
|
376
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
377
|
-
color: e.value.style.chart.color,
|
|
378
|
-
isPrinting: A(ie),
|
|
379
|
-
isImaging: A(ue),
|
|
380
|
-
uid: G.value,
|
|
381
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
382
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
383
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
384
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
385
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
386
|
-
hasLabel: e.value.userOptions.buttons.labels,
|
|
387
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
388
|
-
isFullscreen: O.value,
|
|
389
|
-
isTooltip: y.value.showTooltip,
|
|
390
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
391
|
-
chartElement: L.value,
|
|
392
|
-
position: e.value.userOptions.position,
|
|
393
|
-
onToggleFullscreen: Me,
|
|
394
|
-
onGeneratePdf: A(re),
|
|
395
|
-
onGenerateCsv: me,
|
|
396
|
-
onGenerateImage: A(ce),
|
|
397
|
-
onToggleTable: fe,
|
|
398
|
-
onToggleLabels: ge,
|
|
399
|
-
onToggleTooltip: be
|
|
400
|
-
}, Be({ _: 2 }, [
|
|
401
|
-
t.$slots.optionPdf ? {
|
|
402
|
-
name: "optionPdf",
|
|
403
|
-
fn: b(() => [
|
|
404
|
-
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
405
|
-
]),
|
|
406
|
-
key: "0"
|
|
407
|
-
} : void 0,
|
|
408
|
-
t.$slots.optionCsv ? {
|
|
409
|
-
name: "optionCsv",
|
|
410
|
-
fn: b(() => [
|
|
411
|
-
x(t.$slots, "optionCsv", {}, void 0, !0)
|
|
412
|
-
]),
|
|
413
|
-
key: "1"
|
|
414
|
-
} : void 0,
|
|
415
|
-
t.$slots.optionImg ? {
|
|
416
|
-
name: "optionImg",
|
|
417
|
-
fn: b(() => [
|
|
418
|
-
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
419
|
-
]),
|
|
420
|
-
key: "2"
|
|
421
|
-
} : void 0,
|
|
422
|
-
t.$slots.optionTable ? {
|
|
423
|
-
name: "optionTable",
|
|
424
|
-
fn: b(() => [
|
|
425
|
-
x(t.$slots, "optionTable", {}, void 0, !0)
|
|
426
|
-
]),
|
|
427
|
-
key: "3"
|
|
428
|
-
} : void 0,
|
|
429
|
-
t.$slots.optionLabels ? {
|
|
430
|
-
name: "optionLabels",
|
|
431
|
-
fn: b(() => [
|
|
432
|
-
x(t.$slots, "optionLabels", {}, void 0, !0)
|
|
433
|
-
]),
|
|
434
|
-
key: "4"
|
|
435
|
-
} : void 0,
|
|
436
|
-
t.$slots.optionFullscreen ? {
|
|
437
|
-
name: "optionFullscreen",
|
|
438
|
-
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
439
|
-
x(t.$slots, "optionFullscreen", R(j({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
440
|
-
]),
|
|
441
|
-
key: "5"
|
|
442
|
-
} : void 0
|
|
443
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
444
|
-
P.value ? (i(), u("svg", {
|
|
445
|
-
key: 2,
|
|
446
|
-
xmlns: A(Ze),
|
|
447
|
-
class: B({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
448
|
-
viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
|
|
449
|
-
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
450
|
-
}, [
|
|
451
|
-
xe(pt),
|
|
452
|
-
(i(!0), u(C, null, M(m.value, (a, o) => (i(), u("g", gt, [
|
|
453
|
-
F("line", {
|
|
454
|
-
x1: v.value.left + k.value * o + k.value / 2,
|
|
455
|
-
x2: v.value.left + k.value * o + k.value / 2,
|
|
456
|
-
y1: v.value.top,
|
|
457
|
-
y2: v.value.bottom,
|
|
458
|
-
stroke: e.value.style.chart.yAxis.stroke,
|
|
459
|
-
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
460
|
-
}, null, 8, bt),
|
|
461
|
-
F("text", {
|
|
462
|
-
x: v.value.left + k.value * o + k.value / 2,
|
|
463
|
-
y: v.value.top - 24,
|
|
464
|
-
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
465
|
-
"font-size": c.value.axisNameFontSize,
|
|
466
|
-
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
467
|
-
"text-anchor": "middle"
|
|
468
|
-
}, S(a.name), 9, xt),
|
|
469
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (i(), u(C, { key: 0 }, [
|
|
470
|
-
(i(!0), u(C, null, M(a.ticks, (n) => (i(), u("line", {
|
|
471
|
-
x1: n.x,
|
|
472
|
-
x2: n.x - 10,
|
|
473
|
-
y1: n.y,
|
|
474
|
-
y2: n.y,
|
|
475
|
-
stroke: e.value.style.chart.yAxis.stroke,
|
|
476
|
-
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
477
|
-
style: z(`opacity:${p.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
478
|
-
}, null, 12, kt))), 256)),
|
|
479
|
-
(i(!0), u(C, null, M(a.ticks, (n) => (i(), u("text", {
|
|
480
|
-
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
481
|
-
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
482
|
-
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
483
|
-
"text-anchor": "end",
|
|
484
|
-
"font-size": c.value.ticksFontSize,
|
|
485
|
-
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
486
|
-
style: z(`opacity:${p.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
487
|
-
}, S(he({ value: n.value, index: o, datapoint: n })), 13, Ct))), 256))
|
|
488
|
-
], 64)) : g("", !0)
|
|
489
|
-
]))), 256)),
|
|
490
|
-
(i(!0), u(C, null, M(X.value, (a) => (i(), u("g", null, [
|
|
491
|
-
(i(!0), u(C, null, M(a.series, (o, n) => (i(), u("g", null, [
|
|
492
|
-
e.value.style.chart.plots.show ? (i(), u("g", wt, [
|
|
493
|
-
(i(!0), u(C, null, M(o.datapoints, (s) => (i(), I(ut, {
|
|
494
|
-
plot: { x: s.x, y: s.y },
|
|
495
|
-
color: a.color,
|
|
496
|
-
shape: a.shape,
|
|
497
|
-
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
498
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
499
|
-
strokeWidth: 0.5,
|
|
500
|
-
onMouseenter: (r) => Q({
|
|
501
|
-
shape: a.shape,
|
|
502
|
-
serieName: a.name,
|
|
503
|
-
serie: o,
|
|
504
|
-
relativeIndex: n,
|
|
505
|
-
seriesIndex: o.seriesIndex
|
|
506
|
-
}),
|
|
507
|
-
onMouseleave: l[0] || (l[0] = (r) => {
|
|
508
|
-
p.value = null, D.value = !1;
|
|
509
|
-
}),
|
|
510
|
-
style: z(`opacity:${p.value ? p.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
511
|
-
onClick: () => Se(s)
|
|
512
|
-
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
513
|
-
y.value.showTooltip ? g("", !0) : (i(), u(C, { key: 0 }, [
|
|
514
|
-
p.value && p.value === o.id && o.datapoints.length ? (i(), u("text", {
|
|
515
|
-
key: 0,
|
|
516
|
-
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
517
|
-
y: o.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
518
|
-
"text-anchor": "end",
|
|
519
|
-
"font-size": c.value.ticksFontSize,
|
|
520
|
-
fill: a.color,
|
|
521
|
-
"font-weight": "bold"
|
|
522
|
-
}, S(o.name), 9, $t)) : g("", !0)
|
|
523
|
-
], 64)),
|
|
524
|
-
e.value.style.chart.comments.show ? (i(!0), u(C, { key: 1 }, M(o.datapoints, (s) => (i(), u("g", null, [
|
|
525
|
-
s.comment ? (i(), u("foreignObject", {
|
|
526
|
-
key: 0,
|
|
527
|
-
style: { overflow: "visible" },
|
|
528
|
-
height: "12",
|
|
529
|
-
width: e.value.style.chart.comments.width,
|
|
530
|
-
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
531
|
-
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
532
|
-
}, [
|
|
533
|
-
F("div", Tt, [
|
|
534
|
-
x(t.$slots, "plot-comment", {
|
|
535
|
-
plot: { ...s, color: a.color }
|
|
536
|
-
}, void 0, !0)
|
|
537
|
-
])
|
|
538
|
-
], 8, _t)) : g("", !0)
|
|
539
|
-
]))), 256)) : g("", !0)
|
|
540
|
-
])) : g("", !0),
|
|
541
|
-
y.value.dataLabels.show || p.value && p.value === o.id ? (i(!0), u(C, { key: 1 }, M(o.datapoints, (s, r) => (i(), u("text", {
|
|
542
|
-
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
543
|
-
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
544
|
-
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
545
|
-
"text-anchor": "start",
|
|
546
|
-
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
547
|
-
class: B({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
548
|
-
"font-size": c.value.datapointFontSize,
|
|
549
|
-
onMouseenter: ($) => Q({
|
|
550
|
-
shape: a.shape,
|
|
551
|
-
serieName: a.name,
|
|
552
|
-
serie: o,
|
|
553
|
-
relativeIndex: n,
|
|
554
|
-
seriesIndex: o.seriesIndex
|
|
555
|
-
}),
|
|
556
|
-
onMouseleave: l[1] || (l[1] = ($) => {
|
|
557
|
-
p.value = null, D.value = !1;
|
|
558
|
-
}),
|
|
559
|
-
style: z(`opacity:${p.value ? p.value === o.id ? 1 : 0.2 : 1}`)
|
|
560
|
-
}, S(he({ value: s.value, index: r, datapoint: s })), 45, zt))), 256)) : g("", !0),
|
|
561
|
-
F("path", {
|
|
562
|
-
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
563
|
-
stroke: a.color,
|
|
564
|
-
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
565
|
-
fill: "none",
|
|
566
|
-
class: B({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
567
|
-
onMouseenter: (s) => Q({
|
|
568
|
-
shape: a.shape,
|
|
569
|
-
serieName: a.name,
|
|
570
|
-
serie: o,
|
|
571
|
-
relativeIndex: n,
|
|
572
|
-
seriesIndex: o.seriesIndex
|
|
573
|
-
}),
|
|
574
|
-
onMouseleave: l[2] || (l[2] = (s) => {
|
|
575
|
-
p.value = null, D.value = !1;
|
|
576
|
-
}),
|
|
577
|
-
style: z(`opacity:${p.value ? p.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}`)
|
|
578
|
-
}, null, 46, At)
|
|
579
|
-
]))), 256))
|
|
580
|
-
]))), 256)),
|
|
581
|
-
x(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
582
|
-
], 14, ft)) : g("", !0),
|
|
583
|
-
t.$slots.watermark ? (i(), u("div", Mt, [
|
|
584
|
-
x(t.$slots, "watermark", R(j({ isPrinting: A(ie) || A(ue) })), void 0, !0)
|
|
585
|
-
])) : g("", !0),
|
|
586
|
-
P.value ? g("", !0) : (i(), I(ht, {
|
|
587
|
-
key: 4,
|
|
588
|
-
config: {
|
|
589
|
-
type: "parallelCoordinatePlot",
|
|
590
|
-
style: {
|
|
591
|
-
backgroundColor: e.value.style.chart.backgroundColor
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}, null, 8, ["config"])),
|
|
595
|
-
F("div", {
|
|
596
|
-
ref_key: "chartLegend",
|
|
597
|
-
ref: te
|
|
598
|
-
}, [
|
|
599
|
-
e.value.style.chart.legend.show && P.value ? (i(), I(nt, {
|
|
600
|
-
key: `legend_${le.value}`,
|
|
601
|
-
legendSet: Fe.value,
|
|
602
|
-
config: Pe.value,
|
|
603
|
-
onClickMarker: l[3] || (l[3] = ({ legend: a }) => {
|
|
604
|
-
ve(a.id), ye(a);
|
|
605
|
-
})
|
|
606
|
-
}, {
|
|
607
|
-
item: b(({ legend: a, index: o }) => [
|
|
608
|
-
F("div", {
|
|
609
|
-
onClick: (n) => {
|
|
610
|
-
a.segregate(), ye(a);
|
|
611
|
-
},
|
|
612
|
-
style: z(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
613
|
-
}, S(a.name), 13, It)
|
|
614
|
-
]),
|
|
615
|
-
_: 1
|
|
616
|
-
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
617
|
-
key: 1,
|
|
618
|
-
legend: T.value
|
|
619
|
-
}, void 0, !0)
|
|
620
|
-
], 512),
|
|
621
|
-
xe(it, {
|
|
622
|
-
show: y.value.showTooltip && D.value,
|
|
623
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
624
|
-
color: e.value.style.chart.tooltip.color,
|
|
625
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
626
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
627
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
628
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
629
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
630
|
-
position: e.value.style.chart.tooltip.position,
|
|
631
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
632
|
-
parent: L.value,
|
|
633
|
-
content: q.value,
|
|
634
|
-
isCustom: A(Ce)(e.value.style.chart.tooltip.customFormat)
|
|
635
|
-
}, {
|
|
636
|
-
"tooltip-before": b(() => [
|
|
637
|
-
x(t.$slots, "tooltip-before", R(j({ ...Y.value })), void 0, !0)
|
|
638
|
-
]),
|
|
639
|
-
"tooltip-after": b(() => [
|
|
640
|
-
x(t.$slots, "tooltip-after", R(j({ ...Y.value })), void 0, !0)
|
|
641
|
-
]),
|
|
642
|
-
_: 3
|
|
643
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
644
|
-
P.value ? (i(), I(dt, {
|
|
645
|
-
key: 5,
|
|
646
|
-
hideDetails: "",
|
|
647
|
-
config: {
|
|
648
|
-
open: y.value.showTable,
|
|
649
|
-
maxHeight: 1e4,
|
|
650
|
-
body: {
|
|
651
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
652
|
-
color: e.value.style.chart.color
|
|
653
|
-
},
|
|
654
|
-
head: {
|
|
655
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
656
|
-
color: e.value.style.chart.color
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}, {
|
|
660
|
-
content: b(() => [
|
|
661
|
-
(i(), I(vt, {
|
|
662
|
-
key: `table_${oe.value}`,
|
|
663
|
-
colNames: N.value.colNames,
|
|
664
|
-
head: N.value.head,
|
|
665
|
-
body: N.value.body,
|
|
666
|
-
config: N.value.config,
|
|
667
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
668
|
-
onClose: l[4] || (l[4] = (a) => y.value.showTable = !1)
|
|
669
|
-
}, {
|
|
670
|
-
th: b(({ th: a }) => [
|
|
671
|
-
F("div", { innerHTML: a }, null, 8, Ft)
|
|
672
|
-
]),
|
|
673
|
-
td: b(({ td: a }) => [
|
|
674
|
-
Re(S(a), 1)
|
|
675
|
-
]),
|
|
676
|
-
_: 1
|
|
677
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
678
|
-
]),
|
|
679
|
-
_: 1
|
|
680
|
-
}, 8, ["config"])) : g("", !0)
|
|
681
|
-
], 14, yt));
|
|
682
|
-
}
|
|
683
|
-
}, Xt = /* @__PURE__ */ mt(Pt, [["__scopeId", "data-v-88d09f11"]]);
|
|
684
|
-
export {
|
|
685
|
-
Xt as default
|
|
686
|
-
};
|