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, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-
|
|
2
|
+
import { $ as t, D as n, Jt as r, Kt as i, Ot as a, Pt as o, S as s, X as c, Z as l, ct as u, i as d, jt as f, q as ee, r as te, t as ne, tt as re, w as ie, xt as ae } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
4
|
+
import { t as ce } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useSvgExport-
|
|
8
|
-
import { t as pe } from "./useNestedProp
|
|
7
|
+
import { t as fe } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as pe } from "./useNestedProp-vPNvh7rV.js";
|
|
9
9
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
10
|
import { t as he } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as ge } from "./img-
|
|
12
|
-
import { n as _e } from "./Title-
|
|
11
|
+
import { t as ge } from "./img-Bnokohej.js";
|
|
12
|
+
import { n as _e } from "./Title-BE3qg9xl.js";
|
|
13
13
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
|
-
import { t as xe } from "./BaseIcon-
|
|
15
|
+
import { t as xe } from "./BaseIcon-BfndwIWE.js";
|
|
16
16
|
import { t as Se } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as Ce } from "./BaseLegendToggle-
|
|
17
|
+
import { t as Ce } from "./BaseLegendToggle-DZVucLnv.js";
|
|
18
18
|
import { t as we } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Te } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as Ee } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as De } from "./Legend-
|
|
21
|
+
import { t as De } from "./Legend-CQxUgOd-.js";
|
|
22
22
|
import { t as Oe } from "./usePanZoom-CYU3B4T3.js";
|
|
23
23
|
import { t as ke } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
24
24
|
import { Fragment as p, Teleport as Ae, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as je, createTextVNode as Me, createVNode as Ne, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Pe, nextTick as Fe, normalizeClass as Ie, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Le, onMounted as Re, openBlock as C, ref as w, renderList as ze, renderSlot as T, resolveDynamicComponent as Be, shallowRef as E, toDisplayString as Ve, toRefs as He, unref as D, useCssVars as Ue, useSlots as We, watch as O, withCtx as k, withKeys as Ge, withModifiers as Ke } from "vue";
|
|
@@ -81,18 +81,17 @@ function $e(e, t) {
|
|
|
81
81
|
d = r, f.push(a);
|
|
82
82
|
}
|
|
83
83
|
return f;
|
|
84
|
-
} else {
|
|
85
|
-
for (let t = 0; t < o; t += 1) {
|
|
86
|
-
let n = e[t], r = u + n.normalizedValue / l, i = {
|
|
87
|
-
x0: u,
|
|
88
|
-
y0: d,
|
|
89
|
-
x1: r,
|
|
90
|
-
y1: d + l
|
|
91
|
-
}, a = Object.assign({}, n, i);
|
|
92
|
-
u = r, f.push(a);
|
|
93
|
-
}
|
|
94
|
-
return f;
|
|
95
84
|
}
|
|
85
|
+
for (let t = 0; t < o; t += 1) {
|
|
86
|
+
let n = e[t], r = u + n.normalizedValue / l, i = {
|
|
87
|
+
x0: u,
|
|
88
|
+
y0: d,
|
|
89
|
+
x1: r,
|
|
90
|
+
y1: d + l
|
|
91
|
+
}, a = Object.assign({}, n, i);
|
|
92
|
+
u = r, f.push(a);
|
|
93
|
+
}
|
|
94
|
+
return f;
|
|
96
95
|
}
|
|
97
96
|
function et(e) {
|
|
98
97
|
let t = nt(e), n = t.width, r = t.height;
|
|
@@ -150,7 +149,8 @@ function A(e, t) {
|
|
|
150
149
|
width: o,
|
|
151
150
|
height: r
|
|
152
151
|
});
|
|
153
|
-
}
|
|
152
|
+
}
|
|
153
|
+
{
|
|
154
154
|
let e = t / n, o = r - e;
|
|
155
155
|
return Je({
|
|
156
156
|
xOffset: i,
|
|
@@ -258,8 +258,8 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
258
258
|
"copyAlt"
|
|
259
259
|
],
|
|
260
260
|
setup(e, { expose: ve, emit: qe }) {
|
|
261
|
-
Ue((e) => ({ d2c2c446:
|
|
262
|
-
let Je = y(() => import("./DataTable-
|
|
261
|
+
Ue((e) => ({ d2c2c446: bi.value }));
|
|
262
|
+
let Je = y(() => import("./DataTable-BbKgJ5UI.js")), Ye = y(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Xe = y(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Qe = y(() => import("./Tooltip-DhjyfHwz.js")), $e = y(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), et = y(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), tt = y(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_treemap: nt } = ce(), { isThemeValid: rt, warnInvalidTheme: it } = me(), A = e, at = qe, Pt = We();
|
|
263
263
|
Re(() => {
|
|
264
264
|
Pt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
265
265
|
});
|
|
@@ -649,7 +649,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
649
649
|
}
|
|
650
650
|
function Xn(e, t, n) {
|
|
651
651
|
let r = Yn(e, n), i = qn(e, t);
|
|
652
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) =>
|
|
652
|
+
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => fi(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
653
653
|
}
|
|
654
654
|
function Zn(e, t, n, r) {
|
|
655
655
|
let i = Yn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
|
|
@@ -866,7 +866,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
866
866
|
[e.name],
|
|
867
867
|
[Q.value.body[t]],
|
|
868
868
|
[isNaN(Q.value.body[t] / Mn.value) ? "-" : Q.value.body[t] / Mn.value * 100]
|
|
869
|
-
]), i =
|
|
869
|
+
]), i = [
|
|
870
870
|
[I.value.style.chart.title.text],
|
|
871
871
|
[I.value.style.chart.title.subtitle.text],
|
|
872
872
|
[
|
|
@@ -874,9 +874,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
874
874
|
["val"],
|
|
875
875
|
["%"]
|
|
876
876
|
]
|
|
877
|
-
].concat(r));
|
|
878
|
-
e ? e(
|
|
879
|
-
csvContent:
|
|
877
|
+
].concat(r), a = n(i);
|
|
878
|
+
e ? e(a) : t({
|
|
879
|
+
csvContent: a,
|
|
880
880
|
title: I.value.style.chart.title.text || "vue-ui-treemap"
|
|
881
881
|
});
|
|
882
882
|
});
|
|
@@ -964,10 +964,10 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
964
964
|
});
|
|
965
965
|
}, { immediate: !0 });
|
|
966
966
|
function Rr(e) {
|
|
967
|
-
Dr.value && (e.button
|
|
967
|
+
Dr.value && (e.button === void 0 || e.button === 0) && (Or.value = {
|
|
968
968
|
x: e.clientX,
|
|
969
969
|
y: e.clientY
|
|
970
|
-
}, kr.value = !1)
|
|
970
|
+
}, kr.value = !1);
|
|
971
971
|
}
|
|
972
972
|
function zr(e) {
|
|
973
973
|
if (!Dr.value || !Or.value) return;
|
|
@@ -1046,30 +1046,30 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1046
1046
|
let Jr = m(() => cr.value.map((e) => ({
|
|
1047
1047
|
...e,
|
|
1048
1048
|
name: e.display
|
|
1049
|
-
}))), Yr = m(() => I.value.style.chart.backgroundColor), Xr = m(() => I.value.style.chart.legend), { exportSvg:
|
|
1049
|
+
}))), Yr = m(() => I.value.style.chart.backgroundColor), Xr = m(() => I.value.style.chart.legend), Zr = m(() => I.value.style.chart.title), { exportSvg: Qr, getSvg: $r } = fe({
|
|
1050
1050
|
svg: z,
|
|
1051
|
-
title:
|
|
1051
|
+
title: Zr,
|
|
1052
1052
|
legend: Xr,
|
|
1053
1053
|
legendItems: Jr,
|
|
1054
1054
|
backgroundColor: Yr
|
|
1055
1055
|
});
|
|
1056
|
-
async function
|
|
1056
|
+
async function ei({ isCb: e }) {
|
|
1057
1057
|
tn.value = !0, await Fe();
|
|
1058
1058
|
try {
|
|
1059
1059
|
if (e) {
|
|
1060
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1060
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await $r();
|
|
1061
1061
|
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
1062
1062
|
blob: e,
|
|
1063
1063
|
url: t,
|
|
1064
1064
|
text: n,
|
|
1065
1065
|
dataUrl: r
|
|
1066
1066
|
}));
|
|
1067
|
-
} else await Promise.resolve(
|
|
1067
|
+
} else await Promise.resolve(Qr());
|
|
1068
1068
|
} finally {
|
|
1069
1069
|
tn.value = !1;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function ti(e) {
|
|
1073
1073
|
if (e?.stage === "start") {
|
|
1074
1074
|
en.value = !0;
|
|
1075
1075
|
return;
|
|
@@ -1080,7 +1080,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1080
1080
|
}
|
|
1081
1081
|
_n();
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function ni(e, t) {
|
|
1084
1084
|
let n = Qn(e, t), { paddingX: r, paddingTop: i } = Kn(n);
|
|
1085
1085
|
return {
|
|
1086
1086
|
fontSize: n,
|
|
@@ -1089,28 +1089,28 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1089
1089
|
lineHeight: n * 1.1
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function ri(e) {
|
|
1093
1093
|
return te(e.color ?? I.value.style.chart.backgroundColor);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function ii({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1096
1096
|
if (n === 0) return Infinity;
|
|
1097
1097
|
let r = e / (n + 1);
|
|
1098
1098
|
return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function ai() {
|
|
1101
1101
|
return Number(I.value.style.chart.layout.labels.hideUnderProportion) === 0;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function oi(e) {
|
|
1104
1104
|
let t = Fr.value;
|
|
1105
1105
|
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Ir.value;
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function si({ rect: e, seriesIndex: t }) {
|
|
1108
1108
|
if (!e || !I.value.style.chart.layout.labels.showDefaultLabels || !Bn(e)) return null;
|
|
1109
|
-
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } =
|
|
1109
|
+
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = ni(e, t), o = ri(e), s = Yn(e, t).map((e) => String(e ?? "")), c = qn(e, n);
|
|
1110
1110
|
if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
|
|
1111
|
-
let l =
|
|
1111
|
+
let l = ai(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${j.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
|
|
1112
1112
|
return {
|
|
1113
|
-
key:
|
|
1113
|
+
key: ci(e),
|
|
1114
1114
|
clipId: d,
|
|
1115
1115
|
clipX: f,
|
|
1116
1116
|
clipY: ee,
|
|
@@ -1124,7 +1124,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1124
1124
|
text: t,
|
|
1125
1125
|
x: r,
|
|
1126
1126
|
y: i + a * s,
|
|
1127
|
-
maxZoomFactor:
|
|
1127
|
+
maxZoomFactor: ii({
|
|
1128
1128
|
availableHeight: c.height,
|
|
1129
1129
|
lineHeight: a,
|
|
1130
1130
|
lineIndex: s
|
|
@@ -1136,25 +1136,25 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1136
1136
|
}))
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function ci(e) {
|
|
1140
1140
|
return `${e.id}`;
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let li = m(() => Pt.rect || R.value || !I.value.style.chart.layout.labels.showDefaultLabels || ur.value ? [] : G.value.map((e, t) => e.showLabel ? si({
|
|
1143
1143
|
rect: e,
|
|
1144
1144
|
seriesIndex: t
|
|
1145
|
-
}) : null).filter(Boolean)),
|
|
1146
|
-
function
|
|
1147
|
-
return typeof document > "u" ? null : (
|
|
1145
|
+
}) : null).filter(Boolean)), ui;
|
|
1146
|
+
function di() {
|
|
1147
|
+
return typeof document > "u" ? null : (ui ||= document.createElement("canvas"), ui.getContext("2d"));
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
let r =
|
|
1149
|
+
function fi(e, t, n = 400) {
|
|
1150
|
+
let r = di();
|
|
1151
1151
|
return r ? (r.font = `${n} ${t}px ${I.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function pi(e) {
|
|
1154
1154
|
let t = I.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1155
1155
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1156
1156
|
}
|
|
1157
|
-
async function
|
|
1157
|
+
async function mi() {
|
|
1158
1158
|
if (at("copyAlt", {
|
|
1159
1159
|
config: I.value,
|
|
1160
1160
|
dataset: G.value
|
|
@@ -1167,13 +1167,13 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1167
1167
|
dataset: G.value
|
|
1168
1168
|
}));
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function hi() {
|
|
1171
1171
|
F.value = null, an.value = !0;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function gi() {
|
|
1174
1174
|
F.value = null, rn.value = "pointer", Lt.value = !1, Z.value = null, an.value = !1;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function _i(e) {
|
|
1177
1177
|
if (!z.value || Tr.value || document.activeElement !== z.value || !G.value.length || ur.value) return;
|
|
1178
1178
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1179
1179
|
if (!t && !n && !r && !i) return;
|
|
@@ -1191,13 +1191,13 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1191
1191
|
let a = F.value, o = Z.value ? G.value.findIndex((e) => e.id === Z.value.id) : null, s = a !== null && a >= 0 && a < G.value.length, c = o !== null && o >= 0 && o < G.value.length;
|
|
1192
1192
|
s ? n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= G.value.length && (a = 0), a < 0 && (a = G.value.length - 1)) : a = n ? 0 : G.value.length - 1;
|
|
1193
1193
|
let l = G.value[a];
|
|
1194
|
-
l && (
|
|
1194
|
+
l && (vi(a), vr({
|
|
1195
1195
|
datapoint: l,
|
|
1196
1196
|
seriesIndex: a,
|
|
1197
1197
|
triggerMode: "keyboard"
|
|
1198
1198
|
}));
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function vi(e) {
|
|
1201
1201
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1202
1202
|
let t = G.value[e];
|
|
1203
1203
|
if (!t) return;
|
|
@@ -1207,16 +1207,16 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1207
1207
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
|
-
let
|
|
1210
|
+
let yi = m(() => ({
|
|
1211
1211
|
headers: br.value?.colNames ?? [],
|
|
1212
1212
|
rows: br.value?.body ?? []
|
|
1213
|
-
})),
|
|
1213
|
+
})), bi = m(() => I.value.style.chart.color);
|
|
1214
1214
|
return ve({
|
|
1215
1215
|
getData: xr,
|
|
1216
1216
|
getImage: Gr,
|
|
1217
1217
|
generateCsv: yr,
|
|
1218
1218
|
generateImage: _n,
|
|
1219
|
-
generateSvg:
|
|
1219
|
+
generateSvg: ei,
|
|
1220
1220
|
generatePdf: gn,
|
|
1221
1221
|
hideSeries: hr,
|
|
1222
1222
|
showSeries: mr,
|
|
@@ -1226,7 +1226,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1226
1226
|
toggleAnnotator: Er,
|
|
1227
1227
|
toggleFullscreen: $n,
|
|
1228
1228
|
resetZoom: Ar,
|
|
1229
|
-
copyAlt:
|
|
1229
|
+
copyAlt: mi
|
|
1230
1230
|
}), (e, t) => (C(), _("div", {
|
|
1231
1231
|
ref_key: "treemapChart",
|
|
1232
1232
|
ref: N,
|
|
@@ -1240,11 +1240,11 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1240
1240
|
id: `chart-instructions-${j.value}`,
|
|
1241
1241
|
class: "sr-only"
|
|
1242
1242
|
}, [v("p", null, Ve(I.value.a11y.translations.keyboardNavigation), 1)], 8, st),
|
|
1243
|
-
|
|
1243
|
+
yi.value?.rows?.length ? (C(), h(we, {
|
|
1244
1244
|
key: 0,
|
|
1245
1245
|
uid: j.value,
|
|
1246
|
-
head:
|
|
1247
|
-
body:
|
|
1246
|
+
head: yi.value.headers,
|
|
1247
|
+
body: yi.value.rows,
|
|
1248
1248
|
notice: I.value.a11y.translations.tableAvailable,
|
|
1249
1249
|
caption: I.value.a11y.translations.tableCaption
|
|
1250
1250
|
}, null, 8, [
|
|
@@ -1336,13 +1336,13 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1336
1336
|
onToggleFullscreen: $n,
|
|
1337
1337
|
onGeneratePdf: D(gn),
|
|
1338
1338
|
onGenerateCsv: yr,
|
|
1339
|
-
onGenerateImage:
|
|
1340
|
-
onGenerateSvg:
|
|
1339
|
+
onGenerateImage: ti,
|
|
1340
|
+
onGenerateSvg: ei,
|
|
1341
1341
|
onToggleTable: Sr,
|
|
1342
1342
|
onToggleTooltip: Cr,
|
|
1343
1343
|
onToggleAnnotator: Er,
|
|
1344
1344
|
onToggleZoom: wr,
|
|
1345
|
-
onCopyAlt:
|
|
1345
|
+
onCopyAlt: mi,
|
|
1346
1346
|
style: S({ visibility: D(fn) ? D(un) ? "visible" : "hidden" : "visible" })
|
|
1347
1347
|
}, je({ _: 2 }, [
|
|
1348
1348
|
e.$slots.menuIcon ? {
|
|
@@ -1470,9 +1470,9 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1470
1470
|
viewBox: `${D($).x} ${D($).y} ${D($).width <= 0 ? 10 : D($).width} ${D($).height <= 0 ? 10 : D($).height}`,
|
|
1471
1471
|
style: S(`max-width:100%; overflow:${Lr.value ? "hidden" : "visible"}; background:transparent;color:${I.value.style.chart.color}`),
|
|
1472
1472
|
tabindex: "0",
|
|
1473
|
-
onFocus:
|
|
1474
|
-
onBlur:
|
|
1475
|
-
onKeydown:
|
|
1473
|
+
onFocus: hi,
|
|
1474
|
+
onBlur: gi,
|
|
1475
|
+
onKeydown: _i,
|
|
1476
1476
|
onPointerdown: Rr,
|
|
1477
1477
|
onPointermove: zr,
|
|
1478
1478
|
onPointerup: Br,
|
|
@@ -1501,7 +1501,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1501
1501
|
height: K(e),
|
|
1502
1502
|
width: q(e),
|
|
1503
1503
|
fill: It.value ? e.color ?? I.value.style.chart.backgroundColor : I.value.style.chart.layout.rects.gradient.show ? ur.value ? I.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? I.value.style.chart.backgroundColor,
|
|
1504
|
-
rx: D(Nr) > 1 ?
|
|
1504
|
+
rx: D(Nr) > 1 ? pi(e) * Pr.value : pi(e),
|
|
1505
1505
|
stroke: Z.value && Z.value.id === e.id ? I.value.style.chart.layout.rects.selected.stroke : I.value.style.chart.layout.rects.stroke,
|
|
1506
1506
|
"stroke-width": Wn(e),
|
|
1507
1507
|
onClick: Ke((n) => Vr(e, t), ["stop"]),
|
|
@@ -1521,7 +1521,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1521
1521
|
sr(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
|
|
1522
1522
|
])
|
|
1523
1523
|
}, null, 46, _t)]))), 128)),
|
|
1524
|
-
(C(!0), _(p, null, ze(
|
|
1524
|
+
(C(!0), _(p, null, ze(li.value, (e) => (C(), _("g", {
|
|
1525
1525
|
key: e.key,
|
|
1526
1526
|
style: { "pointer-events": "none" }
|
|
1527
1527
|
}, [v("defs", null, [v("clipPath", {
|
|
@@ -1535,7 +1535,7 @@ var at = /* @__PURE__ */ e({ default: () => Pt }), ot = ["id"], st = ["id"], ct
|
|
|
1535
1535
|
height: e.clipHeight
|
|
1536
1536
|
}, null, 10, yt)], 8, vt)]), v("g", { "clip-path": `url(#${e.clipId})` }, [v("g", { transform: e.translate }, [v("g", {
|
|
1537
1537
|
class: Ie({ "vue-data-ui-transition": D(on) }),
|
|
1538
|
-
transform:
|
|
1538
|
+
transform: oi(e)
|
|
1539
1539
|
}, [(C(!0), _(p, null, ze(e.lines, (t) => (C(), _(p, { key: t.key }, [t.text && (e.alwaysShowAllLines || Fr.value <= t.maxZoomFactor) ? (C(), _("text", {
|
|
1540
1540
|
key: 0,
|
|
1541
1541
|
x: t.x,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as ee, Vt as te, X as s, ct as ne, i as re, jt as ie, n as ae, pt as oe, q as se, r as ce, t as le, tt as ue, w as de, xt as fe } from "./lib-
|
|
2
|
+
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as ee, Vt as te, X as s, ct as ne, i as re, jt as ie, n as ae, pt as oe, q as se, r as ce, t as le, tt as ue, w as de, xt as fe } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as he } from "./useConfig-
|
|
5
|
-
import { t as ge } from "./usePrinter-
|
|
4
|
+
import { t as he } from "./useConfig-D3scuR88.js";
|
|
5
|
+
import { t as ge } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ye } from "./useSvgExport-
|
|
8
|
-
import { t as be } from "./useNestedProp
|
|
7
|
+
import { t as ye } from "./useSvgExport-DH-FfcqQ.js";
|
|
8
|
+
import { t as be } from "./useNestedProp-vPNvh7rV.js";
|
|
9
9
|
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Se } from "./img-
|
|
11
|
-
import { n as Ce } from "./Title-
|
|
12
|
-
import { t as we } from "./Shape-
|
|
10
|
+
import { t as Se } from "./img-Bnokohej.js";
|
|
11
|
+
import { n as Ce } from "./Title-BE3qg9xl.js";
|
|
12
|
+
import { t as we } from "./Shape-C21CMlWS.js";
|
|
13
13
|
import { t as Te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as Ee, t as De } from "./useResponsive-ZtArZtUf.js";
|
|
15
15
|
import { t as Oe } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as ke } from "./BaseLegendToggle-
|
|
16
|
+
import { t as ke } from "./BaseLegendToggle-DZVucLnv.js";
|
|
17
17
|
import { t as Ae } from "./A11yDataTable-DdRsVULz.js";
|
|
18
18
|
import { t as je } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
19
|
import { t as Me } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { t as Ne } from "./labelUtils-
|
|
21
|
-
import { t as Pe } from "./Legend-
|
|
20
|
+
import { t as Ne } from "./labelUtils-BeVpDvTJ.js";
|
|
21
|
+
import { t as Pe } from "./Legend-CQxUgOd-.js";
|
|
22
22
|
import { t as Fe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
23
23
|
import { t as Ie } from "./vue_ui_waffle-DIARFc7g.js";
|
|
24
24
|
import { Fragment as c, Teleport as Le, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as g, normalizeStyle as We, onBeforeUnmount as Ge, onMounted as Ke, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as Ye, toRefs as Xe, unref as x, useSlots as Ze, watch as Qe, withCtx as S } from "vue";
|
|
@@ -105,7 +105,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
105
105
|
},
|
|
106
106
|
emits: ["selectLegend", "copyAlt"],
|
|
107
107
|
setup(e, { expose: Te, emit: $e }) {
|
|
108
|
-
let bt = m(() => import("./Tooltip-
|
|
108
|
+
let bt = m(() => import("./Tooltip-DhjyfHwz.js")), xt = m(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), St = m(() => import("./DataTable-BbKgJ5UI.js")), Ct = m(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), wt = m(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Tt = m(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Et = m(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Dt = m(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_waffle: Ot } = he(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), jt = Fe(), C = e, Mt = Ze(), Nt = l({
|
|
109
109
|
get() {
|
|
110
110
|
return !!C.dataset && C.dataset.length;
|
|
111
111
|
},
|
|
@@ -418,7 +418,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
420
|
let r = On(e, bn.value), i = On(e, R.value);
|
|
421
|
-
if (
|
|
421
|
+
if (i !== 0 || r !== 0) {
|
|
422
422
|
if (U.value.includes(e)) {
|
|
423
423
|
if (U.value = U.value.filter((t) => t !== e), jt.value) {
|
|
424
424
|
kn(e), G(e, r), Wn("selectLegend", z.value.map((e) => ({
|
|
@@ -663,7 +663,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
663
663
|
[e.name],
|
|
664
664
|
[X.value.body[t]],
|
|
665
665
|
[isNaN(X.value.body[t] / J.value) ? "-" : X.value.body[t] / J.value * 100]
|
|
666
|
-
]), i =
|
|
666
|
+
]), i = [
|
|
667
667
|
[O.value.style.chart.title.text],
|
|
668
668
|
[O.value.style.chart.title.subtitle.text],
|
|
669
669
|
[
|
|
@@ -671,9 +671,9 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
671
671
|
["val"],
|
|
672
672
|
["%"]
|
|
673
673
|
]
|
|
674
|
-
].concat(n));
|
|
675
|
-
e ? e(
|
|
676
|
-
csvContent:
|
|
674
|
+
].concat(n), a = r(i);
|
|
675
|
+
e ? e(a) : t({
|
|
676
|
+
csvContent: a,
|
|
677
677
|
title: O.value.style.chart.title.text || "vue-ui-waffle"
|
|
678
678
|
});
|
|
679
679
|
});
|
|
@@ -796,30 +796,30 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
796
796
|
let nr = l(() => q.value.map((e) => ({
|
|
797
797
|
...e,
|
|
798
798
|
name: e.display
|
|
799
|
-
}))), rr = l(() => O.value.style.chart.backgroundColor), ir = l(() => O.value.style.chart.legend), { exportSvg:
|
|
799
|
+
}))), rr = l(() => O.value.style.chart.backgroundColor), ir = l(() => O.value.style.chart.legend), ar = l(() => O.value.style.chart.title), { exportSvg: or, getSvg: sr } = ye({
|
|
800
800
|
svg: A,
|
|
801
|
-
title:
|
|
801
|
+
title: ar,
|
|
802
802
|
legend: ir,
|
|
803
803
|
legendItems: nr,
|
|
804
804
|
backgroundColor: rr
|
|
805
805
|
});
|
|
806
|
-
async function
|
|
806
|
+
async function cr({ isCb: e }) {
|
|
807
807
|
Jt.value = !0, await He();
|
|
808
808
|
try {
|
|
809
809
|
if (e) {
|
|
810
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
810
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await sr();
|
|
811
811
|
await Promise.resolve(O.value.userOptions.callbacks.svg({
|
|
812
812
|
blob: e,
|
|
813
813
|
url: t,
|
|
814
814
|
text: n,
|
|
815
815
|
dataUrl: r
|
|
816
816
|
}));
|
|
817
|
-
} else await Promise.resolve(
|
|
817
|
+
} else await Promise.resolve(or());
|
|
818
818
|
} finally {
|
|
819
819
|
Jt.value = !1;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function lr(e) {
|
|
823
823
|
if (e?.stage === "start") {
|
|
824
824
|
qt.value = !0;
|
|
825
825
|
return;
|
|
@@ -830,7 +830,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
830
830
|
}
|
|
831
831
|
fn();
|
|
832
832
|
}
|
|
833
|
-
async function
|
|
833
|
+
async function ur() {
|
|
834
834
|
if (Wn("copyAlt", {
|
|
835
835
|
config: O.value,
|
|
836
836
|
dataset: B.value
|
|
@@ -843,13 +843,13 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
843
843
|
dataset: B.value
|
|
844
844
|
}));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function dr() {
|
|
847
847
|
D.value = null, Zt.value = !0;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function fr() {
|
|
850
850
|
D.value = null, Xt.value = "pointer", Pt.value = !1, T.value = null, Rn.value = null, Zt.value = !1;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function pr(e) {
|
|
853
853
|
if (!A.value || Qn.value || document.activeElement !== A.value || !Y.value.length || U.value.length === C.dataset.length) return;
|
|
854
854
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
855
855
|
if (!t && !n && !r && !i) return;
|
|
@@ -867,9 +867,9 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
867
867
|
let a = Y.value.findIndex((e) => e.serieIndex === D.value), o = null;
|
|
868
868
|
if (o = a === -1 ? n ? Y.value[0] : Y.value[Y.value.length - 1] : n ? Y.value[(a + 1) % Y.value.length] : Y.value[(a - 1 + Y.value.length) % Y.value.length], !o) return;
|
|
869
869
|
let ee = Bn(o.serieIndex);
|
|
870
|
-
ee !== null && (
|
|
870
|
+
ee !== null && (mr(o.serieIndex), Un(ee, "keyboard"));
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function mr(e) {
|
|
873
873
|
if (!Number.isFinite(e) || !A.value) return;
|
|
874
874
|
let t = zn(e);
|
|
875
875
|
if (!t || !t.rectIndexes.length) return;
|
|
@@ -887,7 +887,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
887
887
|
y: s.top + te / P.value.height * s.height
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
let
|
|
890
|
+
let hr = l(() => ({
|
|
891
891
|
headers: Z.value?.colNames ?? [],
|
|
892
892
|
rows: Z.value?.body ?? []
|
|
893
893
|
}));
|
|
@@ -897,14 +897,14 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
897
897
|
generatePdf: dn,
|
|
898
898
|
generateCsv: Jn,
|
|
899
899
|
generateImage: fn,
|
|
900
|
-
generateSvg:
|
|
900
|
+
generateSvg: cr,
|
|
901
901
|
hideSeries: Pn,
|
|
902
902
|
showSeries: Nn,
|
|
903
903
|
toggleTable: Xn,
|
|
904
904
|
toggleTooltip: Zn,
|
|
905
905
|
toggleAnnotator: $n,
|
|
906
906
|
toggleFullscreen: Yn,
|
|
907
|
-
copyAlt:
|
|
907
|
+
copyAlt: ur
|
|
908
908
|
}), (e, t) => (_(), f("div", {
|
|
909
909
|
class: Ue(`vue-data-ui-component vue-ui-waffle ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
910
910
|
ref_key: "waffleChart",
|
|
@@ -918,11 +918,11 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
918
918
|
id: `chart-instructions-${w.value}`,
|
|
919
919
|
class: "sr-only"
|
|
920
920
|
}, [p("p", null, Ye(O.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
921
|
-
|
|
921
|
+
hr.value?.rows?.length ? (_(), u(Ae, {
|
|
922
922
|
key: 0,
|
|
923
923
|
uid: w.value,
|
|
924
|
-
head:
|
|
925
|
-
body:
|
|
924
|
+
head: hr.value.headers,
|
|
925
|
+
body: hr.value.rows,
|
|
926
926
|
notice: O.value.a11y.translations.tableAvailable,
|
|
927
927
|
caption: O.value.a11y.translations.tableCaption
|
|
928
928
|
}, null, 8, [
|
|
@@ -1012,12 +1012,12 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1012
1012
|
onToggleFullscreen: Yn,
|
|
1013
1013
|
onGeneratePdf: x(dn),
|
|
1014
1014
|
onGenerateCsv: Jn,
|
|
1015
|
-
onGenerateImage:
|
|
1016
|
-
onGenerateSvg:
|
|
1015
|
+
onGenerateImage: lr,
|
|
1016
|
+
onGenerateSvg: cr,
|
|
1017
1017
|
onToggleTable: Xn,
|
|
1018
1018
|
onToggleTooltip: Zn,
|
|
1019
1019
|
onToggleAnnotator: $n,
|
|
1020
|
-
onCopyAlt:
|
|
1020
|
+
onCopyAlt: ur,
|
|
1021
1021
|
style: We({ visibility: x(an) ? x(nn) ? "visible" : "hidden" : "visible" })
|
|
1022
1022
|
}, Re({ _: 2 }, [
|
|
1023
1023
|
e.$slots.menuIcon ? {
|
|
@@ -1102,9 +1102,9 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1102
1102
|
tabindex: "0",
|
|
1103
1103
|
viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
|
|
1104
1104
|
style: We(`max-width:100%;overflow:visible;background:transparent;color:${O.value.style.chart.color}`),
|
|
1105
|
-
onFocus:
|
|
1106
|
-
onBlur:
|
|
1107
|
-
onKeydown:
|
|
1105
|
+
onFocus: dr,
|
|
1106
|
+
onBlur: fr,
|
|
1107
|
+
onKeydown: pr
|
|
1108
1108
|
}, [
|
|
1109
1109
|
Be(x(Et)),
|
|
1110
1110
|
p("defs", null, [(_(!0), f(c, null, y(V.value, (e, t) => (_(), u(Oe, {
|