vue-data-ui 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CKLBHe3L.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-q3pgSDTz.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-CtqN7W_g.js → BaseIcon-eZbszQrv.js} +1 -1
- package/dist/{ColorPicker-Cr6rUDTP.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BeI6gYJX.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-DsogCeTb.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BDK_ucTG.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C9oklnuy.js → PackageVersion-r-Q1R3nV.js} +1 -1
- package/dist/{PenAndPaper-BxbYiPy4.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-DJG2zW7b.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-D6T4aUhr.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Cp0G9giW.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-D17CJXko.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-CtVdvbZi.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-B3vCIe-u.js → UserOptions-CSja1SGU.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BiyqJA3t.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-6wPuVVtk.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-GIYcnm0E.js → lib-CEjkWSLj.js} +376 -374
- package/dist/{pdf-DjbHsnrb.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-Csv3pVmh.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-mxyyqd0B.js → useNestedProp-Ce3PwN8T.js} +1 -1
- package/dist/{usePrinter-DYRFiw7X.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useResizeObserverEffect-DfnWps4W.js +109 -0
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/{vue-data-ui-DLU1snC3.js → vue-data-ui-BFdGl7rL.js} +64 -64
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-D6xoBrN6.js → vue-ui-3d-bar-kzlIaqHU.js} +7 -7
- package/dist/{vue-ui-accordion-Dch9YrCi.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D74mAaLA.js → vue-ui-age-pyramid-YFzQ15k1.js} +28 -35
- package/dist/{vue-ui-annotator-DwRwhrgB.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-D2qVUqWs.js → vue-ui-bullet-DdjpiM-T.js} +8 -8
- package/dist/{vue-ui-candlestick-C81k1_f9.js → vue-ui-candlestick-x9U5Ni0N.js} +31 -38
- package/dist/{vue-ui-carousel-table-DBIhnEj-.js → vue-ui-carousel-table-CRI_iPLn.js} +4 -4
- package/dist/{vue-ui-chestnut-CSM-_IWw.js → vue-ui-chestnut-YrEA5Gq3.js} +6 -6
- package/dist/{vue-ui-chord-BFW9nnNh.js → vue-ui-chord-D_2DdvpZ.js} +9 -9
- package/dist/{vue-ui-circle-pack-D6mTG5i0.js → vue-ui-circle-pack-xm9-OOAR.js} +7 -7
- package/dist/{vue-ui-cursor-BJmTAMpP.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-BdFLsK4u.js → vue-ui-dashboard-29ZuFoLn.js} +67 -67
- package/dist/{vue-ui-digits-DXum1rs6.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-CqefukGp.js → vue-ui-donut-BQptfVfE.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DFIbK50s.js → vue-ui-donut-evolution-fiqngEFW.js} +76 -83
- package/dist/{vue-ui-dumbbell-DIo2ecGY.js → vue-ui-dumbbell-Cw45EBO0.js} +31 -38
- package/dist/{vue-ui-flow--kiGWaq4.js → vue-ui-flow-DPu9BjPy.js} +8 -8
- package/dist/{vue-ui-funnel-B8UHwj15.js → vue-ui-funnel-CtlDuNjO.js} +7 -7
- package/dist/{vue-ui-galaxy-eQZh_y3l.js → vue-ui-galaxy-BiVjoNHW.js} +8 -8
- package/dist/{vue-ui-gauge-DJ-E6L2T.js → vue-ui-gauge-CoM6Q3Nb.js} +8 -8
- package/dist/{vue-ui-gizmo-DFxlqPz7.js → vue-ui-gizmo-DXG8dS5u.js} +3 -3
- package/dist/{vue-ui-heatmap-CcAe5dDN.js → vue-ui-heatmap-D6n8AnCc.js} +194 -215
- package/dist/{vue-ui-history-plot-CgKvd7Jx.js → vue-ui-history-plot-C8WMHda_.js} +38 -45
- package/dist/{vue-ui-kpi-Ct2iyD49.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-ByjcvXBB.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-CGDBEAkX.js → vue-ui-molecule-DC4_vXt_.js} +6 -6
- package/dist/{vue-ui-mood-radar-D9GuK4cI.js → vue-ui-mood-radar-BgT5wMS0.js} +8 -8
- package/dist/{vue-ui-nested-donuts-CGKgOTX2.js → vue-ui-nested-donuts-D2gSqe1f.js} +8 -8
- package/dist/{vue-ui-onion-C5tE1Woz.js → vue-ui-onion-CEbv2ii4.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-CVhD6IoH.js → vue-ui-parallel-coordinate-plot-budrvcwU.js} +38 -45
- package/dist/{vue-ui-quadrant-BGDCaOXv.js → vue-ui-quadrant-PpymeiXe.js} +9 -9
- package/dist/{vue-ui-quick-chart-CjXSB-2S.js → vue-ui-quick-chart-k6mjTD56.js} +207 -214
- package/dist/{vue-ui-radar-rhxkROX7.js → vue-ui-radar-C5NvYMnv.js} +9 -9
- package/dist/{vue-ui-rating-Bo9gSy-z.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-Qo8FKbL2.js → vue-ui-relation-circle-Df33aaUT.js} +8 -8
- package/dist/{vue-ui-ridgeline-ahOApbEC.js → vue-ui-ridgeline-BTw-37RS.js} +38 -45
- package/dist/{vue-ui-rings-DFAVaEBs.js → vue-ui-rings-C_s9xOtZ.js} +9 -9
- package/dist/{vue-ui-scatter-zjlWyvVd.js → vue-ui-scatter-Jd8bQ0S5.js} +9 -9
- package/dist/{vue-ui-skeleton-CKfOnyd_.js → vue-ui-skeleton-Ce7H57o7.js} +3 -3
- package/dist/{vue-ui-smiley-CY7UiJ9C.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-DwNYP97M.js → vue-ui-spark-trend-DQy4iSO7.js} +3 -3
- package/dist/{vue-ui-sparkbar-BkdcYrmg.js → vue-ui-sparkbar-CUFTHql0.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C6Kq_OGV.js → vue-ui-sparkgauge-CcykuBps.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CjB33yXB.js → vue-ui-sparkhistogram-CyGvYpYn.js} +4 -4
- package/dist/{vue-ui-sparkline-DcH4yIEd.js → vue-ui-sparkline-CLWJM6hA.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-MKr2u_pO.js → vue-ui-sparkstackbar-Cln1pduE.js} +3 -3
- package/dist/{vue-ui-stackbar-DKV-exfd.js → vue-ui-stackbar-DIUil9DO.js} +31 -46
- package/dist/{vue-ui-strip-plot-ncTrDlNC.js → vue-ui-strip-plot-C4U0fT5D.js} +106 -113
- package/dist/{vue-ui-table-BdT3lGuv.js → vue-ui-table-DpdP3PDq.js} +5 -5
- package/dist/{vue-ui-table-heatmap-D929cWB0.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CkZ_ygR1.js → vue-ui-table-sparkline-Chf5YY4A.js} +4 -4
- package/dist/{vue-ui-thermometer-CjBLR6H9.js → vue-ui-thermometer-D6RmaNE6.js} +8 -8
- package/dist/{vue-ui-timer-Bs7eMmiC.js → vue-ui-timer-C5E1kJRt.js} +5 -5
- package/dist/{vue-ui-tiremarks-nGOZKRcz.js → vue-ui-tiremarks-D0erVBnj.js} +7 -7
- package/dist/{vue-ui-treemap-SQ2f5wbN.js → vue-ui-treemap-K8FYxuYz.js} +10 -10
- package/dist/{vue-ui-vertical-bar-Hh9gAN5j.js → vue-ui-vertical-bar-BA3OY8Sh.js} +10 -10
- package/dist/{vue-ui-waffle-C7moVBln.js → vue-ui-waffle-CgLgPuro.js} +9 -9
- package/dist/{vue-ui-wheel-KrGLMCqW.js → vue-ui-wheel-C_cOUhCs.js} +7 -7
- package/dist/{vue-ui-word-cloud-BQSu6kiR.js → vue-ui-word-cloud-uvHNOIpN.js} +7 -7
- package/dist/{vue-ui-world-DdoMFJcV.js → vue-ui-world-DmeNMwpX.js} +7 -7
- package/dist/{vue-ui-xy-canvas-oUXISeU8.js → vue-ui-xy-canvas-BQKR36bd.js} +10 -10
- package/dist/{vue-ui-xy-B2fjTYMJ.js → vue-ui-xy-tWE4H5ij.js} +278 -285
- package/package.json +1 -1
- package/dist/useSvgExport-B7-Vrjtu.js +0 -732
- package/dist/useTimeLabelCollider-CIsgDrl9.js +0 -78
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ee, ref as w, computed as R, toRefs as ya, watch as Te, shallowRef as Mt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot,
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as Ut, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as Ua } from "./
|
|
11
|
-
import Va from "./img-
|
|
12
|
-
import { S as qa } from "./Slicer-
|
|
1
|
+
import { defineAsyncComponent as Ee, ref as w, computed as R, toRefs as ya, watch as Te, shallowRef as Mt, onMounted as xa, onBeforeUnmount as Nt, nextTick as ot, createElementBlock as n, openBlock as l, normalizeStyle as B, normalizeClass as de, createBlock as Ie, createCommentVNode as m, createElementVNode as C, createVNode as be, unref as s, createSlots as ka, withCtx as ne, renderSlot as W, normalizeProps as me, guardReactiveProps as ge, toDisplayString as U, Fragment as x, renderList as T, Teleport as ba, mergeProps as nt } from "vue";
|
|
2
|
+
import { c as Sa, t as wa, b as Aa, p as J, B as We, e as La, J as _a, f as za, o as Ca, h as it, n as $a, C as Xe, X as Ea, u as Ta, v as ut, w as Pe, a as ie, d as G, L as Bt, U as Dt, q as ue, z as je, A as rt } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as Ut, u as Ia } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Pa, a as Vt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Oa, B as Fa } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ra } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as Ma } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Na } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Ba } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Da, a as Ua } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
11
|
+
import Va from "./img-J2dLIr8Y.js";
|
|
12
|
+
import { S as qa } from "./Slicer-Znzt0gSE.js";
|
|
13
13
|
import { t as Ha } from "./themes-Dw-dDudK.js";
|
|
14
14
|
import { _ as Wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const A = {
|
|
@@ -157,7 +157,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
157
157
|
},
|
|
158
158
|
emits: ["selectDatapoint", "selectLegend"],
|
|
159
159
|
setup(h, { expose: O, emit: L }) {
|
|
160
|
-
const q = Ee(() => import("./BaseIcon-
|
|
160
|
+
const q = Ee(() => import("./BaseIcon-eZbszQrv.js")), j = Ee(() => import("./PackageVersion-r-Q1R3nV.js")), se = Ee(() => import("./PenAndPaper-Bo-lMUik.js")), Se = Ee(() => import("./Tooltip-VOcQEHa4.js")), st = Ee(() => import("./UserOptions-CSja1SGU.js")), { vue_ui_quick_chart: Ze } = Pa(), D = h, M = w(null), Oe = w(null), vt = w(null), dt = w(null), Y = w(Sa()), ce = w(!1), we = w(null), fe = w(""), te = w(null), ct = w(null), ft = w(null), _ = w([]), ht = w(0), Fe = w(0), mt = w(!1), Ae = w(null), Le = w(null), ae = w(null), Re = w(null), gt = w(null), pt = w(null), Me = w("#FFFFFF"), e = w(et()), Je = R(() => !!e.value.debug), { loading: V, FINAL_DATASET: jt, manualLoading: yt } = Oa({
|
|
161
161
|
...ya(D),
|
|
162
162
|
FINAL_CONFIG: e,
|
|
163
163
|
prepareConfig: et,
|
|
@@ -171,7 +171,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
171
171
|
});
|
|
172
172
|
},
|
|
173
173
|
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89],
|
|
174
|
-
skeletonConfig:
|
|
174
|
+
skeletonConfig: wa({
|
|
175
175
|
defaultConfig: e.value,
|
|
176
176
|
userConfig: {
|
|
177
177
|
backgroundColor: "#99999930",
|
|
@@ -193,7 +193,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
193
193
|
zoomEndIndex: null
|
|
194
194
|
}
|
|
195
195
|
})
|
|
196
|
-
}), { svgRef: Qe } =
|
|
196
|
+
}), { svgRef: Qe } = Ba({ config: { text: e.value.title } }), Gt = R(() => e.value.showUserOptionsOnChartHover), xt = R(() => e.value.keepUserOptionsStateOnChartLeave), Ne = w(!e.value.showUserOptionsOnChartHover), Ke = w(!1);
|
|
197
197
|
function kt(a = !1) {
|
|
198
198
|
Ke.value = a, Gt.value && (Ne.value = a);
|
|
199
199
|
}
|
|
@@ -208,7 +208,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
208
208
|
userConfig: Ha.vue_ui_quick_chart[a.theme] || D.config,
|
|
209
209
|
defaultConfig: a
|
|
210
210
|
}),
|
|
211
|
-
customPalette:
|
|
211
|
+
customPalette: Aa[a.theme] || J
|
|
212
212
|
} : r = a, D.config && We(D.config, "zoomStartIndex") ? r.zoomStartIndex = D.config.zoomStartIndex : r.zoomStartIndex = null, D.config && We(D.config, "zoomEndIndex") ? r.zoomEndIndex = D.config.zoomEndIndex : r.zoomEndIndex = null, D.config && !We(D.config, "donutStroke") ? We(D.config, "backgroundColor") ? Me.value = D.config.backgroundColor : Me.value = "#FFFFFF" : Me.value = D.config.donutStroke, r;
|
|
213
213
|
}
|
|
214
214
|
Te(() => D.config, (a) => {
|
|
@@ -218,8 +218,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
218
218
|
}, { deep: !0 }), Te(() => D.dataset, (a) => {
|
|
219
219
|
Array.isArray(a) && a.length > 0 && (yt.value = !1);
|
|
220
220
|
}, { immediate: !0 });
|
|
221
|
-
const _e = R(() =>
|
|
222
|
-
const a = ja({ debug: Je.value, dataset:
|
|
221
|
+
const _e = R(() => La(e.value.customPalette)), pe = L, ze = R(() => {
|
|
222
|
+
const a = ja({ debug: Je.value, dataset: _a(jt.value, [
|
|
223
223
|
"serie",
|
|
224
224
|
"series",
|
|
225
225
|
"data",
|
|
@@ -230,13 +230,13 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
230
230
|
return !a && Je.value && console.error("VueUiQuickChart : Dataset is not processable"), a;
|
|
231
231
|
}), k = w(ze.value), Yt = R(() => !!k.value), $ = R(() => k.value ? k.value.type : null);
|
|
232
232
|
Te(() => $.value, (a) => {
|
|
233
|
-
a ||
|
|
233
|
+
a || za({
|
|
234
234
|
componentName: "VueUiQuickChart",
|
|
235
235
|
type: "dataset",
|
|
236
236
|
debug: Je.value
|
|
237
237
|
});
|
|
238
238
|
}, { immediate: !0 });
|
|
239
|
-
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } =
|
|
239
|
+
const { isPrinting: Be, isImaging: De, generatePdf: bt, generateImage: St } = Ra({
|
|
240
240
|
elementId: `${$.value}_${Y.value}`,
|
|
241
241
|
fileName: e.value.title || $.value,
|
|
242
242
|
options: e.value.userOptionsPrint
|
|
@@ -256,9 +256,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
256
256
|
mt.value = !0, wt();
|
|
257
257
|
});
|
|
258
258
|
function wt() {
|
|
259
|
-
if (
|
|
259
|
+
if (Ca(D.dataset) || (yt.value = e.value.loading), e.value.responsive) {
|
|
260
260
|
const a = Ut(() => {
|
|
261
|
-
const { width: r, height: t } =
|
|
261
|
+
const { width: r, height: t } = Ia({
|
|
262
262
|
chart: M.value,
|
|
263
263
|
title: e.value.title ? Oe.value : null,
|
|
264
264
|
legend: e.value.showLegend ? vt.value : null,
|
|
@@ -302,17 +302,17 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
302
302
|
function Qt(a, r) {
|
|
303
303
|
Ue.value = !0;
|
|
304
304
|
let t = a.value;
|
|
305
|
-
const
|
|
305
|
+
const o = ze.value.dataset.find((u, p) => a.id === `donut_${p}`).VALUE;
|
|
306
306
|
if (_.value.includes(a.id)) {
|
|
307
307
|
let u = function() {
|
|
308
|
-
t >
|
|
308
|
+
t > o ? (Ue.value = !1, cancelAnimationFrame(zt.value), k.value = {
|
|
309
309
|
...k.value,
|
|
310
310
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
311
311
|
...p,
|
|
312
|
-
value:
|
|
313
|
-
VALUE:
|
|
312
|
+
value: o,
|
|
313
|
+
VALUE: o
|
|
314
314
|
} : p)
|
|
315
|
-
}) : (t +=
|
|
315
|
+
}) : (t += o * 0.025, k.value = {
|
|
316
316
|
...k.value,
|
|
317
317
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
318
318
|
...p,
|
|
@@ -324,7 +324,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
324
324
|
_.value = _.value.filter((p) => p !== a.id), u();
|
|
325
325
|
} else if (r.length > 1) {
|
|
326
326
|
let u = function() {
|
|
327
|
-
t <
|
|
327
|
+
t < o / 100 ? (Ue.value = !1, cancelAnimationFrame(_t.value), _.value.push(a.id), k.value = {
|
|
328
328
|
...k.value,
|
|
329
329
|
dataset: k.value.dataset.map((p, b) => a.id === `donut_${b}` ? {
|
|
330
330
|
...p,
|
|
@@ -369,7 +369,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
369
369
|
function t(f) {
|
|
370
370
|
return f.proportion * 100 > e.value.donutHideLabelUnderPercentage;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function o(f, z) {
|
|
373
373
|
const d = ze.value.dataset.find((g, E) => `donut_${E}` === f).VALUE;
|
|
374
374
|
return Math.abs(String(Number(d.toFixed(0))).length - String(Number(z.toFixed(0))).length);
|
|
375
375
|
}
|
|
@@ -429,12 +429,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
429
429
|
useTooltip: u,
|
|
430
430
|
killTooltip: p,
|
|
431
431
|
selectDatapoint: b,
|
|
432
|
-
getSpaces:
|
|
432
|
+
getSpaces: o,
|
|
433
433
|
total: F,
|
|
434
434
|
cx: oe,
|
|
435
435
|
cy: Z,
|
|
436
436
|
radius: X,
|
|
437
|
-
chart:
|
|
437
|
+
chart: $a(
|
|
438
438
|
{ series: a.filter((f) => !_.value.includes(f.id)) },
|
|
439
439
|
oe,
|
|
440
440
|
Z,
|
|
@@ -482,27 +482,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
482
482
|
else
|
|
483
483
|
for (let u = 0; u < r; u += 1)
|
|
484
484
|
t.push(a.map((p) => p.values[u] || 0).reduce((p, b) => (p || 0) + (b || 0), 0));
|
|
485
|
-
const
|
|
486
|
-
return t.map((u) => u + (
|
|
485
|
+
const o = Math.min(...t);
|
|
486
|
+
return t.map((u) => u + (o < 0 ? Math.abs(o) : 0));
|
|
487
487
|
});
|
|
488
488
|
function Tt() {
|
|
489
489
|
let a = 0;
|
|
490
|
-
return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((
|
|
490
|
+
return Re.value && (a = Array.from(Re.value.querySelectorAll("text")).reduce((o, u) => {
|
|
491
491
|
const p = u.getComputedTextLength();
|
|
492
|
-
return p >
|
|
492
|
+
return p > o ? p : o;
|
|
493
493
|
}, 0)), a + 4;
|
|
494
494
|
}
|
|
495
495
|
const tt = w(0), la = Ut((a) => {
|
|
496
496
|
tt.value = a;
|
|
497
497
|
}, 100);
|
|
498
|
-
|
|
499
|
-
const r = ae.value;
|
|
500
|
-
if (!r) return;
|
|
501
|
-
const t = new ResizeObserver((l) => {
|
|
502
|
-
la(l[0].contentRect.height);
|
|
503
|
-
});
|
|
504
|
-
t.observe(r), a(() => t.disconnect());
|
|
505
|
-
}), Nt(() => {
|
|
498
|
+
Da({ elementRef: ae, callback: la, attr: "height" }), Nt(() => {
|
|
506
499
|
tt.value = 0;
|
|
507
500
|
});
|
|
508
501
|
const Ve = R(() => {
|
|
@@ -527,8 +520,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
527
520
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
528
521
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
529
522
|
};
|
|
530
|
-
let
|
|
531
|
-
re(k.value.dataset) && (
|
|
523
|
+
let o = [];
|
|
524
|
+
re(k.value.dataset) && (o = [
|
|
532
525
|
{
|
|
533
526
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
534
527
|
absoluteValues: k.value.dataset,
|
|
@@ -537,7 +530,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
537
530
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
538
531
|
id: "line_0"
|
|
539
532
|
}
|
|
540
|
-
]), Ge(k.value.dataset) && (
|
|
533
|
+
]), Ge(k.value.dataset) && (o = k.value.dataset.map((d, i) => ({
|
|
541
534
|
...d,
|
|
542
535
|
values: d.VALUE || d.DATA || d.SERIE || d.SERIES || d.VALUES || d.NUM || 0,
|
|
543
536
|
name: d.NAME || d.DESCRIPTION || d.TITLE || d.LABEL || `Serie ${i}`,
|
|
@@ -550,14 +543,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
550
543
|
absoluteIndices: d.values.map((g, E) => E).slice(y.value.start, y.value.end)
|
|
551
544
|
})));
|
|
552
545
|
const u = {
|
|
553
|
-
max: Math.max(...
|
|
554
|
-
min: Math.min(...
|
|
555
|
-
maxSeries: Math.max(...
|
|
546
|
+
max: Math.max(...o.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
547
|
+
min: Math.min(...o.filter((d) => !_.value.includes(d.id)).flatMap((d) => d.values)),
|
|
548
|
+
maxSeries: Math.max(...o.map((d) => d.values.length))
|
|
556
549
|
}, p = u.max === u.min ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), b = u.min < 0 ? Math.abs(u.min) : 0, P = u.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((d) => ({
|
|
557
550
|
y: t.bottom - t.height * ((d + b) / (p.max + b)),
|
|
558
551
|
x: t.left - 8,
|
|
559
552
|
value: d
|
|
560
|
-
})), oe =
|
|
553
|
+
})), oe = o.map((d, i) => ({
|
|
561
554
|
...d,
|
|
562
555
|
shape: "circle",
|
|
563
556
|
coordinates: d.values.map((g, E) => ({
|
|
@@ -575,7 +568,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
575
568
|
};
|
|
576
569
|
});
|
|
577
570
|
function Z(d) {
|
|
578
|
-
return
|
|
571
|
+
return o.map((i) => ({
|
|
579
572
|
...i,
|
|
580
573
|
value: i.values[d],
|
|
581
574
|
absoluteIndex: i.absoluteIndices[d]
|
|
@@ -584,18 +577,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
584
577
|
function X(d) {
|
|
585
578
|
te.value = d, le.value = d;
|
|
586
579
|
const i = Z(d);
|
|
587
|
-
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset:
|
|
580
|
+
we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: o };
|
|
588
581
|
const g = e.value.tooltipCustomFormat;
|
|
589
582
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), je(g) && rt(() => g({
|
|
590
583
|
datapoint: i,
|
|
591
584
|
seriesIndex: d,
|
|
592
|
-
series:
|
|
585
|
+
series: o,
|
|
593
586
|
config: e.value
|
|
594
587
|
})))
|
|
595
588
|
fe.value = g({
|
|
596
589
|
datapoint: i,
|
|
597
590
|
seriesIndex: d,
|
|
598
|
-
series:
|
|
591
|
+
series: o,
|
|
599
592
|
config: e.value
|
|
600
593
|
});
|
|
601
594
|
else {
|
|
@@ -662,8 +655,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
662
655
|
width: Math.max(10, a.width - e.value.xyPaddingLeft - e.value.xyPaddingRight - r),
|
|
663
656
|
height: Math.max(10, a.height - e.value.xyPaddingTop - e.value.xyPaddingBottom - Ve.value)
|
|
664
657
|
};
|
|
665
|
-
let
|
|
666
|
-
re(k.value.dataset) && (
|
|
658
|
+
let o = [];
|
|
659
|
+
re(k.value.dataset) && (o = [
|
|
667
660
|
{
|
|
668
661
|
values: k.value.dataset.slice(y.value.start, y.value.end),
|
|
669
662
|
absoluteValues: k.value.dataset,
|
|
@@ -672,7 +665,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
672
665
|
color: _e.value[e.value.paletteStartIndex] || J[e.value.paletteStartIndex],
|
|
673
666
|
id: "bar_0"
|
|
674
667
|
}
|
|
675
|
-
]), Ge(k.value.dataset) && (
|
|
668
|
+
]), Ge(k.value.dataset) && (o = k.value.dataset.map((i, g) => ({
|
|
676
669
|
...i,
|
|
677
670
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
678
671
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${g}`,
|
|
@@ -685,18 +678,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
685
678
|
absoluteIndices: i.values.map((E, N) => N).slice(y.value.start, y.value.end)
|
|
686
679
|
})));
|
|
687
680
|
const u = {
|
|
688
|
-
max: Math.max(...
|
|
689
|
-
min: Math.min(...
|
|
690
|
-
maxSeries: Math.max(...
|
|
681
|
+
max: Math.max(...o.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...o.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
682
|
+
min: Math.min(...o.filter((i) => !_.value.includes(i.id)).flatMap((i) => i.values)),
|
|
683
|
+
maxSeries: Math.max(...o.filter((i) => !_.value.includes(i.id)).map((i) => i.values.length))
|
|
691
684
|
}, p = u.min === u.max ? Xe(u.min, u.min + 1, e.value.xyScaleSegments) : Xe(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, P = t.bottom - b / (p.max + b) * t.height, F = t.width / u.maxSeries, K = p.ticks.map((i) => ({
|
|
692
685
|
y: t.bottom - t.height * ((i + b) / (p.max + b)),
|
|
693
686
|
x: t.left - 8,
|
|
694
687
|
value: i
|
|
695
|
-
})), oe =
|
|
688
|
+
})), oe = o.map((i, g) => ({
|
|
696
689
|
...i,
|
|
697
690
|
shape: "square",
|
|
698
691
|
coordinates: i.values.map((E, N) => {
|
|
699
|
-
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F /
|
|
692
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / Math.abs(u.min) * (t.height - P), lt = b / (u.max + b) * t.height, $e = F / o.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / o.filter((he) => !_.value.includes(he.id)).length;
|
|
700
693
|
return {
|
|
701
694
|
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
702
695
|
y: E > 0 ? t.bottom - H : P,
|
|
@@ -705,10 +698,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
705
698
|
width: $e
|
|
706
699
|
};
|
|
707
700
|
})
|
|
708
|
-
})), Z =
|
|
701
|
+
})), Z = o.filter((i) => !_.value.includes(i.id)).map((i, g) => ({
|
|
709
702
|
...i,
|
|
710
703
|
coordinates: i.values.map((E, N) => {
|
|
711
|
-
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F /
|
|
704
|
+
const H = (E + b) / (u.max + b) * t.height, ee = Math.abs(E) / (u.max + b) * t.height, lt = b / (u.max + b) * t.height, $e = F / o.filter((he) => !_.value.includes(he.id)).length - e.value.barGap / o.filter((he) => !_.value.includes(he.id)).length;
|
|
712
705
|
return {
|
|
713
706
|
x: t.left + F * N + $e * g + e.value.barGap / 2,
|
|
714
707
|
y: E > 0 ? t.bottom - H : P,
|
|
@@ -719,7 +712,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
719
712
|
})
|
|
720
713
|
}));
|
|
721
714
|
function X(i) {
|
|
722
|
-
return
|
|
715
|
+
return o.map((g) => ({
|
|
723
716
|
...g,
|
|
724
717
|
value: g.values[i],
|
|
725
718
|
absoluteIndex: g.absoluteIndices[i]
|
|
@@ -728,18 +721,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
728
721
|
function f(i) {
|
|
729
722
|
te.value = i, le.value = i;
|
|
730
723
|
const g = X(i);
|
|
731
|
-
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset:
|
|
724
|
+
we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: o };
|
|
732
725
|
const E = e.value.tooltipCustomFormat;
|
|
733
726
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), je(E) && rt(() => E({
|
|
734
727
|
datapoint: g,
|
|
735
728
|
seriesIndex: i,
|
|
736
|
-
series:
|
|
729
|
+
series: o,
|
|
737
730
|
config: e.value
|
|
738
731
|
})))
|
|
739
732
|
fe.value = E({
|
|
740
733
|
point: g,
|
|
741
734
|
seriesIndex: i,
|
|
742
|
-
series:
|
|
735
|
+
series: o,
|
|
743
736
|
config: e.value
|
|
744
737
|
});
|
|
745
738
|
else {
|
|
@@ -795,8 +788,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
795
788
|
a.style.transition = "none", a.style.strokeDasharray = `${r}`, a.style.strokeDashoffset = `${r}`;
|
|
796
789
|
}
|
|
797
790
|
function It(a, { fromOpacity: r = "0", fromScale: t = "0.85" } = {}) {
|
|
798
|
-
a.forEach((
|
|
799
|
-
|
|
791
|
+
a.forEach((o) => {
|
|
792
|
+
o.style.animation = "none", o.style.transition = "none", o.style.opacity = r, o.style.transform = `scale(${t})`, o.style.transformBox = "fill-box", o.style.transformOrigin = "50% 50%";
|
|
800
793
|
});
|
|
801
794
|
}
|
|
802
795
|
function na(a) {
|
|
@@ -812,12 +805,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
812
805
|
if (!a.length) return [];
|
|
813
806
|
const t = a.map((P) => ({ el: P, x: r(P) })).filter((P) => Number.isFinite(P.x));
|
|
814
807
|
t.sort((P, F) => P.x - F.x);
|
|
815
|
-
let
|
|
808
|
+
let o = 1 / 0;
|
|
816
809
|
for (let P = 1; P < t.length; P++) {
|
|
817
810
|
const F = t[P].x - t[P - 1].x;
|
|
818
|
-
F > 0 && F <
|
|
811
|
+
F > 0 && F < o && (o = F);
|
|
819
812
|
}
|
|
820
|
-
const u = (
|
|
813
|
+
const u = (o === 1 / 0 ? 1 : o) / 2, p = [];
|
|
821
814
|
let b = { x: t[0].x, items: [t[0].el] };
|
|
822
815
|
for (let P = 1; P < t.length; P++) {
|
|
823
816
|
const { x: F, el: K } = t[P];
|
|
@@ -829,7 +822,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
829
822
|
pathDuration: a,
|
|
830
823
|
pathEasing: r = "ease-in-out",
|
|
831
824
|
pointDuration: t,
|
|
832
|
-
labelDuration:
|
|
825
|
+
labelDuration: o,
|
|
833
826
|
pointDelay: u = 0,
|
|
834
827
|
labelDelay: p = 0,
|
|
835
828
|
pointStep: b = 0,
|
|
@@ -851,7 +844,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
851
844
|
}), i.forEach((g, E) => {
|
|
852
845
|
g.items.forEach((N, H) => {
|
|
853
846
|
const ee = p + E * P + H * F;
|
|
854
|
-
N.style.transition = `opacity ${
|
|
847
|
+
N.style.transition = `opacity ${o}ms ease-out ${ee}ms, transform ${o}ms ease-out ${ee}ms`, N.style.opacity = "1", N.style.transform = "scale(1)";
|
|
855
848
|
});
|
|
856
849
|
});
|
|
857
850
|
});
|
|
@@ -872,7 +865,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
872
865
|
type: "bar",
|
|
873
866
|
series: a.absoluteValues
|
|
874
867
|
}));
|
|
875
|
-
}), Q = R(() =>
|
|
868
|
+
}), Q = R(() => Na({
|
|
876
869
|
values: e.value.xyPeriods,
|
|
877
870
|
maxDatapoints: k.value.maxSeriesLength,
|
|
878
871
|
formatter: e.value.datetimeFormatter,
|
|
@@ -894,14 +887,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
894
887
|
}
|
|
895
888
|
async function sa({ scale: a = 2 } = {}) {
|
|
896
889
|
if (!M.value) return;
|
|
897
|
-
const { width: r, height: t } = M.value.getBoundingClientRect(),
|
|
890
|
+
const { width: r, height: t } = M.value.getBoundingClientRect(), o = r / t, { imageUri: u, base64: p } = await Va({ domElement: M.value, base64: !0, img: !0, scale: a });
|
|
898
891
|
return {
|
|
899
892
|
imageUri: u,
|
|
900
893
|
base64: p,
|
|
901
894
|
title: e.value.title,
|
|
902
895
|
width: r,
|
|
903
896
|
height: t,
|
|
904
|
-
aspectRatio:
|
|
897
|
+
aspectRatio: o
|
|
905
898
|
};
|
|
906
899
|
}
|
|
907
900
|
const va = R(() => S.value.width), da = R(() => S.value.height);
|
|
@@ -933,7 +926,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
933
926
|
subtitle: {
|
|
934
927
|
text: ""
|
|
935
928
|
}
|
|
936
|
-
})), { exportSvg: ga, getSvg: pa } =
|
|
929
|
+
})), { exportSvg: ga, getSvg: pa } = Ma({
|
|
937
930
|
svg: Qe,
|
|
938
931
|
title: ma,
|
|
939
932
|
legend: ha,
|
|
@@ -942,8 +935,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
942
935
|
});
|
|
943
936
|
async function Rt({ isCb: a }) {
|
|
944
937
|
if (a) {
|
|
945
|
-
const { blob: r, url: t, text:
|
|
946
|
-
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text:
|
|
938
|
+
const { blob: r, url: t, text: o, dataUrl: u } = await pa();
|
|
939
|
+
e.value.userOptionsCallbacks.svg({ blob: r, url: t, text: o, dataUrl: u });
|
|
947
940
|
} else
|
|
948
941
|
ga();
|
|
949
942
|
}
|
|
@@ -955,7 +948,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
955
948
|
toggleTooltip: Ft,
|
|
956
949
|
toggleAnnotator: at,
|
|
957
950
|
toggleFullscreen: Ot
|
|
958
|
-
}), (a, r) => Yt.value ? (
|
|
951
|
+
}), (a, r) => Yt.value ? (l(), n("div", {
|
|
959
952
|
key: 0,
|
|
960
953
|
id: `${$.value}_${Y.value}`,
|
|
961
954
|
ref_key: "quickChart",
|
|
@@ -965,7 +958,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
965
958
|
onMouseenter: r[2] || (r[2] = () => kt(!0)),
|
|
966
959
|
onMouseleave: r[3] || (r[3] = () => kt(!1))
|
|
967
960
|
}, [
|
|
968
|
-
e.value.userOptionsButtons.annotator ? (
|
|
961
|
+
e.value.userOptionsButtons.annotator ? (l(), Ie(s(se), {
|
|
969
962
|
key: 0,
|
|
970
963
|
svgRef: s(Qe),
|
|
971
964
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -973,14 +966,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
973
966
|
active: He.value,
|
|
974
967
|
onClose: at
|
|
975
968
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
976
|
-
Zt.value ? (
|
|
969
|
+
Zt.value ? (l(), n("div", {
|
|
977
970
|
key: 1,
|
|
978
971
|
ref_key: "noTitle",
|
|
979
972
|
ref: ft,
|
|
980
973
|
class: "vue-data-ui-no-title-space",
|
|
981
974
|
style: "height:36px; width: 100%;background:transparent"
|
|
982
975
|
}, null, 512)) : m("", !0),
|
|
983
|
-
e.value.showUserOptions && (xt.value || Ne.value) ? (
|
|
976
|
+
e.value.showUserOptions && (xt.value || Ne.value) ? (l(), Ie(s(st), {
|
|
984
977
|
ref: "details",
|
|
985
978
|
key: `user_option_${ht.value}`,
|
|
986
979
|
backgroundColor: e.value.backgroundColor,
|
|
@@ -1012,11 +1005,11 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1012
1005
|
style: B({
|
|
1013
1006
|
visibility: xt.value ? Ne.value ? "visible" : "hidden" : "visible"
|
|
1014
1007
|
})
|
|
1015
|
-
},
|
|
1008
|
+
}, ka({ _: 2 }, [
|
|
1016
1009
|
a.$slots.menuIcon ? {
|
|
1017
1010
|
name: "menuIcon",
|
|
1018
|
-
fn: ne(({ isOpen: t, color:
|
|
1019
|
-
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color:
|
|
1011
|
+
fn: ne(({ isOpen: t, color: o }) => [
|
|
1012
|
+
W(a.$slots, "menuIcon", me(ge({ isOpen: t, color: o })), void 0, !0)
|
|
1020
1013
|
]),
|
|
1021
1014
|
key: "0"
|
|
1022
1015
|
} : void 0,
|
|
@@ -1043,20 +1036,20 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1043
1036
|
} : void 0,
|
|
1044
1037
|
a.$slots.optionFullscreen ? {
|
|
1045
1038
|
name: "optionFullscreen",
|
|
1046
|
-
fn: ne(({ toggleFullscreen: t, isFullscreen:
|
|
1047
|
-
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen:
|
|
1039
|
+
fn: ne(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
1040
|
+
W(a.$slots, "optionFullscreen", me(ge({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
1048
1041
|
]),
|
|
1049
1042
|
key: "4"
|
|
1050
1043
|
} : void 0,
|
|
1051
1044
|
a.$slots.optionAnnotator ? {
|
|
1052
1045
|
name: "optionAnnotator",
|
|
1053
|
-
fn: ne(({ toggleAnnotator: t, isAnnotator:
|
|
1054
|
-
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator:
|
|
1046
|
+
fn: ne(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
1047
|
+
W(a.$slots, "optionAnnotator", me(ge({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
1055
1048
|
]),
|
|
1056
1049
|
key: "5"
|
|
1057
1050
|
} : void 0
|
|
1058
1051
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
1059
|
-
e.value.title ? (
|
|
1052
|
+
e.value.title ? (l(), n("div", {
|
|
1060
1053
|
key: 3,
|
|
1061
1054
|
ref_key: "quickChartTitle",
|
|
1062
1055
|
ref: Oe,
|
|
@@ -1066,16 +1059,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1066
1059
|
C("div", {
|
|
1067
1060
|
id: `legend-top-${Y.value}`
|
|
1068
1061
|
}, null, 8, Ka),
|
|
1069
|
-
$.value ? (
|
|
1062
|
+
$.value ? (l(), n("svg", {
|
|
1070
1063
|
key: 4,
|
|
1071
1064
|
ref_key: "svgRef",
|
|
1072
1065
|
ref: Qe,
|
|
1073
|
-
xmlns: s(
|
|
1066
|
+
xmlns: s(Ea),
|
|
1074
1067
|
viewBox: Jt.value,
|
|
1075
1068
|
style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
1076
1069
|
}, [
|
|
1077
1070
|
be(s(j)),
|
|
1078
|
-
a.$slots["chart-background"] && $.value === A.BAR ? (
|
|
1071
|
+
a.$slots["chart-background"] && $.value === A.BAR ? (l(), n("foreignObject", {
|
|
1079
1072
|
key: 0,
|
|
1080
1073
|
x: v.value.drawingArea.left,
|
|
1081
1074
|
y: v.value.drawingArea.top,
|
|
@@ -1087,7 +1080,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1087
1080
|
}, [
|
|
1088
1081
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1089
1082
|
], 8, tl)) : m("", !0),
|
|
1090
|
-
a.$slots["chart-background"] && $.value === A.LINE ? (
|
|
1083
|
+
a.$slots["chart-background"] && $.value === A.LINE ? (l(), n("foreignObject", {
|
|
1091
1084
|
key: 1,
|
|
1092
1085
|
x: c.value.drawingArea.left,
|
|
1093
1086
|
y: c.value.drawingArea.top,
|
|
@@ -1099,7 +1092,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1099
1092
|
}, [
|
|
1100
1093
|
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1101
1094
|
], 8, al)) : m("", !0),
|
|
1102
|
-
a.$slots["chart-background"] && $.value === A.DONUT ? (
|
|
1095
|
+
a.$slots["chart-background"] && $.value === A.DONUT ? (l(), n("foreignObject", {
|
|
1103
1096
|
key: 2,
|
|
1104
1097
|
x: 0,
|
|
1105
1098
|
y: 0,
|
|
@@ -1142,12 +1135,12 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1142
1135
|
}, null, 8, ul)
|
|
1143
1136
|
], 8, il)
|
|
1144
1137
|
]),
|
|
1145
|
-
$.value === A.DONUT ? (
|
|
1146
|
-
e.value.showDataLabels ? (
|
|
1147
|
-
(
|
|
1148
|
-
I.value.isArcBigEnough(t) ? (
|
|
1138
|
+
$.value === A.DONUT ? (l(), n(x, { key: 3 }, [
|
|
1139
|
+
e.value.showDataLabels ? (l(), n("g", rl, [
|
|
1140
|
+
(l(!0), n(x, null, T(I.value.chart, (t, o) => (l(), n(x, null, [
|
|
1141
|
+
I.value.isArcBigEnough(t) ? (l(), n("path", {
|
|
1149
1142
|
key: 0,
|
|
1150
|
-
d: s(
|
|
1143
|
+
d: s(Ta)(t, { x: S.value.width / 2, y: S.value.height / 2 }, 16, 16, !1, !1, S.value.height * Ct.value, 12, e.value.donutCurvedMarkers),
|
|
1151
1144
|
stroke: t.color,
|
|
1152
1145
|
"stroke-width": e.value.donutLabelMarkerStrokeWidth,
|
|
1153
1146
|
"stroke-linecap": "round",
|
|
@@ -1165,24 +1158,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1165
1158
|
filter: e.value.donutUseShadow ? `url(#shadow_${Y.value})` : ""
|
|
1166
1159
|
}, null, 8, vl),
|
|
1167
1160
|
C("g", dl, [
|
|
1168
|
-
(
|
|
1161
|
+
(l(!0), n(x, null, T(I.value.chart, (t, o) => (l(), n("path", {
|
|
1169
1162
|
d: t.arcSlice,
|
|
1170
1163
|
fill: t.color,
|
|
1171
1164
|
stroke: Me.value,
|
|
1172
1165
|
"stroke-width": e.value.donutStrokeWidth,
|
|
1173
1166
|
filter: Ce(t.id)
|
|
1174
1167
|
}, null, 8, cl))), 256)),
|
|
1175
|
-
(
|
|
1168
|
+
(l(!0), n(x, null, T(I.value.chart, (t, o) => (l(), n("path", {
|
|
1176
1169
|
d: t.arcSlice,
|
|
1177
1170
|
fill: "transparent",
|
|
1178
|
-
onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex:
|
|
1179
|
-
onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex:
|
|
1180
|
-
onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex:
|
|
1171
|
+
onMouseenter: (u) => I.value.useTooltip({ datapoint: t, seriesIndex: o }),
|
|
1172
|
+
onMouseout: (u) => I.value.killTooltip({ datapoint: t, seriesIndex: o }),
|
|
1173
|
+
onClick: (u) => I.value.selectDatapoint({ datapoint: t, seriesIndex: o })
|
|
1181
1174
|
}, null, 40, fl))), 256))
|
|
1182
1175
|
]),
|
|
1183
|
-
e.value.showDataLabels ? (
|
|
1184
|
-
(
|
|
1185
|
-
I.value.isArcBigEnough(t) ? (
|
|
1176
|
+
e.value.showDataLabels ? (l(), n("g", hl, [
|
|
1177
|
+
(l(!0), n(x, null, T(I.value.chart, (t, o) => (l(), n(x, null, [
|
|
1178
|
+
I.value.isArcBigEnough(t) ? (l(), n("circle", {
|
|
1186
1179
|
key: 0,
|
|
1187
1180
|
cx: s(Pe)(t).x,
|
|
1188
1181
|
cy: s(ut)(t) - 3.7,
|
|
@@ -1192,7 +1185,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1192
1185
|
r: 3,
|
|
1193
1186
|
filter: Ce(t.id)
|
|
1194
1187
|
}, null, 8, ml)) : m("", !0),
|
|
1195
|
-
I.value.isArcBigEnough(t) ? (
|
|
1188
|
+
I.value.isArcBigEnough(t) ? (l(), n("text", {
|
|
1196
1189
|
key: 1,
|
|
1197
1190
|
"text-anchor": s(Pe)(t, !0, 20).anchor,
|
|
1198
1191
|
x: s(Pe)(t, !0).x,
|
|
@@ -1209,9 +1202,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1209
1202
|
s: e.value.valueSuffix,
|
|
1210
1203
|
r: e.value.dataLabelRoundingValue
|
|
1211
1204
|
}),
|
|
1212
|
-
{ datapoint: t, seriesIndex:
|
|
1205
|
+
{ datapoint: t, seriesIndex: o }
|
|
1213
1206
|
)) + ") ", 9, gl)) : m("", !0),
|
|
1214
|
-
I.value.isArcBigEnough(t, !0, 20) ? (
|
|
1207
|
+
I.value.isArcBigEnough(t, !0, 20) ? (l(), n("text", {
|
|
1215
1208
|
key: 2,
|
|
1216
1209
|
"text-anchor": s(Pe)(t).anchor,
|
|
1217
1210
|
x: s(Pe)(t, !0).x,
|
|
@@ -1222,7 +1215,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1222
1215
|
}, U(t.name), 9, pl)) : m("", !0)
|
|
1223
1216
|
], 64))), 256))
|
|
1224
1217
|
])) : m("", !0),
|
|
1225
|
-
e.value.donutShowTotal ? (
|
|
1218
|
+
e.value.donutShowTotal ? (l(), n("g", yl, [
|
|
1226
1219
|
C("text", {
|
|
1227
1220
|
"text-anchor": "middle",
|
|
1228
1221
|
x: I.value.drawingArea.centerX,
|
|
@@ -1244,10 +1237,10 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1244
1237
|
})), 9, kl)
|
|
1245
1238
|
])) : m("", !0)
|
|
1246
1239
|
], 64)) : m("", !0),
|
|
1247
|
-
$.value === A.LINE ? (
|
|
1248
|
-
e.value.xyShowGrid ? (
|
|
1249
|
-
(
|
|
1250
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1240
|
+
$.value === A.LINE ? (l(), n(x, { key: 4 }, [
|
|
1241
|
+
e.value.xyShowGrid ? (l(), n("g", bl, [
|
|
1242
|
+
(l(!0), n(x, null, T(c.value.yLabels, (t) => (l(), n(x, null, [
|
|
1243
|
+
t.y <= c.value.drawingArea.bottom ? (l(), n("line", {
|
|
1251
1244
|
key: 0,
|
|
1252
1245
|
x1: c.value.drawingArea.left,
|
|
1253
1246
|
x2: c.value.drawingArea.right,
|
|
@@ -1258,9 +1251,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1258
1251
|
"stroke-linecap": "round"
|
|
1259
1252
|
}, null, 8, Sl)) : m("", !0)
|
|
1260
1253
|
], 64))), 256)),
|
|
1261
|
-
(
|
|
1262
|
-
x1: c.value.drawingArea.left + c.value.slotSize *
|
|
1263
|
-
x2: c.value.drawingArea.left + c.value.slotSize *
|
|
1254
|
+
(l(!0), n(x, null, T(c.value.extremes.maxSeries + 1, (t, o) => (l(), n("line", {
|
|
1255
|
+
x1: c.value.drawingArea.left + c.value.slotSize * o,
|
|
1256
|
+
x2: c.value.drawingArea.left + c.value.slotSize * o,
|
|
1264
1257
|
y1: c.value.drawingArea.top,
|
|
1265
1258
|
y2: c.value.drawingArea.bottom,
|
|
1266
1259
|
stroke: e.value.xyGridStroke,
|
|
@@ -1268,7 +1261,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1268
1261
|
"stroke-linecap": "round"
|
|
1269
1262
|
}, null, 8, wl))), 256))
|
|
1270
1263
|
])) : m("", !0),
|
|
1271
|
-
e.value.xyShowAxis ? (
|
|
1264
|
+
e.value.xyShowAxis ? (l(), n("g", Al, [
|
|
1272
1265
|
C("line", {
|
|
1273
1266
|
x1: c.value.drawingArea.left,
|
|
1274
1267
|
x2: c.value.drawingArea.left,
|
|
@@ -1288,14 +1281,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1288
1281
|
"stroke-linecap": "round"
|
|
1289
1282
|
}, null, 8, _l)
|
|
1290
1283
|
])) : m("", !0),
|
|
1291
|
-
e.value.xyShowScale ? (
|
|
1284
|
+
e.value.xyShowScale ? (l(), n("g", {
|
|
1292
1285
|
key: 2,
|
|
1293
1286
|
class: "yLabels",
|
|
1294
1287
|
ref_key: "scaleLabels",
|
|
1295
1288
|
ref: Re
|
|
1296
1289
|
}, [
|
|
1297
|
-
(
|
|
1298
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1290
|
+
(l(!0), n(x, null, T(c.value.yLabels, (t, o) => (l(), n(x, null, [
|
|
1291
|
+
t.y <= c.value.drawingArea.bottom ? (l(), n("line", {
|
|
1299
1292
|
key: 0,
|
|
1300
1293
|
x1: t.x + 4,
|
|
1301
1294
|
x2: c.value.drawingArea.left,
|
|
@@ -1305,7 +1298,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1305
1298
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1306
1299
|
"stroke-linecap": "round"
|
|
1307
1300
|
}, null, 8, zl)) : m("", !0),
|
|
1308
|
-
t.y <= c.value.drawingArea.bottom ? (
|
|
1301
|
+
t.y <= c.value.drawingArea.bottom ? (l(), n("text", {
|
|
1309
1302
|
key: 1,
|
|
1310
1303
|
x: t.x,
|
|
1311
1304
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1321,16 +1314,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1321
1314
|
s: e.value.valueSuffix,
|
|
1322
1315
|
r: e.value.dataLabelRoundingValue
|
|
1323
1316
|
}),
|
|
1324
|
-
{ datapoint: t, seriesIndex:
|
|
1317
|
+
{ datapoint: t, seriesIndex: o }
|
|
1325
1318
|
)), 9, Cl)) : m("", !0)
|
|
1326
1319
|
], 64))), 256))
|
|
1327
1320
|
], 512)) : m("", !0),
|
|
1328
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1329
|
-
(
|
|
1330
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1321
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (l(), n("g", $l, [
|
|
1322
|
+
(l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
|
|
1323
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("line", {
|
|
1331
1324
|
key: 0,
|
|
1332
|
-
x1: c.value.drawingArea.left + c.value.slotSize * (
|
|
1333
|
-
x2: c.value.drawingArea.left + c.value.slotSize * (
|
|
1325
|
+
x1: c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2,
|
|
1326
|
+
x2: c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2,
|
|
1334
1327
|
y1: c.value.drawingArea.bottom,
|
|
1335
1328
|
y2: c.value.drawingArea.bottom + 4,
|
|
1336
1329
|
stroke: e.value.xyAxisStroke,
|
|
@@ -1342,16 +1335,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1342
1335
|
ref_key: "timeLabelsEls",
|
|
1343
1336
|
ref: ae
|
|
1344
1337
|
}, [
|
|
1345
|
-
(
|
|
1346
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1338
|
+
(l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
|
|
1339
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("g", Tl, [
|
|
1347
1340
|
String(t).includes(`
|
|
1348
|
-
`) ? (
|
|
1341
|
+
`) ? (l(), n("text", {
|
|
1349
1342
|
key: 1,
|
|
1350
1343
|
class: "vue-data-ui-time-label",
|
|
1351
1344
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1352
1345
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1353
1346
|
fill: e.value.color,
|
|
1354
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1347
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1355
1348
|
innerHTML: s(Bt)({
|
|
1356
1349
|
content: String(t),
|
|
1357
1350
|
fontSize: e.value.xyLabelsXFontSize,
|
|
@@ -1359,21 +1352,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1359
1352
|
x: 0,
|
|
1360
1353
|
y: 0
|
|
1361
1354
|
})
|
|
1362
|
-
}, null, 8, Pl)) : (
|
|
1355
|
+
}, null, 8, Pl)) : (l(), n("text", {
|
|
1363
1356
|
key: 0,
|
|
1364
1357
|
class: "vue-data-ui-time-label",
|
|
1365
1358
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1366
1359
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1367
1360
|
fill: e.value.color,
|
|
1368
|
-
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (
|
|
1361
|
+
transform: `translate(${c.value.drawingArea.left + c.value.slotSize * (o + 1) - c.value.slotSize / 2}, ${c.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1369
1362
|
}, U(t), 9, Il))
|
|
1370
1363
|
])) : m("", !0)
|
|
1371
1364
|
], 64))), 256))
|
|
1372
1365
|
], 512)
|
|
1373
1366
|
])) : m("", !0),
|
|
1374
1367
|
C("g", Ol, [
|
|
1375
|
-
(
|
|
1376
|
-
e.value.lineSmooth ? (
|
|
1368
|
+
(l(!0), n(x, null, T(c.value.dataset, (t, o) => (l(), n("g", Fl, [
|
|
1369
|
+
e.value.lineSmooth ? (l(), n(x, { key: 0 }, [
|
|
1377
1370
|
C("path", {
|
|
1378
1371
|
ref_for: !0,
|
|
1379
1372
|
ref_key: "pathWrapper",
|
|
@@ -1398,7 +1391,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1398
1391
|
class: de({ "quick-animation": !s(V), "vue-data-ui-line-animated": e.value.lineAnimated && !s(V) }),
|
|
1399
1392
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1400
1393
|
}, null, 14, Ml)
|
|
1401
|
-
], 64)) : (
|
|
1394
|
+
], 64)) : (l(), n(x, { key: 1 }, [
|
|
1402
1395
|
C("path", {
|
|
1403
1396
|
ref_for: !0,
|
|
1404
1397
|
ref_key: "pathWrapper",
|
|
@@ -1424,7 +1417,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1424
1417
|
style: B({ transition: s(V) ? void 0 : "all 0.3s ease-in-out" })
|
|
1425
1418
|
}, null, 14, Bl)
|
|
1426
1419
|
], 64)),
|
|
1427
|
-
(
|
|
1420
|
+
(l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("circle", {
|
|
1428
1421
|
cx: u.x,
|
|
1429
1422
|
cy: s(ue)(u.y),
|
|
1430
1423
|
r: 3,
|
|
@@ -1436,9 +1429,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1436
1429
|
}, null, 14, Dl))), 256))
|
|
1437
1430
|
]))), 256))
|
|
1438
1431
|
]),
|
|
1439
|
-
e.value.showDataLabels ? (
|
|
1440
|
-
(
|
|
1441
|
-
(
|
|
1432
|
+
e.value.showDataLabels ? (l(), n("g", Ul, [
|
|
1433
|
+
(l(!0), n(x, null, T(c.value.dataset, (t, o) => (l(), n(x, null, [
|
|
1434
|
+
(l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("text", {
|
|
1442
1435
|
"text-anchor": "middle",
|
|
1443
1436
|
"font-size": e.value.dataLabelFontSize,
|
|
1444
1437
|
fill: t.color,
|
|
@@ -1459,24 +1452,24 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1459
1452
|
)), 15, Vl))), 256))
|
|
1460
1453
|
], 64))), 256))
|
|
1461
1454
|
])) : m("", !0),
|
|
1462
|
-
Ke.value ? (
|
|
1463
|
-
(
|
|
1464
|
-
x: c.value.drawingArea.left +
|
|
1455
|
+
Ke.value ? (l(), n("g", ql, [
|
|
1456
|
+
(l(!0), n(x, null, T(c.value.extremes.maxSeries, (t, o) => (l(), n("rect", {
|
|
1457
|
+
x: c.value.drawingArea.left + o * c.value.slotSize,
|
|
1465
1458
|
y: c.value.drawingArea.top,
|
|
1466
1459
|
height: c.value.drawingArea.height <= 0 ? 1e-5 : c.value.drawingArea.height,
|
|
1467
1460
|
width: c.value.slotSize <= 0 ? 1e-5 : c.value.slotSize,
|
|
1468
|
-
fill: [te.value, le.value].includes(
|
|
1461
|
+
fill: [te.value, le.value].includes(o) ? e.value.xyHighlighterColor : "transparent",
|
|
1469
1462
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1470
|
-
onMouseenter: (u) => c.value.useTooltip(
|
|
1471
|
-
onMouseleave: (u) => c.value.killTooltip(
|
|
1472
|
-
onClick: (u) => c.value.selectDatapoint(
|
|
1463
|
+
onMouseenter: (u) => c.value.useTooltip(o),
|
|
1464
|
+
onMouseleave: (u) => c.value.killTooltip(o),
|
|
1465
|
+
onClick: (u) => c.value.selectDatapoint(o)
|
|
1473
1466
|
}, null, 44, Hl))), 256))
|
|
1474
1467
|
])) : m("", !0)
|
|
1475
1468
|
], 64)) : m("", !0),
|
|
1476
|
-
$.value === A.BAR ? (
|
|
1477
|
-
e.value.xyShowGrid ? (
|
|
1478
|
-
(
|
|
1479
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1469
|
+
$.value === A.BAR ? (l(), n(x, { key: 5 }, [
|
|
1470
|
+
e.value.xyShowGrid ? (l(), n("g", Wl, [
|
|
1471
|
+
(l(!0), n(x, null, T(v.value.yLabels, (t) => (l(), n(x, null, [
|
|
1472
|
+
t.y <= v.value.drawingArea.bottom ? (l(), n("line", {
|
|
1480
1473
|
key: 0,
|
|
1481
1474
|
x1: v.value.drawingArea.left,
|
|
1482
1475
|
x2: v.value.drawingArea.right,
|
|
@@ -1487,9 +1480,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1487
1480
|
"stroke-linecap": "round"
|
|
1488
1481
|
}, null, 8, Xl)) : m("", !0)
|
|
1489
1482
|
], 64))), 256)),
|
|
1490
|
-
(
|
|
1491
|
-
x1: v.value.drawingArea.left + v.value.slotSize *
|
|
1492
|
-
x2: v.value.drawingArea.left + v.value.slotSize *
|
|
1483
|
+
(l(!0), n(x, null, T(v.value.extremes.maxSeries + 1, (t, o) => (l(), n("line", {
|
|
1484
|
+
x1: v.value.drawingArea.left + v.value.slotSize * o,
|
|
1485
|
+
x2: v.value.drawingArea.left + v.value.slotSize * o,
|
|
1493
1486
|
y1: v.value.drawingArea.top,
|
|
1494
1487
|
y2: v.value.drawingArea.bottom,
|
|
1495
1488
|
stroke: e.value.xyGridStroke,
|
|
@@ -1497,7 +1490,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1497
1490
|
"stroke-linecap": "round"
|
|
1498
1491
|
}, null, 8, jl))), 256))
|
|
1499
1492
|
])) : m("", !0),
|
|
1500
|
-
e.value.xyShowAxis ? (
|
|
1493
|
+
e.value.xyShowAxis ? (l(), n("g", Gl, [
|
|
1501
1494
|
C("line", {
|
|
1502
1495
|
x1: v.value.drawingArea.left,
|
|
1503
1496
|
x2: v.value.drawingArea.left,
|
|
@@ -1517,14 +1510,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1517
1510
|
"stroke-linecap": "round"
|
|
1518
1511
|
}, null, 8, Zl)
|
|
1519
1512
|
])) : m("", !0),
|
|
1520
|
-
e.value.xyShowScale ? (
|
|
1513
|
+
e.value.xyShowScale ? (l(), n("g", {
|
|
1521
1514
|
key: 2,
|
|
1522
1515
|
class: "yLabels",
|
|
1523
1516
|
ref_key: "scaleLabels",
|
|
1524
1517
|
ref: Re
|
|
1525
1518
|
}, [
|
|
1526
|
-
(
|
|
1527
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1519
|
+
(l(!0), n(x, null, T(v.value.yLabels, (t, o) => (l(), n(x, null, [
|
|
1520
|
+
t.y <= v.value.drawingArea.bottom ? (l(), n("line", {
|
|
1528
1521
|
key: 0,
|
|
1529
1522
|
x1: t.x + 4,
|
|
1530
1523
|
x2: v.value.drawingArea.left,
|
|
@@ -1534,7 +1527,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1534
1527
|
"stroke-width": e.value.xyAxisStrokeWidth,
|
|
1535
1528
|
"stroke-linecap": "round"
|
|
1536
1529
|
}, null, 8, Jl)) : m("", !0),
|
|
1537
|
-
t.y <= v.value.drawingArea.bottom ? (
|
|
1530
|
+
t.y <= v.value.drawingArea.bottom ? (l(), n("text", {
|
|
1538
1531
|
key: 1,
|
|
1539
1532
|
x: t.x,
|
|
1540
1533
|
y: t.y + e.value.xyLabelsYFontSize / 3,
|
|
@@ -1550,14 +1543,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1550
1543
|
s: e.value.valueSuffix,
|
|
1551
1544
|
r: e.value.dataLabelRoundingValue
|
|
1552
1545
|
}),
|
|
1553
|
-
{ datapoint: t, seriesIndex:
|
|
1546
|
+
{ datapoint: t, seriesIndex: o }
|
|
1554
1547
|
)), 9, Ql)) : m("", !0)
|
|
1555
1548
|
], 64))), 256))
|
|
1556
1549
|
], 512)) : m("", !0),
|
|
1557
|
-
e.value.xyShowScale && e.value.xyPeriods.length ? (
|
|
1558
|
-
(
|
|
1559
|
-
x1: v.value.drawingArea.left + v.value.slotSize * (
|
|
1560
|
-
x2: v.value.drawingArea.left + v.value.slotSize * (
|
|
1550
|
+
e.value.xyShowScale && e.value.xyPeriods.length ? (l(), n("g", Kl, [
|
|
1551
|
+
(l(!0), n(x, null, T(e.value.xyPeriods.slice(y.value.start, y.value.end), (t, o) => (l(), n("line", {
|
|
1552
|
+
x1: v.value.drawingArea.left + v.value.slotSize * (o + 1) - v.value.slotSize / 2,
|
|
1553
|
+
x2: v.value.drawingArea.left + v.value.slotSize * (o + 1) - v.value.slotSize / 2,
|
|
1561
1554
|
y1: v.value.drawingArea.bottom,
|
|
1562
1555
|
y2: v.value.drawingArea.bottom + 4,
|
|
1563
1556
|
stroke: e.value.xyAxisStroke,
|
|
@@ -1568,16 +1561,16 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1568
1561
|
ref_key: "timeLabelsEls",
|
|
1569
1562
|
ref: ae
|
|
1570
1563
|
}, [
|
|
1571
|
-
(
|
|
1572
|
-
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo &&
|
|
1564
|
+
(l(!0), n(x, null, T(Q.value.map((t) => t.text), (t, o) => (l(), n(x, null, [
|
|
1565
|
+
!e.value.xyPeriodsShowOnlyAtModulo || e.value.xyPeriodsShowOnlyAtModulo && o % Math.floor((y.value.end - y.value.start) / ke.value) === 0 || y.value.end - y.value.start <= ke.value ? (l(), n("g", to, [
|
|
1573
1566
|
String(t).includes(`
|
|
1574
|
-
`) ? (
|
|
1567
|
+
`) ? (l(), n("text", {
|
|
1575
1568
|
key: 1,
|
|
1576
1569
|
class: "vue-data-ui-time-label",
|
|
1577
1570
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1578
1571
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1579
1572
|
fill: e.value.color,
|
|
1580
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1573
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (o + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`,
|
|
1581
1574
|
innerHTML: s(Bt)({
|
|
1582
1575
|
content: String(t),
|
|
1583
1576
|
fontSize: e.value.xyLabelsXFontSize,
|
|
@@ -1585,21 +1578,21 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1585
1578
|
x: 0,
|
|
1586
1579
|
y: 0
|
|
1587
1580
|
})
|
|
1588
|
-
}, null, 8, lo)) : (
|
|
1581
|
+
}, null, 8, lo)) : (l(), n("text", {
|
|
1589
1582
|
key: 0,
|
|
1590
1583
|
class: "vue-data-ui-time-label",
|
|
1591
1584
|
"font-size": e.value.xyLabelsXFontSize,
|
|
1592
1585
|
"text-anchor": e.value.xyPeriodLabelsRotation > 0 ? "start" : e.value.xyPeriodLabelsRotation < 0 ? "end" : "middle",
|
|
1593
1586
|
fill: e.value.color,
|
|
1594
|
-
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (
|
|
1587
|
+
transform: `translate(${v.value.drawingArea.left + v.value.slotSize * (o + 1) - v.value.slotSize / 2}, ${v.value.drawingArea.bottom + e.value.xyLabelsXFontSize + 6}), rotate(${e.value.xyPeriodLabelsRotation})`
|
|
1595
1588
|
}, U(t), 9, ao))
|
|
1596
1589
|
])) : m("", !0)
|
|
1597
1590
|
], 64))), 256))
|
|
1598
1591
|
], 512)
|
|
1599
1592
|
])) : m("", !0),
|
|
1600
1593
|
C("g", oo, [
|
|
1601
|
-
(
|
|
1602
|
-
(
|
|
1594
|
+
(l(!0), n(x, null, T(v.value.dataset, (t, o) => (l(), n(x, null, [
|
|
1595
|
+
(l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("rect", {
|
|
1603
1596
|
x: u.x,
|
|
1604
1597
|
width: u.width <= 0 ? 1e-5 : u.width,
|
|
1605
1598
|
height: s(ue)(u.height <= 0 ? 1e-5 : u.height),
|
|
@@ -1610,14 +1603,14 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1610
1603
|
"stroke-linecap": "round",
|
|
1611
1604
|
class: de({ "vue-data-ui-bar-animated": e.value.barAnimated && u.value < 0 && !s(V) })
|
|
1612
1605
|
}, [
|
|
1613
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1606
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (l(), n("animate", {
|
|
1614
1607
|
key: 0,
|
|
1615
1608
|
attributeName: "height",
|
|
1616
1609
|
from: 0,
|
|
1617
1610
|
to: u.height,
|
|
1618
1611
|
dur: "0.5s"
|
|
1619
1612
|
}, null, 8, io)) : m("", !0),
|
|
1620
|
-
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (
|
|
1613
|
+
e.value.barAnimated && u.value > 0 && !s(Be) && !s(De) ? (l(), n("animate", {
|
|
1621
1614
|
key: 1,
|
|
1622
1615
|
attributeName: "y",
|
|
1623
1616
|
from: v.value.absoluteZero,
|
|
@@ -1627,9 +1620,9 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1627
1620
|
], 10, no))), 256))
|
|
1628
1621
|
], 64))), 256))
|
|
1629
1622
|
]),
|
|
1630
|
-
e.value.showDataLabels ? (
|
|
1631
|
-
(
|
|
1632
|
-
(
|
|
1623
|
+
e.value.showDataLabels ? (l(), n("g", ro, [
|
|
1624
|
+
(l(!0), n(x, null, T(v.value.dataset, (t, o) => (l(), n(x, null, [
|
|
1625
|
+
(l(!0), n(x, null, T(t.coordinates, (u, p) => (l(), n("text", {
|
|
1633
1626
|
x: u.x + u.width / 2,
|
|
1634
1627
|
y: s(ue)(u.y) - e.value.dataLabelFontSize / 2,
|
|
1635
1628
|
"text-anchor": "middle",
|
|
@@ -1649,22 +1642,22 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1649
1642
|
)), 9, so))), 256))
|
|
1650
1643
|
], 64))), 256))
|
|
1651
1644
|
])) : m("", !0),
|
|
1652
|
-
Ke.value ? (
|
|
1653
|
-
(
|
|
1654
|
-
x: v.value.drawingArea.left +
|
|
1645
|
+
Ke.value ? (l(), n("g", vo, [
|
|
1646
|
+
(l(!0), n(x, null, T(v.value.extremes.maxSeries, (t, o) => (l(), n("rect", {
|
|
1647
|
+
x: v.value.drawingArea.left + o * v.value.slotSize,
|
|
1655
1648
|
y: v.value.drawingArea.top,
|
|
1656
1649
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1657
1650
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1658
|
-
fill: [te.value, le.value].includes(
|
|
1651
|
+
fill: [te.value, le.value].includes(o) ? e.value.xyHighlighterColor : "transparent",
|
|
1659
1652
|
style: B(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1660
|
-
onMouseenter: (u) => v.value.useTooltip(
|
|
1661
|
-
onMouseleave: (u) => v.value.killTooltip(
|
|
1662
|
-
onClick: (u) => v.value.selectDatapoint(
|
|
1653
|
+
onMouseenter: (u) => v.value.useTooltip(o),
|
|
1654
|
+
onMouseleave: (u) => v.value.killTooltip(o),
|
|
1655
|
+
onClick: (u) => v.value.selectDatapoint(o)
|
|
1663
1656
|
}, null, 44, co))), 256))
|
|
1664
1657
|
])) : m("", !0)
|
|
1665
1658
|
], 64)) : m("", !0),
|
|
1666
|
-
[A.LINE, A.BAR].includes($.value) ? (
|
|
1667
|
-
e.value.xAxisLabel && $.value === A.LINE ? (
|
|
1659
|
+
[A.LINE, A.BAR].includes($.value) ? (l(), n("g", fo, [
|
|
1660
|
+
e.value.xAxisLabel && $.value === A.LINE ? (l(), n("g", {
|
|
1668
1661
|
key: 0,
|
|
1669
1662
|
ref_key: "xAxisLabel",
|
|
1670
1663
|
ref: gt
|
|
@@ -1677,7 +1670,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1677
1670
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1678
1671
|
}, U(e.value.xAxisLabel), 9, ho)
|
|
1679
1672
|
], 512)) : m("", !0),
|
|
1680
|
-
e.value.xAxisLabel && $.value === A.BAR ? (
|
|
1673
|
+
e.value.xAxisLabel && $.value === A.BAR ? (l(), n("g", {
|
|
1681
1674
|
key: 1,
|
|
1682
1675
|
ref_key: "xAxisLabel",
|
|
1683
1676
|
ref: gt
|
|
@@ -1690,7 +1683,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1690
1683
|
y: S.value.height - e.value.axisLabelsFontSize / 3
|
|
1691
1684
|
}, U(e.value.xAxisLabel), 9, mo)
|
|
1692
1685
|
], 512)) : m("", !0),
|
|
1693
|
-
e.value.yAxisLabel && $.value === A.LINE ? (
|
|
1686
|
+
e.value.yAxisLabel && $.value === A.LINE ? (l(), n("g", {
|
|
1694
1687
|
key: 2,
|
|
1695
1688
|
ref_key: "yAxisLabel",
|
|
1696
1689
|
ref: pt
|
|
@@ -1702,7 +1695,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1702
1695
|
"text-anchor": "middle"
|
|
1703
1696
|
}, U(e.value.yAxisLabel), 9, go)
|
|
1704
1697
|
], 512)) : m("", !0),
|
|
1705
|
-
e.value.yAxisLabel && $.value === A.BAR ? (
|
|
1698
|
+
e.value.yAxisLabel && $.value === A.BAR ? (l(), n("g", {
|
|
1706
1699
|
key: 3,
|
|
1707
1700
|
ref_key: "yAxisLabel",
|
|
1708
1701
|
ref: pt
|
|
@@ -1716,15 +1709,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1716
1709
|
], 512)) : m("", !0)
|
|
1717
1710
|
])) : m("", !0)
|
|
1718
1711
|
], 12, el)) : m("", !0),
|
|
1719
|
-
a.$slots.watermark ? (
|
|
1712
|
+
a.$slots.watermark ? (l(), n("div", yo, [
|
|
1720
1713
|
W(a.$slots, "watermark", me(ge({ isPrinting: s(Be) || s(De) })), void 0, !0)
|
|
1721
1714
|
])) : m("", !0),
|
|
1722
|
-
[A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (
|
|
1715
|
+
[A.BAR, A.LINE].includes($.value) && e.value.zoomXy && k.value.maxSeriesLength > 1 ? (l(), n("div", {
|
|
1723
1716
|
key: `slicer_${Fe.value}`,
|
|
1724
1717
|
ref_key: "quickChartSlicer",
|
|
1725
1718
|
ref: dt
|
|
1726
1719
|
}, [
|
|
1727
|
-
(
|
|
1720
|
+
(l(), Ie(qa, {
|
|
1728
1721
|
ref_key: "slicerComponent",
|
|
1729
1722
|
ref: $t,
|
|
1730
1723
|
key: `slicer_${Fe.value}`,
|
|
@@ -1776,18 +1769,18 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1776
1769
|
C("div", {
|
|
1777
1770
|
id: `legend-bottom-${Y.value}`
|
|
1778
1771
|
}, null, 8, xo),
|
|
1779
|
-
mt.value ? (
|
|
1772
|
+
mt.value ? (l(), Ie(ba, {
|
|
1780
1773
|
key: 7,
|
|
1781
1774
|
to: e.value.legendPosition === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
1782
1775
|
}, [
|
|
1783
|
-
e.value.showLegend ? (
|
|
1776
|
+
e.value.showLegend ? (l(), n("div", {
|
|
1784
1777
|
key: 0,
|
|
1785
1778
|
ref_key: "quickChartLegend",
|
|
1786
1779
|
ref: vt,
|
|
1787
1780
|
class: "vue-ui-quick-chart-legend",
|
|
1788
1781
|
style: B(`background:transparent;color:${e.value.color}`)
|
|
1789
1782
|
}, [
|
|
1790
|
-
$.value === A.DONUT ? (
|
|
1783
|
+
$.value === A.DONUT ? (l(!0), n(x, { key: 0 }, T(I.value.legend, (t, o) => (l(), n("div", {
|
|
1791
1784
|
class: "vue-ui-quick-chart-legend-item",
|
|
1792
1785
|
onClick: (u) => {
|
|
1793
1786
|
Qt(t, I.value.dataset), pe("selectLegend", t);
|
|
@@ -1797,7 +1790,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1797
1790
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1798
1791
|
key: 0,
|
|
1799
1792
|
ref_for: !0
|
|
1800
|
-
}, { legend: t }), void 0, !0) : (
|
|
1793
|
+
}, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
|
|
1801
1794
|
be(s(q), {
|
|
1802
1795
|
name: e.value.legendIcon,
|
|
1803
1796
|
stroke: t.color,
|
|
@@ -1817,15 +1810,15 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1817
1810
|
s: e.value.valueSuffix,
|
|
1818
1811
|
r: e.value.dataLabelRoundingValue
|
|
1819
1812
|
}),
|
|
1820
|
-
{ datapoint: t, seriesIndex:
|
|
1813
|
+
{ datapoint: t, seriesIndex: o }
|
|
1821
1814
|
)), 5),
|
|
1822
|
-
_.value.includes(t.id) ? (
|
|
1815
|
+
_.value.includes(t.id) ? (l(), n("span", {
|
|
1823
1816
|
key: 0,
|
|
1824
1817
|
style: B(`font-size:${e.value.legendFontSize}px`)
|
|
1825
|
-
}, " ( - % ) ", 4)) : Ue.value ? (
|
|
1818
|
+
}, " ( - % ) ", 4)) : Ue.value ? (l(), n("span", {
|
|
1826
1819
|
key: 1,
|
|
1827
1820
|
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1828
|
-
}, " ( - % ) ", 4)) : (
|
|
1821
|
+
}, " ( - % ) ", 4)) : (l(), n("span", {
|
|
1829
1822
|
key: 2,
|
|
1830
1823
|
style: B(`font-size:${e.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)
|
|
1831
1824
|
}, " (" + U(s(G)({
|
|
@@ -1835,7 +1828,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1835
1828
|
})) + ") ", 5))
|
|
1836
1829
|
], 64))
|
|
1837
1830
|
], 12, ko))), 256)) : m("", !0),
|
|
1838
|
-
$.value === A.LINE ? (
|
|
1831
|
+
$.value === A.LINE ? (l(!0), n(x, { key: 1 }, T(c.value.legend, (t, o) => (l(), n("div", {
|
|
1839
1832
|
class: "vue-ui-quick-chart-legend-item",
|
|
1840
1833
|
onClick: (u) => {
|
|
1841
1834
|
Lt(t.id, c.value.legend.length - 1), pe("selectLegend", t);
|
|
@@ -1845,7 +1838,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1845
1838
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1846
1839
|
key: 0,
|
|
1847
1840
|
ref_for: !0
|
|
1848
|
-
}, { legend: t }), void 0, !0) : (
|
|
1841
|
+
}, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
|
|
1849
1842
|
be(s(q), {
|
|
1850
1843
|
name: e.value.legendIcon,
|
|
1851
1844
|
stroke: t.color,
|
|
@@ -1856,7 +1849,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1856
1849
|
}, U(t.name), 5)
|
|
1857
1850
|
], 64))
|
|
1858
1851
|
], 12, bo))), 256)) : m("", !0),
|
|
1859
|
-
$.value === A.BAR ? (
|
|
1852
|
+
$.value === A.BAR ? (l(!0), n(x, { key: 2 }, T(v.value.legend, (t, o) => (l(), n("div", {
|
|
1860
1853
|
class: "vue-ui-quick-chart-legend-item",
|
|
1861
1854
|
onClick: (u) => {
|
|
1862
1855
|
Lt(t.id, v.value.legend.length - 1), pe("selectLegend", t);
|
|
@@ -1866,7 +1859,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1866
1859
|
e.value.useCustomLegend ? W(a.$slots, "legend", nt({
|
|
1867
1860
|
key: 0,
|
|
1868
1861
|
ref_for: !0
|
|
1869
|
-
}, { legend: t }), void 0, !0) : (
|
|
1862
|
+
}, { legend: t }), void 0, !0) : (l(), n(x, { key: 1 }, [
|
|
1870
1863
|
be(s(q), {
|
|
1871
1864
|
name: e.value.legendIcon,
|
|
1872
1865
|
stroke: t.color,
|
|
@@ -1879,7 +1872,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1879
1872
|
], 12, So))), 256)) : m("", !0)
|
|
1880
1873
|
], 4)) : m("", !0)
|
|
1881
1874
|
], 8, ["to"])) : m("", !0),
|
|
1882
|
-
a.$slots.source ? (
|
|
1875
|
+
a.$slots.source ? (l(), n("div", {
|
|
1883
1876
|
key: 8,
|
|
1884
1877
|
ref_key: "source",
|
|
1885
1878
|
ref: ct,
|
|
@@ -1915,8 +1908,8 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1915
1908
|
]),
|
|
1916
1909
|
_: 3
|
|
1917
1910
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "smoothForce", "smoothSnapThreshold", "backdropFilter"]),
|
|
1918
|
-
s(V) ? (
|
|
1919
|
-
], 46, Qa)) : (
|
|
1911
|
+
s(V) ? (l(), Ie(Fa, { key: 9 })) : m("", !0)
|
|
1912
|
+
], 46, Qa)) : (l(), n("div", wo, [
|
|
1920
1913
|
be(s(q), {
|
|
1921
1914
|
name: "circleCancel",
|
|
1922
1915
|
stroke: "red"
|
|
@@ -1924,7 +1917,7 @@ const Qa = ["id"], Ka = ["id"], el = ["xmlns", "viewBox"], tl = ["x", "y", "widt
|
|
|
1924
1917
|
r[5] || (r[5] = C("span", null, "Dataset is not processable", -1))
|
|
1925
1918
|
]));
|
|
1926
1919
|
}
|
|
1927
|
-
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-
|
|
1920
|
+
}, Bo = /* @__PURE__ */ Wa(Ao, [["__scopeId", "data-v-c942e46d"]]);
|
|
1928
1921
|
export {
|
|
1929
1922
|
Bo as default
|
|
1930
1923
|
};
|