vue-data-ui 3.23.0 → 3.23.2
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-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
- package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
- package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
- package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
- package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
- package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
- package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
- package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
- package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
- package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
- package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
- package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
- package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
- package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
- package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
- package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
- package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
- package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
- package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
- package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
- package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
- package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
- package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
- package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
- package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
- package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
- package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
- package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
- package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
- package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
- package/dist/vue-data-ui.js +74 -74
- package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
- package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
- package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
- package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
- package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
- package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
- package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
- package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
- package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
- package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
- package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
- package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
- package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
- package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
- package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
- package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
- package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
- package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
- package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
- package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
- package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
- package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
- package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
- package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
- package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
- package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
- package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/vue-ui-wheel-DrefGLos.js +871 -0
- package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
- package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
- package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
- package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
- package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
- package/package.json +4 -4
- package/dist/Slicer-5yIrdoJv.js +0 -1149
- package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
- package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
- package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
- package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
- package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
- package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
- package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
- package/dist/vue-ui-funnel-CjYosIik.js +0 -797
- package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
- package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
- package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
- package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
- package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
- package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
- package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
- package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
- package/dist/vue-ui-table-rFy16bp0.js +0 -1347
- package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
- package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
- package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
|
@@ -1,797 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, D as n, Ot as r, S as i, X as a, i as o, jt as ee, pt as te, q as ne, qt as s, r as re, t as ie, tt as ae } from "./lib-BuMGJ_a0.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-BilxnBNr.js";
|
|
5
|
-
import { t as le } from "./usePrinter-BFvi4jVy.js";
|
|
6
|
-
import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
-
import { t as de } from "./useNestedProp--NSEmhOH.js";
|
|
8
|
-
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as pe } from "./img-DIQG5q8T.js";
|
|
10
|
-
import { n as me } from "./Title-BODtwViI.js";
|
|
11
|
-
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
-
import { t as ve } from "./DefGrad-DVBqDjhO.js";
|
|
14
|
-
import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as be } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
-
import { t as Se } from "./vue_ui_funnel-_Og4EEkO.js";
|
|
18
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as Te, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as g, nextTick as Ee, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as De, onMounted as Oe, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as ke, shallowRef as Ae, toDisplayString as w, unref as T, useCssVars as je, watch as Me, withCtx as E } from "vue";
|
|
19
|
-
//#region src/components/vue-ui-funnel.vue
|
|
20
|
-
var Ne = /* @__PURE__ */ e({ default: () => Ke }), Pe = ["id"], Fe = ["xmlns", "viewBox"], Ie = ["width", "height"], Le = ["stroke", "stroke-width"], Re = ["stroke", "stroke-width"], ze = [
|
|
21
|
-
"x",
|
|
22
|
-
"y",
|
|
23
|
-
"font-size",
|
|
24
|
-
"fill",
|
|
25
|
-
"font-weight"
|
|
26
|
-
], Be = ["points", "fill"], Ve = [
|
|
27
|
-
"stroke",
|
|
28
|
-
"stroke-width",
|
|
29
|
-
"rx"
|
|
30
|
-
], He = [
|
|
31
|
-
"x",
|
|
32
|
-
"y",
|
|
33
|
-
"font-size",
|
|
34
|
-
"fill",
|
|
35
|
-
"font-weight"
|
|
36
|
-
], Ue = [
|
|
37
|
-
"x",
|
|
38
|
-
"y",
|
|
39
|
-
"font-size",
|
|
40
|
-
"fill",
|
|
41
|
-
"font-weight"
|
|
42
|
-
], We = {
|
|
43
|
-
key: 5,
|
|
44
|
-
class: "vue-data-ui-watermark"
|
|
45
|
-
}, Ge = ["innerHTML"], Ke = /*#__PURE__*/ he({
|
|
46
|
-
__name: "vue-ui-funnel",
|
|
47
|
-
props: {
|
|
48
|
-
config: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default() {
|
|
51
|
-
return {};
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
dataset: {
|
|
55
|
-
type: Array,
|
|
56
|
-
default() {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
emits: ["copyAlt"],
|
|
62
|
-
setup(e, { expose: he, emit: Ne }) {
|
|
63
|
-
je((e) => ({ v1979a330: Dt.value }));
|
|
64
|
-
let Ke = m(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), qe = m(() => import("./vue-ui-skeleton-B9ZP1w-i.js").then((e) => e.n)), Je = m(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), Ye = m(() => import("./DataTable-D4tM9s5Y.js")), Xe = m(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Ze = m(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Qe = m(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), $e = m(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_funnel: et } = ce(), { isThemeValid: tt, warnInvalidTheme: nt } = fe(), D = xe(), O = e, rt = Ne, k = x(null), A = x(ne()), it = x(0), at = x(0), ot = x(0), st = x(null), ct = x(null), lt = x(null), j = Ae(null), M = Ae(null), N = x(!1), P = x(null), ut = x(null), F = x(!1), I = x(!1), L = l(() => !!O.dataset && O.dataset.length);
|
|
65
|
-
Oe(dt);
|
|
66
|
-
function dt() {
|
|
67
|
-
if (ee(O.dataset) ? ae({
|
|
68
|
-
componentName: "VueUiFunnel",
|
|
69
|
-
type: "dataset"
|
|
70
|
-
}) : O.dataset.forEach((e, t) => {
|
|
71
|
-
te({
|
|
72
|
-
datasetObject: e,
|
|
73
|
-
requiredAttributes: ["name", "value"]
|
|
74
|
-
}).forEach((e) => {
|
|
75
|
-
L.value = !1, ae({
|
|
76
|
-
componentName: "VueUiFunnel",
|
|
77
|
-
type: "datasetSerieAttribute",
|
|
78
|
-
property: e,
|
|
79
|
-
index: t
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}), R.value.responsive) {
|
|
83
|
-
let e = ge(() => {
|
|
84
|
-
let { width: e, height: t } = _e({
|
|
85
|
-
chart: k.value,
|
|
86
|
-
title: R.value.style.chart.title.text ? lt.value : null,
|
|
87
|
-
source: ct.value,
|
|
88
|
-
noTitle: st.value
|
|
89
|
-
});
|
|
90
|
-
requestAnimationFrame(() => {
|
|
91
|
-
H.value.height = t, H.value.width = e, W.value = St(), R.value.responsiveProportionalSizing ? (V.value.circles = s({
|
|
92
|
-
relator: Math.min(e, t),
|
|
93
|
-
adjuster: 600,
|
|
94
|
-
source: R.value.style.chart.circles.dataLabels.fontSize,
|
|
95
|
-
threshold: 10,
|
|
96
|
-
fallback: 10
|
|
97
|
-
}), V.value.names = s({
|
|
98
|
-
relator: Math.min(e, t),
|
|
99
|
-
adjuster: 600,
|
|
100
|
-
source: R.value.style.chart.bars.dataLabels.name.fontSize,
|
|
101
|
-
threshold: 10,
|
|
102
|
-
fallback: 10
|
|
103
|
-
}), V.value.values = s({
|
|
104
|
-
relator: Math.min(e, t),
|
|
105
|
-
adjuster: 600,
|
|
106
|
-
source: R.value.style.chart.bars.dataLabels.value.fontSize,
|
|
107
|
-
threshold: 10,
|
|
108
|
-
fallback: 10
|
|
109
|
-
})) : (V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize);
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = k.value.parentNode, j.value.observe(M.value);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
De(() => {
|
|
116
|
-
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
|
|
117
|
-
});
|
|
118
|
-
function ft() {
|
|
119
|
-
let e = de({
|
|
120
|
-
userConfig: O.config,
|
|
121
|
-
defaultConfig: et
|
|
122
|
-
}), t = e.theme;
|
|
123
|
-
if (!t) return e;
|
|
124
|
-
if (!tt.value(e)) return nt(e), e;
|
|
125
|
-
let n = de({
|
|
126
|
-
userConfig: Se[t] || O.config,
|
|
127
|
-
defaultConfig: e
|
|
128
|
-
});
|
|
129
|
-
return de({
|
|
130
|
-
userConfig: O.config,
|
|
131
|
-
defaultConfig: n
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
let R = l({
|
|
135
|
-
get: () => ft(),
|
|
136
|
-
set: (e) => e
|
|
137
|
-
});
|
|
138
|
-
oe({
|
|
139
|
-
config: () => R.value,
|
|
140
|
-
dataset: () => O.dataset,
|
|
141
|
-
component: "VueUiFunnel",
|
|
142
|
-
rules: [se.emptyArray, {
|
|
143
|
-
test: (e) => e.length > 10,
|
|
144
|
-
message: [
|
|
145
|
-
"👀 The dataset has a length > 10. Consider:",
|
|
146
|
-
"",
|
|
147
|
-
"▶️ Aggregating some datapoints into broader categories"
|
|
148
|
-
]
|
|
149
|
-
}]
|
|
150
|
-
});
|
|
151
|
-
let pt = l(() => R.value.userOptions.useCursorPointer), { userOptionsVisible: mt, setUserOptionsVisibility: ht, keepUserOptionState: gt } = ye({ config: R.value }), { svgRef: _t } = be({ config: R.value.style.chart.title });
|
|
152
|
-
Me(() => O.config, (e) => {
|
|
153
|
-
R.value = ft(), mt.value = !R.value.userOptions.showOnChartHover, dt(), at.value += 1, ot.value += 1, V.value.circles = R.value.style.chart.circles.dataLabels.fontSize, V.value.names = R.value.style.chart.bars.dataLabels.name.fontSize, V.value.values = R.value.style.chart.bars.dataLabels.value.fontSize, B.value.showTable = R.value.table.show;
|
|
154
|
-
}, { deep: !0 });
|
|
155
|
-
let { isPrinting: z, isImaging: vt, generatePdf: yt, generateImage: bt } = le({
|
|
156
|
-
elementId: `funnel_${A.value}`,
|
|
157
|
-
fileName: R.value.style.chart.title.text || "vue-ui-funnel",
|
|
158
|
-
options: R.value.userOptions.print
|
|
159
|
-
}), xt = l(() => R.value.userOptions.show && !R.value.style.chart.title.text), B = x({ showTable: R.value.table.show }), V = x({
|
|
160
|
-
circles: R.value.style.chart.circles.dataLabels.fontSize,
|
|
161
|
-
names: R.value.style.chart.bars.dataLabels.name.fontSize,
|
|
162
|
-
values: R.value.style.chart.bars.dataLabels.value.fontSize
|
|
163
|
-
}), H = l({
|
|
164
|
-
get: () => ({
|
|
165
|
-
height: R.value.style.chart.height,
|
|
166
|
-
width: R.value.style.chart.width
|
|
167
|
-
}),
|
|
168
|
-
set: (e) => e
|
|
169
|
-
}), U = l(() => L.value ? O.dataset.map((e, t) => ({
|
|
170
|
-
...e,
|
|
171
|
-
color: e.color ? i(e.color) : r(R.value.style.chart.bars.defaultColor, t / O.dataset.length)
|
|
172
|
-
})) : []);
|
|
173
|
-
setTimeout(() => {
|
|
174
|
-
N.value = !0;
|
|
175
|
-
}, U.value.length * 150);
|
|
176
|
-
function St() {
|
|
177
|
-
let e = R.value.style.chart.padding.left, t = R.value.style.chart.padding.top;
|
|
178
|
-
return {
|
|
179
|
-
left: e,
|
|
180
|
-
top: t,
|
|
181
|
-
right: H.value.width - R.value.style.chart.padding.right,
|
|
182
|
-
bottom: H.value.height - R.value.style.chart.padding.bottom,
|
|
183
|
-
width: H.value.width - e - R.value.style.chart.padding.right,
|
|
184
|
-
height: H.value.height - t - R.value.style.chart.padding.bottom
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
let W = x(St()), G = l(() => W.value.height / O.dataset.length), K = l(() => G.value * R.value.style.chart.bars.gapRatio), Ct = l(() => W.value.width * R.value.style.chart.barCircleSpacingRatio), q = l(() => U.value.map((e, t) => {
|
|
188
|
-
let n = G.value - K.value, r = W.value.top + K.value / 2 * t + (G.value - K.value / 2) * t + K.value / 2, i = e.value / U.value[0].value, a = (W.value.width - n - Ct.value) * (e.value / U.value[0].value);
|
|
189
|
-
return {
|
|
190
|
-
...e,
|
|
191
|
-
cx: W.value.left + n / 2,
|
|
192
|
-
cy: r + n / 2,
|
|
193
|
-
datapointIndex: t,
|
|
194
|
-
fill: e.color,
|
|
195
|
-
height: Math.max(n, 0),
|
|
196
|
-
proportion: i,
|
|
197
|
-
r: Math.max(n / 2, 0),
|
|
198
|
-
width: Math.max(a, 0),
|
|
199
|
-
x: W.value.left + n + Ct.value,
|
|
200
|
-
y: r
|
|
201
|
-
};
|
|
202
|
-
})), wt = l(() => {
|
|
203
|
-
let e = q.value.map((e) => `${e.x + e.width},${e.y + (G.value - K.value) / 2}`);
|
|
204
|
-
return `${q.value[0].x},${q.value[0].y + (G.value - K.value) / 2} ${e.toString()} ${q.value.at(-1).x},${q.value.at(-1).y + (G.value - K.value) / 2}`;
|
|
205
|
-
}), Tt = l(() => ({
|
|
206
|
-
x1: q.value[0].cx,
|
|
207
|
-
y1: q.value[0].cy,
|
|
208
|
-
x2: q.value.at(-1).cx,
|
|
209
|
-
y2: q.value.at(-1).cy
|
|
210
|
-
})), J = x(!1);
|
|
211
|
-
function Et(e) {
|
|
212
|
-
J.value = e, it.value += 1;
|
|
213
|
-
}
|
|
214
|
-
let Dt = l(() => `${U.value.length * 150}ms`), Y = x(!1);
|
|
215
|
-
function Ot() {
|
|
216
|
-
Y.value = !Y.value;
|
|
217
|
-
}
|
|
218
|
-
function kt() {
|
|
219
|
-
B.value.showTable = !B.value.showTable;
|
|
220
|
-
}
|
|
221
|
-
let X = l(() => ({
|
|
222
|
-
head: U.value.map((e) => ({
|
|
223
|
-
name: e.name,
|
|
224
|
-
color: e.color
|
|
225
|
-
})),
|
|
226
|
-
body: U.value.map((e) => e.value)
|
|
227
|
-
})), Z = l(() => {
|
|
228
|
-
let e = [
|
|
229
|
-
R.value.table.columnNames.series,
|
|
230
|
-
R.value.table.columnNames.value,
|
|
231
|
-
R.value.table.columnNames.percentage
|
|
232
|
-
], t = X.value.head.map((e, t) => {
|
|
233
|
-
let n = o(R.value.style.chart.bars.dataLabels.value.formatter, X.value.body[t], a({
|
|
234
|
-
p: R.value.style.chart.bars.dataLabels.value.prefix,
|
|
235
|
-
v: X.value.body[t],
|
|
236
|
-
s: R.value.style.chart.bars.dataLabels.value.suffix,
|
|
237
|
-
r: R.value.table.td.roundingValue
|
|
238
|
-
}), { datapoint: q.value[t] }), r = o(R.value.style.chart.circles.dataLabels.formatter, q.value[t].proportion * 100, a({
|
|
239
|
-
v: q.value[t].proportion * 100,
|
|
240
|
-
s: "%",
|
|
241
|
-
r: R.value.table.td.roundingPercentage
|
|
242
|
-
}), { datapoint: q.value[t] });
|
|
243
|
-
return [
|
|
244
|
-
{
|
|
245
|
-
color: e.color,
|
|
246
|
-
name: e.name
|
|
247
|
-
},
|
|
248
|
-
n,
|
|
249
|
-
r
|
|
250
|
-
];
|
|
251
|
-
}), n = {
|
|
252
|
-
th: {
|
|
253
|
-
backgroundColor: R.value.table.th.backgroundColor,
|
|
254
|
-
color: R.value.table.th.color,
|
|
255
|
-
outline: R.value.table.th.outline
|
|
256
|
-
},
|
|
257
|
-
td: {
|
|
258
|
-
backgroundColor: R.value.table.td.backgroundColor,
|
|
259
|
-
color: R.value.table.td.color,
|
|
260
|
-
outline: R.value.table.td.outline
|
|
261
|
-
},
|
|
262
|
-
breakpoint: R.value.table.responsiveBreakpoint
|
|
263
|
-
};
|
|
264
|
-
return {
|
|
265
|
-
colNames: [
|
|
266
|
-
R.value.table.columnNames.series,
|
|
267
|
-
R.value.table.columnNames.value,
|
|
268
|
-
R.value.table.columnNames.percentage
|
|
269
|
-
],
|
|
270
|
-
head: e,
|
|
271
|
-
body: t,
|
|
272
|
-
config: n
|
|
273
|
-
};
|
|
274
|
-
});
|
|
275
|
-
function Q(e = null) {
|
|
276
|
-
Ee(() => {
|
|
277
|
-
let r = X.value.head.map((e, t) => [
|
|
278
|
-
[e.name],
|
|
279
|
-
[X.value.body[t]],
|
|
280
|
-
[q.value[t].proportion * 100]
|
|
281
|
-
]), i = n([
|
|
282
|
-
[R.value.style.chart.title.text],
|
|
283
|
-
[R.value.style.chart.title.subtitle.text],
|
|
284
|
-
[
|
|
285
|
-
[R.value.table.columnNames.series],
|
|
286
|
-
[R.value.table.columnNames.value],
|
|
287
|
-
["%"]
|
|
288
|
-
]
|
|
289
|
-
].concat(r));
|
|
290
|
-
e ? e(i) : t({
|
|
291
|
-
csvContent: i,
|
|
292
|
-
title: R.value.style.chart.title.text || "vue-ui-funnel"
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
function At() {
|
|
297
|
-
return U.value;
|
|
298
|
-
}
|
|
299
|
-
async function jt({ scale: e = 2 } = {}) {
|
|
300
|
-
if (!k.value) return;
|
|
301
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
302
|
-
domElement: k.value,
|
|
303
|
-
base64: !0,
|
|
304
|
-
img: !0,
|
|
305
|
-
scale: e
|
|
306
|
-
});
|
|
307
|
-
return {
|
|
308
|
-
imageUri: i,
|
|
309
|
-
base64: a,
|
|
310
|
-
title: R.value.style.chart.title.text,
|
|
311
|
-
width: t,
|
|
312
|
-
height: n,
|
|
313
|
-
aspectRatio: r
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
let $ = l(() => {
|
|
317
|
-
let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
|
|
318
|
-
return {
|
|
319
|
-
component: e ? $e : Je,
|
|
320
|
-
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
321
|
-
props: e ? {
|
|
322
|
-
backgroundColor: R.value.table.th.backgroundColor,
|
|
323
|
-
color: R.value.table.th.color,
|
|
324
|
-
headerColor: R.value.table.th.color,
|
|
325
|
-
headerBg: R.value.table.th.backgroundColor,
|
|
326
|
-
isFullscreen: J.value,
|
|
327
|
-
fullscreenParent: k.value,
|
|
328
|
-
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
329
|
-
} : {
|
|
330
|
-
hideDetails: !0,
|
|
331
|
-
config: {
|
|
332
|
-
open: t,
|
|
333
|
-
maxHeight: 1e4,
|
|
334
|
-
body: {
|
|
335
|
-
backgroundColor: R.value.style.chart.backgroundColor,
|
|
336
|
-
color: R.value.style.chart.color
|
|
337
|
-
},
|
|
338
|
-
head: {
|
|
339
|
-
backgroundColor: R.value.style.chart.backgroundColor,
|
|
340
|
-
color: R.value.style.chart.color
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
});
|
|
346
|
-
Me(() => B.value.showTable, (e) => {
|
|
347
|
-
R.value.table.show || (e && R.value.table.useDialog && P.value ? P.value.open() : "close" in P.value && P.value.close());
|
|
348
|
-
});
|
|
349
|
-
function Mt() {
|
|
350
|
-
B.value.showTable = !1, ut.value && ut.value.setTableIconState(!1);
|
|
351
|
-
}
|
|
352
|
-
let Nt = l(() => R.value.style.chart.backgroundColor), { exportSvg: Pt, getSvg: Ft } = ue({
|
|
353
|
-
svg: _t,
|
|
354
|
-
title: l(() => R.value.style.chart.title),
|
|
355
|
-
backgroundColor: Nt
|
|
356
|
-
});
|
|
357
|
-
async function It({ isCb: e }) {
|
|
358
|
-
I.value = !0, await Ee();
|
|
359
|
-
try {
|
|
360
|
-
if (e) {
|
|
361
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Ft();
|
|
362
|
-
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
363
|
-
blob: e,
|
|
364
|
-
url: t,
|
|
365
|
-
text: n,
|
|
366
|
-
dataUrl: r
|
|
367
|
-
}));
|
|
368
|
-
} else await Promise.resolve(Pt());
|
|
369
|
-
} finally {
|
|
370
|
-
I.value = !1;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
function Lt(e) {
|
|
374
|
-
if (e?.stage === "start") {
|
|
375
|
-
F.value = !0;
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
if (e?.stage === "end") {
|
|
379
|
-
F.value = !1;
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
bt();
|
|
383
|
-
}
|
|
384
|
-
async function Rt() {
|
|
385
|
-
if (rt("copyAlt", {
|
|
386
|
-
config: R.value,
|
|
387
|
-
dataset: U.value
|
|
388
|
-
}), !R.value.userOptions.callbacks.altCopy) {
|
|
389
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
393
|
-
config: R.value,
|
|
394
|
-
dataset: U.value
|
|
395
|
-
}));
|
|
396
|
-
}
|
|
397
|
-
return he({
|
|
398
|
-
getData: At,
|
|
399
|
-
getImage: jt,
|
|
400
|
-
generatePdf: yt,
|
|
401
|
-
generateCsv: Q,
|
|
402
|
-
generateImage: bt,
|
|
403
|
-
generateSvg: It,
|
|
404
|
-
toggleTable: kt,
|
|
405
|
-
toggleAnnotator: Ot,
|
|
406
|
-
toggleFullscreen: Et,
|
|
407
|
-
copyAlt: Rt
|
|
408
|
-
}), (e, t) => (b(), f("div", {
|
|
409
|
-
ref_key: "funnelChart",
|
|
410
|
-
ref: k,
|
|
411
|
-
class: _(`vue-data-ui-component vue-ui-funnel ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
412
|
-
style: y(`font-family:${R.value.style.fontFamily};width:100%; ${R.value.responsive ? "height:100%;" : ""} text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
413
|
-
id: `funnel_${A.value}`,
|
|
414
|
-
onMouseenter: t[1] ||= () => T(ht)(!0),
|
|
415
|
-
onMouseleave: t[2] ||= () => T(ht)(!1)
|
|
416
|
-
}, [
|
|
417
|
-
R.value.userOptions.buttons.annotator ? (b(), u(T(Ze), {
|
|
418
|
-
key: 0,
|
|
419
|
-
svgRef: T(_t),
|
|
420
|
-
backgroundColor: R.value.style.chart.backgroundColor,
|
|
421
|
-
color: R.value.style.chart.color,
|
|
422
|
-
active: Y.value,
|
|
423
|
-
isCursorPointer: pt.value,
|
|
424
|
-
onClose: Ot
|
|
425
|
-
}, {
|
|
426
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
427
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(h({ color: t })), void 0, !0)]),
|
|
428
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(h({ mode: t })), void 0, !0)]),
|
|
429
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(h({ disabled: t })), void 0, !0)]),
|
|
430
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(h({ disabled: t })), void 0, !0)]),
|
|
431
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(h({ disabled: t })), void 0, !0)]),
|
|
432
|
-
_: 3
|
|
433
|
-
}, 8, [
|
|
434
|
-
"svgRef",
|
|
435
|
-
"backgroundColor",
|
|
436
|
-
"color",
|
|
437
|
-
"active",
|
|
438
|
-
"isCursorPointer"
|
|
439
|
-
])) : d("", !0),
|
|
440
|
-
xt.value ? (b(), f("div", {
|
|
441
|
-
key: 1,
|
|
442
|
-
ref_key: "noTitle",
|
|
443
|
-
ref: st,
|
|
444
|
-
class: "vue-data-ui-no-title-space",
|
|
445
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
446
|
-
}, null, 512)) : d("", !0),
|
|
447
|
-
R.value.style.chart.title.text ? (b(), f("div", {
|
|
448
|
-
key: 2,
|
|
449
|
-
ref_key: "chartTitle",
|
|
450
|
-
ref: lt,
|
|
451
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
452
|
-
}, [(b(), u(me, {
|
|
453
|
-
key: `title_${at.value}`,
|
|
454
|
-
config: {
|
|
455
|
-
title: {
|
|
456
|
-
cy: "funnel-div-title",
|
|
457
|
-
...R.value.style.chart.title
|
|
458
|
-
},
|
|
459
|
-
subtitle: {
|
|
460
|
-
cy: "funnel-div-subtitle",
|
|
461
|
-
...R.value.style.chart.title.subtitle
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
465
|
-
R.value.userOptions.show && L.value && (T(gt) || T(mt)) ? (b(), u(T(Xe), {
|
|
466
|
-
ref_key: "userOptionsRef",
|
|
467
|
-
ref: ut,
|
|
468
|
-
key: `user_option_${it.value}`,
|
|
469
|
-
backgroundColor: R.value.style.chart.backgroundColor,
|
|
470
|
-
color: R.value.style.chart.color,
|
|
471
|
-
isPrinting: T(z),
|
|
472
|
-
isImaging: T(vt),
|
|
473
|
-
uid: A.value,
|
|
474
|
-
hasTooltip: !1,
|
|
475
|
-
hasPdf: R.value.userOptions.buttons.pdf,
|
|
476
|
-
hasImg: R.value.userOptions.buttons.img,
|
|
477
|
-
hasSvg: R.value.userOptions.buttons.svg,
|
|
478
|
-
hasXls: R.value.userOptions.buttons.csv,
|
|
479
|
-
hasTable: R.value.userOptions.buttons.table,
|
|
480
|
-
hasLabel: !1,
|
|
481
|
-
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
482
|
-
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
483
|
-
isFullscreen: J.value,
|
|
484
|
-
chartElement: k.value,
|
|
485
|
-
position: R.value.userOptions.position,
|
|
486
|
-
titles: { ...R.value.userOptions.buttonTitles },
|
|
487
|
-
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
488
|
-
isAnnotation: Y.value,
|
|
489
|
-
callbacks: R.value.userOptions.callbacks,
|
|
490
|
-
printScale: R.value.userOptions.print.scale,
|
|
491
|
-
tableDialog: R.value.table.useDialog,
|
|
492
|
-
isCursorPointer: pt.value,
|
|
493
|
-
onToggleAnnotator: Ot,
|
|
494
|
-
onToggleFullscreen: Et,
|
|
495
|
-
onGeneratePdf: T(yt),
|
|
496
|
-
onGenerateImage: Lt,
|
|
497
|
-
onGenerateSvg: It,
|
|
498
|
-
onToggleTable: kt,
|
|
499
|
-
onGenerateCsv: Q,
|
|
500
|
-
onCopyAlt: Rt,
|
|
501
|
-
style: y({ visibility: T(gt) ? T(mt) ? "visible" : "hidden" : "visible" })
|
|
502
|
-
}, Ce({ _: 2 }, [
|
|
503
|
-
e.$slots.menuIcon ? {
|
|
504
|
-
name: "menuIcon",
|
|
505
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(h({
|
|
506
|
-
isOpen: t,
|
|
507
|
-
color: n
|
|
508
|
-
})), void 0, !0)]),
|
|
509
|
-
key: "0"
|
|
510
|
-
} : void 0,
|
|
511
|
-
e.$slots.optionPdf ? {
|
|
512
|
-
name: "optionPdf",
|
|
513
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
514
|
-
key: "1"
|
|
515
|
-
} : void 0,
|
|
516
|
-
e.$slots.optionCsv ? {
|
|
517
|
-
name: "optionCsv",
|
|
518
|
-
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
519
|
-
key: "2"
|
|
520
|
-
} : void 0,
|
|
521
|
-
e.$slots.optionImg ? {
|
|
522
|
-
name: "optionImg",
|
|
523
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
524
|
-
key: "3"
|
|
525
|
-
} : void 0,
|
|
526
|
-
e.$slots.optionSvg ? {
|
|
527
|
-
name: "optionSvg",
|
|
528
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
529
|
-
key: "4"
|
|
530
|
-
} : void 0,
|
|
531
|
-
e.$slots.optionTable ? {
|
|
532
|
-
name: "optionTable",
|
|
533
|
-
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
534
|
-
key: "5"
|
|
535
|
-
} : void 0,
|
|
536
|
-
e.$slots.optionFullscreen ? {
|
|
537
|
-
name: "optionFullscreen",
|
|
538
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(h({
|
|
539
|
-
toggleFullscreen: t,
|
|
540
|
-
isFullscreen: n
|
|
541
|
-
})), void 0, !0)]),
|
|
542
|
-
key: "6"
|
|
543
|
-
} : void 0,
|
|
544
|
-
e.$slots.optionAnnotator ? {
|
|
545
|
-
name: "optionAnnotator",
|
|
546
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(h({
|
|
547
|
-
toggleAnnotator: t,
|
|
548
|
-
isAnnotator: n
|
|
549
|
-
})), void 0, !0)]),
|
|
550
|
-
key: "7"
|
|
551
|
-
} : void 0,
|
|
552
|
-
e.$slots.optionAltCopy ? {
|
|
553
|
-
name: "optionAltCopy",
|
|
554
|
-
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(h({ altCopy: t })), void 0, !0)]),
|
|
555
|
-
key: "8"
|
|
556
|
-
} : void 0,
|
|
557
|
-
e.$slots["custom-menu-before"] ? {
|
|
558
|
-
name: "custom-menu-before",
|
|
559
|
-
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
560
|
-
key: "9"
|
|
561
|
-
} : void 0,
|
|
562
|
-
e.$slots["custom-menu-after"] ? {
|
|
563
|
-
name: "custom-menu-after",
|
|
564
|
-
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
565
|
-
key: "10"
|
|
566
|
-
} : void 0
|
|
567
|
-
]), 1032, [
|
|
568
|
-
"backgroundColor",
|
|
569
|
-
"color",
|
|
570
|
-
"isPrinting",
|
|
571
|
-
"isImaging",
|
|
572
|
-
"uid",
|
|
573
|
-
"hasPdf",
|
|
574
|
-
"hasImg",
|
|
575
|
-
"hasSvg",
|
|
576
|
-
"hasXls",
|
|
577
|
-
"hasTable",
|
|
578
|
-
"hasFullscreen",
|
|
579
|
-
"hasAltCopy",
|
|
580
|
-
"isFullscreen",
|
|
581
|
-
"chartElement",
|
|
582
|
-
"position",
|
|
583
|
-
"titles",
|
|
584
|
-
"hasAnnotator",
|
|
585
|
-
"isAnnotation",
|
|
586
|
-
"callbacks",
|
|
587
|
-
"printScale",
|
|
588
|
-
"tableDialog",
|
|
589
|
-
"isCursorPointer",
|
|
590
|
-
"onGeneratePdf",
|
|
591
|
-
"style"
|
|
592
|
-
])) : d("", !0),
|
|
593
|
-
L.value ? (b(), f("svg", {
|
|
594
|
-
key: 4,
|
|
595
|
-
ref_key: "svgRef",
|
|
596
|
-
ref: _t,
|
|
597
|
-
xmlns: T(ie),
|
|
598
|
-
class: _({
|
|
599
|
-
"vue-data-ui-fullscreen--on": J.value,
|
|
600
|
-
"vue-data-ui-fulscreen--off": !J.value
|
|
601
|
-
}),
|
|
602
|
-
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
603
|
-
style: y(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color}`)
|
|
604
|
-
}, [
|
|
605
|
-
Te(T(Qe)),
|
|
606
|
-
e.$slots["chart-background"] ? (b(), f("foreignObject", {
|
|
607
|
-
key: 0,
|
|
608
|
-
x: 0,
|
|
609
|
-
y: 0,
|
|
610
|
-
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
611
|
-
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
612
|
-
style: { pointerEvents: "none" }
|
|
613
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ie)) : d("", !0),
|
|
614
|
-
p("defs", null, [Te(ve, {
|
|
615
|
-
t: "linear",
|
|
616
|
-
id: `funnel_area_${A.value}`,
|
|
617
|
-
x1: "0%",
|
|
618
|
-
x2: "100%",
|
|
619
|
-
y1: "0%",
|
|
620
|
-
y2: "0%",
|
|
621
|
-
stops: [
|
|
622
|
-
[
|
|
623
|
-
"0%",
|
|
624
|
-
R.value.style.chart.backgroundColor,
|
|
625
|
-
0
|
|
626
|
-
],
|
|
627
|
-
[
|
|
628
|
-
"20%",
|
|
629
|
-
R.value.style.chart.area.color,
|
|
630
|
-
1
|
|
631
|
-
],
|
|
632
|
-
[
|
|
633
|
-
"100%",
|
|
634
|
-
R.value.style.chart.area.color,
|
|
635
|
-
1
|
|
636
|
-
]
|
|
637
|
-
]
|
|
638
|
-
}, null, 8, ["id", "stops"])]),
|
|
639
|
-
R.value.style.chart.circleLinks.show ? (b(), f("line", g({ key: 1 }, Tt.value, {
|
|
640
|
-
stroke: R.value.style.chart.circleLinks.color,
|
|
641
|
-
"stroke-width": 12 * R.value.style.chart.circleLinks.widthRatio,
|
|
642
|
-
"stroke-linecap": "round",
|
|
643
|
-
class: { animated: R.value.useCssAnimation && !T(D) },
|
|
644
|
-
style: {
|
|
645
|
-
strokeDasharray: R.value.useCssAnimation && !T(D) ? W.value.height : 0,
|
|
646
|
-
strokeDashoffset: R.value.useCssAnimation && !T(D) ? W.value.height : 0
|
|
647
|
-
}
|
|
648
|
-
}), null, 16, Le)) : d("", !0),
|
|
649
|
-
(b(!0), f(c, null, S(q.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (b(), f("circle", g({ ref_for: !0 }, {
|
|
650
|
-
cx: e,
|
|
651
|
-
cy: t,
|
|
652
|
-
r: n,
|
|
653
|
-
fill: r
|
|
654
|
-
}, {
|
|
655
|
-
stroke: R.value.style.chart.circles.stroke,
|
|
656
|
-
"stroke-width": R.value.style.chart.circles.strokeWidth,
|
|
657
|
-
class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
|
|
658
|
-
style: { animationDelay: `${150 * i}ms` }
|
|
659
|
-
}), null, 16, Re))), 256)),
|
|
660
|
-
(b(!0), f(c, null, S(q.value, (e, t) => (b(), f("text", {
|
|
661
|
-
x: e.cx,
|
|
662
|
-
y: e.cy + V.value.circles / 3 + R.value.style.chart.circles.dataLabels.offsetY,
|
|
663
|
-
"text-anchor": "middle",
|
|
664
|
-
"font-size": V.value.circles,
|
|
665
|
-
fill: R.value.style.chart.circles.dataLabels.adaptColorToBackground ? T(re)(e.color) : R.value.style.chart.circles.dataLabels.color,
|
|
666
|
-
"font-weight": R.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
667
|
-
class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
|
|
668
|
-
style: y({ animationDelay: `${150 * t}ms` })
|
|
669
|
-
}, w(T(o)(R.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, T(a)({
|
|
670
|
-
v: e.proportion * 100,
|
|
671
|
-
s: "%",
|
|
672
|
-
r: R.value.style.chart.circles.dataLabels.rounding
|
|
673
|
-
}), { datapoint: e })), 15, ze))), 256)),
|
|
674
|
-
R.value.style.chart.area.show ? (b(), f("polygon", {
|
|
675
|
-
key: 2,
|
|
676
|
-
points: wt.value,
|
|
677
|
-
fill: `url(#funnel_area_${A.value})`,
|
|
678
|
-
class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
|
|
679
|
-
style: y({ transition: R.value.useCssAnimation ? `all ${150 * U.value.length}ms ease-in` : "none" })
|
|
680
|
-
}, null, 14, Be)) : d("", !0),
|
|
681
|
-
(b(!0), f(c, null, S(q.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (b(), f("rect", g({ ref_for: !0 }, {
|
|
682
|
-
x: e,
|
|
683
|
-
y: t,
|
|
684
|
-
height: n,
|
|
685
|
-
width: r,
|
|
686
|
-
fill: i
|
|
687
|
-
}, {
|
|
688
|
-
stroke: R.value.style.chart.bars.stroke,
|
|
689
|
-
"stroke-width": R.value.style.chart.bars.strokeWidth,
|
|
690
|
-
rx: R.value.style.chart.bars.borderRadius,
|
|
691
|
-
class: { animated: R.value.useCssAnimation && !N.value && !T(D) },
|
|
692
|
-
style: { animationDelay: `${150 * a}ms` }
|
|
693
|
-
}), null, 16, Ve))), 256)),
|
|
694
|
-
(b(!0), f(c, null, S(q.value, (e, t) => (b(), f("g", null, [p("text", {
|
|
695
|
-
x: e.x + e.width + R.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
696
|
-
y: e.cy - V.value.names / 2 + R.value.style.chart.bars.dataLabels.name.offsetY,
|
|
697
|
-
"text-anchor": "start",
|
|
698
|
-
"font-size": V.value.names,
|
|
699
|
-
fill: R.value.style.chart.bars.dataLabels.name.color,
|
|
700
|
-
"font-weight": R.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
701
|
-
class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
|
|
702
|
-
style: y({ animationDelay: `${150 * t}ms` })
|
|
703
|
-
}, w(e.name), 15, He), p("text", {
|
|
704
|
-
x: e.x + e.width + R.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
705
|
-
y: e.cy + V.value.values + R.value.style.chart.bars.dataLabels.value.offsetY,
|
|
706
|
-
"text-anchor": "start",
|
|
707
|
-
"font-size": V.value.values,
|
|
708
|
-
fill: R.value.style.chart.bars.dataLabels.value.color,
|
|
709
|
-
"font-weight": R.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
710
|
-
class: _({ animated: R.value.useCssAnimation && !N.value && !T(D) }),
|
|
711
|
-
style: y({ animationDelay: `${150 * t}ms` })
|
|
712
|
-
}, w(T(o)(R.value.style.chart.bars.dataLabels.value.formatter, e.value, T(a)({
|
|
713
|
-
p: R.value.style.chart.bars.dataLabels.value.prefix,
|
|
714
|
-
v: e.value,
|
|
715
|
-
s: R.value.style.chart.bars.dataLabels.value.suffix,
|
|
716
|
-
r: R.value.style.chart.bars.dataLabels.value.rounding
|
|
717
|
-
}), { datapoint: e })), 15, Ue)]))), 256)),
|
|
718
|
-
C(e.$slots, "svg", { svg: {
|
|
719
|
-
...H.value,
|
|
720
|
-
isPrintingImg: T(z) || T(vt) || F.value,
|
|
721
|
-
isPrintingSvg: I.value
|
|
722
|
-
} }, void 0, !0)
|
|
723
|
-
], 14, Fe)) : d("", !0),
|
|
724
|
-
e.$slots.watermark ? (b(), f("div", We, [C(e.$slots, "watermark", v(h({ isPrinting: T(z) || T(vt) || F.value || I.value })), void 0, !0)])) : d("", !0),
|
|
725
|
-
L.value ? d("", !0) : (b(), u(T(qe), {
|
|
726
|
-
key: 6,
|
|
727
|
-
config: {
|
|
728
|
-
type: "verticalBar",
|
|
729
|
-
style: {
|
|
730
|
-
backgroundColor: R.value.style.chart.backgroundColor,
|
|
731
|
-
verticalBar: {
|
|
732
|
-
axis: { color: "#CCCCCC" },
|
|
733
|
-
color: "#CCCCCC"
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}, null, 8, ["config"])),
|
|
738
|
-
e.$slots.source ? (b(), f("div", {
|
|
739
|
-
key: 7,
|
|
740
|
-
ref_key: "source",
|
|
741
|
-
ref: ct,
|
|
742
|
-
dir: "auto"
|
|
743
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
744
|
-
L.value && R.value.userOptions.buttons.table ? (b(), u(ke($.value.component), g({ key: 8 }, $.value.props, {
|
|
745
|
-
ref_key: "tableUnit",
|
|
746
|
-
ref: P,
|
|
747
|
-
onClose: Mt
|
|
748
|
-
}), Ce({
|
|
749
|
-
content: E(() => [(b(), u(T(Ye), {
|
|
750
|
-
key: `table_${ot.value}`,
|
|
751
|
-
colNames: Z.value.colNames,
|
|
752
|
-
head: Z.value.head,
|
|
753
|
-
body: Z.value.body,
|
|
754
|
-
config: Z.value.config,
|
|
755
|
-
title: R.value.table.useDialog ? "" : $.value.title,
|
|
756
|
-
withCloseButton: !R.value.table.useDialog,
|
|
757
|
-
onClose: Mt
|
|
758
|
-
}, {
|
|
759
|
-
th: E(({ th: e }) => [p("div", {
|
|
760
|
-
innerHTML: e,
|
|
761
|
-
style: {
|
|
762
|
-
display: "flex",
|
|
763
|
-
"align-items": "center"
|
|
764
|
-
}
|
|
765
|
-
}, null, 8, Ge)]),
|
|
766
|
-
td: E(({ td: e }) => [we(w(e.name ? e.name : e), 1)]),
|
|
767
|
-
_: 1
|
|
768
|
-
}, 8, [
|
|
769
|
-
"colNames",
|
|
770
|
-
"head",
|
|
771
|
-
"body",
|
|
772
|
-
"config",
|
|
773
|
-
"title",
|
|
774
|
-
"withCloseButton"
|
|
775
|
-
]))]),
|
|
776
|
-
_: 2
|
|
777
|
-
}, [R.value.table.useDialog ? {
|
|
778
|
-
name: "title",
|
|
779
|
-
fn: E(() => [we(w($.value.title), 1)]),
|
|
780
|
-
key: "0"
|
|
781
|
-
} : void 0, R.value.table.useDialog ? {
|
|
782
|
-
name: "actions",
|
|
783
|
-
fn: E(() => [p("button", {
|
|
784
|
-
tabindex: "0",
|
|
785
|
-
class: "vue-ui-user-options-button",
|
|
786
|
-
onClick: t[0] ||= (e) => Q(R.value.userOptions.callbacks.csv)
|
|
787
|
-
}, [Te(T(Ke), {
|
|
788
|
-
name: "fileCsv",
|
|
789
|
-
stroke: $.value.props.color
|
|
790
|
-
}, null, 8, ["stroke"])])]),
|
|
791
|
-
key: "1"
|
|
792
|
-
} : void 0]), 1040)) : d("", !0)
|
|
793
|
-
], 46, Pe));
|
|
794
|
-
}
|
|
795
|
-
}, [["__scopeId", "data-v-7addf37e"]]);
|
|
796
|
-
//#endregion
|
|
797
|
-
export { Ne as n, Ke as t };
|