vue-data-ui 3.23.0 → 3.23.1
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-D6d8SCp9.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/Slicer-CIk57nL4.js +1163 -0
- 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-KvlL5CqE.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-oDYGTc5P.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 +3 -0
- package/dist/{useConfig-BilxnBNr.js → useConfig-D3scuR88.js} +7 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-Brg8mm5J.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
- 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-DGWDPCwC.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-C_Su9fve.js} +45 -45
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-BxGriZik.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CgnPWA93.js → vue-ui-age-pyramid-D4k1MkAL.js} +41 -40
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-CCtnM8Rv.js} +41 -68
- package/dist/{vue-ui-bullet-Bc3-WaN1.js → vue-ui-bullet-DLZr2Uk8.js} +21 -21
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-CcdzJZ9n.js} +32 -32
- package/dist/{vue-ui-candlestick-DvvsrIdp.js → vue-ui-candlestick-EEEt7ORC.js} +50 -48
- package/dist/{vue-ui-carousel-table-DtsNVim8.js → vue-ui-carousel-table-BicIpNAD.js} +8 -8
- package/dist/vue-ui-chestnut-BI7mC5dd.js +2068 -0
- package/dist/{vue-ui-chord-xX5gWZy8.js → vue-ui-chord-DXaq8ZMu.js} +46 -46
- package/dist/{vue-ui-circle-pack-D8wykmqg.js → vue-ui-circle-pack-XHJBMG51.js} +362 -341
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-BqHr0n1Z.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-jMLVoQkb.js} +715 -720
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-DVAUFETR.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Dy4gG6qm.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-C0cWRLbU.js} +48 -47
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-CYpxGBhl.js} +18 -17
- package/dist/{vue-ui-donut-evolution-D6vH_hfx.js → vue-ui-donut-evolution-DwR47A2r.js} +58 -53
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-DxVbRjKR.js} +85 -85
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-DWaZF4FS.js} +37 -37
- package/dist/{vue-ui-funnel-CjYosIik.js → vue-ui-funnel-Bmpx5GHR.js} +24 -24
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-CWBP9oH9.js} +151 -151
- package/dist/{vue-ui-gauge-CByT0_vF.js → vue-ui-gauge-ByE_txav.js} +20 -20
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-ZA7CBy8f.js} +186 -186
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-SQCou0bQ.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-CHd9gs_p.js} +385 -385
- package/dist/vue-ui-hill-BT183G-_.js +1768 -0
- package/dist/{vue-ui-history-plot-BhcU94Pt.js → vue-ui-history-plot-BwnlC1mx.js} +511 -510
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-BUar2HUH.js} +235 -235
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-BF_9WWoo.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CvfukjXi.js} +3 -3
- package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-_zpbmvJs.js} +50 -50
- package/dist/{vue-ui-nested-donuts-aS4YzaB3.js → vue-ui-nested-donuts-qHZAJ70u.js} +43 -43
- package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-BUwt-apg.js} +54 -54
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-CoROD3er.js} +74 -74
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-BcH7eY4-.js} +96 -88
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-DGbaXGme.js} +191 -191
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-Bo3zD3yW.js} +3 -3
- package/dist/{vue-ui-relation-circle-FLs8vOxQ.js → vue-ui-relation-circle-DaU1eTsG.js} +32 -32
- package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-BJUBn8_b.js} +40 -40
- package/dist/{vue-ui-scatter-CNA7jF-o.js → vue-ui-scatter-Pcft1bUt.js} +50 -50
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-EeJcGbCo.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-D0gibt5c.js} +3 -3
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-BRoQ7JpQ.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-DFp2k7-7.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-D0Bq85Hs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-BPln7v63.js} +13 -13
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-C6Q45Dqp.js} +7 -6
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-CjK4bcQg.js} +5 -5
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-Ca8EPf3e.js} +83 -80
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Pz5WWlWT.js} +189 -186
- package/dist/{vue-ui-strip-plot-ACeYOoHj.js → vue-ui-strip-plot-Dw4MGDSO.js} +66 -66
- package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-ljeYW8Wc.js} +10 -10
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-iRFmtK5S.js} +8 -8
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-D8uiOaeA.js} +26 -26
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-CYw983oL.js} +6 -6
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-h4VbnqPA.js} +77 -77
- package/dist/{vue-ui-waffle-iPpdk1Bm.js → vue-ui-waffle-cu0w_s6L.js} +41 -41
- package/dist/vue-ui-wheel-tLvJadk5.js +892 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-BjpGSsod.js} +68 -68
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-B4fCS3jN.js} +184 -184
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-7ZT9IRD8.js} +60 -60
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-BnLEwBpi.js} +20 -18
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-gyNS0yH0.js} +329 -326
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-chestnut-ArloORzP.js +0 -2068
- package/dist/vue-ui-hill-D7LYAgAL.js +0 -1768
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Gt as r, Jt as i, Kt as a, Ot as o, Pt as s, S as c, W as l, X as u, Y as d, i as f, jt as p, q as m, r as h, t as g, tt as
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { l as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, D as n, Gt as r, Jt as i, Kt as a, Ot as o, Pt as s, S as c, W as l, X as u, Y as d, i as f, jt as p, q as m, r as h, t as g, tt as _, w as ee, xt as te } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as ie } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as ae } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
+
import { t as ce } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as le } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as de } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as fe } from "./img-Bnokohej.js";
|
|
12
|
+
import { n as pe } from "./Title-BE3qg9xl.js";
|
|
13
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
|
+
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
+
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as ve } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as be } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as xe } from "./usePanZoom-CYU3B4T3.js";
|
|
20
|
+
import { t as Se } from "./vue_ui_circle_pack-DZC_rdfn.js";
|
|
21
|
+
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as w, guardReactiveProps as T, mergeProps as Ee, nextTick as De, normalizeClass as E, normalizeProps as D, normalizeStyle as Oe, onBeforeUnmount as ke, onMounted as Ae, openBlock as O, ref as k, renderList as je, renderSlot as A, resolveDynamicComponent as Me, toDisplayString as j, toRefs as Ne, unref as M, useCssVars as Pe, watch as Fe, withCtx as N } from "vue";
|
|
22
22
|
//#region src/packCircles.js
|
|
23
23
|
function Ie(e, t = 0) {
|
|
24
24
|
let n = e.reduce((e, { x: n, r }) => Math.min(e, n - r - t), Infinity), r = e.reduce((e, { x: n, r }) => Math.max(e, n + r + t), -Infinity), i = e.reduce((e, { y: n, r }) => Math.min(e, n - r - t), Infinity), a = e.reduce((e, { y: n, r }) => Math.max(e, n + r + t), -Infinity);
|
|
@@ -151,13 +151,13 @@ function Ge(e, t, n) {
|
|
|
151
151
|
if (!c || c > r + i || c < Math.abs(r - i)) return [];
|
|
152
152
|
let l = (r * r - i * i + s) / (2 * c), u = r * r - l * l;
|
|
153
153
|
if (u < 0) return [];
|
|
154
|
-
let d = Math.sqrt(u), f = a / c, p = o / c, m = e.x + l * f, h = e.y + l * p, g = -p * d,
|
|
154
|
+
let d = Math.sqrt(u), f = a / c, p = o / c, m = e.x + l * f, h = e.y + l * p, g = -p * d, _ = f * d;
|
|
155
155
|
return [{
|
|
156
156
|
x: m + g,
|
|
157
|
-
y: h +
|
|
157
|
+
y: h + _
|
|
158
158
|
}, {
|
|
159
159
|
x: m - g,
|
|
160
|
-
y: h -
|
|
160
|
+
y: h - _
|
|
161
161
|
}];
|
|
162
162
|
}
|
|
163
163
|
function F(e, t) {
|
|
@@ -240,6 +240,7 @@ var qe = class {
|
|
|
240
240
|
"width",
|
|
241
241
|
"height",
|
|
242
242
|
"rx",
|
|
243
|
+
"ry",
|
|
243
244
|
"fill",
|
|
244
245
|
"stroke",
|
|
245
246
|
"stroke-width",
|
|
@@ -273,7 +274,7 @@ var qe = class {
|
|
|
273
274
|
key: 6,
|
|
274
275
|
"data-dom-to-png-ignore": "",
|
|
275
276
|
class: "reset-wrapper"
|
|
276
|
-
}, mt = ["innerHTML"], ht = /*#__PURE__*/
|
|
277
|
+
}, mt = ["innerHTML"], ht = /*#__PURE__*/ me({
|
|
277
278
|
__name: "vue-ui-circle-pack",
|
|
278
279
|
props: {
|
|
279
280
|
config: {
|
|
@@ -290,18 +291,18 @@ var qe = class {
|
|
|
290
291
|
}
|
|
291
292
|
},
|
|
292
293
|
emits: ["selectDatapoint", "copyAlt"],
|
|
293
|
-
setup(e, { expose:
|
|
294
|
-
Pe((e) => ({
|
|
295
|
-
let ze =
|
|
294
|
+
setup(e, { expose: me, emit: Le }) {
|
|
295
|
+
Pe((e) => ({ b4e89302: cr.value }));
|
|
296
|
+
let ze = w(() => import("./Tooltip-DhjyfHwz.js")), P = w(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Be = w(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Ve = w(() => import("./DataTable-BbKgJ5UI.js")), He = w(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ue = w(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), We = w(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Ge = w(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), F = e, Ke = Le, { vue_ui_circle_pack: qe } = ie(), { isThemeValid: Je, warnInvalidTheme: ht } = ue(), gt = y(() => !!F.dataset && F.dataset.length), I = k(m()), L = k(null), _t = k(null), vt = k(null), yt = k(0), bt = k(0), xt = k(0), St = k(null), R = k(null), Ct = k(null), wt = k(!1), Tt = k(""), z = k(null), Et = k(!1), Dt = k(!1), B = k(null), Ot = k({
|
|
296
297
|
x: 0,
|
|
297
298
|
y: 0
|
|
298
299
|
}), kt = k("pointer"), At = k(!1), V = k(Lt());
|
|
299
|
-
|
|
300
|
+
ne({
|
|
300
301
|
config: () => V.value,
|
|
301
302
|
dataset: () => F.dataset,
|
|
302
303
|
component: "VueUiCirclePack",
|
|
303
304
|
rules: [
|
|
304
|
-
|
|
305
|
+
re.emptyArray,
|
|
305
306
|
{
|
|
306
307
|
test: (e) => e.length === 1 && (!e[0].children || e[0]?.children.length === 0),
|
|
307
308
|
message: [
|
|
@@ -320,10 +321,10 @@ var qe = class {
|
|
|
320
321
|
}
|
|
321
322
|
]
|
|
322
323
|
});
|
|
323
|
-
let { transitionEnabled: H } =
|
|
324
|
+
let { transitionEnabled: H } = de({
|
|
324
325
|
config: () => V.value.transitions,
|
|
325
326
|
dataset: () => F.dataset
|
|
326
|
-
}), U =
|
|
327
|
+
}), U = y(() => V.value.userOptions.useCursorPointer), jt = y(() => i({
|
|
327
328
|
defaultConfig: {
|
|
328
329
|
userOptions: { show: !1 },
|
|
329
330
|
table: { show: !1 },
|
|
@@ -339,7 +340,7 @@ var qe = class {
|
|
|
339
340
|
} }
|
|
340
341
|
},
|
|
341
342
|
userConfig: V.value.skeletonConfig ?? {}
|
|
342
|
-
})), { loading: Mt, FINAL_DATASET: Nt } =
|
|
343
|
+
})), { loading: Mt, FINAL_DATASET: Nt } = oe({
|
|
343
344
|
...Ne(F),
|
|
344
345
|
FINAL_CONFIG: V,
|
|
345
346
|
prepareConfig: Lt,
|
|
@@ -379,18 +380,18 @@ var qe = class {
|
|
|
379
380
|
defaultConfig: V.value,
|
|
380
381
|
userConfig: jt.value
|
|
381
382
|
})
|
|
382
|
-
}), { svgRef: W } =
|
|
383
|
+
}), { svgRef: W } = be({ config: V.value.style.chart.title }), { userOptionsVisible: Pt, setUserOptionsVisibility: Ft, keepUserOptionState: It } = ye({ config: V.value });
|
|
383
384
|
function Lt() {
|
|
384
|
-
let e =
|
|
385
|
+
let e = le({
|
|
385
386
|
userConfig: F.config,
|
|
386
387
|
defaultConfig: qe
|
|
387
388
|
}), t = e.theme;
|
|
388
389
|
if (!t) return e;
|
|
389
390
|
if (!Je.value(e)) return ht(e), e;
|
|
390
|
-
let n =
|
|
391
|
-
userConfig:
|
|
391
|
+
let n = le({
|
|
392
|
+
userConfig: Se[t] || F.config,
|
|
392
393
|
defaultConfig: e
|
|
393
|
-
}), r =
|
|
394
|
+
}), r = le({
|
|
394
395
|
userConfig: F.config,
|
|
395
396
|
defaultConfig: n
|
|
396
397
|
});
|
|
@@ -400,13 +401,13 @@ var qe = class {
|
|
|
400
401
|
};
|
|
401
402
|
}
|
|
402
403
|
Fe(() => F.config, (e) => {
|
|
403
|
-
V.value = Lt(), Pt.value = !V.value.userOptions.showOnChartHover,
|
|
404
|
+
V.value = Lt(), Pt.value = !V.value.userOptions.showOnChartHover, sn(), yt.value += 1, bt.value += 1, G.value.showTable = V.value.table.show, G.value.showTooltip = V.value.style.chart.tooltip.show, G.value.showZoom = V.value.style.chart.zoom?.show ?? !1;
|
|
404
405
|
}, { deep: !0 });
|
|
405
|
-
let { isPrinting: Rt, isImaging: zt, generatePdf: Bt, generateImage: Vt } =
|
|
406
|
+
let { isPrinting: Rt, isImaging: zt, generatePdf: Bt, generateImage: Vt } = ae({
|
|
406
407
|
elementId: `vue-ui-circle-pack_${I.value}`,
|
|
407
408
|
fileName: V.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
408
409
|
options: V.value.userOptions.print
|
|
409
|
-
}), Ht =
|
|
410
|
+
}), Ht = y(() => V.value.userOptions.show && !V.value.style.chart.title.text), G = k({
|
|
410
411
|
showTable: V.value.table.show,
|
|
411
412
|
showTooltip: V.value.style.chart.tooltip.show,
|
|
412
413
|
showZoom: V.value.style.chart.zoom?.show ?? !1
|
|
@@ -426,19 +427,24 @@ var qe = class {
|
|
|
426
427
|
0,
|
|
427
428
|
100,
|
|
428
429
|
100
|
|
429
|
-
]), Wt =
|
|
430
|
+
]), Wt = k({
|
|
431
|
+
x: 0,
|
|
432
|
+
y: 0,
|
|
433
|
+
width: 100,
|
|
434
|
+
height: 100
|
|
435
|
+
}), Gt = y(() => V.value.debug), Kt = y(() => {
|
|
430
436
|
let e = V.value.style?.chart || {};
|
|
431
437
|
return e.dimensions && typeof e.dimensions.width == "number" ? e.dimensions.width : typeof e.width == "number" ? e.width : 300;
|
|
432
|
-
}),
|
|
438
|
+
}), qt = y(() => {
|
|
433
439
|
let e = V.value.style?.chart || {};
|
|
434
440
|
return e.dimensions && typeof e.dimensions.height == "number" ? e.dimensions.height : typeof e.height == "number" ? e.height : 300;
|
|
435
441
|
}), q = k([]), J = k([]), Y = k(null), X = k(null);
|
|
436
|
-
function
|
|
442
|
+
function Jt(e, t) {
|
|
437
443
|
K.value = {
|
|
438
444
|
w: e,
|
|
439
445
|
h: t
|
|
440
446
|
};
|
|
441
|
-
let n =
|
|
447
|
+
let n = ln.value.map(Yt);
|
|
442
448
|
if (!n.length) {
|
|
443
449
|
let n = {
|
|
444
450
|
x: 0,
|
|
@@ -451,7 +457,7 @@ var qe = class {
|
|
|
451
457
|
n.y,
|
|
452
458
|
n.width,
|
|
453
459
|
n.height
|
|
454
|
-
],
|
|
460
|
+
], Wt.value = { ...n }, Tn(n);
|
|
455
461
|
return;
|
|
456
462
|
}
|
|
457
463
|
let r = Re(n, t, e), [i, a, o, s] = Ie(r, 1), c = Math.min(o ? e / o : 1, s ? t / s : 1), l = (e - o * c) / 2, u = (t - s * c) / 2, d = r.map((e) => ({
|
|
@@ -460,8 +466,8 @@ var qe = class {
|
|
|
460
466
|
y: (e.y - a) * c + u,
|
|
461
467
|
r: e.r * c
|
|
462
468
|
}));
|
|
463
|
-
q.value =
|
|
464
|
-
let f =
|
|
469
|
+
q.value = tn(d), J.value = q.value;
|
|
470
|
+
let f = In({
|
|
465
471
|
x: 0,
|
|
466
472
|
y: 0,
|
|
467
473
|
width: e,
|
|
@@ -472,30 +478,30 @@ var qe = class {
|
|
|
472
478
|
f.y,
|
|
473
479
|
f.width,
|
|
474
480
|
f.height
|
|
475
|
-
],
|
|
481
|
+
], Wt.value = { ...f }, Tn(f);
|
|
476
482
|
}
|
|
477
|
-
function
|
|
483
|
+
function Yt(e) {
|
|
478
484
|
return {
|
|
479
485
|
...e,
|
|
480
|
-
children: Array.isArray(e.children) ? e.children.map(
|
|
486
|
+
children: Array.isArray(e.children) ? e.children.map(Yt) : []
|
|
481
487
|
};
|
|
482
488
|
}
|
|
483
|
-
function
|
|
489
|
+
function Xt(e) {
|
|
484
490
|
let t = Number(e?.value);
|
|
485
|
-
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e +
|
|
491
|
+
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e + Xt(t), 0) : 0;
|
|
486
492
|
}
|
|
487
|
-
function
|
|
488
|
-
let n = a[V.value.theme || "default"] || s, r =
|
|
493
|
+
function Zt(e, t) {
|
|
494
|
+
let n = a[V.value.theme || "default"] || s, r = cn.value.length ? cn.value : n.length ? n : s;
|
|
489
495
|
return c(e.color) || r[t % r.length] || s[t % s.length];
|
|
490
496
|
}
|
|
491
|
-
function
|
|
492
|
-
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e +
|
|
497
|
+
function Qt(e) {
|
|
498
|
+
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e + Qt(t), 0);
|
|
493
499
|
}
|
|
494
|
-
function
|
|
500
|
+
function $t(e, t = null, n = 0, r = []) {
|
|
495
501
|
return Array.isArray(e) ? e.map((e, i) => {
|
|
496
|
-
let a =
|
|
502
|
+
let a = Xt(e);
|
|
497
503
|
if (!Number.isFinite(a) || a <= 0) return null;
|
|
498
|
-
let o = m(), s = [...r, i], l = s.reduce((e, t, n) => e + t + n, 0), u = e.color || t?.color ? c(e.color || t?.color) :
|
|
504
|
+
let o = m(), s = [...r, i], l = s.reduce((e, t, n) => e + t + n, 0), u = e.color || t?.color ? c(e.color || t?.color) : Zt(e, l), d = $t(e.children, {
|
|
499
505
|
id: o,
|
|
500
506
|
name: e.name,
|
|
501
507
|
color: u,
|
|
@@ -513,17 +519,17 @@ var qe = class {
|
|
|
513
519
|
rootId: t?.rootId ?? o,
|
|
514
520
|
hasChildren: d.length > 0,
|
|
515
521
|
childCount: d.length,
|
|
516
|
-
leafCount: d.length ?
|
|
522
|
+
leafCount: d.length ? Qt({ children: d }) : 1,
|
|
517
523
|
hierarchyPath: s,
|
|
518
524
|
children: d
|
|
519
525
|
};
|
|
520
526
|
}).filter(Boolean) : [];
|
|
521
527
|
}
|
|
522
|
-
function
|
|
528
|
+
function en(e) {
|
|
523
529
|
if (!Array.isArray(e.children) || !e.children.length) return [];
|
|
524
530
|
let t = e.r * 2;
|
|
525
531
|
if (!t) return [];
|
|
526
|
-
let n = Re(e.children.map(
|
|
532
|
+
let n = Re(e.children.map(Yt), t, t), [r, i, a, o] = Ie(n, 1), s = Math.min(a ? t / a : 1, o ? t / o : 1) * .9, c = a * s, l = o * s, u = e.x - c / 2, d = e.y - l / 2;
|
|
527
533
|
return n.map((e) => ({
|
|
528
534
|
...e,
|
|
529
535
|
x: (e.x - r) * s + u,
|
|
@@ -531,26 +537,26 @@ var qe = class {
|
|
|
531
537
|
r: e.r * s
|
|
532
538
|
}));
|
|
533
539
|
}
|
|
534
|
-
function
|
|
540
|
+
function tn(e) {
|
|
535
541
|
let t = [];
|
|
536
542
|
return e.forEach((e) => {
|
|
537
|
-
let n =
|
|
543
|
+
let n = en(e);
|
|
538
544
|
t.push({
|
|
539
545
|
...e,
|
|
540
546
|
children: n
|
|
541
|
-
}), t.push(...
|
|
547
|
+
}), t.push(...tn(n));
|
|
542
548
|
}), t;
|
|
543
549
|
}
|
|
544
|
-
function
|
|
550
|
+
function nn(e, t) {
|
|
545
551
|
return !e || !t || !Array.isArray(e.hierarchyPath) || !Array.isArray(t.hierarchyPath) || e.hierarchyPath.length <= t.hierarchyPath.length ? !1 : t.hierarchyPath.every((t, n) => e.hierarchyPath[n] === t);
|
|
546
552
|
}
|
|
547
|
-
function
|
|
553
|
+
function rn(e) {
|
|
548
554
|
return e.hasChildren ? V.value.style.chart.circles.labels.parents.show : V.value.style.chart.circles.labels.children.show;
|
|
549
555
|
}
|
|
550
|
-
function
|
|
556
|
+
function an() {
|
|
551
557
|
if (!V.value.responsive || !L.value) return;
|
|
552
|
-
let e =
|
|
553
|
-
let { width: e, height: t } =
|
|
558
|
+
let e = he(() => {
|
|
559
|
+
let { width: e, height: t } = ge({
|
|
554
560
|
chart: L.value,
|
|
555
561
|
title: V.value.style.chart.title.text ? _t.value : null,
|
|
556
562
|
legend: null,
|
|
@@ -558,68 +564,68 @@ var qe = class {
|
|
|
558
564
|
noTitle: vt.value
|
|
559
565
|
});
|
|
560
566
|
requestAnimationFrame(() => {
|
|
561
|
-
!e || !t || (W.value && (W.value.setAttribute("width", e), W.value.setAttribute("height", t)),
|
|
567
|
+
!e || !t || (W.value && (W.value.setAttribute("width", e), W.value.setAttribute("height", t)), Jt(e, t));
|
|
562
568
|
});
|
|
563
569
|
});
|
|
564
570
|
Y.value && (X.value && Y.value.unobserve(X.value), Y.value.disconnect()), Y.value = new ResizeObserver(e), X.value = L.value.parentNode || L.value, X.value && Y.value.observe(X.value), e();
|
|
565
571
|
}
|
|
566
|
-
function
|
|
572
|
+
function on() {
|
|
567
573
|
Y.value && (X.value && Y.value.unobserve(X.value), Y.value.disconnect(), Y.value = null, X.value = null);
|
|
568
574
|
}
|
|
569
|
-
async function
|
|
570
|
-
p(F.dataset) &&
|
|
575
|
+
async function sn() {
|
|
576
|
+
p(F.dataset) && _({
|
|
571
577
|
componentName: "VueUiCirclePack",
|
|
572
578
|
type: "dataset",
|
|
573
|
-
debug:
|
|
579
|
+
debug: Gt.value
|
|
574
580
|
});
|
|
575
|
-
let e =
|
|
576
|
-
|
|
581
|
+
let e = Kt.value, t = qt.value;
|
|
582
|
+
Jt(e, t), V.value.responsive ? an() : on();
|
|
577
583
|
}
|
|
578
|
-
Ae(
|
|
579
|
-
|
|
584
|
+
Ae(sn), ke(() => {
|
|
585
|
+
on();
|
|
580
586
|
}), Fe(() => Nt.value, async (e) => {
|
|
581
|
-
await
|
|
587
|
+
await sn();
|
|
582
588
|
}, { deep: !0 });
|
|
583
|
-
let
|
|
584
|
-
function
|
|
585
|
-
return
|
|
589
|
+
let cn = y(() => ee(V.value.customPalette)), ln = y(() => $t(Nt.value)), un = y(() => q.value.length ? Math.max(...q.value.map((e) => e.r)) : 0);
|
|
590
|
+
function dn(e, t) {
|
|
591
|
+
return un.value ? t / un.value * e : 0;
|
|
586
592
|
}
|
|
587
|
-
function
|
|
593
|
+
function fn(e, t) {
|
|
588
594
|
V.value.events.datapointLeave && V.value.events.datapointLeave({
|
|
589
595
|
datapoint: e,
|
|
590
596
|
seriesIndex: t
|
|
591
|
-
}),
|
|
597
|
+
}), (kt.value !== "keyboard" || z.value?.id !== e?.id) && (wt.value = !1, z.value = null, B.value = null, kt.value = "pointer");
|
|
592
598
|
}
|
|
593
|
-
function
|
|
599
|
+
function pn(e, t) {
|
|
594
600
|
Ke("selectDatapoint", e), V.value.events.datapointClick && V.value.events.datapointClick({
|
|
595
601
|
datapoint: e,
|
|
596
602
|
seriesIndex: t
|
|
597
603
|
});
|
|
598
604
|
}
|
|
599
|
-
let
|
|
600
|
-
function
|
|
605
|
+
let mn = k(null), hn = k(!1);
|
|
606
|
+
function gn(e, t, n = "pointer") {
|
|
601
607
|
z.value = e, B.value = t, kt.value = n, V.value.events.datapointEnter && V.value.events.datapointEnter({
|
|
602
608
|
datapoint: e,
|
|
603
609
|
seriesIndex: t
|
|
604
|
-
}),
|
|
610
|
+
}), mn.value = {
|
|
605
611
|
datapoint: e,
|
|
606
612
|
seriesIndex: t,
|
|
607
613
|
config: V.value,
|
|
608
614
|
series: J.value
|
|
609
615
|
}, wt.value = !0;
|
|
610
616
|
let r = V.value.style.chart.tooltip.customFormat;
|
|
611
|
-
if (
|
|
617
|
+
if (hn.value = !1, te(r)) try {
|
|
612
618
|
let n = r({
|
|
613
619
|
seriesIndex: t,
|
|
614
620
|
datapoint: e,
|
|
615
621
|
series: J.value,
|
|
616
622
|
config: V.value
|
|
617
623
|
});
|
|
618
|
-
typeof n == "string" && (Tt.value = n,
|
|
624
|
+
typeof n == "string" && (Tt.value = n, hn.value = !0);
|
|
619
625
|
} catch {
|
|
620
|
-
console.warn("Custom format cannot be applied."),
|
|
626
|
+
console.warn("Custom format cannot be applied."), hn.value = !1;
|
|
621
627
|
}
|
|
622
|
-
if (!
|
|
628
|
+
if (!hn.value) {
|
|
623
629
|
let t = "";
|
|
624
630
|
t += `
|
|
625
631
|
<div style="display:flex;align-items:center;gap:4px;">
|
|
@@ -631,12 +637,12 @@ var qe = class {
|
|
|
631
637
|
fill="${V.value.style.chart.circles.gradient.show ? `url(#${e.id})` : e.color}"
|
|
632
638
|
/>
|
|
633
639
|
</svg>
|
|
634
|
-
<span>${e.name}: <b>${
|
|
640
|
+
<span>${e.name}: <b>${_n(e)}</b></span>
|
|
635
641
|
</div>
|
|
636
642
|
`, Tt.value = t;
|
|
637
643
|
}
|
|
638
644
|
}
|
|
639
|
-
function
|
|
645
|
+
function _n(e) {
|
|
640
646
|
return f(V.value.style.chart.circles.labels.value.formatter, e.value, u({
|
|
641
647
|
p: V.value.style.chart.circles.labels.value.prefix,
|
|
642
648
|
v: e.value,
|
|
@@ -644,45 +650,45 @@ var qe = class {
|
|
|
644
650
|
r: V.value.style.chart.circles.labels.value.rounding
|
|
645
651
|
}));
|
|
646
652
|
}
|
|
647
|
-
function
|
|
653
|
+
function vn(e) {
|
|
648
654
|
if (!e) return 0;
|
|
649
|
-
let t =
|
|
655
|
+
let t = _n(e), n = e.r / (t.length || 1) * (t.length === 1 ? 1 : 2);
|
|
650
656
|
return Math.min(e.r / 2.5, n);
|
|
651
657
|
}
|
|
652
|
-
let
|
|
653
|
-
function
|
|
654
|
-
|
|
658
|
+
let Z = k(!1);
|
|
659
|
+
function yn(e) {
|
|
660
|
+
Z.value = e, xt.value += 1;
|
|
655
661
|
}
|
|
656
|
-
let
|
|
657
|
-
function
|
|
658
|
-
|
|
662
|
+
let bn = k(!1);
|
|
663
|
+
function xn() {
|
|
664
|
+
bn.value = !bn.value;
|
|
659
665
|
}
|
|
660
|
-
let
|
|
666
|
+
let Sn = y(() => !bn.value && G.value.showZoom), { viewBox: Q, resetZoom: Cn, isZoom: wn, setInitialViewBox: Tn } = xe(W, {
|
|
661
667
|
x: 0,
|
|
662
668
|
y: 0,
|
|
663
669
|
width: Math.max(10, K.value.w),
|
|
664
670
|
height: Math.max(10, K.value.h)
|
|
665
|
-
}, V.value.style.chart.zoom?.speed ?? 1,
|
|
666
|
-
function
|
|
671
|
+
}, V.value.style.chart.zoom?.speed ?? 1, Sn);
|
|
672
|
+
function En(e, t, n = 0) {
|
|
667
673
|
return !(e.x + e.width + n < t.x || t.x + t.width + n < e.x || e.y + e.height + n < t.y || t.y + t.height + n < e.y);
|
|
668
674
|
}
|
|
669
|
-
function
|
|
675
|
+
function Dn(e, t, n = 0) {
|
|
670
676
|
let r = Math.min(Math.max(t.x, e.x - n), e.x + e.width + n), i = Math.min(Math.max(t.y, e.y - n), e.y + e.height + n), a = t.x - r, o = t.y - i;
|
|
671
677
|
return a * a + o * o <= t.r * t.r;
|
|
672
678
|
}
|
|
673
|
-
function
|
|
674
|
-
let
|
|
679
|
+
function On(e, t, n = 1) {
|
|
680
|
+
let r = Math.max(4 * n, Math.min(t.width, t.height) * .01);
|
|
675
681
|
return {
|
|
676
682
|
...e,
|
|
677
|
-
x: Math.min(Math.max(e.x, t.x +
|
|
678
|
-
y: Math.min(Math.max(e.y, t.y +
|
|
683
|
+
x: Math.min(Math.max(e.x, t.x + r), t.x + t.width - e.width - r),
|
|
684
|
+
y: Math.min(Math.max(e.y, t.y + r), t.y + t.height - e.height - r)
|
|
679
685
|
};
|
|
680
686
|
}
|
|
681
|
-
function
|
|
687
|
+
function kn(e) {
|
|
682
688
|
let t = [e.name];
|
|
683
|
-
return V.value.style.chart.circles.labels.value.show && t.push(
|
|
689
|
+
return V.value.style.chart.circles.labels.value.show && t.push(_n(e)), t.filter(Boolean);
|
|
684
690
|
}
|
|
685
|
-
function
|
|
691
|
+
function An(e, t, n, r, i) {
|
|
686
692
|
let a = e.x, o = e.y;
|
|
687
693
|
return {
|
|
688
694
|
right: {
|
|
@@ -735,12 +741,12 @@ var qe = class {
|
|
|
735
741
|
}
|
|
736
742
|
}[r];
|
|
737
743
|
}
|
|
738
|
-
function
|
|
744
|
+
function jn(e, t) {
|
|
739
745
|
let n = [], r = t.get(e.parentId);
|
|
740
746
|
for (; r;) n.push(r), r = t.get(r.parentId);
|
|
741
747
|
return n;
|
|
742
748
|
}
|
|
743
|
-
function
|
|
749
|
+
function Mn(e, t, n, r, i, a) {
|
|
744
750
|
let o = e.x, s = e.y, c = t || e, l = a * .6, u = {
|
|
745
751
|
right: {
|
|
746
752
|
x: c.x + c.r + a,
|
|
@@ -781,10 +787,10 @@ var qe = class {
|
|
|
781
787
|
anchorY: s + Math.sin(p) * e.r
|
|
782
788
|
};
|
|
783
789
|
}
|
|
784
|
-
function
|
|
785
|
-
let { clamp: n = !0 } = t;
|
|
790
|
+
function Nn(e, t = {}) {
|
|
791
|
+
let { clamp: n = !0, scale: r = 1 } = t;
|
|
786
792
|
if (!q.value.length || !K.value.w || !K.value.h || !V.value.style.chart.parentTooltips.show) return [];
|
|
787
|
-
let
|
|
793
|
+
let i = Math.max(8, V.value.style.chart.parentTooltips.fontSizeRatio * 10) * r, a = i * 1.25, o = i * .75, s = i * .55, c = Math.max(8 * r, Math.min(e.width, e.height) * .025), l = Math.max(2 * r, Math.min(e.width, e.height) * .006), u = [
|
|
788
794
|
"right",
|
|
789
795
|
"left",
|
|
790
796
|
"top",
|
|
@@ -793,44 +799,54 @@ var qe = class {
|
|
|
793
799
|
"topLeft",
|
|
794
800
|
"bottomRight",
|
|
795
801
|
"bottomLeft"
|
|
796
|
-
],
|
|
802
|
+
], d = [], f = new Map(q.value.map((e) => [e.id, e]));
|
|
797
803
|
return q.value.filter((e) => e.hasChildren && e.name).sort((e, t) => t.r - e.r).forEach((t) => {
|
|
798
|
-
let
|
|
799
|
-
let
|
|
804
|
+
let p = jn(t, f).at(-1), m = kn(t), h = m.reduce((e, t) => Math.max(e, String(t).length), 0), g = Math.max(i * 5, h * i * .62 + o * 2), _ = m.length * a + s * 2, ee = p ? u.map((e) => Mn(t, p, g, _, e, c)) : [], te = u.map((e) => An(t, g, _, e, c)), ne = [...ee, ...te].map((t) => {
|
|
805
|
+
let i = n ? On({
|
|
800
806
|
x: t.x,
|
|
801
807
|
y: t.y,
|
|
802
|
-
width:
|
|
803
|
-
height:
|
|
804
|
-
}, e) : {
|
|
808
|
+
width: g,
|
|
809
|
+
height: _
|
|
810
|
+
}, e, r) : {
|
|
805
811
|
x: t.x,
|
|
806
812
|
y: t.y,
|
|
807
|
-
width:
|
|
808
|
-
height:
|
|
813
|
+
width: g,
|
|
814
|
+
height: _
|
|
809
815
|
};
|
|
810
816
|
return {
|
|
811
|
-
...
|
|
817
|
+
...i,
|
|
812
818
|
anchorX: t.anchorX,
|
|
813
819
|
anchorY: t.anchorY,
|
|
814
|
-
lineX:
|
|
815
|
-
lineY:
|
|
820
|
+
lineX: i.x + i.width / 2,
|
|
821
|
+
lineY: i.y + i.height / 2
|
|
816
822
|
};
|
|
817
|
-
}).find((e) => !
|
|
818
|
-
ne &&
|
|
823
|
+
}).find((e) => !d.some((t) => En(e, t, l)) && !q.value.some((t) => Dn(e, t, l)));
|
|
824
|
+
ne && d.push({
|
|
819
825
|
...ne,
|
|
820
826
|
datapoint: t,
|
|
821
827
|
id: `parent_tooltip_${t.id}`,
|
|
822
828
|
color: t.color,
|
|
823
|
-
lines:
|
|
824
|
-
fontSize:
|
|
825
|
-
lineHeight:
|
|
826
|
-
paddingX:
|
|
827
|
-
paddingY:
|
|
829
|
+
lines: m,
|
|
830
|
+
fontSize: i,
|
|
831
|
+
lineHeight: a,
|
|
832
|
+
paddingX: o,
|
|
833
|
+
paddingY: s,
|
|
834
|
+
scale: r
|
|
828
835
|
});
|
|
829
|
-
}),
|
|
836
|
+
}), d;
|
|
830
837
|
}
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
838
|
+
function Pn(e) {
|
|
839
|
+
let t = Wt.value;
|
|
840
|
+
if (!t.width || !t.height || !e.width || !e.height) return 1;
|
|
841
|
+
let n = Math.min(e.width / t.width, e.height / t.height);
|
|
842
|
+
return Number.isFinite(n) && n > 0 ? n : 1;
|
|
843
|
+
}
|
|
844
|
+
let Fn = y(() => Nn(Q.value, {
|
|
845
|
+
clamp: !0,
|
|
846
|
+
scale: Pn(Q.value)
|
|
847
|
+
}));
|
|
848
|
+
function In(e) {
|
|
849
|
+
let t = Nn(e, { clamp: !1 });
|
|
834
850
|
if (!t.length) return e;
|
|
835
851
|
let n = Math.min(e.x, ...t.map((e) => e.x)), r = Math.min(e.y, ...t.map((e) => e.y)), i = Math.max(e.x + e.width, ...t.map((e) => e.x + e.width)), a = Math.max(e.y + e.height, ...t.map((e) => e.y + e.height)), o = Math.max(8, Math.min(e.width, e.height) * .025);
|
|
836
852
|
return {
|
|
@@ -840,7 +856,7 @@ var qe = class {
|
|
|
840
856
|
height: a - r + o * 2
|
|
841
857
|
};
|
|
842
858
|
}
|
|
843
|
-
function
|
|
859
|
+
function Ln(e) {
|
|
844
860
|
let t = [];
|
|
845
861
|
function n(e, r = 0, i = "") {
|
|
846
862
|
e.forEach((e) => {
|
|
@@ -855,8 +871,8 @@ var qe = class {
|
|
|
855
871
|
}
|
|
856
872
|
return n(e), t;
|
|
857
873
|
}
|
|
858
|
-
let
|
|
859
|
-
let e =
|
|
874
|
+
let Rn = y(() => {
|
|
875
|
+
let e = Ln(ln.value);
|
|
860
876
|
return {
|
|
861
877
|
head: J.value.map((e) => ({
|
|
862
878
|
name: e.name,
|
|
@@ -866,18 +882,18 @@ var qe = class {
|
|
|
866
882
|
body: e.map((e) => e.value),
|
|
867
883
|
hierarchy: e
|
|
868
884
|
};
|
|
869
|
-
}),
|
|
885
|
+
}), zn = y(() => Ln(ln.value).map((e) => ({
|
|
870
886
|
...e,
|
|
871
887
|
name: `${"- ".repeat(e.depth)}${e.name}`
|
|
872
888
|
})));
|
|
873
|
-
function
|
|
874
|
-
|
|
875
|
-
let r =
|
|
889
|
+
function Bn(e = null) {
|
|
890
|
+
De(() => {
|
|
891
|
+
let r = zn.value.map((e) => [
|
|
876
892
|
[e.name],
|
|
877
893
|
[e.parentName || ""],
|
|
878
894
|
[e.depth],
|
|
879
895
|
[e.value]
|
|
880
|
-
]), i =
|
|
896
|
+
]), i = [
|
|
881
897
|
[V.value.style.chart.title.text],
|
|
882
898
|
[V.value.style.chart.title.subtitle.text],
|
|
883
899
|
[
|
|
@@ -886,20 +902,20 @@ var qe = class {
|
|
|
886
902
|
["Depth"],
|
|
887
903
|
[V.value.table.columnNames.value]
|
|
888
904
|
]
|
|
889
|
-
].concat(r));
|
|
890
|
-
e ? e(
|
|
891
|
-
csvContent:
|
|
905
|
+
].concat(r), a = n(i);
|
|
906
|
+
e ? e(a) : t({
|
|
907
|
+
csvContent: a,
|
|
892
908
|
title: V.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
893
909
|
});
|
|
894
910
|
});
|
|
895
911
|
}
|
|
896
|
-
let
|
|
912
|
+
let $ = y(() => {
|
|
897
913
|
let e = [
|
|
898
914
|
V.value.table.columnNames.datapoint,
|
|
899
915
|
V.value.table.columnNames.parent,
|
|
900
916
|
V.value.table.columnNames.depth,
|
|
901
917
|
V.value.table.columnNames.value
|
|
902
|
-
], t =
|
|
918
|
+
], t = Rn.value.hierarchy.map((e) => {
|
|
903
919
|
let t = u({
|
|
904
920
|
p: V.value.style.chart.circles.labels.value.prefix,
|
|
905
921
|
v: e.value,
|
|
@@ -940,21 +956,21 @@ var qe = class {
|
|
|
940
956
|
config: n
|
|
941
957
|
};
|
|
942
958
|
});
|
|
943
|
-
function
|
|
959
|
+
function Vn() {
|
|
944
960
|
G.value.showTable = !G.value.showTable;
|
|
945
961
|
}
|
|
946
|
-
function
|
|
962
|
+
function Hn() {
|
|
947
963
|
G.value.showTooltip = !G.value.showTooltip;
|
|
948
964
|
}
|
|
949
|
-
function
|
|
965
|
+
function Un() {
|
|
950
966
|
G.value.showZoom = !G.value.showZoom;
|
|
951
967
|
}
|
|
952
|
-
function
|
|
953
|
-
return
|
|
968
|
+
function Wn() {
|
|
969
|
+
return ln.value;
|
|
954
970
|
}
|
|
955
|
-
async function
|
|
971
|
+
async function Gn({ scale: e = 2 } = {}) {
|
|
956
972
|
if (!L.value) return;
|
|
957
|
-
let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
973
|
+
let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
958
974
|
domElement: L.value,
|
|
959
975
|
base64: !0,
|
|
960
976
|
img: !0,
|
|
@@ -969,7 +985,7 @@ var qe = class {
|
|
|
969
985
|
aspectRatio: r
|
|
970
986
|
};
|
|
971
987
|
}
|
|
972
|
-
let
|
|
988
|
+
let Kn = y(() => {
|
|
973
989
|
let e = V.value.table.useDialog && !V.value.table.show, t = G.value.showTable;
|
|
974
990
|
return {
|
|
975
991
|
component: e ? Ge : Be,
|
|
@@ -979,7 +995,7 @@ var qe = class {
|
|
|
979
995
|
color: V.value.table.th.color,
|
|
980
996
|
headerColor: V.value.table.th.color,
|
|
981
997
|
headerBg: V.value.table.th.backgroundColor,
|
|
982
|
-
isFullscreen:
|
|
998
|
+
isFullscreen: Z.value,
|
|
983
999
|
fullscreenParent: L.value,
|
|
984
1000
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
985
1001
|
isCursorPointer: U.value
|
|
@@ -1003,31 +1019,31 @@ var qe = class {
|
|
|
1003
1019
|
Fe(() => G.value.showTable, (e) => {
|
|
1004
1020
|
V.value.table.show || (e && V.value.table.useDialog && R.value ? R.value.open() : R.value && "close" in R.value && R.value.close());
|
|
1005
1021
|
});
|
|
1006
|
-
function
|
|
1022
|
+
function qn() {
|
|
1007
1023
|
G.value.showTable = !1, Ct.value && Ct.value.setTableIconState(!1);
|
|
1008
1024
|
}
|
|
1009
|
-
let
|
|
1025
|
+
let Jn = y(() => V.value.style.chart.backgroundColor), Yn = y(() => V.value.style.chart.title), { exportSvg: Xn, getSvg: Zn } = ce({
|
|
1010
1026
|
svg: W,
|
|
1011
|
-
title:
|
|
1012
|
-
backgroundColor:
|
|
1027
|
+
title: Yn,
|
|
1028
|
+
backgroundColor: Jn
|
|
1013
1029
|
});
|
|
1014
|
-
async function
|
|
1015
|
-
Dt.value = !0, await
|
|
1030
|
+
async function Qn({ isCb: e }) {
|
|
1031
|
+
Dt.value = !0, await De();
|
|
1016
1032
|
try {
|
|
1017
1033
|
if (e) {
|
|
1018
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1034
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Zn();
|
|
1019
1035
|
await Promise.resolve(V.value.userOptions.callbacks.svg({
|
|
1020
1036
|
blob: e,
|
|
1021
1037
|
url: t,
|
|
1022
1038
|
text: n,
|
|
1023
1039
|
dataUrl: r
|
|
1024
1040
|
}));
|
|
1025
|
-
} else await Promise.resolve(
|
|
1041
|
+
} else await Promise.resolve(Xn());
|
|
1026
1042
|
} finally {
|
|
1027
1043
|
Dt.value = !1;
|
|
1028
1044
|
}
|
|
1029
1045
|
}
|
|
1030
|
-
function
|
|
1046
|
+
function $n(e) {
|
|
1031
1047
|
if (e?.stage === "start") {
|
|
1032
1048
|
Et.value = !0;
|
|
1033
1049
|
return;
|
|
@@ -1038,10 +1054,10 @@ var qe = class {
|
|
|
1038
1054
|
}
|
|
1039
1055
|
Vt();
|
|
1040
1056
|
}
|
|
1041
|
-
async function
|
|
1057
|
+
async function er() {
|
|
1042
1058
|
if (Ke("copyAlt", {
|
|
1043
1059
|
config: V.value,
|
|
1044
|
-
dataset:
|
|
1060
|
+
dataset: ln.value,
|
|
1045
1061
|
flattenedDataset: J.value
|
|
1046
1062
|
}), !V.value.userOptions.callbacks.altCopy) {
|
|
1047
1063
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
@@ -1049,89 +1065,89 @@ var qe = class {
|
|
|
1049
1065
|
}
|
|
1050
1066
|
await Promise.resolve(V.value.userOptions.callbacks.altCopy({
|
|
1051
1067
|
config: V.value,
|
|
1052
|
-
dataset:
|
|
1068
|
+
dataset: ln.value,
|
|
1053
1069
|
flattenedDataset: J.value
|
|
1054
1070
|
}));
|
|
1055
1071
|
}
|
|
1056
|
-
function
|
|
1072
|
+
function tr(e) {
|
|
1057
1073
|
if (!Number.isFinite(e) || !W.value) return;
|
|
1058
1074
|
let t = q.value[e];
|
|
1059
1075
|
if (!t) return;
|
|
1060
1076
|
let n = r(t.x, t.y, W.value);
|
|
1061
1077
|
n && (Ot.value = n);
|
|
1062
1078
|
}
|
|
1063
|
-
function
|
|
1079
|
+
function nr() {
|
|
1064
1080
|
if (B.value !== null) {
|
|
1065
1081
|
let e = q.value[B.value];
|
|
1066
|
-
e &&
|
|
1082
|
+
e && fn(e, B.value);
|
|
1067
1083
|
}
|
|
1068
1084
|
B.value = null, kt.value = "pointer", wt.value = !1, z.value = null;
|
|
1069
1085
|
}
|
|
1070
|
-
function
|
|
1086
|
+
function rr() {
|
|
1071
1087
|
B.value = null, At.value = !0;
|
|
1072
1088
|
}
|
|
1073
|
-
function
|
|
1074
|
-
|
|
1089
|
+
function ir() {
|
|
1090
|
+
nr(), At.value = !1;
|
|
1075
1091
|
}
|
|
1076
|
-
function
|
|
1092
|
+
function ar(e, t) {
|
|
1077
1093
|
let n = q.value.length;
|
|
1078
1094
|
return n ? e === null || e < 0 || e >= n ? t === "next" ? 0 : n - 1 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
|
|
1079
1095
|
}
|
|
1080
|
-
function
|
|
1081
|
-
if (!W.value ||
|
|
1096
|
+
function or(e) {
|
|
1097
|
+
if (!W.value || bn.value || document.activeElement !== W.value || !q.value.length) return;
|
|
1082
1098
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1083
1099
|
if (!t && !n && !r && !i) return;
|
|
1084
1100
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1085
|
-
|
|
1101
|
+
nr();
|
|
1086
1102
|
return;
|
|
1087
1103
|
}
|
|
1088
1104
|
if (r) {
|
|
1089
1105
|
if (B.value === null) return;
|
|
1090
1106
|
let e = q.value[B.value];
|
|
1091
1107
|
if (!e) return;
|
|
1092
|
-
|
|
1108
|
+
pn(e, B.value);
|
|
1093
1109
|
return;
|
|
1094
1110
|
}
|
|
1095
1111
|
let a = B.value;
|
|
1096
|
-
a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? a =
|
|
1112
|
+
a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? a = ar(a, "next") : t && (a = ar(a, "previous"));
|
|
1097
1113
|
let o = q.value[a];
|
|
1098
|
-
o && (B.value = a,
|
|
1114
|
+
o && (B.value = a, tr(a), gn(o, a, "keyboard"));
|
|
1099
1115
|
}
|
|
1100
|
-
let
|
|
1101
|
-
headers:
|
|
1102
|
-
rows:
|
|
1103
|
-
})),
|
|
1104
|
-
return
|
|
1105
|
-
getData:
|
|
1106
|
-
getImage:
|
|
1107
|
-
generateCsv:
|
|
1116
|
+
let sr = y(() => ({
|
|
1117
|
+
headers: $.value?.colNames ?? [],
|
|
1118
|
+
rows: $.value?.body?.map((e) => [e[0]?.name ?? "", e[1]]) ?? []
|
|
1119
|
+
})), cr = y(() => V.value.style.chart.color);
|
|
1120
|
+
return me({
|
|
1121
|
+
getData: Wn,
|
|
1122
|
+
getImage: Gn,
|
|
1123
|
+
generateCsv: Bn,
|
|
1108
1124
|
generatePdf: Bt,
|
|
1109
1125
|
generateImage: Vt,
|
|
1110
|
-
generateSvg:
|
|
1111
|
-
toggleTable:
|
|
1112
|
-
toggleAnnotator:
|
|
1113
|
-
toggleFullscreen:
|
|
1114
|
-
copyAlt:
|
|
1115
|
-
toggleZoom:
|
|
1116
|
-
resetZoom:
|
|
1117
|
-
}), (e, t) => (O(),
|
|
1126
|
+
generateSvg: Qn,
|
|
1127
|
+
toggleTable: Vn,
|
|
1128
|
+
toggleAnnotator: xn,
|
|
1129
|
+
toggleFullscreen: yn,
|
|
1130
|
+
copyAlt: er,
|
|
1131
|
+
toggleZoom: Un,
|
|
1132
|
+
resetZoom: Cn
|
|
1133
|
+
}), (e, t) => (O(), S("div", {
|
|
1118
1134
|
id: `vue-ui-circle-pack_${I.value}`,
|
|
1119
|
-
class:
|
|
1135
|
+
class: E(`vue-data-ui-component vue-ui-circle-pack ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M(Mt) ? "loading" : ""}`),
|
|
1120
1136
|
ref_key: "circlePackChart",
|
|
1121
1137
|
ref: L,
|
|
1122
|
-
style:
|
|
1138
|
+
style: Oe(`font-family:${V.value.style.fontFamily};text-align:center;background:${V.value.style.chart.backgroundColor};`),
|
|
1123
1139
|
onMouseenter: t[2] ||= () => M(Ft)(!0),
|
|
1124
1140
|
onMouseleave: t[3] ||= () => M(Ft)(!1)
|
|
1125
1141
|
}, [
|
|
1126
|
-
|
|
1142
|
+
C("div", {
|
|
1127
1143
|
id: `chart-instructions-${I.value}`,
|
|
1128
1144
|
class: "sr-only"
|
|
1129
|
-
}, [
|
|
1130
|
-
|
|
1145
|
+
}, [C("p", null, j(V.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
1146
|
+
sr.value?.rows?.length ? (O(), b(ve, {
|
|
1131
1147
|
key: 0,
|
|
1132
1148
|
uid: I.value,
|
|
1133
|
-
head:
|
|
1134
|
-
body:
|
|
1149
|
+
head: sr.value.headers,
|
|
1150
|
+
body: sr.value.rows,
|
|
1135
1151
|
notice: V.value.a11y.translations.tableAvailable,
|
|
1136
1152
|
caption: V.value.a11y.translations.tableCaption
|
|
1137
1153
|
}, null, 8, [
|
|
@@ -1140,23 +1156,23 @@ var qe = class {
|
|
|
1140
1156
|
"body",
|
|
1141
1157
|
"notice",
|
|
1142
1158
|
"caption"
|
|
1143
|
-
])) :
|
|
1144
|
-
V.value.userOptions.buttons.annotator ? (O(),
|
|
1159
|
+
])) : x("", !0),
|
|
1160
|
+
V.value.userOptions.buttons.annotator ? (O(), b(M(Ue), {
|
|
1145
1161
|
key: 1,
|
|
1146
1162
|
svgRef: M(W),
|
|
1147
1163
|
backgroundColor: V.value.style.chart.backgroundColor,
|
|
1148
1164
|
color: V.value.style.chart.color,
|
|
1149
|
-
active:
|
|
1150
|
-
scale:
|
|
1165
|
+
active: bn.value,
|
|
1166
|
+
scale: un.value / 100,
|
|
1151
1167
|
isCursorPointer: U.value,
|
|
1152
|
-
onClose:
|
|
1168
|
+
onClose: xn
|
|
1153
1169
|
}, {
|
|
1154
1170
|
"annotator-action-close": N(() => [A(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1155
|
-
"annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color",
|
|
1156
|
-
"annotator-action-draw": N(({ mode: t }) => [A(e.$slots, "annotator-action-draw",
|
|
1157
|
-
"annotator-action-undo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-undo",
|
|
1158
|
-
"annotator-action-redo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-redo",
|
|
1159
|
-
"annotator-action-delete": N(({ disabled: t }) => [A(e.$slots, "annotator-action-delete",
|
|
1171
|
+
"annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color", D(T({ color: t })), void 0, !0)]),
|
|
1172
|
+
"annotator-action-draw": N(({ mode: t }) => [A(e.$slots, "annotator-action-draw", D(T({ mode: t })), void 0, !0)]),
|
|
1173
|
+
"annotator-action-undo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-undo", D(T({ disabled: t })), void 0, !0)]),
|
|
1174
|
+
"annotator-action-redo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-redo", D(T({ disabled: t })), void 0, !0)]),
|
|
1175
|
+
"annotator-action-delete": N(({ disabled: t }) => [A(e.$slots, "annotator-action-delete", D(T({ disabled: t })), void 0, !0)]),
|
|
1160
1176
|
_: 3
|
|
1161
1177
|
}, 8, [
|
|
1162
1178
|
"svgRef",
|
|
@@ -1165,21 +1181,21 @@ var qe = class {
|
|
|
1165
1181
|
"active",
|
|
1166
1182
|
"scale",
|
|
1167
1183
|
"isCursorPointer"
|
|
1168
|
-
])) :
|
|
1184
|
+
])) : x("", !0),
|
|
1169
1185
|
A(e.$slots, "userConfig", {}, void 0, !0),
|
|
1170
|
-
Ht.value ? (O(),
|
|
1186
|
+
Ht.value ? (O(), S("div", {
|
|
1171
1187
|
key: 2,
|
|
1172
1188
|
ref_key: "noTitle",
|
|
1173
1189
|
ref: vt,
|
|
1174
1190
|
class: "vue-data-ui-no-title-space",
|
|
1175
1191
|
style: "height:36px; width: 100%;background:transparent"
|
|
1176
|
-
}, null, 512)) :
|
|
1177
|
-
V.value.style.chart.title.text ? (O(),
|
|
1192
|
+
}, null, 512)) : x("", !0),
|
|
1193
|
+
V.value.style.chart.title.text ? (O(), S("div", {
|
|
1178
1194
|
key: 3,
|
|
1179
1195
|
ref_key: "chartTitle",
|
|
1180
1196
|
ref: _t,
|
|
1181
1197
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1182
|
-
}, [(O(),
|
|
1198
|
+
}, [(O(), b(pe, {
|
|
1183
1199
|
key: `title_${yt.value}`,
|
|
1184
1200
|
config: {
|
|
1185
1201
|
title: {
|
|
@@ -1191,8 +1207,8 @@ var qe = class {
|
|
|
1191
1207
|
...V.value.style.chart.title.subtitle
|
|
1192
1208
|
}
|
|
1193
1209
|
}
|
|
1194
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1195
|
-
V.value.userOptions.show && gt.value && (M(It) || M(Pt)) ? (O(),
|
|
1210
|
+
}, null, 8, ["config"]))], 512)) : x("", !0),
|
|
1211
|
+
V.value.userOptions.show && gt.value && (M(It) || M(Pt)) ? (O(), b(M(He), {
|
|
1196
1212
|
ref_key: "userOptionsRef",
|
|
1197
1213
|
ref: Ct,
|
|
1198
1214
|
key: `user_option_${xt.value}`,
|
|
@@ -1211,33 +1227,33 @@ var qe = class {
|
|
|
1211
1227
|
hasTable: V.value.userOptions.buttons.table,
|
|
1212
1228
|
hasFullscreen: V.value.userOptions.buttons.fullscreen,
|
|
1213
1229
|
hasAltCopy: V.value.userOptions.buttons.altCopy,
|
|
1214
|
-
isFullscreen:
|
|
1230
|
+
isFullscreen: Z.value,
|
|
1215
1231
|
chartElement: L.value,
|
|
1216
1232
|
position: V.value.userOptions.position,
|
|
1217
1233
|
callbacks: V.value.userOptions.callbacks,
|
|
1218
1234
|
printScale: V.value.userOptions.print.scale,
|
|
1219
1235
|
titles: { ...V.value.userOptions.buttonTitles },
|
|
1220
1236
|
hasAnnotator: V.value.userOptions.buttons.annotator,
|
|
1221
|
-
isAnnotation:
|
|
1237
|
+
isAnnotation: bn.value,
|
|
1222
1238
|
tableDialog: V.value.table.useDialog,
|
|
1223
1239
|
isCursorPointer: U.value,
|
|
1224
1240
|
hasZoom: V.value.userOptions.buttons.zoom,
|
|
1225
1241
|
isZoom: G.value.showZoom,
|
|
1226
|
-
onToggleFullscreen:
|
|
1242
|
+
onToggleFullscreen: yn,
|
|
1227
1243
|
onGeneratePdf: M(Bt),
|
|
1228
|
-
onGenerateCsv:
|
|
1229
|
-
onGenerateImage:
|
|
1230
|
-
onGenerateSvg:
|
|
1231
|
-
onToggleTable:
|
|
1232
|
-
onToggleTooltip:
|
|
1233
|
-
onToggleAnnotator:
|
|
1234
|
-
onToggleZoom:
|
|
1235
|
-
onCopyAlt:
|
|
1236
|
-
style:
|
|
1237
|
-
},
|
|
1244
|
+
onGenerateCsv: Bn,
|
|
1245
|
+
onGenerateImage: $n,
|
|
1246
|
+
onGenerateSvg: Qn,
|
|
1247
|
+
onToggleTable: Vn,
|
|
1248
|
+
onToggleTooltip: Hn,
|
|
1249
|
+
onToggleAnnotator: xn,
|
|
1250
|
+
onToggleZoom: Un,
|
|
1251
|
+
onCopyAlt: er,
|
|
1252
|
+
style: Oe({ visibility: M(It) ? M(Pt) ? "visible" : "hidden" : "visible" })
|
|
1253
|
+
}, Ce({ _: 2 }, [
|
|
1238
1254
|
e.$slots.menuIcon ? {
|
|
1239
1255
|
name: "menuIcon",
|
|
1240
|
-
fn: N(({ isOpen: t, color: n }) => [A(e.$slots, "menuIcon",
|
|
1256
|
+
fn: N(({ isOpen: t, color: n }) => [A(e.$slots, "menuIcon", D(T({
|
|
1241
1257
|
isOpen: t,
|
|
1242
1258
|
color: n
|
|
1243
1259
|
})), void 0, !0)]),
|
|
@@ -1275,7 +1291,7 @@ var qe = class {
|
|
|
1275
1291
|
} : void 0,
|
|
1276
1292
|
e.$slots.optionFullscreen ? {
|
|
1277
1293
|
name: "optionFullscreen",
|
|
1278
|
-
fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [A(e.$slots, "optionFullscreen",
|
|
1294
|
+
fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [A(e.$slots, "optionFullscreen", D(T({
|
|
1279
1295
|
toggleFullscreen: t,
|
|
1280
1296
|
isFullscreen: n
|
|
1281
1297
|
})), void 0, !0)]),
|
|
@@ -1283,7 +1299,7 @@ var qe = class {
|
|
|
1283
1299
|
} : void 0,
|
|
1284
1300
|
e.$slots.optionAnnotator ? {
|
|
1285
1301
|
name: "optionAnnotator",
|
|
1286
|
-
fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [A(e.$slots, "optionAnnotator",
|
|
1302
|
+
fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [A(e.$slots, "optionAnnotator", D(T({
|
|
1287
1303
|
toggleAnnotator: t,
|
|
1288
1304
|
isAnnotator: n
|
|
1289
1305
|
})), void 0, !0)]),
|
|
@@ -1291,7 +1307,7 @@ var qe = class {
|
|
|
1291
1307
|
} : void 0,
|
|
1292
1308
|
e.$slots.optionZoom ? {
|
|
1293
1309
|
name: "optionZoom",
|
|
1294
|
-
fn: N(({ toggleZoom: t, isZoomLocked: n }) => [A(e.$slots, "optionZoom",
|
|
1310
|
+
fn: N(({ toggleZoom: t, isZoomLocked: n }) => [A(e.$slots, "optionZoom", D(T({
|
|
1295
1311
|
toggleZoom: t,
|
|
1296
1312
|
isZoomLocked: n
|
|
1297
1313
|
})), void 0, !0)]),
|
|
@@ -1299,7 +1315,7 @@ var qe = class {
|
|
|
1299
1315
|
} : void 0,
|
|
1300
1316
|
e.$slots.optionAltCopy ? {
|
|
1301
1317
|
name: "optionAltCopy",
|
|
1302
|
-
fn: N(({ altCopy: t }) => [A(e.$slots, "optionAltCopy",
|
|
1318
|
+
fn: N(({ altCopy: t }) => [A(e.$slots, "optionAltCopy", D(T({ altCopy: t })), void 0, !0)]),
|
|
1303
1319
|
key: "10"
|
|
1304
1320
|
} : void 0,
|
|
1305
1321
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -1312,40 +1328,40 @@ var qe = class {
|
|
|
1312
1328
|
fn: N(() => [A(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1313
1329
|
key: "12"
|
|
1314
1330
|
} : void 0
|
|
1315
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.isTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.printScale.titles.hasAnnotator.isAnnotation.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) :
|
|
1316
|
-
|
|
1331
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.isTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.printScale.titles.hasAnnotator.isAnnotation.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) : x("", !0),
|
|
1332
|
+
C("div", { class: E({
|
|
1317
1333
|
"vue-ui-circle-pack-svg-container": !0,
|
|
1318
1334
|
"not-responsive": !V.value.responsive
|
|
1319
|
-
}) }, [(O(),
|
|
1335
|
+
}) }, [(O(), S("svg", {
|
|
1320
1336
|
ref_key: "svgRef",
|
|
1321
1337
|
ref: W,
|
|
1322
1338
|
xmlns: M(g),
|
|
1323
1339
|
"aria-describedby": `chart-instructions-${I.value}`,
|
|
1324
|
-
viewBox: `${M(
|
|
1340
|
+
viewBox: `${M(Q).x} ${M(Q).y} ${M(Q).width} ${M(Q).height}`,
|
|
1325
1341
|
preserveAspectRatio: "xMidYMid meet",
|
|
1326
|
-
class:
|
|
1327
|
-
"vue-data-ui-fullscreen--on":
|
|
1328
|
-
"vue-data-ui-fulscreen--off": !
|
|
1342
|
+
class: E({
|
|
1343
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
1344
|
+
"vue-data-ui-fulscreen--off": !Z.value,
|
|
1329
1345
|
"not-responsive": !V.value.responsive,
|
|
1330
1346
|
"vue-data-ui-no-transition": !M(H)
|
|
1331
1347
|
}),
|
|
1332
|
-
style:
|
|
1348
|
+
style: Oe(`display:block;${V.value.responsive ? "width:100%;height:auto" : "height:100%;"};overflow:${G.value.showZoom ? "hidden" : "visible"};background:transparent;color:${V.value.style.chart.color};background:${V.value.style.chart.backgroundColor};`),
|
|
1333
1349
|
tabindex: "0",
|
|
1334
|
-
onFocus:
|
|
1335
|
-
onBlur:
|
|
1336
|
-
onKeydown:
|
|
1350
|
+
onFocus: rr,
|
|
1351
|
+
onBlur: ir,
|
|
1352
|
+
onKeydown: or
|
|
1337
1353
|
}, [
|
|
1338
|
-
|
|
1339
|
-
e.$slots["chart-background"] ? (O(),
|
|
1354
|
+
Te(M(We)),
|
|
1355
|
+
e.$slots["chart-background"] ? (O(), S("foreignObject", {
|
|
1340
1356
|
key: 0,
|
|
1341
|
-
x: M(
|
|
1342
|
-
y: M(
|
|
1357
|
+
x: M(Q).x,
|
|
1358
|
+
y: M(Q).y,
|
|
1343
1359
|
width: K.value.w,
|
|
1344
1360
|
height: K.value.h,
|
|
1345
1361
|
style: { pointerEvents: "none" }
|
|
1346
|
-
}, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) :
|
|
1347
|
-
(O(!0),
|
|
1348
|
-
|
|
1362
|
+
}, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : x("", !0),
|
|
1363
|
+
(O(!0), S(v, null, je(q.value, (t, n) => (O(), S(v, { key: t.id }, [
|
|
1364
|
+
C("defs", null, [Te(_e, {
|
|
1349
1365
|
t: "radial",
|
|
1350
1366
|
id: t.id,
|
|
1351
1367
|
fy: "30%",
|
|
@@ -1367,41 +1383,43 @@ var qe = class {
|
|
|
1367
1383
|
]
|
|
1368
1384
|
]
|
|
1369
1385
|
}, null, 8, ["id", "stops"])]),
|
|
1370
|
-
e.$slots.pattern ? (O(),
|
|
1386
|
+
e.$slots.pattern ? (O(), S("g", $e, [C("defs", null, [A(e.$slots, "pattern", Ee({ ref_for: !0 }, {
|
|
1371
1387
|
...t,
|
|
1372
1388
|
patternId: `pattern_${I.value}_${t.id}`
|
|
1373
|
-
}), void 0, !0)])])) :
|
|
1374
|
-
|
|
1375
|
-
class:
|
|
1389
|
+
}), void 0, !0)])])) : x("", !0),
|
|
1390
|
+
C("rect", {
|
|
1391
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1376
1392
|
x: t.x - t.r,
|
|
1377
1393
|
y: t.y - t.r,
|
|
1378
1394
|
width: t.r * 2,
|
|
1379
1395
|
height: t.r * 2,
|
|
1380
1396
|
stroke: V.value.style.chart.circles.stroke,
|
|
1381
|
-
"
|
|
1397
|
+
"vector-effect": "non-scaling-stroke",
|
|
1398
|
+
"stroke-width": V.value.style.chart.circles.strokeWidth * (un.value || 1) / 100,
|
|
1382
1399
|
fill: V.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color,
|
|
1383
1400
|
rx: t.r,
|
|
1384
|
-
onMouseenter: (e) =>
|
|
1385
|
-
onMouseout: (e) =>
|
|
1386
|
-
onClick: (e) =>
|
|
1401
|
+
onMouseenter: (e) => gn(t, n, "pointer"),
|
|
1402
|
+
onMouseout: (e) => fn(t, n),
|
|
1403
|
+
onClick: (e) => pn(t, n)
|
|
1387
1404
|
}, null, 42, et),
|
|
1388
|
-
e.$slots.pattern ? (O(),
|
|
1405
|
+
e.$slots.pattern ? (O(), S("rect", {
|
|
1389
1406
|
key: 1,
|
|
1390
|
-
class:
|
|
1407
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1391
1408
|
x: t.x - t.r,
|
|
1392
1409
|
y: t.y - t.r,
|
|
1393
1410
|
width: t.r * 2,
|
|
1394
1411
|
height: t.r * 2,
|
|
1395
1412
|
stroke: V.value.style.chart.circles.stroke,
|
|
1396
|
-
"
|
|
1413
|
+
"vector-effect": "non-scaling-stroke",
|
|
1414
|
+
"stroke-width": V.value.style.chart.circles.strokeWidth * (un.value || 1) / 100,
|
|
1397
1415
|
fill: `url(#pattern_${I.value}_${t.id})`,
|
|
1398
1416
|
rx: t.r,
|
|
1399
1417
|
style: { pointerEvents: "none" }
|
|
1400
|
-
}, null, 10, tt)) :
|
|
1418
|
+
}, null, 10, tt)) : x("", !0)
|
|
1401
1419
|
], 64))), 128)),
|
|
1402
|
-
(O(!0),
|
|
1420
|
+
(O(!0), S(v, null, je(q.value, (e, t) => (O(), S(v, { key: e.id }, [e.hasChildren ? x("", !0) : (O(), S("rect", {
|
|
1403
1421
|
key: 0,
|
|
1404
|
-
class:
|
|
1422
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1405
1423
|
x: e.x - e.r,
|
|
1406
1424
|
y: e.y - e.r,
|
|
1407
1425
|
width: e.r * 2,
|
|
@@ -1409,124 +1427,127 @@ var qe = class {
|
|
|
1409
1427
|
stroke: "none",
|
|
1410
1428
|
fill: z.value && z.value.id === e.id ? V.value.style.chart.circles.gradient.show ? `url(#${e.id})` : e.color : "transparent",
|
|
1411
1429
|
rx: e.r,
|
|
1412
|
-
style:
|
|
1430
|
+
style: Oe({
|
|
1413
1431
|
filter: z.value && z.value.id === e.id ? `drop-shadow(0px 0px 6px ${V.value.style.chart.circles.selectedShadowColor})` : "none",
|
|
1414
1432
|
opacity: +!!z.value,
|
|
1415
1433
|
pointerEvents: "none"
|
|
1416
1434
|
})
|
|
1417
1435
|
}, null, 14, nt))], 64))), 128)),
|
|
1418
|
-
(O(!0),
|
|
1436
|
+
(O(!0), S(v, null, je(q.value, (t, n) => (O(), S(v, { key: `cl_${t.id}` }, [e.$slots["data-label"] && rn(t) ? A(e.$slots, "data-label", Ee({ ref_for: !0 }, {
|
|
1419
1437
|
...t,
|
|
1420
1438
|
createTSpans: M(l),
|
|
1421
1439
|
fontSize: {
|
|
1422
1440
|
name: t.r / 3 * V.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1423
|
-
value:
|
|
1441
|
+
value: vn(t) * V.value.style.chart.circles.labels.value.fontSizeRatio
|
|
1424
1442
|
},
|
|
1425
1443
|
color: V.value.style.chart.circles.labels.name.color ? V.value.style.chart.circles.labels.name.color : M(h)(t.color)
|
|
1426
|
-
}), void 0, !0, 0) : (O(),
|
|
1444
|
+
}), void 0, !0, 0) : (O(), S(v, { key: 1 }, [V.value.style.chart.circles.labels.name.show && t.name && rn(t) ? (O(), S("text", {
|
|
1427
1445
|
key: 0,
|
|
1428
1446
|
style: { pointerEvents: "none" },
|
|
1429
|
-
class:
|
|
1430
|
-
transform: `translate(${t.x}, ${t.y +
|
|
1447
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1448
|
+
transform: `translate(${t.x}, ${t.y + dn(t.r, V.value.style.chart.circles.labels.name.offsetY) - t.r / 10})`,
|
|
1431
1449
|
"font-size": t.r / 3 * V.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1432
1450
|
fill: V.value.style.chart.circles.labels.name.color === "auto" ? M(h)(t.color) : V.value.style.chart.circles.labels.name.color,
|
|
1433
1451
|
"font-weight": V.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
1434
1452
|
"text-anchor": "middle"
|
|
1435
|
-
}, j(t.name), 11, rt)) :
|
|
1453
|
+
}, j(t.name), 11, rt)) : x("", !0), V.value.style.chart.circles.labels.value.show && rn(t) ? (O(), S("text", {
|
|
1436
1454
|
key: 1,
|
|
1437
|
-
class:
|
|
1455
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1438
1456
|
style: {
|
|
1439
1457
|
pointerEvents: "none",
|
|
1440
1458
|
transition: "opacity 0.2s ease-in-out"
|
|
1441
1459
|
},
|
|
1442
|
-
transform: `translate(${t.x}, ${t.y +
|
|
1443
|
-
"font-size":
|
|
1460
|
+
transform: `translate(${t.x}, ${t.y + dn(t.r, V.value.style.chart.circles.labels.value.offsetY) + t.r / 2.5})`,
|
|
1461
|
+
"font-size": vn(t) * V.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
1444
1462
|
fill: V.value.style.chart.circles.labels.value.color === "auto" ? M(h)(t.color) : V.value.style.chart.circles.labels.value.color,
|
|
1445
1463
|
"font-weight": V.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
1446
1464
|
"text-anchor": "middle"
|
|
1447
|
-
}, j(
|
|
1465
|
+
}, j(_n(t)), 11, it)) : x("", !0)], 64)), A(e.$slots, "circle", Ee({ ref_for: !0 }, {
|
|
1448
1466
|
...t,
|
|
1449
|
-
showLabel:
|
|
1467
|
+
showLabel: rn(t),
|
|
1450
1468
|
isSelected: z.value?.id === t.id,
|
|
1451
|
-
isDescendantOfSelected:
|
|
1469
|
+
isDescendantOfSelected: nn(t, z.value),
|
|
1452
1470
|
uid: `${n}_${I.value}`
|
|
1453
1471
|
}), void 0, !0)], 64))), 128)),
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
class:
|
|
1472
|
+
Fn.value.length && V.value.style.chart.parentTooltips.show ? (O(), S("g", at, [(O(!0), S(v, null, je(Fn.value, (t) => (O(), S("g", { key: `tltp_${t.id}` }, [
|
|
1473
|
+
C("path", {
|
|
1474
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1457
1475
|
stroke: V.value.style.chart.parentTooltips.link.useSerieColor ? t.color : V.value.style.chart.parentTooltips.link.stroke,
|
|
1476
|
+
"vector-effect": "non-scaling-stroke",
|
|
1458
1477
|
"stroke-width": V.value.style.chart.parentTooltips.link.strokeWidth,
|
|
1459
1478
|
"stroke-linecap": "round",
|
|
1460
1479
|
"stroke-dasharray": V.value.style.chart.parentTooltips.link.strokeDasharray,
|
|
1461
1480
|
opacity: V.value.style.chart.parentTooltips.link.opacity,
|
|
1462
1481
|
d: `M${t.anchorX}, ${t.anchorY} ${t.lineX}, ${t.lineY}`
|
|
1463
1482
|
}, null, 10, ot),
|
|
1464
|
-
|
|
1465
|
-
class:
|
|
1483
|
+
C("rect", {
|
|
1484
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1466
1485
|
x: t.x,
|
|
1467
1486
|
y: t.y,
|
|
1468
1487
|
width: t.width,
|
|
1469
1488
|
height: t.height,
|
|
1470
|
-
rx: Math.max(3, t.fontSize / 2.5) * V.value.style.chart.parentTooltips.borderRadiusRatio,
|
|
1489
|
+
rx: Math.max(3 * t.scale, t.fontSize / 2.5) * V.value.style.chart.parentTooltips.borderRadiusRatio,
|
|
1490
|
+
ry: Math.max(3 * t.scale, t.fontSize / 2.5) * V.value.style.chart.parentTooltips.borderRadiusRatio,
|
|
1471
1491
|
fill: V.value.style.chart.parentTooltips.backgroundColor,
|
|
1472
1492
|
stroke: V.value.style.chart.parentTooltips.useSerieColor ? t.color : V.value.style.chart.parentTooltips.stroke,
|
|
1493
|
+
"vector-effect": "non-scaling-stroke",
|
|
1473
1494
|
"stroke-width": V.value.style.chart.parentTooltips.strokeWidth,
|
|
1474
1495
|
filter: V.value.style.chart.parentTooltips.filter
|
|
1475
1496
|
}, null, 10, st),
|
|
1476
|
-
A(e.$slots, "parent-tooltip",
|
|
1477
|
-
class:
|
|
1497
|
+
A(e.$slots, "parent-tooltip", Ee({ ref_for: !0 }, { ...t }), () => [C("rect", {
|
|
1498
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1478
1499
|
fill: t.color,
|
|
1479
1500
|
x: t.x + t.paddingX * 1.3 - t.fontSize * .35,
|
|
1480
1501
|
y: t.y + t.paddingY + t.lineHeight / 2 - t.fontSize * .35,
|
|
1481
1502
|
rx: t.fontSize * .35,
|
|
1482
1503
|
width: t.fontSize * .7,
|
|
1483
1504
|
height: t.fontSize * .7
|
|
1484
|
-
}, null, 10, ct),
|
|
1485
|
-
class:
|
|
1505
|
+
}, null, 10, ct), C("text", {
|
|
1506
|
+
class: E({ "vue-data-ui-transition": M(H) }),
|
|
1486
1507
|
transform: `translate(${t.x + t.paddingX + t.fontSize}, ${t.y + t.paddingY + t.fontSize})`,
|
|
1487
1508
|
"font-size": t.fontSize,
|
|
1488
1509
|
fill: V.value.style.chart.parentTooltips.color,
|
|
1489
1510
|
"font-family": V.value.style.fontFamily,
|
|
1490
1511
|
"text-anchor": "start"
|
|
1491
|
-
}, [(O(!0),
|
|
1512
|
+
}, [(O(!0), S(v, null, je(t.lines, (e, n) => (O(), S("tspan", {
|
|
1492
1513
|
key: `${t.id}_${n}`,
|
|
1493
1514
|
x: 0,
|
|
1494
1515
|
dy: n === 0 ? 0 : t.lineHeight
|
|
1495
1516
|
}, j(e), 9, ut))), 128))], 10, lt)], !0)
|
|
1496
|
-
]))), 128))])) :
|
|
1517
|
+
]))), 128))])) : x("", !0),
|
|
1497
1518
|
A(e.$slots, "svg", { svg: {
|
|
1498
|
-
drawingArea: { ...M(
|
|
1519
|
+
drawingArea: { ...M(Q) },
|
|
1499
1520
|
width: K.value.w,
|
|
1500
1521
|
height: K.value.h,
|
|
1501
1522
|
isPrintingImg: M(Rt) || M(zt) || Et.value,
|
|
1502
1523
|
isPrintingSvg: Dt.value
|
|
1503
1524
|
} }, void 0, !0)
|
|
1504
|
-
], 46, Ze)), e.$slots.hint ? (O(),
|
|
1525
|
+
], 46, Ze)), e.$slots.hint ? (O(), S("div", dt, [A(e.$slots, "hint", D(T({
|
|
1505
1526
|
hint: V.value.a11y.translations.keyboardNavigation,
|
|
1506
1527
|
isVisible: At.value
|
|
1507
|
-
})), void 0, !0)])) :
|
|
1508
|
-
e.$slots.watermark ? (O(),
|
|
1509
|
-
M(
|
|
1528
|
+
})), void 0, !0)])) : x("", !0)], 2),
|
|
1529
|
+
e.$slots.watermark ? (O(), S("div", ft, [A(e.$slots, "watermark", D(T({ isPrinting: M(Rt) || M(zt) || Et.value || Dt.value })), void 0, !0)])) : x("", !0),
|
|
1530
|
+
M(wn) ? (O(), S("div", pt, [A(e.$slots, "reset-action", { reset: M(Cn) }, () => [C("button", {
|
|
1510
1531
|
"data-cy-reset": "",
|
|
1511
1532
|
tabindex: "0",
|
|
1512
1533
|
role: "button",
|
|
1513
1534
|
class: "vue-data-ui-refresh-button",
|
|
1514
|
-
style:
|
|
1535
|
+
style: Oe({
|
|
1515
1536
|
background: V.value.style.chart.backgroundColor,
|
|
1516
1537
|
cursor: U.value ? "pointer" : "default"
|
|
1517
1538
|
}),
|
|
1518
|
-
onClick: t[0] ||= (e) => M(
|
|
1519
|
-
}, [
|
|
1539
|
+
onClick: t[0] ||= (e) => M(Cn)(!0)
|
|
1540
|
+
}, [Te(M(P), {
|
|
1520
1541
|
name: "refresh",
|
|
1521
1542
|
stroke: V.value.style.chart.color
|
|
1522
|
-
}, null, 8, ["stroke"])], 4)], !0)])) :
|
|
1523
|
-
e.$slots.source ? (O(),
|
|
1543
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : x("", !0),
|
|
1544
|
+
e.$slots.source ? (O(), S("div", {
|
|
1524
1545
|
key: 7,
|
|
1525
1546
|
ref_key: "source",
|
|
1526
1547
|
ref: St,
|
|
1527
1548
|
dir: "auto"
|
|
1528
|
-
}, [A(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1529
|
-
|
|
1549
|
+
}, [A(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
1550
|
+
Te(M(ze), {
|
|
1530
1551
|
teleportTo: V.value.style.chart.tooltip.teleportTo,
|
|
1531
1552
|
show: G.value.showTooltip && wt.value,
|
|
1532
1553
|
backgroundColor: V.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1541,8 +1562,8 @@ var qe = class {
|
|
|
1541
1562
|
offsetY: V.value.style.chart.tooltip.offsetY,
|
|
1542
1563
|
parent: L.value,
|
|
1543
1564
|
content: Tt.value,
|
|
1544
|
-
isCustom:
|
|
1545
|
-
isFullscreen:
|
|
1565
|
+
isCustom: hn.value,
|
|
1566
|
+
isFullscreen: Z.value,
|
|
1546
1567
|
smooth: V.value.style.chart.tooltip.smooth,
|
|
1547
1568
|
backdropFilter: V.value.style.chart.tooltip.backdropFilter,
|
|
1548
1569
|
smoothForce: V.value.style.chart.tooltip.smoothForce,
|
|
@@ -1550,9 +1571,9 @@ var qe = class {
|
|
|
1550
1571
|
isA11yMode: kt.value === "keyboard",
|
|
1551
1572
|
a11yPosition: Ot.value
|
|
1552
1573
|
}, {
|
|
1553
|
-
"tooltip-before": N(() => [A(e.$slots, "tooltip-before",
|
|
1554
|
-
tooltip: N(() => [A(e.$slots, "tooltip",
|
|
1555
|
-
"tooltip-after": N(() => [A(e.$slots, "tooltip-after",
|
|
1574
|
+
"tooltip-before": N(() => [A(e.$slots, "tooltip-before", D(T({ ...mn.value })), void 0, !0)]),
|
|
1575
|
+
tooltip: N(() => [A(e.$slots, "tooltip", D(T({ ...mn.value })), void 0, !0)]),
|
|
1576
|
+
"tooltip-after": N(() => [A(e.$slots, "tooltip-after", D(T({ ...mn.value })), void 0, !0)]),
|
|
1556
1577
|
_: 3
|
|
1557
1578
|
}, 8, [
|
|
1558
1579
|
"teleportTo",
|
|
@@ -1578,30 +1599,30 @@ var qe = class {
|
|
|
1578
1599
|
"isA11yMode",
|
|
1579
1600
|
"a11yPosition"
|
|
1580
1601
|
]),
|
|
1581
|
-
gt.value && V.value.userOptions.buttons.table ? (O(),
|
|
1602
|
+
gt.value && V.value.userOptions.buttons.table ? (O(), b(Me(Kn.value.component), Ee({ key: 8 }, Kn.value.props, {
|
|
1582
1603
|
ref_key: "tableUnit",
|
|
1583
1604
|
ref: R,
|
|
1584
|
-
onClose:
|
|
1585
|
-
}),
|
|
1586
|
-
content: N(() => [(O(),
|
|
1605
|
+
onClose: qn
|
|
1606
|
+
}), Ce({
|
|
1607
|
+
content: N(() => [(O(), b(M(Ve), {
|
|
1587
1608
|
key: `table_${bt.value}`,
|
|
1588
|
-
colNames:
|
|
1589
|
-
head:
|
|
1590
|
-
body:
|
|
1591
|
-
config:
|
|
1592
|
-
title: V.value.table.useDialog ? "" :
|
|
1609
|
+
colNames: $.value.colNames,
|
|
1610
|
+
head: $.value.head,
|
|
1611
|
+
body: $.value.body,
|
|
1612
|
+
config: $.value.config,
|
|
1613
|
+
title: V.value.table.useDialog ? "" : Kn.value.title,
|
|
1593
1614
|
withCloseButton: !V.value.table.useDialog,
|
|
1594
1615
|
isCursorPointer: U.value,
|
|
1595
|
-
onClose:
|
|
1616
|
+
onClose: qn
|
|
1596
1617
|
}, {
|
|
1597
|
-
th: N(({ th: e }) => [
|
|
1618
|
+
th: N(({ th: e }) => [C("div", {
|
|
1598
1619
|
innerHTML: e,
|
|
1599
1620
|
style: {
|
|
1600
1621
|
display: "flex",
|
|
1601
1622
|
"align-items": "center"
|
|
1602
1623
|
}
|
|
1603
1624
|
}, null, 8, mt)]),
|
|
1604
|
-
td: N(({ td: e }) => [
|
|
1625
|
+
td: N(({ td: e }) => [we(j(e.name || e), 1)]),
|
|
1605
1626
|
_: 1
|
|
1606
1627
|
}, 8, [
|
|
1607
1628
|
"colNames",
|
|
@@ -1615,24 +1636,24 @@ var qe = class {
|
|
|
1615
1636
|
_: 2
|
|
1616
1637
|
}, [V.value.table.useDialog ? {
|
|
1617
1638
|
name: "title",
|
|
1618
|
-
fn: N(() => [
|
|
1639
|
+
fn: N(() => [we(j(Kn.value.title), 1)]),
|
|
1619
1640
|
key: "0"
|
|
1620
1641
|
} : void 0, V.value.table.useDialog ? {
|
|
1621
1642
|
name: "actions",
|
|
1622
|
-
fn: N(() => [
|
|
1643
|
+
fn: N(() => [C("button", {
|
|
1623
1644
|
tabindex: "0",
|
|
1624
1645
|
class: "vue-ui-user-options-button",
|
|
1625
|
-
onClick: t[1] ||= (e) =>
|
|
1626
|
-
style:
|
|
1627
|
-
}, [
|
|
1646
|
+
onClick: t[1] ||= (e) => Bn(V.value.userOptions.callbacks.csv),
|
|
1647
|
+
style: Oe({ cursor: U.value ? "pointer" : "default" })
|
|
1648
|
+
}, [Te(M(P), {
|
|
1628
1649
|
name: "fileCsv",
|
|
1629
|
-
stroke:
|
|
1650
|
+
stroke: Kn.value.props.color
|
|
1630
1651
|
}, null, 8, ["stroke"])], 4)]),
|
|
1631
1652
|
key: "1"
|
|
1632
|
-
} : void 0]), 1040)) :
|
|
1633
|
-
A(e.$slots, "skeleton", {}, () => [M(Mt) ? (O(),
|
|
1653
|
+
} : void 0]), 1040)) : x("", !0),
|
|
1654
|
+
A(e.$slots, "skeleton", {}, () => [M(Mt) ? (O(), b(se, { key: 0 })) : x("", !0)], !0)
|
|
1634
1655
|
], 46, Ye));
|
|
1635
1656
|
}
|
|
1636
|
-
}, [["__scopeId", "data-v-
|
|
1657
|
+
}, [["__scopeId", "data-v-1e20443b"]]);
|
|
1637
1658
|
//#endregion
|
|
1638
1659
|
export { Je as n, ht as t };
|