vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n,
|
|
2
|
+
import { $ as t, D as n, Pt as r, m as i, nt as a, q as o, r as ee, xt as te } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as ne, t as re } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ie } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as ae } from "./usePrinter-
|
|
6
|
-
import { t as s } from "./useNestedProp-
|
|
5
|
+
import { t as ae } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { t as s } from "./useNestedProp-Chvyfpl-.js";
|
|
7
7
|
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as se } from "./Shape-
|
|
8
|
+
import { t as se } from "./Shape-CIqU-p2F.js";
|
|
9
9
|
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
10
|
import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
11
11
|
import { t as le } from "./vue_ui_table_heatmap-w8vx5k6f.js";
|
|
@@ -56,7 +56,7 @@ var E = /* @__PURE__ */ e({ default: () => N }), ve = ["id"], ye = { role: "cell
|
|
|
56
56
|
v1ad1563c: Ae.value,
|
|
57
57
|
v63a351d2: ke.value
|
|
58
58
|
}));
|
|
59
|
-
let E = pe(() => import("./UserOptions-
|
|
59
|
+
let E = pe(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), { vue_ui_table_heatmap: N } = ie(), { isThemeValid: Se, warnInvalidTheme: P } = oe(), F = e, I = x(o()), L = x(!1), R = x(null), z = x(!1), B = x(0), Ce = ge(), V = u({
|
|
60
60
|
get: () => K(),
|
|
61
61
|
set: (e) => e
|
|
62
62
|
}), H = u(() => V.value.debug);
|
|
@@ -115,7 +115,7 @@ var E = /* @__PURE__ */ e({ default: () => N }), ve = ["id"], ye = { role: "cell
|
|
|
115
115
|
Y();
|
|
116
116
|
});
|
|
117
117
|
function Y() {
|
|
118
|
-
r(F.dataset) &&
|
|
118
|
+
r(F.dataset) && a({
|
|
119
119
|
componentName: "VueUiTableHeatmap",
|
|
120
120
|
type: "dataset",
|
|
121
121
|
debug: H.value
|
|
@@ -138,7 +138,7 @@ var E = /* @__PURE__ */ e({ default: () => N }), ve = ["id"], ye = { role: "cell
|
|
|
138
138
|
},
|
|
139
139
|
sum: n,
|
|
140
140
|
average: n / t.length,
|
|
141
|
-
median:
|
|
141
|
+
median: i(t),
|
|
142
142
|
displayValues: [e.name, ...e.values],
|
|
143
143
|
id: o()
|
|
144
144
|
};
|
|
@@ -151,7 +151,7 @@ var E = /* @__PURE__ */ e({ default: () => N }), ve = ["id"], ye = { role: "cell
|
|
|
151
151
|
});
|
|
152
152
|
function Oe(e, t) {
|
|
153
153
|
let n = V.value.style.heatmapColors.useIndividualScale;
|
|
154
|
-
return
|
|
154
|
+
return te(V.value.style.heatmapColors.min, V.value.style.heatmapColors.max, n ? t.min : Z.value.min, n ? t.max : Z.value.max, e);
|
|
155
155
|
}
|
|
156
156
|
let Q = u(() => X.value.map((e) => ({
|
|
157
157
|
...e,
|
|
@@ -336,7 +336,7 @@ var E = /* @__PURE__ */ e({ default: () => N }), ve = ["id"], ye = { role: "cell
|
|
|
336
336
|
type: typeof r,
|
|
337
337
|
isResponsive: L.value,
|
|
338
338
|
color: t.colors[i],
|
|
339
|
-
textColor: w(
|
|
339
|
+
textColor: w(ee)(t.colors[i])
|
|
340
340
|
}), void 0, !0, 1) : d("", !0)], 64))], 8, xe))), 256)),
|
|
341
341
|
V.value.table.showSum ? (b(), f("td", k, [C(e.$slots, "sum", h({ ref_for: !0 }, {
|
|
342
342
|
value: t.sum,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n,
|
|
2
|
+
import { $ as t, D as n, Lt as r, Pt as i, S as a, X as o, Yt as ee, ht as te, i as ne, m as re, nt as ie, q as ae, w as oe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as le } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as ue } from "./usePrinter-
|
|
6
|
-
import { t as s } from "./useNestedProp-
|
|
5
|
+
import { t as ue } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { t as s } from "./useNestedProp-Chvyfpl-.js";
|
|
7
7
|
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
8
|
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
|
|
@@ -51,7 +51,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
51
51
|
emits: ["copyAlt"],
|
|
52
52
|
setup(e, { expose: fe, emit: Ee }) {
|
|
53
53
|
Se((e) => ({ v4821b9e9: e.tdo }));
|
|
54
|
-
let T = m(() => import("./vue-ui-sparkline-
|
|
54
|
+
let T = m(() => import("./vue-ui-sparkline-Dv7XrEzO.js").then((e) => e.n)), E = m(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Be = m(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), { vue_ui_table_sparkline: Ve } = le(), { isThemeValid: He, warnInvalidTheme: Ue } = de(), D = e, We = Ee, O = y(ae()), Ge = y(0), k = y(0), A = y(null), Ke = Ce(), qe = y(!1), j = l({
|
|
55
55
|
get: () => Ze(),
|
|
56
56
|
set: (e) => e
|
|
57
57
|
});
|
|
@@ -92,13 +92,13 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
92
92
|
let n = s({
|
|
93
93
|
userConfig: he[t] || D.config,
|
|
94
94
|
defaultConfig: e
|
|
95
|
-
}),
|
|
95
|
+
}), i = s({
|
|
96
96
|
userConfig: D.config,
|
|
97
97
|
defaultConfig: n
|
|
98
98
|
});
|
|
99
99
|
return {
|
|
100
|
-
...
|
|
101
|
-
customPalette:
|
|
100
|
+
...i,
|
|
101
|
+
customPalette: i.customPalette.length ? i.customPalette : ee[t] || r
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
we(() => D.config, (e) => {
|
|
@@ -116,7 +116,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
116
116
|
});
|
|
117
117
|
let F = y(j.value.colNames), I = xe(null);
|
|
118
118
|
function it() {
|
|
119
|
-
|
|
119
|
+
i(D.dataset) && ie({
|
|
120
120
|
componentName: "VueUiTableSparkline",
|
|
121
121
|
type: "dataset"
|
|
122
122
|
}), I.value && I.value.disconnect(), I.value = new ResizeObserver((e) => {
|
|
@@ -146,7 +146,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
146
146
|
}
|
|
147
147
|
function B(e, t, n = {}) {
|
|
148
148
|
let r = L(e);
|
|
149
|
-
return r === null ? "-" :
|
|
149
|
+
return r === null ? "-" : ne(j.value.formatter, r, o({
|
|
150
150
|
p: j.value.prefix,
|
|
151
151
|
v: r,
|
|
152
152
|
s: j.value.suffix,
|
|
@@ -154,7 +154,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
154
154
|
}), n);
|
|
155
155
|
}
|
|
156
156
|
let V = l(() => (D.dataset.forEach((e, t) => {
|
|
157
|
-
|
|
157
|
+
te({
|
|
158
158
|
datasetObject: e,
|
|
159
159
|
requiredAttributes: ["name", "values"]
|
|
160
160
|
}).forEach((e) => {
|
|
@@ -166,12 +166,12 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = { style: {
|
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
}), D.dataset.map((e, t) => {
|
|
169
|
-
let n = e.values || [], i = at(n),
|
|
169
|
+
let n = e.values || [], i = at(n), o = i.length ? i.reduce((e, t) => e + t, 0) : null, ee = i.length ? o / i.length : null, te = i.length ? re(i) : null;
|
|
170
170
|
return {
|
|
171
171
|
...e,
|
|
172
172
|
values: n,
|
|
173
|
-
color:
|
|
174
|
-
sum:
|
|
173
|
+
color: a(e.color) || nt.value[t] || r[t] || r[t % r.length],
|
|
174
|
+
sum: o,
|
|
175
175
|
average: ee,
|
|
176
176
|
median: te,
|
|
177
177
|
sparklineDataset: n.map((e, t) => ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Lt as t, Pt as n, S as r, Ut as i, X as a, Yt as ee, Zt as o, b as s, ht as te, i as ne, nt as re, q as ie, t as ae, w as oe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as le } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as ue } from "./usePrinter-
|
|
5
|
+
import { t as ue } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as c } from "./useNestedProp-
|
|
7
|
+
import { t as c } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as he } from "./img-
|
|
11
|
-
import { n as ge } from "./Title-
|
|
10
|
+
import { t as he } from "./img-DhGApYG0.js";
|
|
11
|
+
import { n as ge } from "./Title-CPHi-evi.js";
|
|
12
12
|
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as be } from "./DefGrad-DVBqDjhO.js";
|
|
@@ -144,7 +144,7 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
144
144
|
v52f10497: At.value,
|
|
145
145
|
v6954d344: kt.value
|
|
146
146
|
}));
|
|
147
|
-
let T = h(() => import("./PackageVersion-
|
|
147
|
+
let T = h(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), at = h(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), ot = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), { vue_ui_thermometer: st } = le(), { isThemeValid: ct, warnInvalidTheme: lt } = pe(), ut = Ce(), E = e, dt = Pe, D = b(ie()), O = b(null), ft = b(0), pt = b(0), mt = b(null), ht = b(null), k = b(null), A = b(null), gt = u(() => !!E.dataset && Object.keys(E.dataset).length);
|
|
148
148
|
ke(() => {
|
|
149
149
|
xt();
|
|
150
150
|
});
|
|
@@ -185,11 +185,11 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
185
185
|
})
|
|
186
186
|
}), bt = u(() => j.value.debug);
|
|
187
187
|
function xt() {
|
|
188
|
-
if (
|
|
188
|
+
if (n(E.dataset) ? re({
|
|
189
189
|
componentName: "VueUiThermometer",
|
|
190
190
|
type: "dataset",
|
|
191
191
|
debug: bt.value
|
|
192
|
-
}) :
|
|
192
|
+
}) : te({
|
|
193
193
|
datasetObject: E.dataset,
|
|
194
194
|
requiredAttributes: [
|
|
195
195
|
"value",
|
|
@@ -223,19 +223,19 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
223
223
|
let e = c({
|
|
224
224
|
userConfig: E.config,
|
|
225
225
|
defaultConfig: st
|
|
226
|
-
}),
|
|
227
|
-
if (!
|
|
226
|
+
}), n = e.theme;
|
|
227
|
+
if (!n) return e;
|
|
228
228
|
if (!ct.value(e)) return lt(e), e;
|
|
229
|
-
let
|
|
230
|
-
userConfig: Te[
|
|
229
|
+
let r = c({
|
|
230
|
+
userConfig: Te[n] || E.config,
|
|
231
231
|
defaultConfig: e
|
|
232
|
-
}),
|
|
232
|
+
}), i = c({
|
|
233
233
|
userConfig: E.config,
|
|
234
|
-
defaultConfig:
|
|
234
|
+
defaultConfig: r
|
|
235
235
|
});
|
|
236
236
|
return {
|
|
237
|
-
...
|
|
238
|
-
customPalette:
|
|
237
|
+
...i,
|
|
238
|
+
customPalette: i.customPalette.length ? i.customPalette : ee[n] || t
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
Ne(() => E.config, (e) => {
|
|
@@ -285,10 +285,10 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
285
285
|
return n = s(F.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(s(F.value.from)) + s(F.value.value)) / n) * K.value.thermoHeight;
|
|
286
286
|
}), kt = u(() => `${q.value}px`), At = u(() => `${K.value.thermoHeight}px`), jt = u(() => ut.value ? "0ms" : `${j.value.style.chart.animation.speedMs}ms`), Mt = u(() => {
|
|
287
287
|
if (F.value.colors) {
|
|
288
|
-
if (!F.value.colors.from) return U(V.value[0] ||
|
|
289
|
-
if (!F.value.colors.to) return U(
|
|
290
|
-
} else return U(V.value[1] ||
|
|
291
|
-
return U(
|
|
288
|
+
if (!F.value.colors.from) return U(V.value[0] || t[0], r(F.value.colors.to), H.value || 10);
|
|
289
|
+
if (!F.value.colors.to) return U(r(F.value.colors.from), V.value[1] || t[1], H.value || 10);
|
|
290
|
+
} else return U(V.value[1] || t[1], V.value[0] || t[0], H.value || 10);
|
|
291
|
+
return U(r(F.value.colors.from), r(F.value.colors.to), H.value || 10);
|
|
292
292
|
}), Nt = u(() => {
|
|
293
293
|
let e = [], t = 0, n = K.value.thermoHeight;
|
|
294
294
|
for (let r = 0; r < n - 1; r += n / H.value) e.push({
|
|
@@ -357,7 +357,7 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
357
357
|
dataset: F.value
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
|
-
let Ut = u(() => `${D.value}-title`), Wt = u(() => `${D.value}-desc`), $ = u(() =>
|
|
360
|
+
let Ut = u(() => `${D.value}-title`), Wt = u(() => `${D.value}-desc`), $ = u(() => ne(j.value.style.chart.label.formatter, F.value.value, a({
|
|
361
361
|
p: j.value.style.chart.label.prefix,
|
|
362
362
|
v: F.value.value,
|
|
363
363
|
s: j.value.style.chart.label.suffix,
|
|
@@ -375,14 +375,14 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
375
375
|
toggleAnnotator: X,
|
|
376
376
|
toggleFullscreen: Pt,
|
|
377
377
|
copyAlt: Ht
|
|
378
|
-
}), (e,
|
|
378
|
+
}), (e, t) => (y(), p("div", {
|
|
379
379
|
ref_key: "thermoChart",
|
|
380
380
|
ref: O,
|
|
381
381
|
class: _(`vue-data-ui-component vue-ui-thermometer ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
382
382
|
style: Oe(`width:100%;background:${j.value.style.chart.backgroundColor};color:${j.value.style.chart.color};font-family:${j.value.style.fontFamily}`),
|
|
383
383
|
id: `thermometer__${D.value}`,
|
|
384
|
-
onMouseenter:
|
|
385
|
-
onMouseleave:
|
|
384
|
+
onMouseenter: t[0] ||= () => C(St)(!0),
|
|
385
|
+
onMouseleave: t[1] ||= () => C(St)(!1)
|
|
386
386
|
}, [
|
|
387
387
|
j.value.userOptions.buttons.annotator ? (y(), d(C(at), {
|
|
388
388
|
key: 0,
|
|
@@ -571,10 +571,10 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
571
571
|
height: K.value.thermoHeight,
|
|
572
572
|
rx: K.value.thermoWidth / 2,
|
|
573
573
|
ry: K.value.thermoWidth / 2
|
|
574
|
-
}, null, 8, He)], 8, Ve), (y(!0), p(l, null, Ae(Nt.value, (e,
|
|
574
|
+
}, null, 8, He)], 8, Ve), (y(!0), p(l, null, Ae(Nt.value, (e, t) => (y(), d(be, {
|
|
575
575
|
t: "linear",
|
|
576
|
-
id: `vueUiThermometerGradient_${
|
|
577
|
-
key: `t_${
|
|
576
|
+
id: `vueUiThermometerGradient_${t}_${D.value}`,
|
|
577
|
+
key: `t_${t}_${D.value}`,
|
|
578
578
|
x1: "0%",
|
|
579
579
|
y1: "0%",
|
|
580
580
|
x2: "100%",
|
|
@@ -587,7 +587,7 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
587
587
|
],
|
|
588
588
|
[
|
|
589
589
|
"50%",
|
|
590
|
-
C(
|
|
590
|
+
C(i)(e.color, 100 - j.value.style.chart.graduations.gradient.intensity),
|
|
591
591
|
1
|
|
592
592
|
],
|
|
593
593
|
[
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Xt as t, q as n, t as r } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as o } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as s } from "./useNestedProp-
|
|
6
|
-
import { n as c } from "./Title-
|
|
5
|
+
import { t as s } from "./useNestedProp-Chvyfpl-.js";
|
|
6
|
+
import { n as c } from "./Title-CPHi-evi.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-t83PDe9k.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,7 +103,7 @@ 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-5SWftabm.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
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Pt as t, Wt as n, X as r, Zt as i, b as a, i as o, nt as s, q as c, t as l } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ne } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as re } from "./usePrinter-
|
|
5
|
+
import { t as re } from "./usePrinter-DISD7q5m.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-Chvyfpl-.js";
|
|
8
8
|
import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as se } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as ce } from "./img-
|
|
11
|
-
import { n as le } from "./Title-
|
|
10
|
+
import { t as ce } from "./img-DhGApYG0.js";
|
|
11
|
+
import { n as le } from "./Title-CPHi-evi.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,7 +65,7 @@ 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-B_SdRSKH.js").then((e) => e.t)), ze = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Be = h(() => import("./PackageVersion-5SWftabm.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,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, Pt as a, S as o, X as s, Yt as c, Z as l, Zt as u, i as d, jt as f, lt as ee, nt as te, q as ne, r as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ce } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
5
|
+
import { t as le } from "./usePrinter-DISD7q5m.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-Chvyfpl-.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-iwOqiIWX.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-DhGApYG0.js";
|
|
12
|
+
import { n as _e } from "./Title-CPHi-evi.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-t83PDe9k.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-__JnV08B.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-X4kF4PvW.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";
|
|
@@ -262,7 +262,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
262
262
|
],
|
|
263
263
|
setup(e, { expose: ve, emit: Je }) {
|
|
264
264
|
We((e) => ({ v16bf5434: vi.value }));
|
|
265
|
-
let Ye = Pe(() => import("./DataTable-
|
|
265
|
+
let Ye = Pe(() => import("./DataTable-COIO9gi4.js")), Xe = Pe(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Ze = Pe(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), $e = Pe(() => import("./Tooltip-hhrkQ3Lk.js")), et = Pe(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), tt = Pe(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), nt = Pe(() => import("./BaseDraggableDialog-BM_R41j8.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({
|
|
266
266
|
x: 0,
|
|
267
267
|
y: 0
|
|
268
268
|
}), tn = C("pointer"), nn = C(!1), I = C(dn());
|
|
@@ -366,7 +366,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
366
366
|
});
|
|
367
367
|
return {
|
|
368
368
|
...r,
|
|
369
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
369
|
+
customPalette: r.customPalette.length ? r.customPalette : c[t] || i
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
D(() => k.config, (e) => {
|
|
@@ -414,7 +414,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
414
414
|
vbHeight: n - r,
|
|
415
415
|
offsetY: r
|
|
416
416
|
};
|
|
417
|
-
}), H = C(
|
|
417
|
+
}), H = C(l(on.value)), U = C(H.value), xn = T(/* @__PURE__ */ new Map());
|
|
418
418
|
D([H, () => I.value], () => {
|
|
419
419
|
Qt.value = null, $t.value = /* @__PURE__ */ new Map();
|
|
420
420
|
}, { deep: !0 }), D(() => M.value, () => {
|
|
@@ -424,14 +424,14 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
424
424
|
});
|
|
425
425
|
function Sn(e) {
|
|
426
426
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
427
|
-
e.id ||= ne(), e.sourceColor === void 0 && (e.sourceColor =
|
|
427
|
+
e.id ||= ne(), e.sourceColor === void 0 && (e.sourceColor = o(e.color) || null);
|
|
428
428
|
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || i[t] || i[t % i.length];
|
|
429
|
-
n =
|
|
429
|
+
n = o(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
function Cn(e, t) {
|
|
433
433
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
434
|
-
n.id ||= ne(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor =
|
|
434
|
+
n.id ||= ne(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = o(n.color) || null);
|
|
435
435
|
let r = n.sourceColor || t;
|
|
436
436
|
n.color = r, Cn(n, r);
|
|
437
437
|
});
|
|
@@ -460,7 +460,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
460
460
|
U.value = [n];
|
|
461
461
|
}
|
|
462
462
|
D(() => on.value, () => {
|
|
463
|
-
H.value =
|
|
463
|
+
H.value = l(on.value), Sn(H.value), Tn(), qt.value += 1, Kt.value += 1;
|
|
464
464
|
}, {
|
|
465
465
|
deep: !0,
|
|
466
466
|
immediate: !0,
|
|
@@ -475,11 +475,11 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
475
475
|
Ft["chart-background"] && Dn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
476
476
|
});
|
|
477
477
|
function On() {
|
|
478
|
-
if (
|
|
478
|
+
if (a(k.dataset) && te({
|
|
479
479
|
componentName: "VueUiTreemap",
|
|
480
480
|
type: "dataset",
|
|
481
481
|
debug: Dn.value
|
|
482
|
-
}), Sn(H.value),
|
|
482
|
+
}), Sn(H.value), a(k.dataset) || (sn.value = I.value.loading), I.value.responsive) {
|
|
483
483
|
let e = ye(() => {
|
|
484
484
|
let { width: e, height: t } = be({
|
|
485
485
|
chart: N.value,
|
|
@@ -500,7 +500,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
500
500
|
});
|
|
501
501
|
let kn = m(() => U.value.map((e, t) => ({
|
|
502
502
|
...e,
|
|
503
|
-
color:
|
|
503
|
+
color: o(e.color) || _n.value[t] || i[t] || i[t % i.length]
|
|
504
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({
|
|
505
505
|
get() {
|
|
506
506
|
let e = [...kn.value];
|
|
@@ -513,9 +513,9 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
513
513
|
function Mn(e, t) {
|
|
514
514
|
return e.value / t;
|
|
515
515
|
}
|
|
516
|
-
function Nn(e, t,
|
|
517
|
-
let
|
|
518
|
-
return
|
|
516
|
+
function Nn(e, t, n) {
|
|
517
|
+
let r = I.value.style.chart.layout.rects.colorRatio - Mn(t, n);
|
|
518
|
+
return f(e, r < 0 ? 0 : r);
|
|
519
519
|
}
|
|
520
520
|
function Pn(e) {
|
|
521
521
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -529,8 +529,8 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
function In(e, t, n, r, a) {
|
|
532
|
-
return Fn(e).map((e,
|
|
533
|
-
let c = e.sourceColor ||
|
|
532
|
+
return Fn(e).map((e, s) => {
|
|
533
|
+
let c = e.sourceColor || o(e.color) || o(t) || _n.value[s] || i[s] || i[s % 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;
|
|
534
534
|
return {
|
|
535
535
|
...e,
|
|
536
536
|
color: l,
|
|
@@ -583,9 +583,9 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
583
583
|
let Vn = m(() => {
|
|
584
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;
|
|
585
585
|
return Bn(e.map((e, n) => {
|
|
586
|
-
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...
|
|
586
|
+
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: a, ...s } = e, c = e.sourceColor || o(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);
|
|
587
587
|
return {
|
|
588
|
-
...
|
|
588
|
+
...s,
|
|
589
589
|
id: e.id || ne(),
|
|
590
590
|
parentId: e.parentId ?? null,
|
|
591
591
|
name: e.name,
|
|
@@ -635,7 +635,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
function Kn(e, t) {
|
|
638
|
-
return
|
|
638
|
+
return d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
639
639
|
p: I.value.style.chart.layout.labels.prefix,
|
|
640
640
|
v: e.value,
|
|
641
641
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -767,7 +767,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
767
767
|
return e;
|
|
768
768
|
}), Z = T(null), or = m(() => H.value.map((e, t) => ({
|
|
769
769
|
...e,
|
|
770
|
-
color:
|
|
770
|
+
color: o(e.color) || _n.value[t] || i[t] || i[t % i.length],
|
|
771
771
|
shape: "square"
|
|
772
772
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
773
773
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -777,7 +777,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
777
777
|
isSegregated: M.value.includes(e.id),
|
|
778
778
|
segregate: () => ur(e),
|
|
779
779
|
opacity: M.value.includes(e.id) ? .5 : 1,
|
|
780
|
-
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 ? d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
781
781
|
p: I.value.style.chart.layout.labels.prefix,
|
|
782
782
|
v: e.value,
|
|
783
783
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -818,24 +818,24 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
let hr = C(null);
|
|
821
|
-
function gr({ datapoint: e, seriesIndex: t, triggerMode:
|
|
822
|
-
if (cr.value ||
|
|
821
|
+
function gr({ datapoint: e, seriesIndex: t, triggerMode: r = "pointer" }) {
|
|
822
|
+
if (cr.value || r === "pointer" && Er.value) return;
|
|
823
823
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
824
824
|
datapoint: e,
|
|
825
825
|
seriesIndex: t
|
|
826
|
-
}), F.value = t, tn.value =
|
|
826
|
+
}), F.value = t, tn.value = r, Z.value = e, hr.value = {
|
|
827
827
|
datapoint: e,
|
|
828
828
|
seriesIndex: t,
|
|
829
829
|
config: I.value,
|
|
830
830
|
series: kn.value
|
|
831
831
|
};
|
|
832
|
-
let
|
|
833
|
-
if (
|
|
832
|
+
let i = I.value.style.chart.tooltip.customFormat;
|
|
833
|
+
if (n(i) && ee(() => i({
|
|
834
834
|
seriesIndex: t,
|
|
835
835
|
datapoint: e,
|
|
836
836
|
series: kn.value,
|
|
837
837
|
config: I.value
|
|
838
|
-
}))) zt.value =
|
|
838
|
+
}))) zt.value = i({
|
|
839
839
|
seriesIndex: t,
|
|
840
840
|
datapoint: e,
|
|
841
841
|
series: kn.value,
|
|
@@ -843,7 +843,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
843
843
|
});
|
|
844
844
|
else {
|
|
845
845
|
let n = "";
|
|
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>${
|
|
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>${d(I.value.style.chart.layout.labels.formatter, e.value, s({
|
|
847
847
|
p: I.value.style.chart.layout.labels.prefix,
|
|
848
848
|
v: e.value,
|
|
849
849
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -889,7 +889,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
889
889
|
I.value.table.columnNames.value,
|
|
890
890
|
I.value.table.columnNames.percentage
|
|
891
891
|
], t = Q.value.head.map((e, t) => {
|
|
892
|
-
let n =
|
|
892
|
+
let n = d(I.value.style.chart.layout.labels.formatter, Q.value.body[t], s({
|
|
893
893
|
p: I.value.style.chart.layout.labels.prefix,
|
|
894
894
|
v: Q.value.body[t],
|
|
895
895
|
s: I.value.style.chart.layout.labels.suffix,
|
|
@@ -902,7 +902,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
902
902
|
shape: "square"
|
|
903
903
|
},
|
|
904
904
|
n,
|
|
905
|
-
isNaN(Q.value.body[t] / An.value) ? "-" :
|
|
905
|
+
isNaN(Q.value.body[t] / An.value) ? "-" : s({
|
|
906
906
|
v: Q.value.body[t] / An.value * 100,
|
|
907
907
|
s: "%",
|
|
908
908
|
r: I.value.table.td.roundingPercentage
|
|
@@ -1467,7 +1467,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1467
1467
|
1
|
|
1468
1468
|
], [
|
|
1469
1469
|
"100%",
|
|
1470
|
-
E(
|
|
1470
|
+
E(f)(e.color, I.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1471
1471
|
1
|
|
1472
1472
|
]]
|
|
1473
1473
|
}, null, 8, ["id", "stops"])])) : g("", !0)]))), 128)),
|
|
@@ -1641,7 +1641,7 @@ var ot = /* @__PURE__ */ e({ default: () => Ft }), st = ["id"], ct = ["id"], lt
|
|
|
1641
1641
|
parent: N.value,
|
|
1642
1642
|
content: zt.value,
|
|
1643
1643
|
isFullscreen: j.value,
|
|
1644
|
-
isCustom: E(
|
|
1644
|
+
isCustom: E(n)(I.value.style.chart.tooltip.customFormat),
|
|
1645
1645
|
smooth: I.value.style.chart.tooltip.smooth,
|
|
1646
1646
|
backdropFilter: I.value.style.chart.tooltip.backdropFilter,
|
|
1647
1647
|
smoothForce: I.value.style.chart.tooltip.smoothForce,
|