vue-data-ui 2.10.2-beta.0 → 2.10.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvrzYEem.js → Arrow-B2-rOYz8.js} +1 -1
- package/dist/{Arrow-DiKmN6eo.cjs → Arrow-D6UBVyNr.cjs} +1 -1
- package/dist/{BaseIcon-1opvCDaQ.js → BaseIcon-Br5G8Cdk.js} +1 -1
- package/dist/{BaseIcon-BRmHoHji.cjs → BaseIcon-DfoJJxST.cjs} +1 -1
- package/dist/{ColorPicker-G7dML0BS.js → ColorPicker-CiQzB3a-.js} +3 -3
- package/dist/{ColorPicker-BQY41CwB.cjs → ColorPicker-Dvgprgpv.cjs} +1 -1
- package/dist/{DataTable-DSZwidNa.cjs → DataTable-CGucPqAQ.cjs} +1 -1
- package/dist/{DataTable-DVAtzq48.js → DataTable-Dk-94kK2.js} +2 -2
- package/dist/{Legend-DUY48WfL.cjs → Legend-B9aoKeq3.cjs} +1 -1
- package/dist/{Legend-ClChB3yO.js → Legend-Cx6NYPTA.js} +2 -2
- package/dist/{PackageVersion-BVqKnl8d.js → PackageVersion-BdNfnIm2.js} +3 -3
- package/dist/PackageVersion-C2bjLIu9.cjs +1 -0
- package/dist/{PenAndPaper-Bt9JtDPx.cjs → PenAndPaper-CJIFAI78.cjs} +1 -1
- package/dist/{PenAndPaper-3jmU5GLm.js → PenAndPaper-wrVNMaG8.js} +3 -3
- package/dist/{Shape-x1m9d0T3.cjs → Shape-Cn2RU1NY.cjs} +1 -1
- package/dist/{Shape-BOc09O7_.js → Shape-vIKj52KP.js} +1 -1
- package/dist/{Slicer-B7Gt3_Nl.cjs → Slicer-t3EfI94H.cjs} +1 -1
- package/dist/{Slicer-dM7HrmEG.js → Slicer-yki6JqTB.js} +2 -2
- package/dist/{Title-CcgS3et4.cjs → Title-Bae0QJu7.cjs} +1 -1
- package/dist/{Title-Bsx1bBKe.js → Title-CDYBDpu3.js} +1 -1
- package/dist/{Tooltip-C8rHMEUK.js → Tooltip-BzsAOdBd.js} +1 -1
- package/dist/{Tooltip-DWCw-8oz.cjs → Tooltip-CfqYTd5O.cjs} +1 -1
- package/dist/{dom-to-png-CHXF3z4X.cjs → dom-to-png-DgRl9bEH.cjs} +1 -1
- package/dist/{dom-to-png-JSc0Wutr.js → dom-to-png-IAiARGiU.js} +1 -1
- package/dist/{img-7aPSvY3c.js → img-DaDUVggy.js} +1 -1
- package/dist/{img-Czqt0BR-.cjs → img-DxEvbX77.cjs} +1 -1
- package/dist/{index-DooXAewR.js → index-BI6O7K58.js} +1 -1
- package/dist/{index-BzyzkUsY.cjs → index-DgIVCHLv.cjs} +1 -1
- package/dist/{pdf-CS-UdLZt.js → pdf-DBVNp7s2.js} +1 -1
- package/dist/{pdf-B9tvtSl9.cjs → pdf-Dq3h9PEr.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CWnDOg1g.cjs → useNestedProp-CCR03NVM.cjs} +1 -1
- package/dist/{useNestedProp-CeA-IFZT.js → useNestedProp-Cvz4MkSy.js} +1 -1
- package/dist/{usePrinter-CBfmcTyQ.cjs → usePrinter-B2xVvtiy.cjs} +1 -1
- package/dist/{usePrinter-rVrVRW1p.js → usePrinter-Jr3eyr8H.js} +3 -3
- package/dist/{vue-data-ui-B7d3aUDp.cjs → vue-data-ui-DhWKehHS.cjs} +1 -1
- package/dist/{vue-data-ui-Tce5_-Eb.js → vue-data-ui-bm5wfGa_.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-gO5QnUl-.cjs → vue-ui-3d-bar-Bpm8dKya.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B8Xjt8JB.js → vue-ui-3d-bar-CHOAZoDV.js} +9 -9
- package/dist/{vue-ui-accordion-B4ML49fc.cjs → vue-ui-accordion-DE1isSE9.cjs} +1 -1
- package/dist/{vue-ui-accordion-DLa3SOIQ.js → vue-ui-accordion-ldF7KsjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DLDGvlfL.cjs → vue-ui-age-pyramid-BnHOxOPT.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BRLXIdCs.js → vue-ui-age-pyramid-BuKSta-B.js} +10 -10
- package/dist/{vue-ui-annotator-DpgWa9Cn.cjs → vue-ui-annotator-B9j16TKW.cjs} +1 -1
- package/dist/{vue-ui-annotator-NtzLi6e5.js → vue-ui-annotator-BBuH-QB4.js} +2 -2
- package/dist/{vue-ui-bullet-oESdTIjM.js → vue-ui-bullet-B0C_rPTQ.js} +8 -8
- package/dist/{vue-ui-bullet-DIGwu5xc.cjs → vue-ui-bullet-CRChR0Qe.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dsb2-JRF.cjs → vue-ui-candlestick-Bq66GLxw.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CnAI7klD.js → vue-ui-candlestick-By5MsCcS.js} +11 -11
- package/dist/{vue-ui-carousel-table-CAmFkQql.js → vue-ui-carousel-table-BOtjI2Ov.js} +4 -4
- package/dist/{vue-ui-carousel-table-DUu0feRu.cjs → vue-ui-carousel-table-CyywZulq.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CCrwb8aH.js → vue-ui-chestnut-BS2kXrPU.js} +8 -8
- package/dist/{vue-ui-chestnut-Bkg_-3Jh.cjs → vue-ui-chestnut-D8QPZS8n.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-Baw5MjxR.js → vue-ui-circle-pack-C8m10WZ0.js} +9 -9
- package/dist/{vue-ui-circle-pack-D2LmdTWH.cjs → vue-ui-circle-pack-iOxdB75t.cjs} +1 -1
- package/dist/{vue-ui-cursor-BC3eK7ZM.js → vue-ui-cursor-Bn-CCFO0.js} +2 -2
- package/dist/{vue-ui-cursor-CfMz226i.cjs → vue-ui-cursor-Ccym3tFb.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OU8D2OTa.cjs → vue-ui-dashboard-Cw4IXhXY.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BOU2cJ2b.js → vue-ui-dashboard-D-vs2N_7.js} +62 -62
- package/dist/{vue-ui-digits-DGQWpbm2.js → vue-ui-digits-BXBXg7wv.js} +2 -2
- package/dist/{vue-ui-digits-BSLSYNb7.cjs → vue-ui-digits-D66h3nUw.cjs} +1 -1
- package/dist/{vue-ui-donut-LglxgRri.js → vue-ui-donut-BGZIwC5D.js} +12 -12
- package/dist/{vue-ui-donut-DO9gOTvW.cjs → vue-ui-donut-Bf3THSxi.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CGnR05_I.js → vue-ui-donut-evolution-5yOibvNM.js} +11 -11
- package/dist/{vue-ui-donut-evolution-jwuqDtAA.cjs → vue-ui-donut-evolution-xxrUJzgG.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DkBWRski.js → vue-ui-dumbbell-C-KqKhxI.js} +10 -10
- package/dist/{vue-ui-dumbbell-CSE5loIk.cjs → vue-ui-dumbbell-CWn7cNsm.cjs} +1 -1
- package/dist/{vue-ui-flow-B2AXCnm5.js → vue-ui-flow-D4_2VnaB.js} +9 -9
- package/dist/{vue-ui-flow-tg58e_cr.cjs → vue-ui-flow-DFxWNRRJ.cjs} +1 -1
- package/dist/{vue-ui-funnel-DuzxYzyD.js → vue-ui-funnel-ADEjZ8yz.js} +9 -9
- package/dist/{vue-ui-funnel-DcQWW2NS.cjs → vue-ui-funnel-DIoqpwbm.cjs} +1 -1
- package/dist/{vue-ui-galaxy-ySnbPS-x.cjs → vue-ui-galaxy-BRle40mR.cjs} +1 -1
- package/dist/{vue-ui-galaxy-ESjv8ZqA.js → vue-ui-galaxy-DLtA9Ebb.js} +11 -11
- package/dist/{vue-ui-gauge-Bwo4YkkZ.cjs → vue-ui-gauge-B4vEWkRk.cjs} +1 -1
- package/dist/{vue-ui-gauge-vp6PLuJ2.js → vue-ui-gauge-BVj-IBdi.js} +7 -7
- package/dist/{vue-ui-gizmo-BrN-J1Ee.js → vue-ui-gizmo-BTe8CPyi.js} +3 -3
- package/dist/{vue-ui-gizmo-CddlRjeu.cjs → vue-ui-gizmo-BwBtkZ5z.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CBRtJ8Cd.js → vue-ui-heatmap-DrXMOxbe.js} +10 -10
- package/dist/{vue-ui-heatmap-s-ma5UVQ.cjs → vue-ui-heatmap-VdFtflO6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Yc_8sbsM.cjs → vue-ui-history-plot-B-ScOcEy.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CaZhV-nU.js → vue-ui-history-plot-_DfuZIMP.js} +11 -11
- package/dist/{vue-ui-kpi-IRvK3TS2.cjs → vue-ui-kpi-DSQV0Kf2.cjs} +1 -1
- package/dist/{vue-ui-kpi-CjkmnlkE.js → vue-ui-kpi-DfFiDtCP.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYVzNUON.js → vue-ui-mini-loader-1JZipPcP.js} +2 -2
- package/dist/{vue-ui-mini-loader-BQzcs6uB.cjs → vue-ui-mini-loader-CDOlO_1_.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bci1mou3.js → vue-ui-molecule-Db_C7mVS.js} +11 -11
- package/dist/{vue-ui-molecule-DJ5RuqdD.cjs → vue-ui-molecule-jEcRTe4V.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CjKeANNT.cjs → vue-ui-mood-radar-BoKSTE-Y.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BQBLof4Z.js → vue-ui-mood-radar-m48vvkft.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DrNhJSPg.js → vue-ui-nested-donuts-DNhMOryo.js} +11 -11
- package/dist/{vue-ui-nested-donuts-a1bC0MIy.cjs → vue-ui-nested-donuts-ihd00Tpn.cjs} +1 -1
- package/dist/{vue-ui-onion-Xy3gKPoa.cjs → vue-ui-onion-D9AHOWa5.cjs} +1 -1
- package/dist/{vue-ui-onion-S2zaH8gC.js → vue-ui-onion-YKxsqnI7.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-B1SL_FlT.js → vue-ui-parallel-coordinate-plot-7SCwFkrU.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DlDkqRXZ.cjs → vue-ui-parallel-coordinate-plot-BmO6zenq.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BbI_WV9P.js → vue-ui-quadrant-Bi0by7IK.js} +12 -12
- package/dist/{vue-ui-quadrant-Er30dYmu.cjs → vue-ui-quadrant-CAJ4dTBu.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-F5MYUxBh.cjs → vue-ui-quick-chart-C37lGqa1.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CuQeZuMv.js → vue-ui-quick-chart-DlV0Qv_x.js} +9 -9
- package/dist/{vue-ui-radar-ZGmdrOWg.js → vue-ui-radar-B14zLIww.js} +12 -12
- package/dist/{vue-ui-radar-ODXlpihN.cjs → vue-ui-radar-H08KmB3s.cjs} +1 -1
- package/dist/{vue-ui-rating-CGDzme3N.cjs → vue-ui-rating-CYarWaTf.cjs} +1 -1
- package/dist/{vue-ui-rating-kTiSrHnd.js → vue-ui-rating-CdSQUBG6.js} +2 -2
- package/dist/{vue-ui-relation-circle-Ciae1qCQ.cjs → vue-ui-relation-circle-A4Vw8kYl.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CbQYCuW1.js → vue-ui-relation-circle-IzAvPPGl.js} +7 -7
- package/dist/{vue-ui-ridgeline-BYyeFIhk.js → vue-ui-ridgeline-BF5X6KQR.js} +12 -12
- package/dist/{vue-ui-ridgeline-c1obnD3W.cjs → vue-ui-ridgeline-BaHgOn_p.cjs} +1 -1
- package/dist/{vue-ui-rings-DlT7Q9C_.js → vue-ui-rings-DUhnXy1h.js} +12 -12
- package/dist/{vue-ui-rings-JyiU6_sc.cjs → vue-ui-rings-DnVeMrOw.cjs} +1 -1
- package/dist/{vue-ui-scatter-ntN0LVrZ.js → vue-ui-scatter-D7bXuxob.js} +12 -12
- package/dist/{vue-ui-scatter-CuJCs6sT.cjs → vue-ui-scatter-DoGX7iHp.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CZb-ZjJ-.cjs → vue-ui-skeleton-DeEGdJEn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BJBwGLvQ.js → vue-ui-skeleton-Dxm7rqic.js} +3 -3
- package/dist/{vue-ui-smiley-TZDNziHi.js → vue-ui-smiley-95l4UiqT.js} +2 -2
- package/dist/{vue-ui-smiley-BPtUaxih.cjs → vue-ui-smiley-DmAtXVht.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-bueclFIq.cjs → vue-ui-spark-trend-C3CO25Jy.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Dcr7S70f.js → vue-ui-spark-trend-DdH43oVm.js} +5 -5
- package/dist/{vue-ui-sparkbar-BQlWKjxx.cjs → vue-ui-sparkbar-C2roDWfv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CmMSpIWT.js → vue-ui-sparkbar-DTe3QrR3.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BZyTGzW5.js → vue-ui-sparkgauge-BwclNj3C.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B7nCrYcd.cjs → vue-ui-sparkgauge-nq6-9TjT.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Dlnfvocd.cjs → vue-ui-sparkhistogram-BdWirDjI.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C9a9yysC.js → vue-ui-sparkhistogram-Brau127G.js} +5 -5
- package/dist/{vue-ui-sparkline-BYXy4_ye.cjs → vue-ui-sparkline-B2mOJzkG.cjs} +1 -1
- package/dist/{vue-ui-sparkline-SWxohDk9.js → vue-ui-sparkline-qqfyQyVz.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DLHaGMca.cjs → vue-ui-sparkstackbar-BJl9lbBp.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B2kazMC5.js → vue-ui-sparkstackbar-DLlDU0B2.js} +5 -5
- package/dist/{vue-ui-stackbar-DFHLxQ-o.cjs → vue-ui-stackbar-CEvmDjq3.cjs} +1 -1
- package/dist/{vue-ui-stackbar-AvRusEob.js → vue-ui-stackbar-RRGnblUm.js} +13 -13
- package/dist/{vue-ui-strip-plot-ISii3FHM.js → vue-ui-strip-plot-C9LKjSkW.js} +11 -11
- package/dist/{vue-ui-strip-plot-BtqRC7h3.cjs → vue-ui-strip-plot-Dlsv-yRI.cjs} +1 -1
- package/dist/{vue-ui-table-DKsKbnap.js → vue-ui-table-DxdJ151X.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C5G_CELV.cjs → vue-ui-table-heatmap-BhxOvDDW.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CLLk1u2z.js → vue-ui-table-heatmap-CzGeU_uL.js} +4 -4
- package/dist/{vue-ui-table-DeSxVc3g.cjs → vue-ui-table-qULtmHGA.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-5vuYcAME.cjs → vue-ui-table-sparkline-D1hriLB0.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BncY35Is.js → vue-ui-table-sparkline-DSZhEDKX.js} +5 -5
- package/dist/{vue-ui-thermometer-jm_63HZL.cjs → vue-ui-thermometer-Cvnh4jvE.cjs} +1 -1
- package/dist/{vue-ui-thermometer-xOTD55R3.js → vue-ui-thermometer-Pw4X3Bun.js} +7 -7
- package/dist/{vue-ui-timer-DmwSXmTW.cjs → vue-ui-timer-BlmIXPv6.cjs} +1 -1
- package/dist/{vue-ui-timer-m_ncHz58.js → vue-ui-timer-CvvexEeN.js} +5 -5
- package/dist/{vue-ui-tiremarks-0UU9Mw4i.cjs → vue-ui-tiremarks-BAkMBz3o.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-GaLo5qjV.js → vue-ui-tiremarks-DbZQvV_2.js} +7 -7
- package/dist/{vue-ui-treemap-CFSNLj9T.js → vue-ui-treemap-CF-RjM16.js} +12 -12
- package/dist/{vue-ui-treemap-BVFJiMAZ.cjs → vue-ui-treemap-a6b1vWy-.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CWaIXNCd.cjs → vue-ui-vertical-bar-Dm5zMIeE.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-z2t7Pcta.js → vue-ui-vertical-bar-ZJbSI-xR.js} +12 -12
- package/dist/{vue-ui-waffle-B57vn44W.js → vue-ui-waffle-I9AKkwb4.js} +12 -12
- package/dist/{vue-ui-waffle-DFH1pRat.cjs → vue-ui-waffle-XNiw-qtb.cjs} +1 -1
- package/dist/{vue-ui-wheel-CeDuJhdJ.js → vue-ui-wheel-BA7wZUZL.js} +7 -7
- package/dist/{vue-ui-wheel-BInY09xB.cjs → vue-ui-wheel-DJUrO6CA.cjs} +1 -1
- package/dist/vue-ui-word-cloud-BVqb1Yix.js +648 -0
- package/dist/vue-ui-word-cloud-ByjkRq1g.cjs +1 -0
- package/dist/{vue-ui-world-KRmkbVed.cjs → vue-ui-world-9nlcZMH1.cjs} +1 -1
- package/dist/{vue-ui-world-OzkiVQUb.js → vue-ui-world-DkYRlp5s.js} +11 -11
- package/dist/{vue-ui-xy-CfE-caY1.js → vue-ui-xy-B1HwPMFi.js} +16 -16
- package/dist/{vue-ui-xy-vkK0CrKz.cjs → vue-ui-xy-B4sqGuw6.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CkjbrUpb.cjs → vue-ui-xy-canvas-C-rykR_6.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DtQzJAsY.js → vue-ui-xy-canvas-CGCtkn9g.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-B5BeU3j9.cjs +0 -1
- package/dist/vue-ui-word-cloud-CrQ8lUc4.js +0 -630
- package/dist/vue-ui-word-cloud-OChNmjNF.cjs +0 -1
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { useCssVars as Oe, computed as oe, ref as f, watch as me, onMounted as Ne, onBeforeUnmount as Ae, createElementBlock as X, openBlock as w, unref as h, normalizeStyle as re, createBlock as ae, createCommentVNode as B, createVNode as fe, createSlots as Ie, withCtx as P, renderSlot as F, normalizeProps as J, guardReactiveProps as K, normalizeClass as we, createElementVNode as pe, Fragment as Xe, renderList as Re, toDisplayString as Ce, createTextVNode as We, nextTick as ke } from "vue";
|
|
2
|
+
import { u as Ve, c as xe, ai as Be, v as Ye, t as De, p as ue, a as Ue, o as Ee, e as $e, g as Ge, f as Le, X as He, q as je, r as qe, x as Ze } from "./index-BI6O7K58.js";
|
|
3
|
+
import { _ as Je } from "./Title-CDYBDpu3.js";
|
|
4
|
+
import { u as Ke, U as Qe } from "./usePrinter-Jr3eyr8H.js";
|
|
5
|
+
import { t as et, u as tt, d as ot } from "./useResponsive-Cw4oZ8sQ.js";
|
|
6
|
+
import at from "./vue-ui-accordion-ldF7KsjV.js";
|
|
7
|
+
import { D as lt } from "./DataTable-Dk-94kK2.js";
|
|
8
|
+
import { u as Te } from "./useNestedProp-Cvz4MkSy.js";
|
|
9
|
+
import { _ as nt } from "./PackageVersion-BdNfnIm2.js";
|
|
10
|
+
import { _ as st } from "./Tooltip-BzsAOdBd.js";
|
|
11
|
+
import { _ as it } from "./PenAndPaper-wrVNMaG8.js";
|
|
12
|
+
import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
|
+
import { u as ut } from "./useChartAccessibility-BWojgys7.js";
|
|
14
|
+
import { u as ct } from "./usePanZoom-CUkkqW81.js";
|
|
15
|
+
import dt from "./BaseIcon-Br5G8Cdk.js";
|
|
16
|
+
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
function ht(b, p) {
|
|
18
|
+
const { width: c, height: n } = b, d = p.getImageData(0, 0, c, n).data;
|
|
19
|
+
let l = c, a = n, s = 0, g = 0, k = !1;
|
|
20
|
+
for (let m = 0; m < n; m += 1)
|
|
21
|
+
for (let y = 0; y < c; y += 1)
|
|
22
|
+
d[(m * c + y) * 4 + 3] > 1 && (k = !0, y < l && (l = y), y > s && (s = y), m < a && (a = m), m > g && (g = m));
|
|
23
|
+
return k ? [l, a, s, g] : [0, 0, 0, 0];
|
|
24
|
+
}
|
|
25
|
+
function Se({
|
|
26
|
+
word: b,
|
|
27
|
+
fontSize: p,
|
|
28
|
+
pad: c,
|
|
29
|
+
canvas: n,
|
|
30
|
+
ctx: r,
|
|
31
|
+
svg: d
|
|
32
|
+
}) {
|
|
33
|
+
r.save(), r.font = `${d.style && d.style.bold ? "bold " : ""}${p}px Arial`;
|
|
34
|
+
const l = r.measureText(b.name), a = Math.ceil(l.width) + 2 + (c ? c * 2 : 0), s = Math.ceil(p) + 2 + (c ? c * 2 : 0);
|
|
35
|
+
n.width = a, n.height = s, r.clearRect(0, 0, a, s), r.font = `${d.style && d.style.bold ? "bold " : ""}${p}px Arial`, r.textAlign = "center", r.textBaseline = "middle", r.fillStyle = "black", r.fillText(b.name, a / 2, s / 2);
|
|
36
|
+
const k = r.getImageData(0, 0, a, s).data, m = [];
|
|
37
|
+
for (let _ = 0; _ < s; _ += 1)
|
|
38
|
+
for (let Y = 0; Y < a; Y += 1)
|
|
39
|
+
k[(_ * a + Y) * 4 + 3] > 1 && m.push([Y, _]);
|
|
40
|
+
const [y, e, z, R] = ht(n, r);
|
|
41
|
+
return r.restore(), { w: a, h: s, wordMask: m, minX: y, minY: e, maxX: z, maxY: R };
|
|
42
|
+
}
|
|
43
|
+
function Fe({ mask: b, maskW: p, maskH: c, wx: n, wy: r, wordMask: d }) {
|
|
44
|
+
for (let l = 0; l < d.length; l += 1) {
|
|
45
|
+
const a = n + d[l][0], s = r + d[l][1];
|
|
46
|
+
if (a < 0 || s < 0 || a >= p || s >= c || b[s * p + a]) return !1;
|
|
47
|
+
}
|
|
48
|
+
return !0;
|
|
49
|
+
}
|
|
50
|
+
function Me({ mask: b, maskW: p, maskH: c, wx: n, wy: r, wordMask: d }) {
|
|
51
|
+
for (let l = 0; l < d.length; l += 1) {
|
|
52
|
+
const a = n + d[l][0], s = r + d[l][1];
|
|
53
|
+
a >= 0 && s >= 0 && a < p && s < c && (b[s * p + a] = 1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function mt({ wordMask: b, w: p, h: c, dilation: n }) {
|
|
57
|
+
const r = new Set(b.map(([l, a]) => `${l},${a}`)), d = new Set(r);
|
|
58
|
+
for (let [l, a] of b)
|
|
59
|
+
for (let s = -n; s <= n; s += 1)
|
|
60
|
+
for (let g = -n; g <= n; g += 1) {
|
|
61
|
+
if (s === 0 && g === 0) continue;
|
|
62
|
+
const k = l + s, m = a + g;
|
|
63
|
+
k >= 0 && k < p && m >= 0 && m < c && d.add(`${k},${m}`);
|
|
64
|
+
}
|
|
65
|
+
return Array.from(d).map((l) => l.split(",").map(Number));
|
|
66
|
+
}
|
|
67
|
+
function ft({
|
|
68
|
+
words: b,
|
|
69
|
+
proximity: p = 0,
|
|
70
|
+
svg: c,
|
|
71
|
+
strictPixelPadding: n
|
|
72
|
+
}) {
|
|
73
|
+
const { width: r, height: d } = c, l = Math.round(r), a = Math.round(d), s = 1, g = c.minFontSize, k = Math.min(c.maxFontSize, 100), m = b.map((x) => x.value), y = Math.min(...m), e = Math.max(...m), z = new Uint8Array(l * a), R = document.createElement("canvas"), _ = R.getContext("2d", { willReadFrequently: !0 });
|
|
74
|
+
R.width = l, R.height = a;
|
|
75
|
+
const Y = 6, le = 2, Q = 2, ne = 1, u = Math.floor(l / 2), se = Math.floor(a / 2), ce = [...b].sort((x, O) => O.value - x.value), E = [];
|
|
76
|
+
for (const x of ce) {
|
|
77
|
+
let O = g;
|
|
78
|
+
e !== y && (O = (x.value - y) / (e - y) * (k - g) + g), O = Math.max(g, Math.min(k, O));
|
|
79
|
+
let W = !1, N = O;
|
|
80
|
+
for (; !W && N >= s; ) {
|
|
81
|
+
let { w: A, h: v, wordMask: D, minX: U, minY: L, maxX: G, maxY: q } = Se({
|
|
82
|
+
word: x,
|
|
83
|
+
fontSize: N,
|
|
84
|
+
pad: p,
|
|
85
|
+
canvas: R,
|
|
86
|
+
ctx: _,
|
|
87
|
+
svg: c
|
|
88
|
+
});
|
|
89
|
+
n && (D = mt({ wordMask: D, w: A, h: v, dilation: 1 }));
|
|
90
|
+
let $ = 0, V = 0;
|
|
91
|
+
for (; $ < Math.max(l, a) && !W && V < 1e4; ) {
|
|
92
|
+
for (let I = 0; I < 360; I += Y) {
|
|
93
|
+
V += 1;
|
|
94
|
+
const M = Math.round(u + $ * Math.cos(I * Math.PI / 180) - A / 2), T = Math.round(se + $ * Math.sin(I * Math.PI / 180) - v / 2);
|
|
95
|
+
if (!(M < 0 || T < 0 || M + A > l || T + v > a) && Fe({ mask: z, maskW: l, maskH: a, wx: M, wy: T, wordMask: D })) {
|
|
96
|
+
E.push({ ...x, x: M - l / 2, y: T - a / 2, fontSize: N, width: A, height: v, angle: 0, minX: U, minY: L, maxX: G, maxY: q }), Me({ mask: z, maskW: l, maskH: a, wx: M, wy: T, wordMask: D }), W = !0;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
$ += le;
|
|
101
|
+
}
|
|
102
|
+
W || (N -= 1);
|
|
103
|
+
}
|
|
104
|
+
if (!W && N < s) {
|
|
105
|
+
N = s;
|
|
106
|
+
const { w: A, h: v, wordMask: D, minX: U, minY: L, maxX: G, maxY: q } = Se({
|
|
107
|
+
word: x,
|
|
108
|
+
fontSize: N,
|
|
109
|
+
pad: p,
|
|
110
|
+
canvas: R,
|
|
111
|
+
ctx: _,
|
|
112
|
+
svg: c
|
|
113
|
+
});
|
|
114
|
+
let $ = 0, V = 0;
|
|
115
|
+
for (; $ < Math.max(l, a) && !W && V < 25e3; ) {
|
|
116
|
+
for (let I = 0; I < 360; I += Q) {
|
|
117
|
+
V += 1;
|
|
118
|
+
const M = Math.round(u + $ * Math.cos(I * Math.PI / 180) - A / 2), T = Math.round(se + $ * Math.sin(I * Math.PI / 180) - v / 2);
|
|
119
|
+
if (!(M < 0 || T < 0 || M + A > l || T + v > a) && Fe({ mask: z, maskW: l, maskH: a, wx: M, wy: T, wordMask: D })) {
|
|
120
|
+
E.push({ ...x, x: M - l / 2, y: T - a / 2, fontSize: N, width: A, height: v, angle: 0, minX: U, minY: L, maxX: G, maxY: q }), Me({ mask: z, maskW: l, maskH: a, wx: M, wy: T, wordMask: D }), W = !0;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
$ += ne;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return E.sort((x, O) => O.fontSize - x.fontSize);
|
|
129
|
+
}
|
|
130
|
+
const pt = ["id"], gt = ["xmlns", "viewBox"], yt = ["width", "height"], bt = ["transform"], wt = ["x", "y", "width", "height", "onMouseover"], Ct = ["fill", "font-weight", "x", "y", "font-size", "transform"], kt = {
|
|
131
|
+
key: 4,
|
|
132
|
+
class: "vue-data-ui-watermark"
|
|
133
|
+
}, xt = {
|
|
134
|
+
key: 5,
|
|
135
|
+
"data-dom-to-png-ignore": "",
|
|
136
|
+
class: "reset-wrapper"
|
|
137
|
+
}, $t = ["innerHTML"], Tt = {
|
|
138
|
+
__name: "vue-ui-word-cloud",
|
|
139
|
+
props: {
|
|
140
|
+
config: {
|
|
141
|
+
type: Object,
|
|
142
|
+
default() {
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
dataset: {
|
|
147
|
+
type: [Array, String],
|
|
148
|
+
default() {
|
|
149
|
+
return [];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
setup(b, { expose: p }) {
|
|
154
|
+
Oe((t) => ({
|
|
155
|
+
"7200478e": t.slicerColor
|
|
156
|
+
}));
|
|
157
|
+
const { vue_ui_word_cloud: c } = Ve(), n = b, r = oe({
|
|
158
|
+
get() {
|
|
159
|
+
return !!n.dataset && n.dataset.length;
|
|
160
|
+
},
|
|
161
|
+
set(t) {
|
|
162
|
+
return t;
|
|
163
|
+
}
|
|
164
|
+
}), d = f(xe()), l = f(0), a = f(null), s = f(null), g = f(null), k = f(0), m = f(0), y = f(!1), e = oe({
|
|
165
|
+
get: () => ne(),
|
|
166
|
+
set: (t) => t
|
|
167
|
+
}), z = f(R());
|
|
168
|
+
function R() {
|
|
169
|
+
return typeof n.dataset == "string" ? Be(n.dataset) : n.dataset.map((t, i) => ({
|
|
170
|
+
...t,
|
|
171
|
+
value: Ye(t.value)
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
me(() => n.dataset, () => {
|
|
175
|
+
z.value = R(), L();
|
|
176
|
+
});
|
|
177
|
+
const { userOptionsVisible: _, setUserOptionsVisibility: Y, keepUserOptionState: le } = rt({ config: e.value }), { svgRef: Q } = ut({ config: e.value.style.chart.title });
|
|
178
|
+
function ne() {
|
|
179
|
+
const t = Te({
|
|
180
|
+
userConfig: n.config,
|
|
181
|
+
defaultConfig: c
|
|
182
|
+
});
|
|
183
|
+
return t.theme ? {
|
|
184
|
+
...Te({
|
|
185
|
+
userConfig: Ue.vue_ui_word_cloud[t.theme] || n.config,
|
|
186
|
+
defaultConfig: t
|
|
187
|
+
}),
|
|
188
|
+
customPalette: De[t.theme] || ue
|
|
189
|
+
} : t;
|
|
190
|
+
}
|
|
191
|
+
me(() => n.config, (t) => {
|
|
192
|
+
e.value = ne(), _.value = !e.value.userOptions.showOnChartHover, x(), k.value += 1, m.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
193
|
+
}, { deep: !0 });
|
|
194
|
+
const u = f({
|
|
195
|
+
width: e.value.style.chart.width,
|
|
196
|
+
height: e.value.style.chart.height,
|
|
197
|
+
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
198
|
+
minFontSize: e.value.style.chart.words.minFontSize,
|
|
199
|
+
bold: e.value.style.chart.words.bold
|
|
200
|
+
}), se = ot(() => {
|
|
201
|
+
L();
|
|
202
|
+
}, 10), ce = et(() => {
|
|
203
|
+
const { width: t, height: i } = tt({
|
|
204
|
+
chart: a.value,
|
|
205
|
+
title: e.value.style.chart.title.text ? s.value : null,
|
|
206
|
+
source: g.value
|
|
207
|
+
});
|
|
208
|
+
requestAnimationFrame(() => {
|
|
209
|
+
u.value.width = t, u.value.height = i, ke(se);
|
|
210
|
+
});
|
|
211
|
+
}), E = f(null);
|
|
212
|
+
Ne(x);
|
|
213
|
+
function x() {
|
|
214
|
+
Ee(n.dataset) ? $e({
|
|
215
|
+
componentName: "VueUiWordCloud",
|
|
216
|
+
type: "dataset"
|
|
217
|
+
}) : z.value.forEach((t, i) => {
|
|
218
|
+
Ge({
|
|
219
|
+
datasetObject: t,
|
|
220
|
+
requiredAttributes: ["name", "value"]
|
|
221
|
+
}).forEach((o) => {
|
|
222
|
+
r.value = !1, $e({
|
|
223
|
+
componentName: "VueUiWordCloud",
|
|
224
|
+
type: "datasetSerieAttribute",
|
|
225
|
+
property: o,
|
|
226
|
+
index: i
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
}), e.value.responsive && (E.value = new ResizeObserver(ce), E.value.observe(a.value.parentNode));
|
|
230
|
+
}
|
|
231
|
+
Ae(() => {
|
|
232
|
+
E.value && E.value.disconnect();
|
|
233
|
+
});
|
|
234
|
+
const { isPrinting: O, isImaging: W, generatePdf: N, generateImage: A } = Ke({
|
|
235
|
+
elementId: `wordCloud_${d.value}`,
|
|
236
|
+
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
237
|
+
options: e.value.userOptions.print
|
|
238
|
+
}), v = f({
|
|
239
|
+
showTable: e.value.table.show,
|
|
240
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
241
|
+
});
|
|
242
|
+
function D(t, i, o = "Arial") {
|
|
243
|
+
const C = document.createElement("canvas").getContext("2d");
|
|
244
|
+
return C.font = `${i}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
245
|
+
width: C.measureText(t).width + e.value.style.chart.words.proximity,
|
|
246
|
+
height: i
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
const U = f([]);
|
|
250
|
+
me(() => n.dataset, L, { immediate: !0 });
|
|
251
|
+
function L() {
|
|
252
|
+
const t = [...z.value].map((C) => C.value), i = Math.max(...t), o = Math.min(...t), S = [...z.value].map((C, H) => {
|
|
253
|
+
let j = (C.value - o) / (i - o) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
|
|
254
|
+
j = isNaN(j) ? u.value.minFontSize : j;
|
|
255
|
+
const be = D(C.name, j);
|
|
256
|
+
return {
|
|
257
|
+
...C,
|
|
258
|
+
id: xe(),
|
|
259
|
+
fontSize: j,
|
|
260
|
+
width: be.width,
|
|
261
|
+
height: be.height,
|
|
262
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[H] || e.value.customPalette[H % e.value.customPalette.length] || ue[H] || ue[H % ue.length] : e.value.style.chart.words.color
|
|
263
|
+
};
|
|
264
|
+
});
|
|
265
|
+
U.value = ft({
|
|
266
|
+
words: S,
|
|
267
|
+
svg: u.value,
|
|
268
|
+
proximity: e.value.style.chart.words.proximity,
|
|
269
|
+
strictPixelPadding: e.value.strictPixelPadding
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
const G = oe(() => {
|
|
273
|
+
const t = U.value.map((o) => ({
|
|
274
|
+
name: o.name,
|
|
275
|
+
color: o.color
|
|
276
|
+
})), i = U.value.map((o) => o.value);
|
|
277
|
+
return { head: t, body: i };
|
|
278
|
+
});
|
|
279
|
+
function q() {
|
|
280
|
+
ke(() => {
|
|
281
|
+
const t = G.value.head.map((S, C) => [[
|
|
282
|
+
S.name
|
|
283
|
+
], [G.value.body[C]]]), i = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = je(i);
|
|
284
|
+
qe({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
const $ = oe(() => {
|
|
288
|
+
const t = [
|
|
289
|
+
e.value.table.columnNames.series,
|
|
290
|
+
e.value.table.columnNames.value
|
|
291
|
+
], i = G.value.head.map((C, H) => {
|
|
292
|
+
const j = Le({ p: e.value.table.td.prefix, v: G.value.body[H], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
293
|
+
return [
|
|
294
|
+
{
|
|
295
|
+
color: C.color,
|
|
296
|
+
name: C.name
|
|
297
|
+
},
|
|
298
|
+
j
|
|
299
|
+
];
|
|
300
|
+
}), o = {
|
|
301
|
+
th: {
|
|
302
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
303
|
+
color: e.value.table.th.color,
|
|
304
|
+
outline: e.value.table.th.outline
|
|
305
|
+
},
|
|
306
|
+
td: {
|
|
307
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
308
|
+
color: e.value.table.td.color,
|
|
309
|
+
outline: e.value.table.td.outline
|
|
310
|
+
},
|
|
311
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
312
|
+
};
|
|
313
|
+
return {
|
|
314
|
+
colNames: [
|
|
315
|
+
e.value.table.columnNames.series,
|
|
316
|
+
e.value.table.columnNames.value
|
|
317
|
+
],
|
|
318
|
+
head: t,
|
|
319
|
+
body: i,
|
|
320
|
+
config: o
|
|
321
|
+
};
|
|
322
|
+
}), V = f(!1);
|
|
323
|
+
function I(t) {
|
|
324
|
+
V.value = t, l.value += 1;
|
|
325
|
+
}
|
|
326
|
+
function M() {
|
|
327
|
+
return U.value;
|
|
328
|
+
}
|
|
329
|
+
function T() {
|
|
330
|
+
v.value.showTable = !v.value.showTable;
|
|
331
|
+
}
|
|
332
|
+
function ge() {
|
|
333
|
+
v.value.showTooltip = !v.value.showTooltip;
|
|
334
|
+
}
|
|
335
|
+
const ee = f(!1);
|
|
336
|
+
function de() {
|
|
337
|
+
ee.value = !ee.value;
|
|
338
|
+
}
|
|
339
|
+
const Pe = oe(() => !ee.value && e.value.style.chart.zoom.show), { viewBox: ie, resetZoom: ye, isZoom: ze } = ct(Q, {
|
|
340
|
+
x: 0,
|
|
341
|
+
y: 0,
|
|
342
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
343
|
+
height: u.value.height <= 0 ? 10 : u.value.height
|
|
344
|
+
}, 1, Pe);
|
|
345
|
+
p({
|
|
346
|
+
getData: M,
|
|
347
|
+
generateCsv: q,
|
|
348
|
+
generatePdf: N,
|
|
349
|
+
generateImage: A,
|
|
350
|
+
toggleTable: T,
|
|
351
|
+
toggleTooltip: ge,
|
|
352
|
+
toggleAnnotator: de
|
|
353
|
+
});
|
|
354
|
+
const Z = f(null), te = f(!1), ve = f(""), he = f(null);
|
|
355
|
+
function _e(t) {
|
|
356
|
+
if (!v.value.showTooltip) return;
|
|
357
|
+
Z.value = t.id, he.value = { datapoint: t, config: e.value };
|
|
358
|
+
const i = e.value.style.chart.tooltip.customFormat;
|
|
359
|
+
if (te.value = !1, Ze(i))
|
|
360
|
+
try {
|
|
361
|
+
const o = i({
|
|
362
|
+
datapoint: t,
|
|
363
|
+
config: e.value
|
|
364
|
+
});
|
|
365
|
+
typeof o == "string" && (ve.value = o, te.value = !0);
|
|
366
|
+
} catch {
|
|
367
|
+
console.warn("Custom format cannot be applied."), te.value = !1;
|
|
368
|
+
}
|
|
369
|
+
if (!te.value) {
|
|
370
|
+
let o = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
371
|
+
ve.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
|
|
372
|
+
}
|
|
373
|
+
y.value = !0;
|
|
374
|
+
}
|
|
375
|
+
return (t, i) => (w(), X("div", {
|
|
376
|
+
class: "vue-ui-word-cloud",
|
|
377
|
+
ref_key: "wordCloudChart",
|
|
378
|
+
ref: a,
|
|
379
|
+
id: `wordCloud_${d.value}`,
|
|
380
|
+
style: re(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
381
|
+
onMouseenter: i[3] || (i[3] = () => h(Y)(!0)),
|
|
382
|
+
onMouseleave: i[4] || (i[4] = () => h(Y)(!1))
|
|
383
|
+
}, [
|
|
384
|
+
e.value.userOptions.buttons.annotator ? (w(), ae(it, {
|
|
385
|
+
key: 0,
|
|
386
|
+
svgRef: h(Q),
|
|
387
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
388
|
+
color: e.value.style.chart.color,
|
|
389
|
+
active: ee.value,
|
|
390
|
+
onClose: de
|
|
391
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : B("", !0),
|
|
392
|
+
e.value.style.chart.title.text ? (w(), X("div", {
|
|
393
|
+
key: 1,
|
|
394
|
+
ref_key: "chartTitle",
|
|
395
|
+
ref: s,
|
|
396
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
397
|
+
}, [
|
|
398
|
+
(w(), ae(Je, {
|
|
399
|
+
key: `title_${k.value}`,
|
|
400
|
+
config: {
|
|
401
|
+
title: {
|
|
402
|
+
...e.value.style.chart.title
|
|
403
|
+
},
|
|
404
|
+
subtitle: {
|
|
405
|
+
...e.value.style.chart.title.subtitle
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}, null, 8, ["config"]))
|
|
409
|
+
], 512)) : B("", !0),
|
|
410
|
+
e.value.userOptions.show && r.value && (h(le) || h(_)) ? (w(), ae(Qe, {
|
|
411
|
+
ref: "details",
|
|
412
|
+
key: `user_option_${l.value}`,
|
|
413
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
414
|
+
color: e.value.style.chart.color,
|
|
415
|
+
isPrinting: h(O),
|
|
416
|
+
isImaging: h(W),
|
|
417
|
+
uid: d.value,
|
|
418
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
419
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
420
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
421
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
422
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
423
|
+
isFullscreen: V.value,
|
|
424
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
425
|
+
chartElement: a.value,
|
|
426
|
+
position: e.value.userOptions.position,
|
|
427
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
428
|
+
isTooltip: v.value.showTooltip,
|
|
429
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
430
|
+
isAnnotation: ee.value,
|
|
431
|
+
onToggleFullscreen: I,
|
|
432
|
+
onGeneratePdf: h(N),
|
|
433
|
+
onGenerateCsv: q,
|
|
434
|
+
onGenerateImage: h(A),
|
|
435
|
+
onToggleTable: T,
|
|
436
|
+
onToggleTooltip: ge,
|
|
437
|
+
onToggleAnnotator: de,
|
|
438
|
+
style: re({
|
|
439
|
+
visibility: h(le) ? h(_) ? "visible" : "hidden" : "visible"
|
|
440
|
+
})
|
|
441
|
+
}, Ie({ _: 2 }, [
|
|
442
|
+
t.$slots.menuIcon ? {
|
|
443
|
+
name: "menuIcon",
|
|
444
|
+
fn: P(({ isOpen: o, color: S }) => [
|
|
445
|
+
F(t.$slots, "menuIcon", J(K({ isOpen: o, color: S })), void 0, !0)
|
|
446
|
+
]),
|
|
447
|
+
key: "0"
|
|
448
|
+
} : void 0,
|
|
449
|
+
t.$slots.optionPdf ? {
|
|
450
|
+
name: "optionPdf",
|
|
451
|
+
fn: P(() => [
|
|
452
|
+
F(t.$slots, "optionPdf", {}, void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
key: "1"
|
|
455
|
+
} : void 0,
|
|
456
|
+
t.$slots.optionCsv ? {
|
|
457
|
+
name: "optionCsv",
|
|
458
|
+
fn: P(() => [
|
|
459
|
+
F(t.$slots, "optionCsv", {}, void 0, !0)
|
|
460
|
+
]),
|
|
461
|
+
key: "2"
|
|
462
|
+
} : void 0,
|
|
463
|
+
t.$slots.optionImg ? {
|
|
464
|
+
name: "optionImg",
|
|
465
|
+
fn: P(() => [
|
|
466
|
+
F(t.$slots, "optionImg", {}, void 0, !0)
|
|
467
|
+
]),
|
|
468
|
+
key: "3"
|
|
469
|
+
} : void 0,
|
|
470
|
+
t.$slots.optionTable ? {
|
|
471
|
+
name: "optionTable",
|
|
472
|
+
fn: P(() => [
|
|
473
|
+
F(t.$slots, "optionTable", {}, void 0, !0)
|
|
474
|
+
]),
|
|
475
|
+
key: "4"
|
|
476
|
+
} : void 0,
|
|
477
|
+
t.$slots.optionFullscreen ? {
|
|
478
|
+
name: "optionFullscreen",
|
|
479
|
+
fn: P(({ toggleFullscreen: o, isFullscreen: S }) => [
|
|
480
|
+
F(t.$slots, "optionFullscreen", J(K({ toggleFullscreen: o, isFullscreen: S })), void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
key: "5"
|
|
483
|
+
} : void 0,
|
|
484
|
+
t.$slots.optionAnnotator ? {
|
|
485
|
+
name: "optionAnnotator",
|
|
486
|
+
fn: P(({ toggleAnnotator: o, isAnnotator: S }) => [
|
|
487
|
+
F(t.$slots, "optionAnnotator", J(K({ toggleAnnotator: o, isAnnotator: S })), void 0, !0)
|
|
488
|
+
]),
|
|
489
|
+
key: "6"
|
|
490
|
+
} : void 0
|
|
491
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
|
|
492
|
+
r.value ? (w(), X("svg", {
|
|
493
|
+
key: 3,
|
|
494
|
+
ref_key: "svgRef",
|
|
495
|
+
ref: Q,
|
|
496
|
+
class: we({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
497
|
+
xmlns: h(He),
|
|
498
|
+
viewBox: `${h(ie).x} ${h(ie).y} ${h(ie).width} ${h(ie).height}`,
|
|
499
|
+
style: "overflow:hidden;background:transparent;"
|
|
500
|
+
}, [
|
|
501
|
+
fe(nt),
|
|
502
|
+
t.$slots["chart-background"] ? (w(), X("foreignObject", {
|
|
503
|
+
key: 0,
|
|
504
|
+
x: 0,
|
|
505
|
+
y: 0,
|
|
506
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
507
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
508
|
+
style: {
|
|
509
|
+
pointerEvents: "none"
|
|
510
|
+
}
|
|
511
|
+
}, [
|
|
512
|
+
F(t.$slots, "chart-background", {}, void 0, !0)
|
|
513
|
+
], 8, yt)) : B("", !0),
|
|
514
|
+
pe("g", {
|
|
515
|
+
transform: `translate(${(u.value.width <= 0 ? 10 : u.value.width) / 2}, ${(u.value.height <= 0 ? 10 : u.value.height) / 2})`
|
|
516
|
+
}, [
|
|
517
|
+
(w(!0), X(Xe, null, Re(U.value, (o, S) => (w(), X("g", null, [
|
|
518
|
+
o.minX !== void 0 ? (w(), X("rect", {
|
|
519
|
+
key: 0,
|
|
520
|
+
x: o.x + o.minX,
|
|
521
|
+
y: o.y + o.minY * 1.25,
|
|
522
|
+
width: o.maxX - o.minX,
|
|
523
|
+
height: o.maxY - o.minY,
|
|
524
|
+
fill: "transparent",
|
|
525
|
+
"pointer-events": "visiblePainted",
|
|
526
|
+
onMouseover: (C) => _e(o),
|
|
527
|
+
onMouseleave: i[0] || (i[0] = (C) => {
|
|
528
|
+
Z.value = null, y.value = !1;
|
|
529
|
+
})
|
|
530
|
+
}, null, 40, wt)) : B("", !0),
|
|
531
|
+
(w(), X("text", {
|
|
532
|
+
fill: o.color,
|
|
533
|
+
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
534
|
+
key: S,
|
|
535
|
+
x: o.x,
|
|
536
|
+
y: o.y,
|
|
537
|
+
"font-size": o.fontSize,
|
|
538
|
+
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
539
|
+
class: we({ animated: e.value.useCssAnimation, "word-selected": Z.value && Z.value === o.id && v.value.showTooltip, "word-not-selected": Z.value && Z.value !== o.id && v.value.showTooltip }),
|
|
540
|
+
"text-anchor": "middle",
|
|
541
|
+
"dominant-baseline": "central",
|
|
542
|
+
style: re(`animation-delay:${S * e.value.animationDelayMs}ms !important; pointer-events:none;`)
|
|
543
|
+
}, Ce(o.name), 15, Ct))
|
|
544
|
+
]))), 256))
|
|
545
|
+
], 8, bt),
|
|
546
|
+
F(t.$slots, "svg", {
|
|
547
|
+
svg: { height: u.value.height, width: u.value.width }
|
|
548
|
+
}, void 0, !0)
|
|
549
|
+
], 10, gt)) : B("", !0),
|
|
550
|
+
t.$slots.watermark ? (w(), X("div", kt, [
|
|
551
|
+
F(t.$slots, "watermark", J(K({ isPrinting: h(O) || h(W) })), void 0, !0)
|
|
552
|
+
])) : B("", !0),
|
|
553
|
+
h(ze) ? (w(), X("div", xt, [
|
|
554
|
+
F(t.$slots, "reset-action", { reset: h(ye) }, () => [
|
|
555
|
+
pe("button", {
|
|
556
|
+
"data-cy-reset": "",
|
|
557
|
+
tabindex: "0",
|
|
558
|
+
role: "button",
|
|
559
|
+
class: "vue-data-ui-refresh-button",
|
|
560
|
+
style: re({
|
|
561
|
+
background: e.value.style.chart.backgroundColor
|
|
562
|
+
}),
|
|
563
|
+
onClick: i[1] || (i[1] = (o) => h(ye)(!0))
|
|
564
|
+
}, [
|
|
565
|
+
fe(dt, {
|
|
566
|
+
name: "refresh",
|
|
567
|
+
stroke: e.value.style.chart.color
|
|
568
|
+
}, null, 8, ["stroke"])
|
|
569
|
+
], 4)
|
|
570
|
+
], !0)
|
|
571
|
+
])) : B("", !0),
|
|
572
|
+
fe(st, {
|
|
573
|
+
show: v.value.showTooltip && y.value,
|
|
574
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
575
|
+
color: e.value.style.chart.tooltip.color,
|
|
576
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
577
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
578
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
579
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
580
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
581
|
+
position: e.value.style.chart.tooltip.position,
|
|
582
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
583
|
+
parent: a.value,
|
|
584
|
+
content: ve.value,
|
|
585
|
+
isCustom: te.value
|
|
586
|
+
}, {
|
|
587
|
+
"tooltip-before": P(() => [
|
|
588
|
+
F(t.$slots, "tooltip-before", J(K({ ...he.value })), void 0, !0)
|
|
589
|
+
]),
|
|
590
|
+
"tooltip-after": P(() => [
|
|
591
|
+
F(t.$slots, "tooltip-after", J(K({ ...he.value })), void 0, !0)
|
|
592
|
+
]),
|
|
593
|
+
_: 3
|
|
594
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
595
|
+
t.$slots.source ? (w(), X("div", {
|
|
596
|
+
key: 6,
|
|
597
|
+
ref_key: "source",
|
|
598
|
+
ref: g,
|
|
599
|
+
dir: "auto"
|
|
600
|
+
}, [
|
|
601
|
+
F(t.$slots, "source", {}, void 0, !0)
|
|
602
|
+
], 512)) : B("", !0),
|
|
603
|
+
r.value ? (w(), ae(at, {
|
|
604
|
+
key: 7,
|
|
605
|
+
hideDetails: "",
|
|
606
|
+
config: {
|
|
607
|
+
open: v.value.showTable,
|
|
608
|
+
maxHeight: 1e4,
|
|
609
|
+
body: {
|
|
610
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
611
|
+
color: e.value.style.chart.color
|
|
612
|
+
},
|
|
613
|
+
head: {
|
|
614
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
615
|
+
color: e.value.style.chart.color
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}, {
|
|
619
|
+
content: P(() => [
|
|
620
|
+
(w(), ae(lt, {
|
|
621
|
+
key: `table_${m.value}`,
|
|
622
|
+
colNames: $.value.colNames,
|
|
623
|
+
head: $.value.head,
|
|
624
|
+
body: $.value.body,
|
|
625
|
+
config: $.value.config,
|
|
626
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
|
+
onClose: i[2] || (i[2] = (o) => v.value.showTable = !1)
|
|
628
|
+
}, {
|
|
629
|
+
th: P(({ th: o }) => [
|
|
630
|
+
pe("div", {
|
|
631
|
+
innerHTML: o,
|
|
632
|
+
style: { display: "flex", "align-items": "center" }
|
|
633
|
+
}, null, 8, $t)
|
|
634
|
+
]),
|
|
635
|
+
td: P(({ td: o }) => [
|
|
636
|
+
We(Ce(o.name || o), 1)
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
640
|
+
]),
|
|
641
|
+
_: 1
|
|
642
|
+
}, 8, ["config"])) : B("", !0)
|
|
643
|
+
], 44, pt));
|
|
644
|
+
}
|
|
645
|
+
}, Dt = /* @__PURE__ */ vt(Tt, [["__scopeId", "data-v-cda211d1"]]);
|
|
646
|
+
export {
|
|
647
|
+
Dt as default
|
|
648
|
+
};
|