vue-data-ui 2.4.72 → 2.4.74
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-CN50TVU9.cjs → Arrow-Mxl3cE0a.cjs} +1 -1
- package/dist/{Arrow-CLfb17bE.js → Arrow-f8DrP940.js} +1 -1
- package/dist/{BaseIcon-B7a1z2Up.js → BaseIcon-CkORyrSo.js} +1 -1
- package/dist/{BaseIcon-DlQD7QSN.cjs → BaseIcon-gX2bfcgU.cjs} +1 -1
- package/dist/{DataTable-BruSoxOi.cjs → DataTable-BBUJJu-a.cjs} +1 -1
- package/dist/{DataTable-C9e1WMpM.js → DataTable-DLDlPv_3.js} +2 -2
- package/dist/{Legend-Bjael7Lf.js → Legend-DGRS4QbF.js} +2 -2
- package/dist/{Legend-D-SELuZe.cjs → Legend-gbTs_R5j.cjs} +1 -1
- package/dist/{PackageVersion-BeXS6McZ.js → PackageVersion-BN4d5Mju.js} +1 -1
- package/dist/{PackageVersion-DAkhxj-f.cjs → PackageVersion-CKTJ6FRx.cjs} +1 -1
- package/dist/{PenAndPaper-DNhQakvY.js → PenAndPaper-CXPVm0x2.js} +3 -3
- package/dist/{PenAndPaper-BowPL2Il.cjs → PenAndPaper-D0ovdUpL.cjs} +1 -1
- package/dist/{Shape-OgMTjCi1.js → Shape-BL37b4be.js} +1 -1
- package/dist/{Shape-h3DsSp_-.cjs → Shape-CJanTg1E.cjs} +1 -1
- package/dist/{Slicer-PaGIz5KP.js → Slicer-BV8oAJSi.js} +145 -139
- package/dist/Slicer-C_yCrY6L.cjs +1 -0
- package/dist/{Title-BsgAEzEH.js → Title-BxMjvERL.js} +1 -1
- package/dist/{Title-DnqzgFhZ.cjs → Title-pZYqvru0.cjs} +1 -1
- package/dist/{Tooltip-DVhz-MoB.cjs → Tooltip-BdS8OwyH.cjs} +1 -1
- package/dist/{Tooltip-CJ2dmh5N.js → Tooltip-VA-KbJNH.js} +1 -1
- package/dist/{index-8qh5-V_s.js → index-BU-qdyPq.js} +1 -1
- package/dist/{index-D_FF1L8g.cjs → index-DXdrUwnE.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DCcM4sb2.js → useNestedProp-CWSJ5eBm.js} +1 -1
- package/dist/{useNestedProp-BssRwiSn.cjs → useNestedProp-Dq1Hv5-T.cjs} +1 -1
- package/dist/{usePrinter-DWgia2OZ.cjs → usePrinter-BaRMqUmy.cjs} +1 -1
- package/dist/{usePrinter-BPx95i_o.js → usePrinter-CIccmyRB.js} +1 -1
- package/dist/{vue-data-ui-EK6QFOgP.cjs → vue-data-ui-6KXT0ciT.cjs} +1 -1
- package/dist/{vue-data-ui-2pEKgcSo.js → vue-data-ui-C8XrgRJI.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C5eY-yfY.js → vue-ui-3d-bar-DRN43xXL.js} +9 -9
- package/dist/{vue-ui-3d-bar-ELIobAIt.cjs → vue-ui-3d-bar-okEBsdwr.cjs} +1 -1
- package/dist/{vue-ui-accordion-_HWYGVCz.js → vue-ui-accordion-CrpdF6x_.js} +3 -3
- package/dist/{vue-ui-accordion-_aV8poyq.cjs → vue-ui-accordion-DTreR2ia.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DTC_7OXI.cjs → vue-ui-age-pyramid-Bw1lrQYU.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DU5DuW3M.js → vue-ui-age-pyramid-FBgwGDWm.js} +10 -10
- package/dist/{vue-ui-annotator-BOrXbxzC.cjs → vue-ui-annotator-CkZcyLxZ.cjs} +1 -1
- package/dist/{vue-ui-annotator-Biq5p11w.js → vue-ui-annotator-zYiopESW.js} +1 -1
- package/dist/{vue-ui-bullet-DXWHl13x.js → vue-ui-bullet-DLxUYT0j.js} +8 -8
- package/dist/{vue-ui-bullet-Bfm6YWaH.cjs → vue-ui-bullet-_MP7ORsc.cjs} +1 -1
- package/dist/{vue-ui-candlestick-dBM9-MG_.js → vue-ui-candlestick-CE8l0E99.js} +11 -11
- package/dist/{vue-ui-candlestick-D_DOar6U.cjs → vue-ui-candlestick-HoWXPs7Q.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CuyiwZns.cjs → vue-ui-carousel-table-Ci5W6-bg.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CbBhVPoR.js → vue-ui-carousel-table-DmOO2PA_.js} +4 -4
- package/dist/{vue-ui-chestnut-CIESkynq.cjs → vue-ui-chestnut-BlfviIgB.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DEd_N15d.js → vue-ui-chestnut-ByXqVTnh.js} +8 -8
- package/dist/{vue-ui-cursor-CrCQZPxP.js → vue-ui-cursor-NoqkcW0L.js} +2 -2
- package/dist/{vue-ui-cursor-DvCYGDKC.cjs → vue-ui-cursor-rIjH2zyf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B9B22sPx.js → vue-ui-dashboard-BoaY7cXL.js} +2 -2
- package/dist/{vue-ui-dashboard-DhABN3dM.cjs → vue-ui-dashboard-CgBPME45.cjs} +1 -1
- package/dist/{vue-ui-digits-4LIGxajX.js → vue-ui-digits-B71jvXr9.js} +2 -2
- package/dist/{vue-ui-digits-B0HLa5LO.cjs → vue-ui-digits-nYTnd2Ic.cjs} +1 -1
- package/dist/{vue-ui-donut-CofvsU-e.js → vue-ui-donut-ChHP1PpF.js} +12 -12
- package/dist/{vue-ui-donut-DOG6sGjX.cjs → vue-ui-donut-WBtSyY9a.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DC-HGEmA.js → vue-ui-donut-evolution-DokwtS8l.js} +11 -11
- package/dist/{vue-ui-donut-evolution-WkMSWUWE.cjs → vue-ui-donut-evolution-VMmH1IA9.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BzbyueJb.cjs → vue-ui-dumbbell-Coj5MhHG.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DGXjoYmQ.js → vue-ui-dumbbell-DlCsDwQc.js} +10 -10
- package/dist/{vue-ui-flow-Db3zM3mK.cjs → vue-ui-flow-D8N1A4yB.cjs} +1 -1
- package/dist/{vue-ui-flow-3ZH7Qi92.js → vue-ui-flow-QuV3KlvH.js} +9 -9
- package/dist/{vue-ui-funnel-LbVf9BeW.js → vue-ui-funnel-Dd8Ugq8D.js} +9 -9
- package/dist/{vue-ui-funnel-CuMpEmn0.cjs → vue-ui-funnel-DxiTZ2to.cjs} +1 -1
- package/dist/{vue-ui-galaxy-C8WmSWb9.cjs → vue-ui-galaxy-CBODDw5-.cjs} +1 -1
- package/dist/{vue-ui-galaxy-1Yz6cQAG.js → vue-ui-galaxy-CC2zkvaK.js} +11 -11
- package/dist/{vue-ui-gauge-BUX-Y0ns.js → vue-ui-gauge-5AmstOj6.js} +7 -7
- package/dist/{vue-ui-gauge-DqihPV_P.cjs → vue-ui-gauge-CZCvxqnk.cjs} +1 -1
- package/dist/{vue-ui-gizmo-dsVyX-Gy.cjs → vue-ui-gizmo-C9hXRs45.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DkltihUP.js → vue-ui-gizmo-ki8VB6Il.js} +3 -3
- package/dist/{vue-ui-heatmap-dmD4XOHI.js → vue-ui-heatmap-BobomFtt.js} +10 -10
- package/dist/{vue-ui-heatmap-BnjjNJZZ.cjs → vue-ui-heatmap-Xrd0iBR9.cjs} +1 -1
- package/dist/{vue-ui-history-plot-mhIwlnwK.js → vue-ui-history-plot-BMmox8vC.js} +11 -11
- package/dist/{vue-ui-history-plot-w3RP7fwd.cjs → vue-ui-history-plot-CvpOjW5M.cjs} +1 -1
- package/dist/{vue-ui-kpi-D7mGEnB3.js → vue-ui-kpi-C3D-wJxM.js} +3 -3
- package/dist/{vue-ui-kpi-BcbbV0hc.cjs → vue-ui-kpi-D9BefH7y.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CGv90P9i.js → vue-ui-mini-loader-DJMxt_Yu.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bohv3cSj.cjs → vue-ui-mini-loader-DquA0CGg.cjs} +1 -1
- package/dist/{vue-ui-molecule-BG9cfkrz.js → vue-ui-molecule-Bbnf1oQV.js} +11 -11
- package/dist/{vue-ui-molecule-D5k0HYa2.cjs → vue-ui-molecule-DxSJsN7o.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DSpUyreg.js → vue-ui-mood-radar-L5L5doFl.js} +11 -11
- package/dist/{vue-ui-mood-radar-Ba_14roQ.cjs → vue-ui-mood-radar-j2q_SJKg.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BdqiGh-R.cjs → vue-ui-nested-donuts-C_jjyYj4.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-rO3UMZAL.js → vue-ui-nested-donuts-vADHGx-l.js} +11 -11
- package/dist/{vue-ui-onion-B6_nJefU.cjs → vue-ui-onion-C5QYPmHs.cjs} +1 -1
- package/dist/{vue-ui-onion-C5X37vPh.js → vue-ui-onion-CSGIE3Qt.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BHrMtcte.cjs → vue-ui-parallel-coordinate-plot-Br51qLaK.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CDui2aQ-.js → vue-ui-parallel-coordinate-plot-CmZjVGQC.js} +12 -12
- package/dist/{vue-ui-quadrant-DkICM7L1.cjs → vue-ui-quadrant-BbeKu161.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C0dptvDp.js → vue-ui-quadrant-BlHrFXK8.js} +12 -12
- package/dist/{vue-ui-quick-chart-epzO65Qe.cjs → vue-ui-quick-chart-BS952vkw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-B3NgquT-.js → vue-ui-quick-chart-DBVrQP8_.js} +9 -9
- package/dist/{vue-ui-radar-BlDP2ltg.cjs → vue-ui-radar-CiBjheSp.cjs} +1 -1
- package/dist/{vue-ui-radar-BDu1Lb92.js → vue-ui-radar-CidLKYZF.js} +12 -12
- package/dist/{vue-ui-rating-DPA1N19S.cjs → vue-ui-rating-2o13jgI8.cjs} +1 -1
- package/dist/{vue-ui-rating-YUe4-z9g.js → vue-ui-rating-DgKSGsMB.js} +2 -2
- package/dist/{vue-ui-relation-circle-B4oOiacR.js → vue-ui-relation-circle-CzF-iYhR.js} +7 -7
- package/dist/{vue-ui-relation-circle-B9DclSPa.cjs → vue-ui-relation-circle-PlvwrPkI.cjs} +1 -1
- package/dist/{vue-ui-rings-pv1lN0yF.cjs → vue-ui-rings-CJz4x9z1.cjs} +1 -1
- package/dist/{vue-ui-rings-yQ1wud9d.js → vue-ui-rings-wKriCocs.js} +12 -12
- package/dist/{vue-ui-scatter-BIb8D47q.js → vue-ui-scatter-o43JXJk8.js} +12 -12
- package/dist/{vue-ui-scatter-Z12Hc8PS.cjs → vue-ui-scatter-u7bWFG0l.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BzvtPXu-.js → vue-ui-screenshot-Di3ghAes.js} +1 -1
- package/dist/{vue-ui-screenshot-Bh5Uij8S.cjs → vue-ui-screenshot-DmfAnkcd.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DTQiIe0D.cjs → vue-ui-skeleton-CGcQKCRb.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHNO77KR.js → vue-ui-skeleton-CpFbwUa0.js} +3 -3
- package/dist/{vue-ui-smiley-Bngy0Su8.cjs → vue-ui-smiley-BHGZIIT5.cjs} +1 -1
- package/dist/{vue-ui-smiley-C1_yv17I.js → vue-ui-smiley-C22iFSfg.js} +2 -2
- package/dist/{vue-ui-spark-trend-B04pgYYY.js → vue-ui-spark-trend-4RyTO6KO.js} +5 -5
- package/dist/{vue-ui-spark-trend-DvhbKNiP.cjs → vue-ui-spark-trend-DN724wXO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BfQWl0Ph.js → vue-ui-sparkbar-BMlgQWPa.js} +4 -4
- package/dist/{vue-ui-sparkbar-DYEXaLEX.cjs → vue-ui-sparkbar-CAeIw03m.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CgdyWZ9L.cjs → vue-ui-sparkgauge-4vhb5HHM.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BaRac2ps.js → vue-ui-sparkgauge-gqoNDivm.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DrNOCXoY.js → vue-ui-sparkhistogram-DwK5zbX7.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CQvvoMha.cjs → vue-ui-sparkhistogram-RlG3RXcP.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Drp8vh5E.cjs → vue-ui-sparkline-BLr009Hj.cjs} +1 -1
- package/dist/{vue-ui-sparkline-KLlw2yZC.js → vue-ui-sparkline-DFsuQ0EZ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-8_tyDIjs.cjs → vue-ui-sparkstackbar-C19VkwTY.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BFLhP1m7.js → vue-ui-sparkstackbar-DyCg09cM.js} +5 -5
- package/dist/{vue-ui-stackbar-CaAjHzYZ.cjs → vue-ui-stackbar-DLCS_VQY.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DFqiZTj4.js → vue-ui-stackbar-nRMzIu4T.js} +13 -13
- package/dist/{vue-ui-strip-plot-CUxgNiM9.cjs → vue-ui-strip-plot-BmQaPAOF.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-t3MggtPk.js → vue-ui-strip-plot-DAmWiEPY.js} +11 -11
- package/dist/{vue-ui-table-BzDzzH1k.js → vue-ui-table-72syvQe_.js} +1 -1
- package/dist/{vue-ui-table-BYORjrPD.cjs → vue-ui-table-B3LNl3t-.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-H118AqSZ.js → vue-ui-table-heatmap-B4WDy_Pn.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DtGUwkL-.cjs → vue-ui-table-heatmap-l_nKDJyv.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CaA75I-R.cjs → vue-ui-table-sparkline-D7_vOyHb.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BX60snbo.js → vue-ui-table-sparkline-ah9fkFGz.js} +5 -5
- package/dist/{vue-ui-thermometer-BcaIl0GS.js → vue-ui-thermometer-C9ibNBJH.js} +7 -7
- package/dist/{vue-ui-thermometer-Dwh676v_.cjs → vue-ui-thermometer-Yw0k4M4C.cjs} +1 -1
- package/dist/{vue-ui-timer-DA5w0YEY.js → vue-ui-timer-C2HzHfH3.js} +5 -5
- package/dist/{vue-ui-timer-CT9K3Nai.cjs → vue-ui-timer-wJ2ninrP.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BbIRKCea.cjs → vue-ui-tiremarks-BzUzmDhY.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DD72vSFB.js → vue-ui-tiremarks-QU7Chn0l.js} +7 -7
- package/dist/{vue-ui-treemap-B0fuS8JS.cjs → vue-ui-treemap-B4WQ8w_w.cjs} +1 -1
- package/dist/{vue-ui-treemap-JNb7kuj7.js → vue-ui-treemap-BnIhuhmM.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D-BO81vC.cjs → vue-ui-vertical-bar-Da6Z_DL0.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CubDThHO.js → vue-ui-vertical-bar-M-nqa4Xm.js} +12 -12
- package/dist/{vue-ui-waffle-CMaPYbJy.cjs → vue-ui-waffle-C5Zoz6na.cjs} +1 -1
- package/dist/{vue-ui-waffle-BmjT5hQH.js → vue-ui-waffle-DfQJjqlk.js} +12 -12
- package/dist/{vue-ui-wheel-6-koPEGF.cjs → vue-ui-wheel-CaelJ82w.cjs} +1 -1
- package/dist/{vue-ui-wheel-DKAx7TxT.js → vue-ui-wheel-V0mjyb9G.js} +7 -7
- package/dist/{vue-ui-word-cloud-xH2sGgSd.cjs → vue-ui-word-cloud-BtdYYTox.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CSHPDLUC.js → vue-ui-word-cloud-C7zTaiqX.js} +10 -10
- package/dist/{vue-ui-xy-DSCtfSeX.cjs → vue-ui-xy-CgmEtC0p.cjs} +2 -2
- package/dist/{vue-ui-xy-DakKzEAh.js → vue-ui-xy-DQV_6n-g.js} +25 -25
- package/dist/{vue-ui-xy-canvas-vKNc5ac2.js → vue-ui-xy-canvas-BWFJ6yrJ.js} +11 -11
- package/dist/{vue-ui-xy-canvas-DWIZCBES.cjs → vue-ui-xy-canvas-C_Qbfc1s.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-BfoWfns5.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as p, ref as r, watch as H, onMounted as re, onBeforeUnmount as ue, openBlock as n, createElementBlock as c, normalizeStyle as A, unref as o, createBlock as w, createCommentVNode as v, createSlots as ie, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as Y, createVNode as ce, Fragment as ve, renderList as he, toDisplayString as de } from "vue";
|
|
2
|
-
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-
|
|
3
|
-
import { _ as Ce } from "./Title-
|
|
4
|
-
import { u as _e, U as $e } from "./usePrinter-
|
|
2
|
+
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-BU-qdyPq.js";
|
|
3
|
+
import { _ as Ce } from "./Title-BxMjvERL.js";
|
|
4
|
+
import { u as _e, U as $e } from "./usePrinter-CIccmyRB.js";
|
|
5
5
|
import { t as Oe, u as xe } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import Ae from "./vue-ui-skeleton-
|
|
7
|
-
import { u as V } from "./useNestedProp-
|
|
8
|
-
import { _ as Ie } from "./PackageVersion-
|
|
9
|
-
import { P as Pe } from "./PenAndPaper-
|
|
6
|
+
import Ae from "./vue-ui-skeleton-CpFbwUa0.js";
|
|
7
|
+
import { u as V } from "./useNestedProp-CWSJ5eBm.js";
|
|
8
|
+
import { _ as Ie } from "./PackageVersion-BN4d5Mju.js";
|
|
9
|
+
import { P as Pe } from "./PenAndPaper-CXPVm0x2.js";
|
|
10
10
|
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ue = ["cx", "cy", "r", "stroke", "stroke-width"], Le = ["x", "y", "font-size", "fill", "font-weight"], Xe = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D_FF1L8g.cjs"),xe=require("./Title-DnqzgFhZ.cjs"),se=require("./usePrinter-DWgia2OZ.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-_aV8poyq.cjs"),Te=require("./DataTable-BruSoxOi.cjs"),Ne=require("./BaseIcon-DlQD7QSN.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-BssRwiSn.cjs"),Pe=require("./PackageVersion-DAkhxj-f.cjs"),Be=require("./Tooltip-DVhz-MoB.cjs"),Fe=require("./PenAndPaper-BowPL2Il.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ve(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function he(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function le(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:h.value,content:U.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:M},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${j.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DXdrUwnE.cjs"),xe=require("./Title-pZYqvru0.cjs"),se=require("./usePrinter-BaRMqUmy.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-DTreR2ia.cjs"),Te=require("./DataTable-BBUJJu-a.cjs"),Ne=require("./BaseIcon-gX2bfcgU.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-Dq1Hv5-T.cjs"),Pe=require("./PackageVersion-CKTJ6FRx.cjs"),Be=require("./Tooltip-BdS8OwyH.cjs"),Fe=require("./PenAndPaper-D0ovdUpL.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ve={"data-html2canvas-ignore":""},Ae={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const s=c;e.useCssVars(g=>({"782b8172":E.value,"102109e6":x.value,"642212d7":f.value,"1f5369d4":c.selectColor,"22b98ab8":y.value}));const E=e.computed(()=>s.inputColor),y=e.computed(()=>s.background),f=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=s.max-s.min,p=0,b=(s.value-s.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:s.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ve,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ae,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Ie,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),y=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),f=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ue.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),k=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});r.value.width=o,r.value.height=a,e.nextTick(R)});e.watch(()=>k.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){k.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ve(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function he(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(S=>{let D=!1;for(let A=0;A<Math.max(a,l)/2&&!D;A+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+A*Math.cos(re)-S.width/2,ke=w+A*Math.sin(re)-S.height/2,m={...S,x:be,y:ke},Ce=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(Se=>he(m,Se));Ce&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=k.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=k.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize,S=ve(n.name,w);return{...n,id:u.createUid(),fontSize:w,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,r.value.width,r.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function le(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const V=e.ref(!1);function q(){V.value=!V.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const C=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;C.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:x.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":C.value&&C.value===l.id&&d.value.showTooltip,"word-not-selected":C.value&&C.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{C.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:h.value,content:U.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:k.value,"onUpdate:value":a[1]||(a[1]=l=>k.value=l),min:oe.value,max:me.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:M},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${j.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Ye=ie._export_sfc(Xe,[["__scopeId","data-v-cd6ced56"]]);exports.default=Ye;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as De, computed as g, openBlock as u, createElementBlock as h, createVNode as le, renderSlot as d, createElementVNode as x, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as ae, onMounted as Le, onBeforeUnmount as Xe, unref as v, createBlock as O, createCommentVNode as y, createSlots as je, withCtx as m, normalizeProps as A, guardReactiveProps as _, normalizeClass as Ce, Fragment as He, renderList as Ye, toDisplayString as ke, createTextVNode as qe, nextTick as we } from "vue";
|
|
2
|
-
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-
|
|
3
|
-
import { _ as ut } from "./Title-
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
2
|
+
import { u as Je, a3 as Ke, v as Qe, c as $e, t as Ze, a as et, p as X, o as tt, e as xe, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-BU-qdyPq.js";
|
|
3
|
+
import { _ as ut } from "./Title-BxMjvERL.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-CIccmyRB.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import mt from "./vue-ui-accordion-
|
|
7
|
-
import { D as pt } from "./DataTable-
|
|
8
|
-
import ft from "./BaseIcon-
|
|
6
|
+
import mt from "./vue-ui-accordion-CrpdF6x_.js";
|
|
7
|
+
import { D as pt } from "./DataTable-DLDlPv_3.js";
|
|
8
|
+
import ft from "./BaseIcon-CkORyrSo.js";
|
|
9
9
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Se } from "./useNestedProp-
|
|
11
|
-
import { _ as gt } from "./PackageVersion-
|
|
12
|
-
import { _ as yt } from "./Tooltip-
|
|
13
|
-
import { P as bt } from "./PenAndPaper-
|
|
10
|
+
import { u as Se } from "./useNestedProp-CWSJ5eBm.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-BN4d5Mju.js";
|
|
12
|
+
import { _ as yt } from "./Tooltip-VA-KbJNH.js";
|
|
13
|
+
import { P as bt } from "./PenAndPaper-CXPVm0x2.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
16
16
|
key: 0,
|