vue-data-ui 3.16.4 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- 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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineAsyncComponent as W, useSlots as ml, computed as i, ref as r, toRefs as bl, watch as de, shallowRef as Tt, onMounted as wl, onBeforeUnmount as kl, openBlock as s, createElementBlock as v, unref as
|
|
1
|
+
import { defineAsyncComponent as W, useSlots as ml, computed as i, ref as r, toRefs as bl, watch as de, shallowRef as Tt, onMounted as wl, onBeforeUnmount as kl, openBlock as s, createElementBlock as v, unref as p, normalizeStyle as he, normalizeClass as St, createElementVNode as C, toDisplayString as pe, createBlock as I, createCommentVNode as m, withCtx as d, renderSlot as h, normalizeProps as x, guardReactiveProps as $, createSlots as We, createVNode as xe, Fragment as P, renderList as G, mergeProps as Ge, Teleport as Cl, resolveDynamicComponent as xl, createTextVNode as At, nextTick as It } from "vue";
|
|
2
2
|
import { j as $l, t as Pt, m as Tl, p as Y, o as _t, q as je, r as Sl, n as Al, k as fe, l as z, X as Il, u as Pl, v as _l, W as Bl, s as Ol, a0 as Fl, a1 as Ll, a as Dl, T as Nl, U as Ml } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { b as zl } from "./labelUtils-CqTHa20R.js";
|
|
4
4
|
import { t as Vl, u as Rl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as El } from "./useConfig-
|
|
5
|
+
import { u as El } from "./useConfig-ChRble71.js";
|
|
6
6
|
import { u as Ul, B as Wl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
7
|
import { u as Gl } from "./usePrinter-CEpYU3r5.js";
|
|
8
8
|
import { u as jl } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -44,14 +44,14 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
44
44
|
},
|
|
45
45
|
emits: ["selectLegend", "copyAlt"],
|
|
46
46
|
setup(Bt, { expose: Ot, emit: Ft }) {
|
|
47
|
-
const Lt = W(() => import("./Tooltip-
|
|
47
|
+
const Lt = W(() => import("./Tooltip-C8KGyqQk.js")), Dt = W(() => import("./BaseIcon-Cb3zzG6s.js")), Nt = W(() => import("./DataTable-DT2kIdQ6.js")), Mt = W(() => import("./vue-ui-accordion-CnDW2UQL.js")), zt = W(() => import("./UserOptions-rW2fRf3V.js")), Vt = W(() => import("./PenAndPaper-Ct3qJ4lA.js")), Rt = W(() => import("./PackageVersion-B3kmPxTR.js")), Et = W(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_waffle: Ut } = El(), { isThemeValid: Wt, warnInvalidTheme: Gt } = Hl(), b = Bt, jt = ml(), $e = i({
|
|
48
48
|
get() {
|
|
49
49
|
return !!b.dataset && b.dataset.length;
|
|
50
50
|
},
|
|
51
51
|
set(e) {
|
|
52
52
|
return e;
|
|
53
53
|
}
|
|
54
|
-
}), y = r($l()), te = r(!1),
|
|
54
|
+
}), y = r($l()), te = r(!1), Te = r(""), V = r(null), qe = r(0), _ = r(null), Xe = r(null), Ye = r(null), Ke = r(null), Je = r(null), Qe = r(0), Ze = r(0), et = r(0), tt = r(!1), le = r(null), Se = r(null), ge = r(!1), ye = r(!1), R = r(null), lt = r({ x: 0, y: 0 }), ae = r("pointer"), Ae = r(!1), t = r(Be()), j = i(() => t.value.userOptions.useCursorPointer), Ht = i(() => Pt({
|
|
55
55
|
defaultConfig: {
|
|
56
56
|
useCustomCells: !1,
|
|
57
57
|
userOptions: { show: !1 },
|
|
@@ -76,13 +76,13 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
userConfig: t.value.skeletonConfig ?? {}
|
|
79
|
-
})), { loading:
|
|
79
|
+
})), { loading: Ie, FINAL_DATASET: K, manualLoading: Pe } = Ul({
|
|
80
80
|
...bl(b),
|
|
81
81
|
FINAL_CONFIG: t,
|
|
82
|
-
prepareConfig:
|
|
82
|
+
prepareConfig: Be,
|
|
83
83
|
callback: () => {
|
|
84
84
|
Promise.resolve().then(async () => {
|
|
85
|
-
w.value =
|
|
85
|
+
w.value = De();
|
|
86
86
|
});
|
|
87
87
|
},
|
|
88
88
|
skeletonDataset: b.config?.skeletonDataset ?? [
|
|
@@ -106,8 +106,8 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
106
106
|
defaultConfig: t.value,
|
|
107
107
|
userConfig: Ht.value
|
|
108
108
|
})
|
|
109
|
-
}), { userOptionsVisible:
|
|
110
|
-
function
|
|
109
|
+
}), { userOptionsVisible: _e, setUserOptionsVisibility: at, keepUserOptionState: ot } = ql({ config: t.value }), { svgRef: H } = Xl({ config: t.value.style.chart.title });
|
|
110
|
+
function Be() {
|
|
111
111
|
const e = He({
|
|
112
112
|
userConfig: b.config,
|
|
113
113
|
defaultConfig: Ut
|
|
@@ -128,7 +128,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
de(() => b.config, (e) => {
|
|
131
|
-
|
|
131
|
+
Ie.value || (t.value = Be()), _e.value = !t.value.userOptions.showOnChartHover, ut(), Qe.value += 1, Ze.value += 1, et.value += 1, T.value.showTable = t.value.table.show, T.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
132
132
|
}, { deep: !0 });
|
|
133
133
|
const E = Tt(null), J = Tt(null), nt = i(() => !!t.value.debug);
|
|
134
134
|
function ut() {
|
|
@@ -136,7 +136,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
136
136
|
componentName: "VueUiWaffle",
|
|
137
137
|
type: "dataset",
|
|
138
138
|
debug: nt.value
|
|
139
|
-
}),
|
|
139
|
+
}), $e.value = !1, Pe.value = !0) : b.dataset.forEach((e, a) => {
|
|
140
140
|
Sl({
|
|
141
141
|
datasetObject: e,
|
|
142
142
|
requiredAttributes: ["name", "values"]
|
|
@@ -149,7 +149,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
149
149
|
debug: nt.value
|
|
150
150
|
});
|
|
151
151
|
});
|
|
152
|
-
}), _t(b.dataset) || (
|
|
152
|
+
}), _t(b.dataset) || (Pe.value = t.value.loading), t.value.responsive) {
|
|
153
153
|
const e = Vl(() => {
|
|
154
154
|
const { width: a, height: l } = Rl({
|
|
155
155
|
chart: _.value,
|
|
@@ -170,7 +170,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
170
170
|
}), kl(() => {
|
|
171
171
|
E.value && (J.value && E.value.unobserve(J.value), E.value.disconnect());
|
|
172
172
|
});
|
|
173
|
-
const { isPrinting:
|
|
173
|
+
const { isPrinting: Oe, isImaging: Fe, generatePdf: st, generateImage: rt } = Gl({
|
|
174
174
|
elementId: `vue-ui-waffle_${y.value}`,
|
|
175
175
|
fileName: t.value.style.chart.title.text || "vue-ui-waffle",
|
|
176
176
|
options: t.value.userOptions.print
|
|
@@ -192,7 +192,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
192
192
|
left: 0,
|
|
193
193
|
height: 512,
|
|
194
194
|
width: 512
|
|
195
|
-
}), F = i(() => (O.value.width - t.value.style.chart.layout.grid.size * t.value.style.chart.layout.grid.spaceBetween) / t.value.style.chart.layout.grid.size), L = i(() => (O.value.height - t.value.style.chart.layout.grid.size * t.value.style.chart.layout.grid.spaceBetween) / t.value.style.chart.layout.grid.size), ct = i(() => Math.max(1e-4, O.value.width / t.value.style.chart.layout.grid.size)),
|
|
195
|
+
}), F = i(() => (O.value.width - t.value.style.chart.layout.grid.size * t.value.style.chart.layout.grid.spaceBetween) / t.value.style.chart.layout.grid.size), L = i(() => (O.value.height - t.value.style.chart.layout.grid.size * t.value.style.chart.layout.grid.spaceBetween) / t.value.style.chart.layout.grid.size), ct = i(() => Math.max(1e-4, O.value.width / t.value.style.chart.layout.grid.size)), Le = i(() => Math.max(1e-4, O.value.height / t.value.style.chart.layout.grid.size));
|
|
196
196
|
function vt(e) {
|
|
197
197
|
const a = t.value.style.chart.layout.grid.size * t.value.style.chart.layout.grid.size, l = e.reduce((k, A) => k + A, 0), o = e.map((k) => k / l * a), n = o.map(Math.floor), u = o.map((k) => k % 1);
|
|
198
198
|
let g = a - n.reduce((k, A) => k + A, 0);
|
|
@@ -203,7 +203,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
203
203
|
return n;
|
|
204
204
|
}
|
|
205
205
|
const oe = r(!1);
|
|
206
|
-
function
|
|
206
|
+
function De() {
|
|
207
207
|
return oe.value = K.value.flatMap((e) => e.values.reduce((a, l) => a + l, 0)).reduce((e, a) => e + a, 0) === 0, K.value.map((e, a) => ({
|
|
208
208
|
...e,
|
|
209
209
|
color: Ol(e.color) || it.value[a] || Y[a] || Y[a % Y.length],
|
|
@@ -211,11 +211,11 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
211
211
|
absoluteIndex: a
|
|
212
212
|
}));
|
|
213
213
|
}
|
|
214
|
-
const me = i(() =>
|
|
214
|
+
const me = i(() => De()), w = r(me.value);
|
|
215
215
|
de(() => b.dataset, (e) => {
|
|
216
|
-
Array.isArray(e) && e.length > 0 && (
|
|
216
|
+
Array.isArray(e) && e.length > 0 && (Pe.value = !1);
|
|
217
217
|
}, { immediate: !0 }), de(() => b.dataset, (e) => {
|
|
218
|
-
w.value =
|
|
218
|
+
w.value = De();
|
|
219
219
|
}, { deep: !0 });
|
|
220
220
|
const Xt = i(() => {
|
|
221
221
|
const e = w.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => oe.value ? 1 : (a.values || []).reduce((o, n) => o + n, 0));
|
|
@@ -238,7 +238,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
238
238
|
value: (e.values || []).reduce((l, o) => l + o, 0),
|
|
239
239
|
absoluteValues: e.values || [],
|
|
240
240
|
proportion: Xt.value[a]
|
|
241
|
-
})))),
|
|
241
|
+
})))), Ne = i(() => w.value.map((e, a) => ({
|
|
242
242
|
absoluteIndex: e.absoluteIndex,
|
|
243
243
|
uid: e.uid,
|
|
244
244
|
name: e.name,
|
|
@@ -248,7 +248,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
248
248
|
proportion: Yt.value[a]
|
|
249
249
|
})));
|
|
250
250
|
function Kt() {
|
|
251
|
-
return
|
|
251
|
+
return Ne.value.map((e) => ({
|
|
252
252
|
name: e.name,
|
|
253
253
|
color: e.color,
|
|
254
254
|
value: e.value,
|
|
@@ -392,9 +392,9 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
function pt(e) {
|
|
395
|
-
if (!
|
|
395
|
+
if (!Ne.value.length)
|
|
396
396
|
return t.value.debug && console.warn("VueUiWaffle - There are no series to show."), null;
|
|
397
|
-
const a =
|
|
397
|
+
const a = Ne.value.find((l) => l.name === e);
|
|
398
398
|
return a || (t.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null);
|
|
399
399
|
}
|
|
400
400
|
function el(e) {
|
|
@@ -405,7 +405,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
405
405
|
const a = pt(e);
|
|
406
406
|
a !== null && (f.value.includes(a.uid) || Z(a.uid));
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Me({
|
|
409
409
|
val: e,
|
|
410
410
|
percentage: a,
|
|
411
411
|
showVal: l,
|
|
@@ -436,7 +436,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
436
436
|
v: e.value,
|
|
437
437
|
s: t.value.style.chart.layout.labels.dataLabels.suffix,
|
|
438
438
|
r: t.value.style.chart.legend.roundingValue
|
|
439
|
-
}), { datapoint: e, index: a }), o = isNaN(e.value / D.value) ? "-" : z({ v: e.value / D.value * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage }), n =
|
|
439
|
+
}), { datapoint: e, index: a }), o = isNaN(e.value / D.value) ? "-" : z({ v: e.value / D.value * 100, s: "%", r: t.value.style.chart.legend.roundingPercentage }), n = Me({
|
|
440
440
|
val: l,
|
|
441
441
|
percentage: o,
|
|
442
442
|
showVal: t.value.style.chart.legend.showValue,
|
|
@@ -457,7 +457,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
457
457
|
fontSize: t.value.style.chart.legend.fontSize,
|
|
458
458
|
paddingBottom: 12,
|
|
459
459
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
460
|
-
})), D = i(() => Q.value.map((e) => e.value).reduce((e, a) => e + a, 0)),
|
|
460
|
+
})), D = i(() => Q.value.map((e) => e.value).reduce((e, a) => e + a, 0)), we = r(null), ie = r(null), S = i(() => {
|
|
461
461
|
const e = /* @__PURE__ */ new Map();
|
|
462
462
|
return c.value.forEach((a, l) => {
|
|
463
463
|
e.has(a.serieIndex) ? e.get(a.serieIndex).rectIndexes.push(l) : e.set(a.serieIndex, {
|
|
@@ -491,7 +491,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
491
491
|
if (f.value.length === b.dataset.length) return;
|
|
492
492
|
const l = c.value[e];
|
|
493
493
|
if (!l) return;
|
|
494
|
-
ae.value = a, R.value = l.serieIndex,
|
|
494
|
+
ae.value = a, R.value = l.serieIndex, we.value = {
|
|
495
495
|
datapoint: l,
|
|
496
496
|
seriesIndex: l.absoluteIndex,
|
|
497
497
|
series: w.value,
|
|
@@ -509,7 +509,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
509
509
|
config: t.value
|
|
510
510
|
})
|
|
511
511
|
))
|
|
512
|
-
|
|
512
|
+
Te.value = o({
|
|
513
513
|
seriesIndex: l.absoluteIndex,
|
|
514
514
|
datapoint: l,
|
|
515
515
|
series: w.value,
|
|
@@ -517,7 +517,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
517
517
|
});
|
|
518
518
|
else {
|
|
519
519
|
let n = "";
|
|
520
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, n += `<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="${l.color}" />${jt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${y.value}_${l.absoluteIndex})"/>` : ""}</svg>`, n += `<b>${
|
|
520
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, n += `<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="${l.color}" />${jt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${y.value}_${l.absoluteIndex})"/>` : ""}</svg>`, n += `<b>${Me({
|
|
521
521
|
config: t.value.style.chart.tooltip,
|
|
522
522
|
showVal: t.value.style.chart.tooltip.showValue,
|
|
523
523
|
showPercentage: t.value.style.chart.tooltip.showPercentage,
|
|
@@ -541,7 +541,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
541
541
|
s: "%",
|
|
542
542
|
r: t.value.style.chart.tooltip.roundingPercentage
|
|
543
543
|
})}</span>`
|
|
544
|
-
})}</b></div>`,
|
|
544
|
+
})}</b></div>`, Te.value = n;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
const ze = Ft, N = i(() => {
|
|
@@ -551,7 +551,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
551
551
|
})), a = Q.value.map((l) => l.value);
|
|
552
552
|
return { head: e, body: a };
|
|
553
553
|
});
|
|
554
|
-
function
|
|
554
|
+
function ke(e) {
|
|
555
555
|
return t.value.useBlurOnHover && ![null, void 0].includes(V.value) && V.value !== e ? `url(#blur_${y.value})` : "";
|
|
556
556
|
}
|
|
557
557
|
function ol(e, a) {
|
|
@@ -568,7 +568,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
568
568
|
r: t.value.style.chart.layout.labels.captions.roundingValue
|
|
569
569
|
}),
|
|
570
570
|
{ datapoint: c.value[e], position: a }
|
|
571
|
-
), o = z({ v: c.value[e].proportion, s: "%", r: t.value.style.chart.layout.labels.captions.roundingPercentage }), n = (t.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Dl({ source: c.value[e].name, length: t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : c.value[e].name) + (t.value.style.chart.layout.labels.captions.showPercentage || t.value.style.chart.layout.labels.captions.showValue ? ":" : ""), u = t.value.style.chart.layout.labels.captions.showSerieName ? n : "", g =
|
|
571
|
+
), o = z({ v: c.value[e].proportion, s: "%", r: t.value.style.chart.layout.labels.captions.roundingPercentage }), n = (t.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Dl({ source: c.value[e].name, length: t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : c.value[e].name) + (t.value.style.chart.layout.labels.captions.showPercentage || t.value.style.chart.layout.labels.captions.showValue ? ":" : ""), u = t.value.style.chart.layout.labels.captions.showSerieName ? n : "", g = Me({
|
|
572
572
|
val: l,
|
|
573
573
|
percentage: o,
|
|
574
574
|
showVal: t.value.style.chart.layout.labels.captions.showValue,
|
|
@@ -704,7 +704,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
704
704
|
t.value.table.show || (e && t.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
|
|
705
705
|
});
|
|
706
706
|
function Ct() {
|
|
707
|
-
T.value.showTable = !1,
|
|
707
|
+
T.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
|
|
708
708
|
}
|
|
709
709
|
const sl = i(() => U.value.map((e) => ({
|
|
710
710
|
...e,
|
|
@@ -753,10 +753,10 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
753
753
|
}));
|
|
754
754
|
}
|
|
755
755
|
function pl() {
|
|
756
|
-
R.value = null,
|
|
756
|
+
R.value = null, Ae.value = !0;
|
|
757
757
|
}
|
|
758
758
|
function fl() {
|
|
759
|
-
R.value = null, ae.value = "pointer", te.value = !1, V.value = null, ie.value = null,
|
|
759
|
+
R.value = null, ae.value = "pointer", te.value = !1, V.value = null, ie.value = null, Ae.value = !1;
|
|
760
760
|
}
|
|
761
761
|
function gl(e) {
|
|
762
762
|
if (!H.value || ce.value || document.activeElement !== H.value || !S.value.length || f.value.length === b.dataset.length) return;
|
|
@@ -789,14 +789,14 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
789
789
|
const Ue = q.value[M];
|
|
790
790
|
return Ue ? {
|
|
791
791
|
x: Ue.x + t.value.style.chart.layout.grid.spaceBetween / 2 + ct.value / 2,
|
|
792
|
-
y: Ue.y + t.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
792
|
+
y: Ue.y + t.value.style.chart.layout.grid.spaceBetween / 2 + Le.value / 2
|
|
793
793
|
} : null;
|
|
794
794
|
}).filter(Boolean);
|
|
795
795
|
if (!l.length) return;
|
|
796
|
-
const o = Math.min(...l.map((M) => M.x)), n = Math.max(...l.map((M) => M.x)), u = Math.min(...l.map((M) => M.y)), g = Math.max(...l.map((M) => M.y)), k = (o + n) / 2, A = (u + g) / 2,
|
|
796
|
+
const o = Math.min(...l.map((M) => M.x)), n = Math.max(...l.map((M) => M.x)), u = Math.min(...l.map((M) => M.y)), g = Math.max(...l.map((M) => M.y)), k = (o + n) / 2, A = (u + g) / 2, Ce = H.value.getBoundingClientRect();
|
|
797
797
|
lt.value = {
|
|
798
|
-
x:
|
|
799
|
-
y:
|
|
798
|
+
x: Ce.left + k / B.value.width * Ce.width,
|
|
799
|
+
y: Ce.top + A / B.value.height * Ce.height
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
802
|
const Ee = i(() => {
|
|
@@ -823,8 +823,8 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
823
823
|
ref: _,
|
|
824
824
|
id: `vue-ui-waffle_${y.value}`,
|
|
825
825
|
style: he(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive ? "height: 100%" : ""}`),
|
|
826
|
-
onMouseenter: a[2] || (a[2] = () =>
|
|
827
|
-
onMouseleave: a[3] || (a[3] = () =>
|
|
826
|
+
onMouseenter: a[2] || (a[2] = () => p(at)(!0)),
|
|
827
|
+
onMouseleave: a[3] || (a[3] = () => p(at)(!1))
|
|
828
828
|
}, [
|
|
829
829
|
C("div", {
|
|
830
830
|
id: `chart-instructions-${y.value}`,
|
|
@@ -840,32 +840,32 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
840
840
|
notice: t.value.a11y.translations.tableAvailable,
|
|
841
841
|
caption: t.value.a11y.translations.tableCaption
|
|
842
842
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : m("", !0),
|
|
843
|
-
t.value.userOptions.buttons.annotator ? (s(), I(
|
|
843
|
+
t.value.userOptions.buttons.annotator ? (s(), I(p(Vt), {
|
|
844
844
|
key: 1,
|
|
845
|
-
svgRef:
|
|
845
|
+
svgRef: p(H),
|
|
846
846
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
847
847
|
color: t.value.style.chart.color,
|
|
848
848
|
active: ce.value,
|
|
849
849
|
isCursorPointer: j.value,
|
|
850
850
|
onClose: Re
|
|
851
851
|
}, {
|
|
852
|
-
"annotator-action-close":
|
|
853
|
-
|
|
852
|
+
"annotator-action-close": d(() => [
|
|
853
|
+
h(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
854
854
|
]),
|
|
855
|
-
"annotator-action-color":
|
|
856
|
-
|
|
855
|
+
"annotator-action-color": d(({ color: l }) => [
|
|
856
|
+
h(e.$slots, "annotator-action-color", x($({ color: l })), void 0, !0)
|
|
857
857
|
]),
|
|
858
|
-
"annotator-action-draw":
|
|
859
|
-
|
|
858
|
+
"annotator-action-draw": d(({ mode: l }) => [
|
|
859
|
+
h(e.$slots, "annotator-action-draw", x($({ mode: l })), void 0, !0)
|
|
860
860
|
]),
|
|
861
|
-
"annotator-action-undo":
|
|
862
|
-
|
|
861
|
+
"annotator-action-undo": d(({ disabled: l }) => [
|
|
862
|
+
h(e.$slots, "annotator-action-undo", x($({ disabled: l })), void 0, !0)
|
|
863
863
|
]),
|
|
864
|
-
"annotator-action-redo":
|
|
865
|
-
|
|
864
|
+
"annotator-action-redo": d(({ disabled: l }) => [
|
|
865
|
+
h(e.$slots, "annotator-action-redo", x($({ disabled: l })), void 0, !0)
|
|
866
866
|
]),
|
|
867
|
-
"annotator-action-delete":
|
|
868
|
-
|
|
867
|
+
"annotator-action-delete": d(({ disabled: l }) => [
|
|
868
|
+
h(e.$slots, "annotator-action-delete", x($({ disabled: l })), void 0, !0)
|
|
869
869
|
]),
|
|
870
870
|
_: 3
|
|
871
871
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : m("", !0),
|
|
@@ -899,14 +899,14 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
899
899
|
C("div", {
|
|
900
900
|
id: `legend-top-${y.value}`
|
|
901
901
|
}, null, 8, na),
|
|
902
|
-
t.value.userOptions.show &&
|
|
902
|
+
t.value.userOptions.show && $e.value && (p(ot) || p(_e)) ? (s(), I(p(zt), {
|
|
903
903
|
ref_key: "userOptionsRef",
|
|
904
|
-
ref:
|
|
904
|
+
ref: Se,
|
|
905
905
|
key: `user_options_${qe.value}`,
|
|
906
906
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
907
907
|
color: t.value.style.chart.color,
|
|
908
|
-
isPrinting:
|
|
909
|
-
isImaging:
|
|
908
|
+
isPrinting: p(Oe),
|
|
909
|
+
isImaging: p(Fe),
|
|
910
910
|
uid: y.value,
|
|
911
911
|
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
912
912
|
hasPdf: t.value.userOptions.buttons.pdf,
|
|
@@ -928,7 +928,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
928
928
|
tableDialog: t.value.table.useDialog,
|
|
929
929
|
isCursorPointer: j.value,
|
|
930
930
|
onToggleFullscreen: bt,
|
|
931
|
-
onGeneratePdf:
|
|
931
|
+
onGeneratePdf: p(st),
|
|
932
932
|
onGenerateCsv: Ve,
|
|
933
933
|
onGenerateImage: hl,
|
|
934
934
|
onGenerateSvg: xt,
|
|
@@ -937,76 +937,76 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
937
937
|
onToggleAnnotator: Re,
|
|
938
938
|
onCopyAlt: $t,
|
|
939
939
|
style: he({
|
|
940
|
-
visibility:
|
|
940
|
+
visibility: p(ot) ? p(_e) ? "visible" : "hidden" : "visible"
|
|
941
941
|
})
|
|
942
942
|
}, We({ _: 2 }, [
|
|
943
943
|
e.$slots.menuIcon ? {
|
|
944
944
|
name: "menuIcon",
|
|
945
|
-
fn:
|
|
946
|
-
|
|
945
|
+
fn: d(({ isOpen: l, color: o }) => [
|
|
946
|
+
h(e.$slots, "menuIcon", x($({ isOpen: l, color: o })), void 0, !0)
|
|
947
947
|
]),
|
|
948
948
|
key: "0"
|
|
949
949
|
} : void 0,
|
|
950
950
|
e.$slots.optionTooltip ? {
|
|
951
951
|
name: "optionTooltip",
|
|
952
|
-
fn:
|
|
953
|
-
|
|
952
|
+
fn: d(() => [
|
|
953
|
+
h(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
954
954
|
]),
|
|
955
955
|
key: "1"
|
|
956
956
|
} : void 0,
|
|
957
957
|
e.$slots.optionPdf ? {
|
|
958
958
|
name: "optionPdf",
|
|
959
|
-
fn:
|
|
960
|
-
|
|
959
|
+
fn: d(() => [
|
|
960
|
+
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
961
961
|
]),
|
|
962
962
|
key: "2"
|
|
963
963
|
} : void 0,
|
|
964
964
|
e.$slots.optionCsv ? {
|
|
965
965
|
name: "optionCsv",
|
|
966
|
-
fn:
|
|
967
|
-
|
|
966
|
+
fn: d(() => [
|
|
967
|
+
h(e.$slots, "optionCsv", {}, void 0, !0)
|
|
968
968
|
]),
|
|
969
969
|
key: "3"
|
|
970
970
|
} : void 0,
|
|
971
971
|
e.$slots.optionImg ? {
|
|
972
972
|
name: "optionImg",
|
|
973
|
-
fn:
|
|
974
|
-
|
|
973
|
+
fn: d(() => [
|
|
974
|
+
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
975
975
|
]),
|
|
976
976
|
key: "4"
|
|
977
977
|
} : void 0,
|
|
978
978
|
e.$slots.optionSvg ? {
|
|
979
979
|
name: "optionSvg",
|
|
980
|
-
fn:
|
|
981
|
-
|
|
980
|
+
fn: d(() => [
|
|
981
|
+
h(e.$slots, "optionSvg", {}, void 0, !0)
|
|
982
982
|
]),
|
|
983
983
|
key: "5"
|
|
984
984
|
} : void 0,
|
|
985
985
|
e.$slots.optionTable ? {
|
|
986
986
|
name: "optionTable",
|
|
987
|
-
fn:
|
|
988
|
-
|
|
987
|
+
fn: d(() => [
|
|
988
|
+
h(e.$slots, "optionTable", {}, void 0, !0)
|
|
989
989
|
]),
|
|
990
990
|
key: "6"
|
|
991
991
|
} : void 0,
|
|
992
992
|
e.$slots.optionFullscreen ? {
|
|
993
993
|
name: "optionFullscreen",
|
|
994
|
-
fn:
|
|
995
|
-
|
|
994
|
+
fn: d(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
995
|
+
h(e.$slots, "optionFullscreen", x($({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
996
996
|
]),
|
|
997
997
|
key: "7"
|
|
998
998
|
} : void 0,
|
|
999
999
|
e.$slots.optionAnnotator ? {
|
|
1000
1000
|
name: "optionAnnotator",
|
|
1001
|
-
fn:
|
|
1002
|
-
|
|
1001
|
+
fn: d(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
1002
|
+
h(e.$slots, "optionAnnotator", x($({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
1003
1003
|
]),
|
|
1004
1004
|
key: "8"
|
|
1005
1005
|
} : void 0,
|
|
1006
1006
|
e.$slots.optionAltCopy ? {
|
|
1007
1007
|
name: "optionAltCopy",
|
|
1008
|
-
fn:
|
|
1009
|
-
|
|
1008
|
+
fn: d(({ altCopy: l }) => [
|
|
1009
|
+
h(e.$slots, "optionAltCopy", x($({ altCopy: l })), void 0, !0)
|
|
1010
1010
|
]),
|
|
1011
1011
|
key: "9"
|
|
1012
1012
|
} : void 0
|
|
@@ -1015,7 +1015,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1015
1015
|
(s(), v("svg", {
|
|
1016
1016
|
ref_key: "svgRef",
|
|
1017
1017
|
ref: H,
|
|
1018
|
-
xmlns:
|
|
1018
|
+
xmlns: p(Il),
|
|
1019
1019
|
"aria-describedby": `chart-instructions-${y.value}`,
|
|
1020
1020
|
class: St({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
|
|
1021
1021
|
tabindex: "0",
|
|
@@ -1025,7 +1025,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1025
1025
|
onBlur: fl,
|
|
1026
1026
|
onKeydown: gl
|
|
1027
1027
|
}, [
|
|
1028
|
-
|
|
1028
|
+
xe(p(Rt)),
|
|
1029
1029
|
C("defs", null, [
|
|
1030
1030
|
(s(!0), v(P, null, G(c.value, (l, o) => (s(), v("radialGradient", {
|
|
1031
1031
|
cx: "50%",
|
|
@@ -1037,7 +1037,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1037
1037
|
}, [
|
|
1038
1038
|
C("stop", {
|
|
1039
1039
|
offset: "0%",
|
|
1040
|
-
"stop-color":
|
|
1040
|
+
"stop-color": p(Pl)(p(_l)(l.color, 0.05), 100 - t.value.style.chart.layout.rect.gradientIntensity)
|
|
1041
1041
|
}, null, 8, ia),
|
|
1042
1042
|
C("stop", {
|
|
1043
1043
|
offset: "100%",
|
|
@@ -1070,7 +1070,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1070
1070
|
width: F.value <= 0 ? 1e-4 : F.value,
|
|
1071
1071
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1072
1072
|
}, [
|
|
1073
|
-
|
|
1073
|
+
h(e.$slots, "cell", Ge({ ref_for: !0 }, { cell: { ...l, color: c.value[o].color, ...c.value[o] }, isSelected: [null, void 0].includes(V.value) ? !0 : c.value[o].serieIndex === V.value }), void 0, !0)
|
|
1074
1074
|
], 8, da))), 256)) : m("", !0),
|
|
1075
1075
|
!c.value.length && !t.value.useCustomCells ? (s(), v("rect", {
|
|
1076
1076
|
key: 1,
|
|
@@ -1084,7 +1084,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1084
1084
|
}, null, 8, ha)) : c.value.length && !t.value.useCustomCells ? (s(), v(P, { key: 2 }, [
|
|
1085
1085
|
e.$slots.pattern ? (s(), v("g", pa, [
|
|
1086
1086
|
(s(!0), v(P, null, G(me.value, (l) => (s(), v("defs", null, [
|
|
1087
|
-
|
|
1087
|
+
h(e.$slots, "pattern", Ge({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
1088
1088
|
]))), 256))
|
|
1089
1089
|
])) : m("", !0),
|
|
1090
1090
|
(s(!0), v(P, null, G(q.value, (l, o) => (s(), v("rect", {
|
|
@@ -1096,7 +1096,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1096
1096
|
fill: "white",
|
|
1097
1097
|
stroke: t.value.style.chart.layout.rect.stroke,
|
|
1098
1098
|
"stroke-width": t.value.style.chart.layout.rect.strokeWidth,
|
|
1099
|
-
filter:
|
|
1099
|
+
filter: ke(c.value[o].serieIndex)
|
|
1100
1100
|
}, null, 8, fa))), 256)),
|
|
1101
1101
|
(s(!0), v(P, null, G(q.value, (l, o) => (s(), v("rect", {
|
|
1102
1102
|
rx: t.value.style.chart.layout.rect.rounded ? t.value.style.chart.layout.rect.rounding : 0,
|
|
@@ -1107,7 +1107,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1107
1107
|
fill: t.value.style.chart.layout.rect.useGradient && t.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${y.value}_${o})` : c.value[o].color,
|
|
1108
1108
|
stroke: t.value.style.chart.layout.rect.stroke,
|
|
1109
1109
|
"stroke-width": t.value.style.chart.layout.rect.strokeWidth,
|
|
1110
|
-
filter:
|
|
1110
|
+
filter: ke(c.value[o].serieIndex)
|
|
1111
1111
|
}, null, 8, ga))), 256)),
|
|
1112
1112
|
e.$slots.pattern ? (s(), v("g", ya, [
|
|
1113
1113
|
(s(!0), v(P, null, G(q.value, (l, o) => (s(), v("rect", {
|
|
@@ -1118,7 +1118,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1118
1118
|
width: F.value <= 0 ? 1e-4 : F.value,
|
|
1119
1119
|
fill: `url(#pattern_${y.value}_${c.value[o].absoluteIndex})`,
|
|
1120
1120
|
stroke: "none",
|
|
1121
|
-
filter:
|
|
1121
|
+
filter: ke(c.value[o].serieIndex)
|
|
1122
1122
|
}, null, 8, ma))), 256))
|
|
1123
1123
|
])) : m("", !0)
|
|
1124
1124
|
], 64)) : m("", !0),
|
|
@@ -1127,16 +1127,16 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1127
1127
|
key: `datalabel_${o}`,
|
|
1128
1128
|
textContent: pe(nl(o, l)),
|
|
1129
1129
|
x: l.x + t.value.style.chart.layout.labels.captions.offsetX + t.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1130
|
-
y: l.y + t.value.style.chart.layout.labels.captions.offsetY + t.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1130
|
+
y: l.y + t.value.style.chart.layout.labels.captions.offsetY + t.value.style.chart.layout.grid.spaceBetween / 2 + Le.value / 2 + t.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1131
1131
|
"font-size": t.value.style.chart.layout.labels.captions.fontSize,
|
|
1132
|
-
fill:
|
|
1133
|
-
filter:
|
|
1132
|
+
fill: p(Bl)(c.value[o].color),
|
|
1133
|
+
filter: ke(c.value[o].serieIndex)
|
|
1134
1134
|
}, null, 8, ba)) : m("", !0)
|
|
1135
1135
|
], 64))), 256)),
|
|
1136
1136
|
(s(!0), v(P, null, G(q.value, (l, o) => (s(), v("rect", {
|
|
1137
1137
|
x: l.x + t.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1138
1138
|
y: l.y + t.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1139
|
-
height:
|
|
1139
|
+
height: Le.value,
|
|
1140
1140
|
width: ct.value,
|
|
1141
1141
|
fill: "transparent",
|
|
1142
1142
|
stroke: "none",
|
|
@@ -1144,20 +1144,20 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1144
1144
|
onMouseleave: (n) => al(o),
|
|
1145
1145
|
onClick: (n) => yt(o)
|
|
1146
1146
|
}, null, 40, wa))), 256)),
|
|
1147
|
-
|
|
1147
|
+
h(e.$slots, "svg", {
|
|
1148
1148
|
svg: {
|
|
1149
1149
|
...B.value,
|
|
1150
|
-
isPrintingImg:
|
|
1150
|
+
isPrintingImg: p(Oe) | p(Fe) | ge.value,
|
|
1151
1151
|
isPrintingSvg: ye.value
|
|
1152
1152
|
}
|
|
1153
1153
|
}, void 0, !0)
|
|
1154
1154
|
], 46, sa)),
|
|
1155
1155
|
e.$slots.hint ? (s(), v("div", ka, [
|
|
1156
|
-
|
|
1156
|
+
h(e.$slots, "hint", x($({ hint: t.value.a11y.translations.keyboardNavigation, isVisible: Ae.value })), void 0, !0)
|
|
1157
1157
|
])) : m("", !0)
|
|
1158
1158
|
]),
|
|
1159
1159
|
e.$slots.watermark ? (s(), v("div", Ca, [
|
|
1160
|
-
|
|
1160
|
+
h(e.$slots, "watermark", x($({ isPrinting: p(Oe) || p(Fe) || ge.value || ye.value })), void 0, !0)
|
|
1161
1161
|
])) : m("", !0),
|
|
1162
1162
|
C("div", {
|
|
1163
1163
|
id: `legend-bottom-${y.value}`
|
|
@@ -1177,14 +1177,14 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1177
1177
|
isCursorPointer: j.value,
|
|
1178
1178
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
|
|
1179
1179
|
}, We({
|
|
1180
|
-
item:
|
|
1180
|
+
item: d(({ legend: l }) => [
|
|
1181
1181
|
C("div", {
|
|
1182
1182
|
onClick: (o) => l.segregate(),
|
|
1183
1183
|
style: he(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1184
1184
|
}, pe(l.display), 13, $a)
|
|
1185
1185
|
]),
|
|
1186
|
-
legendToggle:
|
|
1187
|
-
U.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !
|
|
1186
|
+
legendToggle: d(() => [
|
|
1187
|
+
U.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !p(Ie) ? (s(), I(ta, {
|
|
1188
1188
|
key: 0,
|
|
1189
1189
|
backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1190
1190
|
color: t.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1198,8 +1198,8 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1198
1198
|
}, [
|
|
1199
1199
|
e.$slots.pattern ? {
|
|
1200
1200
|
name: "legend-pattern",
|
|
1201
|
-
fn:
|
|
1202
|
-
|
|
1201
|
+
fn: d(({ legend: l, index: o }) => [
|
|
1202
|
+
xe(Kl, {
|
|
1203
1203
|
shape: l.shape,
|
|
1204
1204
|
radius: 30,
|
|
1205
1205
|
stroke: "none",
|
|
@@ -1209,7 +1209,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1209
1209
|
]),
|
|
1210
1210
|
key: "0"
|
|
1211
1211
|
} : void 0
|
|
1212
|
-
]), 1032, ["legendSet", "config", "isCursorPointer"])) :
|
|
1212
|
+
]), 1032, ["legendSet", "config", "isCursorPointer"])) : h(e.$slots, "legend", {
|
|
1213
1213
|
key: 1,
|
|
1214
1214
|
legend: U.value
|
|
1215
1215
|
}, void 0, !0)
|
|
@@ -1221,9 +1221,9 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1221
1221
|
ref: Ke,
|
|
1222
1222
|
dir: "auto"
|
|
1223
1223
|
}, [
|
|
1224
|
-
|
|
1224
|
+
h(e.$slots, "source", {}, void 0, !0)
|
|
1225
1225
|
], 512)) : m("", !0),
|
|
1226
|
-
|
|
1226
|
+
xe(p(Lt), {
|
|
1227
1227
|
teleportTo: t.value.style.chart.tooltip.teleportTo,
|
|
1228
1228
|
show: T.value.showTooltip && te.value && f.value.length < b.dataset.length,
|
|
1229
1229
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1235,7 +1235,7 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1235
1235
|
position: t.value.style.chart.tooltip.position,
|
|
1236
1236
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1237
1237
|
parent: _.value,
|
|
1238
|
-
content:
|
|
1238
|
+
content: Te.value,
|
|
1239
1239
|
isCustom: t.value.style.chart.tooltip.customFormat && typeof t.value.style.chart.tooltip.customFormat == "function",
|
|
1240
1240
|
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
1241
1241
|
isFullscreen: X.value,
|
|
@@ -1246,21 +1246,24 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1246
1246
|
isA11yMode: ae.value === "keyboard",
|
|
1247
1247
|
a11yPosition: lt.value
|
|
1248
1248
|
}, {
|
|
1249
|
-
"tooltip-before":
|
|
1250
|
-
|
|
1249
|
+
"tooltip-before": d(() => [
|
|
1250
|
+
h(e.$slots, "tooltip-before", x($({ ...we.value })), void 0, !0)
|
|
1251
1251
|
]),
|
|
1252
|
-
|
|
1253
|
-
|
|
1252
|
+
tooltip: d(() => [
|
|
1253
|
+
h(e.$slots, "tooltip", x($({ ...we.value })), void 0, !0)
|
|
1254
|
+
]),
|
|
1255
|
+
"tooltip-after": d(() => [
|
|
1256
|
+
h(e.$slots, "tooltip-after", x($({ ...we.value })), void 0, !0)
|
|
1254
1257
|
]),
|
|
1255
1258
|
_: 3
|
|
1256
1259
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1257
|
-
|
|
1260
|
+
$e.value && t.value.userOptions.buttons.table ? (s(), I(xl(ve.value.component), Ge({ key: 8 }, ve.value.props, {
|
|
1258
1261
|
ref_key: "tableUnit",
|
|
1259
1262
|
ref: le,
|
|
1260
1263
|
onClose: Ct
|
|
1261
1264
|
}), We({
|
|
1262
|
-
content:
|
|
1263
|
-
(s(), I(
|
|
1265
|
+
content: d(() => [
|
|
1266
|
+
(s(), I(p(Nt), {
|
|
1264
1267
|
key: `table_${Ze.value}`,
|
|
1265
1268
|
colNames: ee.value.colNames,
|
|
1266
1269
|
head: ee.value.head,
|
|
@@ -1271,13 +1274,13 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1271
1274
|
isCursorPointer: j.value,
|
|
1272
1275
|
onClose: Ct
|
|
1273
1276
|
}, {
|
|
1274
|
-
th:
|
|
1277
|
+
th: d(({ th: l }) => [
|
|
1275
1278
|
C("div", {
|
|
1276
1279
|
innerHTML: l,
|
|
1277
1280
|
style: { display: "flex", "align-items": "center" }
|
|
1278
1281
|
}, null, 8, Ta)
|
|
1279
1282
|
]),
|
|
1280
|
-
td:
|
|
1283
|
+
td: d(({ td: l }) => [
|
|
1281
1284
|
At(pe(l.name || l), 1)
|
|
1282
1285
|
]),
|
|
1283
1286
|
_: 1
|
|
@@ -1287,21 +1290,21 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1287
1290
|
}, [
|
|
1288
1291
|
t.value.table.useDialog ? {
|
|
1289
1292
|
name: "title",
|
|
1290
|
-
fn:
|
|
1293
|
+
fn: d(() => [
|
|
1291
1294
|
At(pe(ve.value.title), 1)
|
|
1292
1295
|
]),
|
|
1293
1296
|
key: "0"
|
|
1294
1297
|
} : void 0,
|
|
1295
1298
|
t.value.table.useDialog ? {
|
|
1296
1299
|
name: "actions",
|
|
1297
|
-
fn:
|
|
1300
|
+
fn: d(() => [
|
|
1298
1301
|
C("button", {
|
|
1299
1302
|
tabindex: "0",
|
|
1300
1303
|
class: "vue-ui-user-options-button",
|
|
1301
1304
|
onClick: a[1] || (a[1] = (l) => Ve(t.value.userOptions.callbacks.csv)),
|
|
1302
1305
|
style: he({ cursor: j.value ? "pointer" : "default" })
|
|
1303
1306
|
}, [
|
|
1304
|
-
|
|
1307
|
+
xe(p(Dt), {
|
|
1305
1308
|
name: "fileCsv",
|
|
1306
1309
|
stroke: ve.value.props.color
|
|
1307
1310
|
}, null, 8, ["stroke"])
|
|
@@ -1310,12 +1313,12 @@ const aa = ["id"], oa = ["id"], na = ["id"], ua = { style: { position: "relative
|
|
|
1310
1313
|
key: "1"
|
|
1311
1314
|
} : void 0
|
|
1312
1315
|
]), 1040)) : m("", !0),
|
|
1313
|
-
|
|
1314
|
-
|
|
1316
|
+
h(e.$slots, "skeleton", {}, () => [
|
|
1317
|
+
p(Ie) ? (s(), I(Wl, { key: 0 })) : m("", !0)
|
|
1315
1318
|
], !0)
|
|
1316
1319
|
], 46, aa));
|
|
1317
1320
|
}
|
|
1318
|
-
}, qa = /* @__PURE__ */ la(Sa, [["__scopeId", "data-v-
|
|
1321
|
+
}, qa = /* @__PURE__ */ la(Sa, [["__scopeId", "data-v-5d3b0f81"]]);
|
|
1319
1322
|
export {
|
|
1320
1323
|
qa as default
|
|
1321
1324
|
};
|