vue-data-ui 3.0.23 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B1Op9F3x.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-2-dC7DVb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-B1nqNbzw.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-heatmap-BHq6hBaL.js +0 -1078
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as L, computed as p, ref as v, toRefs as Lt, watch as q, shallowRef as He, onMounted as _t, onBeforeUnmount as Ue, watchEffect as $t, createElementBlock as n, openBlock as r, unref as i, normalizeStyle as J, normalizeClass as E, createBlock as z, createCommentVNode as h, createVNode as fe, createSlots as Ve, withCtx as b, renderSlot as y, normalizeProps as I, guardReactiveProps as M, createElementVNode as m, Fragment as g, renderList as _, toDisplayString as $, mergeProps as Xe, resolveDynamicComponent as Tt, createTextVNode as je, nextTick as St } from "vue";
|
|
2
|
+
import { u as Ot, c as be, t as zt, a as Pt, p as P, b as Dt, o as Ye, f as ye, g as qe, d as Nt, e as Je, h as It, D as Mt, i as K, X as Ft, k as me, I as Rt, ab as Wt, l as Bt, j as Et, y as Ke, E as Gt, v as Ht, w as Ut, z as Vt } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as Qe, u as Xt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as jt, B as Yt } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as qt } from "./usePrinter-Bnl1YeUU.js";
|
|
6
|
+
import { u as Ze } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as Jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import { u as Qt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
10
|
+
import Zt from "./img-JOqdlnUs.js";
|
|
11
|
+
import { _ as el } from "./Shape-Dj2Hl33H.js";
|
|
12
|
+
import tl from "./Title-Dq2_Z9kR.js";
|
|
13
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const al = ["id"], ol = ["xmlns", "viewBox"], sl = ["x", "y", "width", "height"], rl = { key: 1 }, ul = { key: 0 }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], dl = ["x", "y", "fill", "font-size"], pl = ["transform", "font-size", "fill", "text-anchor"], fl = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], bl = ["fill", "font-size", "transform"], yl = ["fill", "font-size", "x", "y"], ml = ["x1", "x2", "y1", "y2", "stroke"], gl = ["cx", "cy", "fill"], xl = ["cx", "cy", "fill"], kl = ["id"], wl = ["stop-color"], Cl = ["stop-color"], Al = ["stop-color"], Ll = { key: 0 }, _l = ["x", "y", "font-size", "fill"], $l = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Tl = ["innerHTML"], Sl = {
|
|
18
18
|
__name: "vue-ui-strip-plot",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,18 +31,18 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(et, { expose: tt, emit: lt }) {
|
|
35
|
+
const at = L(() => import("./Tooltip-Y219DXZO.js")), ot = L(() => import("./BaseIcon-DHtro8us.js")), st = L(() => import("./vue-ui-accordion-Bf_LHFFX.js")), rt = L(() => import("./DataTable-DJjA2_wf.js")), ut = L(() => import("./UserOptions-BuGfCdAY.js")), nt = L(() => import("./PenAndPaper-B7QEDgx4.js")), it = L(() => import("./PackageVersion-DU12WH3O.js")), vt = L(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_strip_plot: ct } = Ot(), x = et, ht = lt, G = p({
|
|
36
36
|
get() {
|
|
37
|
-
return !!
|
|
37
|
+
return !!x.dataset && x.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(t) {
|
|
40
40
|
return t;
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
43
|
-
...
|
|
42
|
+
}), Q = v(be()), ge = v(0), Z = v(!1), ee = v(""), w = v(null), xe = v(null), ke = v(null), we = v(null), Ce = v(!1), Ae = v(0), Le = v(0), F = v(null), te = v(null), le = v(null), H = v(null), ae = v(null), e = v(ue()), { loading: oe, FINAL_DATASET: _e, manualLoading: se } = jt({
|
|
43
|
+
...Lt(x),
|
|
44
44
|
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig:
|
|
45
|
+
prepareConfig: ue,
|
|
46
46
|
skeletonDataset: [
|
|
47
47
|
{
|
|
48
48
|
name: "_",
|
|
@@ -90,7 +90,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
|
-
skeletonConfig:
|
|
93
|
+
skeletonConfig: zt({
|
|
94
94
|
defaultConfig: e.value,
|
|
95
95
|
userConfig: {
|
|
96
96
|
userOptions: { show: !1 },
|
|
@@ -129,253 +129,253 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
})
|
|
132
|
-
}), { userOptionsVisible:
|
|
133
|
-
function
|
|
134
|
-
const t =
|
|
135
|
-
userConfig:
|
|
136
|
-
defaultConfig:
|
|
132
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Jt({ config: e.value }), { svgRef: Se } = Kt({ config: e.value.style.chart.title });
|
|
133
|
+
function ue() {
|
|
134
|
+
const t = Ze({
|
|
135
|
+
userConfig: x.config,
|
|
136
|
+
defaultConfig: ct
|
|
137
137
|
});
|
|
138
138
|
return t.theme ? {
|
|
139
|
-
...
|
|
140
|
-
userConfig:
|
|
139
|
+
...Ze({
|
|
140
|
+
userConfig: Dt.vue_ui_strip_plot[t.theme] || x.config,
|
|
141
141
|
defaultConfig: t
|
|
142
142
|
}),
|
|
143
|
-
customPalette:
|
|
143
|
+
customPalette: Pt[t.theme] || P
|
|
144
144
|
} : t;
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, { deep: !0 }),
|
|
149
|
-
Array.isArray(t) && t.length > 0 && (
|
|
146
|
+
q(() => x.config, async (t) => {
|
|
147
|
+
oe.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover, Oe(), Ae.value += 1, Le.value += 1, c.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, c.value.showTable = e.value.table.show, c.value.showTooltip = e.value.style.chart.tooltip.show, T.value = e.value.style.chart.width, C.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
|
|
148
|
+
}, { deep: !0 }), q(() => x.dataset, (t) => {
|
|
149
|
+
Array.isArray(t) && t.length > 0 && (se.value = !1);
|
|
150
150
|
}, { deep: !0 });
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
const A = He(null), D = He(null);
|
|
152
|
+
_t(() => {
|
|
153
|
+
Oe();
|
|
154
154
|
});
|
|
155
|
-
const
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
155
|
+
const ne = p(() => !!e.value.debug);
|
|
156
|
+
function Oe() {
|
|
157
|
+
if (Ye(x.dataset) ? (ye({
|
|
158
158
|
componentName: "VueUiStripPlot",
|
|
159
159
|
type: "dataset",
|
|
160
|
-
debug:
|
|
161
|
-
}),
|
|
162
|
-
|
|
160
|
+
debug: ne.value
|
|
161
|
+
}), se.value = !0) : x.dataset.forEach((t, a) => {
|
|
162
|
+
qe({
|
|
163
163
|
datasetObject: t,
|
|
164
164
|
requiredAttributes: ["name", "plots"]
|
|
165
165
|
}).forEach((l) => {
|
|
166
|
-
|
|
166
|
+
G.value = !1, ye({
|
|
167
167
|
componentName: "VueUiStripPlot",
|
|
168
168
|
type: "datasetSerieAttribute",
|
|
169
169
|
property: l,
|
|
170
170
|
index: a,
|
|
171
|
-
debug:
|
|
171
|
+
debug: ne.value
|
|
172
172
|
});
|
|
173
173
|
}), t.plots && t.plots.forEach((l, s) => {
|
|
174
|
-
|
|
174
|
+
qe({
|
|
175
175
|
datasetObject: l,
|
|
176
176
|
requiredAttributes: ["name", "value"]
|
|
177
177
|
}).forEach((u) => {
|
|
178
|
-
|
|
178
|
+
G.value = !1, ye({
|
|
179
179
|
componentName: "VueUiStripPlot",
|
|
180
180
|
type: "datasetSerieAttribute",
|
|
181
181
|
property: u,
|
|
182
182
|
index: `${a},${s}`,
|
|
183
|
-
debug:
|
|
183
|
+
debug: ne.value
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
}),
|
|
188
|
-
const t =
|
|
189
|
-
const { width: a, height: l } =
|
|
190
|
-
chart:
|
|
191
|
-
title: e.value.style.chart.title.text ?
|
|
192
|
-
source:
|
|
193
|
-
noTitle:
|
|
187
|
+
}), Ye(x.dataset) || (se.value = e.value.loading), e.value.responsive) {
|
|
188
|
+
const t = Qe(() => {
|
|
189
|
+
const { width: a, height: l } = Xt({
|
|
190
|
+
chart: w.value,
|
|
191
|
+
title: e.value.style.chart.title.text ? xe.value : null,
|
|
192
|
+
source: ke.value,
|
|
193
|
+
noTitle: we.value
|
|
194
194
|
});
|
|
195
195
|
requestAnimationFrame(() => {
|
|
196
|
-
|
|
196
|
+
pt.value = l, T.value = Math.max(0.1, a), C.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? W.value = Gt({
|
|
197
197
|
relator: Math.min(l, a),
|
|
198
198
|
adjuster: 600,
|
|
199
199
|
source: e.value.style.chart.plots.radius,
|
|
200
200
|
threshold: 6,
|
|
201
201
|
fallback: 6
|
|
202
|
-
}) :
|
|
202
|
+
}) : W.value = e.value.style.chart.plots.radius;
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
A.value && (D.value && A.value.unobserve(D.value), A.value.disconnect()), A.value = new ResizeObserver(t), D.value = w.value.parentNode, A.value.observe(D.value);
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
},
|
|
207
|
+
Ce.value = !0, setTimeout(() => {
|
|
208
|
+
R.value = !1;
|
|
209
|
+
}, yt.value * 50);
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
Ue(() => {
|
|
212
|
+
A.value && (D.value && A.value.unobserve(D.value), A.value.disconnect());
|
|
213
213
|
});
|
|
214
|
-
const { isPrinting:
|
|
215
|
-
elementId: `strip-plot_${
|
|
214
|
+
const { isPrinting: ze, isImaging: Pe, generatePdf: De, generateImage: Ne } = qt({
|
|
215
|
+
elementId: `strip-plot_${Q.value}`,
|
|
216
216
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
217
217
|
options: e.value.userOptions.print
|
|
218
|
-
}),
|
|
218
|
+
}), dt = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = p(() => Nt(e.value.customPalette)), R = v(e.value.useCssAnimation), N = v({
|
|
219
219
|
top: e.value.style.chart.padding.top,
|
|
220
220
|
bottom: e.value.style.chart.padding.bottom,
|
|
221
221
|
left: e.value.style.chart.padding.left,
|
|
222
222
|
right: e.value.style.chart.padding.right
|
|
223
|
-
}),
|
|
223
|
+
}), T = v(e.value.style.chart.width), C = v(e.value.style.chart.height), pt = v(e.value.style.chart.height), W = v(e.value.style.chart.plots.radius), c = v({
|
|
224
224
|
showTable: e.value.table.show,
|
|
225
225
|
dataLabels: {
|
|
226
226
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
227
227
|
},
|
|
228
228
|
showTooltip: e.value.style.chart.tooltip.show
|
|
229
229
|
});
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
q(e, () => {
|
|
231
|
+
c.value = {
|
|
232
232
|
showTable: e.value.table.show,
|
|
233
233
|
dataLabels: {
|
|
234
234
|
show: e.value.style.chart.labels.bestPlotLabel.show
|
|
235
235
|
},
|
|
236
236
|
showTooltip: e.value.style.chart.tooltip.show
|
|
237
|
-
},
|
|
237
|
+
}, T.value = e.value.style.chart.width, C.value = e.value.style.chart.height, W.value = e.value.style.chart.plots.radius;
|
|
238
238
|
}, { immediate: !0 });
|
|
239
|
-
const
|
|
240
|
-
function
|
|
239
|
+
const ie = p(() => Math.min(W.value, o.value.stripWidth / 2 * 0.9));
|
|
240
|
+
function ft() {
|
|
241
241
|
let t = 0;
|
|
242
|
-
|
|
242
|
+
ae.value && (t = Array.from(ae.value.querySelectorAll("text")).reduce((s, u) => {
|
|
243
243
|
const f = u.getComputedTextLength();
|
|
244
244
|
return f > s ? f : s;
|
|
245
245
|
}, 0));
|
|
246
|
-
const a =
|
|
246
|
+
const a = le.value ? le.value.getBoundingClientRect().width : 0;
|
|
247
247
|
return t + a + (a ? 24 : 0);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
250
|
-
|
|
249
|
+
const ve = v(0), bt = Qe((t) => {
|
|
250
|
+
ve.value = t;
|
|
251
251
|
}, 100);
|
|
252
|
-
|
|
253
|
-
const a =
|
|
252
|
+
$t((t) => {
|
|
253
|
+
const a = H.value;
|
|
254
254
|
if (!a) return;
|
|
255
255
|
const l = new ResizeObserver((s) => {
|
|
256
|
-
|
|
256
|
+
bt(s[0].contentRect.height);
|
|
257
257
|
});
|
|
258
258
|
l.observe(a), t(() => l.disconnect());
|
|
259
|
-
}),
|
|
260
|
-
|
|
259
|
+
}), Ue(() => {
|
|
260
|
+
ve.value = 0;
|
|
261
261
|
});
|
|
262
|
-
const
|
|
262
|
+
const Me = p(() => {
|
|
263
263
|
let t = 0;
|
|
264
|
-
|
|
264
|
+
te.value && (t = te.value.getBBox().height + e.value.style.chart.labels.axis.fontSize / 3 + 12 + e.value.style.chart.labels.axis.xLabelOffsetY);
|
|
265
265
|
let a = 0;
|
|
266
|
-
return
|
|
266
|
+
return H.value && (a = ve.value + 12), t + a;
|
|
267
267
|
}), o = p(() => {
|
|
268
|
-
const t =
|
|
268
|
+
const t = ft(), a = T.value - t - e.value.style.chart.padding.left - e.value.style.chart.padding.right - e.value.style.chart.labels.axis.yLabelOffsetX - 5;
|
|
269
269
|
return {
|
|
270
|
-
left:
|
|
271
|
-
right:
|
|
272
|
-
top:
|
|
273
|
-
bottom:
|
|
270
|
+
left: N.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5,
|
|
271
|
+
right: T.value - N.value.right,
|
|
272
|
+
top: N.value.top,
|
|
273
|
+
bottom: C.value - N.value.bottom - Me.value,
|
|
274
274
|
width: a,
|
|
275
|
-
height:
|
|
276
|
-
stripWidth: a /
|
|
277
|
-
absoluteHeight:
|
|
275
|
+
height: C.value - N.value.top - N.value.bottom - Me.value,
|
|
276
|
+
stripWidth: a / _e.value.length,
|
|
277
|
+
absoluteHeight: C.value
|
|
278
278
|
};
|
|
279
|
-
}),
|
|
280
|
-
const l =
|
|
279
|
+
}), U = p(() => _e.value.map((t, a) => {
|
|
280
|
+
const l = be();
|
|
281
281
|
return {
|
|
282
282
|
...t,
|
|
283
283
|
id: l,
|
|
284
|
-
color: t.color ?
|
|
284
|
+
color: t.color ? Je(t.color) : Ie.value[a] || P[a] || P[a % P.length],
|
|
285
285
|
plots: t.plots.map((s, u) => ({
|
|
286
286
|
...s,
|
|
287
|
-
value:
|
|
287
|
+
value: It(s.value),
|
|
288
288
|
parentId: l,
|
|
289
289
|
parentName: t.name,
|
|
290
290
|
parentIndex: a,
|
|
291
291
|
plotIndex: u,
|
|
292
|
-
color: t.color ?
|
|
293
|
-
id:
|
|
292
|
+
color: t.color ? Je(t.color) : Ie.value[a] || P[a] || P[a % P.length],
|
|
293
|
+
id: be()
|
|
294
294
|
})).sort((s, u) => s.value - u.value)
|
|
295
295
|
};
|
|
296
|
-
})),
|
|
296
|
+
})), k = p(() => (U.value || []).map((t, a) => ({
|
|
297
297
|
...t,
|
|
298
298
|
plots: t.plots.map((l) => ({
|
|
299
299
|
...l,
|
|
300
300
|
x: o.value.left + (a + 1) * o.value.stripWidth - o.value.stripWidth / 2
|
|
301
301
|
}))
|
|
302
|
-
}))),
|
|
303
|
-
const t =
|
|
302
|
+
}))), yt = p(() => Math.max(...k.value.map((t) => t.plots.length))), ce = p(() => {
|
|
303
|
+
const t = k.value.flatMap((a) => a.plots.map((l) => l.value));
|
|
304
304
|
return {
|
|
305
305
|
max: Math.max(...t),
|
|
306
306
|
min: Math.min(...t)
|
|
307
307
|
};
|
|
308
|
-
}),
|
|
308
|
+
}), S = p(() => Mt(ce.value.min < 0 ? ce.value.min : 0, ce.value.max, e.value.style.chart.grid.scaleSteps)), mt = p(() => (k.value || []).map((t, a) => ({
|
|
309
309
|
...t,
|
|
310
310
|
plots: t.plots.map((l) => ({
|
|
311
311
|
...l,
|
|
312
|
-
y: o.value.bottom - (l.value + Math.abs(
|
|
312
|
+
y: o.value.bottom - (l.value + Math.abs(S.value.min)) / (S.value.max + Math.abs(S.value.min)) * o.value.height
|
|
313
313
|
}))
|
|
314
|
-
}))),
|
|
315
|
-
y: o.value.bottom - o.value.height * ((t + Math.abs(
|
|
314
|
+
}))), Fe = p(() => S.value.ticks.map((t) => ({
|
|
315
|
+
y: o.value.bottom - o.value.height * ((t + Math.abs(S.value.min)) / (S.value.max + Math.abs(S.value.min))),
|
|
316
316
|
x1: o.value.left,
|
|
317
317
|
x2: o.value.right,
|
|
318
318
|
value: t
|
|
319
|
-
}))),
|
|
320
|
-
function
|
|
321
|
-
|
|
319
|
+
}))), he = v(null), d = v(null);
|
|
320
|
+
function gt({ datapoint: t, seriesIndex: a }) {
|
|
321
|
+
Z.value = !1, d.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
|
|
323
|
+
function xt({ datapoint: t, seriesIndex: a }) {
|
|
324
|
+
ht("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }),
|
|
326
|
+
function kt({ datapoint: t, seriesIndex: a }) {
|
|
327
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), he.value = { datapoint: t, seriesIndex: a, config: e.value, series: U.value }, Z.value = !0, d.value = t;
|
|
328
328
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
329
|
-
if (
|
|
329
|
+
if (Ke(l) && Vt(() => l({
|
|
330
330
|
seriesIndex: a,
|
|
331
331
|
datapoint: t,
|
|
332
|
-
series:
|
|
332
|
+
series: U.value,
|
|
333
333
|
config: e.value
|
|
334
334
|
})))
|
|
335
|
-
|
|
335
|
+
ee.value = l({
|
|
336
336
|
seriesIndex: a,
|
|
337
337
|
datapoint: t,
|
|
338
|
-
series:
|
|
338
|
+
series: U.value,
|
|
339
339
|
config: e.value
|
|
340
340
|
});
|
|
341
341
|
else {
|
|
342
342
|
let s = "";
|
|
343
|
-
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${
|
|
343
|
+
s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.value.style.chart.plots.gradient.show ? `url(#${t.parentId})` : t.color}"/></svg>${t.name}</div>`, s += `<div>${me(
|
|
344
344
|
e.value.style.chart.labels.formatter,
|
|
345
345
|
t.value,
|
|
346
|
-
|
|
346
|
+
K({
|
|
347
347
|
p: e.value.style.chart.labels.prefix,
|
|
348
348
|
v: t.value,
|
|
349
349
|
s: e.value.style.chart.labels.suffix,
|
|
350
350
|
r: e.value.style.chart.tooltip.roundingValue
|
|
351
351
|
}),
|
|
352
352
|
{ datapoint: t, seriesIndex: a }
|
|
353
|
-
)}</div>`,
|
|
353
|
+
)}</div>`, ee.value = `<div>${s}</div>`;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
const
|
|
357
|
-
const t =
|
|
356
|
+
const V = p(() => {
|
|
357
|
+
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => ({
|
|
358
358
|
name: `${l.name} - ${s.name}`,
|
|
359
359
|
color: s.color
|
|
360
|
-
}))), a =
|
|
360
|
+
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((s, u) => u.value - s.value).map((s) => s.value));
|
|
361
361
|
return { head: t, body: a };
|
|
362
362
|
});
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
const a =
|
|
363
|
+
function de(t = null) {
|
|
364
|
+
St(() => {
|
|
365
|
+
const a = V.value.head.map((u, f) => [[
|
|
366
366
|
u.name
|
|
367
|
-
], [
|
|
368
|
-
t ? t(s) :
|
|
367
|
+
], [V.value.body[f]]]), 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), s = Ht(l);
|
|
368
|
+
t ? t(s) : Ut({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const X = p(() => {
|
|
372
372
|
const t = [
|
|
373
373
|
e.value.table.columnNames.series,
|
|
374
374
|
e.value.table.columnNames.value
|
|
375
|
-
], a =
|
|
376
|
-
const
|
|
375
|
+
], a = V.value.head.map((u, f) => {
|
|
376
|
+
const Y = K({
|
|
377
377
|
p: e.value.style.chart.labels.prefix,
|
|
378
|
-
v:
|
|
378
|
+
v: V.value.body[f],
|
|
379
379
|
s: e.value.style.chart.labels.suffix,
|
|
380
380
|
r: e.value.table.td.roundingValue
|
|
381
381
|
});
|
|
@@ -384,7 +384,7 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
384
384
|
color: u.color,
|
|
385
385
|
name: u.name
|
|
386
386
|
},
|
|
387
|
-
|
|
387
|
+
Y
|
|
388
388
|
];
|
|
389
389
|
}), l = {
|
|
390
390
|
th: {
|
|
@@ -408,29 +408,29 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
408
408
|
body: a,
|
|
409
409
|
config: l
|
|
410
410
|
};
|
|
411
|
-
}),
|
|
412
|
-
function
|
|
413
|
-
|
|
411
|
+
}), O = v(!1);
|
|
412
|
+
function Re(t) {
|
|
413
|
+
O.value = t, ge.value += 1;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
return
|
|
415
|
+
function wt() {
|
|
416
|
+
return k.value;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
|
|
418
|
+
function We() {
|
|
419
|
+
c.value.showTable = !c.value.showTable;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
|
|
421
|
+
function Be() {
|
|
422
|
+
c.value.dataLabels.show = !c.value.dataLabels.show;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
|
|
424
|
+
function Ee() {
|
|
425
|
+
c.value.showTooltip = !c.value.showTooltip;
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
|
|
427
|
+
const j = v(!1);
|
|
428
|
+
function pe() {
|
|
429
|
+
j.value = !j.value;
|
|
430
430
|
}
|
|
431
|
-
async function
|
|
432
|
-
if (!
|
|
433
|
-
const { width: a, height: l } =
|
|
431
|
+
async function Ct({ scale: t = 2 } = {}) {
|
|
432
|
+
if (!w.value) return;
|
|
433
|
+
const { width: a, height: l } = w.value.getBoundingClientRect(), s = a / l, { imageUri: u, base64: f } = await Zt({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
434
434
|
return {
|
|
435
435
|
imageUri: u,
|
|
436
436
|
base64: f,
|
|
@@ -440,62 +440,95 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
440
440
|
aspectRatio: s
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
timeLabelsEls:
|
|
446
|
-
timeLabels:
|
|
447
|
-
slicer:
|
|
443
|
+
const Ge = p(() => k.value.map((t) => t.name)), At = v({ start: 0, end: k.value.length });
|
|
444
|
+
Qt({
|
|
445
|
+
timeLabelsEls: H,
|
|
446
|
+
timeLabels: Ge,
|
|
447
|
+
slicer: At,
|
|
448
448
|
configRef: e,
|
|
449
449
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
450
450
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
451
451
|
isAutoSize: !1,
|
|
452
|
-
width:
|
|
453
|
-
height:
|
|
452
|
+
width: T,
|
|
453
|
+
height: C,
|
|
454
454
|
targetClass: ".vue-ui-strip-plot-category-name",
|
|
455
455
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
456
|
-
})
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
456
|
+
});
|
|
457
|
+
const B = p(() => {
|
|
458
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = c.value.showTable;
|
|
459
|
+
return {
|
|
460
|
+
component: t ? vt : st,
|
|
461
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
462
|
+
props: t ? {
|
|
463
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
464
|
+
color: e.value.table.th.color,
|
|
465
|
+
headerColor: e.value.table.th.color,
|
|
466
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
467
|
+
isFullscreen: O.value,
|
|
468
|
+
fullscreenParent: w.value,
|
|
469
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
470
|
+
} : {
|
|
471
|
+
hideDetails: !0,
|
|
472
|
+
config: {
|
|
473
|
+
open: a,
|
|
474
|
+
maxHeight: 1e4,
|
|
475
|
+
body: {
|
|
476
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
477
|
+
color: e.value.style.chart.color
|
|
478
|
+
},
|
|
479
|
+
head: {
|
|
480
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
481
|
+
color: e.value.style.chart.color
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
});
|
|
487
|
+
return q(() => c.value.showTable, (t) => {
|
|
488
|
+
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
489
|
+
}), tt({
|
|
490
|
+
getData: wt,
|
|
491
|
+
getImage: Ct,
|
|
492
|
+
generatePdf: De,
|
|
493
|
+
generateCsv: de,
|
|
494
|
+
generateImage: Ne,
|
|
495
|
+
toggleTable: We,
|
|
496
|
+
toggleLabels: Be,
|
|
497
|
+
toggleTooltip: Ee,
|
|
498
|
+
toggleAnnotator: pe,
|
|
499
|
+
toggleFullscreen: Re
|
|
467
500
|
}), (t, a) => (r(), n("div", {
|
|
468
501
|
ref_key: "stripPlotChart",
|
|
469
|
-
ref:
|
|
470
|
-
class:
|
|
471
|
-
style:
|
|
472
|
-
id: `strip-plot_${
|
|
473
|
-
onMouseenter: a[
|
|
474
|
-
onMouseleave: a[
|
|
502
|
+
ref: w,
|
|
503
|
+
class: E(`vue-ui-strip-plot ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
504
|
+
style: J(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
505
|
+
id: `strip-plot_${Q.value}`,
|
|
506
|
+
onMouseenter: a[3] || (a[3] = () => i($e)(!0)),
|
|
507
|
+
onMouseleave: a[4] || (a[4] = () => i($e)(!1))
|
|
475
508
|
}, [
|
|
476
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
509
|
+
e.value.userOptions.buttons.annotator ? (r(), z(i(nt), {
|
|
477
510
|
key: 0,
|
|
478
|
-
svgRef: i(
|
|
511
|
+
svgRef: i(Se),
|
|
479
512
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
480
513
|
color: e.value.style.chart.color,
|
|
481
|
-
active:
|
|
482
|
-
onClose:
|
|
483
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
484
|
-
|
|
514
|
+
active: j.value,
|
|
515
|
+
onClose: pe
|
|
516
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
517
|
+
dt.value ? (r(), n("div", {
|
|
485
518
|
key: 1,
|
|
486
519
|
ref_key: "noTitle",
|
|
487
|
-
ref:
|
|
520
|
+
ref: we,
|
|
488
521
|
class: "vue-data-ui-no-title-space",
|
|
489
522
|
style: "height:36px; width: 100%;background:transparent"
|
|
490
|
-
}, null, 512)) :
|
|
523
|
+
}, null, 512)) : h("", !0),
|
|
491
524
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
492
525
|
key: 2,
|
|
493
526
|
ref_key: "chartTitle",
|
|
494
|
-
ref:
|
|
527
|
+
ref: xe,
|
|
495
528
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
496
529
|
}, [
|
|
497
|
-
(r(),
|
|
498
|
-
key: `title_${
|
|
530
|
+
(r(), z(tl, {
|
|
531
|
+
key: `title_${Ae.value}`,
|
|
499
532
|
config: {
|
|
500
533
|
title: {
|
|
501
534
|
cy: "donut-div-title",
|
|
@@ -507,15 +540,15 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
507
540
|
}
|
|
508
541
|
}
|
|
509
542
|
}, null, 8, ["config"]))
|
|
510
|
-
], 512)) :
|
|
511
|
-
e.value.userOptions.show &&
|
|
543
|
+
], 512)) : h("", !0),
|
|
544
|
+
e.value.userOptions.show && G.value && (i(Te) || i(re)) ? (r(), z(i(ut), {
|
|
512
545
|
ref: "details",
|
|
513
|
-
key: `user_option_${
|
|
546
|
+
key: `user_option_${ge.value}`,
|
|
514
547
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
515
548
|
color: e.value.style.chart.color,
|
|
516
|
-
isPrinting: i(
|
|
517
|
-
isImaging: i(
|
|
518
|
-
uid:
|
|
549
|
+
isPrinting: i(ze),
|
|
550
|
+
isImaging: i(Pe),
|
|
551
|
+
uid: Q.value,
|
|
519
552
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
520
553
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
521
554
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -523,31 +556,31 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
523
556
|
hasTable: e.value.userOptions.buttons.table,
|
|
524
557
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
525
558
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
526
|
-
isTooltip:
|
|
527
|
-
isFullscreen:
|
|
559
|
+
isTooltip: c.value.showTooltip,
|
|
560
|
+
isFullscreen: O.value,
|
|
528
561
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
529
|
-
chartElement:
|
|
562
|
+
chartElement: w.value,
|
|
530
563
|
position: e.value.userOptions.position,
|
|
531
564
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
|
-
isAnnotation:
|
|
565
|
+
isAnnotation: j.value,
|
|
533
566
|
callbacks: e.value.userOptions.callbacks,
|
|
534
567
|
printScale: e.value.userOptions.print.scale,
|
|
535
|
-
onToggleFullscreen:
|
|
536
|
-
onGeneratePdf: i(
|
|
537
|
-
onGenerateCsv:
|
|
538
|
-
onGenerateImage: i(
|
|
539
|
-
onToggleTable:
|
|
540
|
-
onToggleLabels:
|
|
541
|
-
onToggleTooltip:
|
|
542
|
-
onToggleAnnotator:
|
|
543
|
-
style:
|
|
544
|
-
visibility: i(
|
|
568
|
+
onToggleFullscreen: Re,
|
|
569
|
+
onGeneratePdf: i(De),
|
|
570
|
+
onGenerateCsv: de,
|
|
571
|
+
onGenerateImage: i(Ne),
|
|
572
|
+
onToggleTable: We,
|
|
573
|
+
onToggleLabels: Be,
|
|
574
|
+
onToggleTooltip: Ee,
|
|
575
|
+
onToggleAnnotator: pe,
|
|
576
|
+
style: J({
|
|
577
|
+
visibility: i(Te) ? i(re) ? "visible" : "hidden" : "visible"
|
|
545
578
|
})
|
|
546
|
-
},
|
|
579
|
+
}, Ve({ _: 2 }, [
|
|
547
580
|
t.$slots.menuIcon ? {
|
|
548
581
|
name: "menuIcon",
|
|
549
582
|
fn: b(({ isOpen: l, color: s }) => [
|
|
550
|
-
y(t.$slots, "menuIcon", M(
|
|
583
|
+
y(t.$slots, "menuIcon", I(M({ isOpen: l, color: s })), void 0, !0)
|
|
551
584
|
]),
|
|
552
585
|
key: "0"
|
|
553
586
|
} : void 0,
|
|
@@ -596,27 +629,27 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
596
629
|
t.$slots.optionFullscreen ? {
|
|
597
630
|
name: "optionFullscreen",
|
|
598
631
|
fn: b(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
599
|
-
y(t.$slots, "optionFullscreen", M(
|
|
632
|
+
y(t.$slots, "optionFullscreen", I(M({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
600
633
|
]),
|
|
601
634
|
key: "7"
|
|
602
635
|
} : void 0,
|
|
603
636
|
t.$slots.optionAnnotator ? {
|
|
604
637
|
name: "optionAnnotator",
|
|
605
638
|
fn: b(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
606
|
-
y(t.$slots, "optionAnnotator", M(
|
|
639
|
+
y(t.$slots, "optionAnnotator", I(M({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
607
640
|
]),
|
|
608
641
|
key: "8"
|
|
609
642
|
} : void 0
|
|
610
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
643
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
611
644
|
(r(), n("svg", {
|
|
612
645
|
ref_key: "svgRef",
|
|
613
|
-
ref:
|
|
614
|
-
xmlns: i(
|
|
615
|
-
class:
|
|
616
|
-
viewBox: `0 0 ${
|
|
617
|
-
style:
|
|
646
|
+
ref: Se,
|
|
647
|
+
xmlns: i(Ft),
|
|
648
|
+
class: E({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
649
|
+
viewBox: `0 0 ${T.value} ${C.value}`,
|
|
650
|
+
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
618
651
|
}, [
|
|
619
|
-
|
|
652
|
+
fe(i(it)),
|
|
620
653
|
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
621
654
|
key: 0,
|
|
622
655
|
x: o.value.left,
|
|
@@ -628,10 +661,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
628
661
|
}
|
|
629
662
|
}, [
|
|
630
663
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
631
|
-
], 8,
|
|
632
|
-
e.value.style.chart.grid.show ? (r(), n("g",
|
|
633
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g",
|
|
634
|
-
(r(!0), n(
|
|
664
|
+
], 8, sl)) : h("", !0),
|
|
665
|
+
e.value.style.chart.grid.show ? (r(), n("g", rl, [
|
|
666
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", ul, [
|
|
667
|
+
(r(!0), n(g, null, _(Fe.value, (l) => (r(), n("line", {
|
|
635
668
|
x1: l.x1,
|
|
636
669
|
x2: l.x2,
|
|
637
670
|
y1: l.y,
|
|
@@ -640,10 +673,10 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
640
673
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
641
674
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray,
|
|
642
675
|
"stroke-linecap": "round"
|
|
643
|
-
}, null, 8,
|
|
644
|
-
])) :
|
|
645
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(), n("g",
|
|
646
|
-
(r(!0), n(
|
|
676
|
+
}, null, 8, nl))), 256))
|
|
677
|
+
])) : h("", !0),
|
|
678
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", il, [
|
|
679
|
+
(r(!0), n(g, null, _(k.value, (l, s) => (r(), n("line", {
|
|
647
680
|
x1: o.value.left + (s + 1) * o.value.stripWidth,
|
|
648
681
|
x2: o.value.left + (s + 1) * o.value.stripWidth,
|
|
649
682
|
y1: o.value.top,
|
|
@@ -652,9 +685,9 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
652
685
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
653
686
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
654
687
|
"stroke-linecap": "round"
|
|
655
|
-
}, null, 8,
|
|
656
|
-
])) :
|
|
657
|
-
|
|
688
|
+
}, null, 8, vl))), 256))
|
|
689
|
+
])) : h("", !0),
|
|
690
|
+
m("line", {
|
|
658
691
|
x1: o.value.left,
|
|
659
692
|
x2: o.value.left,
|
|
660
693
|
y1: o.value.top,
|
|
@@ -662,8 +695,8 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
662
695
|
stroke: e.value.style.chart.grid.stroke,
|
|
663
696
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
664
697
|
"stroke-linecap": "round"
|
|
665
|
-
}, null, 8,
|
|
666
|
-
|
|
698
|
+
}, null, 8, cl),
|
|
699
|
+
m("line", {
|
|
667
700
|
x1: o.value.left,
|
|
668
701
|
x2: o.value.right,
|
|
669
702
|
y1: o.value.bottom,
|
|
@@ -671,37 +704,37 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
671
704
|
stroke: e.value.style.chart.grid.stroke,
|
|
672
705
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
673
706
|
"stroke-linecap": "round"
|
|
674
|
-
}, null, 8,
|
|
675
|
-
])) :
|
|
707
|
+
}, null, 8, hl)
|
|
708
|
+
])) : h("", !0),
|
|
676
709
|
e.value.style.chart.labels.yAxisLabels.show ? (r(), n("g", {
|
|
677
710
|
key: 2,
|
|
678
711
|
ref_key: "scaleLabels",
|
|
679
|
-
ref:
|
|
712
|
+
ref: ae
|
|
680
713
|
}, [
|
|
681
|
-
(r(!0), n(
|
|
714
|
+
(r(!0), n(g, null, _(Fe.value, (l, s) => (r(), n("text", {
|
|
682
715
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
683
716
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
684
717
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
685
718
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
686
719
|
"text-anchor": "end"
|
|
687
|
-
},
|
|
720
|
+
}, $(i(me)(
|
|
688
721
|
e.value.style.chart.labels.formatter,
|
|
689
722
|
l.value,
|
|
690
|
-
i(
|
|
723
|
+
i(K)({
|
|
691
724
|
p: e.value.style.chart.labels.prefix,
|
|
692
725
|
v: l.value,
|
|
693
726
|
s: e.value.style.chart.labels.suffix,
|
|
694
727
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
695
728
|
}),
|
|
696
729
|
{ datapoint: l, seriesIndex: s }
|
|
697
|
-
)), 9,
|
|
698
|
-
], 512)) :
|
|
730
|
+
)), 9, dl))), 256))
|
|
731
|
+
], 512)) : h("", !0),
|
|
699
732
|
e.value.style.chart.labels.xAxisLabels.show ? (r(), n("g", {
|
|
700
733
|
key: 3,
|
|
701
734
|
ref_key: "timeLabelsEls",
|
|
702
|
-
ref:
|
|
735
|
+
ref: H
|
|
703
736
|
}, [
|
|
704
|
-
(r(!0), n(
|
|
737
|
+
(r(!0), n(g, null, _(Ge.value, (l, s) => (r(), n("g", null, [
|
|
705
738
|
String(l).includes(`
|
|
706
739
|
`) ? (r(), n("text", {
|
|
707
740
|
key: 1,
|
|
@@ -710,139 +743,139 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
710
743
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
711
744
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
712
745
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
713
|
-
innerHTML: i(
|
|
714
|
-
content: i(
|
|
746
|
+
innerHTML: i(Rt)({
|
|
747
|
+
content: i(Wt)(String(l)),
|
|
715
748
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
716
749
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
717
750
|
x: 0,
|
|
718
751
|
y: 0
|
|
719
752
|
})
|
|
720
|
-
}, null, 8,
|
|
753
|
+
}, null, 8, fl)) : (r(), n("text", {
|
|
721
754
|
key: 0,
|
|
722
755
|
class: "vue-ui-strip-plot-category-name",
|
|
723
756
|
transform: `translate(${o.value.left + (s + 1) * o.value.stripWidth - o.value.stripWidth / 2}, ${o.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
724
757
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
725
758
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
726
759
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
727
|
-
},
|
|
760
|
+
}, $(String(l)), 9, pl))
|
|
728
761
|
]))), 256))
|
|
729
|
-
], 512)) :
|
|
762
|
+
], 512)) : h("", !0),
|
|
730
763
|
e.value.style.chart.labels.axis.yLabel ? (r(), n("text", {
|
|
731
764
|
key: 4,
|
|
732
765
|
ref_key: "yAxisLabel",
|
|
733
|
-
ref:
|
|
766
|
+
ref: le,
|
|
734
767
|
fill: e.value.style.chart.labels.axis.color,
|
|
735
768
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
736
769
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
737
770
|
"text-anchor": "middle"
|
|
738
|
-
},
|
|
771
|
+
}, $(e.value.style.chart.labels.axis.yLabel), 9, bl)) : h("", !0),
|
|
739
772
|
e.value.style.chart.labels.axis.xLabel ? (r(), n("text", {
|
|
740
773
|
key: 5,
|
|
741
774
|
ref_key: "xAxisLabel",
|
|
742
|
-
ref:
|
|
775
|
+
ref: te,
|
|
743
776
|
fill: e.value.style.chart.labels.axis.color,
|
|
744
777
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
745
778
|
x: o.value.left + o.value.width / 2,
|
|
746
|
-
y:
|
|
779
|
+
y: C.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
747
780
|
"text-anchor": "middle"
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
|
|
781
|
+
}, $(e.value.style.chart.labels.axis.xLabel), 9, yl)) : h("", !0),
|
|
782
|
+
d.value ? (r(), n(g, { key: 6 }, [
|
|
783
|
+
m("line", {
|
|
751
784
|
x1: o.value.left,
|
|
752
785
|
x2: o.value.right,
|
|
753
|
-
y1:
|
|
754
|
-
y2:
|
|
755
|
-
stroke:
|
|
786
|
+
y1: d.value.y,
|
|
787
|
+
y2: d.value.y,
|
|
788
|
+
stroke: d.value.color,
|
|
756
789
|
"stroke-width": 1,
|
|
757
|
-
class:
|
|
758
|
-
}, null, 10,
|
|
759
|
-
|
|
790
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
791
|
+
}, null, 10, ml),
|
|
792
|
+
m("circle", {
|
|
760
793
|
cx: o.value.left,
|
|
761
|
-
cy:
|
|
794
|
+
cy: d.value.y,
|
|
762
795
|
r: 3,
|
|
763
|
-
fill:
|
|
764
|
-
class:
|
|
765
|
-
}, null, 10,
|
|
766
|
-
|
|
796
|
+
fill: d.value.color,
|
|
797
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
798
|
+
}, null, 10, gl),
|
|
799
|
+
m("circle", {
|
|
767
800
|
cx: o.value.right,
|
|
768
|
-
cy:
|
|
801
|
+
cy: d.value.y,
|
|
769
802
|
r: 3,
|
|
770
|
-
fill:
|
|
771
|
-
class:
|
|
772
|
-
}, null, 10,
|
|
773
|
-
], 64)) :
|
|
774
|
-
|
|
775
|
-
(r(!0), n(
|
|
803
|
+
fill: d.value.color,
|
|
804
|
+
class: E({ "select-circle": e.value.useCssAnimation })
|
|
805
|
+
}, null, 10, xl)
|
|
806
|
+
], 64)) : h("", !0),
|
|
807
|
+
m("defs", null, [
|
|
808
|
+
(r(!0), n(g, null, _(k.value, (l) => (r(), n("radialGradient", {
|
|
776
809
|
id: l.id,
|
|
777
810
|
fy: "30%"
|
|
778
811
|
}, [
|
|
779
|
-
|
|
812
|
+
m("stop", {
|
|
780
813
|
offset: "10%",
|
|
781
|
-
"stop-color": i(
|
|
782
|
-
}, null, 8,
|
|
783
|
-
|
|
814
|
+
"stop-color": i(Bt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
815
|
+
}, null, 8, wl),
|
|
816
|
+
m("stop", {
|
|
784
817
|
offset: "90%",
|
|
785
|
-
"stop-color": i(
|
|
786
|
-
}, null, 8,
|
|
787
|
-
|
|
818
|
+
"stop-color": i(Et)(l.color, 0.1)
|
|
819
|
+
}, null, 8, Cl),
|
|
820
|
+
m("stop", {
|
|
788
821
|
offset: "100%",
|
|
789
822
|
"stop-color": l.color
|
|
790
|
-
}, null, 8,
|
|
791
|
-
], 8,
|
|
823
|
+
}, null, 8, Al)
|
|
824
|
+
], 8, kl))), 256))
|
|
792
825
|
]),
|
|
793
|
-
(r(!0), n(
|
|
794
|
-
(r(!0), n(
|
|
795
|
-
plot: { x: u.x, y:
|
|
796
|
-
radius:
|
|
826
|
+
(r(!0), n(g, null, _(mt.value, (l, s) => (r(), n(g, null, [
|
|
827
|
+
(r(!0), n(g, null, _(l.plots, (u, f) => (r(), z(el, Xe({ ref_for: !0 }, t.$attrs, {
|
|
828
|
+
plot: { x: u.x, y: Ce.value ? u.y : o.value.top },
|
|
829
|
+
radius: d.value && d.value.id === u.id ? ie.value * 1.5 : ie.value,
|
|
797
830
|
shape: e.value.style.chart.plots.shape,
|
|
798
831
|
stroke: e.value.style.chart.plots.stroke,
|
|
799
832
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
800
833
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
801
|
-
style: `transition: all 0.2s ease-in-out; opacity:${
|
|
802
|
-
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation &&
|
|
803
|
-
onMouseenter: (
|
|
804
|
-
onMouseleave: (
|
|
805
|
-
onClick: (
|
|
834
|
+
style: `transition: all 0.2s ease-in-out; opacity:${d.value ? d.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${R.value ? `transition-delay:${f * 50}ms` : ""}`,
|
|
835
|
+
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !i(oe), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !R.value },
|
|
836
|
+
onMouseenter: (Y) => kt({ datapoint: u, seriesIndex: f }),
|
|
837
|
+
onMouseleave: (Y) => gt({ datapoint: u, seriesIndex: f }),
|
|
838
|
+
onClick: (Y) => xt({ datapoint: u, seriesIndex: f })
|
|
806
839
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
807
|
-
|
|
808
|
-
(r(!0), n(
|
|
809
|
-
f === l.plots.length - 1 ||
|
|
840
|
+
c.value.dataLabels.show ? (r(), n("g", Ll, [
|
|
841
|
+
(r(!0), n(g, null, _(l.plots, (u, f) => (r(), n(g, null, [
|
|
842
|
+
f === l.plots.length - 1 || d.value && d.value.id === u.id && !c.value.showTooltip ? (r(), n("text", {
|
|
810
843
|
key: 0,
|
|
811
844
|
x: u.x,
|
|
812
|
-
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY -
|
|
845
|
+
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - ie.value * (d.value && d.value.id === u.id && !c.value.showTooltip ? 2 : 1.5),
|
|
813
846
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
814
847
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
815
848
|
"text-anchor": "middle",
|
|
816
|
-
style:
|
|
817
|
-
},
|
|
849
|
+
style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
850
|
+
}, $(u.name) + " " + $(e.value.style.chart.labels.bestPlotLabel.showValue ? i(me)(
|
|
818
851
|
e.value.style.chart.labels.formatter,
|
|
819
852
|
u.value,
|
|
820
|
-
i(
|
|
853
|
+
i(K)({
|
|
821
854
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
822
855
|
v: u.value,
|
|
823
856
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
824
857
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
825
858
|
}),
|
|
826
859
|
{ datapoint: u, seriesIndex: f }
|
|
827
|
-
) : ""), 13,
|
|
860
|
+
) : ""), 13, _l)) : h("", !0)
|
|
828
861
|
], 64))), 256))
|
|
829
|
-
])) :
|
|
862
|
+
])) : h("", !0)
|
|
830
863
|
], 64))), 256)),
|
|
831
864
|
y(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
832
|
-
], 14,
|
|
833
|
-
t.$slots.watermark ? (r(), n("div",
|
|
834
|
-
y(t.$slots, "watermark", M(
|
|
835
|
-
])) :
|
|
865
|
+
], 14, ol)),
|
|
866
|
+
t.$slots.watermark ? (r(), n("div", $l, [
|
|
867
|
+
y(t.$slots, "watermark", I(M({ isPrinting: i(ze) || i(Pe) })), void 0, !0)
|
|
868
|
+
])) : h("", !0),
|
|
836
869
|
t.$slots.source ? (r(), n("div", {
|
|
837
870
|
key: 5,
|
|
838
871
|
ref_key: "source",
|
|
839
|
-
ref:
|
|
872
|
+
ref: ke,
|
|
840
873
|
dir: "auto"
|
|
841
874
|
}, [
|
|
842
875
|
y(t.$slots, "source", {}, void 0, !0)
|
|
843
|
-
], 512)) :
|
|
844
|
-
|
|
845
|
-
show:
|
|
876
|
+
], 512)) : h("", !0),
|
|
877
|
+
fe(i(at), {
|
|
878
|
+
show: c.value.showTooltip && Z.value,
|
|
846
879
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
847
880
|
color: e.value.style.chart.tooltip.color,
|
|
848
881
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -852,65 +885,79 @@ const Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["x", "y", "width", "height"]
|
|
|
852
885
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
853
886
|
position: e.value.style.chart.tooltip.position,
|
|
854
887
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
855
|
-
parent:
|
|
856
|
-
content:
|
|
857
|
-
isFullscreen:
|
|
858
|
-
isCustom: i(
|
|
888
|
+
parent: w.value,
|
|
889
|
+
content: ee.value,
|
|
890
|
+
isFullscreen: O.value,
|
|
891
|
+
isCustom: i(Ke)(e.value.style.chart.tooltip.customFormat),
|
|
859
892
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
860
893
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
861
894
|
}, {
|
|
862
895
|
"tooltip-before": b(() => [
|
|
863
|
-
y(t.$slots, "tooltip-before", M(
|
|
896
|
+
y(t.$slots, "tooltip-before", I(M({ ...he.value })), void 0, !0)
|
|
864
897
|
]),
|
|
865
898
|
"tooltip-after": b(() => [
|
|
866
|
-
y(t.$slots, "tooltip-after", M(
|
|
899
|
+
y(t.$slots, "tooltip-after", I(M({ ...he.value })), void 0, !0)
|
|
867
900
|
]),
|
|
868
901
|
_: 3
|
|
869
902
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
maxHeight: 1e4,
|
|
876
|
-
body: {
|
|
877
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
878
|
-
color: e.value.style.chart.color
|
|
879
|
-
},
|
|
880
|
-
head: {
|
|
881
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
882
|
-
color: e.value.style.chart.color
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
}, {
|
|
903
|
+
G.value ? (r(), z(Tt(B.value.component), Xe({ key: 6 }, B.value.props, {
|
|
904
|
+
ref_key: "tableUnit",
|
|
905
|
+
ref: F,
|
|
906
|
+
onClose: a[2] || (a[2] = (l) => c.value.showTable = !1)
|
|
907
|
+
}), Ve({
|
|
886
908
|
content: b(() => [
|
|
887
|
-
(r(),
|
|
888
|
-
key: `table_${
|
|
889
|
-
colNames:
|
|
890
|
-
head:
|
|
891
|
-
body:
|
|
892
|
-
config:
|
|
893
|
-
title:
|
|
894
|
-
|
|
909
|
+
(r(), z(i(rt), {
|
|
910
|
+
key: `table_${Le.value}`,
|
|
911
|
+
colNames: X.value.colNames,
|
|
912
|
+
head: X.value.head,
|
|
913
|
+
body: X.value.body,
|
|
914
|
+
config: X.value.config,
|
|
915
|
+
title: e.value.table.useDialog ? "" : B.value.title,
|
|
916
|
+
withCloseButton: !e.value.table.useDialog,
|
|
917
|
+
onClose: a[1] || (a[1] = (l) => c.value.showTable = !1)
|
|
895
918
|
}, {
|
|
896
919
|
th: b(({ th: l }) => [
|
|
897
|
-
|
|
920
|
+
m("div", {
|
|
898
921
|
innerHTML: l,
|
|
899
922
|
style: { display: "flex", "align-items": "center" }
|
|
900
|
-
}, null, 8,
|
|
923
|
+
}, null, 8, Tl)
|
|
901
924
|
]),
|
|
902
925
|
td: b(({ td: l }) => [
|
|
903
|
-
|
|
926
|
+
je($(l.name || l), 1)
|
|
904
927
|
]),
|
|
905
928
|
_: 1
|
|
906
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
929
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
907
930
|
]),
|
|
908
|
-
_:
|
|
909
|
-
},
|
|
910
|
-
|
|
911
|
-
|
|
931
|
+
_: 2
|
|
932
|
+
}, [
|
|
933
|
+
e.value.table.useDialog ? {
|
|
934
|
+
name: "title",
|
|
935
|
+
fn: b(() => [
|
|
936
|
+
je($(B.value.title), 1)
|
|
937
|
+
]),
|
|
938
|
+
key: "0"
|
|
939
|
+
} : void 0,
|
|
940
|
+
e.value.table.useDialog ? {
|
|
941
|
+
name: "actions",
|
|
942
|
+
fn: b(() => [
|
|
943
|
+
m("button", {
|
|
944
|
+
tabindex: "0",
|
|
945
|
+
class: "vue-ui-user-options-button",
|
|
946
|
+
onClick: a[0] || (a[0] = (l) => de(e.value.userOptions.callbacks.csv))
|
|
947
|
+
}, [
|
|
948
|
+
fe(i(ot), {
|
|
949
|
+
name: "excel",
|
|
950
|
+
stroke: B.value.props.color
|
|
951
|
+
}, null, 8, ["stroke"])
|
|
952
|
+
])
|
|
953
|
+
]),
|
|
954
|
+
key: "1"
|
|
955
|
+
} : void 0
|
|
956
|
+
]), 1040)) : h("", !0),
|
|
957
|
+
i(oe) ? (r(), z(Yt, { key: 7 })) : h("", !0)
|
|
958
|
+
], 46, al));
|
|
912
959
|
}
|
|
913
|
-
},
|
|
960
|
+
}, Hl = /* @__PURE__ */ ll(Sl, [["__scopeId", "data-v-86b9afd3"]]);
|
|
914
961
|
export {
|
|
915
|
-
|
|
962
|
+
Hl as default
|
|
916
963
|
};
|