vue-data-ui 3.23.9 → 3.23.11
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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,750 +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 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-DwdGsXTx.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-Drk48XZi.js").then((e) => e.n)), Ye = p(() => import("./vue-ui-accordion-CLU_su1P.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-C0UZ74fa.js").then((e) => e.t)), $e = p(() => import("./PackageVersion-B629oKuX.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 };
|