vue-data-ui 2.3.27 → 2.3.28
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 +2 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-BPoxM_Tq.js} +1 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-C6lQ94rK.cjs} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-BK5xYOzV.cjs} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-Op8_v5x7.js} +1 -1
- package/dist/{DataTable-C6HTLT7L.cjs → DataTable-B4_9ynlY.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-bEXuvNn5.js} +2 -2
- package/dist/{Legend-C_lBCmBu.cjs → Legend-BNfS77GS.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-DwludSgp.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-COYAxpcP.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-CcWWIf-s.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-Cv-2s_-r.js} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-DGkm-5p-.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-CtWGLaoz.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-DQz9dO4d.cjs} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-D6BUVHr1.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-DQgBkgFk.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BhCM2QF1.js} +5 -1
- package/dist/index-Y23HeR26.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-C2H2jmU6.cjs} +1 -1
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-CH3PVhvc.js} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-B75HLwzw.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DTF28E03.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-DdhV5Pth.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-cqeqQWwY.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DkJ4c3HQ.cjs → vue-ui-3d-bar-BB6yidY7.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-gi0fEJUl.js} +7 -7
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-CSZdj7wA.js} +3 -3
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CVrj6roI.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-CFSWDX3d.js} +8 -8
- package/dist/{vue-ui-age-pyramid-CkKVbbl8.cjs → vue-ui-age-pyramid-CrTadT86.cjs} +1 -1
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-DqZU11ky.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-u5YbenPl.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-C3xswSm3.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-Dph2PhZC.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-0S6lSZnt.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-eY08SE2G.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-BikYCrjQ.js} +6 -6
- package/dist/{vue-ui-chestnut-C7gFvKLJ.cjs → vue-ui-chestnut-C3XOHDgw.cjs} +1 -1
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DUA57VkZ.cjs} +1 -1
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-OFgeAFSo.js} +2 -2
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BTG0m9YL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DA4M1Z0-.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-55Zmunkv.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-COxRiMVI.cjs} +1 -1
- package/dist/{vue-ui-donut-C33U3e8H.js → vue-ui-donut-CG3VWjnG.js} +9 -9
- package/dist/{vue-ui-donut-CeHnjIGu.cjs → vue-ui-donut-JA9hlLlV.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-IzfAVo5I.js → vue-ui-donut-evolution-CA8sDbwX.js} +9 -9
- package/dist/{vue-ui-donut-evolution-hHfvz1Yd.cjs → vue-ui-donut-evolution-_E0xUI9Y.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-BSFT-Bce.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BtEXt5Ox.js} +8 -8
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-BBoXBTkC.js} +7 -7
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-BPEGOFRZ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B8EoId23.cjs → vue-ui-galaxy-DPrJum3L.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-ZFEufIyy.js} +9 -9
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-BqZp_V5m.js} +5 -5
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-CfZ9XJW_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-8lKc8m8b.cjs → vue-ui-gizmo-CrSaW32p.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DitbWAJp.js} +2 -2
- package/dist/{vue-ui-heatmap-DvpvKq3Q.cjs → vue-ui-heatmap-CTRjjhmd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BEsvmj5R.js → vue-ui-heatmap-zV0pg2Q5.js} +8 -8
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-B2Bo26hh.cjs} +1 -1
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-BWuzEkyY.js} +2 -2
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-BwAWiK3k.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-C_Nb-qVd.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-BD2UW2lJ.js} +9 -9
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-CSbXNrvu.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-CbMab8pJ.js} +9 -9
- package/dist/{vue-ui-mood-radar-C6devC4e.cjs → vue-ui-mood-radar-zpxdsZ4u.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BtT3VsSf.cjs → vue-ui-nested-donuts-07UI_VlW.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-SDaiotgC.js} +9 -9
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-BamHJBdP.js} +9 -9
- package/dist/{vue-ui-onion-9ATTDUpw.cjs → vue-ui-onion-DiychUul.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-1R4CyBdQ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-CKCLhAS7.js} +10 -10
- package/dist/{vue-ui-quadrant-DD4H_Dhk.cjs → vue-ui-quadrant-DxLYb8Mk.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CpFHKtpm.js → vue-ui-quick-chart-CAXuRSdm.js} +6 -6
- package/dist/{vue-ui-quick-chart-D1udOl47.cjs → vue-ui-quick-chart-DgCRM6WA.cjs} +1 -1
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-BY-y8Mal.js} +10 -10
- package/dist/{vue-ui-radar-CZmJDj3q.cjs → vue-ui-radar-iETP_3US.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-Bq1SsByA.js} +2 -2
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DGEgzOaB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BPzLP6U6.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-pdZ79G9r.cjs} +1 -1
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-C5ce6pEf.js} +9 -9
- package/dist/{vue-ui-rings-DN7XmhKZ.cjs → vue-ui-rings-DdpKT3DJ.cjs} +1 -1
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CMetujXJ.js} +10 -10
- package/dist/{vue-ui-scatter-DJlC5mz4.cjs → vue-ui-scatter-Dsc6RABP.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot--2aeIH_x.js} +1 -1
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-BqzljUT3.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-B5Z4craS.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-_VMQ594N.js} +2 -2
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-CL-bubXk.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-Cty3e_yE.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-DT1fMqf_.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-pgdWTEqG.js} +4 -4
- package/dist/{vue-ui-sparkbar-0CNZluKs.js → vue-ui-sparkbar-BVQPOz2O.js} +3 -3
- package/dist/{vue-ui-sparkbar-Di-BPkJ0.cjs → vue-ui-sparkbar-kfA-BPVJ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DdzlyDsm.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-Dx2gFX6H.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BhkYmR4U.cjs → vue-ui-sparkhistogram-B5xstgQG.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-Bg_fJsT5.js} +4 -4
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-BWl_B6LX.js} +3 -3
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-WMI-RgkW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-MMGRG9eS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-Skcshn6g.cjs} +1 -1
- package/dist/{vue-ui-stackbar-jNWFgXiA.cjs → vue-ui-stackbar-DZ0CArmk.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-NZFO3R77.js} +10 -10
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-CJmCgC_a.js} +9 -9
- package/dist/{vue-ui-strip-plot-CzHFNhr3.cjs → vue-ui-strip-plot-Db_dqjd9.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-B-vHHlRw.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-BfzDb2H7.js} +4 -4
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-YCyFyq8J.cjs} +1 -1
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-jJ3daLHe.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Q8y6tloS.cjs → vue-ui-table-sparkline-4Qbmxxsy.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DZY_23mg.js → vue-ui-table-sparkline-DZt-bo2D.js} +5 -5
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-CdtG1AoI.js} +5 -5
- package/dist/{vue-ui-thermometer-Cbu9jVvC.cjs → vue-ui-thermometer-HXWDU2wD.cjs} +1 -1
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-Cb95XSdn.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-DBqMb9iX.js} +4 -4
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-BqXfvQ4t.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-CHKETcHr.js} +5 -5
- package/dist/{vue-ui-treemap-orjA7Y0U.cjs → vue-ui-treemap-CW9JmJ2d.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-DxKunHfW.js} +9 -9
- package/dist/{vue-ui-vertical-bar-BHIt5cjc.cjs → vue-ui-vertical-bar-83AMwsHD.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BquCm_UG.js → vue-ui-vertical-bar-DRLwZjIz.js} +9 -9
- package/dist/{vue-ui-waffle-CNlp7RTS.js → vue-ui-waffle-BRuDxyDU.js} +9 -9
- package/dist/{vue-ui-waffle-Dv8pXiYm.cjs → vue-ui-waffle-BwUbvdOE.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-4HKXl04I.js} +5 -5
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-kMVi976p.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CrC3iKGd.js +495 -0
- package/dist/vue-ui-word-cloud-WgbYJhMF.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BN_H7q0X.js} +12 -12
- package/dist/{vue-ui-xy-BOoG4xg8.cjs → vue-ui-xy-BXfP5pz5.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-DAY9Ylzs.js} +10 -10
- package/dist/{vue-ui-xy-canvas-BHa3-phi.cjs → vue-ui-xy-canvas-NrhVgFsv.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { computed as F, ref as r, onMounted as fe, onBeforeUnmount as ge, watch as pe, openBlock as c, createElementBlock as h, normalizeStyle as N, createVNode as R, createCommentVNode as y, createBlock as j, unref as m, createSlots as be, withCtx as v, renderSlot as f, normalizeProps as H, guardReactiveProps as q, normalizeClass as Y, createElementVNode as J, Fragment as ye, renderList as we, toDisplayString as K, createTextVNode as Ce, nextTick as Q } from "vue";
|
|
2
|
-
import { u as ke, S as xe, c as Z, t as $e, a as _e, p as z, o as Te, e as ee, g as Pe, f as Fe, X as Ne, n as ze, q as Ie } from "./index-DiWO-_ca.js";
|
|
3
|
-
import { _ as Se } from "./Title-C3Ez1ceq.js";
|
|
4
|
-
import { u as Oe, U as Me } from "./usePrinter-BD40aUzH.js";
|
|
5
|
-
import { t as De, u as We } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import Ee from "./vue-ui-accordion-CiNdgRO9.js";
|
|
7
|
-
import { D as Ae } from "./DataTable-EqeVt-K-.js";
|
|
8
|
-
import { u as te } from "./useNestedProp-DNX5EefQ.js";
|
|
9
|
-
import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const Be = ["id"], Ue = ["xmlns", "viewBox"], Ge = ["transform"], Le = ["fill", "font-weight", "x", "y", "font-size", "transform"], Xe = {
|
|
11
|
-
key: 3,
|
|
12
|
-
class: "vue-data-ui-watermark"
|
|
13
|
-
}, Re = ["innerHTML"], je = {
|
|
14
|
-
__name: "vue-ui-word-cloud",
|
|
15
|
-
props: {
|
|
16
|
-
config: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default() {
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
dataset: {
|
|
23
|
-
type: [Array, String],
|
|
24
|
-
default() {
|
|
25
|
-
return [];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
setup(ae, { expose: oe }) {
|
|
30
|
-
const i = ae, { vue_ui_word_cloud: le } = ke(), w = F({
|
|
31
|
-
get() {
|
|
32
|
-
return !!i.dataset && i.dataset.length;
|
|
33
|
-
},
|
|
34
|
-
set(t) {
|
|
35
|
-
return t;
|
|
36
|
-
}
|
|
37
|
-
}), I = r(typeof i.dataset == "string" ? xe(i.dataset) : i.dataset), S = r(Z()), D = r(0), C = r(null), W = r(null), e = F(() => {
|
|
38
|
-
const t = te({
|
|
39
|
-
userConfig: i.config,
|
|
40
|
-
defaultConfig: le
|
|
41
|
-
});
|
|
42
|
-
return t.theme ? {
|
|
43
|
-
...te({
|
|
44
|
-
userConfig: $e.vue_ui_word_cloud[t.theme] || i.config,
|
|
45
|
-
defaultConfig: t
|
|
46
|
-
}),
|
|
47
|
-
customPalette: _e[t.theme] || z
|
|
48
|
-
} : t;
|
|
49
|
-
}), s = r({
|
|
50
|
-
width: e.value.style.chart.width,
|
|
51
|
-
height: e.value.style.chart.height,
|
|
52
|
-
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
53
|
-
minFontSize: e.value.style.chart.words.minFontSize
|
|
54
|
-
}), k = r(null);
|
|
55
|
-
fe(() => {
|
|
56
|
-
if (Te(i.dataset) ? ee({
|
|
57
|
-
componentName: "VueUiWordCloud",
|
|
58
|
-
type: "dataset"
|
|
59
|
-
}) : I.value.forEach((t, o) => {
|
|
60
|
-
Pe({
|
|
61
|
-
datasetObject: t,
|
|
62
|
-
requiredAttributes: ["name", "value"]
|
|
63
|
-
}).forEach((a) => {
|
|
64
|
-
w.value = !1, ee({
|
|
65
|
-
componentName: "VueUiWordCloud",
|
|
66
|
-
type: "datasetSerieAttribute",
|
|
67
|
-
property: a,
|
|
68
|
-
index: o
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
}), e.value.responsive) {
|
|
72
|
-
const t = De(() => {
|
|
73
|
-
const { width: o, height: a } = We({
|
|
74
|
-
chart: C.value,
|
|
75
|
-
title: e.value.style.chart.title.text ? W.value : null
|
|
76
|
-
});
|
|
77
|
-
s.value.width = o, s.value.height = a, Q(U);
|
|
78
|
-
});
|
|
79
|
-
k.value = new ResizeObserver(t), k.value.observe(C.value.parentNode);
|
|
80
|
-
}
|
|
81
|
-
}), ge(() => {
|
|
82
|
-
k.value && k.value.disconnect();
|
|
83
|
-
});
|
|
84
|
-
const { isPrinting: E, isImaging: A, generatePdf: V, generateImage: B } = Oe({
|
|
85
|
-
elementId: `wordCloud_${S.value}`,
|
|
86
|
-
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
87
|
-
}), x = r({
|
|
88
|
-
showTable: e.value.table.show
|
|
89
|
-
});
|
|
90
|
-
function se(t, o, a = "Arial") {
|
|
91
|
-
const l = document.createElement("canvas").getContext("2d");
|
|
92
|
-
return l.font = `${o}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
|
|
93
|
-
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
94
|
-
height: o
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function ne(t, o) {
|
|
98
|
-
return t.x < o.x + o.width && t.x + t.width > o.x && t.y < o.y + o.height && t.y + t.height > o.y;
|
|
99
|
-
}
|
|
100
|
-
function ue(t, o, a) {
|
|
101
|
-
const n = [], l = { x: -o / 2, y: -a / 2, width: o, height: a }, u = 0, g = 0;
|
|
102
|
-
return t.forEach((p) => {
|
|
103
|
-
let O = !1;
|
|
104
|
-
for (let P = 0; P < Math.max(o, a) / 2 && !O; P += e.value.style.chart.words.packingWeight)
|
|
105
|
-
for (let M = 0; M < 360 && !O; M += e.value.style.chart.words.packingWeight) {
|
|
106
|
-
const X = M * Math.PI / 180, ce = u + P * Math.cos(X) - p.width / 2, de = g + P * Math.sin(X) - p.height / 2, d = { ...p, x: ce, y: de }, ve = d.x >= l.x && d.y >= l.y && d.x + d.width <= l.x + l.width && d.y + d.height <= l.y + l.height, he = n.some((me) => ne(d, me));
|
|
107
|
-
ve && !he && (n.push(d), O = !0);
|
|
108
|
-
}
|
|
109
|
-
}), n;
|
|
110
|
-
}
|
|
111
|
-
const b = r([]);
|
|
112
|
-
pe(() => i.dataset, U, { immediate: !0 });
|
|
113
|
-
function U() {
|
|
114
|
-
const t = I.value.map((l) => l.value), o = Math.max(...t), a = Math.min(...t), n = I.value.map((l, u) => {
|
|
115
|
-
const g = (l.value - a) / (o - a) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize, p = se(l.name, g);
|
|
116
|
-
return {
|
|
117
|
-
...l,
|
|
118
|
-
id: Z(),
|
|
119
|
-
fontSize: g,
|
|
120
|
-
width: p.width,
|
|
121
|
-
height: p.height,
|
|
122
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] || z[u] || z[u % z.length] : e.value.style.chart.words.color
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
b.value = ue(n, s.value.width, s.value.height).sort((l, u) => u.fontSize - l.fontSize);
|
|
126
|
-
}
|
|
127
|
-
const $ = F(() => {
|
|
128
|
-
const t = b.value.map((a) => ({
|
|
129
|
-
name: a.name,
|
|
130
|
-
color: a.color
|
|
131
|
-
})), o = b.value.map((a) => a.value);
|
|
132
|
-
return { head: t, body: o };
|
|
133
|
-
});
|
|
134
|
-
function G() {
|
|
135
|
-
Q(() => {
|
|
136
|
-
const t = $.value.head.map((n, l) => [[
|
|
137
|
-
n.name
|
|
138
|
-
], [$.value.body[l]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), a = ze(o);
|
|
139
|
-
Ie({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
const _ = F(() => {
|
|
143
|
-
const t = [
|
|
144
|
-
e.value.table.columnNames.series,
|
|
145
|
-
e.value.table.columnNames.value
|
|
146
|
-
], o = $.value.head.map((l, u) => {
|
|
147
|
-
const g = Fe({ p: e.value.table.td.prefix, v: $.value.body[u], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
148
|
-
return [
|
|
149
|
-
{
|
|
150
|
-
color: l.color,
|
|
151
|
-
name: l.name
|
|
152
|
-
},
|
|
153
|
-
g
|
|
154
|
-
];
|
|
155
|
-
}), a = {
|
|
156
|
-
th: {
|
|
157
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
158
|
-
color: e.value.table.th.color,
|
|
159
|
-
outline: e.value.table.th.outline
|
|
160
|
-
},
|
|
161
|
-
td: {
|
|
162
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
163
|
-
color: e.value.table.td.color,
|
|
164
|
-
outline: e.value.table.td.outline
|
|
165
|
-
},
|
|
166
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
colNames: [
|
|
170
|
-
e.value.table.columnNames.series,
|
|
171
|
-
e.value.table.columnNames.value
|
|
172
|
-
],
|
|
173
|
-
head: t,
|
|
174
|
-
body: o,
|
|
175
|
-
config: a
|
|
176
|
-
};
|
|
177
|
-
}), T = r(!1);
|
|
178
|
-
function re(t) {
|
|
179
|
-
T.value = t, D.value += 1;
|
|
180
|
-
}
|
|
181
|
-
function ie() {
|
|
182
|
-
return b.value;
|
|
183
|
-
}
|
|
184
|
-
function L() {
|
|
185
|
-
x.value.showTable = !x.value.showTable;
|
|
186
|
-
}
|
|
187
|
-
return oe({
|
|
188
|
-
getData: ie,
|
|
189
|
-
generateCsv: G,
|
|
190
|
-
generatePdf: V,
|
|
191
|
-
generateImage: B,
|
|
192
|
-
toggleTable: L
|
|
193
|
-
}), (t, o) => (c(), h("div", {
|
|
194
|
-
class: "vue-ui-word-cloud",
|
|
195
|
-
ref_key: "wordCloudChart",
|
|
196
|
-
ref: C,
|
|
197
|
-
id: `wordCloud_${S.value}`,
|
|
198
|
-
style: N(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
199
|
-
}, [
|
|
200
|
-
e.value.style.chart.title.text ? (c(), h("div", {
|
|
201
|
-
key: 0,
|
|
202
|
-
ref_key: "chartTitle",
|
|
203
|
-
ref: W,
|
|
204
|
-
style: N(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
205
|
-
}, [
|
|
206
|
-
R(Se, {
|
|
207
|
-
config: {
|
|
208
|
-
title: {
|
|
209
|
-
...e.value.style.chart.title
|
|
210
|
-
},
|
|
211
|
-
subtitle: {
|
|
212
|
-
...e.value.style.chart.title.subtitle
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}, null, 8, ["config"])
|
|
216
|
-
], 4)) : y("", !0),
|
|
217
|
-
e.value.userOptions.show && w.value ? (c(), j(Me, {
|
|
218
|
-
ref: "details",
|
|
219
|
-
key: `user_option_${D.value}`,
|
|
220
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
221
|
-
color: e.value.style.chart.color,
|
|
222
|
-
isPrinting: m(E),
|
|
223
|
-
isImaging: m(A),
|
|
224
|
-
uid: S.value,
|
|
225
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
226
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
227
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
228
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
229
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
230
|
-
isFullscreen: T.value,
|
|
231
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
232
|
-
chartElement: C.value,
|
|
233
|
-
onToggleFullscreen: re,
|
|
234
|
-
onGeneratePdf: m(V),
|
|
235
|
-
onGenerateCsv: G,
|
|
236
|
-
onGenerateImage: m(B),
|
|
237
|
-
onToggleTable: L
|
|
238
|
-
}, be({ _: 2 }, [
|
|
239
|
-
t.$slots.optionPdf ? {
|
|
240
|
-
name: "optionPdf",
|
|
241
|
-
fn: v(() => [
|
|
242
|
-
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
243
|
-
]),
|
|
244
|
-
key: "0"
|
|
245
|
-
} : void 0,
|
|
246
|
-
t.$slots.optionCsv ? {
|
|
247
|
-
name: "optionCsv",
|
|
248
|
-
fn: v(() => [
|
|
249
|
-
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
250
|
-
]),
|
|
251
|
-
key: "1"
|
|
252
|
-
} : void 0,
|
|
253
|
-
t.$slots.optionImg ? {
|
|
254
|
-
name: "optionImg",
|
|
255
|
-
fn: v(() => [
|
|
256
|
-
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
257
|
-
]),
|
|
258
|
-
key: "2"
|
|
259
|
-
} : void 0,
|
|
260
|
-
t.$slots.optionTable ? {
|
|
261
|
-
name: "optionTable",
|
|
262
|
-
fn: v(() => [
|
|
263
|
-
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
264
|
-
]),
|
|
265
|
-
key: "3"
|
|
266
|
-
} : void 0,
|
|
267
|
-
t.$slots.optionFullscreen ? {
|
|
268
|
-
name: "optionFullscreen",
|
|
269
|
-
fn: v(({ toggleFullscreen: a, isFullscreen: n }) => [
|
|
270
|
-
f(t.$slots, "optionFullscreen", H(q({ toggleFullscreen: a, isFullscreen: n })), void 0, !0)
|
|
271
|
-
]),
|
|
272
|
-
key: "4"
|
|
273
|
-
} : void 0
|
|
274
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
275
|
-
w.value ? (c(), h("svg", {
|
|
276
|
-
key: 2,
|
|
277
|
-
class: Y({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
|
|
278
|
-
xmlns: m(Ne),
|
|
279
|
-
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
280
|
-
style: N(`overflow:visible;background:${e.value.style.chart.backgroundColor};`)
|
|
281
|
-
}, [
|
|
282
|
-
J("g", {
|
|
283
|
-
transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
|
|
284
|
-
}, [
|
|
285
|
-
(c(!0), h(ye, null, we(b.value, (a, n) => (c(), h("g", null, [
|
|
286
|
-
(c(), h("text", {
|
|
287
|
-
fill: a.color,
|
|
288
|
-
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
289
|
-
key: n,
|
|
290
|
-
x: a.x,
|
|
291
|
-
y: a.y,
|
|
292
|
-
"font-size": a.fontSize,
|
|
293
|
-
transform: `translate(${a.width / 2}, ${a.height / 2})`,
|
|
294
|
-
style: N(`animation-delay:${n * e.value.animationDelayMs}ms !important`),
|
|
295
|
-
class: Y({ animated: e.value.useCssAnimation }),
|
|
296
|
-
"text-anchor": "middle",
|
|
297
|
-
"dominant-baseline": "middle"
|
|
298
|
-
}, K(a.name), 15, Le))
|
|
299
|
-
]))), 256))
|
|
300
|
-
], 8, Ge),
|
|
301
|
-
f(t.$slots, "svg", {
|
|
302
|
-
svg: { height: s.value.height, width: s.value.width }
|
|
303
|
-
}, void 0, !0)
|
|
304
|
-
], 14, Ue)) : y("", !0),
|
|
305
|
-
t.$slots.watermark ? (c(), h("div", Xe, [
|
|
306
|
-
f(t.$slots, "watermark", H(q({ isPrinting: m(E) || m(A) })), void 0, !0)
|
|
307
|
-
])) : y("", !0),
|
|
308
|
-
w.value ? (c(), j(Ee, {
|
|
309
|
-
key: 4,
|
|
310
|
-
hideDetails: "",
|
|
311
|
-
config: {
|
|
312
|
-
open: x.value.showTable,
|
|
313
|
-
maxHeight: 1e4,
|
|
314
|
-
body: {
|
|
315
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
316
|
-
color: e.value.style.chart.color
|
|
317
|
-
},
|
|
318
|
-
head: {
|
|
319
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
320
|
-
color: e.value.style.chart.color
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}, {
|
|
324
|
-
content: v(() => [
|
|
325
|
-
R(Ae, {
|
|
326
|
-
colNames: _.value.colNames,
|
|
327
|
-
head: _.value.head,
|
|
328
|
-
body: _.value.body,
|
|
329
|
-
config: _.value.config,
|
|
330
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
331
|
-
onClose: o[0] || (o[0] = (a) => x.value.showTable = !1)
|
|
332
|
-
}, {
|
|
333
|
-
th: v(({ th: a }) => [
|
|
334
|
-
J("div", {
|
|
335
|
-
innerHTML: a,
|
|
336
|
-
style: { display: "flex", "align-items": "center" }
|
|
337
|
-
}, null, 8, Re)
|
|
338
|
-
]),
|
|
339
|
-
td: v(({ td: a }) => [
|
|
340
|
-
Ce(K(a.name || a), 1)
|
|
341
|
-
]),
|
|
342
|
-
_: 1
|
|
343
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
344
|
-
]),
|
|
345
|
-
_: 1
|
|
346
|
-
}, 8, ["config"])) : y("", !0)
|
|
347
|
-
], 12, Be));
|
|
348
|
-
}
|
|
349
|
-
}, at = /* @__PURE__ */ Ve(je, [["__scopeId", "data-v-682aa7fb"]]);
|
|
350
|
-
export {
|
|
351
|
-
at as default
|
|
352
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BQOxn6SH.cjs"),Z=require("./Title-B9iq63n1.cjs"),M=require("./usePrinter-Q1J--baX.cjs"),D=require("./useResponsive-B3TrDDIG.cjs"),ee=require("./vue-ui-accordion-ogVvFfQy.cjs"),te=require("./DataTable-C6HTLT7L.cjs"),W=require("./useNestedProp-BtqgWTf9.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),le=["id"],ae=["xmlns","viewBox"],ne=["transform"],se=["fill","font-weight","x","y","font-size","transform"],re={key:3,class:"vue-data-ui-watermark"},ue=["innerHTML"],ie={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(q,{expose:A}){const c=q,{vue_ui_word_cloud:U}=s.useConfig(),f=e.computed({get(){return!!c.dataset&&c.dataset.length},set(o){return o}}),x=e.ref(typeof c.dataset=="string"?s.createWordCloudDatasetFromPlainText(c.dataset):c.dataset),$=e.ref(s.createUid()),T=e.ref(0),g=e.ref(null),S=e.ref(null),t=e.computed(()=>{const o=W.useNestedProp({userConfig:c.config,defaultConfig:U});return o.theme?{...W.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||c.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}),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}),p=e.ref(null);e.onMounted(()=>{if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):x.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{f.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive){const o=D.throttle(()=>{const{width:a,height:l}=D.useResponsive({chart:g.value,title:t.value.style.chart.title.text?S.value:null});r.value.width=a,r.value.height=l,e.nextTick(I)});p.value=new ResizeObserver(o),p.value.observe(g.value.parentNode)}}),e.onBeforeUnmount(()=>{p.value&&p.value.disconnect()});const{isPrinting:_,isImaging:z,generatePdf:F,generateImage:B}=M.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),y=e.ref({showTable:t.value.table.show});function G(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 L(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 R(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},i=0,v=0;return o.forEach(h=>{let P=!1;for(let w=0;w<Math.max(a,l)/2&&!P;w+=t.value.style.chart.words.packingWeight)for(let N=0;N<360&&!P;N+=t.value.style.chart.words.packingWeight){const V=N*Math.PI/180,H=i+w*Math.cos(V)-h.width/2,Y=v+w*Math.sin(V)-h.height/2,d={...h,x:H,y:Y},J=d.x>=n.x&&d.y>=n.y&&d.x+d.width<=n.x+n.width&&d.y+d.height<=n.y+n.height,K=u.some(Q=>L(d,Q));J&&!K&&(u.push(d),P=!0)}}),u}const m=e.ref([]);e.watch(()=>c.dataset,I,{immediate:!0});function I(){const o=x.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=x.value.map((n,i)=>{const v=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,h=G(n.name,v);return{...n,id:s.createUid(),fontSize:v,width:h.width,height:h.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[i]||t.value.customPalette[i%t.value.customPalette.length]||s.palette[i]||s.palette[i%s.palette.length]:t.value.style.chart.words.color}});m.value=R(u,r.value.width,r.value.height).sort((n,i)=>i.fontSize-n.fontSize)}const b=e.computed(()=>{const o=m.value.map(l=>({name:l.name,color:l.color})),a=m.value.map(l=>l.value);return{head:o,body:a}});function E(){e.nextTick(()=>{const o=b.value.head.map((u,n)=>[[u.name],[b.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const C=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=b.value.head.map((n,i)=>{const v=s.dataLabel({p:t.value.table.td.prefix,v:b.value.body[i],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},v]}),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}}),k=e.ref(!1);function X(o){k.value=o,T.value+=1}function j(){return m.value}function O(){y.value.showTable=!y.value.showTable}return A({getData:j,generateCsv:E,generatePdf:F,generateImage:B,toggleTable:O}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:S,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(Z._sfc_main,{config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(M.UserOptions,{ref:"details",key:`user_option_${T.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(_),isImaging:e.unref(z),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:X,onGeneratePdf:e.unref(F),onGenerateCsv:E,onGenerateImage:e.unref(B),onToggleTable:O},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};`)},[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(m.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${u*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,se))]))),256))],8,ne),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],14,ae)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(_)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createBlock(ee.default,{key:4,hideDetails:"",config:{open:y.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.createVNode(te.DataTable,{colNames:C.value.colNames,head:C.value.head,body:C.value.body,config:C.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[0]||(a[0]=l=>y.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ue)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,le))}},ce=oe._export_sfc(ie,[["__scopeId","data-v-682aa7fb"]]);exports.default=ce;
|