vue-data-ui 3.6.0 → 3.7.1
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 +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -0,0 +1,743 @@
|
|
|
1
|
+
import { useCssVars as rt, computed as v, defineAsyncComponent as F, ref as f, shallowRef as $e, onMounted as nt, onBeforeUnmount as ut, watch as Le, createElementBlock as d, openBlock as r, unref as s, normalizeStyle as x, normalizeClass as z, createBlock as N, createCommentVNode as m, withCtx as n, renderSlot as i, normalizeProps as k, guardReactiveProps as A, createSlots as Fe, createVNode as De, createElementVNode as w, mergeProps as H, Fragment as X, renderList as W, toDisplayString as V, resolveDynamicComponent as it, createTextVNode as _e, nextTick as ct } from "vue";
|
|
2
|
+
import { c as vt, o as dt, g as xe, k as ft, l as ht, n as bt, a as Y, d as q, X as gt, w as mt, Y as ae, u as pt, q as yt } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Ct, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as At, a as le } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as $t } from "./useSvgExport-DrjCWun4.js";
|
|
7
|
+
import { u as Lt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import _t from "./img-DUzJeMlr.js";
|
|
11
|
+
import xt from "./Title-DfFUb9hd.js";
|
|
12
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Se = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", area: { color: "#3A3A3A" }, bars: { stroke: "#1A1A1A", dataLabels: { name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" } } }, circles: { stroke: "#1A1A1A" }, circleLinks: { color: "#3A3A3A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Te = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", area: { color: "#D32F2F20" }, bars: { defaultColor: "#E64A19", stroke: "#FFF8E1", dataLabels: { name: { color: "#424242" }, value: { color: "#424242" } } }, circles: { stroke: "#FFF8E1" }, circleLinks: { color: "#D32F2F40" }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, Oe = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", area: { color: "#D32F2F20" }, bars: { defaultColor: "#E64A19", stroke: "#1E1E1E", dataLabels: { name: { color: "#BDBDBD" }, value: { color: "#BDBDBD" } } }, circles: { stroke: "#1E1E1E" }, circleLinks: { color: "#D32F2F60" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, Be = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", area: { color: "#66CC6620" }, bars: { defaultColor: "#66CC66", stroke: "#1A1A1A", dataLabels: { name: { color: "#99AA99" }, value: { color: "#99AA99" } } }, circles: { stroke: "#1A1A1A" }, circleLinks: { color: "#66CC6620" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, Ee = { table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", area: { color: "#8F837A20" }, bars: { defaultColor: "#8F837A", stroke: "#fbfafa", dataLabels: { name: { color: "#8A9892" }, value: { color: "#8A9892" } } }, circles: { stroke: "#fbfafa" }, circleLinks: { color: "#8F837A20" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, ze = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", area: { color: "#8A989230" }, bars: { defaultColor: "#61747E", stroke: "#50606C", dataLabels: { name: { color: "#50606C" }, value: { color: "#50606C" } } }, circles: { stroke: "#50606C" }, circleLinks: { color: "#8A989230" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, Ne = {
|
|
14
|
+
default: {},
|
|
15
|
+
dark: Se,
|
|
16
|
+
celebration: Te,
|
|
17
|
+
celebrationNight: Oe,
|
|
18
|
+
hack: Be,
|
|
19
|
+
zen: Ee,
|
|
20
|
+
concrete: ze
|
|
21
|
+
}, na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
celebration: Te,
|
|
24
|
+
celebrationNight: Oe,
|
|
25
|
+
concrete: ze,
|
|
26
|
+
dark: Se,
|
|
27
|
+
default: Ne,
|
|
28
|
+
hack: Be,
|
|
29
|
+
zen: Ee
|
|
30
|
+
}, Symbol.toStringTag, { value: "Module" })), Tt = ["id"], Ot = ["xmlns", "viewBox"], Bt = ["width", "height"], Et = ["id"], zt = ["stop-color"], Nt = ["stop-color"], Pt = ["stop-color"], It = ["stroke", "stroke-width"], Rt = ["stroke", "stroke-width"], Mt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["points", "fill"], Vt = ["stroke", "stroke-width", "rx"], jt = ["x", "y", "font-size", "fill", "font-weight"], Gt = ["x", "y", "font-size", "fill", "font-weight"], Ht = {
|
|
31
|
+
key: 5,
|
|
32
|
+
class: "vue-data-ui-watermark"
|
|
33
|
+
}, Xt = ["innerHTML"], Wt = {
|
|
34
|
+
__name: "vue-ui-funnel",
|
|
35
|
+
props: {
|
|
36
|
+
config: {
|
|
37
|
+
type: Object,
|
|
38
|
+
default() {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
dataset: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default() {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
setup(Pe, { expose: Ie }) {
|
|
50
|
+
rt((t) => ({
|
|
51
|
+
v1175b36b: Ze.value
|
|
52
|
+
}));
|
|
53
|
+
const Re = F(() => import("./BaseIcon-CofSxalQ.js")), Me = F(() => import("./vue-ui-skeleton-DdXq2gl1.js")), Ue = F(() => import("./vue-ui-accordion-DSdZUn2C.js")), Ve = F(() => import("./DataTable-CHaOCmsE.js")), je = F(() => import("./UserOptions-B3I-s3Lw.js")), Ge = F(() => import("./PenAndPaper-HCZQTkqi.js")), He = F(() => import("./PackageVersion-C82JCJOX.js")), Xe = F(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_funnel: We } = At(), { isThemeValid: Ye, warnInvalidTheme: qe } = Lt(), p = Pe, $ = f(null), P = f(vt()), oe = f(0), se = f(0), re = f(0), ne = f(null), ue = f(null), ie = f(null), L = $e(null), S = $e(null), D = f(!1), I = f(null), J = f(null), T = v(() => !!p.dataset && p.dataset.length);
|
|
54
|
+
nt(ce);
|
|
55
|
+
function ce() {
|
|
56
|
+
if (dt(p.dataset) ? xe({
|
|
57
|
+
componentName: "VueUiFunnel",
|
|
58
|
+
type: "dataset"
|
|
59
|
+
}) : p.dataset.forEach((t, l) => {
|
|
60
|
+
ft({
|
|
61
|
+
datasetObject: t,
|
|
62
|
+
requiredAttributes: ["name", "value"]
|
|
63
|
+
}).forEach((a) => {
|
|
64
|
+
T.value = !1, xe({
|
|
65
|
+
componentName: "VueUiFunnel",
|
|
66
|
+
type: "datasetSerieAttribute",
|
|
67
|
+
property: a,
|
|
68
|
+
index: l
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}), e.value.responsive) {
|
|
72
|
+
const t = Ct(() => {
|
|
73
|
+
const { width: l, height: a } = kt({
|
|
74
|
+
chart: $.value,
|
|
75
|
+
title: e.value.style.chart.title.text ? ie.value : null,
|
|
76
|
+
source: ue.value,
|
|
77
|
+
noTitle: ne.value
|
|
78
|
+
});
|
|
79
|
+
requestAnimationFrame(() => {
|
|
80
|
+
b.value.height = a, b.value.width = l, C.value = pe(), e.value.responsiveProportionalSizing ? (h.value.circles = ae({
|
|
81
|
+
relator: Math.min(l, a),
|
|
82
|
+
adjuster: 600,
|
|
83
|
+
source: e.value.style.chart.circles.dataLabels.fontSize,
|
|
84
|
+
threshold: 10,
|
|
85
|
+
fallback: 10
|
|
86
|
+
}), h.value.names = ae({
|
|
87
|
+
relator: Math.min(l, a),
|
|
88
|
+
adjuster: 600,
|
|
89
|
+
source: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
90
|
+
threshold: 10,
|
|
91
|
+
fallback: 10
|
|
92
|
+
}), h.value.values = ae({
|
|
93
|
+
relator: Math.min(l, a),
|
|
94
|
+
adjuster: 600,
|
|
95
|
+
source: e.value.style.chart.bars.dataLabels.value.fontSize,
|
|
96
|
+
threshold: 10,
|
|
97
|
+
fallback: 10
|
|
98
|
+
})) : (h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
L.value && (S.value && L.value.unobserve(S.value), L.value.disconnect()), L.value = new ResizeObserver(t), S.value = $.value.parentNode, L.value.observe(S.value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
ut(() => {
|
|
105
|
+
L.value && (S.value && L.value.unobserve(S.value), L.value.disconnect());
|
|
106
|
+
});
|
|
107
|
+
function ve() {
|
|
108
|
+
const t = le({
|
|
109
|
+
userConfig: p.config,
|
|
110
|
+
defaultConfig: We
|
|
111
|
+
}), l = t.theme;
|
|
112
|
+
if (!l) return t;
|
|
113
|
+
if (!Ye.value(t))
|
|
114
|
+
return qe(t), t;
|
|
115
|
+
const a = le({
|
|
116
|
+
userConfig: Ne[l] || p.config,
|
|
117
|
+
defaultConfig: t
|
|
118
|
+
});
|
|
119
|
+
return le({
|
|
120
|
+
userConfig: p.config,
|
|
121
|
+
defaultConfig: a
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
const e = v({
|
|
125
|
+
get: () => ve(),
|
|
126
|
+
set: (t) => t
|
|
127
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: de, keepUserOptionState: fe } = Ft({ config: e.value }), { svgRef: Q } = Dt({ config: e.value.style.chart.title });
|
|
128
|
+
Le(() => p.config, (t) => {
|
|
129
|
+
e.value = ve(), K.value = !e.value.userOptions.showOnChartHover, ce(), se.value += 1, re.value += 1, h.value.circles = e.value.style.chart.circles.dataLabels.fontSize, h.value.names = e.value.style.chart.bars.dataLabels.name.fontSize, h.value.values = e.value.style.chart.bars.dataLabels.value.fontSize, O.value.showTable = e.value.table.show;
|
|
130
|
+
}, { deep: !0 });
|
|
131
|
+
const { isPrinting: he, isImaging: be, generatePdf: ge, generateImage: me } = wt({
|
|
132
|
+
elementId: `funnel_${P.value}`,
|
|
133
|
+
fileName: e.value.style.chart.title.text || "vue-ui-funnel",
|
|
134
|
+
options: e.value.userOptions.print
|
|
135
|
+
}), Je = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = f({
|
|
136
|
+
showTable: e.value.table.show
|
|
137
|
+
}), h = f({
|
|
138
|
+
circles: e.value.style.chart.circles.dataLabels.fontSize,
|
|
139
|
+
names: e.value.style.chart.bars.dataLabels.name.fontSize,
|
|
140
|
+
values: e.value.style.chart.bars.dataLabels.value.fontSize
|
|
141
|
+
}), b = v({
|
|
142
|
+
get: () => ({
|
|
143
|
+
height: e.value.style.chart.height,
|
|
144
|
+
width: e.value.style.chart.width
|
|
145
|
+
}),
|
|
146
|
+
set: (t) => t
|
|
147
|
+
}), y = v(() => T.value ? p.dataset.map((t, l) => ({
|
|
148
|
+
...t,
|
|
149
|
+
color: t.color ? ht(t.color) : bt(e.value.style.chart.bars.defaultColor, l / p.dataset.length)
|
|
150
|
+
})) : []);
|
|
151
|
+
setTimeout(() => {
|
|
152
|
+
D.value = !0;
|
|
153
|
+
}, y.value.length * 150);
|
|
154
|
+
function pe() {
|
|
155
|
+
const t = e.value.style.chart.padding.left, l = e.value.style.chart.padding.top;
|
|
156
|
+
return {
|
|
157
|
+
left: t,
|
|
158
|
+
top: l,
|
|
159
|
+
right: b.value.width - e.value.style.chart.padding.right,
|
|
160
|
+
bottom: b.value.height - e.value.style.chart.padding.bottom,
|
|
161
|
+
width: b.value.width - t - e.value.style.chart.padding.right,
|
|
162
|
+
height: b.value.height - l - e.value.style.chart.padding.bottom
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
const C = f(pe()), B = v(() => C.value.height / p.dataset.length), _ = v(() => B.value * e.value.style.chart.bars.gapRatio), ye = v(() => C.value.width * e.value.style.chart.barCircleSpacingRatio), u = v(() => y.value.map((t, l) => {
|
|
166
|
+
const a = B.value - _.value, o = C.value.top + _.value / 2 * l + (B.value - _.value / 2) * l + _.value / 2, g = t.value / y.value[0].value, c = (C.value.width - a - ye.value) * (t.value / y.value[0].value);
|
|
167
|
+
return {
|
|
168
|
+
...t,
|
|
169
|
+
cx: C.value.left + a / 2,
|
|
170
|
+
cy: o + a / 2,
|
|
171
|
+
datapointIndex: l,
|
|
172
|
+
fill: t.color,
|
|
173
|
+
height: Math.max(a, 0),
|
|
174
|
+
proportion: g,
|
|
175
|
+
r: Math.max(a / 2, 0),
|
|
176
|
+
width: Math.max(c, 0),
|
|
177
|
+
x: C.value.left + a + ye.value,
|
|
178
|
+
y: o
|
|
179
|
+
};
|
|
180
|
+
})), Ke = v(() => {
|
|
181
|
+
const t = u.value.map((l) => `${l.x + l.width},${l.y + (B.value - _.value) / 2}`);
|
|
182
|
+
return `${u.value[0].x},${u.value[0].y + (B.value - _.value) / 2} ${t.toString()} ${u.value.at(-1).x},${u.value.at(-1).y + (B.value - _.value) / 2}`;
|
|
183
|
+
}), Qe = v(() => ({
|
|
184
|
+
x1: u.value[0].cx,
|
|
185
|
+
y1: u.value[0].cy,
|
|
186
|
+
x2: u.value.at(-1).cx,
|
|
187
|
+
y2: u.value.at(-1).cy
|
|
188
|
+
})), E = f(!1);
|
|
189
|
+
function Ce(t) {
|
|
190
|
+
E.value = t, oe.value += 1;
|
|
191
|
+
}
|
|
192
|
+
const Ze = v(() => `${y.value.length * 150}ms`), j = f(!1);
|
|
193
|
+
function Z() {
|
|
194
|
+
j.value = !j.value;
|
|
195
|
+
}
|
|
196
|
+
function ke() {
|
|
197
|
+
O.value.showTable = !O.value.showTable;
|
|
198
|
+
}
|
|
199
|
+
const R = v(() => {
|
|
200
|
+
const t = y.value.map((a) => ({
|
|
201
|
+
name: a.name,
|
|
202
|
+
color: a.color
|
|
203
|
+
})), l = y.value.map((a) => a.value);
|
|
204
|
+
return { head: t, body: l };
|
|
205
|
+
}), G = v(() => {
|
|
206
|
+
const t = [
|
|
207
|
+
e.value.table.columnNames.series,
|
|
208
|
+
e.value.table.columnNames.value,
|
|
209
|
+
e.value.table.columnNames.percentage
|
|
210
|
+
], l = R.value.head.map((g, c) => {
|
|
211
|
+
const U = Y(
|
|
212
|
+
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
213
|
+
R.value.body[c],
|
|
214
|
+
q({
|
|
215
|
+
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
216
|
+
v: R.value.body[c],
|
|
217
|
+
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
218
|
+
r: e.value.table.td.roundingValue
|
|
219
|
+
}),
|
|
220
|
+
{ datapoint: u.value[c] }
|
|
221
|
+
), te = Y(
|
|
222
|
+
e.value.style.chart.circles.dataLabels.formatter,
|
|
223
|
+
u.value[c].proportion * 100,
|
|
224
|
+
q({
|
|
225
|
+
v: u.value[c].proportion * 100,
|
|
226
|
+
s: "%",
|
|
227
|
+
r: e.value.table.td.roundingPercentage
|
|
228
|
+
}),
|
|
229
|
+
{ datapoint: u.value[c] }
|
|
230
|
+
);
|
|
231
|
+
return [
|
|
232
|
+
{ color: g.color, name: g.name },
|
|
233
|
+
U,
|
|
234
|
+
te
|
|
235
|
+
];
|
|
236
|
+
}), a = {
|
|
237
|
+
th: {
|
|
238
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
239
|
+
color: e.value.table.th.color,
|
|
240
|
+
outline: e.value.table.th.outline
|
|
241
|
+
},
|
|
242
|
+
td: {
|
|
243
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
244
|
+
color: e.value.table.td.color,
|
|
245
|
+
outline: e.value.table.td.outline
|
|
246
|
+
},
|
|
247
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
248
|
+
};
|
|
249
|
+
return {
|
|
250
|
+
colNames: [
|
|
251
|
+
e.value.table.columnNames.series,
|
|
252
|
+
e.value.table.columnNames.value,
|
|
253
|
+
e.value.table.columnNames.percentage
|
|
254
|
+
],
|
|
255
|
+
head: t,
|
|
256
|
+
body: l,
|
|
257
|
+
config: a
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
function ee(t = null) {
|
|
261
|
+
ct(() => {
|
|
262
|
+
const l = R.value.head.map((g, c) => [[
|
|
263
|
+
g.name
|
|
264
|
+
], [R.value.body[c]], [u.value[c].proportion * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value], ["%"]]].concat(l), o = pt(a);
|
|
265
|
+
t ? t(o) : yt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-funnel" });
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function et() {
|
|
269
|
+
return y.value;
|
|
270
|
+
}
|
|
271
|
+
async function tt({ scale: t = 2 } = {}) {
|
|
272
|
+
if (!$.value) return;
|
|
273
|
+
const { width: l, height: a } = $.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: c } = await _t({ domElement: $.value, base64: !0, img: !0, scale: t });
|
|
274
|
+
return {
|
|
275
|
+
imageUri: g,
|
|
276
|
+
base64: c,
|
|
277
|
+
title: e.value.style.chart.title.text,
|
|
278
|
+
width: l,
|
|
279
|
+
height: a,
|
|
280
|
+
aspectRatio: o
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
const M = v(() => {
|
|
284
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = O.value.showTable;
|
|
285
|
+
return {
|
|
286
|
+
component: t ? Xe : Ue,
|
|
287
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
288
|
+
props: t ? {
|
|
289
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
290
|
+
color: e.value.table.th.color,
|
|
291
|
+
headerColor: e.value.table.th.color,
|
|
292
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
293
|
+
isFullscreen: E.value,
|
|
294
|
+
fullscreenParent: $.value,
|
|
295
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
296
|
+
} : {
|
|
297
|
+
hideDetails: !0,
|
|
298
|
+
config: {
|
|
299
|
+
open: l,
|
|
300
|
+
maxHeight: 1e4,
|
|
301
|
+
body: {
|
|
302
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
303
|
+
color: e.value.style.chart.color
|
|
304
|
+
},
|
|
305
|
+
head: {
|
|
306
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
307
|
+
color: e.value.style.chart.color
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
Le(() => O.value.showTable, (t) => {
|
|
314
|
+
e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
315
|
+
});
|
|
316
|
+
function Ae() {
|
|
317
|
+
O.value.showTable = !1, J.value && J.value.setTableIconState(!1);
|
|
318
|
+
}
|
|
319
|
+
const at = v(() => e.value.style.chart.backgroundColor), lt = v(() => e.value.style.chart.title), { exportSvg: ot, getSvg: st } = $t({
|
|
320
|
+
svg: Q,
|
|
321
|
+
title: lt,
|
|
322
|
+
backgroundColor: at
|
|
323
|
+
});
|
|
324
|
+
async function we({ isCb: t }) {
|
|
325
|
+
if (t) {
|
|
326
|
+
const { blob: l, url: a, text: o, dataUrl: g } = await st();
|
|
327
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: g });
|
|
328
|
+
} else
|
|
329
|
+
ot();
|
|
330
|
+
}
|
|
331
|
+
return Ie({
|
|
332
|
+
getData: et,
|
|
333
|
+
getImage: tt,
|
|
334
|
+
generatePdf: ge,
|
|
335
|
+
generateCsv: ee,
|
|
336
|
+
generateImage: me,
|
|
337
|
+
generateSvg: we,
|
|
338
|
+
toggleTable: ke,
|
|
339
|
+
toggleAnnotator: Z,
|
|
340
|
+
toggleFullscreen: Ce
|
|
341
|
+
}), (t, l) => (r(), d("div", {
|
|
342
|
+
ref_key: "funnelChart",
|
|
343
|
+
ref: $,
|
|
344
|
+
class: z(`vue-data-ui-component vue-ui-funnel ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
345
|
+
style: x(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
346
|
+
id: `funnel_${P.value}`,
|
|
347
|
+
onMouseenter: l[1] || (l[1] = () => s(de)(!0)),
|
|
348
|
+
onMouseleave: l[2] || (l[2] = () => s(de)(!1))
|
|
349
|
+
}, [
|
|
350
|
+
e.value.userOptions.buttons.annotator ? (r(), N(s(Ge), {
|
|
351
|
+
key: 0,
|
|
352
|
+
svgRef: s(Q),
|
|
353
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
354
|
+
color: e.value.style.chart.color,
|
|
355
|
+
active: j.value,
|
|
356
|
+
onClose: Z
|
|
357
|
+
}, {
|
|
358
|
+
"annotator-action-close": n(() => [
|
|
359
|
+
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
360
|
+
]),
|
|
361
|
+
"annotator-action-color": n(({ color: a }) => [
|
|
362
|
+
i(t.$slots, "annotator-action-color", k(A({ color: a })), void 0, !0)
|
|
363
|
+
]),
|
|
364
|
+
"annotator-action-draw": n(({ mode: a }) => [
|
|
365
|
+
i(t.$slots, "annotator-action-draw", k(A({ mode: a })), void 0, !0)
|
|
366
|
+
]),
|
|
367
|
+
"annotator-action-undo": n(({ disabled: a }) => [
|
|
368
|
+
i(t.$slots, "annotator-action-undo", k(A({ disabled: a })), void 0, !0)
|
|
369
|
+
]),
|
|
370
|
+
"annotator-action-redo": n(({ disabled: a }) => [
|
|
371
|
+
i(t.$slots, "annotator-action-redo", k(A({ disabled: a })), void 0, !0)
|
|
372
|
+
]),
|
|
373
|
+
"annotator-action-delete": n(({ disabled: a }) => [
|
|
374
|
+
i(t.$slots, "annotator-action-delete", k(A({ disabled: a })), void 0, !0)
|
|
375
|
+
]),
|
|
376
|
+
_: 3
|
|
377
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
378
|
+
Je.value ? (r(), d("div", {
|
|
379
|
+
key: 1,
|
|
380
|
+
ref_key: "noTitle",
|
|
381
|
+
ref: ne,
|
|
382
|
+
class: "vue-data-ui-no-title-space",
|
|
383
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
384
|
+
}, null, 512)) : m("", !0),
|
|
385
|
+
e.value.style.chart.title.text ? (r(), d("div", {
|
|
386
|
+
key: 2,
|
|
387
|
+
ref_key: "chartTitle",
|
|
388
|
+
ref: ie,
|
|
389
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
390
|
+
}, [
|
|
391
|
+
(r(), N(xt, {
|
|
392
|
+
key: `title_${se.value}`,
|
|
393
|
+
config: {
|
|
394
|
+
title: {
|
|
395
|
+
cy: "funnel-div-title",
|
|
396
|
+
...e.value.style.chart.title
|
|
397
|
+
},
|
|
398
|
+
subtitle: {
|
|
399
|
+
cy: "funnel-div-subtitle",
|
|
400
|
+
...e.value.style.chart.title.subtitle
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}, null, 8, ["config"]))
|
|
404
|
+
], 512)) : m("", !0),
|
|
405
|
+
e.value.userOptions.show && T.value && (s(fe) || s(K)) ? (r(), N(s(je), {
|
|
406
|
+
ref_key: "userOptionsRef",
|
|
407
|
+
ref: J,
|
|
408
|
+
key: `user_option_${oe.value}`,
|
|
409
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
410
|
+
color: e.value.style.chart.color,
|
|
411
|
+
isPrinting: s(he),
|
|
412
|
+
isImaging: s(be),
|
|
413
|
+
uid: P.value,
|
|
414
|
+
hasTooltip: !1,
|
|
415
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
416
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
417
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
418
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
419
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
420
|
+
hasLabel: !1,
|
|
421
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
422
|
+
isFullscreen: E.value,
|
|
423
|
+
chartElement: $.value,
|
|
424
|
+
position: e.value.userOptions.position,
|
|
425
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
426
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
427
|
+
isAnnotation: j.value,
|
|
428
|
+
callbacks: e.value.userOptions.callbacks,
|
|
429
|
+
printScale: e.value.userOptions.print.scale,
|
|
430
|
+
tableDialog: e.value.table.useDialog,
|
|
431
|
+
onToggleAnnotator: Z,
|
|
432
|
+
onToggleFullscreen: Ce,
|
|
433
|
+
onGeneratePdf: s(ge),
|
|
434
|
+
onGenerateImage: s(me),
|
|
435
|
+
onGenerateSvg: we,
|
|
436
|
+
onToggleTable: ke,
|
|
437
|
+
onGenerateCsv: ee,
|
|
438
|
+
style: x({
|
|
439
|
+
visibility: s(fe) ? s(K) ? "visible" : "hidden" : "visible"
|
|
440
|
+
})
|
|
441
|
+
}, Fe({ _: 2 }, [
|
|
442
|
+
t.$slots.menuIcon ? {
|
|
443
|
+
name: "menuIcon",
|
|
444
|
+
fn: n(({ isOpen: a, color: o }) => [
|
|
445
|
+
i(t.$slots, "menuIcon", k(A({ isOpen: a, color: o })), void 0, !0)
|
|
446
|
+
]),
|
|
447
|
+
key: "0"
|
|
448
|
+
} : void 0,
|
|
449
|
+
t.$slots.optionPdf ? {
|
|
450
|
+
name: "optionPdf",
|
|
451
|
+
fn: n(() => [
|
|
452
|
+
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
key: "1"
|
|
455
|
+
} : void 0,
|
|
456
|
+
t.$slots.optionCsv ? {
|
|
457
|
+
name: "optionCsv",
|
|
458
|
+
fn: n(() => [
|
|
459
|
+
i(t.$slots, "optionCsv", {}, void 0, !0)
|
|
460
|
+
]),
|
|
461
|
+
key: "2"
|
|
462
|
+
} : void 0,
|
|
463
|
+
t.$slots.optionImg ? {
|
|
464
|
+
name: "optionImg",
|
|
465
|
+
fn: n(() => [
|
|
466
|
+
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
467
|
+
]),
|
|
468
|
+
key: "3"
|
|
469
|
+
} : void 0,
|
|
470
|
+
t.$slots.optionSvg ? {
|
|
471
|
+
name: "optionSvg",
|
|
472
|
+
fn: n(() => [
|
|
473
|
+
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
474
|
+
]),
|
|
475
|
+
key: "4"
|
|
476
|
+
} : void 0,
|
|
477
|
+
t.$slots.optionTable ? {
|
|
478
|
+
name: "optionTable",
|
|
479
|
+
fn: n(() => [
|
|
480
|
+
i(t.$slots, "optionTable", {}, void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
key: "5"
|
|
483
|
+
} : void 0,
|
|
484
|
+
t.$slots.optionFullscreen ? {
|
|
485
|
+
name: "optionFullscreen",
|
|
486
|
+
fn: n(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
487
|
+
i(t.$slots, "optionFullscreen", k(A({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
488
|
+
]),
|
|
489
|
+
key: "6"
|
|
490
|
+
} : void 0,
|
|
491
|
+
t.$slots.optionAnnotator ? {
|
|
492
|
+
name: "optionAnnotator",
|
|
493
|
+
fn: n(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
494
|
+
i(t.$slots, "optionAnnotator", k(A({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
495
|
+
]),
|
|
496
|
+
key: "7"
|
|
497
|
+
} : void 0
|
|
498
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
499
|
+
T.value ? (r(), d("svg", {
|
|
500
|
+
key: 4,
|
|
501
|
+
ref_key: "svgRef",
|
|
502
|
+
ref: Q,
|
|
503
|
+
xmlns: s(gt),
|
|
504
|
+
class: z({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
505
|
+
viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
|
|
506
|
+
style: x(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
507
|
+
}, [
|
|
508
|
+
De(s(He)),
|
|
509
|
+
t.$slots["chart-background"] ? (r(), d("foreignObject", {
|
|
510
|
+
key: 0,
|
|
511
|
+
x: 0,
|
|
512
|
+
y: 0,
|
|
513
|
+
width: b.value.width <= 0 ? 10 : b.value.width,
|
|
514
|
+
height: b.value.height <= 0 ? 10 : b.value.height,
|
|
515
|
+
style: {
|
|
516
|
+
pointerEvents: "none"
|
|
517
|
+
}
|
|
518
|
+
}, [
|
|
519
|
+
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
520
|
+
], 8, Bt)) : m("", !0),
|
|
521
|
+
w("defs", null, [
|
|
522
|
+
w("linearGradient", {
|
|
523
|
+
id: `funnel_area_${P.value}`,
|
|
524
|
+
x1: "0%",
|
|
525
|
+
x2: "100%",
|
|
526
|
+
y1: "0%",
|
|
527
|
+
y2: "0%"
|
|
528
|
+
}, [
|
|
529
|
+
w("stop", {
|
|
530
|
+
offset: "0%",
|
|
531
|
+
"stop-color": e.value.style.chart.backgroundColor,
|
|
532
|
+
"stop-opacity": 0
|
|
533
|
+
}, null, 8, zt),
|
|
534
|
+
w("stop", {
|
|
535
|
+
offset: "20%",
|
|
536
|
+
"stop-color": e.value.style.chart.area.color
|
|
537
|
+
}, null, 8, Nt),
|
|
538
|
+
w("stop", {
|
|
539
|
+
offset: "100%",
|
|
540
|
+
"stop-color": e.value.style.chart.area.color
|
|
541
|
+
}, null, 8, Pt)
|
|
542
|
+
], 8, Et)
|
|
543
|
+
]),
|
|
544
|
+
e.value.style.chart.circleLinks.show ? (r(), d("line", H({ key: 1 }, Qe.value, {
|
|
545
|
+
stroke: e.value.style.chart.circleLinks.color,
|
|
546
|
+
"stroke-width": 12 * e.value.style.chart.circleLinks.widthRatio,
|
|
547
|
+
"stroke-linecap": "round",
|
|
548
|
+
class: {
|
|
549
|
+
animated: e.value.useCssAnimation
|
|
550
|
+
},
|
|
551
|
+
style: {
|
|
552
|
+
strokeDasharray: e.value.useCssAnimation ? C.value.height : 0,
|
|
553
|
+
strokeDashoffset: e.value.useCssAnimation ? C.value.height : 0
|
|
554
|
+
}
|
|
555
|
+
}), null, 16, It)) : m("", !0),
|
|
556
|
+
(r(!0), d(X, null, W(u.value, ({ cx: a, cy: o, r: g, fill: c }, U) => (r(), d("circle", H({ ref_for: !0 }, { cx: a, cy: o, r: g, fill: c }, {
|
|
557
|
+
stroke: e.value.style.chart.circles.stroke,
|
|
558
|
+
"stroke-width": e.value.style.chart.circles.strokeWidth,
|
|
559
|
+
class: {
|
|
560
|
+
animated: e.value.useCssAnimation && !D.value
|
|
561
|
+
},
|
|
562
|
+
style: {
|
|
563
|
+
animationDelay: `${150 * U}ms`
|
|
564
|
+
}
|
|
565
|
+
}), null, 16, Rt))), 256)),
|
|
566
|
+
(r(!0), d(X, null, W(u.value, (a, o) => (r(), d("text", {
|
|
567
|
+
x: a.cx,
|
|
568
|
+
y: a.cy + h.value.circles / 3 + e.value.style.chart.circles.dataLabels.offsetY,
|
|
569
|
+
"text-anchor": "middle",
|
|
570
|
+
"font-size": h.value.circles,
|
|
571
|
+
fill: e.value.style.chart.circles.dataLabels.adaptColorToBackground ? s(mt)(a.color) : e.value.style.chart.circles.dataLabels.color,
|
|
572
|
+
"font-weight": e.value.style.chart.circles.dataLabels.bold ? "bold" : "normal",
|
|
573
|
+
class: z({
|
|
574
|
+
animated: e.value.useCssAnimation && !D.value
|
|
575
|
+
}),
|
|
576
|
+
style: x({
|
|
577
|
+
animationDelay: `${150 * o}ms`
|
|
578
|
+
})
|
|
579
|
+
}, V(s(Y)(
|
|
580
|
+
e.value.style.chart.circles.dataLabels.formatter,
|
|
581
|
+
a.proportion * 100,
|
|
582
|
+
s(q)({
|
|
583
|
+
v: a.proportion * 100,
|
|
584
|
+
s: "%",
|
|
585
|
+
r: e.value.style.chart.circles.dataLabels.rounding
|
|
586
|
+
}),
|
|
587
|
+
{ datapoint: a }
|
|
588
|
+
)), 15, Mt))), 256)),
|
|
589
|
+
e.value.style.chart.area.show ? (r(), d("polygon", {
|
|
590
|
+
key: 2,
|
|
591
|
+
points: Ke.value,
|
|
592
|
+
fill: `url(#funnel_area_${P.value})`,
|
|
593
|
+
class: z({
|
|
594
|
+
animated: e.value.useCssAnimation && !D.value
|
|
595
|
+
}),
|
|
596
|
+
style: x({
|
|
597
|
+
transition: e.value.useCssAnimation ? `all ${150 * y.value.length}ms ease-in` : "none"
|
|
598
|
+
})
|
|
599
|
+
}, null, 14, Ut)) : m("", !0),
|
|
600
|
+
(r(!0), d(X, null, W(u.value, ({ x: a, y: o, height: g, width: c, fill: U }, te) => (r(), d("rect", H({ ref_for: !0 }, { x: a, y: o, height: g, width: c, fill: U }, {
|
|
601
|
+
stroke: e.value.style.chart.bars.stroke,
|
|
602
|
+
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
603
|
+
rx: e.value.style.chart.bars.borderRadius,
|
|
604
|
+
class: {
|
|
605
|
+
animated: e.value.useCssAnimation && !D.value
|
|
606
|
+
},
|
|
607
|
+
style: {
|
|
608
|
+
animationDelay: `${150 * te}ms`
|
|
609
|
+
}
|
|
610
|
+
}), null, 16, Vt))), 256)),
|
|
611
|
+
(r(!0), d(X, null, W(u.value, (a, o) => (r(), d("g", null, [
|
|
612
|
+
w("text", {
|
|
613
|
+
x: a.x + a.width + e.value.style.chart.bars.dataLabels.name.offsetX + 12,
|
|
614
|
+
y: a.cy - h.value.names / 2 + e.value.style.chart.bars.dataLabels.name.offsetY,
|
|
615
|
+
"text-anchor": "start",
|
|
616
|
+
"font-size": h.value.names,
|
|
617
|
+
fill: e.value.style.chart.bars.dataLabels.name.color,
|
|
618
|
+
"font-weight": e.value.style.chart.bars.dataLabels.name.bold ? "bold" : "normal",
|
|
619
|
+
class: z({
|
|
620
|
+
animated: e.value.useCssAnimation && !D.value
|
|
621
|
+
}),
|
|
622
|
+
style: x({
|
|
623
|
+
animationDelay: `${150 * o}ms`
|
|
624
|
+
})
|
|
625
|
+
}, V(a.name), 15, jt),
|
|
626
|
+
w("text", {
|
|
627
|
+
x: a.x + a.width + e.value.style.chart.bars.dataLabels.value.offsetX + 12,
|
|
628
|
+
y: a.cy + h.value.values + e.value.style.chart.bars.dataLabels.value.offsetY,
|
|
629
|
+
"text-anchor": "start",
|
|
630
|
+
"font-size": h.value.values,
|
|
631
|
+
fill: e.value.style.chart.bars.dataLabels.value.color,
|
|
632
|
+
"font-weight": e.value.style.chart.bars.dataLabels.value.bold ? "bold" : "normal",
|
|
633
|
+
class: z({
|
|
634
|
+
animated: e.value.useCssAnimation && !D.value
|
|
635
|
+
}),
|
|
636
|
+
style: x({
|
|
637
|
+
animationDelay: `${150 * o}ms`
|
|
638
|
+
})
|
|
639
|
+
}, V(s(Y)(
|
|
640
|
+
e.value.style.chart.bars.dataLabels.value.formatter,
|
|
641
|
+
a.value,
|
|
642
|
+
s(q)({
|
|
643
|
+
p: e.value.style.chart.bars.dataLabels.value.prefix,
|
|
644
|
+
v: a.value,
|
|
645
|
+
s: e.value.style.chart.bars.dataLabels.value.suffix,
|
|
646
|
+
r: e.value.style.chart.bars.dataLabels.value.rounding
|
|
647
|
+
}),
|
|
648
|
+
{ datapoint: a }
|
|
649
|
+
)), 15, Gt)
|
|
650
|
+
]))), 256)),
|
|
651
|
+
i(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
652
|
+
], 14, Ot)) : m("", !0),
|
|
653
|
+
t.$slots.watermark ? (r(), d("div", Ht, [
|
|
654
|
+
i(t.$slots, "watermark", k(A({ isPrinting: s(he) || s(be) })), void 0, !0)
|
|
655
|
+
])) : m("", !0),
|
|
656
|
+
T.value ? m("", !0) : (r(), N(s(Me), {
|
|
657
|
+
key: 6,
|
|
658
|
+
config: {
|
|
659
|
+
type: "verticalBar",
|
|
660
|
+
style: {
|
|
661
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
662
|
+
verticalBar: {
|
|
663
|
+
axis: {
|
|
664
|
+
color: "#CCCCCC"
|
|
665
|
+
},
|
|
666
|
+
color: "#CCCCCC"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}, null, 8, ["config"])),
|
|
671
|
+
t.$slots.source ? (r(), d("div", {
|
|
672
|
+
key: 7,
|
|
673
|
+
ref_key: "source",
|
|
674
|
+
ref: ue,
|
|
675
|
+
dir: "auto"
|
|
676
|
+
}, [
|
|
677
|
+
i(t.$slots, "source", {}, void 0, !0)
|
|
678
|
+
], 512)) : m("", !0),
|
|
679
|
+
T.value && e.value.userOptions.buttons.table ? (r(), N(it(M.value.component), H({ key: 8 }, M.value.props, {
|
|
680
|
+
ref_key: "tableUnit",
|
|
681
|
+
ref: I,
|
|
682
|
+
onClose: Ae
|
|
683
|
+
}), Fe({
|
|
684
|
+
content: n(() => [
|
|
685
|
+
(r(), N(s(Ve), {
|
|
686
|
+
key: `table_${re.value}`,
|
|
687
|
+
colNames: G.value.colNames,
|
|
688
|
+
head: G.value.head,
|
|
689
|
+
body: G.value.body,
|
|
690
|
+
config: G.value.config,
|
|
691
|
+
title: e.value.table.useDialog ? "" : M.value.title,
|
|
692
|
+
withCloseButton: !e.value.table.useDialog,
|
|
693
|
+
onClose: Ae
|
|
694
|
+
}, {
|
|
695
|
+
th: n(({ th: a }) => [
|
|
696
|
+
w("div", {
|
|
697
|
+
innerHTML: a,
|
|
698
|
+
style: { display: "flex", "align-items": "center" }
|
|
699
|
+
}, null, 8, Xt)
|
|
700
|
+
]),
|
|
701
|
+
td: n(({ td: a }) => [
|
|
702
|
+
_e(V(a.name ? a.name : a), 1)
|
|
703
|
+
]),
|
|
704
|
+
_: 1
|
|
705
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
706
|
+
]),
|
|
707
|
+
_: 2
|
|
708
|
+
}, [
|
|
709
|
+
e.value.table.useDialog ? {
|
|
710
|
+
name: "title",
|
|
711
|
+
fn: n(() => [
|
|
712
|
+
_e(V(M.value.title), 1)
|
|
713
|
+
]),
|
|
714
|
+
key: "0"
|
|
715
|
+
} : void 0,
|
|
716
|
+
e.value.table.useDialog ? {
|
|
717
|
+
name: "actions",
|
|
718
|
+
fn: n(() => [
|
|
719
|
+
w("button", {
|
|
720
|
+
tabindex: "0",
|
|
721
|
+
class: "vue-ui-user-options-button",
|
|
722
|
+
onClick: l[0] || (l[0] = (a) => ee(e.value.userOptions.callbacks.csv))
|
|
723
|
+
}, [
|
|
724
|
+
De(s(Re), {
|
|
725
|
+
name: "excel",
|
|
726
|
+
stroke: M.value.props.color
|
|
727
|
+
}, null, 8, ["stroke"])
|
|
728
|
+
])
|
|
729
|
+
]),
|
|
730
|
+
key: "1"
|
|
731
|
+
} : void 0
|
|
732
|
+
]), 1040)) : m("", !0)
|
|
733
|
+
], 46, Tt));
|
|
734
|
+
}
|
|
735
|
+
}, Yt = /* @__PURE__ */ St(Wt, [["__scopeId", "data-v-fb155766"]]), ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
736
|
+
__proto__: null,
|
|
737
|
+
default: Yt
|
|
738
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
739
|
+
export {
|
|
740
|
+
na as a,
|
|
741
|
+
ua as b,
|
|
742
|
+
Yt as v
|
|
743
|
+
};
|