vue-data-ui 3.1.18 → 3.1.19-next.0
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-BC5klzOh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CkjMZyIs.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-BPiT94Lb.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-bx5e2RB2.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-CywujQw9.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-h35dp0Qf.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CvnlQ378.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-BzGzkGiC.js → PackageVersion-DRpg18lg.js} +3 -3
- package/dist/{PenAndPaper-Deh70G9d.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-sVxD_SDm.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-CQB967He.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-DFRSPT3_.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-B_WMW2Bp.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-Db9jy0Iu.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CtECQwBN.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-BHpS3cMi.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-BArHHegM.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D1L3r23x.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/universal.d.ts +1 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DeqXeTNw.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-nFj0xF0a.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/vue-data-ui-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-BZDLbeym.js} +58 -57
- package/dist/{vue-ui-accordion-7cfJUVx5.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BXMIUNB_.js → vue-ui-age-pyramid-C1NMeWTB.js} +28 -27
- package/dist/{vue-ui-annotator-aCDhQ-m2.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-Cd_iix-z.js → vue-ui-bullet-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-5L50If0h.js} +75 -74
- package/dist/{vue-ui-cursor-DJQWAIj8.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CIACUYB-.js → vue-ui-dashboard-2FyL5ac1.js} +68 -68
- package/dist/{vue-ui-digits-CLV8h-P8.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-sO6G5oor.js → vue-ui-donut-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-MM8rPNWR.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BCfEt867.js} +105 -104
- package/dist/{vue-ui-kpi-CfX-zUDS.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-C1nANuMy.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-BU7T1ysb.js → vue-ui-molecule-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-V6jytnl0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-BC99Cua7.js → vue-ui-quadrant-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-BmmwGJaI.js} +90 -89
- package/dist/{vue-ui-rating-BNCKLcCa.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-CYFQcAgc.js → vue-ui-relation-circle-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-FtA6-6zz.js} +5 -5
- package/dist/{vue-ui-smiley-t16dEIoQ.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/{vue-ui-spark-trend-DskdjYw4.js → vue-ui-spark-trend-qt8UvEPc.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DgHvA8ra.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BSGiRpQ9.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-DKHtmqLd.js} +9 -8
- package/dist/{vue-ui-table-heatmap-BfXe_f0K.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DyrnPNGv.js → vue-ui-table-sparkline-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-BjzutuG2.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -11
- package/dist/index-smzxfsyV.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DeKmJzsE.js +0 -13
- package/dist/vue-data-ui-DcBYykse.js +0 -325
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { useCssVars as it, defineAsyncComponent as
|
|
1
|
+
import { useCssVars as it, defineAsyncComponent as j, computed as ae, ref as m, toRefs as ut, watch as oe, shallowRef as We, onMounted as rt, onBeforeUnmount as ct, createElementBlock as _, openBlock as k, unref as u, normalizeStyle as ye, createBlock as le, createCommentVNode as W, createVNode as we, createSlots as Xe, withCtx as S, renderSlot as F, normalizeProps as ne, guardReactiveProps as se, normalizeClass as Ee, createElementVNode as ke, Fragment as vt, renderList as dt, toDisplayString as Me, resolveDynamicComponent as mt, mergeProps as ht, createTextVNode as Ue, nextTick as Le } from "vue";
|
|
2
2
|
import { d as ft, t as pt, u as gt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
3
|
+
import { c as Ye, t as bt, aj as yt, q as wt, b as kt, p as Ce, o as je, f as qe, g as Ct, d as xt, X as $t, x as Tt, y as St, z as Ft } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { u as Mt, a as Ge } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as Pt, B as At } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ot } from "./usePrinter-Yeu5jOfm.js";
|
|
7
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Dt from "./img-CH7J0fYg.js";
|
|
10
|
+
import Nt from "./Title-pI68ZJsq.js";
|
|
11
|
+
import { t as _t } from "./themes-D3cUNuKw.js";
|
|
11
12
|
import { u as Bt } from "./usePanZoom-BVca3eMk.js";
|
|
12
13
|
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
14
|
function Vt(C, g) {
|
|
@@ -74,7 +75,7 @@ function Xt({
|
|
|
74
75
|
X !== y && (R = ($.value - y) / (X - y) * (M - x) + x), R = Math.max(x, Math.min(M, R));
|
|
75
76
|
let A = !1, I = R;
|
|
76
77
|
for (; !A && I >= s; ) {
|
|
77
|
-
let { w: O, h: z, wordMask: V, minX:
|
|
78
|
+
let { w: O, h: z, wordMask: V, minX: q, minY: G, maxX: H, maxY: Z } = He({
|
|
78
79
|
word: $,
|
|
79
80
|
fontSize: I,
|
|
80
81
|
pad: g,
|
|
@@ -89,7 +90,7 @@ function Xt({
|
|
|
89
90
|
L += 1;
|
|
90
91
|
const P = Math.round(Y + D * Math.cos(i * Math.PI / 180) - O / 2), p = Math.round(K + D * Math.sin(i * Math.PI / 180) - z / 2);
|
|
91
92
|
if (!(P < 0 || p < 0 || P + O > l || p + z > o) && Ze({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V })) {
|
|
92
|
-
ue.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: I, width: O, height: z, angle: 0, minX:
|
|
93
|
+
ue.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: I, width: O, height: z, angle: 0, minX: q, minY: G, maxX: H, maxY: Z }), Je({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V }), A = !0;
|
|
93
94
|
break;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -99,7 +100,7 @@ function Xt({
|
|
|
99
100
|
}
|
|
100
101
|
if (!A && I < s) {
|
|
101
102
|
I = s;
|
|
102
|
-
const { w: O, h: z, wordMask: V, minX:
|
|
103
|
+
const { w: O, h: z, wordMask: V, minX: q, minY: G, maxX: H, maxY: Z } = He({
|
|
103
104
|
word: $,
|
|
104
105
|
fontSize: I,
|
|
105
106
|
pad: g,
|
|
@@ -113,7 +114,7 @@ function Xt({
|
|
|
113
114
|
L += 1;
|
|
114
115
|
const P = Math.round(Y + D * Math.cos(i * Math.PI / 180) - O / 2), p = Math.round(K + D * Math.sin(i * Math.PI / 180) - z / 2);
|
|
115
116
|
if (!(P < 0 || p < 0 || P + O > l || p + z > o) && Ze({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V })) {
|
|
116
|
-
ue.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: I, width: O, height: z, angle: 0, minX:
|
|
117
|
+
ue.push({ ...$, x: P - l / 2, y: p - o / 2, fontSize: I, width: O, height: z, angle: 0, minX: q, minY: G, maxX: H, maxY: Z }), Je({ mask: E, maskW: l, maskH: o, wx: P, wy: p, wordMask: V }), A = !0;
|
|
117
118
|
break;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
@@ -123,7 +124,7 @@ function Xt({
|
|
|
123
124
|
}
|
|
124
125
|
return ue.sort(($, R) => R.fontSize - $.fontSize);
|
|
125
126
|
}
|
|
126
|
-
const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["transform"],
|
|
127
|
+
const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["transform"], jt = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], qt = ["fill", "font-weight", "x", "y", "font-size", "transform"], Gt = {
|
|
127
128
|
key: 3,
|
|
128
129
|
class: "vue-data-ui-watermark"
|
|
129
130
|
}, Ht = {
|
|
@@ -150,17 +151,17 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
150
151
|
it((t) => ({
|
|
151
152
|
"20b7b35f": t.slicerColor
|
|
152
153
|
}));
|
|
153
|
-
const v =
|
|
154
|
+
const v = j(() => import("./Tooltip-Clf2K3CF.js")), h = j(() => import("./BaseIcon-D2f9w5Z5.js")), d = j(() => import("./vue-ui-accordion-D-L73-T2.js")), f = j(() => import("./DataTable-xISHA7Pu.js")), l = j(() => import("./PenAndPaper-CtDMyIvW.js")), o = j(() => import("./UserOptions-Bn3u4JQu.js")), s = j(() => import("./PackageVersion-DRpg18lg.js")), x = j(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_word_cloud: M } = Mt(), r = C, y = ae({
|
|
154
155
|
get() {
|
|
155
156
|
return !!r.dataset && r.dataset.length;
|
|
156
157
|
},
|
|
157
158
|
set(t) {
|
|
158
159
|
return t;
|
|
159
160
|
}
|
|
160
|
-
}), X = m(Ye()), E = m(0), w = m(null), B = m(null), U = m(null), me = m(0), he = m(0), ie = m(!1), Y = m(null), K = m(null), e = m(
|
|
161
|
+
}), X = m(Ye()), E = m(0), w = m(null), B = m(null), U = m(null), me = m(0), he = m(0), ie = m(!1), Y = m(null), K = m(null), e = m(G()), { loading: ue, FINAL_DATASET: $, manualLoading: R } = Pt({
|
|
161
162
|
...ut(r),
|
|
162
163
|
FINAL_CONFIG: e,
|
|
163
|
-
prepareConfig:
|
|
164
|
+
prepareConfig: G,
|
|
164
165
|
skeletonDataset: [
|
|
165
166
|
{ name: "Lorem", value: 6 },
|
|
166
167
|
{ name: "ipsum", value: 3 },
|
|
@@ -211,7 +212,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
211
212
|
{ name: "fames", value: 1 },
|
|
212
213
|
{ name: "ante", value: 1 }
|
|
213
214
|
],
|
|
214
|
-
skeletonConfig:
|
|
215
|
+
skeletonConfig: bt({
|
|
215
216
|
defaultConfig: e.value,
|
|
216
217
|
userConfig: {
|
|
217
218
|
userOptions: { show: !1 },
|
|
@@ -233,26 +234,26 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
233
234
|
})
|
|
234
235
|
}), A = m(I());
|
|
235
236
|
function I() {
|
|
236
|
-
return typeof $.value == "string" ?
|
|
237
|
+
return typeof $.value == "string" ? yt($.value) : $.value.map((t, n) => ({
|
|
237
238
|
...t,
|
|
238
|
-
value:
|
|
239
|
+
value: wt(t.value)
|
|
239
240
|
}));
|
|
240
241
|
}
|
|
241
242
|
oe(() => r.dataset, () => {
|
|
242
243
|
A.value = I(), xe(), Z();
|
|
243
244
|
});
|
|
244
|
-
const { userOptionsVisible: O, setUserOptionsVisibility: z, keepUserOptionState: V } =
|
|
245
|
-
function
|
|
246
|
-
const t =
|
|
245
|
+
const { userOptionsVisible: O, setUserOptionsVisibility: z, keepUserOptionState: V } = It({ config: e.value }), { svgRef: q } = zt({ config: e.value.style.chart.title });
|
|
246
|
+
function G() {
|
|
247
|
+
const t = Ge({
|
|
247
248
|
userConfig: r.config,
|
|
248
249
|
defaultConfig: M
|
|
249
250
|
});
|
|
250
251
|
return t.theme ? {
|
|
251
|
-
...
|
|
252
|
-
userConfig:
|
|
252
|
+
...Ge({
|
|
253
|
+
userConfig: _t.vue_ui_word_cloud[t.theme] || r.config,
|
|
253
254
|
defaultConfig: t
|
|
254
255
|
}),
|
|
255
|
-
customPalette:
|
|
256
|
+
customPalette: kt[t.theme] || Ce
|
|
256
257
|
} : t;
|
|
257
258
|
}
|
|
258
259
|
const H = m({ x: 0, y: 0 });
|
|
@@ -274,7 +275,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
274
275
|
oe(() => L.value, (t) => {
|
|
275
276
|
t === !1 && (D(), Z());
|
|
276
277
|
}), oe(() => r.config, (t) => {
|
|
277
|
-
e.value =
|
|
278
|
+
e.value = G(), O.value = !e.value.userOptions.showOnChartHover, Ae(), me.value += 1, he.value += 1, T.value.showTable = e.value.table.show, T.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
278
279
|
}, { deep: !0 });
|
|
279
280
|
const i = m({
|
|
280
281
|
width: e.value.style.chart.width,
|
|
@@ -296,16 +297,16 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
296
297
|
rt(Ae);
|
|
297
298
|
const Pe = ae(() => !!e.value.debug);
|
|
298
299
|
function Ae() {
|
|
299
|
-
|
|
300
|
+
je(r.dataset) ? qe({
|
|
300
301
|
componentName: "VueUiWordCloud",
|
|
301
302
|
type: "dataset",
|
|
302
303
|
debug: Pe.value
|
|
303
304
|
}) : A.value.forEach((t, n) => {
|
|
304
|
-
|
|
305
|
+
Ct({
|
|
305
306
|
datasetObject: t,
|
|
306
307
|
requiredAttributes: ["name", "value"]
|
|
307
308
|
}).forEach((a) => {
|
|
308
|
-
y.value = !1,
|
|
309
|
+
y.value = !1, qe({
|
|
309
310
|
componentName: "VueUiWordCloud",
|
|
310
311
|
type: "datasetSerieAttribute",
|
|
311
312
|
property: a,
|
|
@@ -313,12 +314,12 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
313
314
|
debug: Pe.value
|
|
314
315
|
});
|
|
315
316
|
});
|
|
316
|
-
}),
|
|
317
|
+
}), je(r.dataset) || (R.value = e.value.loading), e.value.responsive && (p.value && (Q.value && p.value.unobserve(Q.value), p.value.disconnect()), p.value = new ResizeObserver(P), Q.value = w.value.parentNode, p.value.observe(Q.value)), Z();
|
|
317
318
|
}
|
|
318
319
|
ct(() => {
|
|
319
320
|
p.value && (Q.value && p.value.unobserve(Q.value), p.value.disconnect());
|
|
320
321
|
});
|
|
321
|
-
const { isPrinting: Oe, isImaging: Ie, generatePdf: ze, generateImage: De } =
|
|
322
|
+
const { isPrinting: Oe, isImaging: Ie, generatePdf: ze, generateImage: De } = Ot({
|
|
322
323
|
elementId: `wordCloud_${X.value}`,
|
|
323
324
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
324
325
|
options: e.value.userOptions.print
|
|
@@ -373,8 +374,8 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
373
374
|
Le(() => {
|
|
374
375
|
const n = fe.value.head.map((b, N) => [[
|
|
375
376
|
b.name
|
|
376
|
-
], [fe.value.body[N]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), c =
|
|
377
|
-
t ? t(c) :
|
|
377
|
+
], [fe.value.body[N]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), c = Tt(a);
|
|
378
|
+
t ? t(c) : St({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
378
379
|
});
|
|
379
380
|
}
|
|
380
381
|
const pe = ae(() => {
|
|
@@ -382,7 +383,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
382
383
|
e.value.table.columnNames.series,
|
|
383
384
|
e.value.table.columnNames.value
|
|
384
385
|
], n = fe.value.head.map((b, N) => {
|
|
385
|
-
const J =
|
|
386
|
+
const J = xt({ p: e.value.table.td.prefix, v: fe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
386
387
|
return [
|
|
387
388
|
{
|
|
388
389
|
color: b.color,
|
|
@@ -429,7 +430,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
429
430
|
function Te() {
|
|
430
431
|
ce.value = !ce.value;
|
|
431
432
|
}
|
|
432
|
-
const et = ae(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: tt, setInitialViewBox: at } = Bt(
|
|
433
|
+
const et = ae(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: tt, setInitialViewBox: at } = Bt(q, {
|
|
433
434
|
x: 0,
|
|
434
435
|
y: 0,
|
|
435
436
|
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
@@ -437,7 +438,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
437
438
|
}, 1, et);
|
|
438
439
|
async function ot({ scale: t = 2 } = {}) {
|
|
439
440
|
if (!w.value) return;
|
|
440
|
-
const { width: n, height: a } = w.value.getBoundingClientRect(), c = n / a, { imageUri: b, base64: N } = await
|
|
441
|
+
const { width: n, height: a } = w.value.getBoundingClientRect(), c = n / a, { imageUri: b, base64: N } = await Dt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
441
442
|
return {
|
|
442
443
|
imageUri: b,
|
|
443
444
|
base64: N,
|
|
@@ -506,7 +507,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
506
507
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !T.value.showTooltip) return;
|
|
507
508
|
te.value = t.id, Fe.value = { datapoint: t, config: e.value };
|
|
508
509
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
509
|
-
if (de.value = !1,
|
|
510
|
+
if (de.value = !1, Ft(a))
|
|
510
511
|
try {
|
|
511
512
|
const c = a({
|
|
512
513
|
datapoint: t,
|
|
@@ -533,7 +534,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
533
534
|
}, [
|
|
534
535
|
e.value.userOptions.buttons.annotator ? (k(), le(u(l), {
|
|
535
536
|
key: 0,
|
|
536
|
-
svgRef: u(
|
|
537
|
+
svgRef: u(q),
|
|
537
538
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
538
539
|
color: e.value.style.chart.color,
|
|
539
540
|
active: ce.value,
|
|
@@ -545,7 +546,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
545
546
|
ref: B,
|
|
546
547
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
547
548
|
}, [
|
|
548
|
-
(k(), le(
|
|
549
|
+
(k(), le(Nt, {
|
|
549
550
|
key: `title_${me.value}`,
|
|
550
551
|
config: {
|
|
551
552
|
title: {
|
|
@@ -645,9 +646,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
645
646
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
|
|
646
647
|
(k(), _("svg", {
|
|
647
648
|
ref_key: "svgRef",
|
|
648
|
-
ref:
|
|
649
|
+
ref: q,
|
|
649
650
|
class: Ee({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value }),
|
|
650
|
-
xmlns: u(
|
|
651
|
+
xmlns: u($t),
|
|
651
652
|
viewBox: `${u(ge).x} ${u(ge).y} ${u(ge).width} ${u(ge).height}`,
|
|
652
653
|
style: "overflow:hidden;background:transparent;"
|
|
653
654
|
}, [
|
|
@@ -679,7 +680,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
679
680
|
onMouseover: (b) => st(a, c),
|
|
680
681
|
onMouseleave: (b) => lt(a, c),
|
|
681
682
|
onClick: (b) => nt(a, c)
|
|
682
|
-
}, null, 40,
|
|
683
|
+
}, null, 40, jt)) : W("", !0),
|
|
683
684
|
(k(), _("text", {
|
|
684
685
|
fill: a.color,
|
|
685
686
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
@@ -692,14 +693,14 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
692
693
|
"text-anchor": "middle",
|
|
693
694
|
"dominant-baseline": "central",
|
|
694
695
|
style: ye(`animation-delay:${c * e.value.animationDelayMs}ms !important; pointer-events:none;`)
|
|
695
|
-
}, Me(a.name), 15,
|
|
696
|
+
}, Me(a.name), 15, qt))
|
|
696
697
|
]))), 256))
|
|
697
698
|
], 8, Yt),
|
|
698
699
|
F(t.$slots, "svg", {
|
|
699
700
|
svg: { height: i.value.height, width: i.value.width }
|
|
700
701
|
}, void 0, !0)
|
|
701
702
|
], 10, Ut)),
|
|
702
|
-
t.$slots.watermark ? (k(), _("div",
|
|
703
|
+
t.$slots.watermark ? (k(), _("div", Gt, [
|
|
703
704
|
F(t.$slots, "watermark", ne(se({ isPrinting: u(Oe) || u(Ie) })), void 0, !0)
|
|
704
705
|
])) : W("", !0),
|
|
705
706
|
u(tt) ? (k(), _("div", Ht, [
|
|
@@ -811,10 +812,10 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Lt = ["width", "height"], Yt = ["t
|
|
|
811
812
|
key: "1"
|
|
812
813
|
} : void 0
|
|
813
814
|
]), 1040)) : W("", !0),
|
|
814
|
-
u(ue) ? (k(), le(
|
|
815
|
+
u(ue) ? (k(), le(At, { key: 7 })) : W("", !0)
|
|
815
816
|
], 44, Et));
|
|
816
817
|
}
|
|
817
|
-
},
|
|
818
|
+
}, va = /* @__PURE__ */ Rt(Jt, [["__scopeId", "data-v-416534c4"]]);
|
|
818
819
|
export {
|
|
819
|
-
|
|
820
|
+
va as default
|
|
820
821
|
};
|