vue-data-ui 2.3.84 → 2.3.85
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-Uk_vwKtL.cjs → Arrow-CLOh6oi7.cjs} +1 -1
- package/dist/{Arrow-CQ1ubni5.js → Arrow-JwDgP3de.js} +1 -1
- package/dist/{BaseIcon-CF1HQdM0.cjs → BaseIcon-BBQHz_Sf.cjs} +1 -1
- package/dist/{BaseIcon-B9ZZ6wkT.js → BaseIcon-BysUnfCR.js} +1 -1
- package/dist/{DataTable-C-iU_7h7.js → DataTable-MkG5Dqrn.js} +2 -2
- package/dist/{DataTable-CEtr89Og.cjs → DataTable-pVXaNplZ.cjs} +1 -1
- package/dist/{Legend-pU_BwhaW.js → Legend-KW7sTwN3.js} +1 -1
- package/dist/{Legend-D2ZBCCXe.cjs → Legend-k2mcTp7z.cjs} +1 -1
- package/dist/{Shape-CyM44biU.js → Shape-BFiZBf3X.js} +1 -1
- package/dist/{Shape-BO_KyCq8.cjs → Shape-COoEWeGM.cjs} +1 -1
- package/dist/{Slicer-CZobytqL.js → Slicer-CALc-Q4W.js} +2 -2
- package/dist/{Slicer-BAMZ4wsl.cjs → Slicer-DCyxUSsn.cjs} +1 -1
- package/dist/{Title-B1_d29Eh.cjs → Title-BaKZYHEx.cjs} +1 -1
- package/dist/{Title-Bk3h09h9.js → Title-ISDbzCH8.js} +1 -1
- package/dist/{Tooltip-CdB80DsD.js → Tooltip-BHmMXOej.js} +1 -1
- package/dist/{Tooltip-BU4cSEF0.cjs → Tooltip-okAYzo5Y.cjs} +1 -1
- package/dist/{index-DI4DaxVG.js → index-BiuHBtkZ.js} +1 -1
- package/dist/{index-Cx-40Fnz.cjs → index-D-vy9N1v.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BdsfyHWU.cjs → useNestedProp-B9yDavuy.cjs} +1 -1
- package/dist/{useNestedProp-COsQo-tX.js → useNestedProp-Ck5_RzLu.js} +1 -1
- package/dist/{usePrinter-D9bNzUQP.js → usePrinter-Do8KiK5h.js} +1 -1
- package/dist/{usePrinter-DbhL59iY.cjs → usePrinter-P4nLcXX-.cjs} +1 -1
- package/dist/{vue-data-ui-9nofTL7J.js → vue-data-ui-CAl2KJv9.js} +57 -57
- package/dist/{vue-data-ui-kGaLyV0o.cjs → vue-data-ui-CVYCyzY-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-lKgwKkVj.js → vue-ui-3d-bar-CploAEkY.js} +163 -163
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +19 -0
- package/dist/{vue-ui-accordion-DsN9lxvc.js → vue-ui-accordion-D2fhyKpk.js} +3 -3
- package/dist/{vue-ui-accordion-C8ka_Ot0.cjs → vue-ui-accordion-btKAUUTu.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D2lSXDX6.js → vue-ui-age-pyramid-DkaM5MrK.js} +55 -55
- package/dist/{vue-ui-annotator-DoLG0N5e.js → vue-ui-annotator-38FBI0Pn.js} +1 -1
- package/dist/{vue-ui-annotator-DmfAqbqB.cjs → vue-ui-annotator-BMYk78DR.cjs} +1 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +2 -0
- package/dist/{vue-ui-candlestick-vhHV9d6O.js → vue-ui-candlestick-CKsjq0Uw.js} +81 -81
- package/dist/{vue-ui-carousel-table-DaQV2SlJ.cjs → vue-ui-carousel-table-Cx72LlTd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BmyArloA.js → vue-ui-carousel-table-DjGaEuM7.js} +4 -4
- package/dist/{vue-ui-chestnut-DvNW2Y0z.cjs → vue-ui-chestnut-DAiBfoPN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-DgbbDtL0.js → vue-ui-chestnut-TLyh4dIZ.js} +9 -9
- package/dist/{vue-ui-cursor-7-jKCnOY.js → vue-ui-cursor-B1xa5yua.js} +2 -2
- package/dist/{vue-ui-cursor-zXDNHCZv.cjs → vue-ui-cursor-BunDuWpK.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DMossMh1.cjs → vue-ui-dashboard-CMZ736DL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_pnIQ5P.js → vue-ui-dashboard-DdcubzWu.js} +2 -2
- package/dist/{vue-ui-digits-C-lpZ-rg.js → vue-ui-digits-BUpjWWnD.js} +2 -2
- package/dist/{vue-ui-digits-BL8Vyod-.cjs → vue-ui-digits-z5g__gqs.cjs} +1 -1
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +1 -0
- package/dist/{vue-ui-donut-e-p-l-_7.js → vue-ui-donut-ZLpfm-XT.js} +73 -73
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Ol1YS2OF.js → vue-ui-donut-evolution-Bn4asQO3.js} +81 -81
- package/dist/{vue-ui-dumbbell-CMFNfda1.cjs → vue-ui-dumbbell-CY6X8J1K.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BjTXdj83.js → vue-ui-dumbbell-D2R9tJ99.js} +21 -21
- package/dist/{vue-ui-flow-B4mdXrld.js → vue-ui-flow-Dd5uPNTQ.js} +52 -52
- package/dist/vue-ui-flow-DswsuPwy.cjs +1 -0
- package/dist/{vue-ui-galaxy-Eg1e5SG7.js → vue-ui-galaxy-B7CoWLhj.js} +85 -85
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +1 -0
- package/dist/{vue-ui-gauge-BTt63SCn.js → vue-ui-gauge-CGh_m922.js} +61 -61
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +1 -0
- package/dist/{vue-ui-gizmo-C0aF0qVF.js → vue-ui-gizmo-BY3hnKSH.js} +2 -2
- package/dist/{vue-ui-gizmo-bFlUFJa8.cjs → vue-ui-gizmo-D5Kn7w7L.cjs} +1 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +1 -0
- package/dist/{vue-ui-heatmap-kiVWYvjC.js → vue-ui-heatmap-yYN0u0I6.js} +150 -150
- package/dist/{vue-ui-kpi-DdtZLwfi.js → vue-ui-kpi-B4zr_geL.js} +3 -3
- package/dist/{vue-ui-kpi-qw5ofS-z.cjs → vue-ui-kpi-Q20yM3IP.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-B8YrB3X-.cjs → vue-ui-mini-loader-GFSZofpE.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DcL5v-Tv.js → vue-ui-mini-loader-GImbaGsN.js} +2 -2
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +1 -0
- package/dist/{vue-ui-molecule-BpomHzqe.js → vue-ui-molecule-DmrB3kgA.js} +54 -54
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BV9xC9xF.js → vue-ui-mood-radar-sEkQtzI2.js} +100 -100
- package/dist/{vue-ui-nested-donuts-C3CMWjgk.cjs → vue-ui-nested-donuts-BcOgxtZV.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-D7D20nJu.js → vue-ui-nested-donuts-DvpZLcYd.js} +43 -43
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +5 -0
- package/dist/{vue-ui-onion-4wR10l5H.js → vue-ui-onion-DQMLPe3M.js} +88 -88
- package/dist/vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DA3byJV2.js → vue-ui-parallel-coordinate-plot-DN2LPNyS.js} +38 -38
- package/dist/{vue-ui-quadrant-D5wvd5h3.js → vue-ui-quadrant-D2GpeXI6.js} +49 -49
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CTSq5JJE.js → vue-ui-quick-chart-C5K9DfUV.js} +12 -12
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +15 -0
- package/dist/{vue-ui-radar-OW6awckj.js → vue-ui-radar-B9TZPujK.js} +42 -42
- package/dist/vue-ui-radar-KA287Tp-.cjs +1 -0
- package/dist/{vue-ui-rating-C6gyJWJF.js → vue-ui-rating-B0pNsmGB.js} +2 -2
- package/dist/{vue-ui-rating-3ZVG38br.cjs → vue-ui-rating-DpxzUDQq.cjs} +1 -1
- package/dist/vue-ui-relation-circle-D3B-lpdM.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Dr9-ozKG.js → vue-ui-relation-circle-DSnlpLHt.js} +54 -54
- package/dist/{vue-ui-rings-Ce6tFKrN.js → vue-ui-rings-BuvFDBXg.js} +77 -77
- package/dist/vue-ui-rings-cmeFVitd.cjs +2 -0
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +1 -0
- package/dist/{vue-ui-scatter-C_3WQPMf.js → vue-ui-scatter-D_chvOSJ.js} +51 -51
- package/dist/{vue-ui-screenshot-D6N4GbAL.cjs → vue-ui-screenshot-CwrXLMru.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BvE2dsvU.js → vue-ui-screenshot-DSHeHshf.js} +1 -1
- package/dist/{vue-ui-skeleton-CkSlhfsB.cjs → vue-ui-skeleton-DJhwv2oY.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DH4t1hrL.js → vue-ui-skeleton-Du4zw-c1.js} +2 -2
- package/dist/{vue-ui-smiley-CSA28QLT.cjs → vue-ui-smiley-BNkk6suC.cjs} +1 -1
- package/dist/{vue-ui-smiley-C-92SyPZ.js → vue-ui-smiley-BtQLJ7rA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CrElvUcG.js → vue-ui-spark-trend-BgA79g7a.js} +29 -29
- package/dist/vue-ui-spark-trend-DFIjxBTY.cjs +1 -0
- package/dist/vue-ui-sparkbar-BlwQfhlY.cjs +1 -0
- package/dist/{vue-ui-sparkbar-DrbkUcOX.js → vue-ui-sparkbar-DQAWZReF.js} +27 -27
- package/dist/vue-ui-sparkgauge-BCRSQDpt.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-PSRf_u0V.js → vue-ui-sparkgauge-CCApU38s.js} +22 -22
- package/dist/vue-ui-sparkhistogram-CTxG1Vtn.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-pZslBri7.js → vue-ui-sparkhistogram-PKTt4EmH.js} +52 -52
- package/dist/{vue-ui-sparkline-CqgArzCs.cjs → vue-ui-sparkline-BUaixngQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BPExupWx.js → vue-ui-sparkline-EESAiZyt.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-i02y9FzO.js → vue-ui-sparkstackbar-TnLNixdf.js} +6 -6
- package/dist/vue-ui-sparkstackbar-iQnc0zcO.cjs +1 -0
- package/dist/{vue-ui-stackbar-DfXxN_P3.js → vue-ui-stackbar-Ci04sup3.js} +62 -62
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +6 -0
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BZ-we0b1.js → vue-ui-strip-plot-DbvW0BuF.js} +72 -72
- package/dist/{vue-ui-table-Dy26T2oy.cjs → vue-ui-table-328De4vk.cjs} +1 -1
- package/dist/{vue-ui-table-BqLbMTHt.js → vue-ui-table-CamkBCdL.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BnwiB4id.cjs → vue-ui-table-heatmap-CCHre3Gt.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-KzoqT8nX.js → vue-ui-table-heatmap-D-YdrvGV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BBEsDDnN.cjs → vue-ui-table-sparkline-Cmg7wnQ0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BakiSjV4.js → vue-ui-table-sparkline-Dg2RKv6f.js} +5 -5
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +1 -0
- package/dist/{vue-ui-thermometer-D7cgRJoy.js → vue-ui-thermometer-jWHbZTc2.js} +47 -47
- package/dist/{vue-ui-timer-r4VFny9D.js → vue-ui-timer-BPepr5eV.js} +4 -4
- package/dist/{vue-ui-timer-COLXZ1J1.cjs → vue-ui-timer-B_FyRAU7.cjs} +1 -1
- package/dist/vue-ui-tiremarks-CaJWlyz8.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DNQpuz8A.js → vue-ui-tiremarks-DW8Q2IBl.js} +94 -94
- package/dist/{vue-ui-treemap-CsHaQjwu.cjs → vue-ui-treemap-B9GpvA0k.cjs} +1 -1
- package/dist/{vue-ui-treemap-CD5GoXrU.js → vue-ui-treemap-CWu43qLo.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DRH98pOw.js → vue-ui-vertical-bar-CndASePh.js} +178 -178
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +4 -0
- package/dist/{vue-ui-waffle-l9NGD_0B.js → vue-ui-waffle-CdyqwJwN.js} +71 -71
- package/dist/vue-ui-waffle-c9ycdoKz.cjs +1 -0
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +1 -0
- package/dist/{vue-ui-wheel-BpqWo_KY.js → vue-ui-wheel-Byq_BLhl.js} +57 -57
- package/dist/{vue-ui-word-cloud-DLaAm8t8.js → vue-ui-word-cloud-BRxN5uFD.js} +107 -107
- package/dist/{vue-ui-word-cloud-D5JLdr9g.cjs → vue-ui-word-cloud-BVOcsuMP.cjs} +1 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +3 -0
- package/dist/{vue-ui-xy-Ct-9OxiZ.js → vue-ui-xy-DgEdZz0O.js} +356 -361
- package/dist/{vue-ui-xy-canvas-BU3nj2M1.js → vue-ui-xy-canvas-BI7jUOTn.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Bub1qCm9.cjs → vue-ui-xy-canvas-Td0WNYN0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-1aTroDle.cjs +0 -19
- package/dist/vue-ui-age-pyramid-D8Tr8jvT.cjs +0 -1
- package/dist/vue-ui-candlestick-BAuWAMct.cjs +0 -2
- package/dist/vue-ui-donut-evolution-DsdzjA88.cjs +0 -1
- package/dist/vue-ui-donut-w1eqaTu0.cjs +0 -1
- package/dist/vue-ui-flow-oBnzNN4s.cjs +0 -1
- package/dist/vue-ui-galaxy-DgxKqf6u.cjs +0 -1
- package/dist/vue-ui-gauge-B64pcc54.cjs +0 -1
- package/dist/vue-ui-heatmap-cjY0mi4a.cjs +0 -1
- package/dist/vue-ui-molecule-B8cYtnHq.cjs +0 -1
- package/dist/vue-ui-mood-radar-BA2VVPO5.cjs +0 -1
- package/dist/vue-ui-onion-CVp0g8MP.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CmaHQR6-.cjs +0 -8
- package/dist/vue-ui-quadrant-B8ffMNIS.cjs +0 -1
- package/dist/vue-ui-quick-chart-hnVT9GKL.cjs +0 -15
- package/dist/vue-ui-radar-ySl7KzoX.cjs +0 -1
- package/dist/vue-ui-relation-circle-CMW26dvv.cjs +0 -1
- package/dist/vue-ui-rings-CR1t6iss.cjs +0 -2
- package/dist/vue-ui-scatter-CKtgbptk.cjs +0 -1
- package/dist/vue-ui-spark-trend-D4d4Mr24.cjs +0 -1
- package/dist/vue-ui-sparkbar-DDqy0UBm.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D6cG2rb8.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B9sVdLfh.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbGJ75_9.cjs +0 -1
- package/dist/vue-ui-stackbar-CRbcnnwn.cjs +0 -6
- package/dist/vue-ui-strip-plot-oZBXDxc-.cjs +0 -1
- package/dist/vue-ui-thermometer-E0mrvP4G.cjs +0 -1
- package/dist/vue-ui-tiremarks-C15sglnJ.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DucujxOR.cjs +0 -4
- package/dist/vue-ui-waffle-DhroAZB3.cjs +0 -1
- package/dist/vue-ui-wheel-Bd87HcGT.cjs +0 -1
- package/dist/vue-ui-xy-BHzOpYm9.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as d, ref as
|
|
2
|
-
import { u as ze, c as Ye, t as Be, a as Ve, p as fe, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as ge, q as He, r as We, y as je } from "./index-
|
|
1
|
+
import { computed as d, ref as n, watch as he, onMounted as Fe, onBeforeUnmount as Ne, openBlock as s, createElementBlock as u, normalizeClass as z, normalizeStyle as W, createBlock as C, createCommentVNode as b, unref as v, createSlots as Re, withCtx as h, renderSlot as g, normalizeProps as Y, guardReactiveProps as B, Fragment as M, renderList as F, createElementVNode as T, toDisplayString as _, createVNode as Ae, createTextVNode as De, nextTick as Le } from "vue";
|
|
2
|
+
import { u as ze, c as Ye, t as Be, a as Ve, p as fe, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as ge, q as He, r as We, y as je } from "./index-BiuHBtkZ.js";
|
|
3
3
|
import { t as qe, u as Je } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ke } from "./Title-
|
|
5
|
-
import { u as Qe, U as Ze } from "./usePrinter-
|
|
6
|
-
import { L as et } from "./Legend-
|
|
7
|
-
import { D as tt } from "./DataTable-
|
|
8
|
-
import { _ as at } from "./Tooltip-
|
|
9
|
-
import lt from "./vue-ui-skeleton-
|
|
10
|
-
import ot from "./vue-ui-accordion-
|
|
11
|
-
import { u as pe } from "./useNestedProp-
|
|
4
|
+
import { _ as Ke } from "./Title-ISDbzCH8.js";
|
|
5
|
+
import { u as Qe, U as Ze } from "./usePrinter-Do8KiK5h.js";
|
|
6
|
+
import { L as et } from "./Legend-KW7sTwN3.js";
|
|
7
|
+
import { D as tt } from "./DataTable-MkG5Dqrn.js";
|
|
8
|
+
import { _ as at } from "./Tooltip-BHmMXOej.js";
|
|
9
|
+
import lt from "./vue-ui-skeleton-Du4zw-c1.js";
|
|
10
|
+
import ot from "./vue-ui-accordion-D2fhyKpk.js";
|
|
11
|
+
import { u as pe } from "./useNestedProp-Ck5_RzLu.js";
|
|
12
12
|
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const st = ["id"],
|
|
13
|
+
const st = ["id"], nt = ["xmlns", "viewBox"], ut = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], it = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ct = ["id"], dt = ["stdDeviation"], vt = ["filter"], ht = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], gt = { key: 1 }, pt = ["onMouseenter"], yt = ["x", "y", "font-size", "fill", "font-weight"], mt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
}, bt = ["onClick"], kt = ["innerHTML"],
|
|
16
|
+
}, bt = ["onClick"], kt = ["innerHTML"], wt = {
|
|
17
17
|
__name: "vue-ui-onion",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -31,7 +31,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
33
|
setup(ye, { expose: me, emit: be }) {
|
|
34
|
-
const k = ye, { vue_ui_onion: ke } = ze(), R = d(() => !!k.dataset && k.dataset.length),
|
|
34
|
+
const k = ye, { vue_ui_onion: ke } = ze(), R = d(() => !!k.dataset && k.dataset.length), x = n(Ye()), we = n(null), J = n(0), A = n(!1), V = n(""), p = n([]), P = n(null), K = n(null), Q = n(null), Z = n(0), ee = n(0), te = n(0), e = d({
|
|
35
35
|
get: () => ae(),
|
|
36
36
|
set: (a) => a
|
|
37
37
|
});
|
|
@@ -49,15 +49,15 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
49
49
|
} : a;
|
|
50
50
|
}
|
|
51
51
|
he(() => k.config, (a) => {
|
|
52
|
-
e.value = ae(),
|
|
52
|
+
e.value = ae(), ne(), Z.value += 1, ee.value += 1, te.value += 1;
|
|
53
53
|
}, { deep: !0 });
|
|
54
54
|
const { isPrinting: le, isImaging: oe, generatePdf: re, generateImage: se } = Qe({
|
|
55
|
-
elementId: `vue-ui-onion_${
|
|
55
|
+
elementId: `vue-ui-onion_${x.value}`,
|
|
56
56
|
fileName: e.value.style.chart.title.text || "vue-ui-onion"
|
|
57
|
-
}),
|
|
57
|
+
}), $e = d(() => Xe(e.value.customPalette)), w = n({
|
|
58
58
|
showTable: e.value.table.show,
|
|
59
59
|
showTooltip: e.value.style.chart.tooltip.show
|
|
60
|
-
}), r =
|
|
60
|
+
}), r = n({
|
|
61
61
|
height: 512,
|
|
62
62
|
width: 512,
|
|
63
63
|
padding: {
|
|
@@ -67,11 +67,11 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
67
67
|
bottom: 64
|
|
68
68
|
},
|
|
69
69
|
minRadius: 64
|
|
70
|
-
}), D =
|
|
70
|
+
}), D = n(null);
|
|
71
71
|
Fe(() => {
|
|
72
|
-
|
|
72
|
+
ne();
|
|
73
73
|
});
|
|
74
|
-
function
|
|
74
|
+
function ne() {
|
|
75
75
|
if (Ge(k.dataset) && j({
|
|
76
76
|
componentName: "VueUiOnion",
|
|
77
77
|
type: "dataset"
|
|
@@ -114,28 +114,28 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
114
114
|
index: o
|
|
115
115
|
});
|
|
116
116
|
}), k.dataset.map((a, o) => {
|
|
117
|
-
const t = `onion_serie_${o}_${
|
|
117
|
+
const t = `onion_serie_${o}_${x.value}`;
|
|
118
118
|
return {
|
|
119
119
|
...a,
|
|
120
120
|
percentage: a.percentage || 0,
|
|
121
121
|
targetPercentage: a.percentage || 0,
|
|
122
|
-
color: Ue(a.color) ||
|
|
122
|
+
color: Ue(a.color) || $e.value[o] || fe[o],
|
|
123
123
|
id: t,
|
|
124
124
|
shape: "circle",
|
|
125
125
|
opacity: p.value.includes(t) ? 0.5 : 1,
|
|
126
126
|
absoluteIndex: o,
|
|
127
|
-
segregate: () =>
|
|
127
|
+
segregate: () => ue(t),
|
|
128
128
|
isSegregated: p.value.includes(t)
|
|
129
129
|
};
|
|
130
|
-
}))), O =
|
|
130
|
+
}))), O = n(c.value), xe = d(() => e.value.useStartAnimation), Ce = n(null), Te = d(() => Math.max(...c.value.map((a) => a.percentage))), X = n(!1);
|
|
131
131
|
he(() => c.value, _e, { immediate: !0 });
|
|
132
132
|
function _e() {
|
|
133
|
-
if (
|
|
133
|
+
if (xe.value && !X.value) {
|
|
134
134
|
let o = function() {
|
|
135
|
-
a >= Te.value ? (cancelAnimationFrame(
|
|
135
|
+
a >= Te.value ? (cancelAnimationFrame(Ce.value), O.value = c.value, X.value = !0) : (O.value = c.value.map((t) => ({
|
|
136
136
|
...t,
|
|
137
137
|
percentage: a < t.targetPercentage ? a : t.targetPercentage
|
|
138
|
-
})), a += 1, requestAnimationFrame(o),
|
|
138
|
+
})), a += 1, requestAnimationFrame(o), X.value = !0);
|
|
139
139
|
};
|
|
140
140
|
O.value = c.value.map((t) => ({
|
|
141
141
|
...t,
|
|
@@ -153,14 +153,14 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
153
153
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
154
154
|
paddingBottom: 12,
|
|
155
155
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
156
|
-
})), Oe = d(() => c.value.filter((a) => !p.value.includes(a.id)).length),
|
|
156
|
+
})), Oe = d(() => c.value.filter((a) => !p.value.includes(a.id)).length), $ = d(() => {
|
|
157
157
|
const a = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
|
|
158
158
|
return {
|
|
159
159
|
gutter: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.gutter.width,
|
|
160
160
|
track: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.track.width
|
|
161
161
|
};
|
|
162
162
|
}), y = d(() => O.value.filter((a) => !p.value.includes(a.id)).map((a, o) => {
|
|
163
|
-
const t = (i.value.maxRadius -
|
|
163
|
+
const t = (i.value.maxRadius - $.value.track) / Oe.value / 2 * (1 + o), l = i.value.centerY - t;
|
|
164
164
|
return {
|
|
165
165
|
percentage: a.percentage || 0,
|
|
166
166
|
...a,
|
|
@@ -184,13 +184,13 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
184
184
|
`.trim()
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ue(a) {
|
|
188
188
|
p.value.includes(a) ? p.value = p.value.filter((o) => o !== a) : p.value.push(a), be("selectLegend", y.value);
|
|
189
189
|
}
|
|
190
190
|
function Se() {
|
|
191
191
|
return y.value;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const G = d(() => {
|
|
194
194
|
const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = y.value.map((t) => [
|
|
195
195
|
t.name,
|
|
196
196
|
t.percentage,
|
|
@@ -198,7 +198,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
198
198
|
]);
|
|
199
199
|
return { head: a, body: o };
|
|
200
200
|
}), L = d(() => {
|
|
201
|
-
const a =
|
|
201
|
+
const a = G.value.head, o = y.value.map((l) => [
|
|
202
202
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
203
203
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
204
204
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -219,18 +219,18 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
219
219
|
});
|
|
220
220
|
function ie() {
|
|
221
221
|
Le(() => {
|
|
222
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o =
|
|
222
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = G.value.head, t = G.value.body, l = a.concat([o]).concat(t), f = He(l);
|
|
223
223
|
We({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
const m =
|
|
226
|
+
const m = n(void 0), I = n(!1);
|
|
227
227
|
function Me(a) {
|
|
228
228
|
I.value = a, J.value += 1;
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const U = n(null);
|
|
231
231
|
function ce({ datapoint: a, seriesIndex: o, show: t = !0 }) {
|
|
232
232
|
const l = a.absoluteIndex;
|
|
233
|
-
m.value = o,
|
|
233
|
+
m.value = o, U.value = {
|
|
234
234
|
datapoint: a,
|
|
235
235
|
seriesIndex: l,
|
|
236
236
|
series: c.value,
|
|
@@ -244,15 +244,15 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
244
244
|
series: c.value,
|
|
245
245
|
config: e.value
|
|
246
246
|
})))
|
|
247
|
-
|
|
247
|
+
V.value = S({
|
|
248
248
|
seriesIndex: l,
|
|
249
249
|
datapoint: a,
|
|
250
250
|
series: c.value,
|
|
251
251
|
config: e.value
|
|
252
252
|
});
|
|
253
253
|
else {
|
|
254
|
-
const
|
|
255
|
-
f += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${
|
|
254
|
+
const E = e.value.style.chart.tooltip.showPercentage, H = e.value.style.chart.tooltip.showValue;
|
|
255
|
+
f += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${E ? N({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${E && H ? "(" : ""}${H ? q(
|
|
256
256
|
e.value.style.chart.layout.labels.value.formatter,
|
|
257
257
|
a.value,
|
|
258
258
|
N({
|
|
@@ -262,14 +262,14 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
262
262
|
r: e.value.style.chart.tooltip.roundingValue
|
|
263
263
|
}),
|
|
264
264
|
{ datapoint: a, seriesIndex: o }
|
|
265
|
-
) : ""}${
|
|
265
|
+
) : ""}${E && H ? ")" : ""}</div>`, V.value = `<div>${f}</div>`;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
function de() {
|
|
269
|
-
|
|
269
|
+
w.value.showTable = !w.value.showTable;
|
|
270
270
|
}
|
|
271
271
|
function ve() {
|
|
272
|
-
|
|
272
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
273
273
|
}
|
|
274
274
|
return me({
|
|
275
275
|
getData: Se,
|
|
@@ -278,20 +278,20 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
278
278
|
generateImage: se,
|
|
279
279
|
toggleTable: de,
|
|
280
280
|
toggleTooltip: ve
|
|
281
|
-
}), (a, o) => (s(),
|
|
281
|
+
}), (a, o) => (s(), u("div", {
|
|
282
282
|
class: z(`vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
283
283
|
ref_key: "onionChart",
|
|
284
284
|
ref: P,
|
|
285
|
-
id: `vue-ui-onion_${
|
|
286
|
-
style:
|
|
285
|
+
id: `vue-ui-onion_${x.value}`,
|
|
286
|
+
style: W(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
|
|
287
287
|
}, [
|
|
288
|
-
e.value.style.chart.title.text ? (s(),
|
|
288
|
+
e.value.style.chart.title.text ? (s(), u("div", {
|
|
289
289
|
key: 0,
|
|
290
290
|
ref_key: "chartTitle",
|
|
291
291
|
ref: K,
|
|
292
|
-
style:
|
|
292
|
+
style: "width:100%;background:transparent"
|
|
293
293
|
}, [
|
|
294
|
-
(s(),
|
|
294
|
+
(s(), C(Ke, {
|
|
295
295
|
key: `title_${Z.value}`,
|
|
296
296
|
config: {
|
|
297
297
|
title: {
|
|
@@ -304,16 +304,16 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}, null, 8, ["config"]))
|
|
307
|
-
],
|
|
308
|
-
e.value.userOptions.show && R.value ? (s(),
|
|
307
|
+
], 512)) : b("", !0),
|
|
308
|
+
e.value.userOptions.show && R.value ? (s(), C(Ze, {
|
|
309
309
|
ref_key: "details",
|
|
310
|
-
ref:
|
|
310
|
+
ref: we,
|
|
311
311
|
key: `user_options${J.value}`,
|
|
312
312
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
313
313
|
color: e.value.style.chart.color,
|
|
314
314
|
isImaging: v(oe),
|
|
315
315
|
isPrinting: v(le),
|
|
316
|
-
uid:
|
|
316
|
+
uid: x.value,
|
|
317
317
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
318
318
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
319
319
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -321,7 +321,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
321
321
|
hasTable: e.value.userOptions.buttons.table,
|
|
322
322
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
323
323
|
isFullscreen: I.value,
|
|
324
|
-
isTooltip:
|
|
324
|
+
isTooltip: w.value.showTooltip,
|
|
325
325
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
326
326
|
chartElement: P.value,
|
|
327
327
|
onToggleFullscreen: Me,
|
|
@@ -369,37 +369,37 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
369
369
|
a.$slots.optionFullscreen ? {
|
|
370
370
|
name: "optionFullscreen",
|
|
371
371
|
fn: h(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
372
|
-
g(a.$slots, "optionFullscreen", B(
|
|
372
|
+
g(a.$slots, "optionFullscreen", Y(B({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
373
373
|
]),
|
|
374
374
|
key: "5"
|
|
375
375
|
} : void 0
|
|
376
376
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
|
|
377
|
-
R.value ? (s(),
|
|
377
|
+
R.value ? (s(), u("svg", {
|
|
378
378
|
key: 2,
|
|
379
379
|
xmlns: v(Ee),
|
|
380
380
|
class: z({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
381
381
|
viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
|
|
382
|
-
style:
|
|
382
|
+
style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
383
383
|
}, [
|
|
384
|
-
(s(!0),
|
|
384
|
+
(s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
|
|
385
385
|
cx: i.value.centerX,
|
|
386
386
|
cy: i.value.centerY,
|
|
387
387
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
388
388
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
389
|
-
"stroke-width":
|
|
389
|
+
"stroke-width": $.value.gutter,
|
|
390
390
|
fill: "none",
|
|
391
391
|
"stroke-dasharray": t.path.bgDashArray,
|
|
392
392
|
"stroke-dashoffset": t.path.fullOffset,
|
|
393
393
|
"stroke-linecap": "round",
|
|
394
394
|
class: z({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
|
|
395
395
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
396
|
-
}, null, 10,
|
|
397
|
-
(s(!0),
|
|
396
|
+
}, null, 10, ut))), 256)),
|
|
397
|
+
(s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
|
|
398
398
|
cx: i.value.centerX,
|
|
399
399
|
cy: i.value.centerY,
|
|
400
400
|
r: t.radius < 0 ? 1e-4 : t.radius,
|
|
401
401
|
stroke: `${t.color}`,
|
|
402
|
-
"stroke-width":
|
|
402
|
+
"stroke-width": $.value.track,
|
|
403
403
|
fill: "none",
|
|
404
404
|
"stroke-dasharray": t.path.dashArray,
|
|
405
405
|
"stroke-dashoffset": t.path.dashOffset,
|
|
@@ -409,7 +409,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
409
409
|
}, null, 10, it))), 256)),
|
|
410
410
|
T("defs", null, [
|
|
411
411
|
T("filter", {
|
|
412
|
-
id: `blur_${
|
|
412
|
+
id: `blur_${x.value}`,
|
|
413
413
|
x: "-50%",
|
|
414
414
|
y: "-50%",
|
|
415
415
|
width: "200%",
|
|
@@ -421,16 +421,16 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
421
421
|
}, null, 8, dt)
|
|
422
422
|
], 8, ct)
|
|
423
423
|
]),
|
|
424
|
-
e.value.style.chart.useGradient ? (s(),
|
|
424
|
+
e.value.style.chart.useGradient ? (s(), u("g", {
|
|
425
425
|
key: 0,
|
|
426
|
-
filter: `url(#blur_${
|
|
426
|
+
filter: `url(#blur_${x.value})`
|
|
427
427
|
}, [
|
|
428
|
-
(s(!0),
|
|
428
|
+
(s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
|
|
429
429
|
cx: i.value.centerX,
|
|
430
430
|
cy: i.value.centerY,
|
|
431
431
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
432
432
|
stroke: "white",
|
|
433
|
-
"stroke-width":
|
|
433
|
+
"stroke-width": $.value.track / 3,
|
|
434
434
|
fill: "none",
|
|
435
435
|
"stroke-linecap": "round",
|
|
436
436
|
"stroke-dasharray": t.path.dashArray,
|
|
@@ -438,13 +438,13 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
438
438
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
439
439
|
}, null, 8, ht))), 256))
|
|
440
440
|
], 8, vt)) : b("", !0),
|
|
441
|
-
(s(!0),
|
|
441
|
+
(s(!0), u(M, null, F(y.value, (t, l) => (s(), u("circle", {
|
|
442
442
|
"data-cy-trap": "",
|
|
443
443
|
cx: i.value.centerX,
|
|
444
444
|
cy: i.value.centerY,
|
|
445
445
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
446
446
|
stroke: "transparent",
|
|
447
|
-
"stroke-width": Math.max(
|
|
447
|
+
"stroke-width": Math.max($.value.track, $.value.gutter),
|
|
448
448
|
fill: "none",
|
|
449
449
|
"stroke-dasharray": t.path.bgDashArray,
|
|
450
450
|
"stroke-dashoffset": t.path.fullOffset,
|
|
@@ -460,8 +460,8 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
460
460
|
m.value = void 0, A.value = !1;
|
|
461
461
|
})
|
|
462
462
|
}, null, 40, ft))), 256)),
|
|
463
|
-
e.value.style.chart.layout.labels.show ? (s(),
|
|
464
|
-
(s(!0),
|
|
463
|
+
e.value.style.chart.layout.labels.show ? (s(), u("g", gt, [
|
|
464
|
+
(s(!0), u(M, null, F(y.value, (t, l) => (s(), u("g", {
|
|
465
465
|
onMouseenter: (f) => ce({
|
|
466
466
|
datapoint: t,
|
|
467
467
|
show: !0,
|
|
@@ -471,9 +471,9 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
471
471
|
m.value = void 0, A.value = !1;
|
|
472
472
|
})
|
|
473
473
|
}, [
|
|
474
|
-
p.value.includes(t.id) ? b("", !0) : (s(),
|
|
474
|
+
p.value.includes(t.id) ? b("", !0) : (s(), u("text", {
|
|
475
475
|
key: 0,
|
|
476
|
-
x: r.value.width / 2 -
|
|
476
|
+
x: r.value.width / 2 - $.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
477
477
|
y: t.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
478
478
|
"text-anchor": "end",
|
|
479
479
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
@@ -507,11 +507,11 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
507
507
|
], 40, pt))), 256))
|
|
508
508
|
])) : b("", !0),
|
|
509
509
|
g(a.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
510
|
-
], 14,
|
|
511
|
-
a.$slots.watermark ? (s(),
|
|
512
|
-
g(a.$slots, "watermark", B(
|
|
510
|
+
], 14, nt)) : b("", !0),
|
|
511
|
+
a.$slots.watermark ? (s(), u("div", mt, [
|
|
512
|
+
g(a.$slots, "watermark", Y(B({ isPrinting: v(le) || v(oe) })), void 0, !0)
|
|
513
513
|
])) : b("", !0),
|
|
514
|
-
R.value ? b("", !0) : (s(),
|
|
514
|
+
R.value ? b("", !0) : (s(), C(lt, {
|
|
515
515
|
key: 4,
|
|
516
516
|
config: {
|
|
517
517
|
type: "onion",
|
|
@@ -527,17 +527,17 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
527
527
|
ref_key: "chartLegend",
|
|
528
528
|
ref: Q
|
|
529
529
|
}, [
|
|
530
|
-
e.value.style.chart.legend.show ? (s(),
|
|
530
|
+
e.value.style.chart.legend.show ? (s(), C(et, {
|
|
531
531
|
key: `legend_${te.value}`,
|
|
532
532
|
legendSet: c.value,
|
|
533
533
|
config: Pe.value,
|
|
534
|
-
onClickMarker: o[2] || (o[2] = ({ legend: t }) =>
|
|
534
|
+
onClickMarker: o[2] || (o[2] = ({ legend: t }) => ue(t.id))
|
|
535
535
|
}, {
|
|
536
536
|
item: h(({ legend: t }) => [
|
|
537
537
|
T("div", {
|
|
538
538
|
"data-cy-legend-item": "",
|
|
539
539
|
onClick: (l) => t.segregate(),
|
|
540
|
-
style:
|
|
540
|
+
style: W(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
|
|
541
541
|
}, _(t.name ? t.name + ": " : "") + " " + _((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, bt)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
@@ -547,7 +547,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
547
547
|
}, void 0, !0)
|
|
548
548
|
], 512),
|
|
549
549
|
Ae(at, {
|
|
550
|
-
show:
|
|
550
|
+
show: w.value.showTooltip && A.value,
|
|
551
551
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
552
552
|
color: e.value.style.chart.tooltip.color,
|
|
553
553
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -558,22 +558,22 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
558
558
|
position: e.value.style.chart.tooltip.position,
|
|
559
559
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
560
560
|
parent: P.value,
|
|
561
|
-
content:
|
|
561
|
+
content: V.value,
|
|
562
562
|
isCustom: v(ge)(e.value.style.chart.tooltip.customFormat)
|
|
563
563
|
}, {
|
|
564
564
|
"tooltip-before": h(() => [
|
|
565
|
-
g(a.$slots, "tooltip-before", B(
|
|
565
|
+
g(a.$slots, "tooltip-before", Y(B({ ...U.value })), void 0, !0)
|
|
566
566
|
]),
|
|
567
567
|
"tooltip-after": h(() => [
|
|
568
|
-
g(a.$slots, "tooltip-after", B(
|
|
568
|
+
g(a.$slots, "tooltip-after", Y(B({ ...U.value })), void 0, !0)
|
|
569
569
|
]),
|
|
570
570
|
_: 3
|
|
571
571
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
572
|
-
R.value ? (s(),
|
|
572
|
+
R.value ? (s(), C(ot, {
|
|
573
573
|
key: 5,
|
|
574
574
|
hideDetails: "",
|
|
575
575
|
config: {
|
|
576
|
-
open:
|
|
576
|
+
open: w.value.showTable,
|
|
577
577
|
maxHeight: 1e4,
|
|
578
578
|
head: {
|
|
579
579
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -586,14 +586,14 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
586
586
|
}
|
|
587
587
|
}, {
|
|
588
588
|
content: h(() => [
|
|
589
|
-
(s(),
|
|
589
|
+
(s(), C(tt, {
|
|
590
590
|
key: `table_${ee.value}`,
|
|
591
591
|
colNames: L.value.colNames,
|
|
592
592
|
head: L.value.head,
|
|
593
593
|
body: L.value.body,
|
|
594
594
|
config: L.value.config,
|
|
595
595
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
596
|
-
onClose: o[3] || (o[3] = (t) =>
|
|
596
|
+
onClose: o[3] || (o[3] = (t) => w.value.showTable = !1)
|
|
597
597
|
}, {
|
|
598
598
|
th: h(({ th: t }) => [
|
|
599
599
|
De(_(t), 1)
|
|
@@ -608,7 +608,7 @@ const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "
|
|
|
608
608
|
}, 8, ["config"])) : b("", !0)
|
|
609
609
|
], 14, st));
|
|
610
610
|
}
|
|
611
|
-
}, Rt = /* @__PURE__ */ rt(
|
|
611
|
+
}, Rt = /* @__PURE__ */ rt(wt, [["__scopeId", "data-v-45ea05bd"]]);
|
|
612
612
|
export {
|
|
613
613
|
Rt as default
|
|
614
614
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-D-vy9N1v.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-BaKZYHEx.cjs"),fe=require("./Legend-k2mcTp7z.cjs"),ge=require("./Tooltip-okAYzo5Y.cjs"),be=require("./Shape-COoEWeGM.cjs"),ae=require("./usePrinter-P4nLcXX-.cjs"),ke=require("./DataTable-pVXaNplZ.cjs"),xe=require("./vue-ui-accordion-btKAUUTu.cjs"),Ce=require("./vue-ui-skeleton-DJhwv2oY.cjs"),oe=require("./useNestedProp-B9yDavuy.cjs"),we=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Be=["id"],Se=["xmlns","viewBox"],$e={style:{"pointer-events":"none"}},ze=["x1","x2","y1","y2","stroke","stroke-width"],Ne=["x","y","fill","font-size","font-weight"],_e=["x1","x2","y1","y2","stroke","stroke-width"],Te=["x","y","fill","font-size","font-weight"],Fe={key:0},Pe=["x","y","font-size","fill"],Ae=["width","x","y"],Me={style:{width:"100%"}},Le=["x","y","fill","font-weight","font-size","onMouseenter"],Ee=["d","stroke","stroke-width","onMouseenter"],Ie={key:3,class:"vue-data-ui-watermark"},Ve=["onClick"],De=["innerHTML"],Oe={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ne,{expose:se,emit:M}){const b=ne,{vue_ui_parallel_coordinate_plot:re}=i.useConfig(),x=e.computed({get(){return!!b.dataset&&b.dataset.length},set(l){return l}}),L=e.ref(0),w=e.ref(null),E=e.ref(null),I=e.ref(null),V=e.ref(0),D=e.ref(0),O=e.ref(0),N=e.ref(i.createUid()),B=e.ref(!1);function ie(l){B.value=l,L.value+=1}const t=e.computed({get:()=>q(),set:l=>l});function q(){const l=oe.useNestedProp({userConfig:b.config,defaultConfig:re});return l.theme?{...oe.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=q(),R(),V.value+=1,O.value+=1,D.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{R()});function R(){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=le.throttle(()=>{const{width:o,height:a}=le.useResponsive({chart:w.value,title:t.value.style.chart.title.text?E.value:null,legend:t.value.style.chart.legend.show?I.value:null});c.value.width=o,c.value.height=a,c.value.plotSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),c.value.ticksFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),c.value.datapointFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),c.value.axisNameFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})});$.value=new ResizeObserver(l),$.value.observe(w.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:U,isImaging:W,generatePdf:j,generateImage:H}=ae.usePrinter({elementId:`pcp_${N.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"}),c=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}),d=e.computed(()=>{const{top:l,right:o,bottom:a,left:n}=t.value.style.chart.padding,r=c.value.height,s=c.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}}),ue=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),m=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 G(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)||ue.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"}})),ce=e.computed(()=>k.value.map(l=>({...l,opacity:f.value.includes(l.id)?.5:1,segregate:()=>G(l.id),isSegregated:f.value.includes(l.id)}))),de=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":""})),Y=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(()=>d.value.width/Y.value),_=e.computed(()=>k.value.filter(l=>!f.value.includes(l.id))),h=e.computed(()=>{let l=[];for(let o=0;o<Y.value;o+=1){const a=Math.min(..._.value.flatMap(v=>v.series.map(z=>z.values[o]||0)||0)),n=Math.max(..._.value.flatMap(v=>v.series.map(z=>z.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((v,z)=>{const he=u.min<0?v+Math.abs(u.min):v-Math.abs(u.min),me=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:d.value.bottom-d.value.height*(he/me),x:d.value.left+y.value*o+y.value/2,value:v}});l.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return l}),T=e.computed(()=>_.value.map((l,o)=>({...l,series:l.series.map((a,n)=>({...a,datapoints:a.values.map((r,s)=>{const u=h.value[s].scale.min<0?(r||0)+Math.abs(h.value[s].scale.min):(r||0)-Math.abs(h.value[s].scale.min),g=h.value[s].scale.min<0?h.value[s].scale.max+Math.abs(h.value[s].scale.min):h.value[s].scale.max-Math.abs(h.value[s].scale.min);return{name:a.name,seriesName:l.name,axisIndex:s,datapointIndex:n,seriesIndex:o,value:r||0,x:d.value.left+y.value*s+y.value/2,y:d.value.bottom-d.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,.12),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${n}`:`M ${a}`);return{...o,smoothPath:n,straightPath:a,pathLength:r}})})));function X({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 p=e.ref(null),F=e.ref(null),S=e.ref(!1),P=e.ref("");function A({shape:l,serieName:o,serie:a,relativeIndex:n,seriesIndex:r}){F.value={serie:a,relativeIndex:n,seriesIndex:r,series:k.value,scales:h.value},S.value=!0,p.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:h.value}))?P.value=u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:h.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>`,h.value.map(g=>g.name).forEach((g,v)=>{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[v]||null,a.datapoints[v].value,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[v]||"",v:a.datapoints[v].value,s:t.value.style.chart.yAxis.labels.suffixes[v]||"",r:t.value.style.chart.yAxis.labels.roundings[v]||""}),{datapoint:a.datapoints[v],seriesIndex:v})}
|
|
6
|
+
</span>
|
|
7
|
+
</div>
|
|
8
|
+
`,t.value.style.chart.comments.showInTooltip&&a.datapoints[v].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[v].comment}</div>`)}),P.value=`<div>${s}</div>`)}function ve(){return k.value}const C=e.computed(()=>{const l=[t.value.table.columnNames.series].concat([t.value.table.columnNames.item]).concat(h.value.map(r=>r.name)),o=T.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(h.value.map(r=>r.name));return{body:o,head:l,config:a,colNames:n}}),J=e.computed(()=>T.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:C.value.head,body:C.value.body});function K(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=J.value.head,a=J.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"})}function pe(l){M("selectDatapoint",l)}function Q(l){M("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function Z(){m.value.showTable=!m.value.showTable}function ee(){m.value.dataLabels.show=!m.value.dataLabels.show}function te(){m.value.showTooltip=!m.value.showTooltip}return se({getData:ve,generateCsv:K,generatePdf:j,generateImage:H,toggleTable:Z,toggleLabels:ee,toggleTooltip:te}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"pcpChart",ref:w,class:e.normalizeClass(`vue-ui-pcp ${B.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;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`pcp_${N.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:E,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${V.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.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(W),uid:N.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:B.value,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:w.value,onToggleFullscreen:ie,onGeneratePdf:e.unref(j),onGenerateCsv:K,onGenerateImage:e.unref(H),onToggleTable:Z,onToggleLabels:ee,onToggleTooltip:te},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"4"}: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:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(i.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${d.value.chartWidth<=0?10:d.value.chartWidth} ${d.value.chartHeight<=0?10:d.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(a,n)=>(e.openBlock(),e.createElementBlock("g",$e,[e.createElementVNode("line",{x1:d.value.left+y.value*n+y.value/2,x2:d.value.left+y.value*n+y.value/2,y1:d.value.top,y2:d.value.bottom,stroke:t.value.style.chart.yAxis.stroke,"stroke-width":t.value.style.chart.yAxis.strokeWidth},null,8,ze),e.createElementVNode("text",{x:d.value.left+y.value*n+y.value/2,y:d.value.top-24,fill:t.value.style.chart.yAxis.labels.axisNamesColor,"font-size":c.value.axisNameFontSize,"font-weight":t.value.style.chart.yAxis.labels.axisNamesBold?"bold":"","text-anchor":"middle"},e.toDisplayString(a.name),9,Ne),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:${p.value&&!m.value.showTooltip?.2:1}`)},null,12,_e))),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+c.value.ticksFontSize/3,fill:t.value.style.chart.yAxis.labels.ticks.color,"text-anchor":"end","font-size":c.value.ticksFontSize,"font-weight":t.value.style.chart.yAxis.labels.ticks.bold?"bold":"normal",style:e.normalizeStyle(`opacity:${p.value&&!m.value.showTooltip?.2:1}`)},e.toDisplayString(X({value:r.value,index:n,datapoint:r})),13,Te))),256))],64)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.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",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.datapoints,s=>(e.openBlock(),e.createBlock(be._sfc_main,{plot:{x:s.x,y:s.y},color:a.color,shape:a.shape,radius:a.shape==="triangle"?c.value.plotSize*1.2:c.value.plotSize,stroke:t.value.style.chart.backgroundColor,strokeWidth:.5,onMouseenter:u=>A({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[0]||(o[0]=u=>{p.value=null,S.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.value===n.id?t.value.style.chart.plots.opacity:.2:t.value.style.chart.plots.opacity}`),onClick:()=>pe(s)},null,8,["plot","color","shape","radius","stroke","onMouseenter","style","onClick"]))),256)),m.value.showTooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[p.value&&p.value===n.id&&n.datapoints.length?(e.openBlock(),e.createElementBlock("text",{key:0,x:n.datapoints[0].x-c.value.ticksFontSize,y:n.datapoints[0].y+c.value.ticksFontSize/3,"text-anchor":"end","font-size":c.value.ticksFontSize,fill:a.color,"font-weight":"bold"},e.toDisplayString(n.name),9,Pe)):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",Me,[e.renderSlot(l.$slots,"plot-comment",{plot:{...s,color:a.color}},void 0,!0)])],8,Ae)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),m.value.dataLabels.show||p.value&&p.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+c.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":c.value.datapointFontSize,onMouseenter:g=>A({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[1]||(o[1]=g=>{p.value=null,S.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.value===n.id?1:.2:1}`)},e.toDisplayString(X({value:s.value,index:u,datapoint:s})),45,Le))),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=>A({shape:a.shape,serieName:a.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex}),onMouseleave:o[2]||(o[2]=s=>{p.value=null,S.value=!1}),style:e.normalizeStyle(`opacity:${p.value?p.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,Ee)]))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,Se)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ce.default,{key:4,config:{type:"parallelCoordinatePlot",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show&&x.value?(e.openBlock(),e.createBlock(fe.Legend,{key:`legend_${D.value}`,legendSet:ce.value,config:de.value,onClickMarker:o[3]||(o[3]=({legend:a})=>{G(a.id),Q(a)})},{item:e.withCtx(({legend:a,index:n})=>[e.createElementVNode("div",{onClick:r=>{a.segregate(),Q(a)},style:e.normalizeStyle(`opacity:${f.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Ve)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:k.value},void 0,!0)],512),e.createVNode(ge._sfc_main,{show:m.value.showTooltip&&S.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:w.value,content:P.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({...F.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...F.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(xe.default,{key:5,hideDetails:"",config:{open:m.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(ke.DataTable,{key:`table_${O.value}`,colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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[4]||(o[4]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,De)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Be))}},qe=we._export_sfc(Oe,[["__scopeId","data-v-c6286cd2"]]);exports.default=qe;
|