vue-data-ui 3.23.0 → 3.23.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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, J as r, Jt as i, Kt as a, Pt as o, S as s, X as c, b as l, jt as u, pt as d, q as f, t as p, tt as m, xt as h } from "./lib-
|
|
2
|
+
import { $ as t, D as n, J as r, Jt as i, Kt as a, Pt as o, S as s, X as c, b as l, jt as u, pt as d, q as f, t as p, tt as m, xt as h } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as g, t as _ } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as v } from "./useConfig-
|
|
5
|
-
import { t as y } from "./usePrinter-
|
|
4
|
+
import { t as v } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as y } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as ee, t as te } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as b } from "./
|
|
8
|
-
import { t as x } from "./
|
|
9
|
-
import { t as S } from "./
|
|
10
|
-
import { t as C } from "./img-
|
|
11
|
-
import { n as w } from "./Title-
|
|
7
|
+
import { t as b } from "./useNestedProp-vPNvh7rV.js";
|
|
8
|
+
import { t as x } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as S } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
+
import { t as C } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as w } from "./Title-BE3qg9xl.js";
|
|
12
12
|
import { t as T } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { i as ne, t as re } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as ie } from "./A11yDataTable-DdRsVULz.js";
|
|
@@ -16,7 +16,7 @@ import { t as E } from "./useUserOptionState-DK-_1ddE.js";
|
|
|
16
16
|
import { t as ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
17
|
import { t as oe } from "./usePanZoom-CYU3B4T3.js";
|
|
18
18
|
import { t as se } from "./vue_ui_word_cloud-C-qIMNLu.js";
|
|
19
|
-
import { t as ce } from "./BaseZoomControls-
|
|
19
|
+
import { t as ce } from "./BaseZoomControls-BZvCnZEi.js";
|
|
20
20
|
import { Fragment as le, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as ue, createTextVNode as de, createVNode as fe, defineAsyncComponent as M, guardReactiveProps as N, mergeProps as pe, nextTick as me, normalizeClass as he, normalizeProps as P, normalizeStyle as ge, onBeforeUnmount as _e, onMounted as ve, openBlock as F, ref as I, renderList as ye, renderSlot as L, resolveDynamicComponent as be, shallowRef as xe, toDisplayString as Se, toRefs as Ce, unref as R, watch as we, withCtx as z } from "vue";
|
|
21
21
|
//#region src/wordcloud.js
|
|
22
22
|
var Te = {
|
|
@@ -347,16 +347,16 @@ function Ue(e, t, n) {
|
|
|
347
347
|
function We() {
|
|
348
348
|
return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Ge({ value: e, minimumValue: t, maximumValue: n, configuredMinimumFontSize: r, maximumFontSize: i }) {
|
|
351
351
|
if (n === t) return i;
|
|
352
352
|
let a = (e - t) / (n - t) * (i - r) + r;
|
|
353
353
|
return Math.max(r, Math.min(i, a));
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ke({ bitmapHeight: e, proximity: t, strictPixelPadding: n, minimumVisualPadding: r }) {
|
|
356
356
|
let i = Math.max(0, Math.round(t || 0)), a = Math.ceil(e * .035) + 2;
|
|
357
357
|
return Math.max(i, a, n ? 3 : 0, r);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function qe({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitmap: r, bitmapKey: i, proximity: a, minimumVisualPadding: o }) {
|
|
360
360
|
let s = e.runs, c = e.w, l = e.h, u = e.minX, d = e.minY, f = e.maxX, p = e.maxY;
|
|
361
361
|
if (!s.length) return {
|
|
362
362
|
runs: s,
|
|
@@ -367,7 +367,7 @@ function Ke({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitma
|
|
|
367
367
|
bitmapMaximumX: f,
|
|
368
368
|
bitmapMaximumY: p
|
|
369
369
|
};
|
|
370
|
-
let m =
|
|
370
|
+
let m = Ke({
|
|
371
371
|
bitmapHeight: l,
|
|
372
372
|
proximity: a,
|
|
373
373
|
strictPixelPadding: t,
|
|
@@ -410,10 +410,10 @@ function Ke({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitma
|
|
|
410
410
|
bitmapMaximumY: p
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
async function
|
|
413
|
+
async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, cosineArray: h, sineArray: g, radiusStep: _, maximumAttempts: v, maybeYield: y, proximity: ee, minimumVisualPadding: te }) {
|
|
414
414
|
let b = 1;
|
|
415
415
|
for (; b >= n;) {
|
|
416
|
-
let { runs: n, bitmapWidth: x, bitmapHeight: S, bitmapMinimumX: C, bitmapMinimumY: w, bitmapMaximumX: T, bitmapMaximumY: ne } =
|
|
416
|
+
let { runs: n, bitmapWidth: x, bitmapHeight: S, bitmapMinimumX: C, bitmapMinimumY: w, bitmapMaximumX: T, bitmapMaximumY: ne } = qe({
|
|
417
417
|
currentBitmap: b === 1 ? e : V(e, b),
|
|
418
418
|
strictPixelPadding: d,
|
|
419
419
|
scaleFactor: b,
|
|
@@ -465,8 +465,8 @@ async function qe({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
|
|
|
465
465
|
}
|
|
466
466
|
return null;
|
|
467
467
|
}
|
|
468
|
-
async function
|
|
469
|
-
return await
|
|
468
|
+
async function Ye({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, maybeYield: h, proximity: g, qualityPreset: _, primarySpiral: v, fallbackSpiral: y }) {
|
|
469
|
+
return await Je({
|
|
470
470
|
baseBitmap: e,
|
|
471
471
|
baseFontSize: t,
|
|
472
472
|
minimumScaleFactor: n,
|
|
@@ -489,7 +489,7 @@ async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
|
|
|
489
489
|
maybeYield: h,
|
|
490
490
|
proximity: g,
|
|
491
491
|
minimumVisualPadding: _.minimumVisualPadding
|
|
492
|
-
}) || await
|
|
492
|
+
}) || await Je({
|
|
493
493
|
baseBitmap: e,
|
|
494
494
|
baseFontSize: t,
|
|
495
495
|
minimumScaleFactor: n,
|
|
@@ -514,7 +514,7 @@ async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
|
|
|
514
514
|
minimumVisualPadding: _.minimumVisualPadding
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
async function
|
|
517
|
+
async function Xe({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, quality: i = Ee, onProgress: a, debugTiming: o = !1 }) {
|
|
518
518
|
let s = We(), c = s(), l = c;
|
|
519
519
|
async function u() {
|
|
520
520
|
s() - l >= 12 && (await new Promise((e) => setTimeout(e, 0)), l = s());
|
|
@@ -529,7 +529,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
|
|
|
529
529
|
id: e.id == null ? `${e.name}__${t}` : e.id
|
|
530
530
|
}))].sort((e, t) => t.value - e.value), E = [], ae = h.scaleStep;
|
|
531
531
|
for (let e = 0; e < ie.length; e += 1) {
|
|
532
|
-
let i = ie[e], o = E.length, s =
|
|
532
|
+
let i = ie[e], o = E.length, s = Ge({
|
|
533
533
|
value: i.value,
|
|
534
534
|
minimumValue: te,
|
|
535
535
|
maximumValue: b,
|
|
@@ -547,7 +547,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
|
|
|
547
547
|
await u();
|
|
548
548
|
continue;
|
|
549
549
|
}
|
|
550
|
-
let oe = await
|
|
550
|
+
let oe = await Ye({
|
|
551
551
|
baseBitmap: d,
|
|
552
552
|
baseFontSize: s,
|
|
553
553
|
minimumScaleFactor: Math.max(1 / s, .1),
|
|
@@ -585,7 +585,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
|
|
|
585
585
|
}
|
|
586
586
|
//#endregion
|
|
587
587
|
//#region src/components/vue-ui-word-cloud.vue
|
|
588
|
-
var
|
|
588
|
+
var U = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
589
589
|
"id",
|
|
590
590
|
"data-resizing",
|
|
591
591
|
"data-relayout"
|
|
@@ -645,24 +645,24 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
645
645
|
},
|
|
646
646
|
emits: ["copyAlt"],
|
|
647
647
|
setup(e, { expose: T, emit: Te }) {
|
|
648
|
-
let Ee = M(() => import("./Tooltip-
|
|
648
|
+
let Ee = M(() => import("./Tooltip-DhjyfHwz.js")), De = M(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Oe = M(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), ke = M(() => import("./DataTable-BbKgJ5UI.js")), Ae = M(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), je = M(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Me = M(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Ne = M(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_word_cloud: Pe } = v(), { isThemeValid: Fe, warnInvalidTheme: Ie } = x(), B = e, Le = Te, Re = D({
|
|
649
649
|
get() {
|
|
650
650
|
return !!B.dataset && B.dataset.length;
|
|
651
651
|
},
|
|
652
652
|
set(e) {
|
|
653
653
|
return e;
|
|
654
654
|
}
|
|
655
|
-
}), V = I(f()), ze = I(0), H = I(null), Be = I(null), Ve = I(null), He = I(0), Ue = I(0), We = I(!1),
|
|
655
|
+
}), V = I(f()), ze = I(0), H = I(null), Be = I(null), Ve = I(null), He = I(0), Ue = I(0), We = I(!1), Ge = I(null), Ke = I(null), qe = I(!1), Je = I(!1), Ye = I(null), U = I(null), ut = I({
|
|
656
656
|
x: 0,
|
|
657
657
|
y: 0
|
|
658
|
-
}),
|
|
658
|
+
}), dt = I("pointer"), ft = I(!1), W = I(St());
|
|
659
659
|
g({
|
|
660
|
-
config: () =>
|
|
660
|
+
config: () => W.value,
|
|
661
661
|
dataset: () => B.dataset,
|
|
662
662
|
component: "VueUiWordCloud",
|
|
663
663
|
rules: [_.noHint]
|
|
664
664
|
});
|
|
665
|
-
let
|
|
665
|
+
let G = D(() => W.value.userOptions.useCursorPointer), pt = D(() => i({
|
|
666
666
|
defaultConfig: {
|
|
667
667
|
userOptions: { show: !1 },
|
|
668
668
|
table: { show: !1 },
|
|
@@ -679,14 +679,14 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
679
679
|
}
|
|
680
680
|
} }
|
|
681
681
|
},
|
|
682
|
-
userConfig:
|
|
683
|
-
})), { loading:
|
|
682
|
+
userConfig: W.value.skeletonConfig ?? {}
|
|
683
|
+
})), { loading: mt, FINAL_DATASET: ht, manualLoading: gt } = ee({
|
|
684
684
|
...Ce(B),
|
|
685
|
-
FINAL_CONFIG:
|
|
686
|
-
prepareConfig:
|
|
685
|
+
FINAL_CONFIG: W,
|
|
686
|
+
prepareConfig: St,
|
|
687
687
|
callback: () => {
|
|
688
688
|
Promise.resolve().then(() => {
|
|
689
|
-
|
|
689
|
+
Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
|
|
690
690
|
});
|
|
691
691
|
},
|
|
692
692
|
skeletonDataset: B.config?.skeletonDataset ?? [
|
|
@@ -884,28 +884,28 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
884
884
|
}
|
|
885
885
|
],
|
|
886
886
|
skeletonConfig: i({
|
|
887
|
-
defaultConfig:
|
|
888
|
-
userConfig:
|
|
887
|
+
defaultConfig: W.value,
|
|
888
|
+
userConfig: pt.value
|
|
889
889
|
})
|
|
890
|
-
}),
|
|
891
|
-
function
|
|
892
|
-
return typeof
|
|
890
|
+
}), _t = I(vt());
|
|
891
|
+
function vt() {
|
|
892
|
+
return typeof ht.value == "string" ? r(ht.value) : ht.value.map((e, t) => ({
|
|
893
893
|
...e,
|
|
894
894
|
value: l(e.value)
|
|
895
895
|
}));
|
|
896
896
|
}
|
|
897
|
-
let { userOptionsVisible:
|
|
898
|
-
function
|
|
899
|
-
let e =
|
|
897
|
+
let { userOptionsVisible: yt, setUserOptionsVisibility: bt, keepUserOptionState: xt } = E({ config: W.value }), { svgRef: K } = ae({ config: W.value.style.chart.title });
|
|
898
|
+
function St() {
|
|
899
|
+
let e = b({
|
|
900
900
|
userConfig: B.config,
|
|
901
901
|
defaultConfig: Pe
|
|
902
902
|
}), t = e.theme;
|
|
903
903
|
if (!t) return e;
|
|
904
904
|
if (!Fe.value(e)) return Ie(e), e;
|
|
905
|
-
let n =
|
|
905
|
+
let n = b({
|
|
906
906
|
userConfig: se[t] || B.config,
|
|
907
907
|
defaultConfig: e
|
|
908
|
-
}), r =
|
|
908
|
+
}), r = b({
|
|
909
909
|
userConfig: B.config,
|
|
910
910
|
defaultConfig: n
|
|
911
911
|
});
|
|
@@ -914,57 +914,57 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
914
914
|
customPalette: r.customPalette.length ? r.customPalette : a[t] || o
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
let
|
|
917
|
+
let Ct = I({
|
|
918
918
|
x: 0,
|
|
919
919
|
y: 0
|
|
920
920
|
});
|
|
921
|
-
function
|
|
921
|
+
function wt() {
|
|
922
922
|
let e = {
|
|
923
923
|
x: 0,
|
|
924
924
|
y: 0,
|
|
925
|
-
width: Math.max(10,
|
|
926
|
-
height: Math.max(10,
|
|
925
|
+
width: Math.max(10, q.value.width),
|
|
926
|
+
height: Math.max(10, q.value.height)
|
|
927
927
|
};
|
|
928
|
-
|
|
928
|
+
Qt(e), Ct.value = {
|
|
929
929
|
x: e.x + e.width / 2,
|
|
930
930
|
y: e.y + e.height / 2
|
|
931
|
-
},
|
|
931
|
+
}, Xt();
|
|
932
932
|
}
|
|
933
|
-
let
|
|
934
|
-
|
|
935
|
-
}, 100),
|
|
936
|
-
we(() =>
|
|
937
|
-
e === !1 && (
|
|
933
|
+
let Tt = ne(() => {
|
|
934
|
+
Rt();
|
|
935
|
+
}, 100), Et = I(!1);
|
|
936
|
+
we(() => Et.value, (e) => {
|
|
937
|
+
e === !1 && (Je.value = !0, Tt(), wt());
|
|
938
938
|
}), we(() => B.config, (e) => {
|
|
939
|
-
|
|
939
|
+
W.value = St(), yt.value = !W.value.userOptions.showOnChartHover, jt(), He.value += 1, Ue.value += 1, Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
|
|
940
940
|
}, { deep: !0 });
|
|
941
|
-
let
|
|
942
|
-
width:
|
|
943
|
-
height:
|
|
944
|
-
maxFontSize:
|
|
945
|
-
minFontSize:
|
|
946
|
-
bold:
|
|
947
|
-
}),
|
|
941
|
+
let q = I({
|
|
942
|
+
width: W.value.style.chart.width,
|
|
943
|
+
height: W.value.style.chart.height,
|
|
944
|
+
maxFontSize: W.value.style.chart.words.maxFontSize,
|
|
945
|
+
minFontSize: W.value.style.chart.words.minFontSize,
|
|
946
|
+
bold: W.value.style.chart.words.bold
|
|
947
|
+
}), Dt = ne(() => {
|
|
948
948
|
let { width: e, height: t } = re({
|
|
949
949
|
chart: H.value,
|
|
950
|
-
title:
|
|
951
|
-
legend:
|
|
950
|
+
title: W.value.style.chart.title.text ? Be.value : null,
|
|
951
|
+
legend: W.value.style.chart.controls.show ? Ye.value?.$el : null,
|
|
952
952
|
source: Ve.value
|
|
953
953
|
});
|
|
954
954
|
requestAnimationFrame(async () => {
|
|
955
|
-
|
|
955
|
+
q.value.width = Math.max(10, e), q.value.height = Math.max(10, t - 12), await me(), Et.value = !1;
|
|
956
956
|
});
|
|
957
|
-
}, 100),
|
|
958
|
-
|
|
959
|
-
},
|
|
960
|
-
ve(
|
|
961
|
-
let
|
|
962
|
-
function
|
|
957
|
+
}, 100), Ot = () => {
|
|
958
|
+
Et.value = !0, Dt();
|
|
959
|
+
}, J = xe(null), kt = xe(null);
|
|
960
|
+
ve(jt);
|
|
961
|
+
let At = D(() => W.value.debug);
|
|
962
|
+
function jt() {
|
|
963
963
|
u(B.dataset) ? m({
|
|
964
964
|
componentName: "VueUiWordCloud",
|
|
965
965
|
type: "dataset",
|
|
966
|
-
debug:
|
|
967
|
-
}) :
|
|
966
|
+
debug: At.value
|
|
967
|
+
}) : _t.value.forEach((e, t) => {
|
|
968
968
|
d({
|
|
969
969
|
datasetObject: e,
|
|
970
970
|
requiredAttributes: ["name", "value"]
|
|
@@ -974,96 +974,96 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
974
974
|
type: "datasetSerieAttribute",
|
|
975
975
|
property: e,
|
|
976
976
|
index: t,
|
|
977
|
-
debug:
|
|
977
|
+
debug: At.value
|
|
978
978
|
});
|
|
979
979
|
});
|
|
980
|
-
}), u(B.dataset) || (
|
|
980
|
+
}), u(B.dataset) || (gt.value = W.value.loading), W.value.responsive && (J.value && (kt.value && J.value.unobserve(kt.value), J.value.disconnect()), J.value = new ResizeObserver(Ot), kt.value = H.value.parentNode, J.value.observe(kt.value)), wt();
|
|
981
981
|
}
|
|
982
982
|
_e(() => {
|
|
983
|
-
|
|
983
|
+
J.value && (kt.value && J.value.unobserve(kt.value), J.value.disconnect());
|
|
984
984
|
});
|
|
985
|
-
let { isPrinting:
|
|
985
|
+
let { isPrinting: Mt, isImaging: Nt, generatePdf: Pt, generateImage: Ft } = y({
|
|
986
986
|
elementId: `wordCloud_${V.value}`,
|
|
987
|
-
fileName:
|
|
988
|
-
options:
|
|
989
|
-
}),
|
|
990
|
-
showTable:
|
|
991
|
-
showTooltip:
|
|
992
|
-
showZoom:
|
|
987
|
+
fileName: W.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
988
|
+
options: W.value.userOptions.print
|
|
989
|
+
}), Y = I({
|
|
990
|
+
showTable: W.value.table.show,
|
|
991
|
+
showTooltip: W.value.style.chart.tooltip.show,
|
|
992
|
+
showZoom: W.value.style.chart.zoom.show
|
|
993
993
|
});
|
|
994
|
-
we(
|
|
995
|
-
|
|
994
|
+
we(W, () => {
|
|
995
|
+
Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
|
|
996
996
|
}, { immediate: !0 });
|
|
997
|
-
function
|
|
997
|
+
function It(e, t, n = "Arial") {
|
|
998
998
|
let r = document.createElement("canvas").getContext("2d");
|
|
999
|
-
return r.font = `${t}px ${
|
|
1000
|
-
width: r.measureText(e).width +
|
|
999
|
+
return r.font = `${t}px ${W.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
|
|
1000
|
+
width: r.measureText(e).width + W.value.style.chart.words.proximity,
|
|
1001
1001
|
height: t
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
let
|
|
1005
|
-
function
|
|
1006
|
-
let e = [...
|
|
1007
|
-
let i = (e.value - n) / (t - n) * (
|
|
1008
|
-
i = isNaN(i) ?
|
|
1009
|
-
let a =
|
|
1004
|
+
let X = I([]), Lt = /* @__PURE__ */ new Map();
|
|
1005
|
+
function Rt() {
|
|
1006
|
+
let e = [..._t.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [..._t.value].map((e, r) => {
|
|
1007
|
+
let i = (e.value - n) / (t - n) * (q.value.maxFontSize - q.value.minFontSize) + q.value.minFontSize;
|
|
1008
|
+
i = isNaN(i) ? q.value.minFontSize : i;
|
|
1009
|
+
let a = It(e.name, i);
|
|
1010
1010
|
return {
|
|
1011
1011
|
...e,
|
|
1012
1012
|
id: e.id ?? `${e.name}__${r}`,
|
|
1013
1013
|
fontSize: i,
|
|
1014
1014
|
width: a.width,
|
|
1015
1015
|
height: a.height,
|
|
1016
|
-
color: e.color ? s(e.color) :
|
|
1016
|
+
color: e.color ? s(e.color) : W.value.style.chart.words.usePalette ? W.value.customPalette[r] || W.value.customPalette[r % W.value.customPalette.length] || o[r] || o[r % o.length] : W.value.style.chart.words.color
|
|
1017
1017
|
};
|
|
1018
1018
|
});
|
|
1019
|
-
|
|
1020
|
-
debugTiming:
|
|
1019
|
+
X.value.length = 0, Lt.clear(), Xe({
|
|
1020
|
+
debugTiming: At.value,
|
|
1021
1021
|
words: r,
|
|
1022
|
-
svg:
|
|
1023
|
-
proximity:
|
|
1024
|
-
strictPixelPadding:
|
|
1025
|
-
quality:
|
|
1022
|
+
svg: q.value,
|
|
1023
|
+
proximity: W.value.style.chart.words.proximity,
|
|
1024
|
+
strictPixelPadding: W.value.strictPixelPadding,
|
|
1025
|
+
quality: W.value.quality,
|
|
1026
1026
|
onProgress: ({ all: e }) => {
|
|
1027
1027
|
for (let t of e) {
|
|
1028
|
-
let e = t.id, n =
|
|
1029
|
-
if (n === void 0) n =
|
|
1028
|
+
let e = t.id, n = Lt.get(e);
|
|
1029
|
+
if (n === void 0) n = X.value.length, Lt.set(e, n), X.value.push({ ...t });
|
|
1030
1030
|
else {
|
|
1031
|
-
let e =
|
|
1031
|
+
let e = X.value[n];
|
|
1032
1032
|
e.x = t.x, e.y = t.y, e.width = t.width, e.height = t.height, e.fontSize = t.fontSize, e.minX = t.minX, e.minY = t.minY, e.maxX = t.maxX, e.maxY = t.maxY;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
}),
|
|
1037
|
-
|
|
1038
|
-
}),
|
|
1036
|
+
}), X.value.sort((e, t) => t.fontSize - e.fontSize), Lt.clear(), X.value.forEach((e, t) => {
|
|
1037
|
+
Lt.set(e.id, t);
|
|
1038
|
+
}), qe.value = !0, Je.value = !1;
|
|
1039
1039
|
}
|
|
1040
|
-
let
|
|
1041
|
-
head:
|
|
1040
|
+
let zt = D(() => ({
|
|
1041
|
+
head: X.value.map((e) => ({
|
|
1042
1042
|
name: e.name,
|
|
1043
1043
|
color: e.color
|
|
1044
1044
|
})),
|
|
1045
|
-
body:
|
|
1045
|
+
body: X.value.map((e) => e.value)
|
|
1046
1046
|
}));
|
|
1047
|
-
function
|
|
1047
|
+
function Bt(e = null) {
|
|
1048
1048
|
me(() => {
|
|
1049
|
-
let r =
|
|
1050
|
-
[
|
|
1051
|
-
[
|
|
1052
|
-
[[""], [
|
|
1053
|
-
].concat(r));
|
|
1054
|
-
e ? e(
|
|
1055
|
-
csvContent:
|
|
1056
|
-
title:
|
|
1049
|
+
let r = zt.value.head.map((e, t) => [[e.name], [zt.value.body[t]]]), i = [
|
|
1050
|
+
[W.value.style.chart.title.text],
|
|
1051
|
+
[W.value.style.chart.title.subtitle.text],
|
|
1052
|
+
[[""], [W.value.table.columnNames.value]]
|
|
1053
|
+
].concat(r), a = n(i);
|
|
1054
|
+
e ? e(a) : t({
|
|
1055
|
+
csvContent: a,
|
|
1056
|
+
title: W.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
1057
1057
|
});
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
|
-
let
|
|
1061
|
-
let e = [
|
|
1060
|
+
let Z = D(() => {
|
|
1061
|
+
let e = [W.value.table.columnNames.series, W.value.table.columnNames.value], t = zt.value.head.map((e, t) => {
|
|
1062
1062
|
let n = c({
|
|
1063
|
-
p:
|
|
1064
|
-
v:
|
|
1065
|
-
s:
|
|
1066
|
-
r:
|
|
1063
|
+
p: W.value.table.td.prefix,
|
|
1064
|
+
v: zt.value.body[t],
|
|
1065
|
+
s: W.value.table.td.suffix,
|
|
1066
|
+
r: W.value.table.td.roundingValue
|
|
1067
1067
|
});
|
|
1068
1068
|
return [{
|
|
1069
1069
|
color: e.color,
|
|
@@ -1071,54 +1071,54 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1071
1071
|
}, n];
|
|
1072
1072
|
}), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1073
1073
|
th: {
|
|
1074
|
-
backgroundColor:
|
|
1075
|
-
color:
|
|
1076
|
-
outline:
|
|
1074
|
+
backgroundColor: W.value.table.th.backgroundColor,
|
|
1075
|
+
color: W.value.table.th.color,
|
|
1076
|
+
outline: W.value.table.th.outline
|
|
1077
1077
|
},
|
|
1078
1078
|
td: {
|
|
1079
|
-
backgroundColor:
|
|
1080
|
-
color:
|
|
1081
|
-
outline:
|
|
1079
|
+
backgroundColor: W.value.table.td.backgroundColor,
|
|
1080
|
+
color: W.value.table.td.color,
|
|
1081
|
+
outline: W.value.table.td.outline
|
|
1082
1082
|
},
|
|
1083
|
-
breakpoint:
|
|
1083
|
+
breakpoint: W.value.table.responsiveBreakpoint
|
|
1084
1084
|
};
|
|
1085
1085
|
return {
|
|
1086
|
-
colNames: [
|
|
1086
|
+
colNames: [W.value.table.columnNames.series, W.value.table.columnNames.value],
|
|
1087
1087
|
head: e,
|
|
1088
1088
|
body: t,
|
|
1089
1089
|
a11yBody: n,
|
|
1090
1090
|
config: r
|
|
1091
1091
|
};
|
|
1092
1092
|
}), Q = I(!1);
|
|
1093
|
-
function
|
|
1093
|
+
function Vt(e) {
|
|
1094
1094
|
Q.value = e, ze.value += 1;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return
|
|
1096
|
+
function Ht() {
|
|
1097
|
+
return X.value;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
|
|
1099
|
+
function Ut() {
|
|
1100
|
+
Y.value.showTable = !Y.value.showTable;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1103
|
-
|
|
1102
|
+
function Wt() {
|
|
1103
|
+
Y.value.showTooltip = !Y.value.showTooltip;
|
|
1104
1104
|
}
|
|
1105
|
-
let
|
|
1106
|
-
function
|
|
1107
|
-
|
|
1105
|
+
let Gt = I(!1);
|
|
1106
|
+
function Kt() {
|
|
1107
|
+
Gt.value = !Gt.value;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
|
|
1109
|
+
function qt() {
|
|
1110
|
+
Y.value.showZoom = !Y.value.showZoom;
|
|
1111
1111
|
}
|
|
1112
|
-
let
|
|
1112
|
+
let Jt = D(() => !Gt.value && Y.value.showZoom), { viewBox: Yt, resetZoom: Xt, isZoom: Zt, setInitialViewBox: Qt, zoomByFactor: $t, scale: en } = oe(K, {
|
|
1113
1113
|
x: 0,
|
|
1114
1114
|
y: 0,
|
|
1115
|
-
width:
|
|
1116
|
-
height:
|
|
1117
|
-
}, 1,
|
|
1115
|
+
width: q.value.width <= 0 ? 10 : q.value.width,
|
|
1116
|
+
height: q.value.height <= 0 ? 10 : q.value.height
|
|
1117
|
+
}, 1, Jt);
|
|
1118
1118
|
we(() => B.dataset, () => {
|
|
1119
|
-
|
|
1119
|
+
_t.value = vt(), W.value.responsive || (Rt(), wt());
|
|
1120
1120
|
}, { immediate: !0 });
|
|
1121
|
-
async function
|
|
1121
|
+
async function tn({ scale: e = 2 } = {}) {
|
|
1122
1122
|
if (!H.value) return;
|
|
1123
1123
|
let { width: t, height: n } = H.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await C({
|
|
1124
1124
|
domElement: H.value,
|
|
@@ -1129,222 +1129,199 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1129
1129
|
return {
|
|
1130
1130
|
imageUri: i,
|
|
1131
1131
|
base64: a,
|
|
1132
|
-
title:
|
|
1132
|
+
title: W.value.style.chart.title.text,
|
|
1133
1133
|
width: t,
|
|
1134
1134
|
height: n,
|
|
1135
1135
|
aspectRatio: r
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
1138
|
-
let
|
|
1139
|
-
let e =
|
|
1138
|
+
let nn = D(() => {
|
|
1139
|
+
let e = W.value.table.useDialog && !W.value.table.show, t = Y.value.showTable;
|
|
1140
1140
|
return {
|
|
1141
1141
|
component: e ? Ne : Oe,
|
|
1142
|
-
title: `${
|
|
1142
|
+
title: `${W.value.style.chart.title.text}${W.value.style.chart.title.subtitle.text ? `: ${W.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1143
1143
|
props: e ? {
|
|
1144
|
-
backgroundColor:
|
|
1145
|
-
color:
|
|
1146
|
-
headerColor:
|
|
1147
|
-
headerBg:
|
|
1144
|
+
backgroundColor: W.value.table.th.backgroundColor,
|
|
1145
|
+
color: W.value.table.th.color,
|
|
1146
|
+
headerColor: W.value.table.th.color,
|
|
1147
|
+
headerBg: W.value.table.th.backgroundColor,
|
|
1148
1148
|
isFullscreen: Q.value,
|
|
1149
1149
|
fullscreenParent: H.value,
|
|
1150
1150
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1151
|
-
isCursorPointer:
|
|
1151
|
+
isCursorPointer: G.value
|
|
1152
1152
|
} : {
|
|
1153
1153
|
hideDetails: !0,
|
|
1154
1154
|
config: {
|
|
1155
1155
|
open: t,
|
|
1156
1156
|
maxHeight: 1e4,
|
|
1157
1157
|
body: {
|
|
1158
|
-
backgroundColor:
|
|
1159
|
-
color:
|
|
1158
|
+
backgroundColor: W.value.style.chart.backgroundColor,
|
|
1159
|
+
color: W.value.style.chart.color
|
|
1160
1160
|
},
|
|
1161
1161
|
head: {
|
|
1162
|
-
backgroundColor:
|
|
1163
|
-
color:
|
|
1162
|
+
backgroundColor: W.value.style.chart.backgroundColor,
|
|
1163
|
+
color: W.value.style.chart.color
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
1168
|
});
|
|
1169
|
-
we(() =>
|
|
1170
|
-
|
|
1169
|
+
we(() => Y.value.showTable, (e) => {
|
|
1170
|
+
W.value.table.show || (e && W.value.table.useDialog && Ge.value ? Ge.value.open() : "close" in Ge.value && Ge.value.close());
|
|
1171
1171
|
});
|
|
1172
|
-
function
|
|
1173
|
-
|
|
1172
|
+
function rn() {
|
|
1173
|
+
Y.value.showTable = !1, Ke.value && Ke.value.setTableIconState(!1);
|
|
1174
1174
|
}
|
|
1175
|
-
let
|
|
1176
|
-
svg:
|
|
1177
|
-
title:
|
|
1178
|
-
|
|
1175
|
+
let an = D(() => W.value.style.chart.backgroundColor), on = D(() => W.value.style.chart.title), { isCallbackImaging: sn, isCallbackSvg: cn, generateSvg: ln, onGenerateImage: un } = S({
|
|
1176
|
+
svg: K,
|
|
1177
|
+
title: on,
|
|
1178
|
+
legend: null,
|
|
1179
|
+
legendItems: null,
|
|
1180
|
+
backgroundColor: an,
|
|
1181
|
+
getSvgCallback: () => W.value.userOptions.callbacks.svg,
|
|
1182
|
+
generateImage: Ft
|
|
1179
1183
|
});
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
try {
|
|
1183
|
-
if (e) {
|
|
1184
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ln();
|
|
1185
|
-
await Promise.resolve(G.value.userOptions.callbacks.svg({
|
|
1186
|
-
blob: e,
|
|
1187
|
-
url: t,
|
|
1188
|
-
text: n,
|
|
1189
|
-
dataUrl: r
|
|
1190
|
-
}));
|
|
1191
|
-
} else await Promise.resolve(cn());
|
|
1192
|
-
} finally {
|
|
1193
|
-
ut.value = !1;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
function dn(e) {
|
|
1197
|
-
if (e?.stage === "start") {
|
|
1198
|
-
Xe.value = !0;
|
|
1199
|
-
return;
|
|
1200
|
-
}
|
|
1201
|
-
if (e?.stage === "end") {
|
|
1202
|
-
Xe.value = !1;
|
|
1203
|
-
return;
|
|
1204
|
-
}
|
|
1205
|
-
It();
|
|
1184
|
+
function dn() {
|
|
1185
|
+
$t(1.5, !0);
|
|
1206
1186
|
}
|
|
1207
1187
|
function fn() {
|
|
1208
|
-
|
|
1209
|
-
}
|
|
1210
|
-
function pn() {
|
|
1211
|
-
tn(1 / 1.5, !0);
|
|
1188
|
+
$t(1 / 1.5, !0);
|
|
1212
1189
|
}
|
|
1213
|
-
let $ = I(null),
|
|
1214
|
-
function
|
|
1215
|
-
$.value = null,
|
|
1190
|
+
let $ = I(null), pn = I(!1), mn = I(""), hn = I(null);
|
|
1191
|
+
function gn() {
|
|
1192
|
+
$.value = null, U.value = null, We.value = !1;
|
|
1216
1193
|
}
|
|
1217
|
-
function
|
|
1218
|
-
|
|
1194
|
+
function _n(e, t) {
|
|
1195
|
+
W.value.events.datapointLeave && W.value.events.datapointLeave({
|
|
1219
1196
|
datapoint: e,
|
|
1220
1197
|
seriesIndex: t
|
|
1221
|
-
}),
|
|
1198
|
+
}), (U.value !== t || dt.value !== "keyboard") && ($.value = null, We.value = !1);
|
|
1222
1199
|
}
|
|
1223
|
-
function
|
|
1224
|
-
|
|
1200
|
+
function vn(e, t) {
|
|
1201
|
+
W.value.events.datapointClick && W.value.events.datapointClick({
|
|
1225
1202
|
datapoint: e,
|
|
1226
1203
|
seriesIndex: t
|
|
1227
1204
|
});
|
|
1228
1205
|
}
|
|
1229
|
-
function
|
|
1230
|
-
if (!
|
|
1231
|
-
let t =
|
|
1206
|
+
function yn(e) {
|
|
1207
|
+
if (!K.value || e == null) return;
|
|
1208
|
+
let t = K.value.querySelector(`[data-a11y-word-index="${e}-${V.value}"]`);
|
|
1232
1209
|
if (!t) return;
|
|
1233
1210
|
let n = t.getBoundingClientRect();
|
|
1234
|
-
|
|
1211
|
+
ut.value = {
|
|
1235
1212
|
x: n.left + n.width / 2,
|
|
1236
1213
|
y: n.top + n.height / 2
|
|
1237
1214
|
};
|
|
1238
1215
|
}
|
|
1239
|
-
function
|
|
1240
|
-
if (
|
|
1216
|
+
function bn(e, t, n = "pointer") {
|
|
1217
|
+
if (W.value.events.datapointEnter && W.value.events.datapointEnter({
|
|
1241
1218
|
datapoint: e,
|
|
1242
1219
|
seriesIndex: t
|
|
1243
|
-
}), !
|
|
1244
|
-
|
|
1220
|
+
}), !Y.value.showTooltip) return;
|
|
1221
|
+
dt.value = n, U.value = t, $.value = e.id, hn.value = {
|
|
1245
1222
|
datapoint: e,
|
|
1246
|
-
config:
|
|
1223
|
+
config: W.value,
|
|
1247
1224
|
seriesIndex: t
|
|
1248
1225
|
};
|
|
1249
|
-
let r =
|
|
1250
|
-
if (
|
|
1226
|
+
let r = W.value.style.chart.tooltip.customFormat;
|
|
1227
|
+
if (pn.value = !1, h(r)) try {
|
|
1251
1228
|
let t = r({
|
|
1252
1229
|
datapoint: e,
|
|
1253
|
-
config:
|
|
1230
|
+
config: W.value
|
|
1254
1231
|
});
|
|
1255
|
-
typeof t == "string" && (
|
|
1232
|
+
typeof t == "string" && (mn.value = t, pn.value = !0);
|
|
1256
1233
|
} catch {
|
|
1257
|
-
console.warn("Custom format cannot be applied."),
|
|
1234
|
+
console.warn("Custom format cannot be applied."), pn.value = !1;
|
|
1258
1235
|
}
|
|
1259
|
-
if (!
|
|
1260
|
-
let t = `<svg viewBox="0 0 10 10" height="${
|
|
1261
|
-
|
|
1236
|
+
if (!pn.value) {
|
|
1237
|
+
let t = `<svg viewBox="0 0 10 10" height="${W.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value || 0).toFixed(W.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
1238
|
+
mn.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${t}</div>`;
|
|
1262
1239
|
}
|
|
1263
1240
|
n === "keyboard" && me(() => {
|
|
1264
|
-
|
|
1241
|
+
yn(t);
|
|
1265
1242
|
}), We.value = !0;
|
|
1266
1243
|
}
|
|
1267
|
-
async function
|
|
1244
|
+
async function xn() {
|
|
1268
1245
|
if (Le("copyAlt", {
|
|
1269
|
-
config:
|
|
1270
|
-
dataset:
|
|
1271
|
-
}), !
|
|
1246
|
+
config: W.value,
|
|
1247
|
+
dataset: X.value
|
|
1248
|
+
}), !W.value.userOptions.callbacks.altCopy) {
|
|
1272
1249
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1273
1250
|
return;
|
|
1274
1251
|
}
|
|
1275
|
-
await Promise.resolve(
|
|
1276
|
-
config:
|
|
1277
|
-
dataset:
|
|
1252
|
+
await Promise.resolve(W.value.userOptions.callbacks.altCopy({
|
|
1253
|
+
config: W.value,
|
|
1254
|
+
dataset: X.value
|
|
1278
1255
|
}));
|
|
1279
1256
|
}
|
|
1280
|
-
function
|
|
1281
|
-
|
|
1257
|
+
function Sn() {
|
|
1258
|
+
U.value = null, ft.value = !0;
|
|
1282
1259
|
}
|
|
1283
|
-
function
|
|
1284
|
-
|
|
1260
|
+
function Cn() {
|
|
1261
|
+
gn(), ft.value = !1;
|
|
1285
1262
|
}
|
|
1286
|
-
function
|
|
1287
|
-
if (!
|
|
1263
|
+
function wn(e) {
|
|
1264
|
+
if (!K.value || Gt.value || document.activeElement !== K.value || !X.value.length) return;
|
|
1288
1265
|
let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1289
1266
|
if (!t && !n && !r && !i) return;
|
|
1290
1267
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1291
|
-
|
|
1268
|
+
gn();
|
|
1292
1269
|
return;
|
|
1293
1270
|
}
|
|
1294
1271
|
if (r) {
|
|
1295
|
-
if (
|
|
1296
|
-
let e =
|
|
1272
|
+
if (U.value === null) return;
|
|
1273
|
+
let e = X.value[U.value];
|
|
1297
1274
|
if (!e) return;
|
|
1298
|
-
|
|
1275
|
+
vn(e, U.value);
|
|
1299
1276
|
return;
|
|
1300
1277
|
}
|
|
1301
|
-
let a =
|
|
1302
|
-
a === null || a < 0 || a >=
|
|
1303
|
-
let o =
|
|
1304
|
-
o &&
|
|
1278
|
+
let a = U.value;
|
|
1279
|
+
a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = X.value.length - 1), a >= X.value.length && (a = 0));
|
|
1280
|
+
let o = X.value[a];
|
|
1281
|
+
o && bn(o, a, "keyboard");
|
|
1305
1282
|
}
|
|
1306
|
-
let
|
|
1307
|
-
headers:
|
|
1308
|
-
rows:
|
|
1283
|
+
let Tn = D(() => ({
|
|
1284
|
+
headers: Z.value?.colNames ?? [],
|
|
1285
|
+
rows: Z.value?.a11yBody ?? []
|
|
1309
1286
|
}));
|
|
1310
1287
|
return T({
|
|
1311
|
-
getData:
|
|
1312
|
-
getImage:
|
|
1313
|
-
generateCsv:
|
|
1314
|
-
generatePdf:
|
|
1315
|
-
generateImage:
|
|
1316
|
-
generateSvg:
|
|
1317
|
-
resetZoom:
|
|
1318
|
-
toggleTable:
|
|
1319
|
-
toggleTooltip:
|
|
1320
|
-
toggleAnnotator:
|
|
1321
|
-
toggleFullscreen:
|
|
1322
|
-
toggleZoom:
|
|
1323
|
-
copyAlt:
|
|
1288
|
+
getData: Ht,
|
|
1289
|
+
getImage: tn,
|
|
1290
|
+
generateCsv: Bt,
|
|
1291
|
+
generatePdf: Pt,
|
|
1292
|
+
generateImage: Ft,
|
|
1293
|
+
generateSvg: ln,
|
|
1294
|
+
resetZoom: Xt,
|
|
1295
|
+
toggleTable: Ut,
|
|
1296
|
+
toggleTooltip: Wt,
|
|
1297
|
+
toggleAnnotator: Kt,
|
|
1298
|
+
toggleFullscreen: Vt,
|
|
1299
|
+
toggleZoom: qt,
|
|
1300
|
+
copyAlt: xn
|
|
1324
1301
|
}), (e, t) => (F(), A("div", {
|
|
1325
1302
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
1326
1303
|
ref_key: "wordCloudChart",
|
|
1327
1304
|
ref: H,
|
|
1328
1305
|
id: `wordCloud_${V.value}`,
|
|
1329
|
-
"data-resizing":
|
|
1330
|
-
"data-relayout":
|
|
1331
|
-
style: ge(`width: 100%; font-family:${
|
|
1332
|
-
onMouseenter: t[3] ||= () => R(
|
|
1306
|
+
"data-resizing": Et.value,
|
|
1307
|
+
"data-relayout": Je.value,
|
|
1308
|
+
style: ge(`width: 100%; font-family:${W.value.style.fontFamily};background:${W.value.style.chart.backgroundColor};${W.value.responsive ? "height:100%" : ""}`),
|
|
1309
|
+
onMouseenter: t[3] ||= () => R(bt)(!0),
|
|
1333
1310
|
onMouseleave: t[4] ||= () => {
|
|
1334
|
-
R(
|
|
1311
|
+
R(bt)(!1), ft.value || gn();
|
|
1335
1312
|
}
|
|
1336
1313
|
}, [
|
|
1337
1314
|
j("div", {
|
|
1338
1315
|
id: `chart-instructions-${V.value}`,
|
|
1339
1316
|
class: "sr-only"
|
|
1340
|
-
}, [j("p", null, Se(
|
|
1341
|
-
|
|
1317
|
+
}, [j("p", null, Se(W.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1318
|
+
Tn.value?.rows?.length ? (F(), O(ie, {
|
|
1342
1319
|
key: 0,
|
|
1343
1320
|
uid: V.value,
|
|
1344
|
-
head:
|
|
1345
|
-
body:
|
|
1346
|
-
notice:
|
|
1347
|
-
caption:
|
|
1321
|
+
head: Tn.value.headers,
|
|
1322
|
+
body: Tn.value.rows,
|
|
1323
|
+
notice: W.value.a11y.translations.tableAvailable,
|
|
1324
|
+
caption: W.value.a11y.translations.tableCaption
|
|
1348
1325
|
}, null, 8, [
|
|
1349
1326
|
"uid",
|
|
1350
1327
|
"head",
|
|
@@ -1352,14 +1329,14 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1352
1329
|
"notice",
|
|
1353
1330
|
"caption"
|
|
1354
1331
|
])) : k("", !0),
|
|
1355
|
-
|
|
1332
|
+
W.value.userOptions.buttons.annotator ? (F(), O(R(Ae), {
|
|
1356
1333
|
key: 1,
|
|
1357
|
-
svgRef: R(
|
|
1358
|
-
backgroundColor:
|
|
1359
|
-
color:
|
|
1360
|
-
active:
|
|
1361
|
-
isCursorPointer:
|
|
1362
|
-
onClose:
|
|
1334
|
+
svgRef: R(K),
|
|
1335
|
+
backgroundColor: W.value.style.chart.backgroundColor,
|
|
1336
|
+
color: W.value.style.chart.color,
|
|
1337
|
+
active: Gt.value,
|
|
1338
|
+
isCursorPointer: G.value,
|
|
1339
|
+
onClose: Kt
|
|
1363
1340
|
}, {
|
|
1364
1341
|
"annotator-action-close": z(() => [L(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1365
1342
|
"annotator-action-color": z(({ color: t }) => [L(e.$slots, "annotator-action-color", P(N({ color: t })), void 0, !0)]),
|
|
@@ -1375,7 +1352,7 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1375
1352
|
"active",
|
|
1376
1353
|
"isCursorPointer"
|
|
1377
1354
|
])) : k("", !0),
|
|
1378
|
-
|
|
1355
|
+
W.value.style.chart.title.text ? (F(), A("div", {
|
|
1379
1356
|
key: 2,
|
|
1380
1357
|
ref_key: "chartTitle",
|
|
1381
1358
|
ref: Be,
|
|
@@ -1383,51 +1360,51 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1383
1360
|
}, [(F(), O(w, {
|
|
1384
1361
|
key: `title_${He.value}`,
|
|
1385
1362
|
config: {
|
|
1386
|
-
title: { ...
|
|
1387
|
-
subtitle: { ...
|
|
1363
|
+
title: { ...W.value.style.chart.title },
|
|
1364
|
+
subtitle: { ...W.value.style.chart.title.subtitle }
|
|
1388
1365
|
}
|
|
1389
1366
|
}, null, 8, ["config"]))], 512)) : k("", !0),
|
|
1390
|
-
|
|
1367
|
+
W.value.userOptions.show && Re.value && (R(xt) || R(yt)) ? (F(), O(R(je), {
|
|
1391
1368
|
ref_key: "userOptionsRef",
|
|
1392
|
-
ref:
|
|
1369
|
+
ref: Ke,
|
|
1393
1370
|
key: `user_option_${ze.value}`,
|
|
1394
|
-
backgroundColor:
|
|
1395
|
-
color:
|
|
1396
|
-
isPrinting: R(
|
|
1397
|
-
isImaging: R(
|
|
1371
|
+
backgroundColor: W.value.style.chart.backgroundColor,
|
|
1372
|
+
color: W.value.style.chart.color,
|
|
1373
|
+
isPrinting: R(Mt),
|
|
1374
|
+
isImaging: R(Nt),
|
|
1398
1375
|
uid: V.value,
|
|
1399
|
-
hasPdf:
|
|
1400
|
-
hasXls:
|
|
1401
|
-
hasImg:
|
|
1402
|
-
hasSvg:
|
|
1403
|
-
hasTable:
|
|
1404
|
-
hasFullscreen:
|
|
1405
|
-
hasAltCopy:
|
|
1376
|
+
hasPdf: W.value.userOptions.buttons.pdf,
|
|
1377
|
+
hasXls: W.value.userOptions.buttons.csv,
|
|
1378
|
+
hasImg: W.value.userOptions.buttons.img,
|
|
1379
|
+
hasSvg: W.value.userOptions.buttons.svg,
|
|
1380
|
+
hasTable: W.value.userOptions.buttons.table,
|
|
1381
|
+
hasFullscreen: W.value.userOptions.buttons.fullscreen,
|
|
1382
|
+
hasAltCopy: W.value.userOptions.buttons.altCopy,
|
|
1406
1383
|
isFullscreen: Q.value,
|
|
1407
|
-
titles: { ...
|
|
1384
|
+
titles: { ...W.value.userOptions.buttonTitles },
|
|
1408
1385
|
chartElement: H.value,
|
|
1409
|
-
position:
|
|
1410
|
-
hasTooltip:
|
|
1411
|
-
isTooltip:
|
|
1412
|
-
hasAnnotator:
|
|
1413
|
-
isAnnotation:
|
|
1414
|
-
callbacks:
|
|
1415
|
-
printScale:
|
|
1416
|
-
tableDialog:
|
|
1417
|
-
hasZoom:
|
|
1418
|
-
isZoom:
|
|
1419
|
-
isCursorPointer:
|
|
1420
|
-
onToggleFullscreen:
|
|
1421
|
-
onGeneratePdf: R(
|
|
1422
|
-
onGenerateCsv:
|
|
1423
|
-
onGenerateImage:
|
|
1424
|
-
onGenerateSvg:
|
|
1425
|
-
onToggleTable:
|
|
1426
|
-
onToggleTooltip:
|
|
1427
|
-
onToggleAnnotator:
|
|
1428
|
-
onToggleZoom:
|
|
1429
|
-
onCopyAlt:
|
|
1430
|
-
style: ge({ visibility: R(
|
|
1386
|
+
position: W.value.userOptions.position,
|
|
1387
|
+
hasTooltip: W.value.style.chart.tooltip.show && W.value.userOptions.buttons.tooltip,
|
|
1388
|
+
isTooltip: Y.value.showTooltip,
|
|
1389
|
+
hasAnnotator: W.value.userOptions.buttons.annotator,
|
|
1390
|
+
isAnnotation: Gt.value,
|
|
1391
|
+
callbacks: W.value.userOptions.callbacks,
|
|
1392
|
+
printScale: W.value.userOptions.print.scale,
|
|
1393
|
+
tableDialog: W.value.table.useDialog,
|
|
1394
|
+
hasZoom: W.value.userOptions.buttons.zoom,
|
|
1395
|
+
isZoom: Y.value.showZoom,
|
|
1396
|
+
isCursorPointer: G.value,
|
|
1397
|
+
onToggleFullscreen: Vt,
|
|
1398
|
+
onGeneratePdf: R(Pt),
|
|
1399
|
+
onGenerateCsv: Bt,
|
|
1400
|
+
onGenerateImage: R(un),
|
|
1401
|
+
onGenerateSvg: R(ln),
|
|
1402
|
+
onToggleTable: Ut,
|
|
1403
|
+
onToggleTooltip: Wt,
|
|
1404
|
+
onToggleAnnotator: Kt,
|
|
1405
|
+
onToggleZoom: qt,
|
|
1406
|
+
onCopyAlt: xn,
|
|
1407
|
+
style: ge({ visibility: R(xt) ? R(yt) ? "visible" : "hidden" : "visible" })
|
|
1431
1408
|
}, ue({ _: 2 }, [
|
|
1432
1409
|
e.$slots.menuIcon ? {
|
|
1433
1410
|
name: "menuIcon",
|
|
@@ -1506,18 +1483,18 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1506
1483
|
fn: z(() => [L(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1507
1484
|
key: "12"
|
|
1508
1485
|
} : void 0
|
|
1509
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasTooltip.isTooltip.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.style".split("."))) : k("", !0),
|
|
1510
|
-
|
|
1486
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasTooltip.isTooltip.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : k("", !0),
|
|
1487
|
+
W.value.style.chart.controls.position === "top" && W.value.style.chart.controls.show && !R(mt) ? (F(), O(ce, {
|
|
1511
1488
|
key: 4,
|
|
1512
1489
|
ref_key: "zoomControls",
|
|
1513
|
-
ref:
|
|
1514
|
-
config:
|
|
1515
|
-
scale: R(
|
|
1490
|
+
ref: Ye,
|
|
1491
|
+
config: W.value,
|
|
1492
|
+
scale: R(en),
|
|
1516
1493
|
isFullscreen: Q.value,
|
|
1517
|
-
isCursorPointer:
|
|
1518
|
-
onZoomIn:
|
|
1519
|
-
onZoomOut:
|
|
1520
|
-
onResetZoom: t[0] ||= (e) => R(
|
|
1494
|
+
isCursorPointer: G.value,
|
|
1495
|
+
onZoomIn: dn,
|
|
1496
|
+
onZoomOut: fn,
|
|
1497
|
+
onResetZoom: t[0] ||= (e) => R(Xt)(!0)
|
|
1521
1498
|
}, null, 8, [
|
|
1522
1499
|
"config",
|
|
1523
1500
|
"scale",
|
|
@@ -1526,33 +1503,33 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1526
1503
|
])) : k("", !0),
|
|
1527
1504
|
j("div", $e, [(F(), A("svg", {
|
|
1528
1505
|
ref_key: "svgRef",
|
|
1529
|
-
ref:
|
|
1506
|
+
ref: K,
|
|
1530
1507
|
class: he({
|
|
1531
1508
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1532
1509
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1533
1510
|
}),
|
|
1534
1511
|
"aria-describedby": `chart-instructions-${V.value}`,
|
|
1535
1512
|
xmlns: R(p),
|
|
1536
|
-
viewBox: `${R(
|
|
1513
|
+
viewBox: `${R(Yt).x} ${R(Yt).y} ${R(Yt).width} ${R(Yt).height}`,
|
|
1537
1514
|
style: "overflow:hidden;background:transparent;display:block",
|
|
1538
1515
|
tabindex: "0",
|
|
1539
|
-
onFocus:
|
|
1540
|
-
onBlur:
|
|
1541
|
-
onKeydown:
|
|
1516
|
+
onFocus: Sn,
|
|
1517
|
+
onBlur: Cn,
|
|
1518
|
+
onKeydown: wn
|
|
1542
1519
|
}, [
|
|
1543
1520
|
fe(R(Me)),
|
|
1544
1521
|
e.$slots["chart-background"] ? (F(), A("foreignObject", {
|
|
1545
1522
|
key: 0,
|
|
1546
1523
|
x: 0,
|
|
1547
1524
|
y: 0,
|
|
1548
|
-
width:
|
|
1549
|
-
height:
|
|
1525
|
+
width: q.value.width <= 0 ? 10 : q.value.width,
|
|
1526
|
+
height: q.value.height <= 0 ? 10 : q.value.height,
|
|
1550
1527
|
style: { pointerEvents: "none" }
|
|
1551
1528
|
}, [L(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : k("", !0),
|
|
1552
1529
|
j("g", {
|
|
1553
|
-
transform: `translate(${
|
|
1554
|
-
class: he({ "wc-finalized":
|
|
1555
|
-
}, [(F(!0), A(le, null, ye(
|
|
1530
|
+
transform: `translate(${Ct.value.x}, ${Ct.value.y})`,
|
|
1531
|
+
class: he({ "wc-finalized": qe.value })
|
|
1532
|
+
}, [(F(!0), A(le, null, ye(X.value, (e, t) => (F(), A("g", {
|
|
1556
1533
|
key: e.id,
|
|
1557
1534
|
class: "vue-ui-word-cloud-word",
|
|
1558
1535
|
transform: `translate(${e.x}, ${e.y})`
|
|
@@ -1565,13 +1542,13 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1565
1542
|
height: e.maxY - e.minY,
|
|
1566
1543
|
fill: "transparent",
|
|
1567
1544
|
"pointer-events": "visiblePainted",
|
|
1568
|
-
"aria-label": `${e.name}: ${(e.value || 0).toFixed(
|
|
1569
|
-
onMouseover: (n) =>
|
|
1570
|
-
onMouseleave: (n) =>
|
|
1571
|
-
onClick: (n) =>
|
|
1545
|
+
"aria-label": `${e.name}: ${(e.value || 0).toFixed(W.value.style.chart.tooltip.roundingValue)}`,
|
|
1546
|
+
onMouseover: (n) => bn(e, t),
|
|
1547
|
+
onMouseleave: (n) => _n(e, t),
|
|
1548
|
+
onClick: (n) => vn(e, t)
|
|
1572
1549
|
}, null, 40, it)), j("text", {
|
|
1573
1550
|
fill: e.color,
|
|
1574
|
-
"font-weight":
|
|
1551
|
+
"font-weight": W.value.style.chart.words.bold ? "bold" : "normal",
|
|
1575
1552
|
x: 0,
|
|
1576
1553
|
y: 0,
|
|
1577
1554
|
"font-size": e.fontSize,
|
|
@@ -1579,37 +1556,37 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1579
1556
|
"text-anchor": "middle",
|
|
1580
1557
|
"dominant-baseline": "central",
|
|
1581
1558
|
"paint-order": "stroke fill",
|
|
1582
|
-
stroke: !$.value || $.value === e.id ?
|
|
1559
|
+
stroke: !$.value || $.value === e.id ? W.value.style.chart.words.selectedStroke : void 0,
|
|
1583
1560
|
"stroke-width": e.height * .05,
|
|
1584
1561
|
"stroke-linecap": "round",
|
|
1585
1562
|
"stroke-linejoin": "round",
|
|
1586
1563
|
style: ge(`
|
|
1587
1564
|
pointer-events:none;
|
|
1588
|
-
fill-opacity:${!$.value || $.value === e.id || !
|
|
1565
|
+
fill-opacity:${!$.value || $.value === e.id || !qe.value ? 1 : W.value.style.chart.words.hoverOpacity} !important;
|
|
1589
1566
|
`)
|
|
1590
1567
|
}, Se(e.name), 13, at)], 8, rt))), 128))], 10, nt),
|
|
1591
1568
|
L(e.$slots, "svg", { svg: {
|
|
1592
|
-
...
|
|
1593
|
-
isPrintingImg: R(
|
|
1594
|
-
isPrintingSvg:
|
|
1569
|
+
...q.value,
|
|
1570
|
+
isPrintingImg: R(Mt) || R(Nt) || R(sn),
|
|
1571
|
+
isPrintingSvg: R(cn)
|
|
1595
1572
|
} }, void 0, !0)
|
|
1596
1573
|
], 42, et)), e.$slots.hint ? (F(), A("div", ot, [L(e.$slots, "hint", P(N({
|
|
1597
|
-
hint:
|
|
1598
|
-
isVisible:
|
|
1574
|
+
hint: W.value.a11y.translations.keyboardNavigation,
|
|
1575
|
+
isVisible: ft.value
|
|
1599
1576
|
})), void 0, !0)])) : k("", !0)]),
|
|
1600
|
-
e.$slots.watermark ? (F(), A("div", st, [L(e.$slots, "watermark", P(N({ isPrinting: R(
|
|
1601
|
-
R(
|
|
1602
|
-
|
|
1577
|
+
e.$slots.watermark ? (F(), A("div", st, [L(e.$slots, "watermark", P(N({ isPrinting: R(Mt) || R(Nt) || R(sn) || R(cn) })), void 0, !0)])) : k("", !0),
|
|
1578
|
+
R(Zt) ? (F(), A("div", ct, [L(e.$slots, "reset-action", { reset: R(Xt) }, void 0, !0)])) : k("", !0),
|
|
1579
|
+
W.value.style.chart.controls.position === "bottom" && W.value.style.chart.controls.show && !R(mt) ? (F(), O(ce, {
|
|
1603
1580
|
key: 7,
|
|
1604
1581
|
ref_key: "zoomControls",
|
|
1605
|
-
ref:
|
|
1606
|
-
config:
|
|
1607
|
-
scale: R(
|
|
1582
|
+
ref: Ye,
|
|
1583
|
+
config: W.value,
|
|
1584
|
+
scale: R(en),
|
|
1608
1585
|
isFullscreen: Q.value,
|
|
1609
|
-
isCursorPointer:
|
|
1610
|
-
onZoomIn:
|
|
1611
|
-
onZoomOut:
|
|
1612
|
-
onResetZoom: t[1] ||= (e) => R(
|
|
1586
|
+
isCursorPointer: G.value,
|
|
1587
|
+
onZoomIn: dn,
|
|
1588
|
+
onZoomOut: fn,
|
|
1589
|
+
onResetZoom: t[1] ||= (e) => R(Xt)(!0)
|
|
1613
1590
|
}, null, 8, [
|
|
1614
1591
|
"config",
|
|
1615
1592
|
"scale",
|
|
@@ -1617,32 +1594,32 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1617
1594
|
"isCursorPointer"
|
|
1618
1595
|
])) : k("", !0),
|
|
1619
1596
|
fe(R(Ee), {
|
|
1620
|
-
teleportTo:
|
|
1621
|
-
show:
|
|
1622
|
-
backgroundColor:
|
|
1623
|
-
color:
|
|
1624
|
-
fontSize:
|
|
1625
|
-
borderRadius:
|
|
1626
|
-
borderColor:
|
|
1627
|
-
borderWidth:
|
|
1628
|
-
backgroundOpacity:
|
|
1629
|
-
position:
|
|
1630
|
-
offsetX:
|
|
1631
|
-
offsetY:
|
|
1597
|
+
teleportTo: W.value.style.chart.tooltip.teleportTo,
|
|
1598
|
+
show: Y.value.showTooltip && We.value,
|
|
1599
|
+
backgroundColor: W.value.style.chart.tooltip.backgroundColor,
|
|
1600
|
+
color: W.value.style.chart.tooltip.color,
|
|
1601
|
+
fontSize: W.value.style.chart.tooltip.fontSize,
|
|
1602
|
+
borderRadius: W.value.style.chart.tooltip.borderRadius,
|
|
1603
|
+
borderColor: W.value.style.chart.tooltip.borderColor,
|
|
1604
|
+
borderWidth: W.value.style.chart.tooltip.borderWidth,
|
|
1605
|
+
backgroundOpacity: W.value.style.chart.tooltip.backgroundOpacity,
|
|
1606
|
+
position: W.value.style.chart.tooltip.position,
|
|
1607
|
+
offsetX: W.value.style.chart.tooltip.offsetX,
|
|
1608
|
+
offsetY: W.value.style.chart.tooltip.offsetY,
|
|
1632
1609
|
parent: H.value,
|
|
1633
|
-
content:
|
|
1634
|
-
isCustom:
|
|
1610
|
+
content: mn.value,
|
|
1611
|
+
isCustom: pn.value,
|
|
1635
1612
|
isFullscreen: Q.value,
|
|
1636
|
-
smooth:
|
|
1637
|
-
backdropFilter:
|
|
1638
|
-
smoothForce:
|
|
1639
|
-
smoothSnapThreshold:
|
|
1640
|
-
isA11yMode:
|
|
1641
|
-
a11yPosition:
|
|
1613
|
+
smooth: W.value.style.chart.tooltip.smooth,
|
|
1614
|
+
backdropFilter: W.value.style.chart.tooltip.backdropFilter,
|
|
1615
|
+
smoothForce: W.value.style.chart.tooltip.smoothForce,
|
|
1616
|
+
smoothSnapThreshold: W.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1617
|
+
isA11yMode: dt.value === "keyboard",
|
|
1618
|
+
a11yPosition: ut.value
|
|
1642
1619
|
}, {
|
|
1643
|
-
"tooltip-before": z(() => [L(e.$slots, "tooltip-before", P(N({ ...
|
|
1644
|
-
tooltip: z(() => [L(e.$slots, "tooltip", P(N({ ...
|
|
1645
|
-
"tooltip-after": z(() => [L(e.$slots, "tooltip-after", P(N({ ...
|
|
1620
|
+
"tooltip-before": z(() => [L(e.$slots, "tooltip-before", P(N({ ...hn.value })), void 0, !0)]),
|
|
1621
|
+
tooltip: z(() => [L(e.$slots, "tooltip", P(N({ ...hn.value })), void 0, !0)]),
|
|
1622
|
+
"tooltip-after": z(() => [L(e.$slots, "tooltip-after", P(N({ ...hn.value })), void 0, !0)]),
|
|
1646
1623
|
_: 3
|
|
1647
1624
|
}, 8, [
|
|
1648
1625
|
"teleportTo",
|
|
@@ -1674,21 +1651,21 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1674
1651
|
ref: Ve,
|
|
1675
1652
|
dir: "auto"
|
|
1676
1653
|
}, [L(e.$slots, "source", {}, void 0, !0)], 512)) : k("", !0),
|
|
1677
|
-
Re.value &&
|
|
1654
|
+
Re.value && W.value.userOptions.buttons.table ? (F(), O(be(nn.value.component), pe({ key: 9 }, nn.value.props, {
|
|
1678
1655
|
ref_key: "tableUnit",
|
|
1679
|
-
ref:
|
|
1680
|
-
onClose:
|
|
1656
|
+
ref: Ge,
|
|
1657
|
+
onClose: rn
|
|
1681
1658
|
}), ue({
|
|
1682
1659
|
content: z(() => [(F(), O(R(ke), {
|
|
1683
1660
|
key: `table_${Ue.value}`,
|
|
1684
|
-
colNames:
|
|
1685
|
-
head:
|
|
1686
|
-
body:
|
|
1687
|
-
config:
|
|
1688
|
-
title:
|
|
1689
|
-
withCloseButton: !
|
|
1690
|
-
isCursorPointer:
|
|
1691
|
-
onClose:
|
|
1661
|
+
colNames: Z.value.colNames,
|
|
1662
|
+
head: Z.value.head,
|
|
1663
|
+
body: Z.value.body,
|
|
1664
|
+
config: Z.value.config,
|
|
1665
|
+
title: W.value.table.useDialog ? "" : nn.value.title,
|
|
1666
|
+
withCloseButton: !W.value.table.useDialog,
|
|
1667
|
+
isCursorPointer: G.value,
|
|
1668
|
+
onClose: rn
|
|
1692
1669
|
}, {
|
|
1693
1670
|
th: z(({ th: e }) => [j("div", {
|
|
1694
1671
|
innerHTML: e,
|
|
@@ -1709,26 +1686,26 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
|
|
|
1709
1686
|
"isCursorPointer"
|
|
1710
1687
|
]))]),
|
|
1711
1688
|
_: 2
|
|
1712
|
-
}, [
|
|
1689
|
+
}, [W.value.table.useDialog ? {
|
|
1713
1690
|
name: "title",
|
|
1714
|
-
fn: z(() => [de(Se(
|
|
1691
|
+
fn: z(() => [de(Se(nn.value.title), 1)]),
|
|
1715
1692
|
key: "0"
|
|
1716
|
-
} : void 0,
|
|
1693
|
+
} : void 0, W.value.table.useDialog ? {
|
|
1717
1694
|
name: "actions",
|
|
1718
1695
|
fn: z(() => [j("button", {
|
|
1719
1696
|
tabindex: "0",
|
|
1720
1697
|
class: "vue-ui-user-options-button",
|
|
1721
|
-
onClick: t[2] ||= (e) =>
|
|
1722
|
-
style: ge({ cursor:
|
|
1698
|
+
onClick: t[2] ||= (e) => Bt(W.value.userOptions.callbacks.csv),
|
|
1699
|
+
style: ge({ cursor: G.value ? "pointer" : "default" })
|
|
1723
1700
|
}, [fe(R(De), {
|
|
1724
1701
|
name: "fileCsv",
|
|
1725
|
-
stroke:
|
|
1702
|
+
stroke: nn.value.props.color
|
|
1726
1703
|
}, null, 8, ["stroke"])], 4)]),
|
|
1727
1704
|
key: "1"
|
|
1728
1705
|
} : void 0]), 1040)) : k("", !0),
|
|
1729
|
-
L(e.$slots, "skeleton", {}, () => [R(
|
|
1706
|
+
L(e.$slots, "skeleton", {}, () => [R(mt) ? (F(), O(te, { key: 0 })) : k("", !0)], !0)
|
|
1730
1707
|
], 44, Ze));
|
|
1731
1708
|
}
|
|
1732
|
-
}, [["__scopeId", "data-v-
|
|
1709
|
+
}, [["__scopeId", "data-v-d55cdbfc"]]);
|
|
1733
1710
|
//#endregion
|
|
1734
|
-
export {
|
|
1711
|
+
export { U as n, ut as t };
|