vue-data-ui 3.3.2 → 3.4.0
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-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- 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-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, computed as c, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as
|
|
2
|
-
import { c as ge, t as
|
|
3
|
-
import { t as tt, u 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 { u as
|
|
11
|
-
import
|
|
12
|
-
import { _ as il } from "./Shape-
|
|
13
|
-
import vl from "./Title-
|
|
1
|
+
import { defineAsyncComponent as L, computed as c, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as Mt, onBeforeUnmount as Ye, watchEffect as Ft, createElementBlock as u, openBlock as r, unref as v, normalizeStyle as J, normalizeClass as E, createBlock as O, createCommentVNode as d, createVNode as me, createSlots as je, withCtx as b, renderSlot as y, normalizeProps as M, guardReactiveProps as F, createElementVNode as m, Fragment as g, renderList as _, toDisplayString as T, mergeProps as qe, resolveDynamicComponent as It, createTextVNode as Je, nextTick as Rt } from "vue";
|
|
2
|
+
import { c as ge, t as Bt, b as Wt, p as P, o as Qe, f as xe, g as Ke, e as Et, h as Ze, x as Gt, m as Ht, d as Q, X as Ut, a as ke, M as Vt, al as Xt, S as Yt, U as jt, G as et, R as qt, P as Jt, Q as Qt, H as Kt } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as tt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as el, a as lt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as al } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as ol } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as sl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as rl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as nl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import ul from "./img-CFY3JivG.js";
|
|
12
|
+
import { _ as il } from "./Shape-BhNvlGIN.js";
|
|
13
|
+
import vl from "./Title-CFmv95In.js";
|
|
14
14
|
import { t as cl } from "./themes-Dw-dDudK.js";
|
|
15
15
|
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"], bl = { key: 1 }, yl = { key: 0 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = { key: 1 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "text-anchor"], Ll = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], _l = ["fill", "font-size", "transform"], Tl = ["fill", "font-size", "x", "y"], $l = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["cx", "cy", "fill"], Ol = ["cx", "cy", "fill"],
|
|
16
|
+
const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"], bl = { key: 1 }, yl = { key: 0 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = { key: 1 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "text-anchor"], Ll = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], _l = ["fill", "font-size", "transform"], Tl = ["fill", "font-size", "x", "y"], $l = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["cx", "cy", "fill"], Ol = ["cx", "cy", "fill"], Pl = ["id"], zl = ["stop-color"], Dl = ["stop-color"], Nl = ["stop-color"], Ml = { key: 0 }, Fl = ["x", "y", "font-size", "fill"], Il = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Rl = ["innerHTML"], Bl = {
|
|
@@ -34,14 +34,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint"],
|
|
36
36
|
setup(at, { expose: ot, emit: st }) {
|
|
37
|
-
const rt = L(() => import("./Tooltip-
|
|
37
|
+
const rt = L(() => import("./Tooltip-Cs4v8OnI.js")), nt = L(() => import("./BaseIcon-B5KaGWWC.js")), ut = L(() => import("./vue-ui-accordion-BKkTS12x.js")), it = L(() => import("./DataTable-DOx3zgih.js")), vt = L(() => import("./UserOptions-C0YT60JN.js")), ct = L(() => import("./PenAndPaper-Dj2diYr0.js")), ht = L(() => import("./PackageVersion-DyDViSOy.js")), dt = L(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_strip_plot: pt } = el(), x = at, ft = st, G = c({
|
|
38
38
|
get() {
|
|
39
39
|
return !!x.dataset && x.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(t) {
|
|
42
42
|
return t;
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), K = i(ge()), we = i(0), Z = i(!1), ee = i(""), w = i(null), Ce = i(null), Ae = i(null), Le = i(null), _e = i(!1), Te = i(0), $e = i(0), I = i(null), te = i(null), le = i(null), ae = i(null), H = i(null), oe = i(null), e = i(ve()), { loading: se, FINAL_DATASET: re, manualLoading: ne } = tl({
|
|
45
45
|
...Nt(x),
|
|
46
46
|
FINAL_CONFIG: e,
|
|
47
47
|
prepareConfig: ve,
|
|
@@ -92,7 +92,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
|
-
skeletonConfig:
|
|
95
|
+
skeletonConfig: Bt({
|
|
96
96
|
defaultConfig: e.value,
|
|
97
97
|
userConfig: {
|
|
98
98
|
userOptions: { show: !1 },
|
|
@@ -131,7 +131,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
|
-
}), { userOptionsVisible:
|
|
134
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Se, keepUserOptionState: Oe } = sl({ config: e.value }), { svgRef: ie } = rl({ config: e.value.style.chart.title });
|
|
135
135
|
function ve() {
|
|
136
136
|
const t = lt({
|
|
137
137
|
userConfig: x.config,
|
|
@@ -142,26 +142,26 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
142
142
|
userConfig: cl.vue_ui_strip_plot[t.theme] || x.config,
|
|
143
143
|
defaultConfig: t
|
|
144
144
|
}),
|
|
145
|
-
customPalette:
|
|
145
|
+
customPalette: Wt[t.theme] || P
|
|
146
146
|
} : t;
|
|
147
147
|
}
|
|
148
148
|
q(() => x.config, async (t) => {
|
|
149
|
-
se.value || (e.value = ve()),
|
|
149
|
+
se.value || (e.value = ve()), ue.value = !e.value.userOptions.showOnChartHover, Pe(), Te.value += 1, $e.value += 1, p.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, D.value = e.value.style.chart.width, A.value = e.value.style.chart.height, B.value = e.value.style.chart.plots.radius;
|
|
150
150
|
}, { deep: !0 }), q(() => x.dataset, (t) => {
|
|
151
|
-
Array.isArray(t) && t.length > 0 && (
|
|
151
|
+
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
152
152
|
}, { deep: !0 });
|
|
153
|
-
const C = Xe(null),
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
const C = Xe(null), z = Xe(null);
|
|
154
|
+
Mt(() => {
|
|
155
|
+
Pe();
|
|
156
156
|
});
|
|
157
157
|
const ce = c(() => !!e.value.debug);
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
158
|
+
function Pe() {
|
|
159
|
+
if (Qe(x.dataset) ? (xe({
|
|
160
160
|
componentName: "VueUiStripPlot",
|
|
161
161
|
type: "dataset",
|
|
162
162
|
debug: ce.value
|
|
163
|
-
}),
|
|
164
|
-
|
|
163
|
+
}), ne.value = !0) : x.dataset.forEach((t, a) => {
|
|
164
|
+
Ke({
|
|
165
165
|
datasetObject: t,
|
|
166
166
|
requiredAttributes: ["name", "plots"]
|
|
167
167
|
}).forEach((l) => {
|
|
@@ -173,29 +173,29 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
173
173
|
debug: ce.value
|
|
174
174
|
});
|
|
175
175
|
}), t.plots && t.plots.forEach((l, o) => {
|
|
176
|
-
|
|
176
|
+
Ke({
|
|
177
177
|
datasetObject: l,
|
|
178
178
|
requiredAttributes: ["name", "value"]
|
|
179
|
-
}).forEach((
|
|
179
|
+
}).forEach((n) => {
|
|
180
180
|
G.value = !1, xe({
|
|
181
181
|
componentName: "VueUiStripPlot",
|
|
182
182
|
type: "datasetSerieAttribute",
|
|
183
|
-
property:
|
|
183
|
+
property: n,
|
|
184
184
|
index: `${a},${o}`,
|
|
185
185
|
debug: ce.value
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
|
-
}),
|
|
189
|
+
}), Qe(x.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
190
190
|
const t = tt(() => {
|
|
191
|
-
const { width: a, height: l } =
|
|
191
|
+
const { width: a, height: l } = Zt({
|
|
192
192
|
chart: w.value,
|
|
193
193
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
194
194
|
source: Ae.value,
|
|
195
195
|
noTitle: Le.value
|
|
196
196
|
});
|
|
197
197
|
requestAnimationFrame(() => {
|
|
198
|
-
yt.value = l, D.value = Math.max(0.1, a), A.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? B.value =
|
|
198
|
+
yt.value = l, D.value = Math.max(0.1, a), A.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? B.value = qt({
|
|
199
199
|
relator: Math.min(l, a),
|
|
200
200
|
adjuster: 600,
|
|
201
201
|
source: e.value.style.chart.plots.radius,
|
|
@@ -204,20 +204,20 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
204
204
|
}) : B.value = e.value.style.chart.plots.radius;
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
C.value && (
|
|
207
|
+
C.value && (z.value && C.value.unobserve(z.value), C.value.disconnect()), C.value = new ResizeObserver(t), z.value = w.value.parentNode, C.value.observe(z.value);
|
|
208
208
|
}
|
|
209
209
|
_e.value = !0, setTimeout(() => {
|
|
210
210
|
R.value = !1;
|
|
211
211
|
}, kt.value * 50);
|
|
212
212
|
}
|
|
213
213
|
Ye(() => {
|
|
214
|
-
C.value && (
|
|
214
|
+
C.value && (z.value && C.value.unobserve(z.value), C.value.disconnect());
|
|
215
215
|
});
|
|
216
|
-
const { isPrinting:
|
|
217
|
-
elementId: `strip-plot_${
|
|
216
|
+
const { isPrinting: ze, isImaging: De, generatePdf: Ne, generateImage: Me } = al({
|
|
217
|
+
elementId: `strip-plot_${K.value}`,
|
|
218
218
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
219
219
|
options: e.value.userOptions.print
|
|
220
|
-
}), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
220
|
+
}), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = c(() => Et(e.value.customPalette)), R = i(e.value.useCssAnimation), U = i({
|
|
221
221
|
top: e.value.style.chart.padding.top,
|
|
222
222
|
bottom: e.value.style.chart.padding.bottom,
|
|
223
223
|
left: e.value.style.chart.padding.left,
|
|
@@ -241,8 +241,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
241
241
|
const he = c(() => Math.min(B.value, s.value.stripWidth / 2 * 0.9));
|
|
242
242
|
function mt() {
|
|
243
243
|
let t = 0;
|
|
244
|
-
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o,
|
|
245
|
-
const h =
|
|
244
|
+
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o, n) => {
|
|
245
|
+
const h = n.getComputedTextLength();
|
|
246
246
|
return h > o ? h : o;
|
|
247
247
|
}, 0));
|
|
248
248
|
const a = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
@@ -251,7 +251,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
251
251
|
const de = i(0), gt = tt((t) => {
|
|
252
252
|
de.value = t;
|
|
253
253
|
}, 100);
|
|
254
|
-
|
|
254
|
+
Ft((t) => {
|
|
255
|
+
const a = H.value;
|
|
256
|
+
if (!a) return;
|
|
257
|
+
const l = new ResizeObserver((o) => {
|
|
258
|
+
gt(o[0].contentRect.height);
|
|
259
|
+
});
|
|
260
|
+
l.observe(a), t(() => l.disconnect());
|
|
261
|
+
}), Ye(() => {
|
|
255
262
|
de.value = 0;
|
|
256
263
|
});
|
|
257
264
|
const xt = c(() => {
|
|
@@ -260,11 +267,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
260
267
|
let a = 0;
|
|
261
268
|
return H.value && (a = de.value + 12), t + a;
|
|
262
269
|
}), s = c(() => {
|
|
263
|
-
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = D.value - U.value.right, o = Math.max(0, l - a),
|
|
270
|
+
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = D.value - U.value.right, o = Math.max(0, l - a), n = U.value.top + e.value.style.chart.plots.radius + e.value.style.chart.labels.bestPlotLabel.fontSize, h = A.value - U.value.bottom - xt.value, N = Math.max(0, h - n), Ve = Array.isArray(re.value) ? re.value.length : 0, Dt = Ve > 0 ? o / Ve : 0;
|
|
264
271
|
return {
|
|
265
272
|
left: a,
|
|
266
273
|
right: l,
|
|
267
|
-
top:
|
|
274
|
+
top: n,
|
|
268
275
|
bottom: h,
|
|
269
276
|
width: o,
|
|
270
277
|
height: N,
|
|
@@ -276,17 +283,17 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
276
283
|
return {
|
|
277
284
|
...t,
|
|
278
285
|
id: l,
|
|
279
|
-
color: t.color ? Ze(t.color) :
|
|
280
|
-
plots: t.plots.map((o,
|
|
286
|
+
color: t.color ? Ze(t.color) : Fe.value[a] || P[a] || P[a % P.length],
|
|
287
|
+
plots: t.plots.map((o, n) => ({
|
|
281
288
|
...o,
|
|
282
|
-
value:
|
|
289
|
+
value: Gt(o.value),
|
|
283
290
|
parentId: l,
|
|
284
291
|
parentName: t.name,
|
|
285
292
|
parentIndex: a,
|
|
286
|
-
plotIndex:
|
|
287
|
-
color: t.color ? Ze(t.color) :
|
|
293
|
+
plotIndex: n,
|
|
294
|
+
color: t.color ? Ze(t.color) : Fe.value[a] || P[a] || P[a % P.length],
|
|
288
295
|
id: ge()
|
|
289
|
-
})).sort((o,
|
|
296
|
+
})).sort((o, n) => o.value - n.value)
|
|
290
297
|
};
|
|
291
298
|
})), k = c(() => (V.value || []).map((t, a) => ({
|
|
292
299
|
...t,
|
|
@@ -300,7 +307,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
300
307
|
max: Math.max(...t),
|
|
301
308
|
min: Math.min(...t)
|
|
302
309
|
};
|
|
303
|
-
}), $ = c(() =>
|
|
310
|
+
}), $ = c(() => Ht(pe.value.min < 0 ? pe.value.min : 0, pe.value.max, e.value.style.chart.grid.scaleSteps)), wt = c(() => (k.value || []).map((t, a) => ({
|
|
304
311
|
...t,
|
|
305
312
|
plots: t.plots.map((l) => ({
|
|
306
313
|
...l,
|
|
@@ -338,7 +345,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
338
345
|
o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, o += `<div>${ke(
|
|
339
346
|
e.value.style.chart.labels.formatter,
|
|
340
347
|
t.value,
|
|
341
|
-
|
|
348
|
+
Q({
|
|
342
349
|
p: e.value.style.chart.labels.prefix,
|
|
343
350
|
v: t.value,
|
|
344
351
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -349,26 +356,26 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
349
356
|
}
|
|
350
357
|
}
|
|
351
358
|
const X = c(() => {
|
|
352
|
-
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o,
|
|
359
|
+
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
|
|
353
360
|
name: `${l.name} - ${o.name}`,
|
|
354
361
|
color: o.color
|
|
355
|
-
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o,
|
|
362
|
+
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
|
|
356
363
|
return { head: t, body: a };
|
|
357
364
|
});
|
|
358
365
|
function be(t = null) {
|
|
359
|
-
|
|
360
|
-
const a = X.value.head.map((
|
|
361
|
-
|
|
362
|
-
], [X.value.body[h]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o =
|
|
363
|
-
t ? t(o) :
|
|
366
|
+
Rt(() => {
|
|
367
|
+
const a = X.value.head.map((n, h) => [[
|
|
368
|
+
n.name
|
|
369
|
+
], [X.value.body[h]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o = Jt(l);
|
|
370
|
+
t ? t(o) : Qt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
364
371
|
});
|
|
365
372
|
}
|
|
366
373
|
const Y = c(() => {
|
|
367
374
|
const t = [
|
|
368
375
|
e.value.table.columnNames.series,
|
|
369
376
|
e.value.table.columnNames.value
|
|
370
|
-
], a = X.value.head.map((
|
|
371
|
-
const N =
|
|
377
|
+
], a = X.value.head.map((n, h) => {
|
|
378
|
+
const N = Q({
|
|
372
379
|
p: e.value.style.chart.labels.prefix,
|
|
373
380
|
v: X.value.body[h],
|
|
374
381
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -376,8 +383,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
376
383
|
});
|
|
377
384
|
return [
|
|
378
385
|
{
|
|
379
|
-
color:
|
|
380
|
-
name:
|
|
386
|
+
color: n.color,
|
|
387
|
+
name: n.name
|
|
381
388
|
},
|
|
382
389
|
N
|
|
383
390
|
];
|
|
@@ -425,9 +432,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
425
432
|
}
|
|
426
433
|
async function Tt({ scale: t = 2 } = {}) {
|
|
427
434
|
if (!w.value) return;
|
|
428
|
-
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri:
|
|
435
|
+
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: h } = await ul({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
429
436
|
return {
|
|
430
|
-
imageUri:
|
|
437
|
+
imageUri: n,
|
|
431
438
|
base64: h,
|
|
432
439
|
title: e.value.style.chart.title.text,
|
|
433
440
|
width: a,
|
|
@@ -436,7 +443,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
436
443
|
};
|
|
437
444
|
}
|
|
438
445
|
const Ge = c(() => k.value.map((t) => t.name)), $t = i({ start: 0, end: k.value.length });
|
|
439
|
-
|
|
446
|
+
nl({
|
|
440
447
|
timeLabelsEls: H,
|
|
441
448
|
timeLabels: Ge,
|
|
442
449
|
slicer: $t,
|
|
@@ -452,7 +459,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
452
459
|
const W = c(() => {
|
|
453
460
|
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
454
461
|
return {
|
|
455
|
-
component: t ? dt :
|
|
462
|
+
component: t ? dt : ut,
|
|
456
463
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
457
464
|
props: t ? {
|
|
458
465
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -485,36 +492,36 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
485
492
|
function He() {
|
|
486
493
|
p.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
487
494
|
}
|
|
488
|
-
const St = c(() => e.value.style.chart.backgroundColor), Ot = c(() => e.value.style.chart.title), { exportSvg:
|
|
495
|
+
const St = c(() => e.value.style.chart.backgroundColor), Ot = c(() => e.value.style.chart.title), { exportSvg: Pt, getSvg: zt } = ol({
|
|
489
496
|
svg: ie,
|
|
490
497
|
title: Ot,
|
|
491
498
|
backgroundColor: St
|
|
492
499
|
});
|
|
493
500
|
async function Ue({ isCb: t }) {
|
|
494
501
|
if (t) {
|
|
495
|
-
const { blob: a, url: l, text: o, dataUrl:
|
|
496
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl:
|
|
502
|
+
const { blob: a, url: l, text: o, dataUrl: n } = await zt();
|
|
503
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: n });
|
|
497
504
|
} else
|
|
498
|
-
|
|
505
|
+
Pt();
|
|
499
506
|
}
|
|
500
507
|
return ot({
|
|
501
508
|
getData: _t,
|
|
502
509
|
getImage: Tt,
|
|
503
510
|
generatePdf: Ne,
|
|
504
511
|
generateCsv: be,
|
|
505
|
-
generateImage:
|
|
512
|
+
generateImage: Me,
|
|
506
513
|
generateSvg: Ue,
|
|
507
514
|
toggleTable: Be,
|
|
508
515
|
toggleLabels: We,
|
|
509
516
|
toggleTooltip: Ee,
|
|
510
517
|
toggleAnnotator: ye,
|
|
511
518
|
toggleFullscreen: Re
|
|
512
|
-
}), (t, a) => (r(),
|
|
519
|
+
}), (t, a) => (r(), u("div", {
|
|
513
520
|
ref_key: "stripPlotChart",
|
|
514
521
|
ref: w,
|
|
515
522
|
class: E(`vue-data-ui-component vue-ui-strip-plot ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
516
523
|
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
517
|
-
id: `strip-plot_${
|
|
524
|
+
id: `strip-plot_${K.value}`,
|
|
518
525
|
onMouseenter: a[1] || (a[1] = () => v(Se)(!0)),
|
|
519
526
|
onMouseleave: a[2] || (a[2] = () => v(Se)(!1))
|
|
520
527
|
}, [
|
|
@@ -526,14 +533,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
526
533
|
active: j.value,
|
|
527
534
|
onClose: ye
|
|
528
535
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
529
|
-
bt.value ? (r(),
|
|
536
|
+
bt.value ? (r(), u("div", {
|
|
530
537
|
key: 1,
|
|
531
538
|
ref_key: "noTitle",
|
|
532
539
|
ref: Le,
|
|
533
540
|
class: "vue-data-ui-no-title-space",
|
|
534
541
|
style: "height:36px; width: 100%;background:transparent"
|
|
535
542
|
}, null, 512)) : d("", !0),
|
|
536
|
-
e.value.style.chart.title.text ? (r(),
|
|
543
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
537
544
|
key: 2,
|
|
538
545
|
ref_key: "chartTitle",
|
|
539
546
|
ref: Ce,
|
|
@@ -553,15 +560,15 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
553
560
|
}
|
|
554
561
|
}, null, 8, ["config"]))
|
|
555
562
|
], 512)) : d("", !0),
|
|
556
|
-
e.value.userOptions.show && G.value && (v(Oe) || v(
|
|
563
|
+
e.value.userOptions.show && G.value && (v(Oe) || v(ue)) ? (r(), O(v(vt), {
|
|
557
564
|
ref_key: "userOptionsRef",
|
|
558
565
|
ref: te,
|
|
559
566
|
key: `user_option_${we.value}`,
|
|
560
567
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
561
568
|
color: e.value.style.chart.color,
|
|
562
|
-
isPrinting: v(
|
|
569
|
+
isPrinting: v(ze),
|
|
563
570
|
isImaging: v(De),
|
|
564
|
-
uid:
|
|
571
|
+
uid: K.value,
|
|
565
572
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
566
573
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
567
574
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -583,20 +590,20 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
583
590
|
onToggleFullscreen: Re,
|
|
584
591
|
onGeneratePdf: v(Ne),
|
|
585
592
|
onGenerateCsv: be,
|
|
586
|
-
onGenerateImage: v(
|
|
593
|
+
onGenerateImage: v(Me),
|
|
587
594
|
onGenerateSvg: Ue,
|
|
588
595
|
onToggleTable: Be,
|
|
589
596
|
onToggleLabels: We,
|
|
590
597
|
onToggleTooltip: Ee,
|
|
591
598
|
onToggleAnnotator: ye,
|
|
592
599
|
style: J({
|
|
593
|
-
visibility: v(Oe) ? v(
|
|
600
|
+
visibility: v(Oe) ? v(ue) ? "visible" : "hidden" : "visible"
|
|
594
601
|
})
|
|
595
602
|
}, je({ _: 2 }, [
|
|
596
603
|
t.$slots.menuIcon ? {
|
|
597
604
|
name: "menuIcon",
|
|
598
605
|
fn: b(({ isOpen: l, color: o }) => [
|
|
599
|
-
y(t.$slots, "menuIcon", F(
|
|
606
|
+
y(t.$slots, "menuIcon", M(F({ isOpen: l, color: o })), void 0, !0)
|
|
600
607
|
]),
|
|
601
608
|
key: "0"
|
|
602
609
|
} : void 0,
|
|
@@ -645,28 +652,28 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
645
652
|
t.$slots.optionFullscreen ? {
|
|
646
653
|
name: "optionFullscreen",
|
|
647
654
|
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
648
|
-
y(t.$slots, "optionFullscreen", F(
|
|
655
|
+
y(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
649
656
|
]),
|
|
650
657
|
key: "7"
|
|
651
658
|
} : void 0,
|
|
652
659
|
t.$slots.optionAnnotator ? {
|
|
653
660
|
name: "optionAnnotator",
|
|
654
661
|
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
655
|
-
y(t.$slots, "optionAnnotator", F(
|
|
662
|
+
y(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
656
663
|
]),
|
|
657
664
|
key: "8"
|
|
658
665
|
} : void 0
|
|
659
666
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
660
|
-
(r(),
|
|
667
|
+
(r(), u("svg", {
|
|
661
668
|
ref_key: "svgRef",
|
|
662
669
|
ref: ie,
|
|
663
|
-
xmlns: v(
|
|
670
|
+
xmlns: v(Ut),
|
|
664
671
|
class: E({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
665
672
|
viewBox: `0 0 ${D.value} ${A.value}`,
|
|
666
673
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
667
674
|
}, [
|
|
668
675
|
me(v(ht)),
|
|
669
|
-
t.$slots["chart-background"] ? (r(),
|
|
676
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
670
677
|
key: 0,
|
|
671
678
|
x: s.value.left,
|
|
672
679
|
y: s.value.top,
|
|
@@ -678,9 +685,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
678
685
|
}, [
|
|
679
686
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
680
687
|
], 8, fl)) : d("", !0),
|
|
681
|
-
e.value.style.chart.grid.show ? (r(),
|
|
682
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(),
|
|
683
|
-
(r(!0),
|
|
688
|
+
e.value.style.chart.grid.show ? (r(), u("g", bl, [
|
|
689
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", yl, [
|
|
690
|
+
(r(!0), u(g, null, _(Ie.value, (l) => (r(), u("line", {
|
|
684
691
|
x1: l.x1,
|
|
685
692
|
x2: l.x2,
|
|
686
693
|
y1: l.y,
|
|
@@ -691,8 +698,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
691
698
|
"stroke-linecap": "round"
|
|
692
699
|
}, null, 8, ml))), 256))
|
|
693
700
|
])) : d("", !0),
|
|
694
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(),
|
|
695
|
-
(r(!0),
|
|
701
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", gl, [
|
|
702
|
+
(r(!0), u(g, null, _(k.value, (l, o) => (r(), u("line", {
|
|
696
703
|
x1: s.value.left + (o + 1) * s.value.stripWidth,
|
|
697
704
|
x2: s.value.left + (o + 1) * s.value.stripWidth,
|
|
698
705
|
y1: s.value.top,
|
|
@@ -722,12 +729,12 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
722
729
|
"stroke-linecap": "round"
|
|
723
730
|
}, null, 8, wl)
|
|
724
731
|
])) : d("", !0),
|
|
725
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(),
|
|
732
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(), u("g", {
|
|
726
733
|
key: 2,
|
|
727
734
|
ref_key: "scaleLabels",
|
|
728
735
|
ref: oe
|
|
729
736
|
}, [
|
|
730
|
-
(r(!0),
|
|
737
|
+
(r(!0), u(g, null, _(Ie.value, (l, o) => (r(), u("text", {
|
|
731
738
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
732
739
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
733
740
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
@@ -736,7 +743,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
736
743
|
}, T(v(ke)(
|
|
737
744
|
e.value.style.chart.labels.formatter,
|
|
738
745
|
l.value,
|
|
739
|
-
v(
|
|
746
|
+
v(Q)({
|
|
740
747
|
p: e.value.style.chart.labels.prefix,
|
|
741
748
|
v: l.value,
|
|
742
749
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -745,28 +752,28 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
745
752
|
{ datapoint: l, seriesIndex: o }
|
|
746
753
|
)), 9, Cl))), 256))
|
|
747
754
|
], 512)) : d("", !0),
|
|
748
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(),
|
|
755
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(), u("g", {
|
|
749
756
|
key: 3,
|
|
750
757
|
ref_key: "timeLabelsEls",
|
|
751
758
|
ref: H
|
|
752
759
|
}, [
|
|
753
|
-
(r(!0),
|
|
760
|
+
(r(!0), u(g, null, _(Ge.value, (l, o) => (r(), u("g", null, [
|
|
754
761
|
String(l).includes(`
|
|
755
|
-
`) ? (r(),
|
|
762
|
+
`) ? (r(), u("text", {
|
|
756
763
|
key: 1,
|
|
757
764
|
class: "vue-ui-strip-plot-category-name",
|
|
758
765
|
transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
759
766
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
760
767
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
761
768
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
762
|
-
innerHTML: v(
|
|
763
|
-
content: v(
|
|
769
|
+
innerHTML: v(Vt)({
|
|
770
|
+
content: v(Xt)(String(l)),
|
|
764
771
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
765
772
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
766
773
|
x: 0,
|
|
767
774
|
y: 0
|
|
768
775
|
})
|
|
769
|
-
}, null, 8, Ll)) : (r(),
|
|
776
|
+
}, null, 8, Ll)) : (r(), u("text", {
|
|
770
777
|
key: 0,
|
|
771
778
|
class: "vue-ui-strip-plot-category-name",
|
|
772
779
|
transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -776,7 +783,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
776
783
|
}, T(String(l)), 9, Al))
|
|
777
784
|
]))), 256))
|
|
778
785
|
], 512)) : d("", !0),
|
|
779
|
-
e.value.style.chart.labels.axis.yLabel ? (r(),
|
|
786
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
780
787
|
key: 4,
|
|
781
788
|
ref_key: "yAxisLabel",
|
|
782
789
|
ref: ae,
|
|
@@ -785,7 +792,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
785
792
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
786
793
|
"text-anchor": "middle"
|
|
787
794
|
}, T(e.value.style.chart.labels.axis.yLabel), 9, _l)) : d("", !0),
|
|
788
|
-
e.value.style.chart.labels.axis.xLabel ? (r(),
|
|
795
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
789
796
|
key: 5,
|
|
790
797
|
ref_key: "xAxisLabel",
|
|
791
798
|
ref: le,
|
|
@@ -795,7 +802,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
795
802
|
y: A.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
796
803
|
"text-anchor": "middle"
|
|
797
804
|
}, T(e.value.style.chart.labels.axis.xLabel), 9, Tl)) : d("", !0),
|
|
798
|
-
f.value ? (r(),
|
|
805
|
+
f.value ? (r(), u(g, { key: 6 }, [
|
|
799
806
|
m("line", {
|
|
800
807
|
x1: s.value.left,
|
|
801
808
|
x2: s.value.right,
|
|
@@ -821,68 +828,68 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
821
828
|
}, null, 10, Ol)
|
|
822
829
|
], 64)) : d("", !0),
|
|
823
830
|
m("defs", null, [
|
|
824
|
-
(r(!0),
|
|
831
|
+
(r(!0), u(g, null, _(k.value, (l) => (r(), u("radialGradient", {
|
|
825
832
|
id: l.id,
|
|
826
833
|
fy: "30%"
|
|
827
834
|
}, [
|
|
828
835
|
m("stop", {
|
|
829
836
|
offset: "10%",
|
|
830
|
-
"stop-color": v(
|
|
831
|
-
}, null, 8,
|
|
837
|
+
"stop-color": v(Yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
838
|
+
}, null, 8, zl),
|
|
832
839
|
m("stop", {
|
|
833
840
|
offset: "90%",
|
|
834
|
-
"stop-color": v(
|
|
841
|
+
"stop-color": v(jt)(l.color, 0.1)
|
|
835
842
|
}, null, 8, Dl),
|
|
836
843
|
m("stop", {
|
|
837
844
|
offset: "100%",
|
|
838
845
|
"stop-color": l.color
|
|
839
846
|
}, null, 8, Nl)
|
|
840
|
-
], 8,
|
|
847
|
+
], 8, Pl))), 256))
|
|
841
848
|
]),
|
|
842
|
-
(r(!0),
|
|
843
|
-
(r(!0),
|
|
844
|
-
plot: { x:
|
|
845
|
-
radius: f.value && f.value.id ===
|
|
849
|
+
(r(!0), u(g, null, _(wt.value, (l, o) => (r(), u(g, null, [
|
|
850
|
+
(r(!0), u(g, null, _(l.plots, (n, h) => (r(), O(il, qe({ ref_for: !0 }, t.$attrs, {
|
|
851
|
+
plot: { x: n.x, y: _e.value ? n.y : s.value.top },
|
|
852
|
+
radius: f.value && f.value.id === n.id ? he.value * 1.5 : he.value,
|
|
846
853
|
shape: e.value.style.chart.plots.shape,
|
|
847
854
|
stroke: e.value.style.chart.plots.stroke,
|
|
848
855
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
849
856
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
850
|
-
style: `transition: all 0.2s ease-in-out; opacity:${f.value ? f.value.id ===
|
|
857
|
+
style: `transition: all 0.2s ease-in-out; opacity:${f.value ? f.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${R.value ? `transition-delay:${h * 50}ms` : ""}`,
|
|
851
858
|
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !v(se), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !R.value },
|
|
852
|
-
onMouseenter: (N) => Lt({ datapoint:
|
|
853
|
-
onMouseleave: (N) => Ct({ datapoint:
|
|
854
|
-
onClick: (N) => At({ datapoint:
|
|
859
|
+
onMouseenter: (N) => Lt({ datapoint: n, seriesIndex: h }),
|
|
860
|
+
onMouseleave: (N) => Ct({ datapoint: n, seriesIndex: h }),
|
|
861
|
+
onClick: (N) => At({ datapoint: n, seriesIndex: h })
|
|
855
862
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
856
|
-
p.value.dataLabels.show ? (r(),
|
|
857
|
-
(r(!0),
|
|
858
|
-
h === l.plots.length - 1 || f.value && f.value.id ===
|
|
863
|
+
p.value.dataLabels.show ? (r(), u("g", Ml, [
|
|
864
|
+
(r(!0), u(g, null, _(l.plots, (n, h) => (r(), u(g, null, [
|
|
865
|
+
h === l.plots.length - 1 || f.value && f.value.id === n.id && !p.value.showTooltip ? (r(), u("text", {
|
|
859
866
|
key: 0,
|
|
860
|
-
x:
|
|
861
|
-
y:
|
|
867
|
+
x: n.x,
|
|
868
|
+
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - he.value * (f.value && f.value.id === n.id && !p.value.showTooltip ? 2 : 1.5),
|
|
862
869
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
863
870
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
864
871
|
"text-anchor": "middle",
|
|
865
872
|
style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
866
|
-
}, T(
|
|
873
|
+
}, T(n.name) + " " + T(e.value.style.chart.labels.bestPlotLabel.showValue ? v(ke)(
|
|
867
874
|
e.value.style.chart.labels.formatter,
|
|
868
|
-
|
|
869
|
-
v(
|
|
875
|
+
n.value,
|
|
876
|
+
v(Q)({
|
|
870
877
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
871
|
-
v:
|
|
878
|
+
v: n.value,
|
|
872
879
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
873
880
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
874
881
|
}),
|
|
875
|
-
{ datapoint:
|
|
876
|
-
) : ""), 13,
|
|
882
|
+
{ datapoint: n, seriesIndex: h }
|
|
883
|
+
) : ""), 13, Fl)) : d("", !0)
|
|
877
884
|
], 64))), 256))
|
|
878
885
|
])) : d("", !0)
|
|
879
886
|
], 64))), 256)),
|
|
880
887
|
y(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
881
888
|
], 14, pl)),
|
|
882
|
-
t.$slots.watermark ? (r(),
|
|
883
|
-
y(t.$slots, "watermark", F(
|
|
889
|
+
t.$slots.watermark ? (r(), u("div", Il, [
|
|
890
|
+
y(t.$slots, "watermark", M(F({ isPrinting: v(ze) || v(De) })), void 0, !0)
|
|
884
891
|
])) : d("", !0),
|
|
885
|
-
t.$slots.source ? (r(),
|
|
892
|
+
t.$slots.source ? (r(), u("div", {
|
|
886
893
|
key: 5,
|
|
887
894
|
ref_key: "source",
|
|
888
895
|
ref: Ae,
|
|
@@ -911,14 +918,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
911
918
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
912
919
|
}, {
|
|
913
920
|
"tooltip-before": b(() => [
|
|
914
|
-
y(t.$slots, "tooltip-before", F(
|
|
921
|
+
y(t.$slots, "tooltip-before", M(F({ ...fe.value })), void 0, !0)
|
|
915
922
|
]),
|
|
916
923
|
"tooltip-after": b(() => [
|
|
917
|
-
y(t.$slots, "tooltip-after", F(
|
|
924
|
+
y(t.$slots, "tooltip-after", M(F({ ...fe.value })), void 0, !0)
|
|
918
925
|
]),
|
|
919
926
|
_: 3
|
|
920
927
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
921
|
-
G.value && e.value.userOptions.buttons.table ? (r(), O(
|
|
928
|
+
G.value && e.value.userOptions.buttons.table ? (r(), O(It(W.value.component), qe({ key: 6 }, W.value.props, {
|
|
922
929
|
ref_key: "tableUnit",
|
|
923
930
|
ref: I,
|
|
924
931
|
onClose: He
|
|
@@ -963,7 +970,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
963
970
|
class: "vue-ui-user-options-button",
|
|
964
971
|
onClick: a[0] || (a[0] = (l) => be(e.value.userOptions.callbacks.csv))
|
|
965
972
|
}, [
|
|
966
|
-
me(v(
|
|
973
|
+
me(v(nt), {
|
|
967
974
|
name: "excel",
|
|
968
975
|
stroke: W.value.props.color
|
|
969
976
|
}, null, 8, ["stroke"])
|
|
@@ -972,10 +979,10 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
972
979
|
key: "1"
|
|
973
980
|
} : void 0
|
|
974
981
|
]), 1040)) : d("", !0),
|
|
975
|
-
v(se) ? (r(), O(
|
|
982
|
+
v(se) ? (r(), O(ll, { key: 7 })) : d("", !0)
|
|
976
983
|
], 46, dl));
|
|
977
984
|
}
|
|
978
|
-
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-
|
|
985
|
+
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-20847046"]]);
|
|
979
986
|
export {
|
|
980
987
|
ta as default
|
|
981
988
|
};
|