vue-data-ui 2.12.8-beta.1 → 2.12.8-beta.3
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 +15 -0
- package/dist/{Arrow-BZERXYRS.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-CsxEDFbY.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-C8g0bTnH.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-RCAns9t0.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-DN8VsGNp.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-B3x9Et6h.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D9ieEyKs.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-CFpmup6M.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-BrIjEzie.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-CtkpE63a.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-COOEkKtu.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-4iy6SPsL.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-BEQiIKjn.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-R_tsQZO3.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CIOyDPmN.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-CUCFZVax.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DG5CAMFC.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-_gtZv10q.js → index-CH_mJIWj.js} +254 -190
- package/dist/{pdf-CTRFaSN8.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-Bz6Z0t8M.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-LFM5suk6.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DdACgPWc.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BJNtd28w.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-DFfQ5rpF.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DHs_TL8y.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-CuPdtRUq.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-3TXSEM2Y.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-IcQJ9_WS.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-DX7aRcCS.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-m-FVZD8y.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-DrvRDAyr.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-CkNvMtLt.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-DxvPYJ2Y.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-CygrXSEE.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-C-WSlGoq.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CHoBqz39.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-D-ls2LUq.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-BnwCfYOJ.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-09xAMehp.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DOrXAsbx.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BMXyhvCe.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-DkJVRsqL.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-EISlXvOs.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-B3dgboHu.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-GZwvTkfa.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-Dyuf4jAg.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-B2gkvvEB.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-DFTLY4ad.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-CQlhpdhp.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-BVS8QHol.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-BVdWS8RK.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-crvd8Pln.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-CREePTU2.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-DeaiKdlr.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BIL-3GUR.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-BpU03_iR.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-BRUFM-tU.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-B4BGITxs.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-DZTUSyr7.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-DG1k85e_.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-g2ChSAKh.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-BlPJI-D9.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-DhZ3csGm.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-cJJWCLiJ.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ByCUh-P0.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B3q-6W-d.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-ZMAOSesx.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDVSCmGl.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-BY3AQz0l.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DpmUR3PK.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-DpFMZ4rJ.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-4GOzV-IT.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-1TrSrWvU.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-CZIMCIDI.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C8VQR1EN.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfCCzbZ-.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-Buou4k4m.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-D5NWJ0Ah.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Cs77FlO0.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Oik-vORz.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-a4kmpLK9.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-CNDCD1yU.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BTe1HiZx.js → vue-ui-xy-CEFkua9H.js} +930 -823
- package/dist/{vue-ui-xy-canvas-BS0jWsyQ.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as J, ref as d, computed as k, useSlots as _a, onMounted as ra, watch as A, nextTick as ge, shallowRef as $e, onBeforeUnmount as Ba, createElementBlock as se, openBlock as z, unref as p, normalizeClass as Va, normalizeStyle as K, createCommentVNode as U, createBlock as D, createElementVNode as ne, createSlots as Za, withCtx as
|
|
2
|
-
import { u as qa, c as Ja, t as Ka, p as _, a as Qa, C as pe, b as el, D as Ie, i as Q, f as ee, d as sa, a1 as al, H as ll, ai as tl, o as ol, e as rl, x as na, q as ul, r as sl, y as nl, s as ie, l as il } from "./index-
|
|
1
|
+
import { defineAsyncComponent as J, ref as d, computed as k, useSlots as _a, onMounted as ra, watch as A, nextTick as ge, shallowRef as $e, onBeforeUnmount as Ba, createElementBlock as se, openBlock as z, unref as p, normalizeClass as Va, normalizeStyle as K, createCommentVNode as U, createBlock as D, createElementVNode as ne, createSlots as Za, withCtx as m, renderSlot as x, normalizeProps as W, guardReactiveProps as X, createVNode as Ga, toDisplayString as ua, createTextVNode as ja } from "vue";
|
|
2
|
+
import { u as qa, c as Ja, t as Ka, p as _, a as Qa, C as pe, b as el, D as Ie, i as Q, f as ee, d as sa, a1 as al, H as ll, ai as tl, o as ol, e as rl, x as na, q as ul, r as sl, y as nl, s as ie, l as il } from "./index-CH_mJIWj.js";
|
|
3
3
|
import { d as vl, t as cl, u as dl, c as hl, a as ia, l as L, r as Me, b as R, p as va } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as ca } from "./useNestedProp-
|
|
5
|
-
import { u as yl } from "./usePrinter-
|
|
4
|
+
import { u as ca } from "./useNestedProp-rMR-JeOJ.js";
|
|
5
|
+
import { u as yl } from "./usePrinter-DJ7WfWUs.js";
|
|
6
6
|
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as gl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import pl from "./Legend-
|
|
9
|
-
import
|
|
10
|
-
import { S as
|
|
8
|
+
import pl from "./Legend-DRqzYrP9.js";
|
|
9
|
+
import bl from "./Title-apr_T9tg.js";
|
|
10
|
+
import { S as ml } from "./Slicer-o6jJH5bw.js";
|
|
11
11
|
import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
13
13
|
key: 2,
|
|
@@ -30,7 +30,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend"],
|
|
32
32
|
setup(Te, { expose: da, emit: ha }) {
|
|
33
|
-
const ya = J(() => import("./vue-ui-accordion-
|
|
33
|
+
const ya = J(() => import("./vue-ui-accordion-Ds4zkPIx.js")), fa = J(() => import("./DataTable-BBqbcutV.js")), ga = J(() => import("./NonSvgPenAndPaper-CQIC2PMP.js")), pa = J(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ba = J(() => import("./Tooltip-BuHsMAfp.js")), ma = J(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_xy_canvas: xa } = qa(), g = Te, be = d(Ja()), ae = d(null), le = d(null), s = d(null), y = d(1), P = d(1), ve = d(!1), v = d(null), ce = d(""), Oe = d(null), $ = d([]), B = d(1), H = d(!0), V = d(!0), me = d(null), Re = d(0), Pe = d(0), de = d(!1), Ee = d(null), Fe = d(null), Ae = d(null), De = d(null), xe = d(0), Le = d(0), ke = d(0), M = d(null), Ce = k(() => !!g.dataset && g.dataset.length), La = ha, ka = _a();
|
|
34
34
|
ra(() => {
|
|
35
35
|
ka["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
36
36
|
});
|
|
@@ -58,7 +58,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
58
58
|
ze(), xe.value += 1, Le.value += 1, ke.value += 1;
|
|
59
59
|
}, { deep: !0 });
|
|
60
60
|
const Ue = d(a.value.style.chart.aspectRatio), { isPrinting: We, isImaging: Xe, generatePdf: _e, generateImage: Be } = yl({
|
|
61
|
-
elementId: `xy_canvas_${
|
|
61
|
+
elementId: `xy_canvas_${be.value}`,
|
|
62
62
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
63
63
|
options: a.value.userOptions.print
|
|
64
64
|
}), u = d({
|
|
@@ -100,7 +100,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
100
100
|
};
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const b = k(() => {
|
|
104
104
|
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(r.value.start, r.value.end))), o = Ie(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (n / (o.max + n)), w = o.ticks.map((i) => ({
|
|
105
105
|
y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
|
|
106
106
|
x: l.value.left - 8,
|
|
@@ -166,9 +166,9 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
166
166
|
})), ue = wa({
|
|
167
167
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
168
168
|
series: e.series,
|
|
169
|
-
min: u.value.stacked ? o :
|
|
170
|
-
max: u.value.stacked ? n :
|
|
171
|
-
scale: u.value.stacked ? i :
|
|
169
|
+
min: u.value.stacked ? o : b.value.min,
|
|
170
|
+
max: u.value.stacked ? n : b.value.max,
|
|
171
|
+
scale: u.value.stacked ? i : b.value.scale,
|
|
172
172
|
yOffset: f,
|
|
173
173
|
individualHeight: S,
|
|
174
174
|
stackIndex: u.value.stacked ? t : null
|
|
@@ -348,21 +348,21 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
348
348
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ?
|
|
352
|
-
t <
|
|
351
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? b.value.yLabels.forEach((e, t) => {
|
|
352
|
+
t < b.value.yLabels.length - 1 && Me(
|
|
353
353
|
s.value,
|
|
354
354
|
[
|
|
355
355
|
{ x: l.value.left, y: e.y },
|
|
356
356
|
{ x: l.value.right, y: e.y },
|
|
357
|
-
{ x: l.value.right, y:
|
|
358
|
-
{ x: l.value.left, y:
|
|
357
|
+
{ x: l.value.right, y: b.value.yLabels[t + 1].y },
|
|
358
|
+
{ x: l.value.left, y: b.value.yLabels[t + 1].y }
|
|
359
359
|
],
|
|
360
360
|
{
|
|
361
361
|
fillColor: t % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
362
362
|
strokeColor: "transparent"
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
|
-
}) :
|
|
365
|
+
}) : b.value.yLabels.forEach((e) => {
|
|
366
366
|
L(
|
|
367
367
|
s.value,
|
|
368
368
|
[
|
|
@@ -396,8 +396,8 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
396
396
|
), a.value.style.chart.grid.zeroLine.show && L(
|
|
397
397
|
s.value,
|
|
398
398
|
[
|
|
399
|
-
{ x: l.value.left, y:
|
|
400
|
-
{ x: l.value.right, y:
|
|
399
|
+
{ x: l.value.left, y: b.value.zero },
|
|
400
|
+
{ x: l.value.right, y: b.value.zero }
|
|
401
401
|
],
|
|
402
402
|
{
|
|
403
403
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -493,7 +493,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
495
|
});
|
|
496
|
-
}) :
|
|
496
|
+
}) : b.value.yLabels.forEach((e, t) => {
|
|
497
497
|
R(
|
|
498
498
|
s.value,
|
|
499
499
|
Q(
|
|
@@ -593,11 +593,11 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
593
593
|
[
|
|
594
594
|
{
|
|
595
595
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
596
|
-
y: u.value.stacked ? e.localZero :
|
|
596
|
+
y: u.value.stacked ? e.localZero : b.value.zero
|
|
597
597
|
},
|
|
598
598
|
{
|
|
599
599
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
600
|
-
y: u.value.stacked ? e.localZero :
|
|
600
|
+
y: u.value.stacked ? e.localZero : b.value.zero
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
603
|
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
@@ -618,7 +618,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
618
618
|
},
|
|
619
619
|
end: {
|
|
620
620
|
x: e.coordinatesLine[o].x,
|
|
621
|
-
y: u.value.stacked ? e.localZero :
|
|
621
|
+
y: u.value.stacked ? e.localZero : b.value.zero
|
|
622
622
|
},
|
|
623
623
|
stops: [
|
|
624
624
|
{ offset: 0, color: e.color },
|
|
@@ -640,7 +640,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
640
640
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
641
641
|
),
|
|
642
642
|
l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
643
|
-
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero :
|
|
643
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : b.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
644
644
|
{
|
|
645
645
|
align: "center",
|
|
646
646
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -661,7 +661,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
661
661
|
}
|
|
662
662
|
) : va(
|
|
663
663
|
s.value,
|
|
664
|
-
[{ x: e.coordinatesLine[0].x, y:
|
|
664
|
+
[{ x: e.coordinatesLine[0].x, y: b.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: b.value.zero }],
|
|
665
665
|
{
|
|
666
666
|
fillColor: ie(e.color, a.value.style.chart.area.opacity),
|
|
667
667
|
strokeColor: "transparent"
|
|
@@ -689,7 +689,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
689
689
|
function te() {
|
|
690
690
|
Ma(), H.value ? (v.value !== null && a.value.style.chart.selector.show && qe(), Aa(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), $a.value.forEach((e) => {
|
|
691
691
|
(e.type === "line" || !e.type) && Da(e), V.value && (Ta(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Pa(e));
|
|
692
|
-
}),
|
|
692
|
+
}), me.value = hl(T.value)) : (me.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(me.value, 0, 0)), v.value !== null && a.value.style.chart.selector.show && qe(), v.value !== null && h.value.forEach((e) => {
|
|
693
693
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
694
694
|
if (!e.coordinatesLine[v.value]) return;
|
|
695
695
|
e.coordinatesLine[v.value].x !== void 0 && e.coordinatesLine[v.value].y !== void 0 && ia(
|
|
@@ -892,7 +892,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
892
892
|
style: K(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
893
893
|
ref_key: "xy",
|
|
894
894
|
ref: ae,
|
|
895
|
-
id: `xy_canvas_${
|
|
895
|
+
id: `xy_canvas_${be.value}`,
|
|
896
896
|
class: Va(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
897
897
|
onMouseenter: t[5] || (t[5] = () => p(He)(!0)),
|
|
898
898
|
onMouseleave: t[6] || (t[6] = () => p(He)(!1))
|
|
@@ -903,7 +903,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
903
903
|
ref: Ee,
|
|
904
904
|
style: K(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
905
905
|
}, [
|
|
906
|
-
(z(), D(
|
|
906
|
+
(z(), D(bl, {
|
|
907
907
|
key: `title_${xe.value}`,
|
|
908
908
|
config: {
|
|
909
909
|
title: {
|
|
@@ -917,14 +917,14 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
917
917
|
}
|
|
918
918
|
}, null, 8, ["config"]))
|
|
919
919
|
], 4)) : U("", !0),
|
|
920
|
-
a.value.userOptions.show && Ce.value && (p(Ne) || p(we)) ? (z(), D(p(
|
|
920
|
+
a.value.userOptions.show && Ce.value && (p(Ne) || p(we)) ? (z(), D(p(ma), {
|
|
921
921
|
ref: "details",
|
|
922
922
|
key: `user_option_${Pe.value}`,
|
|
923
923
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
924
924
|
color: a.value.style.chart.color,
|
|
925
925
|
isPrinting: p(We),
|
|
926
926
|
isImaging: p(Xe),
|
|
927
|
-
uid:
|
|
927
|
+
uid: be.value,
|
|
928
928
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
929
929
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
930
930
|
hasImg: a.value.userOptions.buttons.img,
|
|
@@ -941,6 +941,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
941
941
|
position: a.value.userOptions.position,
|
|
942
942
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
943
943
|
isAnnotation: fe.value,
|
|
944
|
+
callbacks: a.value.userOptions.callbacks,
|
|
944
945
|
onToggleFullscreen: Ca,
|
|
945
946
|
onGeneratePdf: p(_e),
|
|
946
947
|
onGenerateCsv: ea,
|
|
@@ -956,75 +957,75 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
956
957
|
}, Za({ _: 2 }, [
|
|
957
958
|
e.$slots.menuIcon ? {
|
|
958
959
|
name: "menuIcon",
|
|
959
|
-
fn:
|
|
960
|
+
fn: m(({ isOpen: o, color: n }) => [
|
|
960
961
|
x(e.$slots, "menuIcon", W(X({ isOpen: o, color: n })), void 0, !0)
|
|
961
962
|
]),
|
|
962
963
|
key: "0"
|
|
963
964
|
} : void 0,
|
|
964
965
|
e.$slots.optionTooltip ? {
|
|
965
966
|
name: "optionTooltip",
|
|
966
|
-
fn:
|
|
967
|
+
fn: m(() => [
|
|
967
968
|
x(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
968
969
|
]),
|
|
969
970
|
key: "1"
|
|
970
971
|
} : void 0,
|
|
971
972
|
e.$slots.optionPdf ? {
|
|
972
973
|
name: "optionPdf",
|
|
973
|
-
fn:
|
|
974
|
+
fn: m(() => [
|
|
974
975
|
x(e.$slots, "optionPdf", {}, void 0, !0)
|
|
975
976
|
]),
|
|
976
977
|
key: "2"
|
|
977
978
|
} : void 0,
|
|
978
979
|
e.$slots.optionCsv ? {
|
|
979
980
|
name: "optionCsv",
|
|
980
|
-
fn:
|
|
981
|
+
fn: m(() => [
|
|
981
982
|
x(e.$slots, "optionCsv", {}, void 0, !0)
|
|
982
983
|
]),
|
|
983
984
|
key: "3"
|
|
984
985
|
} : void 0,
|
|
985
986
|
e.$slots.optionImg ? {
|
|
986
987
|
name: "optionImg",
|
|
987
|
-
fn:
|
|
988
|
+
fn: m(() => [
|
|
988
989
|
x(e.$slots, "optionImg", {}, void 0, !0)
|
|
989
990
|
]),
|
|
990
991
|
key: "4"
|
|
991
992
|
} : void 0,
|
|
992
993
|
e.$slots.optionTable ? {
|
|
993
994
|
name: "optionTable",
|
|
994
|
-
fn:
|
|
995
|
+
fn: m(() => [
|
|
995
996
|
x(e.$slots, "optionTable", {}, void 0, !0)
|
|
996
997
|
]),
|
|
997
998
|
key: "5"
|
|
998
999
|
} : void 0,
|
|
999
1000
|
e.$slots.optionLabels ? {
|
|
1000
1001
|
name: "optionLabels",
|
|
1001
|
-
fn:
|
|
1002
|
+
fn: m(() => [
|
|
1002
1003
|
x(e.$slots, "optionLabels", {}, void 0, !0)
|
|
1003
1004
|
]),
|
|
1004
1005
|
key: "6"
|
|
1005
1006
|
} : void 0,
|
|
1006
1007
|
e.$slots.optionStack ? {
|
|
1007
1008
|
name: "optionStack",
|
|
1008
|
-
fn:
|
|
1009
|
+
fn: m(() => [
|
|
1009
1010
|
x(e.$slots, "optionStack", {}, void 0, !0)
|
|
1010
1011
|
]),
|
|
1011
1012
|
key: "7"
|
|
1012
1013
|
} : void 0,
|
|
1013
1014
|
e.$slots.optionFullscreen ? {
|
|
1014
1015
|
name: "optionFullscreen",
|
|
1015
|
-
fn:
|
|
1016
|
+
fn: m(({ toggleFullscreen: o, isFullscreen: n }) => [
|
|
1016
1017
|
x(e.$slots, "optionFullscreen", W(X({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
|
|
1017
1018
|
]),
|
|
1018
1019
|
key: "8"
|
|
1019
1020
|
} : void 0,
|
|
1020
1021
|
e.$slots.optionAnnotator ? {
|
|
1021
1022
|
name: "optionAnnotator",
|
|
1022
|
-
fn:
|
|
1023
|
+
fn: m(({ toggleAnnotator: o, isAnnotator: n }) => [
|
|
1023
1024
|
x(e.$slots, "optionAnnotator", W(X({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
|
|
1024
1025
|
]),
|
|
1025
1026
|
key: "9"
|
|
1026
1027
|
} : void 0
|
|
1027
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : U("", !0),
|
|
1028
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : U("", !0),
|
|
1028
1029
|
ne("div", {
|
|
1029
1030
|
class: "vue-ui-xy-canvas",
|
|
1030
1031
|
style: K(`position: relative; aspect-ratio: ${Ue.value}`),
|
|
@@ -1056,7 +1057,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1056
1057
|
}
|
|
1057
1058
|
}
|
|
1058
1059
|
}, null, 8, ["config"])),
|
|
1059
|
-
Ga(p(
|
|
1060
|
+
Ga(p(ba), {
|
|
1060
1061
|
show: u.value.showTooltip && ve.value,
|
|
1061
1062
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1062
1063
|
color: a.value.style.chart.tooltip.color,
|
|
@@ -1072,10 +1073,10 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1072
1073
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1073
1074
|
isCustom: p(na)(a.value.style.chart.tooltip.customFormat)
|
|
1074
1075
|
}, {
|
|
1075
|
-
"tooltip-before":
|
|
1076
|
+
"tooltip-before": m(() => [
|
|
1076
1077
|
x(e.$slots, "tooltip-before", W(X({ ...Oe.value })), void 0, !0)
|
|
1077
1078
|
]),
|
|
1078
|
-
"tooltip-after":
|
|
1079
|
+
"tooltip-after": m(() => [
|
|
1079
1080
|
x(e.$slots, "tooltip-after", W(X({ ...Oe.value })), void 0, !0)
|
|
1080
1081
|
]),
|
|
1081
1082
|
_: 3
|
|
@@ -1087,7 +1088,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1087
1088
|
style: K(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1088
1089
|
"data-dom-to-png-ignore": ""
|
|
1089
1090
|
}, [
|
|
1090
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(
|
|
1091
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(ml, {
|
|
1091
1092
|
ref_key: "slicerComponent",
|
|
1092
1093
|
ref: G,
|
|
1093
1094
|
key: `slicer_${Re.value}`,
|
|
@@ -1114,7 +1115,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1114
1115
|
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1115
1116
|
onReset: Ge
|
|
1116
1117
|
}, {
|
|
1117
|
-
"reset-action":
|
|
1118
|
+
"reset-action": m(({ reset: o }) => [
|
|
1118
1119
|
x(e.$slots, "reset-action", W(X({ reset: o })), void 0, !0)
|
|
1119
1120
|
]),
|
|
1120
1121
|
_: 3
|
|
@@ -1130,7 +1131,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1130
1131
|
key: `legend_${ke.value}`,
|
|
1131
1132
|
onClickMarker: t[3] || (t[3] = ({ i: o }) => Je(o))
|
|
1132
1133
|
}, {
|
|
1133
|
-
item:
|
|
1134
|
+
item: m(({ legend: o, index: n }) => [
|
|
1134
1135
|
ne("div", {
|
|
1135
1136
|
onClick: (c) => o.segregate(),
|
|
1136
1137
|
style: K(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
|
|
@@ -1169,7 +1170,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
}
|
|
1171
1172
|
}, {
|
|
1172
|
-
content:
|
|
1173
|
+
content: m(() => [
|
|
1173
1174
|
(z(), D(p(fa), {
|
|
1174
1175
|
key: `table_${Le.value}`,
|
|
1175
1176
|
colNames: ye.value.colNames,
|
|
@@ -1179,10 +1180,10 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1179
1180
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1180
1181
|
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1181
1182
|
}, {
|
|
1182
|
-
th:
|
|
1183
|
+
th: m(({ th: o }) => [
|
|
1183
1184
|
ne("div", { innerHTML: o }, null, 8, wl)
|
|
1184
1185
|
]),
|
|
1185
|
-
td:
|
|
1186
|
+
td: m(({ td: o }) => [
|
|
1186
1187
|
ja(ua(o), 1)
|
|
1187
1188
|
]),
|
|
1188
1189
|
_: 1
|
|
@@ -1200,7 +1201,7 @@ const Ll = ["id"], kl = ["onClick"], Cl = {
|
|
|
1200
1201
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : U("", !0)
|
|
1201
1202
|
], 46, Ll));
|
|
1202
1203
|
}
|
|
1203
|
-
}, Dl = /* @__PURE__ */ xl(zl, [["__scopeId", "data-v-
|
|
1204
|
+
}, Dl = /* @__PURE__ */ xl(zl, [["__scopeId", "data-v-e72e8115"]]);
|
|
1204
1205
|
export {
|
|
1205
1206
|
Dl as default
|
|
1206
1207
|
};
|
package/package.json
CHANGED