vue-data-ui 3.23.6 → 3.23.7
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/{PackageVersion-BZs_wnK5.js → PackageVersion-Dy83B80Q.js} +1 -1
- package/dist/PenAndPaper-C0UZ74fa.js +571 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-DpxpyR_I.js → package-CMYqMdZB.js} +1 -1
- package/dist/{render-common-WZ4vXtlg.js → render-common-CqzziMg4.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/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-u71vax4T.js → useConfig-DwdGsXTx.js} +2 -0
- package/dist/{useObjectBindings-d-C_nl0U.js → useObjectBindings-BKkmFRiI.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-CMf1mzF1.js → vue-data-ui-C2MzofEj.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-BHi1QlwW.js → vue-ui-3d-bar-DbMCxsYc.js} +2 -2
- package/dist/{vue-ui-accordion-DNdBR3LQ.js → vue-ui-accordion-CLU_su1P.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CivMIHO6.js → vue-ui-age-pyramid-Dmbk6rMP.js} +2 -2
- package/dist/{vue-ui-annotator-fCliMKNQ.js → vue-ui-annotator-QjHngrui.js} +2 -2
- package/dist/{vue-ui-bullet-BaRzzJfE.js → vue-ui-bullet-DBZ3n4yK.js} +2 -2
- package/dist/{vue-ui-bump-DhQKyCdv.js → vue-ui-bump-CirnIRZw.js} +2 -2
- package/dist/{vue-ui-candlestick-C_QlFw1y.js → vue-ui-candlestick-DZX6VVMs.js} +2 -2
- package/dist/{vue-ui-carousel-table-DER6q3au.js → vue-ui-carousel-table-CWhd8Plu.js} +2 -2
- package/dist/{vue-ui-chestnut-BWc5fSXS.js → vue-ui-chestnut-CMktwDOV.js} +2 -2
- package/dist/{vue-ui-chord-Cbp8ULG2.js → vue-ui-chord-_3zAHsdj.js} +2 -2
- package/dist/{vue-ui-circle-pack-RDzMeb3A.js → vue-ui-circle-pack-BhcQw1-I.js} +2 -2
- package/dist/{vue-ui-cursor-MRKKLhJk.js → vue-ui-cursor-Bo39SVBr.js} +2 -2
- package/dist/{vue-ui-dag-0Q6HiGmy.js → vue-ui-dag-DEF_uf-N.js} +2 -2
- package/dist/{vue-ui-dashboard-CBWYnHvU.js → vue-ui-dashboard-DFIIsh3Z.js} +66 -66
- package/dist/{vue-ui-digits-C3Q7fmPc.js → vue-ui-digits-BrIyw5fg.js} +2 -2
- package/dist/{vue-ui-donut-BMrXYTdN.js → vue-ui-donut-CpOqB9bK.js} +2 -2
- package/dist/{vue-ui-donut-B5DdD0_x.js → vue-ui-donut-IafNVctv.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CEcp64yA.js → vue-ui-donut-evolution-BmNVUdQJ.js} +2 -2
- package/dist/{vue-ui-dumbbell-B6V-yVd7.js → vue-ui-dumbbell-Bx0yMiUm.js} +2 -2
- package/dist/{vue-ui-flow-Ccx4O4-m.js → vue-ui-flow-Fk99WJs7.js} +2 -2
- package/dist/{vue-ui-funnel-CgxQJMUU.js → vue-ui-funnel-D1TarfGe.js} +2 -2
- package/dist/{vue-ui-galaxy-CeaKn5Ld.js → vue-ui-galaxy-CTKKLd-F.js} +2 -2
- package/dist/{vue-ui-gauge-BCs7VZxY.js → vue-ui-gauge-DixSuz96.js} +2 -2
- package/dist/{vue-ui-geo-Djrp8LQ6.js → vue-ui-geo-BdSJqRTr.js} +2 -2
- package/dist/{vue-ui-gizmo-BCr3r9Z5.js → vue-ui-gizmo-BvsWv7cn.js} +2 -2
- package/dist/{vue-ui-heatmap-DIKxGiAH.js → vue-ui-heatmap-B2BZy3E-.js} +3 -3
- package/dist/{vue-ui-hill-DAavuv5-.js → vue-ui-hill-DVJJzAAy.js} +2 -2
- package/dist/{vue-ui-history-plot-COfZMiI7.js → vue-ui-history-plot-BmEHbHlS.js} +2 -2
- package/dist/{vue-ui-horizontal-bar-B4vrK1QB.js → vue-ui-horizontal-bar-BnoA1A4R.js} +3 -3
- package/dist/{vue-ui-kpi-Dlw9Mi3b.js → vue-ui-kpi-DOp84kGR.js} +2 -2
- package/dist/{vue-ui-mini-loader-DukGL2bc.js → vue-ui-mini-loader-SNMKnmMa.js} +1 -1
- package/dist/{vue-ui-molecule-ehZAzPqn.js → vue-ui-molecule-XDZzvX7C.js} +2 -2
- package/dist/{vue-ui-mood-radar-CS9qIJzX.js → vue-ui-mood-radar-D0j2W6G-.js} +2 -2
- package/dist/{vue-ui-nested-donuts-CwEd9CDc.js → vue-ui-nested-donuts-BZF53Z7q.js} +2 -2
- package/dist/{vue-ui-onion-BiffHj6v.js → vue-ui-onion-1igRoVIp.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DC9EjFYA.js → vue-ui-parallel-coordinate-plot-CmzCg7s7.js} +2 -2
- package/dist/{vue-ui-quadrant-BIpxU65Y.js → vue-ui-quadrant-CHfXIMG-.js} +2 -2
- package/dist/{vue-ui-quick-chart-uwVsepnf.js → vue-ui-quick-chart-9-Qnx_Kz.js} +2 -2
- package/dist/{vue-ui-radar-CHdxJwQ2.js → vue-ui-radar-Db7AYBVg.js} +2 -2
- package/dist/{vue-ui-rating-DoUFoJvB.js → vue-ui-rating-BnXrMeGg.js} +1 -1
- package/dist/{vue-ui-relation-circle-FGG7wCYA.js → vue-ui-relation-circle-B3edjo3F.js} +2 -2
- package/dist/{vue-ui-ridgeline-ClyBRJef.js → vue-ui-ridgeline-Bv-zLQ97.js} +2 -2
- package/dist/{vue-ui-rings-CRDcurAB.js → vue-ui-rings-B8PHv7n8.js} +2 -2
- package/dist/{vue-ui-scatter-DYkylqTr.js → vue-ui-scatter-Bb6KG5JD.js} +2 -2
- package/dist/{vue-ui-skeleton-CBtzmJiI.js → vue-ui-skeleton-CPoc6Owm.js} +2 -2
- package/dist/{vue-ui-smiley-BTPYPZdS.js → vue-ui-smiley-BQuXRW4o.js} +1 -1
- package/dist/{vue-ui-spark-trend-Cg__gAj9.js → vue-ui-spark-trend-C-84OhV_.js} +2 -2
- package/dist/{vue-ui-sparkbar-DSqyYcSy.js → vue-ui-sparkbar-CqAsZIv7.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CfW6-ExF.js → vue-ui-sparkgauge-B4RzqC0W.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ClN9JYQF.js → vue-ui-sparkhistogram-Bfrn9PCA.js} +2 -2
- package/dist/{vue-ui-sparkline-CzjD9seh.js → vue-ui-sparkline-M2i8hZ-F.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-nZ3tHm7l.js → vue-ui-sparkstackbar-Bai-Pfzu.js} +2 -2
- package/dist/{vue-ui-stackbar-CRP_j7bH.js → vue-ui-stackbar-DZgRubem.js} +2 -2
- package/dist/{vue-ui-stackline-CWBthsVq.js → vue-ui-stackline-DFZUoZvY.js} +2 -2
- package/dist/{vue-ui-strip-plot-CiEIA52J.js → vue-ui-strip-plot-CJacirOo.js} +394 -387
- package/dist/{vue-ui-table-CoGF2GWe.js → vue-ui-table-DBzvP2ym.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DQ28DYwv.js → vue-ui-table-heatmap-DRABMw2H.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DVpKsZd7.js → vue-ui-table-sparkline-wyjv7lH2.js} +2 -2
- package/dist/{vue-ui-thermometer-CyIIhi3B.js → vue-ui-thermometer-DYj19_DZ.js} +2 -2
- package/dist/{vue-ui-timer-DAJmVDbB.js → vue-ui-timer-BPf8xQBa.js} +2 -2
- package/dist/{vue-ui-tiremarks-BIdIGZ3A.js → vue-ui-tiremarks-CB2uiMTU.js} +2 -2
- package/dist/{vue-ui-treemap-e1dtE4yJ.js → vue-ui-treemap-MC_-L3n4.js} +2 -2
- package/dist/{vue-ui-waffle-CTvRwpKU.js → vue-ui-waffle-C6PGQQya.js} +296 -279
- package/dist/{vue-ui-wheel-L7-X1Ezl.js → vue-ui-wheel-BT7AT9NJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-B6ytHITa.js → vue-ui-word-cloud-DIr_9Qnb.js} +2 -2
- package/dist/{vue-ui-world-CPWP-sZ5.js → vue-ui-world-CZOKJNuR.js} +2 -2
- package/dist/{vue-ui-xy-8NgsjKrE.js → vue-ui-xy-CLwh64AO.js} +3 -3
- package/dist/{vue-ui-xy-DmydKppa.js → vue-ui-xy-Dv_310kS.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BMVdrH11.js → vue-ui-xy-canvas-B-KxaFGF.js} +2 -2
- package/package.json +1 -1
- package/dist/PenAndPaper-DAE-tnEQ.js +0 -461
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Pt as o, S as s, Vt as c, X as l, ct as ee, i as te, jt as ne, n as re, pt as ie, q as ae, r as oe, t as se, tt as ce, w as le, xt as ue } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as de, t as fe } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as pe } from "./useConfig-
|
|
4
|
+
import { t as pe } from "./useConfig-DwdGsXTx.js";
|
|
5
5
|
import { t as me } from "./usePrinter-DN5bYhTG.js";
|
|
6
6
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as _e } from "./useNestedProp-vPNvh7rV.js";
|
|
@@ -24,7 +24,7 @@ import { t as Pe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
|
24
24
|
import { t as Fe } from "./vue_ui_waffle-DE_DiSVP.js";
|
|
25
25
|
import { Fragment as u, Teleport as Ie, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Le, createTextVNode as Re, createVNode as ze, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Be, nextTick as Ve, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as He, onMounted as Ue, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as Ke, toRefs as qe, unref as T, useSlots as Je, watch as Ye, withCtx as E } from "vue";
|
|
26
26
|
//#region src/components/vue-ui-waffle.vue
|
|
27
|
-
var Xe = /* @__PURE__ */ e({ default: () =>
|
|
27
|
+
var Xe = /* @__PURE__ */ e({ default: () => Ct }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
28
28
|
"xmlns",
|
|
29
29
|
"aria-describedby",
|
|
30
30
|
"viewBox"
|
|
@@ -88,6 +88,11 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
88
88
|
"fill",
|
|
89
89
|
"filter"
|
|
90
90
|
], gt = [
|
|
91
|
+
"d",
|
|
92
|
+
"onMouseover",
|
|
93
|
+
"onMouseleave",
|
|
94
|
+
"onClick"
|
|
95
|
+
], _t = [
|
|
91
96
|
"x",
|
|
92
97
|
"y",
|
|
93
98
|
"height",
|
|
@@ -95,7 +100,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
95
100
|
"onMouseover",
|
|
96
101
|
"onMouseleave",
|
|
97
102
|
"onClick"
|
|
98
|
-
],
|
|
103
|
+
], vt = {
|
|
99
104
|
key: 0,
|
|
100
105
|
style: {
|
|
101
106
|
position: "absolute",
|
|
@@ -105,10 +110,10 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
105
110
|
},
|
|
106
111
|
"data-dom-to-png-ignore": "",
|
|
107
112
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
113
|
+
}, yt = {
|
|
109
114
|
key: 5,
|
|
110
115
|
class: "vue-data-ui-watermark"
|
|
111
|
-
},
|
|
116
|
+
}, bt = ["id"], xt = ["onClick"], St = ["innerHTML"], Ct = /*#__PURE__*/ we({
|
|
112
117
|
__name: "vue-ui-waffle",
|
|
113
118
|
props: {
|
|
114
119
|
config: {
|
|
@@ -126,17 +131,17 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
126
131
|
},
|
|
127
132
|
emits: ["selectLegend", "copyAlt"],
|
|
128
133
|
setup(e, { expose: we, emit: Xe }) {
|
|
129
|
-
let
|
|
134
|
+
let Ct = g(() => import("./Tooltip-DhjyfHwz.js")), wt = g(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Tt = g(() => import("./DataTable-BbKgJ5UI.js")), Et = g(() => import("./vue-ui-accordion-CLU_su1P.js").then((e) => e.n)), Dt = g(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ot = g(() => import("./PenAndPaper-C0UZ74fa.js").then((e) => e.t)), kt = g(() => import("./PackageVersion-Dy83B80Q.js").then((e) => e.t)), At = g(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_waffle: jt } = pe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ve(), Pt = Pe(), D = e, Ft = Je(), It = d({
|
|
130
135
|
get() {
|
|
131
136
|
return !!D.dataset && D.dataset.length;
|
|
132
137
|
},
|
|
133
138
|
set(e) {
|
|
134
139
|
return e;
|
|
135
140
|
}
|
|
136
|
-
}), O = S(ae()),
|
|
141
|
+
}), O = S(ae()), Lt = S(!1), Rt = S(""), k = S(null), zt = S(0), A = S(null), Bt = S(null), Vt = S(null), Ht = S(null), Ut = S(null), Wt = S(0), Gt = S(0), Kt = S(0), qt = S(!1), Jt = S(null), Yt = S(null), j = S(null), Xt = S({
|
|
137
142
|
x: 0,
|
|
138
143
|
y: 0
|
|
139
|
-
}),
|
|
144
|
+
}), Zt = S("pointer"), Qt = S(!1), M = S(sn()), { transitionEnabled: N } = be({
|
|
140
145
|
config: () => M.value.transitions,
|
|
141
146
|
dataset: () => D.dataset
|
|
142
147
|
});
|
|
@@ -161,7 +166,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
161
166
|
}
|
|
162
167
|
]
|
|
163
168
|
});
|
|
164
|
-
let P = d(() => M.value.userOptions.useCursorPointer),
|
|
169
|
+
let P = d(() => M.value.userOptions.useCursorPointer), $t = d(() => i({
|
|
165
170
|
defaultConfig: {
|
|
166
171
|
useCustomCells: !1,
|
|
167
172
|
userOptions: { show: !1 },
|
|
@@ -180,13 +185,13 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
180
185
|
} }
|
|
181
186
|
},
|
|
182
187
|
userConfig: M.value.skeletonConfig ?? {}
|
|
183
|
-
})), { loading:
|
|
188
|
+
})), { loading: en, FINAL_DATASET: tn, manualLoading: nn } = he({
|
|
184
189
|
...qe(D),
|
|
185
190
|
FINAL_CONFIG: M,
|
|
186
|
-
prepareConfig:
|
|
191
|
+
prepareConfig: sn,
|
|
187
192
|
callback: () => {
|
|
188
193
|
Promise.resolve().then(async () => {
|
|
189
|
-
H.value =
|
|
194
|
+
H.value = xn();
|
|
190
195
|
});
|
|
191
196
|
},
|
|
192
197
|
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
@@ -208,16 +213,16 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
208
213
|
],
|
|
209
214
|
skeletonConfig: i({
|
|
210
215
|
defaultConfig: M.value,
|
|
211
|
-
userConfig:
|
|
216
|
+
userConfig: $t.value
|
|
212
217
|
})
|
|
213
|
-
}), { userOptionsVisible:
|
|
214
|
-
function
|
|
218
|
+
}), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = Ae({ config: M.value }), { svgRef: F } = je({ config: M.value.style.chart.title });
|
|
219
|
+
function sn() {
|
|
215
220
|
let e = _e({
|
|
216
221
|
userConfig: D.config,
|
|
217
|
-
defaultConfig:
|
|
222
|
+
defaultConfig: jt
|
|
218
223
|
}), t = e.theme;
|
|
219
224
|
if (!t) return e;
|
|
220
|
-
if (!
|
|
225
|
+
if (!Mt.value(e)) return Nt(e), e;
|
|
221
226
|
let n = _e({
|
|
222
227
|
userConfig: Fe[t] || D.config,
|
|
223
228
|
defaultConfig: e
|
|
@@ -231,15 +236,15 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
231
236
|
};
|
|
232
237
|
}
|
|
233
238
|
Ye(() => D.config, (e) => {
|
|
234
|
-
|
|
239
|
+
en.value || (M.value = sn()), rn.value = !M.value.userOptions.showOnChartHover, un(), Wt.value += 1, Gt.value += 1, Kt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
235
240
|
}, { deep: !0 });
|
|
236
|
-
let I = Ge(null),
|
|
237
|
-
function
|
|
241
|
+
let I = Ge(null), cn = Ge(null), ln = d(() => M.value.debug);
|
|
242
|
+
function un() {
|
|
238
243
|
if (ne(D.dataset) ? (ce({
|
|
239
244
|
componentName: "VueUiWaffle",
|
|
240
245
|
type: "dataset",
|
|
241
|
-
debug:
|
|
242
|
-
}),
|
|
246
|
+
debug: ln.value
|
|
247
|
+
}), It.value = !1, nn.value = !0) : ln.value && D.dataset.forEach((e, t) => {
|
|
243
248
|
ie({
|
|
244
249
|
datasetObject: e,
|
|
245
250
|
requiredAttributes: ["name", "values"]
|
|
@@ -251,32 +256,32 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
251
256
|
index: t
|
|
252
257
|
});
|
|
253
258
|
});
|
|
254
|
-
}), ne(D.dataset) || (
|
|
259
|
+
}), ne(D.dataset) || (nn.value = M.value.loading), M.value.responsive) {
|
|
255
260
|
let e = Te(() => {
|
|
256
261
|
let { width: e, height: t } = Ee({
|
|
257
262
|
chart: A.value,
|
|
258
|
-
title: M.value.style.chart.title.text ?
|
|
259
|
-
legend: M.value.style.chart.legend.show ?
|
|
260
|
-
source:
|
|
261
|
-
noTitle:
|
|
263
|
+
title: M.value.style.chart.title.text ? Bt.value : null,
|
|
264
|
+
legend: M.value.style.chart.legend.show ? Vt.value : null,
|
|
265
|
+
source: Ht.value,
|
|
266
|
+
noTitle: Ut.value
|
|
262
267
|
});
|
|
263
268
|
requestAnimationFrame(() => {
|
|
264
269
|
R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
|
|
265
270
|
});
|
|
266
271
|
});
|
|
267
|
-
I.value && (
|
|
272
|
+
I.value && (cn.value && I.value.unobserve(cn.value), I.value.disconnect()), I.value = new ResizeObserver(e), cn.value = A.value.parentNode, I.value.observe(cn.value);
|
|
268
273
|
}
|
|
269
274
|
}
|
|
270
275
|
Ue(() => {
|
|
271
|
-
|
|
276
|
+
qt.value = !0, un();
|
|
272
277
|
}), He(() => {
|
|
273
|
-
I.value && (
|
|
278
|
+
I.value && (cn.value && I.value.unobserve(cn.value), I.value.disconnect());
|
|
274
279
|
});
|
|
275
|
-
let { isPrinting:
|
|
280
|
+
let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = me({
|
|
276
281
|
elementId: `vue-ui-waffle_${O.value}`,
|
|
277
282
|
fileName: M.value.style.chart.title.text || "vue-ui-waffle",
|
|
278
283
|
options: M.value.userOptions.print
|
|
279
|
-
}),
|
|
284
|
+
}), hn = d(() => M.value.userOptions.show && !M.value.style.chart.title.text), gn = d(() => le(M.value.customPalette)), L = S({
|
|
280
285
|
showTable: M.value.table.show,
|
|
281
286
|
showTooltip: M.value.style.chart.tooltip.show
|
|
282
287
|
});
|
|
@@ -294,8 +299,8 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
294
299
|
left: 0,
|
|
295
300
|
height: 512,
|
|
296
301
|
width: 512
|
|
297
|
-
}), B = d(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = d(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size),
|
|
298
|
-
function
|
|
302
|
+
}), B = d(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = d(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), _n = d(() => Math.max(1e-4, z.value.width / M.value.style.chart.layout.grid.size)), vn = d(() => Math.max(1e-4, z.value.height / M.value.style.chart.layout.grid.size));
|
|
303
|
+
function yn(e) {
|
|
299
304
|
let t = M.value.style.chart.layout.grid.size * M.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);
|
|
300
305
|
for (; o > 0;) {
|
|
301
306
|
let e = a.indexOf(Math.max(...a));
|
|
@@ -303,22 +308,22 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
303
308
|
}
|
|
304
309
|
return i;
|
|
305
310
|
}
|
|
306
|
-
let
|
|
307
|
-
function
|
|
308
|
-
return
|
|
311
|
+
let bn = S(!1);
|
|
312
|
+
function xn() {
|
|
313
|
+
return bn.value = tn.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, tn.value.map((e, t) => ({
|
|
309
314
|
...e,
|
|
310
|
-
color: s(e.color) ||
|
|
315
|
+
color: s(e.color) || gn.value[t] || o[t] || o[t % o.length],
|
|
311
316
|
uid: `serie_${t}`,
|
|
312
317
|
absoluteIndex: t
|
|
313
318
|
}));
|
|
314
319
|
}
|
|
315
|
-
let
|
|
320
|
+
let Sn = d(() => xn()), H = S(Sn.value);
|
|
316
321
|
Ye(() => D.dataset, (e) => {
|
|
317
|
-
Array.isArray(e) && e.length > 0 && (
|
|
322
|
+
Array.isArray(e) && e.length > 0 && (nn.value = !1);
|
|
318
323
|
}, { immediate: !0 }), Ye(() => D.dataset, (e) => {
|
|
319
|
-
H.value =
|
|
324
|
+
H.value = xn();
|
|
320
325
|
}, { deep: !0 });
|
|
321
|
-
let
|
|
326
|
+
let Cn = d(() => yn(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => bn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), wn = d(() => yn(H.value.map((e, t) => bn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = d(() => (ln.value && tn.value.forEach((e, t) => {
|
|
322
327
|
[null, void 0].includes(e.values) && ce({
|
|
323
328
|
componentName: "VueUiWaffle",
|
|
324
329
|
type: "datasetSerieAttribute",
|
|
@@ -332,25 +337,25 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
332
337
|
color: e.color,
|
|
333
338
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
334
339
|
absoluteValues: e.values || [],
|
|
335
|
-
proportion:
|
|
336
|
-
})))),
|
|
340
|
+
proportion: Cn.value[t]
|
|
341
|
+
})))), Tn = d(() => H.value.map((e, t) => ({
|
|
337
342
|
absoluteIndex: e.absoluteIndex,
|
|
338
343
|
uid: e.uid,
|
|
339
344
|
name: e.name,
|
|
340
345
|
color: e.color,
|
|
341
346
|
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
342
347
|
absoluteValues: e.values || [],
|
|
343
|
-
proportion:
|
|
348
|
+
proportion: wn.value[t]
|
|
344
349
|
})));
|
|
345
|
-
function
|
|
346
|
-
return
|
|
350
|
+
function En() {
|
|
351
|
+
return Tn.value.map((e) => ({
|
|
347
352
|
name: e.name,
|
|
348
353
|
color: e.color,
|
|
349
354
|
value: e.value,
|
|
350
355
|
proportion: e.proportion
|
|
351
356
|
}));
|
|
352
357
|
}
|
|
353
|
-
let
|
|
358
|
+
let Dn = d(() => {
|
|
354
359
|
let e = 0;
|
|
355
360
|
return U.value.map((t, n) => {
|
|
356
361
|
let r = e, i = r + t.proportion, a = [];
|
|
@@ -361,7 +366,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
361
366
|
rects: a
|
|
362
367
|
};
|
|
363
368
|
});
|
|
364
|
-
}), W = d(() =>
|
|
369
|
+
}), W = d(() => Dn.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
365
370
|
isFirst: r === 0,
|
|
366
371
|
isLongEnough: n.length > 2,
|
|
367
372
|
name: e.name,
|
|
@@ -383,68 +388,68 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
383
388
|
y: (M.value.style.chart.layout.grid.vertical ? n : t) * (V.value + M.value.style.chart.layout.grid.spaceBetween) + z.value.top
|
|
384
389
|
});
|
|
385
390
|
return e;
|
|
386
|
-
}), K = S([]),
|
|
391
|
+
}), K = S([]), On = S(!1), kn = S(Object.create(null)), An = S(Object.create(null)), q = S(0);
|
|
387
392
|
function J(e, t) {
|
|
388
393
|
H.value = H.value.map((n) => n.uid === e ? {
|
|
389
394
|
...n,
|
|
390
395
|
values: [t]
|
|
391
396
|
} : n);
|
|
392
397
|
}
|
|
393
|
-
function
|
|
398
|
+
function jn(e, t) {
|
|
394
399
|
let n = t.find((t) => t.uid === e);
|
|
395
400
|
return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
|
|
396
401
|
}
|
|
397
|
-
function
|
|
402
|
+
function Mn(e) {
|
|
398
403
|
let t = !1;
|
|
399
|
-
|
|
404
|
+
kn.value[e] && (cancelAnimationFrame(kn.value[e]), delete kn.value[e], t = !0), An.value[e] && (cancelAnimationFrame(An.value[e]), delete An.value[e], t = !0), t && (q.value = Math.max(0, q.value - 1), On.value = q.value > 0);
|
|
400
405
|
}
|
|
401
|
-
function
|
|
402
|
-
|
|
406
|
+
function Nn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
407
|
+
Mn(e), q.value += 1, On.value = !0;
|
|
403
408
|
let i = t;
|
|
404
409
|
return new Promise((a) => {
|
|
405
410
|
function o() {
|
|
406
411
|
if (r === "increase") {
|
|
407
412
|
if (i >= n) {
|
|
408
|
-
J(e, n), --q.value, q.value <= 0 && (
|
|
413
|
+
J(e, n), --q.value, q.value <= 0 && (On.value = !1), delete kn.value[e], a();
|
|
409
414
|
return;
|
|
410
415
|
}
|
|
411
|
-
i += n * .025, i > n && (i = n), J(e, i),
|
|
416
|
+
i += n * .025, i > n && (i = n), J(e, i), kn.value[e] = requestAnimationFrame(o);
|
|
412
417
|
} else {
|
|
413
418
|
if (i <= t / 100) {
|
|
414
|
-
J(e, 0), --q.value, q.value <= 0 && (
|
|
419
|
+
J(e, 0), --q.value, q.value <= 0 && (On.value = !1), delete An.value[e], a();
|
|
415
420
|
return;
|
|
416
421
|
}
|
|
417
|
-
i /= 1.15, J(e, i),
|
|
422
|
+
i /= 1.15, J(e, i), An.value[e] = requestAnimationFrame(o);
|
|
418
423
|
}
|
|
419
424
|
}
|
|
420
425
|
o();
|
|
421
426
|
});
|
|
422
427
|
}
|
|
423
|
-
function
|
|
424
|
-
H.value =
|
|
428
|
+
function Pn() {
|
|
429
|
+
H.value = Sn.value;
|
|
425
430
|
let e = K.value.length > 0;
|
|
426
431
|
if (!M.value.useAnimation) {
|
|
427
432
|
e ? K.value = [] : K.value = Y.value.map((e) => e.uid);
|
|
428
433
|
return;
|
|
429
434
|
}
|
|
430
435
|
e ? [...K.value].forEach((e) => {
|
|
431
|
-
|
|
436
|
+
Fn(e, !0);
|
|
432
437
|
}) : Y.value.map((e) => e.uid).forEach((e) => {
|
|
433
|
-
|
|
438
|
+
Fn(e, !0);
|
|
434
439
|
});
|
|
435
440
|
}
|
|
436
|
-
function
|
|
437
|
-
if (
|
|
441
|
+
function Fn(e, t = !1) {
|
|
442
|
+
if (bn.value && !t) return;
|
|
438
443
|
let n = t || K.value.length < Y.value.length - 1 && Y.value.length > 1;
|
|
439
444
|
if (!M.value.useAnimation) {
|
|
440
445
|
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
|
|
441
446
|
return;
|
|
442
447
|
}
|
|
443
|
-
let r =
|
|
448
|
+
let r = jn(e, Sn.value), i = jn(e, H.value);
|
|
444
449
|
if (i !== 0 || r !== 0) {
|
|
445
450
|
if (K.value.includes(e)) {
|
|
446
|
-
if (K.value = K.value.filter((t) => t !== e),
|
|
447
|
-
|
|
451
|
+
if (K.value = K.value.filter((t) => t !== e), Pt.value) {
|
|
452
|
+
Mn(e), J(e, r), Jn("selectLegend", U.value.map((e) => ({
|
|
448
453
|
name: e.name,
|
|
449
454
|
color: e.color,
|
|
450
455
|
value: e.value,
|
|
@@ -452,13 +457,13 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
452
457
|
})));
|
|
453
458
|
return;
|
|
454
459
|
}
|
|
455
|
-
|
|
460
|
+
Nn({
|
|
456
461
|
seriesId: e,
|
|
457
462
|
fromValue: i,
|
|
458
463
|
toValue: r,
|
|
459
464
|
mode: "increase"
|
|
460
465
|
}).then(() => {
|
|
461
|
-
|
|
466
|
+
Jn("selectLegend", U.value.map((e) => ({
|
|
462
467
|
name: e.name,
|
|
463
468
|
color: e.color,
|
|
464
469
|
value: e.value,
|
|
@@ -468,8 +473,8 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
468
473
|
return;
|
|
469
474
|
}
|
|
470
475
|
if (n) {
|
|
471
|
-
if (
|
|
472
|
-
|
|
476
|
+
if (Pt.value) {
|
|
477
|
+
Mn(e), K.value.includes(e) || K.value.push(e), J(e, 0), Jn("selectLegend", U.value.map((e) => ({
|
|
473
478
|
name: e.name,
|
|
474
479
|
color: e.color,
|
|
475
480
|
value: e.value,
|
|
@@ -477,13 +482,13 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
477
482
|
})));
|
|
478
483
|
return;
|
|
479
484
|
}
|
|
480
|
-
|
|
485
|
+
Nn({
|
|
481
486
|
seriesId: e,
|
|
482
487
|
fromValue: i,
|
|
483
488
|
toValue: 0,
|
|
484
489
|
mode: "decrease"
|
|
485
490
|
}).then(() => {
|
|
486
|
-
K.value.includes(e) || K.value.push(e), J(e, 0),
|
|
491
|
+
K.value.includes(e) || K.value.push(e), J(e, 0), Jn("selectLegend", U.value.map((e) => ({
|
|
487
492
|
name: e.name,
|
|
488
493
|
color: e.color,
|
|
489
494
|
value: e.value,
|
|
@@ -493,18 +498,18 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
493
498
|
}
|
|
494
499
|
}
|
|
495
500
|
}
|
|
496
|
-
function Fn(e) {
|
|
497
|
-
return wn.value.length ? wn.value.find((t) => t.name === e) || (cn.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (cn.value && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
498
|
-
}
|
|
499
501
|
function In(e) {
|
|
500
|
-
|
|
501
|
-
t !== null && K.value.includes(t.uid) && Pn(t.uid);
|
|
502
|
+
return Tn.value.length ? Tn.value.find((t) => t.name === e) || (ln.value && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (ln.value && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
502
503
|
}
|
|
503
504
|
function Ln(e) {
|
|
504
|
-
let t =
|
|
505
|
-
t !== null &&
|
|
505
|
+
let t = In(e);
|
|
506
|
+
t !== null && K.value.includes(t.uid) && Fn(t.uid);
|
|
507
|
+
}
|
|
508
|
+
function Rn(e) {
|
|
509
|
+
let t = In(e);
|
|
510
|
+
t !== null && (K.value.includes(t.uid) || Fn(t.uid));
|
|
506
511
|
}
|
|
507
|
-
function
|
|
512
|
+
function zn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
508
513
|
return Me({
|
|
509
514
|
config: i,
|
|
510
515
|
val: e,
|
|
@@ -517,14 +522,14 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
517
522
|
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / H.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
518
523
|
return {
|
|
519
524
|
name: e.name,
|
|
520
|
-
color: e.color ||
|
|
525
|
+
color: e.color || gn[t] || o[t] || o[t % o.length],
|
|
521
526
|
value: n,
|
|
522
527
|
proportion: r,
|
|
523
528
|
uid: e.uid,
|
|
524
529
|
shape: "square"
|
|
525
530
|
};
|
|
526
531
|
}).map((e, t) => {
|
|
527
|
-
let n =
|
|
532
|
+
let n = zn({
|
|
528
533
|
val: te(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, l({
|
|
529
534
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
530
535
|
v: e.value,
|
|
@@ -546,18 +551,18 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
546
551
|
return {
|
|
547
552
|
...e,
|
|
548
553
|
opacity: K.value.includes(e.uid) ? .5 : 1,
|
|
549
|
-
segregate: () =>
|
|
554
|
+
segregate: () => Fn(e.uid),
|
|
550
555
|
isSegregated: K.value.includes(e.uid),
|
|
551
556
|
display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
552
557
|
};
|
|
553
|
-
})),
|
|
558
|
+
})), Bn = d(() => ({
|
|
554
559
|
cy: "waffle-div-legend",
|
|
555
560
|
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
556
561
|
color: M.value.style.chart.legend.color,
|
|
557
562
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
558
563
|
paddingBottom: 12,
|
|
559
564
|
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
560
|
-
})), X = d(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)),
|
|
565
|
+
})), X = d(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Vn = S(null), Hn = S(null), Z = d(() => {
|
|
561
566
|
let e = /* @__PURE__ */ new Map();
|
|
562
567
|
return W.value.forEach((t, n) => {
|
|
563
568
|
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
@@ -572,47 +577,47 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
572
577
|
});
|
|
573
578
|
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
574
579
|
});
|
|
575
|
-
function
|
|
580
|
+
function Un(e) {
|
|
576
581
|
return Z.value.find((t) => t.serieIndex === e) || null;
|
|
577
582
|
}
|
|
578
|
-
function
|
|
579
|
-
let t =
|
|
583
|
+
function Wn(e) {
|
|
584
|
+
let t = Un(e);
|
|
580
585
|
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
581
586
|
}
|
|
582
|
-
function
|
|
587
|
+
function Gn(e) {
|
|
583
588
|
let t = W.value[e];
|
|
584
589
|
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
585
590
|
datapoint: t,
|
|
586
591
|
seriesIndex: t.serieIndex
|
|
587
592
|
});
|
|
588
593
|
}
|
|
589
|
-
function
|
|
594
|
+
function Kn(e) {
|
|
590
595
|
let t = W.value[e];
|
|
591
596
|
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
592
597
|
datapoint: t,
|
|
593
598
|
seriesIndex: t.serieIndex
|
|
594
|
-
}),
|
|
599
|
+
}), Hn.value = null, Lt.value = !1, k.value = null, j.value = null, Zt.value = "pointer";
|
|
595
600
|
}
|
|
596
|
-
function
|
|
601
|
+
function qn(e, t = "pointer") {
|
|
597
602
|
if (K.value.length === D.dataset.length) return;
|
|
598
603
|
let n = W.value[e];
|
|
599
604
|
if (!n) return;
|
|
600
|
-
|
|
605
|
+
Zt.value = t, j.value = n.serieIndex, Vn.value = {
|
|
601
606
|
datapoint: n,
|
|
602
607
|
seriesIndex: n.absoluteIndex,
|
|
603
608
|
series: H.value,
|
|
604
609
|
config: M.value
|
|
605
|
-
}, M.value.events.datapointEnter &&
|
|
610
|
+
}, M.value.events.datapointEnter && Hn.value !== n.serieIndex && M.value.events.datapointEnter({
|
|
606
611
|
datapoint: n,
|
|
607
612
|
seriesIndex: n.serieIndex
|
|
608
|
-
}),
|
|
613
|
+
}), Hn.value = n.serieIndex, Lt.value = !0, k.value = n.serieIndex;
|
|
609
614
|
let r = M.value.style.chart.tooltip.customFormat;
|
|
610
615
|
if (ue(r) && ee(() => r({
|
|
611
616
|
seriesIndex: n.absoluteIndex,
|
|
612
617
|
datapoint: n,
|
|
613
618
|
series: H.value,
|
|
614
619
|
config: M.value
|
|
615
|
-
})))
|
|
620
|
+
}))) Rt.value = r({
|
|
616
621
|
seriesIndex: n.absoluteIndex,
|
|
617
622
|
datapoint: n,
|
|
618
623
|
series: H.value,
|
|
@@ -620,7 +625,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
620
625
|
});
|
|
621
626
|
else {
|
|
622
627
|
let e = "";
|
|
623
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.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}" />${
|
|
628
|
+
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.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}" />${Ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${O.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${zn({
|
|
624
629
|
config: M.value.style.chart.tooltip,
|
|
625
630
|
showVal: M.value.style.chart.tooltip.showValue,
|
|
626
631
|
showPercentage: M.value.style.chart.tooltip.showPercentage,
|
|
@@ -635,14 +640,14 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
635
640
|
series: H.value
|
|
636
641
|
})}</span>`,
|
|
637
642
|
percentage: `<span>${l({
|
|
638
|
-
v:
|
|
643
|
+
v: bn.value ? 1 / tn.value.length * 100 : n.value / X.value * 100,
|
|
639
644
|
s: "%",
|
|
640
645
|
r: M.value.style.chart.tooltip.roundingPercentage
|
|
641
646
|
})}</span>`
|
|
642
|
-
})}</b></div>`,
|
|
647
|
+
})}</b></div>`, Rt.value = e;
|
|
643
648
|
}
|
|
644
649
|
}
|
|
645
|
-
let
|
|
650
|
+
let Jn = Xe, Q = d(() => ({
|
|
646
651
|
head: U.value.map((e) => ({
|
|
647
652
|
name: e.name,
|
|
648
653
|
color: e.color
|
|
@@ -652,16 +657,16 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
652
657
|
function $(e) {
|
|
653
658
|
return M.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== e ? `url(#blur_${O.value})` : "";
|
|
654
659
|
}
|
|
655
|
-
function
|
|
660
|
+
function Yn(e) {
|
|
656
661
|
return [null, void 0].includes(k.value) || k.value === e ? { opacity: 1 } : { opacity: M.value.style.chart.layout.rect.selection.unselectedOpacity };
|
|
657
662
|
}
|
|
658
|
-
function
|
|
663
|
+
function Xn(e) {
|
|
659
664
|
return e.length <= 3 ? e : e.filter((t, n) => {
|
|
660
665
|
let r = e[(n - 1 + e.length) % e.length], i = e[(n + 1) % e.length], a = r.x === t.x && t.x === i.x, o = r.y === t.y && t.y === i.y;
|
|
661
666
|
return !a && !o;
|
|
662
667
|
});
|
|
663
668
|
}
|
|
664
|
-
function
|
|
669
|
+
function Zn(e) {
|
|
665
670
|
if (!e.length) return [];
|
|
666
671
|
let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [], r = /* @__PURE__ */ new Set(), i = [
|
|
667
672
|
[-1, 0],
|
|
@@ -739,11 +744,11 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
739
744
|
if (o(e) === o(c)) break;
|
|
740
745
|
l.push(e), ee = (r.get(o(e)) || []).find((e) => s.has(i(e)));
|
|
741
746
|
}
|
|
742
|
-
l.length >= 4 && a.push(
|
|
747
|
+
l.length >= 4 && a.push(Xn(l));
|
|
743
748
|
}
|
|
744
749
|
}), a;
|
|
745
750
|
}
|
|
746
|
-
function
|
|
751
|
+
function Qn(e) {
|
|
747
752
|
let t = M.value.style.chart.layout.grid.size, n = M.value.style.chart.layout.grid.vertical, r = [];
|
|
748
753
|
return W.value.forEach((i, a) => {
|
|
749
754
|
if (i.serieIndex !== e) return;
|
|
@@ -754,24 +759,24 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
754
759
|
});
|
|
755
760
|
}), r;
|
|
756
761
|
}
|
|
757
|
-
function
|
|
758
|
-
let t =
|
|
759
|
-
return
|
|
762
|
+
function $n(e) {
|
|
763
|
+
let t = _n.value, n = vn.value;
|
|
764
|
+
return Zn(Qn(e)).map((e) => e.map(({ x: e, y: r }) => ({
|
|
760
765
|
x: e * t,
|
|
761
766
|
y: z.value.top + r * n
|
|
762
767
|
})));
|
|
763
768
|
}
|
|
764
|
-
function
|
|
769
|
+
function er(e) {
|
|
765
770
|
return e.map(({ x: e, y: t }) => `${e},${t}`).join(" ");
|
|
766
771
|
}
|
|
767
|
-
function
|
|
772
|
+
function tr(e) {
|
|
768
773
|
return e.map((e) => {
|
|
769
774
|
if (!e.length) return "";
|
|
770
775
|
let [t, ...n] = e, r = n.map(({ x: e, y: t }) => `L ${e} ${t}`).join(" ");
|
|
771
776
|
return `M ${t.x} ${t.y} ${r} Z`;
|
|
772
777
|
}).filter(Boolean).join(" ");
|
|
773
778
|
}
|
|
774
|
-
let
|
|
779
|
+
let nr = d(() => !M.value.style.chart.layout.rect.selection?.wrap?.show || [null, void 0].includes(k.value) ? [] : $n(k.value).map(er)), rr = d(() => {
|
|
775
780
|
if (!M.value.style.chart.layout.rect.merged) return [];
|
|
776
781
|
let e = /* @__PURE__ */ new Map();
|
|
777
782
|
return W.value.forEach((t, n) => {
|
|
@@ -779,17 +784,18 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
779
784
|
serieIndex: t.serieIndex,
|
|
780
785
|
absoluteIndex: t.absoluteIndex,
|
|
781
786
|
color: t.color,
|
|
782
|
-
gradientIndex: n
|
|
787
|
+
gradientIndex: n,
|
|
788
|
+
rectIndex: n
|
|
783
789
|
});
|
|
784
790
|
}), Array.from(e.values()).map((e) => ({
|
|
785
791
|
...e,
|
|
786
|
-
d:
|
|
792
|
+
d: tr($n(e.serieIndex))
|
|
787
793
|
})).filter((e) => e.d);
|
|
788
794
|
});
|
|
789
|
-
function
|
|
790
|
-
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !
|
|
795
|
+
function ir(e, t) {
|
|
796
|
+
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !On.value && !M.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < M.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % M.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
|
|
791
797
|
}
|
|
792
|
-
function
|
|
798
|
+
function ar(e, t = null) {
|
|
793
799
|
let n = te(M.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, l({
|
|
794
800
|
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
795
801
|
v: W.value[e].value,
|
|
@@ -806,7 +812,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
806
812
|
source: W.value[e].name,
|
|
807
813
|
length: M.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
808
814
|
}) : W.value[e].name) + (M.value.style.chart.layout.labels.captions.showPercentage || M.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
809
|
-
return `${M.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${
|
|
815
|
+
return `${M.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${zn({
|
|
810
816
|
val: n,
|
|
811
817
|
percentage: r,
|
|
812
818
|
showVal: M.value.style.chart.layout.labels.captions.showValue,
|
|
@@ -814,7 +820,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
814
820
|
config: M.value.style.chart.layout.labels.dataLabels
|
|
815
821
|
})}`;
|
|
816
822
|
}
|
|
817
|
-
function
|
|
823
|
+
function or(e = null) {
|
|
818
824
|
Ve(() => {
|
|
819
825
|
let n = Q.value.head.map((e, t) => [
|
|
820
826
|
[e.name],
|
|
@@ -835,7 +841,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
835
841
|
});
|
|
836
842
|
});
|
|
837
843
|
}
|
|
838
|
-
let
|
|
844
|
+
let sr = d(() => ({
|
|
839
845
|
head: [
|
|
840
846
|
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
841
847
|
te(M.value.style.chart.layout.labels.dataLabels.formatter, X.value, l({
|
|
@@ -882,21 +888,21 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
882
888
|
M.value.table.columnNames.value,
|
|
883
889
|
M.value.table.columnNames.percentage
|
|
884
890
|
]
|
|
885
|
-
})),
|
|
886
|
-
function
|
|
887
|
-
|
|
891
|
+
})), cr = S(!1);
|
|
892
|
+
function lr(e) {
|
|
893
|
+
cr.value = e, zt.value += 1;
|
|
888
894
|
}
|
|
889
|
-
function
|
|
895
|
+
function ur() {
|
|
890
896
|
L.value.showTable = !L.value.showTable;
|
|
891
897
|
}
|
|
892
|
-
function
|
|
898
|
+
function dr() {
|
|
893
899
|
L.value.showTooltip = !L.value.showTooltip;
|
|
894
900
|
}
|
|
895
|
-
let
|
|
896
|
-
function
|
|
897
|
-
|
|
901
|
+
let fr = S(!1);
|
|
902
|
+
function pr() {
|
|
903
|
+
fr.value = !fr.value;
|
|
898
904
|
}
|
|
899
|
-
async function
|
|
905
|
+
async function mr({ scale: e = 2 } = {}) {
|
|
900
906
|
if (!A.value) return;
|
|
901
907
|
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
902
908
|
domElement: A.value,
|
|
@@ -913,17 +919,17 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
913
919
|
aspectRatio: r
|
|
914
920
|
};
|
|
915
921
|
}
|
|
916
|
-
let
|
|
922
|
+
let hr = d(() => {
|
|
917
923
|
let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
|
|
918
924
|
return {
|
|
919
|
-
component: e ?
|
|
925
|
+
component: e ? At : Et,
|
|
920
926
|
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
921
927
|
props: e ? {
|
|
922
928
|
backgroundColor: M.value.table.th.backgroundColor,
|
|
923
929
|
color: M.value.table.th.color,
|
|
924
930
|
headerColor: M.value.table.th.color,
|
|
925
931
|
headerBg: M.value.table.th.backgroundColor,
|
|
926
|
-
isFullscreen:
|
|
932
|
+
isFullscreen: cr.value,
|
|
927
933
|
fullscreenParent: A.value,
|
|
928
934
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
929
935
|
isCursorPointer: P.value
|
|
@@ -945,116 +951,116 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
945
951
|
};
|
|
946
952
|
});
|
|
947
953
|
Ye(() => L.value.showTable, (e) => {
|
|
948
|
-
M.value.table.show || (e && M.value.table.useDialog &&
|
|
954
|
+
M.value.table.show || (e && M.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
949
955
|
});
|
|
950
|
-
function
|
|
951
|
-
L.value.showTable = !1,
|
|
956
|
+
function gr() {
|
|
957
|
+
L.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
952
958
|
}
|
|
953
|
-
let
|
|
959
|
+
let _r = d(() => Y.value.map((e) => ({
|
|
954
960
|
...e,
|
|
955
961
|
name: e.display
|
|
956
|
-
}))),
|
|
962
|
+
}))), vr = d(() => M.value.style.chart.backgroundColor), yr = d(() => M.value.style.chart.legend), br = d(() => M.value.style.chart.title), { isCallbackImaging: xr, isCallbackSvg: Sr, generateSvg: Cr, onGenerateImage: wr } = ye({
|
|
957
963
|
svg: F,
|
|
958
|
-
title:
|
|
959
|
-
legend:
|
|
960
|
-
legendItems:
|
|
961
|
-
backgroundColor:
|
|
964
|
+
title: br,
|
|
965
|
+
legend: yr,
|
|
966
|
+
legendItems: _r,
|
|
967
|
+
backgroundColor: vr,
|
|
962
968
|
getSvgCallback: () => M.value.userOptions.callbacks.svg,
|
|
963
|
-
generateImage:
|
|
969
|
+
generateImage: mn
|
|
964
970
|
});
|
|
965
|
-
async function
|
|
966
|
-
if (
|
|
971
|
+
async function Tr() {
|
|
972
|
+
if (Jn("copyAlt", {
|
|
967
973
|
config: M.value,
|
|
968
|
-
dataset:
|
|
974
|
+
dataset: Tn.value
|
|
969
975
|
}), !M.value.userOptions.callbacks.altCopy) {
|
|
970
976
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
971
977
|
return;
|
|
972
978
|
}
|
|
973
979
|
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
974
980
|
config: M.value,
|
|
975
|
-
dataset:
|
|
981
|
+
dataset: Tn.value
|
|
976
982
|
}));
|
|
977
983
|
}
|
|
978
|
-
function Tr() {
|
|
979
|
-
j.value = null, Zt.value = !0;
|
|
980
|
-
}
|
|
981
984
|
function Er() {
|
|
982
|
-
j.value = null,
|
|
985
|
+
j.value = null, Qt.value = !0;
|
|
983
986
|
}
|
|
984
|
-
function Dr(
|
|
985
|
-
|
|
987
|
+
function Dr() {
|
|
988
|
+
j.value = null, Zt.value = "pointer", Lt.value = !1, k.value = null, Hn.value = null, Qt.value = !1;
|
|
989
|
+
}
|
|
990
|
+
function Or(e) {
|
|
991
|
+
if (!F.value || fr.value || document.activeElement !== F.value || !Z.value.length || K.value.length === D.dataset.length) return;
|
|
986
992
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
987
993
|
if (!t && !n && !r && !i) return;
|
|
988
994
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
989
|
-
j.value = null,
|
|
995
|
+
j.value = null, Zt.value = "pointer", Lt.value = !1, k.value = null, Hn.value = null;
|
|
990
996
|
return;
|
|
991
997
|
}
|
|
992
998
|
if (r) {
|
|
993
999
|
if (j.value === null) return;
|
|
994
|
-
let e =
|
|
1000
|
+
let e = Wn(j.value);
|
|
995
1001
|
if (e === null) return;
|
|
996
|
-
|
|
1002
|
+
Gn(e);
|
|
997
1003
|
return;
|
|
998
1004
|
}
|
|
999
1005
|
let a = Z.value.findIndex((e) => e.serieIndex === j.value), o = null;
|
|
1000
1006
|
if (o = a === -1 ? n ? Z.value[0] : Z.value[Z.value.length - 1] : n ? Z.value[(a + 1) % Z.value.length] : Z.value[(a - 1 + Z.value.length) % Z.value.length], !o) return;
|
|
1001
|
-
let s =
|
|
1002
|
-
s !== null && (
|
|
1007
|
+
let s = Wn(o.serieIndex);
|
|
1008
|
+
s !== null && (kr(o.serieIndex), qn(s, "keyboard"));
|
|
1003
1009
|
}
|
|
1004
|
-
function
|
|
1010
|
+
function kr(e) {
|
|
1005
1011
|
if (!Number.isFinite(e) || !F.value) return;
|
|
1006
|
-
let t =
|
|
1012
|
+
let t = Un(e);
|
|
1007
1013
|
if (!t || !t.rectIndexes.length) return;
|
|
1008
1014
|
let n = t.rectIndexes.map((e) => {
|
|
1009
1015
|
let t = G.value[e];
|
|
1010
1016
|
return t ? {
|
|
1011
|
-
x: t.x + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1012
|
-
y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1017
|
+
x: t.x + M.value.style.chart.layout.grid.spaceBetween / 2 + _n.value / 2,
|
|
1018
|
+
y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2
|
|
1013
1019
|
} : null;
|
|
1014
1020
|
}).filter(Boolean);
|
|
1015
1021
|
if (!n.length) return;
|
|
1016
1022
|
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)), s = (r + i) / 2, c = (a + o) / 2, l = F.value.getBoundingClientRect();
|
|
1017
|
-
|
|
1023
|
+
Xt.value = {
|
|
1018
1024
|
x: l.left + s / R.value.width * l.width,
|
|
1019
1025
|
y: l.top + c / R.value.height * l.height
|
|
1020
1026
|
};
|
|
1021
1027
|
}
|
|
1022
|
-
let
|
|
1023
|
-
headers:
|
|
1024
|
-
rows:
|
|
1028
|
+
let Ar = d(() => ({
|
|
1029
|
+
headers: sr.value?.colNames ?? [],
|
|
1030
|
+
rows: sr.value?.body ?? []
|
|
1025
1031
|
}));
|
|
1026
1032
|
return we({
|
|
1027
|
-
getData:
|
|
1028
|
-
getImage:
|
|
1029
|
-
generatePdf:
|
|
1030
|
-
generateCsv:
|
|
1031
|
-
generateImage:
|
|
1032
|
-
generateSvg:
|
|
1033
|
-
hideSeries:
|
|
1034
|
-
showSeries:
|
|
1035
|
-
toggleTable:
|
|
1036
|
-
toggleTooltip:
|
|
1037
|
-
toggleAnnotator:
|
|
1038
|
-
toggleFullscreen:
|
|
1039
|
-
copyAlt:
|
|
1033
|
+
getData: En,
|
|
1034
|
+
getImage: mr,
|
|
1035
|
+
generatePdf: pn,
|
|
1036
|
+
generateCsv: or,
|
|
1037
|
+
generateImage: mn,
|
|
1038
|
+
generateSvg: Cr,
|
|
1039
|
+
hideSeries: Rn,
|
|
1040
|
+
showSeries: Ln,
|
|
1041
|
+
toggleTable: ur,
|
|
1042
|
+
toggleTooltip: dr,
|
|
1043
|
+
toggleAnnotator: pr,
|
|
1044
|
+
toggleFullscreen: lr,
|
|
1045
|
+
copyAlt: Tr
|
|
1040
1046
|
}), (e, t) => (x(), m("div", {
|
|
1041
|
-
class: v(`vue-data-ui-component vue-ui-waffle ${
|
|
1047
|
+
class: v(`vue-data-ui-component vue-ui-waffle ${cr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1042
1048
|
ref_key: "waffleChart",
|
|
1043
1049
|
ref: A,
|
|
1044
1050
|
id: `vue-ui-waffle_${O.value}`,
|
|
1045
1051
|
style: b(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
1046
|
-
onMouseenter: t[2] ||= () => T(
|
|
1047
|
-
onMouseleave: t[3] ||= () => T(
|
|
1052
|
+
onMouseenter: t[2] ||= () => T(an)(!0),
|
|
1053
|
+
onMouseleave: t[3] ||= () => T(an)(!1)
|
|
1048
1054
|
}, [
|
|
1049
1055
|
h("div", {
|
|
1050
1056
|
id: `chart-instructions-${O.value}`,
|
|
1051
1057
|
class: "sr-only"
|
|
1052
1058
|
}, [h("p", null, Ke(M.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
|
|
1053
|
-
|
|
1059
|
+
Ar.value?.rows?.length ? (x(), f(ke, {
|
|
1054
1060
|
key: 0,
|
|
1055
1061
|
uid: O.value,
|
|
1056
|
-
head:
|
|
1057
|
-
body:
|
|
1062
|
+
head: Ar.value.headers,
|
|
1063
|
+
body: Ar.value.rows,
|
|
1058
1064
|
notice: M.value.a11y.translations.tableAvailable,
|
|
1059
1065
|
caption: M.value.a11y.translations.tableCaption
|
|
1060
1066
|
}, null, 8, [
|
|
@@ -1064,14 +1070,14 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1064
1070
|
"notice",
|
|
1065
1071
|
"caption"
|
|
1066
1072
|
])) : p("", !0),
|
|
1067
|
-
M.value.userOptions.buttons.annotator ? (x(), f(T(
|
|
1073
|
+
M.value.userOptions.buttons.annotator ? (x(), f(T(Ot), {
|
|
1068
1074
|
key: 1,
|
|
1069
1075
|
svgRef: T(F),
|
|
1070
1076
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1071
1077
|
color: M.value.style.chart.color,
|
|
1072
|
-
active:
|
|
1078
|
+
active: fr.value,
|
|
1073
1079
|
isCursorPointer: P.value,
|
|
1074
|
-
onClose:
|
|
1080
|
+
onClose: pr
|
|
1075
1081
|
}, {
|
|
1076
1082
|
"annotator-action-close": E(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1077
1083
|
"annotator-action-color": E(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -1087,20 +1093,20 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1087
1093
|
"active",
|
|
1088
1094
|
"isCursorPointer"
|
|
1089
1095
|
])) : p("", !0),
|
|
1090
|
-
|
|
1096
|
+
hn.value ? (x(), m("div", {
|
|
1091
1097
|
key: 2,
|
|
1092
1098
|
ref_key: "noTitle",
|
|
1093
|
-
ref:
|
|
1099
|
+
ref: Ut,
|
|
1094
1100
|
class: "vue-data-ui-no-title-space",
|
|
1095
1101
|
style: "height:36px; width: 100%;background:transparent"
|
|
1096
1102
|
}, null, 512)) : p("", !0),
|
|
1097
1103
|
M.value.style.chart.title.text ? (x(), m("div", {
|
|
1098
1104
|
key: 3,
|
|
1099
1105
|
ref_key: "chartTitle",
|
|
1100
|
-
ref:
|
|
1106
|
+
ref: Bt,
|
|
1101
1107
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
1102
1108
|
}, [(x(), f(Se, {
|
|
1103
|
-
key: `title_${
|
|
1109
|
+
key: `title_${Wt.value}`,
|
|
1104
1110
|
config: {
|
|
1105
1111
|
title: {
|
|
1106
1112
|
cy: "waffle-title",
|
|
@@ -1113,14 +1119,14 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1113
1119
|
}
|
|
1114
1120
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
1115
1121
|
h("div", { id: `legend-top-${O.value}` }, null, 8, $e),
|
|
1116
|
-
M.value.userOptions.show &&
|
|
1122
|
+
M.value.userOptions.show && It.value && (T(on) || T(rn)) ? (x(), f(T(Dt), {
|
|
1117
1123
|
ref_key: "userOptionsRef",
|
|
1118
|
-
ref:
|
|
1119
|
-
key: `user_options_${
|
|
1124
|
+
ref: Yt,
|
|
1125
|
+
key: `user_options_${zt.value}`,
|
|
1120
1126
|
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1121
1127
|
color: M.value.style.chart.color,
|
|
1122
|
-
isPrinting: T(
|
|
1123
|
-
isImaging: T(
|
|
1128
|
+
isPrinting: T(dn),
|
|
1129
|
+
isImaging: T(fn),
|
|
1124
1130
|
uid: O.value,
|
|
1125
1131
|
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
1126
1132
|
hasPdf: M.value.userOptions.buttons.pdf,
|
|
@@ -1130,27 +1136,27 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1130
1136
|
hasTable: M.value.userOptions.buttons.table,
|
|
1131
1137
|
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
1132
1138
|
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
1133
|
-
isFullscreen:
|
|
1139
|
+
isFullscreen: cr.value,
|
|
1134
1140
|
isTooltip: L.value.showTooltip,
|
|
1135
1141
|
titles: { ...M.value.userOptions.buttonTitles },
|
|
1136
1142
|
chartElement: A.value,
|
|
1137
1143
|
position: M.value.userOptions.position,
|
|
1138
1144
|
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
1139
|
-
isAnnotation:
|
|
1145
|
+
isAnnotation: fr.value,
|
|
1140
1146
|
callbacks: M.value.userOptions.callbacks,
|
|
1141
1147
|
printScale: M.value.userOptions.print.scale,
|
|
1142
1148
|
tableDialog: M.value.table.useDialog,
|
|
1143
1149
|
isCursorPointer: P.value,
|
|
1144
|
-
onToggleFullscreen:
|
|
1145
|
-
onGeneratePdf: T(
|
|
1146
|
-
onGenerateCsv:
|
|
1147
|
-
onGenerateImage: T(
|
|
1148
|
-
onGenerateSvg: T(
|
|
1149
|
-
onToggleTable:
|
|
1150
|
-
onToggleTooltip:
|
|
1151
|
-
onToggleAnnotator:
|
|
1152
|
-
onCopyAlt:
|
|
1153
|
-
style: b({ visibility: T(
|
|
1150
|
+
onToggleFullscreen: lr,
|
|
1151
|
+
onGeneratePdf: T(pn),
|
|
1152
|
+
onGenerateCsv: or,
|
|
1153
|
+
onGenerateImage: T(wr),
|
|
1154
|
+
onGenerateSvg: T(Cr),
|
|
1155
|
+
onToggleTable: ur,
|
|
1156
|
+
onToggleTooltip: dr,
|
|
1157
|
+
onToggleAnnotator: pr,
|
|
1158
|
+
onCopyAlt: Tr,
|
|
1159
|
+
style: b({ visibility: T(on) ? T(rn) ? "visible" : "hidden" : "visible" })
|
|
1154
1160
|
}, Le({ _: 2 }, [
|
|
1155
1161
|
e.$slots.menuIcon ? {
|
|
1156
1162
|
name: "menuIcon",
|
|
@@ -1228,18 +1234,18 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1228
1234
|
xmlns: T(se),
|
|
1229
1235
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1230
1236
|
class: v({
|
|
1231
|
-
"vue-data-ui-fullscreen--on":
|
|
1232
|
-
"vue-data-ui-fulscreen--off": !
|
|
1237
|
+
"vue-data-ui-fullscreen--on": cr.value,
|
|
1238
|
+
"vue-data-ui-fulscreen--off": !cr.value,
|
|
1233
1239
|
"vue-data-ui-no-transition": !T(N)
|
|
1234
1240
|
}),
|
|
1235
1241
|
tabindex: "0",
|
|
1236
1242
|
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1237
1243
|
style: b(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1238
|
-
onFocus:
|
|
1239
|
-
onBlur:
|
|
1240
|
-
onKeydown:
|
|
1244
|
+
onFocus: Er,
|
|
1245
|
+
onBlur: Dr,
|
|
1246
|
+
onKeydown: Or
|
|
1241
1247
|
}, [
|
|
1242
|
-
ze(T(
|
|
1248
|
+
ze(T(kt)),
|
|
1243
1249
|
h("defs", null, [(x(!0), m(u, null, C(W.value, (e, t) => (x(), f(De, {
|
|
1244
1250
|
t: "radial",
|
|
1245
1251
|
cx: "50%",
|
|
@@ -1297,11 +1303,11 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1297
1303
|
rx: 3,
|
|
1298
1304
|
fill: "none",
|
|
1299
1305
|
stroke: "black"
|
|
1300
|
-
}, null, 8, it)) : W.value.length && !M.value.useCustomCells ? (x(), m(u, { key: 2 }, [e.$slots.pattern ? (x(), m("g", at, [(x(!0), m(u, null, C(
|
|
1306
|
+
}, null, 8, it)) : W.value.length && !M.value.useCustomCells ? (x(), m(u, { key: 2 }, [e.$slots.pattern ? (x(), m("g", at, [(x(!0), m(u, null, C(Sn.value, (t) => (x(), m("defs", null, [w(e.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1301
1307
|
seriesIndex: t.absoluteIndex,
|
|
1302
1308
|
patternId: `pattern_${O.value}_${t.absoluteIndex}`
|
|
1303
1309
|
}), void 0, !0)]))), 256))])) : p("", !0), M.value.style.chart.layout.rect.merged ? (x(), m(u, { key: 1 }, [
|
|
1304
|
-
(x(!0), m(u, null, C(
|
|
1310
|
+
(x(!0), m(u, null, C(rr.value, (e) => (x(), m("path", {
|
|
1305
1311
|
key: `merged-underlayer-${e.serieIndex}`,
|
|
1306
1312
|
d: e.d,
|
|
1307
1313
|
fill: "white",
|
|
@@ -1310,10 +1316,10 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1310
1316
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1311
1317
|
"stroke-linejoin": "round",
|
|
1312
1318
|
filter: $(e.serieIndex),
|
|
1313
|
-
style: b(
|
|
1319
|
+
style: b(Yn(e.serieIndex)),
|
|
1314
1320
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1315
1321
|
}, null, 14, ot))), 128)),
|
|
1316
|
-
(x(!0), m(u, null, C(
|
|
1322
|
+
(x(!0), m(u, null, C(rr.value, (e) => (x(), m("path", {
|
|
1317
1323
|
key: `merged-serie-${e.serieIndex}`,
|
|
1318
1324
|
d: e.d,
|
|
1319
1325
|
fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${O.value}_${e.gradientIndex})` : e.color,
|
|
@@ -1322,17 +1328,17 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1322
1328
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1323
1329
|
"stroke-linejoin": "round",
|
|
1324
1330
|
filter: $(e.serieIndex),
|
|
1325
|
-
style: b(
|
|
1331
|
+
style: b(Yn(e.serieIndex)),
|
|
1326
1332
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1327
1333
|
}, null, 14, st))), 128)),
|
|
1328
|
-
e.$slots.pattern ? (x(), m("g", ct, [(x(!0), m(u, null, C(
|
|
1334
|
+
e.$slots.pattern ? (x(), m("g", ct, [(x(!0), m(u, null, C(rr.value, (e) => (x(), m("path", {
|
|
1329
1335
|
key: `merged-pattern-${e.serieIndex}`,
|
|
1330
1336
|
d: e.d,
|
|
1331
1337
|
fill: `url(#pattern_${O.value}_${e.absoluteIndex})`,
|
|
1332
1338
|
"fill-rule": "evenodd",
|
|
1333
1339
|
stroke: "none",
|
|
1334
1340
|
filter: $(e.serieIndex),
|
|
1335
|
-
style: b(
|
|
1341
|
+
style: b(Yn(e.serieIndex)),
|
|
1336
1342
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1337
1343
|
}, null, 14, lt))), 128))])) : p("", !0)
|
|
1338
1344
|
], 64)) : (x(), m(u, { key: 2 }, [
|
|
@@ -1346,7 +1352,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1346
1352
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1347
1353
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1348
1354
|
filter: $(W.value[t].serieIndex),
|
|
1349
|
-
style: b(
|
|
1355
|
+
style: b(Yn(W.value[t].serieIndex)),
|
|
1350
1356
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1351
1357
|
}, null, 14, ut))), 256)),
|
|
1352
1358
|
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m("rect", {
|
|
@@ -1359,7 +1365,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1359
1365
|
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1360
1366
|
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1361
1367
|
filter: $(W.value[t].serieIndex),
|
|
1362
|
-
style: b(
|
|
1368
|
+
style: b(Yn(W.value[t].serieIndex)),
|
|
1363
1369
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1364
1370
|
}, null, 14, dt))), 256)),
|
|
1365
1371
|
e.$slots.pattern ? (x(), m("g", ft, [(x(!0), m(u, null, C(G.value, (e, t) => (x(), m("rect", {
|
|
@@ -1371,7 +1377,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1371
1377
|
fill: `url(#pattern_${O.value}_${W.value[t].absoluteIndex})`,
|
|
1372
1378
|
stroke: "none",
|
|
1373
1379
|
filter: $(W.value[t].serieIndex),
|
|
1374
|
-
style: b(
|
|
1380
|
+
style: b(Yn(W.value[t].serieIndex)),
|
|
1375
1381
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1376
1382
|
}, null, 14, pt))), 256))])) : p("", !0)
|
|
1377
1383
|
], 64))], 64)) : p("", !0),
|
|
@@ -1385,7 +1391,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1385
1391
|
},
|
|
1386
1392
|
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1387
1393
|
}), void 0, !0)]))), 256)) : p("", !0),
|
|
1388
|
-
(x(!0), m(u, null, C(
|
|
1394
|
+
(x(!0), m(u, null, C(nr.value, (e, t) => (x(), m("polygon", {
|
|
1389
1395
|
key: `selected-series-wrap-${t}`,
|
|
1390
1396
|
points: e,
|
|
1391
1397
|
fill: "none",
|
|
@@ -1394,63 +1400,74 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1394
1400
|
"stroke-linejoin": M.value.style.chart.layout.rect.selection.wrap.strokeLinejoin,
|
|
1395
1401
|
"pointer-events": "none"
|
|
1396
1402
|
}, null, 8, mt))), 128)),
|
|
1397
|
-
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m(u, null, [
|
|
1403
|
+
(x(!0), m(u, null, C(G.value, (e, t) => (x(), m(u, null, [ir(t, e) ? (x(), m("text", {
|
|
1398
1404
|
key: `datalabel_${t}`,
|
|
1399
|
-
textContent: Ke(
|
|
1405
|
+
textContent: Ke(ar(t, e)),
|
|
1400
1406
|
x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1401
|
-
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1407
|
+
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2 + M.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1402
1408
|
"font-size": M.value.style.chart.layout.labels.captions.fontSize,
|
|
1403
1409
|
fill: T(oe)(W.value[t].color),
|
|
1404
1410
|
filter: $(W.value[t].serieIndex),
|
|
1405
1411
|
class: v({ "vue-data-ui-transition": T(N) })
|
|
1406
1412
|
}, null, 10, ht)) : p("", !0)], 64))), 256)),
|
|
1407
|
-
(x(!0), m(u,
|
|
1413
|
+
M.value.style.chart.layout.rect.merged && !M.value.useCustomCells ? (x(!0), m(u, { key: 4 }, C(rr.value, (e) => (x(), m("path", {
|
|
1414
|
+
key: `tooltip-trap-${e.serieIndex}`,
|
|
1415
|
+
d: e.d,
|
|
1416
|
+
fill: "transparent",
|
|
1417
|
+
"fill-rule": "evenodd",
|
|
1418
|
+
stroke: "none",
|
|
1419
|
+
"pointer-events": "fill",
|
|
1420
|
+
onMouseover: (t) => qn(e.rectIndex),
|
|
1421
|
+
onMouseleave: (t) => Kn(e.rectIndex),
|
|
1422
|
+
onClick: (t) => Gn(e.rectIndex)
|
|
1423
|
+
}, null, 40, gt))), 128)) : (x(!0), m(u, { key: 5 }, C(G.value, (e, t) => (x(), m("rect", {
|
|
1424
|
+
key: `tooltip-trap-${t}`,
|
|
1408
1425
|
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1409
1426
|
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1410
|
-
height:
|
|
1411
|
-
width:
|
|
1427
|
+
height: vn.value,
|
|
1428
|
+
width: _n.value,
|
|
1412
1429
|
fill: "transparent",
|
|
1413
1430
|
stroke: "none",
|
|
1414
|
-
onMouseover: (e) =>
|
|
1415
|
-
onMouseleave: (e) =>
|
|
1416
|
-
onClick: (e) =>
|
|
1417
|
-
}, null, 40,
|
|
1431
|
+
onMouseover: (e) => qn(t),
|
|
1432
|
+
onMouseleave: (e) => Kn(t),
|
|
1433
|
+
onClick: (e) => Gn(t)
|
|
1434
|
+
}, null, 40, _t))), 128)),
|
|
1418
1435
|
w(e.$slots, "svg", { svg: {
|
|
1419
1436
|
...R.value,
|
|
1420
|
-
isPrintingImg: T(
|
|
1421
|
-
isPrintingSvg: T(
|
|
1437
|
+
isPrintingImg: T(dn) || T(fn) || T(xr),
|
|
1438
|
+
isPrintingSvg: T(Sr)
|
|
1422
1439
|
} }, void 0, !0)
|
|
1423
|
-
], 46, tt)), e.$slots.hint ? (x(), m("div",
|
|
1440
|
+
], 46, tt)), e.$slots.hint ? (x(), m("div", vt, [w(e.$slots, "hint", y(_({
|
|
1424
1441
|
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1425
|
-
isVisible:
|
|
1442
|
+
isVisible: Qt.value
|
|
1426
1443
|
})), void 0, !0)])) : p("", !0)]),
|
|
1427
|
-
e.$slots.watermark ? (x(), m("div",
|
|
1428
|
-
h("div", { id: `legend-bottom-${O.value}` }, null, 8,
|
|
1429
|
-
|
|
1444
|
+
e.$slots.watermark ? (x(), m("div", yt, [w(e.$slots, "watermark", y(_({ isPrinting: T(dn) || T(fn) || T(xr) || T(Sr) })), void 0, !0)])) : p("", !0),
|
|
1445
|
+
h("div", { id: `legend-bottom-${O.value}` }, null, 8, bt),
|
|
1446
|
+
qt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ie, {
|
|
1430
1447
|
key: 6,
|
|
1431
1448
|
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
|
|
1432
1449
|
}, [h("div", {
|
|
1433
1450
|
ref_key: "chartLegend",
|
|
1434
|
-
ref:
|
|
1451
|
+
ref: Vt
|
|
1435
1452
|
}, [w(e.$slots, "legend", { legend: Y.value }, () => [M.value.style.chart.legend.show ? (x(), f(Ne, {
|
|
1436
|
-
key: `legend_${
|
|
1453
|
+
key: `legend_${Kt.value}`,
|
|
1437
1454
|
legendSet: Y.value,
|
|
1438
|
-
config:
|
|
1455
|
+
config: Bn.value,
|
|
1439
1456
|
isCursorPointer: P.value,
|
|
1440
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1457
|
+
onClickMarker: t[0] ||= ({ legend: e }) => Fn(e.uid)
|
|
1441
1458
|
}, Le({
|
|
1442
1459
|
item: E(({ legend: e }) => [h("div", {
|
|
1443
1460
|
onClick: (t) => e.segregate(),
|
|
1444
1461
|
style: b(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1445
|
-
}, Ke(e.display), 13,
|
|
1446
|
-
legendToggle: E(() => [Y.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(
|
|
1462
|
+
}, Ke(e.display), 13, xt)]),
|
|
1463
|
+
legendToggle: E(() => [Y.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !T(en) ? (x(), f(Oe, {
|
|
1447
1464
|
key: 0,
|
|
1448
1465
|
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1449
1466
|
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1450
1467
|
fontSize: M.value.style.chart.legend.fontSize,
|
|
1451
1468
|
checked: K.value.length > 0,
|
|
1452
1469
|
isCursorPointer: P.value,
|
|
1453
|
-
onToggle:
|
|
1470
|
+
onToggle: Pn
|
|
1454
1471
|
}, null, 8, [
|
|
1455
1472
|
"backgroundColor",
|
|
1456
1473
|
"color",
|
|
@@ -1480,12 +1497,12 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1480
1497
|
e.$slots.source ? (x(), m("div", {
|
|
1481
1498
|
key: 7,
|
|
1482
1499
|
ref_key: "source",
|
|
1483
|
-
ref:
|
|
1500
|
+
ref: Ht,
|
|
1484
1501
|
dir: "auto"
|
|
1485
1502
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1486
|
-
ze(T(
|
|
1503
|
+
ze(T(Ct), {
|
|
1487
1504
|
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1488
|
-
show: L.value.showTooltip &&
|
|
1505
|
+
show: L.value.showTooltip && Lt.value && K.value.length < D.dataset.length,
|
|
1489
1506
|
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1490
1507
|
color: M.value.style.chart.tooltip.color,
|
|
1491
1508
|
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
@@ -1496,20 +1513,20 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1496
1513
|
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1497
1514
|
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1498
1515
|
parent: A.value,
|
|
1499
|
-
content:
|
|
1516
|
+
content: Rt.value,
|
|
1500
1517
|
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1501
1518
|
fontSize: M.value.style.chart.tooltip.fontSize,
|
|
1502
|
-
isFullscreen:
|
|
1519
|
+
isFullscreen: cr.value,
|
|
1503
1520
|
smooth: M.value.style.chart.tooltip.smooth,
|
|
1504
1521
|
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1505
1522
|
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1506
1523
|
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1507
|
-
isA11yMode:
|
|
1508
|
-
a11yPosition:
|
|
1524
|
+
isA11yMode: Zt.value === "keyboard",
|
|
1525
|
+
a11yPosition: Xt.value
|
|
1509
1526
|
}, {
|
|
1510
|
-
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", y(_({ ...
|
|
1511
|
-
tooltip: E(() => [w(e.$slots, "tooltip", y(_({ ...
|
|
1512
|
-
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", y(_({ ...
|
|
1527
|
+
"tooltip-before": E(() => [w(e.$slots, "tooltip-before", y(_({ ...Vn.value })), void 0, !0)]),
|
|
1528
|
+
tooltip: E(() => [w(e.$slots, "tooltip", y(_({ ...Vn.value })), void 0, !0)]),
|
|
1529
|
+
"tooltip-after": E(() => [w(e.$slots, "tooltip-after", y(_({ ...Vn.value })), void 0, !0)]),
|
|
1513
1530
|
_: 3
|
|
1514
1531
|
}, 8, [
|
|
1515
1532
|
"teleportTo",
|
|
@@ -1535,21 +1552,21 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1535
1552
|
"isA11yMode",
|
|
1536
1553
|
"a11yPosition"
|
|
1537
1554
|
]),
|
|
1538
|
-
|
|
1555
|
+
It.value && M.value.userOptions.buttons.table ? (x(), f(We(hr.value.component), Be({ key: 8 }, hr.value.props, {
|
|
1539
1556
|
ref_key: "tableUnit",
|
|
1540
|
-
ref:
|
|
1541
|
-
onClose:
|
|
1557
|
+
ref: Jt,
|
|
1558
|
+
onClose: gr
|
|
1542
1559
|
}), Le({
|
|
1543
|
-
content: E(() => [(x(), f(T(
|
|
1544
|
-
key: `table_${
|
|
1545
|
-
colNames:
|
|
1546
|
-
head:
|
|
1547
|
-
body:
|
|
1548
|
-
config:
|
|
1549
|
-
title: M.value.table.useDialog ? "" :
|
|
1560
|
+
content: E(() => [(x(), f(T(Tt), {
|
|
1561
|
+
key: `table_${Gt.value}`,
|
|
1562
|
+
colNames: sr.value.colNames,
|
|
1563
|
+
head: sr.value.head,
|
|
1564
|
+
body: sr.value.body,
|
|
1565
|
+
config: sr.value.config,
|
|
1566
|
+
title: M.value.table.useDialog ? "" : hr.value.title,
|
|
1550
1567
|
withCloseButton: !M.value.table.useDialog,
|
|
1551
1568
|
isCursorPointer: P.value,
|
|
1552
|
-
onClose:
|
|
1569
|
+
onClose: gr
|
|
1553
1570
|
}, {
|
|
1554
1571
|
th: E(({ th: e }) => [h("div", {
|
|
1555
1572
|
innerHTML: e,
|
|
@@ -1557,7 +1574,7 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1557
1574
|
display: "flex",
|
|
1558
1575
|
"align-items": "center"
|
|
1559
1576
|
}
|
|
1560
|
-
}, null, 8,
|
|
1577
|
+
}, null, 8, St)]),
|
|
1561
1578
|
td: E(({ td: e }) => [Re(Ke(e.name || e), 1)]),
|
|
1562
1579
|
_: 1
|
|
1563
1580
|
}, 8, [
|
|
@@ -1572,24 +1589,24 @@ var Xe = /* @__PURE__ */ e({ default: () => St }), Ze = ["id"], Qe = ["id"], $e
|
|
|
1572
1589
|
_: 2
|
|
1573
1590
|
}, [M.value.table.useDialog ? {
|
|
1574
1591
|
name: "title",
|
|
1575
|
-
fn: E(() => [Re(Ke(
|
|
1592
|
+
fn: E(() => [Re(Ke(hr.value.title), 1)]),
|
|
1576
1593
|
key: "0"
|
|
1577
1594
|
} : void 0, M.value.table.useDialog ? {
|
|
1578
1595
|
name: "actions",
|
|
1579
1596
|
fn: E(() => [h("button", {
|
|
1580
1597
|
tabindex: "0",
|
|
1581
1598
|
class: "vue-ui-user-options-button",
|
|
1582
|
-
onClick: t[1] ||= (e) =>
|
|
1599
|
+
onClick: t[1] ||= (e) => or(M.value.userOptions.callbacks.csv),
|
|
1583
1600
|
style: b({ cursor: P.value ? "pointer" : "default" })
|
|
1584
|
-
}, [ze(T(
|
|
1601
|
+
}, [ze(T(wt), {
|
|
1585
1602
|
name: "fileCsv",
|
|
1586
|
-
stroke:
|
|
1603
|
+
stroke: hr.value.props.color
|
|
1587
1604
|
}, null, 8, ["stroke"])], 4)]),
|
|
1588
1605
|
key: "1"
|
|
1589
1606
|
} : void 0]), 1040)) : p("", !0),
|
|
1590
|
-
w(e.$slots, "skeleton", {}, () => [T(
|
|
1607
|
+
w(e.$slots, "skeleton", {}, () => [T(en) ? (x(), f(ge, { key: 0 })) : p("", !0)], !0)
|
|
1591
1608
|
], 46, Ze));
|
|
1592
1609
|
}
|
|
1593
|
-
}, [["__scopeId", "data-v-
|
|
1610
|
+
}, [["__scopeId", "data-v-fd2c905f"]]);
|
|
1594
1611
|
//#endregion
|
|
1595
|
-
export { Xe as n,
|
|
1612
|
+
export { Xe as n, Ct as t };
|