vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.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-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -0,0 +1,747 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, D as n, Pt as r, S as i, X as a, Xt as ee, ht as te, i as o, jt as ne, nt as re, q as ie, r as ae, t as oe } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as le } from "./useConfig-CyCVHo81.js";
|
|
5
|
+
import { t as ue } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { t as s } from "./useNestedProp-Chvyfpl-.js";
|
|
7
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as fe } from "./useChartExport-iwOqiIWX.js";
|
|
9
|
+
import { t as pe } from "./img-DhGApYG0.js";
|
|
10
|
+
import { n as me } from "./Title-CPHi-evi.js";
|
|
11
|
+
import { t as he } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { l as ge, t as _e } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
+
import { t as ve } from "./DefGrad-DVBqDjhO.js";
|
|
14
|
+
import { t as ye } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
+
import { t as be } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
+
import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
17
|
+
import { t as Se } from "./vue_ui_funnel-_Og4EEkO.js";
|
|
18
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Ce, createTextVNode as we, createVNode as m, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as _, nextTick as Te, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ee, onMounted as De, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Oe, shallowRef as ke, toDisplayString as T, unref as E, useCssVars as Ae, watch as je, withCtx as D } from "vue";
|
|
19
|
+
//#region src/components/vue-ui-funnel.vue
|
|
20
|
+
var Me = /* @__PURE__ */ e({ default: () => O }), Ne = ["id"], Pe = ["xmlns", "viewBox"], Fe = ["width", "height"], Ie = ["stroke", "stroke-width"], Le = ["stroke", "stroke-width"], Re = [
|
|
21
|
+
"x",
|
|
22
|
+
"y",
|
|
23
|
+
"font-size",
|
|
24
|
+
"fill",
|
|
25
|
+
"font-weight"
|
|
26
|
+
], ze = ["points", "fill"], Be = [
|
|
27
|
+
"stroke",
|
|
28
|
+
"stroke-width",
|
|
29
|
+
"rx"
|
|
30
|
+
], Ve = [
|
|
31
|
+
"x",
|
|
32
|
+
"y",
|
|
33
|
+
"font-size",
|
|
34
|
+
"fill",
|
|
35
|
+
"font-weight"
|
|
36
|
+
], He = [
|
|
37
|
+
"x",
|
|
38
|
+
"y",
|
|
39
|
+
"font-size",
|
|
40
|
+
"fill",
|
|
41
|
+
"font-weight"
|
|
42
|
+
], Ue = {
|
|
43
|
+
key: 5,
|
|
44
|
+
class: "vue-data-ui-watermark"
|
|
45
|
+
}, We = { style: {
|
|
46
|
+
display: "flex",
|
|
47
|
+
"align-items": "center"
|
|
48
|
+
} }, O = /*#__PURE__*/ he({
|
|
49
|
+
__name: "vue-ui-funnel",
|
|
50
|
+
props: {
|
|
51
|
+
config: {
|
|
52
|
+
type: Object,
|
|
53
|
+
default() {
|
|
54
|
+
return {};
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
dataset: {
|
|
58
|
+
type: Array,
|
|
59
|
+
default() {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
emits: ["copyAlt"],
|
|
65
|
+
setup(e, { expose: he, emit: Me }) {
|
|
66
|
+
Ae((e) => ({ v369c26dc: Tt.value }));
|
|
67
|
+
let O = h(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), Ge = h(() => import("./vue-ui-skeleton-zmbcOVEf.js").then((e) => e.n)), Ke = h(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), qe = h(() => import("./DataTable-COIO9gi4.js")), Je = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Ye = h(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Xe = h(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Ze = h(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_funnel: Qe } = le(), { isThemeValid: $e, warnInvalidTheme: et } = de(), k = xe(), A = e, tt = Me, j = S(null), M = S(ie()), nt = S(0), rt = S(0), it = S(0), at = S(null), ot = S(null), st = S(null), N = ke(null), P = ke(null), F = S(!1), I = S(null), L = S(null), R = l(() => !!A.dataset && A.dataset.length);
|
|
68
|
+
De(ut), Ee(() => {
|
|
69
|
+
N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
|
|
70
|
+
});
|
|
71
|
+
function ct() {
|
|
72
|
+
let e = s({
|
|
73
|
+
userConfig: A.config,
|
|
74
|
+
defaultConfig: Qe
|
|
75
|
+
}), t = e.theme;
|
|
76
|
+
if (!t) return e;
|
|
77
|
+
if (!$e.value(e)) return et(e), e;
|
|
78
|
+
let n = s({
|
|
79
|
+
userConfig: Se[t] || A.config,
|
|
80
|
+
defaultConfig: e
|
|
81
|
+
});
|
|
82
|
+
return s({
|
|
83
|
+
userConfig: A.config,
|
|
84
|
+
defaultConfig: n
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
let z = l({
|
|
88
|
+
get: () => ct(),
|
|
89
|
+
set: (e) => e
|
|
90
|
+
}), lt = l(() => z.value.debug);
|
|
91
|
+
function ut() {
|
|
92
|
+
if (r(A.dataset) ? re({
|
|
93
|
+
componentName: "VueUiFunnel",
|
|
94
|
+
type: "dataset",
|
|
95
|
+
debug: lt.value
|
|
96
|
+
}) : A.dataset.forEach((e, t) => {
|
|
97
|
+
te({
|
|
98
|
+
datasetObject: e,
|
|
99
|
+
requiredAttributes: ["name", "value"]
|
|
100
|
+
}).forEach((e) => {
|
|
101
|
+
R.value = !1, re({
|
|
102
|
+
componentName: "VueUiFunnel",
|
|
103
|
+
type: "datasetSerieAttribute",
|
|
104
|
+
property: e,
|
|
105
|
+
index: t,
|
|
106
|
+
debug: lt.value
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
}), z.value.responsive) {
|
|
110
|
+
let e = ge(() => {
|
|
111
|
+
let { width: e, height: t } = _e({
|
|
112
|
+
chart: j.value,
|
|
113
|
+
title: z.value.style.chart.title.text ? st.value : null,
|
|
114
|
+
source: ot.value,
|
|
115
|
+
noTitle: at.value
|
|
116
|
+
});
|
|
117
|
+
requestAnimationFrame(() => {
|
|
118
|
+
U.value.height = t, U.value.width = e, G.value = bt(), z.value.responsiveProportionalSizing ? (H.value.circles = ee({
|
|
119
|
+
relator: Math.min(e, t),
|
|
120
|
+
adjuster: 600,
|
|
121
|
+
source: z.value.style.chart.circles.dataLabels.fontSize,
|
|
122
|
+
threshold: 10,
|
|
123
|
+
fallback: 10
|
|
124
|
+
}), H.value.names = ee({
|
|
125
|
+
relator: Math.min(e, t),
|
|
126
|
+
adjuster: 600,
|
|
127
|
+
source: z.value.style.chart.bars.dataLabels.name.fontSize,
|
|
128
|
+
threshold: 10,
|
|
129
|
+
fallback: 10
|
|
130
|
+
}), H.value.values = ee({
|
|
131
|
+
relator: Math.min(e, t),
|
|
132
|
+
adjuster: 600,
|
|
133
|
+
source: z.value.style.chart.bars.dataLabels.value.fontSize,
|
|
134
|
+
threshold: 10,
|
|
135
|
+
fallback: 10
|
|
136
|
+
})) : (H.value.circles = z.value.style.chart.circles.dataLabels.fontSize, H.value.names = z.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = z.value.style.chart.bars.dataLabels.value.fontSize);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(e), P.value = j.value.parentNode, N.value.observe(P.value);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
se({
|
|
143
|
+
config: () => z.value,
|
|
144
|
+
dataset: () => A.dataset,
|
|
145
|
+
component: "VueUiFunnel",
|
|
146
|
+
rules: [ce.emptyArray, {
|
|
147
|
+
test: (e) => e.length > 10,
|
|
148
|
+
message: [
|
|
149
|
+
"👀 The dataset has a length > 10. Consider:",
|
|
150
|
+
"",
|
|
151
|
+
"▶️ Aggregating some datapoints into broader categories"
|
|
152
|
+
]
|
|
153
|
+
}]
|
|
154
|
+
});
|
|
155
|
+
let dt = l(() => z.value.userOptions.useCursorPointer), { userOptionsVisible: B, setUserOptionsVisibility: ft, keepUserOptionState: pt } = ye({ config: z.value }), { svgRef: mt } = be({ config: z.value.style.chart.title });
|
|
156
|
+
je(() => A.config, (e) => {
|
|
157
|
+
z.value = ct(), B.value = !z.value.userOptions.showOnChartHover, ut(), rt.value += 1, it.value += 1, H.value.circles = z.value.style.chart.circles.dataLabels.fontSize, H.value.names = z.value.style.chart.bars.dataLabels.name.fontSize, H.value.values = z.value.style.chart.bars.dataLabels.value.fontSize, V.value.showTable = z.value.table.show;
|
|
158
|
+
}, { deep: !0 });
|
|
159
|
+
let { isPrinting: ht, isImaging: gt, generatePdf: _t, generateImage: vt } = ue({
|
|
160
|
+
elementId: `funnel_${M.value}`,
|
|
161
|
+
fileName: z.value.style.chart.title.text || "vue-ui-funnel",
|
|
162
|
+
options: z.value.userOptions.print
|
|
163
|
+
}), yt = l(() => z.value.userOptions.show && !z.value.style.chart.title.text), V = S({ showTable: z.value.table.show }), H = S({
|
|
164
|
+
circles: z.value.style.chart.circles.dataLabels.fontSize,
|
|
165
|
+
names: z.value.style.chart.bars.dataLabels.name.fontSize,
|
|
166
|
+
values: z.value.style.chart.bars.dataLabels.value.fontSize
|
|
167
|
+
}), U = l({
|
|
168
|
+
get: () => ({
|
|
169
|
+
height: z.value.style.chart.height,
|
|
170
|
+
width: z.value.style.chart.width
|
|
171
|
+
}),
|
|
172
|
+
set: (e) => e
|
|
173
|
+
}), W = l(() => R.value ? A.dataset.map((e, t) => ({
|
|
174
|
+
...e,
|
|
175
|
+
color: e.color ? i(e.color) : ne(z.value.style.chart.bars.defaultColor, t / A.dataset.length)
|
|
176
|
+
})) : []);
|
|
177
|
+
setTimeout(() => {
|
|
178
|
+
F.value = !0;
|
|
179
|
+
}, W.value.length * 150);
|
|
180
|
+
function bt() {
|
|
181
|
+
let e = z.value.style.chart.padding.left, t = z.value.style.chart.padding.top;
|
|
182
|
+
return {
|
|
183
|
+
left: e,
|
|
184
|
+
top: t,
|
|
185
|
+
right: U.value.width - z.value.style.chart.padding.right,
|
|
186
|
+
bottom: U.value.height - z.value.style.chart.padding.bottom,
|
|
187
|
+
width: U.value.width - e - z.value.style.chart.padding.right,
|
|
188
|
+
height: U.value.height - t - z.value.style.chart.padding.bottom
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
let G = S(bt()), K = l(() => G.value.height / A.dataset.length), q = l(() => K.value * z.value.style.chart.bars.gapRatio), xt = l(() => G.value.width * z.value.style.chart.barCircleSpacingRatio), J = l(() => W.value.map((e, t) => {
|
|
192
|
+
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);
|
|
193
|
+
return {
|
|
194
|
+
...e,
|
|
195
|
+
cx: G.value.left + n / 2,
|
|
196
|
+
cy: r + n / 2,
|
|
197
|
+
datapointIndex: t,
|
|
198
|
+
fill: e.color,
|
|
199
|
+
height: Math.max(n, 0),
|
|
200
|
+
proportion: i,
|
|
201
|
+
r: Math.max(n / 2, 0),
|
|
202
|
+
width: Math.max(a, 0),
|
|
203
|
+
x: G.value.left + n + xt.value,
|
|
204
|
+
y: r
|
|
205
|
+
};
|
|
206
|
+
})), St = l(() => {
|
|
207
|
+
let e = J.value.map((e) => `${e.x + e.width},${e.y + (K.value - q.value) / 2}`);
|
|
208
|
+
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}`;
|
|
209
|
+
}), Ct = l(() => ({
|
|
210
|
+
x1: J.value[0].cx,
|
|
211
|
+
y1: J.value[0].cy,
|
|
212
|
+
x2: J.value.at(-1).cx,
|
|
213
|
+
y2: J.value.at(-1).cy
|
|
214
|
+
})), Y = S(!1);
|
|
215
|
+
function wt(e) {
|
|
216
|
+
Y.value = e, nt.value += 1;
|
|
217
|
+
}
|
|
218
|
+
let Tt = l(() => `${W.value.length * 150}ms`), X = S(!1);
|
|
219
|
+
function Et() {
|
|
220
|
+
X.value = !X.value;
|
|
221
|
+
}
|
|
222
|
+
function Dt() {
|
|
223
|
+
V.value.showTable = !V.value.showTable;
|
|
224
|
+
}
|
|
225
|
+
let Z = l(() => ({
|
|
226
|
+
head: W.value.map((e) => ({
|
|
227
|
+
name: e.name,
|
|
228
|
+
color: e.color
|
|
229
|
+
})),
|
|
230
|
+
body: W.value.map((e) => e.value)
|
|
231
|
+
})), Q = l(() => {
|
|
232
|
+
let e = [
|
|
233
|
+
z.value.table.columnNames.series,
|
|
234
|
+
z.value.table.columnNames.value,
|
|
235
|
+
z.value.table.columnNames.percentage
|
|
236
|
+
], t = Z.value.head.map((e, t) => {
|
|
237
|
+
let n = o(z.value.style.chart.bars.dataLabels.value.formatter, Z.value.body[t], a({
|
|
238
|
+
p: z.value.style.chart.bars.dataLabels.value.prefix,
|
|
239
|
+
v: Z.value.body[t],
|
|
240
|
+
s: z.value.style.chart.bars.dataLabels.value.suffix,
|
|
241
|
+
r: z.value.table.td.roundingValue
|
|
242
|
+
}), { datapoint: J.value[t] }), r = o(z.value.style.chart.circles.dataLabels.formatter, J.value[t].proportion * 100, a({
|
|
243
|
+
v: J.value[t].proportion * 100,
|
|
244
|
+
s: "%",
|
|
245
|
+
r: z.value.table.td.roundingPercentage
|
|
246
|
+
}), { datapoint: J.value[t] });
|
|
247
|
+
return [
|
|
248
|
+
{
|
|
249
|
+
color: e.color,
|
|
250
|
+
name: e.name
|
|
251
|
+
},
|
|
252
|
+
n,
|
|
253
|
+
r
|
|
254
|
+
];
|
|
255
|
+
}), n = {
|
|
256
|
+
th: {
|
|
257
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
258
|
+
color: z.value.table.th.color,
|
|
259
|
+
outline: z.value.table.th.outline
|
|
260
|
+
},
|
|
261
|
+
td: {
|
|
262
|
+
backgroundColor: z.value.table.td.backgroundColor,
|
|
263
|
+
color: z.value.table.td.color,
|
|
264
|
+
outline: z.value.table.td.outline
|
|
265
|
+
},
|
|
266
|
+
breakpoint: z.value.table.responsiveBreakpoint
|
|
267
|
+
};
|
|
268
|
+
return {
|
|
269
|
+
colNames: [
|
|
270
|
+
z.value.table.columnNames.series,
|
|
271
|
+
z.value.table.columnNames.value,
|
|
272
|
+
z.value.table.columnNames.percentage
|
|
273
|
+
],
|
|
274
|
+
head: e,
|
|
275
|
+
body: t,
|
|
276
|
+
config: n
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
function Ot(e = null) {
|
|
280
|
+
Te(() => {
|
|
281
|
+
let r = Z.value.head.map((e, t) => [
|
|
282
|
+
[e.name],
|
|
283
|
+
[Z.value.body[t]],
|
|
284
|
+
[J.value[t].proportion * 100]
|
|
285
|
+
]), i = [
|
|
286
|
+
[z.value.style.chart.title.text],
|
|
287
|
+
[z.value.style.chart.title.subtitle.text],
|
|
288
|
+
[
|
|
289
|
+
[z.value.table.columnNames.series],
|
|
290
|
+
[z.value.table.columnNames.value],
|
|
291
|
+
["%"]
|
|
292
|
+
]
|
|
293
|
+
].concat(r), a = n(i);
|
|
294
|
+
e ? e(a) : t({
|
|
295
|
+
csvContent: a,
|
|
296
|
+
title: z.value.style.chart.title.text || "vue-ui-funnel"
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
function kt() {
|
|
301
|
+
return W.value;
|
|
302
|
+
}
|
|
303
|
+
async function At({ scale: e = 2 } = {}) {
|
|
304
|
+
if (!j.value) return;
|
|
305
|
+
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
|
|
306
|
+
domElement: j.value,
|
|
307
|
+
base64: !0,
|
|
308
|
+
img: !0,
|
|
309
|
+
scale: e
|
|
310
|
+
});
|
|
311
|
+
return {
|
|
312
|
+
imageUri: i,
|
|
313
|
+
base64: a,
|
|
314
|
+
title: z.value.style.chart.title.text,
|
|
315
|
+
width: t,
|
|
316
|
+
height: n,
|
|
317
|
+
aspectRatio: r
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
let $ = l(() => {
|
|
321
|
+
let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
|
|
322
|
+
return {
|
|
323
|
+
component: e ? Ze : Ke,
|
|
324
|
+
title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
|
|
325
|
+
props: e ? {
|
|
326
|
+
backgroundColor: z.value.table.th.backgroundColor,
|
|
327
|
+
color: z.value.table.th.color,
|
|
328
|
+
headerColor: z.value.table.th.color,
|
|
329
|
+
headerBg: z.value.table.th.backgroundColor,
|
|
330
|
+
isFullscreen: Y.value,
|
|
331
|
+
fullscreenParent: j.value,
|
|
332
|
+
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
333
|
+
} : {
|
|
334
|
+
hideDetails: !0,
|
|
335
|
+
config: {
|
|
336
|
+
open: t,
|
|
337
|
+
maxHeight: 1e4,
|
|
338
|
+
body: {
|
|
339
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
340
|
+
color: z.value.style.chart.color
|
|
341
|
+
},
|
|
342
|
+
head: {
|
|
343
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
344
|
+
color: z.value.style.chart.color
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
je(() => V.value.showTable, (e) => {
|
|
351
|
+
z.value.table.show || (e && z.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
352
|
+
});
|
|
353
|
+
function jt() {
|
|
354
|
+
V.value.showTable = !1, L.value && L.value.setTableIconState(!1);
|
|
355
|
+
}
|
|
356
|
+
let Mt = l(() => z.value.style.chart.backgroundColor), Nt = l(() => z.value.style.chart.title), { isCallbackImaging: Pt, isCallbackSvg: Ft, generateSvg: It, onGenerateImage: Lt } = fe({
|
|
357
|
+
svg: mt,
|
|
358
|
+
title: Nt,
|
|
359
|
+
legend: null,
|
|
360
|
+
legendItems: null,
|
|
361
|
+
backgroundColor: Mt,
|
|
362
|
+
getSvgCallback: () => z.value.userOptions.callbacks.svg,
|
|
363
|
+
generateImage: vt
|
|
364
|
+
});
|
|
365
|
+
async function Rt() {
|
|
366
|
+
if (tt("copyAlt", {
|
|
367
|
+
config: z.value,
|
|
368
|
+
dataset: W.value
|
|
369
|
+
}), !z.value.userOptions.callbacks.altCopy) {
|
|
370
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
await Promise.resolve(z.value.userOptions.callbacks.altCopy({
|
|
374
|
+
config: z.value,
|
|
375
|
+
dataset: W.value
|
|
376
|
+
}));
|
|
377
|
+
}
|
|
378
|
+
return he({
|
|
379
|
+
getData: kt,
|
|
380
|
+
getImage: At,
|
|
381
|
+
generatePdf: _t,
|
|
382
|
+
generateCsv: Ot,
|
|
383
|
+
generateImage: vt,
|
|
384
|
+
generateSvg: It,
|
|
385
|
+
toggleTable: Dt,
|
|
386
|
+
toggleAnnotator: Et,
|
|
387
|
+
toggleFullscreen: wt,
|
|
388
|
+
copyAlt: Rt
|
|
389
|
+
}), (e, t) => (x(), f("div", {
|
|
390
|
+
ref_key: "funnelChart",
|
|
391
|
+
ref: j,
|
|
392
|
+
class: v(`vue-data-ui-component vue-ui-funnel ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
393
|
+
style: b(`font-family:${z.value.style.fontFamily};width:100%; ${z.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.style.chart.backgroundColor}`),
|
|
394
|
+
id: `funnel_${M.value}`,
|
|
395
|
+
onMouseenter: t[1] ||= () => E(ft)(!0),
|
|
396
|
+
onMouseleave: t[2] ||= () => E(ft)(!1)
|
|
397
|
+
}, [
|
|
398
|
+
z.value.userOptions.buttons.annotator ? (x(), u(E(Ye), {
|
|
399
|
+
key: 0,
|
|
400
|
+
svgRef: E(mt),
|
|
401
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
402
|
+
color: z.value.style.chart.color,
|
|
403
|
+
active: X.value,
|
|
404
|
+
isCursorPointer: dt.value,
|
|
405
|
+
onClose: Et
|
|
406
|
+
}, {
|
|
407
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
408
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(g({ color: t })), void 0, !0)]),
|
|
409
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(g({ mode: t })), void 0, !0)]),
|
|
410
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(g({ disabled: t })), void 0, !0)]),
|
|
411
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(g({ disabled: t })), void 0, !0)]),
|
|
412
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(g({ disabled: t })), void 0, !0)]),
|
|
413
|
+
_: 3
|
|
414
|
+
}, 8, [
|
|
415
|
+
"svgRef",
|
|
416
|
+
"backgroundColor",
|
|
417
|
+
"color",
|
|
418
|
+
"active",
|
|
419
|
+
"isCursorPointer"
|
|
420
|
+
])) : d("", !0),
|
|
421
|
+
yt.value ? (x(), f("div", {
|
|
422
|
+
key: 1,
|
|
423
|
+
ref_key: "noTitle",
|
|
424
|
+
ref: at,
|
|
425
|
+
class: "vue-data-ui-no-title-space",
|
|
426
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
427
|
+
}, null, 512)) : d("", !0),
|
|
428
|
+
z.value.style.chart.title.text ? (x(), f("div", {
|
|
429
|
+
key: 2,
|
|
430
|
+
ref_key: "chartTitle",
|
|
431
|
+
ref: st,
|
|
432
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
433
|
+
}, [(x(), u(me, {
|
|
434
|
+
key: `title_${rt.value}`,
|
|
435
|
+
config: {
|
|
436
|
+
title: {
|
|
437
|
+
cy: "funnel-div-title",
|
|
438
|
+
...z.value.style.chart.title
|
|
439
|
+
},
|
|
440
|
+
subtitle: {
|
|
441
|
+
cy: "funnel-div-subtitle",
|
|
442
|
+
...z.value.style.chart.title.subtitle
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
446
|
+
z.value.userOptions.show && R.value && (E(pt) || E(B)) ? (x(), u(E(Je), {
|
|
447
|
+
ref_key: "userOptionsRef",
|
|
448
|
+
ref: L,
|
|
449
|
+
key: `user_option_${nt.value}`,
|
|
450
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
451
|
+
color: z.value.style.chart.color,
|
|
452
|
+
isPrinting: E(ht),
|
|
453
|
+
isImaging: E(gt),
|
|
454
|
+
uid: M.value,
|
|
455
|
+
hasTooltip: !1,
|
|
456
|
+
hasPdf: z.value.userOptions.buttons.pdf,
|
|
457
|
+
hasImg: z.value.userOptions.buttons.img,
|
|
458
|
+
hasSvg: z.value.userOptions.buttons.svg,
|
|
459
|
+
hasXls: z.value.userOptions.buttons.csv,
|
|
460
|
+
hasTable: z.value.userOptions.buttons.table,
|
|
461
|
+
hasLabel: !1,
|
|
462
|
+
hasFullscreen: z.value.userOptions.buttons.fullscreen,
|
|
463
|
+
hasAltCopy: z.value.userOptions.buttons.altCopy,
|
|
464
|
+
isFullscreen: Y.value,
|
|
465
|
+
chartElement: j.value,
|
|
466
|
+
position: z.value.userOptions.position,
|
|
467
|
+
titles: { ...z.value.userOptions.buttonTitles },
|
|
468
|
+
hasAnnotator: z.value.userOptions.buttons.annotator,
|
|
469
|
+
isAnnotation: X.value,
|
|
470
|
+
callbacks: z.value.userOptions.callbacks,
|
|
471
|
+
printScale: z.value.userOptions.print.scale,
|
|
472
|
+
tableDialog: z.value.table.useDialog,
|
|
473
|
+
isCursorPointer: dt.value,
|
|
474
|
+
onToggleAnnotator: Et,
|
|
475
|
+
onToggleFullscreen: wt,
|
|
476
|
+
onGeneratePdf: E(_t),
|
|
477
|
+
onGenerateImage: E(Lt),
|
|
478
|
+
onGenerateSvg: E(It),
|
|
479
|
+
onToggleTable: Dt,
|
|
480
|
+
onGenerateCsv: Ot,
|
|
481
|
+
onCopyAlt: Rt,
|
|
482
|
+
style: b({ visibility: E(pt) ? E(B) ? "visible" : "hidden" : "visible" })
|
|
483
|
+
}, Ce({ _: 2 }, [
|
|
484
|
+
e.$slots.menuIcon ? {
|
|
485
|
+
name: "menuIcon",
|
|
486
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(g({
|
|
487
|
+
isOpen: t,
|
|
488
|
+
color: n
|
|
489
|
+
})), void 0, !0)]),
|
|
490
|
+
key: "0"
|
|
491
|
+
} : void 0,
|
|
492
|
+
e.$slots.optionPdf ? {
|
|
493
|
+
name: "optionPdf",
|
|
494
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
495
|
+
key: "1"
|
|
496
|
+
} : void 0,
|
|
497
|
+
e.$slots.optionCsv ? {
|
|
498
|
+
name: "optionCsv",
|
|
499
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
500
|
+
key: "2"
|
|
501
|
+
} : void 0,
|
|
502
|
+
e.$slots.optionImg ? {
|
|
503
|
+
name: "optionImg",
|
|
504
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
505
|
+
key: "3"
|
|
506
|
+
} : void 0,
|
|
507
|
+
e.$slots.optionSvg ? {
|
|
508
|
+
name: "optionSvg",
|
|
509
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
510
|
+
key: "4"
|
|
511
|
+
} : void 0,
|
|
512
|
+
e.$slots.optionTable ? {
|
|
513
|
+
name: "optionTable",
|
|
514
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
515
|
+
key: "5"
|
|
516
|
+
} : void 0,
|
|
517
|
+
e.$slots.optionFullscreen ? {
|
|
518
|
+
name: "optionFullscreen",
|
|
519
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(g({
|
|
520
|
+
toggleFullscreen: t,
|
|
521
|
+
isFullscreen: n
|
|
522
|
+
})), void 0, !0)]),
|
|
523
|
+
key: "6"
|
|
524
|
+
} : void 0,
|
|
525
|
+
e.$slots.optionAnnotator ? {
|
|
526
|
+
name: "optionAnnotator",
|
|
527
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(g({
|
|
528
|
+
toggleAnnotator: t,
|
|
529
|
+
isAnnotator: n
|
|
530
|
+
})), void 0, !0)]),
|
|
531
|
+
key: "7"
|
|
532
|
+
} : void 0,
|
|
533
|
+
e.$slots.optionAltCopy ? {
|
|
534
|
+
name: "optionAltCopy",
|
|
535
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(g({ altCopy: t })), void 0, !0)]),
|
|
536
|
+
key: "8"
|
|
537
|
+
} : void 0,
|
|
538
|
+
e.$slots["custom-menu-before"] ? {
|
|
539
|
+
name: "custom-menu-before",
|
|
540
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
541
|
+
key: "9"
|
|
542
|
+
} : void 0,
|
|
543
|
+
e.$slots["custom-menu-after"] ? {
|
|
544
|
+
name: "custom-menu-after",
|
|
545
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
546
|
+
key: "10"
|
|
547
|
+
} : void 0
|
|
548
|
+
]), 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("."))) : d("", !0),
|
|
549
|
+
R.value ? (x(), f("svg", {
|
|
550
|
+
key: 4,
|
|
551
|
+
ref_key: "svgRef",
|
|
552
|
+
ref: mt,
|
|
553
|
+
xmlns: E(oe),
|
|
554
|
+
class: v({
|
|
555
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
556
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
557
|
+
}),
|
|
558
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
559
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${z.value.style.chart.color}`)
|
|
560
|
+
}, [
|
|
561
|
+
m(E(Xe)),
|
|
562
|
+
e.$slots["chart-background"] ? (x(), f("foreignObject", {
|
|
563
|
+
key: 0,
|
|
564
|
+
x: 0,
|
|
565
|
+
y: 0,
|
|
566
|
+
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
567
|
+
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
568
|
+
style: { pointerEvents: "none" }
|
|
569
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : d("", !0),
|
|
570
|
+
p("defs", null, [m(ve, {
|
|
571
|
+
t: "linear",
|
|
572
|
+
id: `funnel_area_${M.value}`,
|
|
573
|
+
x1: "0%",
|
|
574
|
+
x2: "100%",
|
|
575
|
+
y1: "0%",
|
|
576
|
+
y2: "0%",
|
|
577
|
+
stops: [
|
|
578
|
+
[
|
|
579
|
+
"0%",
|
|
580
|
+
z.value.style.chart.backgroundColor,
|
|
581
|
+
0
|
|
582
|
+
],
|
|
583
|
+
[
|
|
584
|
+
"20%",
|
|
585
|
+
z.value.style.chart.area.color,
|
|
586
|
+
1
|
|
587
|
+
],
|
|
588
|
+
[
|
|
589
|
+
"100%",
|
|
590
|
+
z.value.style.chart.area.color,
|
|
591
|
+
1
|
|
592
|
+
]
|
|
593
|
+
]
|
|
594
|
+
}, null, 8, ["id", "stops"])]),
|
|
595
|
+
z.value.style.chart.circleLinks.show ? (x(), f("line", _({ key: 1 }, Ct.value, {
|
|
596
|
+
stroke: z.value.style.chart.circleLinks.color,
|
|
597
|
+
"stroke-width": 12 * z.value.style.chart.circleLinks.widthRatio,
|
|
598
|
+
"stroke-linecap": "round",
|
|
599
|
+
class: { animated: z.value.useCssAnimation && !E(k) },
|
|
600
|
+
style: {
|
|
601
|
+
strokeDasharray: z.value.useCssAnimation && !E(k) ? G.value.height : 0,
|
|
602
|
+
strokeDashoffset: z.value.useCssAnimation && !E(k) ? G.value.height : 0
|
|
603
|
+
}
|
|
604
|
+
}), null, 16, Ie)) : d("", !0),
|
|
605
|
+
(x(!0), f(c, null, C(J.value, ({ cx: e, cy: t, r: n, fill: r }, i) => (x(), f("circle", _({ ref_for: !0 }, {
|
|
606
|
+
cx: e,
|
|
607
|
+
cy: t,
|
|
608
|
+
r: n,
|
|
609
|
+
fill: r
|
|
610
|
+
}, {
|
|
611
|
+
stroke: z.value.style.chart.circles.stroke,
|
|
612
|
+
"stroke-width": z.value.style.chart.circles.strokeWidth,
|
|
613
|
+
class: { animated: z.value.useCssAnimation && !F.value && !E(k) },
|
|
614
|
+
style: { animationDelay: `${150 * i}ms` }
|
|
615
|
+
}), null, 16, Le))), 256)),
|
|
616
|
+
(x(!0), f(c, null, C(J.value, (e, t) => (x(), f("text", {
|
|
617
|
+
x: e.cx,
|
|
618
|
+
y: e.cy + H.value.circles / 3 + z.value.style.chart.circles.dataLabels.offsetY,
|
|
619
|
+
"text-anchor": "middle",
|
|
620
|
+
"font-size": H.value.circles,
|
|
621
|
+
fill: z.value.style.chart.circles.dataLabels.adaptColorToBackground ? E(ae)(e.color) : z.value.style.chart.circles.dataLabels.color,
|
|
622
|
+
"font-weight": z.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
623
|
+
class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
|
|
624
|
+
style: b({ animationDelay: `${150 * t}ms` })
|
|
625
|
+
}, T(E(o)(z.value.style.chart.circles.dataLabels.formatter, e.proportion * 100, E(a)({
|
|
626
|
+
v: e.proportion * 100,
|
|
627
|
+
s: "%",
|
|
628
|
+
r: z.value.style.chart.circles.dataLabels.rounding
|
|
629
|
+
}), { datapoint: e })), 15, Re))), 256)),
|
|
630
|
+
z.value.style.chart.area.show ? (x(), f("polygon", {
|
|
631
|
+
key: 2,
|
|
632
|
+
points: St.value,
|
|
633
|
+
fill: `url(#funnel_area_${M.value})`,
|
|
634
|
+
class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
|
|
635
|
+
style: b({ transition: z.value.useCssAnimation ? `all ${150 * W.value.length}ms ease-in` : "none" })
|
|
636
|
+
}, null, 14, ze)) : d("", !0),
|
|
637
|
+
(x(!0), f(c, null, C(J.value, ({ x: e, y: t, height: n, width: r, fill: i }, a) => (x(), f("rect", _({ ref_for: !0 }, {
|
|
638
|
+
x: e,
|
|
639
|
+
y: t,
|
|
640
|
+
height: n,
|
|
641
|
+
width: r,
|
|
642
|
+
fill: i
|
|
643
|
+
}, {
|
|
644
|
+
stroke: z.value.style.chart.bars.stroke,
|
|
645
|
+
"stroke-width": z.value.style.chart.bars.strokeWidth,
|
|
646
|
+
rx: z.value.style.chart.bars.borderRadius,
|
|
647
|
+
class: { animated: z.value.useCssAnimation && !F.value && !E(k) },
|
|
648
|
+
style: { animationDelay: `${150 * a}ms` }
|
|
649
|
+
}), null, 16, Be))), 256)),
|
|
650
|
+
(x(!0), f(c, null, C(J.value, (e, t) => (x(), f("g", null, [p("text", {
|
|
651
|
+
x: e.x + e.width + z.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
652
|
+
y: e.cy - H.value.names / 2 + z.value.style.chart.bars.dataLabels.name.offsetY,
|
|
653
|
+
"text-anchor": "start",
|
|
654
|
+
"font-size": H.value.names,
|
|
655
|
+
fill: z.value.style.chart.bars.dataLabels.name.color,
|
|
656
|
+
"font-weight": z.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
657
|
+
class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
|
|
658
|
+
style: b({ animationDelay: `${150 * t}ms` })
|
|
659
|
+
}, T(e.name), 15, Ve), p("text", {
|
|
660
|
+
x: e.x + e.width + z.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
661
|
+
y: e.cy + H.value.values + z.value.style.chart.bars.dataLabels.value.offsetY,
|
|
662
|
+
"text-anchor": "start",
|
|
663
|
+
"font-size": H.value.values,
|
|
664
|
+
fill: z.value.style.chart.bars.dataLabels.value.color,
|
|
665
|
+
"font-weight": z.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
666
|
+
class: v({ animated: z.value.useCssAnimation && !F.value && !E(k) }),
|
|
667
|
+
style: b({ animationDelay: `${150 * t}ms` })
|
|
668
|
+
}, T(E(o)(z.value.style.chart.bars.dataLabels.value.formatter, e.value, E(a)({
|
|
669
|
+
p: z.value.style.chart.bars.dataLabels.value.prefix,
|
|
670
|
+
v: e.value,
|
|
671
|
+
s: z.value.style.chart.bars.dataLabels.value.suffix,
|
|
672
|
+
r: z.value.style.chart.bars.dataLabels.value.rounding
|
|
673
|
+
}), { datapoint: e })), 15, He)]))), 256)),
|
|
674
|
+
w(e.$slots, "svg", { svg: {
|
|
675
|
+
...U.value,
|
|
676
|
+
isPrintingImg: E(ht) || E(gt) || E(Pt),
|
|
677
|
+
isPrintingSvg: E(Ft)
|
|
678
|
+
} }, void 0, !0)
|
|
679
|
+
], 14, Pe)) : d("", !0),
|
|
680
|
+
e.$slots.watermark ? (x(), f("div", Ue, [w(e.$slots, "watermark", y(g({ isPrinting: E(ht) || E(gt) || E(Pt) || E(Ft) })), void 0, !0)])) : d("", !0),
|
|
681
|
+
R.value ? d("", !0) : (x(), u(E(Ge), {
|
|
682
|
+
key: 6,
|
|
683
|
+
config: {
|
|
684
|
+
type: "verticalBar",
|
|
685
|
+
style: {
|
|
686
|
+
backgroundColor: z.value.style.chart.backgroundColor,
|
|
687
|
+
verticalBar: {
|
|
688
|
+
axis: { color: "#CCCCCC" },
|
|
689
|
+
color: "#CCCCCC"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}, null, 8, ["config"])),
|
|
694
|
+
e.$slots.source ? (x(), f("div", {
|
|
695
|
+
key: 7,
|
|
696
|
+
ref_key: "source",
|
|
697
|
+
ref: ot,
|
|
698
|
+
dir: "auto"
|
|
699
|
+
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
700
|
+
R.value && z.value.userOptions.buttons.table ? (x(), u(Oe($.value.component), _({ key: 8 }, $.value.props, {
|
|
701
|
+
ref_key: "tableUnit",
|
|
702
|
+
ref: I,
|
|
703
|
+
onClose: jt
|
|
704
|
+
}), Ce({
|
|
705
|
+
content: D(() => [(x(), u(E(qe), {
|
|
706
|
+
key: `table_${it.value}`,
|
|
707
|
+
colNames: Q.value.colNames,
|
|
708
|
+
head: Q.value.head,
|
|
709
|
+
body: Q.value.body,
|
|
710
|
+
config: Q.value.config,
|
|
711
|
+
title: z.value.table.useDialog ? "" : $.value.title,
|
|
712
|
+
withCloseButton: !z.value.table.useDialog,
|
|
713
|
+
onClose: jt
|
|
714
|
+
}, {
|
|
715
|
+
th: D(({ th: e }) => [p("div", We, T(e), 1)]),
|
|
716
|
+
td: D(({ td: e }) => [we(T(e.name ? e.name : e), 1)]),
|
|
717
|
+
_: 1
|
|
718
|
+
}, 8, [
|
|
719
|
+
"colNames",
|
|
720
|
+
"head",
|
|
721
|
+
"body",
|
|
722
|
+
"config",
|
|
723
|
+
"title",
|
|
724
|
+
"withCloseButton"
|
|
725
|
+
]))]),
|
|
726
|
+
_: 2
|
|
727
|
+
}, [z.value.table.useDialog ? {
|
|
728
|
+
name: "title",
|
|
729
|
+
fn: D(() => [we(T($.value.title), 1)]),
|
|
730
|
+
key: "0"
|
|
731
|
+
} : void 0, z.value.table.useDialog ? {
|
|
732
|
+
name: "actions",
|
|
733
|
+
fn: D(() => [p("button", {
|
|
734
|
+
tabindex: "0",
|
|
735
|
+
class: "vue-ui-user-options-button",
|
|
736
|
+
onClick: t[0] ||= (e) => Ot(z.value.userOptions.callbacks.csv)
|
|
737
|
+
}, [m(E(O), {
|
|
738
|
+
name: "fileCsv",
|
|
739
|
+
stroke: $.value.props.color
|
|
740
|
+
}, null, 8, ["stroke"])])]),
|
|
741
|
+
key: "1"
|
|
742
|
+
} : void 0]), 1040)) : d("", !0)
|
|
743
|
+
], 46, Ne));
|
|
744
|
+
}
|
|
745
|
+
}, [["__scopeId", "data-v-bbf1fbe9"]]);
|
|
746
|
+
//#endregion
|
|
747
|
+
export { Me as n, O as t };
|