vue-data-ui 2.15.3 → 2.15.5
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/{Arrow-CzzsKX8z.js → Arrow-CI_Chty0.js} +1 -1
- package/dist/{BaseDraggableDialog-DCJi-1yP.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
- package/dist/{BaseIcon-DhFdv5GX.js → BaseIcon-DTTmgKBX.js} +1 -1
- package/dist/{ColorPicker-DVErVt1a.js → ColorPicker-BySm_2Gi.js} +6 -6
- package/dist/{DataTable-C1m1pLCZ.js → DataTable-CLeYfh93.js} +2 -2
- package/dist/{Legend-Bv4X-1rt.js → Legend-B949nNP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSnwu1Ay.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
- package/dist/{PackageVersion-Bto74qGz.js → PackageVersion-Djh3oJFs.js} +1 -1
- package/dist/{PenAndPaper-Ch0HBNVZ.js → PenAndPaper-BlF1d4XE.js} +3 -3
- package/dist/{Shape-G58fHOyr.js → Shape-DmDw1mpi.js} +1 -1
- package/dist/{Slicer-B31lD5Se.js → Slicer-mINKiN6T.js} +13 -13
- package/dist/{SparkTooltip-CT5F0yPg.js → SparkTooltip-B888Ijov.js} +1 -1
- package/dist/{Title-HKMJNA2t.js → Title-CPvPrwF4.js} +1 -1
- package/dist/{Tooltip-C3Dnr3zM.js → Tooltip-BiWfcBQk.js} +1 -1
- package/dist/{UserOptions-BnD3w_M-.js → UserOptions-CFllUVQ4.js} +2 -2
- package/dist/{dom-to-png-DvtSOm-q.js → dom-to-png-DeajhH5Z.js} +1 -1
- package/dist/{img-PRKpmCrJ.js → img-4TaH43jS.js} +1 -1
- package/dist/{index-pz3uy0bj.js → index-CBhz79Be.js} +12 -6
- package/dist/{pdf-NCZXhCbT.js → pdf-BlK5aBh-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-BTwRpxJ6.js → useNestedProp-Cg9K3ISG.js} +1 -1
- package/dist/{usePrinter-CpYwk8Nl.js → usePrinter-DNC_9y1d.js} +2 -2
- package/dist/{vue-data-ui-edDJqWqp.js → vue-data-ui-DcP8arpr.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Cj4MAAl3.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
- package/dist/{vue-ui-accordion-DVMQOCog.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B9-mIJoM.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
- package/dist/{vue-ui-annotator-BelwH44r.js → vue-ui-annotator-_31h_MMe.js} +2 -2
- package/dist/{vue-ui-bullet-7voYFUyR.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
- package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
- package/dist/{vue-ui-carousel-table-CCu7pOvx.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
- package/dist/{vue-ui-chestnut-DaIhjU0E.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
- package/dist/{vue-ui-chord-ol8it32M.js → vue-ui-chord-C8hE1GXD.js} +47 -47
- package/dist/{vue-ui-circle-pack-4dYH7oFz.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
- package/dist/{vue-ui-cursor-BWo0SND4.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
- package/dist/{vue-ui-dashboard-DLP5BjC2.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
- package/dist/{vue-ui-digits-vLYOgwYN.js → vue-ui-digits-D4Du84P3.js} +2 -2
- package/dist/{vue-ui-donut-DA1mt39C.js → vue-ui-donut-C0dqyYUE.js} +7 -7
- package/dist/{vue-ui-donut-evolution-Y5NvWAOf.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
- package/dist/{vue-ui-dumbbell-DHGaUXgf.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
- package/dist/{vue-ui-flow-CPRwtkW7.js → vue-ui-flow-DalrAEmv.js} +24 -24
- package/dist/{vue-ui-funnel-Cdaj7JLP.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
- package/dist/{vue-ui-galaxy-Bml38eED.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
- package/dist/{vue-ui-gauge-DIKUWHow.js → vue-ui-gauge-D71TDx5z.js} +17 -17
- package/dist/{vue-ui-gizmo-CDGfldQ2.js → vue-ui-gizmo-CJChusop.js} +3 -3
- package/dist/{vue-ui-heatmap-Cvz3HWSo.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
- package/dist/{vue-ui-history-plot-CEw6Ijds.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
- package/dist/{vue-ui-kpi-BOU7jfII.js → vue-ui-kpi-CJut0fnk.js} +3 -3
- package/dist/{vue-ui-mini-loader-B0QHAAN0.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
- package/dist/{vue-ui-molecule-DpZAl654.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
- package/dist/{vue-ui-mood-radar-DVTDXHkP.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Cs_jOkZf.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
- package/dist/{vue-ui-onion-BNm4LDqz.js → vue-ui-onion-DVtreg0e.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DF8yQwqD.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
- package/dist/{vue-ui-quadrant-CsT_YtVJ.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
- package/dist/{vue-ui-quick-chart-BQ8LWKNh.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
- package/dist/{vue-ui-radar-BTXb1OpM.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
- package/dist/{vue-ui-rating-10ZP5oGv.js → vue-ui-rating-Drx2P4xK.js} +2 -2
- package/dist/{vue-ui-relation-circle-BDY_mStf.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
- package/dist/{vue-ui-ridgeline-DiUQ9G50.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
- package/dist/{vue-ui-rings-uOzklelU.js → vue-ui-rings-DWMToWPQ.js} +21 -21
- package/dist/{vue-ui-scatter-o8fU3CPQ.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
- package/dist/{vue-ui-skeleton-DtyqxWGZ.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
- package/dist/{vue-ui-smiley-bleVUcTp.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
- package/dist/{vue-ui-spark-trend-BSxc2AeN.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
- package/dist/{vue-ui-sparkbar-BpGhOBfa.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BGm17y7o.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C8_9lU73.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
- package/dist/{vue-ui-sparkline-BEC-1ljx.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BcDRG3Q4.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
- package/dist/{vue-ui-stackbar-B9rcNFMU.js → vue-ui-stackbar-DaaB_FjD.js} +220 -210
- package/dist/{vue-ui-strip-plot-DiU5qgNv.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
- package/dist/{vue-ui-table-CVciwbm2.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Do0wz-jb.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
- package/dist/{vue-ui-table-sparkline-Manlzy4B.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
- package/dist/{vue-ui-thermometer-CAZrRTaM.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
- package/dist/{vue-ui-timer-DuOTyXM6.js → vue-ui-timer-C01Ipde6.js} +30 -30
- package/dist/{vue-ui-tiremarks-BCETzTS2.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
- package/dist/{vue-ui-treemap-DjINZD63.js → vue-ui-treemap-DJEl32W1.js} +75 -75
- package/dist/{vue-ui-vertical-bar-D9dKYc0V.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
- package/dist/{vue-ui-waffle-BMUnrWw9.js → vue-ui-waffle-rFSfHosn.js} +30 -30
- package/dist/{vue-ui-wheel-DEpzAPrw.js → vue-ui-wheel-B6md6ra7.js} +5 -5
- package/dist/{vue-ui-word-cloud-BBpm9VoF.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
- package/dist/{vue-ui-world-D4G5xytB.js → vue-ui-world-d09xOrf0.js} +5 -5
- package/dist/{vue-ui-xy-BXY4ixtF.js → vue-ui-xy-CuzhWfRK.js} +20 -20
- package/dist/{vue-ui-xy-canvas-BLOjFl9f.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-BiAWi-oW.js +0 -768
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as X, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne,
|
|
1
|
+
import { R as X, _ as ae, a8 as ue, a9 as ce, aa as de, ab as ge, ac as fe, ad as Ie, ae as xe, c as ne, A as Ne, E as me, w as be, s as Fe, o as _e, a2 as Ae, af as ye, x as Le, C as Ce, y as Se, a7 as ke, e as we, r as Oe, f as oe, I as Ge, ag as ve, U as pe, V as ze, q as Me, b as Te, z as Pe, d as Ve, ah as Re, v as He, ai as De, D as Be, a5 as We, aj as Ee, i as Ye, F as qe, L as Xe, u as Ue, p as Ze, B as Je, a as Ke, t as Qe } from "./index-CBhz79Be.js";
|
|
2
2
|
import { u as je } from "./useMouse-AicQS8Vf.js";
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
3
|
+
import { u as ie } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
4
|
import { u as $e } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
5
|
import { defineAsyncComponent as Z, resolveComponent as q, createElementBlock as s, openBlock as i, normalizeStyle as _, normalizeClass as j, createBlock as U, createCommentVNode as h, createVNode as le, createSlots as et, withCtx as B, renderSlot as G, normalizeProps as $, guardReactiveProps as ee, createElementVNode as I, Fragment as u, renderList as x, toDisplayString as V, mergeProps as se, withDirectives as tt, vModelCheckbox as lt, createTextVNode as rt } from "vue";
|
|
6
|
-
import { S as at } from "./Slicer-
|
|
7
|
-
import it from "./Title-
|
|
8
|
-
import { _ as st } from "./Shape-
|
|
6
|
+
import { S as at } from "./Slicer-mINKiN6T.js";
|
|
7
|
+
import it from "./Title-CPvPrwF4.js";
|
|
8
|
+
import { _ as st } from "./Shape-DmDw1mpi.js";
|
|
9
9
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const ct = ne(), ot = {
|
|
11
11
|
name: "vue-ui-xy",
|
|
@@ -29,15 +29,15 @@ const ct = ne(), ot = {
|
|
|
29
29
|
Title: it,
|
|
30
30
|
// Must be ready in responsive mode
|
|
31
31
|
Shape: st,
|
|
32
|
-
DataTable: Z(() => import("./DataTable-
|
|
33
|
-
Tooltip: Z(() => import("./Tooltip-
|
|
34
|
-
UserOptions: Z(() => import("./UserOptions-
|
|
35
|
-
BaseIcon: Z(() => import("./BaseIcon-
|
|
36
|
-
TableSparkline: Z(() => import("./vue-ui-table-sparkline-
|
|
37
|
-
Skeleton: Z(() => import("./vue-ui-skeleton-
|
|
38
|
-
Accordion: Z(() => import("./vue-ui-accordion-
|
|
39
|
-
PackageVersion: Z(() => import("./PackageVersion-
|
|
40
|
-
PenAndPaper: Z(() => import("./PenAndPaper-
|
|
32
|
+
DataTable: Z(() => import("./DataTable-CLeYfh93.js")),
|
|
33
|
+
Tooltip: Z(() => import("./Tooltip-BiWfcBQk.js")),
|
|
34
|
+
UserOptions: Z(() => import("./UserOptions-CFllUVQ4.js")),
|
|
35
|
+
BaseIcon: Z(() => import("./BaseIcon-DTTmgKBX.js")),
|
|
36
|
+
TableSparkline: Z(() => import("./vue-ui-table-sparkline-Cxj3ZoBu.js")),
|
|
37
|
+
Skeleton: Z(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")),
|
|
38
|
+
Accordion: Z(() => import("./vue-ui-accordion-BWiiOpGO.js")),
|
|
39
|
+
PackageVersion: Z(() => import("./PackageVersion-Djh3oJFs.js")),
|
|
40
|
+
PenAndPaper: Z(() => import("./PenAndPaper-BlF1d4XE.js"))
|
|
41
41
|
},
|
|
42
42
|
data() {
|
|
43
43
|
this.dataset.forEach((f, l) => {
|
|
@@ -805,7 +805,7 @@ const ct = ne(), ot = {
|
|
|
805
805
|
},
|
|
806
806
|
annotationsY() {
|
|
807
807
|
const r = this.FINAL_CONFIG.chart.annotations;
|
|
808
|
-
if (!Array.isArray(r) || r.every((N) => !N.show)) return [];
|
|
808
|
+
if (!r || !Array.isArray(r) || r.every((N) => !N.show)) return [];
|
|
809
809
|
const o = r.filter(
|
|
810
810
|
(N) => N.show && (N.yAxis.yTop != null || N.yAxis.yBottom != null)
|
|
811
811
|
);
|
|
@@ -955,10 +955,10 @@ const ct = ne(), ot = {
|
|
|
955
955
|
userConfig: this.config,
|
|
956
956
|
defaultConfig: r
|
|
957
957
|
});
|
|
958
|
-
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length
|
|
958
|
+
return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? o.chart.highlightArea = this.config.chart.highlightArea : o.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? o.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : o.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? o.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : o.chart.grid.labels.yAxis.scaleMax = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.startIndex") ? o.chart.zoom.startIndex = this.config.chart.zoom.startIndex : o.chart.zoom.startIndex = null, this.config && this.hasDeepProperty(this.config, "chart.zoom.endIndex") ? o.chart.zoom.endIndex = this.config.chart.zoom.endIndex : o.chart.zoom.endIndex = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.groupColor") ? o.chart.grid.labels.yAxis.groupColor = this.config.chart.grid.labels.yAxis.groupColor : o.chart.grid.labels.yAxis.groupColor = null, this.config && this.config.chart.annotations && Array.isArray(this.config.chart.annotations) && this.config.chart.annotations.length ? o.chart.annotations = this.config.chart.annotations.map((d) => ie({
|
|
959
959
|
defaultConfig: r.chart.annotations[0],
|
|
960
960
|
userConfig: d
|
|
961
|
-
}))
|
|
961
|
+
})) : o.chart.annotations = [], o.theme ? {
|
|
962
962
|
...ie({
|
|
963
963
|
userConfig: this.themes.vue_ui_xy[o.theme] || this.config,
|
|
964
964
|
defaultConfig: o
|
|
@@ -1186,7 +1186,7 @@ const ct = ne(), ot = {
|
|
|
1186
1186
|
async generatePdf() {
|
|
1187
1187
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1188
1188
|
try {
|
|
1189
|
-
const { default: r } = await import("./pdf-
|
|
1189
|
+
const { default: r } = await import("./pdf-BlK5aBh-.js");
|
|
1190
1190
|
await r({
|
|
1191
1191
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1192
1192
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1209,7 +1209,7 @@ const ct = ne(), ot = {
|
|
|
1209
1209
|
async generateImage() {
|
|
1210
1210
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1211
1211
|
try {
|
|
1212
|
-
const { default: r } = await import("./img-
|
|
1212
|
+
const { default: r } = await import("./img-4TaH43jS.js");
|
|
1213
1213
|
await r({
|
|
1214
1214
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1215
1215
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -3076,7 +3076,7 @@ function Xr(r, o, d, f, l, e) {
|
|
|
3076
3076
|
}, 8, ["config"])) : h("", !0)
|
|
3077
3077
|
], 46, ht);
|
|
3078
3078
|
}
|
|
3079
|
-
const la = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-
|
|
3079
|
+
const la = /* @__PURE__ */ nt(ot, [["render", Xr], ["__scopeId", "data-v-b425447d"]]);
|
|
3080
3080
|
export {
|
|
3081
3081
|
la as default
|
|
3082
3082
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as
|
|
2
|
-
import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a2 as ll,
|
|
1
|
+
import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Ga, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Za, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
|
|
2
|
+
import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a2 as ll, G as tl, aj as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-CBhz79Be.js";
|
|
3
3
|
import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as da } from "./useNestedProp-
|
|
5
|
-
import { u as fl } from "./usePrinter-
|
|
4
|
+
import { u as da } from "./useNestedProp-Cg9K3ISG.js";
|
|
5
|
+
import { u as fl } from "./usePrinter-DNC_9y1d.js";
|
|
6
6
|
import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ml from "./Legend-
|
|
9
|
-
import bl from "./Title-
|
|
10
|
-
import { S as xl } from "./Slicer-
|
|
8
|
+
import ml from "./Legend-B949nNP9.js";
|
|
9
|
+
import bl from "./Title-CPvPrwF4.js";
|
|
10
|
+
import { S as xl } from "./Slicer-mINKiN6T.js";
|
|
11
11
|
import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
12
|
import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Cl = ["id"], wl = ["onClick"], zl = {
|
|
@@ -31,14 +31,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
33
|
setup(Oe, { expose: ha, emit: ya }) {
|
|
34
|
-
const fa = K(() => import("./vue-ui-accordion-
|
|
34
|
+
const fa = K(() => import("./vue-ui-accordion-BWiiOpGO.js")), ga = K(() => import("./DataTable-CLeYfh93.js")), pa = K(() => import("./NonSvgPenAndPaper-zuNWbm52.js")), ma = K(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), ba = K(() => import("./Tooltip-BiWfcBQk.js")), xa = K(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), N = d(!0), G = d(!0), xe = d(null), Pe = d(0), Fe = d(0), he = d(!1), Ee = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
|
|
35
35
|
ra(() => {
|
|
36
36
|
Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
37
37
|
});
|
|
38
38
|
const a = x({
|
|
39
39
|
get: () => Ue(),
|
|
40
40
|
set: (e) => e
|
|
41
|
-
}), { userOptionsVisible: ze, setUserOptionsVisibility:
|
|
41
|
+
}), { userOptionsVisible: ze, setUserOptionsVisibility: He, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
|
|
42
42
|
function Ue() {
|
|
43
43
|
const e = da({
|
|
44
44
|
userConfig: g.config,
|
|
@@ -71,7 +71,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
71
71
|
function wa(e) {
|
|
72
72
|
he.value = e, Fe.value += 1;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const Ge = x(() => al(a.value.customPalette)), I = x(() => Z.value ? Math.max(...Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
|
|
75
75
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
76
76
|
return {
|
|
77
77
|
canvasWidth: y.value,
|
|
@@ -85,14 +85,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
85
85
|
slot: e / (u.value.end - u.value.start)
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
|
-
function
|
|
88
|
+
function Ze(e, t) {
|
|
89
89
|
return e / t;
|
|
90
90
|
}
|
|
91
91
|
function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
|
|
92
92
|
return t.map((Y, S) => {
|
|
93
|
-
const E = v.min < 0 ? Math.abs(v.min) : 0, U =
|
|
93
|
+
const E = v.min < 0 ? Math.abs(v.min) : 0, U = Ze(Y + E, E + v.max);
|
|
94
94
|
let re, se;
|
|
95
|
-
e && (re = v.min, se =
|
|
95
|
+
e && (re = v.min, se = Ze(Y - re, v.max - re));
|
|
96
96
|
let O = 0;
|
|
97
97
|
return f === null ? O = l.value.bottom - l.value.height * (e ? se : U) : O = l.value.bottom - C - i * (e ? se : U), {
|
|
98
98
|
x: l.value.left + l.value.slot * S + l.value.slot / 2,
|
|
@@ -102,7 +102,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
const m = x(() => {
|
|
105
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
105
|
+
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(u.value.start, u.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(u.value.start, u.value.end))), o = Me(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, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
|
|
106
106
|
y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
|
|
107
107
|
x: l.value.left - 8,
|
|
108
108
|
value: i
|
|
@@ -133,19 +133,19 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
133
133
|
{ datapoint: e, seriesIndex: c.value }
|
|
134
134
|
)}</span>
|
|
135
135
|
</div>
|
|
136
|
-
`)),
|
|
136
|
+
`)), Z = x(() => g.dataset.map((e, t) => ({
|
|
137
137
|
...e,
|
|
138
138
|
series: ll({
|
|
139
139
|
data: tl(e.series),
|
|
140
140
|
threshold: a.value.downsample.threshold
|
|
141
141
|
}),
|
|
142
142
|
absoluteIndex: t,
|
|
143
|
-
color: na(e.color ||
|
|
143
|
+
color: na(e.color || Ge.value[t] || B[t] || B[t % B.length])
|
|
144
144
|
})));
|
|
145
145
|
A(I, (e) => {
|
|
146
146
|
e && je();
|
|
147
147
|
});
|
|
148
|
-
const h = x(() => ol(
|
|
148
|
+
const h = x(() => ol(Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
149
149
|
...e,
|
|
150
150
|
series: e.series.slice(u.value.start, u.value.end)
|
|
151
151
|
})).map((e, t) => {
|
|
@@ -543,7 +543,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
|
-
const
|
|
546
|
+
const H = x(() => Ll({
|
|
547
547
|
values: a.value.style.chart.grid.y.timeLabels.values,
|
|
548
548
|
maxDatapoints: I.value,
|
|
549
549
|
formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
|
|
@@ -554,7 +554,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
554
554
|
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
555
555
|
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
|
|
556
556
|
s.value,
|
|
557
|
-
|
|
557
|
+
H.value[e] ? H.value[e].text : e + 1,
|
|
558
558
|
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
559
559
|
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
560
560
|
{
|
|
@@ -659,7 +659,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
659
659
|
);
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Na(e) {
|
|
663
663
|
e.useArea ? r.value.stacked ? ca(
|
|
664
664
|
s.value,
|
|
665
665
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
@@ -679,7 +679,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
679
679
|
lineWidth: 3
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function Ha() {
|
|
683
683
|
h.value.forEach((e, t) => {
|
|
684
684
|
k(
|
|
685
685
|
s.value,
|
|
@@ -695,8 +695,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
function oe() {
|
|
698
|
-
Ta(),
|
|
699
|
-
(e.type === "line" || !e.type) &&
|
|
698
|
+
Ta(), N.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
|
|
699
|
+
(e.type === "line" || !e.type) && Na(e), G.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
|
|
700
700
|
}), xe.value = yl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
|
|
701
701
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
702
702
|
if (!e.coordinatesLine[c.value]) return;
|
|
@@ -713,11 +713,11 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
713
713
|
}
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
|
-
})), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(),
|
|
716
|
+
})), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), N.value = !1;
|
|
717
717
|
}
|
|
718
718
|
const ye = cl(() => {
|
|
719
|
-
|
|
720
|
-
}, I.value > 200 ? 10 : 1, !
|
|
719
|
+
G.value = !0, Ma();
|
|
720
|
+
}, I.value > 200 ? 10 : 1, !G.value);
|
|
721
721
|
function ue(e) {
|
|
722
722
|
if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
|
|
723
723
|
const { y: t, value: o } = e.coordinatesLine[c.value];
|
|
@@ -730,7 +730,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const v = n * 2 - l.value.left;
|
|
733
|
-
if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !
|
|
733
|
+
if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !G.value) return;
|
|
734
734
|
let C = "";
|
|
735
735
|
const i = a.value.style.chart.tooltip.customFormat;
|
|
736
736
|
ia(i) && il(() => i({
|
|
@@ -755,20 +755,20 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
755
755
|
})),
|
|
756
756
|
series: h.value,
|
|
757
757
|
config: a.value
|
|
758
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${
|
|
758
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${H.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), G.value = !1;
|
|
759
759
|
}
|
|
760
760
|
A(() => c.value, (e) => {
|
|
761
761
|
ye();
|
|
762
762
|
}), A(() => u.value, (e) => {
|
|
763
|
-
|
|
763
|
+
N.value = !0, oe();
|
|
764
764
|
}, {
|
|
765
765
|
deep: !0
|
|
766
766
|
}), A(() => r.value.showDataLabels, (e) => {
|
|
767
|
-
|
|
767
|
+
N.value = !0, oe();
|
|
768
768
|
}), A(() => M.value, (e) => {
|
|
769
769
|
e && oe();
|
|
770
770
|
}), A(() => r.value.stacked, (e) => {
|
|
771
|
-
|
|
771
|
+
N.value = !0, G.value = !0, ye();
|
|
772
772
|
});
|
|
773
773
|
function Ua() {
|
|
774
774
|
ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
|
|
@@ -788,7 +788,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
788
788
|
title: a.value.style.chart.title.text ? Ee.value : null,
|
|
789
789
|
legend: a.value.style.chart.legend.show ? Ae.value : null,
|
|
790
790
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
|
|
791
|
-
source:
|
|
791
|
+
source: Ne.value
|
|
792
792
|
});
|
|
793
793
|
requestAnimationFrame(() => {
|
|
794
794
|
We.value = `${t} / ${o}`;
|
|
@@ -798,19 +798,19 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
798
798
|
}
|
|
799
799
|
J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
|
|
800
800
|
for (const t of e)
|
|
801
|
-
t.contentBoxSize && te.value && (
|
|
801
|
+
t.contentBoxSize && te.value && (N.value = !0, ye());
|
|
802
802
|
}), J.value.observe(te.value), qe();
|
|
803
803
|
}
|
|
804
804
|
Va(() => {
|
|
805
805
|
J.value && J.value.disconnect(), F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect());
|
|
806
806
|
});
|
|
807
807
|
function Ke(e) {
|
|
808
|
-
ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e),
|
|
808
|
+
ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, ye();
|
|
809
809
|
}
|
|
810
|
-
const Qe = x(() =>
|
|
810
|
+
const Qe = x(() => Z.value.map((e, t) => ({
|
|
811
811
|
...e,
|
|
812
812
|
name: e.name,
|
|
813
|
-
color: na(e.color) ||
|
|
813
|
+
color: na(e.color) || Ge.value[t] || B[t] || B[t % B.length],
|
|
814
814
|
shape: e.shape || "circle",
|
|
815
815
|
prefix: e.prefix || "",
|
|
816
816
|
suffix: e.suffix || "",
|
|
@@ -832,7 +832,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
832
832
|
let t = [];
|
|
833
833
|
for (let v = 0; v < I.value; v += 1) {
|
|
834
834
|
const C = h.value.map((i) => i.series[v] ?? 0).reduce((i, f) => i + f, 0);
|
|
835
|
-
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ?
|
|
835
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? H.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
|
|
836
836
|
}
|
|
837
837
|
const o = {
|
|
838
838
|
th: {
|
|
@@ -856,7 +856,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
856
856
|
type: o.type
|
|
857
857
|
})), t = [];
|
|
858
858
|
for (let o = u.value.start; o < u.value.end; o += 1) {
|
|
859
|
-
const n = [a.value.style.chart.grid.y.timeLabels.values[o] ?
|
|
859
|
+
const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? H.value[o].text : o + 1];
|
|
860
860
|
h.value.forEach((v) => {
|
|
861
861
|
n.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
862
862
|
}), t.push(n);
|
|
@@ -901,9 +901,9 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
901
901
|
ref_key: "xy",
|
|
902
902
|
ref: le,
|
|
903
903
|
id: `xy_canvas_${be.value}`,
|
|
904
|
-
class:
|
|
905
|
-
onMouseenter: t[5] || (t[5] = () => p(
|
|
906
|
-
onMouseleave: t[6] || (t[6] = () => p(
|
|
904
|
+
class: Ga(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
905
|
+
onMouseenter: t[5] || (t[5] = () => p(He)(!0)),
|
|
906
|
+
onMouseleave: t[6] || (t[6] = () => p(He)(!1))
|
|
907
907
|
}, [
|
|
908
908
|
a.value.style.chart.title.text ? (z(), ne("div", {
|
|
909
909
|
key: 0,
|
|
@@ -962,7 +962,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
962
962
|
style: Q({
|
|
963
963
|
visibility: p(Ye) ? p(ze) ? "visible" : "hidden" : "visible"
|
|
964
964
|
})
|
|
965
|
-
},
|
|
965
|
+
}, Za({ _: 2 }, [
|
|
966
966
|
e.$slots.menuIcon ? {
|
|
967
967
|
name: "menuIcon",
|
|
968
968
|
fn: b(({ isOpen: o, color: n }) => [
|
|
@@ -1104,8 +1104,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
1104
1104
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1105
1105
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
1106
1106
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
1107
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ?
|
|
1108
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ?
|
|
1107
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? H.value[u.value.start].text : "",
|
|
1108
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? H.value[u.value.end - 1].text : "",
|
|
1109
1109
|
textColor: a.value.style.chart.color,
|
|
1110
1110
|
inputColor: a.value.style.chart.zoom.color,
|
|
1111
1111
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
@@ -1157,7 +1157,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
|
|
|
1157
1157
|
e.$slots.source ? (z(), ne("div", {
|
|
1158
1158
|
key: 3,
|
|
1159
1159
|
ref_key: "source",
|
|
1160
|
-
ref:
|
|
1160
|
+
ref: Ne,
|
|
1161
1161
|
dir: "auto"
|
|
1162
1162
|
}, [
|
|
1163
1163
|
L(e.$slots, "source", {}, void 0, !0)
|
package/package.json
CHANGED