vue-data-ui 2.3.74 → 2.3.76
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/dist/{Arrow-DK6F5Fq3.cjs → Arrow-D7M4-bW7.cjs} +1 -1
- package/dist/{Arrow-CYCrAySW.js → Arrow-DY9RKUmG.js} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon-DB7Apwv_.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-rwm-10Hu.js} +1 -1
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-CsNozyz7.cjs} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-e2fnfjXV.js} +2 -2
- package/dist/{Legend-Cj7T-DqJ.js → Legend-5cQ0xZjK.js} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-DgFd-O0m.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-CiTElr_0.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-yPECDLiP.cjs} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-DaZgCKV7.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-DwBBu3kB.js} +2 -2
- package/dist/{Title-D5cATWsL.cjs → Title-3EduyW4p.cjs} +1 -1
- package/dist/{Title-DZjnxQdN.js → Title-gUz6GDA3.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DScSrYXJ.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-DfSM1mNP.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-BTgtr0F8.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-CaV1s-yZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-CisbRRo_.cjs} +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-tWCzZrLx.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-DzTaA1eh.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-rvJyT65A.js} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-BGkWRPUY.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-BO89gTtq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-CcTMIHiB.js} +499 -486
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +19 -0
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-7e4Myhcg.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-CpzGQ63y.js} +3 -3
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-D71ZLkVV.js} +182 -169
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-B8Iu6cYt.js} +1 -1
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-BKQrweqm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Bx4QVkY0.js} +295 -279
- package/dist/vue-ui-candlestick-DAc1FQ-i.cjs +2 -0
- package/dist/vue-ui-carousel-table-uFRqkghO.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-xuQG6bcH.js} +146 -129
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Bo6rDcU7.js} +215 -204
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +6 -0
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-BQbeuW-k.cjs} +1 -1
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-C0KOqEOq.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-0Hsjx-bO.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BT71xS7P.js} +2 -2
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-BRqpKYvD.js} +2 -2
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-C2ReH6w0.cjs} +1 -1
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-NQW-3prf.js} +376 -362
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-jbXQQGTc.js} +270 -255
- package/dist/vue-ui-donut-v81suIOX.cjs +1 -0
- package/dist/vue-ui-dumbbell-DXQSg6wa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-Dyz8xdtC.js} +232 -213
- package/dist/vue-ui-flow-BL3JWW1m.js +481 -0
- package/dist/vue-ui-flow-UqSNwH9d.cjs +1 -0
- package/dist/vue-ui-galaxy-DTQWGvRH.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-Dx9nsOuM.js} +175 -162
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +1 -0
- package/dist/vue-ui-gauge-CLaKGi0-.js +500 -0
- package/dist/vue-ui-gizmo-Kitfqu0J.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-of-4s5HG.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BIzjOMXO.js} +157 -143
- package/dist/vue-ui-heatmap-DUw2350O.cjs +1 -0
- package/dist/vue-ui-kpi-By3YPwgo.js +98 -0
- package/dist/vue-ui-kpi-DyL2Hcz-.cjs +1 -0
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-C048-8Kd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-DnK3V2z2.js} +2 -2
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-BfhbIqa5.js} +177 -167
- package/dist/vue-ui-molecule-D-ahly6R.cjs +1 -0
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-DXxEKr3x.js} +172 -161
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BdUdHFd-.js} +377 -364
- package/dist/vue-ui-nested-donuts-C7qM_FRw.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-D0vF5jBt.js} +191 -177
- package/dist/vue-ui-onion-DX3gofXZ.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-CTZY-pY8.js} +298 -284
- package/dist/vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs +8 -0
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-ByY8GP3y.js} +347 -334
- package/dist/vue-ui-quadrant-CgApzie6.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-DTxJ__7j.js} +483 -469
- package/dist/vue-ui-quick-chart-DWZEgUJF.cjs +15 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-5UBmAU6W.js} +202 -189
- package/dist/vue-ui-radar-DEED0rTz.cjs +1 -0
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-Ce_Ewqtl.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-Dr6jquxh.js} +2 -2
- package/dist/vue-ui-relation-circle-BU8i2miI.js +322 -0
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +1 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-Ctl3Jywh.js} +203 -189
- package/dist/vue-ui-rings-OQ8a1Ruw.cjs +2 -0
- package/dist/vue-ui-scatter-B8StSjt8.cjs +1 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-BwJ_koWT.js} +284 -270
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-BS3L5vhN.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-bAVk3EPl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-CMQzFTs9.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-CvFX_ExX.js} +2 -2
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CGYZpNt9.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-sF8QIso1.cjs} +1 -1
- package/dist/vue-ui-spark-trend-B4XSSKl9.js +263 -0
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BbsJGDMZ.js} +95 -87
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BKyQoI7C.cjs +1 -0
- package/dist/vue-ui-sparkgauge-D4w_i_QJ.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-CYybrW-6.js} +79 -68
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +1 -0
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DjN1SVdO.js} +142 -123
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-BLMhJxaN.js} +120 -104
- package/dist/vue-ui-sparkstackbar-BZ2bESBi.cjs +1 -0
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-BTKOHUYc.js} +235 -222
- package/dist/vue-ui-stackbar-DRHaJFR8.cjs +6 -0
- package/dist/vue-ui-strip-plot-DxQxFbWg.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-o6GTsGAT.js} +246 -232
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-BFIj1Rgh.cjs} +1 -1
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-CnquiTpr.js} +1 -1
- package/dist/vue-ui-table-heatmap-CCGK12Fa.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CZRIwv-Q.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-B3zEeq6Z.js} +151 -138
- package/dist/vue-ui-table-sparkline-DYmgfHz4.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BopiohUh.js} +116 -104
- package/dist/vue-ui-thermometer-CzPRBt6c.cjs +1 -0
- package/dist/vue-ui-timer-Bonw69Lt.cjs +64 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-C7WkW8hK.js} +191 -176
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BurRtFv4.js} +115 -103
- package/dist/vue-ui-tiremarks-DkIGfq8t.cjs +1 -0
- package/dist/vue-ui-treemap-CalhJmnp.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-DWy4voIr.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-CJW1YhtY.js} +314 -299
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-DB7X6nTS.js} +285 -265
- package/dist/vue-ui-waffle-faQMBYNx.cjs +1 -0
- package/dist/vue-ui-wheel-BzjbGP6a.cjs +1 -0
- package/dist/vue-ui-wheel-CryKap2E.js +255 -0
- package/dist/vue-ui-word-cloud-COqUkvei.js +512 -0
- package/dist/vue-ui-word-cloud-DJN9I4q4.cjs +1 -0
- package/dist/vue-ui-xy-BmA0tspd.cjs +3 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-b1Z_HPsx.js} +300 -274
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-BgbLnY5B.js} +345 -327
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +9 -0
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,498 +0,0 @@
|
|
|
1
|
-
import { useCssVars as we, computed as f, openBlock as i, createElementBlock as v, createVNode as q, renderSlot as m, createElementVNode as C, normalizeStyle as N, pushScopeId as xe, popScopeId as $e, ref as c, watch as te, onMounted as Se, onBeforeUnmount as Fe, createCommentVNode as F, createBlock as L, unref as p, createSlots as Ne, withCtx as h, normalizeProps as X, guardReactiveProps as j, normalizeClass as ae, Fragment as _e, renderList as Pe, toDisplayString as oe, createTextVNode as Te, nextTick as le } from "vue";
|
|
2
|
-
import { u as ze, W as Ie, s as Ae, c as se, t as Oe, a as Me, p as E, o as We, e as ne, g as De, f as Be, X as Ee, q as Re, r as Ue } from "./index-C8SH0f2u.js";
|
|
3
|
-
import { _ as Ve } from "./Title-DZjnxQdN.js";
|
|
4
|
-
import { u as Ge, U as Le } from "./usePrinter-Dj50NAxo.js";
|
|
5
|
-
import { d as Xe, t as je, u as qe } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import He from "./vue-ui-accordion-YHleIgkV.js";
|
|
7
|
-
import { D as Ye } from "./DataTable-CKdV-L0e.js";
|
|
8
|
-
import Je from "./BaseIcon-kBIAYqUO.js";
|
|
9
|
-
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as re } from "./useNestedProp-lS_T5lM3.js";
|
|
11
|
-
const Ke = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Qe = { "data-html2canvas-ignore": "" }, Ze = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "reset-wrapper"
|
|
14
|
-
}, et = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "reset-wrapper"
|
|
17
|
-
}, tt = { class: "mono-slicer" }, at = /* @__PURE__ */ Ke(() => /* @__PURE__ */ C("div", { class: "slider-track" }, null, -1)), ot = ["min", "max", "value"], lt = {
|
|
18
|
-
__name: "MonoSlicer",
|
|
19
|
-
props: {
|
|
20
|
-
min: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 0
|
|
23
|
-
},
|
|
24
|
-
max: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 0
|
|
27
|
-
},
|
|
28
|
-
inputColor: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "#1A1A1A"
|
|
31
|
-
},
|
|
32
|
-
background: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "#FFFFFF"
|
|
35
|
-
},
|
|
36
|
-
borderColor: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "#FFFFFF"
|
|
39
|
-
},
|
|
40
|
-
selectColor: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: "#4A4A4A"
|
|
43
|
-
},
|
|
44
|
-
textColor: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: "#1A1A1A"
|
|
47
|
-
},
|
|
48
|
-
useResetSlot: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
},
|
|
52
|
-
value: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: 0
|
|
55
|
-
},
|
|
56
|
-
source: {
|
|
57
|
-
type: Number,
|
|
58
|
-
default: 0
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
emits: ["update:value", "reset"],
|
|
62
|
-
setup(r, { emit: I }) {
|
|
63
|
-
const s = r;
|
|
64
|
-
we((b) => ({
|
|
65
|
-
"90ad3208": R.value,
|
|
66
|
-
"4f9eef70": P.value,
|
|
67
|
-
"6e07ae3e": _.value,
|
|
68
|
-
"2fd430a0": r.selectColor,
|
|
69
|
-
"6b8169a4": k.value
|
|
70
|
-
}));
|
|
71
|
-
const R = f(() => s.inputColor), k = f(() => s.background), _ = f(() => `${s.selectColor}33`), P = f(() => s.borderColor);
|
|
72
|
-
function T() {
|
|
73
|
-
I("reset");
|
|
74
|
-
}
|
|
75
|
-
const w = f(() => {
|
|
76
|
-
const b = s.max - s.min, e = 0, x = (s.value - s.min) / b * 100;
|
|
77
|
-
return {
|
|
78
|
-
left: `${e}%`,
|
|
79
|
-
width: `${x - e}%`,
|
|
80
|
-
background: s.selectColor
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
|
-
return (b, e) => (i(), v("div", Qe, [
|
|
84
|
-
r.value !== r.source ? (i(), v("div", Ze, [
|
|
85
|
-
r.useResetSlot ? m(b.$slots, "reset-action", {
|
|
86
|
-
key: 1,
|
|
87
|
-
reset: T
|
|
88
|
-
}, void 0, !0) : (i(), v("button", {
|
|
89
|
-
key: 0,
|
|
90
|
-
"data-cy-reset": "",
|
|
91
|
-
tabindex: "0",
|
|
92
|
-
role: "button",
|
|
93
|
-
class: "vue-data-ui-refresh-button",
|
|
94
|
-
onClick: T
|
|
95
|
-
}, [
|
|
96
|
-
q(Je, {
|
|
97
|
-
name: "refresh",
|
|
98
|
-
stroke: r.textColor
|
|
99
|
-
}, null, 8, ["stroke"])
|
|
100
|
-
]))
|
|
101
|
-
])) : (i(), v("div", et)),
|
|
102
|
-
C("div", tt, [
|
|
103
|
-
at,
|
|
104
|
-
C("div", {
|
|
105
|
-
class: "range-highlight",
|
|
106
|
-
style: N(w.value)
|
|
107
|
-
}, null, 4),
|
|
108
|
-
C("input", {
|
|
109
|
-
type: "range",
|
|
110
|
-
min: r.min,
|
|
111
|
-
max: r.max,
|
|
112
|
-
value: Number(r.value),
|
|
113
|
-
onInput: e[0] || (e[0] = (x) => I("update:value", Number(x.target.value)))
|
|
114
|
-
}, null, 40, ot)
|
|
115
|
-
])
|
|
116
|
-
]));
|
|
117
|
-
}
|
|
118
|
-
}, st = /* @__PURE__ */ ue(lt, [["__scopeId", "data-v-3fd7d274"]]), nt = ["id"], rt = ["xmlns", "viewBox"], ut = ["transform"], it = ["fill", "font-weight", "x", "y", "font-size", "transform"], ct = {
|
|
119
|
-
key: 3,
|
|
120
|
-
class: "vue-data-ui-watermark"
|
|
121
|
-
}, dt = ["innerHTML"], vt = {
|
|
122
|
-
__name: "vue-ui-word-cloud",
|
|
123
|
-
props: {
|
|
124
|
-
config: {
|
|
125
|
-
type: Object,
|
|
126
|
-
default() {
|
|
127
|
-
return {};
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
dataset: {
|
|
131
|
-
type: [Array, String],
|
|
132
|
-
default() {
|
|
133
|
-
return [];
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
setup(r, { expose: I }) {
|
|
138
|
-
const s = r, { vue_ui_word_cloud: R } = ze(), k = f({
|
|
139
|
-
get() {
|
|
140
|
-
return !!s.dataset && s.dataset.length;
|
|
141
|
-
},
|
|
142
|
-
set(t) {
|
|
143
|
-
return t;
|
|
144
|
-
}
|
|
145
|
-
}), _ = c(typeof s.dataset == "string" ? Ie(s.dataset) : s.dataset.map((t) => ({
|
|
146
|
-
...t,
|
|
147
|
-
value: Ae(t.value)
|
|
148
|
-
}))), P = c(se()), T = c(0), w = c(null), b = c(null), e = f(() => {
|
|
149
|
-
const t = re({
|
|
150
|
-
userConfig: s.config,
|
|
151
|
-
defaultConfig: R
|
|
152
|
-
});
|
|
153
|
-
return t.theme ? {
|
|
154
|
-
...re({
|
|
155
|
-
userConfig: Oe.vue_ui_word_cloud[t.theme] || s.config,
|
|
156
|
-
defaultConfig: t
|
|
157
|
-
}),
|
|
158
|
-
customPalette: Me[t.theme] || E
|
|
159
|
-
} : t;
|
|
160
|
-
}), x = c(null), g = c(e.value.style.chart.width), n = c({
|
|
161
|
-
width: g.value,
|
|
162
|
-
height: e.value.style.chart.height / e.value.style.chart.height * g.value,
|
|
163
|
-
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
164
|
-
minFontSize: e.value.style.chart.words.minFontSize
|
|
165
|
-
}), ie = je(() => {
|
|
166
|
-
const { width: t, height: o } = qe({
|
|
167
|
-
chart: w.value,
|
|
168
|
-
title: e.value.style.chart.title.text ? b.value : null,
|
|
169
|
-
slicer: e.value.style.chart.zoom.show && x.value
|
|
170
|
-
});
|
|
171
|
-
n.value.width = t, n.value.height = o, le(U);
|
|
172
|
-
});
|
|
173
|
-
te(() => g.value, () => {
|
|
174
|
-
ce();
|
|
175
|
-
});
|
|
176
|
-
const ce = Xe(() => {
|
|
177
|
-
n.value.width = Number(g.value), n.value.height = e.value.style.chart.height / e.value.style.chart.height * Number(g.value), U();
|
|
178
|
-
}, 10);
|
|
179
|
-
function de() {
|
|
180
|
-
g.value = e.value.style.chart.width;
|
|
181
|
-
}
|
|
182
|
-
const A = c(null);
|
|
183
|
-
Se(() => {
|
|
184
|
-
We(s.dataset) ? ne({
|
|
185
|
-
componentName: "VueUiWordCloud",
|
|
186
|
-
type: "dataset"
|
|
187
|
-
}) : _.value.forEach((t, o) => {
|
|
188
|
-
De({
|
|
189
|
-
datasetObject: t,
|
|
190
|
-
requiredAttributes: ["name", "value"]
|
|
191
|
-
}).forEach((a) => {
|
|
192
|
-
k.value = !1, ne({
|
|
193
|
-
componentName: "VueUiWordCloud",
|
|
194
|
-
type: "datasetSerieAttribute",
|
|
195
|
-
property: a,
|
|
196
|
-
index: o
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
}), e.value.responsive && (A.value = new ResizeObserver(ie), A.value.observe(w.value.parentNode));
|
|
200
|
-
}), Fe(() => {
|
|
201
|
-
A.value && A.value.disconnect();
|
|
202
|
-
});
|
|
203
|
-
const { isPrinting: H, isImaging: Y, generatePdf: J, generateImage: K } = Ge({
|
|
204
|
-
elementId: `wordCloud_${P.value}`,
|
|
205
|
-
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
206
|
-
}), O = c({
|
|
207
|
-
showTable: e.value.table.show
|
|
208
|
-
});
|
|
209
|
-
function ve(t, o, a = "Arial") {
|
|
210
|
-
const l = document.createElement("canvas").getContext("2d");
|
|
211
|
-
return l.font = `${o}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
|
|
212
|
-
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
213
|
-
height: o
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function he(t, o) {
|
|
217
|
-
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;
|
|
218
|
-
}
|
|
219
|
-
function me(t, o, a) {
|
|
220
|
-
const u = [], l = { x: -o / 2, y: -a / 2, width: o, height: a }, d = 0, $ = 0;
|
|
221
|
-
return t.forEach((S) => {
|
|
222
|
-
let V = !1;
|
|
223
|
-
for (let B = 0; B < Math.max(o, a) / 2 && !V; B += e.value.style.chart.words.packingWeight)
|
|
224
|
-
for (let G = 0; G < 360 && !V; G += e.value.style.chart.words.packingWeight) {
|
|
225
|
-
const ee = G * Math.PI / 180, ye = d + B * Math.cos(ee) - S.width / 2, be = $ + B * Math.sin(ee) - S.height / 2, y = { ...S, x: ye, y: be }, pe = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Ce = u.some((ke) => he(y, ke));
|
|
226
|
-
pe && !Ce && (u.push(y), V = !0);
|
|
227
|
-
}
|
|
228
|
-
}), u;
|
|
229
|
-
}
|
|
230
|
-
const z = c([]);
|
|
231
|
-
te(() => s.dataset, U, { immediate: !0 });
|
|
232
|
-
function U() {
|
|
233
|
-
const t = _.value.map((l) => l.value), o = Math.max(...t), a = Math.min(...t), u = _.value.map((l, d) => {
|
|
234
|
-
const $ = (l.value - a) / (o - a) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize, S = ve(l.name, $);
|
|
235
|
-
return {
|
|
236
|
-
...l,
|
|
237
|
-
id: se(),
|
|
238
|
-
fontSize: $,
|
|
239
|
-
width: S.width,
|
|
240
|
-
height: S.height,
|
|
241
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[d] || e.value.customPalette[d % e.value.customPalette.length] || E[d] || E[d % E.length] : e.value.style.chart.words.color
|
|
242
|
-
};
|
|
243
|
-
});
|
|
244
|
-
z.value = me(u, n.value.width, n.value.height).sort((l, d) => d.fontSize - l.fontSize);
|
|
245
|
-
}
|
|
246
|
-
const M = f(() => {
|
|
247
|
-
const t = z.value.map((a) => ({
|
|
248
|
-
name: a.name,
|
|
249
|
-
color: a.color
|
|
250
|
-
})), o = z.value.map((a) => a.value);
|
|
251
|
-
return { head: t, body: o };
|
|
252
|
-
});
|
|
253
|
-
function Q() {
|
|
254
|
-
le(() => {
|
|
255
|
-
const t = M.value.head.map((u, l) => [[
|
|
256
|
-
u.name
|
|
257
|
-
], [M.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 = Re(o);
|
|
258
|
-
Ue({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
const W = f(() => {
|
|
262
|
-
const t = [
|
|
263
|
-
e.value.table.columnNames.series,
|
|
264
|
-
e.value.table.columnNames.value
|
|
265
|
-
], o = M.value.head.map((l, d) => {
|
|
266
|
-
const $ = Be({ p: e.value.table.td.prefix, v: M.value.body[d], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
267
|
-
return [
|
|
268
|
-
{
|
|
269
|
-
color: l.color,
|
|
270
|
-
name: l.name
|
|
271
|
-
},
|
|
272
|
-
$
|
|
273
|
-
];
|
|
274
|
-
}), a = {
|
|
275
|
-
th: {
|
|
276
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
277
|
-
color: e.value.table.th.color,
|
|
278
|
-
outline: e.value.table.th.outline
|
|
279
|
-
},
|
|
280
|
-
td: {
|
|
281
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
282
|
-
color: e.value.table.td.color,
|
|
283
|
-
outline: e.value.table.td.outline
|
|
284
|
-
},
|
|
285
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
286
|
-
};
|
|
287
|
-
return {
|
|
288
|
-
colNames: [
|
|
289
|
-
e.value.table.columnNames.series,
|
|
290
|
-
e.value.table.columnNames.value
|
|
291
|
-
],
|
|
292
|
-
head: t,
|
|
293
|
-
body: o,
|
|
294
|
-
config: a
|
|
295
|
-
};
|
|
296
|
-
}), D = c(!1);
|
|
297
|
-
function fe(t) {
|
|
298
|
-
D.value = t, T.value += 1;
|
|
299
|
-
}
|
|
300
|
-
function ge() {
|
|
301
|
-
return z.value;
|
|
302
|
-
}
|
|
303
|
-
function Z() {
|
|
304
|
-
O.value.showTable = !O.value.showTable;
|
|
305
|
-
}
|
|
306
|
-
return I({
|
|
307
|
-
getData: ge,
|
|
308
|
-
generateCsv: Q,
|
|
309
|
-
generatePdf: J,
|
|
310
|
-
generateImage: K,
|
|
311
|
-
toggleTable: Z
|
|
312
|
-
}), (t, o) => (i(), v("div", {
|
|
313
|
-
class: "vue-ui-word-cloud",
|
|
314
|
-
ref_key: "wordCloudChart",
|
|
315
|
-
ref: w,
|
|
316
|
-
id: `wordCloud_${P.value}`,
|
|
317
|
-
style: N(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
318
|
-
}, [
|
|
319
|
-
e.value.style.chart.title.text ? (i(), v("div", {
|
|
320
|
-
key: 0,
|
|
321
|
-
ref_key: "chartTitle",
|
|
322
|
-
ref: b,
|
|
323
|
-
style: N(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
324
|
-
}, [
|
|
325
|
-
q(Ve, {
|
|
326
|
-
config: {
|
|
327
|
-
title: {
|
|
328
|
-
...e.value.style.chart.title
|
|
329
|
-
},
|
|
330
|
-
subtitle: {
|
|
331
|
-
...e.value.style.chart.title.subtitle
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}, null, 8, ["config"])
|
|
335
|
-
], 4)) : F("", !0),
|
|
336
|
-
e.value.userOptions.show && k.value ? (i(), L(Le, {
|
|
337
|
-
ref: "details",
|
|
338
|
-
key: `user_option_${T.value}`,
|
|
339
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
340
|
-
color: e.value.style.chart.color,
|
|
341
|
-
isPrinting: p(H),
|
|
342
|
-
isImaging: p(Y),
|
|
343
|
-
uid: P.value,
|
|
344
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
345
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
346
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
347
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
348
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
349
|
-
isFullscreen: D.value,
|
|
350
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
351
|
-
chartElement: w.value,
|
|
352
|
-
onToggleFullscreen: fe,
|
|
353
|
-
onGeneratePdf: p(J),
|
|
354
|
-
onGenerateCsv: Q,
|
|
355
|
-
onGenerateImage: p(K),
|
|
356
|
-
onToggleTable: Z
|
|
357
|
-
}, Ne({ _: 2 }, [
|
|
358
|
-
t.$slots.optionPdf ? {
|
|
359
|
-
name: "optionPdf",
|
|
360
|
-
fn: h(() => [
|
|
361
|
-
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
362
|
-
]),
|
|
363
|
-
key: "0"
|
|
364
|
-
} : void 0,
|
|
365
|
-
t.$slots.optionCsv ? {
|
|
366
|
-
name: "optionCsv",
|
|
367
|
-
fn: h(() => [
|
|
368
|
-
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
369
|
-
]),
|
|
370
|
-
key: "1"
|
|
371
|
-
} : void 0,
|
|
372
|
-
t.$slots.optionImg ? {
|
|
373
|
-
name: "optionImg",
|
|
374
|
-
fn: h(() => [
|
|
375
|
-
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
376
|
-
]),
|
|
377
|
-
key: "2"
|
|
378
|
-
} : void 0,
|
|
379
|
-
t.$slots.optionTable ? {
|
|
380
|
-
name: "optionTable",
|
|
381
|
-
fn: h(() => [
|
|
382
|
-
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
383
|
-
]),
|
|
384
|
-
key: "3"
|
|
385
|
-
} : void 0,
|
|
386
|
-
t.$slots.optionFullscreen ? {
|
|
387
|
-
name: "optionFullscreen",
|
|
388
|
-
fn: h(({ toggleFullscreen: a, isFullscreen: u }) => [
|
|
389
|
-
m(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
|
|
390
|
-
]),
|
|
391
|
-
key: "4"
|
|
392
|
-
} : void 0
|
|
393
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : F("", !0),
|
|
394
|
-
k.value ? (i(), v("svg", {
|
|
395
|
-
key: 2,
|
|
396
|
-
class: ae({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
397
|
-
xmlns: p(Ee),
|
|
398
|
-
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
399
|
-
style: N(`overflow:visible;background:${e.value.style.chart.backgroundColor};`)
|
|
400
|
-
}, [
|
|
401
|
-
C("g", {
|
|
402
|
-
transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
|
|
403
|
-
}, [
|
|
404
|
-
(i(!0), v(_e, null, Pe(z.value, (a, u) => (i(), v("g", null, [
|
|
405
|
-
(i(), v("text", {
|
|
406
|
-
fill: a.color,
|
|
407
|
-
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
408
|
-
key: u,
|
|
409
|
-
x: a.x,
|
|
410
|
-
y: a.y,
|
|
411
|
-
"font-size": a.fontSize,
|
|
412
|
-
transform: `translate(${a.width / 2}, ${a.height / 2})`,
|
|
413
|
-
style: N(`animation-delay:${u * e.value.animationDelayMs}ms !important`),
|
|
414
|
-
class: ae({ animated: e.value.useCssAnimation }),
|
|
415
|
-
"text-anchor": "middle",
|
|
416
|
-
"dominant-baseline": "middle"
|
|
417
|
-
}, oe(a.name), 15, it))
|
|
418
|
-
]))), 256))
|
|
419
|
-
], 8, ut),
|
|
420
|
-
m(t.$slots, "svg", {
|
|
421
|
-
svg: { height: n.value.height, width: n.value.width }
|
|
422
|
-
}, void 0, !0)
|
|
423
|
-
], 14, rt)) : F("", !0),
|
|
424
|
-
t.$slots.watermark ? (i(), v("div", ct, [
|
|
425
|
-
m(t.$slots, "watermark", X(j({ isPrinting: p(H) || p(Y) })), void 0, !0)
|
|
426
|
-
])) : F("", !0),
|
|
427
|
-
C("div", {
|
|
428
|
-
ref_key: "chartSlicer",
|
|
429
|
-
ref: x,
|
|
430
|
-
style: N(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
431
|
-
"data-html2canvas-ignore": ""
|
|
432
|
-
}, [
|
|
433
|
-
e.value.style.chart.zoom.show ? (i(), L(st, {
|
|
434
|
-
key: 0,
|
|
435
|
-
value: g.value,
|
|
436
|
-
"onUpdate:value": o[0] || (o[0] = (a) => g.value = a),
|
|
437
|
-
min: 100,
|
|
438
|
-
max: e.value.style.chart.width * 3,
|
|
439
|
-
textColor: e.value.style.chart.color,
|
|
440
|
-
inputColor: e.value.style.chart.zoom.color,
|
|
441
|
-
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
442
|
-
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
443
|
-
background: e.value.style.chart.zoom.color,
|
|
444
|
-
borderColor: e.value.style.chart.backgroundColor,
|
|
445
|
-
source: e.value.style.chart.width,
|
|
446
|
-
onReset: de
|
|
447
|
-
}, {
|
|
448
|
-
"reset-action": h(({ reset: a }) => [
|
|
449
|
-
m(t.$slots, "reset-action", X(j({ reset: a })), void 0, !0)
|
|
450
|
-
]),
|
|
451
|
-
_: 3
|
|
452
|
-
}, 8, ["value", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : F("", !0)
|
|
453
|
-
], 4),
|
|
454
|
-
k.value ? (i(), L(He, {
|
|
455
|
-
key: 4,
|
|
456
|
-
hideDetails: "",
|
|
457
|
-
config: {
|
|
458
|
-
open: O.value.showTable,
|
|
459
|
-
maxHeight: 1e4,
|
|
460
|
-
body: {
|
|
461
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
462
|
-
color: e.value.style.chart.color
|
|
463
|
-
},
|
|
464
|
-
head: {
|
|
465
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
466
|
-
color: e.value.style.chart.color
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}, {
|
|
470
|
-
content: h(() => [
|
|
471
|
-
q(Ye, {
|
|
472
|
-
colNames: W.value.colNames,
|
|
473
|
-
head: W.value.head,
|
|
474
|
-
body: W.value.body,
|
|
475
|
-
config: W.value.config,
|
|
476
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
477
|
-
onClose: o[1] || (o[1] = (a) => O.value.showTable = !1)
|
|
478
|
-
}, {
|
|
479
|
-
th: h(({ th: a }) => [
|
|
480
|
-
C("div", {
|
|
481
|
-
innerHTML: a,
|
|
482
|
-
style: { display: "flex", "align-items": "center" }
|
|
483
|
-
}, null, 8, dt)
|
|
484
|
-
]),
|
|
485
|
-
td: h(({ td: a }) => [
|
|
486
|
-
Te(oe(a.name || a), 1)
|
|
487
|
-
]),
|
|
488
|
-
_: 1
|
|
489
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
490
|
-
]),
|
|
491
|
-
_: 1
|
|
492
|
-
}, 8, ["config"])) : F("", !0)
|
|
493
|
-
], 12, nt));
|
|
494
|
-
}
|
|
495
|
-
}, xt = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-4e5216cf"]]);
|
|
496
|
-
export {
|
|
497
|
-
xt as default
|
|
498
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D_32ZGWd.cjs"),ne=require("./Title-D5cATWsL.cjs"),W=require("./usePrinter-BouFNHWR.cjs"),V=require("./useResponsive-B3TrDDIG.cjs"),re=require("./vue-ui-accordion-Cka6b_Up.cjs"),se=require("./DataTable-BNFSPjhv.cjs"),ue=require("./BaseIcon-DBHVtm3A.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),G=require("./useNestedProp-BvvH633N.cjs"),ie=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),ce={"data-html2canvas-ignore":""},de={key:0,class:"reset-wrapper"},ve={key:1,class:"reset-wrapper"},he={class:"mono-slicer"},me=ie(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),fe=["min","max","value"],ge={__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(i,{emit:S}){const r=i;e.useCssVars(m=>({"90ad3208":_.value,"4f9eef70":k.value,"6e07ae3e":C.value,"2fd430a0":i.selectColor,"6b8169a4":f.value}));const _=e.computed(()=>r.inputColor),f=e.computed(()=>r.background),C=e.computed(()=>`${r.selectColor}33`),k=e.computed(()=>r.borderColor);function w(){S("reset")}const g=e.computed(()=>{const m=r.max-r.min,t=0,p=(r.value-r.min)/m*100;return{left:`${t}%`,width:`${p-t}%`,background:r.selectColor}});return(m,t)=>(e.openBlock(),e.createElementBlock("div",ce,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",de,[i.useResetSlot?e.renderSlot(m.$slots,"reset-action",{key:1,reset:w},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:w},[e.createVNode(ue.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ve)),e.createElementVNode("div",he,[me,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(g.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:t[0]||(t[0]=p=>S("update:value",Number(p.target.value)))},null,40,fe)])]))}},pe=L._export_sfc(ge,[["__scopeId","data-v-3fd7d274"]]),ye=["id"],be=["xmlns","viewBox"],Ce=["transform"],ke=["fill","font-weight","x","y","font-size","transform"],we={key:3,class:"vue-data-ui-watermark"},xe=["innerHTML"],Se={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:S}){const r=i,{vue_ui_word_cloud:_}=u.useConfig(),f=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),C=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),k=e.ref(u.createUid()),w=e.ref(0),g=e.ref(null),m=e.ref(null),t=e.computed(()=>{const o=G.useNestedProp({userConfig:r.config,defaultConfig:_});return o.theme?{...G.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}),p=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),X=V.throttle(()=>{const{width:o,height:a}=V.useResponsive({chart:g.value,title:t.value.style.chart.title.text?m.value:null,slicer:t.value.style.chart.zoom.show&&p.value});s.value.width=o,s.value.height=a,e.nextTick(T)});e.watch(()=>v.value,()=>{j()});const j=V.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),T()},10);function H(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):C.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{f.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(X),N.value.observe(g.value.parentNode))}),e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:A,isImaging:O,generatePdf:M,generateImage:R}=W.usePrinter({elementId:`wordCloud_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),$=e.ref({showTable:t.value.table.show});function Y(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 J(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 K(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,y=0;return o.forEach(b=>{let E=!1;for(let z=0;z<Math.max(a,l)/2&&!E;z+=t.value.style.chart.words.packingWeight)for(let I=0;I<360&&!E;I+=t.value.style.chart.words.packingWeight){const U=I*Math.PI/180,ee=d+z*Math.cos(U)-b.width/2,te=y+z*Math.sin(U)-b.height/2,h={...b,x:ee,y:te},oe=h.x>=n.x&&h.y>=n.y&&h.x+h.width<=n.x+n.width&&h.y+h.height<=n.y+n.height,le=c.some(ae=>J(h,ae));oe&&!le&&(c.push(h),E=!0)}}),c}const x=e.ref([]);e.watch(()=>r.dataset,T,{immediate:!0});function T(){const o=C.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=C.value.map((n,d)=>{const y=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,b=Y(n.name,y);return{...n,id:u.createUid(),fontSize:y,width:b.width,height:b.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});x.value=K(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=x.value.map(l=>({name:l.name,color:l.color})),a=x.value.map(l=>l.value);return{head:o,body:a}});function q(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.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 P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const y=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},y]}),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}}),B=e.ref(!1);function Q(o){B.value=o,w.value+=1}function Z(){return x.value}function D(){$.value.showTable=!$.value.showTable}return S({getData:Z,generateCsv:q,generatePdf:M,generateImage:R,toggleTable:D}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${k.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:m,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(ne._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(W.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(O),uid:k.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:B.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:Q,onGeneratePdf:e.unref(M),onGenerateCsv:q,onGenerateImage:e.unref(R),onToggleTable:D},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:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),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":B.value,"vue-data-ui-fulscreen--off":!B.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};`)},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,c)=>(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:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,ke))]))),256))],8,Ce),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],14,be)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(pe,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,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:H},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],4),f.value?(e.openBlock(),e.createBlock(re.default,{key:4,hideDetails:"",config:{open:$.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(se.DataTable,{colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.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[1]||(a[1]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,xe)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,ye))}},Ne=L._export_sfc(Se,[["__scopeId","data-v-4e5216cf"]]);exports.default=Ne;
|