vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.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-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ref as n, computed as v, watch as Be, onMounted as De, onBeforeUnmount as We, openBlock as u, createElementBlock as f, normalizeClass as W, normalizeStyle as S, unref as r, createBlock as _, createCommentVNode as k, createSlots as Ee, withCtx as p, renderSlot as h, normalizeProps as I, guardReactiveProps as M, createVNode as be, createElementVNode as C, Fragment as ke, renderList as Ce, createTextVNode as we, toDisplayString as E, nextTick as Ge } from "vue";
|
|
2
|
-
import { u as He, c as $e, t as Xe, a as je, p as x, o as Ye, e as
|
|
2
|
+
import { u as He, c as $e, t as Xe, a as je, p as x, o as Ye, e as q, g as qe, b as Je, J as Ke, d as Te, f as N, X as Qe, s as Ze, w as et, v as J, i as _e, x as tt, y as lt, q as ot, r as at } from "./index-K5uyh1gA.js";
|
|
3
3
|
import { t as st, u as nt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as rt } from "./Title-
|
|
5
|
-
import { u as ut, U as it } from "./usePrinter-
|
|
6
|
-
import { _ as vt } from "./Tooltip-
|
|
7
|
-
import { D as ct } from "./DataTable-
|
|
8
|
-
import { L as dt } from "./Legend-
|
|
9
|
-
import pt from "./vue-ui-skeleton-
|
|
10
|
-
import ht from "./vue-ui-accordion-
|
|
11
|
-
import { u as xe } from "./useNestedProp-
|
|
12
|
-
import { _ as gt } from "./PackageVersion-
|
|
13
|
-
import { P as ft } from "./PenAndPaper-
|
|
4
|
+
import { _ as rt } from "./Title-aMb2ETf7.js";
|
|
5
|
+
import { u as ut, U as it } from "./usePrinter-p_ZZlGc9.js";
|
|
6
|
+
import { _ as vt } from "./Tooltip-BRZ3DT4p.js";
|
|
7
|
+
import { D as ct } from "./DataTable-COkA4Nyz.js";
|
|
8
|
+
import { L as dt } from "./Legend-bYlSC7I7.js";
|
|
9
|
+
import pt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
10
|
+
import ht from "./vue-ui-accordion-CsJT7Az3.js";
|
|
11
|
+
import { u as xe } from "./useNestedProp-DifqJZAs.js";
|
|
12
|
+
import { _ as gt } from "./PackageVersion-Dz3KcTL4.js";
|
|
13
|
+
import { P as ft } from "./PenAndPaper-BycdTwSP.js";
|
|
14
14
|
import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], $t = ["stop-color"], Tt = ["stroke", "cx", "cy", "r", "fill"], _t = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], xt = ["cx", "cy", "r", "onMouseenter"], Nt = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, Ot = ["onClick"], Pt = { key: 0 }, St = { key: 1 }, Lt = ["innerHTML"], At = {
|
|
20
20
|
__name: "vue-ui-rings",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -33,11 +33,11 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(Ne, { expose:
|
|
37
|
-
const y = Ne, { vue_ui_rings: Se } = He(), L = n(!1), V = v(() => !!y.dataset && y.dataset.length), A = n($e()), Le = n(null), z = n(!1), G = n(""), T = n(null),
|
|
36
|
+
setup(Ne, { expose: Oe, emit: Pe }) {
|
|
37
|
+
const y = Ne, { vue_ui_rings: Se } = He(), L = n(!1), V = v(() => !!y.dataset && y.dataset.length), A = n($e()), Le = n(null), z = n(!1), G = n(""), T = n(null), K = n(0), O = n(null), Q = n(null), Z = n(null), ee = n(null), te = n(null), le = n(0), oe = n(0), ae = n(0), e = v({
|
|
38
38
|
get: () => re(),
|
|
39
39
|
set: (t) => t
|
|
40
|
-
}), { userOptionsVisible:
|
|
40
|
+
}), { userOptionsVisible: H, setUserOptionsVisibility: se, keepUserOptionState: ne } = yt({ config: e.value });
|
|
41
41
|
function re() {
|
|
42
42
|
const t = xe({
|
|
43
43
|
userConfig: y.config,
|
|
@@ -52,25 +52,25 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
52
52
|
} : t;
|
|
53
53
|
}
|
|
54
54
|
Be(() => y.config, (t) => {
|
|
55
|
-
e.value = re(), ue(),
|
|
55
|
+
e.value = re(), H.value = !e.value.showOnChartHover, ue(), le.value += 1, oe.value += 1, ae.value += 1;
|
|
56
56
|
}, { deep: !0 });
|
|
57
57
|
const R = n(null);
|
|
58
58
|
De(() => {
|
|
59
59
|
ue();
|
|
60
60
|
});
|
|
61
61
|
function ue() {
|
|
62
|
-
if (Ye(y.dataset) ?
|
|
62
|
+
if (Ye(y.dataset) ? q({
|
|
63
63
|
componentName: "VueUiRings",
|
|
64
64
|
type: "dataset"
|
|
65
65
|
}) : y.dataset.forEach((t, o) => {
|
|
66
|
-
t.values.length ||
|
|
66
|
+
t.values.length || q({
|
|
67
67
|
componentName: "VueUiRings",
|
|
68
68
|
type: "dataset"
|
|
69
69
|
}), qe({
|
|
70
70
|
datasetObject: t,
|
|
71
71
|
requiredAttributes: ["name", "values"]
|
|
72
72
|
}).forEach((l) => {
|
|
73
|
-
|
|
73
|
+
q({
|
|
74
74
|
componentName: "VueUiRings",
|
|
75
75
|
type: "datasetSerieAttribute",
|
|
76
76
|
property: l,
|
|
@@ -80,15 +80,15 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
80
80
|
}), e.value.responsive) {
|
|
81
81
|
const t = st(() => {
|
|
82
82
|
const { width: o, height: l } = nt({
|
|
83
|
-
chart:
|
|
84
|
-
title: e.value.style.chart.title.text ?
|
|
85
|
-
legend: e.value.style.chart.legend.show ?
|
|
86
|
-
source:
|
|
87
|
-
noTitle:
|
|
83
|
+
chart: O.value,
|
|
84
|
+
title: e.value.style.chart.title.text ? Q.value : null,
|
|
85
|
+
legend: e.value.style.chart.legend.show ? Z.value : null,
|
|
86
|
+
source: ee.value,
|
|
87
|
+
noTitle: te.value
|
|
88
88
|
});
|
|
89
89
|
i.value.width = o, i.value.height = l;
|
|
90
90
|
});
|
|
91
|
-
R.value = new ResizeObserver(t), R.value.observe(
|
|
91
|
+
R.value = new ResizeObserver(t), R.value.observe(O.value.parentNode);
|
|
92
92
|
}
|
|
93
93
|
setTimeout(() => {
|
|
94
94
|
L.value = !0;
|
|
@@ -107,8 +107,8 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
107
107
|
height: 360,
|
|
108
108
|
width: 360
|
|
109
109
|
}), Fe = v(() => Math.min(i.value.height, i.value.width)), c = n([]);
|
|
110
|
-
function
|
|
111
|
-
c.value.includes(t) ? c.value = c.value.filter((o) => o !== t) : c.value.push(t),
|
|
110
|
+
function X(t) {
|
|
111
|
+
c.value.includes(t) ? c.value = c.value.filter((o) => o !== t) : c.value.push(t), Pe("selectLegend", d.value.map((o) => ({
|
|
112
112
|
name: o.name,
|
|
113
113
|
color: o.color,
|
|
114
114
|
value: o.value
|
|
@@ -133,7 +133,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
133
133
|
...t,
|
|
134
134
|
shape: "circle",
|
|
135
135
|
opacity: c.value.includes(t.uid) ? 0.5 : 1,
|
|
136
|
-
segregate: () =>
|
|
136
|
+
segregate: () => X(t.uid),
|
|
137
137
|
isSegregated: c.value.includes(t.uid)
|
|
138
138
|
})).toSorted((t, o) => o.value - t.value)), Me = v(() => ({
|
|
139
139
|
cy: "rings-div-legend",
|
|
@@ -162,10 +162,10 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
162
162
|
})
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
const g = v(() => Fe.value - e.value.style.chart.layout.rings.strokeWidth * 2),
|
|
165
|
+
const g = v(() => Fe.value - e.value.style.chart.layout.rings.strokeWidth * 2), j = n(null);
|
|
166
166
|
function ze(t, o) {
|
|
167
167
|
if (c.value.length === y.dataset.length) return;
|
|
168
|
-
|
|
168
|
+
j.value = {
|
|
169
169
|
datapoint: o,
|
|
170
170
|
seriesIndex: t,
|
|
171
171
|
series: d.value,
|
|
@@ -259,9 +259,9 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
259
259
|
at({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const P = n(!1);
|
|
263
263
|
function Re(t) {
|
|
264
|
-
|
|
264
|
+
P.value = t, K.value += 1;
|
|
265
265
|
}
|
|
266
266
|
function ye() {
|
|
267
267
|
w.value.showTable = !w.value.showTable;
|
|
@@ -270,21 +270,21 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
270
270
|
w.value.showTooltip = !w.value.showTooltip;
|
|
271
271
|
}
|
|
272
272
|
const D = n(!1);
|
|
273
|
-
function
|
|
273
|
+
function Y() {
|
|
274
274
|
D.value = !D.value;
|
|
275
275
|
}
|
|
276
|
-
return
|
|
276
|
+
return Oe({
|
|
277
277
|
getData: Ve,
|
|
278
278
|
generatePdf: ce,
|
|
279
279
|
generateCsv: fe,
|
|
280
280
|
generateImage: de,
|
|
281
281
|
toggleTable: ye,
|
|
282
282
|
toggleTooltip: me,
|
|
283
|
-
toggleAnnotator:
|
|
283
|
+
toggleAnnotator: Y
|
|
284
284
|
}), (t, o) => (u(), f("div", {
|
|
285
285
|
ref_key: "ringsChart",
|
|
286
|
-
ref:
|
|
287
|
-
class: W(`vue-ui-rings ${
|
|
286
|
+
ref: O,
|
|
287
|
+
class: W(`vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
288
288
|
style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
289
289
|
id: `rings_${A.value}`,
|
|
290
290
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
@@ -294,27 +294,27 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
294
294
|
}, [
|
|
295
295
|
e.value.userOptions.buttons.annotator ? (u(), _(ft, {
|
|
296
296
|
key: 0,
|
|
297
|
-
parent:
|
|
297
|
+
parent: O.value,
|
|
298
298
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
299
299
|
color: e.value.style.chart.color,
|
|
300
300
|
active: D.value,
|
|
301
|
-
onClose:
|
|
301
|
+
onClose: Y
|
|
302
302
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
|
|
303
303
|
Ae.value ? (u(), f("div", {
|
|
304
304
|
key: 1,
|
|
305
305
|
ref_key: "noTitle",
|
|
306
|
-
ref:
|
|
306
|
+
ref: te,
|
|
307
307
|
class: "vue-data-ui-no-title-space",
|
|
308
308
|
style: "height:36px; width: 100%;background:transparent"
|
|
309
309
|
}, null, 512)) : k("", !0),
|
|
310
310
|
e.value.style.chart.title.text ? (u(), f("div", {
|
|
311
311
|
key: 2,
|
|
312
312
|
ref_key: "chartTitle",
|
|
313
|
-
ref:
|
|
313
|
+
ref: Q,
|
|
314
314
|
style: "width:100%;background:transparent"
|
|
315
315
|
}, [
|
|
316
316
|
(u(), _(rt, {
|
|
317
|
-
key: `title_${
|
|
317
|
+
key: `title_${le.value}`,
|
|
318
318
|
config: {
|
|
319
319
|
title: {
|
|
320
320
|
cy: "rings-div-title",
|
|
@@ -327,10 +327,10 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
327
327
|
}
|
|
328
328
|
}, null, 8, ["config"]))
|
|
329
329
|
], 512)) : k("", !0),
|
|
330
|
-
e.value.userOptions.show && V.value && (r(ne) || r(
|
|
330
|
+
e.value.userOptions.show && V.value && (r(ne) || r(H)) ? (u(), _(it, {
|
|
331
331
|
ref_key: "details",
|
|
332
332
|
ref: Le,
|
|
333
|
-
key: `user_options_${
|
|
333
|
+
key: `user_options_${K.value}`,
|
|
334
334
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
335
335
|
color: e.value.style.chart.color,
|
|
336
336
|
isPrinting: r(ie),
|
|
@@ -343,9 +343,9 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
343
343
|
hasTable: e.value.userOptions.buttons.table,
|
|
344
344
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
345
345
|
isTooltip: w.value.showTooltip,
|
|
346
|
-
isFullscreen:
|
|
346
|
+
isFullscreen: P.value,
|
|
347
347
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
348
|
-
chartElement:
|
|
348
|
+
chartElement: O.value,
|
|
349
349
|
position: e.value.userOptions.position,
|
|
350
350
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
351
351
|
isAnnotation: D.value,
|
|
@@ -355,9 +355,9 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
355
355
|
onGenerateImage: r(de),
|
|
356
356
|
onToggleTable: ye,
|
|
357
357
|
onToggleTooltip: me,
|
|
358
|
-
onToggleAnnotator:
|
|
358
|
+
onToggleAnnotator: Y,
|
|
359
359
|
style: S({
|
|
360
|
-
visibility: r(ne) ? r(
|
|
360
|
+
visibility: r(ne) ? r(H) ? "visible" : "hidden" : "visible"
|
|
361
361
|
})
|
|
362
362
|
}, Ee({ _: 2 }, [
|
|
363
363
|
t.$slots.optionTooltip ? {
|
|
@@ -413,7 +413,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
413
413
|
V.value ? (u(), f("svg", {
|
|
414
414
|
key: 4,
|
|
415
415
|
xmlns: r(Qe),
|
|
416
|
-
class: W({ "vue-data-ui-fullscreen--on":
|
|
416
|
+
class: W({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
417
417
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
418
418
|
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
419
419
|
}, [
|
|
@@ -448,7 +448,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
448
448
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
449
449
|
cx: i.value.width / 2,
|
|
450
450
|
cy: a === 0 ? i.value.height / 2 : i.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
451
|
-
r: r(
|
|
451
|
+
r: r(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
452
452
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
453
453
|
}, null, 14, Tt),
|
|
454
454
|
C("circle", {
|
|
@@ -463,7 +463,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
463
463
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
464
464
|
cx: i.value.width / 2,
|
|
465
465
|
cy: a === 0 ? i.value.height / 2 : i.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
466
|
-
r: r(
|
|
466
|
+
r: r(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
467
467
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${A.value}_${a})` : l.color
|
|
468
468
|
}, null, 14, _t),
|
|
469
469
|
C("circle", {
|
|
@@ -471,7 +471,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
471
471
|
stroke: "none",
|
|
472
472
|
cx: i.value.width / 2,
|
|
473
473
|
cy: a === 0 ? i.value.height / 2 : i.value.height / 2 + g.value * d.value[0].proportion / 2 - g.value * l.proportion / 2 - 2 * (a + 1),
|
|
474
|
-
r: r(
|
|
474
|
+
r: r(J)(g.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : g.value * l.proportion / 2 * 0.9),
|
|
475
475
|
fill: "transparent",
|
|
476
476
|
onMouseenter: (s) => ze(a, l),
|
|
477
477
|
onMouseleave: o[0] || (o[0] = (s) => {
|
|
@@ -498,18 +498,18 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
498
498
|
}, null, 8, ["config"])),
|
|
499
499
|
C("div", {
|
|
500
500
|
ref_key: "chartLegend",
|
|
501
|
-
ref:
|
|
501
|
+
ref: Z
|
|
502
502
|
}, [
|
|
503
503
|
e.value.style.chart.legend.show ? (u(), _(dt, {
|
|
504
|
-
key: `legend_${
|
|
504
|
+
key: `legend_${ae.value}`,
|
|
505
505
|
legendSet: ge.value,
|
|
506
506
|
config: Me.value,
|
|
507
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
507
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => X(l.uid))
|
|
508
508
|
}, {
|
|
509
509
|
item: p(({ legend: l, index: a }) => [
|
|
510
510
|
C("div", {
|
|
511
511
|
"data-cy-legend-item": "",
|
|
512
|
-
onClick: (s) =>
|
|
512
|
+
onClick: (s) => X(l.uid),
|
|
513
513
|
style: S(`opacity:${c.value.includes(l.uid) ? 0.5 : 1}`)
|
|
514
514
|
}, [
|
|
515
515
|
we(E(l.name) + ": " + E(r(_e)(
|
|
@@ -523,12 +523,12 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
523
523
|
}),
|
|
524
524
|
{ datapoint: l, seriesIndex: a }
|
|
525
525
|
)) + " ", 1),
|
|
526
|
-
c.value.includes(l.uid) ? (u(), f("span", St, " ( - % ) ")) : (u(), f("span",
|
|
526
|
+
c.value.includes(l.uid) ? (u(), f("span", St, " ( - % ) ")) : (u(), f("span", Pt, " (" + E(isNaN(l.value / m.value) ? "-" : r(N)({
|
|
527
527
|
v: l.value / m.value * 100,
|
|
528
528
|
s: "%",
|
|
529
529
|
r: e.value.style.chart.legend.roundingPercentage
|
|
530
530
|
})) + ") ", 1))
|
|
531
|
-
], 12,
|
|
531
|
+
], 12, Ot)
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
|
|
@@ -539,7 +539,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
539
539
|
t.$slots.source ? (u(), f("div", {
|
|
540
540
|
key: 7,
|
|
541
541
|
ref_key: "source",
|
|
542
|
-
ref:
|
|
542
|
+
ref: ee,
|
|
543
543
|
dir: "auto"
|
|
544
544
|
}, [
|
|
545
545
|
h(t.$slots, "source", {}, void 0, !0)
|
|
@@ -555,16 +555,16 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
555
555
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
556
556
|
position: e.value.style.chart.tooltip.position,
|
|
557
557
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
558
|
-
parent:
|
|
558
|
+
parent: O.value,
|
|
559
559
|
content: G.value,
|
|
560
|
-
isFullscreen:
|
|
560
|
+
isFullscreen: P.value,
|
|
561
561
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
562
562
|
}, {
|
|
563
563
|
"tooltip-before": p(() => [
|
|
564
|
-
h(t.$slots, "tooltip-before", I(M({ ...
|
|
564
|
+
h(t.$slots, "tooltip-before", I(M({ ...j.value })), void 0, !0)
|
|
565
565
|
]),
|
|
566
566
|
"tooltip-after": p(() => [
|
|
567
|
-
h(t.$slots, "tooltip-after", I(M({ ...
|
|
567
|
+
h(t.$slots, "tooltip-after", I(M({ ...j.value })), void 0, !0)
|
|
568
568
|
]),
|
|
569
569
|
_: 3
|
|
570
570
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -586,7 +586,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
586
586
|
}, {
|
|
587
587
|
content: p(() => [
|
|
588
588
|
(u(), _(ct, {
|
|
589
|
-
key: `table_${
|
|
589
|
+
key: `table_${oe.value}`,
|
|
590
590
|
colNames: B.value.colNames,
|
|
591
591
|
head: B.value.head,
|
|
592
592
|
body: B.value.body,
|
|
@@ -610,7 +610,7 @@ const bt = ["id"], kt = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"],
|
|
|
610
610
|
}, 8, ["config"])) : k("", !0)
|
|
611
611
|
], 46, bt));
|
|
612
612
|
}
|
|
613
|
-
}, Yt = /* @__PURE__ */ mt(At, [["__scopeId", "data-v-
|
|
613
|
+
}, Yt = /* @__PURE__ */ mt(At, [["__scopeId", "data-v-2f2c85e4"]]);
|
|
614
614
|
export {
|
|
615
615
|
Yt as default
|
|
616
616
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),Be=require("./useResponsive-BJ7DTGpm.cjs"),Te=require("./Title-B7ruS8yl.cjs"),we=require("./usePrinter-DHv-BwME.cjs"),Pe=require("./Tooltip-BqSN71SL.cjs"),De=require("./Legend-CR9ydX8N.cjs"),_e=require("./Shape-BBp5EwJH.cjs"),Oe=require("./DataTable-CwAdpLng.cjs"),Fe=require("./vue-ui-skeleton-BTN1PKkz.cjs"),We=require("./vue-ui-accordion-kr18wKfc.cjs"),Ce=require("./useNestedProp-C6IvqE-r.cjs"),qe=require("./PackageVersion-C1F3QLoY.cjs"),Ie=require("./PenAndPaper-DDheVRNG.cjs"),Xe=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=["id"],Re=["xmlns","viewBox"],Ue={key:0},Ge=["x1","x2","y1","y2","stroke","stroke-width"],He=["x1","x2","y1","y2","stroke","stroke-width"],Je={key:1},Ke=["points","fill","stroke-width","stroke-dasharray","stroke"],Qe={key:0},Ze=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],et={key:1},tt={key:2},lt=["id"],at=["stop-color"],ot=["stop-color"],st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["x","y","width","height","fill","stroke","stroke-width","rx"],it=["x","y","height","width","fill","stroke","stroke-width","rx"],ct={key:0},yt=["d","stroke","stroke-width"],vt=["d","stroke","stroke-width"],dt=["d","stroke","stroke-width"],pt=["d","stroke","stroke-width"],ft={key:3,style:{"pointer-events":"none !important"}},ht=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],mt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],gt=["x","y","font-size","fill","font-weight","text-anchor"],kt=["x","y","font-size","fill","font-weight"],xt=["cx","cy","r","fill","stroke","stroke-width"],bt=["cx","cy","r","fill","stroke","stroke-width"],Bt=["x","y","font-size","fill","font-weight","text-anchor"],wt={key:4},_t=["x","y","font-size","fill"],Ct=["x","y","font-size","fill"],Nt=["id","transform","font-size","font-weight","fill"],St={key:5},Mt=["x","y","font-size","fill"],$t=["x","y","font-size","fill"],Et=["font-size","font-weight","fill","x","y"],Lt=["id"],zt=["x","y","width","height"],Vt={key:6},At=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Tt=["x","y","fill","font-size","font-weight"],Pt={key:5,class:"vue-data-ui-watermark"},Dt=["onClick"],Ot={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},Ft={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Wt={key:0},qt=["innerHTML"],It={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Ne,{expose:Se}){const C=Ne,{vue_ui_scatter:Me}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),$e=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),V=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ne(),set:a=>a}),{userOptionsVisible:Y,setUserOptionsVisibility:se,keepUserOptionState:re}=Xe.useUserOptionState({config:t.value});function ne(){const a=Ce.useNestedProp({userConfig:C.config,defaultConfig:Me});return a.theme?{...Ce.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=ne(),Y.value=!t.value.showOnChartHover,ue(),le.value+=1,ae.value+=1,oe.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{ue()});function ue(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=Be.throttle(()=>{const{width:n,height:l}=Be.useResponsive({chart:V.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});k.value.width=n,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(V.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:ie,isImaging:ce,generatePdf:ye,generateImage:ve}=we.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),Ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),de=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),S=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}),O=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+O.value,right:k.value.width-t.value.style.layout.padding.right-O.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-O.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-O.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(T=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${T}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=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:n,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:u.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*u.value.height})),$=e.computed(()=>C.dataset.map((a,n)=>{const l=`cluster_${g.value}_${n}`;return{...a,values:s.largestTriangleThreeBuckets({data:a.values,threshold:t.value.downsample.threshold}),id:l,color:a.color?a.color:de.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ge(l),isSegregated:p.value.includes(l)}})),Le=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":""})),j=e.computed(()=>$.value.map((a,n)=>({...a,plots:a.values.map(l=>({x:u.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*u.value.width,y:u.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*u.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:de.value[n]||s.palette[n]||s.palette[n%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(()=>j.value.map(a=>{const n=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-n)*(d.y-l),o+=(d.x-n)**2,i+=(d.y-l)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),T=l-E*n,_={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+T,y2:E*u.value.right+T,coefficient:f},m=(_.y2-_.y1)/(_.x2-_.x1),B=_.y1-m*_.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-B)/m)),q={x:N,y:m*N+B<=t.value.style.layout.padding.top?u.value.top:m*N+B};return{...a,correlation:_,label:q,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*B)/(1+Math.pow(m,2)),G=(m*d.x+Math.pow(m,2)*d.y+B)/(1+Math.pow(m,2)),h=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-G,2));return{...d,deviation:h,shape:a.shape,color:a.color}})}})),pe=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(n=>Math.abs(n.deviation)))));function ze(){return x.value}function fe(a,n){const l=Array.isArray(a)?a.flatMap(h=>h.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(h=>({x:h.x,y:h.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;l.forEach(({x:h,y:z})=>{r=Math.min(r,h),o=Math.max(o,h),i=Math.min(i,z),f=Math.max(f,z)});const E=o-r,T=f-i,_=E/n,m=T/n,B=Array(n).fill(0),N=Array(n).fill(0);l.forEach(({x:h,y:z})=>{const H=Math.floor((h-r)/_),J=Math.floor((z-i)/m);B[H]||(B[H]=0),N[J]||(N[J]=0),B[H]+=1,N[J]+=1});const q=[],d=[];for(let h=0;h<n;h+=1)q.push(r+(h+.5)*_),d.push(i+(h+.5)*m);const L=Math.max(...B),G=Math.max(...N);return{x:B,y:N,avgX:q,avgY:d,maxX:L,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(j.value,M.value)),Ve=e.computed(()=>{const a=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return j.value.map(l=>{const r=fe(l,M.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:n+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),R=e.ref(null);function he(a,n){w.value=a.id,c.value=a;let l="";R.value={datapoint:a,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:a,seriesIndex:n,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:n})}</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:n})}</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>",X.value=`<div>${l}</div>`),I.value=!0}function me(){I.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function ge(a){p.value.includes(a)?p.value=p.value.filter(n=>n!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ke(){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}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(n),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=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}`],n=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:n,config:l,colNames:a}}),A=e.ref(!1);function Ae(a){A.value=a,K.value+=1}function xe(){S.value.showTable=!S.value.showTable}function be(){S.value.showTooltip=!S.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Se({getData:ze,generatePdf:ye,generateCsv:ke,generateImage:ve,toggleTable:xe,toggleTooltip:be,toggleAnnotator:U}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${A.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:V,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${le.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.unref(re)||e.unref(Y))?(e.openBlock(),e.createBlock(we.UserOptions,{ref_key:"details",ref:$e,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ce),isPrinting:e.unref(ie),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:S.value.showTooltip,isFullscreen:A.value,titles:{...t.value.userOptions.buttonTitles},chartElement:V.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Ae,onGeneratePdf:e.unref(ye),onGenerateCsv:ke,onGenerateImage:e.unref(ve),onToggleTable:xe,onToggleTooltip:be,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(Y)?"visible":"hidden":"visible"})},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,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":A.value,"vue-data-ui-fulscreen--off":!A.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(qe._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Ue,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ge),e.createElementVNode("line",{x1:u.value.left,x2:u.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,He)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Je,[(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,Ke)):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",Qe,[(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:f=>he(o,r),onMouseleave:me,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/pe.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,Ze))),256))])):(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(_e._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:f=>he(o,r),onMouseleave:me,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/pe.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",tt,[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,at),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,ot)],8,lt),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,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,nt)],8,st)]),(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]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.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,ut)):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:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.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,it)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ve.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,yt)),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,vt)),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,dt)),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,pt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",ft,[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,ht),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,mt),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,gt),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,kt),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,xt),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,bt),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<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Bt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("text",{x:u.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,_t),e.createElementVNode("text",{x:u.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,Ct),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.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,Nt)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",St,[e.createElementVNode("text",{x:v.value.x,y:u.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,Mt),e.createElementVNode("text",{x:v.value.x,y:u.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,$t),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:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Et)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,zt)],8,Lt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Vt,[(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,At))),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,Tt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Re)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ie)||e.unref(ce)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe.default,{key:6,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:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:l})=>ge(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,Dt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Pe._sfc_main,{show:S.value.showTooltip&&I.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:V.value,content:X.value,isFullscreen:A.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({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",Ot,[(e.openBlock(),e.createElementBlock("svg",Ft,[e.createVNode(_e._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","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(We.default,{key:8,hideDetails:"",config:{open:S.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(Oe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=l=>S.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",Wt,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,qt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,je))}},Xt=Ye._export_sfc(It,[["__scopeId","data-v-ba4dc4e0"]]);exports.default=Xt;
|