vue-data-ui 3.2.8 → 3.3.1
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-Bb0bGghy.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-eZbszQrv.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-BfykJm_B.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-CSja1SGU.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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-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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-CEjkWSLj.js} +462 -446
- package/dist/{pdf-YD0ShN36.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-Ce3PwN8T.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/vue-data-ui-j8Dnx_Ui.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-Cml_eeEU.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-MULKSv5c.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-BHO5zu9m.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-B7EjAlSi.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DXnYj0Gc.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-B1Usqda-.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-DgXH82Hg.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-BQfaZFFz.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-C6xHAPp8.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-D_CKlaay.js} +406 -384
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-swJu7UL2.js} +662 -645
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-siD31WFG.js} +295 -274
- package/dist/vue-ui-flow-BZCnqIs-.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-DmgcIRzW.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-C-zegxf9.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-D6C8eUvP.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-iSYUVKlt.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-RHDxexNf.js} +386 -365
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-4nwAd1qA.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-BhisFSGQ.js} +176 -160
- package/dist/vue-ui-mood-radar-B8yHPdrV.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-Bfp0oVSK.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-f1B0W_oT.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-DcY-0R-7.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-DuzopA33.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-45Tm1UnC.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-DDS405TF.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-BqXHJEvi.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-Lx7YOCRg.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-crjrV65X.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-Bk4liS2c.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-Pu9gPf97.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-BmaybxJn.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-DvhcXniz.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-D4Brfset.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-D5_lR__d.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DxNG5QQg.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-BTFzo3fq.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-B8glHsE6.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-C5Bro8-W.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-Ddu9yx2S.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-D3tgrV_k.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-BxQIZoXd.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-BwFlr_19.js} +5 -5
- package/dist/vue-ui-tiremarks-KwISwJS6.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-C6PLDL2Y.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-CTmRo06n.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-BwOLL9aa.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KI9mkz8y.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-DTyjx6X4.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-C3QXAlC7.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-b-CN-G4J.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-CdkE1NHd.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as N, ref as v, shallowRef as He, computed as h, onMounted as Dt, onBeforeUnmount as Ft, toRefs as Xt, watch as K, watchEffect as Bt, createElementBlock as r, openBlock as o, unref as i, normalizeStyle as S, normalizeClass as D, renderSlot as p, createBlock as I, createCommentVNode as d, createElementVNode as _, createVNode as fe, createSlots as We, withCtx as g, normalizeProps as B, guardReactiveProps as R, Fragment as m, renderList as b, toDisplayString as T, Teleport as Rt, resolveDynamicComponent as Yt, mergeProps as Et, createTextVNode as je, nextTick as Ht } from "vue";
|
|
2
|
+
import { c as Ue, o as Ge, f as Ve, g as Wt, t as jt, e as Ut, h as Gt, p as Q, C as qe, a as Y, d as E, X as Vt, m as qt, r as Zt, L as Jt, E as Kt, D as F, b as Qt, B as ee, x as el, y as tl, z as ll } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as Ze, u as al } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as sl, a as Je } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as ol, B as rl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as nl } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as ul } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as cl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as vl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import hl from "./img-J2dLIr8Y.js";
|
|
12
|
+
import dl from "./Title-Camz1Lce.js";
|
|
13
|
+
import { t as yl } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import fl from "./Legend-By4rru90.js";
|
|
15
|
+
import { _ as xl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const pl = ["id"], gl = ["id"], ml = ["xmlns", "viewBox"], bl = ["x", "y", "width", "height"], kl = { key: 1 }, wl = ["id"], Cl = ["stop-color"], Al = ["stop-color"], _l = ["stop-color"], Sl = { key: 2 }, Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = { key: 3 }, Tl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Ml = ["x", "y", "fill", "font-size"], zl = ["transform", "font-size", "fill", "font-weight"], Ol = { key: 6 }, Nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = { key: 7 }, Pl = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Dl = ["transform", "fill", "font-size", "text-anchor"], Fl = ["x", "y", "font-size", "fill", "font-weight"], Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rl = ["d", "stroke", "stroke-width"], Yl = ["d", "stroke", "stroke-width"], El = ["cx", "cy", "fill", "r"], Hl = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], Wl = { key: 1 }, jl = ["x", "y", "font-size", "fill", "font-weight"], Ul = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Gl = { key: 2 }, Vl = ["x", "y", "font-size", "font-weight", "fill"], ql = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Zl = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Jl = ["id"], Kl = ["onClick"], Ql = ["innerHTML"], ea = {
|
|
19
20
|
__name: "vue-ui-history-plot",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,41 +33,41 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
get: () => !!
|
|
36
|
+
setup(Ke, { expose: Qe, emit: et }) {
|
|
37
|
+
const tt = N(() => import("./Tooltip-VOcQEHa4.js")), lt = N(() => import("./BaseIcon-eZbszQrv.js")), at = N(() => import("./vue-ui-accordion-VTP418mC.js")), st = N(() => import("./DataTable-yAMEyP6y.js")), ot = N(() => import("./PenAndPaper-Bo-lMUik.js")), rt = N(() => import("./UserOptions-CSja1SGU.js")), nt = N(() => import("./PackageVersion-BfykJm_B.js")), ut = N(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_history_plot: it } = sl(), y = Ke, L = v(null), xe = v(null), pe = v(0), ge = v(null), me = v(0), be = v(0), ke = v(0), M = He(null), X = He(null), we = v(null), $ = v(Ue()), te = v(!1), le = v(""), w = v([]), H = v(!1), A = v(null), W = v(!1), Ce = v(null), Ae = v(!1), j = v(null), ae = v(null), se = v(null), oe = v(null), G = v(null), re = v(null), V = h({
|
|
38
|
+
get: () => !!y.dataset && y.dataset.length,
|
|
38
39
|
set: (t) => t
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
}), _e = et;
|
|
41
|
+
Dt(() => {
|
|
42
|
+
Ae.value = !0, Le();
|
|
42
43
|
});
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
44
|
+
const Se = h(() => !!e.value.debug);
|
|
45
|
+
function Le() {
|
|
46
|
+
if (Ge(y.dataset) ? (Ve({
|
|
46
47
|
componentName: "VueUiHistoryPlot",
|
|
47
48
|
type: "dataset",
|
|
48
|
-
debug:
|
|
49
|
-
}), ue.value = !0) :
|
|
50
|
-
|
|
49
|
+
debug: Se.value
|
|
50
|
+
}), ue.value = !0) : y.dataset.forEach((t, a) => {
|
|
51
|
+
Wt({
|
|
51
52
|
datasetObject: t,
|
|
52
53
|
requiredAttributes: ["name", "values"]
|
|
53
54
|
}).forEach((l) => {
|
|
54
|
-
V.value = !1,
|
|
55
|
+
V.value = !1, Ve({
|
|
55
56
|
componentName: "VueUiHistoryPlot",
|
|
56
57
|
type: "datasetSerieAttribute",
|
|
57
58
|
property: l,
|
|
58
59
|
index: a,
|
|
59
|
-
debug:
|
|
60
|
+
debug: Se.value
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
|
-
}),
|
|
63
|
-
const t =
|
|
64
|
-
const { width: a, height: l } =
|
|
65
|
-
chart:
|
|
66
|
-
title: e.value.style.chart.title.text ?
|
|
67
|
-
noTitle:
|
|
68
|
-
legend: e.value.style.chart.legend.show ?
|
|
69
|
-
source:
|
|
63
|
+
}), Ge(y.dataset) || (ue.value = e.value.loading), e.value.responsive) {
|
|
64
|
+
const t = Ze(() => {
|
|
65
|
+
const { width: a, height: l } = al({
|
|
66
|
+
chart: L.value,
|
|
67
|
+
title: e.value.style.chart.title.text ? xe.value : null,
|
|
68
|
+
noTitle: we.value,
|
|
69
|
+
legend: e.value.style.chart.legend.show ? ge.value : null,
|
|
70
|
+
source: Ce.value
|
|
70
71
|
});
|
|
71
72
|
requestAnimationFrame(() => {
|
|
72
73
|
f.value.width = a, f.value.height = l, e.value.responsiveProportionalSizing ? (n.value.plots = F({
|
|
@@ -114,28 +115,28 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
114
115
|
})) : (n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize);
|
|
115
116
|
});
|
|
116
117
|
});
|
|
117
|
-
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value =
|
|
118
|
+
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect()), M.value = new ResizeObserver(t), X.value = L.value.parentNode, M.value.observe(X.value);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
|
-
|
|
121
|
+
Ft(() => {
|
|
121
122
|
M.value && (X.value && M.value.unobserve(X.value), M.value.disconnect());
|
|
122
123
|
});
|
|
123
124
|
function ne() {
|
|
124
|
-
const t =
|
|
125
|
-
userConfig:
|
|
126
|
-
defaultConfig:
|
|
125
|
+
const t = Je({
|
|
126
|
+
userConfig: y.config,
|
|
127
|
+
defaultConfig: it
|
|
127
128
|
});
|
|
128
129
|
let a = {};
|
|
129
130
|
return t.theme ? a = {
|
|
130
|
-
...
|
|
131
|
-
userConfig:
|
|
131
|
+
...Je({
|
|
132
|
+
userConfig: yl.vue_ui_history_plot[t.theme] || y.config,
|
|
132
133
|
defaultConfig: t
|
|
133
134
|
}),
|
|
134
|
-
customPalette:
|
|
135
|
-
} : a = t,
|
|
135
|
+
customPalette: Qt[t.theme] || Q
|
|
136
|
+
} : a = t, y.config && ee(y.config, "style.chart.axes.x.scaleMin") ? a.style.chart.axes.x.scaleMin = y.config.style.chart.axes.x.scaleMin : a.style.chart.axes.x.scaleMin = null, y.config && ee(y.config, "style.chart.axes.x.scaleMax") ? a.style.chart.axes.x.scaleMax = y.config.style.chart.axes.x.scaleMax : a.style.chart.axes.x.scaleMax = null, y.config && ee(y.config, "style.chart.axes.y.scaleMin") ? a.style.chart.axes.y.scaleMin = y.config.style.chart.axes.y.scaleMin : a.style.chart.axes.y.scaleMin = null, y.config && ee(y.config, "style.chart.axes.y.scaleMax") ? a.style.chart.axes.y.scaleMax = y.config.style.chart.axes.y.scaleMax : a.style.chart.axes.y.scaleMax = null, a;
|
|
136
137
|
}
|
|
137
|
-
const e = v(ne()), { loading: z, FINAL_DATASET:
|
|
138
|
-
...
|
|
138
|
+
const e = v(ne()), { loading: z, FINAL_DATASET: ct, manualLoading: ue } = ol({
|
|
139
|
+
...Xt(y),
|
|
139
140
|
FINAL_CONFIG: e,
|
|
140
141
|
prepareConfig: ne,
|
|
141
142
|
skeletonDataset: [
|
|
@@ -150,7 +151,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
150
151
|
]
|
|
151
152
|
}
|
|
152
153
|
],
|
|
153
|
-
skeletonConfig:
|
|
154
|
+
skeletonConfig: jt({
|
|
154
155
|
defaultConfig: e.value,
|
|
155
156
|
userConfig: {
|
|
156
157
|
userOptions: { show: !1 },
|
|
@@ -202,17 +203,17 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
})
|
|
205
|
-
}), { userOptionsVisible: ie, setUserOptionsVisibility:
|
|
206
|
-
K(() =>
|
|
207
|
-
z.value || (e.value = ne()), ie.value = !e.value.userOptions.showOnChartHover,
|
|
208
|
-
}, { deep: !0 }), K(() =>
|
|
206
|
+
}), { userOptionsVisible: ie, setUserOptionsVisibility: $e, keepUserOptionState: Te } = il({ config: e.value }), { svgRef: ce } = cl({ config: e.value.style.chart.title });
|
|
207
|
+
K(() => y.config, (t) => {
|
|
208
|
+
z.value || (e.value = ne()), ie.value = !e.value.userOptions.showOnChartHover, Le(), pe.value += 1, be.value += 1, me.value += 1, f.value.height = e.value.style.chart.height, f.value.width = e.value.style.chart.width, n.value.plots = e.value.style.chart.plots.radius, n.value.indexLabels = e.value.style.chart.plots.indexLabels.fontSize, n.value.labels = e.value.style.chart.plots.labels.fontSize, n.value.xAxisLabels = e.value.style.chart.axes.x.labels.fontSize, n.value.xAxisName = e.value.style.chart.axes.x.name.fontSize, n.value.yAxisLabels = e.value.style.chart.axes.y.labels.fontSize, n.value.yAxisName = e.value.style.chart.axes.y.name.fontSize, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
209
|
+
}, { deep: !0 }), K(() => y.dataset, (t) => {
|
|
209
210
|
Array.isArray(t) && t.length > 0 && (ue.value = !1);
|
|
210
211
|
}, { deep: !0 });
|
|
211
|
-
const { isPrinting:
|
|
212
|
-
elementId: `history_plot_${
|
|
212
|
+
const { isPrinting: Me, isImaging: ze, generatePdf: Oe, generateImage: Ne } = nl({
|
|
213
|
+
elementId: `history_plot_${$.value}`,
|
|
213
214
|
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
214
215
|
options: e.value.userOptions.print
|
|
215
|
-
}),
|
|
216
|
+
}), vt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), ht = h(() => Ut(e.value.customPalette)), C = v({
|
|
216
217
|
showTable: e.value.table.show,
|
|
217
218
|
showTooltip: e.value.style.chart.tooltip.show
|
|
218
219
|
});
|
|
@@ -225,8 +226,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
225
226
|
const f = v({
|
|
226
227
|
height: e.value.style.chart.height,
|
|
227
228
|
width: e.value.style.chart.width
|
|
228
|
-
}),
|
|
229
|
-
function
|
|
229
|
+
}), dt = h(() => f.value.width), yt = h(() => f.value.height);
|
|
230
|
+
function ft() {
|
|
230
231
|
let t = 0;
|
|
231
232
|
re.value && (t = Array.from(re.value.querySelectorAll("text")).reduce((u, s) => {
|
|
232
233
|
const k = s.getComputedTextLength();
|
|
@@ -235,31 +236,31 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
235
236
|
const a = oe.value ? oe.value.getBoundingClientRect().width : 0;
|
|
236
237
|
return t + a + (a ? 24 : 0);
|
|
237
238
|
}
|
|
238
|
-
const
|
|
239
|
-
|
|
239
|
+
const Ie = v(0), xt = Ze((t) => {
|
|
240
|
+
Ie.value = t;
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
+
Bt((t) => {
|
|
242
243
|
const a = G.value;
|
|
243
244
|
if (!a) return;
|
|
244
245
|
const l = new ResizeObserver((u) => {
|
|
245
|
-
|
|
246
|
+
xt(u[0].contentRect.height);
|
|
246
247
|
});
|
|
247
248
|
l.observe(a), t(() => l.disconnect());
|
|
248
249
|
});
|
|
249
|
-
const
|
|
250
|
+
const Pe = h(() => {
|
|
250
251
|
let t = 0;
|
|
251
252
|
se.value && (t = se.value.getBBox().height + n.value.xAxisName / 2);
|
|
252
253
|
let a = 0;
|
|
253
|
-
return G.value && (a =
|
|
254
|
-
}), c =
|
|
255
|
-
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l =
|
|
254
|
+
return G.value && (a = Ie.value), t + a;
|
|
255
|
+
}), c = h(() => {
|
|
256
|
+
const t = e.value.style.chart.padding.left, a = e.value.style.chart.padding.top, l = ft(), u = e.value.style.chart.plots.radius;
|
|
256
257
|
return {
|
|
257
258
|
left: t + l + e.value.style.chart.axes.y.name.offsetX,
|
|
258
259
|
top: a + u,
|
|
259
260
|
right: f.value.width - e.value.style.chart.padding.right - u - e.value.style.chart.axes.y.name.offsetX,
|
|
260
|
-
bottom: f.value.height - e.value.style.chart.padding.bottom -
|
|
261
|
+
bottom: f.value.height - e.value.style.chart.padding.bottom - Pe.value - u - e.value.style.chart.axes.x.name.offsetY,
|
|
261
262
|
width: f.value.width - t - e.value.style.chart.padding.right - l - u - e.value.style.chart.axes.y.name.offsetX,
|
|
262
|
-
height: f.value.height - a - e.value.style.chart.padding.bottom -
|
|
263
|
+
height: f.value.height - a - e.value.style.chart.padding.bottom - Pe.value - u * 2 - e.value.style.chart.axes.x.name.offsetY
|
|
263
264
|
};
|
|
264
265
|
}), n = v({
|
|
265
266
|
plots: e.value.style.chart.plots.radius,
|
|
@@ -269,22 +270,22 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
269
270
|
xAxisName: e.value.style.chart.axes.x.name.fontSize,
|
|
270
271
|
yAxisLabels: e.value.style.chart.axes.y.labels.fontSize,
|
|
271
272
|
yAxisName: e.value.style.chart.axes.y.name.fontSize
|
|
272
|
-
}),
|
|
273
|
+
}), O = h(() => ct.value.map((t, a) => ({
|
|
273
274
|
...t,
|
|
274
|
-
color: t.color ?
|
|
275
|
+
color: t.color ? Gt(t.color) : ht.value[a] || Q[a] || Q[a % Q.length],
|
|
275
276
|
seriesIndex: a
|
|
276
|
-
}))),
|
|
277
|
-
const t = Math.min(...
|
|
277
|
+
}))), pt = h(() => Math.max(...O.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x)))), gt = h(() => {
|
|
278
|
+
const t = Math.min(...O.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
278
279
|
return t < 0 ? t : 0;
|
|
279
|
-
}), mt =
|
|
280
|
-
const t = Math.min(...
|
|
280
|
+
}), mt = h(() => Math.max(...O.value.filter((t) => !w.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.y)))), bt = h(() => {
|
|
281
|
+
const t = Math.min(...O.value.filter((a) => !w.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.y)));
|
|
281
282
|
return t < 0 ? t : 0;
|
|
282
|
-
}), x =
|
|
283
|
-
const t =
|
|
284
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
285
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
283
|
+
}), x = h(() => {
|
|
284
|
+
const t = qe(
|
|
285
|
+
e.value.style.chart.axes.x.scaleMin === null ? gt.value : e.value.style.chart.axes.x.scaleMin,
|
|
286
|
+
e.value.style.chart.axes.x.scaleMax === null ? pt.value : e.value.style.chart.axes.x.scaleMax,
|
|
286
287
|
e.value.style.chart.axes.x.ticks
|
|
287
|
-
), a =
|
|
288
|
+
), a = qe(
|
|
288
289
|
e.value.style.chart.axes.y.scaleMin === null ? bt.value : e.value.style.chart.axes.y.scaleMin,
|
|
289
290
|
e.value.style.chart.axes.y.scaleMax === null ? mt.value : e.value.style.chart.axes.y.scaleMax,
|
|
290
291
|
e.value.style.chart.axes.y.ticks
|
|
@@ -306,24 +307,24 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
306
307
|
}))
|
|
307
308
|
};
|
|
308
309
|
});
|
|
309
|
-
function
|
|
310
|
+
function kt(t) {
|
|
310
311
|
const a = x.value.x.min < 0 ? Math.abs(x.value.x.min) : x.value.x.min > 0 ? -x.value.x.min : 0;
|
|
311
312
|
return c.value.left + ((t || 0) + a) / (x.value.x.max + a) * c.value.width;
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function wt(t) {
|
|
314
315
|
const a = x.value.y.min < 0 ? Math.abs(x.value.y.min) : x.value.y.min > 0 ? -x.value.y.min : 0;
|
|
315
316
|
return c.value.bottom - ((t || 0) + a) / (x.value.y.max + a) * c.value.height;
|
|
316
317
|
}
|
|
317
|
-
const P =
|
|
318
|
+
const P = h(() => O.value.filter((t) => !w.value.includes(t.seriesIndex)).map((t, a) => {
|
|
318
319
|
const l = t.values.map((s, k) => ({
|
|
319
320
|
valueX: s.x,
|
|
320
321
|
valueY: s.y,
|
|
321
322
|
label: s.label,
|
|
322
|
-
x:
|
|
323
|
-
y:
|
|
323
|
+
x: kt(s.x),
|
|
324
|
+
y: wt(s.y),
|
|
324
325
|
color: t.color,
|
|
325
326
|
seriesName: t.name,
|
|
326
|
-
id:
|
|
327
|
+
id: Ue()
|
|
327
328
|
})), u = l.map((s) => `${s.x},${s.y} `).join("").trim();
|
|
328
329
|
return {
|
|
329
330
|
...t,
|
|
@@ -331,16 +332,16 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
331
332
|
path: `M${u}`
|
|
332
333
|
};
|
|
333
334
|
}));
|
|
334
|
-
function
|
|
335
|
+
function De(t) {
|
|
335
336
|
w.value.includes(t) ? w.value = w.value.filter((a) => a !== t) : w.value.push(t);
|
|
336
337
|
}
|
|
337
|
-
const
|
|
338
|
+
const ve = h(() => O.value.map((t) => ({
|
|
338
339
|
...t,
|
|
339
340
|
opacity: w.value.includes(t.seriesIndex) ? 0.5 : 1,
|
|
340
|
-
segregate: () =>
|
|
341
|
+
segregate: () => De(t.seriesIndex),
|
|
341
342
|
isSegregated: w.value.includes(t.seriesIndex),
|
|
342
343
|
shape: "circle"
|
|
343
|
-
}))),
|
|
344
|
+
}))), Ct = h(() => ({
|
|
344
345
|
cy: "history-plot-div-legend",
|
|
345
346
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
346
347
|
color: e.value.style.chart.legend.color,
|
|
@@ -348,33 +349,33 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
348
349
|
paddingBottom: 12,
|
|
349
350
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
350
351
|
}));
|
|
351
|
-
function
|
|
352
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
352
|
+
function At({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
353
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), _e("selectDatapoint", t);
|
|
353
354
|
}
|
|
354
355
|
function Fe(t) {
|
|
355
|
-
|
|
356
|
+
_e("selectLegend", {
|
|
356
357
|
...t,
|
|
357
358
|
isSegregated: !t.isSegregated,
|
|
358
359
|
opacity: t.isSegregated ? 1 : 0.5
|
|
359
360
|
});
|
|
360
361
|
}
|
|
361
362
|
function Xe(t) {
|
|
362
|
-
H.value = t,
|
|
363
|
+
H.value = t, ke.value += 1;
|
|
363
364
|
}
|
|
364
|
-
const
|
|
365
|
-
function
|
|
365
|
+
const he = v(null);
|
|
366
|
+
function _t({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
366
367
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), te.value = !1, A.value = null;
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }),
|
|
369
|
+
function St({ datapoint: t, plotIndex: a, seriesIndex: l }) {
|
|
370
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...t, plotIndex: a, seriesIndex: l }, seriesIndex: l }), he.value = { datapoint: t, seriesIndex: l, plotIndex: a, config: e.value, series: O.value }, A.value = t;
|
|
370
371
|
const u = e.value.style.chart.tooltip.customFormat;
|
|
371
|
-
if (W.value = !1,
|
|
372
|
+
if (W.value = !1, ll(u))
|
|
372
373
|
try {
|
|
373
374
|
const s = u({
|
|
374
375
|
seriesIndex: l,
|
|
375
376
|
datapoint: t,
|
|
376
377
|
plotIndex: a,
|
|
377
|
-
series:
|
|
378
|
+
series: O.value,
|
|
378
379
|
config: e.value
|
|
379
380
|
});
|
|
380
381
|
typeof s == "string" && (le.value = s, W.value = !0);
|
|
@@ -405,11 +406,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
405
406
|
}
|
|
406
407
|
te.value = !0;
|
|
407
408
|
}
|
|
408
|
-
|
|
409
|
+
h(() => ({ head: P.value.map((a) => ({
|
|
409
410
|
name: a.name,
|
|
410
411
|
color: a.color
|
|
411
412
|
})) }));
|
|
412
|
-
const q =
|
|
413
|
+
const q = h(() => {
|
|
413
414
|
const t = [
|
|
414
415
|
e.value.table.columnNames.series,
|
|
415
416
|
e.value.table.columnNames.datapoint,
|
|
@@ -461,8 +462,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
461
462
|
colNames: t
|
|
462
463
|
};
|
|
463
464
|
});
|
|
464
|
-
function
|
|
465
|
-
|
|
465
|
+
function de(t = null) {
|
|
466
|
+
Ht(() => {
|
|
466
467
|
const a = [
|
|
467
468
|
[e.value.table.columnNames.series],
|
|
468
469
|
[e.value.table.columnNames.datapoint],
|
|
@@ -477,29 +478,29 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
477
478
|
[e.value.style.chart.title.text],
|
|
478
479
|
[e.value.style.chart.title.subtitle.text],
|
|
479
480
|
a
|
|
480
|
-
].concat(l), s =
|
|
481
|
-
t ? t(s) :
|
|
481
|
+
].concat(l), s = el(u);
|
|
482
|
+
t ? t(s) : tl({
|
|
482
483
|
csvContent: s,
|
|
483
484
|
title: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
484
485
|
});
|
|
485
486
|
});
|
|
486
487
|
}
|
|
487
488
|
const Z = v(!1);
|
|
488
|
-
function
|
|
489
|
+
function ye() {
|
|
489
490
|
Z.value = !Z.value;
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
+
function Be() {
|
|
492
493
|
C.value.showTable = !C.value.showTable;
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
+
function Re() {
|
|
495
496
|
C.value.showTooltip = !C.value.showTooltip;
|
|
496
497
|
}
|
|
497
498
|
function Lt() {
|
|
498
499
|
return P.value;
|
|
499
500
|
}
|
|
500
501
|
async function $t({ scale: t = 2 } = {}) {
|
|
501
|
-
if (
|
|
502
|
-
const { width: a, height: l } =
|
|
502
|
+
if (!L.value) return;
|
|
503
|
+
const { width: a, height: l } = L.value.getBoundingClientRect(), u = a / l, { imageUri: s, base64: k } = await hl({ domElement: L.value, base64: !0, img: !0, scale: t });
|
|
503
504
|
return {
|
|
504
505
|
imageUri: s,
|
|
505
506
|
base64: k,
|
|
@@ -509,24 +510,24 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
509
510
|
aspectRatio: u
|
|
510
511
|
};
|
|
511
512
|
}
|
|
512
|
-
const
|
|
513
|
-
|
|
513
|
+
const Tt = h(() => x.value.tickX), Mt = h(() => ({ start: 0, end: x.value.tickX.length }));
|
|
514
|
+
vl({
|
|
514
515
|
timeLabelsEls: G,
|
|
515
|
-
timeLabels:
|
|
516
|
-
slicer:
|
|
516
|
+
timeLabels: Tt,
|
|
517
|
+
slicer: Mt,
|
|
517
518
|
configRef: e,
|
|
518
519
|
rotationPath: ["style", "chart", "axes", "x", "labels", "rotation"],
|
|
519
520
|
autoRotatePath: ["style", "chart", "axes", "x", "labels", "autoRotate", "enable"],
|
|
520
521
|
isAutoSize: !1,
|
|
521
|
-
width:
|
|
522
|
-
height:
|
|
522
|
+
width: dt,
|
|
523
|
+
height: yt,
|
|
523
524
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
524
525
|
rotation: e.value.style.chart.axes.x.labels.autoRotate.angle
|
|
525
526
|
});
|
|
526
|
-
const U =
|
|
527
|
+
const U = h(() => {
|
|
527
528
|
const t = e.value.table.useDialog && !e.value.table.show, a = C.value.showTable;
|
|
528
529
|
return {
|
|
529
|
-
component: t ?
|
|
530
|
+
component: t ? ut : at,
|
|
530
531
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
531
532
|
props: t ? {
|
|
532
533
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -534,7 +535,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
534
535
|
headerColor: e.value.table.th.color,
|
|
535
536
|
headerBg: e.value.table.th.backgroundColor,
|
|
536
537
|
isFullscreen: H.value,
|
|
537
|
-
fullscreenParent:
|
|
538
|
+
fullscreenParent: L.value,
|
|
538
539
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
539
540
|
} : {
|
|
540
541
|
hideDetails: !0,
|
|
@@ -559,50 +560,65 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
559
560
|
function Ye() {
|
|
560
561
|
C.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
561
562
|
}
|
|
562
|
-
|
|
563
|
+
const zt = h(() => e.value.style.chart.backgroundColor), Ot = h(() => e.value.style.chart.legend), Nt = h(() => e.value.style.chart.title), { exportSvg: It, getSvg: Pt } = ul({
|
|
564
|
+
svg: ce,
|
|
565
|
+
title: Nt,
|
|
566
|
+
legend: Ot,
|
|
567
|
+
legendItems: ve,
|
|
568
|
+
backgroundColor: zt
|
|
569
|
+
});
|
|
570
|
+
async function Ee({ isCb: t }) {
|
|
571
|
+
if (t) {
|
|
572
|
+
const { blob: a, url: l, text: u, dataUrl: s } = await Pt();
|
|
573
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: u, dataUrl: s });
|
|
574
|
+
} else
|
|
575
|
+
It();
|
|
576
|
+
}
|
|
577
|
+
return Qe({
|
|
563
578
|
getData: Lt,
|
|
564
579
|
getImage: $t,
|
|
565
|
-
generatePdf:
|
|
566
|
-
generateCsv:
|
|
580
|
+
generatePdf: Oe,
|
|
581
|
+
generateCsv: de,
|
|
567
582
|
generateImage: Ne,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
583
|
+
generateSvg: Ee,
|
|
584
|
+
toggleTable: Be,
|
|
585
|
+
toggleTooltip: Re,
|
|
586
|
+
toggleAnnotator: ye,
|
|
571
587
|
toggleFullscreen: Xe
|
|
572
588
|
}), (t, a) => (o(), r("div", {
|
|
573
|
-
id: `history_plot_${
|
|
589
|
+
id: `history_plot_${$.value}`,
|
|
574
590
|
ref_key: "historyPlotChart",
|
|
575
|
-
ref:
|
|
591
|
+
ref: L,
|
|
576
592
|
class: D({ "vue-data-ui-component": !0, "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": H.value }),
|
|
577
|
-
style:
|
|
578
|
-
onMouseenter: a[2] || (a[2] = () => i(
|
|
579
|
-
onMouseleave: a[3] || (a[3] = () => i(
|
|
593
|
+
style: S(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
594
|
+
onMouseenter: a[2] || (a[2] = () => i($e)(!0)),
|
|
595
|
+
onMouseleave: a[3] || (a[3] = () => i($e)(!1))
|
|
580
596
|
}, [
|
|
581
597
|
p(t.$slots, "userConfig", {}, void 0, !0),
|
|
582
|
-
e.value.userOptions.buttons.annotator ? (o(), I(i(
|
|
598
|
+
e.value.userOptions.buttons.annotator ? (o(), I(i(ot), {
|
|
583
599
|
key: 0,
|
|
584
|
-
svgRef: i(
|
|
600
|
+
svgRef: i(ce),
|
|
585
601
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
586
602
|
color: e.value.style.chart.color,
|
|
587
603
|
active: Z.value,
|
|
588
|
-
onClose:
|
|
589
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
590
|
-
|
|
604
|
+
onClose: ye
|
|
605
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
606
|
+
vt.value ? (o(), r("div", {
|
|
591
607
|
key: 1,
|
|
592
608
|
ref_key: "noTitle",
|
|
593
|
-
ref:
|
|
609
|
+
ref: we,
|
|
594
610
|
class: "vue-data-ui-no-title-space",
|
|
595
611
|
style: "height:36px; width: 100%;background:transparent"
|
|
596
|
-
}, null, 512)) :
|
|
612
|
+
}, null, 512)) : d("", !0),
|
|
597
613
|
e.value.style.chart.title.text ? (o(), r("div", {
|
|
598
614
|
key: 2,
|
|
599
615
|
ref_key: "chartTitle",
|
|
600
|
-
ref:
|
|
616
|
+
ref: xe,
|
|
601
617
|
class: "vue-ui-xy-title",
|
|
602
|
-
style:
|
|
618
|
+
style: S(`font-family:${e.value.style.fontFamily}`)
|
|
603
619
|
}, [
|
|
604
|
-
(o(), I(
|
|
605
|
-
key: `title_${
|
|
620
|
+
(o(), I(dl, {
|
|
621
|
+
key: `title_${pe.value}`,
|
|
606
622
|
config: {
|
|
607
623
|
title: {
|
|
608
624
|
cy: "history-plot-div-title",
|
|
@@ -614,28 +630,29 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
614
630
|
}
|
|
615
631
|
}
|
|
616
632
|
}, null, 8, ["config"]))
|
|
617
|
-
], 4)) :
|
|
633
|
+
], 4)) : d("", !0),
|
|
618
634
|
_("div", {
|
|
619
|
-
id: `legend-top-${
|
|
620
|
-
}, null, 8,
|
|
621
|
-
e.value.userOptions.show && V.value && (i(
|
|
635
|
+
id: `legend-top-${$.value}`
|
|
636
|
+
}, null, 8, gl),
|
|
637
|
+
e.value.userOptions.show && V.value && (i(Te) || i(ie)) ? (o(), I(i(rt), {
|
|
622
638
|
ref_key: "userOptionsRef",
|
|
623
639
|
ref: ae,
|
|
624
|
-
key: `user_option_${
|
|
640
|
+
key: `user_option_${ke.value}`,
|
|
625
641
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
626
642
|
color: e.value.style.chart.color,
|
|
627
|
-
isPrinting: i(
|
|
628
|
-
isImaging: i(
|
|
629
|
-
uid:
|
|
643
|
+
isPrinting: i(Me),
|
|
644
|
+
isImaging: i(ze),
|
|
645
|
+
uid: $.value,
|
|
630
646
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
631
647
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
632
648
|
hasImg: e.value.userOptions.buttons.img,
|
|
649
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
633
650
|
hasXls: e.value.userOptions.buttons.csv,
|
|
634
651
|
hasTable: e.value.userOptions.buttons.table,
|
|
635
652
|
hasLabel: !1,
|
|
636
653
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
637
654
|
isFullscreen: H.value,
|
|
638
|
-
chartElement:
|
|
655
|
+
chartElement: L.value,
|
|
639
656
|
position: e.value.userOptions.position,
|
|
640
657
|
isTooltip: C.value.showTooltip,
|
|
641
658
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
@@ -645,81 +662,82 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
645
662
|
printScale: e.value.userOptions.print.scale,
|
|
646
663
|
tableDialog: e.value.table.useDialog,
|
|
647
664
|
onToggleFullscreen: Xe,
|
|
648
|
-
onGeneratePdf: i(
|
|
649
|
-
onGenerateCsv:
|
|
665
|
+
onGeneratePdf: i(Oe),
|
|
666
|
+
onGenerateCsv: de,
|
|
650
667
|
onGenerateImage: i(Ne),
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
668
|
+
onGenerateSvg: Ee,
|
|
669
|
+
onToggleTable: Be,
|
|
670
|
+
onToggleTooltip: Re,
|
|
671
|
+
onToggleAnnotator: ye,
|
|
672
|
+
style: S({
|
|
673
|
+
visibility: i(Te) ? i(ie) ? "visible" : "hidden" : "visible"
|
|
656
674
|
})
|
|
657
|
-
},
|
|
675
|
+
}, We({ _: 2 }, [
|
|
658
676
|
t.$slots.menuIcon ? {
|
|
659
677
|
name: "menuIcon",
|
|
660
|
-
fn:
|
|
661
|
-
p(t.$slots, "menuIcon", R(
|
|
678
|
+
fn: g(({ isOpen: l, color: u }) => [
|
|
679
|
+
p(t.$slots, "menuIcon", B(R({ isOpen: l, color: u })), void 0, !0)
|
|
662
680
|
]),
|
|
663
681
|
key: "0"
|
|
664
682
|
} : void 0,
|
|
665
683
|
t.$slots.optionTooltip ? {
|
|
666
684
|
name: "optionTooltip",
|
|
667
|
-
fn:
|
|
685
|
+
fn: g(() => [
|
|
668
686
|
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
669
687
|
]),
|
|
670
688
|
key: "1"
|
|
671
689
|
} : void 0,
|
|
672
690
|
t.$slots.optionPdf ? {
|
|
673
691
|
name: "optionPdf",
|
|
674
|
-
fn:
|
|
692
|
+
fn: g(() => [
|
|
675
693
|
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
676
694
|
]),
|
|
677
695
|
key: "2"
|
|
678
696
|
} : void 0,
|
|
679
697
|
t.$slots.optionCsv ? {
|
|
680
698
|
name: "optionCsv",
|
|
681
|
-
fn:
|
|
699
|
+
fn: g(() => [
|
|
682
700
|
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
683
701
|
]),
|
|
684
702
|
key: "3"
|
|
685
703
|
} : void 0,
|
|
686
704
|
t.$slots.optionImg ? {
|
|
687
705
|
name: "optionImg",
|
|
688
|
-
fn:
|
|
706
|
+
fn: g(() => [
|
|
689
707
|
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
690
708
|
]),
|
|
691
709
|
key: "4"
|
|
692
710
|
} : void 0,
|
|
693
711
|
t.$slots.optionTable ? {
|
|
694
712
|
name: "optionTable",
|
|
695
|
-
fn:
|
|
713
|
+
fn: g(() => [
|
|
696
714
|
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
697
715
|
]),
|
|
698
716
|
key: "5"
|
|
699
717
|
} : void 0,
|
|
700
718
|
t.$slots.optionFullscreen ? {
|
|
701
719
|
name: "optionFullscreen",
|
|
702
|
-
fn:
|
|
703
|
-
p(t.$slots, "optionFullscreen", R(
|
|
720
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
721
|
+
p(t.$slots, "optionFullscreen", B(R({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
704
722
|
]),
|
|
705
723
|
key: "6"
|
|
706
724
|
} : void 0,
|
|
707
725
|
t.$slots.optionAnnotator ? {
|
|
708
726
|
name: "optionAnnotator",
|
|
709
|
-
fn:
|
|
710
|
-
p(t.$slots, "optionAnnotator", R(
|
|
727
|
+
fn: g(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
728
|
+
p(t.$slots, "optionAnnotator", B(R({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
711
729
|
]),
|
|
712
730
|
key: "7"
|
|
713
731
|
} : void 0
|
|
714
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
732
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
715
733
|
(o(), r("svg", {
|
|
716
734
|
ref_key: "svgRef",
|
|
717
|
-
ref:
|
|
718
|
-
xmlns: i(
|
|
735
|
+
ref: ce,
|
|
736
|
+
xmlns: i(Vt),
|
|
719
737
|
viewBox: `0 0 ${f.value.width < 0 ? 0.1 : f.value.width} ${f.value.height < 0 ? 0.1 : f.value.height}`,
|
|
720
|
-
style:
|
|
738
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
721
739
|
}, [
|
|
722
|
-
|
|
740
|
+
fe(i(nt)),
|
|
723
741
|
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
724
742
|
key: 0,
|
|
725
743
|
x: c.value.left,
|
|
@@ -731,28 +749,28 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
731
749
|
}
|
|
732
750
|
}, [
|
|
733
751
|
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
734
|
-
], 8,
|
|
735
|
-
e.value.style.chart.plots.gradient.show ? (o(), r("defs",
|
|
736
|
-
(o(!0), r(
|
|
737
|
-
id: `gradient_${u}_${
|
|
752
|
+
], 8, bl)) : d("", !0),
|
|
753
|
+
e.value.style.chart.plots.gradient.show ? (o(), r("defs", kl, [
|
|
754
|
+
(o(!0), r(m, null, b(P.value, (l, u) => (o(), r("radialGradient", {
|
|
755
|
+
id: `gradient_${u}_${$.value}`,
|
|
738
756
|
fy: "30%"
|
|
739
757
|
}, [
|
|
740
758
|
_("stop", {
|
|
741
759
|
offset: "10%",
|
|
742
|
-
"stop-color": i(
|
|
743
|
-
}, null, 8,
|
|
760
|
+
"stop-color": i(qt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
761
|
+
}, null, 8, Cl),
|
|
744
762
|
_("stop", {
|
|
745
763
|
offset: "90%",
|
|
746
|
-
"stop-color": i(
|
|
747
|
-
}, null, 8,
|
|
764
|
+
"stop-color": i(Zt)(l.color, 0.1)
|
|
765
|
+
}, null, 8, Al),
|
|
748
766
|
_("stop", {
|
|
749
767
|
offset: "100%",
|
|
750
768
|
"stop-color": l.color
|
|
751
|
-
}, null, 8,
|
|
752
|
-
], 8,
|
|
753
|
-
])) :
|
|
754
|
-
e.value.style.chart.grid.verticalLines.show ? (o(), r("g",
|
|
755
|
-
(o(!0), r(
|
|
769
|
+
}, null, 8, _l)
|
|
770
|
+
], 8, wl))), 256))
|
|
771
|
+
])) : d("", !0),
|
|
772
|
+
e.value.style.chart.grid.verticalLines.show ? (o(), r("g", Sl, [
|
|
773
|
+
(o(!0), r(m, null, b(x.value.tickX, (l) => (o(), r("line", {
|
|
756
774
|
x1: l.x,
|
|
757
775
|
x2: l.x,
|
|
758
776
|
y1: l.y1,
|
|
@@ -760,10 +778,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
760
778
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
761
779
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
762
780
|
"stroke-linecap": "round"
|
|
763
|
-
}, null, 8,
|
|
764
|
-
])) :
|
|
765
|
-
e.value.style.chart.axes.y.labels.show ? (o(), r("g",
|
|
766
|
-
(o(!0), r(
|
|
781
|
+
}, null, 8, Ll))), 256))
|
|
782
|
+
])) : d("", !0),
|
|
783
|
+
e.value.style.chart.axes.y.labels.show ? (o(), r("g", $l, [
|
|
784
|
+
(o(!0), r(m, null, b(x.value.tickY, (l) => (o(), r("line", {
|
|
767
785
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
768
786
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
769
787
|
"stroke-linecap": "round",
|
|
@@ -771,14 +789,14 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
771
789
|
x2: c.value.left,
|
|
772
790
|
y1: l.y,
|
|
773
791
|
y2: l.y
|
|
774
|
-
}, null, 8,
|
|
775
|
-
])) :
|
|
792
|
+
}, null, 8, Tl))), 256))
|
|
793
|
+
])) : d("", !0),
|
|
776
794
|
e.value.style.chart.axes.y.labels.show ? (o(), r("g", {
|
|
777
795
|
key: 4,
|
|
778
796
|
ref_key: "yAxisScales",
|
|
779
797
|
ref: re
|
|
780
798
|
}, [
|
|
781
|
-
(o(!0), r(
|
|
799
|
+
(o(!0), r(m, null, b(x.value.tickY, (l) => (o(), r("text", {
|
|
782
800
|
x: c.value.left + e.value.style.chart.axes.y.labels.offsetX - 4 - e.value.style.chart.plots.radius,
|
|
783
801
|
y: l.y + n.value.yAxisLabels / 3,
|
|
784
802
|
fill: e.value.style.chart.axes.y.labels.color,
|
|
@@ -793,8 +811,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
793
811
|
s: e.value.style.chart.axes.y.labels.suffix,
|
|
794
812
|
r: e.value.style.chart.axes.y.labels.rounding
|
|
795
813
|
})
|
|
796
|
-
)), 9,
|
|
797
|
-
], 512)) :
|
|
814
|
+
)), 9, Ml))), 256))
|
|
815
|
+
], 512)) : d("", !0),
|
|
798
816
|
e.value.style.chart.axes.y.name.text ? (o(), r("text", {
|
|
799
817
|
key: 5,
|
|
800
818
|
ref_key: "yAxisLabel",
|
|
@@ -804,9 +822,9 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
804
822
|
fill: e.value.style.chart.axes.y.name.color,
|
|
805
823
|
"font-weight": e.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
806
824
|
"text-anchor": "middle"
|
|
807
|
-
}, T(e.value.style.chart.axes.y.name.text), 9,
|
|
808
|
-
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g",
|
|
809
|
-
(o(!0), r(
|
|
825
|
+
}, T(e.value.style.chart.axes.y.name.text), 9, zl)) : d("", !0),
|
|
826
|
+
e.value.style.chart.grid.horizontalLines.show ? (o(), r("g", Ol, [
|
|
827
|
+
(o(!0), r(m, null, b(x.value.tickY, (l) => (o(), r("line", {
|
|
810
828
|
x1: l.x1,
|
|
811
829
|
x2: l.x2,
|
|
812
830
|
y1: l.y,
|
|
@@ -814,10 +832,10 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
814
832
|
stroke: e.value.style.chart.grid.horizontalLines.stroke,
|
|
815
833
|
"stroke-width": e.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
816
834
|
"stroke-linecap": "round"
|
|
817
|
-
}, null, 8,
|
|
818
|
-
])) :
|
|
819
|
-
e.value.style.chart.axes.x.labels.show ? (o(), r("g",
|
|
820
|
-
(o(!0), r(
|
|
835
|
+
}, null, 8, Nl))), 256))
|
|
836
|
+
])) : d("", !0),
|
|
837
|
+
e.value.style.chart.axes.x.labels.show ? (o(), r("g", Il, [
|
|
838
|
+
(o(!0), r(m, null, b(x.value.tickX, (l) => (o(), r("line", {
|
|
821
839
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
822
840
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
823
841
|
"stroke-linecap": "round",
|
|
@@ -825,14 +843,14 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
825
843
|
x2: l.x,
|
|
826
844
|
y1: c.value.bottom,
|
|
827
845
|
y2: c.value.bottom + 5
|
|
828
|
-
}, null, 8,
|
|
829
|
-
])) :
|
|
846
|
+
}, null, 8, Pl))), 256))
|
|
847
|
+
])) : d("", !0),
|
|
830
848
|
e.value.style.chart.axes.x.labels.show ? (o(), r("g", {
|
|
831
849
|
key: 8,
|
|
832
850
|
ref_key: "xAxisScales",
|
|
833
851
|
ref: G
|
|
834
852
|
}, [
|
|
835
|
-
(o(!0), r(
|
|
853
|
+
(o(!0), r(m, null, b(x.value.tickX, (l) => (o(), r("text", {
|
|
836
854
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
837
855
|
transform: `translate(${l.x}, ${c.value.bottom + e.value.style.chart.axes.x.labels.offsetY + n.value.xAxisLabels + e.value.style.chart.plots.radius}), rotate(${e.value.style.chart.axes.x.labels.rotation})`,
|
|
838
856
|
fill: e.value.style.chart.axes.x.labels.color,
|
|
@@ -847,8 +865,8 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
847
865
|
s: e.value.style.chart.axes.x.labels.suffix,
|
|
848
866
|
r: e.value.style.chart.axes.x.labels.rounding
|
|
849
867
|
})
|
|
850
|
-
)), 9,
|
|
851
|
-
], 512)) :
|
|
868
|
+
)), 9, Dl))), 256))
|
|
869
|
+
], 512)) : d("", !0),
|
|
852
870
|
e.value.style.chart.axes.x.name.text ? (o(), r("text", {
|
|
853
871
|
key: 9,
|
|
854
872
|
ref_key: "xAxisLabel",
|
|
@@ -859,7 +877,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
859
877
|
fill: e.value.style.chart.axes.x.name.color,
|
|
860
878
|
"font-weight": e.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
861
879
|
"text-anchor": "middle"
|
|
862
|
-
}, T(e.value.style.chart.axes.x.name.text), 9,
|
|
880
|
+
}, T(e.value.style.chart.axes.x.name.text), 9, Fl)) : d("", !0),
|
|
863
881
|
e.value.style.chart.grid.xAxis.show ? (o(), r("line", {
|
|
864
882
|
key: 10,
|
|
865
883
|
x1: c.value.left,
|
|
@@ -869,7 +887,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
869
887
|
stroke: e.value.style.chart.grid.xAxis.stroke,
|
|
870
888
|
"stroke-width": e.value.style.chart.grid.xAxis.strokeWidth,
|
|
871
889
|
"stroke-linecap": "round"
|
|
872
|
-
}, null, 8,
|
|
890
|
+
}, null, 8, Xl)) : d("", !0),
|
|
873
891
|
e.value.style.chart.grid.yAxis.show ? (o(), r("line", {
|
|
874
892
|
key: 11,
|
|
875
893
|
x1: c.value.left,
|
|
@@ -879,11 +897,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
879
897
|
stroke: e.value.style.chart.grid.yAxis.stroke,
|
|
880
898
|
"stroke-width": e.value.style.chart.grid.yAxis.strokeWidth,
|
|
881
899
|
"stroke-linecap": "round"
|
|
882
|
-
}, null, 8,
|
|
883
|
-
(o(!0), r(
|
|
900
|
+
}, null, 8, Bl)) : d("", !0),
|
|
901
|
+
(o(!0), r(m, null, b(P.value, (l, u) => (o(), r("g", null, [
|
|
884
902
|
e.value.style.chart.paths.show ? (o(), r("g", {
|
|
885
903
|
key: 0,
|
|
886
|
-
style:
|
|
904
|
+
style: S({
|
|
887
905
|
opacity: A.value === null ? 1 : 0.3
|
|
888
906
|
})
|
|
889
907
|
}, [
|
|
@@ -895,7 +913,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
895
913
|
"stroke-linecap": "round",
|
|
896
914
|
"stroke-linejoin": "round",
|
|
897
915
|
class: D({ animated: e.value.useCssAnimation && !i(z) })
|
|
898
|
-
}, null, 10,
|
|
916
|
+
}, null, 10, Rl),
|
|
899
917
|
_("path", {
|
|
900
918
|
d: l.path,
|
|
901
919
|
stroke: e.value.style.chart.paths.useSerieColor ? l.color : e.value.style.chart.paths.stroke,
|
|
@@ -904,30 +922,30 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
904
922
|
"stroke-linecap": "round",
|
|
905
923
|
"stroke-linejoin": "round",
|
|
906
924
|
class: D({ animated: e.value.useCssAnimation && !i(z) })
|
|
907
|
-
}, null, 10,
|
|
908
|
-
], 4)) :
|
|
909
|
-
(o(!0), r(
|
|
925
|
+
}, null, 10, Yl)
|
|
926
|
+
], 4)) : d("", !0),
|
|
927
|
+
(o(!0), r(m, null, b(l.plots, (s) => (o(), r("circle", {
|
|
910
928
|
cx: s.x,
|
|
911
929
|
cy: s.y,
|
|
912
930
|
fill: e.value.style.chart.backgroundColor,
|
|
913
931
|
r: n.value.plots,
|
|
914
932
|
stroke: "none"
|
|
915
|
-
}, null, 8,
|
|
916
|
-
(o(!0), r(
|
|
933
|
+
}, null, 8, El))), 256)),
|
|
934
|
+
(o(!0), r(m, null, b(l.plots, (s) => (o(), r("circle", {
|
|
917
935
|
cx: s.x,
|
|
918
936
|
cy: s.y,
|
|
919
|
-
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${u}_${
|
|
937
|
+
fill: e.value.style.chart.plots.gradient.show ? `url(#gradient_${u}_${$.value})` : s.color,
|
|
920
938
|
r: n.value.plots,
|
|
921
939
|
stroke: e.value.style.chart.plots.stroke,
|
|
922
940
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
923
941
|
class: D({ animated: e.value.useCssAnimation && !i(z) }),
|
|
924
|
-
style:
|
|
942
|
+
style: S({
|
|
925
943
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
926
944
|
transition: "opacity 0.2s ease-in-out"
|
|
927
945
|
})
|
|
928
|
-
}, null, 14,
|
|
929
|
-
e.value.style.chart.plots.labels.show ? (o(), r("g",
|
|
930
|
-
(o(!0), r(
|
|
946
|
+
}, null, 14, Hl))), 256)),
|
|
947
|
+
e.value.style.chart.plots.labels.show ? (o(), r("g", Wl, [
|
|
948
|
+
(o(!0), r(m, null, b(l.plots, (s) => (o(), r("g", null, [
|
|
931
949
|
String(s.label).includes(`
|
|
932
950
|
`) ? (o(), r("text", {
|
|
933
951
|
key: 1,
|
|
@@ -938,18 +956,18 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
938
956
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
939
957
|
"text-anchor": "middle",
|
|
940
958
|
class: D({ animated: e.value.useCssAnimation && !i(z) }),
|
|
941
|
-
style:
|
|
959
|
+
style: S({
|
|
942
960
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
943
961
|
transition: "opacity 0.2s ease-in-out"
|
|
944
962
|
}),
|
|
945
|
-
innerHTML: i(
|
|
963
|
+
innerHTML: i(Jt)({
|
|
946
964
|
content: String(s.label),
|
|
947
965
|
fontSize: n.value.labels,
|
|
948
966
|
fill: e.value.style.chart.plots.labels.color,
|
|
949
967
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
950
968
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels
|
|
951
969
|
})
|
|
952
|
-
}, null, 14,
|
|
970
|
+
}, null, 14, Ul)) : (o(), r("text", {
|
|
953
971
|
key: 0,
|
|
954
972
|
x: s.x + e.value.style.chart.plots.labels.offsetX,
|
|
955
973
|
y: s.y + e.value.style.chart.plots.labels.offsetY + n.value.plots + n.value.labels,
|
|
@@ -958,101 +976,101 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
958
976
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
959
977
|
"text-anchor": "middle",
|
|
960
978
|
class: D({ animated: e.value.useCssAnimation && !i(z) }),
|
|
961
|
-
style:
|
|
979
|
+
style: S({
|
|
962
980
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
963
981
|
transition: "opacity 0.2s ease-in-out"
|
|
964
982
|
})
|
|
965
|
-
}, T(s.label), 15,
|
|
983
|
+
}, T(s.label), 15, jl))
|
|
966
984
|
]))), 256))
|
|
967
|
-
])) :
|
|
968
|
-
e.value.style.chart.plots.indexLabels.show ? (o(), r("g",
|
|
969
|
-
(o(!0), r(
|
|
985
|
+
])) : d("", !0),
|
|
986
|
+
e.value.style.chart.plots.indexLabels.show ? (o(), r("g", Gl, [
|
|
987
|
+
(o(!0), r(m, null, b(l.plots, (s, k) => (o(), r("text", {
|
|
970
988
|
x: s.x + e.value.style.chart.plots.indexLabels.offsetX,
|
|
971
989
|
y: s.y + e.value.style.chart.plots.indexLabels.offsetY + n.value.indexLabels / 3,
|
|
972
990
|
"font-size": n.value.indexLabels,
|
|
973
991
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
974
|
-
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(
|
|
992
|
+
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? i(Kt)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
975
993
|
"text-anchor": "middle",
|
|
976
994
|
class: D({ animated: e.value.useCssAnimation && !i(z) }),
|
|
977
|
-
style:
|
|
995
|
+
style: S({
|
|
978
996
|
opacity: A.value === null || A.value.id === s.id ? 1 : 0.3,
|
|
979
997
|
transition: "opacity 0.2s ease-in-out"
|
|
980
998
|
})
|
|
981
|
-
}, T(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15,
|
|
982
|
-
])) :
|
|
999
|
+
}, T(e.value.style.chart.plots.indexLabels.startAtZero ? k : k + 1), 15, Vl))), 256))
|
|
1000
|
+
])) : d("", !0)
|
|
983
1001
|
]))), 256)),
|
|
984
|
-
(o(!0), r(
|
|
985
|
-
(o(!0), r(
|
|
1002
|
+
(o(!0), r(m, null, b(P.value, (l) => (o(), r("g", null, [
|
|
1003
|
+
(o(!0), r(m, null, b(l.plots, (u, s) => (o(), r("circle", {
|
|
986
1004
|
cx: u.x,
|
|
987
1005
|
cy: u.y,
|
|
988
1006
|
fill: "transparent",
|
|
989
1007
|
r: n.value.plots,
|
|
990
1008
|
stroke: "none",
|
|
991
|
-
onMouseenter: (k) =>
|
|
1009
|
+
onMouseenter: (k) => St({
|
|
992
1010
|
datapoint: u,
|
|
993
1011
|
plotIndex: s,
|
|
994
1012
|
seriesIndex: l.seriesIndex
|
|
995
1013
|
}),
|
|
996
|
-
onMouseleave: (k) =>
|
|
1014
|
+
onMouseleave: (k) => _t({
|
|
997
1015
|
datapoint: u,
|
|
998
1016
|
plotIndex: s,
|
|
999
1017
|
seriesIndex: l.seriesIndex
|
|
1000
1018
|
}),
|
|
1001
|
-
onClick: (k) =>
|
|
1019
|
+
onClick: (k) => At({
|
|
1002
1020
|
datapoint: u,
|
|
1003
1021
|
plotIndex: s,
|
|
1004
1022
|
seriesIndex: l.seriesIndex
|
|
1005
1023
|
})
|
|
1006
|
-
}, null, 40,
|
|
1024
|
+
}, null, 40, ql))), 256))
|
|
1007
1025
|
]))), 256)),
|
|
1008
1026
|
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
1009
|
-
], 12,
|
|
1010
|
-
t.$slots.watermark ? (o(), r("div",
|
|
1011
|
-
p(t.$slots, "watermark", R(
|
|
1012
|
-
])) :
|
|
1027
|
+
], 12, ml)),
|
|
1028
|
+
t.$slots.watermark ? (o(), r("div", Zl, [
|
|
1029
|
+
p(t.$slots, "watermark", B(R({ isPrinting: i(Me) || i(ze) })), void 0, !0)
|
|
1030
|
+
])) : d("", !0),
|
|
1013
1031
|
_("div", {
|
|
1014
|
-
id: `legend-bottom-${
|
|
1015
|
-
}, null, 8,
|
|
1016
|
-
|
|
1032
|
+
id: `legend-bottom-${$.value}`
|
|
1033
|
+
}, null, 8, Jl),
|
|
1034
|
+
Ae.value ? (o(), I(Rt, {
|
|
1017
1035
|
key: 5,
|
|
1018
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1036
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
1019
1037
|
}, [
|
|
1020
1038
|
_("div", {
|
|
1021
1039
|
ref_key: "chartLegend",
|
|
1022
|
-
ref:
|
|
1040
|
+
ref: ge
|
|
1023
1041
|
}, [
|
|
1024
|
-
e.value.style.chart.legend.show && V.value ? (o(), I(
|
|
1025
|
-
key: `legend_${
|
|
1026
|
-
legendSet:
|
|
1027
|
-
config:
|
|
1042
|
+
e.value.style.chart.legend.show && V.value ? (o(), I(fl, {
|
|
1043
|
+
key: `legend_${me.value}`,
|
|
1044
|
+
legendSet: ve.value,
|
|
1045
|
+
config: Ct.value,
|
|
1028
1046
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => {
|
|
1029
|
-
|
|
1047
|
+
De(l.seriesIndex), Fe(l);
|
|
1030
1048
|
})
|
|
1031
1049
|
}, {
|
|
1032
|
-
item:
|
|
1050
|
+
item: g(({ legend: l, index: u }) => [
|
|
1033
1051
|
_("div", {
|
|
1034
1052
|
onClick: (s) => {
|
|
1035
1053
|
l.segregate(), Fe(l);
|
|
1036
1054
|
},
|
|
1037
|
-
style:
|
|
1038
|
-
}, T(l.name), 13,
|
|
1055
|
+
style: S(`opacity:${w.value.includes(l.seriesIndex) ? 0.5 : 1}`)
|
|
1056
|
+
}, T(l.name), 13, Kl)
|
|
1039
1057
|
]),
|
|
1040
1058
|
_: 1
|
|
1041
1059
|
}, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
1042
1060
|
key: 1,
|
|
1043
|
-
legend:
|
|
1061
|
+
legend: ve.value
|
|
1044
1062
|
}, void 0, !0)
|
|
1045
1063
|
], 512)
|
|
1046
|
-
], 8, ["to"])) :
|
|
1064
|
+
], 8, ["to"])) : d("", !0),
|
|
1047
1065
|
t.$slots.source ? (o(), r("div", {
|
|
1048
1066
|
key: 6,
|
|
1049
1067
|
ref_key: "source",
|
|
1050
|
-
ref:
|
|
1068
|
+
ref: Ce,
|
|
1051
1069
|
dir: "auto"
|
|
1052
1070
|
}, [
|
|
1053
1071
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1054
|
-
], 512)) :
|
|
1055
|
-
|
|
1072
|
+
], 512)) : d("", !0),
|
|
1073
|
+
fe(i(tt), {
|
|
1056
1074
|
show: C.value.showTooltip && te.value,
|
|
1057
1075
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1058
1076
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1063,7 +1081,7 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1063
1081
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1064
1082
|
position: e.value.style.chart.tooltip.position,
|
|
1065
1083
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1066
|
-
parent:
|
|
1084
|
+
parent: L.value,
|
|
1067
1085
|
content: le.value,
|
|
1068
1086
|
isCustom: W.value,
|
|
1069
1087
|
isFullscreen: H.value,
|
|
@@ -1072,22 +1090,22 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1072
1090
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1073
1091
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1074
1092
|
}, {
|
|
1075
|
-
"tooltip-before":
|
|
1076
|
-
p(t.$slots, "tooltip-before", R(
|
|
1093
|
+
"tooltip-before": g(() => [
|
|
1094
|
+
p(t.$slots, "tooltip-before", B(R({ ...he.value })), void 0, !0)
|
|
1077
1095
|
]),
|
|
1078
|
-
"tooltip-after":
|
|
1079
|
-
p(t.$slots, "tooltip-after", R(
|
|
1096
|
+
"tooltip-after": g(() => [
|
|
1097
|
+
p(t.$slots, "tooltip-after", B(R({ ...he.value })), void 0, !0)
|
|
1080
1098
|
]),
|
|
1081
1099
|
_: 3
|
|
1082
1100
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1083
|
-
V.value && e.value.userOptions.buttons.table ? (o(), I(
|
|
1101
|
+
V.value && e.value.userOptions.buttons.table ? (o(), I(Yt(U.value.component), Et({ key: 7 }, U.value.props, {
|
|
1084
1102
|
ref_key: "tableUnit",
|
|
1085
1103
|
ref: j,
|
|
1086
1104
|
onClose: Ye
|
|
1087
|
-
}),
|
|
1088
|
-
content:
|
|
1089
|
-
(o(), I(i(
|
|
1090
|
-
key: `table_${
|
|
1105
|
+
}), We({
|
|
1106
|
+
content: g(() => [
|
|
1107
|
+
(o(), I(i(st), {
|
|
1108
|
+
key: `table_${be.value}`,
|
|
1091
1109
|
colNames: q.value.colNames,
|
|
1092
1110
|
head: q.value.head,
|
|
1093
1111
|
body: q.value.body,
|
|
@@ -1096,14 +1114,14 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1096
1114
|
withCloseButton: !e.value.table.useDialog,
|
|
1097
1115
|
onClose: Ye
|
|
1098
1116
|
}, {
|
|
1099
|
-
th:
|
|
1117
|
+
th: g(({ th: l }) => [
|
|
1100
1118
|
_("div", {
|
|
1101
1119
|
innerHTML: l,
|
|
1102
1120
|
style: { display: "flex", "align-items": "center" }
|
|
1103
|
-
}, null, 8,
|
|
1121
|
+
}, null, 8, Ql)
|
|
1104
1122
|
]),
|
|
1105
|
-
td:
|
|
1106
|
-
|
|
1123
|
+
td: g(({ td: l }) => [
|
|
1124
|
+
je(T(l.name || l), 1)
|
|
1107
1125
|
]),
|
|
1108
1126
|
_: 1
|
|
1109
1127
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1112,20 +1130,20 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1112
1130
|
}, [
|
|
1113
1131
|
e.value.table.useDialog ? {
|
|
1114
1132
|
name: "title",
|
|
1115
|
-
fn:
|
|
1116
|
-
|
|
1133
|
+
fn: g(() => [
|
|
1134
|
+
je(T(U.value.title), 1)
|
|
1117
1135
|
]),
|
|
1118
1136
|
key: "0"
|
|
1119
1137
|
} : void 0,
|
|
1120
1138
|
e.value.table.useDialog ? {
|
|
1121
1139
|
name: "actions",
|
|
1122
|
-
fn:
|
|
1140
|
+
fn: g(() => [
|
|
1123
1141
|
_("button", {
|
|
1124
1142
|
tabindex: "0",
|
|
1125
1143
|
class: "vue-ui-user-options-button",
|
|
1126
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
1144
|
+
onClick: a[1] || (a[1] = (l) => de(e.value.userOptions.callbacks.csv))
|
|
1127
1145
|
}, [
|
|
1128
|
-
|
|
1146
|
+
fe(i(lt), {
|
|
1129
1147
|
name: "excel",
|
|
1130
1148
|
stroke: U.value.props.color
|
|
1131
1149
|
}, null, 8, ["stroke"])
|
|
@@ -1133,11 +1151,11 @@ const cl = ["id"], vl = ["id"], hl = ["xmlns", "viewBox"], dl = ["x", "y", "widt
|
|
|
1133
1151
|
]),
|
|
1134
1152
|
key: "1"
|
|
1135
1153
|
} : void 0
|
|
1136
|
-
]), 1040)) :
|
|
1137
|
-
i(z) ? (o(), I(
|
|
1138
|
-
], 46,
|
|
1154
|
+
]), 1040)) : d("", !0),
|
|
1155
|
+
i(z) ? (o(), I(rl, { key: 8 })) : d("", !0)
|
|
1156
|
+
], 46, pl));
|
|
1139
1157
|
}
|
|
1140
|
-
},
|
|
1158
|
+
}, xa = /* @__PURE__ */ xl(ea, [["__scopeId", "data-v-d1ad2eeb"]]);
|
|
1141
1159
|
export {
|
|
1142
|
-
|
|
1160
|
+
xa as default
|
|
1143
1161
|
};
|