vue-data-ui 3.19.8 → 3.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-Dl9W5zJD.js} +1 -1
- 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-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/style.css +1 -1
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-nsosW-n5.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Bu3bocZx.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
- package/dist/{vue-ui-bullet-COSSZ7RU.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
- package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-LQuPTOlm.js} +1 -1
- package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
- package/dist/{vue-ui-carousel-table-Q2uTIELA.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
- package/dist/{vue-ui-chestnut-DdNKhXkN.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
- package/dist/{vue-ui-chord-CYzGIRtA.js → vue-ui-chord-YflKRyWK.js} +1 -1
- package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
- package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-C5_wkWul.js} +1 -1
- package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-mH0baWM3.js} +1 -1
- package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
- package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-BYBtwXy_.js} +1 -1
- package/dist/{vue-ui-donut-BSanYbqb.js → vue-ui-donut-B3L7jeHL.js} +434 -432
- package/dist/{vue-ui-donut-evolution-BVttNIzH.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
- package/dist/{vue-ui-dumbbell-D-KcBLOF.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
- package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-BYYyk5KL.js} +1 -1
- package/dist/{vue-ui-funnel-COwXzAbB.js → vue-ui-funnel-BfY509t-.js} +1 -1
- package/dist/{vue-ui-galaxy-Cg9VStNF.js → vue-ui-galaxy-D061gTYS.js} +260 -257
- package/dist/{vue-ui-gauge-DHWCS6jR.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
- package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BwOMFUVr.js} +1 -1
- package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
- package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
- package/dist/{vue-ui-history-plot-CgPjudHv.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
- package/dist/{vue-ui-horizontal-bar-CpQCmBQD.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
- package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
- package/dist/{vue-ui-molecule-CvfwMxYY.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
- package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-C-LWBXmg.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
- package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-MN-PjNJq.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
- package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
- package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-D2pVd53z.js} +115 -112
- package/dist/{vue-ui-relation-circle-MxYh6hSt.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
- package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
- package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-DkHS5dwd.js} +105 -102
- package/dist/{vue-ui-scatter-DrS1nrwL.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
- package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
- package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
- package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
- package/dist/{vue-ui-sparkline-BAWc3ROJ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
- package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
- package/dist/{vue-ui-stackline-DwtlEdOE.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
- package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
- package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-DuA_CfGn.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
- package/dist/{vue-ui-thermometer-Io8LdW1o.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
- package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-9LNNDl4q.js} +1 -1
- package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
- package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-BexKMBhz.js} +373 -373
- package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
- package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-BETHlWsO.js} +1 -1
- package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
- package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-CcgbuSp_.js} +1 -1
- package/dist/{vue-ui-xy-BCeOqJYR.js → vue-ui-xy-BQ1YONCq.js} +280 -277
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
- package/dist/vue-ui-sparkstackbar-BI8zG-DG.js +0 -662
|
@@ -103,7 +103,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["selectLegend", "copyAlt"],
|
|
105
105
|
setup(e, { expose: Ce, emit: Ge }) {
|
|
106
|
-
let bt = m(() => import("./Tooltip-CuWEYGr3.js")), xt = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), St = m(() => import("./vue-ui-sparkbar-
|
|
106
|
+
let bt = m(() => import("./Tooltip-CuWEYGr3.js")), xt = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), St = m(() => import("./vue-ui-sparkbar-D5toou8V.js").then((e) => e.n)), Ct = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), wt = m(() => import("./DataTable-DmE8Oo4i.js")), Tt = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Et = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Dt = m(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ot = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_radar: kt } = me(), { isThemeValid: At, warnInvalidTheme: jt } = be(), E = e, Mt = l(() => !!E.dataset && Object.keys(E.dataset).length), D = b(r()), O = b(!1), Nt = b(""), Pt = b(0), k = b(null), Ft = b(null), It = b(null), Lt = b(null), Rt = b(null), zt = b(0), Bt = b(0), Vt = b(0), Ht = b(!1), A = b(null), Ut = b(null), Wt = b(!1), Gt = b(!1), j = b(null), Kt = b({
|
|
107
107
|
x: 0,
|
|
108
108
|
y: 0
|
|
109
109
|
}), M = b("pointer"), qt = b(!1), N = b($t()), P = l(() => N.value.userOptions.useCursorPointer), Jt = l(() => pe({
|
|
@@ -212,12 +212,12 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
212
212
|
noTitle: Rt.value
|
|
213
213
|
});
|
|
214
214
|
requestAnimationFrame(() => {
|
|
215
|
-
V.value.width = e, V.value.height = t,
|
|
215
|
+
V.value.width = e, V.value.height = t, Tn();
|
|
216
216
|
});
|
|
217
217
|
});
|
|
218
218
|
L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = k.value.parentNode, L.value.observe(R.value);
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
Tn();
|
|
221
221
|
}
|
|
222
222
|
Be(() => {
|
|
223
223
|
Ht.value = !0, en();
|
|
@@ -253,27 +253,30 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
253
253
|
function un() {
|
|
254
254
|
H.value.length ? H.value = [] : J.value.forEach((e, t) => {
|
|
255
255
|
H.value.push(t);
|
|
256
|
-
});
|
|
256
|
+
}), dn();
|
|
257
257
|
}
|
|
258
|
-
function dn(
|
|
259
|
-
|
|
260
|
-
W.value = !1, U.value = null;
|
|
261
|
-
}, 500)) : (H.value.push(e), setTimeout(() => {
|
|
262
|
-
W.value = !1;
|
|
263
|
-
}, 500)), ln("selectLegend", J.value.filter((e, t) => !H.value.includes(t)).map((e) => ({
|
|
258
|
+
function dn() {
|
|
259
|
+
ln("selectLegend", J.value.filter((e, t) => !H.value.includes(t)).map((e) => ({
|
|
264
260
|
name: e.name,
|
|
265
261
|
color: e.color,
|
|
266
262
|
proportion: e.totalProportion
|
|
267
263
|
})));
|
|
268
264
|
}
|
|
269
|
-
function fn() {
|
|
265
|
+
function fn(e) {
|
|
266
|
+
W.value = !0, H.value.includes(e) ? (U.value = e, H.value = H.value.filter((t) => t !== e), setTimeout(() => {
|
|
267
|
+
W.value = !1, U.value = null;
|
|
268
|
+
}, 500)) : (H.value.push(e), setTimeout(() => {
|
|
269
|
+
W.value = !1;
|
|
270
|
+
}, 500)), dn();
|
|
271
|
+
}
|
|
272
|
+
function pn() {
|
|
270
273
|
return J.value.map((e) => ({
|
|
271
274
|
name: e.name,
|
|
272
275
|
color: e.color,
|
|
273
276
|
proportion: e.totalProportion
|
|
274
277
|
}));
|
|
275
278
|
}
|
|
276
|
-
function
|
|
279
|
+
function mn() {
|
|
277
280
|
let e = F.value;
|
|
278
281
|
if ([null, void 0].includes(e?.categories)) {
|
|
279
282
|
s({
|
|
@@ -331,7 +334,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
331
334
|
});
|
|
332
335
|
});
|
|
333
336
|
}
|
|
334
|
-
We(() => F.value, () =>
|
|
337
|
+
We(() => F.value, () => mn(), {
|
|
335
338
|
deep: !0,
|
|
336
339
|
immediate: !0
|
|
337
340
|
});
|
|
@@ -351,36 +354,36 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
351
354
|
formatter: e.formatter || null,
|
|
352
355
|
absoluteIndex: t
|
|
353
356
|
})));
|
|
354
|
-
function mn(e) {
|
|
355
|
-
return K.value.length ? J.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
356
|
-
}
|
|
357
357
|
function hn(e) {
|
|
358
|
-
|
|
359
|
-
t !== null && H.value.includes(t.absoluteIndex) && dn(t.absoluteIndex);
|
|
358
|
+
return K.value.length ? J.value.find((t) => t.name === e) || (N.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (N.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
360
359
|
}
|
|
361
360
|
function gn(e) {
|
|
362
|
-
let t =
|
|
363
|
-
t !== null &&
|
|
361
|
+
let t = hn(e);
|
|
362
|
+
t !== null && H.value.includes(t.absoluteIndex) && fn(t.absoluteIndex);
|
|
364
363
|
}
|
|
365
|
-
|
|
364
|
+
function _n(e) {
|
|
365
|
+
let t = hn(e);
|
|
366
|
+
t !== null && (H.value.includes(t.absoluteIndex) || fn(t.absoluteIndex));
|
|
367
|
+
}
|
|
368
|
+
let vn = l(() => Math.max(...K.value.flatMap((e) => e.values))), yn = l(() => K.value.length), bn = l(() => Math.min(V.value.width, V.value.height) / 3), xn = l(() => t({
|
|
366
369
|
plot: {
|
|
367
370
|
x: V.value.width / 2,
|
|
368
371
|
y: V.value.height / 2
|
|
369
372
|
},
|
|
370
|
-
radius:
|
|
371
|
-
sides:
|
|
373
|
+
radius: bn.value,
|
|
374
|
+
sides: yn.value,
|
|
372
375
|
rotation: 0
|
|
373
|
-
})),
|
|
376
|
+
})), Sn = l(() => {
|
|
374
377
|
let e = [];
|
|
375
|
-
for (let t = 0; t <
|
|
378
|
+
for (let t = 0; t < bn.value; t += bn.value / N.value.style.chart.layout.grid.graduations) e.push(t);
|
|
376
379
|
return e;
|
|
377
|
-
}), q = l(() =>
|
|
378
|
-
let n = K.value[t].values.map((n) =>
|
|
380
|
+
}), q = l(() => xn.value.coordinates.map((e, t) => {
|
|
381
|
+
let n = K.value[t].values.map((n) => En({
|
|
379
382
|
centerX: V.value.width / 2,
|
|
380
383
|
centerY: V.value.height / 2,
|
|
381
384
|
apexX: e.x,
|
|
382
385
|
apexY: e.y,
|
|
383
|
-
proportion: n / (K.value[t].target ||
|
|
386
|
+
proportion: n / (K.value[t].target || vn.value)
|
|
384
387
|
}));
|
|
385
388
|
return {
|
|
386
389
|
...e,
|
|
@@ -389,11 +392,11 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
389
392
|
};
|
|
390
393
|
}).map((e) => ({
|
|
391
394
|
...e,
|
|
392
|
-
labelX:
|
|
393
|
-
labelY:
|
|
394
|
-
labelAnchor:
|
|
395
|
+
labelX: Cn(e).x,
|
|
396
|
+
labelY: Cn(e).y,
|
|
397
|
+
labelAnchor: Cn(e).anchor
|
|
395
398
|
})));
|
|
396
|
-
function
|
|
399
|
+
function Cn({ x: e, y: t }) {
|
|
397
400
|
let n = "middle";
|
|
398
401
|
return e = Math.round(e), t = Math.round(t), e > V.value.width / 2 && (e += 12, n = "start"), e < V.value.width / 2 && (e -= 12, n = "end"), t > V.value.height / 2 + 1 && (t += 20), t < V.value.height / 2 - 1 && (t -= 12), t === V.value.height / 2 && (t += 4), {
|
|
399
402
|
x: e,
|
|
@@ -401,24 +404,24 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
401
404
|
anchor: n
|
|
402
405
|
};
|
|
403
406
|
}
|
|
404
|
-
let
|
|
407
|
+
let wn = l({
|
|
405
408
|
get: () => N.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
406
409
|
set: (e) => e
|
|
407
|
-
}), { autoSizeLabels:
|
|
410
|
+
}), { autoSizeLabels: Tn } = je({
|
|
408
411
|
svgRef: I,
|
|
409
412
|
fontSize: N.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
410
413
|
minFontSize: 6,
|
|
411
|
-
sizeRef:
|
|
414
|
+
sizeRef: wn,
|
|
412
415
|
labelClass: ".vue-ui-radar-apex-label"
|
|
413
416
|
});
|
|
414
|
-
function
|
|
417
|
+
function En({ centerX: e, centerY: t, apexX: n, apexY: r, proportion: i }) {
|
|
415
418
|
return {
|
|
416
419
|
x: e + (n - e) * i,
|
|
417
420
|
y: t + (r - t) * i
|
|
418
421
|
};
|
|
419
422
|
}
|
|
420
423
|
let J = l(() => {
|
|
421
|
-
let e = K.value.map((e, t) => e.values.map((t) => t / (e.target ||
|
|
424
|
+
let e = K.value.map((e, t) => e.values.map((t) => t / (e.target || vn.value)));
|
|
422
425
|
return G.value.map((t, r) => {
|
|
423
426
|
let i = le(e.map((e) => e[r]).reduce((e, t) => e + t, 0) / K.value.length);
|
|
424
427
|
return {
|
|
@@ -427,7 +430,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
427
430
|
totalProportion: i,
|
|
428
431
|
shape: "circle",
|
|
429
432
|
opacity: H.value.includes(r) ? .5 : 1,
|
|
430
|
-
segregate: () =>
|
|
433
|
+
segregate: () => fn(r),
|
|
431
434
|
isSegregated: H.value.includes(r),
|
|
432
435
|
display: `${t.name}: ${n({
|
|
433
436
|
v: (i ?? 0) * 100,
|
|
@@ -436,7 +439,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
436
439
|
})}`
|
|
437
440
|
};
|
|
438
441
|
});
|
|
439
|
-
}),
|
|
442
|
+
}), Dn = l(() => ({
|
|
440
443
|
cy: "radar-div-legend",
|
|
441
444
|
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
442
445
|
color: N.value.style.chart.legend.color,
|
|
@@ -491,26 +494,26 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
491
494
|
},
|
|
492
495
|
colNames: e
|
|
493
496
|
};
|
|
494
|
-
}), X = b(null),
|
|
495
|
-
function
|
|
497
|
+
}), X = b(null), On = b([]), kn = b(null);
|
|
498
|
+
function An(e, t) {
|
|
496
499
|
O.value = !1, X.value = null, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
497
500
|
datapoint: e,
|
|
498
501
|
seriesIndex: t
|
|
499
502
|
});
|
|
500
503
|
}
|
|
501
|
-
function
|
|
504
|
+
function jn(e, t) {
|
|
502
505
|
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
503
506
|
datapoint: e,
|
|
504
507
|
seriesIndex: t
|
|
505
508
|
});
|
|
506
509
|
}
|
|
507
|
-
function
|
|
510
|
+
function Mn(e, t, r = "pointer") {
|
|
508
511
|
N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
509
512
|
datapoint: e,
|
|
510
513
|
seriesIndex: t
|
|
511
514
|
}), M.value = r, j.value = t;
|
|
512
515
|
let i = G.value.slice();
|
|
513
|
-
|
|
516
|
+
On.value = [], X.value = t, O.value = !0, kn.value = {
|
|
514
517
|
datapoint: e,
|
|
515
518
|
seriesIndex: t,
|
|
516
519
|
series: {
|
|
@@ -555,7 +558,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
555
558
|
s: "%",
|
|
556
559
|
r: N.value.style.chart.tooltip.roundingPercentage
|
|
557
560
|
}), o = N.value.style.chart.tooltip.showValue && N.value.style.chart.tooltip.showPercentage ? `${te} (${ne})` : N.value.style.chart.tooltip.showValue && !N.value.style.chart.tooltip.showPercentage ? te : !N.value.style.chart.tooltip.showValue && N.value.style.chart.tooltip.showPercentage ? `${ne}` : "";
|
|
558
|
-
|
|
561
|
+
On.value.push({
|
|
559
562
|
name: r?.name ?? `#${t + 1}`,
|
|
560
563
|
value: e.values[t] / e.target * 100,
|
|
561
564
|
color: r?.color,
|
|
@@ -566,7 +569,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
566
569
|
});
|
|
567
570
|
}
|
|
568
571
|
}
|
|
569
|
-
function
|
|
572
|
+
function Nn(e = null) {
|
|
570
573
|
Re(() => {
|
|
571
574
|
let t = [
|
|
572
575
|
[N.value.style.chart.title.text],
|
|
@@ -588,20 +591,20 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
588
591
|
});
|
|
589
592
|
}
|
|
590
593
|
let Z = b(!1);
|
|
591
|
-
function
|
|
594
|
+
function Pn(e) {
|
|
592
595
|
Z.value = e, Pt.value += 1;
|
|
593
596
|
}
|
|
594
|
-
function
|
|
597
|
+
function Fn() {
|
|
595
598
|
B.value.showTable = !B.value.showTable;
|
|
596
599
|
}
|
|
597
|
-
function
|
|
600
|
+
function In() {
|
|
598
601
|
B.value.showTooltip = !B.value.showTooltip;
|
|
599
602
|
}
|
|
600
603
|
let Q = b(!1);
|
|
601
|
-
function
|
|
604
|
+
function Ln() {
|
|
602
605
|
Q.value = !Q.value;
|
|
603
606
|
}
|
|
604
|
-
async function
|
|
607
|
+
async function Rn({ scale: e = 2 } = {}) {
|
|
605
608
|
if (!k.value) return;
|
|
606
609
|
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
|
|
607
610
|
domElement: k.value,
|
|
@@ -652,36 +655,36 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
652
655
|
We(() => B.value.showTable, (e) => {
|
|
653
656
|
N.value.table.show || (e && N.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
654
657
|
});
|
|
655
|
-
function
|
|
658
|
+
function zn() {
|
|
656
659
|
B.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
657
660
|
}
|
|
658
|
-
let
|
|
661
|
+
let Bn = l(() => J.value.map((e) => ({
|
|
659
662
|
...e,
|
|
660
663
|
name: e.display
|
|
661
|
-
}))),
|
|
664
|
+
}))), Vn = l(() => N.value.style.chart.backgroundColor), Hn = l(() => N.value.style.chart.legend), { exportSvg: Un, getSvg: Wn } = ve({
|
|
662
665
|
svg: I,
|
|
663
666
|
title: l(() => N.value.style.chart.title),
|
|
664
|
-
legend:
|
|
665
|
-
legendItems:
|
|
666
|
-
backgroundColor:
|
|
667
|
+
legend: Hn,
|
|
668
|
+
legendItems: Bn,
|
|
669
|
+
backgroundColor: Vn
|
|
667
670
|
});
|
|
668
|
-
async function
|
|
671
|
+
async function Gn({ isCb: e }) {
|
|
669
672
|
Gt.value = !0, await Re();
|
|
670
673
|
try {
|
|
671
674
|
if (e) {
|
|
672
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
675
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
|
|
673
676
|
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
674
677
|
blob: e,
|
|
675
678
|
url: t,
|
|
676
679
|
text: n,
|
|
677
680
|
dataUrl: r
|
|
678
681
|
}));
|
|
679
|
-
} else await Promise.resolve(
|
|
682
|
+
} else await Promise.resolve(Un());
|
|
680
683
|
} finally {
|
|
681
684
|
Gt.value = !1;
|
|
682
685
|
}
|
|
683
686
|
}
|
|
684
|
-
function
|
|
687
|
+
function Kn(e) {
|
|
685
688
|
if (e?.stage === "start") {
|
|
686
689
|
Wt.value = !0;
|
|
687
690
|
return;
|
|
@@ -692,7 +695,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
692
695
|
}
|
|
693
696
|
an();
|
|
694
697
|
}
|
|
695
|
-
async function
|
|
698
|
+
async function qn() {
|
|
696
699
|
if (ln("copyAlt", {
|
|
697
700
|
config: N.value,
|
|
698
701
|
dataset: q.value
|
|
@@ -705,13 +708,13 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
705
708
|
dataset: q.value
|
|
706
709
|
}));
|
|
707
710
|
}
|
|
708
|
-
function
|
|
711
|
+
function Jn() {
|
|
709
712
|
j.value = null, qt.value = !0;
|
|
710
713
|
}
|
|
711
|
-
function
|
|
714
|
+
function Yn() {
|
|
712
715
|
j.value = null, M.value = "pointer", O.value = !1, X.value = null, qt.value = !1;
|
|
713
716
|
}
|
|
714
|
-
function
|
|
717
|
+
function Xn(e) {
|
|
715
718
|
if (!Number.isFinite(e) || !I.value) return;
|
|
716
719
|
let t = q.value[e];
|
|
717
720
|
if (!t) return;
|
|
@@ -721,7 +724,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
721
724
|
y: n.top + t.labelY / V.value.height * n.height
|
|
722
725
|
};
|
|
723
726
|
}
|
|
724
|
-
function
|
|
727
|
+
function Zn(e) {
|
|
725
728
|
if (!I.value || Q.value || document.activeElement !== I.value || !q.value.length) return;
|
|
726
729
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
727
730
|
if (!t && !n && !r && !i) return;
|
|
@@ -733,32 +736,32 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
733
736
|
if (j.value === null) return;
|
|
734
737
|
let e = q.value[j.value];
|
|
735
738
|
if (!e) return;
|
|
736
|
-
|
|
739
|
+
jn(e, j.value);
|
|
737
740
|
return;
|
|
738
741
|
}
|
|
739
742
|
let a = j.value;
|
|
740
743
|
a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1));
|
|
741
744
|
let ee = q.value[a];
|
|
742
|
-
ee && (j.value = a,
|
|
745
|
+
ee && (j.value = a, Xn(a), Mn(ee, a, "keyboard"));
|
|
743
746
|
}
|
|
744
|
-
let
|
|
747
|
+
let Qn = l(() => ({
|
|
745
748
|
headers: Y.value?.colNames?.map((e) => e.name ?? e) ?? [],
|
|
746
749
|
rows: Y.value?.body ?? []
|
|
747
750
|
}));
|
|
748
751
|
return Ce({
|
|
749
|
-
getData:
|
|
750
|
-
getImage:
|
|
752
|
+
getData: pn,
|
|
753
|
+
getImage: Rn,
|
|
751
754
|
generatePdf: rn,
|
|
752
|
-
generateCsv:
|
|
755
|
+
generateCsv: Nn,
|
|
753
756
|
generateImage: an,
|
|
754
|
-
generateSvg:
|
|
755
|
-
hideSeries:
|
|
756
|
-
showSeries:
|
|
757
|
-
toggleTable:
|
|
758
|
-
toggleTooltip:
|
|
759
|
-
toggleAnnotator:
|
|
760
|
-
toggleFullscreen:
|
|
761
|
-
copyAlt:
|
|
757
|
+
generateSvg: Gn,
|
|
758
|
+
hideSeries: _n,
|
|
759
|
+
showSeries: gn,
|
|
760
|
+
toggleTable: Fn,
|
|
761
|
+
toggleTooltip: In,
|
|
762
|
+
toggleAnnotator: Ln,
|
|
763
|
+
toggleFullscreen: Pn,
|
|
764
|
+
copyAlt: qn
|
|
762
765
|
}), (e, n) => (y(), f("div", {
|
|
763
766
|
class: g(`vue-data-ui-component vue-ui-radar ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
764
767
|
ref_key: "radarChart",
|
|
@@ -772,11 +775,11 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
772
775
|
id: `chart-instructions-${D.value}`,
|
|
773
776
|
class: "sr-only"
|
|
774
777
|
}, [p("p", null, C(N.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
|
|
775
|
-
|
|
778
|
+
Qn.value?.rows?.length ? (y(), u(De, {
|
|
776
779
|
key: 0,
|
|
777
780
|
uid: D.value,
|
|
778
|
-
head:
|
|
779
|
-
body:
|
|
781
|
+
head: Qn.value.headers,
|
|
782
|
+
body: Qn.value.rows,
|
|
780
783
|
notice: N.value.a11y.translations.tableAvailable,
|
|
781
784
|
caption: N.value.a11y.translations.tableCaption
|
|
782
785
|
}, null, 8, [
|
|
@@ -793,7 +796,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
793
796
|
color: N.value.style.chart.color,
|
|
794
797
|
active: Q.value,
|
|
795
798
|
isCursorPointer: P.value,
|
|
796
|
-
onClose:
|
|
799
|
+
onClose: Ln
|
|
797
800
|
}, {
|
|
798
801
|
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
799
802
|
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
@@ -863,15 +866,15 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
863
866
|
printScale: N.value.userOptions.print.scale,
|
|
864
867
|
tableDialog: N.value.table.useDialog,
|
|
865
868
|
isCursorPointer: P.value,
|
|
866
|
-
onToggleFullscreen:
|
|
869
|
+
onToggleFullscreen: Pn,
|
|
867
870
|
onGeneratePdf: w(rn),
|
|
868
|
-
onGenerateCsv:
|
|
869
|
-
onGenerateImage:
|
|
870
|
-
onGenerateSvg:
|
|
871
|
-
onToggleTable:
|
|
872
|
-
onToggleTooltip:
|
|
873
|
-
onToggleAnnotator:
|
|
874
|
-
onCopyAlt:
|
|
871
|
+
onGenerateCsv: Nn,
|
|
872
|
+
onGenerateImage: Kn,
|
|
873
|
+
onGenerateSvg: Gn,
|
|
874
|
+
onToggleTable: Fn,
|
|
875
|
+
onToggleTooltip: In,
|
|
876
|
+
onToggleAnnotator: Ln,
|
|
877
|
+
onCopyAlt: qn,
|
|
875
878
|
style: v({ visibility: w(Qt) ? w(Xt) ? "visible" : "hidden" : "visible" })
|
|
876
879
|
}, Pe({ _: 2 }, [
|
|
877
880
|
e.$slots.menuIcon ? {
|
|
@@ -956,9 +959,9 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
956
959
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
957
960
|
style: v(`max-width:100%;overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
958
961
|
tabindex: "0",
|
|
959
|
-
onFocus:
|
|
960
|
-
onBlur:
|
|
961
|
-
onKeydown:
|
|
962
|
+
onFocus: Jn,
|
|
963
|
+
onBlur: Yn,
|
|
964
|
+
onKeydown: Zn
|
|
962
965
|
}, [
|
|
963
966
|
Ie(w(Dt)),
|
|
964
967
|
e.$slots["chart-background"] ? (y(), f("foreignObject", {
|
|
@@ -990,14 +993,14 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
990
993
|
y2: e.y,
|
|
991
994
|
stroke: N.value.style.chart.layout.grid.stroke,
|
|
992
995
|
"stroke-width": N.value.style.chart.layout.grid.strokeWidth
|
|
993
|
-
}, null, 8, nt))), 256)), N.value.style.chart.layout.grid.graduations > 0 ? (y(), f("g", rt, [(y(!0), f(c, null, x(
|
|
996
|
+
}, null, 8, nt))), 256)), N.value.style.chart.layout.grid.graduations > 0 ? (y(), f("g", rt, [(y(!0), f(c, null, x(Sn.value, (e) => (y(), f("path", {
|
|
994
997
|
d: w(t)({
|
|
995
998
|
plot: {
|
|
996
999
|
x: V.value.width / 2,
|
|
997
1000
|
y: V.value.height / 2
|
|
998
1001
|
},
|
|
999
1002
|
radius: e,
|
|
1000
|
-
sides:
|
|
1003
|
+
sides: yn.value,
|
|
1001
1004
|
rotation: 0
|
|
1002
1005
|
}).path,
|
|
1003
1006
|
fill: "none",
|
|
@@ -1005,7 +1008,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1005
1008
|
"stroke-width": N.value.style.chart.layout.grid.strokeWidth
|
|
1006
1009
|
}, null, 8, it))), 256))])) : d("", !0)])) : d("", !0),
|
|
1007
1010
|
p("path", {
|
|
1008
|
-
d:
|
|
1011
|
+
d: xn.value.path,
|
|
1009
1012
|
fill: "none",
|
|
1010
1013
|
stroke: N.value.style.chart.layout.outerPolygon.stroke,
|
|
1011
1014
|
"stroke-width": N.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
@@ -1019,9 +1022,9 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1019
1022
|
"text-anchor": e.labelAnchor,
|
|
1020
1023
|
"font-size": N.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1021
1024
|
fill: N.value.style.chart.layout.labels.dataLabels.color,
|
|
1022
|
-
onMouseenter: (n) =>
|
|
1023
|
-
onMouseleave: (n) =>
|
|
1024
|
-
onClick: (n) =>
|
|
1025
|
+
onMouseenter: (n) => Mn(e, t, "pointer"),
|
|
1026
|
+
onMouseleave: (n) => An(e, t),
|
|
1027
|
+
onClick: (n) => jn(e, t)
|
|
1025
1028
|
}, C(e.name), 41, st))), 256))])) : d("", !0),
|
|
1026
1029
|
(y(!0), f(c, null, x(G.value, (e, t) => (y(), f("g", null, [p("g", null, [N.value.useCssAnimation || !N.value.useCssAnimation && !H.value.includes(t) ? (y(), f("polygon", {
|
|
1027
1030
|
key: 0,
|
|
@@ -1058,7 +1061,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1058
1061
|
}, null, 10, dt))), 256))]))), 256))])) : d("", !0),
|
|
1059
1062
|
S(e.$slots, "svg", { svg: {
|
|
1060
1063
|
...V.value,
|
|
1061
|
-
outerPolygon:
|
|
1064
|
+
outerPolygon: xn.value,
|
|
1062
1065
|
isPrintingImg: w(tn) || w(nn) || Wt.value,
|
|
1063
1066
|
isPrintingSvg: Gt.value
|
|
1064
1067
|
} }, void 0, !0)
|
|
@@ -1077,9 +1080,9 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1077
1080
|
}, [S(e.$slots, "legend", { legend: J.value }, () => [N.value.style.chart.legend.show ? (y(), u(Ae, {
|
|
1078
1081
|
key: `legend_${Vt.value}`,
|
|
1079
1082
|
legendSet: J.value,
|
|
1080
|
-
config:
|
|
1083
|
+
config: Dn.value,
|
|
1081
1084
|
isCursorPointer: P.value,
|
|
1082
|
-
onClickMarker: n[0] ||= ({ i: e }) =>
|
|
1085
|
+
onClickMarker: n[0] ||= ({ i: e }) => fn(e)
|
|
1083
1086
|
}, {
|
|
1084
1087
|
item: T(({ legend: e, index: t }) => [w(Yt) ? d("", !0) : (y(), f("div", {
|
|
1085
1088
|
key: 0,
|
|
@@ -1137,16 +1140,16 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1137
1140
|
isA11yMode: M.value === "keyboard",
|
|
1138
1141
|
a11yPosition: Kt.value
|
|
1139
1142
|
}, {
|
|
1140
|
-
"tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...
|
|
1141
|
-
tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...
|
|
1143
|
+
"tooltip-before": T(() => [S(e.$slots, "tooltip-before", _(h({ ...kn.value })), void 0, !0)]),
|
|
1144
|
+
tooltip: T(() => [S(e.$slots, "tooltip", _(h({ ...kn.value })), void 0, !0)]),
|
|
1142
1145
|
"tooltip-after": T(() => [!["function"].includes(typeof N.value.style.chart.tooltip.customFormat) && !e.$slots.tooltip ? (y(), f("div", gt, [Ie(w(St), {
|
|
1143
|
-
dataset:
|
|
1146
|
+
dataset: On.value,
|
|
1144
1147
|
config: cn.value,
|
|
1145
1148
|
backgroundOpacity: 0
|
|
1146
1149
|
}, {
|
|
1147
1150
|
"data-label": T(({ bar: e }) => [p("div", _t, [p("span", vt, C(e.name + (N.value.style.chart.tooltip.showValue || N.value.style.chart.tooltip.showPercentage ? ":" : "")), 1), N.value.style.chart.tooltip.showValue || N.value.style.chart.tooltip.showPercentage ? (y(), f("span", yt, C(e.suffix), 1)) : d("", !0)])]),
|
|
1148
1151
|
_: 1
|
|
1149
|
-
}, 8, ["dataset", "config"])])) : d("", !0), S(e.$slots, "tooltip-after", _(h({ ...
|
|
1152
|
+
}, 8, ["dataset", "config"])])) : d("", !0), S(e.$slots, "tooltip-after", _(h({ ...kn.value })), void 0, !0)]),
|
|
1150
1153
|
_: 3
|
|
1151
1154
|
}, 8, [
|
|
1152
1155
|
"teleportTo",
|
|
@@ -1175,7 +1178,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1175
1178
|
Mt.value && N.value.userOptions.buttons.table ? (y(), u(Ve($.value.component), Le({ key: 8 }, $.value.props, {
|
|
1176
1179
|
ref_key: "tableUnit",
|
|
1177
1180
|
ref: A,
|
|
1178
|
-
onClose:
|
|
1181
|
+
onClose: zn
|
|
1179
1182
|
}), Pe({
|
|
1180
1183
|
content: T(() => [(y(), u(w(wt), {
|
|
1181
1184
|
key: `table_${Bt.value}`,
|
|
@@ -1186,7 +1189,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1186
1189
|
title: N.value.table.useDialog ? "" : $.value.title,
|
|
1187
1190
|
withCloseButton: !N.value.table.useDialog,
|
|
1188
1191
|
isCursorPointer: P.value,
|
|
1189
|
-
onClose:
|
|
1192
|
+
onClose: zn
|
|
1190
1193
|
}, {
|
|
1191
1194
|
th: T(({ th: e }) => [Fe(C(e.name), 1)]),
|
|
1192
1195
|
td: T(({ td: e }) => [Fe(C(e), 1)]),
|
|
@@ -1210,7 +1213,7 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1210
1213
|
fn: T(() => [p("button", {
|
|
1211
1214
|
tabindex: "0",
|
|
1212
1215
|
class: "vue-ui-user-options-button",
|
|
1213
|
-
onClick: n[1] ||= (e) =>
|
|
1216
|
+
onClick: n[1] ||= (e) => Nn(N.value.userOptions.callbacks.csv),
|
|
1214
1217
|
style: v({ cursor: P.value ? "pointer" : "default" })
|
|
1215
1218
|
}, [Ie(w(xt), {
|
|
1216
1219
|
name: "fileCsv",
|
|
@@ -1221,6 +1224,6 @@ var Ge = /* @__PURE__ */ e({ default: () => bt }), Ke = ["id"], qe = ["id"], Je
|
|
|
1221
1224
|
S(e.$slots, "skeleton", {}, () => [w(Yt) ? (y(), u(_e, { key: 0 })) : d("", !0)], !0)
|
|
1222
1225
|
], 46, Ke));
|
|
1223
1226
|
}
|
|
1224
|
-
}, [["__scopeId", "data-v-
|
|
1227
|
+
}, [["__scopeId", "data-v-d5e67629"]]);
|
|
1225
1228
|
//#endregion
|
|
1226
1229
|
export { Ge as n, bt as t };
|
|
@@ -118,7 +118,7 @@ var Fe = /* @__PURE__ */ e({ default: () => nt }), Ie = ["id"], Le = ["id"], Re
|
|
|
118
118
|
v309156a9: jt.value,
|
|
119
119
|
v6c0f80cb: Nt.value
|
|
120
120
|
}));
|
|
121
|
-
let nt = Te(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), rt = Te(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), it = Te(() => import("./PackageVersion-
|
|
121
|
+
let nt = Te(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), rt = Te(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), it = Te(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), { vue_ui_relation_circle: at } = oe(), { isThemeValid: ot, warnInvalidTheme: st } = de(), T = e, ct = Fe, lt = u(() => !!T.dataset && Object.keys(T.dataset).length), E = y(n()), ut = y(0), D = y(null), dt = y(null), ft = y(null), pt = y(null), mt = y(0), O = y(!1), k = y(!1), A = y(null), j = y(!1), M = y(St()), N = u(() => M.value.userOptions.useCursorPointer), ht = u(() => ae({
|
|
122
122
|
defaultConfig: {
|
|
123
123
|
userOptions: { show: !1 },
|
|
124
124
|
customPalette: Array(7).fill("#CACACA"),
|
|
@@ -137,7 +137,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
137
137
|
"copyAlt"
|
|
138
138
|
],
|
|
139
139
|
setup(e, { expose: Ee, emit: qe }) {
|
|
140
|
-
let Dt = h(() => import("./vue-ui-xy-
|
|
140
|
+
let Dt = h(() => import("./vue-ui-xy-BQ1YONCq.js").then((e) => e.n)), Ot = h(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), kt = h(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), At = h(() => import("./DataTable-DmE8Oo4i.js")), jt = h(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Mt = h(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Nt = h(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Pt = h(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_ridgeline: Ft } = he(), { isThemeValid: It, warnInvalidTheme: Lt } = xe(), E = e, D = u({
|
|
141
141
|
get() {
|
|
142
142
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
143
143
|
},
|
|
@@ -502,7 +502,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
502
502
|
function vn() {
|
|
503
503
|
Y.value.length ? Y.value = [] : X.value.forEach((e) => {
|
|
504
504
|
Y.value.push(e.id);
|
|
505
|
-
});
|
|
505
|
+
}), Rt("selectLegend", J.value);
|
|
506
506
|
}
|
|
507
507
|
function yn(e) {
|
|
508
508
|
Y.value.includes(e) ? Y.value = Y.value.filter((t) => t !== e) : Y.value.push(e), Rt("selectLegend", J.value);
|
|
@@ -1617,6 +1617,6 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1617
1617
|
S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), d(ve, { key: 0 })) : f("", !0)], !0)
|
|
1618
1618
|
], 46, Je));
|
|
1619
1619
|
}
|
|
1620
|
-
}, [["__scopeId", "data-v-
|
|
1620
|
+
}, [["__scopeId", "data-v-ca7f8c0d"]]);
|
|
1621
1621
|
//#endregion
|
|
1622
1622
|
export { qe as n, Dt as t };
|