vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Yt as t, q as n, t as r } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as o } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as s } from "./useNestedProp-
|
|
6
|
-
import { n as c } from "./Title-
|
|
5
|
+
import { t as s } from "./useNestedProp-CulPqtou.js";
|
|
6
|
+
import { n as c } from "./Title-CaVA8EIw.js";
|
|
7
7
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { l as ee, t as te } from "./useResponsive-ZtArZtUf.js";
|
|
9
|
-
import { t as u } from "./BaseIcon-
|
|
9
|
+
import { t as u } from "./BaseIcon-BbElSC8_.js";
|
|
10
10
|
import { t as ne } from "./DefGrad-DVBqDjhO.js";
|
|
11
11
|
import { t as re } from "./useChartAccessibility-DYqac8yF.js";
|
|
12
12
|
import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as oe, onMounted as se, openBlock as b, ref as x, renderSlot as S, shallowRef as C, toDisplayString as ce, unref as w, watch as le } from "vue";
|
|
@@ -103,33 +103,33 @@ var ue = class {
|
|
|
103
103
|
"lap"
|
|
104
104
|
],
|
|
105
105
|
setup(e, { expose: l, emit: T }) {
|
|
106
|
-
let E = ae(() => import("./PackageVersion-
|
|
106
|
+
let E = ae(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), { vue_ui_timer: De } = o(), D = e, O = T, k = x(null), A = x(null), j = x(null), M = C(null), N = C(null), P = x(n()), F = x(0);
|
|
107
107
|
se(() => {
|
|
108
108
|
I();
|
|
109
109
|
});
|
|
110
110
|
function I() {
|
|
111
111
|
if (L.value.responsive) {
|
|
112
112
|
let e = ee(() => {
|
|
113
|
-
let { width: e, height:
|
|
113
|
+
let { width: e, height: n } = te({
|
|
114
114
|
chart: k.value,
|
|
115
115
|
title: L.value.style.title.text ? A.value : null,
|
|
116
116
|
legend: j.value
|
|
117
117
|
});
|
|
118
118
|
requestAnimationFrame(() => {
|
|
119
|
-
B.value.width = e, B.value.height =
|
|
120
|
-
relator: Math.min(e,
|
|
119
|
+
B.value.width = e, B.value.height = n, L.value.responsiveProportionalSizing ? (B.value.tracker.core = t({
|
|
120
|
+
relator: Math.min(e, n),
|
|
121
121
|
adjuster: L.value.style.width,
|
|
122
122
|
source: 6 * L.value.stopwatch.tracker.radiusRatio,
|
|
123
123
|
threshold: 1,
|
|
124
124
|
fallback: 1
|
|
125
|
-
}), B.value.tracker.aura =
|
|
126
|
-
relator: Math.min(e,
|
|
125
|
+
}), B.value.tracker.aura = t({
|
|
126
|
+
relator: Math.min(e, n),
|
|
127
127
|
adjuster: L.value.style.width,
|
|
128
128
|
source: 12 * L.value.stopwatch.tracker.aura.radiusRatio,
|
|
129
129
|
threshold: 1,
|
|
130
130
|
fallback: 1
|
|
131
|
-
}), B.value.label =
|
|
132
|
-
relator: Math.min(e,
|
|
131
|
+
}), B.value.label = t({
|
|
132
|
+
relator: Math.min(e, n),
|
|
133
133
|
adjuster: L.value.style.width,
|
|
134
134
|
source: L.value.stopwatch.label.fontSize,
|
|
135
135
|
threshold: 10,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as t, Ut as n, X as r, Xt as i, b as a, i as o, nt as s, q as c, t as l } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ne } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as re } from "./usePrinter-
|
|
5
|
+
import { t as re } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as u } from "./useNestedProp-
|
|
7
|
+
import { t as u } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as se } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as ce } from "./img-
|
|
11
|
-
import { n as le } from "./Title-
|
|
10
|
+
import { t as ce } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as le } from "./Title-CaVA8EIw.js";
|
|
12
12
|
import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as de, t as fe } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
@@ -65,14 +65,14 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
65
65
|
},
|
|
66
66
|
emits: ["copyAlt"],
|
|
67
67
|
setup(e, { expose: ue, emit: Te }) {
|
|
68
|
-
let E = h(() => import("./PenAndPaper-
|
|
68
|
+
let E = h(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), ze = h(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Be = h(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), { vue_ui_tiremarks: Ve } = ne(), { isThemeValid: He, warnInvalidTheme: Ue } = oe(), D = he(), O = e, We = Te, Ge = d(() => !!O.dataset && Object.keys(O.dataset).length), k = x(c()), A = x(null), Ke = x(null), qe = x(null), Je = x(null), Ye = x(0), Xe = x(0), j = x(null), M = x(null), N = x(R());
|
|
69
69
|
ee({
|
|
70
70
|
config: () => N.value,
|
|
71
71
|
dataset: () => O.dataset,
|
|
72
72
|
component: "VueUiTiremarks",
|
|
73
73
|
rules: [te.noHint]
|
|
74
74
|
});
|
|
75
|
-
let Ze = d(() => N.value.userOptions.useCursorPointer), Qe = d(() =>
|
|
75
|
+
let Ze = d(() => N.value.userOptions.useCursorPointer), Qe = d(() => i({
|
|
76
76
|
defaultConfig: {
|
|
77
77
|
userOptions: { show: !1 },
|
|
78
78
|
style: { chart: {
|
|
@@ -91,7 +91,7 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
91
91
|
FINAL_CONFIG: N,
|
|
92
92
|
prepareConfig: R,
|
|
93
93
|
skeletonDataset: O.config?.skeletonDataset ?? { percentage: 50 },
|
|
94
|
-
skeletonConfig:
|
|
94
|
+
skeletonConfig: i({
|
|
95
95
|
defaultConfig: N.value,
|
|
96
96
|
userConfig: Qe.value
|
|
97
97
|
})
|
|
@@ -119,7 +119,7 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
119
119
|
elementId: k.value,
|
|
120
120
|
fileName: N.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
121
121
|
options: N.value.userOptions.print
|
|
122
|
-
}), rt = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), V = x(N.value.style.chart.animation.use && !D.value ? 0 :
|
|
122
|
+
}), rt = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), V = x(N.value.style.chart.animation.use && !D.value ? 0 : a(F.value.percentage));
|
|
123
123
|
we(() => F.value, (e) => {
|
|
124
124
|
N.value.style.chart.animation.use && !D.value ? it(e.percentage) : V.value = e.percentage || 0;
|
|
125
125
|
}, { deep: !0 }), xe(() => {
|
|
@@ -134,7 +134,7 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
134
134
|
}
|
|
135
135
|
let at = d(() => N.value.debug);
|
|
136
136
|
function ot() {
|
|
137
|
-
if (
|
|
137
|
+
if (t(O.dataset) && s({
|
|
138
138
|
componentName: "VueUiTiremarks",
|
|
139
139
|
type: "dataset",
|
|
140
140
|
debug: at.value
|
|
@@ -273,7 +273,7 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
273
273
|
dataset: F.value
|
|
274
274
|
}));
|
|
275
275
|
}
|
|
276
|
-
let vt = d(() => `${k.value}-title`), yt = d(() => `${k.value}-desc`), $ = d(() =>
|
|
276
|
+
let vt = d(() => `${k.value}-title`), yt = d(() => `${k.value}-desc`), $ = d(() => o(N.value.style.chart.percentage.formatter, V.value, r({
|
|
277
277
|
v: V.value,
|
|
278
278
|
s: "%",
|
|
279
279
|
r: N.value.style.chart.percentage.rounding
|
|
@@ -456,7 +456,7 @@ var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
|
|
|
456
456
|
(b(), m("svg", {
|
|
457
457
|
ref_key: "svgRef",
|
|
458
458
|
ref: L,
|
|
459
|
-
xmlns: w(
|
|
459
|
+
xmlns: w(l),
|
|
460
460
|
class: _({
|
|
461
461
|
"vue-data-ui-fullscreen--on": X.value,
|
|
462
462
|
"vue-data-ui-fulscreen--off": !X.value
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, At as n, D as r, It as i, Jt as a, Nt as o, S as s, St as c, X as l, Xt as u, Z as d, i as f, lt as ee, nt as te, q as ne, r as re, t as ie, w as ae } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ce } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
5
|
+
import { t as le } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-
|
|
7
|
+
import { t as fe } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-DNiwdPmb.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-Bkzj3lDD.js";
|
|
12
|
+
import { n as _e } from "./Title-CaVA8EIw.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-BbElSC8_.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-CtEdLr4R.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-BJtY2RA9.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 Pe, guardReactiveProps as y, mergeProps as Fe, nextTick as Ie, normalizeClass as Le, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Re, onMounted as ze, openBlock as S, ref as C, renderList as Be, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as T, toDisplayString as He, toRefs as Ue, unref as E, useCssVars as We, useSlots as Ge, watch as D, withCtx as O, withKeys as Ke, withModifiers as qe } from "vue";
|
|
@@ -236,7 +236,10 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
236
236
|
}, At = {
|
|
237
237
|
key: 6,
|
|
238
238
|
class: "vue-data-ui-watermark"
|
|
239
|
-
}, jt = ["id"], Mt = ["onClick"], Nt =
|
|
239
|
+
}, jt = ["id"], Mt = ["onClick"], Nt = { style: {
|
|
240
|
+
display: "flex",
|
|
241
|
+
"align-items": "center"
|
|
242
|
+
} }, Pt = 4, Ft = /*#__PURE__*/ ve({
|
|
240
243
|
__name: "vue-ui-treemap",
|
|
241
244
|
props: {
|
|
242
245
|
config: {
|
|
@@ -258,8 +261,8 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
258
261
|
"copyAlt"
|
|
259
262
|
],
|
|
260
263
|
setup(e, { expose: ve, emit: Je }) {
|
|
261
|
-
We((e) => ({
|
|
262
|
-
let Ye = Pe(() => import("./DataTable-
|
|
264
|
+
We((e) => ({ v16bf5434: vi.value }));
|
|
265
|
+
let Ye = Pe(() => import("./DataTable-CmyEubtT.js")), Xe = Pe(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Ze = Pe(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), $e = Pe(() => import("./Tooltip-CVxJe3UW.js")), et = Pe(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), tt = Pe(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), nt = Pe(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_treemap: rt } = ce(), { isThemeValid: it, warnInvalidTheme: at } = pe(), k = e, ot = Je, Ft = Ge(), It = m(() => !!k.dataset && k.dataset.length), Lt = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = C(ne()), Rt = C(!1), zt = C(""), j = C(!1), Bt = C(0), M = C([]), N = T(null), Vt = T(null), Ht = T(null), Ut = T(null), Wt = T(null), Gt = C(0), Kt = C(0), qt = C(0), P = C([]), Jt = C(null), Yt = C(!1), Xt = C(null), Zt = C(null), Qt = C(null), $t = C(/* @__PURE__ */ new Map()), F = C(null), en = C({
|
|
263
266
|
x: 0,
|
|
264
267
|
y: 0
|
|
265
268
|
}), tn = C("pointer"), nn = C(!1), I = C(dn());
|
|
@@ -290,7 +293,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
290
293
|
let { transitionEnabled: rn } = he({
|
|
291
294
|
config: () => I.value.transitions,
|
|
292
295
|
dataset: () => k.dataset
|
|
293
|
-
}), L = m(() => I.value.userOptions.useCursorPointer), an = m(() =>
|
|
296
|
+
}), L = m(() => I.value.userOptions.useCursorPointer), an = m(() => u({
|
|
294
297
|
defaultConfig: {
|
|
295
298
|
userOptions: { show: !1 },
|
|
296
299
|
style: { chart: {
|
|
@@ -342,7 +345,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
342
345
|
}
|
|
343
346
|
]
|
|
344
347
|
}],
|
|
345
|
-
skeletonConfig:
|
|
348
|
+
skeletonConfig: u({
|
|
346
349
|
defaultConfig: I.value,
|
|
347
350
|
userConfig: an.value
|
|
348
351
|
})
|
|
@@ -363,7 +366,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
363
366
|
});
|
|
364
367
|
return {
|
|
365
368
|
...r,
|
|
366
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
369
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || i
|
|
367
370
|
};
|
|
368
371
|
}
|
|
369
372
|
D(() => k.config, (e) => {
|
|
@@ -373,7 +376,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
373
376
|
elementId: `treemap_${A.value}`,
|
|
374
377
|
fileName: I.value.style.chart.title.text || "vue-ui-treemap",
|
|
375
378
|
options: I.value.userOptions.print
|
|
376
|
-
}), gn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), _n = m(() =>
|
|
379
|
+
}), gn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), _n = m(() => ae(I.value.customPalette)), B = C({
|
|
377
380
|
showTable: I.value.table.show,
|
|
378
381
|
showTooltip: I.value.style.chart.tooltip.show,
|
|
379
382
|
showZoom: I.value.style.chart.zoom?.show ?? !1
|
|
@@ -411,7 +414,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
411
414
|
vbHeight: n - r,
|
|
412
415
|
offsetY: r
|
|
413
416
|
};
|
|
414
|
-
}), H = C(
|
|
417
|
+
}), H = C(d(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
|
|
415
418
|
D([H, () => I.value], () => {
|
|
416
419
|
Qt.value = null, $t.value = /* @__PURE__ */ new Map();
|
|
417
420
|
}, { deep: !0 }), D(() => M.value, () => {
|
|
@@ -421,14 +424,14 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
421
424
|
});
|
|
422
425
|
function Sn(e) {
|
|
423
426
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
424
|
-
e.id ||=
|
|
425
|
-
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] ||
|
|
427
|
+
e.id ||= ne(), e.sourceColor === void 0 && (e.sourceColor = s(e.color) || null);
|
|
428
|
+
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || i[t] || i[t % i.length];
|
|
426
429
|
n = s(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
427
430
|
});
|
|
428
431
|
}
|
|
429
432
|
function Cn(e, t) {
|
|
430
433
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
431
|
-
n.id ||=
|
|
434
|
+
n.id ||= ne(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = s(n.color) || null);
|
|
432
435
|
let r = n.sourceColor || t;
|
|
433
436
|
n.color = r, Cn(n, r);
|
|
434
437
|
});
|
|
@@ -457,7 +460,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
457
460
|
U.value = [n];
|
|
458
461
|
}
|
|
459
462
|
D(() => on.value, () => {
|
|
460
|
-
H.value =
|
|
463
|
+
H.value = d(on.value), Sn(H.value), Tn(), qt.value += 1, Kt.value += 1;
|
|
461
464
|
}, {
|
|
462
465
|
deep: !0,
|
|
463
466
|
immediate: !0,
|
|
@@ -472,11 +475,11 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
472
475
|
Ft["chart-background"] && Dn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
473
476
|
});
|
|
474
477
|
function On() {
|
|
475
|
-
if (
|
|
478
|
+
if (o(k.dataset) && te({
|
|
476
479
|
componentName: "VueUiTreemap",
|
|
477
480
|
type: "dataset",
|
|
478
481
|
debug: Dn.value
|
|
479
|
-
}), Sn(H.value),
|
|
482
|
+
}), Sn(H.value), o(k.dataset) || (sn.value = I.value.loading), I.value.responsive) {
|
|
480
483
|
let e = ye(() => {
|
|
481
484
|
let { width: e, height: t } = be({
|
|
482
485
|
chart: N.value,
|
|
@@ -497,7 +500,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
497
500
|
});
|
|
498
501
|
let kn = m(() => U.value.map((e, t) => ({
|
|
499
502
|
...e,
|
|
500
|
-
color: s(e.color) || _n.value[t] ||
|
|
503
|
+
color: s(e.color) || _n.value[t] || i[t] || i[t % i.length]
|
|
501
504
|
})).filter((e) => !M.value.includes(e.id))), An = m(() => H.value.filter((e) => !M.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = m({
|
|
502
505
|
get() {
|
|
503
506
|
let e = [...kn.value];
|
|
@@ -510,9 +513,9 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
510
513
|
function Mn(e, t) {
|
|
511
514
|
return e.value / t;
|
|
512
515
|
}
|
|
513
|
-
function Nn(e, t,
|
|
514
|
-
let
|
|
515
|
-
return
|
|
516
|
+
function Nn(e, t, r) {
|
|
517
|
+
let i = I.value.style.chart.layout.rects.colorRatio - Mn(t, r);
|
|
518
|
+
return n(e, i < 0 ? 0 : i);
|
|
516
519
|
}
|
|
517
520
|
function Pn(e) {
|
|
518
521
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -525,9 +528,9 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
525
528
|
return (Number(t.value) || 0) - i;
|
|
526
529
|
});
|
|
527
530
|
}
|
|
528
|
-
function In(e, t, n, r,
|
|
529
|
-
return Fn(e).map((e,
|
|
530
|
-
let c = e.sourceColor || s(e.color) || s(t) || _n.value[
|
|
531
|
+
function In(e, t, n, r, a) {
|
|
532
|
+
return Fn(e).map((e, o) => {
|
|
533
|
+
let c = e.sourceColor || s(e.color) || s(t) || _n.value[o] || i[o] || i[o % i.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, r), u = Mn(e, r), d = a ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
531
534
|
return {
|
|
532
535
|
...e,
|
|
533
536
|
color: l,
|
|
@@ -580,10 +583,10 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
580
583
|
let Vn = m(() => {
|
|
581
584
|
let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
582
585
|
return Bn(e.map((e, n) => {
|
|
583
|
-
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children:
|
|
586
|
+
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...o } = e, c = e.sourceColor || s(e.color) || xn.value.get(e.id) || _n.value[n] || i[n] || i[n % i.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
|
|
584
587
|
return {
|
|
585
|
-
...
|
|
586
|
-
id: e.id ||
|
|
588
|
+
...o,
|
|
589
|
+
id: e.id || ne(),
|
|
587
590
|
parentId: e.parentId ?? null,
|
|
588
591
|
name: e.name,
|
|
589
592
|
value: e.value,
|
|
@@ -632,7 +635,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
632
635
|
};
|
|
633
636
|
}
|
|
634
637
|
function Kn(e, t) {
|
|
635
|
-
return
|
|
638
|
+
return f(I.value.style.chart.layout.labels.formatter, e.value, l({
|
|
636
639
|
p: I.value.style.chart.layout.labels.prefix,
|
|
637
640
|
v: e.value,
|
|
638
641
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -764,7 +767,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
764
767
|
return e;
|
|
765
768
|
}), Z = T(null), or = m(() => H.value.map((e, t) => ({
|
|
766
769
|
...e,
|
|
767
|
-
color: s(e.color) || _n.value[t] ||
|
|
770
|
+
color: s(e.color) || _n.value[t] || i[t] || i[t % i.length],
|
|
768
771
|
shape: "square"
|
|
769
772
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
770
773
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -774,7 +777,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
774
777
|
isSegregated: M.value.includes(e.id),
|
|
775
778
|
segregate: () => ur(e),
|
|
776
779
|
opacity: M.value.includes(e.id) ? .5 : 1,
|
|
777
|
-
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ?
|
|
780
|
+
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? f(I.value.style.chart.layout.labels.formatter, e.value, l({
|
|
778
781
|
p: I.value.style.chart.layout.labels.prefix,
|
|
779
782
|
v: e.value,
|
|
780
783
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -827,7 +830,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
827
830
|
series: kn.value
|
|
828
831
|
};
|
|
829
832
|
let r = I.value.style.chart.tooltip.customFormat;
|
|
830
|
-
if (
|
|
833
|
+
if (c(r) && ee(() => r({
|
|
831
834
|
seriesIndex: t,
|
|
832
835
|
datapoint: e,
|
|
833
836
|
series: kn.value,
|
|
@@ -840,7 +843,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
840
843
|
});
|
|
841
844
|
else {
|
|
842
845
|
let n = "";
|
|
843
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${
|
|
846
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${f(I.value.style.chart.layout.labels.formatter, e.value, l({
|
|
844
847
|
p: I.value.style.chart.layout.labels.prefix,
|
|
845
848
|
v: e.value,
|
|
846
849
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -861,7 +864,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
861
864
|
}));
|
|
862
865
|
function _r(e = null) {
|
|
863
866
|
Ie(() => {
|
|
864
|
-
let
|
|
867
|
+
let n = Q.value.head.map((e, t) => [
|
|
865
868
|
[e.name],
|
|
866
869
|
[Q.value.body[t]],
|
|
867
870
|
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
@@ -873,7 +876,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
873
876
|
["val"],
|
|
874
877
|
["%"]
|
|
875
878
|
]
|
|
876
|
-
].concat(
|
|
879
|
+
].concat(n), a = r(i);
|
|
877
880
|
e ? e(a) : t({
|
|
878
881
|
csvContent: a,
|
|
879
882
|
title: I.value.style.chart.title.text || "vue-ui-treemap"
|
|
@@ -886,7 +889,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
886
889
|
I.value.table.columnNames.value,
|
|
887
890
|
I.value.table.columnNames.percentage
|
|
888
891
|
], t = Q.value.head.map((e, t) => {
|
|
889
|
-
let n =
|
|
892
|
+
let n = f(I.value.style.chart.layout.labels.formatter, Q.value.body[t], l({
|
|
890
893
|
p: I.value.style.chart.layout.labels.prefix,
|
|
891
894
|
v: Q.value.body[t],
|
|
892
895
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -899,7 +902,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
899
902
|
shape: "square"
|
|
900
903
|
},
|
|
901
904
|
n,
|
|
902
|
-
isNaN(Q.value.body[t] / An.value) ? "-" :
|
|
905
|
+
isNaN(Q.value.body[t] / An.value) ? "-" : l({
|
|
903
906
|
v: Q.value.body[t] / An.value * 100,
|
|
904
907
|
s: "%",
|
|
905
908
|
r: I.value.table.td.roundingPercentage
|
|
@@ -1064,7 +1067,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1064
1067
|
};
|
|
1065
1068
|
}
|
|
1066
1069
|
function ti(e) {
|
|
1067
|
-
return
|
|
1070
|
+
return re(e.color ?? I.value.style.chart.backgroundColor);
|
|
1068
1071
|
}
|
|
1069
1072
|
function ni({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1070
1073
|
if (n === 0) return Infinity;
|
|
@@ -1431,7 +1434,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1431
1434
|
(S(), _("svg", {
|
|
1432
1435
|
ref_key: "svgRef",
|
|
1433
1436
|
ref: z,
|
|
1434
|
-
xmlns: E(
|
|
1437
|
+
xmlns: E(ie),
|
|
1435
1438
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1436
1439
|
class: Le({
|
|
1437
1440
|
"vue-data-ui-fullscreen--on": j.value,
|
|
@@ -1464,7 +1467,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1464
1467
|
1
|
|
1465
1468
|
], [
|
|
1466
1469
|
"100%",
|
|
1467
|
-
E(
|
|
1470
|
+
E(n)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1468
1471
|
1
|
|
1469
1472
|
]]
|
|
1470
1473
|
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
@@ -1542,7 +1545,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1542
1545
|
shouldShow: zn(t) || $n.value,
|
|
1543
1546
|
fontSize: Xn(t, n),
|
|
1544
1547
|
isZoom: $n.value,
|
|
1545
|
-
textColor: E(
|
|
1548
|
+
textColor: E(re)(t.color)
|
|
1546
1549
|
}), void 0, !0, 0)])], 8, Et))]))), 128))])) : g("", !0)
|
|
1547
1550
|
]),
|
|
1548
1551
|
w(e.$slots, "svg", b(y({
|
|
@@ -1638,7 +1641,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1638
1641
|
parent: N.value,
|
|
1639
1642
|
content: zt.value,
|
|
1640
1643
|
isFullscreen: j.value,
|
|
1641
|
-
isCustom: E(
|
|
1644
|
+
isCustom: E(c)(I.value.style.chart.tooltip.customFormat),
|
|
1642
1645
|
smooth: I.value.style.chart.tooltip.smooth,
|
|
1643
1646
|
backdropFilter: I.value.style.chart.tooltip.backdropFilter,
|
|
1644
1647
|
smoothForce: I.value.style.chart.tooltip.smoothForce,
|
|
@@ -1690,13 +1693,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1690
1693
|
isCursorPointer: L.value,
|
|
1691
1694
|
onClose: Gr
|
|
1692
1695
|
}, {
|
|
1693
|
-
th: O(({ th: e }) => [v("div",
|
|
1694
|
-
innerHTML: e,
|
|
1695
|
-
style: {
|
|
1696
|
-
display: "flex",
|
|
1697
|
-
"align-items": "center"
|
|
1698
|
-
}
|
|
1699
|
-
}, null, 8, Nt)]),
|
|
1696
|
+
th: O(({ th: e }) => [v("div", Nt, He(e), 1)]),
|
|
1700
1697
|
td: O(({ td: e }) => [Me(He(e.name || e), 1)]),
|
|
1701
1698
|
_: 1
|
|
1702
1699
|
}, 8, [
|
|
@@ -1729,6 +1726,6 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1729
1726
|
w(e.$slots, "skeleton", {}, () => [E(R) ? (S(), h(de, { key: 0 })) : g("", !0)], !0)
|
|
1730
1727
|
], 46, st));
|
|
1731
1728
|
}
|
|
1732
|
-
}, [["__scopeId", "data-v-
|
|
1729
|
+
}, [["__scopeId", "data-v-57de0e24"]]);
|
|
1733
1730
|
//#endregion
|
|
1734
1731
|
export { ot as n, Ft as t };
|