vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,782 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Et as n, G as r, Gt as i, J as a, T as ee, Z as te, b as ne, dt as re, i as o, kt as ie, r as ae, t as oe } from "./lib-JqW18y5I.js";
|
|
3
|
-
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as ce } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
-
import { t as le } from "./useSvgExport-SVIsDot8.js";
|
|
6
|
-
import { t as ue } from "./useNestedProp-DIuuzG1r.js";
|
|
7
|
-
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
-
import { t as fe } from "./img-DnP3eXuv.js";
|
|
9
|
-
import { n as pe } from "./Title-CcNiYzEo.js";
|
|
10
|
-
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { c as he } from "./canvas-lib-BOP_HS11.js";
|
|
12
|
-
import { t as ge } from "./useResponsive-BfnK0KxU.js";
|
|
13
|
-
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
14
|
-
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as be } from "./vue_ui_funnel-_Og4EEkO.js";
|
|
17
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as xe, createTextVNode as Se, createVNode as Ce, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as we, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Te, onMounted as Ee, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as De, shallowRef as Oe, toDisplayString as C, unref as w, useCssVars as ke, watch as Ae, withCtx as T } from "vue";
|
|
18
|
-
//#region src/components/vue-ui-funnel.vue
|
|
19
|
-
var je = /* @__PURE__ */ e({ default: () => We }), Me = ["id"], Ne = ["xmlns", "viewBox"], Pe = ["width", "height"], Fe = ["stroke", "stroke-width"], Ie = ["stroke", "stroke-width"], Le = [
|
|
20
|
-
"x",
|
|
21
|
-
"y",
|
|
22
|
-
"font-size",
|
|
23
|
-
"fill",
|
|
24
|
-
"font-weight"
|
|
25
|
-
], Re = ["points", "fill"], ze = [
|
|
26
|
-
"stroke",
|
|
27
|
-
"stroke-width",
|
|
28
|
-
"rx"
|
|
29
|
-
], Be = [
|
|
30
|
-
"x",
|
|
31
|
-
"y",
|
|
32
|
-
"font-size",
|
|
33
|
-
"fill",
|
|
34
|
-
"font-weight"
|
|
35
|
-
], Ve = [
|
|
36
|
-
"x",
|
|
37
|
-
"y",
|
|
38
|
-
"font-size",
|
|
39
|
-
"fill",
|
|
40
|
-
"font-weight"
|
|
41
|
-
], He = {
|
|
42
|
-
key: 5,
|
|
43
|
-
class: "vue-data-ui-watermark"
|
|
44
|
-
}, Ue = ["innerHTML"], We = /*#__PURE__*/ me({
|
|
45
|
-
__name: "vue-ui-funnel",
|
|
46
|
-
props: {
|
|
47
|
-
config: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default() {
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
dataset: {
|
|
54
|
-
type: Array,
|
|
55
|
-
default() {
|
|
56
|
-
return [];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
emits: ["copyAlt"],
|
|
61
|
-
setup(e, { expose: me, emit: je }) {
|
|
62
|
-
ke((e) => ({ v7c53d9b8: wt.value }));
|
|
63
|
-
let We = p(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Ge = p(() => import("./vue-ui-skeleton-DC2bZ0nk.js").then((e) => e.n)), Ke = p(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), qe = p(() => import("./DataTable-BxpTMgfK.js")), Je = p(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Ye = p(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Xe = p(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), Ze = p(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_funnel: Qe } = se(), { isThemeValid: $e, warnInvalidTheme: et } = de(), E = e, tt = je, D = b(null), O = b(r()), nt = b(0), rt = b(0), it = b(0), at = b(null), ot = b(null), st = b(null), k = Oe(null), A = Oe(null), j = b(!1), M = b(null), ct = b(null), N = b(!1), P = b(!1), F = c(() => !!E.dataset && E.dataset.length);
|
|
64
|
-
Ee(lt);
|
|
65
|
-
function lt() {
|
|
66
|
-
if (ie(E.dataset) ? t({
|
|
67
|
-
componentName: "VueUiFunnel",
|
|
68
|
-
type: "dataset"
|
|
69
|
-
}) : E.dataset.forEach((e, n) => {
|
|
70
|
-
re({
|
|
71
|
-
datasetObject: e,
|
|
72
|
-
requiredAttributes: ["name", "value"]
|
|
73
|
-
}).forEach((e) => {
|
|
74
|
-
F.value = !1, t({
|
|
75
|
-
componentName: "VueUiFunnel",
|
|
76
|
-
type: "datasetSerieAttribute",
|
|
77
|
-
property: e,
|
|
78
|
-
index: n
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}), I.value.responsive) {
|
|
82
|
-
let e = he(() => {
|
|
83
|
-
let { width: e, height: t } = ge({
|
|
84
|
-
chart: D.value,
|
|
85
|
-
title: I.value.style.chart.title.text ? st.value : null,
|
|
86
|
-
source: ot.value,
|
|
87
|
-
noTitle: at.value
|
|
88
|
-
});
|
|
89
|
-
requestAnimationFrame(() => {
|
|
90
|
-
V.value.height = t, V.value.width = e, U.value = yt(), I.value.responsiveProportionalSizing ? (B.value.circles = i({
|
|
91
|
-
relator: Math.min(e, t),
|
|
92
|
-
adjuster: 600,
|
|
93
|
-
source: I.value.style.chart.circles.dataLabels.fontSize,
|
|
94
|
-
threshold: 10,
|
|
95
|
-
fallback: 10
|
|
96
|
-
}), B.value.names = i({
|
|
97
|
-
relator: Math.min(e, t),
|
|
98
|
-
adjuster: 600,
|
|
99
|
-
source: I.value.style.chart.bars.dataLabels.name.fontSize,
|
|
100
|
-
threshold: 10,
|
|
101
|
-
fallback: 10
|
|
102
|
-
}), B.value.values = i({
|
|
103
|
-
relator: Math.min(e, t),
|
|
104
|
-
adjuster: 600,
|
|
105
|
-
source: I.value.style.chart.bars.dataLabels.value.fontSize,
|
|
106
|
-
threshold: 10,
|
|
107
|
-
fallback: 10
|
|
108
|
-
})) : (B.value.circles = I.value.style.chart.circles.dataLabels.fontSize, B.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, B.value.values = I.value.style.chart.bars.dataLabels.value.fontSize);
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = D.value.parentNode, k.value.observe(A.value);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
Te(() => {
|
|
115
|
-
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
116
|
-
});
|
|
117
|
-
function ut() {
|
|
118
|
-
let e = ue({
|
|
119
|
-
userConfig: E.config,
|
|
120
|
-
defaultConfig: Qe
|
|
121
|
-
}), t = e.theme;
|
|
122
|
-
if (!t) return e;
|
|
123
|
-
if (!$e.value(e)) return et(e), e;
|
|
124
|
-
let n = ue({
|
|
125
|
-
userConfig: be[t] || E.config,
|
|
126
|
-
defaultConfig: e
|
|
127
|
-
});
|
|
128
|
-
return ue({
|
|
129
|
-
userConfig: E.config,
|
|
130
|
-
defaultConfig: n
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
let I = c({
|
|
134
|
-
get: () => ut(),
|
|
135
|
-
set: (e) => e
|
|
136
|
-
}), dt = c(() => I.value.userOptions.useCursorPointer), { userOptionsVisible: L, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ve({ config: I.value }), { svgRef: R } = ye({ config: I.value.style.chart.title });
|
|
137
|
-
Ae(() => E.config, (e) => {
|
|
138
|
-
I.value = ut(), L.value = !I.value.userOptions.showOnChartHover, lt(), rt.value += 1, it.value += 1, B.value.circles = I.value.style.chart.circles.dataLabels.fontSize, B.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, B.value.values = I.value.style.chart.bars.dataLabels.value.fontSize, z.value.showTable = I.value.table.show;
|
|
139
|
-
}, { deep: !0 });
|
|
140
|
-
let { isPrinting: mt, isImaging: ht, generatePdf: gt, generateImage: _t } = ce({
|
|
141
|
-
elementId: `funnel_${O.value}`,
|
|
142
|
-
fileName: I.value.style.chart.title.text || "vue-ui-funnel",
|
|
143
|
-
options: I.value.userOptions.print
|
|
144
|
-
}), vt = c(() => I.value.userOptions.show && !I.value.style.chart.title.text), z = b({ showTable: I.value.table.show }), B = b({
|
|
145
|
-
circles: I.value.style.chart.circles.dataLabels.fontSize,
|
|
146
|
-
names: I.value.style.chart.bars.dataLabels.name.fontSize,
|
|
147
|
-
values: I.value.style.chart.bars.dataLabels.value.fontSize
|
|
148
|
-
}), V = c({
|
|
149
|
-
get: () => ({
|
|
150
|
-
height: I.value.style.chart.height,
|
|
151
|
-
width: I.value.style.chart.width
|
|
152
|
-
}),
|
|
153
|
-
set: (e) => e
|
|
154
|
-
}), H = c(() => F.value ? E.dataset.map((e, t) => ({
|
|
155
|
-
...e,
|
|
156
|
-
color: e.color ? ne(e.color) : n(I.value.style.chart.bars.defaultColor, t / E.dataset.length)
|
|
157
|
-
})) : []);
|
|
158
|
-
setTimeout(() => {
|
|
159
|
-
j.value = !0;
|
|
160
|
-
}, H.value.length * 150);
|
|
161
|
-
function yt() {
|
|
162
|
-
let e = I.value.style.chart.padding.left, t = I.value.style.chart.padding.top;
|
|
163
|
-
return {
|
|
164
|
-
left: e,
|
|
165
|
-
top: t,
|
|
166
|
-
right: V.value.width - I.value.style.chart.padding.right,
|
|
167
|
-
bottom: V.value.height - I.value.style.chart.padding.bottom,
|
|
168
|
-
width: V.value.width - e - I.value.style.chart.padding.right,
|
|
169
|
-
height: V.value.height - t - I.value.style.chart.padding.bottom
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
let U = b(yt()), W = c(() => U.value.height / E.dataset.length), G = c(() => W.value * I.value.style.chart.bars.gapRatio), bt = c(() => U.value.width * I.value.style.chart.barCircleSpacingRatio), K = c(() => H.value.map((e, t) => {
|
|
173
|
-
let n = W.value - G.value, r = U.value.top + G.value / 2 * t + (W.value - G.value / 2) * t + G.value / 2, i = e.value / H.value[0].value, a = (U.value.width - n - bt.value) * (e.value / H.value[0].value);
|
|
174
|
-
return {
|
|
175
|
-
...e,
|
|
176
|
-
cx: U.value.left + n / 2,
|
|
177
|
-
cy: r + n / 2,
|
|
178
|
-
datapointIndex: t,
|
|
179
|
-
fill: e.color,
|
|
180
|
-
height: Math.max(n, 0),
|
|
181
|
-
proportion: i,
|
|
182
|
-
r: Math.max(n / 2, 0),
|
|
183
|
-
width: Math.max(a, 0),
|
|
184
|
-
x: U.value.left + n + bt.value,
|
|
185
|
-
y: r
|
|
186
|
-
};
|
|
187
|
-
})), xt = c(() => {
|
|
188
|
-
let e = K.value.map((e) => `${e.x + e.width},${e.y + (W.value - G.value) / 2}`);
|
|
189
|
-
return `${K.value[0].x},${K.value[0].y + (W.value - G.value) / 2} ${e.toString()} ${K.value.at(-1).x},${K.value.at(-1).y + (W.value - G.value) / 2}`;
|
|
190
|
-
}), St = c(() => ({
|
|
191
|
-
x1: K.value[0].cx,
|
|
192
|
-
y1: K.value[0].cy,
|
|
193
|
-
x2: K.value.at(-1).cx,
|
|
194
|
-
y2: K.value.at(-1).cy
|
|
195
|
-
})), q = b(!1);
|
|
196
|
-
function Ct(e) {
|
|
197
|
-
q.value = e, nt.value += 1;
|
|
198
|
-
}
|
|
199
|
-
let wt = c(() => `${H.value.length * 150}ms`), J = b(!1);
|
|
200
|
-
function Y() {
|
|
201
|
-
J.value = !J.value;
|
|
202
|
-
}
|
|
203
|
-
function Tt() {
|
|
204
|
-
z.value.showTable = !z.value.showTable;
|
|
205
|
-
}
|
|
206
|
-
let X = c(() => ({
|
|
207
|
-
head: H.value.map((e) => ({
|
|
208
|
-
name: e.name,
|
|
209
|
-
color: e.color
|
|
210
|
-
})),
|
|
211
|
-
body: H.value.map((e) => e.value)
|
|
212
|
-
})), Z = c(() => {
|
|
213
|
-
let e = [
|
|
214
|
-
I.value.table.columnNames.series,
|
|
215
|
-
I.value.table.columnNames.value,
|
|
216
|
-
I.value.table.columnNames.percentage
|
|
217
|
-
], t = X.value.head.map((e, t) => {
|
|
218
|
-
let n = o(I.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], a({
|
|
219
|
-
p: I.value.style.chart.bars.dataLabels.value.prefix,
|
|
220
|
-
v: X.value.body[t],
|
|
221
|
-
s: I.value.style.chart.bars.dataLabels.value.suffix,
|
|
222
|
-
r: I.value.table.td.roundingValue
|
|
223
|
-
}), { datapoint: K.value[t] }), r = o(I.value.style.chart.circles.dataLabels.formatter, K.value[t].proportion * 100, a({
|
|
224
|
-
v: K.value[t].proportion * 100,
|
|
225
|
-
s: "%",
|
|
226
|
-
r: I.value.table.td.roundingPercentage
|
|
227
|
-
}), { datapoint: K.value[t] });
|
|
228
|
-
return [
|
|
229
|
-
{
|
|
230
|
-
color: e.color,
|
|
231
|
-
name: e.name
|
|
232
|
-
},
|
|
233
|
-
n,
|
|
234
|
-
r
|
|
235
|
-
];
|
|
236
|
-
}), n = {
|
|
237
|
-
th: {
|
|
238
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
239
|
-
color: I.value.table.th.color,
|
|
240
|
-
outline: I.value.table.th.outline
|
|
241
|
-
},
|
|
242
|
-
td: {
|
|
243
|
-
backgroundColor: I.value.table.td.backgroundColor,
|
|
244
|
-
color: I.value.table.td.color,
|
|
245
|
-
outline: I.value.table.td.outline
|
|
246
|
-
},
|
|
247
|
-
breakpoint: I.value.table.responsiveBreakpoint
|
|
248
|
-
};
|
|
249
|
-
return {
|
|
250
|
-
colNames: [
|
|
251
|
-
I.value.table.columnNames.series,
|
|
252
|
-
I.value.table.columnNames.value,
|
|
253
|
-
I.value.table.columnNames.percentage
|
|
254
|
-
],
|
|
255
|
-
head: e,
|
|
256
|
-
body: t,
|
|
257
|
-
config: n
|
|
258
|
-
};
|
|
259
|
-
});
|
|
260
|
-
function Q(e = null) {
|
|
261
|
-
we(() => {
|
|
262
|
-
let t = X.value.head.map((e, t) => [
|
|
263
|
-
[e.name],
|
|
264
|
-
[X.value.body[t]],
|
|
265
|
-
[K.value[t].proportion * 100]
|
|
266
|
-
]), n = ee([
|
|
267
|
-
[I.value.style.chart.title.text],
|
|
268
|
-
[I.value.style.chart.title.subtitle.text],
|
|
269
|
-
[
|
|
270
|
-
[I.value.table.columnNames.series],
|
|
271
|
-
[I.value.table.columnNames.value],
|
|
272
|
-
["%"]
|
|
273
|
-
]
|
|
274
|
-
].concat(t));
|
|
275
|
-
e ? e(n) : te({
|
|
276
|
-
csvContent: n,
|
|
277
|
-
title: I.value.style.chart.title.text || "vue-ui-funnel"
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
function Et() {
|
|
282
|
-
return H.value;
|
|
283
|
-
}
|
|
284
|
-
async function Dt({ scale: e = 2 } = {}) {
|
|
285
|
-
if (!D.value) return;
|
|
286
|
-
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
287
|
-
domElement: D.value,
|
|
288
|
-
base64: !0,
|
|
289
|
-
img: !0,
|
|
290
|
-
scale: e
|
|
291
|
-
});
|
|
292
|
-
return {
|
|
293
|
-
imageUri: i,
|
|
294
|
-
base64: a,
|
|
295
|
-
title: I.value.style.chart.title.text,
|
|
296
|
-
width: t,
|
|
297
|
-
height: n,
|
|
298
|
-
aspectRatio: r
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
let $ = c(() => {
|
|
302
|
-
let e = I.value.table.useDialog && !I.value.table.show, t = z.value.showTable;
|
|
303
|
-
return {
|
|
304
|
-
component: e ? Ze : Ke,
|
|
305
|
-
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
306
|
-
props: e ? {
|
|
307
|
-
backgroundColor: I.value.table.th.backgroundColor,
|
|
308
|
-
color: I.value.table.th.color,
|
|
309
|
-
headerColor: I.value.table.th.color,
|
|
310
|
-
headerBg: I.value.table.th.backgroundColor,
|
|
311
|
-
isFullscreen: q.value,
|
|
312
|
-
fullscreenParent: D.value,
|
|
313
|
-
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
314
|
-
} : {
|
|
315
|
-
hideDetails: !0,
|
|
316
|
-
config: {
|
|
317
|
-
open: t,
|
|
318
|
-
maxHeight: 1e4,
|
|
319
|
-
body: {
|
|
320
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
321
|
-
color: I.value.style.chart.color
|
|
322
|
-
},
|
|
323
|
-
head: {
|
|
324
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
325
|
-
color: I.value.style.chart.color
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
});
|
|
331
|
-
Ae(() => z.value.showTable, (e) => {
|
|
332
|
-
I.value.table.show || (e && I.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
333
|
-
});
|
|
334
|
-
function Ot() {
|
|
335
|
-
z.value.showTable = !1, ct.value && ct.value.setTableIconState(!1);
|
|
336
|
-
}
|
|
337
|
-
let kt = c(() => I.value.style.chart.backgroundColor), { exportSvg: At, getSvg: jt } = le({
|
|
338
|
-
svg: R,
|
|
339
|
-
title: c(() => I.value.style.chart.title),
|
|
340
|
-
backgroundColor: kt
|
|
341
|
-
});
|
|
342
|
-
async function Mt({ isCb: e }) {
|
|
343
|
-
P.value = !0, await we();
|
|
344
|
-
try {
|
|
345
|
-
if (e) {
|
|
346
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await jt();
|
|
347
|
-
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
348
|
-
blob: e,
|
|
349
|
-
url: t,
|
|
350
|
-
text: n,
|
|
351
|
-
dataUrl: r
|
|
352
|
-
}));
|
|
353
|
-
} else await Promise.resolve(At());
|
|
354
|
-
} finally {
|
|
355
|
-
P.value = !1;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function Nt(e) {
|
|
359
|
-
if (e?.stage === "start") {
|
|
360
|
-
N.value = !0;
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
if (e?.stage === "end") {
|
|
364
|
-
N.value = !1;
|
|
365
|
-
return;
|
|
366
|
-
}
|
|
367
|
-
_t();
|
|
368
|
-
}
|
|
369
|
-
async function Pt() {
|
|
370
|
-
if (tt("copyAlt", {
|
|
371
|
-
config: I.value,
|
|
372
|
-
dataset: H.value
|
|
373
|
-
}), !I.value.userOptions.callbacks.altCopy) {
|
|
374
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
378
|
-
config: I.value,
|
|
379
|
-
dataset: H.value
|
|
380
|
-
}));
|
|
381
|
-
}
|
|
382
|
-
return me({
|
|
383
|
-
getData: Et,
|
|
384
|
-
getImage: Dt,
|
|
385
|
-
generatePdf: gt,
|
|
386
|
-
generateCsv: Q,
|
|
387
|
-
generateImage: _t,
|
|
388
|
-
generateSvg: Mt,
|
|
389
|
-
toggleTable: Tt,
|
|
390
|
-
toggleAnnotator: Y,
|
|
391
|
-
toggleFullscreen: Ct,
|
|
392
|
-
copyAlt: Pt
|
|
393
|
-
}), (e, t) => (y(), d("div", {
|
|
394
|
-
ref_key: "funnelChart",
|
|
395
|
-
ref: D,
|
|
396
|
-
class: g(`vue-data-ui-component vue-ui-funnel ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
397
|
-
style: v(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
398
|
-
id: `funnel_${O.value}`,
|
|
399
|
-
onMouseenter: t[1] ||= () => w(ft)(!0),
|
|
400
|
-
onMouseleave: t[2] ||= () => w(ft)(!1)
|
|
401
|
-
}, [
|
|
402
|
-
I.value.userOptions.buttons.annotator ? (y(), l(w(Ye), {
|
|
403
|
-
key: 0,
|
|
404
|
-
svgRef: w(R),
|
|
405
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
406
|
-
color: I.value.style.chart.color,
|
|
407
|
-
active: J.value,
|
|
408
|
-
isCursorPointer: dt.value,
|
|
409
|
-
onClose: Y
|
|
410
|
-
}, {
|
|
411
|
-
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
412
|
-
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
|
|
413
|
-
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
|
|
414
|
-
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
|
|
415
|
-
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
|
|
416
|
-
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
|
|
417
|
-
_: 3
|
|
418
|
-
}, 8, [
|
|
419
|
-
"svgRef",
|
|
420
|
-
"backgroundColor",
|
|
421
|
-
"color",
|
|
422
|
-
"active",
|
|
423
|
-
"isCursorPointer"
|
|
424
|
-
])) : u("", !0),
|
|
425
|
-
vt.value ? (y(), d("div", {
|
|
426
|
-
key: 1,
|
|
427
|
-
ref_key: "noTitle",
|
|
428
|
-
ref: at,
|
|
429
|
-
class: "vue-data-ui-no-title-space",
|
|
430
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
431
|
-
}, null, 512)) : u("", !0),
|
|
432
|
-
I.value.style.chart.title.text ? (y(), d("div", {
|
|
433
|
-
key: 2,
|
|
434
|
-
ref_key: "chartTitle",
|
|
435
|
-
ref: st,
|
|
436
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
437
|
-
}, [(y(), l(pe, {
|
|
438
|
-
key: `title_${rt.value}`,
|
|
439
|
-
config: {
|
|
440
|
-
title: {
|
|
441
|
-
cy: "funnel-div-title",
|
|
442
|
-
...I.value.style.chart.title
|
|
443
|
-
},
|
|
444
|
-
subtitle: {
|
|
445
|
-
cy: "funnel-div-subtitle",
|
|
446
|
-
...I.value.style.chart.title.subtitle
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
450
|
-
I.value.userOptions.show && F.value && (w(pt) || w(L)) ? (y(), l(w(Je), {
|
|
451
|
-
ref_key: "userOptionsRef",
|
|
452
|
-
ref: ct,
|
|
453
|
-
key: `user_option_${nt.value}`,
|
|
454
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
455
|
-
color: I.value.style.chart.color,
|
|
456
|
-
isPrinting: w(mt),
|
|
457
|
-
isImaging: w(ht),
|
|
458
|
-
uid: O.value,
|
|
459
|
-
hasTooltip: !1,
|
|
460
|
-
hasPdf: I.value.userOptions.buttons.pdf,
|
|
461
|
-
hasImg: I.value.userOptions.buttons.img,
|
|
462
|
-
hasSvg: I.value.userOptions.buttons.svg,
|
|
463
|
-
hasXls: I.value.userOptions.buttons.csv,
|
|
464
|
-
hasTable: I.value.userOptions.buttons.table,
|
|
465
|
-
hasLabel: !1,
|
|
466
|
-
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
467
|
-
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
468
|
-
isFullscreen: q.value,
|
|
469
|
-
chartElement: D.value,
|
|
470
|
-
position: I.value.userOptions.position,
|
|
471
|
-
titles: { ...I.value.userOptions.buttonTitles },
|
|
472
|
-
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
473
|
-
isAnnotation: J.value,
|
|
474
|
-
callbacks: I.value.userOptions.callbacks,
|
|
475
|
-
printScale: I.value.userOptions.print.scale,
|
|
476
|
-
tableDialog: I.value.table.useDialog,
|
|
477
|
-
isCursorPointer: dt.value,
|
|
478
|
-
onToggleAnnotator: Y,
|
|
479
|
-
onToggleFullscreen: Ct,
|
|
480
|
-
onGeneratePdf: w(gt),
|
|
481
|
-
onGenerateImage: Nt,
|
|
482
|
-
onGenerateSvg: Mt,
|
|
483
|
-
onToggleTable: Tt,
|
|
484
|
-
onGenerateCsv: Q,
|
|
485
|
-
onCopyAlt: Pt,
|
|
486
|
-
style: v({ visibility: w(pt) ? w(L) ? "visible" : "hidden" : "visible" })
|
|
487
|
-
}, xe({ _: 2 }, [
|
|
488
|
-
e.$slots.menuIcon ? {
|
|
489
|
-
name: "menuIcon",
|
|
490
|
-
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(m({
|
|
491
|
-
isOpen: t,
|
|
492
|
-
color: n
|
|
493
|
-
})), void 0, !0)]),
|
|
494
|
-
key: "0"
|
|
495
|
-
} : void 0,
|
|
496
|
-
e.$slots.optionPdf ? {
|
|
497
|
-
name: "optionPdf",
|
|
498
|
-
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
499
|
-
key: "1"
|
|
500
|
-
} : void 0,
|
|
501
|
-
e.$slots.optionCsv ? {
|
|
502
|
-
name: "optionCsv",
|
|
503
|
-
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
504
|
-
key: "2"
|
|
505
|
-
} : void 0,
|
|
506
|
-
e.$slots.optionImg ? {
|
|
507
|
-
name: "optionImg",
|
|
508
|
-
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
509
|
-
key: "3"
|
|
510
|
-
} : void 0,
|
|
511
|
-
e.$slots.optionSvg ? {
|
|
512
|
-
name: "optionSvg",
|
|
513
|
-
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
514
|
-
key: "4"
|
|
515
|
-
} : void 0,
|
|
516
|
-
e.$slots.optionTable ? {
|
|
517
|
-
name: "optionTable",
|
|
518
|
-
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
519
|
-
key: "5"
|
|
520
|
-
} : void 0,
|
|
521
|
-
e.$slots.optionFullscreen ? {
|
|
522
|
-
name: "optionFullscreen",
|
|
523
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(m({
|
|
524
|
-
toggleFullscreen: t,
|
|
525
|
-
isFullscreen: n
|
|
526
|
-
})), void 0, !0)]),
|
|
527
|
-
key: "6"
|
|
528
|
-
} : void 0,
|
|
529
|
-
e.$slots.optionAnnotator ? {
|
|
530
|
-
name: "optionAnnotator",
|
|
531
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(m({
|
|
532
|
-
toggleAnnotator: t,
|
|
533
|
-
isAnnotator: n
|
|
534
|
-
})), void 0, !0)]),
|
|
535
|
-
key: "7"
|
|
536
|
-
} : void 0,
|
|
537
|
-
e.$slots.optionAltCopy ? {
|
|
538
|
-
name: "optionAltCopy",
|
|
539
|
-
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
|
|
540
|
-
key: "8"
|
|
541
|
-
} : void 0,
|
|
542
|
-
e.$slots["custom-menu-before"] ? {
|
|
543
|
-
name: "custom-menu-before",
|
|
544
|
-
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
545
|
-
key: "9"
|
|
546
|
-
} : void 0,
|
|
547
|
-
e.$slots["custom-menu-after"] ? {
|
|
548
|
-
name: "custom-menu-after",
|
|
549
|
-
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
550
|
-
key: "10"
|
|
551
|
-
} : void 0
|
|
552
|
-
]), 1032, [
|
|
553
|
-
"backgroundColor",
|
|
554
|
-
"color",
|
|
555
|
-
"isPrinting",
|
|
556
|
-
"isImaging",
|
|
557
|
-
"uid",
|
|
558
|
-
"hasPdf",
|
|
559
|
-
"hasImg",
|
|
560
|
-
"hasSvg",
|
|
561
|
-
"hasXls",
|
|
562
|
-
"hasTable",
|
|
563
|
-
"hasFullscreen",
|
|
564
|
-
"hasAltCopy",
|
|
565
|
-
"isFullscreen",
|
|
566
|
-
"chartElement",
|
|
567
|
-
"position",
|
|
568
|
-
"titles",
|
|
569
|
-
"hasAnnotator",
|
|
570
|
-
"isAnnotation",
|
|
571
|
-
"callbacks",
|
|
572
|
-
"printScale",
|
|
573
|
-
"tableDialog",
|
|
574
|
-
"isCursorPointer",
|
|
575
|
-
"onGeneratePdf",
|
|
576
|
-
"style"
|
|
577
|
-
])) : u("", !0),
|
|
578
|
-
F.value ? (y(), d("svg", {
|
|
579
|
-
key: 4,
|
|
580
|
-
ref_key: "svgRef",
|
|
581
|
-
ref: R,
|
|
582
|
-
xmlns: w(oe),
|
|
583
|
-
class: g({
|
|
584
|
-
"vue-data-ui-fullscreen--on": q.value,
|
|
585
|
-
"vue-data-ui-fulscreen--off": !q.value
|
|
586
|
-
}),
|
|
587
|
-
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
588
|
-
style: v(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`)
|
|
589
|
-
}, [
|
|
590
|
-
Ce(w(Xe)),
|
|
591
|
-
e.$slots["chart-background"] ? (y(), d("foreignObject", {
|
|
592
|
-
key: 0,
|
|
593
|
-
x: 0,
|
|
594
|
-
y: 0,
|
|
595
|
-
width: V.value.width <= 0 ? 10 : V.value.width,
|
|
596
|
-
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
597
|
-
style: { pointerEvents: "none" }
|
|
598
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : u("", !0),
|
|
599
|
-
f("defs", null, [Ce(_e, {
|
|
600
|
-
t: "linear",
|
|
601
|
-
id: `funnel_area_${O.value}`,
|
|
602
|
-
x1: "0%",
|
|
603
|
-
x2: "100%",
|
|
604
|
-
y1: "0%",
|
|
605
|
-
y2: "0%",
|
|
606
|
-
stops: [
|
|
607
|
-
[
|
|
608
|
-
"0%",
|
|
609
|
-
I.value.style.chart.backgroundColor,
|
|
610
|
-
0
|
|
611
|
-
],
|
|
612
|
-
[
|
|
613
|
-
"20%",
|
|
614
|
-
I.value.style.chart.area.color,
|
|
615
|
-
1
|
|
616
|
-
],
|
|
617
|
-
[
|
|
618
|
-
"100%",
|
|
619
|
-
I.value.style.chart.area.color,
|
|
620
|
-
1
|
|
621
|
-
]
|
|
622
|
-
]
|
|
623
|
-
}, null, 8, ["id", "stops"])]),
|
|
624
|
-
I.value.style.chart.circleLinks.show ? (y(), d("line", h({ key: 1 }, St.value, {
|
|
625
|
-
stroke: I.value.style.chart.circleLinks.color,
|
|
626
|
-
"stroke-width": 12 * I.value.style.chart.circleLinks.widthRatio,
|
|
627
|
-
"stroke-linecap": "round",
|
|
628
|
-
class: { animated: I.value.useCssAnimation },
|
|
629
|
-
style: {
|
|
630
|
-
strokeDasharray: I.value.useCssAnimation ? U.value.height : 0,
|
|
631
|
-
strokeDashoffset: I.value.useCssAnimation ? U.value.height : 0
|
|
632
|
-
}
|
|
633
|
-
}), null, 16, Fe)) : u("", !0),
|
|
634
|
-
(y(!0), d(s, null, x(K.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (y(), d("circle", h({ ref_for: !0 }, {
|
|
635
|
-
cx: e,
|
|
636
|
-
cy: t,
|
|
637
|
-
r: n,
|
|
638
|
-
fill: r
|
|
639
|
-
}, {
|
|
640
|
-
stroke: I.value.style.chart.circles.stroke,
|
|
641
|
-
"stroke-width": I.value.style.chart.circles.strokeWidth,
|
|
642
|
-
class: { animated: I.value.useCssAnimation && !j.value },
|
|
643
|
-
style: { animationDelay: `${150 * i}ms` }
|
|
644
|
-
}), null, 16, Ie))), 256)),
|
|
645
|
-
(y(!0), d(s, null, x(K.value, (e, t) => (y(), d("text", {
|
|
646
|
-
x: e.cx,
|
|
647
|
-
y: e.cy + B.value.circles / 3 + I.value.style.chart.circles.dataLabels.offsetY,
|
|
648
|
-
"text-anchor": "middle",
|
|
649
|
-
"font-size": B.value.circles,
|
|
650
|
-
fill: I.value.style.chart.circles.dataLabels.adaptColorToBackground ? w(ae)(e.color) : I.value.style.chart.circles.dataLabels.color,
|
|
651
|
-
"font-weight": I.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
652
|
-
class: g({ animated: I.value.useCssAnimation && !j.value }),
|
|
653
|
-
style: v({ animationDelay: `${150 * t}ms` })
|
|
654
|
-
}, C(w(o)(I.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, w(a)({
|
|
655
|
-
v: e.proportion * 100,
|
|
656
|
-
s: "%",
|
|
657
|
-
r: I.value.style.chart.circles.dataLabels.rounding
|
|
658
|
-
}), { datapoint: e })), 15, Le))), 256)),
|
|
659
|
-
I.value.style.chart.area.show ? (y(), d("polygon", {
|
|
660
|
-
key: 2,
|
|
661
|
-
points: xt.value,
|
|
662
|
-
fill: `url(#funnel_area_${O.value})`,
|
|
663
|
-
class: g({ animated: I.value.useCssAnimation && !j.value }),
|
|
664
|
-
style: v({ transition: I.value.useCssAnimation ? `all ${150 * H.value.length}ms ease-in` : "none" })
|
|
665
|
-
}, null, 14, Re)) : u("", !0),
|
|
666
|
-
(y(!0), d(s, null, x(K.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (y(), d("rect", h({ ref_for: !0 }, {
|
|
667
|
-
x: e,
|
|
668
|
-
y: t,
|
|
669
|
-
height: n,
|
|
670
|
-
width: r,
|
|
671
|
-
fill: i
|
|
672
|
-
}, {
|
|
673
|
-
stroke: I.value.style.chart.bars.stroke,
|
|
674
|
-
"stroke-width": I.value.style.chart.bars.strokeWidth,
|
|
675
|
-
rx: I.value.style.chart.bars.borderRadius,
|
|
676
|
-
class: { animated: I.value.useCssAnimation && !j.value },
|
|
677
|
-
style: { animationDelay: `${150 * a}ms` }
|
|
678
|
-
}), null, 16, ze))), 256)),
|
|
679
|
-
(y(!0), d(s, null, x(K.value, (e, t) => (y(), d("g", null, [f("text", {
|
|
680
|
-
x: e.x + e.width + I.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
681
|
-
y: e.cy - B.value.names / 2 + I.value.style.chart.bars.dataLabels.name.offsetY,
|
|
682
|
-
"text-anchor": "start",
|
|
683
|
-
"font-size": B.value.names,
|
|
684
|
-
fill: I.value.style.chart.bars.dataLabels.name.color,
|
|
685
|
-
"font-weight": I.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
686
|
-
class: g({ animated: I.value.useCssAnimation && !j.value }),
|
|
687
|
-
style: v({ animationDelay: `${150 * t}ms` })
|
|
688
|
-
}, C(e.name), 15, Be), f("text", {
|
|
689
|
-
x: e.x + e.width + I.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
690
|
-
y: e.cy + B.value.values + I.value.style.chart.bars.dataLabels.value.offsetY,
|
|
691
|
-
"text-anchor": "start",
|
|
692
|
-
"font-size": B.value.values,
|
|
693
|
-
fill: I.value.style.chart.bars.dataLabels.value.color,
|
|
694
|
-
"font-weight": I.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
695
|
-
class: g({ animated: I.value.useCssAnimation && !j.value }),
|
|
696
|
-
style: v({ animationDelay: `${150 * t}ms` })
|
|
697
|
-
}, C(w(o)(I.value.style.chart.bars.dataLabels.value.formatter, e.value, w(a)({
|
|
698
|
-
p: I.value.style.chart.bars.dataLabels.value.prefix,
|
|
699
|
-
v: e.value,
|
|
700
|
-
s: I.value.style.chart.bars.dataLabels.value.suffix,
|
|
701
|
-
r: I.value.style.chart.bars.dataLabels.value.rounding
|
|
702
|
-
}), { datapoint: e })), 15, Ve)]))), 256)),
|
|
703
|
-
S(e.$slots, "svg", { svg: {
|
|
704
|
-
...V.value,
|
|
705
|
-
isPrintingImg: w(mt) || w(ht) || N.value,
|
|
706
|
-
isPrintingSvg: P.value
|
|
707
|
-
} }, void 0, !0)
|
|
708
|
-
], 14, Ne)) : u("", !0),
|
|
709
|
-
e.$slots.watermark ? (y(), d("div", He, [S(e.$slots, "watermark", _(m({ isPrinting: w(mt) || w(ht) || N.value || P.value })), void 0, !0)])) : u("", !0),
|
|
710
|
-
F.value ? u("", !0) : (y(), l(w(Ge), {
|
|
711
|
-
key: 6,
|
|
712
|
-
config: {
|
|
713
|
-
type: "verticalBar",
|
|
714
|
-
style: {
|
|
715
|
-
backgroundColor: I.value.style.chart.backgroundColor,
|
|
716
|
-
verticalBar: {
|
|
717
|
-
axis: { color: "#CCCCCC" },
|
|
718
|
-
color: "#CCCCCC"
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
}, null, 8, ["config"])),
|
|
723
|
-
e.$slots.source ? (y(), d("div", {
|
|
724
|
-
key: 7,
|
|
725
|
-
ref_key: "source",
|
|
726
|
-
ref: ot,
|
|
727
|
-
dir: "auto"
|
|
728
|
-
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
729
|
-
F.value && I.value.userOptions.buttons.table ? (y(), l(De($.value.component), h({ key: 8 }, $.value.props, {
|
|
730
|
-
ref_key: "tableUnit",
|
|
731
|
-
ref: M,
|
|
732
|
-
onClose: Ot
|
|
733
|
-
}), xe({
|
|
734
|
-
content: T(() => [(y(), l(w(qe), {
|
|
735
|
-
key: `table_${it.value}`,
|
|
736
|
-
colNames: Z.value.colNames,
|
|
737
|
-
head: Z.value.head,
|
|
738
|
-
body: Z.value.body,
|
|
739
|
-
config: Z.value.config,
|
|
740
|
-
title: I.value.table.useDialog ? "" : $.value.title,
|
|
741
|
-
withCloseButton: !I.value.table.useDialog,
|
|
742
|
-
onClose: Ot
|
|
743
|
-
}, {
|
|
744
|
-
th: T(({ th: e }) => [f("div", {
|
|
745
|
-
innerHTML: e,
|
|
746
|
-
style: {
|
|
747
|
-
display: "flex",
|
|
748
|
-
"align-items": "center"
|
|
749
|
-
}
|
|
750
|
-
}, null, 8, Ue)]),
|
|
751
|
-
td: T(({ td: e }) => [Se(C(e.name ? e.name : e), 1)]),
|
|
752
|
-
_: 1
|
|
753
|
-
}, 8, [
|
|
754
|
-
"colNames",
|
|
755
|
-
"head",
|
|
756
|
-
"body",
|
|
757
|
-
"config",
|
|
758
|
-
"title",
|
|
759
|
-
"withCloseButton"
|
|
760
|
-
]))]),
|
|
761
|
-
_: 2
|
|
762
|
-
}, [I.value.table.useDialog ? {
|
|
763
|
-
name: "title",
|
|
764
|
-
fn: T(() => [Se(C($.value.title), 1)]),
|
|
765
|
-
key: "0"
|
|
766
|
-
} : void 0, I.value.table.useDialog ? {
|
|
767
|
-
name: "actions",
|
|
768
|
-
fn: T(() => [f("button", {
|
|
769
|
-
tabindex: "0",
|
|
770
|
-
class: "vue-ui-user-options-button",
|
|
771
|
-
onClick: t[0] ||= (e) => Q(I.value.userOptions.callbacks.csv)
|
|
772
|
-
}, [Ce(w(We), {
|
|
773
|
-
name: "fileCsv",
|
|
774
|
-
stroke: $.value.props.color
|
|
775
|
-
}, null, 8, ["stroke"])])]),
|
|
776
|
-
key: "1"
|
|
777
|
-
} : void 0]), 1040)) : u("", !0)
|
|
778
|
-
], 46, Me));
|
|
779
|
-
}
|
|
780
|
-
}, [["__scopeId", "data-v-cc4bcc61"]]);
|
|
781
|
-
//#endregion
|
|
782
|
-
export { je as n, We as t };
|