vue-data-ui 3.2.8 → 3.3.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-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.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-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.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-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.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 L, computed 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 L, computed as c, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as Ft, onBeforeUnmount as Ye, watchEffect as Mt, 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 F, guardReactiveProps as M, 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 z, o as Ke, f as xe, g as Qe, e as Et, h as Ze, q as Gt, C as Ht, d as K, X as Ut, a as ke, L as Vt, ac as Xt, m as Yt, r as jt, z as et, D as qt, x as Jt, y as Kt, A as Qt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as tt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as el, a as lt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as al } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as ol } from "./useSvgExport-B7-Vrjtu.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-6wPuVVtk.js";
|
|
12
|
+
import { _ as il } from "./Shape-DJG2zW7b.js";
|
|
13
|
+
import vl from "./Title-D17CJXko.js";
|
|
14
|
+
import { t as cl } from "./themes-Dw-dDudK.js";
|
|
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"], zl = ["id"], Pl = ["stop-color"], Dl = ["stop-color"], Nl = ["stop-color"], Fl = { key: 0 }, Ml = ["x", "y", "font-size", "fill"], Il = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Rl = ["innerHTML"], Bl = {
|
|
19
20
|
__name: "vue-ui-strip-plot",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,18 +33,18 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
36
|
+
setup(at, { expose: ot, emit: st }) {
|
|
37
|
+
const rt = L(() => import("./Tooltip-CtVdvbZi.js")), nt = L(() => import("./BaseIcon-CtqN7W_g.js")), ut = L(() => import("./vue-ui-accordion-Dch9YrCi.js")), it = L(() => import("./DataTable-BeI6gYJX.js")), vt = L(() => import("./UserOptions-B3vCIe-u.js")), ct = L(() => import("./PenAndPaper-BxbYiPy4.js")), ht = L(() => import("./PackageVersion-C9oklnuy.js")), dt = L(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_strip_plot: pt } = el(), x = at, ft = st, G = c({
|
|
37
38
|
get() {
|
|
38
39
|
return !!x.dataset && x.dataset.length;
|
|
39
40
|
},
|
|
40
41
|
set(t) {
|
|
41
42
|
return t;
|
|
42
43
|
}
|
|
43
|
-
}), Q = i(
|
|
44
|
-
...
|
|
44
|
+
}), Q = 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
|
+
...Nt(x),
|
|
45
46
|
FINAL_CONFIG: e,
|
|
46
|
-
prepareConfig:
|
|
47
|
+
prepareConfig: ve,
|
|
47
48
|
skeletonDataset: [
|
|
48
49
|
{
|
|
49
50
|
name: "_",
|
|
@@ -91,7 +92,7 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
91
92
|
]
|
|
92
93
|
}
|
|
93
94
|
],
|
|
94
|
-
skeletonConfig:
|
|
95
|
+
skeletonConfig: Bt({
|
|
95
96
|
defaultConfig: e.value,
|
|
96
97
|
userConfig: {
|
|
97
98
|
userOptions: { show: !1 },
|
|
@@ -130,98 +131,98 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
})
|
|
133
|
-
}), { userOptionsVisible: ue, setUserOptionsVisibility:
|
|
134
|
-
function
|
|
135
|
-
const t =
|
|
134
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: Se, keepUserOptionState: Oe } = sl({ config: e.value }), { svgRef: ie } = rl({ config: e.value.style.chart.title });
|
|
135
|
+
function ve() {
|
|
136
|
+
const t = lt({
|
|
136
137
|
userConfig: x.config,
|
|
137
|
-
defaultConfig:
|
|
138
|
+
defaultConfig: pt
|
|
138
139
|
});
|
|
139
140
|
return t.theme ? {
|
|
140
|
-
...
|
|
141
|
-
userConfig:
|
|
141
|
+
...lt({
|
|
142
|
+
userConfig: cl.vue_ui_strip_plot[t.theme] || x.config,
|
|
142
143
|
defaultConfig: t
|
|
143
144
|
}),
|
|
144
|
-
customPalette:
|
|
145
|
+
customPalette: Wt[t.theme] || z
|
|
145
146
|
} : t;
|
|
146
147
|
}
|
|
147
148
|
q(() => x.config, async (t) => {
|
|
148
|
-
se.value || (e.value =
|
|
149
|
+
se.value || (e.value = ve()), ue.value = !e.value.userOptions.showOnChartHover, ze(), 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;
|
|
149
150
|
}, { deep: !0 }), q(() => x.dataset, (t) => {
|
|
150
|
-
Array.isArray(t) && t.length > 0 && (
|
|
151
|
+
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
151
152
|
}, { deep: !0 });
|
|
152
|
-
const
|
|
153
|
-
|
|
153
|
+
const C = Xe(null), P = Xe(null);
|
|
154
|
+
Ft(() => {
|
|
154
155
|
ze();
|
|
155
156
|
});
|
|
156
|
-
const
|
|
157
|
+
const ce = c(() => !!e.value.debug);
|
|
157
158
|
function ze() {
|
|
158
|
-
if (
|
|
159
|
+
if (Ke(x.dataset) ? (xe({
|
|
159
160
|
componentName: "VueUiStripPlot",
|
|
160
161
|
type: "dataset",
|
|
161
|
-
debug:
|
|
162
|
-
}),
|
|
163
|
-
|
|
162
|
+
debug: ce.value
|
|
163
|
+
}), ne.value = !0) : x.dataset.forEach((t, a) => {
|
|
164
|
+
Qe({
|
|
164
165
|
datasetObject: t,
|
|
165
166
|
requiredAttributes: ["name", "plots"]
|
|
166
167
|
}).forEach((l) => {
|
|
167
|
-
G.value = !1,
|
|
168
|
+
G.value = !1, xe({
|
|
168
169
|
componentName: "VueUiStripPlot",
|
|
169
170
|
type: "datasetSerieAttribute",
|
|
170
171
|
property: l,
|
|
171
172
|
index: a,
|
|
172
|
-
debug:
|
|
173
|
+
debug: ce.value
|
|
173
174
|
});
|
|
174
|
-
}), t.plots && t.plots.forEach((l,
|
|
175
|
-
|
|
175
|
+
}), t.plots && t.plots.forEach((l, o) => {
|
|
176
|
+
Qe({
|
|
176
177
|
datasetObject: l,
|
|
177
178
|
requiredAttributes: ["name", "value"]
|
|
178
|
-
}).forEach((
|
|
179
|
-
G.value = !1,
|
|
179
|
+
}).forEach((n) => {
|
|
180
|
+
G.value = !1, xe({
|
|
180
181
|
componentName: "VueUiStripPlot",
|
|
181
182
|
type: "datasetSerieAttribute",
|
|
182
|
-
property:
|
|
183
|
-
index: `${a},${
|
|
184
|
-
debug:
|
|
183
|
+
property: n,
|
|
184
|
+
index: `${a},${o}`,
|
|
185
|
+
debug: ce.value
|
|
185
186
|
});
|
|
186
187
|
});
|
|
187
188
|
});
|
|
188
|
-
}),
|
|
189
|
-
const t =
|
|
190
|
-
const { width: a, height: l } =
|
|
189
|
+
}), Ke(x.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
190
|
+
const t = tt(() => {
|
|
191
|
+
const { width: a, height: l } = Zt({
|
|
191
192
|
chart: w.value,
|
|
192
|
-
title: e.value.style.chart.title.text ?
|
|
193
|
-
source:
|
|
194
|
-
noTitle:
|
|
193
|
+
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
194
|
+
source: Ae.value,
|
|
195
|
+
noTitle: Le.value
|
|
195
196
|
});
|
|
196
197
|
requestAnimationFrame(() => {
|
|
197
|
-
|
|
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({
|
|
198
199
|
relator: Math.min(l, a),
|
|
199
200
|
adjuster: 600,
|
|
200
201
|
source: e.value.style.chart.plots.radius,
|
|
201
202
|
threshold: 6,
|
|
202
203
|
fallback: 6
|
|
203
|
-
}) :
|
|
204
|
+
}) : B.value = e.value.style.chart.plots.radius;
|
|
204
205
|
});
|
|
205
206
|
});
|
|
206
|
-
|
|
207
|
+
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect()), C.value = new ResizeObserver(t), P.value = w.value.parentNode, C.value.observe(P.value);
|
|
207
208
|
}
|
|
208
|
-
|
|
209
|
+
_e.value = !0, setTimeout(() => {
|
|
209
210
|
R.value = !1;
|
|
210
|
-
},
|
|
211
|
+
}, kt.value * 50);
|
|
211
212
|
}
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
Ye(() => {
|
|
214
|
+
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect());
|
|
214
215
|
});
|
|
215
|
-
const { isPrinting: Pe, isImaging: De, generatePdf: Ne, generateImage: Fe } =
|
|
216
|
+
const { isPrinting: Pe, isImaging: De, generatePdf: Ne, generateImage: Fe } = al({
|
|
216
217
|
elementId: `strip-plot_${Q.value}`,
|
|
217
218
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
218
219
|
options: e.value.userOptions.print
|
|
219
|
-
}),
|
|
220
|
+
}), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Me = c(() => Et(e.value.customPalette)), R = i(e.value.useCssAnimation), U = i({
|
|
220
221
|
top: e.value.style.chart.padding.top,
|
|
221
222
|
bottom: e.value.style.chart.padding.bottom,
|
|
222
223
|
left: e.value.style.chart.padding.left,
|
|
223
224
|
right: e.value.style.chart.padding.right
|
|
224
|
-
}),
|
|
225
|
+
}), D = i(e.value.style.chart.width), A = i(e.value.style.chart.height), yt = i(e.value.style.chart.height), B = i(e.value.style.chart.plots.radius), p = i({
|
|
225
226
|
showTable: e.value.table.show,
|
|
226
227
|
dataLabels: {
|
|
227
228
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -229,119 +230,119 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
229
230
|
showTooltip: e.value.style.chart.tooltip.show
|
|
230
231
|
});
|
|
231
232
|
q(e, () => {
|
|
232
|
-
|
|
233
|
+
p.value = {
|
|
233
234
|
showTable: e.value.table.show,
|
|
234
235
|
dataLabels: {
|
|
235
236
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
236
237
|
},
|
|
237
238
|
showTooltip: e.value.style.chart.tooltip.show
|
|
238
|
-
},
|
|
239
|
+
}, D.value = e.value.style.chart.width, A.value = e.value.style.chart.height, B.value = e.value.style.chart.plots.radius;
|
|
239
240
|
}, { immediate: !0 });
|
|
240
|
-
const
|
|
241
|
-
function
|
|
241
|
+
const he = c(() => Math.min(B.value, s.value.stripWidth / 2 * 0.9));
|
|
242
|
+
function mt() {
|
|
242
243
|
let t = 0;
|
|
243
|
-
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((
|
|
244
|
-
const
|
|
245
|
-
return
|
|
244
|
+
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o, n) => {
|
|
245
|
+
const h = n.getComputedTextLength();
|
|
246
|
+
return h > o ? h : o;
|
|
246
247
|
}, 0));
|
|
247
248
|
const a = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
248
249
|
return t + a + (a ? 24 : 0);
|
|
249
250
|
}
|
|
250
|
-
const
|
|
251
|
-
|
|
251
|
+
const de = i(0), gt = tt((t) => {
|
|
252
|
+
de.value = t;
|
|
252
253
|
}, 100);
|
|
253
|
-
|
|
254
|
+
Mt((t) => {
|
|
254
255
|
const a = H.value;
|
|
255
256
|
if (!a) return;
|
|
256
|
-
const l = new ResizeObserver((
|
|
257
|
-
|
|
257
|
+
const l = new ResizeObserver((o) => {
|
|
258
|
+
gt(o[0].contentRect.height);
|
|
258
259
|
});
|
|
259
260
|
l.observe(a), t(() => l.disconnect());
|
|
260
|
-
}),
|
|
261
|
-
|
|
261
|
+
}), Ye(() => {
|
|
262
|
+
de.value = 0;
|
|
262
263
|
});
|
|
263
|
-
const
|
|
264
|
+
const xt = c(() => {
|
|
264
265
|
let t = 0;
|
|
265
266
|
le.value && (t = le.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
|
|
266
267
|
let a = 0;
|
|
267
|
-
return H.value && (a =
|
|
268
|
-
}),
|
|
269
|
-
const t =
|
|
268
|
+
return H.value && (a = de.value + 12), t + a;
|
|
269
|
+
}), s = c(() => {
|
|
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;
|
|
270
271
|
return {
|
|
271
|
-
left:
|
|
272
|
-
right:
|
|
273
|
-
top:
|
|
274
|
-
bottom:
|
|
275
|
-
width:
|
|
276
|
-
height:
|
|
277
|
-
stripWidth:
|
|
278
|
-
absoluteHeight:
|
|
272
|
+
left: a,
|
|
273
|
+
right: l,
|
|
274
|
+
top: n,
|
|
275
|
+
bottom: h,
|
|
276
|
+
width: o,
|
|
277
|
+
height: N,
|
|
278
|
+
stripWidth: Dt,
|
|
279
|
+
absoluteHeight: A.value
|
|
279
280
|
};
|
|
280
|
-
}),
|
|
281
|
-
const l =
|
|
281
|
+
}), V = c(() => re.value.map((t, a) => {
|
|
282
|
+
const l = ge();
|
|
282
283
|
return {
|
|
283
284
|
...t,
|
|
284
285
|
id: l,
|
|
285
|
-
color: t.color ?
|
|
286
|
-
plots: t.plots.map((
|
|
287
|
-
...
|
|
288
|
-
value:
|
|
286
|
+
color: t.color ? Ze(t.color) : Me.value[a] || z[a] || z[a % z.length],
|
|
287
|
+
plots: t.plots.map((o, n) => ({
|
|
288
|
+
...o,
|
|
289
|
+
value: Gt(o.value),
|
|
289
290
|
parentId: l,
|
|
290
291
|
parentName: t.name,
|
|
291
292
|
parentIndex: a,
|
|
292
|
-
plotIndex:
|
|
293
|
-
color: t.color ?
|
|
294
|
-
id:
|
|
295
|
-
})).sort((
|
|
293
|
+
plotIndex: n,
|
|
294
|
+
color: t.color ? Ze(t.color) : Me.value[a] || z[a] || z[a % z.length],
|
|
295
|
+
id: ge()
|
|
296
|
+
})).sort((o, n) => o.value - n.value)
|
|
296
297
|
};
|
|
297
|
-
})), k =
|
|
298
|
+
})), k = c(() => (V.value || []).map((t, a) => ({
|
|
298
299
|
...t,
|
|
299
300
|
plots: t.plots.map((l) => ({
|
|
300
301
|
...l,
|
|
301
|
-
x:
|
|
302
|
+
x: s.value.left + (a + 1) * s.value.stripWidth - s.value.stripWidth / 2
|
|
302
303
|
}))
|
|
303
|
-
}))),
|
|
304
|
+
}))), kt = c(() => Math.max(...k.value.map((t) => t.plots.length))), pe = c(() => {
|
|
304
305
|
const t = k.value.flatMap((a) => a.plots.map((l) => l.value));
|
|
305
306
|
return {
|
|
306
307
|
max: Math.max(...t),
|
|
307
308
|
min: Math.min(...t)
|
|
308
309
|
};
|
|
309
|
-
}),
|
|
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) => ({
|
|
310
311
|
...t,
|
|
311
312
|
plots: t.plots.map((l) => ({
|
|
312
313
|
...l,
|
|
313
|
-
y:
|
|
314
|
+
y: s.value.bottom - (l.value + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min)) * s.value.height
|
|
314
315
|
}))
|
|
315
|
-
}))),
|
|
316
|
-
y:
|
|
317
|
-
x1:
|
|
318
|
-
x2:
|
|
316
|
+
}))), Ie = c(() => $.value.ticks.map((t) => ({
|
|
317
|
+
y: s.value.bottom - s.value.height * ((t + Math.abs($.value.min)) / ($.value.max + Math.abs($.value.min))),
|
|
318
|
+
x1: s.value.left,
|
|
319
|
+
x2: s.value.right,
|
|
319
320
|
value: t
|
|
320
|
-
}))),
|
|
321
|
-
function
|
|
322
|
-
Z.value = !1,
|
|
321
|
+
}))), fe = i(null), f = i(null);
|
|
322
|
+
function Ct({ datapoint: t, seriesIndex: a }) {
|
|
323
|
+
Z.value = !1, f.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
323
324
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
325
|
+
function At({ datapoint: t, seriesIndex: a }) {
|
|
326
|
+
ft("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
328
|
+
function Lt({ datapoint: t, seriesIndex: a }) {
|
|
329
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), fe.value = { datapoint: t, seriesIndex: a, config: e.value, series: V.value }, Z.value = !0, f.value = t;
|
|
329
330
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
330
|
-
if (
|
|
331
|
+
if (et(l) && Qt(() => l({
|
|
331
332
|
seriesIndex: a,
|
|
332
333
|
datapoint: t,
|
|
333
|
-
series:
|
|
334
|
+
series: V.value,
|
|
334
335
|
config: e.value
|
|
335
336
|
})))
|
|
336
337
|
ee.value = l({
|
|
337
338
|
seriesIndex: a,
|
|
338
339
|
datapoint: t,
|
|
339
|
-
series:
|
|
340
|
+
series: V.value,
|
|
340
341
|
config: e.value
|
|
341
342
|
});
|
|
342
343
|
else {
|
|
343
|
-
let
|
|
344
|
-
|
|
344
|
+
let o = "";
|
|
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(
|
|
345
346
|
e.value.style.chart.labels.formatter,
|
|
346
347
|
t.value,
|
|
347
348
|
K({
|
|
@@ -351,41 +352,41 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
351
352
|
r: e.value.style.chart.tooltip.roundingValue
|
|
352
353
|
}),
|
|
353
354
|
{ datapoint: t, seriesIndex: a }
|
|
354
|
-
)}</div>`, ee.value = `<div>${
|
|
355
|
+
)}</div>`, ee.value = `<div>${o}</div>`;
|
|
355
356
|
}
|
|
356
357
|
}
|
|
357
|
-
const
|
|
358
|
-
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((
|
|
359
|
-
name: `${l.name} - ${
|
|
360
|
-
color:
|
|
361
|
-
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((
|
|
358
|
+
const X = c(() => {
|
|
359
|
+
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
|
|
360
|
+
name: `${l.name} - ${o.name}`,
|
|
361
|
+
color: o.color
|
|
362
|
+
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
|
|
362
363
|
return { head: t, body: a };
|
|
363
364
|
});
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
const a =
|
|
367
|
-
|
|
368
|
-
], [
|
|
369
|
-
t ? t(
|
|
365
|
+
function be(t = null) {
|
|
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) : Kt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
370
371
|
});
|
|
371
372
|
}
|
|
372
|
-
const
|
|
373
|
+
const Y = c(() => {
|
|
373
374
|
const t = [
|
|
374
375
|
e.value.table.columnNames.series,
|
|
375
376
|
e.value.table.columnNames.value
|
|
376
|
-
], a =
|
|
377
|
-
const
|
|
377
|
+
], a = X.value.head.map((n, h) => {
|
|
378
|
+
const N = K({
|
|
378
379
|
p: e.value.style.chart.labels.prefix,
|
|
379
|
-
v:
|
|
380
|
+
v: X.value.body[h],
|
|
380
381
|
s: e.value.style.chart.labels.suffix,
|
|
381
382
|
r: e.value.table.td.roundingValue
|
|
382
383
|
});
|
|
383
384
|
return [
|
|
384
385
|
{
|
|
385
|
-
color:
|
|
386
|
-
name:
|
|
386
|
+
color: n.color,
|
|
387
|
+
name: n.name
|
|
387
388
|
},
|
|
388
|
-
|
|
389
|
+
N
|
|
389
390
|
];
|
|
390
391
|
}), l = {
|
|
391
392
|
th: {
|
|
@@ -409,63 +410,63 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
409
410
|
body: a,
|
|
410
411
|
config: l
|
|
411
412
|
};
|
|
412
|
-
}),
|
|
413
|
-
function
|
|
414
|
-
|
|
413
|
+
}), S = i(!1);
|
|
414
|
+
function Re(t) {
|
|
415
|
+
S.value = t, we.value += 1;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function _t() {
|
|
417
418
|
return k.value;
|
|
418
419
|
}
|
|
419
420
|
function Be() {
|
|
420
|
-
|
|
421
|
+
p.value.showTable = !p.value.showTable;
|
|
421
422
|
}
|
|
422
|
-
function
|
|
423
|
-
|
|
423
|
+
function We() {
|
|
424
|
+
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
424
425
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
426
|
+
function Ee() {
|
|
427
|
+
p.value.showTooltip = !p.value.showTooltip;
|
|
427
428
|
}
|
|
428
|
-
const
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
const j = i(!1);
|
|
430
|
+
function ye() {
|
|
431
|
+
j.value = !j.value;
|
|
431
432
|
}
|
|
432
|
-
async function
|
|
433
|
+
async function Tt({ scale: t = 2 } = {}) {
|
|
433
434
|
if (!w.value) return;
|
|
434
|
-
const { width: a, height: l } = w.value.getBoundingClientRect(),
|
|
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 });
|
|
435
436
|
return {
|
|
436
|
-
imageUri:
|
|
437
|
-
base64:
|
|
437
|
+
imageUri: n,
|
|
438
|
+
base64: h,
|
|
438
439
|
title: e.value.style.chart.title.text,
|
|
439
440
|
width: a,
|
|
440
441
|
height: l,
|
|
441
|
-
aspectRatio:
|
|
442
|
+
aspectRatio: o
|
|
442
443
|
};
|
|
443
444
|
}
|
|
444
|
-
const
|
|
445
|
-
|
|
445
|
+
const Ge = c(() => k.value.map((t) => t.name)), $t = i({ start: 0, end: k.value.length });
|
|
446
|
+
nl({
|
|
446
447
|
timeLabelsEls: H,
|
|
447
|
-
timeLabels:
|
|
448
|
-
slicer:
|
|
448
|
+
timeLabels: Ge,
|
|
449
|
+
slicer: $t,
|
|
449
450
|
configRef: e,
|
|
450
451
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
451
452
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
452
453
|
isAutoSize: !1,
|
|
453
|
-
width:
|
|
454
|
-
height:
|
|
454
|
+
width: D,
|
|
455
|
+
height: A,
|
|
455
456
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
456
457
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
457
458
|
});
|
|
458
|
-
const
|
|
459
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
459
|
+
const W = c(() => {
|
|
460
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
460
461
|
return {
|
|
461
|
-
component: t ?
|
|
462
|
+
component: t ? dt : ut,
|
|
462
463
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
463
464
|
props: t ? {
|
|
464
465
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
465
466
|
color: e.value.table.th.color,
|
|
466
467
|
headerColor: e.value.table.th.color,
|
|
467
468
|
headerBg: e.value.table.th.backgroundColor,
|
|
468
|
-
isFullscreen:
|
|
469
|
+
isFullscreen: S.value,
|
|
469
470
|
fullscreenParent: w.value,
|
|
470
471
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
471
472
|
} : {
|
|
@@ -485,55 +486,68 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
485
486
|
}
|
|
486
487
|
};
|
|
487
488
|
});
|
|
488
|
-
q(() =>
|
|
489
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
489
|
+
q(() => p.value.showTable, (t) => {
|
|
490
|
+
e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
490
491
|
});
|
|
491
|
-
function
|
|
492
|
-
|
|
492
|
+
function He() {
|
|
493
|
+
p.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
493
494
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
495
|
+
const St = c(() => e.value.style.chart.backgroundColor), Ot = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Pt } = ol({
|
|
496
|
+
svg: ie,
|
|
497
|
+
title: Ot,
|
|
498
|
+
backgroundColor: St
|
|
499
|
+
});
|
|
500
|
+
async function Ue({ isCb: t }) {
|
|
501
|
+
if (t) {
|
|
502
|
+
const { blob: a, url: l, text: o, dataUrl: n } = await Pt();
|
|
503
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: n });
|
|
504
|
+
} else
|
|
505
|
+
zt();
|
|
506
|
+
}
|
|
507
|
+
return ot({
|
|
508
|
+
getData: _t,
|
|
509
|
+
getImage: Tt,
|
|
497
510
|
generatePdf: Ne,
|
|
498
|
-
generateCsv:
|
|
511
|
+
generateCsv: be,
|
|
499
512
|
generateImage: Fe,
|
|
513
|
+
generateSvg: Ue,
|
|
500
514
|
toggleTable: Be,
|
|
501
|
-
toggleLabels:
|
|
502
|
-
toggleTooltip:
|
|
503
|
-
toggleAnnotator:
|
|
504
|
-
toggleFullscreen:
|
|
505
|
-
}), (t, a) => (r(),
|
|
515
|
+
toggleLabels: We,
|
|
516
|
+
toggleTooltip: Ee,
|
|
517
|
+
toggleAnnotator: ye,
|
|
518
|
+
toggleFullscreen: Re
|
|
519
|
+
}), (t, a) => (r(), u("div", {
|
|
506
520
|
ref_key: "stripPlotChart",
|
|
507
521
|
ref: w,
|
|
508
|
-
class: E(`vue-data-ui-component vue-ui-strip-plot ${
|
|
522
|
+
class: E(`vue-data-ui-component vue-ui-strip-plot ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
509
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%" : ""}`),
|
|
510
524
|
id: `strip-plot_${Q.value}`,
|
|
511
|
-
onMouseenter: a[1] || (a[1] = () => v(
|
|
512
|
-
onMouseleave: a[2] || (a[2] = () => v(
|
|
525
|
+
onMouseenter: a[1] || (a[1] = () => v(Se)(!0)),
|
|
526
|
+
onMouseleave: a[2] || (a[2] = () => v(Se)(!1))
|
|
513
527
|
}, [
|
|
514
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
528
|
+
e.value.userOptions.buttons.annotator ? (r(), O(v(ct), {
|
|
515
529
|
key: 0,
|
|
516
|
-
svgRef: v(
|
|
530
|
+
svgRef: v(ie),
|
|
517
531
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
518
532
|
color: e.value.style.chart.color,
|
|
519
|
-
active:
|
|
520
|
-
onClose:
|
|
521
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
522
|
-
|
|
533
|
+
active: j.value,
|
|
534
|
+
onClose: ye
|
|
535
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
536
|
+
bt.value ? (r(), u("div", {
|
|
523
537
|
key: 1,
|
|
524
538
|
ref_key: "noTitle",
|
|
525
|
-
ref:
|
|
539
|
+
ref: Le,
|
|
526
540
|
class: "vue-data-ui-no-title-space",
|
|
527
541
|
style: "height:36px; width: 100%;background:transparent"
|
|
528
|
-
}, null, 512)) :
|
|
529
|
-
e.value.style.chart.title.text ? (r(),
|
|
542
|
+
}, null, 512)) : d("", !0),
|
|
543
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
530
544
|
key: 2,
|
|
531
545
|
ref_key: "chartTitle",
|
|
532
|
-
ref:
|
|
546
|
+
ref: Ce,
|
|
533
547
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
534
548
|
}, [
|
|
535
|
-
(r(),
|
|
536
|
-
key: `title_${
|
|
549
|
+
(r(), O(vl, {
|
|
550
|
+
key: `title_${Te.value}`,
|
|
537
551
|
config: {
|
|
538
552
|
title: {
|
|
539
553
|
cy: "donut-div-title",
|
|
@@ -545,11 +559,11 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
545
559
|
}
|
|
546
560
|
}
|
|
547
561
|
}, null, 8, ["config"]))
|
|
548
|
-
], 512)) :
|
|
549
|
-
e.value.userOptions.show && G.value && (v(
|
|
562
|
+
], 512)) : d("", !0),
|
|
563
|
+
e.value.userOptions.show && G.value && (v(Oe) || v(ue)) ? (r(), O(v(vt), {
|
|
550
564
|
ref_key: "userOptionsRef",
|
|
551
565
|
ref: te,
|
|
552
|
-
key: `user_option_${
|
|
566
|
+
key: `user_option_${we.value}`,
|
|
553
567
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
554
568
|
color: e.value.style.chart.color,
|
|
555
569
|
isPrinting: v(Pe),
|
|
@@ -559,35 +573,37 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
559
573
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
560
574
|
hasXls: e.value.userOptions.buttons.csv,
|
|
561
575
|
hasImg: e.value.userOptions.buttons.img,
|
|
576
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
562
577
|
hasTable: e.value.userOptions.buttons.table,
|
|
563
578
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
564
579
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
565
|
-
isTooltip:
|
|
566
|
-
isFullscreen:
|
|
580
|
+
isTooltip: p.value.showTooltip,
|
|
581
|
+
isFullscreen: S.value,
|
|
567
582
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
568
583
|
chartElement: w.value,
|
|
569
584
|
position: e.value.userOptions.position,
|
|
570
585
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
571
|
-
isAnnotation:
|
|
586
|
+
isAnnotation: j.value,
|
|
572
587
|
callbacks: e.value.userOptions.callbacks,
|
|
573
588
|
printScale: e.value.userOptions.print.scale,
|
|
574
589
|
tableDialog: e.value.table.useDialog,
|
|
575
|
-
onToggleFullscreen:
|
|
590
|
+
onToggleFullscreen: Re,
|
|
576
591
|
onGeneratePdf: v(Ne),
|
|
577
|
-
onGenerateCsv:
|
|
592
|
+
onGenerateCsv: be,
|
|
578
593
|
onGenerateImage: v(Fe),
|
|
594
|
+
onGenerateSvg: Ue,
|
|
579
595
|
onToggleTable: Be,
|
|
580
|
-
onToggleLabels:
|
|
581
|
-
onToggleTooltip:
|
|
582
|
-
onToggleAnnotator:
|
|
596
|
+
onToggleLabels: We,
|
|
597
|
+
onToggleTooltip: Ee,
|
|
598
|
+
onToggleAnnotator: ye,
|
|
583
599
|
style: J({
|
|
584
|
-
visibility: v(
|
|
600
|
+
visibility: v(Oe) ? v(ue) ? "visible" : "hidden" : "visible"
|
|
585
601
|
})
|
|
586
|
-
},
|
|
602
|
+
}, je({ _: 2 }, [
|
|
587
603
|
t.$slots.menuIcon ? {
|
|
588
604
|
name: "menuIcon",
|
|
589
|
-
fn: b(({ isOpen: l, color:
|
|
590
|
-
y(t.$slots, "menuIcon", F(
|
|
605
|
+
fn: b(({ isOpen: l, color: o }) => [
|
|
606
|
+
y(t.$slots, "menuIcon", F(M({ isOpen: l, color: o })), void 0, !0)
|
|
591
607
|
]),
|
|
592
608
|
key: "0"
|
|
593
609
|
} : void 0,
|
|
@@ -635,43 +651,43 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
635
651
|
} : void 0,
|
|
636
652
|
t.$slots.optionFullscreen ? {
|
|
637
653
|
name: "optionFullscreen",
|
|
638
|
-
fn: b(({ toggleFullscreen: l, isFullscreen:
|
|
639
|
-
y(t.$slots, "optionFullscreen", F(
|
|
654
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
655
|
+
y(t.$slots, "optionFullscreen", F(M({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
640
656
|
]),
|
|
641
657
|
key: "7"
|
|
642
658
|
} : void 0,
|
|
643
659
|
t.$slots.optionAnnotator ? {
|
|
644
660
|
name: "optionAnnotator",
|
|
645
|
-
fn: b(({ toggleAnnotator: l, isAnnotator:
|
|
646
|
-
y(t.$slots, "optionAnnotator", F(
|
|
661
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
662
|
+
y(t.$slots, "optionAnnotator", F(M({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
647
663
|
]),
|
|
648
664
|
key: "8"
|
|
649
665
|
} : void 0
|
|
650
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
651
|
-
(r(),
|
|
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),
|
|
667
|
+
(r(), u("svg", {
|
|
652
668
|
ref_key: "svgRef",
|
|
653
|
-
ref:
|
|
654
|
-
xmlns: v(
|
|
655
|
-
class: E({ "vue-data-ui-fullscreen--on":
|
|
656
|
-
viewBox: `0 0 ${
|
|
669
|
+
ref: ie,
|
|
670
|
+
xmlns: v(Ut),
|
|
671
|
+
class: E({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
672
|
+
viewBox: `0 0 ${D.value} ${A.value}`,
|
|
657
673
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
658
674
|
}, [
|
|
659
|
-
|
|
660
|
-
t.$slots["chart-background"] ? (r(),
|
|
675
|
+
me(v(ht)),
|
|
676
|
+
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
661
677
|
key: 0,
|
|
662
|
-
x:
|
|
663
|
-
y:
|
|
664
|
-
width: Math.max(0.1,
|
|
665
|
-
height: Math.max(0.1,
|
|
678
|
+
x: s.value.left,
|
|
679
|
+
y: s.value.top,
|
|
680
|
+
width: Math.max(0.1, s.value.width),
|
|
681
|
+
height: Math.max(0.1, s.value.height),
|
|
666
682
|
style: {
|
|
667
683
|
pointerEvents: "none"
|
|
668
684
|
}
|
|
669
685
|
}, [
|
|
670
686
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
671
|
-
], 8,
|
|
672
|
-
e.value.style.chart.grid.show ? (r(),
|
|
673
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(),
|
|
674
|
-
(r(!0),
|
|
687
|
+
], 8, fl)) : d("", !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", {
|
|
675
691
|
x1: l.x1,
|
|
676
692
|
x2: l.x2,
|
|
677
693
|
y1: l.y,
|
|
@@ -680,51 +696,51 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
680
696
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
681
697
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
682
698
|
"stroke-linecap": "round"
|
|
683
|
-
}, null, 8,
|
|
684
|
-
])) :
|
|
685
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(),
|
|
686
|
-
(r(!0),
|
|
687
|
-
x1:
|
|
688
|
-
x2:
|
|
689
|
-
y1:
|
|
690
|
-
y2:
|
|
699
|
+
}, null, 8, ml))), 256))
|
|
700
|
+
])) : d("", !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", {
|
|
703
|
+
x1: s.value.left + (o + 1) * s.value.stripWidth,
|
|
704
|
+
x2: s.value.left + (o + 1) * s.value.stripWidth,
|
|
705
|
+
y1: s.value.top,
|
|
706
|
+
y2: s.value.bottom,
|
|
691
707
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
692
708
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
693
709
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
694
710
|
"stroke-linecap": "round"
|
|
695
|
-
}, null, 8,
|
|
696
|
-
])) :
|
|
711
|
+
}, null, 8, xl))), 256))
|
|
712
|
+
])) : d("", !0),
|
|
697
713
|
m("line", {
|
|
698
|
-
x1:
|
|
699
|
-
x2:
|
|
700
|
-
y1:
|
|
701
|
-
y2:
|
|
714
|
+
x1: s.value.left,
|
|
715
|
+
x2: s.value.left,
|
|
716
|
+
y1: s.value.top,
|
|
717
|
+
y2: s.value.bottom,
|
|
702
718
|
stroke: e.value.style.chart.grid.stroke,
|
|
703
719
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
704
720
|
"stroke-linecap": "round"
|
|
705
|
-
}, null, 8,
|
|
721
|
+
}, null, 8, kl),
|
|
706
722
|
m("line", {
|
|
707
|
-
x1:
|
|
708
|
-
x2:
|
|
709
|
-
y1:
|
|
710
|
-
y2:
|
|
723
|
+
x1: s.value.left,
|
|
724
|
+
x2: s.value.right,
|
|
725
|
+
y1: s.value.bottom,
|
|
726
|
+
y2: s.value.bottom,
|
|
711
727
|
stroke: e.value.style.chart.grid.stroke,
|
|
712
728
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
713
729
|
"stroke-linecap": "round"
|
|
714
|
-
}, null, 8,
|
|
715
|
-
])) :
|
|
716
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(),
|
|
730
|
+
}, null, 8, wl)
|
|
731
|
+
])) : d("", !0),
|
|
732
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(), u("g", {
|
|
717
733
|
key: 2,
|
|
718
734
|
ref_key: "scaleLabels",
|
|
719
735
|
ref: oe
|
|
720
736
|
}, [
|
|
721
|
-
(r(!0),
|
|
737
|
+
(r(!0), u(g, null, _(Ie.value, (l, o) => (r(), u("text", {
|
|
722
738
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
723
739
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
724
740
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
725
741
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
726
742
|
"text-anchor": "end"
|
|
727
|
-
}, T(v(
|
|
743
|
+
}, T(v(ke)(
|
|
728
744
|
e.value.style.chart.labels.formatter,
|
|
729
745
|
l.value,
|
|
730
746
|
v(K)({
|
|
@@ -733,156 +749,156 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
733
749
|
s: e.value.style.chart.labels.suffix,
|
|
734
750
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
735
751
|
}),
|
|
736
|
-
{ datapoint: l, seriesIndex:
|
|
737
|
-
)), 9,
|
|
738
|
-
], 512)) :
|
|
739
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(),
|
|
752
|
+
{ datapoint: l, seriesIndex: o }
|
|
753
|
+
)), 9, Cl))), 256))
|
|
754
|
+
], 512)) : d("", !0),
|
|
755
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(), u("g", {
|
|
740
756
|
key: 3,
|
|
741
757
|
ref_key: "timeLabelsEls",
|
|
742
758
|
ref: H
|
|
743
759
|
}, [
|
|
744
|
-
(r(!0),
|
|
760
|
+
(r(!0), u(g, null, _(Ge.value, (l, o) => (r(), u("g", null, [
|
|
745
761
|
String(l).includes(`
|
|
746
|
-
`) ? (r(),
|
|
762
|
+
`) ? (r(), u("text", {
|
|
747
763
|
key: 1,
|
|
748
764
|
class: "vue-ui-strip-plot-category-name",
|
|
749
|
-
transform: `translate(${
|
|
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})`,
|
|
750
766
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
751
767
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
752
768
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
753
|
-
innerHTML: v(
|
|
754
|
-
content: v(
|
|
769
|
+
innerHTML: v(Vt)({
|
|
770
|
+
content: v(Xt)(String(l)),
|
|
755
771
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
756
772
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
757
773
|
x: 0,
|
|
758
774
|
y: 0
|
|
759
775
|
})
|
|
760
|
-
}, null, 8,
|
|
776
|
+
}, null, 8, Ll)) : (r(), u("text", {
|
|
761
777
|
key: 0,
|
|
762
778
|
class: "vue-ui-strip-plot-category-name",
|
|
763
|
-
transform: `translate(${
|
|
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})`,
|
|
764
780
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
765
781
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
766
782
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
767
|
-
}, T(String(l)), 9,
|
|
783
|
+
}, T(String(l)), 9, Al))
|
|
768
784
|
]))), 256))
|
|
769
|
-
], 512)) :
|
|
770
|
-
e.value.style.chart.labels.axis.yLabel ? (r(),
|
|
785
|
+
], 512)) : d("", !0),
|
|
786
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
771
787
|
key: 4,
|
|
772
788
|
ref_key: "yAxisLabel",
|
|
773
789
|
ref: ae,
|
|
774
790
|
fill: e.value.style.chart.labels.axis.color,
|
|
775
791
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
776
|
-
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${
|
|
792
|
+
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
777
793
|
"text-anchor": "middle"
|
|
778
|
-
}, T(e.value.style.chart.labels.axis.yLabel), 9,
|
|
779
|
-
e.value.style.chart.labels.axis.xLabel ? (r(),
|
|
794
|
+
}, T(e.value.style.chart.labels.axis.yLabel), 9, _l)) : d("", !0),
|
|
795
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
780
796
|
key: 5,
|
|
781
797
|
ref_key: "xAxisLabel",
|
|
782
798
|
ref: le,
|
|
783
799
|
fill: e.value.style.chart.labels.axis.color,
|
|
784
800
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
785
|
-
x:
|
|
786
|
-
y:
|
|
801
|
+
x: s.value.left + s.value.width / 2,
|
|
802
|
+
y: A.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
787
803
|
"text-anchor": "middle"
|
|
788
|
-
}, T(e.value.style.chart.labels.axis.xLabel), 9,
|
|
789
|
-
|
|
804
|
+
}, T(e.value.style.chart.labels.axis.xLabel), 9, Tl)) : d("", !0),
|
|
805
|
+
f.value ? (r(), u(g, { key: 6 }, [
|
|
790
806
|
m("line", {
|
|
791
|
-
x1:
|
|
792
|
-
x2:
|
|
793
|
-
y1:
|
|
794
|
-
y2:
|
|
795
|
-
stroke:
|
|
807
|
+
x1: s.value.left,
|
|
808
|
+
x2: s.value.right,
|
|
809
|
+
y1: f.value.y,
|
|
810
|
+
y2: f.value.y,
|
|
811
|
+
stroke: f.value.color,
|
|
796
812
|
"stroke-width": 1,
|
|
797
813
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
798
|
-
}, null, 10,
|
|
814
|
+
}, null, 10, $l),
|
|
799
815
|
m("circle", {
|
|
800
|
-
cx:
|
|
801
|
-
cy:
|
|
816
|
+
cx: s.value.left,
|
|
817
|
+
cy: f.value.y,
|
|
802
818
|
r: 3,
|
|
803
|
-
fill:
|
|
819
|
+
fill: f.value.color,
|
|
804
820
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
805
|
-
}, null, 10,
|
|
821
|
+
}, null, 10, Sl),
|
|
806
822
|
m("circle", {
|
|
807
|
-
cx:
|
|
808
|
-
cy:
|
|
823
|
+
cx: s.value.right,
|
|
824
|
+
cy: f.value.y,
|
|
809
825
|
r: 3,
|
|
810
|
-
fill:
|
|
826
|
+
fill: f.value.color,
|
|
811
827
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
812
|
-
}, null, 10,
|
|
813
|
-
], 64)) :
|
|
828
|
+
}, null, 10, Ol)
|
|
829
|
+
], 64)) : d("", !0),
|
|
814
830
|
m("defs", null, [
|
|
815
|
-
(r(!0),
|
|
831
|
+
(r(!0), u(g, null, _(k.value, (l) => (r(), u("radialGradient", {
|
|
816
832
|
id: l.id,
|
|
817
833
|
fy: "30%"
|
|
818
834
|
}, [
|
|
819
835
|
m("stop", {
|
|
820
836
|
offset: "10%",
|
|
821
|
-
"stop-color": v(
|
|
822
|
-
}, null, 8,
|
|
837
|
+
"stop-color": v(Yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
838
|
+
}, null, 8, Pl),
|
|
823
839
|
m("stop", {
|
|
824
840
|
offset: "90%",
|
|
825
|
-
"stop-color": v(
|
|
826
|
-
}, null, 8,
|
|
841
|
+
"stop-color": v(jt)(l.color, 0.1)
|
|
842
|
+
}, null, 8, Dl),
|
|
827
843
|
m("stop", {
|
|
828
844
|
offset: "100%",
|
|
829
845
|
"stop-color": l.color
|
|
830
|
-
}, null, 8,
|
|
831
|
-
], 8,
|
|
846
|
+
}, null, 8, Nl)
|
|
847
|
+
], 8, zl))), 256))
|
|
832
848
|
]),
|
|
833
|
-
(r(!0),
|
|
834
|
-
(r(!0),
|
|
835
|
-
plot: { x:
|
|
836
|
-
radius:
|
|
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,
|
|
837
853
|
shape: e.value.style.chart.plots.shape,
|
|
838
854
|
stroke: e.value.style.chart.plots.stroke,
|
|
839
855
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
840
856
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
841
|
-
style: `transition: all 0.2s ease-in-out; opacity:${
|
|
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` : ""}`,
|
|
842
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 },
|
|
843
|
-
onMouseenter: (
|
|
844
|
-
onMouseleave: (
|
|
845
|
-
onClick: (
|
|
859
|
+
onMouseenter: (N) => Lt({ datapoint: n, seriesIndex: h }),
|
|
860
|
+
onMouseleave: (N) => Ct({ datapoint: n, seriesIndex: h }),
|
|
861
|
+
onClick: (N) => At({ datapoint: n, seriesIndex: h })
|
|
846
862
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
847
|
-
|
|
848
|
-
(r(!0),
|
|
849
|
-
|
|
863
|
+
p.value.dataLabels.show ? (r(), u("g", Fl, [
|
|
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", {
|
|
850
866
|
key: 0,
|
|
851
|
-
x:
|
|
852
|
-
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),
|
|
853
869
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
854
870
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
855
871
|
"text-anchor": "middle",
|
|
856
872
|
style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
857
|
-
}, T(
|
|
873
|
+
}, T(n.name) + " " + T(e.value.style.chart.labels.bestPlotLabel.showValue ? v(ke)(
|
|
858
874
|
e.value.style.chart.labels.formatter,
|
|
859
|
-
|
|
875
|
+
n.value,
|
|
860
876
|
v(K)({
|
|
861
877
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
862
|
-
v:
|
|
878
|
+
v: n.value,
|
|
863
879
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
864
880
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
865
881
|
}),
|
|
866
|
-
{ datapoint:
|
|
867
|
-
) : ""), 13,
|
|
882
|
+
{ datapoint: n, seriesIndex: h }
|
|
883
|
+
) : ""), 13, Ml)) : d("", !0)
|
|
868
884
|
], 64))), 256))
|
|
869
|
-
])) :
|
|
885
|
+
])) : d("", !0)
|
|
870
886
|
], 64))), 256)),
|
|
871
|
-
y(t.$slots, "svg", { svg:
|
|
872
|
-
], 14,
|
|
873
|
-
t.$slots.watermark ? (r(),
|
|
874
|
-
y(t.$slots, "watermark", F(
|
|
875
|
-
])) :
|
|
876
|
-
t.$slots.source ? (r(),
|
|
887
|
+
y(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
888
|
+
], 14, pl)),
|
|
889
|
+
t.$slots.watermark ? (r(), u("div", Il, [
|
|
890
|
+
y(t.$slots, "watermark", F(M({ isPrinting: v(Pe) || v(De) })), void 0, !0)
|
|
891
|
+
])) : d("", !0),
|
|
892
|
+
t.$slots.source ? (r(), u("div", {
|
|
877
893
|
key: 5,
|
|
878
894
|
ref_key: "source",
|
|
879
|
-
ref:
|
|
895
|
+
ref: Ae,
|
|
880
896
|
dir: "auto"
|
|
881
897
|
}, [
|
|
882
898
|
y(t.$slots, "source", {}, void 0, !0)
|
|
883
|
-
], 512)) :
|
|
884
|
-
|
|
885
|
-
show:
|
|
899
|
+
], 512)) : d("", !0),
|
|
900
|
+
me(v(rt), {
|
|
901
|
+
show: p.value.showTooltip && Z.value,
|
|
886
902
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
887
903
|
color: e.value.style.chart.tooltip.color,
|
|
888
904
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -894,45 +910,45 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
894
910
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
895
911
|
parent: w.value,
|
|
896
912
|
content: ee.value,
|
|
897
|
-
isFullscreen:
|
|
898
|
-
isCustom: v(
|
|
913
|
+
isFullscreen: S.value,
|
|
914
|
+
isCustom: v(et)(e.value.style.chart.tooltip.customFormat),
|
|
899
915
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
900
916
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
901
917
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
902
918
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
903
919
|
}, {
|
|
904
920
|
"tooltip-before": b(() => [
|
|
905
|
-
y(t.$slots, "tooltip-before", F(
|
|
921
|
+
y(t.$slots, "tooltip-before", F(M({ ...fe.value })), void 0, !0)
|
|
906
922
|
]),
|
|
907
923
|
"tooltip-after": b(() => [
|
|
908
|
-
y(t.$slots, "tooltip-after", F(
|
|
924
|
+
y(t.$slots, "tooltip-after", F(M({ ...fe.value })), void 0, !0)
|
|
909
925
|
]),
|
|
910
926
|
_: 3
|
|
911
927
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
912
|
-
G.value && e.value.userOptions.buttons.table ? (r(),
|
|
928
|
+
G.value && e.value.userOptions.buttons.table ? (r(), O(It(W.value.component), qe({ key: 6 }, W.value.props, {
|
|
913
929
|
ref_key: "tableUnit",
|
|
914
|
-
ref:
|
|
915
|
-
onClose:
|
|
916
|
-
}),
|
|
930
|
+
ref: I,
|
|
931
|
+
onClose: He
|
|
932
|
+
}), je({
|
|
917
933
|
content: b(() => [
|
|
918
|
-
(r(),
|
|
919
|
-
key: `table_${
|
|
920
|
-
colNames:
|
|
921
|
-
head:
|
|
922
|
-
body:
|
|
923
|
-
config:
|
|
924
|
-
title: e.value.table.useDialog ? "" :
|
|
934
|
+
(r(), O(v(it), {
|
|
935
|
+
key: `table_${$e.value}`,
|
|
936
|
+
colNames: Y.value.colNames,
|
|
937
|
+
head: Y.value.head,
|
|
938
|
+
body: Y.value.body,
|
|
939
|
+
config: Y.value.config,
|
|
940
|
+
title: e.value.table.useDialog ? "" : W.value.title,
|
|
925
941
|
withCloseButton: !e.value.table.useDialog,
|
|
926
|
-
onClose:
|
|
942
|
+
onClose: He
|
|
927
943
|
}, {
|
|
928
944
|
th: b(({ th: l }) => [
|
|
929
945
|
m("div", {
|
|
930
946
|
innerHTML: l,
|
|
931
947
|
style: { display: "flex", "align-items": "center" }
|
|
932
|
-
}, null, 8,
|
|
948
|
+
}, null, 8, Rl)
|
|
933
949
|
]),
|
|
934
950
|
td: b(({ td: l }) => [
|
|
935
|
-
|
|
951
|
+
Je(T(l.name || l), 1)
|
|
936
952
|
]),
|
|
937
953
|
_: 1
|
|
938
954
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -942,7 +958,7 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
942
958
|
e.value.table.useDialog ? {
|
|
943
959
|
name: "title",
|
|
944
960
|
fn: b(() => [
|
|
945
|
-
|
|
961
|
+
Je(T(W.value.title), 1)
|
|
946
962
|
]),
|
|
947
963
|
key: "0"
|
|
948
964
|
} : void 0,
|
|
@@ -952,21 +968,21 @@ const sl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "width", "height"]
|
|
|
952
968
|
m("button", {
|
|
953
969
|
tabindex: "0",
|
|
954
970
|
class: "vue-ui-user-options-button",
|
|
955
|
-
onClick: a[0] || (a[0] = (l) =>
|
|
971
|
+
onClick: a[0] || (a[0] = (l) => be(e.value.userOptions.callbacks.csv))
|
|
956
972
|
}, [
|
|
957
|
-
|
|
973
|
+
me(v(nt), {
|
|
958
974
|
name: "excel",
|
|
959
|
-
stroke:
|
|
975
|
+
stroke: W.value.props.color
|
|
960
976
|
}, null, 8, ["stroke"])
|
|
961
977
|
])
|
|
962
978
|
]),
|
|
963
979
|
key: "1"
|
|
964
980
|
} : void 0
|
|
965
|
-
]), 1040)) :
|
|
966
|
-
v(se) ? (r(),
|
|
967
|
-
], 46,
|
|
981
|
+
]), 1040)) : d("", !0),
|
|
982
|
+
v(se) ? (r(), O(ll, { key: 7 })) : d("", !0)
|
|
983
|
+
], 46, dl));
|
|
968
984
|
}
|
|
969
|
-
},
|
|
985
|
+
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-20847046"]]);
|
|
970
986
|
export {
|
|
971
|
-
|
|
987
|
+
ta as default
|
|
972
988
|
};
|