vue-data-ui 2.3.60 → 2.3.62
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-BJ47KXjY.js → Arrow-Dho8ylDy.js} +1 -1
- package/dist/{Arrow-VxZlHkwt.cjs → Arrow-ov-EIAPu.cjs} +1 -1
- package/dist/{BaseIcon-Bv5uh10R.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
- package/dist/{BaseIcon-Fm7sUbd2.js → BaseIcon-BNStcP8c.js} +1 -1
- package/dist/{DataTable-1VV0us-8.js → DataTable-luIjNnne.js} +2 -2
- package/dist/{DataTable-CPAt686N.cjs → DataTable-yf_eyv8c.cjs} +1 -1
- package/dist/{Legend-BJ2Mynop.cjs → Legend-6JY5pUsT.cjs} +1 -1
- package/dist/{Legend-DB6v_LvZ.js → Legend-B9dawQa7.js} +1 -1
- package/dist/{Shape-DWZSJJ6-.cjs → Shape-BoXM3HKY.cjs} +1 -1
- package/dist/{Shape-B_f1_6Ob.js → Shape-BsAETTif.js} +1 -1
- package/dist/Slicer-DoMAeSUY.cjs +1 -0
- package/dist/{Slicer-CHiUxRAh.js → Slicer-iGmqxtRQ.js} +51 -54
- package/dist/{Title-CR-JDJwq.cjs → Title-CBcoQe02.cjs} +1 -1
- package/dist/{Title-xP0rAF4q.js → Title-fb3BzoXj.js} +1 -1
- package/dist/{Tooltip-B4DNihSF.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
- package/dist/{Tooltip-DfBa_7Ur.js → Tooltip-CBugtvWB.js} +5 -5
- package/dist/{index-CpHoINpJ.js → index-BshV7sX1.js} +538 -515
- package/dist/{index-CDK3omwG.cjs → index-D2ZScauW.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BOjw3Yqn.js → useNestedProp-B235bkr5.js} +1 -1
- package/dist/{useNestedProp-CaaW8JIS.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
- package/dist/{usePrinter-BHy-mfVg.js → usePrinter-Culo-aKo.js} +1 -1
- package/dist/{usePrinter-vQu-8tRD.cjs → usePrinter-eqT4IYET.cjs} +1 -1
- package/dist/{vue-data-ui-Ccdrn4OV.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
- package/dist/{vue-data-ui-Dcg7DPMn.js → vue-data-ui-aJ6K70wA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-BqtnNU7h.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
- package/dist/{vue-ui-3d-bar-DdBlV5AX.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
- package/dist/{vue-ui-accordion-BZloYo0L.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
- package/dist/{vue-ui-accordion-EVAolVkD.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CTxkOn4v.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
- package/dist/{vue-ui-annotator-D_AK0JCi.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
- package/dist/{vue-ui-annotator-BDWKiQ6S.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
- package/dist/{vue-ui-candlestick-CIKgu0F2.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
- package/dist/{vue-ui-candlestick-ByA9FGZb.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
- package/dist/{vue-ui-carousel-table-ez9gbOZ7.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnYxbq5A.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
- package/dist/{vue-ui-chestnut-BumsSmCv.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
- package/dist/{vue-ui-chestnut-CnYqa2Fx.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-4-MMw7.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
- package/dist/{vue-ui-cursor-Drl8jibt.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CX0jA181.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_iV-3hq.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
- package/dist/{vue-ui-digits-DMhl9plv.js → vue-ui-digits-DkYpomD9.js} +2 -2
- package/dist/{vue-ui-digits-RAZl_4Kb.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
- package/dist/{vue-ui-donut-BG28U01c.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DPU-Nd8y.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
- package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
- package/dist/{vue-ui-donut-BpQC9-Uz.js → vue-ui-donut-uujhj36t.js} +42 -42
- package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
- package/dist/{vue-ui-dumbbell-C4JnuC1b.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
- package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
- package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
- package/dist/{vue-ui-galaxy-148JtEdK.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
- package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
- package/dist/{vue-ui-gauge-DOJ98R_N.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
- package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
- package/dist/{vue-ui-gizmo-KeWvd226.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
- package/dist/{vue-ui-gizmo-a6WNWyf7.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
- package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
- package/dist/{vue-ui-heatmap-BGsSOTPJ.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
- package/dist/{vue-ui-kpi-Dhah6Fgx.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
- package/dist/{vue-ui-kpi-Leb1rK38.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
- package/dist/{vue-ui-mini-loader-BLH4ncUB.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dpa9uYkn.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
- package/dist/{vue-ui-molecule-DjvOvDUa.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
- package/dist/{vue-ui-molecule-DuPAOQcj.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
- package/dist/{vue-ui-mood-radar-AOHK6R10.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BmcIz0JR.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CMmcmAd9.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-BYLc86qs.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
- package/dist/{vue-ui-onion-BjG8xbMh.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
- package/dist/{vue-ui-onion-shZ4g9mJ.js → vue-ui-onion-CI9ARfRM.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-wv0O9t7U.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
- package/dist/{vue-ui-quadrant-CuB8sYgF.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BRF5Czj4.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
- package/dist/{vue-ui-quick-chart-BQdUHrm2.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
- package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
- package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
- package/dist/{vue-ui-radar-CLUs0tD9.js → vue-ui-radar-Dd24aGwh.js} +59 -59
- package/dist/{vue-ui-rating-Dcy1l1PB.js → vue-ui-rating-CQWK2lk1.js} +9 -9
- package/dist/{vue-ui-rating-CA25nHJe.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DC-RFa9X.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
- package/dist/{vue-ui-relation-circle-Drr6Gdnq.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
- package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
- package/dist/{vue-ui-rings-DbPbelCU.js → vue-ui-rings-yyFx2W1b.js} +188 -185
- package/dist/{vue-ui-scatter-D2jYZ4Wu.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
- package/dist/{vue-ui-scatter-xyLvaw0d.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DXCBzrPZ.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
- package/dist/{vue-ui-screenshot-DGqjaE1x.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DuM6yey6.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
- package/dist/{vue-ui-skeleton-DRDC3yxK.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
- package/dist/{vue-ui-smiley-DQrvx_S9.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
- package/dist/{vue-ui-smiley-BCmY1siL.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
- package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
- package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
- package/dist/{vue-ui-sparkbar-C_vNsxM_.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DiU5Yt-V.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BnF9Vbs0.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
- package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-BUBwn9A4.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CsOfCo_3.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
- package/dist/{vue-ui-sparkline-CoUeD8Np.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B628G3Nl.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cr-Q7uDo.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DIHGbrF5.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
- package/dist/{vue-ui-stackbar-DCbJhdZy.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
- package/dist/{vue-ui-stackbar-DMyP3IRK.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
- package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
- package/dist/{vue-ui-strip-plot-CNb3VtYF.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
- package/dist/{vue-ui-table-CjuXpy2d.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D6px_Z1a.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-nbBDuSiw.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
- package/dist/{vue-ui-table-BqcI8E7E.js → vue-ui-table-ipCsGZPx.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Blbaz2zX.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
- package/dist/{vue-ui-table-sparkline-CqNPx5Zw.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
- package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCGHbgj9.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
- package/dist/{vue-ui-timer-BjqbxjQO.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
- package/dist/{vue-ui-timer-DhpBvc_5.js → vue-ui-timer-cCfNkOpe.js} +4 -4
- package/dist/{vue-ui-tiremarks-CNhB7Iqe.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
- package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
- package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
- package/dist/{vue-ui-treemap-C4memkYu.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
- package/dist/{vue-ui-vertical-bar-LZ-GMZ2T.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
- package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
- package/dist/{vue-ui-waffle-Cd4IU62n.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
- package/dist/{vue-ui-waffle-CtY5CSX9.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
- package/dist/{vue-ui-wheel-Do3pWPFB.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
- package/dist/{vue-ui-wheel-CaEAQhJt.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
- package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BSalPYqO.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
- package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
- package/dist/{vue-ui-xy-C7tpVpGu.js → vue-ui-xy-B_dmMYPU.js} +82 -82
- package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-rHcYmvec.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
- package/package.json +1 -1
- package/dist/Slicer-PPS43jOo.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Ce3DbeqC.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BWvrYKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-2Lsks-8o.cjs +0 -9
- package/dist/vue-ui-flow-DBhdVKxF.cjs +0 -1
- package/dist/vue-ui-flow-DSdWqWgh.js +0 -465
- package/dist/vue-ui-galaxy-BMsdd9Rh.cjs +0 -1
- package/dist/vue-ui-gauge-fVk9B_1W.cjs +0 -1
- package/dist/vue-ui-heatmap-DFpSo2gr.cjs +0 -1
- package/dist/vue-ui-quick-chart-DsVFRO68.cjs +0 -15
- package/dist/vue-ui-radar-lcS6n5TC.cjs +0 -1
- package/dist/vue-ui-rings-DxqSAs9h.cjs +0 -2
- package/dist/vue-ui-spark-trend-B9PR0wxN.js +0 -251
- package/dist/vue-ui-spark-trend-Kj1bJmBL.cjs +0 -1
- package/dist/vue-ui-sparkgauge-SlYA1lqc.cjs +0 -1
- package/dist/vue-ui-strip-plot-Da_TQpOq.cjs +0 -1
- package/dist/vue-ui-thermometer-coTC0T6k.cjs +0 -1
- package/dist/vue-ui-tiremarks-DgbTo_Cb.cjs +0 -1
- package/dist/vue-ui-treemap-B5moKzuO.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DtkGW5Tk.cjs +0 -4
- package/dist/vue-ui-word-cloud-pzaBe3Et.cjs +0 -1
- package/dist/vue-ui-xy-BgLF5ZNP.cjs +0 -3
- package/dist/vue-ui-xy-canvas-OuDGiOOW.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as d, computed as m, watch as
|
|
2
|
-
import { u as ma, c as ba, t as xa, a as La, p as N, b as ka,
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as Ue } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { ref as d, computed as m, watch as ue, onMounted as ha, onBeforeUnmount as ya, openBlock as T, createElementBlock as se, normalizeStyle as A, normalizeClass as fa, createVNode as ye, createCommentVNode as U, createBlock as Z, unref as E, createSlots as ga, withCtx as b, renderSlot as k, normalizeProps as G, guardReactiveProps as V, createElementVNode as j, toDisplayString as We, createTextVNode as pa } from "vue";
|
|
2
|
+
import { u as ma, c as ba, t as xa, a as La, p as N, b as ka, B as fe, i as q, f as J, F as Ca, d as Ye, Y as wa, o as Sa, e as za, x as Be, y as $a, q as Ta, r as Ma, w as K, l as Ra } from "./index-BshV7sX1.js";
|
|
3
|
+
import { d as Ia, c as Oa, a as Xe, t as Pa, l as C, r as ge, b as O, p as Ae, u as Fa } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ea } from "./Tooltip-CBugtvWB.js";
|
|
5
|
+
import { L as Na } from "./Legend-B9dawQa7.js";
|
|
6
|
+
import { _ as _a } from "./Title-fb3BzoXj.js";
|
|
7
|
+
import { S as Da } from "./Slicer-iGmqxtRQ.js";
|
|
8
|
+
import { u as Ha, U as Wa } from "./usePrinter-Culo-aKo.js";
|
|
9
|
+
import Ya from "./vue-ui-accordion-B6AxEnAr.js";
|
|
10
|
+
import { D as Ba } from "./DataTable-luIjNnne.js";
|
|
11
|
+
import Xa from "./vue-ui-skeleton-7qakoAGH.js";
|
|
12
|
+
import { u as Ue } from "./useNestedProp-B235bkr5.js";
|
|
13
|
+
import { _ as Aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ua = ["id"], Za = ["onClick"], Ga = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Va = ["innerHTML"], ja = {
|
|
18
18
|
__name: "vue-ui-xy-canvas",
|
|
19
19
|
props: {
|
|
20
20
|
dataset: {
|
|
@@ -32,7 +32,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(pe, { expose: Ze, emit: Ge }) {
|
|
35
|
-
const _ = pe, { vue_ui_xy_canvas: Ve } = ma(), ne = d(ba()), Q = d(null), S = d(null), H = d(null), s = d(null), y = d(1), M = d(1), ee = d(!1), c = d(null), ae = d(""), me = d(null), w = d([]), D = d(1), P = d(!0),
|
|
35
|
+
const _ = pe, { vue_ui_xy_canvas: Ve } = ma(), ne = d(ba()), Q = d(null), S = d(null), H = d(null), s = d(null), y = d(1), M = d(1), ee = d(!1), c = d(null), ae = d(""), me = d(null), w = d([]), D = d(1), P = d(!0), z = d(!0), ie = d(null), be = d(0), xe = d(0), ve = d(!1), Le = d(null), ke = d(null), Ce = d(null), ce = m(() => !!_.dataset && _.dataset.length), a = m(() => {
|
|
36
36
|
const e = Ue({
|
|
37
37
|
userConfig: _.config,
|
|
38
38
|
defaultConfig: Ve
|
|
@@ -44,10 +44,10 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
44
44
|
}),
|
|
45
45
|
customPalette: La[e.theme] || N
|
|
46
46
|
} : e;
|
|
47
|
-
}), we = d(a.value.style.chart.aspectRatio), { isPrinting: Se, isImaging:
|
|
47
|
+
}), we = d(a.value.style.chart.aspectRatio), { isPrinting: Se, isImaging: ze, generatePdf: $e, generateImage: Te } = Ha({
|
|
48
48
|
elementId: `xy_canvas_${ne.value}`,
|
|
49
49
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
50
|
-
}),
|
|
50
|
+
}), u = d({
|
|
51
51
|
showTable: a.value.table.show,
|
|
52
52
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
53
53
|
stacked: a.value.style.chart.stacked,
|
|
@@ -67,7 +67,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
67
67
|
bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
|
|
68
68
|
width: e,
|
|
69
69
|
height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
70
|
-
slot: e / (
|
|
70
|
+
slot: e / (r.value.end - r.value.start)
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
function Re(e, t) {
|
|
@@ -75,7 +75,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
75
75
|
}
|
|
76
76
|
function qe({ hasAutoScale: e, series: t, min: o, max: i, scale: v, yOffset: f, individualHeight: n, stackIndex: g = null }) {
|
|
77
77
|
return t.map((L, he) => {
|
|
78
|
-
const
|
|
78
|
+
const $ = v.min < 0 ? Math.abs(v.min) : 0, R = Re(L + $, $ + v.max);
|
|
79
79
|
let I, Y;
|
|
80
80
|
e && (I = Math.abs(v.min), Y = Re(L + I, v.max + I));
|
|
81
81
|
let B = 0;
|
|
@@ -87,7 +87,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
const p = m(() => {
|
|
90
|
-
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(
|
|
90
|
+
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = fe(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
|
|
91
91
|
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
92
92
|
x: l.value.left - 8,
|
|
93
93
|
value: n
|
|
@@ -120,11 +120,12 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
120
120
|
</div>
|
|
121
121
|
`)), W = m(() => _.dataset.map((e, t) => ({
|
|
122
122
|
...e,
|
|
123
|
+
series: Ca(e.series),
|
|
123
124
|
absoluteIndex: t,
|
|
124
125
|
color: Ye(e.color || Me.value[t] || N[t] || N[t % N.length])
|
|
125
|
-
}))), h = m(() =>
|
|
126
|
+
}))), h = m(() => wa(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
126
127
|
...e,
|
|
127
|
-
series: e.series.slice(
|
|
128
|
+
series: e.series.slice(r.value.start, r.value.end)
|
|
128
129
|
})).map((e, t) => {
|
|
129
130
|
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
130
131
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
@@ -135,22 +136,22 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
135
136
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
136
137
|
let g;
|
|
137
138
|
e.autoScaling ? g = fe(f.valueMin, f.valueMax, n) : g = fe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
|
|
138
|
-
const L =
|
|
139
|
+
const L = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, $ = u.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, R = g.min < 0 ? Math.abs(g.min) : 0;
|
|
139
140
|
let I;
|
|
140
|
-
e.autoScaling &&
|
|
141
|
+
e.autoScaling && u.value.stacked && i <= 0 ? I = l.value.bottom - L - $ : I = l.value.bottom - L - $ * (R / (g.max + R));
|
|
141
142
|
const Y = g.ticks.map((X, da) => ({
|
|
142
|
-
y: l.value.bottom - L -
|
|
143
|
+
y: l.value.bottom - L - $ * (da / (g.ticks.length - 1)),
|
|
143
144
|
x: l.value.left - 8,
|
|
144
145
|
value: X
|
|
145
146
|
})), B = qe({
|
|
146
|
-
hasAutoScale:
|
|
147
|
+
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
147
148
|
series: e.series,
|
|
148
|
-
min:
|
|
149
|
-
max:
|
|
150
|
-
scale:
|
|
149
|
+
min: u.value.stacked ? o : p.value.min,
|
|
150
|
+
max: u.value.stacked ? i : p.value.max,
|
|
151
|
+
scale: u.value.stacked ? g : p.value.scale,
|
|
151
152
|
yOffset: L,
|
|
152
|
-
individualHeight:
|
|
153
|
-
stackIndex:
|
|
153
|
+
individualHeight: $,
|
|
154
|
+
stackIndex: u.value.stacked ? t : null
|
|
154
155
|
});
|
|
155
156
|
return {
|
|
156
157
|
...e,
|
|
@@ -162,14 +163,14 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
162
163
|
localMin: R,
|
|
163
164
|
localYLabels: Y,
|
|
164
165
|
yOffset: L,
|
|
165
|
-
individualHeight:
|
|
166
|
+
individualHeight: $
|
|
166
167
|
};
|
|
167
|
-
})),
|
|
168
|
+
})), r = d({
|
|
168
169
|
start: 0,
|
|
169
170
|
end: F.value
|
|
170
171
|
});
|
|
171
172
|
function Ke() {
|
|
172
|
-
|
|
173
|
+
r.value = {
|
|
173
174
|
start: 0,
|
|
174
175
|
end: F.value
|
|
175
176
|
}, be.value += 1;
|
|
@@ -182,9 +183,9 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
182
183
|
S.value.width = e * D.value * 2, S.value.height = t * D.value * 2, y.value = e * D.value * 2, M.value = t * D.value * 2, s.value.scale(D.value, D.value), de();
|
|
183
184
|
}
|
|
184
185
|
function aa() {
|
|
185
|
-
if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight),
|
|
186
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
187
|
-
for (let t = 0; t <
|
|
186
|
+
if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
|
|
187
|
+
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
188
|
+
for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
|
|
188
189
|
C(
|
|
189
190
|
s.value,
|
|
190
191
|
[
|
|
@@ -218,7 +219,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
218
219
|
);
|
|
219
220
|
});
|
|
220
221
|
}) : h.value.forEach((e) => {
|
|
221
|
-
e.localYLabels.slice(
|
|
222
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
|
|
222
223
|
C(
|
|
223
224
|
s.value,
|
|
224
225
|
[
|
|
@@ -299,8 +300,8 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
299
300
|
);
|
|
300
301
|
});
|
|
301
302
|
else {
|
|
302
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
303
|
-
for (let e = 0; e <
|
|
303
|
+
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
304
|
+
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
304
305
|
C(
|
|
305
306
|
s.value,
|
|
306
307
|
[
|
|
@@ -455,16 +456,16 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
455
456
|
);
|
|
456
457
|
}
|
|
457
458
|
function oa() {
|
|
458
|
-
for (let e =
|
|
459
|
-
(
|
|
459
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
460
|
+
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + r.value.start)) && O(
|
|
460
461
|
s.value,
|
|
461
462
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
462
|
-
l.value.left + l.value.slot * (e -
|
|
463
|
+
l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
|
|
463
464
|
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
464
465
|
{
|
|
465
466
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
466
467
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
467
|
-
color: a.value.style.chart.grid.y.timeLabels.color + K[c.value !== null ? c.value +
|
|
468
|
+
color: a.value.style.chart.grid.y.timeLabels.color + K[c.value !== null ? c.value + r.value.start === e ? 100 : 20 : 100],
|
|
468
469
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
469
470
|
}
|
|
470
471
|
);
|
|
@@ -484,26 +485,26 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
484
485
|
}
|
|
485
486
|
);
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function ra() {
|
|
488
489
|
x.value.forEach((e, t) => {
|
|
489
490
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
490
491
|
ge(
|
|
491
492
|
s.value,
|
|
492
493
|
[
|
|
493
494
|
{
|
|
494
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
495
|
-
y:
|
|
495
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
|
|
496
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
496
497
|
},
|
|
497
498
|
{
|
|
498
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
499
|
-
y:
|
|
499
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
|
|
500
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
500
501
|
},
|
|
501
502
|
{
|
|
502
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
503
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
|
|
503
504
|
y: e.coordinatesLine[o].y
|
|
504
505
|
},
|
|
505
506
|
{
|
|
506
|
-
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
507
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)),
|
|
507
508
|
y: e.coordinatesLine[o].y
|
|
508
509
|
}
|
|
509
510
|
],
|
|
@@ -517,15 +518,15 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
517
518
|
},
|
|
518
519
|
end: {
|
|
519
520
|
x: e.coordinatesLine[o].x,
|
|
520
|
-
y:
|
|
521
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
521
522
|
},
|
|
522
523
|
stops: [
|
|
523
524
|
{ offset: 0, color: e.color },
|
|
524
|
-
{ offset: 1, color:
|
|
525
|
+
{ offset: 1, color: Ra(e.color, 0.5) }
|
|
525
526
|
]
|
|
526
527
|
}
|
|
527
528
|
}
|
|
528
|
-
),
|
|
529
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && O(
|
|
529
530
|
s.value,
|
|
530
531
|
q(
|
|
531
532
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -538,8 +539,8 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
538
539
|
}),
|
|
539
540
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
540
541
|
),
|
|
541
|
-
l.value.left + l.value.slot * o + l.value.slot / 10 + (
|
|
542
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
542
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : x.value.length),
|
|
543
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
543
544
|
{
|
|
544
545
|
align: "center",
|
|
545
546
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -550,8 +551,8 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
550
551
|
);
|
|
551
552
|
});
|
|
552
553
|
}
|
|
553
|
-
function
|
|
554
|
-
e.useArea ?
|
|
554
|
+
function ua(e) {
|
|
555
|
+
e.useArea ? u.value.stacked ? Ae(
|
|
555
556
|
s.value,
|
|
556
557
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
557
558
|
{
|
|
@@ -586,9 +587,9 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
586
587
|
});
|
|
587
588
|
}
|
|
588
589
|
function de() {
|
|
589
|
-
aa(), P.value ? (
|
|
590
|
-
(e.type === "line" || !e.type) &&
|
|
591
|
-
}), ie.value =
|
|
590
|
+
aa(), P.value ? (z.value && c.value !== null && a.value.style.chart.selector.show && Ie(), ra(), u.value.stacked && a.value.style.chart.grid.x.showAxis && sa(), Qe.value.forEach((e) => {
|
|
591
|
+
(e.type === "line" || !e.type) && ua(e), z.value && (la(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ta(e));
|
|
592
|
+
}), ie.value = Oa(S.value)) : (ie.value && s.value.drawImage(ie.value, 0, 0), z.value && c.value !== null && a.value.style.chart.selector.show && Ie(), z.value && c.value !== null && h.value.forEach((e) => {
|
|
592
593
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
593
594
|
if (!e.coordinatesLine[c.value]) return;
|
|
594
595
|
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && Xe(
|
|
@@ -607,9 +608,9 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
607
608
|
}
|
|
608
609
|
})), a.value.style.chart.grid.y.timeLabels.show && oa(), P.value = !1;
|
|
609
610
|
}
|
|
610
|
-
const le =
|
|
611
|
-
|
|
612
|
-
}, F.value > 200 ? 10 : 1,
|
|
611
|
+
const le = Ia(() => {
|
|
612
|
+
z.value = !0, ea();
|
|
613
|
+
}, F.value > 200 ? 10 : 1, !z.value);
|
|
613
614
|
function na(e) {
|
|
614
615
|
const { left: t } = S.value.getBoundingClientRect(), o = e.clientX - t;
|
|
615
616
|
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
@@ -617,7 +618,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
617
618
|
return;
|
|
618
619
|
}
|
|
619
620
|
const i = o * 2 - l.value.left;
|
|
620
|
-
if (c.value = Math.floor(i / l.value.slot), ee.value = !0,
|
|
621
|
+
if (c.value = Math.floor(i / l.value.slot), ee.value = !0, !z.value) return;
|
|
621
622
|
let v = "";
|
|
622
623
|
const f = a.value.style.chart.tooltip.customFormat;
|
|
623
624
|
Be(f) && $a(() => f({
|
|
@@ -642,30 +643,30 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
642
643
|
})),
|
|
643
644
|
series: h.value,
|
|
644
645
|
config: a.value
|
|
645
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
646
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (v += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value]}</div>`), v += Je.value.join(""), ae.value = v), z.value = !1;
|
|
646
647
|
}
|
|
647
|
-
|
|
648
|
+
ue(() => c.value, (e) => {
|
|
648
649
|
le();
|
|
649
|
-
}),
|
|
650
|
+
}), ue(() => r.value, (e) => {
|
|
650
651
|
P.value = !0, de();
|
|
651
652
|
}, {
|
|
652
653
|
deep: !0
|
|
653
|
-
}),
|
|
654
|
+
}), ue(() => u.value.showDataLabels, (e) => {
|
|
654
655
|
P.value = !0, de();
|
|
655
|
-
}),
|
|
656
|
-
P.value = !0,
|
|
656
|
+
}), ue(() => u.value.stacked, (e) => {
|
|
657
|
+
P.value = !0, z.value = !0, le();
|
|
657
658
|
});
|
|
658
659
|
function ia() {
|
|
659
660
|
ee.value = !1, c.value = null, ae.value = "";
|
|
660
661
|
}
|
|
661
662
|
const te = d(null), oe = d(null);
|
|
662
663
|
ha(() => {
|
|
663
|
-
if (
|
|
664
|
+
if (Sa(_.dataset) ? za({
|
|
664
665
|
componentName: "VueUiXyCanvas",
|
|
665
666
|
type: "dataset"
|
|
666
667
|
}) : S.value && (s.value = S.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
667
|
-
const e =
|
|
668
|
-
const { width: t, height: o } =
|
|
668
|
+
const e = Pa(() => {
|
|
669
|
+
const { width: t, height: o } = Fa({
|
|
669
670
|
chart: Q.value,
|
|
670
671
|
title: a.value.style.chart.title.text ? Le.value : null,
|
|
671
672
|
legend: a.value.style.chart.legend.show ? ke.value : null,
|
|
@@ -705,12 +706,12 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
705
706
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
706
707
|
paddingBottom: 12,
|
|
707
708
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
708
|
-
})),
|
|
709
|
+
})), re = m(() => {
|
|
709
710
|
const e = [""].concat(h.value.map((v) => v.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
710
711
|
let t = [];
|
|
711
712
|
for (let v = 0; v < F.value; v += 1) {
|
|
712
713
|
const f = h.value.map((n) => n.series[v] ?? 0).reduce((n, g) => n + g, 0);
|
|
713
|
-
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
714
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[v] ?? v + 1].concat(h.value.map((n) => (n.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
|
|
714
715
|
}
|
|
715
716
|
const o = {
|
|
716
717
|
th: {
|
|
@@ -725,7 +726,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
725
726
|
},
|
|
726
727
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
727
728
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
|
|
728
|
-
return { head: e, body: t.slice(0,
|
|
729
|
+
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
729
730
|
}), Fe = m(() => {
|
|
730
731
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
731
732
|
const e = h.value.map((o) => ({
|
|
@@ -733,7 +734,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
733
734
|
color: o.color,
|
|
734
735
|
type: o.type
|
|
735
736
|
})), t = [];
|
|
736
|
-
for (let o =
|
|
737
|
+
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
737
738
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
738
739
|
h.value.forEach((v) => {
|
|
739
740
|
i.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
@@ -742,28 +743,28 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
742
743
|
return { head: e, body: t };
|
|
743
744
|
});
|
|
744
745
|
function Ee() {
|
|
745
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Fe.value.head.map((f) => f.label)], o = Fe.value.body, i = e.concat([t]).concat(o), v =
|
|
746
|
-
|
|
746
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Fe.value.head.map((f) => f.label)], o = Fe.value.body, i = e.concat([t]).concat(o), v = Ta(i);
|
|
747
|
+
Ma({ csvContent: v, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
747
748
|
}
|
|
748
749
|
function ca() {
|
|
749
750
|
return h.value;
|
|
750
751
|
}
|
|
751
752
|
function Ne() {
|
|
752
|
-
|
|
753
|
+
u.value.showTable = !u.value.showTable;
|
|
753
754
|
}
|
|
754
755
|
function _e() {
|
|
755
|
-
|
|
756
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
756
757
|
}
|
|
757
758
|
function De() {
|
|
758
|
-
|
|
759
|
+
u.value.stacked = !u.value.stacked;
|
|
759
760
|
}
|
|
760
761
|
function He() {
|
|
761
|
-
|
|
762
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
762
763
|
}
|
|
763
764
|
return Ze({
|
|
764
765
|
getData: ca,
|
|
765
766
|
generateCsv: Ee,
|
|
766
|
-
generatePdf:
|
|
767
|
+
generatePdf: $e,
|
|
767
768
|
generateImage: Te,
|
|
768
769
|
toggleTable: Ne,
|
|
769
770
|
toggleLabels: _e,
|
|
@@ -782,7 +783,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
782
783
|
ref: Le,
|
|
783
784
|
style: A(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
784
785
|
}, [
|
|
785
|
-
ye(
|
|
786
|
+
ye(_a, {
|
|
786
787
|
config: {
|
|
787
788
|
title: {
|
|
788
789
|
cy: "xy-canvas-title",
|
|
@@ -795,13 +796,13 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
795
796
|
}
|
|
796
797
|
}, null, 8, ["config"])
|
|
797
798
|
], 4)) : U("", !0),
|
|
798
|
-
a.value.userOptions.show && ce.value ? (T(), Z(
|
|
799
|
+
a.value.userOptions.show && ce.value ? (T(), Z(Wa, {
|
|
799
800
|
ref: "details",
|
|
800
801
|
key: `user_option_${xe.value}`,
|
|
801
802
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
802
803
|
color: a.value.style.chart.color,
|
|
803
804
|
isPrinting: E(Se),
|
|
804
|
-
isImaging: E(
|
|
805
|
+
isImaging: E(ze),
|
|
805
806
|
uid: ne.value,
|
|
806
807
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
807
808
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -810,14 +811,14 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
810
811
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
811
812
|
hasStack: pe.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
812
813
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
813
|
-
hasTable:
|
|
814
|
+
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
814
815
|
isFullscreen: ve.value,
|
|
815
|
-
isTooltip:
|
|
816
|
-
isStacked:
|
|
816
|
+
isTooltip: u.value.showTooltip,
|
|
817
|
+
isStacked: u.value.stacked,
|
|
817
818
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
818
819
|
chartElement: Q.value,
|
|
819
820
|
onToggleFullscreen: je,
|
|
820
|
-
onGeneratePdf: E(
|
|
821
|
+
onGeneratePdf: E($e),
|
|
821
822
|
onGenerateCsv: Ee,
|
|
822
823
|
onGenerateImage: E(Te),
|
|
823
824
|
onToggleTable: Ne,
|
|
@@ -895,7 +896,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
895
896
|
style: { width: "100%", height: "100%" },
|
|
896
897
|
onMousemove: t[0] || (t[0] = (o) => na(o)),
|
|
897
898
|
onMouseleave: ia
|
|
898
|
-
}, null, 544)) : (T(), Z(
|
|
899
|
+
}, null, 544)) : (T(), Z(Xa, {
|
|
899
900
|
key: 1,
|
|
900
901
|
config: {
|
|
901
902
|
type: "line",
|
|
@@ -913,8 +914,8 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
913
914
|
}
|
|
914
915
|
}
|
|
915
916
|
}, null, 8, ["config"])),
|
|
916
|
-
ye(
|
|
917
|
-
show:
|
|
917
|
+
ye(Ea, {
|
|
918
|
+
show: u.value.showTooltip && ee.value,
|
|
918
919
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
919
920
|
color: a.value.style.chart.tooltip.color,
|
|
920
921
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -943,25 +944,25 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
943
944
|
style: A(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
944
945
|
"data-html2canvas-ignore": ""
|
|
945
946
|
}, [
|
|
946
|
-
a.value.style.chart.zoom.show && F.value > 1 ? (T(), Z(
|
|
947
|
+
a.value.style.chart.zoom.show && F.value > 1 ? (T(), Z(Da, {
|
|
947
948
|
key: `slicer_${be.value}`,
|
|
948
949
|
background: a.value.style.chart.zoom.color,
|
|
949
950
|
borderColor: a.value.style.chart.backgroundColor,
|
|
950
951
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
951
952
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
952
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
953
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
953
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
|
|
954
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
|
|
954
955
|
textColor: a.value.style.chart.color,
|
|
955
956
|
inputColor: a.value.style.chart.zoom.color,
|
|
956
957
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
957
958
|
max: F.value,
|
|
958
959
|
min: 0,
|
|
959
|
-
valueStart:
|
|
960
|
-
valueEnd:
|
|
961
|
-
start:
|
|
962
|
-
"onUpdate:start": t[1] || (t[1] = (o) =>
|
|
963
|
-
end:
|
|
964
|
-
"onUpdate:end": t[2] || (t[2] = (o) =>
|
|
960
|
+
valueStart: r.value.start,
|
|
961
|
+
valueEnd: r.value.end,
|
|
962
|
+
start: r.value.start,
|
|
963
|
+
"onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
|
|
964
|
+
end: r.value.end,
|
|
965
|
+
"onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
|
|
965
966
|
onReset: Ke
|
|
966
967
|
}, {
|
|
967
968
|
"reset-action": b(({ reset: o }) => [
|
|
@@ -974,7 +975,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
974
975
|
ref_key: "chartLegend",
|
|
975
976
|
ref: ke
|
|
976
977
|
}, [
|
|
977
|
-
a.value.style.chart.legend.show && ce.value ? (T(), Z(
|
|
978
|
+
a.value.style.chart.legend.show && ce.value ? (T(), Z(Na, {
|
|
978
979
|
key: 0,
|
|
979
980
|
legendSet: Pe.value,
|
|
980
981
|
config: va.value,
|
|
@@ -984,7 +985,7 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
984
985
|
j("div", {
|
|
985
986
|
onClick: (v) => o.segregate(),
|
|
986
987
|
style: A(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
|
|
987
|
-
}, We(o.name), 13,
|
|
988
|
+
}, We(o.name), 13, Za)
|
|
988
989
|
]),
|
|
989
990
|
_: 1
|
|
990
991
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
@@ -992,14 +993,14 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
992
993
|
legend: Pe.value
|
|
993
994
|
}, void 0, !0)
|
|
994
995
|
], 512),
|
|
995
|
-
e.$slots.watermark ? (T(), se("div",
|
|
996
|
-
k(e.$slots, "watermark", G(V({ isPrinting: E(Se) || E(
|
|
996
|
+
e.$slots.watermark ? (T(), se("div", Ga, [
|
|
997
|
+
k(e.$slots, "watermark", G(V({ isPrinting: E(Se) || E(ze) })), void 0, !0)
|
|
997
998
|
])) : U("", !0),
|
|
998
|
-
|
|
999
|
+
r.value.end - r.value.start < 200 ? (T(), Z(Ya, {
|
|
999
1000
|
key: 3,
|
|
1000
1001
|
hideDetails: "",
|
|
1001
1002
|
config: {
|
|
1002
|
-
open:
|
|
1003
|
+
open: u.value.showTable,
|
|
1003
1004
|
maxHeight: 1e4,
|
|
1004
1005
|
body: {
|
|
1005
1006
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1012,16 +1013,16 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
1012
1013
|
}
|
|
1013
1014
|
}, {
|
|
1014
1015
|
content: b(() => [
|
|
1015
|
-
ye(
|
|
1016
|
-
colNames:
|
|
1017
|
-
head:
|
|
1018
|
-
body:
|
|
1019
|
-
config:
|
|
1016
|
+
ye(Ba, {
|
|
1017
|
+
colNames: re.value.colNames,
|
|
1018
|
+
head: re.value.head,
|
|
1019
|
+
body: re.value.body,
|
|
1020
|
+
config: re.value.config,
|
|
1020
1021
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1021
|
-
onClose: t[4] || (t[4] = (o) =>
|
|
1022
|
+
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1022
1023
|
}, {
|
|
1023
1024
|
th: b(({ th: o }) => [
|
|
1024
|
-
j("div", { innerHTML: o }, null, 8,
|
|
1025
|
+
j("div", { innerHTML: o }, null, 8, Va)
|
|
1025
1026
|
]),
|
|
1026
1027
|
td: b(({ td: o }) => [
|
|
1027
1028
|
pa(We(o), 1)
|
|
@@ -1031,9 +1032,9 @@ const Aa = ["id"], Ua = ["onClick"], Za = {
|
|
|
1031
1032
|
]),
|
|
1032
1033
|
_: 1
|
|
1033
1034
|
}, 8, ["config"])) : U("", !0)
|
|
1034
|
-
], 14,
|
|
1035
|
+
], 14, Ua));
|
|
1035
1036
|
}
|
|
1036
|
-
},
|
|
1037
|
+
}, il = /* @__PURE__ */ Aa(ja, [["__scopeId", "data-v-631647ba"]]);
|
|
1037
1038
|
export {
|
|
1038
|
-
|
|
1039
|
+
il as default
|
|
1039
1040
|
};
|
package/package.json
CHANGED
package/dist/Slicer-PPS43jOo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),M=require("./BaseIcon-Bv5uh10R.cjs"),N=require("./useResponsive-B3TrDDIG.cjs"),d=require("./index-CDK3omwG.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=a=>(e.pushScopeId("data-v-d490a3f0"),a=a(),e.popScopeId(),a),O={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},_={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1"}},U={key:0,style:{width:"100%",position:"relative"}},W={class:"minimap",style:{width:"100%"}},T=["xmlns","viewBox"],X=["id"],j=["stop-color"],G=k(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),H=["d","stroke","fill"],Z=["x2","y1","y2","stroke"],J=["y2","stroke"],K=["x1","x2","y2","stroke"],Q=k(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Y=["min","max"],ee=["min","max"],te={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2}},emits:["update:start","update:end","reset"],setup(a,{emit:v}){const t=a;e.useCssVars(o=>({"78d5beaa":C.value,"10cb471e":m.value,"2bc7860f":w.value,"1dfeef64":a.selectColor,"2e07c848":V.value}));const n=e.ref(t.min),i=e.ref(t.max),s=e.computed(()=>!!t.minimap.length),p=e.ref(d.createUid()),E=e.computed(()=>{const o=t.max-t.min,u=(n.value-t.min)/o*100,r=(i.value-t.min)/o*100;return{left:`${u}%`,width:`${r-u}%`,background:t.selectColor}}),C=e.computed(()=>t.inputColor),V=e.computed(()=>t.background),w=e.computed(()=>`${t.selectColor}33`),m=e.computed(()=>t.borderColor);function f(){v("reset")}function $(){Number(n.value)>Number(i.value)-1&&(n.value=Number(i.value)-1),v("update:start",Number(n.value))}function z(){Number(i.value)<Number(n.value)+1&&(i.value=Number(n.value)+1),v("update:end",Number(i.value))}e.watch(()=>t.min,o=>{Number(n.value)<Number(o)&&(n.value=Number(o)),Number(i.value)<Number(o)&&(i.value=Number(o))}),e.watch(()=>t.max,o=>{Number(n.value)>Number(o)&&(n.value=Number(o)),Number(i.value)>Number(o)&&(i.value=Number(o))});const h=e.ref(null),l=e.ref({width:1,height:1}),g=e.ref(null);e.onMounted(()=>{if(s.value){const o=N.throttle(()=>{const{width:u,height:r}=N.useResponsive({chart:h.value});l.value.width=u,l.value.height=r-59});g.value=new ResizeObserver(o),g.value.observe(h.value)}});const y=e.computed(()=>t.minimap.length?l.value.width/t.minimap.length:0);e.computed(()=>({x:y.value*t.valueStart,width:y.value*(t.valueEnd-t.valueStart)}));const B=e.computed(()=>{if(!t.minimap.length)return[];const o=Math.max(...t.minimap),u=Math.min(...t.minimap)-10,r=o-(u>0?0:u),c=t.minimap.map((L,P)=>{const q=L-u;return{x:l.value.width/(t.minimap.length-1)*P,y:l.value.height-q/r*(l.value.height*.9)}}),A=t.smoothMinimap?d.createSmoothPath(c):d.createStraightPath(c),S=[...c].slice(t.valueStart,t.valueEnd),I=t.smoothMinimap?d.createSmoothPath(S):d.createStraightPath(S);return{fullSet:A,selectionSet:I,firstPlot:c[t.valueStart],lastPlot:c[t.valueEnd-1]}}),b=e.computed(()=>t.max-t.min),x=e.computed(()=>({left:(n.value-t.min)/b.value*100,width:(i.value-n.value)/b.value*100})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:s.value?"28px":"-28px",pointerEvents:"none"})),R=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:s.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"}));return(o,u)=>(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",_,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",U,[a.useResetSlot?e.renderSlot(o.$slots,"reset-action",{key:1,reset:f},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:s.value?"36px":"-16px"}),onClick:f},[e.createVNode(M.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:h,style:e.normalizeStyle({zIndex:0,paddingBottom:s.value?"24px":"12px"})},[s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",W,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(d.XMLNS),viewBox:`0 0 ${l.value.width<0?0:l.value.width} ${l.value.height<0?0:l.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:p.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,j),G],8,X)]),e.createElementVNode("path",{d:`M0,${l.value.height} ${B.value.fullSet} L${l.value.width},${l.value.height}Z`,stroke:`${a.minimapLineColor}`,fill:`url(#${p.value})`,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,H),e.createElementVNode("line",{x1:0,x2:l.value.width<0?0:l.value.width,y1:l.value.height<0?0:l.value.height,y2:l.value.height<0?0:l.value.height,stroke:m.value,"stroke-width":"3"},null,8,Z),e.createElementVNode("line",{x1:0,x2:0,y1:0,y2:l.value.height<0?0:l.value.height,stroke:m.value,"stroke-width":"5"},null,8,J),e.createElementVNode("line",{x1:l.value.width<0?0:l.value.width,x2:l.value.width<0?0:l.value.width,y1:0,y2:l.value.height<0?0:l.value.height,stroke:m.value,"stroke-width":"5"},null,8,K)],8,T))]),e.createElementVNode("div",{class:"sel",style:e.normalizeStyle({position:"absolute",top:"-33px",left:`calc(${x.value.left}%)`,background:a.minimapSelectedColor,height:"40px",width:x.value.width+"%",borderRadius:`${a.minimapSelectionRadius}px ${a.minimapSelectionRadius}px 0 0`,opacity:a.minimapSelectedColorOpacity})},null,4)],64)):e.createCommentVNode("",!0),Q,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(E.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),onInput:$},null,40,Y),[[e.vModelText,n.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":u[1]||(u[1]=r=>i.value=r),onInput:z},null,40,ee),[[e.vModelText,i.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(R.value)},e.toDisplayString(a.labelRight),5)],4)]))}},le=D._export_sfc(te,[["__scopeId","data-v-d490a3f0"]]);exports.Slicer=le;
|