vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -0,0 +1,607 @@
|
|
|
1
|
+
import { useCssVars as Be, computed as p, openBlock as r, createElementBlock as h, createVNode as oe, renderSlot as d, createElementVNode as x, normalizeStyle as ae, pushScopeId as De, popScopeId as Ve, ref as n, watch as te, onMounted as Ee, onBeforeUnmount as Ue, createBlock as z, createCommentVNode as C, unref as $, createSlots as Ge, withCtx as v, normalizeProps as A, guardReactiveProps as I, normalizeClass as ge, Fragment as Le, renderList as Xe, toDisplayString as ye, createTextVNode as je, nextTick as be } from "vue";
|
|
2
|
+
import { u as Ye, _ as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { _ as nt } from "./Title-C5pIfQAz.js";
|
|
4
|
+
import { u as st, U as rt } from "./usePrinter-CiHd1FwD.js";
|
|
5
|
+
import { d as ut, t as it, u as ct } from "./useResponsive-BY8tgM1n.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-DfUfL2dI.js";
|
|
7
|
+
import { D as vt } from "./DataTable-DYqC2pqu.js";
|
|
8
|
+
import ht from "./BaseIcon-BbvG1AlW.js";
|
|
9
|
+
import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { u as we } from "./useNestedProp-B33hazbH.js";
|
|
11
|
+
import { _ as mt } from "./PackageVersion-VkaUzgmt.js";
|
|
12
|
+
import { _ as ft } from "./Tooltip-Cz24YLfw.js";
|
|
13
|
+
import { P as pt } from "./PenAndPaper-DAZYA8Ew.js";
|
|
14
|
+
const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2canvas-ignore": "" }, bt = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "reset-wrapper"
|
|
17
|
+
}, Ct = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "reset-wrapper"
|
|
20
|
+
}, kt = { class: "mono-slicer" }, wt = /* @__PURE__ */ gt(() => /* @__PURE__ */ x("div", { class: "slider-track" }, null, -1)), $t = ["min", "max", "value"], xt = {
|
|
21
|
+
__name: "MonoSlicer",
|
|
22
|
+
props: {
|
|
23
|
+
min: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0
|
|
26
|
+
},
|
|
27
|
+
max: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0
|
|
30
|
+
},
|
|
31
|
+
inputColor: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#1A1A1A"
|
|
34
|
+
},
|
|
35
|
+
background: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "#FFFFFF"
|
|
38
|
+
},
|
|
39
|
+
borderColor: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "#FFFFFF"
|
|
42
|
+
},
|
|
43
|
+
selectColor: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "#4A4A4A"
|
|
46
|
+
},
|
|
47
|
+
textColor: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "#1A1A1A"
|
|
50
|
+
},
|
|
51
|
+
useResetSlot: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
value: {
|
|
56
|
+
type: Number,
|
|
57
|
+
default: 0
|
|
58
|
+
},
|
|
59
|
+
source: {
|
|
60
|
+
type: Number,
|
|
61
|
+
default: 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
emits: ["update:value", "reset"],
|
|
65
|
+
setup(c, { emit: B }) {
|
|
66
|
+
const s = c;
|
|
67
|
+
Be((w) => ({
|
|
68
|
+
"90ad3208": j.value,
|
|
69
|
+
"4f9eef70": O.value,
|
|
70
|
+
"6e07ae3e": k.value,
|
|
71
|
+
"2fd430a0": c.selectColor,
|
|
72
|
+
"6b8169a4": T.value
|
|
73
|
+
}));
|
|
74
|
+
const j = p(() => s.inputColor), T = p(() => s.background), k = p(() => `${s.selectColor}33`), O = p(() => s.borderColor);
|
|
75
|
+
function M() {
|
|
76
|
+
B("reset");
|
|
77
|
+
}
|
|
78
|
+
const g = p(() => {
|
|
79
|
+
const w = s.max - s.min, y = 0, S = (s.value - s.min) / w * 100;
|
|
80
|
+
return {
|
|
81
|
+
left: `${y}%`,
|
|
82
|
+
width: `${S - y}%`,
|
|
83
|
+
background: s.selectColor
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
return (w, y) => (r(), h("div", yt, [
|
|
87
|
+
c.value !== c.source ? (r(), h("div", bt, [
|
|
88
|
+
c.useResetSlot ? d(w.$slots, "reset-action", {
|
|
89
|
+
key: 1,
|
|
90
|
+
reset: M
|
|
91
|
+
}, void 0, !0) : (r(), h("button", {
|
|
92
|
+
key: 0,
|
|
93
|
+
"data-cy-reset": "",
|
|
94
|
+
tabindex: "0",
|
|
95
|
+
role: "button",
|
|
96
|
+
class: "vue-data-ui-refresh-button",
|
|
97
|
+
onClick: M
|
|
98
|
+
}, [
|
|
99
|
+
oe(ht, {
|
|
100
|
+
name: "refresh",
|
|
101
|
+
stroke: c.textColor
|
|
102
|
+
}, null, 8, ["stroke"])
|
|
103
|
+
]))
|
|
104
|
+
])) : (r(), h("div", Ct)),
|
|
105
|
+
x("div", kt, [
|
|
106
|
+
wt,
|
|
107
|
+
x("div", {
|
|
108
|
+
class: "range-highlight",
|
|
109
|
+
style: ae(g.value)
|
|
110
|
+
}, null, 4),
|
|
111
|
+
x("input", {
|
|
112
|
+
type: "range",
|
|
113
|
+
min: c.min,
|
|
114
|
+
max: c.max,
|
|
115
|
+
value: Number(c.value),
|
|
116
|
+
onInput: y[0] || (y[0] = (S) => B("update:value", Number(S.target.value)))
|
|
117
|
+
}, null, 40, $t)
|
|
118
|
+
])
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
}, Tt = /* @__PURE__ */ $e(xt, [["__scopeId", "data-v-3fd7d274"]]), St = ["id"], Ft = ["xmlns", "viewBox"], _t = ["transform"], Nt = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Pt = {
|
|
122
|
+
key: 4,
|
|
123
|
+
class: "vue-data-ui-watermark"
|
|
124
|
+
}, zt = ["innerHTML"], At = {
|
|
125
|
+
__name: "vue-ui-word-cloud",
|
|
126
|
+
props: {
|
|
127
|
+
config: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default() {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
dataset: {
|
|
134
|
+
type: [Array, String],
|
|
135
|
+
default() {
|
|
136
|
+
return [];
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
setup(c, { expose: B }) {
|
|
141
|
+
const s = c, { vue_ui_word_cloud: j } = Ye(), T = p({
|
|
142
|
+
get() {
|
|
143
|
+
return !!s.dataset && s.dataset.length;
|
|
144
|
+
},
|
|
145
|
+
set(t) {
|
|
146
|
+
return t;
|
|
147
|
+
}
|
|
148
|
+
}), k = n(typeof s.dataset == "string" ? qe(s.dataset) : s.dataset.map((t) => ({
|
|
149
|
+
...t,
|
|
150
|
+
value: He(t.value)
|
|
151
|
+
}))), O = n(Ce()), M = n(0), g = n(null), w = n(null), y = n(null), S = n(0), le = n(0), Y = n(!1), e = p({
|
|
152
|
+
get: () => ne(),
|
|
153
|
+
set: (t) => t
|
|
154
|
+
});
|
|
155
|
+
function ne() {
|
|
156
|
+
const t = we({
|
|
157
|
+
userConfig: s.config,
|
|
158
|
+
defaultConfig: j
|
|
159
|
+
});
|
|
160
|
+
return t.theme ? {
|
|
161
|
+
...we({
|
|
162
|
+
userConfig: Je.vue_ui_word_cloud[t.theme] || s.config,
|
|
163
|
+
defaultConfig: t
|
|
164
|
+
}),
|
|
165
|
+
customPalette: Ke[t.theme] || X
|
|
166
|
+
} : t;
|
|
167
|
+
}
|
|
168
|
+
te(() => s.config, (t) => {
|
|
169
|
+
e.value = ne(), re(), S.value += 1, le.value += 1, q();
|
|
170
|
+
}, { deep: !0 });
|
|
171
|
+
const se = n(null), F = n(0), u = n({
|
|
172
|
+
width: e.value.style.chart.width,
|
|
173
|
+
height: e.value.style.chart.height,
|
|
174
|
+
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
175
|
+
minFontSize: e.value.style.chart.words.minFontSize
|
|
176
|
+
}), xe = it(() => {
|
|
177
|
+
const { width: t, height: a } = ct({
|
|
178
|
+
chart: g.value,
|
|
179
|
+
title: e.value.style.chart.title.text ? w.value : null,
|
|
180
|
+
slicer: e.value.style.chart.zoom.show && se.value,
|
|
181
|
+
source: y.value
|
|
182
|
+
});
|
|
183
|
+
u.value.width = t, u.value.height = a, be(H);
|
|
184
|
+
});
|
|
185
|
+
te(() => F.value, () => {
|
|
186
|
+
Te();
|
|
187
|
+
});
|
|
188
|
+
const Te = ut(() => {
|
|
189
|
+
H();
|
|
190
|
+
}, 10);
|
|
191
|
+
function q() {
|
|
192
|
+
F.value = ve.value;
|
|
193
|
+
}
|
|
194
|
+
const D = n(null);
|
|
195
|
+
Ee(() => {
|
|
196
|
+
re(), q();
|
|
197
|
+
});
|
|
198
|
+
function re() {
|
|
199
|
+
Qe(s.dataset) ? ke({
|
|
200
|
+
componentName: "VueUiWordCloud",
|
|
201
|
+
type: "dataset"
|
|
202
|
+
}) : k.value.forEach((t, a) => {
|
|
203
|
+
Ze({
|
|
204
|
+
datasetObject: t,
|
|
205
|
+
requiredAttributes: ["name", "value"]
|
|
206
|
+
}).forEach((o) => {
|
|
207
|
+
T.value = !1, ke({
|
|
208
|
+
componentName: "VueUiWordCloud",
|
|
209
|
+
type: "datasetSerieAttribute",
|
|
210
|
+
property: o,
|
|
211
|
+
index: a
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
}), e.value.responsive && (D.value = new ResizeObserver(xe), D.value.observe(g.value.parentNode));
|
|
215
|
+
}
|
|
216
|
+
Ue(() => {
|
|
217
|
+
D.value && D.value.disconnect();
|
|
218
|
+
});
|
|
219
|
+
const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = st({
|
|
220
|
+
elementId: `wordCloud_${O.value}`,
|
|
221
|
+
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
222
|
+
}), m = n({
|
|
223
|
+
showTable: e.value.table.show,
|
|
224
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
225
|
+
});
|
|
226
|
+
function Se(t, a, o = "Arial") {
|
|
227
|
+
const l = document.createElement("canvas").getContext("2d");
|
|
228
|
+
return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
229
|
+
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
230
|
+
height: a
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function Fe(t, a) {
|
|
234
|
+
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;
|
|
235
|
+
}
|
|
236
|
+
function _e(t, a, o) {
|
|
237
|
+
const i = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, f = 0, N = 0;
|
|
238
|
+
return t.forEach((P) => {
|
|
239
|
+
let Z = !1;
|
|
240
|
+
for (let L = 0; L < Math.max(a, o) / 2 && !Z; L += e.value.style.chart.words.packingWeight)
|
|
241
|
+
for (let ee = 0; ee < 360 && !Z; ee += e.value.style.chart.words.packingWeight) {
|
|
242
|
+
const pe = ee * Math.PI / 180, Ie = f + L * Math.cos(pe) - P.width / 2, Oe = N + L * Math.sin(pe) - P.height / 2, b = { ...P, x: Ie, y: Oe }, Me = b.x >= l.x && b.y >= l.y && b.x + b.width <= l.x + l.width && b.y + b.height <= l.y + l.height, We = i.some((Re) => Fe(b, Re));
|
|
243
|
+
Me && !We && (i.push(b), Z = !0);
|
|
244
|
+
}
|
|
245
|
+
}), i;
|
|
246
|
+
}
|
|
247
|
+
const W = n([]);
|
|
248
|
+
te(() => s.dataset, H, { immediate: !0 });
|
|
249
|
+
const ve = p(() => Math.min(...k.value.map((t) => t.value))), Ne = p(() => Math.max(...k.value.map((t) => t.value)));
|
|
250
|
+
function H() {
|
|
251
|
+
const t = [...k.value].filter((l) => l.value >= F.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), i = [...k.value].filter((l) => l.value >= F.value).map((l, f) => {
|
|
252
|
+
const N = (l.value - o) / (a - o) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize, P = Se(l.name, N);
|
|
253
|
+
return {
|
|
254
|
+
...l,
|
|
255
|
+
id: Ce(),
|
|
256
|
+
fontSize: N,
|
|
257
|
+
width: P.width,
|
|
258
|
+
height: P.height,
|
|
259
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[f] || e.value.customPalette[f % e.value.customPalette.length] || X[f] || X[f % X.length] : e.value.style.chart.words.color
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
W.value = _e(i, u.value.width, u.value.height).sort((l, f) => f.fontSize - l.fontSize);
|
|
263
|
+
}
|
|
264
|
+
const V = p(() => {
|
|
265
|
+
const t = W.value.map((o) => ({
|
|
266
|
+
name: o.name,
|
|
267
|
+
color: o.color
|
|
268
|
+
})), a = W.value.map((o) => o.value);
|
|
269
|
+
return { head: t, body: a };
|
|
270
|
+
});
|
|
271
|
+
function he() {
|
|
272
|
+
be(() => {
|
|
273
|
+
const t = V.value.head.map((i, l) => [[
|
|
274
|
+
i.name
|
|
275
|
+
], [V.value.body[l]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = ot(a);
|
|
276
|
+
at({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
const E = p(() => {
|
|
280
|
+
const t = [
|
|
281
|
+
e.value.table.columnNames.series,
|
|
282
|
+
e.value.table.columnNames.value
|
|
283
|
+
], a = V.value.head.map((l, f) => {
|
|
284
|
+
const N = et({ p: e.value.table.td.prefix, v: V.value.body[f], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
285
|
+
return [
|
|
286
|
+
{
|
|
287
|
+
color: l.color,
|
|
288
|
+
name: l.name
|
|
289
|
+
},
|
|
290
|
+
N
|
|
291
|
+
];
|
|
292
|
+
}), o = {
|
|
293
|
+
th: {
|
|
294
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
295
|
+
color: e.value.table.th.color,
|
|
296
|
+
outline: e.value.table.th.outline
|
|
297
|
+
},
|
|
298
|
+
td: {
|
|
299
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
300
|
+
color: e.value.table.td.color,
|
|
301
|
+
outline: e.value.table.td.outline
|
|
302
|
+
},
|
|
303
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
304
|
+
};
|
|
305
|
+
return {
|
|
306
|
+
colNames: [
|
|
307
|
+
e.value.table.columnNames.series,
|
|
308
|
+
e.value.table.columnNames.value
|
|
309
|
+
],
|
|
310
|
+
head: t,
|
|
311
|
+
body: a,
|
|
312
|
+
config: o
|
|
313
|
+
};
|
|
314
|
+
}), U = n(!1);
|
|
315
|
+
function Pe(t) {
|
|
316
|
+
U.value = t, M.value += 1;
|
|
317
|
+
}
|
|
318
|
+
function ze() {
|
|
319
|
+
return W.value;
|
|
320
|
+
}
|
|
321
|
+
function me() {
|
|
322
|
+
m.value.showTable = !m.value.showTable;
|
|
323
|
+
}
|
|
324
|
+
function fe() {
|
|
325
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
326
|
+
}
|
|
327
|
+
const G = n(!1);
|
|
328
|
+
function J() {
|
|
329
|
+
G.value = !G.value;
|
|
330
|
+
}
|
|
331
|
+
B({
|
|
332
|
+
getData: ze,
|
|
333
|
+
generateCsv: he,
|
|
334
|
+
generatePdf: ce,
|
|
335
|
+
generateImage: de,
|
|
336
|
+
toggleTable: me,
|
|
337
|
+
toggleTooltip: fe,
|
|
338
|
+
toggleAnnotator: J
|
|
339
|
+
});
|
|
340
|
+
const _ = n(null), R = n(!1), K = n(""), Q = n(null);
|
|
341
|
+
function Ae(t) {
|
|
342
|
+
if (!m.value.showTooltip) return;
|
|
343
|
+
_.value = t.id, Q.value = { datapoint: t, config: e.value };
|
|
344
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
345
|
+
if (R.value = !1, lt(a))
|
|
346
|
+
try {
|
|
347
|
+
const o = a({
|
|
348
|
+
datapoint: t,
|
|
349
|
+
config: e.value
|
|
350
|
+
});
|
|
351
|
+
typeof o == "string" && (K.value = o, R.value = !0);
|
|
352
|
+
} catch {
|
|
353
|
+
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
354
|
+
}
|
|
355
|
+
if (!R.value) {
|
|
356
|
+
let o = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
357
|
+
K.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
|
|
358
|
+
}
|
|
359
|
+
Y.value = !0;
|
|
360
|
+
}
|
|
361
|
+
return (t, a) => (r(), h("div", {
|
|
362
|
+
class: "vue-ui-word-cloud",
|
|
363
|
+
ref_key: "wordCloudChart",
|
|
364
|
+
ref: g,
|
|
365
|
+
id: `wordCloud_${O.value}`,
|
|
366
|
+
style: ae(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
367
|
+
}, [
|
|
368
|
+
e.value.userOptions.buttons.annotator ? (r(), z(pt, {
|
|
369
|
+
key: 0,
|
|
370
|
+
parent: g.value,
|
|
371
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
372
|
+
color: e.value.style.chart.color,
|
|
373
|
+
active: G.value,
|
|
374
|
+
onClose: J
|
|
375
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : C("", !0),
|
|
376
|
+
e.value.style.chart.title.text ? (r(), h("div", {
|
|
377
|
+
key: 1,
|
|
378
|
+
ref_key: "chartTitle",
|
|
379
|
+
ref: w,
|
|
380
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
381
|
+
}, [
|
|
382
|
+
(r(), z(nt, {
|
|
383
|
+
key: `title_${S.value}`,
|
|
384
|
+
config: {
|
|
385
|
+
title: {
|
|
386
|
+
...e.value.style.chart.title
|
|
387
|
+
},
|
|
388
|
+
subtitle: {
|
|
389
|
+
...e.value.style.chart.title.subtitle
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}, null, 8, ["config"]))
|
|
393
|
+
], 512)) : C("", !0),
|
|
394
|
+
e.value.userOptions.show && T.value ? (r(), z(rt, {
|
|
395
|
+
ref: "details",
|
|
396
|
+
key: `user_option_${M.value}`,
|
|
397
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
398
|
+
color: e.value.style.chart.color,
|
|
399
|
+
isPrinting: $(ue),
|
|
400
|
+
isImaging: $(ie),
|
|
401
|
+
uid: O.value,
|
|
402
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
403
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
404
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
405
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
406
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
407
|
+
isFullscreen: U.value,
|
|
408
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
409
|
+
chartElement: g.value,
|
|
410
|
+
position: e.value.userOptions.position,
|
|
411
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
412
|
+
isTooltip: m.value.showTooltip,
|
|
413
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
414
|
+
isAnnotation: G.value,
|
|
415
|
+
onToggleFullscreen: Pe,
|
|
416
|
+
onGeneratePdf: $(ce),
|
|
417
|
+
onGenerateCsv: he,
|
|
418
|
+
onGenerateImage: $(de),
|
|
419
|
+
onToggleTable: me,
|
|
420
|
+
onToggleTooltip: fe,
|
|
421
|
+
onToggleAnnotator: J
|
|
422
|
+
}, Ge({ _: 2 }, [
|
|
423
|
+
t.$slots.optionPdf ? {
|
|
424
|
+
name: "optionPdf",
|
|
425
|
+
fn: v(() => [
|
|
426
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
427
|
+
]),
|
|
428
|
+
key: "0"
|
|
429
|
+
} : void 0,
|
|
430
|
+
t.$slots.optionCsv ? {
|
|
431
|
+
name: "optionCsv",
|
|
432
|
+
fn: v(() => [
|
|
433
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
434
|
+
]),
|
|
435
|
+
key: "1"
|
|
436
|
+
} : void 0,
|
|
437
|
+
t.$slots.optionImg ? {
|
|
438
|
+
name: "optionImg",
|
|
439
|
+
fn: v(() => [
|
|
440
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
441
|
+
]),
|
|
442
|
+
key: "2"
|
|
443
|
+
} : void 0,
|
|
444
|
+
t.$slots.optionTable ? {
|
|
445
|
+
name: "optionTable",
|
|
446
|
+
fn: v(() => [
|
|
447
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
448
|
+
]),
|
|
449
|
+
key: "3"
|
|
450
|
+
} : void 0,
|
|
451
|
+
t.$slots.optionFullscreen ? {
|
|
452
|
+
name: "optionFullscreen",
|
|
453
|
+
fn: v(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
454
|
+
d(t.$slots, "optionFullscreen", A(I({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
455
|
+
]),
|
|
456
|
+
key: "4"
|
|
457
|
+
} : void 0,
|
|
458
|
+
t.$slots.optionAnnotator ? {
|
|
459
|
+
name: "optionAnnotator",
|
|
460
|
+
fn: v(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
461
|
+
d(t.$slots, "optionAnnotator", A(I({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
462
|
+
]),
|
|
463
|
+
key: "5"
|
|
464
|
+
} : void 0
|
|
465
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : C("", !0),
|
|
466
|
+
T.value ? (r(), h("svg", {
|
|
467
|
+
key: 3,
|
|
468
|
+
class: ge({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
469
|
+
xmlns: $(tt),
|
|
470
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
471
|
+
style: "overflow:visible;background:transparent;"
|
|
472
|
+
}, [
|
|
473
|
+
oe(mt),
|
|
474
|
+
x("g", {
|
|
475
|
+
transform: `translate(${(u.value.width <= 0 ? 10 : u.value.width) / 2}, ${(u.value.height <= 0 ? 10 : u.value.height) / 2})`
|
|
476
|
+
}, [
|
|
477
|
+
(r(!0), h(Le, null, Xe(W.value, (o, i) => (r(), h("g", null, [
|
|
478
|
+
(r(), h("text", {
|
|
479
|
+
fill: o.color,
|
|
480
|
+
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
481
|
+
key: i,
|
|
482
|
+
x: o.x,
|
|
483
|
+
y: o.y,
|
|
484
|
+
"font-size": o.fontSize,
|
|
485
|
+
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
486
|
+
class: ge({ animated: e.value.useCssAnimation, "word-selected": _.value && _.value === o.id && m.value.showTooltip, "word-not-selected": _.value && _.value !== o.id && m.value.showTooltip }),
|
|
487
|
+
"text-anchor": "middle",
|
|
488
|
+
"dominant-baseline": "middle",
|
|
489
|
+
onMouseover: (l) => Ae(o),
|
|
490
|
+
onMouseleave: a[0] || (a[0] = (l) => {
|
|
491
|
+
_.value = null, Y.value = !1;
|
|
492
|
+
}),
|
|
493
|
+
style: ae(`animation-delay:${i * e.value.animationDelayMs}ms !important;`)
|
|
494
|
+
}, ye(o.name), 47, Nt))
|
|
495
|
+
]))), 256))
|
|
496
|
+
], 8, _t),
|
|
497
|
+
d(t.$slots, "svg", {
|
|
498
|
+
svg: { height: u.value.height, width: u.value.width }
|
|
499
|
+
}, void 0, !0)
|
|
500
|
+
], 10, Ft)) : C("", !0),
|
|
501
|
+
t.$slots.watermark ? (r(), h("div", Pt, [
|
|
502
|
+
d(t.$slots, "watermark", A(I({ isPrinting: $(ue) || $(ie) })), void 0, !0)
|
|
503
|
+
])) : C("", !0),
|
|
504
|
+
oe(ft, {
|
|
505
|
+
show: m.value.showTooltip && Y.value,
|
|
506
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
507
|
+
color: e.value.style.chart.tooltip.color,
|
|
508
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
509
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
510
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
511
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
512
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
513
|
+
position: e.value.style.chart.tooltip.position,
|
|
514
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
515
|
+
parent: g.value,
|
|
516
|
+
content: K.value,
|
|
517
|
+
isCustom: R.value
|
|
518
|
+
}, {
|
|
519
|
+
"tooltip-before": v(() => [
|
|
520
|
+
d(t.$slots, "tooltip-before", A(I({ ...Q.value })), void 0, !0)
|
|
521
|
+
]),
|
|
522
|
+
"tooltip-after": v(() => [
|
|
523
|
+
d(t.$slots, "tooltip-after", A(I({ ...Q.value })), void 0, !0)
|
|
524
|
+
]),
|
|
525
|
+
_: 3
|
|
526
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
527
|
+
x("div", {
|
|
528
|
+
ref_key: "chartSlicer",
|
|
529
|
+
ref: se,
|
|
530
|
+
style: "width:100%;background:transparent",
|
|
531
|
+
"data-html2canvas-ignore": ""
|
|
532
|
+
}, [
|
|
533
|
+
e.value.style.chart.zoom.show ? (r(), z(Tt, {
|
|
534
|
+
key: 0,
|
|
535
|
+
value: F.value,
|
|
536
|
+
"onUpdate:value": a[1] || (a[1] = (o) => F.value = o),
|
|
537
|
+
min: ve.value,
|
|
538
|
+
max: Ne.value,
|
|
539
|
+
textColor: e.value.style.chart.color,
|
|
540
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
541
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
542
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
543
|
+
background: e.value.style.chart.zoom.color,
|
|
544
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
545
|
+
source: e.value.style.chart.width,
|
|
546
|
+
onReset: q
|
|
547
|
+
}, {
|
|
548
|
+
"reset-action": v(({ reset: o }) => [
|
|
549
|
+
d(t.$slots, "reset-action", A(I({ reset: o })), void 0, !0)
|
|
550
|
+
]),
|
|
551
|
+
_: 3
|
|
552
|
+
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : C("", !0)
|
|
553
|
+
], 512),
|
|
554
|
+
t.$slots.source ? (r(), h("div", {
|
|
555
|
+
key: 5,
|
|
556
|
+
ref_key: "source",
|
|
557
|
+
ref: y,
|
|
558
|
+
dir: "auto"
|
|
559
|
+
}, [
|
|
560
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
561
|
+
], 512)) : C("", !0),
|
|
562
|
+
T.value ? (r(), z(dt, {
|
|
563
|
+
key: 6,
|
|
564
|
+
hideDetails: "",
|
|
565
|
+
config: {
|
|
566
|
+
open: m.value.showTable,
|
|
567
|
+
maxHeight: 1e4,
|
|
568
|
+
body: {
|
|
569
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
570
|
+
color: e.value.style.chart.color
|
|
571
|
+
},
|
|
572
|
+
head: {
|
|
573
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
574
|
+
color: e.value.style.chart.color
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}, {
|
|
578
|
+
content: v(() => [
|
|
579
|
+
(r(), z(vt, {
|
|
580
|
+
key: `table_${le.value}`,
|
|
581
|
+
colNames: E.value.colNames,
|
|
582
|
+
head: E.value.head,
|
|
583
|
+
body: E.value.body,
|
|
584
|
+
config: E.value.config,
|
|
585
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
586
|
+
onClose: a[2] || (a[2] = (o) => m.value.showTable = !1)
|
|
587
|
+
}, {
|
|
588
|
+
th: v(({ th: o }) => [
|
|
589
|
+
x("div", {
|
|
590
|
+
innerHTML: o,
|
|
591
|
+
style: { display: "flex", "align-items": "center" }
|
|
592
|
+
}, null, 8, zt)
|
|
593
|
+
]),
|
|
594
|
+
td: v(({ td: o }) => [
|
|
595
|
+
je(ye(o.name || o), 1)
|
|
596
|
+
]),
|
|
597
|
+
_: 1
|
|
598
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
599
|
+
]),
|
|
600
|
+
_: 1
|
|
601
|
+
}, 8, ["config"])) : C("", !0)
|
|
602
|
+
], 12, St));
|
|
603
|
+
}
|
|
604
|
+
}, jt = /* @__PURE__ */ $e(At, [["__scopeId", "data-v-045e07b5"]]);
|
|
605
|
+
export {
|
|
606
|
+
jt as default
|
|
607
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-eFox7weK.cjs"),ke=require("./Title-0Tp4hZ4u.cjs"),ae=require("./usePrinter-CSRFnDBU.cjs"),G=require("./useResponsive-CodiGUOE.cjs"),we=require("./vue-ui-accordion-TEMpM1hO.cjs"),xe=require("./DataTable-DTzynbND.cjs"),Se=require("./BaseIcon-uALK38Ov.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-BkgEhTQY.cjs"),$e=require("./PackageVersion-DwI-KhXH.cjs"),Te=require("./Tooltip-9Tp2Yrd1.cjs"),Ne=require("./PenAndPaper-CDFVOo7X.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=e.ref(null),C=e.ref(0),u=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ie(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.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 z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),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.ref(!1);function he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(q.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.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>`;q.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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&&y.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),uid:S.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:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),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"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode($e._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(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:i,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":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"middle",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:d.value.showTooltip&&I.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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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:O},{"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:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,hideDetails:"",config:{open:d.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(xe.DataTable,{key:`table_${L.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,De)]),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)],12,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-045e07b5"]]);exports.default=Ge;
|