vue-data-ui 2.4.67 → 2.4.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -16
- package/dist/{Arrow-Pw0XdelV.js → Arrow-D5Ik6Rl_.js} +1 -1
- package/dist/{Arrow-BgFoJ_7c.cjs → Arrow-DTyx6yXe.cjs} +1 -1
- package/dist/{BaseIcon-Bo_1SPIG.cjs → BaseIcon-At97xJaA.cjs} +1 -1
- package/dist/{BaseIcon-Dog_ErJD.js → BaseIcon-D7H3G8-f.js} +1 -1
- package/dist/{DataTable-BLV7zzyw.js → DataTable-CNH8bChE.js} +2 -2
- package/dist/{DataTable-1WuyQJQK.cjs → DataTable-Dng-zRfh.cjs} +1 -1
- package/dist/{Legend-ynYWBX3Z.js → Legend-kF7sC1KK.js} +2 -2
- package/dist/{Legend-DoFd_NOd.cjs → Legend-kMbr5DZt.cjs} +1 -1
- package/dist/{PackageVersion-BachziuZ.cjs → PackageVersion-CHUMvFGr.cjs} +1 -1
- package/dist/{PackageVersion-BazXxXqy.js → PackageVersion-m6HC0skh.js} +1 -1
- package/dist/{PenAndPaper-D6E7hDYd.cjs → PenAndPaper-DmMAK04m.cjs} +1 -1
- package/dist/{PenAndPaper-D4nWibJ3.js → PenAndPaper-FOhKSug_.js} +3 -3
- package/dist/{Shape-C8aWG3A1.cjs → Shape-Ajzs1V3O.cjs} +1 -1
- package/dist/{Shape-Bz-gcdva.js → Shape-CfcWXI5g.js} +1 -1
- package/dist/{Slicer-CL0kQ_HB.js → Slicer-Bq3BajcJ.js} +2 -2
- package/dist/{Slicer-hEQW3UhE.cjs → Slicer-Cgyw5vYE.cjs} +1 -1
- package/dist/{Title-CFqlh_YB.cjs → Title-C7y-iI1m.cjs} +1 -1
- package/dist/{Title-CEILAOdT.js → Title-L52l_KMR.js} +1 -1
- package/dist/{Tooltip-CgY3ZV9q.js → Tooltip-FYp9ljnj.js} +1 -1
- package/dist/{Tooltip-BA_0hLX8.cjs → Tooltip-Y622sV6l.cjs} +1 -1
- package/dist/{index-CnwO8xcH.js → index-3_ulDZ6w.js} +1 -1
- package/dist/{index-DVvHP4A_.cjs → index-CPtAxuTc.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DPMt3Iiy.js → useNestedProp-Bs6ltq3I.js} +1 -1
- package/dist/{useNestedProp-CsmZqXml.cjs → useNestedProp-BtCZVKOm.cjs} +1 -1
- package/dist/{usePrinter-a7rkFhGa.cjs → usePrinter-BmNhTUGE.cjs} +1 -1
- package/dist/{usePrinter-BEBjMPUP.js → usePrinter-NdwnpHUu.js} +1 -1
- package/dist/{vue-data-ui-DEys4N5t.cjs → vue-data-ui-C4MFJb3X.cjs} +1 -1
- package/dist/{vue-data-ui-BRdOwa-y.js → vue-data-ui-qqS_JEAb.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CvpX7WMe.js → vue-ui-3d-bar-B-DPM6sB.js} +9 -9
- package/dist/{vue-ui-3d-bar-Dh0cv4h8.cjs → vue-ui-3d-bar-D1Q5GpB8.cjs} +1 -1
- package/dist/{vue-ui-accordion-DDF-Fm2i.js → vue-ui-accordion-DXlXtAML.js} +3 -3
- package/dist/{vue-ui-accordion-Dghh8xxy.cjs → vue-ui-accordion-Dd0mfQys.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DPWG69uQ.js → vue-ui-age-pyramid-CEw1j90S.js} +10 -10
- package/dist/{vue-ui-age-pyramid-a4H5S4cY.cjs → vue-ui-age-pyramid-Dn8sTUD1.cjs} +1 -1
- package/dist/{vue-ui-annotator-C0sEr9cJ.cjs → vue-ui-annotator-DLwKn7nJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-DUePPHtb.js → vue-ui-annotator-I7b5208U.js} +1 -1
- package/dist/{vue-ui-bullet-D4-xLewd.cjs → vue-ui-bullet-B_toFHM0.cjs} +1 -1
- package/dist/{vue-ui-bullet-BbaaoPyS.js → vue-ui-bullet-CUpzxv8b.js} +8 -8
- package/dist/{vue-ui-candlestick-tUuVLgBm.js → vue-ui-candlestick-D4poOC-A.js} +11 -11
- package/dist/{vue-ui-candlestick-DsBReIGb.cjs → vue-ui-candlestick-DUjJP9IX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bz2AtsF0.cjs → vue-ui-carousel-table-BRdt1LUl.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-_uE3nbkS.js → vue-ui-carousel-table-CMP41H6W.js} +4 -4
- package/dist/{vue-ui-chestnut-BL0oYXve.cjs → vue-ui-chestnut-BGpagpDQ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-3lzZH1Ax.js → vue-ui-chestnut-BzCjWlbs.js} +8 -8
- package/dist/{vue-ui-cursor-Co96syV2.js → vue-ui-cursor-CdhhPJ2w.js} +2 -2
- package/dist/{vue-ui-cursor-B6WmdWgg.cjs → vue-ui-cursor-Ike72xN1.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BL0Fl8-5.js → vue-ui-dashboard-CDUpQHzg.js} +2 -2
- package/dist/{vue-ui-dashboard-CxVP2i4u.cjs → vue-ui-dashboard-CFF1xhGw.cjs} +1 -1
- package/dist/{vue-ui-digits-B9fsrbIE.js → vue-ui-digits-Cje8oZYA.js} +2 -2
- package/dist/{vue-ui-digits-BJg4hobZ.cjs → vue-ui-digits-Cu3AtNFJ.cjs} +1 -1
- package/dist/{vue-ui-donut-BdWF8vMH.cjs → vue-ui-donut-BNmui7ee.cjs} +1 -1
- package/dist/{vue-ui-donut-D3Hz4Vfa.js → vue-ui-donut-DyEbJv8M.js} +12 -12
- package/dist/{vue-ui-donut-evolution-Dw4I7fhN.js → vue-ui-donut-evolution-B_kVMwY5.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BlwoTXwM.cjs → vue-ui-donut-evolution-BxElmgKr.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-COjyZaXJ.cjs → vue-ui-dumbbell-Bb4_UIZL.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Bl6xGSLF.js → vue-ui-dumbbell-XSwVUKkI.js} +10 -10
- package/dist/{vue-ui-flow-D5u54RzI.cjs → vue-ui-flow-BxSDPsTX.cjs} +1 -1
- package/dist/{vue-ui-flow-D2zRJ6wq.js → vue-ui-flow-CT9Ikm2q.js} +9 -9
- package/dist/{vue-ui-funnel-CSZWnJYH.cjs → vue-ui-funnel-4Xz5KcCC.cjs} +1 -1
- package/dist/{vue-ui-funnel-Ds3ZEPq6.js → vue-ui-funnel-xE-KSwUY.js} +9 -9
- package/dist/{vue-ui-galaxy-C9byGzin.cjs → vue-ui-galaxy-BKyxc95s.cjs} +1 -1
- package/dist/{vue-ui-galaxy-pt_aAhOb.js → vue-ui-galaxy-CQu_2tM7.js} +11 -11
- package/dist/{vue-ui-gauge-DpZjO3xY.js → vue-ui-gauge-BML0PHj7.js} +7 -7
- package/dist/{vue-ui-gauge-D888JxSB.cjs → vue-ui-gauge-BY-_g8oh.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CqLVPIN1.js → vue-ui-gizmo-CZdz1ws4.js} +3 -3
- package/dist/{vue-ui-gizmo-D2-_xuYD.cjs → vue-ui-gizmo-DCDez8vm.cjs} +1 -1
- package/dist/{vue-ui-heatmap-E0PqMLPl.cjs → vue-ui-heatmap-B6TqJ0rT.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Cs6oP4_Y.js → vue-ui-heatmap-BBhBotdK.js} +10 -10
- package/dist/{vue-ui-history-plot-CJSEFhv8.js → vue-ui-history-plot-CEGzb0go.js} +11 -11
- package/dist/{vue-ui-history-plot-CjTLuCZR.cjs → vue-ui-history-plot-ICiiX_iG.cjs} +1 -1
- package/dist/{vue-ui-kpi-BHb8giSN.js → vue-ui-kpi-CcY9SiQU.js} +3 -3
- package/dist/{vue-ui-kpi-DUe_KvC1.cjs → vue-ui-kpi-b1KYFaD5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Dg7oL6ff.js → vue-ui-mini-loader-ChYeDs8b.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dz80iGWP.cjs → vue-ui-mini-loader-DRDOwWX4.cjs} +1 -1
- package/dist/{vue-ui-molecule-DhWn7i2n.cjs → vue-ui-molecule-BC9pfKLe.cjs} +1 -1
- package/dist/{vue-ui-molecule-BY_0F7Mg.js → vue-ui-molecule-C7RlUrep.js} +11 -11
- package/dist/{vue-ui-mood-radar-CLv01TXT.cjs → vue-ui-mood-radar-DuyOelxm.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C0ukSxB9.js → vue-ui-mood-radar-MwQGdQBk.js} +11 -11
- package/dist/{vue-ui-nested-donuts-B7iIvgEq.js → vue-ui-nested-donuts-CTjWqxm1.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BmOh6Y2M.cjs → vue-ui-nested-donuts-DV_fUt8X.cjs} +1 -1
- package/dist/{vue-ui-onion-BOTGL-Ks.cjs → vue-ui-onion-CMJQd4hJ.cjs} +1 -1
- package/dist/{vue-ui-onion-B1rP-YG7.js → vue-ui-onion-DQU2quzY.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-C0Yj3ecn.js → vue-ui-parallel-coordinate-plot-el0qRCNH.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-AjSZELcj.cjs → vue-ui-parallel-coordinate-plot-mr_VL-5e.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C3lCo2lR.js → vue-ui-quadrant-D4JbzGnx.js} +12 -12
- package/dist/{vue-ui-quadrant-C4KVaPPD.cjs → vue-ui-quadrant-p1PqQgE8.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D0JIO11E.js → vue-ui-quick-chart-C7dbfJas.js} +9 -9
- package/dist/{vue-ui-quick-chart-BjiYIerq.cjs → vue-ui-quick-chart-CpVCnKQR.cjs} +1 -1
- package/dist/{vue-ui-radar-C1IEsGcq.cjs → vue-ui-radar-B8w_jmnj.cjs} +1 -1
- package/dist/{vue-ui-radar-CVHSHTIW.js → vue-ui-radar-DwcDudGq.js} +12 -12
- package/dist/{vue-ui-rating-UOowmV6D.cjs → vue-ui-rating-CF611kMg.cjs} +1 -1
- package/dist/{vue-ui-rating-CQQnfz6s.js → vue-ui-rating-CVWVcuH4.js} +2 -2
- package/dist/{vue-ui-relation-circle-CoNtvSYN.js → vue-ui-relation-circle-DOqHTAlr.js} +7 -7
- package/dist/{vue-ui-relation-circle-BrdUzD5q.cjs → vue-ui-relation-circle-i-IWbtjG.cjs} +1 -1
- package/dist/{vue-ui-rings-Bn8O1_X5.js → vue-ui-rings-CYtiwLoa.js} +12 -12
- package/dist/{vue-ui-rings-DD-JSPqp.cjs → vue-ui-rings-HITb7jlj.cjs} +1 -1
- package/dist/{vue-ui-scatter-BH1LZ7XU.js → vue-ui-scatter-Cz4FEjWs.js} +12 -12
- package/dist/{vue-ui-scatter-uwcz6Dui.cjs → vue-ui-scatter-OHMJOdMx.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CupnT9Fr.js → vue-ui-screenshot-BdztwxL8.js} +1 -1
- package/dist/{vue-ui-screenshot-Dv20cwPs.cjs → vue-ui-screenshot-PgLhVqsE.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bw4w98Z_.cjs → vue-ui-skeleton-DkZB7ae3.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DyIz4SMi.js → vue-ui-skeleton-uAX1ZH1F.js} +3 -3
- package/dist/{vue-ui-smiley-bhbvfV3Y.js → vue-ui-smiley-B8AEl3OB.js} +2 -2
- package/dist/{vue-ui-smiley-Ce8lEqra.cjs → vue-ui-smiley-CdtUIpXZ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D_YPkSzD.cjs → vue-ui-spark-trend-BvYBFEgW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Cft_rb44.js → vue-ui-spark-trend-C4TeGkYj.js} +5 -5
- package/dist/{vue-ui-sparkbar-DgaxPc1h.js → vue-ui-sparkbar-CTjfAkYo.js} +4 -4
- package/dist/{vue-ui-sparkbar-BDgJFX4N.cjs → vue-ui-sparkbar-DB7UzjAD.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dl20cigA.js → vue-ui-sparkgauge-BlPTNi74.js} +4 -4
- package/dist/{vue-ui-sparkgauge-oNVmAtjA.cjs → vue-ui-sparkgauge-Bn2BPZoT.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-ChgeNYIQ.cjs → vue-ui-sparkhistogram-B1mF8U0R.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-c4jnOFhu.js → vue-ui-sparkhistogram-BKRqTMvf.js} +5 -5
- package/dist/{vue-ui-sparkline-fHgH7VCW.js → vue-ui-sparkline-Bg-TapoG.js} +4 -4
- package/dist/{vue-ui-sparkline-CJDCb22O.cjs → vue-ui-sparkline-Dj0hFEo0.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-kG-HctgQ.js → vue-ui-sparkstackbar-D8KqTPqH.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-B9uRFWik.cjs → vue-ui-sparkstackbar-DzI-MFl3.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Sg4hlIIU.js → vue-ui-stackbar-6vF4VXMO.js} +13 -13
- package/dist/{vue-ui-stackbar-B18q0nZn.cjs → vue-ui-stackbar-e1b5UPvn.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BpXdYlYa.cjs → vue-ui-strip-plot-GsQbr3zj.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BxN4hG2t.js → vue-ui-strip-plot-sWs8kbbo.js} +11 -11
- package/dist/{vue-ui-table-BL1egpui.cjs → vue-ui-table-CJVmhYep.cjs} +1 -1
- package/dist/{vue-ui-table-QB-vjlCq.js → vue-ui-table-SRSARac3.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BvtvK493.js → vue-ui-table-heatmap-CKiO41aZ.js} +4 -4
- package/dist/{vue-ui-table-heatmap-D-gPys1-.cjs → vue-ui-table-heatmap-D1xntRRZ.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Bl8bzMSu.cjs → vue-ui-table-sparkline-BZJqRwhf.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Bl6CBllu.js → vue-ui-table-sparkline-hyCYl7SR.js} +5 -5
- package/dist/{vue-ui-thermometer-CQBwx4Sr.cjs → vue-ui-thermometer-0bxewTlH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DvkQCKJ8.js → vue-ui-thermometer-uYO2Cbv6.js} +7 -7
- package/dist/{vue-ui-timer-CTPxmrXy.js → vue-ui-timer-DO2sPtaA.js} +5 -5
- package/dist/{vue-ui-timer-mGjVAf8m.cjs → vue-ui-timer-hehskDGP.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-8Oi7eeFT.cjs → vue-ui-tiremarks-C3Y478uT.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DxwcalRe.js → vue-ui-tiremarks-DQjOkAad.js} +7 -7
- package/dist/{vue-ui-treemap-CaDJCGUj.js → vue-ui-treemap-Bv36Ha7O.js} +11 -11
- package/dist/{vue-ui-treemap-BquPyE0p.cjs → vue-ui-treemap-_4nb3nS1.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BbFt098V.js → vue-ui-vertical-bar-DeP6cUWy.js} +12 -12
- package/dist/{vue-ui-vertical-bar-D3xJyfKa.cjs → vue-ui-vertical-bar-LquYjKVD.cjs} +1 -1
- package/dist/{vue-ui-waffle-BmNA6NLx.js → vue-ui-waffle-BfzfWmf5.js} +304 -276
- package/dist/vue-ui-waffle-Hlsl5QtL.cjs +1 -0
- package/dist/{vue-ui-wheel-BAcTVwye.cjs → vue-ui-wheel--e6UBwL4.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cb-feR-M.js → vue-ui-wheel-DJC5YCbw.js} +7 -7
- package/dist/{vue-ui-word-cloud-DaHs0ide.cjs → vue-ui-word-cloud-AGcxc9Jb.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-zx7YU5O2.js → vue-ui-word-cloud-CVsld1uE.js} +10 -10
- package/dist/{vue-ui-xy-wZOHLmBv.cjs → vue-ui-xy-DiZVwKYl.cjs} +1 -1
- package/dist/{vue-ui-xy-DOEHuFSz.js → vue-ui-xy-DwwIMZEo.js} +14 -14
- package/dist/{vue-ui-xy-canvas-B_LyiCyr.js → vue-ui-xy-canvas-ChBRm7Zw.js} +11 -11
- package/dist/{vue-ui-xy-canvas-7u6MWjcr.cjs → vue-ui-xy-canvas-D1kEOzE6.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-waffle-3cY5r2QB.cjs +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { useSlots as tt,
|
|
2
|
-
import { u as rt, c as nt, t as it, a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as Pt } from "./Tooltip-
|
|
7
|
-
import { D as Lt } from "./DataTable-
|
|
8
|
-
import { L as Ot } from "./Legend-
|
|
9
|
-
import At from "./vue-ui-skeleton-
|
|
10
|
-
import Ft from "./vue-ui-accordion-
|
|
11
|
-
import { u as De } from "./useNestedProp-
|
|
12
|
-
import { _ as zt } from "./PackageVersion-
|
|
13
|
-
import { P as Nt } from "./PenAndPaper-
|
|
1
|
+
import { useSlots as tt, computed as d, ref as v, watch as Ne, onMounted as lt, onBeforeUnmount as at, openBlock as s, createElementBlock as r, normalizeClass as Be, normalizeStyle as X, unref as c, createBlock as N, createCommentVNode as y, createSlots as Ve, withCtx as b, renderSlot as g, normalizeProps as B, guardReactiveProps as V, createVNode as ne, createElementVNode as x, Fragment as _, renderList as O, toDisplayString as A, createTextVNode as Me, nextTick as ot, pushScopeId as ut, popScopeId as st } from "vue";
|
|
2
|
+
import { u as rt, c as nt, t as it, a as vt, p as M, o as ct, e as ie, g as dt, b as ht, i as E, f as C, X as pt, s as yt, w as ft, G as gt, L as bt, d as mt, x as wt, y as kt, q as xt, r as _t } from "./index-3_ulDZ6w.js";
|
|
3
|
+
import { t as Ct, u as $t } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as It } from "./Title-L52l_KMR.js";
|
|
5
|
+
import { u as Tt, U as St } from "./usePrinter-NdwnpHUu.js";
|
|
6
|
+
import { _ as Pt } from "./Tooltip-FYp9ljnj.js";
|
|
7
|
+
import { D as Lt } from "./DataTable-CNH8bChE.js";
|
|
8
|
+
import { L as Ot } from "./Legend-kF7sC1KK.js";
|
|
9
|
+
import At from "./vue-ui-skeleton-uAX1ZH1F.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-DXlXtAML.js";
|
|
11
|
+
import { u as De } from "./useNestedProp-Bs6ltq3I.js";
|
|
12
|
+
import { _ as zt } from "./PackageVersion-m6HC0skh.js";
|
|
13
|
+
import { P as Nt } from "./PenAndPaper-FOhKSug_.js";
|
|
14
14
|
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Vt } from "./
|
|
16
|
-
|
|
15
|
+
import { _ as Vt } from "./Shape-CfcWXI5g.js";
|
|
16
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const Ue = (W) => (ut("data-v-8a0b99ad"), W = W(), st(), W), Dt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], Rt = ["stop-color"], jt = ["stop-color"], Et = ["id"], Wt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feGaussianBlur", {
|
|
17
18
|
in: "SourceGraphic",
|
|
18
19
|
stdDeviation: 2
|
|
19
|
-
}, null, -1)),
|
|
20
|
+
}, null, -1)), qt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ x("feColorMatrix", {
|
|
20
21
|
type: "saturate",
|
|
21
22
|
values: "0"
|
|
22
|
-
}, null, -1)),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
23
|
+
}, null, -1)), Ht = [
|
|
24
|
+
Wt,
|
|
25
|
+
qt
|
|
26
|
+
], Xt = ["x", "y", "height", "width"], Yt = ["height", "width"], Jt = { key: 0 }, Kt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Qt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Zt = { key: 1 }, el = ["rx", "x", "y", "height", "width", "fill", "filter"], tl = ["x", "y", "height", "width", "filter"], ll = { key: 0 }, al = { key: 1 }, ol = { key: 2 }, ul = { key: 3 }, sl = ["onMouseover", "x", "y", "height", "width"], rl = {
|
|
26
27
|
key: 5,
|
|
27
28
|
class: "vue-data-ui-watermark"
|
|
28
|
-
},
|
|
29
|
+
}, nl = ["onClick"], il = { key: 0 }, vl = { key: 1 }, cl = ["innerHTML"], dl = {
|
|
29
30
|
__name: "vue-ui-waffle",
|
|
30
31
|
props: {
|
|
31
32
|
config: {
|
|
@@ -42,34 +43,30 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
emits: ["selectLegend"],
|
|
45
|
-
setup(
|
|
46
|
-
const m =
|
|
47
|
-
|
|
48
|
-
je["chart-background"] && console.warn("VueUiWaffle does not support the #chart-background slot.");
|
|
49
|
-
});
|
|
50
|
-
const Y = d(() => !!m.dataset && m.dataset.length), P = c(nt()), Ee = c(null), ee = c(!1), te = c(""), B = c(null), ne = c(0), V = c(null), ie = c(null), ce = c(null), ve = c(null), de = c(null), he = c(0), pe = c(0), fe = c(0), e = d({
|
|
51
|
-
get: () => be(),
|
|
46
|
+
setup(W, { expose: Ge, emit: Re }) {
|
|
47
|
+
const m = W, { vue_ui_waffle: je } = rt(), Ee = tt(), Y = d(() => !!m.dataset && m.dataset.length), k = v(nt()), We = v(null), te = v(!1), le = v(""), D = v(null), ve = v(0), U = v(null), ce = v(null), de = v(null), he = v(null), pe = v(null), ye = v(0), fe = v(0), ge = v(0), e = d({
|
|
48
|
+
get: () => we(),
|
|
52
49
|
set: (t) => t
|
|
53
|
-
}), { userOptionsVisible:
|
|
54
|
-
function
|
|
50
|
+
}), { userOptionsVisible: ae, setUserOptionsVisibility: be, keepUserOptionState: me } = Bt({ config: e.value });
|
|
51
|
+
function we() {
|
|
55
52
|
const t = De({
|
|
56
53
|
userConfig: m.config,
|
|
57
|
-
defaultConfig:
|
|
54
|
+
defaultConfig: je
|
|
58
55
|
});
|
|
59
56
|
return t.theme ? {
|
|
60
57
|
...De({
|
|
61
58
|
userConfig: it.vue_ui_waffle[t.theme] || m.config,
|
|
62
59
|
defaultConfig: t
|
|
63
60
|
}),
|
|
64
|
-
customPalette:
|
|
61
|
+
customPalette: vt[t.theme] || M
|
|
65
62
|
} : t;
|
|
66
63
|
}
|
|
67
64
|
Ne(() => m.config, (t) => {
|
|
68
|
-
e.value =
|
|
65
|
+
e.value = we(), ae.value = !e.value.showOnChartHover, ke(), ye.value += 1, fe.value += 1, ge.value += 1;
|
|
69
66
|
}, { deep: !0 });
|
|
70
|
-
const J =
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
67
|
+
const J = v(null);
|
|
68
|
+
function ke() {
|
|
69
|
+
if (ct(m.dataset) ? ie({
|
|
73
70
|
componentName: "VueUiWaffle",
|
|
74
71
|
type: "dataset"
|
|
75
72
|
}) : m.dataset.forEach((t, a) => {
|
|
@@ -77,7 +74,7 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
77
74
|
datasetObject: t,
|
|
78
75
|
requiredAttributes: ["name", "values"]
|
|
79
76
|
}).forEach((l) => {
|
|
80
|
-
|
|
77
|
+
ie({
|
|
81
78
|
componentName: "VueUiWaffle",
|
|
82
79
|
type: "datasetSerieAttribute",
|
|
83
80
|
property: l,
|
|
@@ -85,68 +82,68 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
85
82
|
});
|
|
86
83
|
});
|
|
87
84
|
}), e.value.responsive) {
|
|
88
|
-
const t =
|
|
85
|
+
const t = Ct(() => {
|
|
89
86
|
const { width: a, height: l } = $t({
|
|
90
|
-
chart:
|
|
91
|
-
title: e.value.style.chart.title.text ?
|
|
92
|
-
legend: e.value.style.chart.legend.show ?
|
|
93
|
-
source:
|
|
94
|
-
noTitle:
|
|
87
|
+
chart: U.value,
|
|
88
|
+
title: e.value.style.chart.title.text ? ce.value : null,
|
|
89
|
+
legend: e.value.style.chart.legend.show ? de.value : null,
|
|
90
|
+
source: he.value,
|
|
91
|
+
noTitle: pe.value
|
|
95
92
|
});
|
|
96
|
-
|
|
93
|
+
F.value.width = a, F.value.height = l, $.value.width = a, $.value.height = l;
|
|
97
94
|
});
|
|
98
|
-
J.value = new ResizeObserver(t), J.value.observe(
|
|
95
|
+
J.value = new ResizeObserver(t), J.value.observe(U.value.parentNode);
|
|
99
96
|
}
|
|
100
97
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}),
|
|
98
|
+
lt(() => {
|
|
99
|
+
ke();
|
|
100
|
+
}), at(() => {
|
|
104
101
|
J.value && J.value.disconnect();
|
|
105
102
|
});
|
|
106
|
-
const { isPrinting:
|
|
107
|
-
elementId: `vue-ui-waffle_${
|
|
103
|
+
const { isPrinting: xe, isImaging: _e, generatePdf: Ce, generateImage: $e } = Tt({
|
|
104
|
+
elementId: `vue-ui-waffle_${k.value}`,
|
|
108
105
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
109
|
-
}), qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
106
|
+
}), qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = d(() => ht(e.value.customPalette)), L = v({
|
|
110
107
|
showTable: e.value.table.show,
|
|
111
108
|
showTooltip: e.value.style.chart.tooltip.show
|
|
112
|
-
}),
|
|
109
|
+
}), F = v({
|
|
113
110
|
height: 512,
|
|
114
111
|
width: 512
|
|
115
|
-
}),
|
|
112
|
+
}), $ = v({
|
|
116
113
|
top: 0,
|
|
117
114
|
left: 0,
|
|
118
115
|
height: 512,
|
|
119
116
|
width: 512
|
|
120
|
-
}),
|
|
121
|
-
function
|
|
122
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w,
|
|
123
|
-
let f = a - u.reduce((w,
|
|
117
|
+
}), I = d(() => ($.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = d(() => ($.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), q = d(() => $.value.width / e.value.style.chart.layout.grid.size), K = d(() => $.value.height / e.value.style.chart.layout.grid.size);
|
|
118
|
+
function Te(t) {
|
|
119
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, re) => w + re, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
|
|
120
|
+
let f = a - u.reduce((w, re) => w + re, 0);
|
|
124
121
|
for (; f > 0; ) {
|
|
125
122
|
let w = i.indexOf(Math.max(...i));
|
|
126
123
|
u[w] += 1, i[w] = 0, f -= 1;
|
|
127
124
|
}
|
|
128
125
|
return u;
|
|
129
126
|
}
|
|
130
|
-
function
|
|
127
|
+
function Se() {
|
|
131
128
|
return m.dataset.map((t, a) => ({
|
|
132
129
|
...t,
|
|
133
|
-
color: mt(t.color) ||
|
|
130
|
+
color: mt(t.color) || Ie.value[a] || M[a] || M[a % M.length],
|
|
134
131
|
uid: `serie_${a}`,
|
|
135
132
|
absoluteIndex: a
|
|
136
133
|
}));
|
|
137
134
|
}
|
|
138
|
-
const
|
|
135
|
+
const oe = d(() => Se()), h = v(oe.value);
|
|
139
136
|
Ne(() => m.dataset, (t) => {
|
|
140
|
-
h.value =
|
|
137
|
+
h.value = Se();
|
|
141
138
|
}, { deep: !0 });
|
|
142
139
|
const He = d(() => {
|
|
143
140
|
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
144
|
-
return
|
|
141
|
+
return Te(t);
|
|
145
142
|
}), Xe = d(() => {
|
|
146
143
|
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
147
|
-
return
|
|
148
|
-
}),
|
|
149
|
-
[null, void 0].includes(t.values) &&
|
|
144
|
+
return Te(t);
|
|
145
|
+
}), H = d(() => (m.dataset.forEach((t, a) => {
|
|
146
|
+
[null, void 0].includes(t.values) && ie({
|
|
150
147
|
componentName: "VueUiWaffle",
|
|
151
148
|
type: "datasetSerieAttribute",
|
|
152
149
|
property: "values (number[])",
|
|
@@ -179,7 +176,7 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
179
176
|
}
|
|
180
177
|
const Ke = d(() => {
|
|
181
178
|
let t = 0;
|
|
182
|
-
return
|
|
179
|
+
return H.value.map((a, l) => {
|
|
183
180
|
const o = t, u = o + a.proportion, i = [];
|
|
184
181
|
for (let f = Math.floor(o); f < Math.floor(u); f += 1)
|
|
185
182
|
i.push(f);
|
|
@@ -189,7 +186,7 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
189
186
|
rects: i
|
|
190
187
|
};
|
|
191
188
|
});
|
|
192
|
-
}),
|
|
189
|
+
}), n = d(() => Ke.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
193
190
|
isFirst: o === 0,
|
|
194
191
|
isLongEnough: l.length > 2,
|
|
195
192
|
name: t.name,
|
|
@@ -202,60 +199,60 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
202
199
|
}))).map((t, a) => ({
|
|
203
200
|
...t,
|
|
204
201
|
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
205
|
-
}))),
|
|
202
|
+
}))), G = d(() => {
|
|
206
203
|
const t = [];
|
|
207
204
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
208
205
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
209
206
|
t.push({
|
|
210
207
|
isStartOfLine: l === 0,
|
|
211
208
|
position: e.value.style.chart.layout.grid.vertical ? a : l,
|
|
212
|
-
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (
|
|
213
|
-
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (
|
|
209
|
+
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (I.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
210
|
+
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (T.value + e.value.style.chart.layout.grid.spaceBetween) + $.value.top
|
|
214
211
|
});
|
|
215
212
|
return t;
|
|
216
|
-
}), p =
|
|
217
|
-
function
|
|
213
|
+
}), p = v([]), z = v(!1), Pe = v(null), Le = v(null);
|
|
214
|
+
function Oe(t) {
|
|
218
215
|
if (!e.value.useAnimation) {
|
|
219
|
-
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length <
|
|
216
|
+
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < R.value.length - 1 && R.value.length > 1 && p.value.push(t);
|
|
220
217
|
return;
|
|
221
218
|
}
|
|
222
|
-
const a =
|
|
219
|
+
const a = oe.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, i) => u + i, 0);
|
|
223
220
|
let o = l;
|
|
224
221
|
if (p.value.includes(t)) {
|
|
225
222
|
let i = function() {
|
|
226
|
-
o > u ? (cancelAnimationFrame(
|
|
223
|
+
o > u ? (cancelAnimationFrame(Pe.value), h.value = h.value.map((f, w) => f.uid === t ? {
|
|
227
224
|
...f,
|
|
228
225
|
values: [u]
|
|
229
|
-
} : f),
|
|
226
|
+
} : f), z.value = !1) : (z.value = !0, o += u * 0.025, h.value = h.value.map((f, w) => f.uid === t ? {
|
|
230
227
|
...f,
|
|
231
228
|
values: [o]
|
|
232
|
-
} : f),
|
|
229
|
+
} : f), Pe.value = requestAnimationFrame(i));
|
|
233
230
|
};
|
|
234
231
|
p.value = p.value.filter((f) => f !== t);
|
|
235
232
|
const u = a;
|
|
236
233
|
i();
|
|
237
|
-
} else if (p.value.length <
|
|
234
|
+
} else if (p.value.length < R.value.length - 1 && R.value.length > 1) {
|
|
238
235
|
let u = function() {
|
|
239
|
-
o < l / 100 ? (cancelAnimationFrame(
|
|
236
|
+
o < l / 100 ? (cancelAnimationFrame(Le.value), p.value.push(t), h.value = h.value.map((i, f) => i.uid === t ? {
|
|
240
237
|
...i,
|
|
241
238
|
values: [0]
|
|
242
|
-
} : i),
|
|
239
|
+
} : i), z.value = !1) : (z.value = !0, o /= 1.15, h.value = h.value.map((i) => i.uid === t ? {
|
|
243
240
|
...i,
|
|
244
241
|
values: [o]
|
|
245
|
-
} : i),
|
|
242
|
+
} : i), Le.value = requestAnimationFrame(u));
|
|
246
243
|
};
|
|
247
244
|
u();
|
|
248
245
|
}
|
|
249
|
-
Re("selectLegend",
|
|
246
|
+
Re("selectLegend", H.value.map((u) => ({
|
|
250
247
|
name: u.name,
|
|
251
248
|
color: u.color,
|
|
252
249
|
value: u.value,
|
|
253
250
|
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
254
251
|
})));
|
|
255
252
|
}
|
|
256
|
-
const
|
|
253
|
+
const R = d(() => h.value.map((t, a) => ({
|
|
257
254
|
name: t.name,
|
|
258
|
-
color: t.color ||
|
|
255
|
+
color: t.color || Ie[a] || M[a] || M[a % M.length],
|
|
259
256
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
260
257
|
uid: t.uid,
|
|
261
258
|
shape: "square"
|
|
@@ -263,7 +260,7 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
263
260
|
...t,
|
|
264
261
|
proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
265
262
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
266
|
-
segregate: () =>
|
|
263
|
+
segregate: () => Oe(t.uid),
|
|
267
264
|
isSegregated: p.value.includes(t.uid)
|
|
268
265
|
}))), Qe = d(() => ({
|
|
269
266
|
cy: "waffle-div-legend",
|
|
@@ -272,35 +269,35 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
272
269
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
273
270
|
paddingBottom: 12,
|
|
274
271
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
275
|
-
})),
|
|
272
|
+
})), S = d(() => H.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ue = v(null);
|
|
276
273
|
function Ze(t) {
|
|
277
274
|
if (p.value.length === m.dataset.length) return;
|
|
278
|
-
const a =
|
|
279
|
-
|
|
275
|
+
const a = n.value[t];
|
|
276
|
+
ue.value = {
|
|
280
277
|
datapoint: a,
|
|
281
278
|
seriesIndex: a.absoluteIndex,
|
|
282
279
|
series: h.value,
|
|
283
280
|
config: e.value
|
|
284
|
-
},
|
|
281
|
+
}, te.value = !0, D.value = n.value[t].serieIndex;
|
|
285
282
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
286
283
|
if (wt(l) && kt(() => l({
|
|
287
|
-
seriesIndex:
|
|
284
|
+
seriesIndex: n.value[t].absoluteIndex,
|
|
288
285
|
datapoint: a,
|
|
289
286
|
series: h.value,
|
|
290
287
|
config: e.value
|
|
291
288
|
})))
|
|
292
|
-
|
|
293
|
-
seriesIndex:
|
|
289
|
+
le.value = l({
|
|
290
|
+
seriesIndex: n.value[t].absoluteIndex,
|
|
294
291
|
datapoint: a,
|
|
295
292
|
series: h.value,
|
|
296
293
|
config: e.value
|
|
297
294
|
});
|
|
298
295
|
else {
|
|
299
296
|
let o = "";
|
|
300
|
-
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0
|
|
297
|
+
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${Ee.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${E(
|
|
301
298
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
302
299
|
a.value,
|
|
303
|
-
|
|
300
|
+
C({
|
|
304
301
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
305
302
|
v: a.value,
|
|
306
303
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -308,69 +305,69 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
308
305
|
}),
|
|
309
306
|
{
|
|
310
307
|
datapoint: a,
|
|
311
|
-
seriesIndex:
|
|
308
|
+
seriesIndex: n.value[t].absoluteIndex,
|
|
312
309
|
series: h.value
|
|
313
310
|
}
|
|
314
311
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
315
|
-
const u =
|
|
316
|
-
v: a.value /
|
|
312
|
+
const u = C({
|
|
313
|
+
v: a.value / S.value * 100,
|
|
317
314
|
s: "%",
|
|
318
315
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
319
316
|
});
|
|
320
317
|
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
321
318
|
}
|
|
322
|
-
|
|
319
|
+
le.value = o;
|
|
323
320
|
}
|
|
324
321
|
}
|
|
325
|
-
const
|
|
326
|
-
const t =
|
|
322
|
+
const P = d(() => {
|
|
323
|
+
const t = H.value.map((l) => ({
|
|
327
324
|
name: l.name,
|
|
328
325
|
color: l.color
|
|
329
|
-
})), a =
|
|
326
|
+
})), a = H.value.map((l) => l.value);
|
|
330
327
|
return { head: t, body: a };
|
|
331
328
|
});
|
|
332
|
-
function
|
|
333
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
329
|
+
function Q(t) {
|
|
330
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
334
331
|
}
|
|
335
|
-
function
|
|
332
|
+
function Ae() {
|
|
336
333
|
ot(() => {
|
|
337
|
-
const t =
|
|
334
|
+
const t = P.value.head.map((o, u) => [[
|
|
338
335
|
o.name
|
|
339
|
-
], [
|
|
340
|
-
|
|
336
|
+
], [P.value.body[u]], [isNaN(P.value.body[u] / S.value) ? "-" : P.value.body[u] / S.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = xt(a);
|
|
337
|
+
_t({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
341
338
|
});
|
|
342
339
|
}
|
|
343
|
-
const
|
|
340
|
+
const Z = d(() => {
|
|
344
341
|
const t = [
|
|
345
342
|
' <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>',
|
|
346
|
-
|
|
343
|
+
E(
|
|
347
344
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
348
|
-
|
|
349
|
-
|
|
345
|
+
S.value,
|
|
346
|
+
C({
|
|
350
347
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
351
|
-
v:
|
|
348
|
+
v: S.value,
|
|
352
349
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
353
350
|
r: e.value.table.td.roundingValue
|
|
354
351
|
})
|
|
355
352
|
),
|
|
356
353
|
"100%"
|
|
357
|
-
], a =
|
|
354
|
+
], a = P.value.head.map((u, i) => [
|
|
358
355
|
{
|
|
359
356
|
color: u.color,
|
|
360
357
|
name: u.name
|
|
361
358
|
},
|
|
362
|
-
|
|
359
|
+
E(
|
|
363
360
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
364
|
-
|
|
365
|
-
|
|
361
|
+
P.value.body[i],
|
|
362
|
+
C({
|
|
366
363
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
367
|
-
v:
|
|
364
|
+
v: P.value.body[i],
|
|
368
365
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
369
366
|
r: e.value.table.td.roundingValue
|
|
370
367
|
})
|
|
371
368
|
),
|
|
372
|
-
isNaN(
|
|
373
|
-
v:
|
|
369
|
+
isNaN(P.value.body[i] / S.value) ? "-" : C({
|
|
370
|
+
v: P.value.body[i] / S.value * 100,
|
|
374
371
|
s: "%",
|
|
375
372
|
r: e.value.table.td.roundingPercentage
|
|
376
373
|
})
|
|
@@ -398,60 +395,60 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
398
395
|
config: l,
|
|
399
396
|
colNames: o
|
|
400
397
|
};
|
|
401
|
-
}),
|
|
398
|
+
}), j = v(!1);
|
|
402
399
|
function et(t) {
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
function Ae() {
|
|
406
|
-
T.value.showTable = !T.value.showTable;
|
|
400
|
+
j.value = t, ve.value += 1;
|
|
407
401
|
}
|
|
408
402
|
function Fe() {
|
|
409
|
-
|
|
403
|
+
L.value.showTable = !L.value.showTable;
|
|
410
404
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
405
|
+
function ze() {
|
|
406
|
+
L.value.showTooltip = !L.value.showTooltip;
|
|
407
|
+
}
|
|
408
|
+
const ee = v(!1);
|
|
409
|
+
function se() {
|
|
410
|
+
ee.value = !ee.value;
|
|
414
411
|
}
|
|
415
412
|
return Ge({
|
|
416
413
|
getData: Je,
|
|
417
|
-
generatePdf:
|
|
418
|
-
generateCsv:
|
|
419
|
-
generateImage:
|
|
420
|
-
toggleTable:
|
|
421
|
-
toggleTooltip:
|
|
422
|
-
toggleAnnotator:
|
|
423
|
-
}), (t, a) => (s(),
|
|
424
|
-
class: Be(`vue-ui-waffle ${
|
|
414
|
+
generatePdf: Ce,
|
|
415
|
+
generateCsv: Ae,
|
|
416
|
+
generateImage: $e,
|
|
417
|
+
toggleTable: Fe,
|
|
418
|
+
toggleTooltip: ze,
|
|
419
|
+
toggleAnnotator: se
|
|
420
|
+
}), (t, a) => (s(), r("div", {
|
|
421
|
+
class: Be(`vue-ui-waffle ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
425
422
|
ref_key: "waffleChart",
|
|
426
|
-
ref:
|
|
427
|
-
id: `vue-ui-waffle_${
|
|
423
|
+
ref: U,
|
|
424
|
+
id: `vue-ui-waffle_${k.value}`,
|
|
428
425
|
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
429
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
430
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
426
|
+
onMouseenter: a[3] || (a[3] = () => c(be)(!0)),
|
|
427
|
+
onMouseleave: a[4] || (a[4] = () => c(be)(!1))
|
|
431
428
|
}, [
|
|
432
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
429
|
+
e.value.userOptions.buttons.annotator ? (s(), N(Nt, {
|
|
433
430
|
key: 0,
|
|
434
|
-
parent:
|
|
431
|
+
parent: U.value,
|
|
435
432
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
436
433
|
color: e.value.style.chart.color,
|
|
437
|
-
active:
|
|
438
|
-
onClose:
|
|
434
|
+
active: ee.value,
|
|
435
|
+
onClose: se
|
|
439
436
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : y("", !0),
|
|
440
|
-
qe.value ? (s(),
|
|
437
|
+
qe.value ? (s(), r("div", {
|
|
441
438
|
key: 1,
|
|
442
439
|
ref_key: "noTitle",
|
|
443
|
-
ref:
|
|
440
|
+
ref: pe,
|
|
444
441
|
class: "vue-data-ui-no-title-space",
|
|
445
442
|
style: "height:36px; width: 100%;background:transparent"
|
|
446
443
|
}, null, 512)) : y("", !0),
|
|
447
|
-
e.value.style.chart.title.text ? (s(),
|
|
444
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
448
445
|
key: 2,
|
|
449
446
|
ref_key: "chartTitle",
|
|
450
|
-
ref:
|
|
447
|
+
ref: ce,
|
|
451
448
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
452
449
|
}, [
|
|
453
|
-
(s(),
|
|
454
|
-
key: `title_${
|
|
450
|
+
(s(), N(It, {
|
|
451
|
+
key: `title_${ye.value}`,
|
|
455
452
|
config: {
|
|
456
453
|
title: {
|
|
457
454
|
cy: "waffle-title",
|
|
@@ -464,39 +461,39 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
464
461
|
}
|
|
465
462
|
}, null, 8, ["config"]))
|
|
466
463
|
], 512)) : y("", !0),
|
|
467
|
-
e.value.userOptions.show && Y.value && (
|
|
464
|
+
e.value.userOptions.show && Y.value && (c(me) || c(ae)) ? (s(), N(St, {
|
|
468
465
|
ref_key: "details",
|
|
469
|
-
ref:
|
|
470
|
-
key: `user_options_${
|
|
466
|
+
ref: We,
|
|
467
|
+
key: `user_options_${ve.value}`,
|
|
471
468
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
472
469
|
color: e.value.style.chart.color,
|
|
473
|
-
isPrinting:
|
|
474
|
-
isImaging:
|
|
475
|
-
uid:
|
|
470
|
+
isPrinting: c(xe),
|
|
471
|
+
isImaging: c(_e),
|
|
472
|
+
uid: k.value,
|
|
476
473
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
477
474
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
478
475
|
hasImg: e.value.userOptions.buttons.img,
|
|
479
476
|
hasXls: e.value.userOptions.buttons.csv,
|
|
480
477
|
hasTable: e.value.userOptions.buttons.table,
|
|
481
478
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
482
|
-
isFullscreen:
|
|
483
|
-
isTooltip:
|
|
479
|
+
isFullscreen: j.value,
|
|
480
|
+
isTooltip: L.value.showTooltip,
|
|
484
481
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
485
|
-
chartElement:
|
|
482
|
+
chartElement: U.value,
|
|
486
483
|
position: e.value.userOptions.position,
|
|
487
484
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
488
|
-
isAnnotation:
|
|
485
|
+
isAnnotation: ee.value,
|
|
489
486
|
onToggleFullscreen: et,
|
|
490
|
-
onGeneratePdf:
|
|
491
|
-
onGenerateCsv:
|
|
492
|
-
onGenerateImage:
|
|
493
|
-
onToggleTable:
|
|
494
|
-
onToggleTooltip:
|
|
495
|
-
onToggleAnnotator:
|
|
487
|
+
onGeneratePdf: c(Ce),
|
|
488
|
+
onGenerateCsv: Ae,
|
|
489
|
+
onGenerateImage: c($e),
|
|
490
|
+
onToggleTable: Fe,
|
|
491
|
+
onToggleTooltip: ze,
|
|
492
|
+
onToggleAnnotator: se,
|
|
496
493
|
style: X({
|
|
497
|
-
visibility:
|
|
494
|
+
visibility: c(me) ? c(ae) ? "visible" : "hidden" : "visible"
|
|
498
495
|
})
|
|
499
|
-
},
|
|
496
|
+
}, Ve({ _: 2 }, [
|
|
500
497
|
t.$slots.optionTooltip ? {
|
|
501
498
|
name: "optionTooltip",
|
|
502
499
|
fn: b(() => [
|
|
@@ -535,154 +532,171 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
535
532
|
t.$slots.optionFullscreen ? {
|
|
536
533
|
name: "optionFullscreen",
|
|
537
534
|
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
538
|
-
g(t.$slots, "optionFullscreen",
|
|
535
|
+
g(t.$slots, "optionFullscreen", B(V({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
539
536
|
]),
|
|
540
537
|
key: "5"
|
|
541
538
|
} : void 0,
|
|
542
539
|
t.$slots.optionAnnotator ? {
|
|
543
540
|
name: "optionAnnotator",
|
|
544
541
|
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
545
|
-
g(t.$slots, "optionAnnotator",
|
|
542
|
+
g(t.$slots, "optionAnnotator", B(V({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
546
543
|
]),
|
|
547
544
|
key: "6"
|
|
548
545
|
} : void 0
|
|
549
546
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
550
|
-
Y.value ? (s(),
|
|
547
|
+
Y.value ? (s(), r("svg", {
|
|
551
548
|
key: 4,
|
|
552
|
-
xmlns:
|
|
553
|
-
class: Be({ "vue-data-ui-fullscreen--on":
|
|
554
|
-
viewBox: `0 0 ${
|
|
549
|
+
xmlns: c(pt),
|
|
550
|
+
class: Be({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
|
|
551
|
+
viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
|
|
555
552
|
style: X(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
556
553
|
}, [
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
(s(!0),
|
|
554
|
+
ne(zt),
|
|
555
|
+
x("defs", null, [
|
|
556
|
+
(s(!0), r(_, null, O(n.value, (l, o) => (s(), r("radialGradient", {
|
|
560
557
|
cx: "50%",
|
|
561
558
|
cy: "50%",
|
|
562
559
|
r: "50%",
|
|
563
560
|
fx: "50%",
|
|
564
561
|
fy: "50%",
|
|
565
|
-
id: `gradient_${
|
|
562
|
+
id: `gradient_${k.value}_${o}`
|
|
566
563
|
}, [
|
|
567
|
-
|
|
564
|
+
x("stop", {
|
|
568
565
|
offset: "0%",
|
|
569
|
-
"stop-color":
|
|
570
|
-
}, null, 8,
|
|
571
|
-
|
|
566
|
+
"stop-color": c(yt)(c(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
567
|
+
}, null, 8, Rt),
|
|
568
|
+
x("stop", {
|
|
572
569
|
offset: "100%",
|
|
573
570
|
"stop-color": l.color
|
|
574
|
-
}, null, 8,
|
|
575
|
-
], 8,
|
|
571
|
+
}, null, 8, jt)
|
|
572
|
+
], 8, Gt))), 256))
|
|
576
573
|
]),
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
id: `blur_${
|
|
574
|
+
x("defs", null, [
|
|
575
|
+
x("filter", {
|
|
576
|
+
id: `blur_${k.value}`,
|
|
580
577
|
x: "-50%",
|
|
581
578
|
y: "-50%",
|
|
582
579
|
width: "200%",
|
|
583
580
|
height: "200%"
|
|
584
|
-
},
|
|
581
|
+
}, Ht, 8, Et)
|
|
585
582
|
]),
|
|
586
|
-
e.value.useCustomCells &&
|
|
583
|
+
e.value.useCustomCells && n.value.length ? (s(!0), r(_, { key: 0 }, O(G.value, (l, o) => (s(), r("foreignObject", {
|
|
587
584
|
x: l.x,
|
|
588
585
|
y: l.y,
|
|
589
|
-
height:
|
|
590
|
-
width:
|
|
586
|
+
height: T.value <= 0 ? 1e-4 : T.value,
|
|
587
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
591
588
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
592
589
|
}, [
|
|
593
|
-
g(t.$slots, "cell",
|
|
594
|
-
], 8,
|
|
595
|
-
!
|
|
590
|
+
g(t.$slots, "cell", B(V({ cell: { ...l, color: n.value[o].color, ...n.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : n.value[o].serieIndex === D.value })), void 0, !0)
|
|
591
|
+
], 8, Xt))), 256)) : y("", !0),
|
|
592
|
+
!n.value.length && !e.value.useCustomCells ? (s(), r("rect", {
|
|
596
593
|
key: 1,
|
|
597
594
|
x: 12,
|
|
598
595
|
y: 12,
|
|
599
|
-
height:
|
|
600
|
-
width:
|
|
596
|
+
height: $.value.height - 24,
|
|
597
|
+
width: $.value.width - 24,
|
|
601
598
|
rx: 3,
|
|
602
599
|
fill: "none",
|
|
603
600
|
stroke: "black"
|
|
604
|
-
}, null, 8,
|
|
605
|
-
|
|
601
|
+
}, null, 8, Yt)) : n.value.length && !e.value.useCustomCells ? (s(), r(_, { key: 2 }, [
|
|
602
|
+
t.$slots.pattern ? (s(), r("g", Jt, [
|
|
603
|
+
(s(!0), r(_, null, O(oe.value, (l) => (s(), r("defs", null, [
|
|
604
|
+
g(t.$slots, "pattern", B(V({ seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` })), void 0, !0)
|
|
605
|
+
]))), 256))
|
|
606
|
+
])) : y("", !0),
|
|
607
|
+
(s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
|
|
606
608
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
607
609
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
608
610
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
609
|
-
height:
|
|
610
|
-
width:
|
|
611
|
+
height: T.value <= 0 ? 1e-4 : T.value,
|
|
612
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
611
613
|
fill: "white",
|
|
612
614
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
613
615
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
614
|
-
filter:
|
|
615
|
-
}, null, 8,
|
|
616
|
-
(s(!0),
|
|
616
|
+
filter: Q(n.value[o].serieIndex)
|
|
617
|
+
}, null, 8, Kt))), 256)),
|
|
618
|
+
(s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
|
|
617
619
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
618
620
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
619
621
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
620
|
-
height:
|
|
621
|
-
width:
|
|
622
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${
|
|
622
|
+
height: T.value <= 0 ? 1e-4 : T.value,
|
|
623
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
624
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : n.value[o].color,
|
|
623
625
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
624
626
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
625
|
-
filter:
|
|
626
|
-
}, null, 8,
|
|
627
|
+
filter: Q(n.value[o].serieIndex)
|
|
628
|
+
}, null, 8, Qt))), 256)),
|
|
629
|
+
t.$slots.pattern ? (s(), r("g", Zt, [
|
|
630
|
+
(s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
|
|
631
|
+
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
632
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
633
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
634
|
+
height: T.value <= 0 ? 1e-4 : T.value,
|
|
635
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
636
|
+
fill: `url(#pattern_${k.value}_${n.value[o].absoluteIndex})`,
|
|
637
|
+
stroke: "none",
|
|
638
|
+
filter: Q(n.value[o].serieIndex)
|
|
639
|
+
}, null, 8, el))), 256))
|
|
640
|
+
])) : y("", !0)
|
|
627
641
|
], 64)) : y("", !0),
|
|
628
|
-
(s(!0),
|
|
629
|
-
|
|
642
|
+
(s(!0), r(_, null, O(G.value, (l, o) => (s(), r(_, null, [
|
|
643
|
+
n.value.length && !z.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (n.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || n.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && n.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
|
|
630
644
|
key: 0,
|
|
631
645
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
632
646
|
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
633
647
|
height: K.value <= 0 ? 1e-4 : K.value,
|
|
634
|
-
width:
|
|
635
|
-
filter:
|
|
648
|
+
width: q.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : q.value * e.value.style.chart.layout.grid.size,
|
|
649
|
+
filter: Q(n.value[o].serieIndex)
|
|
636
650
|
}, [
|
|
637
|
-
|
|
651
|
+
x("div", {
|
|
638
652
|
class: "vue-ui-waffle-caption",
|
|
639
|
-
style: X(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${
|
|
653
|
+
style: X(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${q.value / 12}px;color:${c(gt)(n.value[o].color)};gap:2px`)
|
|
640
654
|
}, [
|
|
641
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(),
|
|
642
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(),
|
|
643
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
655
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ll, A(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? c(bt)({ source: n.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : n.value[o].name) + ": ", 1)) : y("", !0),
|
|
656
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", al, A(c(C)({ v: n.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
|
|
657
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ol, " (" + A(c(E)(
|
|
644
658
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
645
|
-
|
|
646
|
-
|
|
659
|
+
n.value[o].value,
|
|
660
|
+
c(C)({
|
|
647
661
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
648
|
-
v:
|
|
662
|
+
v: n.value[o].value,
|
|
649
663
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
650
664
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
651
665
|
}),
|
|
652
|
-
{ datapoint:
|
|
666
|
+
{ datapoint: n.value[o], position: l }
|
|
653
667
|
)) + ") ", 1)) : y("", !0),
|
|
654
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
668
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, A(c(E)(
|
|
655
669
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
656
|
-
|
|
657
|
-
|
|
670
|
+
n.value[o].value,
|
|
671
|
+
c(C)({
|
|
658
672
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
659
|
-
v:
|
|
673
|
+
v: n.value[o].value,
|
|
660
674
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
661
675
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
662
676
|
}),
|
|
663
|
-
{ datapoint:
|
|
677
|
+
{ datapoint: n.value[o], position: l }
|
|
664
678
|
)), 1)) : y("", !0)
|
|
665
679
|
], 4)
|
|
666
|
-
], 8,
|
|
680
|
+
], 8, tl)) : y("", !0)
|
|
667
681
|
], 64))), 256)),
|
|
668
|
-
(s(!0),
|
|
682
|
+
(s(!0), r(_, null, O(G.value, (l, o) => (s(), r("rect", {
|
|
669
683
|
onMouseover: (u) => Ze(o),
|
|
670
684
|
onMouseleave: a[0] || (a[0] = (u) => {
|
|
671
|
-
|
|
685
|
+
te.value = !1, D.value = null;
|
|
672
686
|
}),
|
|
673
687
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
674
688
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
675
689
|
height: K.value <= 0 ? 1e-4 : K.value,
|
|
676
|
-
width:
|
|
690
|
+
width: q.value <= 0 ? 1e-4 : q.value,
|
|
677
691
|
fill: "transparent",
|
|
678
692
|
stroke: "none"
|
|
679
|
-
}, null, 40,
|
|
680
|
-
g(t.$slots, "svg", { svg:
|
|
681
|
-
], 14,
|
|
682
|
-
t.$slots.watermark ? (s(),
|
|
683
|
-
g(t.$slots, "watermark",
|
|
693
|
+
}, null, 40, sl))), 256)),
|
|
694
|
+
g(t.$slots, "svg", { svg: F.value }, void 0, !0)
|
|
695
|
+
], 14, Ut)) : y("", !0),
|
|
696
|
+
t.$slots.watermark ? (s(), r("div", rl, [
|
|
697
|
+
g(t.$slots, "watermark", B(V({ isPrinting: c(xe) || c(_e) })), void 0, !0)
|
|
684
698
|
])) : y("", !0),
|
|
685
|
-
Y.value ? y("", !0) : (s(),
|
|
699
|
+
Y.value ? y("", !0) : (s(), N(At, {
|
|
686
700
|
key: 6,
|
|
687
701
|
config: {
|
|
688
702
|
type: "waffle",
|
|
@@ -694,52 +708,66 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
694
708
|
}
|
|
695
709
|
}
|
|
696
710
|
}, null, 8, ["config"])),
|
|
697
|
-
|
|
711
|
+
x("div", {
|
|
698
712
|
ref_key: "chartLegend",
|
|
699
|
-
ref:
|
|
713
|
+
ref: de
|
|
700
714
|
}, [
|
|
701
|
-
e.value.style.chart.legend.show ? (s(),
|
|
702
|
-
key: `legend_${
|
|
703
|
-
legendSet:
|
|
715
|
+
e.value.style.chart.legend.show ? (s(), N(Ot, {
|
|
716
|
+
key: `legend_${ge.value}`,
|
|
717
|
+
legendSet: R.value,
|
|
704
718
|
config: Qe.value,
|
|
705
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) =>
|
|
706
|
-
}, {
|
|
719
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Oe(l.uid))
|
|
720
|
+
}, Ve({
|
|
707
721
|
item: b(({ legend: l }) => [
|
|
708
|
-
|
|
722
|
+
x("div", {
|
|
709
723
|
onClick: (o) => l.segregate(),
|
|
710
724
|
style: X(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
711
725
|
}, [
|
|
712
|
-
Me(
|
|
726
|
+
Me(A(l.name) + ": " + A(c(E)(
|
|
713
727
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
714
728
|
l.value,
|
|
715
|
-
|
|
729
|
+
c(C)({
|
|
716
730
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
717
731
|
v: l.value,
|
|
718
732
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
719
733
|
r: e.value.style.chart.legend.roundingValue,
|
|
720
|
-
isAnimating:
|
|
734
|
+
isAnimating: z.value
|
|
721
735
|
}),
|
|
722
736
|
{ datapoint: l }
|
|
723
737
|
)) + " ", 1),
|
|
724
|
-
p.value.includes(l.uid) ? (s(),
|
|
725
|
-
], 12,
|
|
738
|
+
p.value.includes(l.uid) ? (s(), r("span", vl, " ( - % ) ")) : (s(), r("span", il, " (" + A(isNaN(l.value / S.value) ? "-" : c(C)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })) + ") ", 1))
|
|
739
|
+
], 12, nl)
|
|
726
740
|
]),
|
|
727
|
-
_:
|
|
728
|
-
},
|
|
741
|
+
_: 2
|
|
742
|
+
}, [
|
|
743
|
+
t.$slots.pattern ? {
|
|
744
|
+
name: "legend-pattern",
|
|
745
|
+
fn: b(({ legend: l, index: o }) => [
|
|
746
|
+
ne(Vt, {
|
|
747
|
+
shape: l.shape,
|
|
748
|
+
radius: 30,
|
|
749
|
+
stroke: "none",
|
|
750
|
+
plot: { x: 30, y: 30 },
|
|
751
|
+
fill: `url(#pattern_${k.value}_${o})`
|
|
752
|
+
}, null, 8, ["shape", "fill"])
|
|
753
|
+
]),
|
|
754
|
+
key: "0"
|
|
755
|
+
} : void 0
|
|
756
|
+
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
729
757
|
key: 1,
|
|
730
|
-
legend:
|
|
758
|
+
legend: R.value
|
|
731
759
|
}, void 0, !0)
|
|
732
760
|
], 512),
|
|
733
|
-
t.$slots.source ? (s(),
|
|
761
|
+
t.$slots.source ? (s(), r("div", {
|
|
734
762
|
key: 7,
|
|
735
763
|
ref_key: "source",
|
|
736
|
-
ref:
|
|
764
|
+
ref: he,
|
|
737
765
|
dir: "auto"
|
|
738
766
|
}, [
|
|
739
767
|
g(t.$slots, "source", {}, void 0, !0)
|
|
740
768
|
], 512)) : y("", !0),
|
|
741
|
-
|
|
742
|
-
show:
|
|
769
|
+
ne(Pt, {
|
|
770
|
+
show: L.value.showTooltip && te.value && p.value.length < m.dataset.length,
|
|
743
771
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
744
772
|
color: e.value.style.chart.tooltip.color,
|
|
745
773
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -748,25 +776,25 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
748
776
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
749
777
|
position: e.value.style.chart.tooltip.position,
|
|
750
778
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
751
|
-
parent:
|
|
752
|
-
content:
|
|
779
|
+
parent: U.value,
|
|
780
|
+
content: le.value,
|
|
753
781
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
754
782
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
755
|
-
isFullscreen:
|
|
783
|
+
isFullscreen: j.value
|
|
756
784
|
}, {
|
|
757
785
|
"tooltip-before": b(() => [
|
|
758
|
-
g(t.$slots, "tooltip-before",
|
|
786
|
+
g(t.$slots, "tooltip-before", B(V({ ...ue.value })), void 0, !0)
|
|
759
787
|
]),
|
|
760
788
|
"tooltip-after": b(() => [
|
|
761
|
-
g(t.$slots, "tooltip-after",
|
|
789
|
+
g(t.$slots, "tooltip-after", B(V({ ...ue.value })), void 0, !0)
|
|
762
790
|
]),
|
|
763
791
|
_: 3
|
|
764
792
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
765
|
-
Y.value ? (s(),
|
|
793
|
+
Y.value ? (s(), N(Ft, {
|
|
766
794
|
key: 8,
|
|
767
795
|
hideDetails: "",
|
|
768
796
|
config: {
|
|
769
|
-
open:
|
|
797
|
+
open: L.value.showTable,
|
|
770
798
|
maxHeight: 1e4,
|
|
771
799
|
body: {
|
|
772
800
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -779,32 +807,32 @@ const Ue = (j) => (ut("data-v-a0b27ef9"), j = j(), st(), j), Mt = ["id"], Dt = [
|
|
|
779
807
|
}
|
|
780
808
|
}, {
|
|
781
809
|
content: b(() => [
|
|
782
|
-
(s(),
|
|
783
|
-
key: `table_${
|
|
784
|
-
colNames:
|
|
785
|
-
head:
|
|
786
|
-
body:
|
|
787
|
-
config:
|
|
810
|
+
(s(), N(Lt, {
|
|
811
|
+
key: `table_${fe.value}`,
|
|
812
|
+
colNames: Z.value.colNames,
|
|
813
|
+
head: Z.value.head,
|
|
814
|
+
body: Z.value.body,
|
|
815
|
+
config: Z.value.config,
|
|
788
816
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
789
|
-
onClose: a[2] || (a[2] = (l) =>
|
|
817
|
+
onClose: a[2] || (a[2] = (l) => L.value.showTable = !1)
|
|
790
818
|
}, {
|
|
791
819
|
th: b(({ th: l }) => [
|
|
792
|
-
|
|
820
|
+
x("div", {
|
|
793
821
|
innerHTML: l,
|
|
794
822
|
style: { display: "flex", "align-items": "center" }
|
|
795
|
-
}, null, 8,
|
|
823
|
+
}, null, 8, cl)
|
|
796
824
|
]),
|
|
797
825
|
td: b(({ td: l }) => [
|
|
798
|
-
Me(
|
|
826
|
+
Me(A(l.name || l), 1)
|
|
799
827
|
]),
|
|
800
828
|
_: 1
|
|
801
829
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
802
830
|
]),
|
|
803
831
|
_: 1
|
|
804
832
|
}, 8, ["config"])) : y("", !0)
|
|
805
|
-
], 46,
|
|
833
|
+
], 46, Dt));
|
|
806
834
|
}
|
|
807
|
-
},
|
|
835
|
+
}, Pl = /* @__PURE__ */ Mt(dl, [["__scopeId", "data-v-8a0b99ad"]]);
|
|
808
836
|
export {
|
|
809
|
-
|
|
837
|
+
Pl as default
|
|
810
838
|
};
|