vue-data-ui 3.20.10 → 3.21.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-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-BbgWxFC4.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/SlicerPreview-CXLgqXX8.js +1676 -0
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/style.css +1 -1
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-CBjd88aV.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-S-FGGlPW.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-BaaswVai.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack--4oUO8hO.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-C7zZVebz.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-DsCnV6f0.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-CmTnG8CS.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-BQ0e9Czq.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-jBINqYMb.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-B9DsneCv.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-SAZjgllD.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-B41ZRCPC.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-PL2TAIV_.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-NkJ_KGMs.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-B9KX1kKs.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-Bo4x1-vC.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-DE71e1H_.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-DQhSwNYF.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-X9anqRDz.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-aN0OHwgH.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-CpKMBoX9.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-BwD7IGYx.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-68X0PTKo.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-cDPIzhPb.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-BD0JzrcV.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-DLXJpfGh.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-5pFFPu5l.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge--CihPbUW.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-CjrIcako.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-Dlg1W_fF.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-DltfPoDm.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CEE-cw3d.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-C7AvFChf.js → vue-ui-table-R-aXpHvF.js} +86 -86
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-DgTHhaZI.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-Cg7jcmgc.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-U045embk.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-T55IpHYP.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BPQ-Ekq4.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-DNCJGwEA.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-5GuVbUOq.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-Cs-MBJJU.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-D3v5f6dU.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-Ww81eEZ6.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +6 -2
- package/dist/SlicerPreview-CpvCUAIM.js +0 -1669
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-DmMi_eVe.js +0 -1757
- package/dist/vue-ui-age-pyramid-CbJDodNj.js +0 -1238
- package/dist/vue-ui-bullet-rCmOch09.js +0 -710
- package/dist/vue-ui-carousel-table-DFUP6c1B.js +0 -455
- package/dist/vue-ui-chestnut-DKNsQA7h.js +0 -2010
- package/dist/vue-ui-chord-BMkz02R6.js +0 -1391
- package/dist/vue-ui-donut-BLlR2VgI.js +0 -2410
- package/dist/vue-ui-donut-evolution-kXDchwtH.js +0 -1510
- package/dist/vue-ui-dumbbell-BWuXbccQ.js +0 -1530
- package/dist/vue-ui-gauge-NSzY9L6X.js +0 -920
- package/dist/vue-ui-horizontal-bar-mmoqYnkA.js +0 -1681
- package/dist/vue-ui-molecule-QoXYCfyP.js +0 -925
- package/dist/vue-ui-radar-TfxsgQrA.js +0 -1229
- package/dist/vue-ui-relation-circle-CMqV9U6C.js +0 -924
- package/dist/vue-ui-scatter-8nirnHQi.js +0 -2413
- package/dist/vue-ui-sparkline-DPZm7RqN.js +0 -1507
- package/dist/vue-ui-stackline-6agFEYxZ.js +0 -2398
- package/dist/vue-ui-xy-C0kcCaFA.js +0 -4747
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t,
|
|
2
|
+
import { Bt as t, G as n, H as r, Ht as i, J as a, Ot as o, S as s, Tt as c, X as l, ht as u, i as d, n as f, r as p, t as m, v as h, x as g, y as _ } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as ee } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as v } from "./usePrinter-
|
|
4
|
+
import { t as v } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { n as y, t as b } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
6
|
import { t as x } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as S } from "./useNestedProp-
|
|
7
|
+
import { t as S } from "./useNestedProp-DtcXIg7n.js";
|
|
8
8
|
import { t as te } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ne } from "./img-
|
|
10
|
-
import { n as C } from "./Title-
|
|
9
|
+
import { t as ne } from "./img-C_RNNswI.js";
|
|
10
|
+
import { n as C } from "./Title-DH6G8_cZ.js";
|
|
11
11
|
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ie } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
14
14
|
import { t as oe } from "./A11yDataTable-BCbtxMU6.js";
|
|
15
15
|
import { t as se } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
16
|
import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as le } from "./Legend-
|
|
17
|
+
import { t as le } from "./Legend-BLhREbj7.js";
|
|
18
18
|
import { t as ue } from "./vue_ui_flow-BewZjjKG.js";
|
|
19
19
|
import { Fragment as de, Teleport as fe, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createSlots as pe, createTextVNode as me, createVNode as he, defineAsyncComponent as k, guardReactiveProps as A, mergeProps as ge, nextTick as _e, normalizeClass as ve, normalizeProps as j, normalizeStyle as M, onMounted as ye, openBlock as N, ref as P, renderList as be, renderSlot as F, resolveDynamicComponent as xe, toDisplayString as Se, toRefs as Ce, unref as I, watch as we, withCtx as L } from "vue";
|
|
20
20
|
//#region src/components/vue-ui-flow.vue
|
|
@@ -87,7 +87,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["copyAlt"],
|
|
89
89
|
setup(e, { expose: re, emit: Te }) {
|
|
90
|
-
let Ke = k(() => import("./Tooltip-
|
|
90
|
+
let Ke = k(() => import("./Tooltip-979Ytd8R.js")), qe = k(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), Je = k(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), Ye = k(() => import("./DataTable-DweDyHc1.js")), Xe = k(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ze = k(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Qe = k(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), $e = k(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_flow: et } = ee(), { isThemeValid: tt, warnInvalidTheme: nt } = te(), R = e, rt = Te, z = P(r()), B = P(null), it = P(0), at = P(0), ot = P(!1), st = P(""), ct = P(null), lt = P(null), ut = P(null), dt = P(null), ft = P(null), pt = P(!1), mt = P(null), ht = P(null), gt = P(null), _t = P(!1), vt = P(!1), yt = P(null), V = P(null), bt = P({
|
|
91
91
|
x: 0,
|
|
92
92
|
y: 0
|
|
93
93
|
}), xt = P("pointer"), St = P(!1), Ct = w(() => !!R.dataset && R.dataset.length);
|
|
@@ -98,7 +98,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
98
98
|
function wt(e) {
|
|
99
99
|
H.value = e, it.value += 1;
|
|
100
100
|
}
|
|
101
|
-
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() =>
|
|
101
|
+
let U = P(Pt()), W = w(() => U.value.userOptions.useCursorPointer), Tt = w(() => i({
|
|
102
102
|
defaultConfig: {
|
|
103
103
|
userOptions: { show: !1 },
|
|
104
104
|
nodeCategories: {
|
|
@@ -163,17 +163,17 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
163
163
|
"#AAAAAA"
|
|
164
164
|
]
|
|
165
165
|
],
|
|
166
|
-
skeletonConfig:
|
|
166
|
+
skeletonConfig: i({
|
|
167
167
|
defaultConfig: U.value,
|
|
168
168
|
userConfig: Tt.value
|
|
169
169
|
})
|
|
170
170
|
}), kt = w(() => !!U.value.debug);
|
|
171
171
|
function At() {
|
|
172
|
-
if (
|
|
172
|
+
if (c(R.dataset) && (l({
|
|
173
173
|
componentName: "VueUiFlow",
|
|
174
174
|
type: "dataset",
|
|
175
175
|
debug: kt.value
|
|
176
|
-
}), Ot.value = !0),
|
|
176
|
+
}), Ot.value = !0), c(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
|
|
177
177
|
let e = ie(() => {
|
|
178
178
|
let { width: e, height: t } = ae({
|
|
179
179
|
chart: B.value,
|
|
@@ -193,23 +193,23 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
193
193
|
let e = S({
|
|
194
194
|
userConfig: R.config,
|
|
195
195
|
defaultConfig: et
|
|
196
|
-
}),
|
|
197
|
-
if (
|
|
196
|
+
}), n = e, r = e.theme;
|
|
197
|
+
if (r) if (!tt.value(e)) nt(e), n = e;
|
|
198
198
|
else {
|
|
199
199
|
let i = S({
|
|
200
|
-
userConfig: ue[
|
|
200
|
+
userConfig: ue[r] || R.config,
|
|
201
201
|
defaultConfig: e
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
n = {
|
|
204
204
|
...S({
|
|
205
205
|
userConfig: R.config,
|
|
206
206
|
defaultConfig: i
|
|
207
207
|
}),
|
|
208
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : t[r] || o
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
else
|
|
212
|
-
return
|
|
211
|
+
else n = e;
|
|
212
|
+
return n.nodeCategories = R.config.nodeCategories || {}, n.nodeCategoryColors = R.config.nodeCategoryColors || {}, n;
|
|
213
213
|
}
|
|
214
214
|
let Ft = P(U.value.style.chart.width), It = P(U.value.style.chart.height);
|
|
215
215
|
we(() => R.config, (e) => {
|
|
@@ -235,19 +235,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
235
235
|
e[0],
|
|
236
236
|
e[1],
|
|
237
237
|
h(e[2]),
|
|
238
|
-
e[3] ? _(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] ||
|
|
238
|
+
e[3] ? _(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || o[t] || o[t % o.length]
|
|
239
239
|
]));
|
|
240
240
|
function Gt(e) {
|
|
241
241
|
let t = {}, n = {};
|
|
242
|
-
function i(e,
|
|
242
|
+
function i(e, i) {
|
|
243
243
|
t[e] || (t[e] = {
|
|
244
244
|
level: null,
|
|
245
245
|
inflow: 0,
|
|
246
246
|
outflow: 0,
|
|
247
247
|
children: [],
|
|
248
248
|
color: null,
|
|
249
|
-
uid:
|
|
250
|
-
}), t[e].level === null && (t[e].level =
|
|
249
|
+
uid: r()
|
|
250
|
+
}), t[e].level === null && (t[e].level = i), n[i] || (n[i] = []), n[i].includes(e) || n[i].push(e);
|
|
251
251
|
}
|
|
252
252
|
e.forEach(([e, n, r]) => {
|
|
253
253
|
let a = t[e]?.level ?? 0, o = a + 1;
|
|
@@ -256,16 +256,16 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
256
256
|
value: r
|
|
257
257
|
}), t[e].outflow += r, t[n].inflow += r;
|
|
258
258
|
});
|
|
259
|
-
let
|
|
259
|
+
let a = new Set(e.map(([e]) => e)), s = new Set(e.map(([, e]) => e)), c = Array.from(a).filter((e) => !s.has(e)), l = {};
|
|
260
260
|
c.forEach((e, t) => {
|
|
261
|
-
l[e] = Ht.value[t] ||
|
|
261
|
+
l[e] = Ht.value[t] || o[t % o.length];
|
|
262
262
|
});
|
|
263
263
|
let u = {};
|
|
264
264
|
e.forEach(([e, t, n, r]) => {
|
|
265
265
|
r && (u[e] = r, u[t] = r);
|
|
266
266
|
}), Object.keys(t).forEach((e, n) => {
|
|
267
|
-
let
|
|
268
|
-
t[e].color = u[e] ||
|
|
267
|
+
let r = U.value.nodeCategories?.[e], i = r ? U.value.nodeCategoryColors?.[r] : null;
|
|
268
|
+
t[e].color = u[e] || i || (c.includes(e) ? l[e] : null) || o[n % o.length];
|
|
269
269
|
}), Object.keys(t).forEach((e) => {
|
|
270
270
|
t[e].value = Math.max(t[e].inflow, t[e].outflow);
|
|
271
271
|
});
|
|
@@ -288,19 +288,19 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
288
288
|
}
|
|
289
289
|
let x = m.map(b), S = x.length ? Math.min(...x) : 0, te = {};
|
|
290
290
|
m.forEach((e) => {
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
let o = l[
|
|
291
|
+
let i = n[e], a = i.length, o = Math.max(0, (a - 1) * v), s = Math.max(0, p - o), c = Math.min(y, a ? s / a : 0), l = i.map((e) => Math.max(c, (t[e].value || 0) * S)), u = l.reduce((e, t) => e + t, 0) + o, f = Math.max(0, (p - u) / 2);
|
|
292
|
+
i.forEach((n, i) => {
|
|
293
|
+
let o = l[i], s = d.left + e * _, c = f;
|
|
294
294
|
te[n] = {
|
|
295
295
|
x: s,
|
|
296
296
|
y: c,
|
|
297
297
|
absoluteY: c,
|
|
298
298
|
height: o,
|
|
299
|
-
i
|
|
299
|
+
i,
|
|
300
300
|
color: t[n].color,
|
|
301
301
|
value: t[n].value,
|
|
302
|
-
id:
|
|
303
|
-
}, f += o,
|
|
302
|
+
id: r()
|
|
303
|
+
}, f += o, i < a - 1 && (f += v);
|
|
304
304
|
});
|
|
305
305
|
});
|
|
306
306
|
let ne = [], C = d.top, re = {}, ie = {};
|
|
@@ -310,29 +310,29 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
310
310
|
let ae = !!U.value.style.chart.links.smooth, oe = .5;
|
|
311
311
|
return m.forEach((e) => {
|
|
312
312
|
n[e].forEach((e) => {
|
|
313
|
-
let n = t[e],
|
|
313
|
+
let n = t[e], i = te[e];
|
|
314
314
|
if (!n.children || !n.children.length) return;
|
|
315
|
-
let
|
|
315
|
+
let a = i.y;
|
|
316
316
|
n.children.forEach(({ target: o, value: s }) => {
|
|
317
|
-
let c = te[o], l = t[o], u = n.outflow > 0 ? s / n.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = h(
|
|
317
|
+
let c = te[o], l = t[o], u = n.outflow > 0 ? s / n.outflow : 0, d = l.inflow > 0 ? s / l.inflow : 0, f = h(a + C), p = h(a + u * i.height + C), m = re[o], g = m + d * c.height;
|
|
318
318
|
ie[o] += s;
|
|
319
319
|
let _ = l.inflow > 0 && ie[o] >= l.inflow - 1e-6, v = c.y + c.height;
|
|
320
320
|
(_ || g > v - .25) && (g = v);
|
|
321
|
-
let y = h(m + C), b = h(g + C), x = h(
|
|
321
|
+
let y = h(m + C), b = h(g + C), x = h(i.x + ee), S = h(c.x), se;
|
|
322
322
|
if (!ae || S <= x) se = `M ${x} ${f} L ${x} ${p} L ${S} ${b} L ${S} ${y} Z`;
|
|
323
323
|
else {
|
|
324
324
|
let e = S - x, t = h(x + e * oe), n = h(S - e * oe), r = f, i = y, a = p, o = b;
|
|
325
325
|
se = `M ${x} ${r} C ${t} ${r}, ${n} ${i}, ${S} ${i} L ${S} ${o} C ${n} ${o}, ${t} ${a}, ${x} ${a} Z`;
|
|
326
326
|
}
|
|
327
327
|
ne.push({
|
|
328
|
-
id:
|
|
328
|
+
id: r(),
|
|
329
329
|
source: e,
|
|
330
330
|
target: o,
|
|
331
331
|
path: se,
|
|
332
332
|
value: s,
|
|
333
333
|
sourceColor: n.color,
|
|
334
334
|
targetColor: t[o].color
|
|
335
|
-
}),
|
|
335
|
+
}), a = p - C, re[o] = g;
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}), {
|
|
@@ -376,9 +376,9 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
376
376
|
y: n.top + n.height / 2
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function nn(e, t,
|
|
380
|
-
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value =
|
|
381
|
-
let a = e.name, o = Wt.value, s = 0, c = 0, l = [],
|
|
379
|
+
function nn(e, t, r = "pointer", i = null) {
|
|
380
|
+
$.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = r, yt.value = i, V.value = e.id;
|
|
381
|
+
let a = e.name, o = Wt.value, s = 0, c = 0, l = [], f = [], p = new Set(o.map(([e]) => e)), m = new Set(o.map(([, e]) => e)), h = Array.from(p).filter((e) => !m.has(e)), g = o.filter(([e]) => h.includes(e)).reduce((e, [t, n, r]) => e + r, 0), _ = {};
|
|
382
382
|
q.value.nodes.forEach((e) => {
|
|
383
383
|
_[e.name] = e.color;
|
|
384
384
|
}), o.forEach(([e, t, n]) => {
|
|
@@ -386,7 +386,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
386
386
|
source: e,
|
|
387
387
|
value: n,
|
|
388
388
|
color: _[e]
|
|
389
|
-
})), e === a && (c += n,
|
|
389
|
+
})), e === a && (c += n, f.push({
|
|
390
390
|
target: t,
|
|
391
391
|
value: n,
|
|
392
392
|
color: _[t]
|
|
@@ -397,7 +397,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
397
397
|
inflow: s,
|
|
398
398
|
outflow: c,
|
|
399
399
|
from: l,
|
|
400
|
-
to:
|
|
400
|
+
to: f,
|
|
401
401
|
percentOfTotal: ee,
|
|
402
402
|
color: _[a] || "#000000"
|
|
403
403
|
};
|
|
@@ -411,7 +411,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
411
411
|
series: q.value
|
|
412
412
|
}, ot.value = !0;
|
|
413
413
|
let y = "", b = U.value.style.chart.tooltip.customFormat;
|
|
414
|
-
if (Qt.value = !1,
|
|
414
|
+
if (Qt.value = !1, u(b)) try {
|
|
415
415
|
let e = b({
|
|
416
416
|
datapoint: v,
|
|
417
417
|
series: q.value,
|
|
@@ -422,21 +422,21 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
422
422
|
console.warn("Custom format cannot be applied.");
|
|
423
423
|
}
|
|
424
424
|
if (!Qt.value) {
|
|
425
|
-
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${
|
|
425
|
+
let e = U.value.style.chart.tooltip.showPercentage ? `<div>${n({
|
|
426
426
|
p: U.value.style.chart.tooltip.translations.percentOfTotal,
|
|
427
427
|
v: v.percentOfTotal,
|
|
428
428
|
s: "%",
|
|
429
429
|
r: U.value.style.chart.tooltip.roundingPercentage
|
|
430
430
|
})}</div>` : "";
|
|
431
431
|
y += `<div style="width:100%;text-align:center;border-bottom:1px solid ${U.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${v.color}">⏹</span>${v.name}${e}</div>`, v.from.length && (y += `<div>${U.value.style.chart.tooltip.translations.from}</div>`, v.from.forEach((e) => {
|
|
432
|
-
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${
|
|
432
|
+
y += `<div><span style="color:${e.color}">⏹←</span> ${e.source}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, n({
|
|
433
433
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
434
434
|
v: e.value,
|
|
435
435
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
436
436
|
r: U.value.style.chart.nodes.labels.rounding
|
|
437
437
|
}))}</div>`;
|
|
438
438
|
})), v.to.length && (y += `<div style="margin-top:6px;">${U.value.style.chart.tooltip.translations.to}</div>`, v.to.forEach((e) => {
|
|
439
|
-
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${
|
|
439
|
+
y += `<div><span style="color:${e.color}">⏹→</span> ${e.target}: ${d(U.value.style.chart.nodes.labels.formatter, e.value, n({
|
|
440
440
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
441
441
|
v: e.value,
|
|
442
442
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -444,7 +444,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
444
444
|
}))}</div>`;
|
|
445
445
|
})), st.value = y;
|
|
446
446
|
}
|
|
447
|
-
|
|
447
|
+
r === "keyboard" && _e(() => {
|
|
448
448
|
tn(e.id);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
@@ -475,7 +475,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
475
475
|
[e.source],
|
|
476
476
|
[e.target],
|
|
477
477
|
[e.value]
|
|
478
|
-
]), n =
|
|
478
|
+
]), n = s([
|
|
479
479
|
[U.value.style.chart.title.text],
|
|
480
480
|
[U.value.style.chart.title.subtitle.text],
|
|
481
481
|
[
|
|
@@ -484,7 +484,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
484
484
|
[U.value.table.columnNames.value]
|
|
485
485
|
]
|
|
486
486
|
].concat(t));
|
|
487
|
-
e ? e(n) :
|
|
487
|
+
e ? e(n) : a({
|
|
488
488
|
csvContent: n,
|
|
489
489
|
title: U.value.style.chart.title.text || "vue-ui-flow"
|
|
490
490
|
});
|
|
@@ -506,13 +506,13 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
506
506
|
name: e.target,
|
|
507
507
|
shape: "square"
|
|
508
508
|
},
|
|
509
|
-
|
|
509
|
+
n({
|
|
510
510
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
511
511
|
v: e.value,
|
|
512
512
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
513
513
|
r: U.value.style.chart.nodes.labels.rounding
|
|
514
514
|
})
|
|
515
|
-
]),
|
|
515
|
+
]), r = {
|
|
516
516
|
th: {
|
|
517
517
|
backgroundColor: U.value.table.th.backgroundColor,
|
|
518
518
|
color: U.value.table.th.color,
|
|
@@ -533,7 +533,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
533
533
|
],
|
|
534
534
|
head: e,
|
|
535
535
|
body: t,
|
|
536
|
-
config:
|
|
536
|
+
config: r
|
|
537
537
|
};
|
|
538
538
|
}), cn = w(() => ({
|
|
539
539
|
headers: Z.value?.colNames ?? [],
|
|
@@ -577,7 +577,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
577
577
|
let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
|
|
578
578
|
return Array.from(e).map((e) => ({
|
|
579
579
|
name: e,
|
|
580
|
-
color: U.value.nodeCategoryColors[e] ||
|
|
580
|
+
color: U.value.nodeCategoryColors[e] || o[0],
|
|
581
581
|
shape: "square",
|
|
582
582
|
count: q.value.nodes.filter((t) => (U.value.nodeCategories[t.name] || "__uncategorized__") === e).length
|
|
583
583
|
})).map((e, t) => {
|
|
@@ -1045,7 +1045,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1045
1045
|
opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
|
|
1046
1046
|
outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
|
|
1047
1047
|
}),
|
|
1048
|
-
"aria-label": `${e.name}: ${I(
|
|
1048
|
+
"aria-label": `${e.name}: ${I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(n)({
|
|
1049
1049
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1050
1050
|
v: e.value,
|
|
1051
1051
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -1062,7 +1062,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1062
1062
|
fill: I(p)(e.color),
|
|
1063
1063
|
"text-anchor": "middle",
|
|
1064
1064
|
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1065
|
-
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(
|
|
1065
|
+
}, Se(U.value.style.chart.nodes.labels.abbreviation.use ? I(f)({
|
|
1066
1066
|
source: e.name,
|
|
1067
1067
|
length: U.value.style.chart.nodes.labels.abbreviation.length
|
|
1068
1068
|
}) : e.name), 13, ze))), 256)), U.value.style.chart.nodes.labels.showValue ? (N(!0), D(de, { key: 0 }, be(q.value.nodes, (e, t) => (N(), D("text", {
|
|
@@ -1072,7 +1072,7 @@ var Te = /* @__PURE__ */ e({ default: () => Ke }), Ee = ["id"], De = ["id"], Oe
|
|
|
1072
1072
|
fill: I(p)(e.color),
|
|
1073
1073
|
"text-anchor": "middle",
|
|
1074
1074
|
style: M(`pointer-events: none; opacity:${J.value ? +!!J.value.includes(e.name) : 1}`)
|
|
1075
|
-
}, Se(I(
|
|
1075
|
+
}, Se(I(d)(U.value.style.chart.nodes.labels.formatter, e.value, I(n)({
|
|
1076
1076
|
p: U.value.style.chart.nodes.labels.prefix,
|
|
1077
1077
|
v: e.value,
|
|
1078
1078
|
s: U.value.style.chart.nodes.labels.suffix,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, H as n, J as r, S as i, St as a, Tt as ee, Vt as o, X as te, ct as ne, i as s, r as re, t as ie, y as ae } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as oe } from "./useConfig-DnH7Pf_2.js";
|
|
4
|
-
import { t as se } from "./usePrinter-
|
|
4
|
+
import { t as se } from "./usePrinter-6n2MzVyV.js";
|
|
5
5
|
import { t as ce } from "./useSvgExport-SVIsDot8.js";
|
|
6
|
-
import { t as c } from "./useNestedProp-
|
|
6
|
+
import { t as c } from "./useNestedProp-DtcXIg7n.js";
|
|
7
7
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as ue } from "./img-
|
|
9
|
-
import { n as de } from "./Title-
|
|
8
|
+
import { t as ue } from "./img-C_RNNswI.js";
|
|
9
|
+
import { n as de } from "./Title-DH6G8_cZ.js";
|
|
10
10
|
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
11
|
import { c as pe } from "./canvas-lib-BOP_HS11.js";
|
|
12
12
|
import { t as me } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -59,10 +59,10 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
59
59
|
emits: ["copyAlt"],
|
|
60
60
|
setup(e, { expose: fe, emit: Oe }) {
|
|
61
61
|
Ee((e) => ({ v5d52ff0c: Et.value }));
|
|
62
|
-
let Ge = h(() => import("./BaseIcon-
|
|
62
|
+
let Ge = h(() => import("./BaseIcon-CbDazQLH.js").then((e) => e.n)), Ke = h(() => import("./vue-ui-skeleton-qpdvvWtx.js").then((e) => e.n)), qe = h(() => import("./vue-ui-accordion-DLnwuQda.js").then((e) => e.n)), Je = h(() => import("./DataTable-DweDyHc1.js")), Ye = h(() => import("./UserOptions-qFz-9Pnw.js").then((e) => e.n)), Xe = h(() => import("./PenAndPaper-D4aFMYZf.js").then((e) => e.t)), Ze = h(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Qe = h(() => import("./BaseDraggableDialog-BvaFJWHb.js").then((e) => e.n)), { vue_ui_funnel: $e } = oe(), { isThemeValid: et, warnInvalidTheme: tt } = le(), O = e, nt = Oe, k = S(null), A = S(n()), rt = S(0), it = S(0), at = S(0), ot = S(null), st = S(null), ct = S(null), j = Te(null), M = Te(null), N = S(!1), P = S(null), F = S(null), I = S(!1), L = S(!1), R = u(() => !!O.dataset && O.dataset.length);
|
|
63
63
|
Ce(lt);
|
|
64
64
|
function lt() {
|
|
65
|
-
if (
|
|
65
|
+
if (ee(O.dataset) ? te({
|
|
66
66
|
componentName: "VueUiFunnel",
|
|
67
67
|
type: "dataset"
|
|
68
68
|
}) : O.dataset.forEach((e, t) => {
|
|
@@ -70,7 +70,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
70
70
|
datasetObject: e,
|
|
71
71
|
requiredAttributes: ["name", "value"]
|
|
72
72
|
}).forEach((e) => {
|
|
73
|
-
R.value = !1,
|
|
73
|
+
R.value = !1, te({
|
|
74
74
|
componentName: "VueUiFunnel",
|
|
75
75
|
type: "datasetSerieAttribute",
|
|
76
76
|
property: e,
|
|
@@ -86,19 +86,19 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
86
86
|
noTitle: ot.value
|
|
87
87
|
});
|
|
88
88
|
requestAnimationFrame(() => {
|
|
89
|
-
H.value.height = t, H.value.width = e, W.value = xt(), z.value.responsiveProportionalSizing ? (V.value.circles =
|
|
89
|
+
H.value.height = t, H.value.width = e, W.value = xt(), z.value.responsiveProportionalSizing ? (V.value.circles = o({
|
|
90
90
|
relator: Math.min(e, t),
|
|
91
91
|
adjuster: 600,
|
|
92
92
|
source: z.value.style.chart.circles.dataLabels.fontSize,
|
|
93
93
|
threshold: 10,
|
|
94
94
|
fallback: 10
|
|
95
|
-
}), V.value.names =
|
|
95
|
+
}), V.value.names = o({
|
|
96
96
|
relator: Math.min(e, t),
|
|
97
97
|
adjuster: 600,
|
|
98
98
|
source: z.value.style.chart.bars.dataLabels.name.fontSize,
|
|
99
99
|
threshold: 10,
|
|
100
100
|
fallback: 10
|
|
101
|
-
}), V.value.values =
|
|
101
|
+
}), V.value.values = o({
|
|
102
102
|
relator: Math.min(e, t),
|
|
103
103
|
adjuster: 600,
|
|
104
104
|
source: z.value.style.chart.bars.dataLabels.value.fontSize,
|
|
@@ -152,7 +152,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
152
152
|
set: (e) => e
|
|
153
153
|
}), U = u(() => R.value ? O.dataset.map((e, t) => ({
|
|
154
154
|
...e,
|
|
155
|
-
color: e.color ? ae(e.color) :
|
|
155
|
+
color: e.color ? ae(e.color) : a(z.value.style.chart.bars.defaultColor, t / O.dataset.length)
|
|
156
156
|
})) : []);
|
|
157
157
|
setTimeout(() => {
|
|
158
158
|
N.value = !0;
|
|
@@ -213,17 +213,17 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
213
213
|
z.value.table.columnNames.series,
|
|
214
214
|
z.value.table.columnNames.value,
|
|
215
215
|
z.value.table.columnNames.percentage
|
|
216
|
-
],
|
|
217
|
-
let r =
|
|
216
|
+
], n = X.value.head.map((e, n) => {
|
|
217
|
+
let r = s(z.value.style.chart.bars.dataLabels.value.formatter, X.value.body[n], t({
|
|
218
218
|
p: z.value.style.chart.bars.dataLabels.value.prefix,
|
|
219
|
-
v: X.value.body[
|
|
219
|
+
v: X.value.body[n],
|
|
220
220
|
s: z.value.style.chart.bars.dataLabels.value.suffix,
|
|
221
221
|
r: z.value.table.td.roundingValue
|
|
222
|
-
}), { datapoint: q.value[
|
|
223
|
-
v: q.value[
|
|
222
|
+
}), { datapoint: q.value[n] }), i = s(z.value.style.chart.circles.dataLabels.formatter, q.value[n].proportion * 100, t({
|
|
223
|
+
v: q.value[n].proportion * 100,
|
|
224
224
|
s: "%",
|
|
225
225
|
r: z.value.table.td.roundingPercentage
|
|
226
|
-
}), { datapoint: q.value[
|
|
226
|
+
}), { datapoint: q.value[n] });
|
|
227
227
|
return [
|
|
228
228
|
{
|
|
229
229
|
color: e.color,
|
|
@@ -252,7 +252,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
252
252
|
z.value.table.columnNames.percentage
|
|
253
253
|
],
|
|
254
254
|
head: e,
|
|
255
|
-
body:
|
|
255
|
+
body: n,
|
|
256
256
|
config: r
|
|
257
257
|
};
|
|
258
258
|
});
|
|
@@ -262,7 +262,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
262
262
|
[e.name],
|
|
263
263
|
[X.value.body[t]],
|
|
264
264
|
[q.value[t].proportion * 100]
|
|
265
|
-
]), n =
|
|
265
|
+
]), n = i([
|
|
266
266
|
[z.value.style.chart.title.text],
|
|
267
267
|
[z.value.style.chart.title.subtitle.text],
|
|
268
268
|
[
|
|
@@ -271,7 +271,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
271
271
|
["%"]
|
|
272
272
|
]
|
|
273
273
|
].concat(t));
|
|
274
|
-
e ? e(n) :
|
|
274
|
+
e ? e(n) : r({
|
|
275
275
|
csvContent: n,
|
|
276
276
|
title: z.value.style.chart.title.text || "vue-ui-funnel"
|
|
277
277
|
});
|
|
@@ -389,14 +389,14 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
389
389
|
toggleAnnotator: Dt,
|
|
390
390
|
toggleFullscreen: Tt,
|
|
391
391
|
copyAlt: Lt
|
|
392
|
-
}), (e,
|
|
392
|
+
}), (e, n) => (x(), p("div", {
|
|
393
393
|
ref_key: "funnelChart",
|
|
394
394
|
ref: k,
|
|
395
395
|
class: v(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
396
396
|
style: b(`font-family:${z.value.style.fontFamily};width:100%; ${z.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.style.chart.backgroundColor}`),
|
|
397
397
|
id: `funnel_${A.value}`,
|
|
398
|
-
onMouseenter:
|
|
399
|
-
onMouseleave:
|
|
398
|
+
onMouseenter: n[1] ||= () => E(pt)(!0),
|
|
399
|
+
onMouseleave: n[2] ||= () => E(pt)(!1)
|
|
400
400
|
}, [
|
|
401
401
|
z.value.userOptions.buttons.annotator ? (x(), d(E(Xe), {
|
|
402
402
|
key: 0,
|
|
@@ -637,7 +637,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
637
637
|
class: { animated: z.value.useCssAnimation && !N.value },
|
|
638
638
|
style: { animationDelay: `${150 * i}ms` }
|
|
639
639
|
}), null, 16, Le))), 256)),
|
|
640
|
-
(x(!0), p(l, null, C(q.value, (e,
|
|
640
|
+
(x(!0), p(l, null, C(q.value, (e, n) => (x(), p("text", {
|
|
641
641
|
x: e.cx,
|
|
642
642
|
y: e.cy + V.value.circles / 3 + z.value.style.chart.circles.dataLabels.offsetY,
|
|
643
643
|
"text-anchor": "middle",
|
|
@@ -645,8 +645,8 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
645
645
|
fill: z.value.style.chart.circles.dataLabels.adaptColorToBackground ? E(re)(e.color) : z.value.style.chart.circles.dataLabels.color,
|
|
646
646
|
"font-weight": z.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
647
647
|
class: v({ animated: z.value.useCssAnimation && !N.value }),
|
|
648
|
-
style: b({ animationDelay: `${150 *
|
|
649
|
-
}, T(E(
|
|
648
|
+
style: b({ animationDelay: `${150 * n}ms` })
|
|
649
|
+
}, T(E(s)(z.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, E(t)({
|
|
650
650
|
v: e.proportion * 100,
|
|
651
651
|
s: "%",
|
|
652
652
|
r: z.value.style.chart.circles.dataLabels.rounding
|
|
@@ -671,7 +671,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
671
671
|
class: { animated: z.value.useCssAnimation && !N.value },
|
|
672
672
|
style: { animationDelay: `${150 * a}ms` }
|
|
673
673
|
}), null, 16, Be))), 256)),
|
|
674
|
-
(x(!0), p(l, null, C(q.value, (e,
|
|
674
|
+
(x(!0), p(l, null, C(q.value, (e, n) => (x(), p("g", null, [m("text", {
|
|
675
675
|
x: e.x + e.width + z.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
676
676
|
y: e.cy - V.value.names / 2 + z.value.style.chart.bars.dataLabels.name.offsetY,
|
|
677
677
|
"text-anchor": "start",
|
|
@@ -679,7 +679,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
679
679
|
fill: z.value.style.chart.bars.dataLabels.name.color,
|
|
680
680
|
"font-weight": z.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
681
681
|
class: v({ animated: z.value.useCssAnimation && !N.value }),
|
|
682
|
-
style: b({ animationDelay: `${150 *
|
|
682
|
+
style: b({ animationDelay: `${150 * n}ms` })
|
|
683
683
|
}, T(e.name), 15, Ve), m("text", {
|
|
684
684
|
x: e.x + e.width + z.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
685
685
|
y: e.cy + V.value.values + z.value.style.chart.bars.dataLabels.value.offsetY,
|
|
@@ -688,8 +688,8 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
688
688
|
fill: z.value.style.chart.bars.dataLabels.value.color,
|
|
689
689
|
"font-weight": z.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
690
690
|
class: v({ animated: z.value.useCssAnimation && !N.value }),
|
|
691
|
-
style: b({ animationDelay: `${150 *
|
|
692
|
-
}, T(E(
|
|
691
|
+
style: b({ animationDelay: `${150 * n}ms` })
|
|
692
|
+
}, T(E(s)(z.value.style.chart.bars.dataLabels.value.formatter, e.value, E(t)({
|
|
693
693
|
p: z.value.style.chart.bars.dataLabels.value.prefix,
|
|
694
694
|
v: e.value,
|
|
695
695
|
s: z.value.style.chart.bars.dataLabels.value.suffix,
|
|
@@ -763,7 +763,7 @@ var Oe = /* @__PURE__ */ e({ default: () => Ge }), ke = ["id"], Ae = ["xmlns", "
|
|
|
763
763
|
fn: D(() => [m("button", {
|
|
764
764
|
tabindex: "0",
|
|
765
765
|
class: "vue-ui-user-options-button",
|
|
766
|
-
onClick:
|
|
766
|
+
onClick: n[0] ||= (e) => Q(z.value.userOptions.callbacks.csv)
|
|
767
767
|
}, [be(E(Ge), {
|
|
768
768
|
name: "fileCsv",
|
|
769
769
|
stroke: $.value.props.color
|