vue-data-ui 2.6.7 → 2.6.9
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-PPbxds1Q.cjs → Arrow-B5Fowd9E.cjs} +1 -1
- package/dist/{Arrow-BxUmDF04.js → Arrow-XUfEagNR.js} +1 -1
- package/dist/{BaseIcon-CDx9pxUG.js → BaseIcon-BTx6biat.js} +1 -1
- package/dist/{BaseIcon-BmVwfJg2.cjs → BaseIcon-CryLVoaH.cjs} +1 -1
- package/dist/{DataTable-TjJIVFlL.js → DataTable-n3ZWSPsz.js} +2 -2
- package/dist/{DataTable-Cv_TVAas.cjs → DataTable-oajjRhip.cjs} +1 -1
- package/dist/{Legend-NKGwxkI7.js → Legend-BbA3GOXo.js} +2 -2
- package/dist/{Legend-DunrYGuw.cjs → Legend-D2hs4A1E.cjs} +1 -1
- package/dist/{PackageVersion-QRvxRYPv.js → PackageVersion-CCXzMWuf.js} +1 -1
- package/dist/{PackageVersion-DJKkRuOD.cjs → PackageVersion-D0mzevDk.cjs} +1 -1
- package/dist/{PenAndPaper-CxC1lWGK.js → PenAndPaper-C3qGJ1mF.js} +3 -3
- package/dist/{PenAndPaper-MTTJ3Gd9.cjs → PenAndPaper-DFw6nHeD.cjs} +1 -1
- package/dist/{Shape-D_1vUjCL.cjs → Shape-CDXj5YIj.cjs} +1 -1
- package/dist/{Shape-58uyOuYc.js → Shape-DM1YyBgP.js} +1 -1
- package/dist/{Slicer-BGEieXKn.cjs → Slicer-D9B6W8zX.cjs} +1 -1
- package/dist/{Slicer-C7ormJRw.js → Slicer-DNyqaTO7.js} +2 -2
- package/dist/{Title-Dk92HYMu.cjs → Title-BIvGm_O3.cjs} +1 -1
- package/dist/{Title-BI8etrRU.js → Title-Ci05WFhs.js} +1 -1
- package/dist/{Tooltip-Cxc8c50d.js → Tooltip-BGoyGTcf.js} +1 -1
- package/dist/{Tooltip-ClMeqejQ.cjs → Tooltip-BIC3xxj7.cjs} +1 -1
- package/dist/index-BsQlLw24.cjs +9 -0
- package/dist/{index-9EeNZMz1.js → index-CWfVXv5m.js} +6 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-df_bKQEI.js → useNestedProp-D4gVG7s3.js} +1 -1
- package/dist/{useNestedProp-BNT60LxO.cjs → useNestedProp-suOXyj95.cjs} +1 -1
- package/dist/{usePrinter-dyVny55M.cjs → usePrinter-CHFROcW6.cjs} +1 -1
- package/dist/{usePrinter-ngrh00Ym.js → usePrinter-CNafRB9Y.js} +1 -1
- package/dist/{vue-data-ui-BYX-I7HQ.cjs → vue-data-ui-CvL0jRIZ.cjs} +1 -1
- package/dist/{vue-data-ui-CDD7JcMs.js → vue-data-ui-DaM6wctb.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BArLjlrc.js → vue-ui-3d-bar-BTpAkS0e.js} +9 -9
- package/dist/{vue-ui-3d-bar-DegdXf_S.cjs → vue-ui-3d-bar-BWjrWLRJ.cjs} +1 -1
- package/dist/{vue-ui-accordion-Qo8JxnIN.js → vue-ui-accordion-BrKcc0Za.js} +3 -3
- package/dist/{vue-ui-accordion-D2qxHGzp.cjs → vue-ui-accordion-Czbtgpgm.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Biz02m7c.js → vue-ui-age-pyramid-Bwb9Z7u9.js} +10 -10
- package/dist/{vue-ui-age-pyramid-kpaaJ2Gx.cjs → vue-ui-age-pyramid-uHIhvC5s.cjs} +1 -1
- package/dist/{vue-ui-annotator-MXs48Lua.js → vue-ui-annotator-CU1A7erK.js} +1 -1
- package/dist/{vue-ui-annotator-By6XNYm0.cjs → vue-ui-annotator-TUIKW1gF.cjs} +1 -1
- package/dist/{vue-ui-bullet-CtBs_r3I.js → vue-ui-bullet-Bilc6pkE.js} +8 -8
- package/dist/{vue-ui-bullet-Dkz6vX0T.cjs → vue-ui-bullet-BqkAm1y1.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DiEUIuW8.cjs → vue-ui-candlestick-CdemiHyJ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-gPztmuJE.js → vue-ui-candlestick-Cq6b9oYh.js} +11 -11
- package/dist/{vue-ui-carousel-table-CYeXP21y.cjs → vue-ui-carousel-table-D8ZhtJ_Z.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D9ckYNKZ.js → vue-ui-carousel-table-DmmE6hW5.js} +4 -4
- package/dist/{vue-ui-chestnut-DWjn-jcN.js → vue-ui-chestnut-BGSO4VfS.js} +8 -8
- package/dist/{vue-ui-chestnut-oZtRERnV.cjs → vue-ui-chestnut-b2iytY5v.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-Bz5yVvAM.js → vue-ui-circle-pack-DB2NGsJa.js} +9 -9
- package/dist/{vue-ui-circle-pack-DCJ6N00S.cjs → vue-ui-circle-pack-DaTWjDdt.cjs} +1 -1
- package/dist/{vue-ui-cursor-DZhRygRy.cjs → vue-ui-cursor-BNSm9CqX.cjs} +1 -1
- package/dist/{vue-ui-cursor-BrrVDy1u.js → vue-ui-cursor-BzrUnhnu.js} +2 -2
- package/dist/{vue-ui-dashboard-o8Ju_cXW.cjs → vue-ui-dashboard-Dve8PPSg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DEmGN8Js.js → vue-ui-dashboard-hOXxqRLq.js} +2 -2
- package/dist/{vue-ui-digits-DbOrROu7.js → vue-ui-digits-0QVNbBza.js} +2 -2
- package/dist/{vue-ui-digits-CgyYdrQ5.cjs → vue-ui-digits-DpCVyWQc.cjs} +1 -1
- package/dist/{vue-ui-donut-9pWaRwf3.cjs → vue-ui-donut-CPe4B8iX.cjs} +1 -1
- package/dist/{vue-ui-donut-CP5uWglM.js → vue-ui-donut-CX5GnqeG.js} +12 -12
- package/dist/{vue-ui-donut-evolution-BAMD1wQ5.js → vue-ui-donut-evolution-CNAZo--D.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Ci_gIrkO.cjs → vue-ui-donut-evolution-DCMlp5jl.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CFYd-Ypn.js → vue-ui-dumbbell-C4-bhU5A.js} +10 -10
- package/dist/{vue-ui-dumbbell-DUNYoZxT.cjs → vue-ui-dumbbell-D6ZkzaHh.cjs} +1 -1
- package/dist/{vue-ui-flow-W89ofPB-.cjs → vue-ui-flow-BLL4cPs3.cjs} +1 -1
- package/dist/{vue-ui-flow-CdvGWFzv.js → vue-ui-flow-CLoj51_4.js} +9 -9
- package/dist/{vue-ui-funnel-DYutKyoz.js → vue-ui-funnel-BpzIb0i9.js} +9 -9
- package/dist/{vue-ui-funnel-RvdVrhFu.cjs → vue-ui-funnel-C581xeWE.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BCBRlYS1.js → vue-ui-galaxy-CvJK-Q92.js} +11 -11
- package/dist/{vue-ui-galaxy-Djdx-ca8.cjs → vue-ui-galaxy-ohlYKV59.cjs} +1 -1
- package/dist/{vue-ui-gauge-BNAAZt4F.js → vue-ui-gauge-DU0fi2Cj.js} +7 -7
- package/dist/{vue-ui-gauge-BVVmf09x.cjs → vue-ui-gauge-qwo663L4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BFQ_KgLX.js → vue-ui-gizmo-73Ku2o7o.js} +3 -3
- package/dist/{vue-ui-gizmo-Ceh0oFY3.cjs → vue-ui-gizmo-D7IronxF.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CiZpI-tA.cjs → vue-ui-heatmap-BAxE7u_1.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Ct3qaBv7.js → vue-ui-heatmap-By7uLj_w.js} +10 -10
- package/dist/{vue-ui-history-plot-Ci8Y2EFg.cjs → vue-ui-history-plot-legCqM6r.cjs} +1 -1
- package/dist/{vue-ui-history-plot-shn74MJ6.js → vue-ui-history-plot-mGD3eIag.js} +11 -11
- package/dist/{vue-ui-kpi-DfYrbxlX.cjs → vue-ui-kpi-8ivLxQqg.cjs} +1 -1
- package/dist/{vue-ui-kpi-B_pV-2JJ.js → vue-ui-kpi-DXR7_WCN.js} +3 -3
- package/dist/{vue-ui-mini-loader-BFnWQs5p.js → vue-ui-mini-loader-Bgd84CSA.js} +2 -2
- package/dist/{vue-ui-mini-loader-LIqf62jk.cjs → vue-ui-mini-loader-Cl8x7878.cjs} +1 -1
- package/dist/{vue-ui-molecule-D8YuYTKv.cjs → vue-ui-molecule-DQbcdob7.cjs} +1 -1
- package/dist/{vue-ui-molecule-DNz1m8XZ.js → vue-ui-molecule-GtCZU7R0.js} +11 -11
- package/dist/{vue-ui-mood-radar-DiYB_zhM.js → vue-ui-mood-radar-CXJ3vpaL.js} +11 -11
- package/dist/{vue-ui-mood-radar-uvH7qUHy.cjs → vue-ui-mood-radar-ELwAL5Go.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-9hn-g4ir.js → vue-ui-nested-donuts-DlgaImgY.js} +11 -11
- package/dist/{vue-ui-nested-donuts-C7ikDjp7.cjs → vue-ui-nested-donuts-h2dDy-_I.cjs} +1 -1
- package/dist/{vue-ui-onion-5Rqvd4Fw.cjs → vue-ui-onion-Bnm8bVis.cjs} +1 -1
- package/dist/{vue-ui-onion-DCWfNTNu.js → vue-ui-onion-CXpw7sq7.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs → vue-ui-parallel-coordinate-plot-Rs4YBn4y.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CaPFL9_1.js → vue-ui-parallel-coordinate-plot-RyzLSDN7.js} +12 -12
- package/dist/{vue-ui-quadrant-BoQZ375K.js → vue-ui-quadrant-C252RXMP.js} +12 -12
- package/dist/{vue-ui-quadrant-B0Sw5NGo.cjs → vue-ui-quadrant-D_LFPIT_.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-vfMN8F1q.js → vue-ui-quick-chart-BWMSOP5P.js} +9 -9
- package/dist/{vue-ui-quick-chart-D3zV1d7t.cjs → vue-ui-quick-chart-MqE6aph-.cjs} +1 -1
- package/dist/{vue-ui-radar-CAuu6wkh.js → vue-ui-radar-BjoztmAZ.js} +12 -12
- package/dist/{vue-ui-radar-CNMJCAwo.cjs → vue-ui-radar-C5kQ_p57.cjs} +1 -1
- package/dist/{vue-ui-rating-dsRDRL98.cjs → vue-ui-rating-C6hiBRH5.cjs} +1 -1
- package/dist/{vue-ui-rating-Bm0HZ3du.js → vue-ui-rating-CM8xa7cF.js} +2 -2
- package/dist/{vue-ui-relation-circle-5OZMN9jR.js → vue-ui-relation-circle-Binpp35O.js} +7 -7
- package/dist/{vue-ui-relation-circle-iD7BufNH.cjs → vue-ui-relation-circle-DzNG9vJO.cjs} +1 -1
- package/dist/{vue-ui-rings-DC4WG4sK.cjs → vue-ui-rings-B0z985U2.cjs} +1 -1
- package/dist/{vue-ui-rings-COefBaQT.js → vue-ui-rings-DG6eodWo.js} +12 -12
- package/dist/{vue-ui-scatter-5ny76dmi.cjs → vue-ui-scatter-1ztWzF3T.cjs} +1 -1
- package/dist/{vue-ui-scatter-DhO83TZZ.js → vue-ui-scatter-CeqhhHXd.js} +12 -12
- package/dist/{vue-ui-screenshot-DABH_phE.cjs → vue-ui-screenshot-BT3NvcXw.cjs} +1 -1
- package/dist/{vue-ui-screenshot-brillPo5.js → vue-ui-screenshot-CVEohGlX.js} +1 -1
- package/dist/{vue-ui-skeleton-BmJiYGtE.js → vue-ui-skeleton-CBgqwx0w.js} +3 -3
- package/dist/{vue-ui-skeleton-_DN0U6W6.cjs → vue-ui-skeleton-Djh065IE.cjs} +1 -1
- package/dist/{vue-ui-smiley-CW6714mb.cjs → vue-ui-smiley-BKUkSQik.cjs} +1 -1
- package/dist/{vue-ui-smiley-D9NRimij.js → vue-ui-smiley-CKxZ7alq.js} +2 -2
- package/dist/{vue-ui-spark-trend-BKZj03CQ.js → vue-ui-spark-trend-CJcsOAiE.js} +5 -5
- package/dist/{vue-ui-spark-trend-expbkxgR.cjs → vue-ui-spark-trend-DhECbF2S.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CYRORE5i.js → vue-ui-sparkbar-DG7RvjQD.js} +4 -4
- package/dist/{vue-ui-sparkbar-Cr9FtevP.cjs → vue-ui-sparkbar-rMlTAx4t.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-JV4tYB7P.js → vue-ui-sparkgauge-CRKfdFvs.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BHXFhvTv.cjs → vue-ui-sparkgauge-_hMXjqiJ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-T4a3DDck.cjs → vue-ui-sparkhistogram-B9Ts-6Ct.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DKINHX2q.js → vue-ui-sparkhistogram-DodJEKpg.js} +5 -5
- package/dist/{vue-ui-sparkline-CbRTHtig.js → vue-ui-sparkline-BgiovjuQ.js} +4 -4
- package/dist/{vue-ui-sparkline-Dc6Sf3n8.cjs → vue-ui-sparkline-BlWMJ4tb.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CV5SkdsP.cjs → vue-ui-sparkstackbar-YAvOUvuW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-6u9-2nG4.js → vue-ui-sparkstackbar-ruSw1kKR.js} +5 -5
- package/dist/{vue-ui-stackbar-CXB-nd71.cjs → vue-ui-stackbar-B4JNdSgw.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CUppObfj.js → vue-ui-stackbar-Db2tbDLX.js} +13 -13
- package/dist/{vue-ui-strip-plot-6IXF_U6-.cjs → vue-ui-strip-plot-B4aD-087.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-doaNZAW4.js → vue-ui-strip-plot-SITK-H8f.js} +11 -11
- package/dist/{vue-ui-table-S66UCskD.cjs → vue-ui-table-BOBdSkYh.cjs} +1 -1
- package/dist/{vue-ui-table-CZsNuDR5.js → vue-ui-table-Cjc9orAT.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CjohHqDV.js → vue-ui-table-heatmap-CN1lQivS.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BU9UU15H.cjs → vue-ui-table-heatmap-QocifZtN.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CHFFTD0a.cjs → vue-ui-table-sparkline-Cx-7SMze.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ab2rwdKB.js → vue-ui-table-sparkline-DM0QQC2N.js} +5 -5
- package/dist/{vue-ui-thermometer-C72mHwUi.js → vue-ui-thermometer-BNrH4oj3.js} +7 -7
- package/dist/{vue-ui-thermometer-Ccd6RGh8.cjs → vue-ui-thermometer-CQqF1J5n.cjs} +1 -1
- package/dist/{vue-ui-timer-C8Fn2B0b.cjs → vue-ui-timer-BIdWMds6.cjs} +1 -1
- package/dist/{vue-ui-timer-D-LNi6lz.js → vue-ui-timer-DBKZl1Hs.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bo8EWsJ8.js → vue-ui-tiremarks-COrnANET.js} +7 -7
- package/dist/{vue-ui-tiremarks-SOzvMOz4.cjs → vue-ui-tiremarks-DcMytXxZ.cjs} +1 -1
- package/dist/{vue-ui-treemap-BqTTQrVh.cjs → vue-ui-treemap-D8Wp1-OG.cjs} +1 -1
- package/dist/{vue-ui-treemap-uj94elVB.js → vue-ui-treemap-WBkNDEd7.js} +11 -11
- package/dist/{vue-ui-vertical-bar-C4Sxun4Q.cjs → vue-ui-vertical-bar-BNswKYcA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BUTOw-DK.js → vue-ui-vertical-bar-slw4elUv.js} +12 -12
- package/dist/{vue-ui-waffle-DYWGRKdT.cjs → vue-ui-waffle-DXCVXO7E.cjs} +1 -1
- package/dist/{vue-ui-waffle-CTWA1frT.js → vue-ui-waffle-Frue_Rl8.js} +12 -12
- package/dist/{vue-ui-wheel-8K72ZKda.js → vue-ui-wheel-BS1W-Niw.js} +7 -7
- package/dist/{vue-ui-wheel-Cz5-0klT.cjs → vue-ui-wheel-D9s58OnR.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CSwBPDB8.js → vue-ui-word-cloud-BNVu5zfu.js} +10 -10
- package/dist/{vue-ui-word-cloud-D39riLZb.cjs → vue-ui-word-cloud-BifhSeRA.cjs} +1 -1
- package/dist/{vue-ui-xy-DpDKutd7.js → vue-ui-xy-B3LGX-Nf.js} +212 -190
- package/dist/vue-ui-xy-BuLo-J8c.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BCj0SCqe.cjs → vue-ui-xy-canvas-GPbmSgtz.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BQm9gah4.js → vue-ui-xy-canvas-QKwLnkCW.js} +13 -13
- package/package.json +1 -1
- package/dist/index-DEnRHTzk.cjs +0 -9
- package/dist/vue-ui-xy-BbWXjajH.cjs +0 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as y, ref as i, watch as V, onMounted as he, onBeforeUnmount as de, createElementBlock as c, openBlock as n, unref as s, normalizeStyle as A, createBlock as C, createCommentVNode as h, createSlots as ye, withCtx as _, renderSlot as f, normalizeProps as F, guardReactiveProps as S, normalizeClass as z, createVNode as fe, Fragment as J, renderList as K, toDisplayString as pe } from "vue";
|
|
2
|
-
import { u as ge, c as me, a as ke, o as we, e as be, w as Q, m as Ce, X as _e, i as Oe, v as Z, f as $e } from "./index-
|
|
3
|
-
import { _ as xe } from "./Title-
|
|
4
|
-
import { u as Ie, U as Pe } from "./usePrinter-
|
|
2
|
+
import { u as ge, c as me, a as ke, o as we, e as be, w as Q, m as Ce, X as _e, i as Oe, v as Z, f as $e } from "./index-CWfVXv5m.js";
|
|
3
|
+
import { _ as xe } from "./Title-Ci05WFhs.js";
|
|
4
|
+
import { u as Ie, U as Pe } from "./usePrinter-CNafRB9Y.js";
|
|
5
5
|
import { t as Ae, u as Fe } from "./useResponsive-BWapHhVH.js";
|
|
6
|
-
import Se from "./vue-ui-skeleton-
|
|
7
|
-
import { u as ee } from "./useNestedProp-
|
|
8
|
-
import { _ as ze } from "./PackageVersion-
|
|
9
|
-
import { P as Me } from "./PenAndPaper-
|
|
6
|
+
import Se from "./vue-ui-skeleton-CBgqwx0w.js";
|
|
7
|
+
import { u as ee } from "./useNestedProp-D4gVG7s3.js";
|
|
8
|
+
import { _ as ze } from "./PackageVersion-CCXzMWuf.js";
|
|
9
|
+
import { P as Me } from "./PenAndPaper-C3qGJ1mF.js";
|
|
10
10
|
import { u as Te } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as Ne } from "./useChartAccessibility-BWojgys7.js";
|
|
12
12
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DEnRHTzk.cjs"),Q=require("./Title-Dk92HYMu.cjs"),q=require("./usePrinter-dyVny55M.cjs"),V=require("./useResponsive-YQYQrAZ_.cjs"),Z=require("./vue-ui-skeleton-_DN0U6W6.cjs"),R=require("./useNestedProp-BNT60LxO.cjs"),ee=require("./PackageVersion-DJKkRuOD.cjs"),te=require("./PenAndPaper-MTTJ3Gd9.cjs"),le=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],re=["xmlns","viewBox"],se=["width","height"],ue=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ie=["d","fill"],ce=["cx","cy","r","stroke","stroke-width"],ve=["x","y","font-size","fill","font-weight"],de={key:5,class:"vue-data-ui-watermark"},he={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(U,{expose:L}){const{vue_ui_wheel:X}=u.useConfig(),c=U,m=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),k=e.ref(u.createUid()),j=e.ref(null),b=e.ref(0),v=e.ref(null),B=e.ref(null),P=e.ref(null),_=e.ref(null),S=e.ref(0),t=e.computed({get:()=>x(),set:l=>l}),{userOptionsVisible:g,setUserOptionsVisibility:N,keepUserOptionState:O}=le.useUserOptionState({config:t.value}),{svgRef:G}=ae.useChartAccessibility({config:t.value.style.chart.title});function x(){const l=R.useNestedProp({userConfig:c.config,defaultConfig:X});return l.theme?{...R.useNestedProp({userConfig:u.themes.vue_ui_wheel[l.theme]||c.config,defaultConfig:l})}:l}e.watch(()=>c.config,l=>{t.value=x(),g.value=!t.value.userOptions.showOnChartHover,E(),S.value+=1},{deep:!0});const{isPrinting:$,isImaging:z,generatePdf:A,generateImage:I}=q.usePrinter({elementId:k.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),o=e.ref({size:360,height:360,width:360}),w=e.ref(t.value.style.chart.layout.percentage.fontSize),r=e.computed(()=>({radius:Math.min(o.value.width,o.value.height)*.9/2,centerX:o.value.width/2,centerY:o.value.height/2}));function F(l,n=1){return{x:r.value.centerX+r.value.radius*Math.cos(29.85+l*Math.PI/180)*n,y:r.value.centerY+r.value.radius*Math.sin(29.85+l*Math.PI/180)*n}}const s=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,l=>{t.value.style.chart.animation.use?M(l.percentage):s.value=l.percentage||0},{deep:!0});const h=e.ref(null);e.onMounted(()=>{E()});function E(){if(u.objectIsEmpty(c.dataset)&&u.error({componentName:"VueUiWheel",type:"dataset"}),M(c.dataset.percentage||0),t.value.responsive){const l=V.throttle(()=>{const{width:n,height:a}=V.useResponsive({chart:v.value,title:t.value.style.chart.title.text?B.value:null,source:P.value,noTitle:_.value});requestAnimationFrame(()=>{o.value.width=n,o.value.height=a,w.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(n,a)})});h.value=new ResizeObserver(l),h.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{h.value&&h.value.disconnect()});function M(l){let n=t.value.style.chart.animation.speed;const a=Math.abs(l-s.value)/(n*120);function i(){s.value<l?s.value=Math.min(s.value+a,l):s.value>l&&(s.value=Math.max(s.value-a,l)),s.value!==l&&requestAnimationFrame(i)}i()}const d=e.computed(()=>Math.max(100,t.value.style.chart.layout.wheel.ticks.quantity)),f=e.computed(()=>100/d.value),T=e.computed(()=>{const l=[];for(let n=0;n<d.value;n+=1){const a=s.value>n*f.value?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:i,y:W}=F(o.value.size/d.value*n),{x:J,y:K}=F(o.value.size/d.value*n,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:i,y1:W,x2:J,y2:K,color:t.value.style.chart.layout.wheel.ticks.gradient.show?u.shiftHue(a,n*f.value/d.value*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):a})}return l}),D=e.computed(()=>u.makeDonut({series:T.value.map(l=>({name:"",value:1,color:l.color}))},r.value.centerX,r.value.centerY,r.value.radius,r.value.radius,1.99999,2,1,360,105.25,r.value.radius*(1-t.value.style.chart.layout.wheel.ticks.sizeRatio))),y=e.ref(!1);function Y(l){y.value=l,b.value+=1}const p=e.ref(!1);function C(){p.value=!p.value}return L({generatePdf:A,generateImage:I,toggleAnnotator:C}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:k.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(N)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(N)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(te.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:p.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:_,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${S.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(g))?(e.openBlock(),e.createBlock(q.UserOptions,{ref_key:"details",ref:j,key:`user_options_${b.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref($),isImaging:e.unref(z),uid:k.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:y.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:p.value,chartElement:v.value,onToggleFullscreen:Y,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(I),onToggleAnnotator:C,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(g)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:i})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:i})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:i})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ee._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:o.value.width<=0?10:o.value.width,height:o.value.height<=0?10:o.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,se)):e.createCommentVNode("",!0),t.value.style.chart.layout.wheel.ticks.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T.value,(a,i)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":t.value.style.chart.layout.wheel.ticks.strokeWidth/360*Math.min(o.value.width,o.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i*f.value<=s.value})},null,10,ue))),256)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(D.value,(a,i)=>(e.openBlock(),e.createElementBlock("path",{d:a.arcSlice,fill:a.color,class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i*f.value<=s.value})},null,10,ie))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:3,cx:r.value.centerX,cy:r.value.centerY,r:r.value.radius*.8<=0?1e-4:r.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ce)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.centerX,y:r.value.centerY+w.value/3,"font-size":w.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(u.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,s.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(u.checkNaN)(s.value),e.unref(u.dataLabel)({v:e.unref(u.checkNaN)(s.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,ve)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,ne))}},fe=oe._export_sfc(he,[["__scopeId","data-v-1d726029"]]);exports.default=fe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BsQlLw24.cjs"),Q=require("./Title-BIvGm_O3.cjs"),q=require("./usePrinter-CHFROcW6.cjs"),V=require("./useResponsive-YQYQrAZ_.cjs"),Z=require("./vue-ui-skeleton-Djh065IE.cjs"),R=require("./useNestedProp-suOXyj95.cjs"),ee=require("./PackageVersion-D0mzevDk.cjs"),te=require("./PenAndPaper-DFw6nHeD.cjs"),le=require("./useUserOptionState-BgepsfED.cjs"),ae=require("./useChartAccessibility-Cm7nkzTG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],re=["xmlns","viewBox"],se=["width","height"],ue=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],ie=["d","fill"],ce=["cx","cy","r","stroke","stroke-width"],ve=["x","y","font-size","fill","font-weight"],de={key:5,class:"vue-data-ui-watermark"},he={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(U,{expose:L}){const{vue_ui_wheel:X}=u.useConfig(),c=U,m=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),k=e.ref(u.createUid()),j=e.ref(null),b=e.ref(0),v=e.ref(null),B=e.ref(null),P=e.ref(null),_=e.ref(null),S=e.ref(0),t=e.computed({get:()=>x(),set:l=>l}),{userOptionsVisible:g,setUserOptionsVisibility:N,keepUserOptionState:O}=le.useUserOptionState({config:t.value}),{svgRef:G}=ae.useChartAccessibility({config:t.value.style.chart.title});function x(){const l=R.useNestedProp({userConfig:c.config,defaultConfig:X});return l.theme?{...R.useNestedProp({userConfig:u.themes.vue_ui_wheel[l.theme]||c.config,defaultConfig:l})}:l}e.watch(()=>c.config,l=>{t.value=x(),g.value=!t.value.userOptions.showOnChartHover,E(),S.value+=1},{deep:!0});const{isPrinting:$,isImaging:z,generatePdf:A,generateImage:I}=q.usePrinter({elementId:k.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),o=e.ref({size:360,height:360,width:360}),w=e.ref(t.value.style.chart.layout.percentage.fontSize),r=e.computed(()=>({radius:Math.min(o.value.width,o.value.height)*.9/2,centerX:o.value.width/2,centerY:o.value.height/2}));function F(l,n=1){return{x:r.value.centerX+r.value.radius*Math.cos(29.85+l*Math.PI/180)*n,y:r.value.centerY+r.value.radius*Math.sin(29.85+l*Math.PI/180)*n}}const s=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,l=>{t.value.style.chart.animation.use?M(l.percentage):s.value=l.percentage||0},{deep:!0});const h=e.ref(null);e.onMounted(()=>{E()});function E(){if(u.objectIsEmpty(c.dataset)&&u.error({componentName:"VueUiWheel",type:"dataset"}),M(c.dataset.percentage||0),t.value.responsive){const l=V.throttle(()=>{const{width:n,height:a}=V.useResponsive({chart:v.value,title:t.value.style.chart.title.text?B.value:null,source:P.value,noTitle:_.value});requestAnimationFrame(()=>{o.value.width=n,o.value.height=a,w.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(n,a)})});h.value=new ResizeObserver(l),h.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{h.value&&h.value.disconnect()});function M(l){let n=t.value.style.chart.animation.speed;const a=Math.abs(l-s.value)/(n*120);function i(){s.value<l?s.value=Math.min(s.value+a,l):s.value>l&&(s.value=Math.max(s.value-a,l)),s.value!==l&&requestAnimationFrame(i)}i()}const d=e.computed(()=>Math.max(100,t.value.style.chart.layout.wheel.ticks.quantity)),f=e.computed(()=>100/d.value),T=e.computed(()=>{const l=[];for(let n=0;n<d.value;n+=1){const a=s.value>n*f.value?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:i,y:W}=F(o.value.size/d.value*n),{x:J,y:K}=F(o.value.size/d.value*n,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:i,y1:W,x2:J,y2:K,color:t.value.style.chart.layout.wheel.ticks.gradient.show?u.shiftHue(a,n*f.value/d.value*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):a})}return l}),D=e.computed(()=>u.makeDonut({series:T.value.map(l=>({name:"",value:1,color:l.color}))},r.value.centerX,r.value.centerY,r.value.radius,r.value.radius,1.99999,2,1,360,105.25,r.value.radius*(1-t.value.style.chart.layout.wheel.ticks.sizeRatio))),y=e.ref(!1);function Y(l){y.value=l,b.value+=1}const p=e.ref(!1);function C(){p.value=!p.value}return L({generatePdf:A,generateImage:I,toggleAnnotator:C}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:k.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(N)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(N)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(te.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:p.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:_,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Q._sfc_main,{key:`title_${S.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value&&(e.unref(O)||e.unref(g))?(e.openBlock(),e.createBlock(q.UserOptions,{ref_key:"details",ref:j,key:`user_options_${b.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref($),isImaging:e.unref(z),uid:k.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:y.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:p.value,chartElement:v.value,onToggleFullscreen:Y,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(I),onToggleAnnotator:C,style:e.normalizeStyle({visibility:e.unref(O)?e.unref(g)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:i})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:i})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:i})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:i})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:G,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ee._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:o.value.width<=0?10:o.value.width,height:o.value.height<=0?10:o.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,se)):e.createCommentVNode("",!0),t.value.style.chart.layout.wheel.ticks.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T.value,(a,i)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":t.value.style.chart.layout.wheel.ticks.strokeWidth/360*Math.min(o.value.width,o.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i*f.value<=s.value})},null,10,ue))),256)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(D.value,(a,i)=>(e.openBlock(),e.createElementBlock("path",{d:a.arcSlice,fill:a.color,class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&i*f.value<=s.value})},null,10,ie))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:3,cx:r.value.centerX,cy:r.value.centerY,r:r.value.radius*.8<=0?1e-4:r.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,ce)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.centerX,y:r.value.centerY+w.value/3,"font-size":w.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(u.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,s.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(u.checkNaN)(s.value),e.unref(u.dataLabel)({v:e.unref(u.checkNaN)(s.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,ve)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Z.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,ne))}},fe=oe._export_sfc(he,[["__scopeId","data-v-1d726029"]]);exports.default=fe;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as Ee, computed as y, createElementBlock as v, openBlock as r, createElementVNode as S, renderSlot as i, createVNode as ne, normalizeStyle as q, ref as n, watch as se, onMounted as Ge, onBeforeUnmount as Le, unref as d, createBlock as P, createCommentVNode as w, createSlots as Xe, withCtx as m, normalizeProps as M, guardReactiveProps as _, normalizeClass as ke, Fragment as je, renderList as qe, toDisplayString as we, createTextVNode as He, nextTick as $e } from "vue";
|
|
2
|
-
import { u as Ye, a4 as Je, v as Ke, c as xe, t as Qe, p as j, a as Ze, o as et, e as Te, g as tt, f as ot, X as at, q as lt, r as st, x as nt } from "./index-
|
|
3
|
-
import { _ as rt } from "./Title-
|
|
4
|
-
import { u as ut, U as it } from "./usePrinter-
|
|
2
|
+
import { u as Ye, a4 as Je, v as Ke, c as xe, t as Qe, p as j, a as Ze, o as et, e as Te, g as tt, f as ot, X as at, q as lt, r as st, x as nt } from "./index-CWfVXv5m.js";
|
|
3
|
+
import { _ as rt } from "./Title-Ci05WFhs.js";
|
|
4
|
+
import { u as ut, U as it } from "./usePrinter-CNafRB9Y.js";
|
|
5
5
|
import { d as ct, t as dt, u as vt } from "./useResponsive-BWapHhVH.js";
|
|
6
|
-
import ht from "./vue-ui-accordion-
|
|
7
|
-
import { D as mt } from "./DataTable-
|
|
8
|
-
import ft from "./BaseIcon-
|
|
6
|
+
import ht from "./vue-ui-accordion-BrKcc0Za.js";
|
|
7
|
+
import { D as mt } from "./DataTable-n3ZWSPsz.js";
|
|
8
|
+
import ft from "./BaseIcon-BTx6biat.js";
|
|
9
9
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Se } from "./useNestedProp-
|
|
11
|
-
import { _ as pt } from "./PackageVersion-
|
|
12
|
-
import { _ as gt } from "./Tooltip-
|
|
13
|
-
import { P as yt } from "./PenAndPaper-
|
|
10
|
+
import { u as Se } from "./useNestedProp-D4gVG7s3.js";
|
|
11
|
+
import { _ as pt } from "./PackageVersion-CCXzMWuf.js";
|
|
12
|
+
import { _ as gt } from "./Tooltip-BGoyGTcf.js";
|
|
13
|
+
import { P as yt } from "./PenAndPaper-C3qGJ1mF.js";
|
|
14
14
|
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { u as Ct } from "./useChartAccessibility-BWojgys7.js";
|
|
16
16
|
const kt = { "data-html2canvas-ignore": "" }, wt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DEnRHTzk.cjs"),$e=require("./Title-Dk92HYMu.cjs"),ue=require("./usePrinter-dyVny55M.cjs"),H=require("./useResponsive-YQYQrAZ_.cjs"),Te=require("./vue-ui-accordion-D2qxHGzp.cjs"),Ne=require("./DataTable-Cv_TVAas.cjs"),Pe=require("./BaseIcon-BmVwfJg2.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=require("./useNestedProp-BNT60LxO.cjs"),Be=require("./PackageVersion-DJKkRuOD.cjs"),Fe=require("./Tooltip-ClMeqejQ.cjs"),ze=require("./PenAndPaper-MTTJ3Gd9.cjs"),Ae=require("./useUserOptionState-BgepsfED.cjs"),Oe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ve={"data-html2canvas-ignore":""},Ee={key:0,class:"reset-wrapper"},Me={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=["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(d,{emit:M}){e.useCssVars(b=>({"782b8172":c.value,"102109e6":$.value,"642212d7":y.value,"1f5369d4":d.selectColor,"22b98ab8":k.value}));const v=d,c=e.computed(()=>v.inputColor),k=e.computed(()=>v.background),y=e.computed(()=>`${v.selectColor}33`),$=e.computed(()=>v.borderColor),T=M;function p(){T("reset")}const B=e.computed(()=>{const b=v.max-v.min,m=0,C=(v.value-v.min)/b*100;return{left:`${m}%`,width:`${C-m}%`,background:v.selectColor}});return(b,m)=>(e.openBlock(),e.createElementBlock("div",Ve,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Ee,[d.useResetSlot?e.renderSlot(b.$slots,"reset-action",{key:1,reset:p},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:p},[e.createVNode(Pe.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Me)),e.createElementVNode("div",_e,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(B.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=C=>T("update:value",Number(C.target.value)))},null,40,Ie)])]))}},qe=ce._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(d,{expose:M}){const{vue_ui_word_cloud:v}=s.useConfig(),c=d,k=e.computed({get(){return!!c.dataset&&c.dataset.length},set(o){return o}}),y=e.ref(typeof c.dataset=="string"?s.createWordCloudDatasetFromPlainText(c.dataset):c.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))),$=e.ref(s.createUid()),T=e.ref(0),p=e.ref(null),B=e.ref(null),b=e.ref(null),m=e.ref(0),C=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>J(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:X,keepUserOptionState:Y}=Ae.useUserOptionState({config:t.value}),{svgRef:de}=Oe.useChartAccessibility({config:t.value.style.chart.title});function J(){const o=ie.useNestedProp({userConfig:c.config,defaultConfig:v});return o.theme?{...ie.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||c.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>c.config,o=>{t.value=J(),I.value=!t.value.userOptions.showOnChartHover,Q(),m.value+=1,C.value+=1,R(),i.value.showTable=t.value.table.show,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const K=e.ref(null),w=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}),ve=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:p.value,title:t.value.style.chart.title.text?B.value:null,slicer:t.value.style.chart.zoom.show&&K.value,source:b.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(U)})});e.watch(()=>w.value,()=>{he()});const he=H.debounce(()=>{U()},10);function R(){w.value=q.value}const F=e.ref(null);e.onMounted(()=>{Q(),R()});function Q(){s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):y.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{k.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(F.value=new ResizeObserver(ve),F.value.observe(p.value.parentNode))}e.onBeforeUnmount(()=>{F.value&&F.value.disconnect()});const{isPrinting:Z,isImaging:ee,generatePdf:te,generateImage:oe}=ue.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),i=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function me(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 pe(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 fe(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,f=0;return o.forEach(S=>{let L=!1;for(let E=0;E<Math.max(a,l)/2&&!L;E+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const se=j*Math.PI/180,ke=h+E*Math.cos(se)-S.width/2,Ce=f+E*Math.sin(se)-S.height/2,g={...S,x:ke,y:Ce},we=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,xe=u.some(Se=>pe(g,Se));we&&!xe&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>c.dataset,U,{immediate:!0});const q=e.computed(()=>Math.round(Math.min(...y.value.map(o=>o.value)))),le=e.computed(()=>Math.round(Math.max(...y.value.map(o=>o.value))));function U(){const o=[...y.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...y.value].filter(n=>n.value>=w.value).map((n,h)=>{let f=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;f=isNaN(f)?r.value.minFontSize:f;const S=me(n.name,f);return{...n,id:s.createUid(),fontSize:f,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=fe(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const z=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function ae(){e.nextTick(()=>{const o=z.value.head.map((u,n)=>[[u.name],[z.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const A=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=z.value.head.map((n,h)=>{const f=s.dataLabel({p:t.value.table.td.prefix,v:z.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},f]}),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 ge(o){O.value=o,T.value+=1}function ye(){return N.value}function ne(){i.value.showTable=!i.value.showTable}function re(){i.value.showTooltip=!i.value.showTooltip}const V=e.ref(!1);function W(){V.value=!V.value}M({getData:ye,generateCsv:ae,generatePdf:te,generateImage:oe,toggleTable:ne,toggleTooltip:re,toggleAnnotator:W});const x=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function be(o){if(!i.value.showTooltip)return;x.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.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>`;D.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:p,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(X)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,parent:p.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:W},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:B,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock($e._sfc_main,{key:`title_${m.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&&k.value&&(e.unref(Y)||e.unref(I))?(e.openBlock(),e.createBlock(ue.UserOptions,{ref:"details",key:`user_option_${T.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(ee),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:i.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(te),onGenerateCsv:ae,onGenerateImage:e.unref(oe),onToggleTable:ne,onToggleTooltip:re,onToggleAnnotator:W,style:e.normalizeStyle({visibility:e.unref(Y)?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:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),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),k.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:de,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Be._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(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":x.value&&x.value===l.id&&i.value.showTooltip,"word-not-selected":x.value&&x.value!==l.id&&i.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>be(l),onMouseleave:a[0]||(a[0]=n=>{x.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${u*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(Z)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Fe._sfc_main,{show:i.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:p.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.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:K,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&q.value<le.value?(e.openBlock(),e.createBlock(qe,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:q.value,max:le.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:R},{"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:b,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createBlock(Te.default,{key:6,hideDetails:"",config:{open:i.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(Ne.DataTable,{key:`table_${C.value}`,colNames:A.value.colNames,head:A.value.head,body:A.value.body,config:A.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=>i.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=ce._export_sfc(Xe,[["__scopeId","data-v-09b6d459"]]);exports.default=Ye;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BsQlLw24.cjs"),$e=require("./Title-BIvGm_O3.cjs"),ue=require("./usePrinter-CHFROcW6.cjs"),H=require("./useResponsive-YQYQrAZ_.cjs"),Te=require("./vue-ui-accordion-Czbtgpgm.cjs"),Ne=require("./DataTable-oajjRhip.cjs"),Pe=require("./BaseIcon-CryLVoaH.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=require("./useNestedProp-suOXyj95.cjs"),Be=require("./PackageVersion-D0mzevDk.cjs"),Fe=require("./Tooltip-BIC3xxj7.cjs"),ze=require("./PenAndPaper-DFw6nHeD.cjs"),Ae=require("./useUserOptionState-BgepsfED.cjs"),Oe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ve={"data-html2canvas-ignore":""},Ee={key:0,class:"reset-wrapper"},Me={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ie=["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(d,{emit:M}){e.useCssVars(b=>({"782b8172":c.value,"102109e6":$.value,"642212d7":y.value,"1f5369d4":d.selectColor,"22b98ab8":k.value}));const v=d,c=e.computed(()=>v.inputColor),k=e.computed(()=>v.background),y=e.computed(()=>`${v.selectColor}33`),$=e.computed(()=>v.borderColor),T=M;function p(){T("reset")}const B=e.computed(()=>{const b=v.max-v.min,m=0,C=(v.value-v.min)/b*100;return{left:`${m}%`,width:`${C-m}%`,background:v.selectColor}});return(b,m)=>(e.openBlock(),e.createElementBlock("div",Ve,[d.value!==d.source?(e.openBlock(),e.createElementBlock("div",Ee,[d.useResetSlot?e.renderSlot(b.$slots,"reset-action",{key:1,reset:p},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:p},[e.createVNode(Pe.default,{name:"refresh",stroke:d.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Me)),e.createElementVNode("div",_e,[m[1]||(m[1]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(B.value)},null,4),e.createElementVNode("input",{type:"range",min:d.min,max:d.max,value:Number(d.value),onInput:m[0]||(m[0]=C=>T("update:value",Number(C.target.value)))},null,40,Ie)])]))}},qe=ce._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(d,{expose:M}){const{vue_ui_word_cloud:v}=s.useConfig(),c=d,k=e.computed({get(){return!!c.dataset&&c.dataset.length},set(o){return o}}),y=e.ref(typeof c.dataset=="string"?s.createWordCloudDatasetFromPlainText(c.dataset):c.dataset.map((o,a)=>({...o,value:s.checkNaN(o.value)}))),$=e.ref(s.createUid()),T=e.ref(0),p=e.ref(null),B=e.ref(null),b=e.ref(null),m=e.ref(0),C=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>J(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:X,keepUserOptionState:Y}=Ae.useUserOptionState({config:t.value}),{svgRef:de}=Oe.useChartAccessibility({config:t.value.style.chart.title});function J(){const o=ie.useNestedProp({userConfig:c.config,defaultConfig:v});return o.theme?{...ie.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||c.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>c.config,o=>{t.value=J(),I.value=!t.value.userOptions.showOnChartHover,Q(),m.value+=1,C.value+=1,R(),i.value.showTable=t.value.table.show,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const K=e.ref(null),w=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}),ve=H.throttle(()=>{const{width:o,height:a}=H.useResponsive({chart:p.value,title:t.value.style.chart.title.text?B.value:null,slicer:t.value.style.chart.zoom.show&&K.value,source:b.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(U)})});e.watch(()=>w.value,()=>{he()});const he=H.debounce(()=>{U()},10);function R(){w.value=q.value}const F=e.ref(null);e.onMounted(()=>{Q(),R()});function Q(){s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):y.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{k.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(F.value=new ResizeObserver(ve),F.value.observe(p.value.parentNode))}e.onBeforeUnmount(()=>{F.value&&F.value.disconnect()});const{isPrinting:Z,isImaging:ee,generatePdf:te,generateImage:oe}=ue.usePrinter({elementId:`wordCloud_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),i=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function me(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 pe(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 fe(o,a,l){const u=[],n={x:-a/2,y:-l/2,width:a,height:l},h=0,f=0;return o.forEach(S=>{let L=!1;for(let E=0;E<Math.max(a,l)/2&&!L;E+=t.value.style.chart.words.packingWeight)for(let j=0;j<360&&!L;j+=t.value.style.chart.words.packingWeight){const se=j*Math.PI/180,ke=h+E*Math.cos(se)-S.width/2,Ce=f+E*Math.sin(se)-S.height/2,g={...S,x:ke,y:Ce},we=g.x>=n.x&&g.y>=n.y&&g.x+g.width<=n.x+n.width&&g.y+g.height<=n.y+n.height,xe=u.some(Se=>pe(g,Se));we&&!xe&&(u.push(g),L=!0)}}),u}const N=e.ref([]);e.watch(()=>c.dataset,U,{immediate:!0});const q=e.computed(()=>Math.round(Math.min(...y.value.map(o=>o.value)))),le=e.computed(()=>Math.round(Math.max(...y.value.map(o=>o.value))));function U(){const o=[...y.value].filter(n=>n.value>=w.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),u=[...y.value].filter(n=>n.value>=w.value).map((n,h)=>{let f=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;f=isNaN(f)?r.value.minFontSize:f;const S=me(n.name,f);return{...n,id:s.createUid(),fontSize:f,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[h]||t.value.customPalette[h%t.value.customPalette.length]||s.palette[h]||s.palette[h%s.palette.length]:t.value.style.chart.words.color}});N.value=fe(u,r.value.width,r.value.height).sort((n,h)=>h.fontSize-n.fontSize)}const z=e.computed(()=>{const o=N.value.map(l=>({name:l.name,color:l.color})),a=N.value.map(l=>l.value);return{head:o,body:a}});function ae(){e.nextTick(()=>{const o=z.value.head.map((u,n)=>[[u.name],[z.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const A=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=z.value.head.map((n,h)=>{const f=s.dataLabel({p:t.value.table.td.prefix,v:z.value.body[h],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},f]}),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 ge(o){O.value=o,T.value+=1}function ye(){return N.value}function ne(){i.value.showTable=!i.value.showTable}function re(){i.value.showTooltip=!i.value.showTooltip}const V=e.ref(!1);function W(){V.value=!V.value}M({getData:ye,generateCsv:ae,generatePdf:te,generateImage:oe,toggleTable:ne,toggleTooltip:re,toggleAnnotator:W});const x=e.ref(null),P=e.ref(!1),D=e.ref(""),G=e.ref(null);function be(o){if(!i.value.showTooltip)return;x.value=o.id,G.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(P.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(D.value=l,P.value=!0)}catch{console.warn("Custom format cannot be applied."),P.value=!1}if(!P.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>`;D.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:p,id:`wordCloud_${$.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(X)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,parent:p.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:V.value,onClose:W},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:B,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock($e._sfc_main,{key:`title_${m.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&&k.value&&(e.unref(Y)||e.unref(I))?(e.openBlock(),e.createBlock(ue.UserOptions,{ref:"details",key:`user_option_${T.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(ee),uid:$.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:i.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:V.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(te),onGenerateCsv:ae,onGenerateImage:e.unref(oe),onToggleTable:ne,onToggleTooltip:re,onToggleAnnotator:W,style:e.normalizeStyle({visibility:e.unref(Y)?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:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),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),k.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:de,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Be._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(N.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:u,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":x.value&&x.value===l.id&&i.value.showTooltip,"word-not-selected":x.value&&x.value!==l.id&&i.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>be(l),onMouseleave:a[0]||(a[0]=n=>{x.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${u*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(Z)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Fe._sfc_main,{show:i.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:p.value,content:D.value,isCustom:P.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.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:K,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&q.value<le.value?(e.openBlock(),e.createBlock(qe,{key:0,value:w.value,"onUpdate:value":a[1]||(a[1]=l=>w.value=l),min:q.value,max:le.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:R},{"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:b,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createBlock(Te.default,{key:6,hideDetails:"",config:{open:i.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(Ne.DataTable,{key:`table_${C.value}`,colNames:A.value.colNames,head:A.value.head,body:A.value.body,config:A.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=>i.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=ce._export_sfc(Xe,[["__scopeId","data-v-09b6d459"]]);exports.default=Ye;
|