vue-data-ui 2.4.1 → 2.4.2
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-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.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-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- 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/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-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-N3tRNc4u.cjs +0 -5
- 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-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-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-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,21 +1,22 @@
|
|
|
1
|
-
import { computed as f, ref as h, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as it } from "./Tooltip-
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { computed as f, ref as h, watch as Ee, onMounted as Be, onBeforeUnmount as Re, openBlock as u, createElementBlock as r, normalizeClass as U, normalizeStyle as T, createBlock as z, createCommentVNode as g, unref as M, createSlots as je, withCtx as b, renderSlot as x, normalizeProps as W, guardReactiveProps as E, createVNode as Ce, Fragment as C, renderList as I, createElementVNode as P, toDisplayString as L, createTextVNode as Ue } from "vue";
|
|
2
|
+
import { u as Ve, c as Z, t as Ge, a as He, p as V, o as Xe, e as we, g as Ye, b as qe, d as Qe, C as Je, Q as Ke, R as Ze, S as et, X as tt, x as $e, i as Ae, f as _e, y as at, q as lt, r as ot, E as G } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as st, u as nt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as ut } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { L as rt } from "./Legend-CYF2gpXG.js";
|
|
6
|
+
import { _ as it } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import { _ as ct } from "./Shape-BpPn4eWR.js";
|
|
8
|
+
import { u as vt, U as dt } from "./usePrinter-BEeNAqS5.js";
|
|
9
|
+
import { D as ht } from "./DataTable-DTk7C4Pr.js";
|
|
10
|
+
import pt from "./vue-ui-accordion-DspS4q3f.js";
|
|
11
|
+
import mt from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
12
|
+
import { u as Te } from "./useNestedProp-Cox0K0Y5.js";
|
|
13
|
+
import { _ as yt } from "./PackageVersion-CvCRsT5_.js";
|
|
14
|
+
import { P as ft } from "./PenAndPaper-Jb0pLt3G.js";
|
|
15
|
+
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const bt = ["id"], xt = ["xmlns", "viewBox"], kt = { style: { "pointer-events": "none" } }, Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wt = ["x", "y", "fill", "font-size", "font-weight"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x", "y", "fill", "font-size", "font-weight"], _t = { key: 0 }, Tt = ["x", "y", "font-size", "fill"], zt = ["width", "x", "y"], Mt = { style: { width: "100%" } }, It = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], Pt = ["d", "stroke", "stroke-width", "onMouseenter"], Ft = {
|
|
17
|
+
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Nt = ["onClick"], St = ["innerHTML"], Lt = {
|
|
19
20
|
__name: "vue-ui-parallel-coordinate-plot",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,52 +33,52 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
36
|
+
setup(ze, { expose: Me, emit: ee }) {
|
|
37
|
+
const A = ze, { vue_ui_parallel_coordinate_plot: Ie } = Ve(), F = f({
|
|
37
38
|
get() {
|
|
38
|
-
return !!
|
|
39
|
+
return !!A.dataset && A.dataset.length;
|
|
39
40
|
},
|
|
40
41
|
set(t) {
|
|
41
42
|
return t;
|
|
42
43
|
}
|
|
43
|
-
}),
|
|
44
|
-
function
|
|
45
|
-
O.value = t,
|
|
44
|
+
}), te = h(0), N = h(null), ae = h(null), le = h(null), oe = h(0), se = h(0), ne = h(0), H = h(Z()), O = h(!1);
|
|
45
|
+
function Pe(t) {
|
|
46
|
+
O.value = t, te.value += 1;
|
|
46
47
|
}
|
|
47
48
|
const e = f({
|
|
48
|
-
get: () =>
|
|
49
|
+
get: () => ue(),
|
|
49
50
|
set: (t) => t
|
|
50
51
|
});
|
|
51
|
-
function
|
|
52
|
-
const t =
|
|
53
|
-
userConfig:
|
|
54
|
-
defaultConfig:
|
|
52
|
+
function ue() {
|
|
53
|
+
const t = Te({
|
|
54
|
+
userConfig: A.config,
|
|
55
|
+
defaultConfig: Ie
|
|
55
56
|
});
|
|
56
57
|
return t.theme ? {
|
|
57
|
-
...
|
|
58
|
-
userConfig:
|
|
58
|
+
...Te({
|
|
59
|
+
userConfig: Ge.vue_ui_parallel_coordinate_plot[t.theme] || A.config,
|
|
59
60
|
defaultConfig: t
|
|
60
61
|
}),
|
|
61
|
-
customPalette:
|
|
62
|
+
customPalette: He[t.theme] || V
|
|
62
63
|
} : t;
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
-
e.value =
|
|
65
|
+
Ee(() => A.config, (t) => {
|
|
66
|
+
e.value = ue(), re(), oe.value += 1, ne.value += 1, se.value += 1;
|
|
66
67
|
}, { deep: !0 });
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
const B = h(null);
|
|
69
|
+
Be(() => {
|
|
70
|
+
re();
|
|
70
71
|
});
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
72
|
+
function re() {
|
|
73
|
+
if (Xe(A.dataset) ? we({
|
|
73
74
|
componentName: "VueUiParallelCoordinatePlot",
|
|
74
75
|
type: "dataset"
|
|
75
|
-
}) :
|
|
76
|
-
|
|
76
|
+
}) : A.dataset.forEach((t, l) => {
|
|
77
|
+
Ye({
|
|
77
78
|
datasetObject: t,
|
|
78
79
|
requiredAttributes: ["name", "series"]
|
|
79
80
|
}).forEach((a) => {
|
|
80
|
-
|
|
81
|
+
F.value = !1, we({
|
|
81
82
|
componentName: "VueUiParallelCoordinatePlot",
|
|
82
83
|
type: "datasetSerieAttribute",
|
|
83
84
|
property: a,
|
|
@@ -85,31 +86,31 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
}), e.value.responsive) {
|
|
88
|
-
const t =
|
|
89
|
-
const { width: l, height: a } =
|
|
90
|
-
chart:
|
|
91
|
-
title: e.value.style.chart.title.text ?
|
|
92
|
-
legend: e.value.style.chart.legend.show ?
|
|
89
|
+
const t = st(() => {
|
|
90
|
+
const { width: l, height: a } = nt({
|
|
91
|
+
chart: N.value,
|
|
92
|
+
title: e.value.style.chart.title.text ? ae.value : null,
|
|
93
|
+
legend: e.value.style.chart.legend.show ? le.value : null
|
|
93
94
|
});
|
|
94
|
-
c.value.width = l, c.value.height = a, c.value.plotSize =
|
|
95
|
+
c.value.width = l, c.value.height = a, c.value.plotSize = G({
|
|
95
96
|
relator: Math.min(l, a),
|
|
96
97
|
adjuster: 600,
|
|
97
98
|
source: e.value.style.chart.plots.radius,
|
|
98
99
|
threshold: 2,
|
|
99
100
|
fallback: 2
|
|
100
|
-
}), c.value.ticksFontSize =
|
|
101
|
+
}), c.value.ticksFontSize = G({
|
|
101
102
|
relator: Math.min(l, a),
|
|
102
103
|
adjuster: 600,
|
|
103
104
|
source: e.value.style.chart.yAxis.labels.ticks.fontSize,
|
|
104
105
|
threshold: 10,
|
|
105
106
|
fallback: 10
|
|
106
|
-
}), c.value.datapointFontSize =
|
|
107
|
+
}), c.value.datapointFontSize = G({
|
|
107
108
|
relator: Math.min(l, a),
|
|
108
109
|
adjuster: 600,
|
|
109
110
|
source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
|
|
110
111
|
threshold: 10,
|
|
111
112
|
fallback: 10
|
|
112
|
-
}), c.value.axisNameFontSize =
|
|
113
|
+
}), c.value.axisNameFontSize = G({
|
|
113
114
|
relator: Math.min(l, a),
|
|
114
115
|
adjuster: 600,
|
|
115
116
|
source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
|
|
@@ -117,14 +118,14 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
117
118
|
fallback: 12
|
|
118
119
|
});
|
|
119
120
|
});
|
|
120
|
-
|
|
121
|
+
B.value = new ResizeObserver(t), B.value.observe(N.value.parentNode);
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
Re(() => {
|
|
125
|
+
B.value && B.value.disconnect();
|
|
125
126
|
});
|
|
126
|
-
const { isPrinting: ie, isImaging:
|
|
127
|
-
elementId: `pcp_${
|
|
127
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = vt({
|
|
128
|
+
elementId: `pcp_${H.value}`,
|
|
128
129
|
fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot"
|
|
129
130
|
}), c = h({
|
|
130
131
|
height: e.value.style.chart.height,
|
|
@@ -147,68 +148,68 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
147
148
|
right: s - l,
|
|
148
149
|
bottom: n - a
|
|
149
150
|
};
|
|
150
|
-
}),
|
|
151
|
+
}), Fe = f(() => qe(e.value.customPalette)), y = h({
|
|
151
152
|
dataLabels: {
|
|
152
153
|
show: e.value.style.chart.yAxis.labels.datapoints.show
|
|
153
154
|
},
|
|
154
155
|
showTable: e.value.table.show,
|
|
155
156
|
showTooltip: e.value.style.chart.tooltip.show
|
|
156
157
|
}), w = h([]);
|
|
157
|
-
function
|
|
158
|
+
function he(t) {
|
|
158
159
|
w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t);
|
|
159
160
|
}
|
|
160
|
-
const
|
|
161
|
-
const a =
|
|
161
|
+
const _ = f(() => A.dataset.map((t, l) => {
|
|
162
|
+
const a = Qe(t.color) || Fe.value[l] || V[l] || V[l % V.length];
|
|
162
163
|
return {
|
|
163
164
|
...t,
|
|
164
165
|
series: t.series.map((o) => ({
|
|
165
166
|
...o,
|
|
166
|
-
id:
|
|
167
|
+
id: Z(),
|
|
167
168
|
color: a
|
|
168
169
|
})),
|
|
169
170
|
seriesIndex: l,
|
|
170
171
|
color: a,
|
|
171
|
-
id:
|
|
172
|
+
id: Z(),
|
|
172
173
|
shape: t.shape || "circle"
|
|
173
174
|
};
|
|
174
|
-
})),
|
|
175
|
+
})), Ne = f(() => _.value.map((t) => ({
|
|
175
176
|
...t,
|
|
176
177
|
opacity: w.value.includes(t.id) ? 0.5 : 1,
|
|
177
|
-
segregate: () =>
|
|
178
|
+
segregate: () => he(t.id),
|
|
178
179
|
isSegregated: w.value.includes(t.id)
|
|
179
|
-
}))),
|
|
180
|
+
}))), Se = f(() => ({
|
|
180
181
|
cy: "pcp-div-legend",
|
|
181
182
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
182
183
|
color: e.value.style.chart.legend.color,
|
|
183
184
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
184
185
|
paddingBottom: 12,
|
|
185
186
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
186
|
-
})),
|
|
187
|
-
...
|
|
188
|
-
)), k = f(() => v.value.width /
|
|
187
|
+
})), pe = f(() => Math.max(
|
|
188
|
+
..._.value.filter((t) => !w.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
189
|
+
)), k = f(() => v.value.width / pe.value), X = f(() => _.value.filter((t) => !w.value.includes(t.id))), m = f(() => {
|
|
189
190
|
let t = [];
|
|
190
|
-
for (let l = 0; l <
|
|
191
|
-
const a = Math.min(...
|
|
192
|
-
const
|
|
191
|
+
for (let l = 0; l < pe.value; l += 1) {
|
|
192
|
+
const a = Math.min(...X.value.flatMap((d) => d.series.map((j) => j.values[l] || 0) || 0)), o = Math.max(...X.value.flatMap((d) => d.series.map((j) => j.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, i = Je(n, s, e.value.style.chart.yAxis.scaleTicks), $ = i.ticks.map((d, j) => {
|
|
193
|
+
const De = i.min < 0 ? d + Math.abs(i.min) : d - Math.abs(i.min), We = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
|
|
193
194
|
return {
|
|
194
|
-
y: v.value.bottom - v.value.height * (
|
|
195
|
+
y: v.value.bottom - v.value.height * (De / We),
|
|
195
196
|
x: v.value.left + k.value * l + k.value / 2,
|
|
196
197
|
value: d
|
|
197
198
|
};
|
|
198
199
|
});
|
|
199
200
|
t.push({
|
|
200
|
-
scale:
|
|
201
|
+
scale: i,
|
|
201
202
|
ticks: $,
|
|
202
203
|
name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
return t;
|
|
206
|
-
}),
|
|
207
|
+
}), Y = f(() => X.value.map((t, l) => ({
|
|
207
208
|
...t,
|
|
208
209
|
series: t.series.map((a, o) => ({
|
|
209
210
|
...a,
|
|
210
211
|
datapoints: a.values.map((n, s) => {
|
|
211
|
-
const
|
|
212
|
+
const i = 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
213
|
return {
|
|
213
214
|
name: a.name,
|
|
214
215
|
seriesName: t.name,
|
|
@@ -217,7 +218,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
217
218
|
seriesIndex: l,
|
|
218
219
|
value: n || 0,
|
|
219
220
|
x: v.value.left + k.value * s + k.value / 2,
|
|
220
|
-
y: v.value.bottom - v.value.height * (
|
|
221
|
+
y: v.value.bottom - v.value.height * (i / $),
|
|
221
222
|
comment: a.comments && a.comments[s] || ""
|
|
222
223
|
};
|
|
223
224
|
})
|
|
@@ -225,7 +226,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
225
226
|
})).map((t) => ({
|
|
226
227
|
...t,
|
|
227
228
|
series: t.series.map((l) => {
|
|
228
|
-
const a =
|
|
229
|
+
const a = Ke(l.datapoints), o = Ze(l.datapoints), n = et(e.value.style.chart.lines.smooth ? `M ${o}` : `M ${a}`);
|
|
229
230
|
return {
|
|
230
231
|
...l,
|
|
231
232
|
smoothPath: o,
|
|
@@ -234,11 +235,11 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
234
235
|
};
|
|
235
236
|
})
|
|
236
237
|
})));
|
|
237
|
-
function
|
|
238
|
-
return
|
|
238
|
+
function me({ value: t, index: l, datapoint: a }) {
|
|
239
|
+
return Ae(
|
|
239
240
|
e.value.style.chart.yAxis.labels.formatters[l] || null,
|
|
240
241
|
t,
|
|
241
|
-
|
|
242
|
+
_e({
|
|
242
243
|
p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
|
|
243
244
|
v: t,
|
|
244
245
|
s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
|
|
@@ -247,21 +248,21 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
247
248
|
{ datapoint: a, seriesIndex: l }
|
|
248
249
|
);
|
|
249
250
|
}
|
|
250
|
-
const p = h(null),
|
|
251
|
-
function
|
|
252
|
-
|
|
251
|
+
const p = h(null), q = h(null), D = h(!1), Q = h("");
|
|
252
|
+
function J({ shape: t, serieName: l, serie: a, relativeIndex: o, seriesIndex: n }) {
|
|
253
|
+
q.value = { serie: a, relativeIndex: o, seriesIndex: n, series: _.value, scales: m.value }, D.value = !0, p.value = a.id;
|
|
253
254
|
let s = "";
|
|
254
|
-
const
|
|
255
|
-
|
|
255
|
+
const i = e.value.style.chart.tooltip.customFormat;
|
|
256
|
+
$e(i) && at(() => i({
|
|
256
257
|
serie: a,
|
|
257
258
|
seriesIndex: a.seriesIndex,
|
|
258
|
-
series:
|
|
259
|
+
series: _.value,
|
|
259
260
|
config: e.value,
|
|
260
261
|
scales: m.value
|
|
261
|
-
})) ?
|
|
262
|
+
})) ? Q.value = i({
|
|
262
263
|
serie: a,
|
|
263
264
|
seriesIndex: a.seriesIndex,
|
|
264
|
-
series:
|
|
265
|
+
series: _.value,
|
|
265
266
|
config: e.value,
|
|
266
267
|
scales: m.value
|
|
267
268
|
}) : (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) => {
|
|
@@ -269,10 +270,10 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
269
270
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
270
271
|
<span>${$}: </span>
|
|
271
272
|
<span>
|
|
272
|
-
${
|
|
273
|
+
${Ae(
|
|
273
274
|
e.value.style.chart.yAxis.labels.formatters[d] || null,
|
|
274
275
|
a.datapoints[d].value,
|
|
275
|
-
|
|
276
|
+
_e({
|
|
276
277
|
p: e.value.style.chart.yAxis.labels.prefixes[d] || "",
|
|
277
278
|
v: a.datapoints[d].value,
|
|
278
279
|
s: e.value.style.chart.yAxis.labels.suffixes[d] || "",
|
|
@@ -283,13 +284,13 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
283
284
|
</span>
|
|
284
285
|
</div>
|
|
285
286
|
`, 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
|
-
}),
|
|
287
|
+
}), Q.value = `<div>${s}</div>`);
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
289
|
+
function Le() {
|
|
290
|
+
return _.value;
|
|
290
291
|
}
|
|
291
|
-
const
|
|
292
|
-
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(m.value.map((n) => n.name)), l =
|
|
292
|
+
const S = f(() => {
|
|
293
|
+
const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(m.value.map((n) => n.name)), l = Y.value.flatMap((n, s) => n.series.map((i) => [n.name].concat([i.name]).concat(i.values))), a = {
|
|
293
294
|
th: {
|
|
294
295
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
295
296
|
color: e.value.table.th.color,
|
|
@@ -308,56 +309,69 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
308
309
|
config: a,
|
|
309
310
|
colNames: o
|
|
310
311
|
};
|
|
311
|
-
}),
|
|
312
|
-
head:
|
|
313
|
-
body:
|
|
312
|
+
}), ye = f(() => Y.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
|
|
313
|
+
head: S.value.head,
|
|
314
|
+
body: S.value.body
|
|
314
315
|
});
|
|
315
|
-
function
|
|
316
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l =
|
|
317
|
-
|
|
316
|
+
function fe() {
|
|
317
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ye.value.head, a = ye.value.body, o = t.concat([l]).concat(a), n = lt(o);
|
|
318
|
+
ot({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
320
|
+
function Oe(t) {
|
|
321
|
+
ee("selectDatapoint", t);
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
323
|
+
function ge(t) {
|
|
324
|
+
ee("selectLegend", {
|
|
324
325
|
...t,
|
|
325
326
|
isSegregated: !t.isSegregated,
|
|
326
327
|
opacity: t.isSegregated ? 1 : 0.5
|
|
327
328
|
});
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function be() {
|
|
330
331
|
y.value.showTable = !y.value.showTable;
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function xe() {
|
|
333
334
|
y.value.dataLabels.show = !y.value.dataLabels.show;
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function ke() {
|
|
336
337
|
y.value.showTooltip = !y.value.showTooltip;
|
|
337
338
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
339
|
+
const R = h(!1);
|
|
340
|
+
function K() {
|
|
341
|
+
R.value = !R.value;
|
|
342
|
+
}
|
|
343
|
+
return Me({
|
|
344
|
+
getData: Le,
|
|
345
|
+
generateCsv: fe,
|
|
346
|
+
generatePdf: ve,
|
|
347
|
+
generateImage: de,
|
|
348
|
+
toggleTable: be,
|
|
349
|
+
toggleLabels: xe,
|
|
350
|
+
toggleTooltip: ke,
|
|
351
|
+
toggleAnnotator: K
|
|
352
|
+
}), (t, l) => (u(), r("div", {
|
|
347
353
|
ref_key: "pcpChart",
|
|
348
|
-
ref:
|
|
349
|
-
class:
|
|
350
|
-
style:
|
|
351
|
-
id: `pcp_${
|
|
354
|
+
ref: N,
|
|
355
|
+
class: U(`vue-ui-pcp ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
356
|
+
style: T(`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%" : ""}`),
|
|
357
|
+
id: `pcp_${H.value}`
|
|
352
358
|
}, [
|
|
353
|
-
e.value.
|
|
359
|
+
e.value.userOptions.buttons.annotator ? (u(), z(ft, {
|
|
354
360
|
key: 0,
|
|
361
|
+
parent: N.value,
|
|
362
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
363
|
+
color: e.value.style.chart.color,
|
|
364
|
+
active: R.value,
|
|
365
|
+
onClose: K
|
|
366
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : g("", !0),
|
|
367
|
+
e.value.style.chart.title.text ? (u(), r("div", {
|
|
368
|
+
key: 1,
|
|
355
369
|
ref_key: "chartTitle",
|
|
356
|
-
ref:
|
|
370
|
+
ref: ae,
|
|
357
371
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
358
372
|
}, [
|
|
359
|
-
(
|
|
360
|
-
key: `title_${
|
|
373
|
+
(u(), z(ut, {
|
|
374
|
+
key: `title_${oe.value}`,
|
|
361
375
|
config: {
|
|
362
376
|
title: {
|
|
363
377
|
cy: "pcp-div-title",
|
|
@@ -370,14 +384,14 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
370
384
|
}
|
|
371
385
|
}, null, 8, ["config"]))
|
|
372
386
|
], 512)) : g("", !0),
|
|
373
|
-
e.value.userOptions.show &&
|
|
387
|
+
e.value.userOptions.show && F.value ? (u(), z(dt, {
|
|
374
388
|
ref: "details",
|
|
375
|
-
key: `user_options_${
|
|
389
|
+
key: `user_options_${te.value}`,
|
|
376
390
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
377
391
|
color: e.value.style.chart.color,
|
|
378
|
-
isPrinting:
|
|
379
|
-
isImaging:
|
|
380
|
-
uid:
|
|
392
|
+
isPrinting: M(ie),
|
|
393
|
+
isImaging: M(ce),
|
|
394
|
+
uid: H.value,
|
|
381
395
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
382
396
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
383
397
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -388,16 +402,19 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
388
402
|
isFullscreen: O.value,
|
|
389
403
|
isTooltip: y.value.showTooltip,
|
|
390
404
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
391
|
-
chartElement:
|
|
405
|
+
chartElement: N.value,
|
|
392
406
|
position: e.value.userOptions.position,
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
407
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
408
|
+
isAnnotation: R.value,
|
|
409
|
+
onToggleFullscreen: Pe,
|
|
410
|
+
onGeneratePdf: M(ve),
|
|
411
|
+
onGenerateCsv: fe,
|
|
412
|
+
onGenerateImage: M(de),
|
|
413
|
+
onToggleTable: be,
|
|
414
|
+
onToggleLabels: xe,
|
|
415
|
+
onToggleTooltip: ke,
|
|
416
|
+
onToggleAnnotator: K
|
|
417
|
+
}, je({ _: 2 }, [
|
|
401
418
|
t.$slots.optionPdf ? {
|
|
402
419
|
name: "optionPdf",
|
|
403
420
|
fn: b(() => [
|
|
@@ -436,82 +453,89 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
436
453
|
t.$slots.optionFullscreen ? {
|
|
437
454
|
name: "optionFullscreen",
|
|
438
455
|
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
439
|
-
x(t.$slots, "optionFullscreen",
|
|
456
|
+
x(t.$slots, "optionFullscreen", W(E({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
440
457
|
]),
|
|
441
458
|
key: "5"
|
|
459
|
+
} : void 0,
|
|
460
|
+
t.$slots.optionAnnotator ? {
|
|
461
|
+
name: "optionAnnotator",
|
|
462
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
463
|
+
x(t.$slots, "optionAnnotator", W(E({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
464
|
+
]),
|
|
465
|
+
key: "6"
|
|
442
466
|
} : 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
|
-
|
|
445
|
-
key:
|
|
446
|
-
xmlns:
|
|
447
|
-
class:
|
|
467
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
468
|
+
F.value ? (u(), r("svg", {
|
|
469
|
+
key: 3,
|
|
470
|
+
xmlns: M(tt),
|
|
471
|
+
class: U({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
448
472
|
viewBox: `0 0 ${v.value.chartWidth <= 0 ? 10 : v.value.chartWidth} ${v.value.chartHeight <= 0 ? 10 : v.value.chartHeight}`,
|
|
449
|
-
style:
|
|
473
|
+
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
450
474
|
}, [
|
|
451
|
-
|
|
452
|
-
(
|
|
453
|
-
|
|
475
|
+
Ce(yt),
|
|
476
|
+
(u(!0), r(C, null, I(m.value, (a, o) => (u(), r("g", kt, [
|
|
477
|
+
P("line", {
|
|
454
478
|
x1: v.value.left + k.value * o + k.value / 2,
|
|
455
479
|
x2: v.value.left + k.value * o + k.value / 2,
|
|
456
480
|
y1: v.value.top,
|
|
457
481
|
y2: v.value.bottom,
|
|
458
482
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
459
483
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth
|
|
460
|
-
}, null, 8,
|
|
461
|
-
|
|
484
|
+
}, null, 8, Ct),
|
|
485
|
+
P("text", {
|
|
462
486
|
x: v.value.left + k.value * o + k.value / 2,
|
|
463
487
|
y: v.value.top - 24,
|
|
464
488
|
fill: e.value.style.chart.yAxis.labels.axisNamesColor,
|
|
465
489
|
"font-size": c.value.axisNameFontSize,
|
|
466
490
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
467
491
|
"text-anchor": "middle"
|
|
468
|
-
},
|
|
469
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (
|
|
470
|
-
(
|
|
492
|
+
}, L(a.name), 9, wt),
|
|
493
|
+
e.value.style.chart.yAxis.labels.ticks.show ? (u(), r(C, { key: 0 }, [
|
|
494
|
+
(u(!0), r(C, null, I(a.ticks, (n) => (u(), r("line", {
|
|
471
495
|
x1: n.x,
|
|
472
496
|
x2: n.x - 10,
|
|
473
497
|
y1: n.y,
|
|
474
498
|
y2: n.y,
|
|
475
499
|
stroke: e.value.style.chart.yAxis.stroke,
|
|
476
500
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
477
|
-
style:
|
|
478
|
-
}, null, 12,
|
|
479
|
-
(
|
|
501
|
+
style: T(`opacity:${p.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
502
|
+
}, null, 12, $t))), 256)),
|
|
503
|
+
(u(!0), r(C, null, I(a.ticks, (n) => (u(), r("text", {
|
|
480
504
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
481
505
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
|
|
482
506
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
483
507
|
"text-anchor": "end",
|
|
484
508
|
"font-size": c.value.ticksFontSize,
|
|
485
509
|
"font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
|
|
486
|
-
style:
|
|
487
|
-
},
|
|
510
|
+
style: T(`opacity:${p.value && !y.value.showTooltip ? 0.2 : 1}`)
|
|
511
|
+
}, L(me({ value: n.value, index: o, datapoint: n })), 13, At))), 256))
|
|
488
512
|
], 64)) : g("", !0)
|
|
489
513
|
]))), 256)),
|
|
490
|
-
(
|
|
491
|
-
(
|
|
492
|
-
e.value.style.chart.plots.show ? (
|
|
493
|
-
(
|
|
514
|
+
(u(!0), r(C, null, I(Y.value, (a) => (u(), r("g", null, [
|
|
515
|
+
(u(!0), r(C, null, I(a.series, (o, n) => (u(), r("g", null, [
|
|
516
|
+
e.value.style.chart.plots.show ? (u(), r("g", _t, [
|
|
517
|
+
(u(!0), r(C, null, I(o.datapoints, (s) => (u(), z(ct, {
|
|
494
518
|
plot: { x: s.x, y: s.y },
|
|
495
519
|
color: a.color,
|
|
496
520
|
shape: a.shape,
|
|
497
521
|
radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
|
|
498
522
|
stroke: e.value.style.chart.backgroundColor,
|
|
499
523
|
strokeWidth: 0.5,
|
|
500
|
-
onMouseenter: (
|
|
524
|
+
onMouseenter: (i) => J({
|
|
501
525
|
shape: a.shape,
|
|
502
526
|
serieName: a.name,
|
|
503
527
|
serie: o,
|
|
504
528
|
relativeIndex: n,
|
|
505
529
|
seriesIndex: o.seriesIndex
|
|
506
530
|
}),
|
|
507
|
-
onMouseleave: l[0] || (l[0] = (
|
|
531
|
+
onMouseleave: l[0] || (l[0] = (i) => {
|
|
508
532
|
p.value = null, D.value = !1;
|
|
509
533
|
}),
|
|
510
|
-
style:
|
|
511
|
-
onClick: () =>
|
|
534
|
+
style: T(`opacity:${p.value ? p.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
535
|
+
onClick: () => Oe(s)
|
|
512
536
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
513
|
-
y.value.showTooltip ? g("", !0) : (
|
|
514
|
-
p.value && p.value === o.id && o.datapoints.length ? (
|
|
537
|
+
y.value.showTooltip ? g("", !0) : (u(), r(C, { key: 0 }, [
|
|
538
|
+
p.value && p.value === o.id && o.datapoints.length ? (u(), r("text", {
|
|
515
539
|
key: 0,
|
|
516
540
|
x: o.datapoints[0].x - c.value.ticksFontSize,
|
|
517
541
|
y: o.datapoints[0].y + c.value.ticksFontSize / 3,
|
|
@@ -519,10 +543,10 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
519
543
|
"font-size": c.value.ticksFontSize,
|
|
520
544
|
fill: a.color,
|
|
521
545
|
"font-weight": "bold"
|
|
522
|
-
},
|
|
546
|
+
}, L(o.name), 9, Tt)) : g("", !0)
|
|
523
547
|
], 64)),
|
|
524
|
-
e.value.style.chart.comments.show ? (
|
|
525
|
-
s.comment ? (
|
|
548
|
+
e.value.style.chart.comments.show ? (u(!0), r(C, { key: 1 }, I(o.datapoints, (s) => (u(), r("g", null, [
|
|
549
|
+
s.comment ? (u(), r("foreignObject", {
|
|
526
550
|
key: 0,
|
|
527
551
|
style: { overflow: "visible" },
|
|
528
552
|
height: "12",
|
|
@@ -530,23 +554,23 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
530
554
|
x: s.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
|
|
531
555
|
y: s.y + e.value.style.chart.comments.offsetY + 6
|
|
532
556
|
}, [
|
|
533
|
-
|
|
557
|
+
P("div", Mt, [
|
|
534
558
|
x(t.$slots, "plot-comment", {
|
|
535
559
|
plot: { ...s, color: a.color }
|
|
536
560
|
}, void 0, !0)
|
|
537
561
|
])
|
|
538
|
-
], 8,
|
|
562
|
+
], 8, zt)) : g("", !0)
|
|
539
563
|
]))), 256)) : g("", !0)
|
|
540
564
|
])) : g("", !0),
|
|
541
|
-
y.value.dataLabels.show || p.value && p.value === o.id ? (
|
|
565
|
+
y.value.dataLabels.show || p.value && p.value === o.id ? (u(!0), r(C, { key: 1 }, I(o.datapoints, (s, i) => (u(), r("text", {
|
|
542
566
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
543
567
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
|
|
544
568
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
545
569
|
"text-anchor": "start",
|
|
546
570
|
"font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
|
|
547
|
-
class:
|
|
571
|
+
class: U({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !0 }),
|
|
548
572
|
"font-size": c.value.datapointFontSize,
|
|
549
|
-
onMouseenter: ($) =>
|
|
573
|
+
onMouseenter: ($) => J({
|
|
550
574
|
shape: a.shape,
|
|
551
575
|
serieName: a.name,
|
|
552
576
|
serie: o,
|
|
@@ -556,15 +580,15 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
556
580
|
onMouseleave: l[1] || (l[1] = ($) => {
|
|
557
581
|
p.value = null, D.value = !1;
|
|
558
582
|
}),
|
|
559
|
-
style:
|
|
560
|
-
},
|
|
561
|
-
|
|
583
|
+
style: T(`opacity:${p.value ? p.value === o.id ? 1 : 0.2 : 1}`)
|
|
584
|
+
}, L(me({ value: s.value, index: i, datapoint: s })), 45, It))), 256)) : g("", !0),
|
|
585
|
+
P("path", {
|
|
562
586
|
d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
|
|
563
587
|
stroke: a.color,
|
|
564
588
|
"stroke-width": e.value.style.chart.lines.strokeWidth,
|
|
565
589
|
fill: "none",
|
|
566
|
-
class:
|
|
567
|
-
onMouseenter: (s) =>
|
|
590
|
+
class: U({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !0 }),
|
|
591
|
+
onMouseenter: (s) => J({
|
|
568
592
|
shape: a.shape,
|
|
569
593
|
serieName: a.name,
|
|
570
594
|
serie: o,
|
|
@@ -574,17 +598,17 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
574
598
|
onMouseleave: l[2] || (l[2] = (s) => {
|
|
575
599
|
p.value = null, D.value = !1;
|
|
576
600
|
}),
|
|
577
|
-
style:
|
|
578
|
-
}, null, 46,
|
|
601
|
+
style: T(`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}`)
|
|
602
|
+
}, null, 46, Pt)
|
|
579
603
|
]))), 256))
|
|
580
604
|
]))), 256)),
|
|
581
605
|
x(t.$slots, "svg", { svg: v.value }, void 0, !0)
|
|
582
|
-
], 14,
|
|
583
|
-
t.$slots.watermark ? (
|
|
584
|
-
x(t.$slots, "watermark",
|
|
606
|
+
], 14, xt)) : g("", !0),
|
|
607
|
+
t.$slots.watermark ? (u(), r("div", Ft, [
|
|
608
|
+
x(t.$slots, "watermark", W(E({ isPrinting: M(ie) || M(ce) })), void 0, !0)
|
|
585
609
|
])) : g("", !0),
|
|
586
|
-
|
|
587
|
-
key:
|
|
610
|
+
F.value ? g("", !0) : (u(), z(mt, {
|
|
611
|
+
key: 5,
|
|
588
612
|
config: {
|
|
589
613
|
type: "parallelCoordinatePlot",
|
|
590
614
|
style: {
|
|
@@ -592,33 +616,33 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
592
616
|
}
|
|
593
617
|
}
|
|
594
618
|
}, null, 8, ["config"])),
|
|
595
|
-
|
|
619
|
+
P("div", {
|
|
596
620
|
ref_key: "chartLegend",
|
|
597
|
-
ref:
|
|
621
|
+
ref: le
|
|
598
622
|
}, [
|
|
599
|
-
e.value.style.chart.legend.show &&
|
|
600
|
-
key: `legend_${
|
|
601
|
-
legendSet:
|
|
602
|
-
config:
|
|
623
|
+
e.value.style.chart.legend.show && F.value ? (u(), z(rt, {
|
|
624
|
+
key: `legend_${se.value}`,
|
|
625
|
+
legendSet: Ne.value,
|
|
626
|
+
config: Se.value,
|
|
603
627
|
onClickMarker: l[3] || (l[3] = ({ legend: a }) => {
|
|
604
|
-
|
|
628
|
+
he(a.id), ge(a);
|
|
605
629
|
})
|
|
606
630
|
}, {
|
|
607
631
|
item: b(({ legend: a, index: o }) => [
|
|
608
|
-
|
|
632
|
+
P("div", {
|
|
609
633
|
onClick: (n) => {
|
|
610
|
-
a.segregate(),
|
|
634
|
+
a.segregate(), ge(a);
|
|
611
635
|
},
|
|
612
|
-
style:
|
|
613
|
-
},
|
|
636
|
+
style: T(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`)
|
|
637
|
+
}, L(a.name), 13, Nt)
|
|
614
638
|
]),
|
|
615
639
|
_: 1
|
|
616
640
|
}, 8, ["legendSet", "config"])) : x(t.$slots, "legend", {
|
|
617
641
|
key: 1,
|
|
618
|
-
legend:
|
|
642
|
+
legend: _.value
|
|
619
643
|
}, void 0, !0)
|
|
620
644
|
], 512),
|
|
621
|
-
|
|
645
|
+
Ce(it, {
|
|
622
646
|
show: y.value.showTooltip && D.value,
|
|
623
647
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
624
648
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -629,20 +653,20 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
629
653
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
630
654
|
position: e.value.style.chart.tooltip.position,
|
|
631
655
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
632
|
-
parent:
|
|
633
|
-
content:
|
|
634
|
-
isCustom:
|
|
656
|
+
parent: N.value,
|
|
657
|
+
content: Q.value,
|
|
658
|
+
isCustom: M($e)(e.value.style.chart.tooltip.customFormat)
|
|
635
659
|
}, {
|
|
636
660
|
"tooltip-before": b(() => [
|
|
637
|
-
x(t.$slots, "tooltip-before",
|
|
661
|
+
x(t.$slots, "tooltip-before", W(E({ ...q.value })), void 0, !0)
|
|
638
662
|
]),
|
|
639
663
|
"tooltip-after": b(() => [
|
|
640
|
-
x(t.$slots, "tooltip-after",
|
|
664
|
+
x(t.$slots, "tooltip-after", W(E({ ...q.value })), void 0, !0)
|
|
641
665
|
]),
|
|
642
666
|
_: 3
|
|
643
667
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
644
|
-
|
|
645
|
-
key:
|
|
668
|
+
F.value ? (u(), z(pt, {
|
|
669
|
+
key: 6,
|
|
646
670
|
hideDetails: "",
|
|
647
671
|
config: {
|
|
648
672
|
open: y.value.showTable,
|
|
@@ -658,29 +682,29 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events":
|
|
|
658
682
|
}
|
|
659
683
|
}, {
|
|
660
684
|
content: b(() => [
|
|
661
|
-
(
|
|
662
|
-
key: `table_${
|
|
663
|
-
colNames:
|
|
664
|
-
head:
|
|
665
|
-
body:
|
|
666
|
-
config:
|
|
685
|
+
(u(), z(ht, {
|
|
686
|
+
key: `table_${ne.value}`,
|
|
687
|
+
colNames: S.value.colNames,
|
|
688
|
+
head: S.value.head,
|
|
689
|
+
body: S.value.body,
|
|
690
|
+
config: S.value.config,
|
|
667
691
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
668
692
|
onClose: l[4] || (l[4] = (a) => y.value.showTable = !1)
|
|
669
693
|
}, {
|
|
670
694
|
th: b(({ th: a }) => [
|
|
671
|
-
|
|
695
|
+
P("div", { innerHTML: a }, null, 8, St)
|
|
672
696
|
]),
|
|
673
697
|
td: b(({ td: a }) => [
|
|
674
|
-
|
|
698
|
+
Ue(L(a), 1)
|
|
675
699
|
]),
|
|
676
700
|
_: 1
|
|
677
701
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
678
702
|
]),
|
|
679
703
|
_: 1
|
|
680
704
|
}, 8, ["config"])) : g("", !0)
|
|
681
|
-
], 14,
|
|
705
|
+
], 14, bt));
|
|
682
706
|
}
|
|
683
|
-
},
|
|
707
|
+
}, Jt = /* @__PURE__ */ gt(Lt, [["__scopeId", "data-v-5f0cc747"]]);
|
|
684
708
|
export {
|
|
685
|
-
|
|
709
|
+
Jt as default
|
|
686
710
|
};
|