vue-data-ui 3.22.8 → 3.22.9
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/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.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-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-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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- 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/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -12,25 +12,26 @@ import { t as Se } from "./Shape-UpH0a4Ur.js";
|
|
|
12
12
|
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as Ee } from "./
|
|
16
|
-
import { t as De } from "./
|
|
17
|
-
import { t as Oe } from "./
|
|
18
|
-
import { t as ke } from "./
|
|
19
|
-
import { t as Ae } from "./
|
|
20
|
-
import { t as je } from "./
|
|
21
|
-
import { t as Me } from "./
|
|
22
|
-
import {
|
|
15
|
+
import { t as Ee } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
+
import { t as De } from "./BaseLegendToggle-DWtet-Hh.js";
|
|
17
|
+
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
18
|
+
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as je } from "./labelUtils-DBEh078l.js";
|
|
21
|
+
import { t as Me } from "./Legend-ROt6ugzW.js";
|
|
22
|
+
import { t as Ne } from "./vue_ui_waffle-DIARFc7g.js";
|
|
23
|
+
import { Fragment as c, Teleport as Pe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as g, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as x, toRefs as Ke, unref as S, useSlots as qe, watch as C, withCtx as w } from "vue";
|
|
23
24
|
//#region src/components/vue-ui-waffle.vue
|
|
24
|
-
var
|
|
25
|
+
var Je = /* @__PURE__ */ e({ default: () => ht }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
|
|
25
26
|
"xmlns",
|
|
26
27
|
"aria-describedby",
|
|
27
28
|
"viewBox"
|
|
28
|
-
],
|
|
29
|
+
], et = ["id"], tt = [
|
|
29
30
|
"x",
|
|
30
31
|
"y",
|
|
31
32
|
"height",
|
|
32
33
|
"width"
|
|
33
|
-
],
|
|
34
|
+
], nt = ["height", "width"], rt = { key: 0 }, it = [
|
|
34
35
|
"rx",
|
|
35
36
|
"x",
|
|
36
37
|
"y",
|
|
@@ -39,7 +40,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
39
40
|
"stroke",
|
|
40
41
|
"stroke-width",
|
|
41
42
|
"filter"
|
|
42
|
-
],
|
|
43
|
+
], at = [
|
|
43
44
|
"rx",
|
|
44
45
|
"x",
|
|
45
46
|
"y",
|
|
@@ -49,7 +50,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
49
50
|
"stroke",
|
|
50
51
|
"stroke-width",
|
|
51
52
|
"filter"
|
|
52
|
-
],
|
|
53
|
+
], ot = { key: 1 }, st = [
|
|
53
54
|
"rx",
|
|
54
55
|
"x",
|
|
55
56
|
"y",
|
|
@@ -57,14 +58,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
57
58
|
"width",
|
|
58
59
|
"fill",
|
|
59
60
|
"filter"
|
|
60
|
-
],
|
|
61
|
+
], ct = [
|
|
61
62
|
"textContent",
|
|
62
63
|
"x",
|
|
63
64
|
"y",
|
|
64
65
|
"font-size",
|
|
65
66
|
"fill",
|
|
66
67
|
"filter"
|
|
67
|
-
],
|
|
68
|
+
], lt = [
|
|
68
69
|
"x",
|
|
69
70
|
"y",
|
|
70
71
|
"height",
|
|
@@ -72,7 +73,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
72
73
|
"onMouseover",
|
|
73
74
|
"onMouseleave",
|
|
74
75
|
"onClick"
|
|
75
|
-
],
|
|
76
|
+
], ut = {
|
|
76
77
|
key: 0,
|
|
77
78
|
style: {
|
|
78
79
|
position: "absolute",
|
|
@@ -82,10 +83,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
82
83
|
},
|
|
83
84
|
"data-dom-to-png-ignore": "",
|
|
84
85
|
"aria-hidden": "true"
|
|
85
|
-
},
|
|
86
|
+
}, dt = {
|
|
86
87
|
key: 5,
|
|
87
88
|
class: "vue-data-ui-watermark"
|
|
88
|
-
},
|
|
89
|
+
}, ft = ["id"], pt = ["onClick"], mt = ["innerHTML"], ht = /*#__PURE__*/ Ce({
|
|
89
90
|
__name: "vue-ui-waffle",
|
|
90
91
|
props: {
|
|
91
92
|
config: {
|
|
@@ -102,18 +103,18 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
105
|
emits: ["selectLegend", "copyAlt"],
|
|
105
|
-
setup(e, { expose: Ce, emit:
|
|
106
|
-
let
|
|
106
|
+
setup(e, { expose: Ce, emit: Je }) {
|
|
107
|
+
let ht = m(() => import("./Tooltip-CxOrWlFy.js")), gt = m(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), _t = m(() => import("./DataTable-BxpTMgfK.js")), vt = m(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), yt = m(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), bt = m(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), xt = m(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), St = m(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_waffle: Ct } = pe(), { isThemeValid: wt, warnInvalidTheme: Tt } = ye(), T = e, Et = qe(), Dt = l({
|
|
107
108
|
get() {
|
|
108
109
|
return !!T.dataset && T.dataset.length;
|
|
109
110
|
},
|
|
110
111
|
set(e) {
|
|
111
112
|
return e;
|
|
112
113
|
}
|
|
113
|
-
}), E = v(n()),
|
|
114
|
+
}), E = v(n()), Ot = v(!1), kt = v(""), D = v(null), At = v(0), O = v(null), jt = v(null), Mt = v(null), Nt = v(null), Pt = v(null), Ft = v(0), It = v(0), Lt = v(0), Rt = v(!1), zt = v(null), Bt = v(null), Vt = v(!1), Ht = v(!1), k = v(null), Ut = v({
|
|
114
115
|
x: 0,
|
|
115
116
|
y: 0
|
|
116
|
-
}),
|
|
117
|
+
}), Wt = v("pointer"), Gt = v(!1), A = v($t()), j = l(() => A.value.userOptions.useCursorPointer), Kt = l(() => i({
|
|
117
118
|
defaultConfig: {
|
|
118
119
|
useCustomCells: !1,
|
|
119
120
|
userOptions: { show: !1 },
|
|
@@ -132,13 +133,13 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
132
133
|
} }
|
|
133
134
|
},
|
|
134
135
|
userConfig: A.value.skeletonConfig ?? {}
|
|
135
|
-
})), { loading:
|
|
136
|
-
...
|
|
136
|
+
})), { loading: qt, FINAL_DATASET: Jt, manualLoading: Yt } = he({
|
|
137
|
+
...Ke(T),
|
|
137
138
|
FINAL_CONFIG: A,
|
|
138
|
-
prepareConfig:
|
|
139
|
+
prepareConfig: $t,
|
|
139
140
|
callback: () => {
|
|
140
141
|
Promise.resolve().then(async () => {
|
|
141
|
-
V.value =
|
|
142
|
+
V.value = fn();
|
|
142
143
|
});
|
|
143
144
|
},
|
|
144
145
|
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
@@ -160,18 +161,18 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
160
161
|
],
|
|
161
162
|
skeletonConfig: i({
|
|
162
163
|
defaultConfig: A.value,
|
|
163
|
-
userConfig:
|
|
164
|
+
userConfig: Kt.value
|
|
164
165
|
})
|
|
165
|
-
}), { userOptionsVisible:
|
|
166
|
-
function
|
|
166
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = ke({ config: A.value }), { svgRef: M } = Ae({ config: A.value.style.chart.title });
|
|
167
|
+
function $t() {
|
|
167
168
|
let e = ve({
|
|
168
169
|
userConfig: T.config,
|
|
169
|
-
defaultConfig:
|
|
170
|
+
defaultConfig: Ct
|
|
170
171
|
}), t = e.theme;
|
|
171
172
|
if (!t) return e;
|
|
172
|
-
if (!
|
|
173
|
+
if (!wt.value(e)) return Tt(e), e;
|
|
173
174
|
let n = ve({
|
|
174
|
-
userConfig:
|
|
175
|
+
userConfig: Ne[t] || T.config,
|
|
175
176
|
defaultConfig: e
|
|
176
177
|
}), r = ve({
|
|
177
178
|
userConfig: T.config,
|
|
@@ -183,15 +184,15 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
186
|
C(() => T.config, (e) => {
|
|
186
|
-
|
|
187
|
+
qt.value || (A.value = $t()), Xt.value = !A.value.userOptions.showOnChartHover, tn(), Ft.value += 1, It.value += 1, Lt.value += 1, F.value.showTable = A.value.table.show, F.value.showTooltip = A.value.style.chart.tooltip.show;
|
|
187
188
|
}, { deep: !0 });
|
|
188
|
-
let N =
|
|
189
|
-
function
|
|
189
|
+
let N = Ge(null), P = Ge(null), en = l(() => !!A.value.debug);
|
|
190
|
+
function tn() {
|
|
190
191
|
if (oe(T.dataset) ? (t({
|
|
191
192
|
componentName: "VueUiWaffle",
|
|
192
193
|
type: "dataset",
|
|
193
|
-
debug:
|
|
194
|
-
}),
|
|
194
|
+
debug: en.value
|
|
195
|
+
}), Dt.value = !1, Yt.value = !0) : T.dataset.forEach((e, n) => {
|
|
195
196
|
ae({
|
|
196
197
|
datasetObject: e,
|
|
197
198
|
requiredAttributes: ["name", "values"]
|
|
@@ -201,17 +202,17 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
201
202
|
type: "datasetSerieAttribute",
|
|
202
203
|
property: e,
|
|
203
204
|
index: n,
|
|
204
|
-
debug:
|
|
205
|
+
debug: en.value
|
|
205
206
|
});
|
|
206
207
|
});
|
|
207
|
-
}), oe(T.dataset) || (
|
|
208
|
+
}), oe(T.dataset) || (Yt.value = A.value.loading), A.value.responsive) {
|
|
208
209
|
let e = we(() => {
|
|
209
210
|
let { width: e, height: t } = Te({
|
|
210
211
|
chart: O.value,
|
|
211
|
-
title: A.value.style.chart.title.text ?
|
|
212
|
-
legend: A.value.style.chart.legend.show ?
|
|
213
|
-
source:
|
|
214
|
-
noTitle:
|
|
212
|
+
title: A.value.style.chart.title.text ? jt.value : null,
|
|
213
|
+
legend: A.value.style.chart.legend.show ? Mt.value : null,
|
|
214
|
+
source: Nt.value,
|
|
215
|
+
noTitle: Pt.value
|
|
215
216
|
});
|
|
216
217
|
requestAnimationFrame(() => {
|
|
217
218
|
I.value.width = e, I.value.height = t, L.value.width = e, L.value.height = t;
|
|
@@ -220,16 +221,16 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
220
221
|
N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(e), P.value = O.value.parentNode, N.value.observe(P.value);
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}),
|
|
224
|
+
Ue(() => {
|
|
225
|
+
Rt.value = !0, tn();
|
|
226
|
+
}), He(() => {
|
|
226
227
|
N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
|
|
227
228
|
});
|
|
228
|
-
let { isPrinting:
|
|
229
|
+
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = me({
|
|
229
230
|
elementId: `vue-ui-waffle_${E.value}`,
|
|
230
231
|
fileName: A.value.style.chart.title.text || "vue-ui-waffle",
|
|
231
232
|
options: A.value.userOptions.print
|
|
232
|
-
}),
|
|
233
|
+
}), sn = l(() => A.value.userOptions.show && !A.value.style.chart.title.text), cn = l(() => ee(A.value.customPalette)), F = v({
|
|
233
234
|
showTable: A.value.table.show,
|
|
234
235
|
showTooltip: A.value.style.chart.tooltip.show
|
|
235
236
|
});
|
|
@@ -247,8 +248,8 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
247
248
|
left: 0,
|
|
248
249
|
height: 512,
|
|
249
250
|
width: 512
|
|
250
|
-
}), R = l(() => (L.value.width - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size), z = l(() => (L.value.height - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size),
|
|
251
|
-
function
|
|
251
|
+
}), R = l(() => (L.value.width - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size), z = l(() => (L.value.height - A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.spaceBetween) / A.value.style.chart.layout.grid.size), ln = l(() => Math.max(1e-4, L.value.width / A.value.style.chart.layout.grid.size)), un = l(() => Math.max(1e-4, L.value.height / A.value.style.chart.layout.grid.size));
|
|
252
|
+
function dn(e) {
|
|
252
253
|
let t = A.value.style.chart.layout.grid.size * A.value.style.chart.layout.grid.size, n = e.reduce((e, t) => e + t, 0), r = e.map((e) => e / n * t), i = r.map(Math.floor), a = r.map((e) => e % 1), o = t - i.reduce((e, t) => e + t, 0);
|
|
253
254
|
for (; o > 0;) {
|
|
254
255
|
let e = a.indexOf(Math.max(...a));
|
|
@@ -257,21 +258,21 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
257
258
|
return i;
|
|
258
259
|
}
|
|
259
260
|
let B = v(!1);
|
|
260
|
-
function
|
|
261
|
-
return B.value =
|
|
261
|
+
function fn() {
|
|
262
|
+
return B.value = Jt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Jt.value.map((e, t) => ({
|
|
262
263
|
...e,
|
|
263
|
-
color: ie(e.color) ||
|
|
264
|
+
color: ie(e.color) || cn.value[t] || a[t] || a[t % a.length],
|
|
264
265
|
uid: `serie_${t}`,
|
|
265
266
|
absoluteIndex: t
|
|
266
267
|
}));
|
|
267
268
|
}
|
|
268
|
-
let
|
|
269
|
+
let pn = l(() => fn()), V = v(pn.value);
|
|
269
270
|
C(() => T.dataset, (e) => {
|
|
270
|
-
Array.isArray(e) && e.length > 0 && (
|
|
271
|
+
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
271
272
|
}, { immediate: !0 }), C(() => T.dataset, (e) => {
|
|
272
|
-
V.value =
|
|
273
|
+
V.value = fn();
|
|
273
274
|
}, { deep: !0 });
|
|
274
|
-
let
|
|
275
|
+
let mn = l(() => dn(V.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => B.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), hn = l(() => dn(V.value.map((e, t) => B.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), H = l(() => (Jt.value.forEach((e, n) => {
|
|
275
276
|
[null, void 0].includes(e.values) && t({
|
|
276
277
|
componentName: "VueUiWaffle",
|
|
277
278
|
type: "datasetSerieAttribute",
|
|
@@ -285,7 +286,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
285
286
|
color: e.color,
|
|
286
287
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
287
288
|
absoluteValues: e.values || [],
|
|
288
|
-
proportion:
|
|
289
|
+
proportion: mn.value[t]
|
|
289
290
|
})))), U = l(() => V.value.map((e, t) => ({
|
|
290
291
|
absoluteIndex: e.absoluteIndex,
|
|
291
292
|
uid: e.uid,
|
|
@@ -293,9 +294,9 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
293
294
|
color: e.color,
|
|
294
295
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
295
296
|
absoluteValues: e.values || [],
|
|
296
|
-
proportion:
|
|
297
|
+
proportion: hn.value[t]
|
|
297
298
|
})));
|
|
298
|
-
function
|
|
299
|
+
function gn() {
|
|
299
300
|
return U.value.map((e) => ({
|
|
300
301
|
name: e.name,
|
|
301
302
|
color: e.color,
|
|
@@ -303,7 +304,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
303
304
|
proportion: e.proportion
|
|
304
305
|
}));
|
|
305
306
|
}
|
|
306
|
-
let
|
|
307
|
+
let _n = l(() => {
|
|
307
308
|
let e = 0;
|
|
308
309
|
return H.value.map((t, n) => {
|
|
309
310
|
let r = e, i = r + t.proportion, a = [];
|
|
@@ -314,7 +315,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
314
315
|
rects: a
|
|
315
316
|
};
|
|
316
317
|
});
|
|
317
|
-
}), W = l(() =>
|
|
318
|
+
}), W = l(() => _n.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
318
319
|
isFirst: r === 0,
|
|
319
320
|
isLongEnough: n.length > 2,
|
|
320
321
|
name: e.name,
|
|
@@ -336,44 +337,44 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
336
337
|
y: (A.value.style.chart.layout.grid.vertical ? n : t) * (z.value + A.value.style.chart.layout.grid.spaceBetween) + L.value.top
|
|
337
338
|
});
|
|
338
339
|
return e;
|
|
339
|
-
}), K = v([]),
|
|
340
|
-
function
|
|
340
|
+
}), K = v([]), vn = v(!1), yn = v(Object.create(null)), bn = v(Object.create(null)), xn = v(0);
|
|
341
|
+
function Sn(e, t) {
|
|
341
342
|
V.value = V.value.map((n) => n.uid === e ? {
|
|
342
343
|
...n,
|
|
343
344
|
values: [t]
|
|
344
345
|
} : n);
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function Cn(e, t) {
|
|
347
348
|
let n = t.find((t) => t.uid === e);
|
|
348
349
|
return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
|
|
351
|
+
function wn(e) {
|
|
352
|
+
yn.value[e] && (cancelAnimationFrame(yn.value[e]), delete yn.value[e]), bn.value[e] && (cancelAnimationFrame(bn.value[e]), delete bn.value[e]);
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
354
|
+
function Tn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
355
|
+
wn(e), xn.value += 1, vn.value = !0;
|
|
355
356
|
let i = t;
|
|
356
357
|
return new Promise((a) => {
|
|
357
358
|
function o() {
|
|
358
359
|
if (r === "increase") {
|
|
359
360
|
if (i >= n) {
|
|
360
|
-
|
|
361
|
+
Sn(e, n), --xn.value, xn.value <= 0 && (vn.value = !1), delete yn.value[e], a();
|
|
361
362
|
return;
|
|
362
363
|
}
|
|
363
|
-
i += n * .025, i > n && (i = n),
|
|
364
|
+
i += n * .025, i > n && (i = n), Sn(e, i), yn.value[e] = requestAnimationFrame(o);
|
|
364
365
|
} else {
|
|
365
366
|
if (i <= t / 100) {
|
|
366
|
-
|
|
367
|
+
Sn(e, 0), --xn.value, xn.value <= 0 && (vn.value = !1), delete bn.value[e], a();
|
|
367
368
|
return;
|
|
368
369
|
}
|
|
369
|
-
i /= 1.15,
|
|
370
|
+
i /= 1.15, Sn(e, i), bn.value[e] = requestAnimationFrame(o);
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
o();
|
|
373
374
|
});
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
-
V.value =
|
|
376
|
+
function En() {
|
|
377
|
+
V.value = pn.value;
|
|
377
378
|
let e = K.value.length > 0;
|
|
378
379
|
if (!A.value.useAnimation) {
|
|
379
380
|
e ? K.value = [] : K.value = J.value.map((e) => e.uid);
|
|
@@ -392,16 +393,16 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
392
393
|
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
|
|
393
394
|
return;
|
|
394
395
|
}
|
|
395
|
-
let r =
|
|
396
|
+
let r = Cn(e, pn.value), i = Cn(e, V.value);
|
|
396
397
|
if (!(i === 0 && r === 0)) {
|
|
397
398
|
if (K.value.includes(e)) {
|
|
398
|
-
K.value = K.value.filter((t) => t !== e),
|
|
399
|
+
K.value = K.value.filter((t) => t !== e), Tn({
|
|
399
400
|
seriesId: e,
|
|
400
401
|
fromValue: i,
|
|
401
402
|
toValue: r,
|
|
402
403
|
mode: "increase"
|
|
403
404
|
}).then(() => {
|
|
404
|
-
|
|
405
|
+
zn("selectLegend", H.value.map((e) => ({
|
|
405
406
|
name: e.name,
|
|
406
407
|
color: e.color,
|
|
407
408
|
value: e.value,
|
|
@@ -410,13 +411,13 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
410
411
|
});
|
|
411
412
|
return;
|
|
412
413
|
}
|
|
413
|
-
n &&
|
|
414
|
+
n && Tn({
|
|
414
415
|
seriesId: e,
|
|
415
416
|
fromValue: i,
|
|
416
417
|
toValue: 0,
|
|
417
418
|
mode: "decrease"
|
|
418
419
|
}).then(() => {
|
|
419
|
-
K.value.includes(e) || K.value.push(e),
|
|
420
|
+
K.value.includes(e) || K.value.push(e), Sn(e, 0), zn("selectLegend", H.value.map((e) => ({
|
|
420
421
|
name: e.name,
|
|
421
422
|
color: e.color,
|
|
422
423
|
value: e.value,
|
|
@@ -425,19 +426,19 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
425
426
|
});
|
|
426
427
|
}
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function Dn(e) {
|
|
429
430
|
return U.value.length ? U.value.find((t) => t.name === e) || (A.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (A.value.debug && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
-
let t =
|
|
432
|
+
function On(e) {
|
|
433
|
+
let t = Dn(e);
|
|
433
434
|
t !== null && K.value.includes(t.uid) && q(t.uid);
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
-
let t =
|
|
436
|
+
function kn(e) {
|
|
437
|
+
let t = Dn(e);
|
|
437
438
|
t !== null && (K.value.includes(t.uid) || q(t.uid));
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
return
|
|
440
|
+
function An({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
441
|
+
return je({
|
|
441
442
|
config: i,
|
|
442
443
|
val: e,
|
|
443
444
|
percentage: t,
|
|
@@ -449,14 +450,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
449
450
|
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / V.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
450
451
|
return {
|
|
451
452
|
name: e.name,
|
|
452
|
-
color: e.color ||
|
|
453
|
+
color: e.color || cn[t] || a[t] || a[t % a.length],
|
|
453
454
|
value: n,
|
|
454
455
|
proportion: r,
|
|
455
456
|
uid: e.uid,
|
|
456
457
|
shape: "square"
|
|
457
458
|
};
|
|
458
459
|
}).map((e, t) => {
|
|
459
|
-
let n =
|
|
460
|
+
let n = An({
|
|
460
461
|
val: s(A.value.style.chart.layout.labels.dataLabels.formatter, e.value, r({
|
|
461
462
|
p: A.value.style.chart.layout.labels.dataLabels.prefix,
|
|
462
463
|
v: e.value,
|
|
@@ -482,14 +483,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
482
483
|
isSegregated: K.value.includes(e.uid),
|
|
483
484
|
display: `${e.name}${A.value.style.chart.legend.showPercentage || A.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
484
485
|
};
|
|
485
|
-
})),
|
|
486
|
+
})), jn = l(() => ({
|
|
486
487
|
cy: "waffle-div-legend",
|
|
487
488
|
backgroundColor: A.value.style.chart.legend.backgroundColor,
|
|
488
489
|
color: A.value.style.chart.legend.color,
|
|
489
490
|
fontSize: A.value.style.chart.legend.fontSize,
|
|
490
491
|
paddingBottom: 12,
|
|
491
492
|
fontWeight: A.value.style.chart.legend.bold ? "bold" : ""
|
|
492
|
-
})), Y = l(() => H.value.map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
493
|
+
})), Y = l(() => H.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Mn = v(null), Nn = v(null), X = l(() => {
|
|
493
494
|
let e = /* @__PURE__ */ new Map();
|
|
494
495
|
return W.value.forEach((t, n) => {
|
|
495
496
|
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
@@ -504,47 +505,47 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
504
505
|
});
|
|
505
506
|
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
506
507
|
});
|
|
507
|
-
function
|
|
508
|
+
function Pn(e) {
|
|
508
509
|
return X.value.find((t) => t.serieIndex === e) || null;
|
|
509
510
|
}
|
|
510
|
-
function
|
|
511
|
-
let t =
|
|
511
|
+
function Fn(e) {
|
|
512
|
+
let t = Pn(e);
|
|
512
513
|
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
513
514
|
}
|
|
514
|
-
function
|
|
515
|
+
function In(e) {
|
|
515
516
|
let t = W.value[e];
|
|
516
517
|
A.value.events.datapointClick && A.value.events.datapointClick({
|
|
517
518
|
datapoint: t,
|
|
518
519
|
seriesIndex: t.serieIndex
|
|
519
520
|
});
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function Ln(e) {
|
|
522
523
|
let t = W.value[e];
|
|
523
524
|
A.value.events.datapointLeave && A.value.events.datapointLeave({
|
|
524
525
|
datapoint: t,
|
|
525
526
|
seriesIndex: t.serieIndex
|
|
526
|
-
}),
|
|
527
|
+
}), Nn.value = null, Ot.value = !1, D.value = null, k.value = null, Wt.value = "pointer";
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function Rn(e, t = "pointer") {
|
|
529
530
|
if (K.value.length === T.dataset.length) return;
|
|
530
531
|
let n = W.value[e];
|
|
531
532
|
if (!n) return;
|
|
532
|
-
|
|
533
|
+
Wt.value = t, k.value = n.serieIndex, Mn.value = {
|
|
533
534
|
datapoint: n,
|
|
534
535
|
seriesIndex: n.absoluteIndex,
|
|
535
536
|
series: V.value,
|
|
536
537
|
config: A.value
|
|
537
|
-
}, A.value.events.datapointEnter &&
|
|
538
|
+
}, A.value.events.datapointEnter && Nn.value !== n.serieIndex && A.value.events.datapointEnter({
|
|
538
539
|
datapoint: n,
|
|
539
540
|
seriesIndex: n.serieIndex
|
|
540
|
-
}),
|
|
541
|
+
}), Nn.value = n.serieIndex, Ot.value = !0, D.value = n.serieIndex;
|
|
541
542
|
let i = A.value.style.chart.tooltip.customFormat;
|
|
542
543
|
if (de(i) && ce(() => i({
|
|
543
544
|
seriesIndex: n.absoluteIndex,
|
|
544
545
|
datapoint: n,
|
|
545
546
|
series: V.value,
|
|
546
547
|
config: A.value
|
|
547
|
-
})))
|
|
548
|
+
}))) kt.value = i({
|
|
548
549
|
seriesIndex: n.absoluteIndex,
|
|
549
550
|
datapoint: n,
|
|
550
551
|
series: V.value,
|
|
@@ -552,7 +553,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
552
553
|
});
|
|
553
554
|
else {
|
|
554
555
|
let e = "";
|
|
555
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${
|
|
556
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${Et.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${E.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${An({
|
|
556
557
|
config: A.value.style.chart.tooltip,
|
|
557
558
|
showVal: A.value.style.chart.tooltip.showValue,
|
|
558
559
|
showPercentage: A.value.style.chart.tooltip.showPercentage,
|
|
@@ -567,27 +568,27 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
567
568
|
series: V.value
|
|
568
569
|
})}</span>`,
|
|
569
570
|
percentage: `<span>${r({
|
|
570
|
-
v: B.value ? 1 /
|
|
571
|
+
v: B.value ? 1 / Jt.value.length * 100 : n.value / Y.value * 100,
|
|
571
572
|
s: "%",
|
|
572
573
|
r: A.value.style.chart.tooltip.roundingPercentage
|
|
573
574
|
})}</span>`
|
|
574
|
-
})}</b></div>`,
|
|
575
|
+
})}</b></div>`, kt.value = e;
|
|
575
576
|
}
|
|
576
577
|
}
|
|
577
|
-
let
|
|
578
|
+
let zn = Je, Z = l(() => ({
|
|
578
579
|
head: H.value.map((e) => ({
|
|
579
580
|
name: e.name,
|
|
580
581
|
color: e.color
|
|
581
582
|
})),
|
|
582
583
|
body: H.value.map((e) => e.value)
|
|
583
584
|
}));
|
|
584
|
-
function
|
|
585
|
+
function Bn(e) {
|
|
585
586
|
return A.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== e ? `url(#blur_${E.value})` : "";
|
|
586
587
|
}
|
|
587
|
-
function
|
|
588
|
-
return A.value.style.chart.layout.labels.captions.show ? W.value.length && !
|
|
588
|
+
function Vn(e, t) {
|
|
589
|
+
return A.value.style.chart.layout.labels.captions.show ? W.value.length && !vn.value && !A.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < A.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % A.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
+
function Hn(e, t = null) {
|
|
591
592
|
let n = s(A.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, r({
|
|
592
593
|
p: A.value.style.chart.layout.labels.dataLabels.prefix,
|
|
593
594
|
v: W.value[e].value,
|
|
@@ -604,7 +605,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
604
605
|
source: W.value[e].name,
|
|
605
606
|
length: A.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
606
607
|
}) : W.value[e].name) + (A.value.style.chart.layout.labels.captions.showPercentage || A.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
607
|
-
return `${A.value.style.chart.layout.labels.captions.showSerieName ? a : ""} ${
|
|
608
|
+
return `${A.value.style.chart.layout.labels.captions.showSerieName ? a : ""} ${An({
|
|
608
609
|
val: n,
|
|
609
610
|
percentage: i,
|
|
610
611
|
showVal: A.value.style.chart.layout.labels.captions.showValue,
|
|
@@ -612,8 +613,8 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
612
613
|
config: A.value.style.chart.layout.labels.dataLabels
|
|
613
614
|
})}`;
|
|
614
615
|
}
|
|
615
|
-
function
|
|
616
|
-
|
|
616
|
+
function Un(e = null) {
|
|
617
|
+
ze(() => {
|
|
617
618
|
let t = Z.value.head.map((e, t) => [
|
|
618
619
|
[e.name],
|
|
619
620
|
[Z.value.body[t]],
|
|
@@ -681,20 +682,20 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
681
682
|
A.value.table.columnNames.percentage
|
|
682
683
|
]
|
|
683
684
|
})), $ = v(!1);
|
|
684
|
-
function
|
|
685
|
-
$.value = e,
|
|
685
|
+
function Wn(e) {
|
|
686
|
+
$.value = e, At.value += 1;
|
|
686
687
|
}
|
|
687
|
-
function
|
|
688
|
+
function Gn() {
|
|
688
689
|
F.value.showTable = !F.value.showTable;
|
|
689
690
|
}
|
|
690
|
-
function
|
|
691
|
+
function Kn() {
|
|
691
692
|
F.value.showTooltip = !F.value.showTooltip;
|
|
692
693
|
}
|
|
693
|
-
let
|
|
694
|
-
function
|
|
695
|
-
|
|
694
|
+
let qn = v(!1);
|
|
695
|
+
function Jn() {
|
|
696
|
+
qn.value = !qn.value;
|
|
696
697
|
}
|
|
697
|
-
async function
|
|
698
|
+
async function Yn({ scale: e = 2 } = {}) {
|
|
698
699
|
if (!O.value) return;
|
|
699
700
|
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
700
701
|
domElement: O.value,
|
|
@@ -711,10 +712,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
711
712
|
aspectRatio: r
|
|
712
713
|
};
|
|
713
714
|
}
|
|
714
|
-
let
|
|
715
|
+
let Xn = l(() => {
|
|
715
716
|
let e = A.value.table.useDialog && !A.value.table.show, t = F.value.showTable;
|
|
716
717
|
return {
|
|
717
|
-
component: e ?
|
|
718
|
+
component: e ? St : vt,
|
|
718
719
|
title: `${A.value.style.chart.title.text}${A.value.style.chart.title.subtitle.text ? `: ${A.value.style.chart.title.subtitle.text}` : ""}`,
|
|
719
720
|
props: e ? {
|
|
720
721
|
backgroundColor: A.value.table.th.backgroundColor,
|
|
@@ -743,50 +744,50 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
743
744
|
};
|
|
744
745
|
});
|
|
745
746
|
C(() => F.value.showTable, (e) => {
|
|
746
|
-
A.value.table.show || (e && A.value.table.useDialog &&
|
|
747
|
+
A.value.table.show || (e && A.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
|
|
747
748
|
});
|
|
748
|
-
function
|
|
749
|
-
F.value.showTable = !1,
|
|
749
|
+
function Zn() {
|
|
750
|
+
F.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
750
751
|
}
|
|
751
|
-
let
|
|
752
|
+
let Qn = l(() => J.value.map((e) => ({
|
|
752
753
|
...e,
|
|
753
754
|
name: e.display
|
|
754
|
-
}))),
|
|
755
|
+
}))), $n = l(() => A.value.style.chart.backgroundColor), er = l(() => A.value.style.chart.legend), { exportSvg: tr, getSvg: nr } = _e({
|
|
755
756
|
svg: M,
|
|
756
757
|
title: l(() => A.value.style.chart.title),
|
|
757
|
-
legend:
|
|
758
|
-
legendItems:
|
|
759
|
-
backgroundColor:
|
|
758
|
+
legend: er,
|
|
759
|
+
legendItems: Qn,
|
|
760
|
+
backgroundColor: $n
|
|
760
761
|
});
|
|
761
|
-
async function
|
|
762
|
-
|
|
762
|
+
async function rr({ isCb: e }) {
|
|
763
|
+
Ht.value = !0, await ze();
|
|
763
764
|
try {
|
|
764
765
|
if (e) {
|
|
765
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
766
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await nr();
|
|
766
767
|
await Promise.resolve(A.value.userOptions.callbacks.svg({
|
|
767
768
|
blob: e,
|
|
768
769
|
url: t,
|
|
769
770
|
text: n,
|
|
770
771
|
dataUrl: r
|
|
771
772
|
}));
|
|
772
|
-
} else await Promise.resolve(
|
|
773
|
+
} else await Promise.resolve(tr());
|
|
773
774
|
} finally {
|
|
774
|
-
|
|
775
|
+
Ht.value = !1;
|
|
775
776
|
}
|
|
776
777
|
}
|
|
777
|
-
function
|
|
778
|
+
function ir(e) {
|
|
778
779
|
if (e?.stage === "start") {
|
|
779
|
-
|
|
780
|
+
Vt.value = !0;
|
|
780
781
|
return;
|
|
781
782
|
}
|
|
782
783
|
if (e?.stage === "end") {
|
|
783
|
-
|
|
784
|
+
Vt.value = !1;
|
|
784
785
|
return;
|
|
785
786
|
}
|
|
786
|
-
|
|
787
|
+
on();
|
|
787
788
|
}
|
|
788
|
-
async function
|
|
789
|
-
if (
|
|
789
|
+
async function ar() {
|
|
790
|
+
if (zn("copyAlt", {
|
|
790
791
|
config: A.value,
|
|
791
792
|
dataset: U.value
|
|
792
793
|
}), !A.value.userOptions.callbacks.altCopy) {
|
|
@@ -798,86 +799,86 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
798
799
|
dataset: U.value
|
|
799
800
|
}));
|
|
800
801
|
}
|
|
801
|
-
function
|
|
802
|
-
k.value = null,
|
|
802
|
+
function or() {
|
|
803
|
+
k.value = null, Gt.value = !0;
|
|
803
804
|
}
|
|
804
|
-
function
|
|
805
|
-
k.value = null,
|
|
805
|
+
function sr() {
|
|
806
|
+
k.value = null, Wt.value = "pointer", Ot.value = !1, D.value = null, Nn.value = null, Gt.value = !1;
|
|
806
807
|
}
|
|
807
|
-
function
|
|
808
|
-
if (!M.value ||
|
|
808
|
+
function cr(e) {
|
|
809
|
+
if (!M.value || qn.value || document.activeElement !== M.value || !X.value.length || K.value.length === T.dataset.length) return;
|
|
809
810
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
810
811
|
if (!t && !n && !r && !i) return;
|
|
811
812
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
812
|
-
k.value = null,
|
|
813
|
+
k.value = null, Wt.value = "pointer", Ot.value = !1, D.value = null, Nn.value = null;
|
|
813
814
|
return;
|
|
814
815
|
}
|
|
815
816
|
if (r) {
|
|
816
817
|
if (k.value === null) return;
|
|
817
|
-
let e =
|
|
818
|
+
let e = Fn(k.value);
|
|
818
819
|
if (e === null) return;
|
|
819
|
-
|
|
820
|
+
In(e);
|
|
820
821
|
return;
|
|
821
822
|
}
|
|
822
823
|
let a = X.value.findIndex((e) => e.serieIndex === k.value), o = null;
|
|
823
824
|
if (o = a === -1 ? n ? X.value[0] : X.value[X.value.length - 1] : n ? X.value[(a + 1) % X.value.length] : X.value[(a - 1 + X.value.length) % X.value.length], !o) return;
|
|
824
|
-
let ee =
|
|
825
|
-
ee !== null && (
|
|
825
|
+
let ee = Fn(o.serieIndex);
|
|
826
|
+
ee !== null && (lr(o.serieIndex), Rn(ee, "keyboard"));
|
|
826
827
|
}
|
|
827
|
-
function
|
|
828
|
+
function lr(e) {
|
|
828
829
|
if (!Number.isFinite(e) || !M.value) return;
|
|
829
|
-
let t =
|
|
830
|
+
let t = Pn(e);
|
|
830
831
|
if (!t || !t.rectIndexes.length) return;
|
|
831
832
|
let n = t.rectIndexes.map((e) => {
|
|
832
833
|
let t = G.value[e];
|
|
833
834
|
return t ? {
|
|
834
|
-
x: t.x + A.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
835
|
-
y: t.y + A.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
835
|
+
x: t.x + A.value.style.chart.layout.grid.spaceBetween / 2 + ln.value / 2,
|
|
836
|
+
y: t.y + A.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2
|
|
836
837
|
} : null;
|
|
837
838
|
}).filter(Boolean);
|
|
838
839
|
if (!n.length) return;
|
|
839
840
|
let r = Math.min(...n.map((e) => e.x)), i = Math.max(...n.map((e) => e.x)), a = Math.min(...n.map((e) => e.y)), o = Math.max(...n.map((e) => e.y)), ee = (r + i) / 2, te = (a + o) / 2, ne = M.value.getBoundingClientRect();
|
|
840
|
-
|
|
841
|
+
Ut.value = {
|
|
841
842
|
x: ne.left + ee / I.value.width * ne.width,
|
|
842
843
|
y: ne.top + te / I.value.height * ne.height
|
|
843
844
|
};
|
|
844
845
|
}
|
|
845
|
-
let
|
|
846
|
+
let ur = l(() => ({
|
|
846
847
|
headers: Q.value?.colNames ?? [],
|
|
847
848
|
rows: Q.value?.body ?? []
|
|
848
849
|
}));
|
|
849
850
|
return Ce({
|
|
850
|
-
getData:
|
|
851
|
-
getImage:
|
|
852
|
-
generatePdf:
|
|
853
|
-
generateCsv:
|
|
854
|
-
generateImage:
|
|
855
|
-
generateSvg:
|
|
856
|
-
hideSeries:
|
|
857
|
-
showSeries:
|
|
858
|
-
toggleTable:
|
|
859
|
-
toggleTooltip:
|
|
860
|
-
toggleAnnotator:
|
|
861
|
-
toggleFullscreen:
|
|
862
|
-
copyAlt:
|
|
851
|
+
getData: gn,
|
|
852
|
+
getImage: Yn,
|
|
853
|
+
generatePdf: an,
|
|
854
|
+
generateCsv: Un,
|
|
855
|
+
generateImage: on,
|
|
856
|
+
generateSvg: rr,
|
|
857
|
+
hideSeries: kn,
|
|
858
|
+
showSeries: On,
|
|
859
|
+
toggleTable: Gn,
|
|
860
|
+
toggleTooltip: Kn,
|
|
861
|
+
toggleAnnotator: Jn,
|
|
862
|
+
toggleFullscreen: Wn,
|
|
863
|
+
copyAlt: ar
|
|
863
864
|
}), (e, t) => (_(), f("div", {
|
|
864
|
-
class:
|
|
865
|
+
class: Be(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
865
866
|
ref_key: "waffleChart",
|
|
866
867
|
ref: O,
|
|
867
868
|
id: `vue-ui-waffle_${E.value}`,
|
|
868
|
-
style:
|
|
869
|
-
onMouseenter: t[2] ||= () => S(
|
|
870
|
-
onMouseleave: t[3] ||= () => S(
|
|
869
|
+
style: Ve(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${A.value.style.chart.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
|
|
870
|
+
onMouseenter: t[2] ||= () => S(Zt)(!0),
|
|
871
|
+
onMouseleave: t[3] ||= () => S(Zt)(!1)
|
|
871
872
|
}, [
|
|
872
873
|
p("div", {
|
|
873
874
|
id: `chart-instructions-${E.value}`,
|
|
874
875
|
class: "sr-only"
|
|
875
|
-
}, [p("p", null, x(A.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
876
|
-
|
|
876
|
+
}, [p("p", null, x(A.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
|
|
877
|
+
ur.value?.rows?.length ? (_(), u(Oe, {
|
|
877
878
|
key: 0,
|
|
878
879
|
uid: E.value,
|
|
879
|
-
head:
|
|
880
|
-
body:
|
|
880
|
+
head: ur.value.headers,
|
|
881
|
+
body: ur.value.rows,
|
|
881
882
|
notice: A.value.a11y.translations.tableAvailable,
|
|
882
883
|
caption: A.value.a11y.translations.tableCaption
|
|
883
884
|
}, null, 8, [
|
|
@@ -887,14 +888,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
887
888
|
"notice",
|
|
888
889
|
"caption"
|
|
889
890
|
])) : d("", !0),
|
|
890
|
-
A.value.userOptions.buttons.annotator ? (_(), u(S(
|
|
891
|
+
A.value.userOptions.buttons.annotator ? (_(), u(S(bt), {
|
|
891
892
|
key: 1,
|
|
892
893
|
svgRef: S(M),
|
|
893
894
|
backgroundColor: A.value.style.chart.backgroundColor,
|
|
894
895
|
color: A.value.style.chart.color,
|
|
895
|
-
active:
|
|
896
|
+
active: qn.value,
|
|
896
897
|
isCursorPointer: j.value,
|
|
897
|
-
onClose:
|
|
898
|
+
onClose: Jn
|
|
898
899
|
}, {
|
|
899
900
|
"annotator-action-close": w(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
900
901
|
"annotator-action-color": w(({ color: t }) => [b(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
@@ -910,20 +911,20 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
910
911
|
"active",
|
|
911
912
|
"isCursorPointer"
|
|
912
913
|
])) : d("", !0),
|
|
913
|
-
|
|
914
|
+
sn.value ? (_(), f("div", {
|
|
914
915
|
key: 2,
|
|
915
916
|
ref_key: "noTitle",
|
|
916
|
-
ref:
|
|
917
|
+
ref: Pt,
|
|
917
918
|
class: "vue-data-ui-no-title-space",
|
|
918
919
|
style: "height:36px; width: 100%;background:transparent"
|
|
919
920
|
}, null, 512)) : d("", !0),
|
|
920
921
|
A.value.style.chart.title.text ? (_(), f("div", {
|
|
921
922
|
key: 3,
|
|
922
923
|
ref_key: "chartTitle",
|
|
923
|
-
ref:
|
|
924
|
+
ref: jt,
|
|
924
925
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
925
926
|
}, [(_(), u(xe, {
|
|
926
|
-
key: `title_${
|
|
927
|
+
key: `title_${Ft.value}`,
|
|
927
928
|
config: {
|
|
928
929
|
title: {
|
|
929
930
|
cy: "waffle-title",
|
|
@@ -935,15 +936,15 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
935
936
|
}
|
|
936
937
|
}
|
|
937
938
|
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
938
|
-
p("div", { id: `legend-top-${E.value}` }, null, 8,
|
|
939
|
-
A.value.userOptions.show &&
|
|
939
|
+
p("div", { id: `legend-top-${E.value}` }, null, 8, Ze),
|
|
940
|
+
A.value.userOptions.show && Dt.value && (S(Qt) || S(Xt)) ? (_(), u(S(yt), {
|
|
940
941
|
ref_key: "userOptionsRef",
|
|
941
|
-
ref:
|
|
942
|
-
key: `user_options_${
|
|
942
|
+
ref: Bt,
|
|
943
|
+
key: `user_options_${At.value}`,
|
|
943
944
|
backgroundColor: A.value.style.chart.backgroundColor,
|
|
944
945
|
color: A.value.style.chart.color,
|
|
945
|
-
isPrinting: S(
|
|
946
|
-
isImaging: S(
|
|
946
|
+
isPrinting: S(nn),
|
|
947
|
+
isImaging: S(rn),
|
|
947
948
|
uid: E.value,
|
|
948
949
|
hasTooltip: A.value.userOptions.buttons.tooltip && A.value.style.chart.tooltip.show,
|
|
949
950
|
hasPdf: A.value.userOptions.buttons.pdf,
|
|
@@ -959,22 +960,22 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
959
960
|
chartElement: O.value,
|
|
960
961
|
position: A.value.userOptions.position,
|
|
961
962
|
hasAnnotator: A.value.userOptions.buttons.annotator,
|
|
962
|
-
isAnnotation:
|
|
963
|
+
isAnnotation: qn.value,
|
|
963
964
|
callbacks: A.value.userOptions.callbacks,
|
|
964
965
|
printScale: A.value.userOptions.print.scale,
|
|
965
966
|
tableDialog: A.value.table.useDialog,
|
|
966
967
|
isCursorPointer: j.value,
|
|
967
|
-
onToggleFullscreen:
|
|
968
|
-
onGeneratePdf: S(
|
|
969
|
-
onGenerateCsv:
|
|
970
|
-
onGenerateImage:
|
|
971
|
-
onGenerateSvg:
|
|
972
|
-
onToggleTable:
|
|
973
|
-
onToggleTooltip:
|
|
974
|
-
onToggleAnnotator:
|
|
975
|
-
onCopyAlt:
|
|
976
|
-
style:
|
|
977
|
-
},
|
|
968
|
+
onToggleFullscreen: Wn,
|
|
969
|
+
onGeneratePdf: S(an),
|
|
970
|
+
onGenerateCsv: Un,
|
|
971
|
+
onGenerateImage: ir,
|
|
972
|
+
onGenerateSvg: rr,
|
|
973
|
+
onToggleTable: Gn,
|
|
974
|
+
onToggleTooltip: Kn,
|
|
975
|
+
onToggleAnnotator: Jn,
|
|
976
|
+
onCopyAlt: ar,
|
|
977
|
+
style: Ve({ visibility: S(Qt) ? S(Xt) ? "visible" : "hidden" : "visible" })
|
|
978
|
+
}, Fe({ _: 2 }, [
|
|
978
979
|
e.$slots.menuIcon ? {
|
|
979
980
|
name: "menuIcon",
|
|
980
981
|
fn: w(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(h({
|
|
@@ -1045,37 +1046,42 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1045
1046
|
key: "11"
|
|
1046
1047
|
} : void 0
|
|
1047
1048
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
1048
|
-
p("div",
|
|
1049
|
+
p("div", Qe, [(_(), f("svg", {
|
|
1049
1050
|
ref_key: "svgRef",
|
|
1050
1051
|
ref: M,
|
|
1051
1052
|
xmlns: S(ue),
|
|
1052
1053
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
1053
|
-
class:
|
|
1054
|
+
class: Be({
|
|
1054
1055
|
"vue-data-ui-fullscreen--on": $.value,
|
|
1055
1056
|
"vue-data-ui-fulscreen--off": !$.value
|
|
1056
1057
|
}),
|
|
1057
1058
|
tabindex: "0",
|
|
1058
1059
|
viewBox: `0 0 ${I.value.width <= 0 ? 10 : I.value.width} ${I.value.height <= 0 ? 10 : I.value.height}`,
|
|
1059
|
-
style:
|
|
1060
|
-
onFocus:
|
|
1061
|
-
onBlur:
|
|
1062
|
-
onKeydown:
|
|
1060
|
+
style: Ve(`max-width:100%;overflow:visible;background:transparent;color:${A.value.style.chart.color}`),
|
|
1061
|
+
onFocus: or,
|
|
1062
|
+
onBlur: sr,
|
|
1063
|
+
onKeydown: cr
|
|
1063
1064
|
}, [
|
|
1064
|
-
|
|
1065
|
-
p("defs", null, [(_(!0), f(c, null, y(W.value, (e, t) => (_(),
|
|
1065
|
+
Le(S(xt)),
|
|
1066
|
+
p("defs", null, [(_(!0), f(c, null, y(W.value, (e, t) => (_(), u(Ee, {
|
|
1067
|
+
t: "radial",
|
|
1066
1068
|
cx: "50%",
|
|
1067
1069
|
cy: "50%",
|
|
1068
1070
|
r: "50%",
|
|
1069
1071
|
fx: "50%",
|
|
1070
1072
|
fy: "50%",
|
|
1071
|
-
id: `gradient_${E.value}_${t}
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1073
|
+
id: `gradient_${E.value}_${t}`,
|
|
1074
|
+
key: `gradient_${E.value}_${t}`,
|
|
1075
|
+
stops: [[
|
|
1076
|
+
"0%",
|
|
1077
|
+
S(o)(S(fe)(e.color, .05), 100 - A.value.style.chart.layout.rect.gradientIntensity),
|
|
1078
|
+
1
|
|
1079
|
+
], [
|
|
1080
|
+
"100%",
|
|
1081
|
+
e.color,
|
|
1082
|
+
1
|
|
1083
|
+
]]
|
|
1084
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
1079
1085
|
p("defs", null, [p("filter", {
|
|
1080
1086
|
id: `blur_${E.value}`,
|
|
1081
1087
|
x: "-50%",
|
|
@@ -1088,14 +1094,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1088
1094
|
}, null, -1), p("feColorMatrix", {
|
|
1089
1095
|
type: "saturate",
|
|
1090
1096
|
values: "0"
|
|
1091
|
-
}, null, -1)]], 8,
|
|
1097
|
+
}, null, -1)]], 8, et)]),
|
|
1092
1098
|
A.value.useCustomCells && W.value.length && e.$slots.cell ? (_(!0), f(c, { key: 0 }, y(G.value, (t, n) => (_(), f("foreignObject", {
|
|
1093
1099
|
x: t.x,
|
|
1094
1100
|
y: t.y,
|
|
1095
1101
|
height: z.value <= 0 ? 1e-4 : z.value,
|
|
1096
1102
|
width: R.value <= 0 ? 1e-4 : R.value,
|
|
1097
1103
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1098
|
-
}, [b(e.$slots, "cell",
|
|
1104
|
+
}, [b(e.$slots, "cell", Re({ ref_for: !0 }, {
|
|
1099
1105
|
cell: {
|
|
1100
1106
|
...t,
|
|
1101
1107
|
color: W.value[n].color,
|
|
@@ -1104,7 +1110,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1104
1110
|
...W.value[n]
|
|
1105
1111
|
},
|
|
1106
1112
|
isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
|
|
1107
|
-
}), void 0, !0)], 8,
|
|
1113
|
+
}), void 0, !0)], 8, tt))), 256)) : d("", !0),
|
|
1108
1114
|
!W.value.length && !A.value.useCustomCells ? (_(), f("rect", {
|
|
1109
1115
|
key: 1,
|
|
1110
1116
|
x: 12,
|
|
@@ -1114,8 +1120,8 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1114
1120
|
rx: 3,
|
|
1115
1121
|
fill: "none",
|
|
1116
1122
|
stroke: "black"
|
|
1117
|
-
}, null, 8,
|
|
1118
|
-
e.$slots.pattern ? (_(), f("g",
|
|
1123
|
+
}, null, 8, nt)) : W.value.length && !A.value.useCustomCells ? (_(), f(c, { key: 2 }, [
|
|
1124
|
+
e.$slots.pattern ? (_(), f("g", rt, [(_(!0), f(c, null, y(pn.value, (t) => (_(), f("defs", null, [b(e.$slots, "pattern", Re({ ref_for: !0 }, {
|
|
1119
1125
|
seriesIndex: t.absoluteIndex,
|
|
1120
1126
|
patternId: `pattern_${E.value}_${t.absoluteIndex}`
|
|
1121
1127
|
}), void 0, !0)]))), 256))])) : d("", !0),
|
|
@@ -1128,8 +1134,8 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1128
1134
|
fill: "white",
|
|
1129
1135
|
stroke: A.value.style.chart.layout.rect.stroke,
|
|
1130
1136
|
"stroke-width": A.value.style.chart.layout.rect.strokeWidth,
|
|
1131
|
-
filter:
|
|
1132
|
-
}, null, 8,
|
|
1137
|
+
filter: Bn(W.value[t].serieIndex)
|
|
1138
|
+
}, null, 8, it))), 256)),
|
|
1133
1139
|
(_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
|
|
1134
1140
|
rx: A.value.style.chart.layout.rect.rounded ? A.value.style.chart.layout.rect.rounding : 0,
|
|
1135
1141
|
x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -1139,9 +1145,9 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1139
1145
|
fill: A.value.style.chart.layout.rect.useGradient && A.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${E.value}_${t})` : W.value[t].color,
|
|
1140
1146
|
stroke: A.value.style.chart.layout.rect.stroke,
|
|
1141
1147
|
"stroke-width": A.value.style.chart.layout.rect.strokeWidth,
|
|
1142
|
-
filter:
|
|
1143
|
-
}, null, 8,
|
|
1144
|
-
e.$slots.pattern ? (_(), f("g",
|
|
1148
|
+
filter: Bn(W.value[t].serieIndex)
|
|
1149
|
+
}, null, 8, at))), 256)),
|
|
1150
|
+
e.$slots.pattern ? (_(), f("g", ot, [(_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
|
|
1145
1151
|
rx: A.value.style.chart.layout.rect.rounded ? A.value.style.chart.layout.rect.rounding : 0,
|
|
1146
1152
|
x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1147
1153
|
y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -1149,10 +1155,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1149
1155
|
width: R.value <= 0 ? 1e-4 : R.value,
|
|
1150
1156
|
fill: `url(#pattern_${E.value}_${W.value[t].absoluteIndex})`,
|
|
1151
1157
|
stroke: "none",
|
|
1152
|
-
filter:
|
|
1153
|
-
}, null, 8,
|
|
1158
|
+
filter: Bn(W.value[t].serieIndex)
|
|
1159
|
+
}, null, 8, st))), 256))])) : d("", !0)
|
|
1154
1160
|
], 64)) : d("", !0),
|
|
1155
|
-
e.$slots.cellSvg ? (_(!0), f(c, { key: 3 }, y(G.value, (t, n) => (_(), f("g", null, [b(e.$slots, "cellSvg",
|
|
1161
|
+
e.$slots.cellSvg ? (_(!0), f(c, { key: 3 }, y(G.value, (t, n) => (_(), f("g", null, [b(e.$slots, "cellSvg", Re({ ref_for: !0 }, {
|
|
1156
1162
|
cell: {
|
|
1157
1163
|
...t,
|
|
1158
1164
|
color: W.value[n].color,
|
|
@@ -1162,62 +1168,62 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1162
1168
|
},
|
|
1163
1169
|
isSelected: [null, void 0].includes(D.value) ? !0 : W.value[n].serieIndex === D.value
|
|
1164
1170
|
}), void 0, !0)]))), 256)) : d("", !0),
|
|
1165
|
-
(_(!0), f(c, null, y(G.value, (e, t) => (_(), f(c, null, [
|
|
1171
|
+
(_(!0), f(c, null, y(G.value, (e, t) => (_(), f(c, null, [Vn(t, e) ? (_(), f("text", {
|
|
1166
1172
|
key: `datalabel_${t}`,
|
|
1167
|
-
textContent: x(
|
|
1173
|
+
textContent: x(Hn(t, e)),
|
|
1168
1174
|
x: e.x + A.value.style.chart.layout.labels.captions.offsetX + A.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1169
|
-
y: e.y + A.value.style.chart.layout.labels.captions.offsetY + A.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1175
|
+
y: e.y + A.value.style.chart.layout.labels.captions.offsetY + A.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2 + A.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1170
1176
|
"font-size": A.value.style.chart.layout.labels.captions.fontSize,
|
|
1171
1177
|
fill: S(le)(W.value[t].color),
|
|
1172
|
-
filter:
|
|
1173
|
-
}, null, 8,
|
|
1178
|
+
filter: Bn(W.value[t].serieIndex)
|
|
1179
|
+
}, null, 8, ct)) : d("", !0)], 64))), 256)),
|
|
1174
1180
|
(_(!0), f(c, null, y(G.value, (e, t) => (_(), f("rect", {
|
|
1175
1181
|
x: e.x + A.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1176
1182
|
y: e.y + A.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1177
|
-
height:
|
|
1178
|
-
width:
|
|
1183
|
+
height: un.value,
|
|
1184
|
+
width: ln.value,
|
|
1179
1185
|
fill: "transparent",
|
|
1180
1186
|
stroke: "none",
|
|
1181
|
-
onMouseover: (e) =>
|
|
1182
|
-
onMouseleave: (e) =>
|
|
1183
|
-
onClick: (e) =>
|
|
1184
|
-
}, null, 40,
|
|
1187
|
+
onMouseover: (e) => Rn(t),
|
|
1188
|
+
onMouseleave: (e) => Ln(t),
|
|
1189
|
+
onClick: (e) => In(t)
|
|
1190
|
+
}, null, 40, lt))), 256)),
|
|
1185
1191
|
b(e.$slots, "svg", { svg: {
|
|
1186
1192
|
...I.value,
|
|
1187
|
-
isPrintingImg: S(
|
|
1188
|
-
isPrintingSvg:
|
|
1193
|
+
isPrintingImg: S(nn) || S(rn) || Vt.value,
|
|
1194
|
+
isPrintingSvg: Ht.value
|
|
1189
1195
|
} }, void 0, !0)
|
|
1190
|
-
], 46,
|
|
1196
|
+
], 46, $e)), e.$slots.hint ? (_(), f("div", ut, [b(e.$slots, "hint", g(h({
|
|
1191
1197
|
hint: A.value.a11y.translations.keyboardNavigation,
|
|
1192
|
-
isVisible:
|
|
1198
|
+
isVisible: Gt.value
|
|
1193
1199
|
})), void 0, !0)])) : d("", !0)]),
|
|
1194
|
-
e.$slots.watermark ? (_(), f("div",
|
|
1195
|
-
p("div", { id: `legend-bottom-${E.value}` }, null, 8,
|
|
1196
|
-
|
|
1200
|
+
e.$slots.watermark ? (_(), f("div", dt, [b(e.$slots, "watermark", g(h({ isPrinting: S(nn) || S(rn) || Vt.value || Ht.value })), void 0, !0)])) : d("", !0),
|
|
1201
|
+
p("div", { id: `legend-bottom-${E.value}` }, null, 8, ft),
|
|
1202
|
+
Rt.value && (A.value.style.chart.legend.show || e.$slots.legend) ? (_(), u(Pe, {
|
|
1197
1203
|
key: 6,
|
|
1198
1204
|
to: A.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
1199
1205
|
}, [p("div", {
|
|
1200
1206
|
ref_key: "chartLegend",
|
|
1201
|
-
ref:
|
|
1202
|
-
}, [b(e.$slots, "legend", { legend: J.value }, () => [A.value.style.chart.legend.show ? (_(), u(
|
|
1203
|
-
key: `legend_${
|
|
1207
|
+
ref: Mt
|
|
1208
|
+
}, [b(e.$slots, "legend", { legend: J.value }, () => [A.value.style.chart.legend.show ? (_(), u(Me, {
|
|
1209
|
+
key: `legend_${Lt.value}`,
|
|
1204
1210
|
legendSet: J.value,
|
|
1205
|
-
config:
|
|
1211
|
+
config: jn.value,
|
|
1206
1212
|
isCursorPointer: j.value,
|
|
1207
1213
|
onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
|
|
1208
|
-
},
|
|
1214
|
+
}, Fe({
|
|
1209
1215
|
item: w(({ legend: e }) => [p("div", {
|
|
1210
1216
|
onClick: (t) => e.segregate(),
|
|
1211
|
-
style:
|
|
1212
|
-
}, x(e.display), 13,
|
|
1213
|
-
legendToggle: w(() => [J.value.length > 2 && A.value.style.chart.legend.selectAllToggle.show && !S(
|
|
1217
|
+
style: Ve(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1218
|
+
}, x(e.display), 13, pt)]),
|
|
1219
|
+
legendToggle: w(() => [J.value.length > 2 && A.value.style.chart.legend.selectAllToggle.show && !S(qt) ? (_(), u(De, {
|
|
1214
1220
|
key: 0,
|
|
1215
1221
|
backgroundColor: A.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1216
1222
|
color: A.value.style.chart.legend.selectAllToggle.color,
|
|
1217
1223
|
fontSize: A.value.style.chart.legend.fontSize,
|
|
1218
1224
|
checked: K.value.length > 0,
|
|
1219
1225
|
isCursorPointer: j.value,
|
|
1220
|
-
onToggle:
|
|
1226
|
+
onToggle: En
|
|
1221
1227
|
}, null, 8, [
|
|
1222
1228
|
"backgroundColor",
|
|
1223
1229
|
"color",
|
|
@@ -1228,7 +1234,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1228
1234
|
_: 2
|
|
1229
1235
|
}, [e.$slots.pattern ? {
|
|
1230
1236
|
name: "legend-pattern",
|
|
1231
|
-
fn: w(({ legend: e, index: t }) => [
|
|
1237
|
+
fn: w(({ legend: e, index: t }) => [Le(Se, {
|
|
1232
1238
|
shape: e.shape,
|
|
1233
1239
|
radius: 30,
|
|
1234
1240
|
stroke: "none",
|
|
@@ -1247,12 +1253,12 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1247
1253
|
e.$slots.source ? (_(), f("div", {
|
|
1248
1254
|
key: 7,
|
|
1249
1255
|
ref_key: "source",
|
|
1250
|
-
ref:
|
|
1256
|
+
ref: Nt,
|
|
1251
1257
|
dir: "auto"
|
|
1252
1258
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1253
|
-
|
|
1259
|
+
Le(S(ht), {
|
|
1254
1260
|
teleportTo: A.value.style.chart.tooltip.teleportTo,
|
|
1255
|
-
show: F.value.showTooltip &&
|
|
1261
|
+
show: F.value.showTooltip && Ot.value && K.value.length < T.dataset.length,
|
|
1256
1262
|
backgroundColor: A.value.style.chart.tooltip.backgroundColor,
|
|
1257
1263
|
color: A.value.style.chart.tooltip.color,
|
|
1258
1264
|
borderRadius: A.value.style.chart.tooltip.borderRadius,
|
|
@@ -1263,7 +1269,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1263
1269
|
offsetX: A.value.style.chart.tooltip.offsetX,
|
|
1264
1270
|
offsetY: A.value.style.chart.tooltip.offsetY,
|
|
1265
1271
|
parent: O.value,
|
|
1266
|
-
content:
|
|
1272
|
+
content: kt.value,
|
|
1267
1273
|
isCustom: A.value.style.chart.tooltip.customFormat && typeof A.value.style.chart.tooltip.customFormat == "function",
|
|
1268
1274
|
fontSize: A.value.style.chart.tooltip.fontSize,
|
|
1269
1275
|
isFullscreen: $.value,
|
|
@@ -1271,12 +1277,12 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1271
1277
|
backdropFilter: A.value.style.chart.tooltip.backdropFilter,
|
|
1272
1278
|
smoothForce: A.value.style.chart.tooltip.smoothForce,
|
|
1273
1279
|
smoothSnapThreshold: A.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1274
|
-
isA11yMode:
|
|
1275
|
-
a11yPosition:
|
|
1280
|
+
isA11yMode: Wt.value === "keyboard",
|
|
1281
|
+
a11yPosition: Ut.value
|
|
1276
1282
|
}, {
|
|
1277
|
-
"tooltip-before": w(() => [b(e.$slots, "tooltip-before", g(h({ ...
|
|
1278
|
-
tooltip: w(() => [b(e.$slots, "tooltip", g(h({ ...
|
|
1279
|
-
"tooltip-after": w(() => [b(e.$slots, "tooltip-after", g(h({ ...
|
|
1283
|
+
"tooltip-before": w(() => [b(e.$slots, "tooltip-before", g(h({ ...Mn.value })), void 0, !0)]),
|
|
1284
|
+
tooltip: w(() => [b(e.$slots, "tooltip", g(h({ ...Mn.value })), void 0, !0)]),
|
|
1285
|
+
"tooltip-after": w(() => [b(e.$slots, "tooltip-after", g(h({ ...Mn.value })), void 0, !0)]),
|
|
1280
1286
|
_: 3
|
|
1281
1287
|
}, 8, [
|
|
1282
1288
|
"teleportTo",
|
|
@@ -1302,21 +1308,21 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1302
1308
|
"isA11yMode",
|
|
1303
1309
|
"a11yPosition"
|
|
1304
1310
|
]),
|
|
1305
|
-
|
|
1311
|
+
Dt.value && A.value.userOptions.buttons.table ? (_(), u(We(Xn.value.component), Re({ key: 8 }, Xn.value.props, {
|
|
1306
1312
|
ref_key: "tableUnit",
|
|
1307
|
-
ref:
|
|
1308
|
-
onClose:
|
|
1309
|
-
}),
|
|
1310
|
-
content: w(() => [(_(), u(S(
|
|
1311
|
-
key: `table_${
|
|
1313
|
+
ref: zt,
|
|
1314
|
+
onClose: Zn
|
|
1315
|
+
}), Fe({
|
|
1316
|
+
content: w(() => [(_(), u(S(_t), {
|
|
1317
|
+
key: `table_${It.value}`,
|
|
1312
1318
|
colNames: Q.value.colNames,
|
|
1313
1319
|
head: Q.value.head,
|
|
1314
1320
|
body: Q.value.body,
|
|
1315
1321
|
config: Q.value.config,
|
|
1316
|
-
title: A.value.table.useDialog ? "" :
|
|
1322
|
+
title: A.value.table.useDialog ? "" : Xn.value.title,
|
|
1317
1323
|
withCloseButton: !A.value.table.useDialog,
|
|
1318
1324
|
isCursorPointer: j.value,
|
|
1319
|
-
onClose:
|
|
1325
|
+
onClose: Zn
|
|
1320
1326
|
}, {
|
|
1321
1327
|
th: w(({ th: e }) => [p("div", {
|
|
1322
1328
|
innerHTML: e,
|
|
@@ -1324,8 +1330,8 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1324
1330
|
display: "flex",
|
|
1325
1331
|
"align-items": "center"
|
|
1326
1332
|
}
|
|
1327
|
-
}, null, 8,
|
|
1328
|
-
td: w(({ td: e }) => [
|
|
1333
|
+
}, null, 8, mt)]),
|
|
1334
|
+
td: w(({ td: e }) => [Ie(x(e.name || e), 1)]),
|
|
1329
1335
|
_: 1
|
|
1330
1336
|
}, 8, [
|
|
1331
1337
|
"colNames",
|
|
@@ -1339,24 +1345,24 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1339
1345
|
_: 2
|
|
1340
1346
|
}, [A.value.table.useDialog ? {
|
|
1341
1347
|
name: "title",
|
|
1342
|
-
fn: w(() => [
|
|
1348
|
+
fn: w(() => [Ie(x(Xn.value.title), 1)]),
|
|
1343
1349
|
key: "0"
|
|
1344
1350
|
} : void 0, A.value.table.useDialog ? {
|
|
1345
1351
|
name: "actions",
|
|
1346
1352
|
fn: w(() => [p("button", {
|
|
1347
1353
|
tabindex: "0",
|
|
1348
1354
|
class: "vue-ui-user-options-button",
|
|
1349
|
-
onClick: t[1] ||= (e) =>
|
|
1350
|
-
style:
|
|
1351
|
-
}, [
|
|
1355
|
+
onClick: t[1] ||= (e) => Un(A.value.userOptions.callbacks.csv),
|
|
1356
|
+
style: Ve({ cursor: j.value ? "pointer" : "default" })
|
|
1357
|
+
}, [Le(S(gt), {
|
|
1352
1358
|
name: "fileCsv",
|
|
1353
|
-
stroke:
|
|
1359
|
+
stroke: Xn.value.props.color
|
|
1354
1360
|
}, null, 8, ["stroke"])], 4)]),
|
|
1355
1361
|
key: "1"
|
|
1356
1362
|
} : void 0]), 1040)) : d("", !0),
|
|
1357
|
-
b(e.$slots, "skeleton", {}, () => [S(
|
|
1358
|
-
], 46,
|
|
1363
|
+
b(e.$slots, "skeleton", {}, () => [S(qt) ? (_(), u(ge, { key: 0 })) : d("", !0)], !0)
|
|
1364
|
+
], 46, Ye));
|
|
1359
1365
|
}
|
|
1360
|
-
}, [["__scopeId", "data-v-
|
|
1366
|
+
}, [["__scopeId", "data-v-8de28266"]]);
|
|
1361
1367
|
//#endregion
|
|
1362
|
-
export {
|
|
1368
|
+
export { Je as n, ht as t };
|