vue-data-ui 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- 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-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-N3tRNc4u.cjs +0 -5
- 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-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-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-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,598 @@
|
|
|
1
|
+
import { useCssVars as Re, computed as p, openBlock as u, createElementBlock as f, createVNode as oe, renderSlot as v, createElementVNode as x, normalizeStyle as ae, pushScopeId as Be, popScopeId as De, ref as s, watch as te, onMounted as Ve, onBeforeUnmount as Ee, createBlock as z, createCommentVNode as w, unref as $, createSlots as Ue, withCtx as d, normalizeProps as A, guardReactiveProps as I, normalizeClass as pe, Fragment as Ge, renderList as Le, toDisplayString as ge, createTextVNode as Xe, nextTick as ye } from "vue";
|
|
2
|
+
import { u as je, _ as Ye, v as qe, c as be, t as He, a as Je, p as X, o as Ke, e as Ce, g as Qe, f as Ze, X as et, q as tt, r as ot, x as at } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { _ as lt } from "./Title-5VmBwT4i.js";
|
|
4
|
+
import { u as nt, U as st } from "./usePrinter-BEeNAqS5.js";
|
|
5
|
+
import { d as rt, t as ut, u as it } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
+
import ct from "./vue-ui-accordion-DspS4q3f.js";
|
|
7
|
+
import { D as dt } from "./DataTable-DTk7C4Pr.js";
|
|
8
|
+
import vt from "./BaseIcon-rRli6Sfv.js";
|
|
9
|
+
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { u as ke } from "./useNestedProp-Cox0K0Y5.js";
|
|
11
|
+
import { _ as ht } from "./PackageVersion-CvCRsT5_.js";
|
|
12
|
+
import { _ as mt } from "./Tooltip-Cj4EF7v1.js";
|
|
13
|
+
import { P as ft } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
const pt = (c) => (Be("data-v-3fd7d274"), c = c(), De(), c), gt = { "data-html2canvas-ignore": "" }, yt = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "reset-wrapper"
|
|
17
|
+
}, bt = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "reset-wrapper"
|
|
20
|
+
}, Ct = { class: "mono-slicer" }, kt = /* @__PURE__ */ pt(() => /* @__PURE__ */ x("div", { class: "slider-track" }, null, -1)), wt = ["min", "max", "value"], $t = {
|
|
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 n = c;
|
|
67
|
+
Re((k) => ({
|
|
68
|
+
"90ad3208": j.value,
|
|
69
|
+
"4f9eef70": O.value,
|
|
70
|
+
"6e07ae3e": C.value,
|
|
71
|
+
"2fd430a0": c.selectColor,
|
|
72
|
+
"6b8169a4": T.value
|
|
73
|
+
}));
|
|
74
|
+
const j = p(() => n.inputColor), T = p(() => n.background), C = p(() => `${n.selectColor}33`), O = p(() => n.borderColor);
|
|
75
|
+
function M() {
|
|
76
|
+
B("reset");
|
|
77
|
+
}
|
|
78
|
+
const g = p(() => {
|
|
79
|
+
const k = n.max - n.min, y = 0, S = (n.value - n.min) / k * 100;
|
|
80
|
+
return {
|
|
81
|
+
left: `${y}%`,
|
|
82
|
+
width: `${S - y}%`,
|
|
83
|
+
background: n.selectColor
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
return (k, y) => (u(), f("div", gt, [
|
|
87
|
+
c.value !== c.source ? (u(), f("div", yt, [
|
|
88
|
+
c.useResetSlot ? v(k.$slots, "reset-action", {
|
|
89
|
+
key: 1,
|
|
90
|
+
reset: M
|
|
91
|
+
}, void 0, !0) : (u(), f("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(vt, {
|
|
100
|
+
name: "refresh",
|
|
101
|
+
stroke: c.textColor
|
|
102
|
+
}, null, 8, ["stroke"])
|
|
103
|
+
]))
|
|
104
|
+
])) : (u(), f("div", bt)),
|
|
105
|
+
x("div", Ct, [
|
|
106
|
+
kt,
|
|
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, wt)
|
|
118
|
+
])
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
}, xt = /* @__PURE__ */ we($t, [["__scopeId", "data-v-3fd7d274"]]), Tt = ["id"], St = ["xmlns", "viewBox"], Ft = ["transform"], _t = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Nt = {
|
|
122
|
+
key: 4,
|
|
123
|
+
class: "vue-data-ui-watermark"
|
|
124
|
+
}, Pt = ["innerHTML"], zt = {
|
|
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 n = c, { vue_ui_word_cloud: j } = je(), T = p({
|
|
142
|
+
get() {
|
|
143
|
+
return !!n.dataset && n.dataset.length;
|
|
144
|
+
},
|
|
145
|
+
set(t) {
|
|
146
|
+
return t;
|
|
147
|
+
}
|
|
148
|
+
}), C = s(typeof n.dataset == "string" ? Ye(n.dataset) : n.dataset.map((t) => ({
|
|
149
|
+
...t,
|
|
150
|
+
value: qe(t.value)
|
|
151
|
+
}))), O = s(be()), M = s(0), g = s(null), k = s(null), y = s(0), S = s(0), Y = s(!1), e = p({
|
|
152
|
+
get: () => le(),
|
|
153
|
+
set: (t) => t
|
|
154
|
+
});
|
|
155
|
+
function le() {
|
|
156
|
+
const t = ke({
|
|
157
|
+
userConfig: n.config,
|
|
158
|
+
defaultConfig: j
|
|
159
|
+
});
|
|
160
|
+
return t.theme ? {
|
|
161
|
+
...ke({
|
|
162
|
+
userConfig: He.vue_ui_word_cloud[t.theme] || n.config,
|
|
163
|
+
defaultConfig: t
|
|
164
|
+
}),
|
|
165
|
+
customPalette: Je[t.theme] || X
|
|
166
|
+
} : t;
|
|
167
|
+
}
|
|
168
|
+
te(() => n.config, (t) => {
|
|
169
|
+
e.value = le(), se(), y.value += 1, S.value += 1, q();
|
|
170
|
+
}, { deep: !0 });
|
|
171
|
+
const ne = s(null), F = s(0), r = s({
|
|
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
|
+
}), $e = ut(() => {
|
|
177
|
+
const { width: t, height: a } = it({
|
|
178
|
+
chart: g.value,
|
|
179
|
+
title: e.value.style.chart.title.text ? k.value : null,
|
|
180
|
+
slicer: e.value.style.chart.zoom.show && ne.value
|
|
181
|
+
});
|
|
182
|
+
r.value.width = t, r.value.height = a, ye(H);
|
|
183
|
+
});
|
|
184
|
+
te(() => F.value, () => {
|
|
185
|
+
xe();
|
|
186
|
+
});
|
|
187
|
+
const xe = rt(() => {
|
|
188
|
+
H();
|
|
189
|
+
}, 10);
|
|
190
|
+
function q() {
|
|
191
|
+
F.value = de.value;
|
|
192
|
+
}
|
|
193
|
+
const D = s(null);
|
|
194
|
+
Ve(() => {
|
|
195
|
+
se(), q();
|
|
196
|
+
});
|
|
197
|
+
function se() {
|
|
198
|
+
Ke(n.dataset) ? Ce({
|
|
199
|
+
componentName: "VueUiWordCloud",
|
|
200
|
+
type: "dataset"
|
|
201
|
+
}) : C.value.forEach((t, a) => {
|
|
202
|
+
Qe({
|
|
203
|
+
datasetObject: t,
|
|
204
|
+
requiredAttributes: ["name", "value"]
|
|
205
|
+
}).forEach((o) => {
|
|
206
|
+
T.value = !1, Ce({
|
|
207
|
+
componentName: "VueUiWordCloud",
|
|
208
|
+
type: "datasetSerieAttribute",
|
|
209
|
+
property: o,
|
|
210
|
+
index: a
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}), e.value.responsive && (D.value = new ResizeObserver($e), D.value.observe(g.value.parentNode));
|
|
214
|
+
}
|
|
215
|
+
Ee(() => {
|
|
216
|
+
D.value && D.value.disconnect();
|
|
217
|
+
});
|
|
218
|
+
const { isPrinting: re, isImaging: ue, generatePdf: ie, generateImage: ce } = nt({
|
|
219
|
+
elementId: `wordCloud_${O.value}`,
|
|
220
|
+
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
221
|
+
}), h = s({
|
|
222
|
+
showTable: e.value.table.show,
|
|
223
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
224
|
+
});
|
|
225
|
+
function Te(t, a, o = "Arial") {
|
|
226
|
+
const l = document.createElement("canvas").getContext("2d");
|
|
227
|
+
return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
228
|
+
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
229
|
+
height: a
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function Se(t, a) {
|
|
233
|
+
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;
|
|
234
|
+
}
|
|
235
|
+
function Fe(t, a, o) {
|
|
236
|
+
const i = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, m = 0, N = 0;
|
|
237
|
+
return t.forEach((P) => {
|
|
238
|
+
let Z = !1;
|
|
239
|
+
for (let L = 0; L < Math.max(a, o) / 2 && !Z; L += e.value.style.chart.words.packingWeight)
|
|
240
|
+
for (let ee = 0; ee < 360 && !Z; ee += e.value.style.chart.words.packingWeight) {
|
|
241
|
+
const fe = ee * Math.PI / 180, Ae = m + L * Math.cos(fe) - P.width / 2, Ie = N + L * Math.sin(fe) - P.height / 2, b = { ...P, x: Ae, y: Ie }, Oe = b.x >= l.x && b.y >= l.y && b.x + b.width <= l.x + l.width && b.y + b.height <= l.y + l.height, Me = i.some((We) => Se(b, We));
|
|
242
|
+
Oe && !Me && (i.push(b), Z = !0);
|
|
243
|
+
}
|
|
244
|
+
}), i;
|
|
245
|
+
}
|
|
246
|
+
const W = s([]);
|
|
247
|
+
te(() => n.dataset, H, { immediate: !0 });
|
|
248
|
+
const de = p(() => Math.min(...C.value.map((t) => t.value))), _e = p(() => Math.max(...C.value.map((t) => t.value)));
|
|
249
|
+
function H() {
|
|
250
|
+
const t = [...C.value].filter((l) => l.value >= F.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), i = [...C.value].filter((l) => l.value >= F.value).map((l, m) => {
|
|
251
|
+
const N = (l.value - o) / (a - o) * (r.value.maxFontSize - r.value.minFontSize) + r.value.minFontSize, P = Te(l.name, N);
|
|
252
|
+
return {
|
|
253
|
+
...l,
|
|
254
|
+
id: be(),
|
|
255
|
+
fontSize: N,
|
|
256
|
+
width: P.width,
|
|
257
|
+
height: P.height,
|
|
258
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[m] || e.value.customPalette[m % e.value.customPalette.length] || X[m] || X[m % X.length] : e.value.style.chart.words.color
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
W.value = Fe(i, r.value.width, r.value.height).sort((l, m) => m.fontSize - l.fontSize);
|
|
262
|
+
}
|
|
263
|
+
const V = p(() => {
|
|
264
|
+
const t = W.value.map((o) => ({
|
|
265
|
+
name: o.name,
|
|
266
|
+
color: o.color
|
|
267
|
+
})), a = W.value.map((o) => o.value);
|
|
268
|
+
return { head: t, body: a };
|
|
269
|
+
});
|
|
270
|
+
function ve() {
|
|
271
|
+
ye(() => {
|
|
272
|
+
const t = V.value.head.map((i, l) => [[
|
|
273
|
+
i.name
|
|
274
|
+
], [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 = tt(a);
|
|
275
|
+
ot({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
const E = p(() => {
|
|
279
|
+
const t = [
|
|
280
|
+
e.value.table.columnNames.series,
|
|
281
|
+
e.value.table.columnNames.value
|
|
282
|
+
], a = V.value.head.map((l, m) => {
|
|
283
|
+
const N = Ze({ p: e.value.table.td.prefix, v: V.value.body[m], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
284
|
+
return [
|
|
285
|
+
{
|
|
286
|
+
color: l.color,
|
|
287
|
+
name: l.name
|
|
288
|
+
},
|
|
289
|
+
N
|
|
290
|
+
];
|
|
291
|
+
}), o = {
|
|
292
|
+
th: {
|
|
293
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
294
|
+
color: e.value.table.th.color,
|
|
295
|
+
outline: e.value.table.th.outline
|
|
296
|
+
},
|
|
297
|
+
td: {
|
|
298
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
299
|
+
color: e.value.table.td.color,
|
|
300
|
+
outline: e.value.table.td.outline
|
|
301
|
+
},
|
|
302
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
303
|
+
};
|
|
304
|
+
return {
|
|
305
|
+
colNames: [
|
|
306
|
+
e.value.table.columnNames.series,
|
|
307
|
+
e.value.table.columnNames.value
|
|
308
|
+
],
|
|
309
|
+
head: t,
|
|
310
|
+
body: a,
|
|
311
|
+
config: o
|
|
312
|
+
};
|
|
313
|
+
}), U = s(!1);
|
|
314
|
+
function Ne(t) {
|
|
315
|
+
U.value = t, M.value += 1;
|
|
316
|
+
}
|
|
317
|
+
function Pe() {
|
|
318
|
+
return W.value;
|
|
319
|
+
}
|
|
320
|
+
function he() {
|
|
321
|
+
h.value.showTable = !h.value.showTable;
|
|
322
|
+
}
|
|
323
|
+
function me() {
|
|
324
|
+
h.value.showTooltip = !h.value.showTooltip;
|
|
325
|
+
}
|
|
326
|
+
const G = s(!1);
|
|
327
|
+
function J() {
|
|
328
|
+
G.value = !G.value;
|
|
329
|
+
}
|
|
330
|
+
B({
|
|
331
|
+
getData: Pe,
|
|
332
|
+
generateCsv: ve,
|
|
333
|
+
generatePdf: ie,
|
|
334
|
+
generateImage: ce,
|
|
335
|
+
toggleTable: he,
|
|
336
|
+
toggleTooltip: me,
|
|
337
|
+
toggleAnnotator: J
|
|
338
|
+
});
|
|
339
|
+
const _ = s(null), R = s(!1), K = s(""), Q = s(null);
|
|
340
|
+
function ze(t) {
|
|
341
|
+
if (!h.value.showTooltip) return;
|
|
342
|
+
_.value = t.id, Q.value = { datapoint: t, config: e.value };
|
|
343
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
344
|
+
if (R.value = !1, at(a))
|
|
345
|
+
try {
|
|
346
|
+
const o = a({
|
|
347
|
+
datapoint: t,
|
|
348
|
+
config: e.value
|
|
349
|
+
});
|
|
350
|
+
typeof o == "string" && (K.value = o, R.value = !0);
|
|
351
|
+
} catch {
|
|
352
|
+
console.warn("Custom format cannot be applied."), R.value = !1;
|
|
353
|
+
}
|
|
354
|
+
if (!R.value) {
|
|
355
|
+
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>`;
|
|
356
|
+
K.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
|
|
357
|
+
}
|
|
358
|
+
Y.value = !0;
|
|
359
|
+
}
|
|
360
|
+
return (t, a) => (u(), f("div", {
|
|
361
|
+
class: "vue-ui-word-cloud",
|
|
362
|
+
ref_key: "wordCloudChart",
|
|
363
|
+
ref: g,
|
|
364
|
+
id: `wordCloud_${O.value}`,
|
|
365
|
+
style: ae(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
366
|
+
}, [
|
|
367
|
+
e.value.userOptions.buttons.annotator ? (u(), z(ft, {
|
|
368
|
+
key: 0,
|
|
369
|
+
parent: g.value,
|
|
370
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
371
|
+
color: e.value.style.chart.color,
|
|
372
|
+
active: G.value,
|
|
373
|
+
onClose: J
|
|
374
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : w("", !0),
|
|
375
|
+
e.value.style.chart.title.text ? (u(), f("div", {
|
|
376
|
+
key: 1,
|
|
377
|
+
ref_key: "chartTitle",
|
|
378
|
+
ref: k,
|
|
379
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
380
|
+
}, [
|
|
381
|
+
(u(), z(lt, {
|
|
382
|
+
key: `title_${y.value}`,
|
|
383
|
+
config: {
|
|
384
|
+
title: {
|
|
385
|
+
...e.value.style.chart.title
|
|
386
|
+
},
|
|
387
|
+
subtitle: {
|
|
388
|
+
...e.value.style.chart.title.subtitle
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}, null, 8, ["config"]))
|
|
392
|
+
], 512)) : w("", !0),
|
|
393
|
+
e.value.userOptions.show && T.value ? (u(), z(st, {
|
|
394
|
+
ref: "details",
|
|
395
|
+
key: `user_option_${M.value}`,
|
|
396
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
397
|
+
color: e.value.style.chart.color,
|
|
398
|
+
isPrinting: $(re),
|
|
399
|
+
isImaging: $(ue),
|
|
400
|
+
uid: O.value,
|
|
401
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
402
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
403
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
404
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
405
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
406
|
+
isFullscreen: U.value,
|
|
407
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
408
|
+
chartElement: g.value,
|
|
409
|
+
position: e.value.userOptions.position,
|
|
410
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
411
|
+
isTooltip: h.value.showTooltip,
|
|
412
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
413
|
+
isAnnotation: G.value,
|
|
414
|
+
onToggleFullscreen: Ne,
|
|
415
|
+
onGeneratePdf: $(ie),
|
|
416
|
+
onGenerateCsv: ve,
|
|
417
|
+
onGenerateImage: $(ce),
|
|
418
|
+
onToggleTable: he,
|
|
419
|
+
onToggleTooltip: me,
|
|
420
|
+
onToggleAnnotator: J
|
|
421
|
+
}, Ue({ _: 2 }, [
|
|
422
|
+
t.$slots.optionPdf ? {
|
|
423
|
+
name: "optionPdf",
|
|
424
|
+
fn: d(() => [
|
|
425
|
+
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
426
|
+
]),
|
|
427
|
+
key: "0"
|
|
428
|
+
} : void 0,
|
|
429
|
+
t.$slots.optionCsv ? {
|
|
430
|
+
name: "optionCsv",
|
|
431
|
+
fn: d(() => [
|
|
432
|
+
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
433
|
+
]),
|
|
434
|
+
key: "1"
|
|
435
|
+
} : void 0,
|
|
436
|
+
t.$slots.optionImg ? {
|
|
437
|
+
name: "optionImg",
|
|
438
|
+
fn: d(() => [
|
|
439
|
+
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
440
|
+
]),
|
|
441
|
+
key: "2"
|
|
442
|
+
} : void 0,
|
|
443
|
+
t.$slots.optionTable ? {
|
|
444
|
+
name: "optionTable",
|
|
445
|
+
fn: d(() => [
|
|
446
|
+
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
key: "3"
|
|
449
|
+
} : void 0,
|
|
450
|
+
t.$slots.optionFullscreen ? {
|
|
451
|
+
name: "optionFullscreen",
|
|
452
|
+
fn: d(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
453
|
+
v(t.$slots, "optionFullscreen", A(I({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
454
|
+
]),
|
|
455
|
+
key: "4"
|
|
456
|
+
} : void 0,
|
|
457
|
+
t.$slots.optionAnnotator ? {
|
|
458
|
+
name: "optionAnnotator",
|
|
459
|
+
fn: d(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
460
|
+
v(t.$slots, "optionAnnotator", A(I({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
461
|
+
]),
|
|
462
|
+
key: "5"
|
|
463
|
+
} : void 0
|
|
464
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : w("", !0),
|
|
465
|
+
T.value ? (u(), f("svg", {
|
|
466
|
+
key: 3,
|
|
467
|
+
class: pe({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
468
|
+
xmlns: $(et),
|
|
469
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
470
|
+
style: "overflow:visible;background:transparent;"
|
|
471
|
+
}, [
|
|
472
|
+
oe(ht),
|
|
473
|
+
x("g", {
|
|
474
|
+
transform: `translate(${(r.value.width <= 0 ? 10 : r.value.width) / 2}, ${(r.value.height <= 0 ? 10 : r.value.height) / 2})`
|
|
475
|
+
}, [
|
|
476
|
+
(u(!0), f(Ge, null, Le(W.value, (o, i) => (u(), f("g", null, [
|
|
477
|
+
(u(), f("text", {
|
|
478
|
+
fill: o.color,
|
|
479
|
+
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
480
|
+
key: i,
|
|
481
|
+
x: o.x,
|
|
482
|
+
y: o.y,
|
|
483
|
+
"font-size": o.fontSize,
|
|
484
|
+
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
485
|
+
class: pe({ animated: e.value.useCssAnimation, "word-selected": _.value && _.value === o.id && h.value.showTooltip, "word-not-selected": _.value && _.value !== o.id && h.value.showTooltip }),
|
|
486
|
+
"text-anchor": "middle",
|
|
487
|
+
"dominant-baseline": "middle",
|
|
488
|
+
onMouseover: (l) => ze(o),
|
|
489
|
+
onMouseleave: a[0] || (a[0] = (l) => {
|
|
490
|
+
_.value = null, Y.value = !1;
|
|
491
|
+
}),
|
|
492
|
+
style: ae(`animation-delay:${i * e.value.animationDelayMs}ms !important;`)
|
|
493
|
+
}, ge(o.name), 47, _t))
|
|
494
|
+
]))), 256))
|
|
495
|
+
], 8, Ft),
|
|
496
|
+
v(t.$slots, "svg", {
|
|
497
|
+
svg: { height: r.value.height, width: r.value.width }
|
|
498
|
+
}, void 0, !0)
|
|
499
|
+
], 10, St)) : w("", !0),
|
|
500
|
+
t.$slots.watermark ? (u(), f("div", Nt, [
|
|
501
|
+
v(t.$slots, "watermark", A(I({ isPrinting: $(re) || $(ue) })), void 0, !0)
|
|
502
|
+
])) : w("", !0),
|
|
503
|
+
oe(mt, {
|
|
504
|
+
show: h.value.showTooltip && Y.value,
|
|
505
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
506
|
+
color: e.value.style.chart.tooltip.color,
|
|
507
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
508
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
509
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
510
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
511
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
512
|
+
position: e.value.style.chart.tooltip.position,
|
|
513
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
514
|
+
parent: g.value,
|
|
515
|
+
content: K.value,
|
|
516
|
+
isCustom: R.value
|
|
517
|
+
}, {
|
|
518
|
+
"tooltip-before": d(() => [
|
|
519
|
+
v(t.$slots, "tooltip-before", A(I({ ...Q.value })), void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
"tooltip-after": d(() => [
|
|
522
|
+
v(t.$slots, "tooltip-after", A(I({ ...Q.value })), void 0, !0)
|
|
523
|
+
]),
|
|
524
|
+
_: 3
|
|
525
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
526
|
+
x("div", {
|
|
527
|
+
ref_key: "chartSlicer",
|
|
528
|
+
ref: ne,
|
|
529
|
+
style: "width:100%;background:transparent",
|
|
530
|
+
"data-html2canvas-ignore": ""
|
|
531
|
+
}, [
|
|
532
|
+
e.value.style.chart.zoom.show ? (u(), z(xt, {
|
|
533
|
+
key: 0,
|
|
534
|
+
value: F.value,
|
|
535
|
+
"onUpdate:value": a[1] || (a[1] = (o) => F.value = o),
|
|
536
|
+
min: de.value,
|
|
537
|
+
max: _e.value,
|
|
538
|
+
textColor: e.value.style.chart.color,
|
|
539
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
540
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
541
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
542
|
+
background: e.value.style.chart.zoom.color,
|
|
543
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
544
|
+
source: e.value.style.chart.width,
|
|
545
|
+
onReset: q
|
|
546
|
+
}, {
|
|
547
|
+
"reset-action": d(({ reset: o }) => [
|
|
548
|
+
v(t.$slots, "reset-action", A(I({ reset: o })), void 0, !0)
|
|
549
|
+
]),
|
|
550
|
+
_: 3
|
|
551
|
+
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : w("", !0)
|
|
552
|
+
], 512),
|
|
553
|
+
T.value ? (u(), z(ct, {
|
|
554
|
+
key: 5,
|
|
555
|
+
hideDetails: "",
|
|
556
|
+
config: {
|
|
557
|
+
open: h.value.showTable,
|
|
558
|
+
maxHeight: 1e4,
|
|
559
|
+
body: {
|
|
560
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
561
|
+
color: e.value.style.chart.color
|
|
562
|
+
},
|
|
563
|
+
head: {
|
|
564
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
|
+
color: e.value.style.chart.color
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}, {
|
|
569
|
+
content: d(() => [
|
|
570
|
+
(u(), z(dt, {
|
|
571
|
+
key: `table_${S.value}`,
|
|
572
|
+
colNames: E.value.colNames,
|
|
573
|
+
head: E.value.head,
|
|
574
|
+
body: E.value.body,
|
|
575
|
+
config: E.value.config,
|
|
576
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
577
|
+
onClose: a[2] || (a[2] = (o) => h.value.showTable = !1)
|
|
578
|
+
}, {
|
|
579
|
+
th: d(({ th: o }) => [
|
|
580
|
+
x("div", {
|
|
581
|
+
innerHTML: o,
|
|
582
|
+
style: { display: "flex", "align-items": "center" }
|
|
583
|
+
}, null, 8, Pt)
|
|
584
|
+
]),
|
|
585
|
+
td: d(({ td: o }) => [
|
|
586
|
+
Xe(ge(o.name || o), 1)
|
|
587
|
+
]),
|
|
588
|
+
_: 1
|
|
589
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
590
|
+
]),
|
|
591
|
+
_: 1
|
|
592
|
+
}, 8, ["config"])) : w("", !0)
|
|
593
|
+
], 12, Tt));
|
|
594
|
+
}
|
|
595
|
+
}, Xt = /* @__PURE__ */ we(zt, [["__scopeId", "data-v-23646184"]]);
|
|
596
|
+
export {
|
|
597
|
+
Xt as default
|
|
598
|
+
};
|