vue-data-ui 2.6.18 → 2.6.20
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 +8 -0
- package/dist/{Arrow-Ci41JBXA.js → Arrow-C9wt_iwE.js} +1 -1
- package/dist/{Arrow-C-haYOvL.cjs → Arrow-mU42Peiq.cjs} +1 -1
- package/dist/{BaseIcon-D0Ifzd3J.js → BaseIcon-CR8s5lLC.js} +1 -1
- package/dist/{BaseIcon-Brc1PN_Z.cjs → BaseIcon-DMhDupLt.cjs} +1 -1
- package/dist/{DataTable-BH56SPdO.js → DataTable-CMUyDj6S.js} +2 -2
- package/dist/{DataTable-AQsQHTem.cjs → DataTable-Qba16zLZ.cjs} +1 -1
- package/dist/{Legend-w7VxyGN0.js → Legend-CaMKYW-V.js} +2 -2
- package/dist/{Legend-CNiGY3Yx.cjs → Legend-EauKcdAx.cjs} +1 -1
- package/dist/{PackageVersion-D1edJun6.js → PackageVersion-CURzw4q1.js} +1 -1
- package/dist/{PackageVersion-DO_17qoR.cjs → PackageVersion-Vv7wNIAl.cjs} +1 -1
- package/dist/{PenAndPaper-DWnLI5jM.js → PenAndPaper-CjiJra09.js} +3 -3
- package/dist/{PenAndPaper-BPAfK8a6.cjs → PenAndPaper-DSEAEpTs.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Bnwg64-7.js → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-Cw1RBp7H.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs} +1 -1
- package/dist/{Shape-RfSE_FzV.js → Shape-F5v4f45p.js} +1 -1
- package/dist/{Shape-J26jxMZ5.cjs → Shape-gLknKTb6.cjs} +1 -1
- package/dist/{Slicer-oASHP3Lx.cjs → Slicer-CVVRixhP.cjs} +1 -1
- package/dist/{Slicer-DMdxtlpr.js → Slicer-DQp19cm1.js} +2 -2
- package/dist/{Title-xfHZTDT9.js → Title-CUHNtIyE.js} +1 -1
- package/dist/{Title-ypQseB5s.cjs → Title-m1x23s4w.cjs} +1 -1
- package/dist/{Tooltip-DQZLR6XD.cjs → Tooltip-BXY2gKbA.cjs} +1 -1
- package/dist/{Tooltip-CF9cKbnr.js → Tooltip-BuAQ8HVL.js} +1 -1
- package/dist/{index-CkqI12gj.cjs → index-CmhvuQro.cjs} +1 -1
- package/dist/{index-Df45PKBw.js → index-Cq7-va_5.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BaSIdRPe.js → useNestedProp-BEyJNlaO.js} +1 -1
- package/dist/{useNestedProp-B5QzQ7cl.cjs → useNestedProp-CnH-XcZU.cjs} +1 -1
- package/dist/usePrinter-DhZH4pcR.cjs +1 -0
- package/dist/{usePrinter-MC5pKUx5.js → usePrinter-jRjc8Naz.js} +72 -70
- package/dist/{vue-data-ui-BiXf5MnL.js → vue-data-ui-BPSCRfcK.js} +61 -61
- package/dist/{vue-data-ui--Yx3VAj0.cjs → vue-data-ui-DD5SV4SW.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-BXW-ZMgi.cjs → vue-ui-3d-bar-BlCSdagh.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-DBJJ2kqD.js → vue-ui-3d-bar-TB1XdncJ.js} +105 -98
- package/dist/{vue-ui-accordion-4ngKbp5a.cjs → vue-ui-accordion-C3Ljak65.cjs} +1 -1
- package/dist/{vue-ui-accordion-BbCvey8w.js → vue-ui-accordion-vAQ_LLoP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-04E6Wqie.js → vue-ui-age-pyramid-BUWoRp_B.js} +75 -68
- package/dist/{vue-ui-age-pyramid-Cpi72E7Q.cjs → vue-ui-age-pyramid-CrDKpPil.cjs} +1 -1
- package/dist/{vue-ui-annotator-tv-3u5J-.js → vue-ui-annotator-BVE-xqSy.js} +1 -1
- package/dist/{vue-ui-annotator-BzdyBaoy.cjs → vue-ui-annotator-wjsB7Ihy.cjs} +1 -1
- package/dist/{vue-ui-bullet-B-UjWb-f.cjs → vue-ui-bullet-BcU0lGMw.cjs} +4 -4
- package/dist/{vue-ui-bullet-B0jpb3iz.js → vue-ui-bullet-Cj4GC_-F.js} +145 -138
- package/dist/{vue-ui-candlestick-Cx6UAvss.js → vue-ui-candlestick-C2hAp3Fi.js} +115 -108
- package/dist/{vue-ui-candlestick-DEK3P-Tu.cjs → vue-ui-candlestick-n--kSbN7.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BPvJKE6W.cjs → vue-ui-carousel-table-CU96d16y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bk6LMH1D.js → vue-ui-carousel-table-Do1uzI_G.js} +130 -123
- package/dist/{vue-ui-chestnut-DKesYDji.cjs → vue-ui-chestnut-DJq8IWIL.cjs} +2 -2
- package/dist/{vue-ui-chestnut-BLYeNCKN.js → vue-ui-chestnut-fb3ioT4a.js} +131 -124
- package/dist/{vue-ui-circle-pack-DF8CPgPU.js → vue-ui-circle-pack-DByIHOMA.js} +165 -158
- package/dist/{vue-ui-circle-pack-D_2k6N20.cjs → vue-ui-circle-pack-DnwKX38S.cjs} +1 -1
- package/dist/{vue-ui-cursor-B29UJWQo.cjs → vue-ui-cursor-DSCiOK2l.cjs} +1 -1
- package/dist/{vue-ui-cursor-DySRIo_p.js → vue-ui-cursor-scYLETJY.js} +2 -2
- package/dist/{vue-ui-dashboard-5JkE1uRk.cjs → vue-ui-dashboard-BBDfkeCW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CHO6UMlJ.js → vue-ui-dashboard-DjxJGI1j.js} +2 -2
- package/dist/{vue-ui-digits-D5h4HAzq.js → vue-ui-digits-7bQAdMhs.js} +2 -2
- package/dist/{vue-ui-digits-DvANBwd7.cjs → vue-ui-digits-Cmn1NNzQ.cjs} +1 -1
- package/dist/{vue-ui-donut-DLaBSyI4.cjs → vue-ui-donut-C291KoIU.cjs} +1 -1
- package/dist/{vue-ui-donut-rVvCGOGk.js → vue-ui-donut-RJQUTfyW.js} +117 -110
- package/dist/{vue-ui-donut-evolution-DjGFFyxj.js → vue-ui-donut-evolution-DPW_ITH8.js} +164 -157
- package/dist/{vue-ui-donut-evolution-B06eelN-.cjs → vue-ui-donut-evolution-Dp15D88c.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B3AlzGCf.js → vue-ui-dumbbell-B8Zm8EVd.js} +74 -67
- package/dist/{vue-ui-dumbbell-9Oy-W4-B.cjs → vue-ui-dumbbell-BdEUvUV7.cjs} +2 -2
- package/dist/{vue-ui-flow-1eYWWjX-.js → vue-ui-flow-BNIgPNGy.js} +177 -170
- package/dist/{vue-ui-flow-BakKHKRq.cjs → vue-ui-flow-BukV6_Zl.cjs} +1 -1
- package/dist/{vue-ui-funnel-uSID1YS9.js → vue-ui-funnel-BrPqtGct.js} +128 -121
- package/dist/{vue-ui-funnel-IbAUMuoN.cjs → vue-ui-funnel-CIgZpg3T.cjs} +1 -1
- package/dist/{vue-ui-galaxy-3ksrzeio.js → vue-ui-galaxy-D1IYOUwX.js} +77 -70
- package/dist/{vue-ui-galaxy-BFGRkm7x.cjs → vue-ui-galaxy-FGqZ4tWB.cjs} +1 -1
- package/dist/{vue-ui-gauge-DgPnw4Q5.cjs → vue-ui-gauge-B00JvBFF.cjs} +1 -1
- package/dist/{vue-ui-gauge-DxUp_-uc.js → vue-ui-gauge-BsOXy5MV.js} +152 -145
- package/dist/{vue-ui-gizmo-Dw9HiCwa.js → vue-ui-gizmo-Cyl89etd.js} +3 -3
- package/dist/{vue-ui-gizmo-4T51Z8I8.cjs → vue-ui-gizmo-D_uv6qkV.cjs} +1 -1
- package/dist/vue-ui-heatmap-CGg2_xWH.cjs +1 -0
- package/dist/{vue-ui-heatmap-CwtUNQu0.js → vue-ui-heatmap-CgF4n8Bh.js} +139 -132
- package/dist/{vue-ui-history-plot-CC7sYtWu.cjs → vue-ui-history-plot-DR11Ips0.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BaV1bX_U.js → vue-ui-history-plot-Rdjb-yOk.js} +121 -114
- package/dist/{vue-ui-kpi-DiuK6mKA.js → vue-ui-kpi-COfnJm-X.js} +3 -3
- package/dist/{vue-ui-kpi-DxXlf8be.cjs → vue-ui-kpi-CbAgFb-9.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DQ_oXH1a.cjs → vue-ui-mini-loader-CizZv79e.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Kwzi6dLA.js → vue-ui-mini-loader-DNM7jU2W.js} +2 -2
- package/dist/{vue-ui-molecule-Bfhay2Cw.cjs → vue-ui-molecule-CiOIVjFk.cjs} +1 -1
- package/dist/{vue-ui-molecule-BMiNGYBh.js → vue-ui-molecule-Cv6jp9D_.js} +249 -242
- package/dist/{vue-ui-mood-radar-j2_LSQyN.js → vue-ui-mood-radar-B-VE2pVS.js} +111 -104
- package/dist/{vue-ui-mood-radar-C6CXwCzk.cjs → vue-ui-mood-radar-CoHouhrl.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CVsN5wLZ.js → vue-ui-nested-donuts-D-7tn_Qe.js} +116 -109
- package/dist/{vue-ui-nested-donuts-BEb5qHRa.cjs → vue-ui-nested-donuts-ITcu4gJW.cjs} +2 -2
- package/dist/{vue-ui-onion-DlqFOcMu.js → vue-ui-onion-B4SgCj8L.js} +143 -136
- package/dist/{vue-ui-onion-C-y9Jsfq.cjs → vue-ui-onion-fzXsWjjI.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-t2isL1XO.cjs → vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxwECisr.js → vue-ui-parallel-coordinate-plot-CpQOyh-W.js} +112 -105
- package/dist/{vue-ui-quadrant-DMYZ6Rbh.cjs → vue-ui-quadrant-ByRNr-XD.cjs} +1 -1
- package/dist/{vue-ui-quadrant-rVy92h_8.js → vue-ui-quadrant-DhODDM5V.js} +111 -104
- package/dist/{vue-ui-quick-chart-CE-Qg_jo.cjs → vue-ui-quick-chart-BsQAMw9M.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-DkUCMlp7.js → vue-ui-quick-chart-DpeGH277.js} +194 -187
- package/dist/{vue-ui-radar-j-mDD4Dn.js → vue-ui-radar-CWkrni4Y.js} +100 -93
- package/dist/{vue-ui-radar-DkL4kk1W.cjs → vue-ui-radar-D-qttZKw.cjs} +1 -1
- package/dist/{vue-ui-rating-K_pyDN_G.cjs → vue-ui-rating-CY25IY75.cjs} +1 -1
- package/dist/{vue-ui-rating-CpvfKsg0.js → vue-ui-rating-DB4nQsuM.js} +2 -2
- package/dist/{vue-ui-relation-circle-O0d-4bj0.js → vue-ui-relation-circle-B_PxY9ZN.js} +102 -95
- package/dist/{vue-ui-relation-circle-ChFxKSb0.cjs → vue-ui-relation-circle-KDFaFqqu.cjs} +1 -1
- package/dist/{vue-ui-rings-Cv5WcU9y.cjs → vue-ui-rings-C1Upd5ja.cjs} +2 -2
- package/dist/{vue-ui-rings-DK-HgFva.js → vue-ui-rings-D5-sTr38.js} +168 -161
- package/dist/{vue-ui-scatter-BHCYJgHS.cjs → vue-ui-scatter-B-aqlIcn.cjs} +1 -1
- package/dist/{vue-ui-scatter-CTmhFDqS.js → vue-ui-scatter-C8cn3MR5.js} +85 -78
- package/dist/{vue-ui-screenshot-Ci56oD2d.cjs → vue-ui-screenshot-D9EV_KXZ.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bpp3trys.js → vue-ui-screenshot-kQRZJHLO.js} +1 -1
- package/dist/{vue-ui-skeleton-BIYEApQO.js → vue-ui-skeleton-DIrE1OTF.js} +3 -3
- package/dist/{vue-ui-skeleton-CKwwTTRF.cjs → vue-ui-skeleton-DyJu1ibj.cjs} +1 -1
- package/dist/{vue-ui-smiley-BjcqO7zZ.cjs → vue-ui-smiley-B7dNRQyO.cjs} +1 -1
- package/dist/{vue-ui-smiley-B5ufG407.js → vue-ui-smiley-DVjsjIa4.js} +2 -2
- package/dist/{vue-ui-spark-trend-qz-BtG6X.cjs → vue-ui-spark-trend-DRtaXADG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DnB59fUO.js → vue-ui-spark-trend-DsUy3aw-.js} +5 -5
- package/dist/{vue-ui-sparkbar-D_sMmqjC.js → vue-ui-sparkbar-Dm8xksUj.js} +4 -4
- package/dist/{vue-ui-sparkbar-DQ-IFuy6.cjs → vue-ui-sparkbar-x0F1llCZ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Ce5NGB8P.cjs → vue-ui-sparkgauge-B4DRMVOW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-76-wdTdR.js → vue-ui-sparkgauge-_gF53YgV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DviUQdRD.js → vue-ui-sparkhistogram-CD_0ihS9.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DcSCtmaT.cjs → vue-ui-sparkhistogram-CIMJUDlb.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C75odp3q.js → vue-ui-sparkline-Cs0h6tKI.js} +6 -6
- package/dist/{vue-ui-sparkline-_nWAin6t.cjs → vue-ui-sparkline-DzOL1IDW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-pRfBTPV0.cjs → vue-ui-sparkstackbar-BBz1lDg0.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-JgAJd1j5.js → vue-ui-sparkstackbar-Dhula5ka.js} +5 -5
- package/dist/{vue-ui-stackbar-DK4W1meR.cjs → vue-ui-stackbar-BuUtwfyC.cjs} +3 -3
- package/dist/{vue-ui-stackbar-Ctym-Udc.js → vue-ui-stackbar-DanAQnBd.js} +210 -203
- package/dist/{vue-ui-strip-plot-BU6tkAvd.cjs → vue-ui-strip-plot-95uUJ2fc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BLmj_-sa.js → vue-ui-strip-plot-DIlGTBzG.js} +82 -75
- package/dist/{vue-ui-table-Cvt9DTpO.cjs → vue-ui-table-CDS7xlZS.cjs} +1 -1
- package/dist/{vue-ui-table-Bot5LadX.js → vue-ui-table-FKZF6cxI.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DE1swMTl.js → vue-ui-table-heatmap-BcGX_vpU.js} +63 -56
- package/dist/{vue-ui-table-heatmap-fALEi4E_.cjs → vue-ui-table-heatmap-qVmiG576.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CWGl8LJc.js → vue-ui-table-sparkline-CVY9EZ7Q.js} +90 -83
- package/dist/{vue-ui-table-sparkline-pQlBn8xE.cjs → vue-ui-table-sparkline-CnVFXbUB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-N5j1BAqA.cjs → vue-ui-thermometer-BTer1qaq.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DDOVwF0r.js → vue-ui-thermometer-tcTgQiAu.js} +113 -106
- package/dist/{vue-ui-timer-CQ9pLz7T.cjs → vue-ui-timer-CmLGKRcK.cjs} +1 -1
- package/dist/{vue-ui-timer-1zEhowHL.js → vue-ui-timer-DO_VKZHm.js} +5 -5
- package/dist/{vue-ui-tiremarks-zlgbR7II.js → vue-ui-tiremarks-BKnAiR_H.js} +76 -69
- package/dist/{vue-ui-tiremarks-DOXxQKUB.cjs → vue-ui-tiremarks-BPxAgMQx.cjs} +1 -1
- package/dist/{vue-ui-treemap-ZJAvws86.cjs → vue-ui-treemap-BnKYnm8A.cjs} +1 -1
- package/dist/{vue-ui-treemap-C7oZrYCa.js → vue-ui-treemap-oE2QDc_9.js} +143 -136
- package/dist/{vue-ui-vertical-bar-rtqu_UjN.js → vue-ui-vertical-bar-BfFnXSO5.js} +119 -112
- package/dist/{vue-ui-vertical-bar-BFeF_dBM.cjs → vue-ui-vertical-bar-CHUZAnfv.cjs} +3 -3
- package/dist/{vue-ui-waffle-C0E54-ms.cjs → vue-ui-waffle-DxL_bhhX.cjs} +1 -1
- package/dist/{vue-ui-waffle-CgsNawVA.js → vue-ui-waffle-YwQAGMlZ.js} +77 -70
- package/dist/{vue-ui-wheel-StQOeYIO.cjs → vue-ui-wheel-CbEf5uhL.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cm7g8eux.js → vue-ui-wheel-gZQIZUx1.js} +104 -97
- package/dist/{vue-ui-word-cloud-qNxRgN5J.js → vue-ui-word-cloud-CXpfOcDf.js} +122 -115
- package/dist/{vue-ui-word-cloud-Bc31_IfR.cjs → vue-ui-word-cloud-Ddmhs5i-.cjs} +1 -1
- package/dist/{vue-ui-xy-wbWmX1Zh.cjs → vue-ui-xy-BFdih9uG.cjs} +2 -2
- package/dist/{vue-ui-xy-BTjOTcAY.js → vue-ui-xy-BHGNHgRk.js} +72 -65
- package/dist/{vue-ui-xy-canvas-BpyntzCo.js → vue-ui-xy-canvas-BFZjHXBj.js} +200 -193
- package/dist/{vue-ui-xy-canvas-BljjkGUh.cjs → vue-ui-xy-canvas-hM1oa-dn.cjs} +2 -2
- package/package.json +1 -1
- package/dist/usePrinter-DB2FudbZ.cjs +0 -1
- package/dist/vue-ui-heatmap-Bz5l9BbM.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useCssVars as Ge, computed as y, createElementBlock as
|
|
2
|
-
import { u as Je, c as Se, a5 as Ke, v as Qe, t as Ze, p as Y, a as et, o as tt, e as Fe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-
|
|
3
|
-
import { _ as ut } from "./Title-
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Ge, computed as y, createElementBlock as m, openBlock as r, createElementVNode as N, renderSlot as i, createVNode as ne, normalizeStyle as J, ref as n, watch as H, onMounted as Le, onBeforeUnmount as Xe, unref as c, createBlock as M, createCommentVNode as k, createSlots as je, withCtx as h, normalizeProps as S, guardReactiveProps as F, normalizeClass as $e, Fragment as qe, renderList as He, toDisplayString as xe, createTextVNode as Ye, nextTick as Te } from "vue";
|
|
2
|
+
import { u as Je, c as Se, a5 as Ke, v as Qe, t as Ze, p as Y, a as et, o as tt, e as Fe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-Cq7-va_5.js";
|
|
3
|
+
import { _ as ut } from "./Title-CUHNtIyE.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-jRjc8Naz.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-BWapHhVH.js";
|
|
6
|
-
import mt from "./vue-ui-accordion-
|
|
7
|
-
import { D as ft } from "./DataTable-
|
|
8
|
-
import pt from "./BaseIcon-
|
|
6
|
+
import mt from "./vue-ui-accordion-vAQ_LLoP.js";
|
|
7
|
+
import { D as ft } from "./DataTable-CMUyDj6S.js";
|
|
8
|
+
import pt from "./BaseIcon-CR8s5lLC.js";
|
|
9
9
|
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Ne } from "./useNestedProp-
|
|
11
|
-
import { _ as gt } from "./PackageVersion-
|
|
12
|
-
import { _ as yt } from "./Tooltip-
|
|
13
|
-
import { P as bt } from "./PenAndPaper-
|
|
10
|
+
import { u as Ne } from "./useNestedProp-BEyJNlaO.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-CURzw4q1.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-BuAQ8HVL.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-CjiJra09.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { u as kt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
16
|
const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
@@ -68,11 +68,11 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
68
68
|
Ge((x) => ({
|
|
69
69
|
"782b8172": d.value,
|
|
70
70
|
"102109e6": V.value,
|
|
71
|
-
"642212d7":
|
|
71
|
+
"642212d7": _.value,
|
|
72
72
|
"1f5369d4": f.selectColor,
|
|
73
|
-
"22b98ab8":
|
|
73
|
+
"22b98ab8": z.value
|
|
74
74
|
}));
|
|
75
|
-
const p = f, d = y(() => p.inputColor),
|
|
75
|
+
const p = f, d = y(() => p.inputColor), z = y(() => p.background), _ = y(() => `${p.selectColor}33`), V = y(() => p.borderColor), w = K;
|
|
76
76
|
function R() {
|
|
77
77
|
w("reset");
|
|
78
78
|
}
|
|
@@ -84,12 +84,12 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
84
84
|
background: p.selectColor
|
|
85
85
|
};
|
|
86
86
|
});
|
|
87
|
-
return (x, b) => (r(),
|
|
88
|
-
f.value !== f.source ? (r(),
|
|
89
|
-
f.useResetSlot ?
|
|
87
|
+
return (x, b) => (r(), m("div", wt, [
|
|
88
|
+
f.value !== f.source ? (r(), m("div", $t, [
|
|
89
|
+
f.useResetSlot ? i(x.$slots, "reset-action", {
|
|
90
90
|
key: 1,
|
|
91
91
|
reset: R
|
|
92
|
-
}, void 0, !0) : (r(),
|
|
92
|
+
}, void 0, !0) : (r(), m("button", {
|
|
93
93
|
key: 0,
|
|
94
94
|
"data-cy-reset": "",
|
|
95
95
|
tabindex: "0",
|
|
@@ -102,14 +102,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
102
102
|
stroke: f.textColor
|
|
103
103
|
}, null, 8, ["stroke"])
|
|
104
104
|
]))
|
|
105
|
-
])) : (r(),
|
|
106
|
-
|
|
107
|
-
b[1] || (b[1] =
|
|
108
|
-
|
|
105
|
+
])) : (r(), m("div", xt)),
|
|
106
|
+
N("div", Tt, [
|
|
107
|
+
b[1] || (b[1] = N("div", { class: "slider-track" }, null, -1)),
|
|
108
|
+
N("div", {
|
|
109
109
|
class: "range-highlight",
|
|
110
110
|
style: J(B.value)
|
|
111
111
|
}, null, 4),
|
|
112
|
-
|
|
112
|
+
N("input", {
|
|
113
113
|
type: "range",
|
|
114
114
|
min: f.min,
|
|
115
115
|
max: f.max,
|
|
@@ -119,10 +119,10 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
119
119
|
])
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
|
-
}, Nt = /* @__PURE__ */ ze(Ft, [["__scopeId", "data-v-b4e6aee9"]]), zt = ["id"], At = ["xmlns", "viewBox"], Ot = ["width", "height"], Pt = ["transform"],
|
|
122
|
+
}, Nt = /* @__PURE__ */ ze(Ft, [["__scopeId", "data-v-b4e6aee9"]]), zt = ["id"], At = ["xmlns", "viewBox"], Ot = ["width", "height"], Pt = ["transform"], It = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Mt = {
|
|
123
123
|
key: 4,
|
|
124
124
|
class: "vue-data-ui-watermark"
|
|
125
|
-
},
|
|
125
|
+
}, _t = ["innerHTML"], Rt = {
|
|
126
126
|
__name: "vue-ui-word-cloud",
|
|
127
127
|
props: {
|
|
128
128
|
config: {
|
|
@@ -139,17 +139,17 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
setup(f, { expose: K }) {
|
|
142
|
-
const { vue_ui_word_cloud: p } = Je(), d = f,
|
|
142
|
+
const { vue_ui_word_cloud: p } = Je(), d = f, z = y({
|
|
143
143
|
get() {
|
|
144
144
|
return !!d.dataset && d.dataset.length;
|
|
145
145
|
},
|
|
146
146
|
set(t) {
|
|
147
147
|
return t;
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), _ = n(Se()), V = n(0), w = n(null), R = n(null), B = n(null), x = n(0), b = n(0), T = n(!1), e = y({
|
|
150
150
|
get: () => de(),
|
|
151
151
|
set: (t) => t
|
|
152
|
-
}),
|
|
152
|
+
}), A = n(re());
|
|
153
153
|
function re() {
|
|
154
154
|
return typeof d.dataset == "string" ? Ke(d.dataset) : d.dataset.map((t, a) => ({
|
|
155
155
|
...t,
|
|
@@ -157,7 +157,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
157
157
|
}));
|
|
158
158
|
}
|
|
159
159
|
H(() => d.dataset, () => {
|
|
160
|
-
|
|
160
|
+
A.value = re(), E();
|
|
161
161
|
});
|
|
162
162
|
const { userOptionsVisible: Q, setUserOptionsVisibility: ue, keepUserOptionState: ie } = Ct({ config: e.value }), { svgRef: ce } = kt({ config: e.value.style.chart.title });
|
|
163
163
|
function de() {
|
|
@@ -176,7 +176,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
176
176
|
H(() => d.config, (t) => {
|
|
177
177
|
e.value = de(), Q.value = !e.value.userOptions.showOnChartHover, he(), x.value += 1, b.value += 1, Z(), v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
178
178
|
}, { deep: !0 });
|
|
179
|
-
const ve = n(null),
|
|
179
|
+
const ve = n(null), O = n(0), s = n({
|
|
180
180
|
width: e.value.style.chart.width,
|
|
181
181
|
height: e.value.style.chart.height,
|
|
182
182
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
@@ -192,14 +192,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
192
192
|
s.value.width = t, s.value.height = a, Te(E);
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
|
-
H(() =>
|
|
195
|
+
H(() => O.value, () => {
|
|
196
196
|
Oe();
|
|
197
197
|
});
|
|
198
198
|
const Oe = dt(() => {
|
|
199
199
|
E();
|
|
200
200
|
}, 10);
|
|
201
201
|
function Z() {
|
|
202
|
-
|
|
202
|
+
O.value = ee.value;
|
|
203
203
|
}
|
|
204
204
|
const D = n(null);
|
|
205
205
|
Le(() => {
|
|
@@ -209,12 +209,12 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
209
209
|
tt(d.dataset) ? Fe({
|
|
210
210
|
componentName: "VueUiWordCloud",
|
|
211
211
|
type: "dataset"
|
|
212
|
-
}) :
|
|
212
|
+
}) : A.value.forEach((t, a) => {
|
|
213
213
|
ot({
|
|
214
214
|
datasetObject: t,
|
|
215
215
|
requiredAttributes: ["name", "value"]
|
|
216
216
|
}).forEach((o) => {
|
|
217
|
-
|
|
217
|
+
z.value = !1, Fe({
|
|
218
218
|
componentName: "VueUiWordCloud",
|
|
219
219
|
type: "datasetSerieAttribute",
|
|
220
220
|
property: o,
|
|
@@ -227,7 +227,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
227
227
|
D.value && D.value.disconnect();
|
|
228
228
|
});
|
|
229
229
|
const { isPrinting: me, isImaging: fe, generatePdf: pe, generateImage: ge } = it({
|
|
230
|
-
elementId: `wordCloud_${
|
|
230
|
+
elementId: `wordCloud_${_.value}`,
|
|
231
231
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
232
232
|
}), v = n({
|
|
233
233
|
showTable: e.value.table.show,
|
|
@@ -240,38 +240,38 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
240
240
|
height: a
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ie(t, a) {
|
|
244
244
|
return t.x < a.x + a.width && t.x + t.width > a.x && t.y < a.y + a.height && t.y + t.height > a.y;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Me(t, a, o) {
|
|
247
247
|
const u = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, g = 0, C = 0;
|
|
248
|
-
return t.forEach((
|
|
248
|
+
return t.forEach((I) => {
|
|
249
249
|
let le = !1;
|
|
250
250
|
for (let q = 0; q < Math.max(a, o) / 2 && !le; q += e.value.style.chart.words.packingWeight)
|
|
251
251
|
for (let se = 0; se < 360 && !le; se += e.value.style.chart.words.packingWeight) {
|
|
252
|
-
const we = se * Math.PI / 180, Ue = g + q * Math.cos(we) -
|
|
252
|
+
const we = se * Math.PI / 180, Ue = g + q * Math.cos(we) - I.width / 2, Ve = C + q * Math.sin(we) - I.height / 2, $ = { ...I, x: Ue, y: Ve }, Be = $.x >= l.x && $.y >= l.y && $.x + $.width <= l.x + l.width && $.y + $.height <= l.y + l.height, De = u.some((Ee) => Ie($, Ee));
|
|
253
253
|
Be && !De && (u.push($), le = !0);
|
|
254
254
|
}
|
|
255
255
|
}), u;
|
|
256
256
|
}
|
|
257
257
|
const W = n([]);
|
|
258
258
|
H(() => d.dataset, E, { immediate: !0 });
|
|
259
|
-
const ee = y(() => Math.round(Math.min(...
|
|
259
|
+
const ee = y(() => Math.round(Math.min(...A.value.map((t) => t.value)))), ye = y(() => Math.round(Math.max(...A.value.map((t) => t.value))));
|
|
260
260
|
function E() {
|
|
261
|
-
const t = [...
|
|
261
|
+
const t = [...A.value].filter((l) => l.value >= O.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), u = [...A.value].filter((l) => l.value >= O.value).map((l, g) => {
|
|
262
262
|
let C = (l.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
|
|
263
263
|
C = isNaN(C) ? s.value.minFontSize : C;
|
|
264
|
-
const
|
|
264
|
+
const I = Pe(l.name, C);
|
|
265
265
|
return {
|
|
266
266
|
...l,
|
|
267
267
|
id: Se(),
|
|
268
268
|
fontSize: C,
|
|
269
|
-
width:
|
|
270
|
-
height:
|
|
269
|
+
width: I.width,
|
|
270
|
+
height: I.height,
|
|
271
271
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[g] || e.value.customPalette[g % e.value.customPalette.length] || Y[g] || Y[g % Y.length] : e.value.style.chart.words.color
|
|
272
272
|
};
|
|
273
273
|
});
|
|
274
|
-
W.value =
|
|
274
|
+
W.value = Me(u, s.value.width, s.value.height).sort((l, g) => g.fontSize - l.fontSize);
|
|
275
275
|
}
|
|
276
276
|
const G = y(() => {
|
|
277
277
|
const t = W.value.map((o) => ({
|
|
@@ -324,7 +324,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
324
324
|
config: o
|
|
325
325
|
};
|
|
326
326
|
}), X = n(!1);
|
|
327
|
-
function
|
|
327
|
+
function _e(t) {
|
|
328
328
|
X.value = t, V.value += 1;
|
|
329
329
|
}
|
|
330
330
|
function Re() {
|
|
@@ -349,10 +349,10 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
349
349
|
toggleTooltip: ke,
|
|
350
350
|
toggleAnnotator: te
|
|
351
351
|
});
|
|
352
|
-
const
|
|
352
|
+
const P = n(null), U = n(!1), oe = n(""), ae = n(null);
|
|
353
353
|
function We(t) {
|
|
354
354
|
if (!v.value.showTooltip) return;
|
|
355
|
-
|
|
355
|
+
P.value = t.id, ae.value = { datapoint: t, config: e.value };
|
|
356
356
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
357
357
|
if (U.value = !1, rt(a))
|
|
358
358
|
try {
|
|
@@ -370,30 +370,30 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
370
370
|
}
|
|
371
371
|
T.value = !0;
|
|
372
372
|
}
|
|
373
|
-
return (t, a) => (r(),
|
|
373
|
+
return (t, a) => (r(), m("div", {
|
|
374
374
|
class: "vue-ui-word-cloud",
|
|
375
375
|
ref_key: "wordCloudChart",
|
|
376
376
|
ref: w,
|
|
377
|
-
id: `wordCloud_${
|
|
377
|
+
id: `wordCloud_${_.value}`,
|
|
378
378
|
style: J(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
379
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
380
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
379
|
+
onMouseenter: a[3] || (a[3] = () => c(ue)(!0)),
|
|
380
|
+
onMouseleave: a[4] || (a[4] = () => c(ue)(!1))
|
|
381
381
|
}, [
|
|
382
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
382
|
+
e.value.userOptions.buttons.annotator ? (r(), M(bt, {
|
|
383
383
|
key: 0,
|
|
384
|
-
svgRef:
|
|
384
|
+
svgRef: c(ce),
|
|
385
385
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
386
386
|
color: e.value.style.chart.color,
|
|
387
387
|
active: j.value,
|
|
388
388
|
onClose: te
|
|
389
389
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
|
|
390
|
-
e.value.style.chart.title.text ? (r(),
|
|
390
|
+
e.value.style.chart.title.text ? (r(), m("div", {
|
|
391
391
|
key: 1,
|
|
392
392
|
ref_key: "chartTitle",
|
|
393
393
|
ref: R,
|
|
394
394
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
395
395
|
}, [
|
|
396
|
-
(r(),
|
|
396
|
+
(r(), M(ut, {
|
|
397
397
|
key: `title_${x.value}`,
|
|
398
398
|
config: {
|
|
399
399
|
title: {
|
|
@@ -405,14 +405,14 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
405
405
|
}
|
|
406
406
|
}, null, 8, ["config"]))
|
|
407
407
|
], 512)) : k("", !0),
|
|
408
|
-
e.value.userOptions.show &&
|
|
408
|
+
e.value.userOptions.show && z.value && (c(ie) || c(Q)) ? (r(), M(ct, {
|
|
409
409
|
ref: "details",
|
|
410
410
|
key: `user_option_${V.value}`,
|
|
411
411
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
412
412
|
color: e.value.style.chart.color,
|
|
413
|
-
isPrinting:
|
|
414
|
-
isImaging:
|
|
415
|
-
uid:
|
|
413
|
+
isPrinting: c(me),
|
|
414
|
+
isImaging: c(fe),
|
|
415
|
+
uid: _.value,
|
|
416
416
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
417
417
|
hasXls: e.value.userOptions.buttons.csv,
|
|
418
418
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -426,71 +426,78 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
426
426
|
isTooltip: v.value.showTooltip,
|
|
427
427
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
428
428
|
isAnnotation: j.value,
|
|
429
|
-
onToggleFullscreen:
|
|
430
|
-
onGeneratePdf:
|
|
429
|
+
onToggleFullscreen: _e,
|
|
430
|
+
onGeneratePdf: c(pe),
|
|
431
431
|
onGenerateCsv: be,
|
|
432
|
-
onGenerateImage:
|
|
432
|
+
onGenerateImage: c(ge),
|
|
433
433
|
onToggleTable: Ce,
|
|
434
434
|
onToggleTooltip: ke,
|
|
435
435
|
onToggleAnnotator: te,
|
|
436
436
|
style: J({
|
|
437
|
-
visibility:
|
|
437
|
+
visibility: c(ie) ? c(Q) ? "visible" : "hidden" : "visible"
|
|
438
438
|
})
|
|
439
439
|
}, je({ _: 2 }, [
|
|
440
|
+
t.$slots.menuIcon ? {
|
|
441
|
+
name: "menuIcon",
|
|
442
|
+
fn: h(({ isOpen: o, color: u }) => [
|
|
443
|
+
i(t.$slots, "menuIcon", S(F({ isOpen: o, color: u })), void 0, !0)
|
|
444
|
+
]),
|
|
445
|
+
key: "0"
|
|
446
|
+
} : void 0,
|
|
440
447
|
t.$slots.optionPdf ? {
|
|
441
448
|
name: "optionPdf",
|
|
442
|
-
fn:
|
|
443
|
-
|
|
449
|
+
fn: h(() => [
|
|
450
|
+
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
444
451
|
]),
|
|
445
|
-
key: "
|
|
452
|
+
key: "1"
|
|
446
453
|
} : void 0,
|
|
447
454
|
t.$slots.optionCsv ? {
|
|
448
455
|
name: "optionCsv",
|
|
449
|
-
fn:
|
|
450
|
-
|
|
456
|
+
fn: h(() => [
|
|
457
|
+
i(t.$slots, "optionCsv", {}, void 0, !0)
|
|
451
458
|
]),
|
|
452
|
-
key: "
|
|
459
|
+
key: "2"
|
|
453
460
|
} : void 0,
|
|
454
461
|
t.$slots.optionImg ? {
|
|
455
462
|
name: "optionImg",
|
|
456
|
-
fn:
|
|
457
|
-
|
|
463
|
+
fn: h(() => [
|
|
464
|
+
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
458
465
|
]),
|
|
459
|
-
key: "
|
|
466
|
+
key: "3"
|
|
460
467
|
} : void 0,
|
|
461
468
|
t.$slots.optionTable ? {
|
|
462
469
|
name: "optionTable",
|
|
463
|
-
fn:
|
|
464
|
-
|
|
470
|
+
fn: h(() => [
|
|
471
|
+
i(t.$slots, "optionTable", {}, void 0, !0)
|
|
465
472
|
]),
|
|
466
|
-
key: "
|
|
473
|
+
key: "4"
|
|
467
474
|
} : void 0,
|
|
468
475
|
t.$slots.optionFullscreen ? {
|
|
469
476
|
name: "optionFullscreen",
|
|
470
|
-
fn:
|
|
471
|
-
|
|
477
|
+
fn: h(({ toggleFullscreen: o, isFullscreen: u }) => [
|
|
478
|
+
i(t.$slots, "optionFullscreen", S(F({ toggleFullscreen: o, isFullscreen: u })), void 0, !0)
|
|
472
479
|
]),
|
|
473
|
-
key: "
|
|
480
|
+
key: "5"
|
|
474
481
|
} : void 0,
|
|
475
482
|
t.$slots.optionAnnotator ? {
|
|
476
483
|
name: "optionAnnotator",
|
|
477
|
-
fn:
|
|
478
|
-
|
|
484
|
+
fn: h(({ toggleAnnotator: o, isAnnotator: u }) => [
|
|
485
|
+
i(t.$slots, "optionAnnotator", S(F({ toggleAnnotator: o, isAnnotator: u })), void 0, !0)
|
|
479
486
|
]),
|
|
480
|
-
key: "
|
|
487
|
+
key: "6"
|
|
481
488
|
} : void 0
|
|
482
489
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
483
|
-
|
|
490
|
+
z.value ? (r(), m("svg", {
|
|
484
491
|
key: 3,
|
|
485
492
|
ref_key: "svgRef",
|
|
486
493
|
ref: ce,
|
|
487
494
|
class: $e({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
488
|
-
xmlns:
|
|
495
|
+
xmlns: c(lt),
|
|
489
496
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
490
497
|
style: "overflow:visible;background:transparent;"
|
|
491
498
|
}, [
|
|
492
499
|
ne(gt),
|
|
493
|
-
t.$slots["chart-background"] ? (r(),
|
|
500
|
+
t.$slots["chart-background"] ? (r(), m("foreignObject", {
|
|
494
501
|
key: 0,
|
|
495
502
|
x: 0,
|
|
496
503
|
y: 0,
|
|
@@ -500,13 +507,13 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
500
507
|
pointerEvents: "none"
|
|
501
508
|
}
|
|
502
509
|
}, [
|
|
503
|
-
|
|
510
|
+
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
504
511
|
], 8, Ot)) : k("", !0),
|
|
505
|
-
|
|
512
|
+
N("g", {
|
|
506
513
|
transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
|
|
507
514
|
}, [
|
|
508
|
-
(r(!0),
|
|
509
|
-
(r(),
|
|
515
|
+
(r(!0), m(qe, null, He(W.value, (o, u) => (r(), m("g", null, [
|
|
516
|
+
(r(), m("text", {
|
|
510
517
|
fill: o.color,
|
|
511
518
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
512
519
|
key: u,
|
|
@@ -514,23 +521,23 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
514
521
|
y: o.y,
|
|
515
522
|
"font-size": o.fontSize,
|
|
516
523
|
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
517
|
-
class: $e({ animated: e.value.useCssAnimation, "word-selected":
|
|
524
|
+
class: $e({ animated: e.value.useCssAnimation, "word-selected": P.value && P.value === o.id && v.value.showTooltip, "word-not-selected": P.value && P.value !== o.id && v.value.showTooltip }),
|
|
518
525
|
"text-anchor": "middle",
|
|
519
526
|
"dominant-baseline": "central",
|
|
520
527
|
onMouseover: (l) => We(o),
|
|
521
528
|
onMouseleave: a[0] || (a[0] = (l) => {
|
|
522
|
-
|
|
529
|
+
P.value = null, T.value = !1;
|
|
523
530
|
}),
|
|
524
531
|
style: J(`animation-delay:${u * e.value.animationDelayMs}ms !important;`)
|
|
525
|
-
}, xe(o.name), 47,
|
|
532
|
+
}, xe(o.name), 47, It))
|
|
526
533
|
]))), 256))
|
|
527
534
|
], 8, Pt),
|
|
528
|
-
|
|
535
|
+
i(t.$slots, "svg", {
|
|
529
536
|
svg: { height: s.value.height, width: s.value.width }
|
|
530
537
|
}, void 0, !0)
|
|
531
538
|
], 10, At)) : k("", !0),
|
|
532
|
-
t.$slots.watermark ? (r(),
|
|
533
|
-
|
|
539
|
+
t.$slots.watermark ? (r(), m("div", Mt, [
|
|
540
|
+
i(t.$slots, "watermark", S(F({ isPrinting: c(me) || c(fe) })), void 0, !0)
|
|
534
541
|
])) : k("", !0),
|
|
535
542
|
ne(yt, {
|
|
536
543
|
show: v.value.showTooltip && T.value,
|
|
@@ -547,24 +554,24 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
547
554
|
content: oe.value,
|
|
548
555
|
isCustom: U.value
|
|
549
556
|
}, {
|
|
550
|
-
"tooltip-before":
|
|
551
|
-
|
|
557
|
+
"tooltip-before": h(() => [
|
|
558
|
+
i(t.$slots, "tooltip-before", S(F({ ...ae.value })), void 0, !0)
|
|
552
559
|
]),
|
|
553
|
-
"tooltip-after":
|
|
554
|
-
|
|
560
|
+
"tooltip-after": h(() => [
|
|
561
|
+
i(t.$slots, "tooltip-after", S(F({ ...ae.value })), void 0, !0)
|
|
555
562
|
]),
|
|
556
563
|
_: 3
|
|
557
564
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
558
|
-
|
|
565
|
+
N("div", {
|
|
559
566
|
ref_key: "chartSlicer",
|
|
560
567
|
ref: ve,
|
|
561
568
|
style: "width:100%;background:transparent",
|
|
562
569
|
"data-html2canvas-ignore": ""
|
|
563
570
|
}, [
|
|
564
|
-
e.value.style.chart.zoom.show && ee.value < ye.value ? (r(),
|
|
571
|
+
e.value.style.chart.zoom.show && ee.value < ye.value ? (r(), M(Nt, {
|
|
565
572
|
key: 0,
|
|
566
|
-
value:
|
|
567
|
-
"onUpdate:value": a[1] || (a[1] = (o) =>
|
|
573
|
+
value: O.value,
|
|
574
|
+
"onUpdate:value": a[1] || (a[1] = (o) => O.value = o),
|
|
568
575
|
min: ee.value,
|
|
569
576
|
max: ye.value,
|
|
570
577
|
textColor: e.value.style.chart.color,
|
|
@@ -576,21 +583,21 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
576
583
|
source: e.value.style.chart.width,
|
|
577
584
|
onReset: Z
|
|
578
585
|
}, {
|
|
579
|
-
"reset-action":
|
|
580
|
-
|
|
586
|
+
"reset-action": h(({ reset: o }) => [
|
|
587
|
+
i(t.$slots, "reset-action", S(F({ reset: o })), void 0, !0)
|
|
581
588
|
]),
|
|
582
589
|
_: 3
|
|
583
590
|
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : k("", !0)
|
|
584
591
|
], 512),
|
|
585
|
-
t.$slots.source ? (r(),
|
|
592
|
+
t.$slots.source ? (r(), m("div", {
|
|
586
593
|
key: 5,
|
|
587
594
|
ref_key: "source",
|
|
588
595
|
ref: B,
|
|
589
596
|
dir: "auto"
|
|
590
597
|
}, [
|
|
591
|
-
|
|
598
|
+
i(t.$slots, "source", {}, void 0, !0)
|
|
592
599
|
], 512)) : k("", !0),
|
|
593
|
-
|
|
600
|
+
z.value ? (r(), M(mt, {
|
|
594
601
|
key: 6,
|
|
595
602
|
hideDetails: "",
|
|
596
603
|
config: {
|
|
@@ -606,8 +613,8 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
606
613
|
}
|
|
607
614
|
}
|
|
608
615
|
}, {
|
|
609
|
-
content:
|
|
610
|
-
(r(),
|
|
616
|
+
content: h(() => [
|
|
617
|
+
(r(), M(ft, {
|
|
611
618
|
key: `table_${b.value}`,
|
|
612
619
|
colNames: L.value.colNames,
|
|
613
620
|
head: L.value.head,
|
|
@@ -616,13 +623,13 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
616
623
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
617
624
|
onClose: a[2] || (a[2] = (o) => v.value.showTable = !1)
|
|
618
625
|
}, {
|
|
619
|
-
th:
|
|
620
|
-
|
|
626
|
+
th: h(({ th: o }) => [
|
|
627
|
+
N("div", {
|
|
621
628
|
innerHTML: o,
|
|
622
629
|
style: { display: "flex", "align-items": "center" }
|
|
623
|
-
}, null, 8,
|
|
630
|
+
}, null, 8, _t)
|
|
624
631
|
]),
|
|
625
|
-
td:
|
|
632
|
+
td: h(({ td: o }) => [
|
|
626
633
|
Ye(xe(o.name || o), 1)
|
|
627
634
|
]),
|
|
628
635
|
_: 1
|
|
@@ -632,7 +639,7 @@ const wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
|
632
639
|
}, 8, ["config"])) : k("", !0)
|
|
633
640
|
], 44, zt));
|
|
634
641
|
}
|
|
635
|
-
}, Qt = /* @__PURE__ */ ze(Rt, [["__scopeId", "data-v-
|
|
642
|
+
}, Qt = /* @__PURE__ */ ze(Rt, [["__scopeId", "data-v-e87563ab"]]);
|
|
636
643
|
export {
|
|
637
644
|
Qt as default
|
|
638
645
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CkqI12gj.cjs"),Te=require("./Title-ypQseB5s.cjs"),ce=require("./usePrinter-DB2FudbZ.cjs"),H=require("./useResponsive-YQYQrAZ_.cjs"),Ne=require("./vue-ui-accordion-4ngKbp5a.cjs"),Pe=require("./DataTable-AQsQHTem.cjs"),Be=require("./BaseIcon-Brc1PN_Z.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=require("./useNestedProp-B5QzQ7cl.cjs"),Fe=require("./PackageVersion-DO_17qoR.cjs"),ze=require("./Tooltip-DQZLR6XD.cjs"),Ae=require("./PenAndPaper-BPAfK8a6.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ee={"data-html2canvas-ignore":""},Me={key:0,class:"reset-wrapper"},_e={key:1,class:"reset-wrapper"},Re={class:"mono-slicer"},Ie=["min","max","value"],qe={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(d,{emit:R}){e.useCssVars(y=>({"782b8172":i.value,"102109e6":B.value,"642212d7":$.value,"1f5369d4":d.selectColor,"22b98ab8":C.value}));const v=d,i=e.computed(()=>v.inputColor),C=e.computed(()=>v.background),$=e.computed(()=>`${v.selectColor}33`),B=e.computed(()=>v.borderColor),f=R;function T(){f("reset")}const F=e.computed(()=>{const y=v.max-v.min,m=0,b=(v.value-v.min)/y*100;return{left:`${m}%`,width:`${b-m}%`,background:v.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ee,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Me,[d.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:T},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:T},[e.createVNode(Be.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",_e)),e.createElementVNode("div",Re,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(F.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=b=>f("update:value",Number(b.target.value)))},null,40,Ie)])]))}},We=ve._export_sfc(qe,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],De=["xmlns","viewBox"],Ge=["width","height"],Le=["transform"],je=["fill","font-weight","x","y","font-size","transform","onMouseover"],He={key:4,class:"vue-data-ui-watermark"},Xe=["innerHTML"],Ye={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(d,{expose:R}){const{vue_ui_word_cloud:v}=s.useConfig(),i=d,C=e.computed({get(){return!!i.dataset&&i.dataset.length},set(o){return o}}),$=e.ref(s.createUid()),B=e.ref(0),f=e.ref(null),T=e.ref(null),F=e.ref(null),y=e.ref(0),m=e.ref(0),b=e.ref(!1),t=e.computed({get:()=>Q(),set:o=>o}),k=e.ref(X());function X(){return typeof i.dataset=="string"?s.createWordCloudDatasetFromPlainText(i.dataset):i.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))}e.watch(()=>i.dataset,()=>{k.value=X(),A()});const{userOptionsVisible:I,setUserOptionsVisibility:Y,keepUserOptionState:J}=Oe.useUserOptionState({config:t.value}),{svgRef:K}=Ve.useChartAccessibility({config:t.value.style.chart.title});function Q(){const o=de.useNestedProp({userConfig:i.config,defaultConfig:v});return o.theme?{...de.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Q(),I.value=!t.value.userOptions.showOnChartHover,ee(),y.value+=1,m.value+=1,q(),c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const Z=e.ref(null),w=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),he=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:f.value,title:t.value.style.chart.title.text?T.value:null,slicer:t.value.style.chart.zoom.show&&Z.value,source:F.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(A)})});e.watch(()=>w.value,()=>{me()});const me=H.debounce(()=>{A()},10);function q(){w.value=W.value}const z=e.ref(null);e.onMounted(()=>{ee(),q()});function ee(){s.objectIsEmpty(i.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{C.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(z.value=new ResizeObserver(he),z.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ae}=ce.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function pe(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function fe(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ge(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,p=0;return o.forEach(S=>{let L=!1;for(let _=0;_<Math.max(a,l)/2&&!L;_+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const ie=j*Math.PI/180,ke=h+_*Math.cos(ie)-S.width/2,we=p+_*Math.sin(ie)-S.height/2,g={...S,x:ke,y:we},xe=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,Se=u.some($e=>fe(g,$e));xe&&!Se&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>i.dataset,A,{immediate:!0});const W=e.computed(()=>Math.round(Math.min(...k.value.map(o=>o.value)))),ne=e.computed(()=>Math.round(Math.max(...k.value.map(o=>o.value))));function A(){const o=[...k.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...k.value].filter(n=>n.value>=w.value).map((n,h)=>{let p=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;p=isNaN(p)?r.value.minFontSize:p;const S=pe(n.name,p);return{...n,id:s.createUid(),fontSize:p,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=ge(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const O=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function re(){e.nextTick(()=>{const o=O.value.head.map((u,n)=>[[u.name],[O.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const V=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=O.value.head.map((n,h)=>{const p=s.dataLabel({p:t.value.table.td.prefix,v:O.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},p]}),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{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),E=e.ref(!1);function ye(o){E.value=o,B.value+=1}function be(){return N.value}function se(){c.value.showTable=!c.value.showTable}function ue(){c.value.showTooltip=!c.value.showTooltip}const M=e.ref(!1);function U(){M.value=!M.value}R({getData:be,generateCsv:re,generatePdf:le,generateImage:ae,toggleTable:se,toggleTooltip:ue,toggleAnnotator:U});const x=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function Ce(o){if(!c.value.showTooltip)return;x.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;D.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}b.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(Y)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Y)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,svgRef:e.unref(K),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${y.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(J)||e.unref(I))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:c.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(le),onGenerateCsv:re,onGenerateImage:e.unref(ae),onToggleTable:se,onToggleTooltip:ue,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:K,class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Fe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":x.value&&x.value===l.id&&c.value.showTooltip,"word-not-selected":x.value&&x.value!==l.id&&c.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>Ce(l),onMouseleave:a[0]||(a[0]=n=>{x.value=null,b.value=!1}),style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,je))]))),256))],8,Le),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,De)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:c.value.showTooltip&&b.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&W.value<ne.value?(e.openBlock(),e.createBlock(We,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:W.value,max:ne.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:6,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Pe.DataTable,{key:`table_${m.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Je=ve._export_sfc(Ye,[["__scopeId","data-v-b3e9fbc2"]]);exports.default=Je;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CmhvuQro.cjs"),Te=require("./Title-m1x23s4w.cjs"),ce=require("./usePrinter-DhZH4pcR.cjs"),H=require("./useResponsive-YQYQrAZ_.cjs"),Ne=require("./vue-ui-accordion-C3Ljak65.cjs"),Pe=require("./DataTable-Qba16zLZ.cjs"),Be=require("./BaseIcon-DMhDupLt.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=require("./useNestedProp-CnH-XcZU.cjs"),Fe=require("./PackageVersion-Vv7wNIAl.cjs"),ze=require("./Tooltip-BXY2gKbA.cjs"),Ae=require("./PenAndPaper-DSEAEpTs.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ee={"data-html2canvas-ignore":""},Me={key:0,class:"reset-wrapper"},Ie={key:1,class:"reset-wrapper"},Re={class:"mono-slicer"},_e=["min","max","value"],qe={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(d,{emit:R}){e.useCssVars(y=>({"782b8172":i.value,"102109e6":B.value,"642212d7":$.value,"1f5369d4":d.selectColor,"22b98ab8":C.value}));const v=d,i=e.computed(()=>v.inputColor),C=e.computed(()=>v.background),$=e.computed(()=>`${v.selectColor}33`),B=e.computed(()=>v.borderColor),f=R;function T(){f("reset")}const F=e.computed(()=>{const y=v.max-v.min,m=0,b=(v.value-v.min)/y*100;return{left:`${m}%`,width:`${b-m}%`,background:v.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ee,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Me,[d.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:T},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:T},[e.createVNode(Be.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ie)),e.createElementVNode("div",Re,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(F.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=b=>f("update:value",Number(b.target.value)))},null,40,_e)])]))}},We=ve._export_sfc(qe,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],De=["xmlns","viewBox"],Ge=["width","height"],Le=["transform"],je=["fill","font-weight","x","y","font-size","transform","onMouseover"],He={key:4,class:"vue-data-ui-watermark"},Xe=["innerHTML"],Ye={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(d,{expose:R}){const{vue_ui_word_cloud:v}=s.useConfig(),i=d,C=e.computed({get(){return!!i.dataset&&i.dataset.length},set(o){return o}}),$=e.ref(s.createUid()),B=e.ref(0),f=e.ref(null),T=e.ref(null),F=e.ref(null),y=e.ref(0),m=e.ref(0),b=e.ref(!1),t=e.computed({get:()=>Q(),set:o=>o}),k=e.ref(X());function X(){return typeof i.dataset=="string"?s.createWordCloudDatasetFromPlainText(i.dataset):i.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))}e.watch(()=>i.dataset,()=>{k.value=X(),A()});const{userOptionsVisible:_,setUserOptionsVisibility:Y,keepUserOptionState:J}=Oe.useUserOptionState({config:t.value}),{svgRef:K}=Ve.useChartAccessibility({config:t.value.style.chart.title});function Q(){const o=de.useNestedProp({userConfig:i.config,defaultConfig:v});return o.theme?{...de.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Q(),_.value=!t.value.userOptions.showOnChartHover,ee(),y.value+=1,m.value+=1,q(),c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const Z=e.ref(null),w=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),he=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:f.value,title:t.value.style.chart.title.text?T.value:null,slicer:t.value.style.chart.zoom.show&&Z.value,source:F.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(A)})});e.watch(()=>w.value,()=>{me()});const me=H.debounce(()=>{A()},10);function q(){w.value=W.value}const z=e.ref(null);e.onMounted(()=>{ee(),q()});function ee(){s.objectIsEmpty(i.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{C.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(z.value=new ResizeObserver(he),z.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{z.value&&z.value.disconnect()});const{isPrinting:te,isImaging:oe,generatePdf:le,generateImage:ae}=ce.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),c=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function pe(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function fe(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ge(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,p=0;return o.forEach(x=>{let L=!1;for(let I=0;I<Math.max(a,l)/2&&!L;I+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const ie=j*Math.PI/180,ke=h+I*Math.cos(ie)-x.width/2,we=p+I*Math.sin(ie)-x.height/2,g={...x,x:ke,y:we},Se=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,xe=u.some($e=>fe(g,$e));Se&&!xe&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>i.dataset,A,{immediate:!0});const W=e.computed(()=>Math.round(Math.min(...k.value.map(o=>o.value)))),ne=e.computed(()=>Math.round(Math.max(...k.value.map(o=>o.value))));function A(){const o=[...k.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...k.value].filter(n=>n.value>=w.value).map((n,h)=>{let p=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;p=isNaN(p)?r.value.minFontSize:p;const x=pe(n.name,p);return{...n,id:s.createUid(),fontSize:p,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=ge(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const O=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function re(){e.nextTick(()=>{const o=O.value.head.map((u,n)=>[[u.name],[O.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const V=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=O.value.head.map((n,h)=>{const p=s.dataLabel({p:t.value.table.td.prefix,v:O.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},p]}),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{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),E=e.ref(!1);function ye(o){E.value=o,B.value+=1}function be(){return N.value}function se(){c.value.showTable=!c.value.showTable}function ue(){c.value.showTooltip=!c.value.showTooltip}const M=e.ref(!1);function U(){M.value=!M.value}R({getData:be,generateCsv:re,generatePdf:le,generateImage:ae,toggleTable:se,toggleTooltip:ue,toggleAnnotator:U});const S=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function Ce(o){if(!c.value.showTooltip)return;S.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;D.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}b.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(Y)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(Y)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ae.PenAndPaper,{key:0,svgRef:e.unref(K),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:T,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${y.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&C.value&&(e.unref(J)||e.unref(_))?(e.openBlock(),e.createBlock(ce.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(te),isImaging:e.unref(oe),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:c.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:ye,onGeneratePdf:e.unref(le),onGenerateCsv:re,onGenerateImage:e.unref(ae),onToggleTable:se,onToggleTooltip:ue,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(J)?e.unref(_)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:K,class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Fe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":S.value&&S.value===l.id&&c.value.showTooltip,"word-not-selected":S.value&&S.value!==l.id&&c.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>Ce(l),onMouseleave:a[0]||(a[0]=n=>{S.value=null,b.value=!1}),style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,je))]))),256))],8,Le),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,De)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",He,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(oe)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(ze._sfc_main,{show:c.value.showTooltip&&b.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:Z,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&W.value<ne.value?(e.openBlock(),e.createBlock(We,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:W.value,max:ne.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:F,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(Ne.default,{key:6,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Pe.DataTable,{key:`table_${m.value}`,colNames:V.value.colNames,head:V.value.head,body:V.value.body,config:V.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Je=ve._export_sfc(Ye,[["__scopeId","data-v-e87563ab"]]);exports.default=Je;
|