vue-data-ui 3.26.5 → 3.27.0
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-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.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-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.js} +10 -10
- 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 +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { X as t,
|
|
2
|
+
import { X as t, t as n, tn as r } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as o } from "./useConfig-
|
|
5
|
-
import { t as s } from "./useNestedProp-
|
|
6
|
-
import { n as c } from "./Title-
|
|
4
|
+
import { t as o } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as s } from "./useNestedProp-DR_8JPol.js";
|
|
6
|
+
import { n as c } from "./Title-BMCuINbv.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-Cx9FD751.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 oe, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as se, onMounted as ce, openBlock as y, ref as b, renderSlot as x, shallowRef as le, toDisplayString as ue, unref as S, watch as de } from "vue";
|
|
@@ -103,7 +103,7 @@ var fe = class {
|
|
|
103
103
|
"lap"
|
|
104
104
|
],
|
|
105
105
|
setup(e, { expose: l, emit: C }) {
|
|
106
|
-
let w = ae(() => import("./PackageVersion-
|
|
106
|
+
let w = ae(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), { vue_ui_timer: ke } = o(), T = e, E = C, D = b(null), O = b(null), k = b(null), A = le(null), j = le(null), M = b(t()), N = b(0);
|
|
107
107
|
ce(() => {
|
|
108
108
|
P();
|
|
109
109
|
});
|
|
@@ -116,19 +116,19 @@ var fe = class {
|
|
|
116
116
|
legend: k.value
|
|
117
117
|
});
|
|
118
118
|
requestAnimationFrame(() => {
|
|
119
|
-
B.value.width = e, B.value.height = t, F.value.responsiveProportionalSizing ? (B.value.tracker.core =
|
|
119
|
+
B.value.width = e, B.value.height = t, F.value.responsiveProportionalSizing ? (B.value.tracker.core = r({
|
|
120
120
|
relator: Math.min(e, t),
|
|
121
121
|
adjuster: F.value.style.width,
|
|
122
122
|
source: 6 * L.value.radiusRatio,
|
|
123
123
|
threshold: 1,
|
|
124
124
|
fallback: 1
|
|
125
|
-
}), B.value.tracker.aura =
|
|
125
|
+
}), B.value.tracker.aura = r({
|
|
126
126
|
relator: Math.min(e, t),
|
|
127
127
|
adjuster: F.value.style.width,
|
|
128
128
|
source: 12 * L.value.aura.radiusRatio,
|
|
129
129
|
threshold: 1,
|
|
130
130
|
fallback: 1
|
|
131
|
-
}), B.value.label =
|
|
131
|
+
}), B.value.label = r({
|
|
132
132
|
relator: Math.min(e, t),
|
|
133
133
|
adjuster: F.value.style.width,
|
|
134
134
|
source: I.value.label.fontSize,
|
|
@@ -263,7 +263,7 @@ var fe = class {
|
|
|
263
263
|
(y(), p("svg", {
|
|
264
264
|
ref_key: "svgRef",
|
|
265
265
|
ref: Ae,
|
|
266
|
-
xmlns: S(
|
|
266
|
+
xmlns: S(n),
|
|
267
267
|
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
268
268
|
style: v({
|
|
269
269
|
maxWidth: "100%",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, X as n, Yt as r, at as i, b as a, i as o, nn as s, t as c, zt as l } from "./lib-D4wK6ljP.js";
|
|
3
3
|
import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ne } from "./useConfig-
|
|
5
|
-
import { t as re } from "./usePrinter-
|
|
4
|
+
import { t as ne } from "./useConfig-D_6ZrPMD.js";
|
|
5
|
+
import { t as re } from "./usePrinter-DdW2GSm0.js";
|
|
6
6
|
import { n as ie, t as ae } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as u } from "./useNestedProp-
|
|
7
|
+
import { t as u } from "./useNestedProp-DR_8JPol.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-Bb5rHcpO.js";
|
|
11
|
+
import { n as le } from "./Title-BMCuINbv.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";
|
|
15
15
|
import { t as me } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
16
|
import { t as he } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
17
|
import { t as ge } from "./vue_ui_tiremarks-CdEPieWV.js";
|
|
18
|
-
import { Fragment as _e, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ve, createSlots as ye, createVNode as be, defineAsyncComponent as
|
|
18
|
+
import { Fragment as _e, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ve, createSlots as ye, createVNode as be, defineAsyncComponent as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as xe, onMounted as Se, openBlock as y, ref as b, renderList as Ce, renderSlot as x, toDisplayString as S, toRefs as we, unref as C, watch as Te, withCtx as w } from "vue";
|
|
19
19
|
//#region src/components/vue-ui-tiremarks.vue
|
|
20
20
|
var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
21
21
|
"xmlns",
|
|
@@ -65,14 +65,14 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
65
65
|
},
|
|
66
66
|
emits: ["copyAlt"],
|
|
67
67
|
setup(e, { expose: ue, emit: Ee }) {
|
|
68
|
-
let T =
|
|
68
|
+
let T = h(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Be = h(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Ve = h(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), { vue_ui_tiremarks: He } = ne(), { isThemeValid: Ue, warnInvalidTheme: We } = oe(), E = he(), D = e, Ge = Ee, Ke = d(() => !!D.dataset && Object.keys(D.dataset).length), O = b(n()), k = b(null), qe = b(null), Je = b(null), Ye = b(null), Xe = b(0), Ze = b(0), A = b(null), j = b(null), M = b(B()), N = d(() => M.value.userOptions), P = d(() => M.value.style.chart.layout), F = d(() => M.value.style.chart);
|
|
69
69
|
ee({
|
|
70
70
|
config: () => M.value,
|
|
71
71
|
dataset: () => D.dataset,
|
|
72
72
|
component: "VueUiTiremarks",
|
|
73
73
|
rules: [te.noHint]
|
|
74
74
|
});
|
|
75
|
-
let Qe = d(() => M.value.userOptions.useCursorPointer), $e = d(() =>
|
|
75
|
+
let Qe = d(() => M.value.userOptions.useCursorPointer), $e = d(() => s({
|
|
76
76
|
defaultConfig: {
|
|
77
77
|
userOptions: { show: !1 },
|
|
78
78
|
style: { chart: {
|
|
@@ -91,7 +91,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
91
91
|
FINAL_CONFIG: M,
|
|
92
92
|
prepareConfig: B,
|
|
93
93
|
skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
|
|
94
|
-
skeletonConfig:
|
|
94
|
+
skeletonConfig: s({
|
|
95
95
|
defaultConfig: M.value,
|
|
96
96
|
userConfig: $e.value
|
|
97
97
|
})
|
|
@@ -119,7 +119,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
119
119
|
elementId: O.value,
|
|
120
120
|
fileName: F.value.title.text || "vue-ui-tiremarks",
|
|
121
121
|
options: M.value.userOptions.print
|
|
122
|
-
}), it = d(() => M.value.userOptions.show && !F.value.title.text), U = b(F.value.animation.use && !E.value ? 0 :
|
|
122
|
+
}), it = d(() => M.value.userOptions.show && !F.value.title.text), U = b(F.value.animation.use && !E.value ? 0 : a(L.value.percentage));
|
|
123
123
|
Te(() => L.value, (e) => {
|
|
124
124
|
F.value.animation.use && !E.value ? at(e.percentage) : U.value = e.percentage || 0;
|
|
125
125
|
}, { deep: !0 }), Se(() => {
|
|
@@ -134,7 +134,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
134
134
|
}
|
|
135
135
|
let ot = d(() => M.value.debug);
|
|
136
136
|
function st() {
|
|
137
|
-
if (
|
|
137
|
+
if (l(D.dataset) && i({
|
|
138
138
|
componentName: "VueUiTiremarks",
|
|
139
139
|
type: "dataset",
|
|
140
140
|
debug: ot.value
|
|
@@ -192,26 +192,26 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
192
192
|
}), lt = d(() => {
|
|
193
193
|
let e = [];
|
|
194
194
|
for (let t = 0; t < 100; t += 1) {
|
|
195
|
-
let
|
|
195
|
+
let n = P.value.ticks.gradient.show ? r(P.value.activeColor, t / 100 * (P.value.ticks.gradient.shiftHueIntensity / 100)) : P.value.activeColor;
|
|
196
196
|
if (W.value) {
|
|
197
|
-
let
|
|
197
|
+
let r = P.value.crescendo ? (100 - t) * (Y.value.width - G.value.left - G.value.right) / 100 / 3 : 0, i = G.value.left + 4 + r, a = Y.value.width - G.value.right - 4 - r, o = Y.value.height - G.value.bottom - t * X.value.mark - t * X.value.space - X.value.mark, s = Y.value.height - G.value.bottom - t * X.value.mark - t * X.value.space - X.value.mark, c = (a - i) / P.value.curveAngleX, l = P.value.curveAngleY * ((1 + t) / 100);
|
|
198
198
|
e.push({
|
|
199
199
|
x1: i,
|
|
200
200
|
x2: a,
|
|
201
201
|
y1: o,
|
|
202
202
|
y2: s,
|
|
203
203
|
curve: `M ${i} ${o} C ${i + c} ${o - l}, ${a - c} ${s - l}, ${a} ${s}`,
|
|
204
|
-
color:
|
|
204
|
+
color: n
|
|
205
205
|
});
|
|
206
206
|
} else {
|
|
207
|
-
let
|
|
207
|
+
let r = P.value.crescendo ? (100 - t) * (Y.value.height - G.value.top - G.value.bottom) / 100 / 3 : 0, i = G.value.left + t * X.value.mark + t * X.value.space - X.value.mark, a = i, o = G.value.top + 4 + r, s = Y.value.height - G.value.bottom - 4 - r, c = P.value.curveAngleY * ((1 + t) / 100), l = (s - o) / P.value.curveAngleX;
|
|
208
208
|
e.push({
|
|
209
209
|
x1: i,
|
|
210
210
|
x2: a,
|
|
211
211
|
y1: o,
|
|
212
212
|
y2: s,
|
|
213
213
|
curve: `M ${i} ${o} C ${i + c} ${o + l}, ${a + c} ${s - l}, ${a} ${s}`,
|
|
214
|
-
color:
|
|
214
|
+
color: n
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -273,7 +273,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
273
273
|
dataset: L.value
|
|
274
274
|
}));
|
|
275
275
|
}
|
|
276
|
-
let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() =>
|
|
276
|
+
let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() => o(F.value.percentage.formatter, U.value, t({
|
|
277
277
|
v: U.value,
|
|
278
278
|
s: "%",
|
|
279
279
|
r: F.value.percentage.rounding
|
|
@@ -289,8 +289,8 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
289
289
|
}), (e, t) => (y(), m("div", {
|
|
290
290
|
ref_key: "tiremarksChart",
|
|
291
291
|
ref: k,
|
|
292
|
-
class:
|
|
293
|
-
style:
|
|
292
|
+
class: _(`vue-data-ui-component vue-ui-tiremarks ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
293
|
+
style: xe(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor}`),
|
|
294
294
|
id: O.value,
|
|
295
295
|
onMouseenter: t[0] ||= () => C(et)(!0),
|
|
296
296
|
onMouseleave: t[1] ||= () => C(et)(!1)
|
|
@@ -306,11 +306,11 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
306
306
|
onClose: dt
|
|
307
307
|
}, {
|
|
308
308
|
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
309
|
-
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color",
|
|
310
|
-
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw",
|
|
311
|
-
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo",
|
|
312
|
-
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo",
|
|
313
|
-
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete",
|
|
309
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
310
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
311
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
312
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
313
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
314
314
|
_: 3
|
|
315
315
|
}, 8, [
|
|
316
316
|
"svgRef",
|
|
@@ -374,11 +374,11 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
374
374
|
onGenerateSvg: C(_t),
|
|
375
375
|
onToggleAnnotator: dt,
|
|
376
376
|
onCopyAlt: yt,
|
|
377
|
-
style:
|
|
377
|
+
style: xe({ visibility: C(tt) ? C(R) ? "visible" : "hidden" : "visible" })
|
|
378
378
|
}, ye({ _: 2 }, [
|
|
379
379
|
e.$slots.menuIcon ? {
|
|
380
380
|
name: "menuIcon",
|
|
381
|
-
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon",
|
|
381
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", v(g({
|
|
382
382
|
isOpen: t,
|
|
383
383
|
color: n
|
|
384
384
|
})), void 0, !0)]),
|
|
@@ -401,7 +401,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
401
401
|
} : void 0,
|
|
402
402
|
e.$slots.optionFullscreen ? {
|
|
403
403
|
name: "optionFullscreen",
|
|
404
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen",
|
|
404
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", v(g({
|
|
405
405
|
toggleFullscreen: t,
|
|
406
406
|
isFullscreen: n
|
|
407
407
|
})), void 0, !0)]),
|
|
@@ -409,7 +409,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
409
409
|
} : void 0,
|
|
410
410
|
e.$slots.optionAnnotator ? {
|
|
411
411
|
name: "optionAnnotator",
|
|
412
|
-
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator",
|
|
412
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", v(g({
|
|
413
413
|
toggleAnnotator: t,
|
|
414
414
|
isAnnotator: n
|
|
415
415
|
})), void 0, !0)]),
|
|
@@ -417,7 +417,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
417
417
|
} : void 0,
|
|
418
418
|
e.$slots.optionAltCopy ? {
|
|
419
419
|
name: "optionAltCopy",
|
|
420
|
-
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy",
|
|
420
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
421
421
|
key: "6"
|
|
422
422
|
} : void 0,
|
|
423
423
|
e.$slots["custom-menu-before"] ? {
|
|
@@ -459,12 +459,12 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
459
459
|
ref_key: "svgRef",
|
|
460
460
|
ref: z,
|
|
461
461
|
xmlns: C(c),
|
|
462
|
-
class:
|
|
462
|
+
class: _({
|
|
463
463
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
464
464
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
465
465
|
}),
|
|
466
466
|
viewBox: `0 0 ${q.value} ${J.value}`,
|
|
467
|
-
style:
|
|
467
|
+
style: xe(`max-width:100%; overflow: visible; background:transparent;color:${F.value.color}`),
|
|
468
468
|
role: "img",
|
|
469
469
|
"aria-labelledby": bt.value,
|
|
470
470
|
"aria-describedby": xt.value
|
|
@@ -486,7 +486,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
486
486
|
stroke: U.value >= t ? e.color : P.value.inactiveColor,
|
|
487
487
|
"stroke-linecap": "round",
|
|
488
488
|
fill: "none",
|
|
489
|
-
class:
|
|
489
|
+
class: _({ "vue-ui-tick-animated": F.value.animation.use && !C(E) && t <= U.value })
|
|
490
490
|
}, null, 10, Ne))), 256))])) : (y(), m("g", Pe, [(y(!0), m(_e, null, Ce(lt.value, (e, t) => (y(), m("line", {
|
|
491
491
|
x1: e.x1,
|
|
492
492
|
y1: e.y1,
|
|
@@ -515,7 +515,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
515
515
|
x: Z.value.x,
|
|
516
516
|
y: Z.value.y,
|
|
517
517
|
"font-size": Z.value.fontSize,
|
|
518
|
-
fill: P.value.ticks.gradient.show && F.value.percentage.useGradientColor ? C(
|
|
518
|
+
fill: P.value.ticks.gradient.show && F.value.percentage.useGradientColor ? C(r)(P.value.activeColor, U.value / 100 * (P.value.ticks.gradient.shiftHueIntensity / 100)) : F.value.percentage.color,
|
|
519
519
|
"font-weight": Z.value.bold ? "bold" : "normal",
|
|
520
520
|
"text-anchor": Z.value.textAnchor
|
|
521
521
|
}, S(St.value), 9, Re))], 8, Ie)) : p("", !0),
|
|
@@ -525,7 +525,7 @@ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
|
|
|
525
525
|
isPrintingSvg: C(gt)
|
|
526
526
|
} }, void 0, !0)
|
|
527
527
|
], 14, Oe)),
|
|
528
|
-
e.$slots.watermark ? (y(), m("div", ze, [x(e.$slots, "watermark",
|
|
528
|
+
e.$slots.watermark ? (y(), m("div", ze, [x(e.$slots, "watermark", v(g({ isPrinting: C(V) || C(H) || C(ht) || C(gt) })), void 0, !0)])) : p("", !0),
|
|
529
529
|
e.$slots.source ? (y(), m("div", {
|
|
530
530
|
key: 5,
|
|
531
531
|
ref_key: "source",
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Dt as r, Ft as i, Ht as a, S as o, X as s, at as c, en as l, et as u, i as d, nn as f, nt as ee, pt as te, r as ne, t as re, w as ie, zt as ae } from "./lib-D4wK6ljP.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-D_6ZrPMD.js";
|
|
5
|
+
import { t as le } from "./usePrinter-DdW2GSm0.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-
|
|
7
|
+
import { t as fe } from "./useNestedProp-DR_8JPol.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-Bb5rHcpO.js";
|
|
12
|
+
import { n as _e } from "./Title-BMCuINbv.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-Cx9FD751.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-CP3sddwv.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-CulFgjUY.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 Ae, Teleport as je, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as Fe, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ze, onMounted as Be, openBlock as x, ref as S, renderList as Ve, renderSlot as C, resolveDynamicComponent as He, shallowRef as w, toDisplayString as Ue, toRefs as We, unref as T, useCssVars as Ge, useSlots as Ke, watch as qe, withCtx as E, withKeys as Je, withModifiers as Ye } from "vue";
|
|
@@ -262,7 +262,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
262
262
|
],
|
|
263
263
|
setup(e, { expose: ve, emit: Xe }) {
|
|
264
264
|
Ge((e) => ({ v798593f9: Ti.value }));
|
|
265
|
-
let Ze = Fe(() => import("./DataTable-
|
|
265
|
+
let Ze = Fe(() => import("./DataTable-CjF_An2h.js")), Qe = Fe(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), $e = Fe(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), tt = Fe(() => import("./Tooltip-C4ZTwkLF.js")), nt = Fe(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), rt = Fe(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), it = Fe(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_treemap: at } = ce(), { isThemeValid: ot, warnInvalidTheme: st } = pe(), D = e, ct = Xe, Lt = Ke(), Rt = p(() => !!D.dataset && D.dataset.length), zt = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), O = S(s()), Bt = S(!1), Vt = S(""), Ht = S(!1), Ut = S(0), k = S([]), A = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = S(0), Yt = S(0), Xt = S(0), j = S([]), Zt = S(null), Qt = S(!1), $t = S(null), en = S(null), tn = S(null), nn = S(/* @__PURE__ */ new Map()), M = S(null), rn = S({
|
|
266
266
|
x: 0,
|
|
267
267
|
y: 0
|
|
268
268
|
}), an = S("pointer"), on = S(!1), N = S(gn()), P = p(() => N.value.userOptions), F = p(() => N.value.style.chart.tooltip), I = p(() => N.value.style.chart.legend), L = p(() => N.value.style.chart.layout.labels), R = p(() => N.value.style.chart.layout), z = p(() => N.value.style.chart);
|
|
@@ -293,7 +293,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
293
293
|
let { transitionEnabled: sn } = he({
|
|
294
294
|
config: () => N.value.transitions,
|
|
295
295
|
dataset: () => D.dataset
|
|
296
|
-
}), B = p(() => N.value.userOptions.useCursorPointer), cn = p(() =>
|
|
296
|
+
}), B = p(() => N.value.userOptions.useCursorPointer), cn = p(() => f({
|
|
297
297
|
defaultConfig: {
|
|
298
298
|
userOptions: { show: !1 },
|
|
299
299
|
style: { chart: {
|
|
@@ -345,7 +345,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
345
345
|
}
|
|
346
346
|
]
|
|
347
347
|
}],
|
|
348
|
-
skeletonConfig:
|
|
348
|
+
skeletonConfig: f({
|
|
349
349
|
defaultConfig: N.value,
|
|
350
350
|
userConfig: cn.value
|
|
351
351
|
})
|
|
@@ -357,20 +357,20 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
357
357
|
}), t = e.theme;
|
|
358
358
|
if (!t) return e;
|
|
359
359
|
if (!ot.value(e)) return st(e), e;
|
|
360
|
-
let
|
|
360
|
+
let n = fe({
|
|
361
361
|
userConfig: ke[t] || D.config,
|
|
362
362
|
defaultConfig: e
|
|
363
|
-
}),
|
|
363
|
+
}), r = fe({
|
|
364
364
|
userConfig: D.config,
|
|
365
|
-
defaultConfig:
|
|
365
|
+
defaultConfig: n
|
|
366
366
|
});
|
|
367
367
|
return {
|
|
368
|
-
...
|
|
369
|
-
customPalette:
|
|
368
|
+
...r,
|
|
369
|
+
customPalette: r.customPalette.length ? r.customPalette : l[t] || a
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
function _n(e) {
|
|
373
|
-
let t =
|
|
373
|
+
let t = u(e);
|
|
374
374
|
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
375
375
|
}
|
|
376
376
|
let vn = _n(D.config);
|
|
@@ -388,7 +388,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
388
388
|
elementId: `treemap_${O.value}`,
|
|
389
389
|
fileName: z.value.title.text || "vue-ui-treemap",
|
|
390
390
|
options: N.value.userOptions.print
|
|
391
|
-
}), Cn = p(() => N.value.userOptions.show && !z.value.title.text), wn = p(() =>
|
|
391
|
+
}), Cn = p(() => N.value.userOptions.show && !z.value.title.text), wn = p(() => ie(N.value.customPalette)), V = S({
|
|
392
392
|
showTable: N.value.table.show,
|
|
393
393
|
showTooltip: F.value.show,
|
|
394
394
|
showZoom: z.value.zoom?.show ?? !1
|
|
@@ -426,7 +426,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
426
426
|
vbHeight: n - r,
|
|
427
427
|
offsetY: r
|
|
428
428
|
};
|
|
429
|
-
}), U = S(
|
|
429
|
+
}), U = S(u(un.value)), W = S(U.value), On = w(/* @__PURE__ */ new Map());
|
|
430
430
|
qe([U, () => N.value], () => {
|
|
431
431
|
tn.value = null, nn.value = /* @__PURE__ */ new Map();
|
|
432
432
|
}, { deep: !0 }), qe(() => k.value, () => {
|
|
@@ -436,14 +436,14 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
436
436
|
});
|
|
437
437
|
function kn(e) {
|
|
438
438
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
439
|
-
e.id ||=
|
|
440
|
-
let n = e.sourceColor || On.value.get(e.id) || wn.value[t] ||
|
|
441
|
-
n =
|
|
439
|
+
e.id ||= s(), e.sourceColor === void 0 && (e.sourceColor = o(e.color) || null);
|
|
440
|
+
let n = e.sourceColor || On.value.get(e.id) || wn.value[t] || a[t] || a[t % a.length];
|
|
441
|
+
n = o(n), On.value.set(e.id, n), e.color = n, An(e, n);
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
function An(e, t) {
|
|
445
445
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
446
|
-
n.id ||=
|
|
446
|
+
n.id ||= s(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = o(n.color) || null);
|
|
447
447
|
let r = n.sourceColor || t;
|
|
448
448
|
n.color = r, An(n, r);
|
|
449
449
|
});
|
|
@@ -472,7 +472,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
472
472
|
W.value = [n];
|
|
473
473
|
}
|
|
474
474
|
qe(() => un.value, () => {
|
|
475
|
-
U.value =
|
|
475
|
+
U.value = u(un.value), kn(U.value), Mn(), Xt.value += 1, Yt.value += 1;
|
|
476
476
|
}, {
|
|
477
477
|
deep: !0,
|
|
478
478
|
immediate: !0,
|
|
@@ -487,11 +487,11 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
487
487
|
Lt["chart-background"] && Fn.value && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
488
488
|
});
|
|
489
489
|
function In() {
|
|
490
|
-
if (
|
|
490
|
+
if (ae(D.dataset) && c({
|
|
491
491
|
componentName: "VueUiTreemap",
|
|
492
492
|
type: "dataset",
|
|
493
493
|
debug: Fn.value
|
|
494
|
-
}), kn(U.value),
|
|
494
|
+
}), kn(U.value), ae(D.dataset) || (dn.value = N.value.loading), N.value.responsive) {
|
|
495
495
|
let e = ye(() => {
|
|
496
496
|
let { width: e, height: t } = be({
|
|
497
497
|
chart: A.value,
|
|
@@ -512,7 +512,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
512
512
|
});
|
|
513
513
|
let Ln = p(() => W.value.map((e, t) => ({
|
|
514
514
|
...e,
|
|
515
|
-
color:
|
|
515
|
+
color: o(e.color) || wn.value[t] || a[t] || a[t % a.length]
|
|
516
516
|
})).filter((e) => !k.value.includes(e.id))), Rn = p(() => U.value.filter((e) => !k.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), zn = p({
|
|
517
517
|
get() {
|
|
518
518
|
let e = [...Ln.value];
|
|
@@ -527,7 +527,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
527
527
|
}
|
|
528
528
|
function Vn(e, t, n) {
|
|
529
529
|
let r = R.value.rects.colorRatio - Bn(t, n);
|
|
530
|
-
return
|
|
530
|
+
return i(e, r < 0 ? 0 : r);
|
|
531
531
|
}
|
|
532
532
|
function Hn(e) {
|
|
533
533
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
@@ -541,15 +541,15 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
function Wn(e, t, n, r, i) {
|
|
544
|
-
return Un(e).map((e,
|
|
545
|
-
let
|
|
544
|
+
return Un(e).map((e, s) => {
|
|
545
|
+
let c = e.sourceColor || o(e.color) || o(t) || wn.value[s] || a[s] || a[s % a.length], l = e.sourceColor ? e.sourceColor : Vn(c, e, r), u = Bn(e, r), d = i ?? e.parentId ?? e.id, f = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
546
546
|
return {
|
|
547
547
|
...e,
|
|
548
548
|
color: l,
|
|
549
549
|
proportion: u,
|
|
550
550
|
parentName: n,
|
|
551
551
|
rootId: d,
|
|
552
|
-
children: Array.isArray(e.children) && e.children.length ? Wn(e.children,
|
|
552
|
+
children: Array.isArray(e.children) && e.children.length ? Wn(e.children, c, e.name, f, d) : void 0
|
|
553
553
|
};
|
|
554
554
|
});
|
|
555
555
|
}
|
|
@@ -595,16 +595,16 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
595
595
|
let Yn = p(() => {
|
|
596
596
|
let e = W.value.length ? W.value : zn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
597
597
|
return Jn(e.map((e, n) => {
|
|
598
|
-
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...
|
|
598
|
+
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...c } = e, l = e.sourceColor || o(e.color) || On.value.get(e.id) || wn.value[n] || a[n] || a[n % a.length], u = e.sourceColor ? e.sourceColor : Vn(l, e, t);
|
|
599
599
|
return {
|
|
600
|
-
...
|
|
601
|
-
id: e.id ||
|
|
600
|
+
...c,
|
|
601
|
+
id: e.id || s(),
|
|
602
602
|
parentId: e.parentId ?? null,
|
|
603
603
|
name: e.name,
|
|
604
604
|
value: e.value,
|
|
605
605
|
color: u,
|
|
606
606
|
proportion: (Number(e.value) || 0) / t,
|
|
607
|
-
children: Array.isArray(e.children) && e.children.length ? Wn(e.children,
|
|
607
|
+
children: Array.isArray(e.children) && e.children.length ? Wn(e.children, l, e.name, r || 1) : void 0
|
|
608
608
|
};
|
|
609
609
|
}), {
|
|
610
610
|
x0: H.value.left,
|
|
@@ -647,7 +647,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
function er(e, n) {
|
|
650
|
-
return
|
|
650
|
+
return d(L.value.formatter, e.value, t({
|
|
651
651
|
p: L.value.prefix,
|
|
652
652
|
v: e.value,
|
|
653
653
|
s: L.value.suffix,
|
|
@@ -779,7 +779,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
779
779
|
return e;
|
|
780
780
|
}), Z = w(null), mr = p(() => U.value.map((e, t) => ({
|
|
781
781
|
...e,
|
|
782
|
-
color:
|
|
782
|
+
color: o(e.color) || wn.value[t] || a[t] || a[t % a.length],
|
|
783
783
|
shape: "square"
|
|
784
784
|
})).sort((e, t) => t.value - e.value).map((e, n) => {
|
|
785
785
|
let r = e.value / U.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -789,7 +789,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
789
789
|
isSegregated: k.value.includes(e.id),
|
|
790
790
|
segregate: () => vr(e),
|
|
791
791
|
opacity: k.value.includes(e.id) ? .5 : 1,
|
|
792
|
-
display: `${e.name}${I.value.showPercentage || I.value.showValue ? ": " : ""}${I.value.showValue ?
|
|
792
|
+
display: `${e.name}${I.value.showPercentage || I.value.showValue ? ": " : ""}${I.value.showValue ? d(L.value.formatter, e.value, t({
|
|
793
793
|
p: L.value.prefix,
|
|
794
794
|
v: e.value,
|
|
795
795
|
s: L.value.suffix,
|
|
@@ -830,19 +830,19 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
let Cr = S(null);
|
|
833
|
-
function wr({ datapoint: e, seriesIndex: n, triggerMode:
|
|
834
|
-
if (gr.value ||
|
|
833
|
+
function wr({ datapoint: e, seriesIndex: n, triggerMode: i = "pointer" }) {
|
|
834
|
+
if (gr.value || i === "pointer" && Pr.value) return;
|
|
835
835
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
836
836
|
datapoint: e,
|
|
837
837
|
seriesIndex: n
|
|
838
|
-
}), M.value = n, an.value =
|
|
838
|
+
}), M.value = n, an.value = i, Z.value = e, Cr.value = {
|
|
839
839
|
datapoint: e,
|
|
840
840
|
seriesIndex: n,
|
|
841
841
|
config: N.value,
|
|
842
842
|
series: Ln.value
|
|
843
843
|
};
|
|
844
844
|
let a = F.value.customFormat;
|
|
845
|
-
if (
|
|
845
|
+
if (r(a) && te(() => a({
|
|
846
846
|
seriesIndex: n,
|
|
847
847
|
datapoint: e,
|
|
848
848
|
series: Ln.value,
|
|
@@ -855,7 +855,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
855
855
|
});
|
|
856
856
|
else {
|
|
857
857
|
let r = "";
|
|
858
|
-
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<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>`, r += `<b>${
|
|
858
|
+
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<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>`, r += `<b>${d(L.value.formatter, e.value, t({
|
|
859
859
|
p: L.value.prefix,
|
|
860
860
|
v: e.value,
|
|
861
861
|
s: L.value.suffix,
|
|
@@ -880,7 +880,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
880
880
|
[e.name],
|
|
881
881
|
[Q.value.body[t]],
|
|
882
882
|
[isNaN(Q.value.body[t] / Rn.value) ? "-" : Q.value.body[t] / Rn.value * 100]
|
|
883
|
-
]),
|
|
883
|
+
]), r = [
|
|
884
884
|
[z.value.title.text],
|
|
885
885
|
[z.value.title.subtitle.text],
|
|
886
886
|
[
|
|
@@ -888,8 +888,8 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
888
888
|
["val"],
|
|
889
889
|
["%"]
|
|
890
890
|
]
|
|
891
|
-
].concat(t), i = r
|
|
892
|
-
e ? e(i) :
|
|
891
|
+
].concat(t), i = n(r);
|
|
892
|
+
e ? e(i) : ee({
|
|
893
893
|
csvContent: i,
|
|
894
894
|
title: z.value.title.text || "vue-ui-treemap"
|
|
895
895
|
});
|
|
@@ -901,7 +901,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
901
901
|
N.value.table.columnNames.value,
|
|
902
902
|
N.value.table.columnNames.percentage
|
|
903
903
|
], n = Q.value.head.map((e, n) => {
|
|
904
|
-
let r =
|
|
904
|
+
let r = d(L.value.formatter, Q.value.body[n], t({
|
|
905
905
|
p: L.value.prefix,
|
|
906
906
|
v: Q.value.body[n],
|
|
907
907
|
s: L.value.suffix,
|
|
@@ -1481,7 +1481,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1481
1481
|
1
|
|
1482
1482
|
], [
|
|
1483
1483
|
"100%",
|
|
1484
|
-
T(
|
|
1484
|
+
T(i)(e.color, R.value.rects.gradient.intensity / 100),
|
|
1485
1485
|
1
|
|
1486
1486
|
]]
|
|
1487
1487
|
}, null, 8, ["id", "stops"])])) : h("", !0)]))), 128)),
|
|
@@ -1655,7 +1655,7 @@ var ct = /* @__PURE__ */ e({ default: () => Lt }), lt = ["id"], ut = ["id"], dt
|
|
|
1655
1655
|
parent: A.value,
|
|
1656
1656
|
content: Vt.value,
|
|
1657
1657
|
isFullscreen: Ht.value,
|
|
1658
|
-
isCustom: T(
|
|
1658
|
+
isCustom: T(r)(F.value.customFormat),
|
|
1659
1659
|
smooth: F.value.smooth,
|
|
1660
1660
|
backdropFilter: F.value.backdropFilter,
|
|
1661
1661
|
smoothForce: F.value.smoothForce,
|