vue-data-ui 2.4.57 → 2.4.59
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 +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useCssVars as De, computed as g, openBlock as
|
|
2
|
-
import { u as Je, a1 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, 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 De, computed as g, openBlock as u, createElementBlock as h, createVNode as le, renderSlot as d, createElementVNode as x, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as ae, onMounted as Le, onBeforeUnmount as Xe, unref as v, createBlock as O, createCommentVNode as y, createSlots as je, withCtx as m, normalizeProps as A, guardReactiveProps as _, normalizeClass as Ce, Fragment as He, renderList as Ye, toDisplayString as ke, createTextVNode as qe, nextTick as we } from "vue";
|
|
2
|
+
import { u as Je, a1 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-B9RAElpI.js";
|
|
3
|
+
import { _ as ut } from "./Title-zZtEcB9F.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-CwTAwqtF.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-CoxXLe23.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-rNA598L6.js";
|
|
7
|
+
import { D as ft } from "./DataTable-CFUKU8PU.js";
|
|
8
|
+
import pt from "./BaseIcon-BbU81zOd.js";
|
|
9
9
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Se } 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 Se } from "./useNestedProp-DuruL3Nt.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-C_FFs0BP.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-DDJ2Wvjy.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-Dx24BtRW.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
16
16
|
key: 0,
|
|
@@ -64,7 +64,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
64
64
|
},
|
|
65
65
|
emits: ["update:value", "reset"],
|
|
66
66
|
setup(c, { emit: U }) {
|
|
67
|
-
const
|
|
67
|
+
const r = c;
|
|
68
68
|
De(($) => ({
|
|
69
69
|
"90ad3208": H.value,
|
|
70
70
|
"4f9eef70": I.value,
|
|
@@ -72,24 +72,24 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
72
72
|
"2fd430a0": c.selectColor,
|
|
73
73
|
"6b8169a4": S.value
|
|
74
74
|
}));
|
|
75
|
-
const H = g(() =>
|
|
75
|
+
const H = g(() => r.inputColor), S = g(() => r.background), w = g(() => `${r.selectColor}33`), I = g(() => r.borderColor);
|
|
76
76
|
function M() {
|
|
77
77
|
U("reset");
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
const $ =
|
|
79
|
+
const b = g(() => {
|
|
80
|
+
const $ = r.max - r.min, C = 0, T = (r.value - r.min) / $ * 100;
|
|
81
81
|
return {
|
|
82
|
-
left: `${
|
|
83
|
-
width: `${T -
|
|
84
|
-
background:
|
|
82
|
+
left: `${C}%`,
|
|
83
|
+
width: `${T - C}%`,
|
|
84
|
+
background: r.selectColor
|
|
85
85
|
};
|
|
86
86
|
});
|
|
87
|
-
return ($,
|
|
88
|
-
c.value !== c.source ? (
|
|
89
|
-
c.useResetSlot ?
|
|
87
|
+
return ($, C) => (u(), h("div", wt, [
|
|
88
|
+
c.value !== c.source ? (u(), h("div", $t, [
|
|
89
|
+
c.useResetSlot ? d($.$slots, "reset-action", {
|
|
90
90
|
key: 1,
|
|
91
91
|
reset: M
|
|
92
|
-
}, void 0, !0) : (
|
|
92
|
+
}, void 0, !0) : (u(), h("button", {
|
|
93
93
|
key: 0,
|
|
94
94
|
"data-cy-reset": "",
|
|
95
95
|
tabindex: "0",
|
|
@@ -102,27 +102,27 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
102
102
|
stroke: c.textColor
|
|
103
103
|
}, null, 8, ["stroke"])
|
|
104
104
|
]))
|
|
105
|
-
])) : (
|
|
105
|
+
])) : (u(), h("div", xt)),
|
|
106
106
|
x("div", St, [
|
|
107
107
|
Tt,
|
|
108
108
|
x("div", {
|
|
109
109
|
class: "range-highlight",
|
|
110
|
-
style: j(
|
|
110
|
+
style: j(b.value)
|
|
111
111
|
}, null, 4),
|
|
112
112
|
x("input", {
|
|
113
113
|
type: "range",
|
|
114
114
|
min: c.min,
|
|
115
115
|
max: c.max,
|
|
116
116
|
value: Number(c.value),
|
|
117
|
-
onInput:
|
|
117
|
+
onInput: C[0] || (C[0] = (T) => U("update:value", Number(T.target.value)))
|
|
118
118
|
}, null, 40, Ft)
|
|
119
119
|
])
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
|
-
}, Pt = /* @__PURE__ */ Te(Nt, [["__scopeId", "data-v-3fd7d274"]]), zt = ["id"],
|
|
122
|
+
}, Pt = /* @__PURE__ */ Te(Nt, [["__scopeId", "data-v-3fd7d274"]]), zt = ["id"], Ot = ["xmlns", "viewBox"], At = ["width", "height"], _t = ["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
|
+
}, Wt = ["innerHTML"], Rt = {
|
|
126
126
|
__name: "vue-ui-word-cloud",
|
|
127
127
|
props: {
|
|
128
128
|
config: {
|
|
@@ -139,49 +139,49 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
setup(c, { expose: U }) {
|
|
142
|
-
const
|
|
142
|
+
const r = c, { vue_ui_word_cloud: H } = Je(), S = g({
|
|
143
143
|
get() {
|
|
144
|
-
return !!
|
|
144
|
+
return !!r.dataset && r.dataset.length;
|
|
145
145
|
},
|
|
146
146
|
set(t) {
|
|
147
147
|
return t;
|
|
148
148
|
}
|
|
149
|
-
}), w =
|
|
149
|
+
}), w = n(typeof r.dataset == "string" ? Ke(r.dataset) : r.dataset.map((t) => ({
|
|
150
150
|
...t,
|
|
151
151
|
value: Qe(t.value)
|
|
152
|
-
}))), I =
|
|
152
|
+
}))), I = n($e()), M = n(0), b = n(null), $ = n(null), C = n(null), T = n(0), se = n(0), Y = n(!1), e = g({
|
|
153
153
|
get: () => ue(),
|
|
154
154
|
set: (t) => t
|
|
155
155
|
}), { userOptionsVisible: q, setUserOptionsVisibility: ne, keepUserOptionState: re } = Ct({ config: e.value });
|
|
156
156
|
function ue() {
|
|
157
157
|
const t = Se({
|
|
158
|
-
userConfig:
|
|
158
|
+
userConfig: r.config,
|
|
159
159
|
defaultConfig: H
|
|
160
160
|
});
|
|
161
161
|
return t.theme ? {
|
|
162
162
|
...Se({
|
|
163
|
-
userConfig: Ze.vue_ui_word_cloud[t.theme] ||
|
|
163
|
+
userConfig: Ze.vue_ui_word_cloud[t.theme] || r.config,
|
|
164
164
|
defaultConfig: t
|
|
165
165
|
}),
|
|
166
166
|
customPalette: et[t.theme] || X
|
|
167
167
|
} : t;
|
|
168
168
|
}
|
|
169
|
-
ae(() =>
|
|
169
|
+
ae(() => r.config, (t) => {
|
|
170
170
|
e.value = ue(), q.value = !e.value.showOnChartHover, ce(), T.value += 1, se.value += 1, J();
|
|
171
171
|
}, { deep: !0 });
|
|
172
|
-
const ie =
|
|
172
|
+
const ie = n(null), F = n(0), s = n({
|
|
173
173
|
width: e.value.style.chart.width,
|
|
174
174
|
height: e.value.style.chart.height,
|
|
175
175
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
176
176
|
minFontSize: e.value.style.chart.words.minFontSize
|
|
177
177
|
}), Fe = vt(() => {
|
|
178
178
|
const { width: t, height: a } = ht({
|
|
179
|
-
chart:
|
|
179
|
+
chart: b.value,
|
|
180
180
|
title: e.value.style.chart.title.text ? $.value : null,
|
|
181
181
|
slicer: e.value.style.chart.zoom.show && ie.value,
|
|
182
|
-
source:
|
|
182
|
+
source: C.value
|
|
183
183
|
});
|
|
184
|
-
|
|
184
|
+
s.value.width = t, s.value.height = a, we(K);
|
|
185
185
|
});
|
|
186
186
|
ae(() => F.value, () => {
|
|
187
187
|
Ne();
|
|
@@ -192,12 +192,12 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
192
192
|
function J() {
|
|
193
193
|
F.value = fe.value;
|
|
194
194
|
}
|
|
195
|
-
const V =
|
|
195
|
+
const V = n(null);
|
|
196
196
|
Le(() => {
|
|
197
197
|
ce(), J();
|
|
198
198
|
});
|
|
199
199
|
function ce() {
|
|
200
|
-
tt(
|
|
200
|
+
tt(r.dataset) ? xe({
|
|
201
201
|
componentName: "VueUiWordCloud",
|
|
202
202
|
type: "dataset"
|
|
203
203
|
}) : w.value.forEach((t, a) => {
|
|
@@ -212,7 +212,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
212
212
|
index: a
|
|
213
213
|
});
|
|
214
214
|
});
|
|
215
|
-
}), e.value.responsive && (V.value = new ResizeObserver(Fe), V.value.observe(
|
|
215
|
+
}), e.value.responsive && (V.value = new ResizeObserver(Fe), V.value.observe(b.value.parentNode));
|
|
216
216
|
}
|
|
217
217
|
Xe(() => {
|
|
218
218
|
V.value && V.value.disconnect();
|
|
@@ -220,7 +220,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
220
220
|
const { isPrinting: de, isImaging: ve, generatePdf: he, generateImage: me } = it({
|
|
221
221
|
elementId: `wordCloud_${I.value}`,
|
|
222
222
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
223
|
-
}), f =
|
|
223
|
+
}), f = n({
|
|
224
224
|
showTable: e.value.table.show,
|
|
225
225
|
showTooltip: e.value.style.chart.tooltip.show
|
|
226
226
|
});
|
|
@@ -234,23 +234,23 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
234
234
|
function ze(t, a) {
|
|
235
235
|
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;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Oe(t, a, o) {
|
|
238
238
|
const i = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, p = 0, P = 0;
|
|
239
239
|
return t.forEach((z) => {
|
|
240
240
|
let te = !1;
|
|
241
241
|
for (let L = 0; L < Math.max(a, o) / 2 && !te; L += e.value.style.chart.words.packingWeight)
|
|
242
242
|
for (let oe = 0; oe < 360 && !te; oe += e.value.style.chart.words.packingWeight) {
|
|
243
|
-
const be = oe * Math.PI / 180, We = p + L * Math.cos(be) - z.width / 2, Re = P + L * Math.sin(be) - z.height / 2,
|
|
244
|
-
Ue && !Ve && (i.push(
|
|
243
|
+
const be = oe * Math.PI / 180, We = p + L * Math.cos(be) - z.width / 2, Re = P + L * Math.sin(be) - z.height / 2, k = { ...z, x: We, y: Re }, Ue = k.x >= l.x && k.y >= l.y && k.x + k.width <= l.x + l.width && k.y + k.height <= l.y + l.height, Ve = i.some((Be) => ze(k, Be));
|
|
244
|
+
Ue && !Ve && (i.push(k), te = !0);
|
|
245
245
|
}
|
|
246
246
|
}), i;
|
|
247
247
|
}
|
|
248
|
-
const W =
|
|
249
|
-
ae(() =>
|
|
250
|
-
const fe = g(() => Math.min(...w.value.map((t) => t.value))),
|
|
248
|
+
const W = n([]);
|
|
249
|
+
ae(() => r.dataset, K, { immediate: !0 });
|
|
250
|
+
const fe = g(() => Math.min(...w.value.map((t) => t.value))), Ae = g(() => Math.max(...w.value.map((t) => t.value)));
|
|
251
251
|
function K() {
|
|
252
252
|
const t = [...w.value].filter((l) => l.value >= F.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), i = [...w.value].filter((l) => l.value >= F.value).map((l, p) => {
|
|
253
|
-
const P = (l.value - o) / (a - o) * (
|
|
253
|
+
const P = (l.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize, z = Pe(l.name, P);
|
|
254
254
|
return {
|
|
255
255
|
...l,
|
|
256
256
|
id: $e(),
|
|
@@ -260,7 +260,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
260
260
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[p] || e.value.customPalette[p % e.value.customPalette.length] || X[p] || X[p % X.length] : e.value.style.chart.words.color
|
|
261
261
|
};
|
|
262
262
|
});
|
|
263
|
-
W.value =
|
|
263
|
+
W.value = Oe(i, s.value.width, s.value.height).sort((l, p) => p.fontSize - l.fontSize);
|
|
264
264
|
}
|
|
265
265
|
const B = g(() => {
|
|
266
266
|
const t = W.value.map((o) => ({
|
|
@@ -312,7 +312,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
312
312
|
body: a,
|
|
313
313
|
config: o
|
|
314
314
|
};
|
|
315
|
-
}), E =
|
|
315
|
+
}), E = n(!1);
|
|
316
316
|
function _e(t) {
|
|
317
317
|
E.value = t, M.value += 1;
|
|
318
318
|
}
|
|
@@ -325,7 +325,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
325
325
|
function ye() {
|
|
326
326
|
f.value.showTooltip = !f.value.showTooltip;
|
|
327
327
|
}
|
|
328
|
-
const G =
|
|
328
|
+
const G = n(!1);
|
|
329
329
|
function Q() {
|
|
330
330
|
G.value = !G.value;
|
|
331
331
|
}
|
|
@@ -338,7 +338,7 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
338
338
|
toggleTooltip: ye,
|
|
339
339
|
toggleAnnotator: Q
|
|
340
340
|
});
|
|
341
|
-
const N =
|
|
341
|
+
const N = n(null), R = n(!1), Z = n(""), ee = n(null);
|
|
342
342
|
function Me(t) {
|
|
343
343
|
if (!f.value.showTooltip) return;
|
|
344
344
|
N.value = t.id, ee.value = { datapoint: t, config: e.value };
|
|
@@ -359,30 +359,30 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
359
359
|
}
|
|
360
360
|
Y.value = !0;
|
|
361
361
|
}
|
|
362
|
-
return (t, a) => (
|
|
362
|
+
return (t, a) => (u(), h("div", {
|
|
363
363
|
class: "vue-ui-word-cloud",
|
|
364
364
|
ref_key: "wordCloudChart",
|
|
365
|
-
ref:
|
|
365
|
+
ref: b,
|
|
366
366
|
id: `wordCloud_${I.value}`,
|
|
367
367
|
style: j(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
368
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
369
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
368
|
+
onMouseenter: a[3] || (a[3] = () => v(ne)(!0)),
|
|
369
|
+
onMouseleave: a[4] || (a[4] = () => v(ne)(!1))
|
|
370
370
|
}, [
|
|
371
|
-
e.value.userOptions.buttons.annotator ? (
|
|
371
|
+
e.value.userOptions.buttons.annotator ? (u(), O(bt, {
|
|
372
372
|
key: 0,
|
|
373
|
-
parent:
|
|
373
|
+
parent: b.value,
|
|
374
374
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
375
375
|
color: e.value.style.chart.color,
|
|
376
376
|
active: G.value,
|
|
377
377
|
onClose: Q
|
|
378
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
379
|
-
e.value.style.chart.title.text ? (
|
|
378
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
379
|
+
e.value.style.chart.title.text ? (u(), h("div", {
|
|
380
380
|
key: 1,
|
|
381
381
|
ref_key: "chartTitle",
|
|
382
382
|
ref: $,
|
|
383
383
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
384
384
|
}, [
|
|
385
|
-
(
|
|
385
|
+
(u(), O(ut, {
|
|
386
386
|
key: `title_${T.value}`,
|
|
387
387
|
config: {
|
|
388
388
|
title: {
|
|
@@ -393,14 +393,14 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
}, null, 8, ["config"]))
|
|
396
|
-
], 512)) :
|
|
397
|
-
e.value.userOptions.show && S.value && (
|
|
396
|
+
], 512)) : y("", !0),
|
|
397
|
+
e.value.userOptions.show && S.value && (v(re) || v(q)) ? (u(), O(ct, {
|
|
398
398
|
ref: "details",
|
|
399
399
|
key: `user_option_${M.value}`,
|
|
400
400
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
401
401
|
color: e.value.style.chart.color,
|
|
402
|
-
isPrinting:
|
|
403
|
-
isImaging:
|
|
402
|
+
isPrinting: v(de),
|
|
403
|
+
isImaging: v(ve),
|
|
404
404
|
uid: I.value,
|
|
405
405
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
406
406
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -409,79 +409,91 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
409
409
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
410
410
|
isFullscreen: E.value,
|
|
411
411
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
412
|
-
chartElement:
|
|
412
|
+
chartElement: b.value,
|
|
413
413
|
position: e.value.userOptions.position,
|
|
414
414
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
415
415
|
isTooltip: f.value.showTooltip,
|
|
416
416
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
417
417
|
isAnnotation: G.value,
|
|
418
418
|
onToggleFullscreen: _e,
|
|
419
|
-
onGeneratePdf:
|
|
419
|
+
onGeneratePdf: v(he),
|
|
420
420
|
onGenerateCsv: pe,
|
|
421
|
-
onGenerateImage:
|
|
421
|
+
onGenerateImage: v(me),
|
|
422
422
|
onToggleTable: ge,
|
|
423
423
|
onToggleTooltip: ye,
|
|
424
424
|
onToggleAnnotator: Q,
|
|
425
425
|
style: j({
|
|
426
|
-
visibility:
|
|
426
|
+
visibility: v(re) ? v(q) ? "visible" : "hidden" : "visible"
|
|
427
427
|
})
|
|
428
428
|
}, je({ _: 2 }, [
|
|
429
429
|
t.$slots.optionPdf ? {
|
|
430
430
|
name: "optionPdf",
|
|
431
|
-
fn:
|
|
432
|
-
|
|
431
|
+
fn: m(() => [
|
|
432
|
+
d(t.$slots, "optionPdf", {}, void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
key: "0"
|
|
435
435
|
} : void 0,
|
|
436
436
|
t.$slots.optionCsv ? {
|
|
437
437
|
name: "optionCsv",
|
|
438
|
-
fn:
|
|
439
|
-
|
|
438
|
+
fn: m(() => [
|
|
439
|
+
d(t.$slots, "optionCsv", {}, void 0, !0)
|
|
440
440
|
]),
|
|
441
441
|
key: "1"
|
|
442
442
|
} : void 0,
|
|
443
443
|
t.$slots.optionImg ? {
|
|
444
444
|
name: "optionImg",
|
|
445
|
-
fn:
|
|
446
|
-
|
|
445
|
+
fn: m(() => [
|
|
446
|
+
d(t.$slots, "optionImg", {}, void 0, !0)
|
|
447
447
|
]),
|
|
448
448
|
key: "2"
|
|
449
449
|
} : void 0,
|
|
450
450
|
t.$slots.optionTable ? {
|
|
451
451
|
name: "optionTable",
|
|
452
|
-
fn:
|
|
453
|
-
|
|
452
|
+
fn: m(() => [
|
|
453
|
+
d(t.$slots, "optionTable", {}, void 0, !0)
|
|
454
454
|
]),
|
|
455
455
|
key: "3"
|
|
456
456
|
} : void 0,
|
|
457
457
|
t.$slots.optionFullscreen ? {
|
|
458
458
|
name: "optionFullscreen",
|
|
459
|
-
fn:
|
|
460
|
-
|
|
459
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
460
|
+
d(t.$slots, "optionFullscreen", A(_({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
461
461
|
]),
|
|
462
462
|
key: "4"
|
|
463
463
|
} : void 0,
|
|
464
464
|
t.$slots.optionAnnotator ? {
|
|
465
465
|
name: "optionAnnotator",
|
|
466
|
-
fn:
|
|
467
|
-
|
|
466
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
467
|
+
d(t.$slots, "optionAnnotator", A(_({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
468
468
|
]),
|
|
469
469
|
key: "5"
|
|
470
470
|
} : void 0
|
|
471
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
472
|
-
S.value ? (
|
|
471
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
472
|
+
S.value ? (u(), h("svg", {
|
|
473
473
|
key: 3,
|
|
474
474
|
class: Ce({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
475
|
-
xmlns:
|
|
476
|
-
viewBox: `0 0 ${
|
|
475
|
+
xmlns: v(lt),
|
|
476
|
+
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
477
477
|
style: "overflow:visible;background:transparent;"
|
|
478
478
|
}, [
|
|
479
479
|
le(gt),
|
|
480
|
+
t.$slots["chart-background"] ? (u(), h("foreignObject", {
|
|
481
|
+
key: 0,
|
|
482
|
+
x: 0,
|
|
483
|
+
y: 0,
|
|
484
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
485
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
486
|
+
style: {
|
|
487
|
+
pointerEvents: "none"
|
|
488
|
+
}
|
|
489
|
+
}, [
|
|
490
|
+
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
491
|
+
], 8, At)) : y("", !0),
|
|
480
492
|
x("g", {
|
|
481
|
-
transform: `translate(${(
|
|
493
|
+
transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
|
|
482
494
|
}, [
|
|
483
|
-
(
|
|
484
|
-
(
|
|
495
|
+
(u(!0), h(He, null, Ye(W.value, (o, i) => (u(), h("g", null, [
|
|
496
|
+
(u(), h("text", {
|
|
485
497
|
fill: o.color,
|
|
486
498
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
487
499
|
key: i,
|
|
@@ -497,16 +509,16 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
497
509
|
N.value = null, Y.value = !1;
|
|
498
510
|
}),
|
|
499
511
|
style: j(`animation-delay:${i * e.value.animationDelayMs}ms !important;`)
|
|
500
|
-
}, ke(o.name), 47,
|
|
512
|
+
}, ke(o.name), 47, It))
|
|
501
513
|
]))), 256))
|
|
502
|
-
], 8,
|
|
503
|
-
|
|
504
|
-
svg: { height:
|
|
514
|
+
], 8, _t),
|
|
515
|
+
d(t.$slots, "svg", {
|
|
516
|
+
svg: { height: s.value.height, width: s.value.width }
|
|
505
517
|
}, void 0, !0)
|
|
506
|
-
], 10,
|
|
507
|
-
t.$slots.watermark ? (
|
|
508
|
-
|
|
509
|
-
])) :
|
|
518
|
+
], 10, Ot)) : y("", !0),
|
|
519
|
+
t.$slots.watermark ? (u(), h("div", Mt, [
|
|
520
|
+
d(t.$slots, "watermark", A(_({ isPrinting: v(de) || v(ve) })), void 0, !0)
|
|
521
|
+
])) : y("", !0),
|
|
510
522
|
le(yt, {
|
|
511
523
|
show: f.value.showTooltip && Y.value,
|
|
512
524
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -518,15 +530,15 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
518
530
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
519
531
|
position: e.value.style.chart.tooltip.position,
|
|
520
532
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
521
|
-
parent:
|
|
533
|
+
parent: b.value,
|
|
522
534
|
content: Z.value,
|
|
523
535
|
isCustom: R.value
|
|
524
536
|
}, {
|
|
525
|
-
"tooltip-before":
|
|
526
|
-
|
|
537
|
+
"tooltip-before": m(() => [
|
|
538
|
+
d(t.$slots, "tooltip-before", A(_({ ...ee.value })), void 0, !0)
|
|
527
539
|
]),
|
|
528
|
-
"tooltip-after":
|
|
529
|
-
|
|
540
|
+
"tooltip-after": m(() => [
|
|
541
|
+
d(t.$slots, "tooltip-after", A(_({ ...ee.value })), void 0, !0)
|
|
530
542
|
]),
|
|
531
543
|
_: 3
|
|
532
544
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -536,12 +548,12 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
536
548
|
style: "width:100%;background:transparent",
|
|
537
549
|
"data-html2canvas-ignore": ""
|
|
538
550
|
}, [
|
|
539
|
-
e.value.style.chart.zoom.show ? (
|
|
551
|
+
e.value.style.chart.zoom.show ? (u(), O(Pt, {
|
|
540
552
|
key: 0,
|
|
541
553
|
value: F.value,
|
|
542
554
|
"onUpdate:value": a[1] || (a[1] = (o) => F.value = o),
|
|
543
555
|
min: fe.value,
|
|
544
|
-
max:
|
|
556
|
+
max: Ae.value,
|
|
545
557
|
textColor: e.value.style.chart.color,
|
|
546
558
|
inputColor: e.value.style.chart.zoom.color,
|
|
547
559
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
@@ -551,21 +563,21 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
551
563
|
source: e.value.style.chart.width,
|
|
552
564
|
onReset: J
|
|
553
565
|
}, {
|
|
554
|
-
"reset-action":
|
|
555
|
-
|
|
566
|
+
"reset-action": m(({ reset: o }) => [
|
|
567
|
+
d(t.$slots, "reset-action", A(_({ reset: o })), void 0, !0)
|
|
556
568
|
]),
|
|
557
569
|
_: 3
|
|
558
|
-
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) :
|
|
570
|
+
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : y("", !0)
|
|
559
571
|
], 512),
|
|
560
|
-
t.$slots.source ? (
|
|
572
|
+
t.$slots.source ? (u(), h("div", {
|
|
561
573
|
key: 5,
|
|
562
574
|
ref_key: "source",
|
|
563
|
-
ref:
|
|
575
|
+
ref: C,
|
|
564
576
|
dir: "auto"
|
|
565
577
|
}, [
|
|
566
|
-
|
|
567
|
-
], 512)) :
|
|
568
|
-
S.value ? (
|
|
578
|
+
d(t.$slots, "source", {}, void 0, !0)
|
|
579
|
+
], 512)) : y("", !0),
|
|
580
|
+
S.value ? (u(), O(mt, {
|
|
569
581
|
key: 6,
|
|
570
582
|
hideDetails: "",
|
|
571
583
|
config: {
|
|
@@ -581,8 +593,8 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
581
593
|
}
|
|
582
594
|
}
|
|
583
595
|
}, {
|
|
584
|
-
content:
|
|
585
|
-
(
|
|
596
|
+
content: m(() => [
|
|
597
|
+
(u(), O(ft, {
|
|
586
598
|
key: `table_${se.value}`,
|
|
587
599
|
colNames: D.value.colNames,
|
|
588
600
|
head: D.value.head,
|
|
@@ -591,23 +603,23 @@ const kt = (c) => (Ee("data-v-3fd7d274"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
591
603
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
592
604
|
onClose: a[2] || (a[2] = (o) => f.value.showTable = !1)
|
|
593
605
|
}, {
|
|
594
|
-
th:
|
|
606
|
+
th: m(({ th: o }) => [
|
|
595
607
|
x("div", {
|
|
596
608
|
innerHTML: o,
|
|
597
609
|
style: { display: "flex", "align-items": "center" }
|
|
598
|
-
}, null, 8,
|
|
610
|
+
}, null, 8, Wt)
|
|
599
611
|
]),
|
|
600
|
-
td:
|
|
612
|
+
td: m(({ td: o }) => [
|
|
601
613
|
qe(ke(o.name || o), 1)
|
|
602
614
|
]),
|
|
603
615
|
_: 1
|
|
604
616
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
605
617
|
]),
|
|
606
618
|
_: 1
|
|
607
|
-
}, 8, ["config"])) :
|
|
619
|
+
}, 8, ["config"])) : y("", !0)
|
|
608
620
|
], 44, zt));
|
|
609
621
|
}
|
|
610
|
-
},
|
|
622
|
+
}, Qt = /* @__PURE__ */ Te(Rt, [["__scopeId", "data-v-cd6ced56"]]);
|
|
611
623
|
export {
|
|
612
|
-
|
|
624
|
+
Qt as default
|
|
613
625
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DaDv7p0W.cjs"),xe=require("./Title-CpfNWbUc.cjs"),se=require("./usePrinter-BIHu0O5X.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-6Clt339w.cjs"),Te=require("./DataTable-BHCbVv8x.cjs"),Ne=require("./BaseIcon-DD3GLrhS.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-DkpuL8Iv.cjs"),Pe=require("./PackageVersion-nr7f_VNw.cjs"),Be=require("./Tooltip-DZuVxmLc.cjs"),Fe=require("./PenAndPaper-C9v0NXEg.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__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 s=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":x.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[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(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,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,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-3fd7d274"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=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}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.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 ve(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 he(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 pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.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 le(){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=u.createCsvContent(a);u.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=u.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}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.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>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.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(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},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(xe._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.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.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:O.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:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?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: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","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.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(Pe._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,De)):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(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":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.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:U.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:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.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:M},{"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($e.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(Te.DataTable,{key:`table_${j.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,He)]),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))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|