vue-data-ui 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
- package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
- package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
- package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
- package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
- package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as rt, t as qt, o as Yt, f as ut, g as jt, x as it, m as Qt, d as w, a as
|
|
1
|
+
import { defineAsyncComponent as G, computed as g, ref as h, toRefs as Et, watch as se, shallowRef as tt, onMounted as lt, onBeforeUnmount as at, watchEffect as Rt, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as oe, normalizeClass as st, createBlock as I, createCommentVNode as y, createElementVNode as c, withCtx as m, renderSlot as p, normalizeProps as A, guardReactiveProps as S, createSlots as ot, createVNode as nt, withDirectives as Q, Fragment as C, renderList as N, toDisplayString as _, vShow as Z, Teleport as Bt, createTextVNode as we, resolveDynamicComponent as Vt, mergeProps as Ut, nextTick as Wt } from "vue";
|
|
2
|
+
import { c as rt, t as qt, o as Yt, f as ut, g as jt, x as it, m as Qt, d as w, a as E, X as ct, s as vt, S as J, U as K, P as Zt, Q as Jt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as $e, u as Kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as el, a as dt } from "./useNestedProp-
|
|
4
|
+
import { u as el, a as dt } from "./useNestedProp-CReNavA0.js";
|
|
5
5
|
import { u as tl } from "./usePrinter-DTzqpYKF.js";
|
|
6
6
|
import { u as ll, B as al } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as sl } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -9,7 +9,7 @@ import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
9
9
|
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
11
|
import ul from "./img-BecE5qXd.js";
|
|
12
|
-
import il from "./Title-
|
|
12
|
+
import il from "./Title-BzH_LEA3.js";
|
|
13
13
|
import { t as cl } from "./themes-AUNCOb2G.js";
|
|
14
14
|
import vl from "./Legend-G6GMcdAc.js";
|
|
15
15
|
import { _ as dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -34,15 +34,15 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint"],
|
|
36
36
|
setup(ht, { expose: ft, emit: _a }) {
|
|
37
|
-
const bt =
|
|
37
|
+
const bt = G(() => import("./BaseIcon-BmMbm4d0.js")), yt = G(() => import("./vue-ui-accordion-BmFTVF1a.js")), gt = G(() => import("./DataTable-BT7VF2ua.js")), mt = G(() => import("./PenAndPaper-SZQIAgkg.js")), pt = G(() => import("./UserOptions-CGnQt6Fd.js")), xt = G(() => import("./PackageVersion-Y7t79Jtq.js")), _t = G(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_dumbbell: kt } = el(), M = ht, ee = g({
|
|
38
38
|
get() {
|
|
39
|
-
return !!
|
|
39
|
+
return !!M.dataset && M.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(l) {
|
|
42
42
|
return l;
|
|
43
43
|
}
|
|
44
|
-
}), f = h(rt()), Le = h(0),
|
|
45
|
-
...Et(
|
|
44
|
+
}), f = h(rt()), Le = h(0), X = h(null), Ae = h(null), Se = h(null), Ne = h(null), Me = h(null), Xe = h(0), ze = h(0), Te = h(0), Oe = h(!1), q = h(null), ne = h(null), re = h(null), ue = h(null), te = h(null), ie = h(null), F = h(null), r = h(null), P = h(!1), e = h(fe()), { loading: ce, FINAL_DATASET: ve, manualLoading: Ct } = ll({
|
|
45
|
+
...Et(M),
|
|
46
46
|
FINAL_CONFIG: e,
|
|
47
47
|
prepareConfig: fe,
|
|
48
48
|
skeletonDataset: [
|
|
@@ -97,37 +97,37 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
97
97
|
}), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: Ie } = ol({ config: e.value }), { svgRef: he } = nl({ config: e.value.style.chart.title });
|
|
98
98
|
function fe() {
|
|
99
99
|
const l = dt({
|
|
100
|
-
userConfig:
|
|
100
|
+
userConfig: M.config,
|
|
101
101
|
defaultConfig: kt
|
|
102
102
|
});
|
|
103
103
|
return l.theme ? {
|
|
104
104
|
...dt({
|
|
105
|
-
userConfig: cl.vue_ui_dumbbell[l.theme] ||
|
|
105
|
+
userConfig: cl.vue_ui_dumbbell[l.theme] || M.config,
|
|
106
106
|
defaultConfig: l
|
|
107
107
|
})
|
|
108
108
|
} : l;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
ce.value || (e.value = fe()), de.value = !e.value.userOptions.showOnChartHover, Pe(), Xe.value += 1, ze.value += 1, Te.value += 1,
|
|
112
|
-
}, { deep: !0 }),
|
|
110
|
+
se(() => M.config, (l) => {
|
|
111
|
+
ce.value || (e.value = fe()), de.value = !e.value.userOptions.showOnChartHover, Pe(), Xe.value += 1, ze.value += 1, Te.value += 1, V.value = e.value.style.chart.rowHeight, U.value = e.value.style.chart.width, H.value.showTable = e.value.table.show;
|
|
112
|
+
}, { deep: !0 }), se(() => ve.value, (l) => {
|
|
113
113
|
Array.isArray(l) && l.length > 0 && (Ct.value = !1), We(), qe();
|
|
114
114
|
}, { deep: !0 });
|
|
115
|
-
const
|
|
115
|
+
const z = tt(null), R = tt(null);
|
|
116
116
|
lt(() => {
|
|
117
117
|
Oe.value = !0, Pe();
|
|
118
118
|
});
|
|
119
119
|
const Fe = g(() => !!e.value.debug);
|
|
120
120
|
function Pe() {
|
|
121
|
-
if (Yt(
|
|
121
|
+
if (Yt(M.dataset) ? ut({
|
|
122
122
|
componentName: "VueUiDumbbell",
|
|
123
123
|
type: "dataset",
|
|
124
124
|
debug: Fe.value
|
|
125
|
-
}) :
|
|
125
|
+
}) : M.dataset.forEach((l, s) => {
|
|
126
126
|
jt({
|
|
127
127
|
datasetObject: l,
|
|
128
128
|
requiredAttributes: ["name", "start", "end"]
|
|
129
129
|
}).forEach((t) => {
|
|
130
|
-
|
|
130
|
+
ee.value = !1, ut({
|
|
131
131
|
componentName: "VueUiDumbbell",
|
|
132
132
|
type: "datasetSerieAttribute",
|
|
133
133
|
property: t,
|
|
@@ -138,44 +138,44 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
138
138
|
}), e.value.responsive) {
|
|
139
139
|
const l = $e(() => {
|
|
140
140
|
const { width: s, height: t } = Kt({
|
|
141
|
-
chart:
|
|
141
|
+
chart: X.value,
|
|
142
142
|
title: e.value.style.chart.title.text ? Ae.value : null,
|
|
143
143
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
144
144
|
source: Ne.value,
|
|
145
145
|
noTitle: Me.value
|
|
146
146
|
}), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
|
|
147
147
|
requestAnimationFrame(async () => {
|
|
148
|
-
|
|
148
|
+
U.value = Math.max(0.1, s), V.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / ve.value.length), Ze();
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
|
-
|
|
151
|
+
z.value && (R.value && z.value.unobserve(R.value), z.value.disconnect()), z.value = new ResizeObserver(l), R.value = X.value.parentNode, z.value.observe(R.value);
|
|
152
152
|
}
|
|
153
153
|
Ze();
|
|
154
154
|
}
|
|
155
155
|
at(() => {
|
|
156
|
-
L.value != null && (cancelAnimationFrame(L.value), L.value = null),
|
|
156
|
+
L.value != null && (cancelAnimationFrame(L.value), L.value = null), z.value && (R.value && z.value.unobserve(R.value), z.value.disconnect());
|
|
157
157
|
});
|
|
158
158
|
const { isPrinting: He, isImaging: Ge, generatePdf: Ee, generateImage: Re } = tl({
|
|
159
159
|
elementId: `dumbbell_${f.value}`,
|
|
160
160
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
161
161
|
options: e.value.userOptions.print
|
|
162
|
-
}), wt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
162
|
+
}), wt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = h({
|
|
163
163
|
showTable: e.value.table.show
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
se(e, () => {
|
|
166
|
+
H.value = {
|
|
167
167
|
showTable: e.value.table.show
|
|
168
168
|
};
|
|
169
169
|
}, { immediate: !0 });
|
|
170
|
-
const
|
|
170
|
+
const B = g(() => ve.value.map((l, s) => ({
|
|
171
171
|
...l,
|
|
172
172
|
start: it(l.start),
|
|
173
173
|
end: it(l.end),
|
|
174
174
|
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${rt()}`
|
|
175
175
|
}))), Be = g(() => {
|
|
176
|
-
const l = e.value.style.chart.grid, s =
|
|
176
|
+
const l = e.value.style.chart.grid, s = B.value.flatMap((b) => [b.start, b.end]).map((b) => Number(b)).filter((b) => Number.isFinite(b)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
|
|
177
177
|
return { min: u, max: d };
|
|
178
|
-
}), $ = g(() => Qt(Be.value.min, Be.value.max, e.value.style.chart.grid.scaleSteps)),
|
|
178
|
+
}), $ = g(() => Qt(Be.value.min, Be.value.max, e.value.style.chart.grid.scaleSteps)), V = h(e.value.style.chart.rowHeight), U = h(e.value.style.chart.width);
|
|
179
179
|
function $t() {
|
|
180
180
|
let l = 0;
|
|
181
181
|
ue.value && (l = Array.from(ue.value.querySelectorAll("text")).reduce((a, u) => {
|
|
@@ -189,7 +189,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
189
189
|
be.value = l;
|
|
190
190
|
}, 100);
|
|
191
191
|
Rt((l) => {
|
|
192
|
-
const s =
|
|
192
|
+
const s = te.value;
|
|
193
193
|
if (!s) return;
|
|
194
194
|
const t = new ResizeObserver((a) => {
|
|
195
195
|
Lt(a[0].contentRect.height);
|
|
@@ -199,45 +199,45 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
199
199
|
be.value = 0;
|
|
200
200
|
});
|
|
201
201
|
const Ve = g(() => {
|
|
202
|
-
|
|
202
|
+
P.value;
|
|
203
203
|
let l = 0;
|
|
204
204
|
ie.value && (l = ie.value.getBBox().height);
|
|
205
205
|
let s = 0;
|
|
206
|
-
return
|
|
207
|
-
}), ye = g(() =>
|
|
206
|
+
return te.value && (s = be.value), l + s;
|
|
207
|
+
}), ye = g(() => B.value.length);
|
|
208
208
|
function Ue(l, s, t) {
|
|
209
209
|
const a = Number(l), u = Number(s.min), d = Number(s.max), b = Number(t.width);
|
|
210
210
|
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(b))
|
|
211
211
|
return t.left;
|
|
212
|
-
const
|
|
213
|
-
return
|
|
212
|
+
const x = d - u;
|
|
213
|
+
return x <= 0 ? t.left : t.left + (a - u) / x * b;
|
|
214
214
|
}
|
|
215
215
|
const o = g(() => {
|
|
216
|
-
|
|
217
|
-
const l = $t(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a =
|
|
216
|
+
P.value;
|
|
217
|
+
const l = $t(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = V.value * ye.value - Ve.value - s.top - s.bottom - t, u = a / ye.value, d = V.value * ye.value, b = U.value - l - s.left - s.right, x = $.value.ticks.length * (b / $.value.ticks.length);
|
|
218
218
|
return {
|
|
219
219
|
left: e.value.style.chart.padding.left + l,
|
|
220
|
-
right:
|
|
220
|
+
right: U.value - e.value.style.chart.padding.right,
|
|
221
221
|
top: e.value.style.chart.padding.top,
|
|
222
222
|
bottom: d - e.value.style.chart.padding.bottom - Ve.value - t,
|
|
223
223
|
width: b,
|
|
224
224
|
height: a,
|
|
225
225
|
rowHeight: u,
|
|
226
226
|
absoluteHeight: d,
|
|
227
|
-
widthPlotReference:
|
|
227
|
+
widthPlotReference: x
|
|
228
228
|
};
|
|
229
|
-
}),
|
|
229
|
+
}), T = g(() => Math.min(V.value / 2 * 0.7, e.value.style.chart.plots.radius)), Y = h([]), k = g({
|
|
230
230
|
get() {
|
|
231
231
|
const l = o.value, s = $.value;
|
|
232
|
-
return
|
|
233
|
-
const u = Ue(t.start, s, l), d = Ue(t.endVal, s, l), b = u + (d - u) / 2,
|
|
232
|
+
return Y.value.map((t, a) => {
|
|
233
|
+
const u = Ue(t.start, s, l), d = Ue(t.endVal, s, l), b = u + (d - u) / 2, x = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, D = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, et = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end === t.start || [null, void 0].includes(t.start) || [null, void 0].includes(t.end), Gt = x ? e.value.style.chart.plots.evaluationColors.positive : D ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
|
|
234
234
|
return {
|
|
235
235
|
...t,
|
|
236
|
-
isPositive:
|
|
237
|
-
isNegative:
|
|
236
|
+
isPositive: x,
|
|
237
|
+
isNegative: D,
|
|
238
238
|
isNeutral: et,
|
|
239
239
|
evaluationColor: Gt,
|
|
240
|
-
evaluationGrad: `url(#${
|
|
240
|
+
evaluationGrad: `url(#${x ? "positive" : D ? "negative" : "neutral"}_grad_${f.value})`,
|
|
241
241
|
startX: u,
|
|
242
242
|
endX: d,
|
|
243
243
|
centerX: b,
|
|
@@ -246,11 +246,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
246
246
|
});
|
|
247
247
|
},
|
|
248
248
|
set(l) {
|
|
249
|
-
|
|
249
|
+
Y.value = l;
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
function We() {
|
|
253
|
-
|
|
253
|
+
Y.value = B.value.map((l) => {
|
|
254
254
|
const s = Number(l.start);
|
|
255
255
|
return {
|
|
256
256
|
...l,
|
|
@@ -264,20 +264,20 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
264
264
|
});
|
|
265
265
|
function qe() {
|
|
266
266
|
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), We(), !e.value.useAnimation) {
|
|
267
|
-
k.value =
|
|
267
|
+
k.value = Y.value.map((a) => {
|
|
268
268
|
const u = Number(a.end);
|
|
269
269
|
return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
|
|
270
270
|
});
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
|
-
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s =
|
|
273
|
+
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = B.value.map((a) => {
|
|
274
274
|
const u = Number(a.start), d = Number(a.end), b = Number.isFinite(u) ? u : 0;
|
|
275
275
|
return (Number.isFinite(d) ? d : b) - b;
|
|
276
276
|
}), t = () => {
|
|
277
277
|
let a = !0;
|
|
278
|
-
k.value =
|
|
279
|
-
const b = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal,
|
|
280
|
-
return
|
|
278
|
+
k.value = Y.value.map((u, d) => {
|
|
279
|
+
const b = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, x = u.endVal + s[d] * l, D = s[d] >= 0 ? Math.min(x, b) : Math.max(x, b);
|
|
280
|
+
return D !== b && (a = !1), { ...u, endVal: D };
|
|
281
281
|
}), a ? L.value = null : L.value = requestAnimationFrame(t);
|
|
282
282
|
};
|
|
283
283
|
L.value = requestAnimationFrame(t);
|
|
@@ -297,7 +297,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
297
297
|
paddingBottom: 12,
|
|
298
298
|
paddingTop: 12,
|
|
299
299
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
300
|
-
})),
|
|
300
|
+
})), O = g(() => {
|
|
301
301
|
const l = k.value.map((t) => ({
|
|
302
302
|
name: t.name
|
|
303
303
|
})), s = k.value.map((t) => ({
|
|
@@ -305,33 +305,33 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
305
305
|
end: t.end
|
|
306
306
|
}));
|
|
307
307
|
return { head: l, body: s };
|
|
308
|
-
}),
|
|
308
|
+
}), le = g(() => {
|
|
309
309
|
const l = [
|
|
310
310
|
e.value.table.columnNames.series,
|
|
311
311
|
e.value.table.columnNames.start,
|
|
312
312
|
e.value.table.columnNames.end,
|
|
313
313
|
e.value.table.columnNames.progression
|
|
314
|
-
], s =
|
|
314
|
+
], s = O.value.head.map((u, d) => {
|
|
315
315
|
const b = w({
|
|
316
316
|
p: e.value.style.chart.labels.prefix,
|
|
317
|
-
v:
|
|
317
|
+
v: O.value.body[d].start,
|
|
318
318
|
s: e.value.style.chart.labels.suffix,
|
|
319
319
|
r: e.value.table.td.roundingValue
|
|
320
|
-
}),
|
|
320
|
+
}), x = w({
|
|
321
321
|
p: e.value.style.chart.labels.prefix,
|
|
322
|
-
v:
|
|
322
|
+
v: O.value.body[d].end,
|
|
323
323
|
s: e.value.style.chart.labels.suffix,
|
|
324
324
|
r: e.value.table.td.roundingValue
|
|
325
|
-
}),
|
|
326
|
-
v: 100 * (
|
|
325
|
+
}), D = w({
|
|
326
|
+
v: 100 * (O.value.body[d].end / O.value.body[d].start - 1),
|
|
327
327
|
s: "%",
|
|
328
328
|
r: e.value.table.td.roundingPercentage
|
|
329
329
|
});
|
|
330
330
|
return [
|
|
331
331
|
{ name: u.name },
|
|
332
332
|
b,
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
x,
|
|
334
|
+
D
|
|
335
335
|
];
|
|
336
336
|
}), t = {
|
|
337
337
|
th: {
|
|
@@ -360,29 +360,29 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
360
360
|
});
|
|
361
361
|
function me(l = null) {
|
|
362
362
|
Wt(() => {
|
|
363
|
-
const s =
|
|
363
|
+
const s = O.value.head.map((u, d) => [[
|
|
364
364
|
u.name
|
|
365
|
-
], [
|
|
365
|
+
], [O.value.body[d].start], [O.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a = Zt(t);
|
|
366
366
|
l ? l(a) : Jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
const
|
|
369
|
+
const W = h(!1);
|
|
370
370
|
function Ye(l) {
|
|
371
|
-
|
|
371
|
+
W.value = l, Le.value += 1;
|
|
372
372
|
}
|
|
373
373
|
function St() {
|
|
374
|
-
return
|
|
374
|
+
return B.value;
|
|
375
375
|
}
|
|
376
376
|
function je() {
|
|
377
|
-
|
|
377
|
+
H.value.showTable = !H.value.showTable;
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const ae = h(!1);
|
|
380
380
|
function pe() {
|
|
381
|
-
|
|
381
|
+
ae.value = !ae.value;
|
|
382
382
|
}
|
|
383
383
|
async function Nt({ scale: l = 2 } = {}) {
|
|
384
|
-
if (!
|
|
385
|
-
const { width: s, height: t } =
|
|
384
|
+
if (!X.value) return;
|
|
385
|
+
const { width: s, height: t } = X.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await ul({ domElement: X.value, base64: !0, img: !0, scale: l });
|
|
386
386
|
return {
|
|
387
387
|
imageUri: u,
|
|
388
388
|
base64: d,
|
|
@@ -394,15 +394,15 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
394
394
|
}
|
|
395
395
|
const Qe = g(() => $.value.ticks), Mt = g(() => ({ start: 0, end: Qe.value.length }));
|
|
396
396
|
rl({
|
|
397
|
-
timeLabelsEls:
|
|
397
|
+
timeLabelsEls: te,
|
|
398
398
|
timeLabels: Qe,
|
|
399
399
|
slicer: Mt,
|
|
400
400
|
configRef: e,
|
|
401
401
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
402
402
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
403
403
|
isAutoSize: !1,
|
|
404
|
-
width:
|
|
405
|
-
height:
|
|
404
|
+
width: U,
|
|
405
|
+
height: V,
|
|
406
406
|
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
407
407
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
408
408
|
});
|
|
@@ -419,11 +419,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
419
419
|
let l = null, s = 0;
|
|
420
420
|
const t = 1;
|
|
421
421
|
return (a) => {
|
|
422
|
-
if (a ===
|
|
422
|
+
if (a === P.value) {
|
|
423
423
|
l = null, s = 0;
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (
|
|
426
|
+
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (P.value = a, l = null, s = 0));
|
|
427
427
|
};
|
|
428
428
|
})(), Ze = $e(() => {
|
|
429
429
|
requestAnimationFrame(() => {
|
|
@@ -438,10 +438,10 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
438
438
|
});
|
|
439
439
|
}, 100);
|
|
440
440
|
function xe({ datapoint: l, seriesIndex: s }) {
|
|
441
|
-
|
|
441
|
+
F.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
|
|
442
442
|
}
|
|
443
443
|
function _e({ datapoint: l, seriesIndex: s }) {
|
|
444
|
-
|
|
444
|
+
F.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
|
|
445
445
|
}
|
|
446
446
|
function ke({ datapoint: l, seriesIndex: s }) {
|
|
447
447
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
@@ -454,7 +454,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
454
454
|
if (r.value === null) return "";
|
|
455
455
|
const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
|
|
456
456
|
let t = "", a = "";
|
|
457
|
-
return l && (t =
|
|
457
|
+
return l && (t = E(
|
|
458
458
|
e.value.style.chart.labels.formatter,
|
|
459
459
|
r.value.start,
|
|
460
460
|
w({
|
|
@@ -463,8 +463,8 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
463
463
|
s: e.value.style.chart.labels.suffix,
|
|
464
464
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
465
465
|
}),
|
|
466
|
-
{ datapoint: r.value, seriesIndex:
|
|
467
|
-
)), s && (a =
|
|
466
|
+
{ datapoint: r.value, seriesIndex: F.value }
|
|
467
|
+
)), s && (a = E(
|
|
468
468
|
e.value.style.chart.labels.formatter,
|
|
469
469
|
r.value.end,
|
|
470
470
|
w({
|
|
@@ -473,10 +473,10 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
473
473
|
s: e.value.style.chart.labels.suffix,
|
|
474
474
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
475
475
|
}),
|
|
476
|
-
{ datapoint: r.value, seriesIndex:
|
|
476
|
+
{ datapoint: r.value, seriesIndex: F.value }
|
|
477
477
|
)), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
|
|
478
|
-
}),
|
|
479
|
-
const l = e.value.table.useDialog && !e.value.table.show, s =
|
|
478
|
+
}), j = g(() => {
|
|
479
|
+
const l = e.value.table.useDialog && !e.value.table.show, s = H.value.showTable;
|
|
480
480
|
return {
|
|
481
481
|
component: l ? _t : yt,
|
|
482
482
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -485,8 +485,8 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
485
485
|
color: e.value.table.th.color,
|
|
486
486
|
headerColor: e.value.table.th.color,
|
|
487
487
|
headerBg: e.value.table.th.backgroundColor,
|
|
488
|
-
isFullscreen:
|
|
489
|
-
fullscreenParent:
|
|
488
|
+
isFullscreen: W.value,
|
|
489
|
+
fullscreenParent: X.value,
|
|
490
490
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
491
491
|
} : {
|
|
492
492
|
hideDetails: !0,
|
|
@@ -505,11 +505,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
505
505
|
}
|
|
506
506
|
};
|
|
507
507
|
});
|
|
508
|
-
|
|
509
|
-
e.value.table.show || (l && e.value.table.useDialog &&
|
|
508
|
+
se(() => H.value.showTable, (l) => {
|
|
509
|
+
e.value.table.show || (l && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
|
|
510
510
|
});
|
|
511
511
|
function Je() {
|
|
512
|
-
|
|
512
|
+
H.value.showTable = !1, ne.value && ne.value.setTableIconState(!1);
|
|
513
513
|
}
|
|
514
514
|
const Ot = g(() => ge.value.map((l) => ({
|
|
515
515
|
...l,
|
|
@@ -540,21 +540,41 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
540
540
|
toggleFullscreen: Ye
|
|
541
541
|
}), (l, s) => (n(), v("div", {
|
|
542
542
|
ref_key: "dumbbellChart",
|
|
543
|
-
ref:
|
|
544
|
-
class: st(`vue-data-ui-component vue-ui-dumbbell ${
|
|
545
|
-
style:
|
|
543
|
+
ref: X,
|
|
544
|
+
class: st(`vue-data-ui-component vue-ui-dumbbell ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
545
|
+
style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
546
546
|
id: `dumbbell_${f.value}`,
|
|
547
547
|
onMouseenter: s[1] || (s[1] = () => i(De)(!0)),
|
|
548
548
|
onMouseleave: s[2] || (s[2] = () => i(De)(!1))
|
|
549
549
|
}, [
|
|
550
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
550
|
+
e.value.userOptions.buttons.annotator ? (n(), I(i(mt), {
|
|
551
551
|
key: 0,
|
|
552
552
|
svgRef: i(he),
|
|
553
553
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
554
554
|
color: e.value.style.chart.color,
|
|
555
|
-
active:
|
|
555
|
+
active: ae.value,
|
|
556
556
|
onClose: pe
|
|
557
|
-
},
|
|
557
|
+
}, {
|
|
558
|
+
"annotator-action-close": m(() => [
|
|
559
|
+
p(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
560
|
+
]),
|
|
561
|
+
"annotator-action-color": m(({ color: t }) => [
|
|
562
|
+
p(l.$slots, "annotator-action-color", A(S({ color: t })), void 0, !0)
|
|
563
|
+
]),
|
|
564
|
+
"annotator-action-draw": m(({ mode: t }) => [
|
|
565
|
+
p(l.$slots, "annotator-action-draw", A(S({ mode: t })), void 0, !0)
|
|
566
|
+
]),
|
|
567
|
+
"annotator-action-undo": m(({ disabled: t }) => [
|
|
568
|
+
p(l.$slots, "annotator-action-undo", A(S({ disabled: t })), void 0, !0)
|
|
569
|
+
]),
|
|
570
|
+
"annotator-action-redo": m(({ disabled: t }) => [
|
|
571
|
+
p(l.$slots, "annotator-action-redo", A(S({ disabled: t })), void 0, !0)
|
|
572
|
+
]),
|
|
573
|
+
"annotator-action-delete": m(({ disabled: t }) => [
|
|
574
|
+
p(l.$slots, "annotator-action-delete", A(S({ disabled: t })), void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
_: 3
|
|
577
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
558
578
|
wt.value ? (n(), v("div", {
|
|
559
579
|
key: 1,
|
|
560
580
|
ref_key: "noTitle",
|
|
@@ -568,7 +588,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
568
588
|
ref: Ae,
|
|
569
589
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
570
590
|
}, [
|
|
571
|
-
(n(),
|
|
591
|
+
(n(), I(il, {
|
|
572
592
|
key: `title_${Xe.value}`,
|
|
573
593
|
config: {
|
|
574
594
|
title: {
|
|
@@ -585,7 +605,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
585
605
|
c("div", {
|
|
586
606
|
id: `legend-top-${f.value}`
|
|
587
607
|
}, null, 8, fl),
|
|
588
|
-
e.value.userOptions.show &&
|
|
608
|
+
e.value.userOptions.show && ee.value && (i(Ie) || i(de)) ? (n(), I(i(pt), {
|
|
589
609
|
ref_key: "userOptionsRef",
|
|
590
610
|
ref: ne,
|
|
591
611
|
key: `user_option_${Le.value}`,
|
|
@@ -600,12 +620,12 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
600
620
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
601
621
|
hasTable: e.value.userOptions.buttons.table,
|
|
602
622
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
603
|
-
isFullscreen:
|
|
623
|
+
isFullscreen: W.value,
|
|
604
624
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
605
|
-
chartElement:
|
|
625
|
+
chartElement: X.value,
|
|
606
626
|
position: e.value.userOptions.position,
|
|
607
627
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
608
|
-
isAnnotation:
|
|
628
|
+
isAnnotation: ae.value,
|
|
609
629
|
callbacks: e.value.userOptions.callbacks,
|
|
610
630
|
printScale: e.value.userOptions.print.scale,
|
|
611
631
|
tableDialog: e.value.table.useDialog,
|
|
@@ -616,63 +636,63 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
616
636
|
onGenerateSvg: Ke,
|
|
617
637
|
onToggleTable: je,
|
|
618
638
|
onToggleAnnotator: pe,
|
|
619
|
-
style:
|
|
639
|
+
style: oe({
|
|
620
640
|
visibility: i(Ie) ? i(de) ? "visible" : "hidden" : "visible"
|
|
621
641
|
})
|
|
622
642
|
}, ot({ _: 2 }, [
|
|
623
643
|
l.$slots.menuIcon ? {
|
|
624
644
|
name: "menuIcon",
|
|
625
|
-
fn:
|
|
626
|
-
|
|
645
|
+
fn: m(({ isOpen: t, color: a }) => [
|
|
646
|
+
p(l.$slots, "menuIcon", A(S({ isOpen: t, color: a })), void 0, !0)
|
|
627
647
|
]),
|
|
628
648
|
key: "0"
|
|
629
649
|
} : void 0,
|
|
630
650
|
l.$slots.optionPdf ? {
|
|
631
651
|
name: "optionPdf",
|
|
632
|
-
fn:
|
|
633
|
-
|
|
652
|
+
fn: m(() => [
|
|
653
|
+
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
634
654
|
]),
|
|
635
655
|
key: "1"
|
|
636
656
|
} : void 0,
|
|
637
657
|
l.$slots.optionCsv ? {
|
|
638
658
|
name: "optionCsv",
|
|
639
|
-
fn:
|
|
640
|
-
|
|
659
|
+
fn: m(() => [
|
|
660
|
+
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
641
661
|
]),
|
|
642
662
|
key: "2"
|
|
643
663
|
} : void 0,
|
|
644
664
|
l.$slots.optionImg ? {
|
|
645
665
|
name: "optionImg",
|
|
646
|
-
fn:
|
|
647
|
-
|
|
666
|
+
fn: m(() => [
|
|
667
|
+
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
648
668
|
]),
|
|
649
669
|
key: "3"
|
|
650
670
|
} : void 0,
|
|
651
671
|
l.$slots.optionSvg ? {
|
|
652
672
|
name: "optionSvg",
|
|
653
|
-
fn:
|
|
654
|
-
|
|
673
|
+
fn: m(() => [
|
|
674
|
+
p(l.$slots, "optionSvg", {}, void 0, !0)
|
|
655
675
|
]),
|
|
656
676
|
key: "4"
|
|
657
677
|
} : void 0,
|
|
658
678
|
l.$slots.optionTable ? {
|
|
659
679
|
name: "optionTable",
|
|
660
|
-
fn:
|
|
661
|
-
|
|
680
|
+
fn: m(() => [
|
|
681
|
+
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
662
682
|
]),
|
|
663
683
|
key: "5"
|
|
664
684
|
} : void 0,
|
|
665
685
|
l.$slots.optionFullscreen ? {
|
|
666
686
|
name: "optionFullscreen",
|
|
667
|
-
fn:
|
|
668
|
-
|
|
687
|
+
fn: m(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
688
|
+
p(l.$slots, "optionFullscreen", A(S({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
669
689
|
]),
|
|
670
690
|
key: "6"
|
|
671
691
|
} : void 0,
|
|
672
692
|
l.$slots.optionAnnotator ? {
|
|
673
693
|
name: "optionAnnotator",
|
|
674
|
-
fn:
|
|
675
|
-
|
|
694
|
+
fn: m(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
695
|
+
p(l.$slots, "optionAnnotator", A(S({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
676
696
|
]),
|
|
677
697
|
key: "7"
|
|
678
698
|
} : void 0
|
|
@@ -681,9 +701,9 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
681
701
|
ref_key: "svgRef",
|
|
682
702
|
ref: he,
|
|
683
703
|
xmlns: i(ct),
|
|
684
|
-
class: st({ "vue-data-ui-fullscreen--on":
|
|
685
|
-
viewBox: `0 0 ${
|
|
686
|
-
style:
|
|
704
|
+
class: st({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
705
|
+
viewBox: `0 0 ${U.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
|
|
706
|
+
style: oe(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
687
707
|
}, [
|
|
688
708
|
nt(i(xt)),
|
|
689
709
|
l.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
@@ -696,10 +716,10 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
696
716
|
pointerEvents: "none"
|
|
697
717
|
}
|
|
698
718
|
}, [
|
|
699
|
-
|
|
719
|
+
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
700
720
|
], 8, yl)) : y("", !0),
|
|
701
721
|
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", gl, [
|
|
702
|
-
(n(!0), v(C, null,
|
|
722
|
+
(n(!0), v(C, null, N($.value.ticks, (t, a) => (n(), v("line", {
|
|
703
723
|
x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
704
724
|
x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
705
725
|
y1: o.value.top,
|
|
@@ -710,7 +730,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
710
730
|
}, null, 8, ml))), 256))
|
|
711
731
|
])) : y("", !0),
|
|
712
732
|
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", pl, [
|
|
713
|
-
(n(!0), v(C, null,
|
|
733
|
+
(n(!0), v(C, null, N(B.value, (t, a) => (n(), v("line", {
|
|
714
734
|
x1: o.value.left,
|
|
715
735
|
x2: o.value.right,
|
|
716
736
|
y1: o.value.top + a * o.value.rowHeight,
|
|
@@ -743,11 +763,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
743
763
|
ref_key: "serieLabels",
|
|
744
764
|
ref: ue
|
|
745
765
|
}, [
|
|
746
|
-
(n(!0), v(C, null,
|
|
766
|
+
(n(!0), v(C, null, N(k.value, (t, a) => (n(), v("text", {
|
|
747
767
|
class: "vue-ui-dumbbell-serie-name",
|
|
748
768
|
key: `serieLabel_${t.id}_${a}`,
|
|
749
769
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
750
|
-
y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression ||
|
|
770
|
+
y: o.value.top + a * o.value.rowHeight + (!e.value.style.chart.labels.yAxisLabels.showProgression || P.value ? o.value.rowHeight / 2 : o.value.rowHeight / 3) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
751
771
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
752
772
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
753
773
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
@@ -755,7 +775,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
755
775
|
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
756
776
|
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
757
777
|
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
758
|
-
}, _(t.name) + " " + _(
|
|
778
|
+
}, _(t.name) + " " + _(P.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(E)(
|
|
759
779
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
760
780
|
100 * (t.end / t.start - 1),
|
|
761
781
|
i(w)({
|
|
@@ -765,7 +785,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
765
785
|
}),
|
|
766
786
|
{ datapoint: t }
|
|
767
787
|
)})` : ""), 41, Cl))), 128)),
|
|
768
|
-
e.value.style.chart.labels.yAxisLabels.showProgression && !
|
|
788
|
+
e.value.style.chart.labels.yAxisLabels.showProgression && !P.value ? (n(!0), v(C, { key: 0 }, N(k.value, (t, a) => (n(), v("text", {
|
|
769
789
|
class: "vue-ui-dumbbell-serie-value",
|
|
770
790
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
771
791
|
y: o.value.top + a * o.value.rowHeight + o.value.rowHeight / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -775,7 +795,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
775
795
|
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
776
796
|
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
777
797
|
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
778
|
-
}, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(
|
|
798
|
+
}, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(E)(
|
|
779
799
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
780
800
|
100 * (t.end / t.start - 1),
|
|
781
801
|
i(w)({
|
|
@@ -799,9 +819,9 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
799
819
|
e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
|
|
800
820
|
key: 6,
|
|
801
821
|
ref_key: "scaleLabels",
|
|
802
|
-
ref:
|
|
822
|
+
ref: te
|
|
803
823
|
}, [
|
|
804
|
-
(n(!0), v(C, null,
|
|
824
|
+
(n(!0), v(C, null, N($.value.ticks, (t, a) => (n(), v("text", {
|
|
805
825
|
class: "vue-ui-dumbbell-scale-label",
|
|
806
826
|
key: `tick_${a}`,
|
|
807
827
|
transform: `translate(${o.value.left + a * (o.value.width / ($.value.ticks.length - 1))}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -809,7 +829,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
809
829
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
810
830
|
"font-weight": e.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
811
831
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
812
|
-
}, _(i(
|
|
832
|
+
}, _(i(E)(
|
|
813
833
|
e.value.style.chart.labels.formatter,
|
|
814
834
|
t,
|
|
815
835
|
i(w)({
|
|
@@ -821,26 +841,26 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
821
841
|
{ datapoint: t, seriesIndex: a }
|
|
822
842
|
)), 9, Ll))), 128))
|
|
823
843
|
], 512)) : y("", !0),
|
|
824
|
-
|
|
825
|
-
|
|
844
|
+
Q(c("g", null, [
|
|
845
|
+
Q(c("path", {
|
|
826
846
|
d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
|
|
827
847
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.startColor : "transparent",
|
|
828
848
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
829
849
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
830
850
|
style: { transition: "all 0.3s ease-in-out" }
|
|
831
851
|
}, null, 8, Al), [
|
|
832
|
-
[
|
|
852
|
+
[Z, r.value !== null && ![null, void 0].includes(r.value.start)]
|
|
833
853
|
]),
|
|
834
|
-
|
|
854
|
+
Q(c("path", {
|
|
835
855
|
d: `M ${r.value ? r.value.endX : o.value.left},${o.value.top} ${r.value ? r.value.endX : o.value.left},${o.value.bottom}`,
|
|
836
856
|
stroke: r.value ? e.value.style.chart.plots.evaluationColors.enable ? r.value.evaluationColor : e.value.style.chart.plots.endColor : "transparent",
|
|
837
857
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
838
858
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
839
859
|
style: { transition: "all 0.3s ease-in-out" }
|
|
840
860
|
}, null, 8, Sl), [
|
|
841
|
-
[
|
|
861
|
+
[Z, r.value !== null && ![null, void 0].includes(r.value.end)]
|
|
842
862
|
]),
|
|
843
|
-
|
|
863
|
+
Q(c("rect", {
|
|
844
864
|
x: r.value ? Math.min(r.value.startX, r.value.endX) : o.value.left,
|
|
845
865
|
y: o.value.top,
|
|
846
866
|
height: Math.max(0.1, o.value.height),
|
|
@@ -848,19 +868,19 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
848
868
|
fill: r.value ? i(vt)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
849
869
|
style: { transition: "all 0.3s ease-in-out" }
|
|
850
870
|
}, null, 8, Nl), [
|
|
851
|
-
[
|
|
871
|
+
[Z, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
|
|
852
872
|
]),
|
|
853
|
-
|
|
873
|
+
Q(c("text", {
|
|
854
874
|
transform: `translate(${Ce.value == null ? 0 : Ce.value}, ${o.value.top - 6})`,
|
|
855
875
|
fill: e.value.style.chart.comparisonLines.labelColor,
|
|
856
876
|
"font-size": e.value.style.chart.comparisonLines.labelFontSize,
|
|
857
877
|
"text-anchor": "middle",
|
|
858
878
|
style: { transition: "all 0.3s ease-in-out" }
|
|
859
879
|
}, _(Tt.value), 9, Ml), [
|
|
860
|
-
[
|
|
880
|
+
[Z, r.value !== null && Ce.value !== null && e.value.style.chart.comparisonLines.showLabel]
|
|
861
881
|
])
|
|
862
882
|
], 512), [
|
|
863
|
-
[
|
|
883
|
+
[Z, e.value.style.chart.comparisonLines.show && F.value !== null]
|
|
864
884
|
]),
|
|
865
885
|
c("defs", null, [
|
|
866
886
|
c("radialGradient", {
|
|
@@ -869,11 +889,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
869
889
|
}, [
|
|
870
890
|
c("stop", {
|
|
871
891
|
offset: "10%",
|
|
872
|
-
"stop-color": i(
|
|
892
|
+
"stop-color": i(J)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
873
893
|
}, null, 8, zl),
|
|
874
894
|
c("stop", {
|
|
875
895
|
offset: "90%",
|
|
876
|
-
"stop-color": i(
|
|
896
|
+
"stop-color": i(K)(e.value.style.chart.plots.startColor, 0.1)
|
|
877
897
|
}, null, 8, Tl),
|
|
878
898
|
c("stop", {
|
|
879
899
|
offset: "100%",
|
|
@@ -886,11 +906,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
886
906
|
}, [
|
|
887
907
|
c("stop", {
|
|
888
908
|
offset: "10%",
|
|
889
|
-
"stop-color": i(
|
|
909
|
+
"stop-color": i(J)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
890
910
|
}, null, 8, Il),
|
|
891
911
|
c("stop", {
|
|
892
912
|
offset: "90%",
|
|
893
|
-
"stop-color": i(
|
|
913
|
+
"stop-color": i(K)(e.value.style.chart.plots.endColor, 0.1)
|
|
894
914
|
}, null, 8, Fl),
|
|
895
915
|
c("stop", {
|
|
896
916
|
offset: "100%",
|
|
@@ -903,11 +923,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
903
923
|
}, [
|
|
904
924
|
c("stop", {
|
|
905
925
|
offset: "10%",
|
|
906
|
-
"stop-color": i(
|
|
926
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
|
|
907
927
|
}, null, 8, Gl),
|
|
908
928
|
c("stop", {
|
|
909
929
|
offset: "90%",
|
|
910
|
-
"stop-color": i(
|
|
930
|
+
"stop-color": i(K)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
|
|
911
931
|
}, null, 8, El),
|
|
912
932
|
c("stop", {
|
|
913
933
|
offset: "100%",
|
|
@@ -920,11 +940,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
920
940
|
}, [
|
|
921
941
|
c("stop", {
|
|
922
942
|
offset: "10%",
|
|
923
|
-
"stop-color": i(
|
|
943
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
|
|
924
944
|
}, null, 8, Vl),
|
|
925
945
|
c("stop", {
|
|
926
946
|
offset: "90%",
|
|
927
|
-
"stop-color": i(
|
|
947
|
+
"stop-color": i(K)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
|
|
928
948
|
}, null, 8, Ul),
|
|
929
949
|
c("stop", {
|
|
930
950
|
offset: "100%",
|
|
@@ -937,11 +957,11 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
937
957
|
}, [
|
|
938
958
|
c("stop", {
|
|
939
959
|
offset: "10%",
|
|
940
|
-
"stop-color": i(
|
|
960
|
+
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
|
|
941
961
|
}, null, 8, Yl),
|
|
942
962
|
c("stop", {
|
|
943
963
|
offset: "90%",
|
|
944
|
-
"stop-color": i(
|
|
964
|
+
"stop-color": i(K)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
|
|
945
965
|
}, null, 8, jl),
|
|
946
966
|
c("stop", {
|
|
947
967
|
offset: "100%",
|
|
@@ -949,7 +969,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
949
969
|
}, null, 8, Ql)
|
|
950
970
|
], 8, ql)
|
|
951
971
|
]),
|
|
952
|
-
(n(!0), v(C, null,
|
|
972
|
+
(n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
|
|
953
973
|
key: `plot_${a}_${t.id}`
|
|
954
974
|
}, [
|
|
955
975
|
c("defs", null, [
|
|
@@ -990,12 +1010,12 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
990
1010
|
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", sa, [
|
|
991
1011
|
c("path", {
|
|
992
1012
|
d: `M
|
|
993
|
-
${t.startX},${t.y +
|
|
1013
|
+
${t.startX},${t.y + T.value / 2}
|
|
994
1014
|
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
995
|
-
${t.endX},${t.y +
|
|
996
|
-
L ${t.endX},${t.y -
|
|
1015
|
+
${t.endX},${t.y + T.value / 2}
|
|
1016
|
+
L ${t.endX},${t.y - T.value / 2}
|
|
997
1017
|
C ${t.centerX},${t.y} ${t.centerX},${t.y}
|
|
998
|
-
${t.startX},${t.y -
|
|
1018
|
+
${t.startX},${t.y - T.value / 2}
|
|
999
1019
|
Z
|
|
1000
1020
|
`,
|
|
1001
1021
|
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
|
|
@@ -1014,7 +1034,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1014
1034
|
key: 1,
|
|
1015
1035
|
cx: t.startX,
|
|
1016
1036
|
cy: t.y,
|
|
1017
|
-
r:
|
|
1037
|
+
r: T.value,
|
|
1018
1038
|
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
|
|
1019
1039
|
stroke: e.value.style.chart.plots.stroke,
|
|
1020
1040
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
@@ -1023,24 +1043,24 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1023
1043
|
key: 2,
|
|
1024
1044
|
cx: t.endX,
|
|
1025
1045
|
cy: t.y,
|
|
1026
|
-
r:
|
|
1046
|
+
r: T.value,
|
|
1027
1047
|
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
|
|
1028
1048
|
stroke: e.value.style.chart.plots.stroke,
|
|
1029
1049
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
1030
1050
|
}, null, 8, ia))
|
|
1031
1051
|
]))), 128)),
|
|
1032
1052
|
e.value.style.chart.labels.startLabels.show ? (n(), v("g", ca, [
|
|
1033
|
-
(n(!0), v(C, null,
|
|
1053
|
+
(n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
|
|
1034
1054
|
key: `start_label_${a}_${t.id}`
|
|
1035
1055
|
}, [
|
|
1036
1056
|
[null, void 0].includes(t.start) ? y("", !0) : (n(), v("text", {
|
|
1037
1057
|
key: 0,
|
|
1038
1058
|
x: t.startX,
|
|
1039
|
-
y: t.y +
|
|
1059
|
+
y: t.y + T.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
|
|
1040
1060
|
fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.startLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
1041
1061
|
"font-size": e.value.style.chart.labels.startLabels.fontSize,
|
|
1042
1062
|
"text-anchor": "middle"
|
|
1043
|
-
}, _(i(
|
|
1063
|
+
}, _(i(E)(
|
|
1044
1064
|
e.value.style.chart.labels.formatter,
|
|
1045
1065
|
t.start,
|
|
1046
1066
|
i(w)({
|
|
@@ -1054,17 +1074,17 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1054
1074
|
]))), 128))
|
|
1055
1075
|
])) : y("", !0),
|
|
1056
1076
|
e.value.style.chart.labels.endLabels.show ? (n(), v("g", da, [
|
|
1057
|
-
(n(!0), v(C, null,
|
|
1077
|
+
(n(!0), v(C, null, N(k.value, (t, a) => (n(), v("g", {
|
|
1058
1078
|
key: `end_label_${a}_${t.id}`
|
|
1059
1079
|
}, [
|
|
1060
1080
|
[null, void 0].includes(t.end) ? y("", !0) : (n(), v("text", {
|
|
1061
1081
|
key: 0,
|
|
1062
1082
|
x: t.endX,
|
|
1063
|
-
y: t.y - (
|
|
1083
|
+
y: t.y - (T.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
|
|
1064
1084
|
fill: e.value.style.chart.plots.evaluationColors.enable && e.value.style.chart.labels.endLabels.useEvaluationColor ? t.evaluationColor : e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
1065
1085
|
"font-size": e.value.style.chart.labels.endLabels.fontSize,
|
|
1066
1086
|
"text-anchor": "middle"
|
|
1067
|
-
}, _(i(
|
|
1087
|
+
}, _(i(E)(
|
|
1068
1088
|
e.value.style.chart.labels.formatter,
|
|
1069
1089
|
t.end,
|
|
1070
1090
|
i(w)({
|
|
@@ -1078,26 +1098,26 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1078
1098
|
]))), 128))
|
|
1079
1099
|
])) : y("", !0),
|
|
1080
1100
|
c("g", null, [
|
|
1081
|
-
(n(!0), v(C, null,
|
|
1101
|
+
(n(!0), v(C, null, N(k.value, (t, a) => (n(), v("rect", {
|
|
1082
1102
|
x: o.value.left,
|
|
1083
1103
|
y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
|
|
1084
1104
|
width: Math.max(0.1, o.value.width),
|
|
1085
1105
|
height: Math.max(0.1, o.value.rowHeight),
|
|
1086
|
-
fill:
|
|
1106
|
+
fill: F.value !== null && F.value === a ? i(vt)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1087
1107
|
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
1088
1108
|
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
1089
1109
|
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
1090
1110
|
}, null, 40, fa))), 256))
|
|
1091
1111
|
]),
|
|
1092
|
-
|
|
1112
|
+
p(l.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1093
1113
|
], 14, bl)),
|
|
1094
1114
|
l.$slots.watermark ? (n(), v("div", ba, [
|
|
1095
|
-
|
|
1115
|
+
p(l.$slots, "watermark", A(S({ isPrinting: i(He) || i(Ge) })), void 0, !0)
|
|
1096
1116
|
])) : y("", !0),
|
|
1097
1117
|
c("div", {
|
|
1098
1118
|
id: `legend-bottom-${f.value}`
|
|
1099
1119
|
}, null, 8, ya),
|
|
1100
|
-
Oe.value ? (n(),
|
|
1120
|
+
Oe.value ? (n(), I(Bt, {
|
|
1101
1121
|
key: 5,
|
|
1102
1122
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1103
1123
|
}, [
|
|
@@ -1105,15 +1125,15 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1105
1125
|
ref_key: "chartLegend",
|
|
1106
1126
|
ref: Se
|
|
1107
1127
|
}, [
|
|
1108
|
-
e.value.style.chart.legend.show &&
|
|
1128
|
+
e.value.style.chart.legend.show && ee.value ? (n(), I(vl, {
|
|
1109
1129
|
key: `legend_${Te.value}`,
|
|
1110
1130
|
legendSet: ge.value,
|
|
1111
1131
|
config: At.value,
|
|
1112
1132
|
clickable: !1
|
|
1113
1133
|
}, {
|
|
1114
|
-
item:
|
|
1134
|
+
item: m(({ legend: t }) => [
|
|
1115
1135
|
c("div", {
|
|
1116
|
-
style:
|
|
1136
|
+
style: oe(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
1117
1137
|
}, [
|
|
1118
1138
|
(n(), v("svg", {
|
|
1119
1139
|
xmlns: i(ct),
|
|
@@ -1134,7 +1154,7 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1134
1154
|
], 4)
|
|
1135
1155
|
]),
|
|
1136
1156
|
_: 1
|
|
1137
|
-
}, 8, ["legendSet", "config"])) :
|
|
1157
|
+
}, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
|
|
1138
1158
|
key: 1,
|
|
1139
1159
|
legend: ge.value
|
|
1140
1160
|
}, void 0, !0)
|
|
@@ -1146,31 +1166,31 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1146
1166
|
ref: Ne,
|
|
1147
1167
|
dir: "auto"
|
|
1148
1168
|
}, [
|
|
1149
|
-
|
|
1169
|
+
p(l.$slots, "source", {}, void 0, !0)
|
|
1150
1170
|
], 512)) : y("", !0),
|
|
1151
|
-
|
|
1171
|
+
ee.value && e.value.userOptions.buttons.table ? (n(), I(Vt(j.value.component), Ut({ key: 7 }, j.value.props, {
|
|
1152
1172
|
ref_key: "tableUnit",
|
|
1153
|
-
ref:
|
|
1173
|
+
ref: q,
|
|
1154
1174
|
onClose: Je
|
|
1155
1175
|
}), ot({
|
|
1156
|
-
content:
|
|
1157
|
-
(n(),
|
|
1176
|
+
content: m(() => [
|
|
1177
|
+
(n(), I(i(gt), {
|
|
1158
1178
|
key: `table_${ze.value}`,
|
|
1159
|
-
colNames:
|
|
1160
|
-
head:
|
|
1161
|
-
body:
|
|
1162
|
-
config:
|
|
1163
|
-
title: e.value.table.useDialog ? "" :
|
|
1179
|
+
colNames: le.value.colNames,
|
|
1180
|
+
head: le.value.head,
|
|
1181
|
+
body: le.value.body,
|
|
1182
|
+
config: le.value.config,
|
|
1183
|
+
title: e.value.table.useDialog ? "" : j.value.title,
|
|
1164
1184
|
withCloseButton: !e.value.table.useDialog,
|
|
1165
1185
|
onClose: Je
|
|
1166
1186
|
}, {
|
|
1167
|
-
th:
|
|
1187
|
+
th: m(({ th: t }) => [
|
|
1168
1188
|
c("div", {
|
|
1169
1189
|
innerHTML: t,
|
|
1170
1190
|
style: { display: "flex", "align-items": "center" }
|
|
1171
1191
|
}, null, 8, pa)
|
|
1172
1192
|
]),
|
|
1173
|
-
td:
|
|
1193
|
+
td: m(({ td: t }) => [
|
|
1174
1194
|
we(_(t.name || t), 1)
|
|
1175
1195
|
]),
|
|
1176
1196
|
_: 1
|
|
@@ -1180,14 +1200,14 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1180
1200
|
}, [
|
|
1181
1201
|
e.value.table.useDialog ? {
|
|
1182
1202
|
name: "title",
|
|
1183
|
-
fn:
|
|
1184
|
-
we(_(
|
|
1203
|
+
fn: m(() => [
|
|
1204
|
+
we(_(j.value.title), 1)
|
|
1185
1205
|
]),
|
|
1186
1206
|
key: "0"
|
|
1187
1207
|
} : void 0,
|
|
1188
1208
|
e.value.table.useDialog ? {
|
|
1189
1209
|
name: "actions",
|
|
1190
|
-
fn:
|
|
1210
|
+
fn: m(() => [
|
|
1191
1211
|
c("button", {
|
|
1192
1212
|
tabindex: "0",
|
|
1193
1213
|
class: "vue-ui-user-options-button",
|
|
@@ -1195,17 +1215,17 @@ const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1195
1215
|
}, [
|
|
1196
1216
|
nt(i(bt), {
|
|
1197
1217
|
name: "excel",
|
|
1198
|
-
stroke:
|
|
1218
|
+
stroke: j.value.props.color
|
|
1199
1219
|
}, null, 8, ["stroke"])
|
|
1200
1220
|
])
|
|
1201
1221
|
]),
|
|
1202
1222
|
key: "1"
|
|
1203
1223
|
} : void 0
|
|
1204
1224
|
]), 1040)) : y("", !0),
|
|
1205
|
-
i(ce) ? (n(),
|
|
1225
|
+
i(ce) ? (n(), I(al, { key: 8 })) : y("", !0)
|
|
1206
1226
|
], 46, hl));
|
|
1207
1227
|
}
|
|
1208
|
-
}, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-
|
|
1228
|
+
}, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-172d4caf"]]);
|
|
1209
1229
|
export {
|
|
1210
1230
|
Fa as default
|
|
1211
1231
|
};
|