vue-data-ui 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -54
- package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
- package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
- package/dist/Legend-YZ7Hz3o1.cjs +1 -0
- package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
- package/dist/Title-Co5jI5ed.cjs +1 -0
- package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/documentation/installation.md +10 -9
- package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +101 -20
- package/dist/types/vue-data-ui.d.ts +101 -20
- package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +52 -51
- package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
- package/dist/Legend-CHQgjBuK.cjs +0 -1
- package/dist/Title-BHmTg9iK.cjs +0 -1
- package/dist/index-Dfhvf8hT.cjs +0 -9
- package/dist/usePrinter-BQQasUin.cjs +0 -1
- package/dist/vue-data-ui-BdSFeW_X.js +0 -256
- package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
- package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
- package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
- package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
- package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
- package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
- package/dist/vue-ui-flow-DreN8go4.js +0 -484
- package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
- package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
- package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
- package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
- package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
- package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
- package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
- package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
- package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
- package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
- package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
- package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
- package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
- package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
- package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
- package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
- package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
- package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
- package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
- package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
- package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
- package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
- package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
- package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
- package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
- package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
- package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
- package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
- package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
- package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
- package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
- package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import { ref as u, computed as d, watch as Fe, onMounted as Oe, onBeforeUnmount as Me, openBlock as n, createElementBlock as m, normalizeClass as B, normalizeStyle as O, createBlock as x, createCommentVNode as N, unref as i, createSlots as ze, withCtx as h, renderSlot as f, normalizeProps as D, guardReactiveProps as U, createVNode as de, createElementVNode as k, Fragment as pe, renderList as he, createTextVNode as ge, toDisplayString as W, nextTick as Ae } from "vue";
|
|
2
|
-
import { u as Re, c as fe, t as Ve, a as Be, p as T, o as De, e as X, g as Ue, b as We, I as Ee, d as ye, f as _, X as Ge, s as He, w as Xe, v as j, i as me, x as je, y as Ye, q as qe, r as Je } from "./index-B0CpCD8z.js";
|
|
3
|
-
import { t as Ke, u as Qe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ze } from "./Title-DlVZnHjs.js";
|
|
5
|
-
import { u as et, U as tt } from "./usePrinter-Dr30K4cu.js";
|
|
6
|
-
import { _ as lt } from "./Tooltip-CveCRFgK.js";
|
|
7
|
-
import { D as at } from "./DataTable-DAgyf9zN.js";
|
|
8
|
-
import { L as ot } from "./Legend-DBhpIX2x.js";
|
|
9
|
-
import st from "./vue-ui-skeleton-DEv_1TFa.js";
|
|
10
|
-
import ut from "./vue-ui-accordion-CmENcGVW.js";
|
|
11
|
-
import { u as be } from "./useNestedProp-DGWP4D-K.js";
|
|
12
|
-
import { _ as rt } from "./PackageVersion-wB6dCDZw.js";
|
|
13
|
-
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const it = ["id"], vt = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"], pt = ["stop-color"], ht = ["stroke", "cx", "cy", "r", "fill"], gt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], ft = ["cx", "cy", "r", "onMouseenter"], yt = {
|
|
15
|
-
key: 3,
|
|
16
|
-
class: "vue-data-ui-watermark"
|
|
17
|
-
}, mt = ["onClick"], bt = { key: 0 }, kt = { key: 1 }, Ct = ["innerHTML"], wt = {
|
|
18
|
-
__name: "vue-ui-rings",
|
|
19
|
-
props: {
|
|
20
|
-
config: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default() {
|
|
23
|
-
return {};
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
dataset: {
|
|
27
|
-
type: Array,
|
|
28
|
-
default() {
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["selectLegend"],
|
|
34
|
-
setup(ke, { expose: Ce, emit: we }) {
|
|
35
|
-
const g = ke, { vue_ui_rings: $e } = Re(), P = u(!1), M = d(() => !!g.dataset && g.dataset.length), L = u(fe()), Te = u(null), z = u(!1), E = u(""), $ = u(null), Y = u(0), S = u(null), q = u(null), J = u(null), K = u(0), Q = u(0), Z = u(0), e = d({
|
|
36
|
-
get: () => ee(),
|
|
37
|
-
set: (t) => t
|
|
38
|
-
});
|
|
39
|
-
function ee() {
|
|
40
|
-
const t = be({
|
|
41
|
-
userConfig: g.config,
|
|
42
|
-
defaultConfig: $e
|
|
43
|
-
});
|
|
44
|
-
return t.theme ? {
|
|
45
|
-
...be({
|
|
46
|
-
userConfig: Ve.vue_ui_rings[t.theme] || g.config,
|
|
47
|
-
defaultConfig: t
|
|
48
|
-
}),
|
|
49
|
-
customPalette: Be[t.theme] || T
|
|
50
|
-
} : t;
|
|
51
|
-
}
|
|
52
|
-
Fe(() => g.config, (t) => {
|
|
53
|
-
e.value = ee(), te(), K.value += 1, Q.value += 1, Z.value += 1;
|
|
54
|
-
}, { deep: !0 });
|
|
55
|
-
const A = u(null);
|
|
56
|
-
Oe(() => {
|
|
57
|
-
te();
|
|
58
|
-
});
|
|
59
|
-
function te() {
|
|
60
|
-
if (De(g.dataset) ? X({
|
|
61
|
-
componentName: "VueUiRings",
|
|
62
|
-
type: "dataset"
|
|
63
|
-
}) : g.dataset.forEach((t, a) => {
|
|
64
|
-
t.values.length || X({
|
|
65
|
-
componentName: "VueUiRings",
|
|
66
|
-
type: "dataset"
|
|
67
|
-
}), Ue({
|
|
68
|
-
datasetObject: t,
|
|
69
|
-
requiredAttributes: ["name", "values"]
|
|
70
|
-
}).forEach((l) => {
|
|
71
|
-
X({
|
|
72
|
-
componentName: "VueUiRings",
|
|
73
|
-
type: "datasetSerieAttribute",
|
|
74
|
-
property: l,
|
|
75
|
-
index: a
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}), e.value.responsive) {
|
|
79
|
-
const t = Ke(() => {
|
|
80
|
-
const { width: a, height: l } = Qe({
|
|
81
|
-
chart: S.value,
|
|
82
|
-
title: e.value.style.chart.title.text ? q.value : null,
|
|
83
|
-
legend: e.value.style.chart.legend.show ? J.value : null
|
|
84
|
-
});
|
|
85
|
-
r.value.width = a, r.value.height = l;
|
|
86
|
-
});
|
|
87
|
-
A.value = new ResizeObserver(t), A.value.observe(S.value.parentNode);
|
|
88
|
-
}
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
P.value = !0;
|
|
91
|
-
}, 600);
|
|
92
|
-
}
|
|
93
|
-
Me(() => {
|
|
94
|
-
A.value && A.value.disconnect();
|
|
95
|
-
});
|
|
96
|
-
const { isPrinting: le, isImaging: ae, generatePdf: oe, generateImage: se } = et({
|
|
97
|
-
elementId: `rings_${L.value}`,
|
|
98
|
-
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
99
|
-
}), ue = d(() => We(e.value.customPalette)), C = u({
|
|
100
|
-
showTable: e.value.table.show,
|
|
101
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
102
|
-
}), r = u({
|
|
103
|
-
height: 360,
|
|
104
|
-
width: 360
|
|
105
|
-
}), _e = d(() => Math.min(r.value.height, r.value.width)), v = u([]);
|
|
106
|
-
function G(t) {
|
|
107
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.push(t), we("selectLegend", c.value.map((a) => ({
|
|
108
|
-
name: a.name,
|
|
109
|
-
color: a.color,
|
|
110
|
-
value: a.value
|
|
111
|
-
})));
|
|
112
|
-
}
|
|
113
|
-
const xe = d(() => Math.max(
|
|
114
|
-
...R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
115
|
-
));
|
|
116
|
-
function re(t) {
|
|
117
|
-
return t / xe.value;
|
|
118
|
-
}
|
|
119
|
-
const R = d(() => g.dataset.map(({ values: t, name: a, color: l = null }, o) => {
|
|
120
|
-
const s = Ee(t).reduce((b, F) => b + F, 0);
|
|
121
|
-
return {
|
|
122
|
-
name: a,
|
|
123
|
-
color: l || ye(l) || ue.value[o] || T[o] || T[o % T.length],
|
|
124
|
-
value: s,
|
|
125
|
-
proportion: s / g.dataset.map((b) => (b.values || []).reduce((F, Ie) => F + Ie, 0)).reduce((b, F) => b + F, 0),
|
|
126
|
-
uid: fe()
|
|
127
|
-
};
|
|
128
|
-
})), ne = d(() => R.value.map((t) => ({
|
|
129
|
-
...t,
|
|
130
|
-
shape: "circle",
|
|
131
|
-
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
132
|
-
segregate: () => G(t.uid),
|
|
133
|
-
isSegregated: v.value.includes(t.uid)
|
|
134
|
-
})).toSorted((t, a) => a.value - t.value)), Ne = d(() => ({
|
|
135
|
-
cy: "rings-div-legend",
|
|
136
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
137
|
-
color: e.value.style.chart.legend.color,
|
|
138
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
139
|
-
paddingBottom: 12,
|
|
140
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
141
|
-
})), y = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), c = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o }, s) => ({
|
|
142
|
-
uid: o,
|
|
143
|
-
name: t,
|
|
144
|
-
color: l || ye(l) || ue.value[s] || T[s] || T[s % T.length],
|
|
145
|
-
value: a,
|
|
146
|
-
proportion: re(a),
|
|
147
|
-
percentage: a / y.value * 100,
|
|
148
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * re(a)
|
|
149
|
-
})).toSorted((t, a) => a.value - t.value));
|
|
150
|
-
function Pe() {
|
|
151
|
-
return c.value.map(
|
|
152
|
-
({ name: t, color: a, value: l, absoluteValues: o, percentage: s }) => ({
|
|
153
|
-
name: t,
|
|
154
|
-
color: a,
|
|
155
|
-
value: l,
|
|
156
|
-
absoluteValues: o,
|
|
157
|
-
percentage: s
|
|
158
|
-
})
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
const p = d(() => _e.value - e.value.style.chart.layout.rings.strokeWidth * 2), H = u(null);
|
|
162
|
-
function Le(t, a) {
|
|
163
|
-
if (v.value.length === g.dataset.length) return;
|
|
164
|
-
H.value = {
|
|
165
|
-
datapoint: a,
|
|
166
|
-
seriesIndex: t,
|
|
167
|
-
series: c.value,
|
|
168
|
-
config: e.value
|
|
169
|
-
}, $.value = t;
|
|
170
|
-
const l = c.value[t], o = e.value.style.chart.tooltip.customFormat;
|
|
171
|
-
if (je(o) && Ye(() => o({
|
|
172
|
-
seriesIndex: t,
|
|
173
|
-
datapoint: a,
|
|
174
|
-
series: c.value,
|
|
175
|
-
config: e.value
|
|
176
|
-
})))
|
|
177
|
-
E.value = o({
|
|
178
|
-
seriesIndex: t,
|
|
179
|
-
datapoint: a,
|
|
180
|
-
series: c.value,
|
|
181
|
-
config: e.value
|
|
182
|
-
});
|
|
183
|
-
else {
|
|
184
|
-
let s = "";
|
|
185
|
-
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${me(
|
|
186
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
187
|
-
l.value,
|
|
188
|
-
_({
|
|
189
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
190
|
-
v: l.value,
|
|
191
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
192
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
193
|
-
}),
|
|
194
|
-
{ datapoint: a, seriesIndex: t }
|
|
195
|
-
)}
|
|
196
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${_({
|
|
197
|
-
v: l.value / y.value * 100,
|
|
198
|
-
s: "%",
|
|
199
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
200
|
-
})})</span></div>` : s += `<b>${_({
|
|
201
|
-
v: l.value / y.value * 100,
|
|
202
|
-
s: "%",
|
|
203
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
204
|
-
})}</b></div>`), E.value = s;
|
|
205
|
-
}
|
|
206
|
-
z.value = !0;
|
|
207
|
-
}
|
|
208
|
-
const w = d(() => {
|
|
209
|
-
const t = c.value.map((l) => ({
|
|
210
|
-
name: l.name,
|
|
211
|
-
color: l.color
|
|
212
|
-
})), a = c.value.map((l) => l.value);
|
|
213
|
-
return { head: t, body: a };
|
|
214
|
-
}), V = d(() => {
|
|
215
|
-
const t = [
|
|
216
|
-
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
217
|
-
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: y.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
218
|
-
"100%"
|
|
219
|
-
], a = w.value.head.map((s, b) => [
|
|
220
|
-
{
|
|
221
|
-
color: s.color,
|
|
222
|
-
name: s.name
|
|
223
|
-
},
|
|
224
|
-
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
225
|
-
isNaN(w.value.body[b] / y.value) ? "-" : (w.value.body[b] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
226
|
-
]), l = {
|
|
227
|
-
th: {
|
|
228
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
229
|
-
color: e.value.table.th.color,
|
|
230
|
-
outline: e.value.table.th.outline
|
|
231
|
-
},
|
|
232
|
-
td: {
|
|
233
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
234
|
-
color: e.value.table.td.color,
|
|
235
|
-
outline: e.value.table.td.outline
|
|
236
|
-
},
|
|
237
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
238
|
-
}, o = [
|
|
239
|
-
e.value.table.columnNames.series,
|
|
240
|
-
e.value.table.columnNames.value,
|
|
241
|
-
e.value.table.columnNames.percentage
|
|
242
|
-
];
|
|
243
|
-
return {
|
|
244
|
-
head: t,
|
|
245
|
-
body: a,
|
|
246
|
-
config: l,
|
|
247
|
-
colNames: o
|
|
248
|
-
};
|
|
249
|
-
});
|
|
250
|
-
function ie() {
|
|
251
|
-
Ae(() => {
|
|
252
|
-
const t = w.value.head.map((o, s) => [[
|
|
253
|
-
o.name
|
|
254
|
-
], [w.value.body[s]], [isNaN(w.value.body[s] / y.value) ? "-" : w.value.body[s] / y.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = qe(a);
|
|
255
|
-
Je({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
const I = u(!1);
|
|
259
|
-
function Se(t) {
|
|
260
|
-
I.value = t, Y.value += 1;
|
|
261
|
-
}
|
|
262
|
-
function ve() {
|
|
263
|
-
C.value.showTable = !C.value.showTable;
|
|
264
|
-
}
|
|
265
|
-
function ce() {
|
|
266
|
-
C.value.showTooltip = !C.value.showTooltip;
|
|
267
|
-
}
|
|
268
|
-
return Ce({
|
|
269
|
-
getData: Pe,
|
|
270
|
-
generatePdf: oe,
|
|
271
|
-
generateCsv: ie,
|
|
272
|
-
generateImage: se,
|
|
273
|
-
toggleTable: ve,
|
|
274
|
-
toggleTooltip: ce
|
|
275
|
-
}), (t, a) => (n(), m("div", {
|
|
276
|
-
ref_key: "ringsChart",
|
|
277
|
-
ref: S,
|
|
278
|
-
class: B(`vue-ui-rings ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
279
|
-
style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
280
|
-
id: `rings_${L.value}`,
|
|
281
|
-
onMouseleave: a[3] || (a[3] = (l) => {
|
|
282
|
-
$.value = null, z.value = !1;
|
|
283
|
-
})
|
|
284
|
-
}, [
|
|
285
|
-
e.value.style.chart.title.text ? (n(), m("div", {
|
|
286
|
-
key: 0,
|
|
287
|
-
ref_key: "chartTitle",
|
|
288
|
-
ref: q,
|
|
289
|
-
style: "width:100%;background:transparent"
|
|
290
|
-
}, [
|
|
291
|
-
(n(), x(Ze, {
|
|
292
|
-
key: `title_${K.value}`,
|
|
293
|
-
config: {
|
|
294
|
-
title: {
|
|
295
|
-
cy: "rings-div-title",
|
|
296
|
-
...e.value.style.chart.title
|
|
297
|
-
},
|
|
298
|
-
subtitle: {
|
|
299
|
-
cy: "rings-div-subtitle",
|
|
300
|
-
...e.value.style.chart.title.subtitle
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}, null, 8, ["config"]))
|
|
304
|
-
], 512)) : N("", !0),
|
|
305
|
-
e.value.userOptions.show && M.value ? (n(), x(tt, {
|
|
306
|
-
ref_key: "details",
|
|
307
|
-
ref: Te,
|
|
308
|
-
key: `user_options_${Y.value}`,
|
|
309
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
310
|
-
color: e.value.style.chart.color,
|
|
311
|
-
isPrinting: i(le),
|
|
312
|
-
isImaging: i(ae),
|
|
313
|
-
uid: L.value,
|
|
314
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
315
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
316
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
317
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
318
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
319
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
320
|
-
isTooltip: C.value.showTooltip,
|
|
321
|
-
isFullscreen: I.value,
|
|
322
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
323
|
-
chartElement: S.value,
|
|
324
|
-
position: e.value.userOptions.position,
|
|
325
|
-
onToggleFullscreen: Se,
|
|
326
|
-
onGeneratePdf: i(oe),
|
|
327
|
-
onGenerateCsv: ie,
|
|
328
|
-
onGenerateImage: i(se),
|
|
329
|
-
onToggleTable: ve,
|
|
330
|
-
onToggleTooltip: ce
|
|
331
|
-
}, ze({ _: 2 }, [
|
|
332
|
-
t.$slots.optionTooltip ? {
|
|
333
|
-
name: "optionTooltip",
|
|
334
|
-
fn: h(() => [
|
|
335
|
-
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
336
|
-
]),
|
|
337
|
-
key: "0"
|
|
338
|
-
} : void 0,
|
|
339
|
-
t.$slots.optionPdf ? {
|
|
340
|
-
name: "optionPdf",
|
|
341
|
-
fn: h(() => [
|
|
342
|
-
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
343
|
-
]),
|
|
344
|
-
key: "1"
|
|
345
|
-
} : void 0,
|
|
346
|
-
t.$slots.optionCsv ? {
|
|
347
|
-
name: "optionCsv",
|
|
348
|
-
fn: h(() => [
|
|
349
|
-
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
350
|
-
]),
|
|
351
|
-
key: "2"
|
|
352
|
-
} : void 0,
|
|
353
|
-
t.$slots.optionImg ? {
|
|
354
|
-
name: "optionImg",
|
|
355
|
-
fn: h(() => [
|
|
356
|
-
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
357
|
-
]),
|
|
358
|
-
key: "3"
|
|
359
|
-
} : void 0,
|
|
360
|
-
t.$slots.optionTable ? {
|
|
361
|
-
name: "optionTable",
|
|
362
|
-
fn: h(() => [
|
|
363
|
-
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
364
|
-
]),
|
|
365
|
-
key: "4"
|
|
366
|
-
} : void 0,
|
|
367
|
-
t.$slots.optionFullscreen ? {
|
|
368
|
-
name: "optionFullscreen",
|
|
369
|
-
fn: h(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
370
|
-
f(t.$slots, "optionFullscreen", D(U({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
371
|
-
]),
|
|
372
|
-
key: "5"
|
|
373
|
-
} : void 0
|
|
374
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
375
|
-
M.value ? (n(), m("svg", {
|
|
376
|
-
key: 2,
|
|
377
|
-
xmlns: i(Ge),
|
|
378
|
-
class: B({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
379
|
-
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
380
|
-
style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
381
|
-
}, [
|
|
382
|
-
de(rt),
|
|
383
|
-
k("defs", null, [
|
|
384
|
-
(n(!0), m(pe, null, he(c.value, (l, o) => (n(), m("radialGradient", {
|
|
385
|
-
cx: "50%",
|
|
386
|
-
cy: "30%",
|
|
387
|
-
r: "50%",
|
|
388
|
-
fx: "50%",
|
|
389
|
-
fy: "50%",
|
|
390
|
-
id: `gradient_${L.value}_${o}`
|
|
391
|
-
}, [
|
|
392
|
-
k("stop", {
|
|
393
|
-
offset: "0%",
|
|
394
|
-
"stop-color": i(He)(i(Xe)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
395
|
-
}, null, 8, dt),
|
|
396
|
-
k("stop", {
|
|
397
|
-
offset: "100%",
|
|
398
|
-
"stop-color": l.color
|
|
399
|
-
}, null, 8, pt)
|
|
400
|
-
], 8, ct))), 256))
|
|
401
|
-
]),
|
|
402
|
-
(n(!0), m(pe, null, he(c.value, (l, o) => (n(), m("g", null, [
|
|
403
|
-
k("circle", {
|
|
404
|
-
class: B({
|
|
405
|
-
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
406
|
-
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
407
|
-
"vue-ui-rings-opacity": $.value !== null && $.value !== o
|
|
408
|
-
}),
|
|
409
|
-
style: O(`animation-delay:${o * 100}ms`),
|
|
410
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
411
|
-
cx: r.value.width / 2,
|
|
412
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
413
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
414
|
-
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
415
|
-
}, null, 14, ht),
|
|
416
|
-
k("circle", {
|
|
417
|
-
class: B({
|
|
418
|
-
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
419
|
-
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
420
|
-
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
421
|
-
"vue-ui-rings-blur": $.value !== null && $.value !== o
|
|
422
|
-
}),
|
|
423
|
-
style: O(`animation-delay:${o * 100}ms`),
|
|
424
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
425
|
-
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
426
|
-
cx: r.value.width / 2,
|
|
427
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
428
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
429
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${L.value}_${o})` : l.color
|
|
430
|
-
}, null, 14, gt),
|
|
431
|
-
k("circle", {
|
|
432
|
-
"data-cy-trap": "",
|
|
433
|
-
stroke: "none",
|
|
434
|
-
cx: r.value.width / 2,
|
|
435
|
-
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + p.value * c.value[0].proportion / 2 - p.value * l.proportion / 2 - 2 * (o + 1),
|
|
436
|
-
r: i(j)(p.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * l.proportion / 2 * 0.9),
|
|
437
|
-
fill: "transparent",
|
|
438
|
-
onMouseenter: (s) => Le(o, l),
|
|
439
|
-
onMouseleave: a[0] || (a[0] = (s) => {
|
|
440
|
-
$.value = null, z.value = !1;
|
|
441
|
-
})
|
|
442
|
-
}, null, 40, ft)
|
|
443
|
-
]))), 256)),
|
|
444
|
-
f(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
445
|
-
], 14, vt)) : N("", !0),
|
|
446
|
-
t.$slots.watermark ? (n(), m("div", yt, [
|
|
447
|
-
f(t.$slots, "watermark", D(U({ isPrinting: i(le) || i(ae) })), void 0, !0)
|
|
448
|
-
])) : N("", !0),
|
|
449
|
-
M.value ? N("", !0) : (n(), x(st, {
|
|
450
|
-
key: 4,
|
|
451
|
-
config: {
|
|
452
|
-
type: "rings",
|
|
453
|
-
style: {
|
|
454
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
455
|
-
rings: {
|
|
456
|
-
color: "#CCCCCC"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}, null, 8, ["config"])),
|
|
461
|
-
k("div", {
|
|
462
|
-
ref_key: "chartLegend",
|
|
463
|
-
ref: J
|
|
464
|
-
}, [
|
|
465
|
-
e.value.style.chart.legend.show ? (n(), x(ot, {
|
|
466
|
-
key: `legend_${Z.value}`,
|
|
467
|
-
legendSet: ne.value,
|
|
468
|
-
config: Ne.value,
|
|
469
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l.uid))
|
|
470
|
-
}, {
|
|
471
|
-
item: h(({ legend: l, index: o }) => [
|
|
472
|
-
k("div", {
|
|
473
|
-
"data-cy-legend-item": "",
|
|
474
|
-
onClick: (s) => G(l.uid),
|
|
475
|
-
style: O(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
476
|
-
}, [
|
|
477
|
-
ge(W(l.name) + ": " + W(i(me)(
|
|
478
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
479
|
-
l.value,
|
|
480
|
-
i(_)({
|
|
481
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
482
|
-
v: l.value,
|
|
483
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
484
|
-
r: e.value.style.chart.legend.roundingValue
|
|
485
|
-
}),
|
|
486
|
-
{ datapoint: l, seriesIndex: o }
|
|
487
|
-
)) + " ", 1),
|
|
488
|
-
v.value.includes(l.uid) ? (n(), m("span", kt, " ( - % ) ")) : (n(), m("span", bt, " (" + W(isNaN(l.value / y.value) ? "-" : i(_)({
|
|
489
|
-
v: l.value / y.value * 100,
|
|
490
|
-
s: "%",
|
|
491
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
492
|
-
})) + ") ", 1))
|
|
493
|
-
], 12, mt)
|
|
494
|
-
]),
|
|
495
|
-
_: 1
|
|
496
|
-
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
497
|
-
key: 1,
|
|
498
|
-
legend: ne.value
|
|
499
|
-
}, void 0, !0)
|
|
500
|
-
], 512),
|
|
501
|
-
de(lt, {
|
|
502
|
-
show: C.value.showTooltip && z.value && v.value.length < g.dataset.length,
|
|
503
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
504
|
-
color: e.value.style.chart.tooltip.color,
|
|
505
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
506
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
507
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
508
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
509
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
510
|
-
position: e.value.style.chart.tooltip.position,
|
|
511
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
512
|
-
parent: S.value,
|
|
513
|
-
content: E.value,
|
|
514
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
515
|
-
}, {
|
|
516
|
-
"tooltip-before": h(() => [
|
|
517
|
-
f(t.$slots, "tooltip-before", D(U({ ...H.value })), void 0, !0)
|
|
518
|
-
]),
|
|
519
|
-
"tooltip-after": h(() => [
|
|
520
|
-
f(t.$slots, "tooltip-after", D(U({ ...H.value })), void 0, !0)
|
|
521
|
-
]),
|
|
522
|
-
_: 3
|
|
523
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
524
|
-
M.value ? (n(), x(ut, {
|
|
525
|
-
key: 5,
|
|
526
|
-
hideDetails: "",
|
|
527
|
-
config: {
|
|
528
|
-
open: C.value.showTable,
|
|
529
|
-
maxHeight: 1e4,
|
|
530
|
-
body: {
|
|
531
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
|
-
color: e.value.style.chart.color
|
|
533
|
-
},
|
|
534
|
-
head: {
|
|
535
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
536
|
-
color: e.value.style.chart.color
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}, {
|
|
540
|
-
content: h(() => [
|
|
541
|
-
(n(), x(at, {
|
|
542
|
-
key: `table_${Q.value}`,
|
|
543
|
-
colNames: V.value.colNames,
|
|
544
|
-
head: V.value.head,
|
|
545
|
-
body: V.value.body,
|
|
546
|
-
config: V.value.config,
|
|
547
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
548
|
-
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
549
|
-
}, {
|
|
550
|
-
th: h(({ th: l }) => [
|
|
551
|
-
k("div", {
|
|
552
|
-
innerHTML: l,
|
|
553
|
-
style: { display: "flex", "align-items": "center" }
|
|
554
|
-
}, null, 8, Ct)
|
|
555
|
-
]),
|
|
556
|
-
td: h(({ td: l }) => [
|
|
557
|
-
ge(W(l.name || l), 1)
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
561
|
-
]),
|
|
562
|
-
_: 1
|
|
563
|
-
}, 8, ["config"])) : N("", !0)
|
|
564
|
-
], 46, it));
|
|
565
|
-
}
|
|
566
|
-
}, At = /* @__PURE__ */ nt(wt, [["__scopeId", "data-v-08656179"]]);
|
|
567
|
-
export {
|
|
568
|
-
At as default
|
|
569
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dfhvf8hT.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),Me=require("./Title-BHmTg9iK.cjs"),fe=require("./usePrinter-BQQasUin.cjs"),Se=require("./Tooltip-DBzXz806.cjs"),$e=require("./Legend-CHQgjBuK.cjs"),me=require("./Shape-DQ0Hh2Gg.cjs"),Ee=require("./DataTable-BwH-MU-S.cjs"),Le=require("./vue-ui-skeleton-fqwO2mHD.cjs"),ze=require("./vue-ui-accordion-Deyo7jw7.cjs"),ge=require("./useNestedProp-iuDCMc2p.cjs"),Ve=require("./PackageVersion-Djty0wb2.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Pe=["xmlns","viewBox"],De={key:0},Fe=["x1","x2","y1","y2","stroke","stroke-width"],We=["x1","x2","y1","y2","stroke","stroke-width"],Oe={key:1},qe=["points","fill","stroke-width","stroke-dasharray","stroke"],Ie={key:0},Xe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Ye={key:1},je={key:2},Re=["id"],Ge=["stop-color"],Ue=["stop-color"],He=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["x","y","width","height","fill","stroke","stroke-width","rx"],Ze=["x","y","height","width","fill","stroke","stroke-width","rx"],et={key:0},tt=["d","stroke","stroke-width"],lt=["d","stroke","stroke-width"],at=["d","stroke","stroke-width"],ot=["d","stroke","stroke-width"],st={key:3,style:{"pointer-events":"none !important"}},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],nt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ut=["x","y","font-size","fill","font-weight","text-anchor"],it=["x","y","font-size","fill","font-weight"],ct=["cx","cy","r","fill","stroke","stroke-width"],yt=["cx","cy","r","fill","stroke","stroke-width"],vt=["x","y","font-size","fill","font-weight","text-anchor"],dt={key:4},pt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],ft=["id","transform","font-size","font-weight","fill"],mt={key:5},gt=["x","y","font-size","fill"],kt=["x","y","font-size","fill"],xt=["font-size","font-weight","fill","x","y"],bt=["id"],_t=["x","y","width","height"],wt={key:6},Bt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Ct=["x","y","fill","font-size","font-weight"],Nt={key:3,class:"vue-data-ui-watermark"},Mt=["onClick"],St={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},$t={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Et={key:0},Lt=["innerHTML"],zt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:xe}){const C=ke,{vue_ui_scatter:be}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),_e=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>ee(),set:a=>a});function ee(){const a=ge.useNestedProp({userConfig:C.config,defaultConfig:be});return a.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=ee(),te(),K.value+=1,Q.value+=1,Z.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{te()});function te(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(A.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:se}=fe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),re=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),M=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ye(l),isSegregated:p.value.includes(l)}})),we=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,B={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(B.y2-B.y1)/(B.x2-B.x1),_=B.y1-m*B.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-_)/m)),O={x:N,y:m*N+_<=t.value.style.layout.padding.top?n.value.top:m*N+_};return{...a,correlation:B,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*_)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+_)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ne=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function Be(){return x.value}function ue(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,V=h-i,B=E/u,m=V/u,_=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-r)/B),G=Math.floor((z-i)/m);_[R]||(_[R]=0),N[G]||(N[G]=0),_[R]+=1,N[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(r+(f+.5)*B),d.push(i+(f+.5)*m);const L=Math.max(..._),j=Math.max(...N);return{x:_,y:N,avgX:O,avgY:d,maxX:L,maxY:j}}const S=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ue(X.value,S.value)),Ce=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const r=ue(l,S.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),w=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function ie(a,u){w.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function ce(){q.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function ye(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ve(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),l={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};return{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Ne(a){T.value=a,U.value+=1}function de(){M.value.showTable=!M.value.showTable}function pe(){M.value.showTooltip=!M.value.showTooltip}return xe({getData:Be,generatePdf:oe,generateCsv:ve,generateImage:se,toggleTable:de,toggleTooltip:pe}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:_e,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ae),isPrinting:e.unref(le),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:M.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,onToggleFullscreen:Ne,onGeneratePdf:e.unref(oe),onGenerateCsv:ve,onGenerateImage:e.unref(se),onToggleTable:de,onToggleTooltip:pe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ve._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Fe),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,We)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:w.value&&w.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,Xe))),256))])):(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(me._sfc_main,{plot:{x:o.x,y:o.y},radius:w.value&&w.value===o.id?o.weight*2:o.weight,shape:l.shape,color:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ue)],8,Re),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ke)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/S.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/S.value<=0?1e-4:n.value.width/S.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Qe)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/S.value/2,height:n.value.height/S.value<=0?1e-4:n.value.height/S.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ze)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,tt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,lt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,at)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ot))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,rt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,nt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,ut),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,it),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,ct),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,yt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,vt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,pt),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ht),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ft)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",mt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,gt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,kt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,xt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,_t)],8,bt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Ct)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Le.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${Z.value}`,legendSet:$.value,config:we.value,onClickMarker:u[0]||(u[0]=({legend:l})=>ye(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Mt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:M.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createElementBlock("svg",$t,[e.createVNode(me._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),P.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ee.DataTable,{key:`table_${Q.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>M.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Lt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Te))}},Vt=Ae._export_sfc(zt,[["__scopeId","data-v-a6514d5f"]]);exports.default=Vt;
|