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
|
@@ -0,0 +1,750 @@
|
|
|
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 re, r as ie, t as ae, tt as oe } from "./lib-Bttd6u5E.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as le } from "./useConfig-DlNpz6P8.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-DN5bYhTG.js";
|
|
6
|
+
import { t as de } from "./useNestedProp-vPNvh7rV.js";
|
|
7
|
+
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as pe } from "./useChartExport-DNiwdPmb.js";
|
|
9
|
+
import { t as me } from "./img-Bnokohej.js";
|
|
10
|
+
import { n as he } from "./Title-BE3qg9xl.js";
|
|
11
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
+
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
14
|
+
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as Se } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as Ce } from "./vue_ui_funnel-_Og4EEkO.js";
|
|
18
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as we, createTextVNode as Te, createVNode as Ee, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as h, nextTick as De, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as Oe, onMounted as ke, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as Ae, shallowRef as je, toDisplayString as C, unref as w, useCssVars as Me, watch as Ne, withCtx as T } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-funnel.vue
|
|
20
|
+
var Pe = /* @__PURE__ */ e({ default: () => qe }), Fe = ["id"], Ie = ["xmlns", "viewBox"], Le = ["width", "height"], Re = ["stroke", "stroke-width"], ze = ["stroke", "stroke-width"], Be = [
|
|
21
|
+
"x",
|
|
22
|
+
"y",
|
|
23
|
+
"font-size",
|
|
24
|
+
"fill",
|
|
25
|
+
"font-weight"
|
|
26
|
+
], Ve = ["points", "fill"], He = [
|
|
27
|
+
"stroke",
|
|
28
|
+
"stroke-width",
|
|
29
|
+
"rx"
|
|
30
|
+
], Ue = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"font-size",
|
|
34
|
+
"fill",
|
|
35
|
+
"font-weight"
|
|
36
|
+
], We = [
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"font-size",
|
|
40
|
+
"fill",
|
|
41
|
+
"font-weight"
|
|
42
|
+
], Ge = {
|
|
43
|
+
key: 5,
|
|
44
|
+
class: "vue-data-ui-watermark"
|
|
45
|
+
}, Ke = ["innerHTML"], qe = /*#__PURE__*/ ge({
|
|
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: ge, emit: Pe }) {
|
|
63
|
+
Me((e) => ({ b556dc08: Tt.value }));
|
|
64
|
+
let qe = p(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Je = p(() => import("./vue-ui-skeleton-DwKxd7fk.js").then((e) => e.n)), Ye = p(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Xe = p(() => import("./DataTable-BbKgJ5UI.js")), Ze = p(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Qe = p(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), $e = p(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), et = p(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_funnel: tt } = le(), { isThemeValid: nt, warnInvalidTheme: rt } = fe(), E = Se(), D = e, it = Pe, O = b(null), k = b(ne()), at = b(0), ot = b(0), st = b(0), ct = b(null), lt = b(null), ut = b(null), A = je(null), j = je(null), M = b(!1), N = b(null), P = b(null), F = c(() => !!D.dataset && D.dataset.length);
|
|
65
|
+
ke(pt), Oe(() => {
|
|
66
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
|
|
67
|
+
});
|
|
68
|
+
function dt() {
|
|
69
|
+
let e = de({
|
|
70
|
+
userConfig: D.config,
|
|
71
|
+
defaultConfig: tt
|
|
72
|
+
}), t = e.theme;
|
|
73
|
+
if (!t) return e;
|
|
74
|
+
if (!nt.value(e)) return rt(e), e;
|
|
75
|
+
let n = de({
|
|
76
|
+
userConfig: Ce[t] || D.config,
|
|
77
|
+
defaultConfig: e
|
|
78
|
+
});
|
|
79
|
+
return de({
|
|
80
|
+
userConfig: D.config,
|
|
81
|
+
defaultConfig: n
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
let I = c({
|
|
85
|
+
get: () => dt(),
|
|
86
|
+
set: (e) => e
|
|
87
|
+
}), ft = c(() => I.value.debug);
|
|
88
|
+
function pt() {
|
|
89
|
+
if (ee(D.dataset) ? oe({
|
|
90
|
+
componentName: "VueUiFunnel",
|
|
91
|
+
type: "dataset",
|
|
92
|
+
debug: ft.value
|
|
93
|
+
}) : D.dataset.forEach((e, t) => {
|
|
94
|
+
te({
|
|
95
|
+
datasetObject: e,
|
|
96
|
+
requiredAttributes: ["name", "value"]
|
|
97
|
+
}).forEach((e) => {
|
|
98
|
+
F.value = !1, oe({
|
|
99
|
+
componentName: "VueUiFunnel",
|
|
100
|
+
type: "datasetSerieAttribute",
|
|
101
|
+
property: e,
|
|
102
|
+
index: t,
|
|
103
|
+
debug: ft.value
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}), I.value.responsive) {
|
|
107
|
+
let e = _e(() => {
|
|
108
|
+
let { width: e, height: t } = ve({
|
|
109
|
+
chart: O.value,
|
|
110
|
+
title: I.value.style.chart.title.text ? ut.value : null,
|
|
111
|
+
source: lt.value,
|
|
112
|
+
noTitle: ct.value
|
|
113
|
+
});
|
|
114
|
+
requestAnimationFrame(() => {
|
|
115
|
+
U.value.height = t, U.value.width = e, G.value = bt(), I.value.responsiveProportionalSizing ? (H.value.circles = re({
|
|
116
|
+
relator: Math.min(e, t),
|
|
117
|
+
adjuster: 600,
|
|
118
|
+
source: I.value.style.chart.circles.dataLabels.fontSize,
|
|
119
|
+
threshold: 10,
|
|
120
|
+
fallback: 10
|
|
121
|
+
}), H.value.names = re({
|
|
122
|
+
relator: Math.min(e, t),
|
|
123
|
+
adjuster: 600,
|
|
124
|
+
source: I.value.style.chart.bars.dataLabels.name.fontSize,
|
|
125
|
+
threshold: 10,
|
|
126
|
+
fallback: 10
|
|
127
|
+
}), H.value.values = re({
|
|
128
|
+
relator: Math.min(e, t),
|
|
129
|
+
adjuster: 600,
|
|
130
|
+
source: I.value.style.chart.bars.dataLabels.value.fontSize,
|
|
131
|
+
threshold: 10,
|
|
132
|
+
fallback: 10
|
|
133
|
+
})) : (H.value.circles = I.value.style.chart.circles.dataLabels.fontSize, H.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = I.value.style.chart.bars.dataLabels.value.fontSize);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = O.value.parentNode, A.value.observe(j.value);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
se({
|
|
140
|
+
config: () => I.value,
|
|
141
|
+
dataset: () => D.dataset,
|
|
142
|
+
component: "VueUiFunnel",
|
|
143
|
+
rules: [ce.emptyArray, {
|
|
144
|
+
test: (e) => e.length > 10,
|
|
145
|
+
message: [
|
|
146
|
+
"👀 The dataset has a length > 10. Consider:",
|
|
147
|
+
"",
|
|
148
|
+
"▶️ Aggregating some datapoints into broader categories"
|
|
149
|
+
]
|
|
150
|
+
}]
|
|
151
|
+
});
|
|
152
|
+
let mt = c(() => I.value.userOptions.useCursorPointer), { userOptionsVisible: L, setUserOptionsVisibility: ht, keepUserOptionState: gt } = be({ config: I.value }), { svgRef: R } = xe({ config: I.value.style.chart.title });
|
|
153
|
+
Ne(() => D.config, (e) => {
|
|
154
|
+
I.value = dt(), L.value = !I.value.userOptions.showOnChartHover, pt(), ot.value += 1, st.value += 1, H.value.circles = I.value.style.chart.circles.dataLabels.fontSize, H.value.names = I.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = I.value.style.chart.bars.dataLabels.value.fontSize, V.value.showTable = I.value.table.show;
|
|
155
|
+
}, { deep: !0 });
|
|
156
|
+
let { isPrinting: z, isImaging: B, generatePdf: _t, generateImage: vt } = ue({
|
|
157
|
+
elementId: `funnel_${k.value}`,
|
|
158
|
+
fileName: I.value.style.chart.title.text || "vue-ui-funnel",
|
|
159
|
+
options: I.value.userOptions.print
|
|
160
|
+
}), yt = c(() => I.value.userOptions.show && !I.value.style.chart.title.text), V = b({ showTable: I.value.table.show }), H = b({
|
|
161
|
+
circles: I.value.style.chart.circles.dataLabels.fontSize,
|
|
162
|
+
names: I.value.style.chart.bars.dataLabels.name.fontSize,
|
|
163
|
+
values: I.value.style.chart.bars.dataLabels.value.fontSize
|
|
164
|
+
}), U = c({
|
|
165
|
+
get: () => ({
|
|
166
|
+
height: I.value.style.chart.height,
|
|
167
|
+
width: I.value.style.chart.width
|
|
168
|
+
}),
|
|
169
|
+
set: (e) => e
|
|
170
|
+
}), W = c(() => F.value ? D.dataset.map((e, t) => ({
|
|
171
|
+
...e,
|
|
172
|
+
color: e.color ? i(e.color) : r(I.value.style.chart.bars.defaultColor, t / D.dataset.length)
|
|
173
|
+
})) : []);
|
|
174
|
+
setTimeout(() => {
|
|
175
|
+
M.value = !0;
|
|
176
|
+
}, W.value.length * 150);
|
|
177
|
+
function bt() {
|
|
178
|
+
let e = I.value.style.chart.padding.left, t = I.value.style.chart.padding.top;
|
|
179
|
+
return {
|
|
180
|
+
left: e,
|
|
181
|
+
top: t,
|
|
182
|
+
right: U.value.width - I.value.style.chart.padding.right,
|
|
183
|
+
bottom: U.value.height - I.value.style.chart.padding.bottom,
|
|
184
|
+
width: U.value.width - e - I.value.style.chart.padding.right,
|
|
185
|
+
height: U.value.height - t - I.value.style.chart.padding.bottom
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
let G = b(bt()), K = c(() => G.value.height / D.dataset.length), q = c(() => K.value * I.value.style.chart.bars.gapRatio), xt = c(() => G.value.width * I.value.style.chart.barCircleSpacingRatio), J = c(() => W.value.map((e, t) => {
|
|
189
|
+
let n = K.value - q.value, r = G.value.top + q.value / 2 * t + (K.value - q.value / 2) * t + q.value / 2, i = e.value / W.value[0].value, a = (G.value.width - n - xt.value) * (e.value / W.value[0].value);
|
|
190
|
+
return {
|
|
191
|
+
...e,
|
|
192
|
+
cx: G.value.left + n / 2,
|
|
193
|
+
cy: r + n / 2,
|
|
194
|
+
datapointIndex: t,
|
|
195
|
+
fill: e.color,
|
|
196
|
+
height: Math.max(n, 0),
|
|
197
|
+
proportion: i,
|
|
198
|
+
r: Math.max(n / 2, 0),
|
|
199
|
+
width: Math.max(a, 0),
|
|
200
|
+
x: G.value.left + n + xt.value,
|
|
201
|
+
y: r
|
|
202
|
+
};
|
|
203
|
+
})), St = c(() => {
|
|
204
|
+
let e = J.value.map((e) => `${e.x + e.width},${e.y + (K.value - q.value) / 2}`);
|
|
205
|
+
return `${J.value[0].x},${J.value[0].y + (K.value - q.value) / 2} ${e.toString()} ${J.value.at(-1).x},${J.value.at(-1).y + (K.value - q.value) / 2}`;
|
|
206
|
+
}), Ct = c(() => ({
|
|
207
|
+
x1: J.value[0].cx,
|
|
208
|
+
y1: J.value[0].cy,
|
|
209
|
+
x2: J.value.at(-1).cx,
|
|
210
|
+
y2: J.value.at(-1).cy
|
|
211
|
+
})), Y = b(!1);
|
|
212
|
+
function wt(e) {
|
|
213
|
+
Y.value = e, at.value += 1;
|
|
214
|
+
}
|
|
215
|
+
let Tt = c(() => `${W.value.length * 150}ms`), X = b(!1);
|
|
216
|
+
function Et() {
|
|
217
|
+
X.value = !X.value;
|
|
218
|
+
}
|
|
219
|
+
function Dt() {
|
|
220
|
+
V.value.showTable = !V.value.showTable;
|
|
221
|
+
}
|
|
222
|
+
let Z = c(() => ({
|
|
223
|
+
head: W.value.map((e) => ({
|
|
224
|
+
name: e.name,
|
|
225
|
+
color: e.color
|
|
226
|
+
})),
|
|
227
|
+
body: W.value.map((e) => e.value)
|
|
228
|
+
})), Q = c(() => {
|
|
229
|
+
let e = [
|
|
230
|
+
I.value.table.columnNames.series,
|
|
231
|
+
I.value.table.columnNames.value,
|
|
232
|
+
I.value.table.columnNames.percentage
|
|
233
|
+
], t = Z.value.head.map((e, t) => {
|
|
234
|
+
let n = o(I.value.style.chart.bars.dataLabels.value.formatter, Z.value.body[t], a({
|
|
235
|
+
p: I.value.style.chart.bars.dataLabels.value.prefix,
|
|
236
|
+
v: Z.value.body[t],
|
|
237
|
+
s: I.value.style.chart.bars.dataLabels.value.suffix,
|
|
238
|
+
r: I.value.table.td.roundingValue
|
|
239
|
+
}), { datapoint: J.value[t] }), r = o(I.value.style.chart.circles.dataLabels.formatter, J.value[t].proportion * 100, a({
|
|
240
|
+
v: J.value[t].proportion * 100,
|
|
241
|
+
s: "%",
|
|
242
|
+
r: I.value.table.td.roundingPercentage
|
|
243
|
+
}), { datapoint: J.value[t] });
|
|
244
|
+
return [
|
|
245
|
+
{
|
|
246
|
+
color: e.color,
|
|
247
|
+
name: e.name
|
|
248
|
+
},
|
|
249
|
+
n,
|
|
250
|
+
r
|
|
251
|
+
];
|
|
252
|
+
}), n = {
|
|
253
|
+
th: {
|
|
254
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
255
|
+
color: I.value.table.th.color,
|
|
256
|
+
outline: I.value.table.th.outline
|
|
257
|
+
},
|
|
258
|
+
td: {
|
|
259
|
+
backgroundColor: I.value.table.td.backgroundColor,
|
|
260
|
+
color: I.value.table.td.color,
|
|
261
|
+
outline: I.value.table.td.outline
|
|
262
|
+
},
|
|
263
|
+
breakpoint: I.value.table.responsiveBreakpoint
|
|
264
|
+
};
|
|
265
|
+
return {
|
|
266
|
+
colNames: [
|
|
267
|
+
I.value.table.columnNames.series,
|
|
268
|
+
I.value.table.columnNames.value,
|
|
269
|
+
I.value.table.columnNames.percentage
|
|
270
|
+
],
|
|
271
|
+
head: e,
|
|
272
|
+
body: t,
|
|
273
|
+
config: n
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
function Ot(e = null) {
|
|
277
|
+
De(() => {
|
|
278
|
+
let r = Z.value.head.map((e, t) => [
|
|
279
|
+
[e.name],
|
|
280
|
+
[Z.value.body[t]],
|
|
281
|
+
[J.value[t].proportion * 100]
|
|
282
|
+
]), i = [
|
|
283
|
+
[I.value.style.chart.title.text],
|
|
284
|
+
[I.value.style.chart.title.subtitle.text],
|
|
285
|
+
[
|
|
286
|
+
[I.value.table.columnNames.series],
|
|
287
|
+
[I.value.table.columnNames.value],
|
|
288
|
+
["%"]
|
|
289
|
+
]
|
|
290
|
+
].concat(r), a = n(i);
|
|
291
|
+
e ? e(a) : t({
|
|
292
|
+
csvContent: a,
|
|
293
|
+
title: I.value.style.chart.title.text || "vue-ui-funnel"
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
function kt() {
|
|
298
|
+
return W.value;
|
|
299
|
+
}
|
|
300
|
+
async function At({ scale: e = 2 } = {}) {
|
|
301
|
+
if (!O.value) return;
|
|
302
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
303
|
+
domElement: O.value,
|
|
304
|
+
base64: !0,
|
|
305
|
+
img: !0,
|
|
306
|
+
scale: e
|
|
307
|
+
});
|
|
308
|
+
return {
|
|
309
|
+
imageUri: i,
|
|
310
|
+
base64: a,
|
|
311
|
+
title: I.value.style.chart.title.text,
|
|
312
|
+
width: t,
|
|
313
|
+
height: n,
|
|
314
|
+
aspectRatio: r
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
let $ = c(() => {
|
|
318
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
319
|
+
return {
|
|
320
|
+
component: e ? et : Ye,
|
|
321
|
+
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
322
|
+
props: e ? {
|
|
323
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
324
|
+
color: I.value.table.th.color,
|
|
325
|
+
headerColor: I.value.table.th.color,
|
|
326
|
+
headerBg: I.value.table.th.backgroundColor,
|
|
327
|
+
isFullscreen: Y.value,
|
|
328
|
+
fullscreenParent: O.value,
|
|
329
|
+
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
330
|
+
} : {
|
|
331
|
+
hideDetails: !0,
|
|
332
|
+
config: {
|
|
333
|
+
open: t,
|
|
334
|
+
maxHeight: 1e4,
|
|
335
|
+
body: {
|
|
336
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
337
|
+
color: I.value.style.chart.color
|
|
338
|
+
},
|
|
339
|
+
head: {
|
|
340
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
341
|
+
color: I.value.style.chart.color
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
});
|
|
347
|
+
Ne(() => V.value.showTable, (e) => {
|
|
348
|
+
I.value.table.show || (e && I.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
349
|
+
});
|
|
350
|
+
function jt() {
|
|
351
|
+
V.value.showTable = !1, P.value && P.value.setTableIconState(!1);
|
|
352
|
+
}
|
|
353
|
+
let Mt = c(() => I.value.style.chart.backgroundColor), Nt = c(() => I.value.style.chart.title), { isCallbackImaging: Pt, isCallbackSvg: Ft, generateSvg: It, onGenerateImage: Lt } = pe({
|
|
354
|
+
svg: R,
|
|
355
|
+
title: Nt,
|
|
356
|
+
legend: null,
|
|
357
|
+
legendItems: null,
|
|
358
|
+
backgroundColor: Mt,
|
|
359
|
+
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
360
|
+
generateImage: vt
|
|
361
|
+
});
|
|
362
|
+
async function Rt() {
|
|
363
|
+
if (it("copyAlt", {
|
|
364
|
+
config: I.value,
|
|
365
|
+
dataset: W.value
|
|
366
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
367
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
371
|
+
config: I.value,
|
|
372
|
+
dataset: W.value
|
|
373
|
+
}));
|
|
374
|
+
}
|
|
375
|
+
return ge({
|
|
376
|
+
getData: kt,
|
|
377
|
+
getImage: At,
|
|
378
|
+
generatePdf: _t,
|
|
379
|
+
generateCsv: Ot,
|
|
380
|
+
generateImage: vt,
|
|
381
|
+
generateSvg: It,
|
|
382
|
+
toggleTable: Dt,
|
|
383
|
+
toggleAnnotator: Et,
|
|
384
|
+
toggleFullscreen: wt,
|
|
385
|
+
copyAlt: Rt
|
|
386
|
+
}), (e, t) => (y(), d("div", {
|
|
387
|
+
ref_key: "funnelChart",
|
|
388
|
+
ref: O,
|
|
389
|
+
class: g(`vue-data-ui-component vue-ui-funnel ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
390
|
+
style: v(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
391
|
+
id: `funnel_${k.value}`,
|
|
392
|
+
onMouseenter: t[1] ||= () => w(ht)(!0),
|
|
393
|
+
onMouseleave: t[2] ||= () => w(ht)(!1)
|
|
394
|
+
}, [
|
|
395
|
+
I.value.userOptions.buttons.annotator ? (y(), l(w(Qe), {
|
|
396
|
+
key: 0,
|
|
397
|
+
svgRef: w(R),
|
|
398
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
399
|
+
color: I.value.style.chart.color,
|
|
400
|
+
active: X.value,
|
|
401
|
+
isCursorPointer: mt.value,
|
|
402
|
+
onClose: Et
|
|
403
|
+
}, {
|
|
404
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
405
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(m({ color: t })), void 0, !0)]),
|
|
406
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(m({ mode: t })), void 0, !0)]),
|
|
407
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(m({ disabled: t })), void 0, !0)]),
|
|
408
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(m({ disabled: t })), void 0, !0)]),
|
|
409
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(m({ disabled: t })), void 0, !0)]),
|
|
410
|
+
_: 3
|
|
411
|
+
}, 8, [
|
|
412
|
+
"svgRef",
|
|
413
|
+
"backgroundColor",
|
|
414
|
+
"color",
|
|
415
|
+
"active",
|
|
416
|
+
"isCursorPointer"
|
|
417
|
+
])) : u("", !0),
|
|
418
|
+
yt.value ? (y(), d("div", {
|
|
419
|
+
key: 1,
|
|
420
|
+
ref_key: "noTitle",
|
|
421
|
+
ref: ct,
|
|
422
|
+
class: "vue-data-ui-no-title-space",
|
|
423
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
424
|
+
}, null, 512)) : u("", !0),
|
|
425
|
+
I.value.style.chart.title.text ? (y(), d("div", {
|
|
426
|
+
key: 2,
|
|
427
|
+
ref_key: "chartTitle",
|
|
428
|
+
ref: ut,
|
|
429
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
430
|
+
}, [(y(), l(he, {
|
|
431
|
+
key: `title_${ot.value}`,
|
|
432
|
+
config: {
|
|
433
|
+
title: {
|
|
434
|
+
cy: "funnel-div-title",
|
|
435
|
+
...I.value.style.chart.title
|
|
436
|
+
},
|
|
437
|
+
subtitle: {
|
|
438
|
+
cy: "funnel-div-subtitle",
|
|
439
|
+
...I.value.style.chart.title.subtitle
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
443
|
+
I.value.userOptions.show && F.value && (w(gt) || w(L)) ? (y(), l(w(Ze), {
|
|
444
|
+
ref_key: "userOptionsRef",
|
|
445
|
+
ref: P,
|
|
446
|
+
key: `user_option_${at.value}`,
|
|
447
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
448
|
+
color: I.value.style.chart.color,
|
|
449
|
+
isPrinting: w(z),
|
|
450
|
+
isImaging: w(B),
|
|
451
|
+
uid: k.value,
|
|
452
|
+
hasTooltip: !1,
|
|
453
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
454
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
455
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
456
|
+
hasXls: I.value.userOptions.buttons.csv,
|
|
457
|
+
hasTable: I.value.userOptions.buttons.table,
|
|
458
|
+
hasLabel: !1,
|
|
459
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
460
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
461
|
+
isFullscreen: Y.value,
|
|
462
|
+
chartElement: O.value,
|
|
463
|
+
position: I.value.userOptions.position,
|
|
464
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
465
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
466
|
+
isAnnotation: X.value,
|
|
467
|
+
callbacks: I.value.userOptions.callbacks,
|
|
468
|
+
printScale: I.value.userOptions.print.scale,
|
|
469
|
+
tableDialog: I.value.table.useDialog,
|
|
470
|
+
isCursorPointer: mt.value,
|
|
471
|
+
onToggleAnnotator: Et,
|
|
472
|
+
onToggleFullscreen: wt,
|
|
473
|
+
onGeneratePdf: w(_t),
|
|
474
|
+
onGenerateImage: w(Lt),
|
|
475
|
+
onGenerateSvg: w(It),
|
|
476
|
+
onToggleTable: Dt,
|
|
477
|
+
onGenerateCsv: Ot,
|
|
478
|
+
onCopyAlt: Rt,
|
|
479
|
+
style: v({ visibility: w(gt) ? w(L) ? "visible" : "hidden" : "visible" })
|
|
480
|
+
}, we({ _: 2 }, [
|
|
481
|
+
e.$slots.menuIcon ? {
|
|
482
|
+
name: "menuIcon",
|
|
483
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(m({
|
|
484
|
+
isOpen: t,
|
|
485
|
+
color: n
|
|
486
|
+
})), void 0, !0)]),
|
|
487
|
+
key: "0"
|
|
488
|
+
} : void 0,
|
|
489
|
+
e.$slots.optionPdf ? {
|
|
490
|
+
name: "optionPdf",
|
|
491
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
492
|
+
key: "1"
|
|
493
|
+
} : void 0,
|
|
494
|
+
e.$slots.optionCsv ? {
|
|
495
|
+
name: "optionCsv",
|
|
496
|
+
fn: T(() => [S(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
497
|
+
key: "2"
|
|
498
|
+
} : void 0,
|
|
499
|
+
e.$slots.optionImg ? {
|
|
500
|
+
name: "optionImg",
|
|
501
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
502
|
+
key: "3"
|
|
503
|
+
} : void 0,
|
|
504
|
+
e.$slots.optionSvg ? {
|
|
505
|
+
name: "optionSvg",
|
|
506
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
507
|
+
key: "4"
|
|
508
|
+
} : void 0,
|
|
509
|
+
e.$slots.optionTable ? {
|
|
510
|
+
name: "optionTable",
|
|
511
|
+
fn: T(() => [S(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
512
|
+
key: "5"
|
|
513
|
+
} : void 0,
|
|
514
|
+
e.$slots.optionFullscreen ? {
|
|
515
|
+
name: "optionFullscreen",
|
|
516
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(m({
|
|
517
|
+
toggleFullscreen: t,
|
|
518
|
+
isFullscreen: n
|
|
519
|
+
})), void 0, !0)]),
|
|
520
|
+
key: "6"
|
|
521
|
+
} : void 0,
|
|
522
|
+
e.$slots.optionAnnotator ? {
|
|
523
|
+
name: "optionAnnotator",
|
|
524
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(m({
|
|
525
|
+
toggleAnnotator: t,
|
|
526
|
+
isAnnotator: n
|
|
527
|
+
})), void 0, !0)]),
|
|
528
|
+
key: "7"
|
|
529
|
+
} : void 0,
|
|
530
|
+
e.$slots.optionAltCopy ? {
|
|
531
|
+
name: "optionAltCopy",
|
|
532
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(m({ altCopy: t })), void 0, !0)]),
|
|
533
|
+
key: "8"
|
|
534
|
+
} : void 0,
|
|
535
|
+
e.$slots["custom-menu-before"] ? {
|
|
536
|
+
name: "custom-menu-before",
|
|
537
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
538
|
+
key: "9"
|
|
539
|
+
} : void 0,
|
|
540
|
+
e.$slots["custom-menu-after"] ? {
|
|
541
|
+
name: "custom-menu-after",
|
|
542
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
543
|
+
key: "10"
|
|
544
|
+
} : void 0
|
|
545
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
546
|
+
F.value ? (y(), d("svg", {
|
|
547
|
+
key: 4,
|
|
548
|
+
ref_key: "svgRef",
|
|
549
|
+
ref: R,
|
|
550
|
+
xmlns: w(ae),
|
|
551
|
+
class: g({
|
|
552
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
553
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
554
|
+
}),
|
|
555
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
556
|
+
style: v(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`)
|
|
557
|
+
}, [
|
|
558
|
+
Ee(w($e)),
|
|
559
|
+
e.$slots["chart-background"] ? (y(), d("foreignObject", {
|
|
560
|
+
key: 0,
|
|
561
|
+
x: 0,
|
|
562
|
+
y: 0,
|
|
563
|
+
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
564
|
+
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
565
|
+
style: { pointerEvents: "none" }
|
|
566
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : u("", !0),
|
|
567
|
+
f("defs", null, [Ee(ye, {
|
|
568
|
+
t: "linear",
|
|
569
|
+
id: `funnel_area_${k.value}`,
|
|
570
|
+
x1: "0%",
|
|
571
|
+
x2: "100%",
|
|
572
|
+
y1: "0%",
|
|
573
|
+
y2: "0%",
|
|
574
|
+
stops: [
|
|
575
|
+
[
|
|
576
|
+
"0%",
|
|
577
|
+
I.value.style.chart.backgroundColor,
|
|
578
|
+
0
|
|
579
|
+
],
|
|
580
|
+
[
|
|
581
|
+
"20%",
|
|
582
|
+
I.value.style.chart.area.color,
|
|
583
|
+
1
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
"100%",
|
|
587
|
+
I.value.style.chart.area.color,
|
|
588
|
+
1
|
|
589
|
+
]
|
|
590
|
+
]
|
|
591
|
+
}, null, 8, ["id", "stops"])]),
|
|
592
|
+
I.value.style.chart.circleLinks.show ? (y(), d("line", h({ key: 1 }, Ct.value, {
|
|
593
|
+
stroke: I.value.style.chart.circleLinks.color,
|
|
594
|
+
"stroke-width": 12 * I.value.style.chart.circleLinks.widthRatio,
|
|
595
|
+
"stroke-linecap": "round",
|
|
596
|
+
class: { animated: I.value.useCssAnimation && !w(E) },
|
|
597
|
+
style: {
|
|
598
|
+
strokeDasharray: I.value.useCssAnimation && !w(E) ? G.value.height : 0,
|
|
599
|
+
strokeDashoffset: I.value.useCssAnimation && !w(E) ? G.value.height : 0
|
|
600
|
+
}
|
|
601
|
+
}), null, 16, Re)) : u("", !0),
|
|
602
|
+
(y(!0), d(s, null, x(J.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (y(), d("circle", h({ ref_for: !0 }, {
|
|
603
|
+
cx: e,
|
|
604
|
+
cy: t,
|
|
605
|
+
r: n,
|
|
606
|
+
fill: r
|
|
607
|
+
}, {
|
|
608
|
+
stroke: I.value.style.chart.circles.stroke,
|
|
609
|
+
"stroke-width": I.value.style.chart.circles.strokeWidth,
|
|
610
|
+
class: { animated: I.value.useCssAnimation && !M.value && !w(E) },
|
|
611
|
+
style: { animationDelay: `${150 * i}ms` }
|
|
612
|
+
}), null, 16, ze))), 256)),
|
|
613
|
+
(y(!0), d(s, null, x(J.value, (e, t) => (y(), d("text", {
|
|
614
|
+
x: e.cx,
|
|
615
|
+
y: e.cy + H.value.circles / 3 + I.value.style.chart.circles.dataLabels.offsetY,
|
|
616
|
+
"text-anchor": "middle",
|
|
617
|
+
"font-size": H.value.circles,
|
|
618
|
+
fill: I.value.style.chart.circles.dataLabels.adaptColorToBackground ? w(ie)(e.color) : I.value.style.chart.circles.dataLabels.color,
|
|
619
|
+
"font-weight": I.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
620
|
+
class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
|
|
621
|
+
style: v({ animationDelay: `${150 * t}ms` })
|
|
622
|
+
}, C(w(o)(I.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, w(a)({
|
|
623
|
+
v: e.proportion * 100,
|
|
624
|
+
s: "%",
|
|
625
|
+
r: I.value.style.chart.circles.dataLabels.rounding
|
|
626
|
+
}), { datapoint: e })), 15, Be))), 256)),
|
|
627
|
+
I.value.style.chart.area.show ? (y(), d("polygon", {
|
|
628
|
+
key: 2,
|
|
629
|
+
points: St.value,
|
|
630
|
+
fill: `url(#funnel_area_${k.value})`,
|
|
631
|
+
class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
|
|
632
|
+
style: v({ transition: I.value.useCssAnimation ? `all ${150 * W.value.length}ms ease-in` : "none" })
|
|
633
|
+
}, null, 14, Ve)) : u("", !0),
|
|
634
|
+
(y(!0), d(s, null, x(J.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (y(), d("rect", h({ ref_for: !0 }, {
|
|
635
|
+
x: e,
|
|
636
|
+
y: t,
|
|
637
|
+
height: n,
|
|
638
|
+
width: r,
|
|
639
|
+
fill: i
|
|
640
|
+
}, {
|
|
641
|
+
stroke: I.value.style.chart.bars.stroke,
|
|
642
|
+
"stroke-width": I.value.style.chart.bars.strokeWidth,
|
|
643
|
+
rx: I.value.style.chart.bars.borderRadius,
|
|
644
|
+
class: { animated: I.value.useCssAnimation && !M.value && !w(E) },
|
|
645
|
+
style: { animationDelay: `${150 * a}ms` }
|
|
646
|
+
}), null, 16, He))), 256)),
|
|
647
|
+
(y(!0), d(s, null, x(J.value, (e, t) => (y(), d("g", null, [f("text", {
|
|
648
|
+
x: e.x + e.width + I.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
649
|
+
y: e.cy - H.value.names / 2 + I.value.style.chart.bars.dataLabels.name.offsetY,
|
|
650
|
+
"text-anchor": "start",
|
|
651
|
+
"font-size": H.value.names,
|
|
652
|
+
fill: I.value.style.chart.bars.dataLabels.name.color,
|
|
653
|
+
"font-weight": I.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
654
|
+
class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
|
|
655
|
+
style: v({ animationDelay: `${150 * t}ms` })
|
|
656
|
+
}, C(e.name), 15, Ue), f("text", {
|
|
657
|
+
x: e.x + e.width + I.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
658
|
+
y: e.cy + H.value.values + I.value.style.chart.bars.dataLabels.value.offsetY,
|
|
659
|
+
"text-anchor": "start",
|
|
660
|
+
"font-size": H.value.values,
|
|
661
|
+
fill: I.value.style.chart.bars.dataLabels.value.color,
|
|
662
|
+
"font-weight": I.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
663
|
+
class: g({ animated: I.value.useCssAnimation && !M.value && !w(E) }),
|
|
664
|
+
style: v({ animationDelay: `${150 * t}ms` })
|
|
665
|
+
}, C(w(o)(I.value.style.chart.bars.dataLabels.value.formatter, e.value, w(a)({
|
|
666
|
+
p: I.value.style.chart.bars.dataLabels.value.prefix,
|
|
667
|
+
v: e.value,
|
|
668
|
+
s: I.value.style.chart.bars.dataLabels.value.suffix,
|
|
669
|
+
r: I.value.style.chart.bars.dataLabels.value.rounding
|
|
670
|
+
}), { datapoint: e })), 15, We)]))), 256)),
|
|
671
|
+
S(e.$slots, "svg", { svg: {
|
|
672
|
+
...U.value,
|
|
673
|
+
isPrintingImg: w(z) || w(B) || w(Pt),
|
|
674
|
+
isPrintingSvg: w(Ft)
|
|
675
|
+
} }, void 0, !0)
|
|
676
|
+
], 14, Ie)) : u("", !0),
|
|
677
|
+
e.$slots.watermark ? (y(), d("div", Ge, [S(e.$slots, "watermark", _(m({ isPrinting: w(z) || w(B) || w(Pt) || w(Ft) })), void 0, !0)])) : u("", !0),
|
|
678
|
+
F.value ? u("", !0) : (y(), l(w(Je), {
|
|
679
|
+
key: 6,
|
|
680
|
+
config: {
|
|
681
|
+
type: "verticalBar",
|
|
682
|
+
style: {
|
|
683
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
684
|
+
verticalBar: {
|
|
685
|
+
axis: { color: "#CCCCCC" },
|
|
686
|
+
color: "#CCCCCC"
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}, null, 8, ["config"])),
|
|
691
|
+
e.$slots.source ? (y(), d("div", {
|
|
692
|
+
key: 7,
|
|
693
|
+
ref_key: "source",
|
|
694
|
+
ref: lt,
|
|
695
|
+
dir: "auto"
|
|
696
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
697
|
+
F.value && I.value.userOptions.buttons.table ? (y(), l(Ae($.value.component), h({ key: 8 }, $.value.props, {
|
|
698
|
+
ref_key: "tableUnit",
|
|
699
|
+
ref: N,
|
|
700
|
+
onClose: jt
|
|
701
|
+
}), we({
|
|
702
|
+
content: T(() => [(y(), l(w(Xe), {
|
|
703
|
+
key: `table_${st.value}`,
|
|
704
|
+
colNames: Q.value.colNames,
|
|
705
|
+
head: Q.value.head,
|
|
706
|
+
body: Q.value.body,
|
|
707
|
+
config: Q.value.config,
|
|
708
|
+
title: I.value.table.useDialog ? "" : $.value.title,
|
|
709
|
+
withCloseButton: !I.value.table.useDialog,
|
|
710
|
+
onClose: jt
|
|
711
|
+
}, {
|
|
712
|
+
th: T(({ th: e }) => [f("div", {
|
|
713
|
+
innerHTML: e,
|
|
714
|
+
style: {
|
|
715
|
+
display: "flex",
|
|
716
|
+
"align-items": "center"
|
|
717
|
+
}
|
|
718
|
+
}, null, 8, Ke)]),
|
|
719
|
+
td: T(({ td: e }) => [Te(C(e.name ? e.name : e), 1)]),
|
|
720
|
+
_: 1
|
|
721
|
+
}, 8, [
|
|
722
|
+
"colNames",
|
|
723
|
+
"head",
|
|
724
|
+
"body",
|
|
725
|
+
"config",
|
|
726
|
+
"title",
|
|
727
|
+
"withCloseButton"
|
|
728
|
+
]))]),
|
|
729
|
+
_: 2
|
|
730
|
+
}, [I.value.table.useDialog ? {
|
|
731
|
+
name: "title",
|
|
732
|
+
fn: T(() => [Te(C($.value.title), 1)]),
|
|
733
|
+
key: "0"
|
|
734
|
+
} : void 0, I.value.table.useDialog ? {
|
|
735
|
+
name: "actions",
|
|
736
|
+
fn: T(() => [f("button", {
|
|
737
|
+
tabindex: "0",
|
|
738
|
+
class: "vue-ui-user-options-button",
|
|
739
|
+
onClick: t[0] ||= (e) => Ot(I.value.userOptions.callbacks.csv)
|
|
740
|
+
}, [Ee(w(qe), {
|
|
741
|
+
name: "fileCsv",
|
|
742
|
+
stroke: $.value.props.color
|
|
743
|
+
}, null, 8, ["stroke"])])]),
|
|
744
|
+
key: "1"
|
|
745
|
+
} : void 0]), 1040)) : u("", !0)
|
|
746
|
+
], 46, Fe));
|
|
747
|
+
}
|
|
748
|
+
}, [["__scopeId", "data-v-909ef499"]]);
|
|
749
|
+
//#endregion
|
|
750
|
+
export { Pe as n, qe as t };
|