vue-data-ui 2.7.2 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Cuf9zUpa.cjs → Arrow-Bslu6In_.cjs} +1 -1
- package/dist/{Arrow-SOQeOwmT.js → Arrow-Kbu7LT-f.js} +1 -1
- package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-BLhJaEYy.js} +4 -3
- package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-WIhlX3LN.cjs} +1 -1
- package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-Dlg-p-yo.js} +3 -3
- package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-mXlj2N11.cjs} +1 -1
- package/dist/{DataTable-C_28ZqiP.js → DataTable-DOKlm7k4.js} +2 -2
- package/dist/{DataTable-ByOfBGEi.cjs → DataTable-c3nDhwbO.cjs} +1 -1
- package/dist/{Legend-mrAy7yUC.cjs → Legend-Bhl2d6oj.cjs} +1 -1
- package/dist/{Legend-CmKaL7xe.js → Legend-CIjMjfNk.js} +2 -2
- package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BCLALL_i.js} +1 -1
- package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-DFYAej2o.cjs} +1 -1
- package/dist/PenAndPaper-CAqWCUZx.cjs +1 -0
- package/dist/PenAndPaper-CZs431Nx.js +374 -0
- package/dist/{Shape-iIO-95sh.js → Shape-D9MuIPm8.js} +1 -1
- package/dist/{Shape-x7U3IhoM.cjs → Shape-wMij_bxG.cjs} +1 -1
- package/dist/{Slicer-C49MotZz.js → Slicer-CqYLlNlU.js} +2 -2
- package/dist/{Slicer-Ct66sqV1.cjs → Slicer-Duh-nBCD.cjs} +1 -1
- package/dist/{Title-BgVFZwZZ.cjs → Title-C5w8bVlo.cjs} +1 -1
- package/dist/{Title-Co3F59jq.js → Title-UjBqdYyD.js} +1 -1
- package/dist/{Tooltip-Cr89wMKa.js → Tooltip-3NNIdJ6N.js} +1 -1
- package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-Dbe23pmt.cjs} +1 -1
- package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-6NoDv4_U.js} +1 -1
- package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-C-_IolaZ.cjs} +1 -1
- package/dist/{img-DQDP5JIH.js → img-BxGd_UqS.js} +1 -1
- package/dist/{img-DgRUFehB.cjs → img-DCkGlbCr.cjs} +1 -1
- package/dist/{index-gC66Se26.js → index-D3VntmA9.js} +1 -1
- package/dist/{index-BeJeDy5m.cjs → index-MIJJ8liG.cjs} +1 -1
- package/dist/{pdf-Bu1ahAX2.cjs → pdf-BGp1xMhT.cjs} +1 -1
- package/dist/{pdf-lJiGVhtL.js → pdf-BpVckOt1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-DTlOqz2P.js} +1 -1
- package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-DwR4JSzw.cjs} +1 -1
- package/dist/{usePrinter-KMFl0n0s.js → usePrinter-H3tAjGXs.js} +3 -3
- package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-U1x-RAEA.cjs} +1 -1
- package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-BuY9ggUz.cjs} +1 -1
- package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-DFwVHeO8.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DeTBYGV_.cjs +19 -0
- package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-NNib9NTc.js} +30 -30
- package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-DGJQIcdB.js} +3 -3
- package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-cBSqrYy3.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-DWG7C-nA.js} +22 -22
- package/dist/vue-ui-age-pyramid-DfGSS3SE.cjs +1 -0
- package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-Bpy0V7AA.cjs} +1 -1
- package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-D21j4NL0.js} +2 -2
- package/dist/vue-ui-bullet-CrgeKJBE.cjs +34 -0
- package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-MrNlqcTX.js} +36 -36
- package/dist/vue-ui-candlestick-DfEQ057F.cjs +2 -0
- package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-Dgwjzuq0.js} +11 -11
- package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-B9AHiJLA.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-TOSDOJ0J.js} +4 -4
- package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-BQwGKI2l.cjs} +1 -1
- package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-DAlxKIqD.js} +32 -32
- package/dist/vue-ui-circle-pack-B9HW-E4V.cjs +1 -0
- package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-BjD7UG4l.js} +44 -44
- package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-Bv_hn_5f.cjs} +1 -1
- package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-CS0L4MjH.js} +2 -2
- package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-Cu4QabFb.js} +3 -3
- package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-DGJjS8TM.cjs} +1 -1
- package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-BusMzORo.cjs} +1 -1
- package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-CrqD5QXP.js} +2 -2
- package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-CbDkvk9s.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DKD_efmP.js} +69 -69
- package/dist/vue-ui-donut-evolution-Dul--Pi_.cjs +1 -0
- package/dist/vue-ui-donut-vqs5auMD.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BGN-Rshy.js} +52 -52
- package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-CB6lYwMc.cjs} +1 -1
- package/dist/vue-ui-flow-CDPkL02l.cjs +1 -0
- package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-g93Xo1mO.js} +75 -75
- package/dist/vue-ui-funnel-D1PhFKgP.cjs +1 -0
- package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-r_WI2IRS.js} +28 -28
- package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-B4JnwjLW.js} +39 -39
- package/dist/vue-ui-galaxy-DSXcoM3k.cjs +1 -0
- package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-BPz7mbOb.js} +26 -26
- package/dist/vue-ui-gauge-Ct1Knstr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-BbUqDkQz.js} +3 -3
- package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-tet3qRDX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BbmFxESu.js} +10 -10
- package/dist/vue-ui-heatmap-RHN_eSK2.cjs +1 -0
- package/dist/vue-ui-history-plot-B8_Kig_-.cjs +1 -0
- package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-CJFtY1Rm.js} +35 -35
- package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-C0IWPkaZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-CQo8VsEv.js} +3 -3
- package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-8wZYNxLC.js} +2 -2
- package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-DoOFKxep.cjs} +1 -1
- package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-DHb8Roml.js} +45 -45
- package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-HnReqNMq.cjs} +1 -1
- package/dist/vue-ui-mood-radar-BjmCUY0q.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-CdBmESCg.js} +40 -40
- package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-CO7sSeR-.js} +65 -65
- package/dist/vue-ui-nested-donuts-SBaCzHQP.cjs +17 -0
- package/dist/vue-ui-onion-BehdICTa.cjs +5 -0
- package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-Ci15BQ0y.js} +75 -75
- package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-BJbrb-Mp.js} +38 -38
- package/dist/vue-ui-parallel-coordinate-plot-BLLONfts.cjs +8 -0
- package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-BZTZY3LG.js} +54 -54
- package/dist/vue-ui-quadrant-ntmlYIVx.cjs +1 -0
- package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-B2OUF1Pk.js} +9 -9
- package/dist/vue-ui-quick-chart-BCdm0tx2.cjs +15 -0
- package/dist/vue-ui-radar-CUoLdojY.cjs +1 -0
- package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-D8DHrSPP.js} +55 -55
- package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-BWlmz08s.cjs} +1 -1
- package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-D4H6cT0d.js} +2 -2
- package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-CWvX8cvJ.js} +7 -7
- package/dist/vue-ui-relation-circle-DighSxmd.cjs +1 -0
- package/dist/vue-ui-rings-CPIzjzdm.cjs +2 -0
- package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-Dq5YT7h-.js} +62 -62
- package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BMuJyp6q.js} +44 -44
- package/dist/vue-ui-scatter-BSgMQLjw.cjs +1 -0
- package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-DOE444ST.cjs} +1 -1
- package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-pHcbvN3-.js} +3 -3
- package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-BsPExuQ7.js} +2 -2
- package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-bHv8hVve.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-S0FbKqDW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-eJ5IZSRQ.js} +5 -5
- package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-B1pwFeeg.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-B9E03kBf.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-BpAFpJN9.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CbtRwF8H.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-4gAnz36n.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-BJfFPQ-X.js} +5 -5
- package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-CJ8rlJiI.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-CLz-PMi0.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-C5ZzOhRM.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-ja3t34Mt.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-BnuJOk6L.js} +86 -86
- package/dist/vue-ui-stackbar-DSWEq3Pa.cjs +6 -0
- package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-Cbr3Dkmd.js} +36 -36
- package/dist/vue-ui-strip-plot-CyiaXAxw.cjs +1 -0
- package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CPJeRMDV.cjs} +1 -1
- package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-Cr6jEi4z.js} +1 -1
- package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BfKruH6W.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-C0J52xWN.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-C9PHXjbW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-CGUs_6Ij.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-Cs8Xt7tQ.js} +50 -50
- package/dist/vue-ui-thermometer-DWC--OtD.cjs +1 -0
- package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-DD0VvMEs.cjs} +1 -1
- package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-DDZHmPLV.js} +5 -5
- package/dist/vue-ui-tiremarks-B_koqVkj.cjs +1 -0
- package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-DHAdNbAA.js} +25 -25
- package/dist/vue-ui-treemap-C_yhbpyF.cjs +1 -0
- package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-CfH-P5Oh.js} +12 -12
- package/dist/vue-ui-vertical-bar-BRplGFjj.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-oBdc4YQS.js} +80 -80
- package/dist/vue-ui-waffle-Bg5T7RVn.cjs +1 -0
- package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-DZ2zIujl.js} +45 -45
- package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BerXCO4A.js} +27 -27
- package/dist/vue-ui-wheel-Bj3Z92nh.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-BWQ1ogz9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-U5KISxTe.js} +72 -72
- package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-C078AHoi.cjs} +2 -2
- package/dist/vue-ui-xy-canvas-BpblELcE.js +1672 -0
- package/dist/vue-ui-xy-canvas-C76OoGNJ.cjs +9 -0
- package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-y9zEQYMK.js} +16 -16
- package/package.json +1 -1
- package/dist/PenAndPaper-CmcfpltX.js +0 -243
- package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
- package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
- package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
- package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
- package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
- package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
- package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
- package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
- package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
- package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
- package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
- package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
- package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
- package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
- package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
- package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
- package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
- package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
- package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
- package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
- package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
- package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
- package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
- package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
- package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
- package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
- package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
- package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
- package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
- package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as b, ref as v, watch as Xe, onMounted as Ye, onBeforeUnmount as qe, createElementBlock as i, openBlock as u, unref as x, normalizeStyle as T, normalizeClass as W, createBlock as z, createCommentVNode as m, createElementVNode as F, createVNode as Me, createSlots as Je, withCtx as k, renderSlot as f, normalizeProps as S, guardReactiveProps as D, Fragment as
|
|
2
|
-
import { u as Qe, c as ee, t as Ze, p as H, a as et, o as tt, e as ze, g as at, b as lt, d as ot, D as st, S as nt, T as ut, U as it, X as rt, x as Ie, F as G, q as ct, r as vt, i as Fe, f as Pe, y as dt } from "./index-
|
|
1
|
+
import { computed as b, ref as v, watch as Xe, onMounted as Ye, onBeforeUnmount as qe, createElementBlock as i, openBlock as u, unref as x, normalizeStyle as T, normalizeClass as W, createBlock as z, createCommentVNode as m, createElementVNode as F, createVNode as Me, createSlots as Je, withCtx as k, renderSlot as f, normalizeProps as S, guardReactiveProps as D, Fragment as $, renderList as I, toDisplayString as R, createTextVNode as Ke } from "vue";
|
|
2
|
+
import { u as Qe, c as ee, t as Ze, p as H, a as et, o as tt, e as ze, g as at, b as lt, d as ot, D as st, S as nt, T as ut, U as it, X as rt, x as Ie, F as G, q as ct, r as vt, i as Fe, f as Pe, y as dt } from "./index-D3VntmA9.js";
|
|
3
3
|
import { t as ht, u as pt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as mt } from "./Title-
|
|
5
|
-
import { L as yt } from "./Legend-
|
|
6
|
-
import { _ as ft } from "./Tooltip-
|
|
7
|
-
import { _ as gt } from "./Shape-
|
|
8
|
-
import { u as bt, U as xt } from "./usePrinter-
|
|
9
|
-
import { D as kt } from "./DataTable-
|
|
10
|
-
import wt from "./vue-ui-accordion-
|
|
11
|
-
import
|
|
12
|
-
import { u as Ne } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import {
|
|
4
|
+
import { _ as mt } from "./Title-UjBqdYyD.js";
|
|
5
|
+
import { L as yt } from "./Legend-CIjMjfNk.js";
|
|
6
|
+
import { _ as ft } from "./Tooltip-3NNIdJ6N.js";
|
|
7
|
+
import { _ as gt } from "./Shape-D9MuIPm8.js";
|
|
8
|
+
import { u as bt, U as xt } from "./usePrinter-H3tAjGXs.js";
|
|
9
|
+
import { D as kt } from "./DataTable-DOKlm7k4.js";
|
|
10
|
+
import wt from "./vue-ui-accordion-DGJQIcdB.js";
|
|
11
|
+
import $t from "./vue-ui-skeleton-pHcbvN3-.js";
|
|
12
|
+
import { u as Ne } from "./useNestedProp-DTlOqz2P.js";
|
|
13
|
+
import { _ as Ct } from "./PackageVersion-BCLALL_i.js";
|
|
14
|
+
import { _ as At } from "./PenAndPaper-CZs431Nx.js";
|
|
15
15
|
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { u as _t } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -161,9 +161,9 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
161
161
|
},
|
|
162
162
|
showTable: e.value.table.show,
|
|
163
163
|
showTooltip: e.value.style.chart.tooltip.show
|
|
164
|
-
}),
|
|
164
|
+
}), C = v([]);
|
|
165
165
|
function ge(t) {
|
|
166
|
-
|
|
166
|
+
C.value.includes(t) ? C.value = C.value.filter((l) => l !== t) : C.value.push(t);
|
|
167
167
|
}
|
|
168
168
|
const M = b(() => _.dataset.map((t, l) => {
|
|
169
169
|
const a = ot(t.color) || We.value[l] || H[l] || H[l % H.length];
|
|
@@ -181,9 +181,9 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
181
181
|
};
|
|
182
182
|
})), Ee = b(() => M.value.map((t) => ({
|
|
183
183
|
...t,
|
|
184
|
-
opacity:
|
|
184
|
+
opacity: C.value.includes(t.id) ? 0.5 : 1,
|
|
185
185
|
segregate: () => ge(t.id),
|
|
186
|
-
isSegregated:
|
|
186
|
+
isSegregated: C.value.includes(t.id)
|
|
187
187
|
}))), Ve = b(() => ({
|
|
188
188
|
cy: "pcp-div-legend",
|
|
189
189
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -192,8 +192,8 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
192
192
|
paddingBottom: 12,
|
|
193
193
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
194
194
|
})), be = b(() => Math.max(
|
|
195
|
-
...M.value.filter((t) =>
|
|
196
|
-
)), w = b(() => c.value.width / be.value), q = b(() => M.value.filter((t) =>
|
|
195
|
+
...M.value.filter((t) => !C.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
|
|
196
|
+
)), w = b(() => c.value.width / be.value), q = b(() => M.value.filter((t) => !C.value.includes(t.id))), g = b(() => {
|
|
197
197
|
let t = [];
|
|
198
198
|
for (let l = 0; l < be.value; l += 1) {
|
|
199
199
|
const a = Math.min(...q.value.flatMap((p) => p.series.map((B) => B.values[l] || 0) || 0)), o = Math.max(...q.value.flatMap((p) => p.series.map((B) => B.values[l] || 0) || 0)), n = o === a ? a / 4 : a, s = o === a ? o * 2 : o, r = st(n, s, e.value.style.chart.yAxis.scaleTicks), A = r.ticks.map((p, B) => {
|
|
@@ -324,12 +324,12 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
324
324
|
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = ke.value.head, a = ke.value.body, o = t.concat([l]).concat(a), n = ct(o);
|
|
325
325
|
vt({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
|
|
326
326
|
}
|
|
327
|
-
const
|
|
327
|
+
const $e = Se;
|
|
328
328
|
function Be(t) {
|
|
329
|
-
|
|
329
|
+
$e("selectDatapoint", t);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
331
|
+
function Ce(t) {
|
|
332
|
+
$e("selectLegend", {
|
|
333
333
|
...t,
|
|
334
334
|
isSegregated: !t.isSegregated,
|
|
335
335
|
opacity: t.isSegregated ? 1 : 0.5
|
|
@@ -501,7 +501,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
501
501
|
viewBox: `0 0 ${c.value.chartWidth <= 0 ? 10 : c.value.chartWidth} ${c.value.chartHeight <= 0 ? 10 : c.value.chartHeight}`,
|
|
502
502
|
style: T(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
503
503
|
}, [
|
|
504
|
-
Me(
|
|
504
|
+
Me(Ct),
|
|
505
505
|
t.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
506
506
|
key: 0,
|
|
507
507
|
x: c.value.left,
|
|
@@ -514,7 +514,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
514
514
|
}, [
|
|
515
515
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
516
516
|
], 8, Ft)) : m("", !0),
|
|
517
|
-
(u(!0), i(
|
|
517
|
+
(u(!0), i($, null, I(g.value, (a, o) => (u(), i("g", Pt, [
|
|
518
518
|
F("line", {
|
|
519
519
|
x1: c.value.left + w.value * o + w.value / 2,
|
|
520
520
|
x2: c.value.left + w.value * o + w.value / 2,
|
|
@@ -531,8 +531,8 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
531
531
|
"font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
|
|
532
532
|
"text-anchor": "middle"
|
|
533
533
|
}, R(a.name), 9, Ot),
|
|
534
|
-
e.value.style.chart.yAxis.labels.ticks.show ? (u(), i(
|
|
535
|
-
(u(!0), i(
|
|
534
|
+
e.value.style.chart.yAxis.labels.ticks.show ? (u(), i($, { key: 0 }, [
|
|
535
|
+
(u(!0), i($, null, I(a.ticks, (n) => (u(), i("line", {
|
|
536
536
|
x1: n.x,
|
|
537
537
|
x2: n.x - 10,
|
|
538
538
|
y1: n.y,
|
|
@@ -541,7 +541,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
541
541
|
"stroke-width": e.value.style.chart.yAxis.strokeWidth,
|
|
542
542
|
style: T(`opacity:${y.value && !h.value.showTooltip ? 0.2 : 1}`)
|
|
543
543
|
}, null, 12, Lt))), 256)),
|
|
544
|
-
(u(!0), i(
|
|
544
|
+
(u(!0), i($, null, I(a.ticks, (n) => (u(), i("text", {
|
|
545
545
|
x: n.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
|
|
546
546
|
y: n.y + e.value.style.chart.yAxis.labels.ticks.offsetY + d.value.ticksFontSize / 3,
|
|
547
547
|
fill: e.value.style.chart.yAxis.labels.ticks.color,
|
|
@@ -552,10 +552,10 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
552
552
|
}, R(xe({ value: n.value, index: o, datapoint: n })), 13, St))), 256))
|
|
553
553
|
], 64)) : m("", !0)
|
|
554
554
|
]))), 256)),
|
|
555
|
-
(u(!0), i(
|
|
556
|
-
(u(!0), i(
|
|
555
|
+
(u(!0), i($, null, I(J.value, (a) => (u(), i("g", null, [
|
|
556
|
+
(u(!0), i($, null, I(a.series, (o, n) => (u(), i("g", null, [
|
|
557
557
|
e.value.style.chart.plots.show ? (u(), i("g", Dt, [
|
|
558
|
-
(u(!0), i(
|
|
558
|
+
(u(!0), i($, null, I(o.datapoints, (s) => (u(), z(gt, {
|
|
559
559
|
plot: { x: s.x, y: s.y },
|
|
560
560
|
color: a.color,
|
|
561
561
|
shape: a.shape,
|
|
@@ -575,7 +575,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
575
575
|
style: T(`opacity:${y.value ? y.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
|
|
576
576
|
onClick: () => Be(s)
|
|
577
577
|
}, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "style", "onClick"]))), 256)),
|
|
578
|
-
h.value.showTooltip ? m("", !0) : (u(), i(
|
|
578
|
+
h.value.showTooltip ? m("", !0) : (u(), i($, { key: 0 }, [
|
|
579
579
|
y.value && y.value === o.id && o.datapoints.length ? (u(), i("text", {
|
|
580
580
|
key: 0,
|
|
581
581
|
x: o.datapoints[0].x - d.value.ticksFontSize,
|
|
@@ -586,7 +586,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
586
586
|
"font-weight": "bold"
|
|
587
587
|
}, R(o.name), 9, Rt)) : m("", !0)
|
|
588
588
|
], 64)),
|
|
589
|
-
e.value.style.chart.comments.show ? (u(!0), i(
|
|
589
|
+
e.value.style.chart.comments.show ? (u(!0), i($, { key: 1 }, I(o.datapoints, (s) => (u(), i("g", null, [
|
|
590
590
|
s.comment ? (u(), i("foreignObject", {
|
|
591
591
|
key: 0,
|
|
592
592
|
style: { overflow: "visible" },
|
|
@@ -603,7 +603,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
603
603
|
], 8, Ut)) : m("", !0)
|
|
604
604
|
]))), 256)) : m("", !0)
|
|
605
605
|
])) : m("", !0),
|
|
606
|
-
h.value.dataLabels.show || y.value && y.value === o.id ? (u(!0), i(
|
|
606
|
+
h.value.dataLabels.show || y.value && y.value === o.id ? (u(!0), i($, { key: 1 }, I(o.datapoints, (s, r) => (u(), i("text", {
|
|
607
607
|
x: s.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
|
|
608
608
|
y: s.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + d.value.datapointFontSize / 3,
|
|
609
609
|
fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
|
|
@@ -667,7 +667,7 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
667
667
|
t.$slots.watermark ? (u(), i("div", Bt, [
|
|
668
668
|
f(t.$slots, "watermark", S(D({ isPrinting: x(pe) || x(me) })), void 0, !0)
|
|
669
669
|
])) : m("", !0),
|
|
670
|
-
P.value ? m("", !0) : (u(), z(
|
|
670
|
+
P.value ? m("", !0) : (u(), z($t, {
|
|
671
671
|
key: 6,
|
|
672
672
|
config: {
|
|
673
673
|
type: "parallelCoordinatePlot",
|
|
@@ -685,15 +685,15 @@ const zt = ["id"], It = ["xmlns", "viewBox"], Ft = ["x", "y", "width", "height"]
|
|
|
685
685
|
legendSet: Ee.value,
|
|
686
686
|
config: Ve.value,
|
|
687
687
|
onClickMarker: l[4] || (l[4] = ({ legend: a }) => {
|
|
688
|
-
ge(a.id),
|
|
688
|
+
ge(a.id), Ce(a);
|
|
689
689
|
})
|
|
690
690
|
}, {
|
|
691
691
|
item: k(({ legend: a, index: o }) => [
|
|
692
692
|
F("div", {
|
|
693
693
|
onClick: (n) => {
|
|
694
|
-
a.segregate(),
|
|
694
|
+
a.segregate(), Ce(a);
|
|
695
695
|
},
|
|
696
|
-
style: T(`opacity:${
|
|
696
|
+
style: T(`opacity:${C.value.includes(a.id) ? 0.5 : 1}`)
|
|
697
697
|
}, R(a.name), 13, Ht)
|
|
698
698
|
]),
|
|
699
699
|
_: 1
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-MIJJ8liG.cjs"),ce=require("./useResponsive-DQmBAoBf.cjs"),Se=require("./Title-C5w8bVlo.cjs"),ze=require("./Legend-Bhl2d6oj.cjs"),Ne=require("./Tooltip-Dbe23pmt.cjs"),Ae=require("./Shape-wMij_bxG.cjs"),de=require("./usePrinter-U1x-RAEA.cjs"),Te=require("./DataTable-c3nDhwbO.cjs"),Pe=require("./vue-ui-accordion-cBSqrYy3.cjs"),Fe=require("./vue-ui-skeleton-DOE444ST.cjs"),ve=require("./useNestedProp-DwR4JSzw.cjs"),Me=require("./PackageVersion-DFYAej2o.cjs"),_e=require("./PenAndPaper-CAqWCUZx.cjs"),Ie=require("./useUserOptionState-BgepsfED.cjs"),Ee=require("./useChartAccessibility-Cm7nkzTG.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ve=["id"],Oe=["xmlns","viewBox"],De=["x","y","width","height"],qe={style:{"pointer-events":"none"}},Re=["x1","x2","y1","y2","stroke","stroke-width"],Ue=["x","y","fill","font-size","font-weight"],We=["x1","x2","y1","y2","stroke","stroke-width"],je=["x","y","fill","font-size","font-weight"],He={key:0},Ge=["x","y","font-size","fill"],Ye=["width","x","y"],Xe={style:{width:"100%"}},Je=["x","y","fill","font-weight","font-size","onMouseenter"],Ke=["d","stroke","stroke-width","onMouseenter"],Qe=["d","onMouseenter"],Ze={key:5,class:"vue-data-ui-watermark"},et=["onClick"],tt=["innerHTML"],lt={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(pe,{expose:he,emit:me}){const{vue_ui_parallel_coordinate_plot:ye}=i.useConfig(),b=pe,x=e.computed({get(){return!!b.dataset&&b.dataset.length},set(l){return l}}),L=e.ref(0),$=e.ref(null),V=e.ref(null),O=e.ref(null),D=e.ref(null),q=e.ref(null),R=e.ref(0),U=e.ref(0),W=e.ref(0),T=e.ref(i.createUid()),C=e.ref(!1);function fe(l){C.value=l,L.value+=1}const t=e.computed({get:()=>Y(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:j,keepUserOptionState:H}=Ie.useUserOptionState({config:t.value}),{svgRef:G}=Ee.useChartAccessibility({config:t.value.style.chart.title});function Y(){const l=ve.useNestedProp({userConfig:b.config,defaultConfig:ye});return l.theme?{...ve.useNestedProp({userConfig:i.themes.vue_ui_parallel_coordinate_plot[l.theme]||b.config,defaultConfig:l}),customPalette:i.themePalettes[l.theme]||i.palette}:l}e.watch(()=>b.config,l=>{t.value=Y(),P.value=!t.value.userOptions.showOnChartHover,X(),R.value+=1,W.value+=1,U.value+=1,v.value.dataLabels.show=t.value.style.chart.yAxis.labels.datapoints.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const S=e.ref(null);e.onMounted(()=>{X()});function X(){if(i.objectIsEmpty(b.dataset)?i.error({componentName:"VueUiParallelCoordinatePlot",type:"dataset"}):b.dataset.forEach((l,o)=>{i.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{x.value=!1,i.error({componentName:"VueUiParallelCoordinatePlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=ce.throttle(()=>{const{width:o,height:a}=ce.useResponsive({chart:$.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:D.value,noTitle:q.value});requestAnimationFrame(()=>{d.value.width=o,d.value.height=a,d.value.plotSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),d.value.ticksFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),d.value.datapointFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),d.value.axisNameFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})})});S.value=new ResizeObserver(l),S.value.observe($.value.parentNode)}}e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=de.usePrinter({elementId:`pcp_${T.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot",options:t.value.userOptions.print}),ge=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),d=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width,plotSize:t.value.style.chart.plots.radius,ticksFontSize:t.value.style.chart.yAxis.labels.ticks.fontSize,datapointFontSize:t.value.style.chart.yAxis.labels.datapoints.fontSize,axisNameFontSize:t.value.style.chart.yAxis.labels.axisNamesFontSize}),c=e.computed(()=>{const{top:l,right:o,bottom:a,left:n}=t.value.style.chart.padding,r=d.value.height,s=d.value.width;return{chartHeight:r,chartWidth:s,height:r-l-a,width:s-n-o,top:l,left:n,right:s-o,bottom:r-a}}),be=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.yAxis.labels.datapoints.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),f=e.ref([]);function ee(l){f.value.includes(l)?f.value=f.value.filter(o=>o!==l):f.value.push(l)}const k=e.computed(()=>b.dataset.map((l,o)=>{const a=i.convertColorToHex(l.color)||be.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...l,series:l.series.map(n=>({...n,id:i.createUid(),color:a})),seriesIndex:o,color:a,id:i.createUid(),shape:l.shape||"circle"}})),ke=e.computed(()=>k.value.map(l=>({...l,opacity:f.value.includes(l.id)?.5:1,segregate:()=>ee(l.id),isSegregated:f.value.includes(l.id)}))),xe=e.computed(()=>({cy:"pcp-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),te=e.computed(()=>Math.max(...k.value.filter(l=>!f.value.includes(l.id)).map(l=>Math.max(...l.series.flatMap(o=>o.values.length))))),y=e.computed(()=>c.value.width/te.value),F=e.computed(()=>k.value.filter(l=>!f.value.includes(l.id))),m=e.computed(()=>{let l=[];for(let o=0;o<te.value;o+=1){const a=Math.min(...F.value.flatMap(p=>p.series.map(A=>A.values[o]||0)||0)),n=Math.max(...F.value.flatMap(p=>p.series.map(A=>A.values[o]||0)||0)),r=n===a?a/4:a,s=n===a?n*2:n,u=i.calculateNiceScale(r,s,t.value.style.chart.yAxis.scaleTicks),g=u.ticks.map((p,A)=>{const Be=u.min<0?p+Math.abs(u.min):p-Math.abs(u.min),$e=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:c.value.bottom-c.value.height*(Be/$e),x:c.value.left+y.value*o+y.value/2,value:p}});l.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return l}),M=e.computed(()=>F.value.map((l,o)=>({...l,series:l.series.map((a,n)=>({...a,datapoints:a.values.map((r,s)=>{const u=m.value[s].scale.min<0?(r||0)+Math.abs(m.value[s].scale.min):(r||0)-Math.abs(m.value[s].scale.min),g=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);return{name:a.name,seriesName:l.name,axisIndex:s,datapointIndex:n,seriesIndex:o,value:r||0,x:c.value.left+y.value*s+y.value/2,y:c.value.bottom-c.value.height*(u/g),comment:a.comments&&a.comments[s]||""}})}))})).map(l=>({...l,series:l.series.map(o=>{const a=i.createStraightPath(o.datapoints),n=i.createSmoothPath(o.datapoints),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${n}`:`M ${a}`);return{...o,smoothPath:n,straightPath:a,pathLength:r}})})));function le({value:l,index:o,datapoint:a}){return i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[o]||null,l,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[o]||"",v:l,s:t.value.style.chart.yAxis.labels.suffixes[o]||"",r:t.value.style.chart.yAxis.labels.roundings[o]||0}),{datapoint:a,seriesIndex:o})}const h=e.ref(null),_=e.ref(null),w=e.ref(!1),I=e.ref("");function z({shape:l,serieName:o,serie:a,relativeIndex:n,seriesIndex:r}){_.value={serie:a,relativeIndex:n,seriesIndex:r,series:k.value,scales:m.value},w.value=!0,h.value=a.id;let s="";const u=t.value.style.chart.tooltip.customFormat;i.isFunction(u)&&i.functionReturnsString(()=>u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:m.value}))?I.value=u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:m.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o?o+" - ":""}${a.name}</div>`,m.value.map(g=>g.name).forEach((g,p)=>{s+=`
|
|
2
|
+
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
3
|
+
<span>${g}: </span>
|
|
4
|
+
<span>
|
|
5
|
+
${i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[p]||null,a.datapoints[p].value,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[p]||"",v:a.datapoints[p].value,s:t.value.style.chart.yAxis.labels.suffixes[p]||"",r:t.value.style.chart.yAxis.labels.roundings[p]||""}),{datapoint:a.datapoints[p],seriesIndex:p})}
|
|
6
|
+
</span>
|
|
7
|
+
</div>
|
|
8
|
+
`,t.value.style.chart.comments.showInTooltip&&a.datapoints[p].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[p].comment}</div>`)}),I.value=`<div>${s}</div>`)}function Ce(){return k.value}const B=e.computed(()=>{const l=[t.value.table.columnNames.series].concat([t.value.table.columnNames.item]).concat(m.value.map(r=>r.name)),o=M.value.flatMap((r,s)=>r.series.map(u=>[r.name].concat([u.name]).concat(u.values))),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},n=[t.value.table.columnNames.series].concat([t.value.table.columnNames.item]).concat(m.value.map(r=>r.name));return{body:o,head:l,config:a,colNames:n}}),ae=e.computed(()=>M.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:B.value.head,body:B.value.body});function oe(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=ae.value.head,a=ae.value.body,n=l.concat([o]).concat(a),r=i.createCsvContent(n);i.downloadCsv({csvContent:r,title:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"})}const ne=me;function we(l){ne("selectDatapoint",l)}function se(l){ne("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function re(){v.value.showTable=!v.value.showTable}function ie(){v.value.dataLabels.show=!v.value.dataLabels.show}function ue(){v.value.showTooltip=!v.value.showTooltip}const N=e.ref(!1);function E(){N.value=!N.value}return he({getData:Ce,generateCsv:oe,generatePdf:Q,generateImage:Z,toggleTable:re,toggleLabels:ie,toggleTooltip:ue,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"pcpChart",ref:$,class:e.normalizeClass(`vue-ui-pcp ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`pcp_${T.value}`,onMouseenter:o[6]||(o[6]=()=>e.unref(j)(!0)),onMouseleave:o[7]||(o[7]=()=>e.unref(j)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e._sfc_main,{key:0,svgRef:e.unref(G),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:N.value,onClose:E},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ge.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:V,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Se._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"pcp-div-title",...t.value.style.chart.title},subtitle:{cy:"pcp-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value&&(e.unref(H)||e.unref(P))?(e.openBlock(),e.createBlock(de.UserOptions,{ref:"details",key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(J),isImaging:e.unref(K),uid:T.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:C.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:N.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(Q),onGenerateCsv:oe,onGenerateImage:e.unref(Z),onToggleTable:re,onToggleLabels:ie,onToggleTooltip:ue,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(H)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:n})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:n})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(i.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${c.value.chartWidth<=0?10:c.value.chartWidth} ${c.value.chartHeight<=0?10:c.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:c.value.left,y:c.value.top,width:c.value.width,height:c.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("g",qe,[e.createElementVNode("line",{x1:c.value.left+y.value*n+y.value/2,x2:c.value.left+y.value*n+y.value/2,y1:c.value.top,y2:c.value.bottom,stroke:t.value.style.chart.yAxis.stroke,"stroke-width":t.value.style.chart.yAxis.strokeWidth},null,8,Re),e.createElementVNode("text",{x:c.value.left+y.value*n+y.value/2,y:c.value.top-24,fill:t.value.style.chart.yAxis.labels.axisNamesColor,"font-size":d.value.axisNameFontSize,"font-weight":t.value.style.chart.yAxis.labels.axisNamesBold?"bold":"","text-anchor":"middle"},e.toDisplayString(a.name),9,Ue),t.value.style.chart.yAxis.labels.ticks.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.ticks,r=>(e.openBlock(),e.createElementBlock("line",{x1:r.x,x2:r.x-10,y1:r.y,y2:r.y,stroke:t.value.style.chart.yAxis.stroke,"stroke-width":t.value.style.chart.yAxis.strokeWidth,style:e.normalizeStyle(`opacity:${h.value&&!v.value.showTooltip?.2:1}`)},null,12,We))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.ticks,r=>(e.openBlock(),e.createElementBlock("text",{x:r.x-12+t.value.style.chart.yAxis.labels.ticks.offsetX,y:r.y+t.value.style.chart.yAxis.labels.ticks.offsetY+d.value.ticksFontSize/3,fill:t.value.style.chart.yAxis.labels.ticks.color,"text-anchor":"end","font-size":d.value.ticksFontSize,"font-weight":t.value.style.chart.yAxis.labels.ticks.bold?"bold":"normal",style:e.normalizeStyle(`opacity:${h.value&&!v.value.showTooltip?.2:1}`)},e.toDisplayString(le({value:r.value,index:n,datapoint:r})),13,je))),256))],64)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.series,(n,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.plots.show?(e.openBlock(),e.createElementBlock("g",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.datapoints,s=>(e.openBlock(),e.createBlock(Ae._sfc_main,{plot:{x:s.x,y:s.y},color:a.color,shape:a.shape,radius:a.shape==="triangle"?d.value.plotSize*1.2:d.value.plotSize,stroke:t.value.style.chart.backgroundColor,strokeWidth:.5,onMouseenter:u=>z({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[0]||(o[0]=u=>{h.value=null,w.value=!1}),style:e.normalizeStyle(`opacity:${h.value?h.value===n.id?t.value.style.chart.plots.opacity:.2:t.value.style.chart.plots.opacity}`),onClick:()=>we(s)},null,8,["plot","color","shape","radius","stroke","onMouseenter","style","onClick"]))),256)),v.value.showTooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h.value&&h.value===n.id&&n.datapoints.length?(e.openBlock(),e.createElementBlock("text",{key:0,x:n.datapoints[0].x-d.value.ticksFontSize,y:n.datapoints[0].y+d.value.ticksFontSize/3,"text-anchor":"end","font-size":d.value.ticksFontSize,fill:a.color,"font-weight":"bold"},e.toDisplayString(n.name),9,Ge)):e.createCommentVNode("",!0)],64)),t.value.style.chart.comments.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.datapoints,s=>(e.openBlock(),e.createElementBlock("g",null,[s.comment?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,style:{overflow:"visible"},height:"12",width:t.value.style.chart.comments.width,x:s.x-t.value.style.chart.comments.width/2+t.value.style.chart.comments.offsetX,y:s.y+t.value.style.chart.comments.offsetY+6},[e.createElementVNode("div",Xe,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color}},void 0,!0)])],8,Ye)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),v.value.dataLabels.show||h.value&&h.value===n.id?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.datapoints,(s,u)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+12+t.value.style.chart.yAxis.labels.datapoints.offsetX,y:s.y+t.value.style.chart.yAxis.labels.datapoints.offsetY+d.value.datapointFontSize/3,fill:t.value.style.chart.yAxis.labels.datapoints.useSerieColor?a.color:t.value.style.chart.yAxis.labels.datapoints.color,"text-anchor":"start","font-weight":t.value.style.chart.yAxis.labels.datapoints.bold?"bold":"normal",class:e.normalizeClass({"vue-ui-pcp-animated":!1,"vue-ui-pcp-transition":!0}),"font-size":d.value.datapointFontSize,onMouseenter:g=>z({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[1]||(o[1]=g=>{h.value=null,w.value=!1}),style:e.normalizeStyle(`opacity:${h.value?h.value===n.id?1:.2:1}`)},e.toDisplayString(le({value:s.value,index:u,datapoint:s})),45,Je))),256)):e.createCommentVNode("",!0),e.createElementVNode("path",{d:`M${t.value.style.chart.lines.smooth?n.smoothPath:n.straightPath}`,stroke:a.color,"stroke-width":t.value.style.chart.lines.strokeWidth,fill:"none",class:e.normalizeClass({"vue-ui-pcp-animated vue-data-ui-line-animated":t.value.useCssAnimation,"vue-ui-pcp-transition":!0}),onMouseenter:s=>z({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[2]||(o[2]=s=>{h.value=null,w.value=!1}),style:e.normalizeStyle(`opacity:${h.value?h.value===n.id?t.value.style.chart.lines.opacity:.2:t.value.style.chart.lines.opacity}; stroke-dasharray:${n.pathLength}; stroke-dashoffset: ${t.value.useCssAnimation?n.pathLength:0}`)},null,46,Ke),v.value.showTooltip?(e.openBlock(),e.createElementBlock("path",{key:2,d:`M${t.value.style.chart.lines.smooth?n.smoothPath:n.straightPath}`,stroke:"transparent","stroke-width":12,fill:"none",class:e.normalizeClass({"vue-ui-pcp-animated vue-data-ui-line-animated":t.value.useCssAnimation,"vue-ui-pcp-transition":!0}),onMouseenter:s=>z({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[3]||(o[3]=s=>{h.value=null,w.value=!1}),style:{opacity:"0"}},null,42,Qe)):e.createCommentVNode("",!0)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:c.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(K)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe.default,{key:6,config:{type:"parallelCoordinatePlot",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show&&x.value?(e.openBlock(),e.createBlock(ze.Legend,{key:`legend_${U.value}`,legendSet:ke.value,config:xe.value,onClickMarker:o[4]||(o[4]=({legend:a})=>{ee(a.id),se(a)})},{item:e.withCtx(({legend:a,index:n})=>[e.createElementVNode("div",{onClick:r=>{a.segregate(),se(a)},style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,et)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ne._sfc_main,{show:v.value.showTooltip&&w.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:I.value,isFullscreen:C.value,isCustom:e.unref(i.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({..._.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),x.value?(e.openBlock(),e.createBlock(Pe.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${W.value}`,colNames:B.value.colNames,head:B.value.head,body:B.value.body,config:B.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[5]||(o[5]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,tt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ve))}},at=Le._export_sfc(lt,[["__scopeId","data-v-948523ee"]]);exports.default=at;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { computed as g, ref as y, watch as
|
|
2
|
-
import { u as it, c as He, t as vt, p as de, a as dt, o as ct, e as I, b as ht, d as yt, V as bt, i as O, f as V, X as ft, s as ae, w as pt, W as gt, G as mt, q as xt, r as $t, x as kt, y as Lt } from "./index-
|
|
1
|
+
import { computed as g, ref as y, watch as Pe, onMounted as ut, onBeforeUnmount as ot, createElementBlock as n, openBlock as o, unref as h, normalizeStyle as q, normalizeClass as T, createBlock as N, createCommentVNode as c, createElementVNode as d, createVNode as ve, createSlots as st, withCtx as m, renderSlot as x, normalizeProps as P, guardReactiveProps as H, Fragment as C, renderList as Y, toDisplayString as L, createTextVNode as rt, nextTick as nt } from "vue";
|
|
2
|
+
import { u as it, c as He, t as vt, p as de, a as dt, o as ct, e as I, b as ht, d as yt, V as bt, i as O, f as V, X as ft, s as ae, w as pt, W as gt, G as mt, q as xt, r as $t, x as kt, y as Lt } from "./index-D3VntmA9.js";
|
|
3
3
|
import { t as wt, u as qt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as _t } from "./Title-
|
|
5
|
-
import { u as Ct, U as St } from "./usePrinter-
|
|
6
|
-
import { _ as zt } from "./Tooltip-
|
|
7
|
-
import { _ as Ie } from "./Shape-
|
|
8
|
-
import { L as Tt } from "./Legend-
|
|
9
|
-
import { D as Wt } from "./DataTable-
|
|
10
|
-
import Xt from "./vue-ui-skeleton-
|
|
11
|
-
import Yt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ue } from "./useNestedProp-
|
|
13
|
-
import { _ as At } from "./PackageVersion-
|
|
14
|
-
import {
|
|
4
|
+
import { _ as _t } from "./Title-UjBqdYyD.js";
|
|
5
|
+
import { u as Ct, U as St } from "./usePrinter-H3tAjGXs.js";
|
|
6
|
+
import { _ as zt } from "./Tooltip-3NNIdJ6N.js";
|
|
7
|
+
import { _ as Ie } from "./Shape-D9MuIPm8.js";
|
|
8
|
+
import { L as Tt } from "./Legend-CIjMjfNk.js";
|
|
9
|
+
import { D as Wt } from "./DataTable-DOKlm7k4.js";
|
|
10
|
+
import Xt from "./vue-ui-skeleton-pHcbvN3-.js";
|
|
11
|
+
import Yt from "./vue-ui-accordion-DGJQIcdB.js";
|
|
12
|
+
import { u as Ue } from "./useNestedProp-DTlOqz2P.js";
|
|
13
|
+
import { _ as At } from "./PackageVersion-BCLALL_i.js";
|
|
14
|
+
import { _ as Mt } from "./PenAndPaper-CZs431Nx.js";
|
|
15
15
|
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { u as Ot } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const
|
|
18
|
+
const Rt = ["id"], Bt = ["xmlns", "viewBox", "id"], Ft = ["x", "y", "width", "height"], Pt = ["id"], Ht = ["stop-color"], It = ["stop-color"], Ut = { key: 1 }, Dt = ["fill", "x", "y", "height", "width", "stroke-width", "stroke", "rx"], Et = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qt = { key: 2 }, Jt = ["points", "fill"], jt = ["points", "fill"], Zt = ["points", "fill"], Kt = ["points", "fill"], el = { key: 3 }, tl = ["y", "fill", "font-size"], ll = ["x", "y", "fill", "font-size"], al = ["x", "y", "fill", "font-size"], ul = ["y", "fill", "font-size"], ol = { key: 4 }, sl = ["x", "y", "font-size", "fill"], rl = ["x", "y", "font-size", "fill"], nl = ["x", "y", "font-size", "fill"], il = ["id", "font-size", "transform", "fill"], vl = ["id", "font-size", "transform", "fill"], dl = ["id", "font-size", "transform", "fill"], cl = { key: 5 }, hl = ["fill", "points"], yl = ["x", "y", "width", "height"], bl = ["x", "y", "width", "height"], fl = ["x", "y", "width", "height"], pl = ["x", "y", "width", "height"], gl = {
|
|
19
19
|
key: 0,
|
|
20
20
|
style: { "pointer-events": "none" }
|
|
21
21
|
}, ml = ["x", "y", "font-size", "fill"], xl = { key: 0 }, $l = ["x", "y", "onMouseover", "onClick"], kl = {
|
|
@@ -29,7 +29,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
29
29
|
height: "14",
|
|
30
30
|
width: "14",
|
|
31
31
|
viewBox: "0 0 20 20"
|
|
32
|
-
},
|
|
32
|
+
}, Rl = ["innerHTML"], Bl = {
|
|
33
33
|
__name: "vue-ui-quadrant",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -64,7 +64,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
64
64
|
customPalette: vt[l.theme] || de
|
|
65
65
|
} : l;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
Pe(() => W.config, (l) => {
|
|
68
68
|
t.value = Le(), se.value = !t.value.userOptions.showOnChartHover, we(), pe.value += 1, ge.value += 1, me.value += 1, $.value.plotLabels.show = t.value.style.chart.layout.labels.plotLabels.show, $.value.showTable = t.value.table.show, $.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
69
69
|
}, { deep: !0 });
|
|
70
70
|
const Z = y(null);
|
|
@@ -140,14 +140,14 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
140
140
|
startX: 0,
|
|
141
141
|
startY: 0
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
Pe(() => e.value, (l) => {
|
|
144
144
|
l && (i.value = {
|
|
145
145
|
...JSON.parse(JSON.stringify(e.value)),
|
|
146
146
|
startX: 0,
|
|
147
147
|
startY: 0
|
|
148
148
|
});
|
|
149
149
|
}, { deep: !0 });
|
|
150
|
-
const v = y(null),
|
|
150
|
+
const v = y(null), R = g(() => {
|
|
151
151
|
switch (v.value) {
|
|
152
152
|
case "TL":
|
|
153
153
|
return {
|
|
@@ -198,10 +198,10 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
198
198
|
h: s - i.value.height
|
|
199
199
|
}, f = t.value.zoomAnimationFrames;
|
|
200
200
|
let X = 0;
|
|
201
|
-
function
|
|
202
|
-
K.value = !0, i.value.startX += b.x / f, i.value.startY += b.y / f, i.value.width += b.w / f, i.value.height += b.h / f, X += 1, X < f ? Ze.value = requestAnimationFrame(
|
|
201
|
+
function Fe() {
|
|
202
|
+
K.value = !0, i.value.startX += b.x / f, i.value.startY += b.y / f, i.value.width += b.w / f, i.value.height += b.h / f, X += 1, X < f ? Ze.value = requestAnimationFrame(Fe) : K.value = !1;
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
Fe();
|
|
205
205
|
}
|
|
206
206
|
function A(l) {
|
|
207
207
|
if (!K.value)
|
|
@@ -270,7 +270,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
270
270
|
return s;
|
|
271
271
|
}), _ = g(() => {
|
|
272
272
|
let l = t.value.style.chart.layout.grid.xAxis.max, u = t.value.style.chart.layout.grid.xAxis.min, a = t.value.style.chart.layout.grid.yAxis.max, s = t.value.style.chart.layout.grid.yAxis.min;
|
|
273
|
-
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...
|
|
273
|
+
return t.value.style.chart.layout.grid.xAxis.auto && (l = Math.max(...B.value.flatMap((r) => r.series.map((b) => b.x))), u = Math.min(...B.value.flatMap((r) => r.series.map((b) => b.x)))), t.value.style.chart.layout.grid.yAxis.auto && (a = Math.max(...B.value.flatMap((r) => r.series.map((b) => b.y))), s = Math.min(...B.value.flatMap((r) => r.series.map((b) => b.y)))), {
|
|
274
274
|
x: {
|
|
275
275
|
max: l,
|
|
276
276
|
min: u
|
|
@@ -280,7 +280,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
280
280
|
min: s
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
}), M = y([]),
|
|
283
|
+
}), M = y([]), B = g(() => W.dataset.map((l, u) => ({
|
|
284
284
|
...l,
|
|
285
285
|
series: bt({
|
|
286
286
|
data: l.series,
|
|
@@ -288,7 +288,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
288
288
|
}),
|
|
289
289
|
id: `cat_${u}_${z.value}`,
|
|
290
290
|
color: yt(l.color) || ze.value[u] || de[u]
|
|
291
|
-
}))), et = g(() =>
|
|
291
|
+
}))), et = g(() => B.value.filter((l) => !M.value.includes(l.id))), tt = g(() => B.value.map((l, u) => ({
|
|
292
292
|
...l,
|
|
293
293
|
shape: l.shape || "circle",
|
|
294
294
|
series: l.series.map((a) => ({
|
|
@@ -640,17 +640,17 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
640
640
|
$t({ csvContent: r, title: t.value.style.chart.title.text || "vue-ui-quadrant" });
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
const
|
|
643
|
+
const F = y(!1);
|
|
644
644
|
function at(l) {
|
|
645
|
-
|
|
645
|
+
F.value = l, ce.value += 1;
|
|
646
646
|
}
|
|
647
647
|
function Ve() {
|
|
648
648
|
$.value.showTable = !$.value.showTable;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Re() {
|
|
651
651
|
$.value.plotLabels.show = !$.value.plotLabels.show;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Be() {
|
|
654
654
|
$.value.showTooltip = !$.value.showTooltip;
|
|
655
655
|
}
|
|
656
656
|
const le = y(!1);
|
|
@@ -663,11 +663,11 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
663
663
|
generateCsv: Oe,
|
|
664
664
|
generateImage: Se,
|
|
665
665
|
toggleTable: Ve,
|
|
666
|
-
toggleLabels:
|
|
667
|
-
toggleTooltip:
|
|
666
|
+
toggleLabels: Re,
|
|
667
|
+
toggleTooltip: Be,
|
|
668
668
|
toggleAnnotator: ie
|
|
669
669
|
}), (l, u) => (o(), n("div", {
|
|
670
|
-
class: T(`vue-ui-quadrant ${
|
|
670
|
+
class: T(`vue-ui-quadrant ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
671
671
|
ref_key: "quadrantChart",
|
|
672
672
|
ref: U,
|
|
673
673
|
id: `vue-ui-quadrant_${z.value}`,
|
|
@@ -726,7 +726,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
726
726
|
hasTable: t.value.userOptions.buttons.table,
|
|
727
727
|
hasLabel: t.value.userOptions.buttons.labels,
|
|
728
728
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
729
|
-
isFullscreen:
|
|
729
|
+
isFullscreen: F.value,
|
|
730
730
|
isTooltip: $.value.showTooltip,
|
|
731
731
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
732
732
|
chartElement: U.value,
|
|
@@ -738,8 +738,8 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
738
738
|
onGenerateCsv: Oe,
|
|
739
739
|
onGenerateImage: h(Se),
|
|
740
740
|
onToggleTable: Ve,
|
|
741
|
-
onToggleLabels:
|
|
742
|
-
onToggleTooltip:
|
|
741
|
+
onToggleLabels: Re,
|
|
742
|
+
onToggleTooltip: Be,
|
|
743
743
|
onToggleAnnotator: ie,
|
|
744
744
|
style: q({
|
|
745
745
|
visibility: h($e) ? h(se) ? "visible" : "hidden" : "visible"
|
|
@@ -748,7 +748,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
748
748
|
l.$slots.menuIcon ? {
|
|
749
749
|
name: "menuIcon",
|
|
750
750
|
fn: m(({ isOpen: a, color: s }) => [
|
|
751
|
-
x(l.$slots, "menuIcon",
|
|
751
|
+
x(l.$slots, "menuIcon", P(H({ isOpen: a, color: s })), void 0, !0)
|
|
752
752
|
]),
|
|
753
753
|
key: "0"
|
|
754
754
|
} : void 0,
|
|
@@ -797,14 +797,14 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
797
797
|
l.$slots.optionFullscreen ? {
|
|
798
798
|
name: "optionFullscreen",
|
|
799
799
|
fn: m(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
800
|
-
x(l.$slots, "optionFullscreen",
|
|
800
|
+
x(l.$slots, "optionFullscreen", P(H({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
801
801
|
]),
|
|
802
802
|
key: "7"
|
|
803
803
|
} : void 0,
|
|
804
804
|
l.$slots.optionAnnotator ? {
|
|
805
805
|
name: "optionAnnotator",
|
|
806
806
|
fn: m(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
807
|
-
x(l.$slots, "optionAnnotator",
|
|
807
|
+
x(l.$slots, "optionAnnotator", P(H({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
808
808
|
]),
|
|
809
809
|
key: "8"
|
|
810
810
|
} : void 0
|
|
@@ -814,7 +814,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
814
814
|
ref_key: "svgRef",
|
|
815
815
|
ref: ke,
|
|
816
816
|
xmlns: h(ft),
|
|
817
|
-
class: T({ "vue-data-ui-fullscreen--on":
|
|
817
|
+
class: T({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
818
818
|
viewBox: `${i.value.startX} ${i.value.startY} ${i.value.width} ${i.value.height}`,
|
|
819
819
|
style: q(`max-width:100%;overflow:${p.value ? "hidden" : "visible"};background:transparent;color:${t.value.style.chart.color}`),
|
|
820
820
|
id: `svg_${z.value}`
|
|
@@ -831,7 +831,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
831
831
|
}
|
|
832
832
|
}, [
|
|
833
833
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
834
|
-
], 8,
|
|
834
|
+
], 8, Ft)) : c("", !0),
|
|
835
835
|
d("defs", null, [
|
|
836
836
|
(o(!0), n(C, null, Y(S.value, (a, s) => (o(), n("radialGradient", {
|
|
837
837
|
cx: "50%",
|
|
@@ -849,7 +849,7 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
849
849
|
offset: "100%",
|
|
850
850
|
"stop-color": h(ae)(a.color, t.value.style.chart.layout.areas.opacity)
|
|
851
851
|
}, null, 8, It)
|
|
852
|
-
], 8,
|
|
852
|
+
], 8, Pt))), 256))
|
|
853
853
|
]),
|
|
854
854
|
t.value.style.chart.layout.grid.graduations.show ? (o(), n("g", Ut, [
|
|
855
855
|
(o(!0), n(C, null, Y(Ke.value, (a) => (o(), n("rect", {
|
|
@@ -1141,13 +1141,13 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
1141
1141
|
])) : c("", !0),
|
|
1142
1142
|
v.value && !K.value ? (o(), n("g", Cl, [
|
|
1143
1143
|
d("text", {
|
|
1144
|
-
x:
|
|
1145
|
-
y:
|
|
1146
|
-
"font-size":
|
|
1147
|
-
fill:
|
|
1144
|
+
x: R.value.x,
|
|
1145
|
+
y: R.value.y - R.value.fontSize / 1.5,
|
|
1146
|
+
"font-size": R.value.fontSize / 1.5,
|
|
1147
|
+
fill: R.value.fill,
|
|
1148
1148
|
"text-anchor": "middle",
|
|
1149
|
-
"font-weight":
|
|
1150
|
-
}, L(
|
|
1149
|
+
"font-weight": R.value.bold ? "bold" : "normal"
|
|
1150
|
+
}, L(R.value.text), 9, Sl)
|
|
1151
1151
|
])) : c("", !0),
|
|
1152
1152
|
p.value && v.value ? (o(), n("g", zl, [
|
|
1153
1153
|
d("rect", {
|
|
@@ -1204,9 +1204,9 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
1204
1204
|
}, null, 8, Ml)
|
|
1205
1205
|
])) : c("", !0),
|
|
1206
1206
|
x(l.$slots, "svg", { svg: e.value }, void 0, !0)
|
|
1207
|
-
], 14,
|
|
1207
|
+
], 14, Bt)) : c("", !0),
|
|
1208
1208
|
l.$slots.watermark ? (o(), n("div", Nl, [
|
|
1209
|
-
x(l.$slots, "watermark",
|
|
1209
|
+
x(l.$slots, "watermark", P(H({ isPrinting: h(qe) || h(_e) })), void 0, !0)
|
|
1210
1210
|
])) : c("", !0),
|
|
1211
1211
|
J.value ? c("", !0) : (o(), N(Xt, {
|
|
1212
1212
|
key: 6,
|
|
@@ -1269,14 +1269,14 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
1269
1269
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1270
1270
|
parent: U.value,
|
|
1271
1271
|
content: oe.value,
|
|
1272
|
-
isFullscreen:
|
|
1272
|
+
isFullscreen: F.value,
|
|
1273
1273
|
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function"
|
|
1274
1274
|
}, {
|
|
1275
1275
|
"tooltip-before": m(() => [
|
|
1276
|
-
x(l.$slots, "tooltip-before",
|
|
1276
|
+
x(l.$slots, "tooltip-before", P(H({ ...ne.value })), void 0, !0)
|
|
1277
1277
|
]),
|
|
1278
1278
|
"tooltip-after": m(() => [
|
|
1279
|
-
x(l.$slots, "tooltip-after",
|
|
1279
|
+
x(l.$slots, "tooltip-after", P(H({ ...ne.value })), void 0, !0)
|
|
1280
1280
|
]),
|
|
1281
1281
|
default: m(() => [
|
|
1282
1282
|
t.value.style.chart.tooltip.showShape ? (o(), n("svg", Vl, [
|
|
@@ -1324,16 +1324,16 @@ const Pt = ["id"], Rt = ["xmlns", "viewBox", "id"], Bt = ["x", "y", "width", "he
|
|
|
1324
1324
|
td: m(({ td: a }) => [
|
|
1325
1325
|
d("div", {
|
|
1326
1326
|
innerHTML: a.name || a
|
|
1327
|
-
}, null, 8,
|
|
1327
|
+
}, null, 8, Rl)
|
|
1328
1328
|
]),
|
|
1329
1329
|
_: 1
|
|
1330
1330
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1331
1331
|
]),
|
|
1332
1332
|
_: 1
|
|
1333
1333
|
}, 8, ["config"])) : c("", !0)
|
|
1334
|
-
], 46,
|
|
1334
|
+
], 46, Rt));
|
|
1335
1335
|
}
|
|
1336
|
-
}, ua = /* @__PURE__ */ Vt(
|
|
1336
|
+
}, ua = /* @__PURE__ */ Vt(Bl, [["__scopeId", "data-v-ef941a62"]]);
|
|
1337
1337
|
export {
|
|
1338
1338
|
ua as default
|
|
1339
1339
|
};
|