vue-data-ui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.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 ge, t as Bt, b as Wt, p as
|
|
1
|
+
import { defineAsyncComponent as _, computed as d, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as Mt, onBeforeUnmount as Ye, watchEffect as Ft, createElementBlock as u, openBlock as r, unref as c, normalizeStyle as J, normalizeClass as E, createBlock as z, createCommentVNode as f, createVNode as me, withCtx as v, renderSlot as h, normalizeProps as m, guardReactiveProps as g, createSlots as je, createElementVNode as x, Fragment as k, renderList as T, toDisplayString as S, 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 D, o as Qe, f as xe, g as Ke, e as Et, h as Ze, x as Gt, m as Ht, d as Q, X as Ut, a as ke, M as Vt, al as Xt, S as Yt, U as jt, G as et, R as qt, P as Jt, Q as Qt, H as Kt } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as tt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as el, a as lt } from "./useNestedProp-
|
|
4
|
+
import { u as el, a as lt } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as al } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as ol } from "./useSvgExport-DrjCWun4.js";
|
|
@@ -10,10 +10,10 @@ import { u as rl } from "./useChartAccessibility-9icAAmYg.js";
|
|
|
10
10
|
import { u as nl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
11
|
import ul from "./img-BecE5qXd.js";
|
|
12
12
|
import { _ as il } from "./Shape-CNXKB8O0.js";
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
13
|
+
import cl from "./Title-isbiM8i8.js";
|
|
14
|
+
import { t as vl } from "./themes-AUNCOb2G.js";
|
|
15
15
|
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"], bl = { key: 1 }, yl = { key: 0 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = { key: 1 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "text-anchor"], Ll = ["transform", "font-size", "fill", "text-anchor", "innerHTML"],
|
|
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"], _l = ["fill", "font-size", "x", "y"], Tl = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["cx", "cy", "fill"], Ol = ["cx", "cy", "fill"], Pl = ["id"], zl = ["stop-color"], Dl = ["stop-color"], Nl = ["stop-color"], Ml = { key: 0 }, Fl = ["x", "y", "font-size", "fill"], Il = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Rl = ["innerHTML"], Bl = {
|
|
@@ -34,17 +34,17 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint"],
|
|
36
36
|
setup(at, { expose: ot, emit: st }) {
|
|
37
|
-
const rt =
|
|
37
|
+
const rt = _(() => import("./Tooltip-oWCO1HKy.js")), nt = _(() => import("./BaseIcon-BmMbm4d0.js")), ut = _(() => import("./vue-ui-accordion-CqhVCfc2.js")), it = _(() => import("./DataTable-BT7VF2ua.js")), ct = _(() => import("./UserOptions-CGnQt6Fd.js")), vt = _(() => import("./PenAndPaper-SZQIAgkg.js")), ht = _(() => import("./PackageVersion-DQvyATVa.js")), dt = _(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_strip_plot: pt } = el(), w = at, ft = st, G = d({
|
|
38
38
|
get() {
|
|
39
|
-
return !!
|
|
39
|
+
return !!w.dataset && w.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(t) {
|
|
42
42
|
return t;
|
|
43
43
|
}
|
|
44
|
-
}), K = i(ge()), we = i(0), Z = i(!1), ee = i(""),
|
|
45
|
-
...Nt(
|
|
44
|
+
}), K = i(ge()), we = i(0), Z = i(!1), ee = i(""), A = i(null), Ce = i(null), Ae = i(null), Le = i(null), $e = i(!1), _e = i(0), Te = i(0), I = i(null), te = i(null), le = i(null), ae = i(null), H = i(null), oe = i(null), e = i(ce()), { loading: se, FINAL_DATASET: re, manualLoading: ne } = tl({
|
|
45
|
+
...Nt(w),
|
|
46
46
|
FINAL_CONFIG: e,
|
|
47
|
-
prepareConfig:
|
|
47
|
+
prepareConfig: ce,
|
|
48
48
|
skeletonDataset: [
|
|
49
49
|
{
|
|
50
50
|
name: "_",
|
|
@@ -132,35 +132,35 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
134
|
}), { userOptionsVisible: ue, setUserOptionsVisibility: Se, keepUserOptionState: Oe } = sl({ config: e.value }), { svgRef: ie } = rl({ config: e.value.style.chart.title });
|
|
135
|
-
function
|
|
135
|
+
function ce() {
|
|
136
136
|
const t = lt({
|
|
137
|
-
userConfig:
|
|
137
|
+
userConfig: w.config,
|
|
138
138
|
defaultConfig: pt
|
|
139
139
|
});
|
|
140
140
|
return t.theme ? {
|
|
141
141
|
...lt({
|
|
142
|
-
userConfig:
|
|
142
|
+
userConfig: vl.vue_ui_strip_plot[t.theme] || w.config,
|
|
143
143
|
defaultConfig: t
|
|
144
144
|
}),
|
|
145
|
-
customPalette: Wt[t.theme] ||
|
|
145
|
+
customPalette: Wt[t.theme] || D
|
|
146
146
|
} : t;
|
|
147
147
|
}
|
|
148
|
-
q(() =>
|
|
149
|
-
se.value || (e.value =
|
|
150
|
-
}, { deep: !0 }), q(() =>
|
|
148
|
+
q(() => w.config, async (t) => {
|
|
149
|
+
se.value || (e.value = ce()), ue.value = !e.value.userOptions.showOnChartHover, Pe(), _e.value += 1, Te.value += 1, b.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tooltip.show, M.value = e.value.style.chart.width, $.value = e.value.style.chart.height, B.value = e.value.style.chart.plots.radius;
|
|
150
|
+
}, { deep: !0 }), q(() => w.dataset, (t) => {
|
|
151
151
|
Array.isArray(t) && t.length > 0 && (ne.value = !1);
|
|
152
152
|
}, { deep: !0 });
|
|
153
|
-
const
|
|
153
|
+
const L = Xe(null), N = Xe(null);
|
|
154
154
|
Mt(() => {
|
|
155
155
|
Pe();
|
|
156
156
|
});
|
|
157
|
-
const
|
|
157
|
+
const ve = d(() => !!e.value.debug);
|
|
158
158
|
function Pe() {
|
|
159
|
-
if (Qe(
|
|
159
|
+
if (Qe(w.dataset) ? (xe({
|
|
160
160
|
componentName: "VueUiStripPlot",
|
|
161
161
|
type: "dataset",
|
|
162
|
-
debug:
|
|
163
|
-
}), ne.value = !0) :
|
|
162
|
+
debug: ve.value
|
|
163
|
+
}), ne.value = !0) : w.dataset.forEach((t, a) => {
|
|
164
164
|
Ke({
|
|
165
165
|
datasetObject: t,
|
|
166
166
|
requiredAttributes: ["name", "plots"]
|
|
@@ -170,7 +170,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
170
170
|
type: "datasetSerieAttribute",
|
|
171
171
|
property: l,
|
|
172
172
|
index: a,
|
|
173
|
-
debug:
|
|
173
|
+
debug: ve.value
|
|
174
174
|
});
|
|
175
175
|
}), t.plots && t.plots.forEach((l, o) => {
|
|
176
176
|
Ke({
|
|
@@ -182,20 +182,20 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
182
182
|
type: "datasetSerieAttribute",
|
|
183
183
|
property: n,
|
|
184
184
|
index: `${a},${o}`,
|
|
185
|
-
debug:
|
|
185
|
+
debug: ve.value
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
|
-
}), Qe(
|
|
189
|
+
}), Qe(w.dataset) || (ne.value = e.value.loading), e.value.responsive) {
|
|
190
190
|
const t = tt(() => {
|
|
191
191
|
const { width: a, height: l } = Zt({
|
|
192
|
-
chart:
|
|
192
|
+
chart: A.value,
|
|
193
193
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
194
194
|
source: Ae.value,
|
|
195
195
|
noTitle: Le.value
|
|
196
196
|
});
|
|
197
197
|
requestAnimationFrame(() => {
|
|
198
|
-
yt.value = l,
|
|
198
|
+
yt.value = l, M.value = Math.max(0.1, a), $.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? B.value = qt({
|
|
199
199
|
relator: Math.min(l, a),
|
|
200
200
|
adjuster: 600,
|
|
201
201
|
source: e.value.style.chart.plots.radius,
|
|
@@ -204,25 +204,25 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
204
204
|
}) : B.value = e.value.style.chart.plots.radius;
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
L.value && (N.value && L.value.unobserve(N.value), L.value.disconnect()), L.value = new ResizeObserver(t), N.value = A.value.parentNode, L.value.observe(N.value);
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
$e.value = !0, setTimeout(() => {
|
|
210
210
|
R.value = !1;
|
|
211
211
|
}, kt.value * 50);
|
|
212
212
|
}
|
|
213
213
|
Ye(() => {
|
|
214
|
-
|
|
214
|
+
L.value && (N.value && L.value.unobserve(N.value), L.value.disconnect());
|
|
215
215
|
});
|
|
216
216
|
const { isPrinting: ze, isImaging: De, generatePdf: Ne, generateImage: Me } = al({
|
|
217
217
|
elementId: `strip-plot_${K.value}`,
|
|
218
218
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
219
219
|
options: e.value.userOptions.print
|
|
220
|
-
}), bt =
|
|
220
|
+
}), bt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = d(() => Et(e.value.customPalette)), R = i(e.value.useCssAnimation), U = i({
|
|
221
221
|
top: e.value.style.chart.padding.top,
|
|
222
222
|
bottom: e.value.style.chart.padding.bottom,
|
|
223
223
|
left: e.value.style.chart.padding.left,
|
|
224
224
|
right: e.value.style.chart.padding.right
|
|
225
|
-
}),
|
|
225
|
+
}), M = i(e.value.style.chart.width), $ = i(e.value.style.chart.height), yt = i(e.value.style.chart.height), B = i(e.value.style.chart.plots.radius), b = i({
|
|
226
226
|
showTable: e.value.table.show,
|
|
227
227
|
dataLabels: {
|
|
228
228
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
@@ -230,20 +230,20 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
230
230
|
showTooltip: e.value.style.chart.tooltip.show
|
|
231
231
|
});
|
|
232
232
|
q(e, () => {
|
|
233
|
-
|
|
233
|
+
b.value = {
|
|
234
234
|
showTable: e.value.table.show,
|
|
235
235
|
dataLabels: {
|
|
236
236
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
237
237
|
},
|
|
238
238
|
showTooltip: e.value.style.chart.tooltip.show
|
|
239
|
-
},
|
|
239
|
+
}, M.value = e.value.style.chart.width, $.value = e.value.style.chart.height, B.value = e.value.style.chart.plots.radius;
|
|
240
240
|
}, { immediate: !0 });
|
|
241
|
-
const he =
|
|
241
|
+
const he = d(() => Math.min(B.value, s.value.stripWidth / 2 * 0.9));
|
|
242
242
|
function mt() {
|
|
243
243
|
let t = 0;
|
|
244
244
|
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o, n) => {
|
|
245
|
-
const
|
|
246
|
-
return
|
|
245
|
+
const p = n.getComputedTextLength();
|
|
246
|
+
return p > o ? p : o;
|
|
247
247
|
}, 0));
|
|
248
248
|
const a = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
249
249
|
return t + a + (a ? 24 : 0);
|
|
@@ -261,29 +261,29 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
261
261
|
}), Ye(() => {
|
|
262
262
|
de.value = 0;
|
|
263
263
|
});
|
|
264
|
-
const xt =
|
|
264
|
+
const xt = d(() => {
|
|
265
265
|
let t = 0;
|
|
266
266
|
le.value && (t = le.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
|
|
267
267
|
let a = 0;
|
|
268
268
|
return H.value && (a = de.value + 12), t + a;
|
|
269
|
-
}), s =
|
|
270
|
-
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l =
|
|
269
|
+
}), s = d(() => {
|
|
270
|
+
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = M.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, p = $.value - U.value.bottom - xt.value, F = Math.max(0, p - n), Ve = Array.isArray(re.value) ? re.value.length : 0, Dt = Ve > 0 ? o / Ve : 0;
|
|
271
271
|
return {
|
|
272
272
|
left: a,
|
|
273
273
|
right: l,
|
|
274
274
|
top: n,
|
|
275
|
-
bottom:
|
|
275
|
+
bottom: p,
|
|
276
276
|
width: o,
|
|
277
|
-
height:
|
|
277
|
+
height: F,
|
|
278
278
|
stripWidth: Dt,
|
|
279
|
-
absoluteHeight:
|
|
279
|
+
absoluteHeight: $.value
|
|
280
280
|
};
|
|
281
|
-
}), V =
|
|
281
|
+
}), V = d(() => re.value.map((t, a) => {
|
|
282
282
|
const l = ge();
|
|
283
283
|
return {
|
|
284
284
|
...t,
|
|
285
285
|
id: l,
|
|
286
|
-
color: t.color ? Ze(t.color) : Fe.value[a] ||
|
|
286
|
+
color: t.color ? Ze(t.color) : Fe.value[a] || D[a] || D[a % D.length],
|
|
287
287
|
plots: t.plots.map((o, n) => ({
|
|
288
288
|
...o,
|
|
289
289
|
value: Gt(o.value),
|
|
@@ -291,42 +291,42 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
291
291
|
parentName: t.name,
|
|
292
292
|
parentIndex: a,
|
|
293
293
|
plotIndex: n,
|
|
294
|
-
color: t.color ? Ze(t.color) : Fe.value[a] ||
|
|
294
|
+
color: t.color ? Ze(t.color) : Fe.value[a] || D[a] || D[a % D.length],
|
|
295
295
|
id: ge()
|
|
296
296
|
})).sort((o, n) => o.value - n.value)
|
|
297
297
|
};
|
|
298
|
-
})),
|
|
298
|
+
})), C = d(() => (V.value || []).map((t, a) => ({
|
|
299
299
|
...t,
|
|
300
300
|
plots: t.plots.map((l) => ({
|
|
301
301
|
...l,
|
|
302
302
|
x: s.value.left + (a + 1) * s.value.stripWidth - s.value.stripWidth / 2
|
|
303
303
|
}))
|
|
304
|
-
}))), kt =
|
|
305
|
-
const t =
|
|
304
|
+
}))), kt = d(() => Math.max(...C.value.map((t) => t.plots.length))), pe = d(() => {
|
|
305
|
+
const t = C.value.flatMap((a) => a.plots.map((l) => l.value));
|
|
306
306
|
return {
|
|
307
307
|
max: Math.max(...t),
|
|
308
308
|
min: Math.min(...t)
|
|
309
309
|
};
|
|
310
|
-
}),
|
|
310
|
+
}), O = d(() => Ht(pe.value.min < 0 ? pe.value.min : 0, pe.value.max, e.value.style.chart.grid.scaleSteps)), wt = d(() => (C.value || []).map((t, a) => ({
|
|
311
311
|
...t,
|
|
312
312
|
plots: t.plots.map((l) => ({
|
|
313
313
|
...l,
|
|
314
|
-
y: s.value.bottom - (l.value + Math.abs(
|
|
314
|
+
y: s.value.bottom - (l.value + Math.abs(O.value.min)) / (O.value.max + Math.abs(O.value.min)) * s.value.height
|
|
315
315
|
}))
|
|
316
|
-
}))), Ie =
|
|
317
|
-
y: s.value.bottom - s.value.height * ((t + Math.abs(
|
|
316
|
+
}))), Ie = d(() => O.value.ticks.map((t) => ({
|
|
317
|
+
y: s.value.bottom - s.value.height * ((t + Math.abs(O.value.min)) / (O.value.max + Math.abs(O.value.min))),
|
|
318
318
|
x1: s.value.left,
|
|
319
319
|
x2: s.value.right,
|
|
320
320
|
value: t
|
|
321
|
-
}))), fe = i(null),
|
|
321
|
+
}))), fe = i(null), y = i(null);
|
|
322
322
|
function Ct({ datapoint: t, seriesIndex: a }) {
|
|
323
|
-
Z.value = !1,
|
|
323
|
+
Z.value = !1, y.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
324
324
|
}
|
|
325
325
|
function At({ datapoint: t, seriesIndex: a }) {
|
|
326
326
|
ft("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
327
327
|
}
|
|
328
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,
|
|
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, y.value = t;
|
|
330
330
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
331
331
|
if (et(l) && Kt(() => l({
|
|
332
332
|
seriesIndex: a,
|
|
@@ -355,29 +355,29 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
355
355
|
)}</div>`, ee.value = `<div>${o}</div>`;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
const X =
|
|
359
|
-
const t =
|
|
358
|
+
const X = d(() => {
|
|
359
|
+
const t = C.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => ({
|
|
360
360
|
name: `${l.name} - ${o.name}`,
|
|
361
361
|
color: o.color
|
|
362
|
-
}))), a =
|
|
362
|
+
}))), a = C.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, n) => n.value - o.value).map((o) => o.value));
|
|
363
363
|
return { head: t, body: a };
|
|
364
364
|
});
|
|
365
365
|
function be(t = null) {
|
|
366
366
|
Rt(() => {
|
|
367
|
-
const a = X.value.head.map((n,
|
|
367
|
+
const a = X.value.head.map((n, p) => [[
|
|
368
368
|
n.name
|
|
369
|
-
], [X.value.body[
|
|
369
|
+
], [X.value.body[p]]]), 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
370
|
t ? t(o) : Qt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
-
const Y =
|
|
373
|
+
const Y = d(() => {
|
|
374
374
|
const t = [
|
|
375
375
|
e.value.table.columnNames.series,
|
|
376
376
|
e.value.table.columnNames.value
|
|
377
|
-
], a = X.value.head.map((n,
|
|
378
|
-
const
|
|
377
|
+
], a = X.value.head.map((n, p) => {
|
|
378
|
+
const F = Q({
|
|
379
379
|
p: e.value.style.chart.labels.prefix,
|
|
380
|
-
v: X.value.body[
|
|
380
|
+
v: X.value.body[p],
|
|
381
381
|
s: e.value.style.chart.labels.suffix,
|
|
382
382
|
r: e.value.table.td.roundingValue
|
|
383
383
|
});
|
|
@@ -386,7 +386,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
386
386
|
color: n.color,
|
|
387
387
|
name: n.name
|
|
388
388
|
},
|
|
389
|
-
|
|
389
|
+
F
|
|
390
390
|
];
|
|
391
391
|
}), l = {
|
|
392
392
|
th: {
|
|
@@ -410,54 +410,54 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
410
410
|
body: a,
|
|
411
411
|
config: l
|
|
412
412
|
};
|
|
413
|
-
}),
|
|
413
|
+
}), P = i(!1);
|
|
414
414
|
function Re(t) {
|
|
415
|
-
|
|
415
|
+
P.value = t, we.value += 1;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
return
|
|
417
|
+
function $t() {
|
|
418
|
+
return C.value;
|
|
419
419
|
}
|
|
420
420
|
function Be() {
|
|
421
|
-
|
|
421
|
+
b.value.showTable = !b.value.showTable;
|
|
422
422
|
}
|
|
423
423
|
function We() {
|
|
424
|
-
|
|
424
|
+
b.value.dataLabels.show = !b.value.dataLabels.show;
|
|
425
425
|
}
|
|
426
426
|
function Ee() {
|
|
427
|
-
|
|
427
|
+
b.value.showTooltip = !b.value.showTooltip;
|
|
428
428
|
}
|
|
429
429
|
const j = i(!1);
|
|
430
430
|
function ye() {
|
|
431
431
|
j.value = !j.value;
|
|
432
432
|
}
|
|
433
|
-
async function
|
|
434
|
-
if (!
|
|
435
|
-
const { width: a, height: l } =
|
|
433
|
+
async function _t({ scale: t = 2 } = {}) {
|
|
434
|
+
if (!A.value) return;
|
|
435
|
+
const { width: a, height: l } = A.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: p } = await ul({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
436
436
|
return {
|
|
437
437
|
imageUri: n,
|
|
438
|
-
base64:
|
|
438
|
+
base64: p,
|
|
439
439
|
title: e.value.style.chart.title.text,
|
|
440
440
|
width: a,
|
|
441
441
|
height: l,
|
|
442
442
|
aspectRatio: o
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
const Ge =
|
|
445
|
+
const Ge = d(() => C.value.map((t) => t.name)), Tt = i({ start: 0, end: C.value.length });
|
|
446
446
|
nl({
|
|
447
447
|
timeLabelsEls: H,
|
|
448
448
|
timeLabels: Ge,
|
|
449
|
-
slicer:
|
|
449
|
+
slicer: Tt,
|
|
450
450
|
configRef: e,
|
|
451
451
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
452
452
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
453
453
|
isAutoSize: !1,
|
|
454
|
-
width:
|
|
455
|
-
height:
|
|
454
|
+
width: M,
|
|
455
|
+
height: $,
|
|
456
456
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
457
457
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
458
458
|
});
|
|
459
|
-
const W =
|
|
460
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
459
|
+
const W = d(() => {
|
|
460
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = b.value.showTable;
|
|
461
461
|
return {
|
|
462
462
|
component: t ? dt : ut,
|
|
463
463
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -466,8 +466,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
466
466
|
color: e.value.table.th.color,
|
|
467
467
|
headerColor: e.value.table.th.color,
|
|
468
468
|
headerBg: e.value.table.th.backgroundColor,
|
|
469
|
-
isFullscreen:
|
|
470
|
-
fullscreenParent:
|
|
469
|
+
isFullscreen: P.value,
|
|
470
|
+
fullscreenParent: A.value,
|
|
471
471
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
472
472
|
} : {
|
|
473
473
|
hideDetails: !0,
|
|
@@ -486,13 +486,13 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
});
|
|
489
|
-
q(() =>
|
|
489
|
+
q(() => b.value.showTable, (t) => {
|
|
490
490
|
e.value.table.show || (t && e.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
491
491
|
});
|
|
492
492
|
function He() {
|
|
493
|
-
|
|
493
|
+
b.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
494
494
|
}
|
|
495
|
-
const St =
|
|
495
|
+
const St = d(() => e.value.style.chart.backgroundColor), Ot = d(() => e.value.style.chart.title), { exportSvg: Pt, getSvg: zt } = ol({
|
|
496
496
|
svg: ie,
|
|
497
497
|
title: Ot,
|
|
498
498
|
backgroundColor: St
|
|
@@ -505,8 +505,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
505
505
|
Pt();
|
|
506
506
|
}
|
|
507
507
|
return ot({
|
|
508
|
-
getData:
|
|
509
|
-
getImage:
|
|
508
|
+
getData: $t,
|
|
509
|
+
getImage: _t,
|
|
510
510
|
generatePdf: Ne,
|
|
511
511
|
generateCsv: be,
|
|
512
512
|
generateImage: Me,
|
|
@@ -518,36 +518,56 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
518
518
|
toggleFullscreen: Re
|
|
519
519
|
}), (t, a) => (r(), u("div", {
|
|
520
520
|
ref_key: "stripPlotChart",
|
|
521
|
-
ref:
|
|
522
|
-
class: E(`vue-data-ui-component vue-ui-strip-plot ${
|
|
521
|
+
ref: A,
|
|
522
|
+
class: E(`vue-data-ui-component vue-ui-strip-plot ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
523
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%" : ""}`),
|
|
524
524
|
id: `strip-plot_${K.value}`,
|
|
525
|
-
onMouseenter: a[1] || (a[1] = () =>
|
|
526
|
-
onMouseleave: a[2] || (a[2] = () =>
|
|
525
|
+
onMouseenter: a[1] || (a[1] = () => c(Se)(!0)),
|
|
526
|
+
onMouseleave: a[2] || (a[2] = () => c(Se)(!1))
|
|
527
527
|
}, [
|
|
528
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
528
|
+
e.value.userOptions.buttons.annotator ? (r(), z(c(vt), {
|
|
529
529
|
key: 0,
|
|
530
|
-
svgRef:
|
|
530
|
+
svgRef: c(ie),
|
|
531
531
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
532
532
|
color: e.value.style.chart.color,
|
|
533
533
|
active: j.value,
|
|
534
534
|
onClose: ye
|
|
535
|
-
},
|
|
535
|
+
}, {
|
|
536
|
+
"annotator-action-close": v(() => [
|
|
537
|
+
h(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
538
|
+
]),
|
|
539
|
+
"annotator-action-color": v(({ color: l }) => [
|
|
540
|
+
h(t.$slots, "annotator-action-color", m(g({ color: l })), void 0, !0)
|
|
541
|
+
]),
|
|
542
|
+
"annotator-action-draw": v(({ mode: l }) => [
|
|
543
|
+
h(t.$slots, "annotator-action-draw", m(g({ mode: l })), void 0, !0)
|
|
544
|
+
]),
|
|
545
|
+
"annotator-action-undo": v(({ disabled: l }) => [
|
|
546
|
+
h(t.$slots, "annotator-action-undo", m(g({ disabled: l })), void 0, !0)
|
|
547
|
+
]),
|
|
548
|
+
"annotator-action-redo": v(({ disabled: l }) => [
|
|
549
|
+
h(t.$slots, "annotator-action-redo", m(g({ disabled: l })), void 0, !0)
|
|
550
|
+
]),
|
|
551
|
+
"annotator-action-delete": v(({ disabled: l }) => [
|
|
552
|
+
h(t.$slots, "annotator-action-delete", m(g({ disabled: l })), void 0, !0)
|
|
553
|
+
]),
|
|
554
|
+
_: 3
|
|
555
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
536
556
|
bt.value ? (r(), u("div", {
|
|
537
557
|
key: 1,
|
|
538
558
|
ref_key: "noTitle",
|
|
539
559
|
ref: Le,
|
|
540
560
|
class: "vue-data-ui-no-title-space",
|
|
541
561
|
style: "height:36px; width: 100%;background:transparent"
|
|
542
|
-
}, null, 512)) :
|
|
562
|
+
}, null, 512)) : f("", !0),
|
|
543
563
|
e.value.style.chart.title.text ? (r(), u("div", {
|
|
544
564
|
key: 2,
|
|
545
565
|
ref_key: "chartTitle",
|
|
546
566
|
ref: Ce,
|
|
547
567
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
548
568
|
}, [
|
|
549
|
-
(r(),
|
|
550
|
-
key: `title_${
|
|
569
|
+
(r(), z(cl, {
|
|
570
|
+
key: `title_${_e.value}`,
|
|
551
571
|
config: {
|
|
552
572
|
title: {
|
|
553
573
|
cy: "donut-div-title",
|
|
@@ -559,15 +579,15 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
559
579
|
}
|
|
560
580
|
}
|
|
561
581
|
}, null, 8, ["config"]))
|
|
562
|
-
], 512)) :
|
|
563
|
-
e.value.userOptions.show && G.value && (
|
|
582
|
+
], 512)) : f("", !0),
|
|
583
|
+
e.value.userOptions.show && G.value && (c(Oe) || c(ue)) ? (r(), z(c(ct), {
|
|
564
584
|
ref_key: "userOptionsRef",
|
|
565
585
|
ref: te,
|
|
566
586
|
key: `user_option_${we.value}`,
|
|
567
587
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
568
588
|
color: e.value.style.chart.color,
|
|
569
|
-
isPrinting:
|
|
570
|
-
isImaging:
|
|
589
|
+
isPrinting: c(ze),
|
|
590
|
+
isImaging: c(De),
|
|
571
591
|
uid: K.value,
|
|
572
592
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
573
593
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -577,10 +597,10 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
577
597
|
hasTable: e.value.userOptions.buttons.table,
|
|
578
598
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
579
599
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
580
|
-
isTooltip:
|
|
581
|
-
isFullscreen:
|
|
600
|
+
isTooltip: b.value.showTooltip,
|
|
601
|
+
isFullscreen: P.value,
|
|
582
602
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
583
|
-
chartElement:
|
|
603
|
+
chartElement: A.value,
|
|
584
604
|
position: e.value.userOptions.position,
|
|
585
605
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
586
606
|
isAnnotation: j.value,
|
|
@@ -588,98 +608,98 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
588
608
|
printScale: e.value.userOptions.print.scale,
|
|
589
609
|
tableDialog: e.value.table.useDialog,
|
|
590
610
|
onToggleFullscreen: Re,
|
|
591
|
-
onGeneratePdf:
|
|
611
|
+
onGeneratePdf: c(Ne),
|
|
592
612
|
onGenerateCsv: be,
|
|
593
|
-
onGenerateImage:
|
|
613
|
+
onGenerateImage: c(Me),
|
|
594
614
|
onGenerateSvg: Ue,
|
|
595
615
|
onToggleTable: Be,
|
|
596
616
|
onToggleLabels: We,
|
|
597
617
|
onToggleTooltip: Ee,
|
|
598
618
|
onToggleAnnotator: ye,
|
|
599
619
|
style: J({
|
|
600
|
-
visibility:
|
|
620
|
+
visibility: c(Oe) ? c(ue) ? "visible" : "hidden" : "visible"
|
|
601
621
|
})
|
|
602
622
|
}, je({ _: 2 }, [
|
|
603
623
|
t.$slots.menuIcon ? {
|
|
604
624
|
name: "menuIcon",
|
|
605
|
-
fn:
|
|
606
|
-
|
|
625
|
+
fn: v(({ isOpen: l, color: o }) => [
|
|
626
|
+
h(t.$slots, "menuIcon", m(g({ isOpen: l, color: o })), void 0, !0)
|
|
607
627
|
]),
|
|
608
628
|
key: "0"
|
|
609
629
|
} : void 0,
|
|
610
630
|
t.$slots.optionTooltip ? {
|
|
611
631
|
name: "optionTooltip",
|
|
612
|
-
fn:
|
|
613
|
-
|
|
632
|
+
fn: v(() => [
|
|
633
|
+
h(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
614
634
|
]),
|
|
615
635
|
key: "1"
|
|
616
636
|
} : void 0,
|
|
617
637
|
t.$slots.optionPdf ? {
|
|
618
638
|
name: "optionPdf",
|
|
619
|
-
fn:
|
|
620
|
-
|
|
639
|
+
fn: v(() => [
|
|
640
|
+
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
621
641
|
]),
|
|
622
642
|
key: "2"
|
|
623
643
|
} : void 0,
|
|
624
644
|
t.$slots.optionCsv ? {
|
|
625
645
|
name: "optionCsv",
|
|
626
|
-
fn:
|
|
627
|
-
|
|
646
|
+
fn: v(() => [
|
|
647
|
+
h(t.$slots, "optionCsv", {}, void 0, !0)
|
|
628
648
|
]),
|
|
629
649
|
key: "3"
|
|
630
650
|
} : void 0,
|
|
631
651
|
t.$slots.optionImg ? {
|
|
632
652
|
name: "optionImg",
|
|
633
|
-
fn:
|
|
634
|
-
|
|
653
|
+
fn: v(() => [
|
|
654
|
+
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
635
655
|
]),
|
|
636
656
|
key: "4"
|
|
637
657
|
} : void 0,
|
|
638
658
|
t.$slots.optionSvg ? {
|
|
639
659
|
name: "optionSvg",
|
|
640
|
-
fn:
|
|
641
|
-
|
|
660
|
+
fn: v(() => [
|
|
661
|
+
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
642
662
|
]),
|
|
643
663
|
key: "5"
|
|
644
664
|
} : void 0,
|
|
645
665
|
t.$slots.optionTable ? {
|
|
646
666
|
name: "optionTable",
|
|
647
|
-
fn:
|
|
648
|
-
|
|
667
|
+
fn: v(() => [
|
|
668
|
+
h(t.$slots, "optionTable", {}, void 0, !0)
|
|
649
669
|
]),
|
|
650
670
|
key: "6"
|
|
651
671
|
} : void 0,
|
|
652
672
|
t.$slots.optionLabels ? {
|
|
653
673
|
name: "optionLabels",
|
|
654
|
-
fn:
|
|
655
|
-
|
|
674
|
+
fn: v(() => [
|
|
675
|
+
h(t.$slots, "optionLabels", {}, void 0, !0)
|
|
656
676
|
]),
|
|
657
677
|
key: "7"
|
|
658
678
|
} : void 0,
|
|
659
679
|
t.$slots.optionFullscreen ? {
|
|
660
680
|
name: "optionFullscreen",
|
|
661
|
-
fn:
|
|
662
|
-
|
|
681
|
+
fn: v(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
682
|
+
h(t.$slots, "optionFullscreen", m(g({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
663
683
|
]),
|
|
664
684
|
key: "8"
|
|
665
685
|
} : void 0,
|
|
666
686
|
t.$slots.optionAnnotator ? {
|
|
667
687
|
name: "optionAnnotator",
|
|
668
|
-
fn:
|
|
669
|
-
|
|
688
|
+
fn: v(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
689
|
+
h(t.$slots, "optionAnnotator", m(g({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
670
690
|
]),
|
|
671
691
|
key: "9"
|
|
672
692
|
} : void 0
|
|
673
|
-
]), 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"])) :
|
|
693
|
+
]), 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"])) : f("", !0),
|
|
674
694
|
(r(), u("svg", {
|
|
675
695
|
ref_key: "svgRef",
|
|
676
696
|
ref: ie,
|
|
677
|
-
xmlns:
|
|
678
|
-
class: E({ "vue-data-ui-fullscreen--on":
|
|
679
|
-
viewBox: `0 0 ${
|
|
697
|
+
xmlns: c(Ut),
|
|
698
|
+
class: E({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
699
|
+
viewBox: `0 0 ${M.value} ${$.value}`,
|
|
680
700
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
681
701
|
}, [
|
|
682
|
-
me(
|
|
702
|
+
me(c(ht)),
|
|
683
703
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
684
704
|
key: 0,
|
|
685
705
|
x: s.value.left,
|
|
@@ -690,11 +710,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
690
710
|
pointerEvents: "none"
|
|
691
711
|
}
|
|
692
712
|
}, [
|
|
693
|
-
|
|
694
|
-
], 8, fl)) :
|
|
713
|
+
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
714
|
+
], 8, fl)) : f("", !0),
|
|
695
715
|
e.value.style.chart.grid.show ? (r(), u("g", bl, [
|
|
696
716
|
e.value.style.chart.grid.horizontalGrid.show ? (r(), u("g", yl, [
|
|
697
|
-
(r(!0), u(
|
|
717
|
+
(r(!0), u(k, null, T(Ie.value, (l) => (r(), u("line", {
|
|
698
718
|
x1: l.x1,
|
|
699
719
|
x2: l.x2,
|
|
700
720
|
y1: l.y,
|
|
@@ -704,9 +724,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
704
724
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
705
725
|
"stroke-linecap": "round"
|
|
706
726
|
}, null, 8, ml))), 256))
|
|
707
|
-
])) :
|
|
727
|
+
])) : f("", !0),
|
|
708
728
|
e.value.style.chart.grid.verticalGrid.show ? (r(), u("g", gl, [
|
|
709
|
-
(r(!0), u(
|
|
729
|
+
(r(!0), u(k, null, T(C.value, (l, o) => (r(), u("line", {
|
|
710
730
|
x1: s.value.left + (o + 1) * s.value.stripWidth,
|
|
711
731
|
x2: s.value.left + (o + 1) * s.value.stripWidth,
|
|
712
732
|
y1: s.value.top,
|
|
@@ -716,8 +736,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
716
736
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
717
737
|
"stroke-linecap": "round"
|
|
718
738
|
}, null, 8, xl))), 256))
|
|
719
|
-
])) :
|
|
720
|
-
|
|
739
|
+
])) : f("", !0),
|
|
740
|
+
x("line", {
|
|
721
741
|
x1: s.value.left,
|
|
722
742
|
x2: s.value.left,
|
|
723
743
|
y1: s.value.top,
|
|
@@ -726,7 +746,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
726
746
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
727
747
|
"stroke-linecap": "round"
|
|
728
748
|
}, null, 8, kl),
|
|
729
|
-
|
|
749
|
+
x("line", {
|
|
730
750
|
x1: s.value.left,
|
|
731
751
|
x2: s.value.right,
|
|
732
752
|
y1: s.value.bottom,
|
|
@@ -735,22 +755,22 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
735
755
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
736
756
|
"stroke-linecap": "round"
|
|
737
757
|
}, null, 8, wl)
|
|
738
|
-
])) :
|
|
758
|
+
])) : f("", !0),
|
|
739
759
|
e.value.style.chart.labels.yAxisLabels.show ? (r(), u("g", {
|
|
740
760
|
key: 2,
|
|
741
761
|
ref_key: "scaleLabels",
|
|
742
762
|
ref: oe
|
|
743
763
|
}, [
|
|
744
|
-
(r(!0), u(
|
|
764
|
+
(r(!0), u(k, null, T(Ie.value, (l, o) => (r(), u("text", {
|
|
745
765
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
746
766
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
747
767
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
748
768
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
749
769
|
"text-anchor": "end"
|
|
750
|
-
},
|
|
770
|
+
}, S(c(ke)(
|
|
751
771
|
e.value.style.chart.labels.formatter,
|
|
752
772
|
l.value,
|
|
753
|
-
|
|
773
|
+
c(Q)({
|
|
754
774
|
p: e.value.style.chart.labels.prefix,
|
|
755
775
|
v: l.value,
|
|
756
776
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -758,13 +778,13 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
758
778
|
}),
|
|
759
779
|
{ datapoint: l, seriesIndex: o }
|
|
760
780
|
)), 9, Cl))), 256))
|
|
761
|
-
], 512)) :
|
|
781
|
+
], 512)) : f("", !0),
|
|
762
782
|
e.value.style.chart.labels.xAxisLabels.show ? (r(), u("g", {
|
|
763
783
|
key: 3,
|
|
764
784
|
ref_key: "timeLabelsEls",
|
|
765
785
|
ref: H
|
|
766
786
|
}, [
|
|
767
|
-
(r(!0), u(
|
|
787
|
+
(r(!0), u(k, null, T(Ge.value, (l, o) => (r(), u("g", null, [
|
|
768
788
|
String(l).includes(`
|
|
769
789
|
`) ? (r(), u("text", {
|
|
770
790
|
key: 1,
|
|
@@ -773,8 +793,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
773
793
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
774
794
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
775
795
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
776
|
-
innerHTML:
|
|
777
|
-
content:
|
|
796
|
+
innerHTML: c(Vt)({
|
|
797
|
+
content: c(Xt)(String(l)),
|
|
778
798
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
779
799
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
780
800
|
x: 0,
|
|
@@ -787,9 +807,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
787
807
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
788
808
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
789
809
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
790
|
-
},
|
|
810
|
+
}, S(String(l)), 9, Al))
|
|
791
811
|
]))), 256))
|
|
792
|
-
], 512)) :
|
|
812
|
+
], 512)) : f("", !0),
|
|
793
813
|
e.value.style.chart.labels.axis.yLabel ? (r(), u("text", {
|
|
794
814
|
key: 4,
|
|
795
815
|
ref_key: "yAxisLabel",
|
|
@@ -798,7 +818,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
798
818
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
799
819
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
800
820
|
"text-anchor": "middle"
|
|
801
|
-
},
|
|
821
|
+
}, S(e.value.style.chart.labels.axis.yLabel), 9, $l)) : f("", !0),
|
|
802
822
|
e.value.style.chart.labels.axis.xLabel ? (r(), u("text", {
|
|
803
823
|
key: 5,
|
|
804
824
|
ref_key: "xAxisLabel",
|
|
@@ -806,106 +826,106 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
806
826
|
fill: e.value.style.chart.labels.axis.color,
|
|
807
827
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
808
828
|
x: s.value.left + s.value.width / 2,
|
|
809
|
-
y:
|
|
829
|
+
y: $.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
810
830
|
"text-anchor": "middle"
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
|
|
831
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, _l)) : f("", !0),
|
|
832
|
+
y.value ? (r(), u(k, { key: 6 }, [
|
|
833
|
+
x("line", {
|
|
814
834
|
x1: s.value.left,
|
|
815
835
|
x2: s.value.right,
|
|
816
|
-
y1:
|
|
817
|
-
y2:
|
|
818
|
-
stroke:
|
|
836
|
+
y1: y.value.y,
|
|
837
|
+
y2: y.value.y,
|
|
838
|
+
stroke: y.value.color,
|
|
819
839
|
"stroke-width": 1,
|
|
820
840
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
821
|
-
}, null, 10,
|
|
822
|
-
|
|
841
|
+
}, null, 10, Tl),
|
|
842
|
+
x("circle", {
|
|
823
843
|
cx: s.value.left,
|
|
824
|
-
cy:
|
|
844
|
+
cy: y.value.y,
|
|
825
845
|
r: 3,
|
|
826
|
-
fill:
|
|
846
|
+
fill: y.value.color,
|
|
827
847
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
828
848
|
}, null, 10, Sl),
|
|
829
|
-
|
|
849
|
+
x("circle", {
|
|
830
850
|
cx: s.value.right,
|
|
831
|
-
cy:
|
|
851
|
+
cy: y.value.y,
|
|
832
852
|
r: 3,
|
|
833
|
-
fill:
|
|
853
|
+
fill: y.value.color,
|
|
834
854
|
class: E({ "select-circle": e.value.useCssAnimation })
|
|
835
855
|
}, null, 10, Ol)
|
|
836
|
-
], 64)) :
|
|
837
|
-
|
|
838
|
-
(r(!0), u(
|
|
856
|
+
], 64)) : f("", !0),
|
|
857
|
+
x("defs", null, [
|
|
858
|
+
(r(!0), u(k, null, T(C.value, (l) => (r(), u("radialGradient", {
|
|
839
859
|
id: l.id,
|
|
840
860
|
fy: "30%"
|
|
841
861
|
}, [
|
|
842
|
-
|
|
862
|
+
x("stop", {
|
|
843
863
|
offset: "10%",
|
|
844
|
-
"stop-color":
|
|
864
|
+
"stop-color": c(Yt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
845
865
|
}, null, 8, zl),
|
|
846
|
-
|
|
866
|
+
x("stop", {
|
|
847
867
|
offset: "90%",
|
|
848
|
-
"stop-color":
|
|
868
|
+
"stop-color": c(jt)(l.color, 0.1)
|
|
849
869
|
}, null, 8, Dl),
|
|
850
|
-
|
|
870
|
+
x("stop", {
|
|
851
871
|
offset: "100%",
|
|
852
872
|
"stop-color": l.color
|
|
853
873
|
}, null, 8, Nl)
|
|
854
874
|
], 8, Pl))), 256))
|
|
855
875
|
]),
|
|
856
|
-
(r(!0), u(
|
|
857
|
-
(r(!0), u(
|
|
858
|
-
plot: { x: n.x, y:
|
|
859
|
-
radius:
|
|
876
|
+
(r(!0), u(k, null, T(wt.value, (l, o) => (r(), u(k, null, [
|
|
877
|
+
(r(!0), u(k, null, T(l.plots, (n, p) => (r(), z(il, qe({ ref_for: !0 }, t.$attrs, {
|
|
878
|
+
plot: { x: n.x, y: $e.value ? n.y : s.value.top },
|
|
879
|
+
radius: y.value && y.value.id === n.id ? he.value * 1.5 : he.value,
|
|
860
880
|
shape: e.value.style.chart.plots.shape,
|
|
861
881
|
stroke: e.value.style.chart.plots.stroke,
|
|
862
882
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
863
883
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
864
|
-
style: `transition: all 0.2s ease-in-out; opacity:${
|
|
865
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !
|
|
866
|
-
onMouseenter: (
|
|
867
|
-
onMouseleave: (
|
|
868
|
-
onClick: (
|
|
884
|
+
style: `transition: all 0.2s ease-in-out; opacity:${y.value ? y.value.id === n.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${R.value ? `transition-delay:${p * 50}ms` : ""}`,
|
|
885
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !c(se), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !R.value },
|
|
886
|
+
onMouseenter: (F) => Lt({ datapoint: n, seriesIndex: p }),
|
|
887
|
+
onMouseleave: (F) => Ct({ datapoint: n, seriesIndex: p }),
|
|
888
|
+
onClick: (F) => At({ datapoint: n, seriesIndex: p })
|
|
869
889
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
870
|
-
|
|
871
|
-
(r(!0), u(
|
|
872
|
-
|
|
890
|
+
b.value.dataLabels.show ? (r(), u("g", Ml, [
|
|
891
|
+
(r(!0), u(k, null, T(l.plots, (n, p) => (r(), u(k, null, [
|
|
892
|
+
p === l.plots.length - 1 || y.value && y.value.id === n.id && !b.value.showTooltip ? (r(), u("text", {
|
|
873
893
|
key: 0,
|
|
874
894
|
x: n.x,
|
|
875
|
-
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - he.value * (
|
|
895
|
+
y: n.y + e.value.style.chart.labels.bestPlotLabel.offsetY - he.value * (y.value && y.value.id === n.id && !b.value.showTooltip ? 2 : 1.5),
|
|
876
896
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
877
897
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
878
898
|
"text-anchor": "middle",
|
|
879
899
|
style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
880
|
-
},
|
|
900
|
+
}, S(n.name) + " " + S(e.value.style.chart.labels.bestPlotLabel.showValue ? c(ke)(
|
|
881
901
|
e.value.style.chart.labels.formatter,
|
|
882
902
|
n.value,
|
|
883
|
-
|
|
903
|
+
c(Q)({
|
|
884
904
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
885
905
|
v: n.value,
|
|
886
906
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
887
907
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
888
908
|
}),
|
|
889
|
-
{ datapoint: n, seriesIndex:
|
|
890
|
-
) : ""), 13, Fl)) :
|
|
909
|
+
{ datapoint: n, seriesIndex: p }
|
|
910
|
+
) : ""), 13, Fl)) : f("", !0)
|
|
891
911
|
], 64))), 256))
|
|
892
|
-
])) :
|
|
912
|
+
])) : f("", !0)
|
|
893
913
|
], 64))), 256)),
|
|
894
|
-
|
|
914
|
+
h(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
895
915
|
], 14, pl)),
|
|
896
916
|
t.$slots.watermark ? (r(), u("div", Il, [
|
|
897
|
-
|
|
898
|
-
])) :
|
|
917
|
+
h(t.$slots, "watermark", m(g({ isPrinting: c(ze) || c(De) })), void 0, !0)
|
|
918
|
+
])) : f("", !0),
|
|
899
919
|
t.$slots.source ? (r(), u("div", {
|
|
900
920
|
key: 5,
|
|
901
921
|
ref_key: "source",
|
|
902
922
|
ref: Ae,
|
|
903
923
|
dir: "auto"
|
|
904
924
|
}, [
|
|
905
|
-
|
|
906
|
-
], 512)) :
|
|
907
|
-
me(
|
|
908
|
-
show:
|
|
925
|
+
h(t.$slots, "source", {}, void 0, !0)
|
|
926
|
+
], 512)) : f("", !0),
|
|
927
|
+
me(c(rt), {
|
|
928
|
+
show: b.value.showTooltip && Z.value,
|
|
909
929
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
910
930
|
color: e.value.style.chart.tooltip.color,
|
|
911
931
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -915,31 +935,31 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
915
935
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
916
936
|
position: e.value.style.chart.tooltip.position,
|
|
917
937
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
918
|
-
parent:
|
|
938
|
+
parent: A.value,
|
|
919
939
|
content: ee.value,
|
|
920
|
-
isFullscreen:
|
|
921
|
-
isCustom:
|
|
940
|
+
isFullscreen: P.value,
|
|
941
|
+
isCustom: c(et)(e.value.style.chart.tooltip.customFormat),
|
|
922
942
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
923
943
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
924
944
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
925
945
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
926
946
|
}, {
|
|
927
|
-
"tooltip-before":
|
|
928
|
-
|
|
947
|
+
"tooltip-before": v(() => [
|
|
948
|
+
h(t.$slots, "tooltip-before", m(g({ ...fe.value })), void 0, !0)
|
|
929
949
|
]),
|
|
930
|
-
"tooltip-after":
|
|
931
|
-
|
|
950
|
+
"tooltip-after": v(() => [
|
|
951
|
+
h(t.$slots, "tooltip-after", m(g({ ...fe.value })), void 0, !0)
|
|
932
952
|
]),
|
|
933
953
|
_: 3
|
|
934
954
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
935
|
-
G.value && e.value.userOptions.buttons.table ? (r(),
|
|
955
|
+
G.value && e.value.userOptions.buttons.table ? (r(), z(It(W.value.component), qe({ key: 6 }, W.value.props, {
|
|
936
956
|
ref_key: "tableUnit",
|
|
937
957
|
ref: I,
|
|
938
958
|
onClose: He
|
|
939
959
|
}), je({
|
|
940
|
-
content:
|
|
941
|
-
(r(),
|
|
942
|
-
key: `table_${
|
|
960
|
+
content: v(() => [
|
|
961
|
+
(r(), z(c(it), {
|
|
962
|
+
key: `table_${Te.value}`,
|
|
943
963
|
colNames: Y.value.colNames,
|
|
944
964
|
head: Y.value.head,
|
|
945
965
|
body: Y.value.body,
|
|
@@ -948,14 +968,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
948
968
|
withCloseButton: !e.value.table.useDialog,
|
|
949
969
|
onClose: He
|
|
950
970
|
}, {
|
|
951
|
-
th:
|
|
952
|
-
|
|
971
|
+
th: v(({ th: l }) => [
|
|
972
|
+
x("div", {
|
|
953
973
|
innerHTML: l,
|
|
954
974
|
style: { display: "flex", "align-items": "center" }
|
|
955
975
|
}, null, 8, Rl)
|
|
956
976
|
]),
|
|
957
|
-
td:
|
|
958
|
-
Je(
|
|
977
|
+
td: v(({ td: l }) => [
|
|
978
|
+
Je(S(l.name || l), 1)
|
|
959
979
|
]),
|
|
960
980
|
_: 1
|
|
961
981
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -964,20 +984,20 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
964
984
|
}, [
|
|
965
985
|
e.value.table.useDialog ? {
|
|
966
986
|
name: "title",
|
|
967
|
-
fn:
|
|
968
|
-
Je(
|
|
987
|
+
fn: v(() => [
|
|
988
|
+
Je(S(W.value.title), 1)
|
|
969
989
|
]),
|
|
970
990
|
key: "0"
|
|
971
991
|
} : void 0,
|
|
972
992
|
e.value.table.useDialog ? {
|
|
973
993
|
name: "actions",
|
|
974
|
-
fn:
|
|
975
|
-
|
|
994
|
+
fn: v(() => [
|
|
995
|
+
x("button", {
|
|
976
996
|
tabindex: "0",
|
|
977
997
|
class: "vue-ui-user-options-button",
|
|
978
998
|
onClick: a[0] || (a[0] = (l) => be(e.value.userOptions.callbacks.csv))
|
|
979
999
|
}, [
|
|
980
|
-
me(
|
|
1000
|
+
me(c(nt), {
|
|
981
1001
|
name: "excel",
|
|
982
1002
|
stroke: W.value.props.color
|
|
983
1003
|
}, null, 8, ["stroke"])
|
|
@@ -985,11 +1005,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
985
1005
|
]),
|
|
986
1006
|
key: "1"
|
|
987
1007
|
} : void 0
|
|
988
|
-
]), 1040)) :
|
|
989
|
-
|
|
1008
|
+
]), 1040)) : f("", !0),
|
|
1009
|
+
c(se) ? (r(), z(ll, { key: 7 })) : f("", !0)
|
|
990
1010
|
], 46, dl));
|
|
991
1011
|
}
|
|
992
|
-
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-
|
|
1012
|
+
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-37f2c8c9"]]);
|
|
993
1013
|
export {
|
|
994
1014
|
ta as default
|
|
995
1015
|
};
|