vue-data-ui 3.23.11 → 3.23.13
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-C0b7KAMa.js → PackageVersion-DH9mKo1i.js} +1 -1
- package/dist/{SlicerPreview-BRRyc1p7.js → SlicerPreview-lCGvUNUH.js} +491 -486
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-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-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-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-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-D7_0M69J.js → package-LqzHoybL.js} +1 -1
- package/dist/{render-common-B0f5NTO9.js → render-common-w-CDlMO6.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BlZHZHoH.js → vue-data-ui-D9mXY0al.js} +62 -62
- package/dist/vue-data-ui.js +62 -62
- package/dist/{vue-ui-3d-bar-CtT2BovY.js → vue-ui-3d-bar-DRPuSQ4e.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BhGNgnLB.js → vue-ui-age-pyramid-B8vOvI_t.js} +1 -1
- package/dist/{vue-ui-bullet-BI7KJyJx.js → vue-ui-bullet-DVNmzl4P.js} +1 -1
- package/dist/{vue-ui-bump-BCQ97z1G.js → vue-ui-bump-DWh2Z5YJ.js} +1 -1
- package/dist/{vue-ui-candlestick-Cs7I5MQS.js → vue-ui-candlestick-CsNB1k8H.js} +2 -2
- package/dist/{vue-ui-carousel-table-CDjAjc4b.js → vue-ui-carousel-table-CoVW5Fdg.js} +1 -1
- package/dist/{vue-ui-chestnut-d6GxjfcP.js → vue-ui-chestnut-HfJunSSz.js} +1 -1
- package/dist/{vue-ui-chord-BuConnPN.js → vue-ui-chord-BN8GOPjO.js} +1 -1
- package/dist/{vue-ui-circle-pack-CmxANHap.js → vue-ui-circle-pack-CADmtvmt.js} +1 -1
- package/dist/{vue-ui-cursor-CQcnZYBv.js → vue-ui-cursor-BBTOC9ZH.js} +1 -1
- package/dist/{vue-ui-dag-DKUZN-aQ.js → vue-ui-dag-CwscLfEg.js} +1 -1
- package/dist/{vue-ui-dashboard-ciI4wMe6.js → vue-ui-dashboard-Cp7LV9rM.js} +58 -58
- package/dist/{vue-ui-digits-DWf1vzYE.js → vue-ui-digits-C1ZVKDGy.js} +1 -1
- package/dist/{vue-ui-donut-CvCViwSI.js → vue-ui-donut-CqRDChWd.js} +1 -1
- package/dist/{vue-ui-donut-DZTtuFAG.js → vue-ui-donut-DCWdRYf0.js} +1 -1
- package/dist/{vue-ui-donut-evolution-BvZX3Gi8.js → vue-ui-donut-evolution-DXxpjREd.js} +2 -2
- package/dist/{vue-ui-dumbbell-BZywCpHd.js → vue-ui-dumbbell-MghLKpiu.js} +1 -1
- package/dist/{vue-ui-flow-D5jcKr_S.js → vue-ui-flow-DXzy_ciZ.js} +1 -1
- package/dist/{vue-ui-funnel-7zX5QnQx.js → vue-ui-funnel-BwDy1TQS.js} +1 -1
- package/dist/{vue-ui-galaxy-BuGd-Ojm.js → vue-ui-galaxy-yv4i3B6M.js} +1 -1
- package/dist/{vue-ui-gauge-BlDQIpBk.js → vue-ui-gauge-BL4r7lrw.js} +1 -1
- package/dist/{vue-ui-geo-PWGZw4Un.js → vue-ui-geo-BRAAm6-Y.js} +1 -1
- package/dist/{vue-ui-gizmo-CTxB3PAl.js → vue-ui-gizmo-D_jY1FrX.js} +1 -1
- package/dist/{vue-ui-heatmap-sFF5IbM8.js → vue-ui-heatmap-DVDTivK7.js} +1 -1
- package/dist/{vue-ui-hill-DO3r2s-i.js → vue-ui-hill-DAvWt1UH.js} +1 -1
- package/dist/{vue-ui-history-plot-Cj-Olvhn.js → vue-ui-history-plot-DZWZLj6d.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-B34aYuDZ.js → vue-ui-horizontal-bar-BWJ0Dj9K.js} +1 -1
- package/dist/{vue-ui-kpi-Co6y1YlE.js → vue-ui-kpi-BNHQb-0T.js} +1 -1
- package/dist/{vue-ui-molecule-ERAB4YzZ.js → vue-ui-molecule-2eqpaNzM.js} +1 -1
- package/dist/{vue-ui-mood-radar-BPp7L6OP.js → vue-ui-mood-radar-9UgxqJAM.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CX5ut2yp.js → vue-ui-nested-donuts-DT37jVnx.js} +1 -1
- package/dist/{vue-ui-onion-CWYJTUCq.js → vue-ui-onion-DFYQimLN.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DJrV-dVt.js → vue-ui-parallel-coordinate-plot-DMMp9SSg.js} +1 -1
- package/dist/{vue-ui-quadrant-wj8Up03L.js → vue-ui-quadrant-CLQkz37n.js} +1 -1
- package/dist/{vue-ui-quick-chart-CPYdScHL.js → vue-ui-quick-chart-BHURITQ2.js} +2 -2
- package/dist/{vue-ui-radar-D3gLQcI5.js → vue-ui-radar-BQDSBbBl.js} +1 -1
- package/dist/{vue-ui-relation-circle-DeNBOPjz.js → vue-ui-relation-circle-D7Jomt1J.js} +1 -1
- package/dist/{vue-ui-ridgeline-DQcZJ_hv.js → vue-ui-ridgeline-OnHk7xFR.js} +1 -1
- package/dist/{vue-ui-rings-CF9NfFW2.js → vue-ui-rings-BysAPudl.js} +1 -1
- package/dist/{vue-ui-scatter-U_xxKOte.js → vue-ui-scatter-DyxIiCT5.js} +1 -1
- package/dist/{vue-ui-skeleton-GA4wzjXV.js → vue-ui-skeleton-BQSKB3hE.js} +1 -1
- package/dist/{vue-ui-spark-trend-BXRGMn5-.js → vue-ui-spark-trend-RxPrDIxb.js} +1 -1
- package/dist/{vue-ui-sparkbar-96D0eR-o.js → vue-ui-sparkbar-BocQ3skK.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BWBek2u2.js → vue-ui-sparkgauge-YrGOiB_b.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cqs068RX.js → vue-ui-sparkhistogram-BlyPOiWe.js} +1 -1
- package/dist/{vue-ui-sparkline-B8cyY_P1.js → vue-ui-sparkline-DSXRUonI.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-C0BkLc2b.js → vue-ui-sparkstackbar-CKhn03L6.js} +1 -1
- package/dist/{vue-ui-stackbar-DtsOc7B_.js → vue-ui-stackbar-Cf9sJP68.js} +2 -2
- package/dist/{vue-ui-stackline-MSs0pdhE.js → vue-ui-stackline-Tcfr3gJO.js} +2 -2
- package/dist/{vue-ui-strip-plot-Df-TomML.js → vue-ui-strip-plot-CrDJXSM_.js} +1 -1
- package/dist/{vue-ui-table-BKSRQGVK.js → vue-ui-table-iheXH88R.js} +2 -2
- package/dist/{vue-ui-table-sparkline-B7Dh-fN2.js → vue-ui-table-sparkline-LEjMz8F4.js} +1 -1
- package/dist/{vue-ui-thermometer-DXuLn8NC.js → vue-ui-thermometer-D8TwvkuL.js} +1 -1
- package/dist/{vue-ui-timer-orCjVwS4.js → vue-ui-timer-CmWhKatt.js} +1 -1
- package/dist/{vue-ui-tiremarks-DNoQ6Fl2.js → vue-ui-tiremarks-DQS-i-Sx.js} +1 -1
- package/dist/{vue-ui-treemap-90_Clj0e.js → vue-ui-treemap-CjxYVEzN.js} +1 -1
- package/dist/{vue-ui-waffle-BSQXyJ1S.js → vue-ui-waffle-BxMdiOcp.js} +313 -304
- package/dist/{vue-ui-wheel-CfU0Nnn0.js → vue-ui-wheel-CLyRoRSt.js} +1 -1
- package/dist/{vue-ui-word-cloud-AgMvmPlI.js → vue-ui-word-cloud-CqP1ohPS.js} +1 -1
- package/dist/{vue-ui-world-D0Z9B6M2.js → vue-ui-world-TUOWS-qf.js} +1 -1
- package/dist/{vue-ui-xy-ua_mFu_a.js → vue-ui-xy-DwiTsq1m.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BHpBO5dS.js → vue-ui-xy-canvas-D0ox__3z.js} +1 -1
- package/dist/{vue-ui-xy-5Te2TfRK.js → vue-ui-xy-zgQAxUgJ.js} +2 -2
- package/package.json +1 -1
|
@@ -131,7 +131,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["selectLegend", "copyAlt"],
|
|
133
133
|
setup(e, { expose: Ce, emit: Ye }) {
|
|
134
|
-
let Ct = _(() => import("./Tooltip-CVxJe3UW.js")), wt = _(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Tt = _(() => import("./DataTable-CmyEubtT.js")), Et = _(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Dt = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Ot = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), kt = _(() => import("./PackageVersion-
|
|
134
|
+
let Ct = _(() => import("./Tooltip-CVxJe3UW.js")), wt = _(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Tt = _(() => import("./DataTable-CmyEubtT.js")), Et = _(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Dt = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Ot = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), kt = _(() => import("./PackageVersion-DH9mKo1i.js").then((e) => e.t)), At = _(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_waffle: jt } = fe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = _e(), Pt = Ne(), O = e, Ft = qe(), It = f({
|
|
135
135
|
get() {
|
|
136
136
|
return !!O.dataset && O.dataset.length;
|
|
137
137
|
},
|
|
@@ -141,7 +141,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
141
141
|
}), k = C(oe()), Lt = C(!1), Rt = C(""), A = C(null), zt = C(0), j = C(null), Bt = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(0), Gt = C(0), Kt = C(0), qt = C(!1), Jt = C(null), Yt = C(null), M = C(null), Xt = C({
|
|
142
142
|
x: 0,
|
|
143
143
|
y: 0
|
|
144
|
-
}), Zt = C("pointer"), Qt = C(!1), N = C(
|
|
144
|
+
}), Zt = C("pointer"), Qt = C(!1), N = C(sn()), { transitionEnabled: P } = ye({
|
|
145
145
|
config: () => N.value.transitions,
|
|
146
146
|
dataset: () => O.dataset
|
|
147
147
|
});
|
|
@@ -188,10 +188,10 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
188
188
|
})), { loading: en, FINAL_DATASET: tn, manualLoading: nn } = me({
|
|
189
189
|
...Ke(O),
|
|
190
190
|
FINAL_CONFIG: N,
|
|
191
|
-
prepareConfig:
|
|
191
|
+
prepareConfig: sn,
|
|
192
192
|
callback: () => {
|
|
193
193
|
Promise.resolve().then(async () => {
|
|
194
|
-
|
|
194
|
+
U.value = xn();
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
197
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -215,8 +215,8 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
215
215
|
defaultConfig: N.value,
|
|
216
216
|
userConfig: $t.value
|
|
217
217
|
})
|
|
218
|
-
}), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = ke({ config: N.value }), { svgRef:
|
|
219
|
-
function
|
|
218
|
+
}), { userOptionsVisible: rn, setUserOptionsVisibility: an, keepUserOptionState: on } = ke({ config: N.value }), { svgRef: I } = Ae({ config: N.value.style.chart.title });
|
|
219
|
+
function sn() {
|
|
220
220
|
let e = ge({
|
|
221
221
|
userConfig: O.config,
|
|
222
222
|
defaultConfig: jt
|
|
@@ -236,15 +236,15 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
Je(() => O.config, (e) => {
|
|
239
|
-
en.value || (N.value =
|
|
239
|
+
en.value || (N.value = sn()), rn.value = !N.value.userOptions.showOnChartHover, un(), Wt.value += 1, Gt.value += 1, Kt.value += 1, R.value.showTable = N.value.table.show, R.value.showTooltip = N.value.style.chart.tooltip.show;
|
|
240
240
|
}, { deep: !0 });
|
|
241
|
-
let
|
|
242
|
-
function
|
|
241
|
+
let L = We(null), cn = We(null), ln = f(() => N.value.debug);
|
|
242
|
+
function un() {
|
|
243
243
|
if (o(O.dataset) ? (ae({
|
|
244
244
|
componentName: "VueUiWaffle",
|
|
245
245
|
type: "dataset",
|
|
246
|
-
debug:
|
|
247
|
-
}), It.value = !1, nn.value = !0) :
|
|
246
|
+
debug: ln.value
|
|
247
|
+
}), It.value = !1, nn.value = !0) : ln.value && O.dataset.forEach((e, t) => {
|
|
248
248
|
re({
|
|
249
249
|
datasetObject: e,
|
|
250
250
|
requiredAttributes: ["name", "values"]
|
|
@@ -266,41 +266,41 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
266
266
|
noTitle: Ut.value
|
|
267
267
|
});
|
|
268
268
|
requestAnimationFrame(() => {
|
|
269
|
-
|
|
269
|
+
z.value.width = e, z.value.height = t, B.value.width = e, B.value.height = t;
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
|
-
|
|
272
|
+
L.value && (cn.value && L.value.unobserve(cn.value), L.value.disconnect()), L.value = new ResizeObserver(e), cn.value = j.value.parentNode, L.value.observe(cn.value);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
He(() => {
|
|
276
|
-
qt.value = !0,
|
|
276
|
+
qt.value = !0, un();
|
|
277
277
|
}), Ve(() => {
|
|
278
|
-
|
|
278
|
+
L.value && (cn.value && L.value.unobserve(cn.value), L.value.disconnect());
|
|
279
279
|
});
|
|
280
|
-
let { isPrinting:
|
|
280
|
+
let { isPrinting: dn, isImaging: fn, generatePdf: pn, generateImage: mn } = pe({
|
|
281
281
|
elementId: `vue-ui-waffle_${k.value}`,
|
|
282
282
|
fileName: N.value.style.chart.title.text || "vue-ui-waffle",
|
|
283
283
|
options: N.value.userOptions.print
|
|
284
|
-
}),
|
|
284
|
+
}), hn = f(() => N.value.userOptions.show && !N.value.style.chart.title.text), gn = f(() => le(N.value.customPalette)), R = C({
|
|
285
285
|
showTable: N.value.table.show,
|
|
286
286
|
showTooltip: N.value.style.chart.tooltip.show
|
|
287
287
|
});
|
|
288
288
|
Je(N, () => {
|
|
289
|
-
|
|
289
|
+
R.value = {
|
|
290
290
|
showTable: N.value.table.show,
|
|
291
291
|
showTooltip: N.value.style.chart.tooltip.show
|
|
292
292
|
};
|
|
293
293
|
}, { immediate: !0 });
|
|
294
|
-
let
|
|
294
|
+
let z = C({
|
|
295
295
|
height: 512,
|
|
296
296
|
width: 512
|
|
297
|
-
}),
|
|
297
|
+
}), B = C({
|
|
298
298
|
top: 0,
|
|
299
299
|
left: 0,
|
|
300
300
|
height: 512,
|
|
301
301
|
width: 512
|
|
302
|
-
}),
|
|
303
|
-
function
|
|
302
|
+
}), V = f(() => (B.value.width - N.value.style.chart.layout.grid.size * N.value.style.chart.layout.grid.spaceBetween) / N.value.style.chart.layout.grid.size), H = f(() => (B.value.height - N.value.style.chart.layout.grid.size * N.value.style.chart.layout.grid.spaceBetween) / N.value.style.chart.layout.grid.size), _n = f(() => Math.max(1e-4, B.value.width / N.value.style.chart.layout.grid.size)), vn = f(() => Math.max(1e-4, B.value.height / N.value.style.chart.layout.grid.size));
|
|
303
|
+
function yn(e) {
|
|
304
304
|
let t = N.value.style.chart.layout.grid.size * N.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);
|
|
305
305
|
for (; o > 0;) {
|
|
306
306
|
let e = a.indexOf(Math.max(...a));
|
|
@@ -308,57 +308,66 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
308
308
|
}
|
|
309
309
|
return i;
|
|
310
310
|
}
|
|
311
|
-
let
|
|
312
|
-
function
|
|
313
|
-
return
|
|
311
|
+
let bn = C(!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) => ({
|
|
314
314
|
...e,
|
|
315
|
-
color: s(e.color) ||
|
|
315
|
+
color: s(e.color) || gn.value[t] || i[t] || i[t % i.length],
|
|
316
316
|
uid: `serie_${t}`,
|
|
317
317
|
absoluteIndex: t
|
|
318
318
|
}));
|
|
319
319
|
}
|
|
320
|
-
let
|
|
320
|
+
let Sn = f(() => xn()), U = C(Sn.value);
|
|
321
321
|
Je(() => O.dataset, (e) => {
|
|
322
322
|
Array.isArray(e) && e.length > 0 && (nn.value = !1);
|
|
323
323
|
}, { immediate: !0 }), Je(() => O.dataset, (e) => {
|
|
324
|
-
|
|
324
|
+
U.value = xn();
|
|
325
325
|
}, { deep: !0 });
|
|
326
|
-
let
|
|
326
|
+
let Cn = f(() => yn(U.value.filter((e, t) => !q.value.includes(e.uid)).map((e, t) => bn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), wn = f(() => yn(U.value.map((e, t) => bn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), Tn = f(() => N.value.style.chart.layout.grid.size ** 2), W = f(() => (ln.value && tn.value.forEach((e, t) => {
|
|
327
327
|
[null, void 0].includes(e.values) && ae({
|
|
328
328
|
componentName: "VueUiWaffle",
|
|
329
329
|
type: "datasetSerieAttribute",
|
|
330
330
|
property: "values (number[])",
|
|
331
331
|
index: t
|
|
332
332
|
});
|
|
333
|
-
}),
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
333
|
+
}), U.value.filter((e, t) => !q.value.includes(e.uid)).map((e, t) => {
|
|
334
|
+
let n = Cn.value[t];
|
|
335
|
+
return {
|
|
336
|
+
absoluteIndex: e.absoluteIndex,
|
|
337
|
+
uid: e.uid,
|
|
338
|
+
name: e.name,
|
|
339
|
+
color: e.color,
|
|
340
|
+
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
341
|
+
absoluteValues: e.values || [],
|
|
342
|
+
squareCount: n,
|
|
343
|
+
proportion: n / Tn.value
|
|
344
|
+
};
|
|
345
|
+
}))), En = f(() => U.value.map((e, t) => {
|
|
346
|
+
let n = wn.value[t];
|
|
347
|
+
return {
|
|
348
|
+
absoluteIndex: e.absoluteIndex,
|
|
349
|
+
uid: e.uid,
|
|
350
|
+
name: e.name,
|
|
351
|
+
color: e.color,
|
|
352
|
+
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
353
|
+
absoluteValues: e.values || [],
|
|
354
|
+
squareCount: n,
|
|
355
|
+
proportion: n / Tn.value
|
|
356
|
+
};
|
|
357
|
+
}));
|
|
350
358
|
function Dn() {
|
|
351
359
|
return En.value.map((e) => ({
|
|
352
360
|
name: e.name,
|
|
353
361
|
color: e.color,
|
|
354
362
|
value: e.value,
|
|
363
|
+
squareCount: e.squareCount,
|
|
355
364
|
proportion: e.proportion
|
|
356
365
|
}));
|
|
357
366
|
}
|
|
358
367
|
let On = f(() => {
|
|
359
368
|
let e = 0;
|
|
360
|
-
return
|
|
361
|
-
let r = e, i = r + t.
|
|
369
|
+
return W.value.map((t, n) => {
|
|
370
|
+
let r = e, i = r + t.squareCount, a = [];
|
|
362
371
|
for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
|
|
363
372
|
return e = i, {
|
|
364
373
|
...t,
|
|
@@ -366,7 +375,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
366
375
|
rects: a
|
|
367
376
|
};
|
|
368
377
|
});
|
|
369
|
-
}),
|
|
378
|
+
}), G = f(() => On.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
370
379
|
isFirst: r === 0,
|
|
371
380
|
isLongEnough: n.length > 2,
|
|
372
381
|
name: e.name,
|
|
@@ -379,18 +388,18 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
379
388
|
}))).map((e, t) => ({
|
|
380
389
|
...e,
|
|
381
390
|
isAbsoluteFirst: t % N.value.style.chart.layout.grid.size === 0
|
|
382
|
-
}))),
|
|
391
|
+
}))), K = f(() => {
|
|
383
392
|
let e = [];
|
|
384
393
|
for (let t = 0; t < N.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < N.value.style.chart.layout.grid.size; n += 1) e.push({
|
|
385
394
|
isStartOfLine: n === 0,
|
|
386
395
|
position: N.value.style.chart.layout.grid.vertical ? t : n,
|
|
387
|
-
x: (N.value.style.chart.layout.grid.vertical ? t : n) * (
|
|
388
|
-
y: (N.value.style.chart.layout.grid.vertical ? n : t) * (
|
|
396
|
+
x: (N.value.style.chart.layout.grid.vertical ? t : n) * (V.value + N.value.style.chart.layout.grid.spaceBetween),
|
|
397
|
+
y: (N.value.style.chart.layout.grid.vertical ? n : t) * (H.value + N.value.style.chart.layout.grid.spaceBetween) + B.value.top
|
|
389
398
|
});
|
|
390
399
|
return e;
|
|
391
|
-
}),
|
|
392
|
-
function
|
|
393
|
-
|
|
400
|
+
}), q = C([]), kn = C(!1), An = C(Object.create(null)), jn = C(Object.create(null)), J = C(0);
|
|
401
|
+
function Y(e, t) {
|
|
402
|
+
U.value = U.value.map((n) => n.uid === e ? {
|
|
394
403
|
...n,
|
|
395
404
|
values: [t]
|
|
396
405
|
} : n);
|
|
@@ -401,59 +410,59 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
401
410
|
}
|
|
402
411
|
function Nn(e) {
|
|
403
412
|
let t = !1;
|
|
404
|
-
An.value[e] && (cancelAnimationFrame(An.value[e]), delete An.value[e], t = !0), jn.value[e] && (cancelAnimationFrame(jn.value[e]), delete jn.value[e], t = !0), t && (
|
|
413
|
+
An.value[e] && (cancelAnimationFrame(An.value[e]), delete An.value[e], t = !0), jn.value[e] && (cancelAnimationFrame(jn.value[e]), delete jn.value[e], t = !0), t && (J.value = Math.max(0, J.value - 1), kn.value = J.value > 0);
|
|
405
414
|
}
|
|
406
415
|
function Pn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
407
|
-
Nn(e),
|
|
416
|
+
Nn(e), J.value += 1, kn.value = !0;
|
|
408
417
|
let i = t;
|
|
409
418
|
return new Promise((a) => {
|
|
410
419
|
function o() {
|
|
411
420
|
if (r === "increase") {
|
|
412
421
|
if (i >= n) {
|
|
413
|
-
|
|
422
|
+
Y(e, n), --J.value, J.value <= 0 && (kn.value = !1), delete An.value[e], a();
|
|
414
423
|
return;
|
|
415
424
|
}
|
|
416
|
-
i += n * .025, i > n && (i = n),
|
|
425
|
+
i += n * .025, i > n && (i = n), Y(e, i), An.value[e] = requestAnimationFrame(o);
|
|
417
426
|
} else {
|
|
418
427
|
if (i <= t / 100) {
|
|
419
|
-
|
|
428
|
+
Y(e, 0), --J.value, J.value <= 0 && (kn.value = !1), delete jn.value[e], a();
|
|
420
429
|
return;
|
|
421
430
|
}
|
|
422
|
-
i /= 1.15,
|
|
431
|
+
i /= 1.15, Y(e, i), jn.value[e] = requestAnimationFrame(o);
|
|
423
432
|
}
|
|
424
433
|
}
|
|
425
434
|
o();
|
|
426
435
|
});
|
|
427
436
|
}
|
|
428
437
|
function Fn() {
|
|
429
|
-
|
|
430
|
-
let e =
|
|
438
|
+
U.value = Sn.value;
|
|
439
|
+
let e = q.value.length > 0;
|
|
431
440
|
if (!N.value.useAnimation) {
|
|
432
|
-
e ?
|
|
441
|
+
e ? q.value = [] : q.value = X.value.map((e) => e.uid);
|
|
433
442
|
return;
|
|
434
443
|
}
|
|
435
|
-
e ? [...
|
|
444
|
+
e ? [...q.value].forEach((e) => {
|
|
436
445
|
In(e, !0);
|
|
437
|
-
}) :
|
|
446
|
+
}) : X.value.map((e) => e.uid).forEach((e) => {
|
|
438
447
|
In(e, !0);
|
|
439
448
|
});
|
|
440
449
|
}
|
|
441
450
|
function In(e, t = !1) {
|
|
442
|
-
if (
|
|
443
|
-
let n = t ||
|
|
451
|
+
if (bn.value && !t) return;
|
|
452
|
+
let n = t || q.value.length < X.value.length - 1 && X.value.length > 1;
|
|
444
453
|
if (!N.value.useAnimation) {
|
|
445
|
-
|
|
454
|
+
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : n && q.value.push(e);
|
|
446
455
|
return;
|
|
447
456
|
}
|
|
448
|
-
let r = Mn(e,
|
|
457
|
+
let r = Mn(e, Sn.value), i = Mn(e, U.value);
|
|
449
458
|
if (i !== 0 || r !== 0) {
|
|
450
|
-
if (
|
|
451
|
-
if (
|
|
452
|
-
Nn(e),
|
|
459
|
+
if (q.value.includes(e)) {
|
|
460
|
+
if (q.value = q.value.filter((t) => t !== e), Pt.value) {
|
|
461
|
+
Nn(e), Y(e, r), Yn("selectLegend", W.value.map((e) => ({
|
|
453
462
|
name: e.name,
|
|
454
463
|
color: e.color,
|
|
455
464
|
value: e.value,
|
|
456
|
-
proportion: e.proportion
|
|
465
|
+
proportion: e.proportion
|
|
457
466
|
})));
|
|
458
467
|
return;
|
|
459
468
|
}
|
|
@@ -463,22 +472,22 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
463
472
|
toValue: r,
|
|
464
473
|
mode: "increase"
|
|
465
474
|
}).then(() => {
|
|
466
|
-
Yn("selectLegend",
|
|
475
|
+
Yn("selectLegend", W.value.map((e) => ({
|
|
467
476
|
name: e.name,
|
|
468
477
|
color: e.color,
|
|
469
478
|
value: e.value,
|
|
470
|
-
proportion: e.proportion
|
|
479
|
+
proportion: e.proportion
|
|
471
480
|
})));
|
|
472
481
|
});
|
|
473
482
|
return;
|
|
474
483
|
}
|
|
475
484
|
if (n) {
|
|
476
485
|
if (Pt.value) {
|
|
477
|
-
Nn(e),
|
|
486
|
+
Nn(e), q.value.includes(e) || q.value.push(e), Y(e, 0), Yn("selectLegend", W.value.map((e) => ({
|
|
478
487
|
name: e.name,
|
|
479
488
|
color: e.color,
|
|
480
489
|
value: e.value,
|
|
481
|
-
proportion: e.proportion
|
|
490
|
+
proportion: e.proportion
|
|
482
491
|
})));
|
|
483
492
|
return;
|
|
484
493
|
}
|
|
@@ -488,26 +497,26 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
488
497
|
toValue: 0,
|
|
489
498
|
mode: "decrease"
|
|
490
499
|
}).then(() => {
|
|
491
|
-
|
|
500
|
+
q.value.includes(e) || q.value.push(e), Y(e, 0), Yn("selectLegend", W.value.map((e) => ({
|
|
492
501
|
name: e.name,
|
|
493
502
|
color: e.color,
|
|
494
503
|
value: e.value,
|
|
495
|
-
proportion: e.proportion
|
|
504
|
+
proportion: e.proportion
|
|
496
505
|
})));
|
|
497
506
|
});
|
|
498
507
|
}
|
|
499
508
|
}
|
|
500
509
|
}
|
|
501
510
|
function Ln(e) {
|
|
502
|
-
return En.value.length ? En.value.find((t) => t.name === e) || (
|
|
511
|
+
return En.value.length ? En.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);
|
|
503
512
|
}
|
|
504
513
|
function Rn(e) {
|
|
505
514
|
let t = Ln(e);
|
|
506
|
-
t !== null &&
|
|
515
|
+
t !== null && q.value.includes(t.uid) && In(t.uid);
|
|
507
516
|
}
|
|
508
517
|
function zn(e) {
|
|
509
518
|
let t = Ln(e);
|
|
510
|
-
t !== null && (
|
|
519
|
+
t !== null && (q.value.includes(t.uid) || In(t.uid));
|
|
511
520
|
}
|
|
512
521
|
function Bn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
513
522
|
return je({
|
|
@@ -518,11 +527,11 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
518
527
|
showPercentage: r
|
|
519
528
|
});
|
|
520
529
|
}
|
|
521
|
-
let
|
|
522
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n /
|
|
530
|
+
let X = f(() => U.value.map((e, t) => {
|
|
531
|
+
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / U.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
523
532
|
return {
|
|
524
533
|
name: e.name,
|
|
525
|
-
color: e.color ||
|
|
534
|
+
color: e.color || gn[t] || i[t] || i[t % i.length],
|
|
526
535
|
value: n,
|
|
527
536
|
proportion: r,
|
|
528
537
|
uid: e.uid,
|
|
@@ -539,8 +548,8 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
539
548
|
datapoint: e,
|
|
540
549
|
index: t
|
|
541
550
|
}),
|
|
542
|
-
percentage: isNaN(e.value /
|
|
543
|
-
v: e.value /
|
|
551
|
+
percentage: isNaN(e.value / Z.value) ? "-" : u({
|
|
552
|
+
v: e.value / Z.value * 100,
|
|
544
553
|
s: "%",
|
|
545
554
|
r: N.value.style.chart.legend.roundingPercentage
|
|
546
555
|
}),
|
|
@@ -550,9 +559,9 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
550
559
|
});
|
|
551
560
|
return {
|
|
552
561
|
...e,
|
|
553
|
-
opacity:
|
|
562
|
+
opacity: q.value.includes(e.uid) ? .5 : 1,
|
|
554
563
|
segregate: () => In(e.uid),
|
|
555
|
-
isSegregated:
|
|
564
|
+
isSegregated: q.value.includes(e.uid),
|
|
556
565
|
display: `${e.name}${N.value.style.chart.legend.showPercentage || N.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
557
566
|
};
|
|
558
567
|
})), Vn = f(() => ({
|
|
@@ -562,9 +571,9 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
562
571
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
563
572
|
paddingBottom: 12,
|
|
564
573
|
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
565
|
-
})),
|
|
574
|
+
})), Z = f(() => W.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Hn = C(null), Un = C(null), Q = f(() => {
|
|
566
575
|
let e = /* @__PURE__ */ new Map();
|
|
567
|
-
return
|
|
576
|
+
return G.value.forEach((t, n) => {
|
|
568
577
|
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
569
578
|
serieIndex: t.serieIndex,
|
|
570
579
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -578,34 +587,34 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
578
587
|
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
579
588
|
});
|
|
580
589
|
function Wn(e) {
|
|
581
|
-
return
|
|
590
|
+
return Q.value.find((t) => t.serieIndex === e) || null;
|
|
582
591
|
}
|
|
583
592
|
function Gn(e) {
|
|
584
593
|
let t = Wn(e);
|
|
585
594
|
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
586
595
|
}
|
|
587
596
|
function Kn(e) {
|
|
588
|
-
let t =
|
|
597
|
+
let t = G.value[e];
|
|
589
598
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
590
599
|
datapoint: t,
|
|
591
600
|
seriesIndex: t.serieIndex
|
|
592
601
|
});
|
|
593
602
|
}
|
|
594
603
|
function qn(e) {
|
|
595
|
-
let t =
|
|
604
|
+
let t = G.value[e];
|
|
596
605
|
N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
597
606
|
datapoint: t,
|
|
598
607
|
seriesIndex: t.serieIndex
|
|
599
608
|
}), Un.value = null, Lt.value = !1, A.value = null, M.value = null, Zt.value = "pointer";
|
|
600
609
|
}
|
|
601
610
|
function Jn(e, t = "pointer") {
|
|
602
|
-
if (
|
|
603
|
-
let n =
|
|
611
|
+
if (q.value.length === O.dataset.length) return;
|
|
612
|
+
let n = G.value[e];
|
|
604
613
|
if (!n) return;
|
|
605
614
|
Zt.value = t, M.value = n.serieIndex, Hn.value = {
|
|
606
615
|
datapoint: n,
|
|
607
616
|
seriesIndex: n.absoluteIndex,
|
|
608
|
-
series:
|
|
617
|
+
series: U.value,
|
|
609
618
|
config: N.value
|
|
610
619
|
}, N.value.events.datapointEnter && Un.value !== n.serieIndex && N.value.events.datapointEnter({
|
|
611
620
|
datapoint: n,
|
|
@@ -615,12 +624,12 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
615
624
|
if (c(r) && ne(() => r({
|
|
616
625
|
seriesIndex: n.absoluteIndex,
|
|
617
626
|
datapoint: n,
|
|
618
|
-
series:
|
|
627
|
+
series: U.value,
|
|
619
628
|
config: N.value
|
|
620
629
|
}))) Rt.value = r({
|
|
621
630
|
seriesIndex: n.absoluteIndex,
|
|
622
631
|
datapoint: n,
|
|
623
|
-
series:
|
|
632
|
+
series: U.value,
|
|
624
633
|
config: N.value
|
|
625
634
|
});
|
|
626
635
|
else {
|
|
@@ -637,36 +646,36 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
637
646
|
}), {
|
|
638
647
|
datapoint: n,
|
|
639
648
|
seriesIndex: n.absoluteIndex,
|
|
640
|
-
series:
|
|
649
|
+
series: U.value
|
|
641
650
|
})}</span>`,
|
|
642
651
|
percentage: `<span>${u({
|
|
643
|
-
v:
|
|
652
|
+
v: bn.value ? 1 / tn.value.length * 100 : n.value / Z.value * 100,
|
|
644
653
|
s: "%",
|
|
645
654
|
r: N.value.style.chart.tooltip.roundingPercentage
|
|
646
655
|
})}</span>`
|
|
647
656
|
})}</b></div>`, Rt.value = e;
|
|
648
657
|
}
|
|
649
658
|
}
|
|
650
|
-
let Yn = Ye,
|
|
651
|
-
head:
|
|
659
|
+
let Yn = Ye, $ = f(() => ({
|
|
660
|
+
head: W.value.map((e) => ({
|
|
652
661
|
name: e.name,
|
|
653
662
|
color: e.color
|
|
654
663
|
})),
|
|
655
|
-
body:
|
|
664
|
+
body: W.value.map((e) => e.value)
|
|
656
665
|
}));
|
|
657
|
-
function
|
|
666
|
+
function Xn(e) {
|
|
658
667
|
return N.value.useBlurOnHover && ![null, void 0].includes(A.value) && A.value !== e ? `url(#blur_${k.value})` : "";
|
|
659
668
|
}
|
|
660
|
-
function
|
|
669
|
+
function Zn(e) {
|
|
661
670
|
return [null, void 0].includes(A.value) || A.value === e ? { opacity: 1 } : { opacity: N.value.style.chart.layout.rect.selection.unselectedOpacity };
|
|
662
671
|
}
|
|
663
|
-
function
|
|
672
|
+
function Qn(e) {
|
|
664
673
|
return e.length <= 3 ? e : e.filter((t, n) => {
|
|
665
674
|
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;
|
|
666
675
|
return !a && !o;
|
|
667
676
|
});
|
|
668
677
|
}
|
|
669
|
-
function
|
|
678
|
+
function $n(e) {
|
|
670
679
|
if (!e.length) return [];
|
|
671
680
|
let t = new Set(e.map(({ row: e, col: t }) => `${e}:${t}`)), n = [], r = /* @__PURE__ */ new Set(), i = [
|
|
672
681
|
[-1, 0],
|
|
@@ -744,13 +753,13 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
744
753
|
if (o(e) === o(c)) break;
|
|
745
754
|
l.push(e), u = (r.get(o(e)) || []).find((e) => s.has(i(e)));
|
|
746
755
|
}
|
|
747
|
-
l.length >= 4 && a.push(
|
|
756
|
+
l.length >= 4 && a.push(Qn(l));
|
|
748
757
|
}
|
|
749
758
|
}), a;
|
|
750
759
|
}
|
|
751
|
-
function
|
|
760
|
+
function er(e) {
|
|
752
761
|
let t = N.value.style.chart.layout.grid.size, n = N.value.style.chart.layout.grid.vertical, r = [];
|
|
753
|
-
return
|
|
762
|
+
return G.value.forEach((i, a) => {
|
|
754
763
|
if (i.serieIndex !== e) return;
|
|
755
764
|
let o = Math.floor(a / t), s = a % t;
|
|
756
765
|
r.push({
|
|
@@ -759,27 +768,27 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
759
768
|
});
|
|
760
769
|
}), r;
|
|
761
770
|
}
|
|
762
|
-
function
|
|
763
|
-
let t =
|
|
764
|
-
return
|
|
771
|
+
function tr(e) {
|
|
772
|
+
let t = _n.value, n = vn.value;
|
|
773
|
+
return $n(er(e)).map((e) => e.map(({ x: e, y: r }) => ({
|
|
765
774
|
x: e * t,
|
|
766
|
-
y:
|
|
775
|
+
y: B.value.top + r * n
|
|
767
776
|
})));
|
|
768
777
|
}
|
|
769
|
-
function
|
|
778
|
+
function nr(e) {
|
|
770
779
|
return e.map(({ x: e, y: t }) => `${e},${t}`).join(" ");
|
|
771
780
|
}
|
|
772
|
-
function
|
|
781
|
+
function rr(e) {
|
|
773
782
|
return e.map((e) => {
|
|
774
783
|
if (!e.length) return "";
|
|
775
784
|
let [t, ...n] = e, r = n.map(({ x: e, y: t }) => `L ${e} ${t}`).join(" ");
|
|
776
785
|
return `M ${t.x} ${t.y} ${r} Z`;
|
|
777
786
|
}).filter(Boolean).join(" ");
|
|
778
787
|
}
|
|
779
|
-
let
|
|
788
|
+
let ir = f(() => !N.value.style.chart.layout.rect.selection?.wrap?.show || [null, void 0].includes(A.value) ? [] : tr(A.value).map(nr)), ar = f(() => {
|
|
780
789
|
if (!N.value.style.chart.layout.rect.merged) return [];
|
|
781
790
|
let e = /* @__PURE__ */ new Map();
|
|
782
|
-
return
|
|
791
|
+
return G.value.forEach((t, n) => {
|
|
783
792
|
e.has(t.serieIndex) || e.set(t.serieIndex, {
|
|
784
793
|
serieIndex: t.serieIndex,
|
|
785
794
|
absoluteIndex: t.absoluteIndex,
|
|
@@ -789,29 +798,29 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
789
798
|
});
|
|
790
799
|
}), Array.from(e.values()).map((e) => ({
|
|
791
800
|
...e,
|
|
792
|
-
d:
|
|
801
|
+
d: rr(tr(e.serieIndex))
|
|
793
802
|
})).filter((e) => e.d);
|
|
794
803
|
});
|
|
795
|
-
function
|
|
796
|
-
return N.value.style.chart.layout.labels.captions.show ?
|
|
804
|
+
function or(e, t) {
|
|
805
|
+
return N.value.style.chart.layout.labels.captions.show ? G.value.length && !kn.value && !N.value.style.chart.layout.grid.vertical && (G.value[e].isFirst && t.position < N.value.style.chart.layout.grid.size - 2 || G.value[e].isAbsoluteFirst && e % N.value.style.chart.layout.grid.size === 0 && G.value[e].absoluteStartIndex) : !1;
|
|
797
806
|
}
|
|
798
|
-
function
|
|
799
|
-
let n = te(N.value.style.chart.layout.labels.dataLabels.formatter,
|
|
807
|
+
function sr(e, t = null) {
|
|
808
|
+
let n = te(N.value.style.chart.layout.labels.dataLabels.formatter, G.value[e].value, u({
|
|
800
809
|
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
801
|
-
v:
|
|
810
|
+
v: G.value[e].value,
|
|
802
811
|
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
803
812
|
r: N.value.style.chart.layout.labels.captions.roundingValue
|
|
804
813
|
}), {
|
|
805
|
-
datapoint:
|
|
814
|
+
datapoint: G.value[e],
|
|
806
815
|
position: t
|
|
807
816
|
}), r = u({
|
|
808
|
-
v:
|
|
817
|
+
v: G.value[e].proportion * 100,
|
|
809
818
|
s: "%",
|
|
810
819
|
r: N.value.style.chart.layout.labels.captions.roundingPercentage
|
|
811
820
|
}), i = (N.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ie({
|
|
812
|
-
source:
|
|
821
|
+
source: G.value[e].name,
|
|
813
822
|
length: N.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
814
|
-
}) :
|
|
823
|
+
}) : G.value[e].name) + (N.value.style.chart.layout.labels.captions.showPercentage || N.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
815
824
|
return `${N.value.style.chart.layout.labels.captions.showSerieName ? i : ""} ${Bn({
|
|
816
825
|
val: n,
|
|
817
826
|
percentage: r,
|
|
@@ -820,12 +829,12 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
820
829
|
config: N.value.style.chart.layout.labels.dataLabels
|
|
821
830
|
})}`;
|
|
822
831
|
}
|
|
823
|
-
function
|
|
832
|
+
function cr(e = null) {
|
|
824
833
|
Be(() => {
|
|
825
|
-
let r =
|
|
834
|
+
let r = $.value.head.map((e, t) => [
|
|
826
835
|
[e.name],
|
|
827
|
-
[
|
|
828
|
-
[isNaN(
|
|
836
|
+
[$.value.body[t]],
|
|
837
|
+
[isNaN($.value.body[t] / Z.value) ? "-" : $.value.body[t] / Z.value * 100]
|
|
829
838
|
]), i = [
|
|
830
839
|
[N.value.style.chart.title.text],
|
|
831
840
|
[N.value.style.chart.title.subtitle.text],
|
|
@@ -841,30 +850,30 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
841
850
|
});
|
|
842
851
|
});
|
|
843
852
|
}
|
|
844
|
-
let
|
|
853
|
+
let lr = f(() => ({
|
|
845
854
|
head: [
|
|
846
855
|
"__SUM__",
|
|
847
|
-
te(N.value.style.chart.layout.labels.dataLabels.formatter,
|
|
856
|
+
te(N.value.style.chart.layout.labels.dataLabels.formatter, Z.value, u({
|
|
848
857
|
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
849
|
-
v:
|
|
858
|
+
v: Z.value,
|
|
850
859
|
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
851
860
|
r: N.value.table.td.roundingValue
|
|
852
861
|
})),
|
|
853
862
|
"100%"
|
|
854
863
|
],
|
|
855
|
-
body:
|
|
864
|
+
body: $.value.head.map((e, t) => [
|
|
856
865
|
{
|
|
857
866
|
color: e.color,
|
|
858
867
|
name: e.name
|
|
859
868
|
},
|
|
860
|
-
te(N.value.style.chart.layout.labels.dataLabels.formatter,
|
|
869
|
+
te(N.value.style.chart.layout.labels.dataLabels.formatter, $.value.body[t], u({
|
|
861
870
|
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
862
|
-
v:
|
|
871
|
+
v: $.value.body[t],
|
|
863
872
|
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
864
873
|
r: N.value.table.td.roundingValue
|
|
865
874
|
})),
|
|
866
|
-
isNaN(
|
|
867
|
-
v:
|
|
875
|
+
isNaN($.value.body[t] / Z.value) ? "-" : u({
|
|
876
|
+
v: $.value.body[t] / Z.value * 100,
|
|
868
877
|
s: "%",
|
|
869
878
|
r: N.value.table.td.roundingPercentage
|
|
870
879
|
})
|
|
@@ -888,21 +897,21 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
888
897
|
N.value.table.columnNames.value,
|
|
889
898
|
N.value.table.columnNames.percentage
|
|
890
899
|
]
|
|
891
|
-
})),
|
|
892
|
-
function
|
|
893
|
-
|
|
894
|
-
}
|
|
895
|
-
function dr() {
|
|
896
|
-
L.value.showTable = !L.value.showTable;
|
|
900
|
+
})), ur = C(!1);
|
|
901
|
+
function dr(e) {
|
|
902
|
+
ur.value = e, zt.value += 1;
|
|
897
903
|
}
|
|
898
904
|
function fr() {
|
|
899
|
-
|
|
905
|
+
R.value.showTable = !R.value.showTable;
|
|
906
|
+
}
|
|
907
|
+
function pr() {
|
|
908
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
900
909
|
}
|
|
901
|
-
let
|
|
902
|
-
function
|
|
903
|
-
|
|
910
|
+
let mr = C(!1);
|
|
911
|
+
function hr() {
|
|
912
|
+
mr.value = !mr.value;
|
|
904
913
|
}
|
|
905
|
-
async function
|
|
914
|
+
async function gr({ scale: e = 2 } = {}) {
|
|
906
915
|
if (!j.value) return;
|
|
907
916
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
908
917
|
domElement: j.value,
|
|
@@ -919,8 +928,8 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
919
928
|
aspectRatio: r
|
|
920
929
|
};
|
|
921
930
|
}
|
|
922
|
-
let
|
|
923
|
-
let e = N.value.table.useDialog && !N.value.table.show, t =
|
|
931
|
+
let _r = f(() => {
|
|
932
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = R.value.showTable;
|
|
924
933
|
return {
|
|
925
934
|
component: e ? At : Et,
|
|
926
935
|
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -929,7 +938,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
929
938
|
color: N.value.table.th.color,
|
|
930
939
|
headerColor: N.value.table.th.color,
|
|
931
940
|
headerBg: N.value.table.th.backgroundColor,
|
|
932
|
-
isFullscreen:
|
|
941
|
+
isFullscreen: ur.value,
|
|
933
942
|
fullscreenParent: j.value,
|
|
934
943
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
935
944
|
isCursorPointer: F.value
|
|
@@ -950,25 +959,25 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
950
959
|
}
|
|
951
960
|
};
|
|
952
961
|
});
|
|
953
|
-
Je(() =>
|
|
962
|
+
Je(() => R.value.showTable, (e) => {
|
|
954
963
|
N.value.table.show || (e && N.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
955
964
|
});
|
|
956
|
-
function
|
|
957
|
-
|
|
965
|
+
function vr() {
|
|
966
|
+
R.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
958
967
|
}
|
|
959
|
-
let
|
|
968
|
+
let yr = f(() => X.value.map((e) => ({
|
|
960
969
|
...e,
|
|
961
970
|
name: e.display
|
|
962
|
-
}))),
|
|
963
|
-
svg:
|
|
964
|
-
title:
|
|
965
|
-
legend:
|
|
966
|
-
legendItems:
|
|
967
|
-
backgroundColor:
|
|
971
|
+
}))), br = f(() => N.value.style.chart.backgroundColor), xr = f(() => N.value.style.chart.legend), Sr = f(() => N.value.style.chart.title), { isCallbackImaging: Cr, isCallbackSvg: wr, generateSvg: Tr, onGenerateImage: Er } = ve({
|
|
972
|
+
svg: I,
|
|
973
|
+
title: Sr,
|
|
974
|
+
legend: xr,
|
|
975
|
+
legendItems: yr,
|
|
976
|
+
backgroundColor: br,
|
|
968
977
|
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
969
|
-
generateImage:
|
|
978
|
+
generateImage: mn
|
|
970
979
|
});
|
|
971
|
-
async function
|
|
980
|
+
async function Dr() {
|
|
972
981
|
if (Yn("copyAlt", {
|
|
973
982
|
config: N.value,
|
|
974
983
|
dataset: En.value
|
|
@@ -981,14 +990,14 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
981
990
|
dataset: En.value
|
|
982
991
|
}));
|
|
983
992
|
}
|
|
984
|
-
function
|
|
993
|
+
function Or() {
|
|
985
994
|
M.value = null, Qt.value = !0;
|
|
986
995
|
}
|
|
987
|
-
function
|
|
996
|
+
function kr() {
|
|
988
997
|
M.value = null, Zt.value = "pointer", Lt.value = !1, A.value = null, Un.value = null, Qt.value = !1;
|
|
989
998
|
}
|
|
990
|
-
function
|
|
991
|
-
if (!
|
|
999
|
+
function Ar(e) {
|
|
1000
|
+
if (!I.value || mr.value || document.activeElement !== I.value || !Q.value.length || q.value.length === O.dataset.length) return;
|
|
992
1001
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
993
1002
|
if (!t && !n && !r && !i) return;
|
|
994
1003
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -1002,49 +1011,49 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1002
1011
|
Kn(e);
|
|
1003
1012
|
return;
|
|
1004
1013
|
}
|
|
1005
|
-
let a =
|
|
1006
|
-
if (o = a === -1 ? n ?
|
|
1014
|
+
let a = Q.value.findIndex((e) => e.serieIndex === M.value), o = null;
|
|
1015
|
+
if (o = a === -1 ? n ? Q.value[0] : Q.value[Q.value.length - 1] : n ? Q.value[(a + 1) % Q.value.length] : Q.value[(a - 1 + Q.value.length) % Q.value.length], !o) return;
|
|
1007
1016
|
let s = Gn(o.serieIndex);
|
|
1008
|
-
s !== null && (
|
|
1017
|
+
s !== null && (jr(o.serieIndex), Jn(s, "keyboard"));
|
|
1009
1018
|
}
|
|
1010
|
-
function
|
|
1011
|
-
if (!Number.isFinite(e) || !
|
|
1019
|
+
function jr(e) {
|
|
1020
|
+
if (!Number.isFinite(e) || !I.value) return;
|
|
1012
1021
|
let t = Wn(e);
|
|
1013
1022
|
if (!t || !t.rectIndexes.length) return;
|
|
1014
1023
|
let n = t.rectIndexes.map((e) => {
|
|
1015
|
-
let t =
|
|
1024
|
+
let t = K.value[e];
|
|
1016
1025
|
return t ? {
|
|
1017
|
-
x: t.x + N.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1018
|
-
y: t.y + N.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1026
|
+
x: t.x + N.value.style.chart.layout.grid.spaceBetween / 2 + _n.value / 2,
|
|
1027
|
+
y: t.y + N.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2
|
|
1019
1028
|
} : null;
|
|
1020
1029
|
}).filter(Boolean);
|
|
1021
1030
|
if (!n.length) return;
|
|
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 =
|
|
1031
|
+
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 = I.value.getBoundingClientRect();
|
|
1023
1032
|
Xt.value = {
|
|
1024
|
-
x: l.left + s /
|
|
1025
|
-
y: l.top + c /
|
|
1033
|
+
x: l.left + s / z.value.width * l.width,
|
|
1034
|
+
y: l.top + c / z.value.height * l.height
|
|
1026
1035
|
};
|
|
1027
1036
|
}
|
|
1028
|
-
let
|
|
1029
|
-
headers:
|
|
1030
|
-
rows:
|
|
1037
|
+
let Mr = f(() => ({
|
|
1038
|
+
headers: lr.value?.colNames ?? [],
|
|
1039
|
+
rows: lr.value?.body ?? []
|
|
1031
1040
|
}));
|
|
1032
1041
|
return Ce({
|
|
1033
1042
|
getData: Dn,
|
|
1034
|
-
getImage:
|
|
1035
|
-
generatePdf:
|
|
1036
|
-
generateCsv:
|
|
1037
|
-
generateImage:
|
|
1038
|
-
generateSvg:
|
|
1043
|
+
getImage: gr,
|
|
1044
|
+
generatePdf: pn,
|
|
1045
|
+
generateCsv: cr,
|
|
1046
|
+
generateImage: mn,
|
|
1047
|
+
generateSvg: Tr,
|
|
1039
1048
|
hideSeries: zn,
|
|
1040
1049
|
showSeries: Rn,
|
|
1041
|
-
toggleTable:
|
|
1042
|
-
toggleTooltip:
|
|
1043
|
-
toggleAnnotator:
|
|
1044
|
-
toggleFullscreen:
|
|
1045
|
-
copyAlt:
|
|
1050
|
+
toggleTable: fr,
|
|
1051
|
+
toggleTooltip: pr,
|
|
1052
|
+
toggleAnnotator: hr,
|
|
1053
|
+
toggleFullscreen: dr,
|
|
1054
|
+
copyAlt: Dr
|
|
1046
1055
|
}), (e, t) => (S(), h("div", {
|
|
1047
|
-
class: y(`vue-data-ui-component vue-ui-waffle ${
|
|
1056
|
+
class: y(`vue-data-ui-component vue-ui-waffle ${ur.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1048
1057
|
ref_key: "waffleChart",
|
|
1049
1058
|
ref: j,
|
|
1050
1059
|
id: `vue-ui-waffle_${k.value}`,
|
|
@@ -1056,11 +1065,11 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1056
1065
|
id: `chart-instructions-${k.value}`,
|
|
1057
1066
|
class: "sr-only"
|
|
1058
1067
|
}, [g("p", null, Ge(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1059
|
-
|
|
1068
|
+
Mr.value?.rows?.length ? (S(), p(Oe, {
|
|
1060
1069
|
key: 0,
|
|
1061
1070
|
uid: k.value,
|
|
1062
|
-
head:
|
|
1063
|
-
body:
|
|
1071
|
+
head: Mr.value.headers,
|
|
1072
|
+
body: Mr.value.rows,
|
|
1064
1073
|
notice: N.value.a11y.translations.tableAvailable,
|
|
1065
1074
|
caption: N.value.a11y.translations.tableCaption
|
|
1066
1075
|
}, null, 8, [
|
|
@@ -1072,12 +1081,12 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1072
1081
|
])) : m("", !0),
|
|
1073
1082
|
N.value.userOptions.buttons.annotator ? (S(), p(E(Ot), {
|
|
1074
1083
|
key: 1,
|
|
1075
|
-
svgRef: E(
|
|
1084
|
+
svgRef: E(I),
|
|
1076
1085
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1077
1086
|
color: N.value.style.chart.color,
|
|
1078
|
-
active:
|
|
1087
|
+
active: mr.value,
|
|
1079
1088
|
isCursorPointer: F.value,
|
|
1080
|
-
onClose:
|
|
1089
|
+
onClose: hr
|
|
1081
1090
|
}, {
|
|
1082
1091
|
"annotator-action-close": D(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1083
1092
|
"annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", b(v({ color: t })), void 0, !0)]),
|
|
@@ -1093,7 +1102,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1093
1102
|
"active",
|
|
1094
1103
|
"isCursorPointer"
|
|
1095
1104
|
])) : m("", !0),
|
|
1096
|
-
|
|
1105
|
+
hn.value ? (S(), h("div", {
|
|
1097
1106
|
key: 2,
|
|
1098
1107
|
ref_key: "noTitle",
|
|
1099
1108
|
ref: Ut,
|
|
@@ -1125,8 +1134,8 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1125
1134
|
key: `user_options_${zt.value}`,
|
|
1126
1135
|
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1127
1136
|
color: N.value.style.chart.color,
|
|
1128
|
-
isPrinting: E(
|
|
1129
|
-
isImaging: E(
|
|
1137
|
+
isPrinting: E(dn),
|
|
1138
|
+
isImaging: E(fn),
|
|
1130
1139
|
uid: k.value,
|
|
1131
1140
|
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
1132
1141
|
hasPdf: N.value.userOptions.buttons.pdf,
|
|
@@ -1136,26 +1145,26 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1136
1145
|
hasTable: N.value.userOptions.buttons.table,
|
|
1137
1146
|
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1138
1147
|
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1139
|
-
isFullscreen:
|
|
1140
|
-
isTooltip:
|
|
1148
|
+
isFullscreen: ur.value,
|
|
1149
|
+
isTooltip: R.value.showTooltip,
|
|
1141
1150
|
titles: { ...N.value.userOptions.buttonTitles },
|
|
1142
1151
|
chartElement: j.value,
|
|
1143
1152
|
position: N.value.userOptions.position,
|
|
1144
1153
|
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1145
|
-
isAnnotation:
|
|
1154
|
+
isAnnotation: mr.value,
|
|
1146
1155
|
callbacks: N.value.userOptions.callbacks,
|
|
1147
1156
|
printScale: N.value.userOptions.print.scale,
|
|
1148
1157
|
tableDialog: N.value.table.useDialog,
|
|
1149
1158
|
isCursorPointer: F.value,
|
|
1150
|
-
onToggleFullscreen:
|
|
1151
|
-
onGeneratePdf: E(
|
|
1152
|
-
onGenerateCsv:
|
|
1153
|
-
onGenerateImage: E(
|
|
1154
|
-
onGenerateSvg: E(
|
|
1155
|
-
onToggleTable:
|
|
1156
|
-
onToggleTooltip:
|
|
1157
|
-
onToggleAnnotator:
|
|
1158
|
-
onCopyAlt:
|
|
1159
|
+
onToggleFullscreen: dr,
|
|
1160
|
+
onGeneratePdf: E(pn),
|
|
1161
|
+
onGenerateCsv: cr,
|
|
1162
|
+
onGenerateImage: E(Er),
|
|
1163
|
+
onGenerateSvg: E(Tr),
|
|
1164
|
+
onToggleTable: fr,
|
|
1165
|
+
onToggleTooltip: pr,
|
|
1166
|
+
onToggleAnnotator: hr,
|
|
1167
|
+
onCopyAlt: Dr,
|
|
1159
1168
|
style: x({ visibility: E(on) ? E(rn) ? "visible" : "hidden" : "visible" })
|
|
1160
1169
|
}, Ie({ _: 2 }, [
|
|
1161
1170
|
e.$slots.menuIcon ? {
|
|
@@ -1230,23 +1239,23 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1230
1239
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
1231
1240
|
g("div", $e, [(S(), h("svg", {
|
|
1232
1241
|
ref_key: "svgRef",
|
|
1233
|
-
ref:
|
|
1242
|
+
ref: I,
|
|
1234
1243
|
xmlns: E(ce),
|
|
1235
1244
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1236
1245
|
class: y({
|
|
1237
|
-
"vue-data-ui-fullscreen--on":
|
|
1238
|
-
"vue-data-ui-fulscreen--off": !
|
|
1246
|
+
"vue-data-ui-fullscreen--on": ur.value,
|
|
1247
|
+
"vue-data-ui-fulscreen--off": !ur.value,
|
|
1239
1248
|
"vue-data-ui-no-transition": !E(P)
|
|
1240
1249
|
}),
|
|
1241
1250
|
tabindex: "0",
|
|
1242
|
-
viewBox: `0 0 ${
|
|
1251
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
1243
1252
|
style: x(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
1244
|
-
onFocus:
|
|
1245
|
-
onBlur:
|
|
1246
|
-
onKeydown:
|
|
1253
|
+
onFocus: Or,
|
|
1254
|
+
onBlur: kr,
|
|
1255
|
+
onKeydown: Ar
|
|
1247
1256
|
}, [
|
|
1248
1257
|
Re(E(kt)),
|
|
1249
|
-
g("defs", null, [(S(!0), h(d, null, w(
|
|
1258
|
+
g("defs", null, [(S(!0), h(d, null, w(G.value, (e, t) => (S(), p(Ee, {
|
|
1250
1259
|
t: "radial",
|
|
1251
1260
|
cx: "50%",
|
|
1252
1261
|
cy: "50%",
|
|
@@ -1278,36 +1287,36 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1278
1287
|
type: "saturate",
|
|
1279
1288
|
values: "0"
|
|
1280
1289
|
}, null, -1)]], 8, tt)]),
|
|
1281
|
-
N.value.useCustomCells &&
|
|
1290
|
+
N.value.useCustomCells && G.value.length && e.$slots.cell ? (S(!0), h(d, { key: 0 }, w(K.value, (t, n) => (S(), h("foreignObject", {
|
|
1282
1291
|
x: t.x,
|
|
1283
1292
|
y: t.y,
|
|
1284
|
-
height:
|
|
1285
|
-
width:
|
|
1293
|
+
height: H.value <= 0 ? 1e-4 : H.value,
|
|
1294
|
+
width: V.value <= 0 ? 1e-4 : V.value,
|
|
1286
1295
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1287
1296
|
}, [T(e.$slots, "cell", ze({ ref_for: !0 }, {
|
|
1288
1297
|
cell: {
|
|
1289
1298
|
...t,
|
|
1290
|
-
color:
|
|
1291
|
-
height: Math.max(0,
|
|
1292
|
-
width: Math.max(0,
|
|
1293
|
-
...
|
|
1299
|
+
color: G.value[n].color,
|
|
1300
|
+
height: Math.max(0, H.value),
|
|
1301
|
+
width: Math.max(0, V.value),
|
|
1302
|
+
...G.value[n]
|
|
1294
1303
|
},
|
|
1295
|
-
isSelected: [null, void 0].includes(A.value) ? !0 :
|
|
1304
|
+
isSelected: [null, void 0].includes(A.value) ? !0 : G.value[n].serieIndex === A.value
|
|
1296
1305
|
}), void 0, !0)], 8, nt))), 256)) : m("", !0),
|
|
1297
|
-
!
|
|
1306
|
+
!G.value.length && !N.value.useCustomCells ? (S(), h("rect", {
|
|
1298
1307
|
key: 1,
|
|
1299
1308
|
x: 12,
|
|
1300
1309
|
y: 12,
|
|
1301
|
-
height:
|
|
1302
|
-
width:
|
|
1310
|
+
height: B.value.height - 24,
|
|
1311
|
+
width: B.value.width - 24,
|
|
1303
1312
|
rx: 3,
|
|
1304
1313
|
fill: "none",
|
|
1305
1314
|
stroke: "black"
|
|
1306
|
-
}, null, 8, rt)) :
|
|
1315
|
+
}, null, 8, rt)) : G.value.length && !N.value.useCustomCells ? (S(), h(d, { key: 2 }, [e.$slots.pattern ? (S(), h("g", it, [(S(!0), h(d, null, w(Sn.value, (t) => (S(), h("defs", null, [T(e.$slots, "pattern", ze({ ref_for: !0 }, {
|
|
1307
1316
|
seriesIndex: t.absoluteIndex,
|
|
1308
1317
|
patternId: `pattern_${k.value}_${t.absoluteIndex}`
|
|
1309
1318
|
}), void 0, !0)]))), 256))])) : m("", !0), N.value.style.chart.layout.rect.merged ? (S(), h(d, { key: 1 }, [
|
|
1310
|
-
(S(!0), h(d, null, w(
|
|
1319
|
+
(S(!0), h(d, null, w(ar.value, (e) => (S(), h("path", {
|
|
1311
1320
|
key: `merged-underlayer-${e.serieIndex}`,
|
|
1312
1321
|
d: e.d,
|
|
1313
1322
|
fill: "white",
|
|
@@ -1315,11 +1324,11 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1315
1324
|
stroke: N.value.style.chart.layout.rect.stroke,
|
|
1316
1325
|
"stroke-width": N.value.style.chart.layout.rect.strokeWidth,
|
|
1317
1326
|
"stroke-linejoin": "round",
|
|
1318
|
-
filter:
|
|
1319
|
-
style: x(
|
|
1327
|
+
filter: Xn(e.serieIndex),
|
|
1328
|
+
style: x(Zn(e.serieIndex)),
|
|
1320
1329
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1321
1330
|
}, null, 14, at))), 128)),
|
|
1322
|
-
(S(!0), h(d, null, w(
|
|
1331
|
+
(S(!0), h(d, null, w(ar.value, (e) => (S(), h("path", {
|
|
1323
1332
|
key: `merged-serie-${e.serieIndex}`,
|
|
1324
1333
|
d: e.d,
|
|
1325
1334
|
fill: N.value.style.chart.layout.rect.useGradient && N.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${e.gradientIndex})` : e.color,
|
|
@@ -1327,71 +1336,71 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1327
1336
|
stroke: N.value.style.chart.layout.rect.stroke,
|
|
1328
1337
|
"stroke-width": N.value.style.chart.layout.rect.strokeWidth,
|
|
1329
1338
|
"stroke-linejoin": "round",
|
|
1330
|
-
filter:
|
|
1331
|
-
style: x(
|
|
1339
|
+
filter: Xn(e.serieIndex),
|
|
1340
|
+
style: x(Zn(e.serieIndex)),
|
|
1332
1341
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1333
1342
|
}, null, 14, ot))), 128)),
|
|
1334
|
-
e.$slots.pattern ? (S(), h("g", st, [(S(!0), h(d, null, w(
|
|
1343
|
+
e.$slots.pattern ? (S(), h("g", st, [(S(!0), h(d, null, w(ar.value, (e) => (S(), h("path", {
|
|
1335
1344
|
key: `merged-pattern-${e.serieIndex}`,
|
|
1336
1345
|
d: e.d,
|
|
1337
1346
|
fill: `url(#pattern_${k.value}_${e.absoluteIndex})`,
|
|
1338
1347
|
"fill-rule": "evenodd",
|
|
1339
1348
|
stroke: "none",
|
|
1340
|
-
filter:
|
|
1341
|
-
style: x(
|
|
1349
|
+
filter: Xn(e.serieIndex),
|
|
1350
|
+
style: x(Zn(e.serieIndex)),
|
|
1342
1351
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1343
1352
|
}, null, 14, ct))), 128))])) : m("", !0)
|
|
1344
1353
|
], 64)) : (S(), h(d, { key: 2 }, [
|
|
1345
|
-
(S(!0), h(d, null, w(
|
|
1354
|
+
(S(!0), h(d, null, w(K.value, (e, t) => (S(), h("rect", {
|
|
1346
1355
|
rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
|
|
1347
1356
|
x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1348
1357
|
y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1349
|
-
height:
|
|
1350
|
-
width:
|
|
1358
|
+
height: H.value <= 0 ? 1e-4 : H.value,
|
|
1359
|
+
width: V.value <= 0 ? 1e-4 : V.value,
|
|
1351
1360
|
fill: "white",
|
|
1352
1361
|
stroke: N.value.style.chart.layout.rect.stroke,
|
|
1353
1362
|
"stroke-width": N.value.style.chart.layout.rect.strokeWidth,
|
|
1354
|
-
filter:
|
|
1355
|
-
style: x(
|
|
1363
|
+
filter: Xn(G.value[t].serieIndex),
|
|
1364
|
+
style: x(Zn(G.value[t].serieIndex)),
|
|
1356
1365
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1357
1366
|
}, null, 14, lt))), 256)),
|
|
1358
|
-
(S(!0), h(d, null, w(
|
|
1367
|
+
(S(!0), h(d, null, w(K.value, (e, t) => (S(), h("rect", {
|
|
1359
1368
|
rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
|
|
1360
1369
|
x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1361
1370
|
y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1362
|
-
height:
|
|
1363
|
-
width:
|
|
1364
|
-
fill: N.value.style.chart.layout.rect.useGradient && N.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${t})` :
|
|
1371
|
+
height: H.value <= 0 ? 1e-4 : H.value,
|
|
1372
|
+
width: V.value <= 0 ? 1e-4 : V.value,
|
|
1373
|
+
fill: N.value.style.chart.layout.rect.useGradient && N.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${t})` : G.value[t].color,
|
|
1365
1374
|
stroke: N.value.style.chart.layout.rect.stroke,
|
|
1366
1375
|
"stroke-width": N.value.style.chart.layout.rect.strokeWidth,
|
|
1367
|
-
filter:
|
|
1368
|
-
style: x(
|
|
1376
|
+
filter: Xn(G.value[t].serieIndex),
|
|
1377
|
+
style: x(Zn(G.value[t].serieIndex)),
|
|
1369
1378
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1370
1379
|
}, null, 14, ut))), 256)),
|
|
1371
|
-
e.$slots.pattern ? (S(), h("g", dt, [(S(!0), h(d, null, w(
|
|
1380
|
+
e.$slots.pattern ? (S(), h("g", dt, [(S(!0), h(d, null, w(K.value, (e, t) => (S(), h("rect", {
|
|
1372
1381
|
rx: N.value.style.chart.layout.rect.rounded ? N.value.style.chart.layout.rect.rounding : 0,
|
|
1373
1382
|
x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1374
1383
|
y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1375
|
-
height:
|
|
1376
|
-
width:
|
|
1377
|
-
fill: `url(#pattern_${k.value}_${
|
|
1384
|
+
height: H.value <= 0 ? 1e-4 : H.value,
|
|
1385
|
+
width: V.value <= 0 ? 1e-4 : V.value,
|
|
1386
|
+
fill: `url(#pattern_${k.value}_${G.value[t].absoluteIndex})`,
|
|
1378
1387
|
stroke: "none",
|
|
1379
|
-
filter:
|
|
1380
|
-
style: x(
|
|
1388
|
+
filter: Xn(G.value[t].serieIndex),
|
|
1389
|
+
style: x(Zn(G.value[t].serieIndex)),
|
|
1381
1390
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1382
1391
|
}, null, 14, ft))), 256))])) : m("", !0)
|
|
1383
1392
|
], 64))], 64)) : m("", !0),
|
|
1384
|
-
e.$slots.cellSvg ? (S(!0), h(d, { key: 3 }, w(
|
|
1393
|
+
e.$slots.cellSvg ? (S(!0), h(d, { key: 3 }, w(K.value, (t, n) => (S(), h("g", null, [T(e.$slots, "cellSvg", ze({ ref_for: !0 }, {
|
|
1385
1394
|
cell: {
|
|
1386
1395
|
...t,
|
|
1387
|
-
color:
|
|
1388
|
-
height: Math.max(0,
|
|
1389
|
-
width: Math.max(0,
|
|
1390
|
-
...
|
|
1396
|
+
color: G.value[n].color,
|
|
1397
|
+
height: Math.max(0, H.value),
|
|
1398
|
+
width: Math.max(0, V.value),
|
|
1399
|
+
...G.value[n]
|
|
1391
1400
|
},
|
|
1392
|
-
isSelected: [null, void 0].includes(A.value) ? !0 :
|
|
1401
|
+
isSelected: [null, void 0].includes(A.value) ? !0 : G.value[n].serieIndex === A.value
|
|
1393
1402
|
}), void 0, !0)]))), 256)) : m("", !0),
|
|
1394
|
-
(S(!0), h(d, null, w(
|
|
1403
|
+
(S(!0), h(d, null, w(ir.value, (e, t) => (S(), h("polygon", {
|
|
1395
1404
|
key: `selected-series-wrap-${t}`,
|
|
1396
1405
|
points: e,
|
|
1397
1406
|
fill: "none",
|
|
@@ -1400,17 +1409,17 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1400
1409
|
"stroke-linejoin": N.value.style.chart.layout.rect.selection.wrap.strokeLinejoin,
|
|
1401
1410
|
"pointer-events": "none"
|
|
1402
1411
|
}, null, 8, pt))), 128)),
|
|
1403
|
-
(S(!0), h(d, null, w(
|
|
1412
|
+
(S(!0), h(d, null, w(K.value, (e, t) => (S(), h(d, null, [or(t, e) ? (S(), h("text", {
|
|
1404
1413
|
key: `datalabel_${t}`,
|
|
1405
|
-
textContent: Ge(
|
|
1414
|
+
textContent: Ge(sr(t, e)),
|
|
1406
1415
|
x: e.x + N.value.style.chart.layout.labels.captions.offsetX + N.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1407
|
-
y: e.y + N.value.style.chart.layout.labels.captions.offsetY + N.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
1416
|
+
y: e.y + N.value.style.chart.layout.labels.captions.offsetY + N.value.style.chart.layout.grid.spaceBetween / 2 + vn.value / 2 + N.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1408
1417
|
"font-size": N.value.style.chart.layout.labels.captions.fontSize,
|
|
1409
|
-
fill: E(se)(
|
|
1410
|
-
filter:
|
|
1418
|
+
fill: E(se)(G.value[t].color),
|
|
1419
|
+
filter: Xn(G.value[t].serieIndex),
|
|
1411
1420
|
class: y({ "vue-data-ui-transition": E(P) })
|
|
1412
1421
|
}, null, 10, mt)) : m("", !0)], 64))), 256)),
|
|
1413
|
-
N.value.style.chart.layout.rect.merged && !N.value.useCustomCells ? (S(!0), h(d, { key: 4 }, w(
|
|
1422
|
+
N.value.style.chart.layout.rect.merged && !N.value.useCustomCells ? (S(!0), h(d, { key: 4 }, w(ar.value, (e) => (S(), h("path", {
|
|
1414
1423
|
key: `tooltip-trap-${e.serieIndex}`,
|
|
1415
1424
|
d: e.d,
|
|
1416
1425
|
fill: "transparent",
|
|
@@ -1420,12 +1429,12 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1420
1429
|
onMouseover: (t) => Jn(e.rectIndex),
|
|
1421
1430
|
onMouseleave: (t) => qn(e.rectIndex),
|
|
1422
1431
|
onClick: (t) => Kn(e.rectIndex)
|
|
1423
|
-
}, null, 40, ht))), 128)) : (S(!0), h(d, { key: 5 }, w(
|
|
1432
|
+
}, null, 40, ht))), 128)) : (S(!0), h(d, { key: 5 }, w(K.value, (e, t) => (S(), h("rect", {
|
|
1424
1433
|
key: `tooltip-trap-${t}`,
|
|
1425
1434
|
x: e.x + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1426
1435
|
y: e.y + N.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1427
|
-
height:
|
|
1428
|
-
width:
|
|
1436
|
+
height: vn.value,
|
|
1437
|
+
width: _n.value,
|
|
1429
1438
|
fill: "transparent",
|
|
1430
1439
|
stroke: "none",
|
|
1431
1440
|
onMouseover: (e) => Jn(t),
|
|
@@ -1433,15 +1442,15 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1433
1442
|
onClick: (e) => Kn(t)
|
|
1434
1443
|
}, null, 40, gt))), 128)),
|
|
1435
1444
|
T(e.$slots, "svg", { svg: {
|
|
1436
|
-
...
|
|
1437
|
-
isPrintingImg: E(
|
|
1438
|
-
isPrintingSvg: E(
|
|
1445
|
+
...z.value,
|
|
1446
|
+
isPrintingImg: E(dn) || E(fn) || E(Cr),
|
|
1447
|
+
isPrintingSvg: E(wr)
|
|
1439
1448
|
} }, void 0, !0)
|
|
1440
1449
|
], 46, et)), e.$slots.hint ? (S(), h("div", _t, [T(e.$slots, "hint", b(v({
|
|
1441
1450
|
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1442
1451
|
isVisible: Qt.value
|
|
1443
1452
|
})), void 0, !0)])) : m("", !0)]),
|
|
1444
|
-
e.$slots.watermark ? (S(), h("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: E(
|
|
1453
|
+
e.$slots.watermark ? (S(), h("div", vt, [T(e.$slots, "watermark", b(v({ isPrinting: E(dn) || E(fn) || E(Cr) || E(wr) })), void 0, !0)])) : m("", !0),
|
|
1445
1454
|
g("div", { id: `legend-bottom-${k.value}` }, null, 8, yt),
|
|
1446
1455
|
qt.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (S(), p(Fe, {
|
|
1447
1456
|
key: 6,
|
|
@@ -1449,23 +1458,23 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1449
1458
|
}, [g("div", {
|
|
1450
1459
|
ref_key: "chartLegend",
|
|
1451
1460
|
ref: Vt
|
|
1452
|
-
}, [T(e.$slots, "legend", { legend:
|
|
1461
|
+
}, [T(e.$slots, "legend", { legend: X.value }, () => [N.value.style.chart.legend.show ? (S(), p(Me, {
|
|
1453
1462
|
key: `legend_${Kt.value}`,
|
|
1454
|
-
legendSet:
|
|
1463
|
+
legendSet: X.value,
|
|
1455
1464
|
config: Vn.value,
|
|
1456
1465
|
isCursorPointer: F.value,
|
|
1457
1466
|
onClickMarker: t[0] ||= ({ legend: e }) => In(e.uid)
|
|
1458
1467
|
}, Ie({
|
|
1459
1468
|
item: D(({ legend: e }) => [g("div", {
|
|
1460
1469
|
onClick: (t) => e.segregate(),
|
|
1461
|
-
style: x(`opacity:${
|
|
1470
|
+
style: x(`opacity:${q.value.includes(e.uid) ? .5 : 1}`)
|
|
1462
1471
|
}, Ge(e.display), 13, bt)]),
|
|
1463
|
-
legendToggle: D(() => [
|
|
1472
|
+
legendToggle: D(() => [X.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !E(en) ? (S(), p(De, {
|
|
1464
1473
|
key: 0,
|
|
1465
1474
|
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1466
1475
|
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1467
1476
|
fontSize: N.value.style.chart.legend.fontSize,
|
|
1468
|
-
checked:
|
|
1477
|
+
checked: q.value.length > 0,
|
|
1469
1478
|
isCursorPointer: F.value,
|
|
1470
1479
|
onToggle: Fn
|
|
1471
1480
|
}, null, 8, [
|
|
@@ -1502,7 +1511,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1502
1511
|
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1503
1512
|
Re(E(Ct), {
|
|
1504
1513
|
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1505
|
-
show:
|
|
1514
|
+
show: R.value.showTooltip && Lt.value && q.value.length < O.dataset.length,
|
|
1506
1515
|
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1507
1516
|
color: N.value.style.chart.tooltip.color,
|
|
1508
1517
|
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
@@ -1516,7 +1525,7 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1516
1525
|
content: Rt.value,
|
|
1517
1526
|
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
1518
1527
|
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1519
|
-
isFullscreen:
|
|
1528
|
+
isFullscreen: ur.value,
|
|
1520
1529
|
smooth: N.value.style.chart.tooltip.smooth,
|
|
1521
1530
|
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1522
1531
|
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
@@ -1552,25 +1561,25 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1552
1561
|
"isA11yMode",
|
|
1553
1562
|
"a11yPosition"
|
|
1554
1563
|
]),
|
|
1555
|
-
It.value && N.value.userOptions.buttons.table ? (S(), p(Ue(
|
|
1564
|
+
It.value && N.value.userOptions.buttons.table ? (S(), p(Ue(_r.value.component), ze({ key: 8 }, _r.value.props, {
|
|
1556
1565
|
ref_key: "tableUnit",
|
|
1557
1566
|
ref: Jt,
|
|
1558
|
-
onClose:
|
|
1567
|
+
onClose: vr
|
|
1559
1568
|
}), Ie({
|
|
1560
1569
|
content: D(() => [(S(), p(E(Tt), {
|
|
1561
1570
|
key: `table_${Gt.value}`,
|
|
1562
|
-
colNames:
|
|
1563
|
-
head:
|
|
1564
|
-
body:
|
|
1565
|
-
config:
|
|
1566
|
-
title: N.value.table.useDialog ? "" :
|
|
1571
|
+
colNames: lr.value.colNames,
|
|
1572
|
+
head: lr.value.head,
|
|
1573
|
+
body: lr.value.body,
|
|
1574
|
+
config: lr.value.config,
|
|
1575
|
+
title: N.value.table.useDialog ? "" : _r.value.title,
|
|
1567
1576
|
withCloseButton: !N.value.table.useDialog,
|
|
1568
1577
|
isCursorPointer: F.value,
|
|
1569
|
-
onClose:
|
|
1578
|
+
onClose: vr
|
|
1570
1579
|
}, {
|
|
1571
1580
|
th: D(({ th: e }) => [e === "__SUM__" ? (S(), h("div", xt, [Re(E(wt), {
|
|
1572
1581
|
name: "sigma",
|
|
1573
|
-
stroke:
|
|
1582
|
+
stroke: lr.value.config.th.color,
|
|
1574
1583
|
size: 16
|
|
1575
1584
|
}, null, 8, ["stroke"])])) : (S(), h("div", St, Ge(e), 1))]),
|
|
1576
1585
|
td: D(({ td: e }) => [Le(Ge(e.name || e), 1)]),
|
|
@@ -1587,24 +1596,24 @@ var Ye = /* @__PURE__ */ e({ default: () => Ct }), Xe = ["id"], Ze = ["id"], Qe
|
|
|
1587
1596
|
_: 2
|
|
1588
1597
|
}, [N.value.table.useDialog ? {
|
|
1589
1598
|
name: "title",
|
|
1590
|
-
fn: D(() => [Le(Ge(
|
|
1599
|
+
fn: D(() => [Le(Ge(_r.value.title), 1)]),
|
|
1591
1600
|
key: "0"
|
|
1592
1601
|
} : void 0, N.value.table.useDialog ? {
|
|
1593
1602
|
name: "actions",
|
|
1594
1603
|
fn: D(() => [g("button", {
|
|
1595
1604
|
tabindex: "0",
|
|
1596
1605
|
class: "vue-ui-user-options-button",
|
|
1597
|
-
onClick: t[1] ||= (e) =>
|
|
1606
|
+
onClick: t[1] ||= (e) => cr(N.value.userOptions.callbacks.csv),
|
|
1598
1607
|
style: x({ cursor: F.value ? "pointer" : "default" })
|
|
1599
1608
|
}, [Re(E(wt), {
|
|
1600
1609
|
name: "fileCsv",
|
|
1601
|
-
stroke:
|
|
1610
|
+
stroke: _r.value.props.color
|
|
1602
1611
|
}, null, 8, ["stroke"])], 4)]),
|
|
1603
1612
|
key: "1"
|
|
1604
1613
|
} : void 0]), 1040)) : m("", !0),
|
|
1605
1614
|
T(e.$slots, "skeleton", {}, () => [E(en) ? (S(), p(he, { key: 0 })) : m("", !0)], !0)
|
|
1606
1615
|
], 46, Xe));
|
|
1607
1616
|
}
|
|
1608
|
-
}, [["__scopeId", "data-v-
|
|
1617
|
+
}, [["__scopeId", "data-v-2619f66a"]]);
|
|
1609
1618
|
//#endregion
|
|
1610
1619
|
export { Ye as n, Ct as t };
|