vue-data-ui 2.4.1 → 2.4.3
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 +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,758 +0,0 @@
|
|
|
1
|
-
import { computed as d, ref as c, watch as Te, onMounted as We, onBeforeUnmount as qe, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as Q, createBlock as V, createCommentVNode as f, unref as h, createSlots as He, withCtx as b, renderSlot as w, normalizeProps as q, guardReactiveProps as H, createVNode as Le, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Pe, nextTick as Xe, pushScopeId as Ye, popScopeId as Ke } from "vue";
|
|
2
|
-
import { u as Je, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, K as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-DDXisDKy.js";
|
|
3
|
-
import { t as pt, u as yt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as ft } from "./Title-DYNLqCCT.js";
|
|
5
|
-
import { u as gt, U as mt } from "./usePrinter-8ofTb2MJ.js";
|
|
6
|
-
import { _ as bt } from "./Tooltip-CICAYyQj.js";
|
|
7
|
-
import { D as wt } from "./DataTable-DL2agEJ3.js";
|
|
8
|
-
import { L as kt } from "./Legend-DXLiSLHd.js";
|
|
9
|
-
import xt from "./vue-ui-skeleton-B2sRnIXX.js";
|
|
10
|
-
import Ct from "./vue-ui-accordion-D_1fE5EF.js";
|
|
11
|
-
import { u as ze } from "./useNestedProp-S1UXxUgm.js";
|
|
12
|
-
import { _ as _t } from "./PackageVersion-DtnhR89q.js";
|
|
13
|
-
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const Fe = (G) => (Ye("data-v-a0574c0d"), G = G(), Ke(), G), It = ["id"], Tt = ["xmlns", "viewBox"], St = ["id"], Lt = ["stop-color"], Pt = ["stop-color"], zt = ["id"], Ft = /* @__PURE__ */ Fe(() => /* @__PURE__ */ k("feGaussianBlur", {
|
|
15
|
-
in: "SourceGraphic",
|
|
16
|
-
stdDeviation: 2
|
|
17
|
-
}, null, -1)), Nt = /* @__PURE__ */ Fe(() => /* @__PURE__ */ k("feColorMatrix", {
|
|
18
|
-
type: "saturate",
|
|
19
|
-
values: "0"
|
|
20
|
-
}, null, -1)), Bt = [
|
|
21
|
-
Ft,
|
|
22
|
-
Nt
|
|
23
|
-
], Ot = ["x", "y", "height", "width"], At = ["height", "width"], Vt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Mt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Dt = ["x", "y", "height", "width", "filter"], Gt = { key: 0 }, Rt = { key: 1 }, Ut = { key: 2 }, jt = { key: 3 }, Et = ["onMouseover", "x", "y", "height", "width"], Wt = {
|
|
24
|
-
key: 3,
|
|
25
|
-
class: "vue-data-ui-watermark"
|
|
26
|
-
}, qt = ["onClick"], Ht = { key: 0 }, Xt = { key: 1 }, Yt = ["innerHTML"], Kt = {
|
|
27
|
-
__name: "vue-ui-waffle",
|
|
28
|
-
props: {
|
|
29
|
-
config: {
|
|
30
|
-
type: Object,
|
|
31
|
-
default() {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
dataset: {
|
|
36
|
-
type: Array,
|
|
37
|
-
default() {
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["selectLegend"],
|
|
43
|
-
setup(G, { expose: Ne, emit: Be }) {
|
|
44
|
-
const g = G, { vue_ui_waffle: Oe } = Je(), X = d(() => !!g.dataset && g.dataset.length), L = c(Qe()), Ae = c(null), Z = c(!1), ee = c(""), O = c(null), ue = c(0), R = c(null), se = c(null), re = c(null), ne = c(0), ie = c(0), ce = c(0), e = d({
|
|
45
|
-
get: () => ve(),
|
|
46
|
-
set: (t) => t
|
|
47
|
-
});
|
|
48
|
-
function ve() {
|
|
49
|
-
const t = ze({
|
|
50
|
-
userConfig: g.config,
|
|
51
|
-
defaultConfig: Oe
|
|
52
|
-
});
|
|
53
|
-
return t.theme ? {
|
|
54
|
-
...ze({
|
|
55
|
-
userConfig: Ze.vue_ui_waffle[t.theme] || g.config,
|
|
56
|
-
defaultConfig: t
|
|
57
|
-
}),
|
|
58
|
-
customPalette: et[t.theme] || B
|
|
59
|
-
} : t;
|
|
60
|
-
}
|
|
61
|
-
Te(() => g.config, (t) => {
|
|
62
|
-
e.value = ve(), de(), ne.value += 1, ie.value += 1, ce.value += 1;
|
|
63
|
-
}, { deep: !0 });
|
|
64
|
-
const Y = c(null);
|
|
65
|
-
function de() {
|
|
66
|
-
if (tt(g.dataset) ? oe({
|
|
67
|
-
componentName: "VueUiWaffle",
|
|
68
|
-
type: "dataset"
|
|
69
|
-
}) : g.dataset.forEach((t, o) => {
|
|
70
|
-
lt({
|
|
71
|
-
datasetObject: t,
|
|
72
|
-
requiredAttributes: ["name", "values"]
|
|
73
|
-
}).forEach((l) => {
|
|
74
|
-
oe({
|
|
75
|
-
componentName: "VueUiWaffle",
|
|
76
|
-
type: "datasetSerieAttribute",
|
|
77
|
-
property: l,
|
|
78
|
-
index: o
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}), e.value.responsive) {
|
|
82
|
-
const t = pt(() => {
|
|
83
|
-
const { width: o, height: l } = yt({
|
|
84
|
-
chart: R.value,
|
|
85
|
-
title: e.value.style.chart.title.text ? se.value : null,
|
|
86
|
-
legend: e.value.style.chart.legend.show ? re.value : null
|
|
87
|
-
});
|
|
88
|
-
P.value.width = o, P.value.height = l, C.value.width = o, C.value.height = l;
|
|
89
|
-
});
|
|
90
|
-
Y.value = new ResizeObserver(t), Y.value.observe(R.value.parentNode);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
We(() => {
|
|
94
|
-
de();
|
|
95
|
-
}), qe(() => {
|
|
96
|
-
Y.value && Y.value.disconnect();
|
|
97
|
-
});
|
|
98
|
-
const { isPrinting: he, isImaging: pe, generatePdf: ye, generateImage: fe } = gt({
|
|
99
|
-
elementId: `vue-ui-waffle_${L.value}`,
|
|
100
|
-
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
101
|
-
}), ge = d(() => at(e.value.customPalette)), I = c({
|
|
102
|
-
showTable: e.value.table.show,
|
|
103
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
104
|
-
}), P = c({
|
|
105
|
-
height: 512,
|
|
106
|
-
width: 512
|
|
107
|
-
}), C = c({
|
|
108
|
-
top: 0,
|
|
109
|
-
left: 0,
|
|
110
|
-
height: 512,
|
|
111
|
-
width: 512
|
|
112
|
-
}), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), U = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
113
|
-
function me(t) {
|
|
114
|
-
const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((m, ae) => m + ae, 0), a = t.map((m) => m / l * o), u = a.map(Math.floor), n = a.map((m) => m % 1);
|
|
115
|
-
let y = o - u.reduce((m, ae) => m + ae, 0);
|
|
116
|
-
for (; y > 0; ) {
|
|
117
|
-
let m = n.indexOf(Math.max(...n));
|
|
118
|
-
u[m] += 1, n[m] = 0, y -= 1;
|
|
119
|
-
}
|
|
120
|
-
return u;
|
|
121
|
-
}
|
|
122
|
-
function be() {
|
|
123
|
-
return g.dataset.map((t, o) => ({
|
|
124
|
-
...t,
|
|
125
|
-
color: it(t.color) || ge.value[o] || B[o] || B[o % B.length],
|
|
126
|
-
uid: `serie_${o}`,
|
|
127
|
-
absoluteIndex: o
|
|
128
|
-
}));
|
|
129
|
-
}
|
|
130
|
-
const we = d(() => be()), v = c(we.value);
|
|
131
|
-
Te(() => g.dataset, (t) => {
|
|
132
|
-
v.value = be();
|
|
133
|
-
}, { deep: !0 });
|
|
134
|
-
const Ve = d(() => {
|
|
135
|
-
const t = v.value.filter((o, l) => !p.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
|
|
136
|
-
return me(t);
|
|
137
|
-
}), Me = d(() => {
|
|
138
|
-
const t = v.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
|
|
139
|
-
return me(t);
|
|
140
|
-
}), j = d(() => (g.dataset.forEach((t, o) => {
|
|
141
|
-
[null, void 0].includes(t.values) && oe({
|
|
142
|
-
componentName: "VueUiWaffle",
|
|
143
|
-
type: "datasetSerieAttribute",
|
|
144
|
-
property: "values (number[])",
|
|
145
|
-
index: o
|
|
146
|
-
});
|
|
147
|
-
}), v.value.filter((t, o) => !p.value.includes(t.uid)).map((t, o) => ({
|
|
148
|
-
absoluteIndex: t.absoluteIndex,
|
|
149
|
-
uid: t.uid,
|
|
150
|
-
name: t.name,
|
|
151
|
-
color: t.color,
|
|
152
|
-
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
153
|
-
absoluteValues: t.values || [],
|
|
154
|
-
proportion: Ve.value[o]
|
|
155
|
-
})))), De = d(() => v.value.map((t, o) => ({
|
|
156
|
-
absoluteIndex: t.absoluteIndex,
|
|
157
|
-
uid: t.uid,
|
|
158
|
-
name: t.name,
|
|
159
|
-
color: t.color,
|
|
160
|
-
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
161
|
-
absoluteValues: t.values || [],
|
|
162
|
-
proportion: Me.value[o]
|
|
163
|
-
})));
|
|
164
|
-
function Ge() {
|
|
165
|
-
return De.value.map((t) => ({
|
|
166
|
-
name: t.name,
|
|
167
|
-
color: t.color,
|
|
168
|
-
value: t.value,
|
|
169
|
-
proportion: t.proportion
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
172
|
-
const Re = d(() => {
|
|
173
|
-
let t = 0;
|
|
174
|
-
return j.value.map((o, l) => {
|
|
175
|
-
const a = t, u = a + o.proportion, n = [];
|
|
176
|
-
for (let y = Math.floor(a); y < Math.floor(u); y += 1)
|
|
177
|
-
n.push(y);
|
|
178
|
-
return t = u, {
|
|
179
|
-
...o,
|
|
180
|
-
start: a,
|
|
181
|
-
rects: n
|
|
182
|
-
};
|
|
183
|
-
});
|
|
184
|
-
}), r = d(() => Re.value.flatMap((t, o) => t.rects.map((l, a) => ({
|
|
185
|
-
isFirst: a === 0,
|
|
186
|
-
isLongEnough: l.length > 2,
|
|
187
|
-
name: t.name,
|
|
188
|
-
color: t.color,
|
|
189
|
-
value: t.value,
|
|
190
|
-
serieIndex: o,
|
|
191
|
-
absoluteStartIndex: a < 3,
|
|
192
|
-
serieId: t.uid,
|
|
193
|
-
...t
|
|
194
|
-
}))).map((t, o) => ({
|
|
195
|
-
...t,
|
|
196
|
-
isAbsoluteFirst: o % e.value.style.chart.layout.grid.size === 0
|
|
197
|
-
}))), E = d(() => {
|
|
198
|
-
const t = [];
|
|
199
|
-
for (let o = 0; o < e.value.style.chart.layout.grid.size; o += 1)
|
|
200
|
-
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
201
|
-
t.push({
|
|
202
|
-
isStartOfLine: l === 0,
|
|
203
|
-
position: e.value.style.chart.layout.grid.vertical ? o : l,
|
|
204
|
-
x: (e.value.style.chart.layout.grid.vertical ? o : l) * (z.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
205
|
-
y: (e.value.style.chart.layout.grid.vertical ? l : o) * (F.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
|
|
206
|
-
});
|
|
207
|
-
return t;
|
|
208
|
-
}), p = c([]), N = c(!1), ke = c(null), xe = c(null);
|
|
209
|
-
function Ce(t) {
|
|
210
|
-
if (!e.value.useAnimation) {
|
|
211
|
-
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < A.value.length - 1 && A.value.length > 1 && p.value.push(t);
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
const o = we.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
215
|
-
let a = v.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
216
|
-
if (p.value.includes(t)) {
|
|
217
|
-
let n = function() {
|
|
218
|
-
a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((y, m) => y.uid === t ? {
|
|
219
|
-
...y,
|
|
220
|
-
values: [u]
|
|
221
|
-
} : y), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((y, m) => y.uid === t ? {
|
|
222
|
-
...y,
|
|
223
|
-
values: [a]
|
|
224
|
-
} : y), ke.value = requestAnimationFrame(n));
|
|
225
|
-
};
|
|
226
|
-
p.value = p.value.filter((y) => y !== t);
|
|
227
|
-
const u = o;
|
|
228
|
-
n();
|
|
229
|
-
} else if (p.value.length < A.value.length - 1 && A.value.length > 1) {
|
|
230
|
-
let u = function() {
|
|
231
|
-
a < 0.1 ? (cancelAnimationFrame(xe.value), p.value.push(t), v.value = v.value.map((n, y) => n.uid === t ? {
|
|
232
|
-
...n,
|
|
233
|
-
values: [0]
|
|
234
|
-
} : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, y) => n.uid === t ? {
|
|
235
|
-
...n,
|
|
236
|
-
values: [a]
|
|
237
|
-
} : n), xe.value = requestAnimationFrame(u));
|
|
238
|
-
};
|
|
239
|
-
u();
|
|
240
|
-
}
|
|
241
|
-
Be("selectLegend", j.value.map((u) => ({
|
|
242
|
-
name: u.name,
|
|
243
|
-
color: u.color,
|
|
244
|
-
value: u.value,
|
|
245
|
-
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
246
|
-
})));
|
|
247
|
-
}
|
|
248
|
-
const A = d(() => v.value.map((t, o) => ({
|
|
249
|
-
name: t.name,
|
|
250
|
-
color: t.color || ge[o] || B[o] || B[o % B.length],
|
|
251
|
-
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
252
|
-
uid: t.uid,
|
|
253
|
-
shape: "square"
|
|
254
|
-
})).map((t, o) => ({
|
|
255
|
-
...t,
|
|
256
|
-
proportion: t.value / v.value.map((l) => (l.values || []).reduce((a, u) => a + u, 0)).reduce((l, a) => l + a, 0),
|
|
257
|
-
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
258
|
-
segregate: () => Ce(t.uid),
|
|
259
|
-
isSegregated: p.value.includes(t.uid)
|
|
260
|
-
}))), Ue = d(() => ({
|
|
261
|
-
cy: "waffle-div-legend",
|
|
262
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
263
|
-
color: e.value.style.chart.legend.color,
|
|
264
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
265
|
-
paddingBottom: 12,
|
|
266
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
267
|
-
})), _ = d(() => j.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
|
|
268
|
-
function je(t) {
|
|
269
|
-
if (p.value.length === g.dataset.length) return;
|
|
270
|
-
const o = r.value[t];
|
|
271
|
-
te.value = {
|
|
272
|
-
datapoint: o,
|
|
273
|
-
seriesIndex: o.absoluteIndex,
|
|
274
|
-
series: v.value,
|
|
275
|
-
config: e.value
|
|
276
|
-
}, Z.value = !0, O.value = r.value[t].serieIndex;
|
|
277
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
278
|
-
if (ct(l) && vt(() => l({
|
|
279
|
-
seriesIndex: r.value[t].absoluteIndex,
|
|
280
|
-
datapoint: o,
|
|
281
|
-
series: v.value,
|
|
282
|
-
config: e.value
|
|
283
|
-
})))
|
|
284
|
-
ee.value = l({
|
|
285
|
-
seriesIndex: r.value[t].absoluteIndex,
|
|
286
|
-
datapoint: o,
|
|
287
|
-
series: v.value,
|
|
288
|
-
config: e.value
|
|
289
|
-
});
|
|
290
|
-
else {
|
|
291
|
-
let a = "";
|
|
292
|
-
if (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${o.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (a += `<b>${D(
|
|
293
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
294
|
-
o.value,
|
|
295
|
-
x({
|
|
296
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
297
|
-
v: o.value,
|
|
298
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
299
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
300
|
-
}),
|
|
301
|
-
{
|
|
302
|
-
datapoint: o,
|
|
303
|
-
seriesIndex: r.value[t].absoluteIndex,
|
|
304
|
-
series: v.value
|
|
305
|
-
}
|
|
306
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
307
|
-
const u = x({
|
|
308
|
-
v: o.value / _.value * 100,
|
|
309
|
-
s: "%",
|
|
310
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
311
|
-
});
|
|
312
|
-
e.value.style.chart.tooltip.showValue ? a += `<span>(${u})</span></div>` : a += `<b>${u}%</b></div>`;
|
|
313
|
-
}
|
|
314
|
-
ee.value = a;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
const $ = d(() => {
|
|
318
|
-
const t = j.value.map((l) => ({
|
|
319
|
-
name: l.name,
|
|
320
|
-
color: l.color
|
|
321
|
-
})), o = j.value.map((l) => l.value);
|
|
322
|
-
return { head: t, body: o };
|
|
323
|
-
});
|
|
324
|
-
function le(t) {
|
|
325
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== t ? `url(#blur_${L.value})` : "";
|
|
326
|
-
}
|
|
327
|
-
function _e() {
|
|
328
|
-
Xe(() => {
|
|
329
|
-
const t = $.value.head.map((a, u) => [[
|
|
330
|
-
a.name
|
|
331
|
-
], [$.value.body[u]], [isNaN($.value.body[u] / _.value) ? "-" : $.value.body[u] / _.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = dt(o);
|
|
332
|
-
ht({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
const J = d(() => {
|
|
336
|
-
const t = [
|
|
337
|
-
' <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>',
|
|
338
|
-
D(
|
|
339
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
340
|
-
_.value,
|
|
341
|
-
x({
|
|
342
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
343
|
-
v: _.value,
|
|
344
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
345
|
-
r: e.value.table.td.roundingValue
|
|
346
|
-
})
|
|
347
|
-
),
|
|
348
|
-
"100%"
|
|
349
|
-
], o = $.value.head.map((u, n) => [
|
|
350
|
-
{
|
|
351
|
-
color: u.color,
|
|
352
|
-
name: u.name
|
|
353
|
-
},
|
|
354
|
-
D(
|
|
355
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
356
|
-
$.value.body[n],
|
|
357
|
-
x({
|
|
358
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
359
|
-
v: $.value.body[n],
|
|
360
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
361
|
-
r: e.value.table.td.roundingValue
|
|
362
|
-
})
|
|
363
|
-
),
|
|
364
|
-
isNaN($.value.body[n] / _.value) ? "-" : x({
|
|
365
|
-
v: $.value.body[n] / _.value * 100,
|
|
366
|
-
s: "%",
|
|
367
|
-
r: e.value.table.td.roundingPercentage
|
|
368
|
-
})
|
|
369
|
-
]), l = {
|
|
370
|
-
th: {
|
|
371
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
372
|
-
color: e.value.table.th.color,
|
|
373
|
-
outline: e.value.table.th.outline
|
|
374
|
-
},
|
|
375
|
-
td: {
|
|
376
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
377
|
-
color: e.value.table.td.color,
|
|
378
|
-
outline: e.value.table.td.outline
|
|
379
|
-
},
|
|
380
|
-
shape: "square",
|
|
381
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
382
|
-
}, a = [
|
|
383
|
-
e.value.table.columnNames.series,
|
|
384
|
-
e.value.table.columnNames.value,
|
|
385
|
-
e.value.table.columnNames.percentage
|
|
386
|
-
];
|
|
387
|
-
return {
|
|
388
|
-
head: t,
|
|
389
|
-
body: o,
|
|
390
|
-
config: l,
|
|
391
|
-
colNames: a
|
|
392
|
-
};
|
|
393
|
-
}), W = c(!1);
|
|
394
|
-
function Ee(t) {
|
|
395
|
-
W.value = t, ue.value += 1;
|
|
396
|
-
}
|
|
397
|
-
function $e() {
|
|
398
|
-
I.value.showTable = !I.value.showTable;
|
|
399
|
-
}
|
|
400
|
-
function Ie() {
|
|
401
|
-
I.value.showTooltip = !I.value.showTooltip;
|
|
402
|
-
}
|
|
403
|
-
return Ne({
|
|
404
|
-
getData: Ge,
|
|
405
|
-
generatePdf: ye,
|
|
406
|
-
generateCsv: _e,
|
|
407
|
-
generateImage: fe,
|
|
408
|
-
toggleTable: $e,
|
|
409
|
-
toggleTooltip: Ie
|
|
410
|
-
}), (t, o) => (s(), i("div", {
|
|
411
|
-
class: Se(`vue-ui-waffle ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
412
|
-
ref_key: "waffleChart",
|
|
413
|
-
ref: R,
|
|
414
|
-
id: `vue-ui-waffle_${L.value}`,
|
|
415
|
-
style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
416
|
-
}, [
|
|
417
|
-
e.value.style.chart.title.text ? (s(), i("div", {
|
|
418
|
-
key: 0,
|
|
419
|
-
ref_key: "chartTitle",
|
|
420
|
-
ref: se,
|
|
421
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
422
|
-
}, [
|
|
423
|
-
(s(), V(ft, {
|
|
424
|
-
key: `title_${ne.value}`,
|
|
425
|
-
config: {
|
|
426
|
-
title: {
|
|
427
|
-
cy: "waffle-title",
|
|
428
|
-
...e.value.style.chart.title
|
|
429
|
-
},
|
|
430
|
-
subtitle: {
|
|
431
|
-
cy: "waffle-subtitle",
|
|
432
|
-
...e.value.style.chart.title.subtitle
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}, null, 8, ["config"]))
|
|
436
|
-
], 512)) : f("", !0),
|
|
437
|
-
e.value.userOptions.show && X.value ? (s(), V(mt, {
|
|
438
|
-
ref_key: "details",
|
|
439
|
-
ref: Ae,
|
|
440
|
-
key: `user_options_${ue.value}`,
|
|
441
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
442
|
-
color: e.value.style.chart.color,
|
|
443
|
-
isPrinting: h(he),
|
|
444
|
-
isImaging: h(pe),
|
|
445
|
-
uid: L.value,
|
|
446
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
447
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
448
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
449
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
450
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
451
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
452
|
-
isFullscreen: W.value,
|
|
453
|
-
isTooltip: I.value.showTooltip,
|
|
454
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
455
|
-
chartElement: R.value,
|
|
456
|
-
position: e.value.userOptions.position,
|
|
457
|
-
onToggleFullscreen: Ee,
|
|
458
|
-
onGeneratePdf: h(ye),
|
|
459
|
-
onGenerateCsv: _e,
|
|
460
|
-
onGenerateImage: h(fe),
|
|
461
|
-
onToggleTable: $e,
|
|
462
|
-
onToggleTooltip: Ie
|
|
463
|
-
}, He({ _: 2 }, [
|
|
464
|
-
t.$slots.optionTooltip ? {
|
|
465
|
-
name: "optionTooltip",
|
|
466
|
-
fn: b(() => [
|
|
467
|
-
w(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
468
|
-
]),
|
|
469
|
-
key: "0"
|
|
470
|
-
} : void 0,
|
|
471
|
-
t.$slots.optionPdf ? {
|
|
472
|
-
name: "optionPdf",
|
|
473
|
-
fn: b(() => [
|
|
474
|
-
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
475
|
-
]),
|
|
476
|
-
key: "1"
|
|
477
|
-
} : void 0,
|
|
478
|
-
t.$slots.optionCsv ? {
|
|
479
|
-
name: "optionCsv",
|
|
480
|
-
fn: b(() => [
|
|
481
|
-
w(t.$slots, "optionCsv", {}, void 0, !0)
|
|
482
|
-
]),
|
|
483
|
-
key: "2"
|
|
484
|
-
} : void 0,
|
|
485
|
-
t.$slots.optionImg ? {
|
|
486
|
-
name: "optionImg",
|
|
487
|
-
fn: b(() => [
|
|
488
|
-
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
489
|
-
]),
|
|
490
|
-
key: "3"
|
|
491
|
-
} : void 0,
|
|
492
|
-
t.$slots.optionTable ? {
|
|
493
|
-
name: "optionTable",
|
|
494
|
-
fn: b(() => [
|
|
495
|
-
w(t.$slots, "optionTable", {}, void 0, !0)
|
|
496
|
-
]),
|
|
497
|
-
key: "4"
|
|
498
|
-
} : void 0,
|
|
499
|
-
t.$slots.optionFullscreen ? {
|
|
500
|
-
name: "optionFullscreen",
|
|
501
|
-
fn: b(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
502
|
-
w(t.$slots, "optionFullscreen", q(H({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
503
|
-
]),
|
|
504
|
-
key: "5"
|
|
505
|
-
} : void 0
|
|
506
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
507
|
-
X.value ? (s(), i("svg", {
|
|
508
|
-
key: 2,
|
|
509
|
-
xmlns: h(ot),
|
|
510
|
-
class: Se({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
511
|
-
viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
|
|
512
|
-
style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
513
|
-
}, [
|
|
514
|
-
Le(_t),
|
|
515
|
-
k("defs", null, [
|
|
516
|
-
(s(!0), i(T, null, M(r.value, (l, a) => (s(), i("radialGradient", {
|
|
517
|
-
cx: "50%",
|
|
518
|
-
cy: "50%",
|
|
519
|
-
r: "50%",
|
|
520
|
-
fx: "50%",
|
|
521
|
-
fy: "50%",
|
|
522
|
-
id: `gradient_${L.value}_${a}`
|
|
523
|
-
}, [
|
|
524
|
-
k("stop", {
|
|
525
|
-
offset: "0%",
|
|
526
|
-
"stop-color": h(ut)(h(st)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
527
|
-
}, null, 8, Lt),
|
|
528
|
-
k("stop", {
|
|
529
|
-
offset: "100%",
|
|
530
|
-
"stop-color": l.color
|
|
531
|
-
}, null, 8, Pt)
|
|
532
|
-
], 8, St))), 256))
|
|
533
|
-
]),
|
|
534
|
-
k("defs", null, [
|
|
535
|
-
k("filter", {
|
|
536
|
-
id: `blur_${L.value}`,
|
|
537
|
-
x: "-50%",
|
|
538
|
-
y: "-50%",
|
|
539
|
-
width: "200%",
|
|
540
|
-
height: "200%"
|
|
541
|
-
}, Bt, 8, zt)
|
|
542
|
-
]),
|
|
543
|
-
e.value.useCustomCells && r.value.length ? (s(!0), i(T, { key: 0 }, M(E.value, (l, a) => (s(), i("foreignObject", {
|
|
544
|
-
x: l.x,
|
|
545
|
-
y: l.y,
|
|
546
|
-
height: F.value <= 0 ? 1e-4 : F.value,
|
|
547
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
548
|
-
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
549
|
-
}, [
|
|
550
|
-
w(t.$slots, "cell", q(H({ cell: { ...l, color: r.value[a].color, ...r.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : r.value[a].serieIndex === O.value })), void 0, !0)
|
|
551
|
-
], 8, Ot))), 256)) : f("", !0),
|
|
552
|
-
!r.value.length && !e.value.useCustomCells ? (s(), i("rect", {
|
|
553
|
-
key: 1,
|
|
554
|
-
x: 12,
|
|
555
|
-
y: 12,
|
|
556
|
-
height: C.value.height - 24,
|
|
557
|
-
width: C.value.width - 24,
|
|
558
|
-
rx: 3,
|
|
559
|
-
fill: "none",
|
|
560
|
-
stroke: "black"
|
|
561
|
-
}, null, 8, At)) : r.value.length && !e.value.useCustomCells ? (s(), i(T, { key: 2 }, [
|
|
562
|
-
(s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
|
|
563
|
-
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
564
|
-
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
565
|
-
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
566
|
-
height: F.value <= 0 ? 1e-4 : F.value,
|
|
567
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
568
|
-
fill: "white",
|
|
569
|
-
stroke: e.value.style.chart.layout.rect.stroke,
|
|
570
|
-
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
571
|
-
filter: le(r.value[a].serieIndex)
|
|
572
|
-
}, null, 8, Vt))), 256)),
|
|
573
|
-
(s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
|
|
574
|
-
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
575
|
-
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
576
|
-
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
577
|
-
height: F.value <= 0 ? 1e-4 : F.value,
|
|
578
|
-
width: z.value <= 0 ? 1e-4 : z.value,
|
|
579
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${L.value}_${a})` : r.value[a].color,
|
|
580
|
-
stroke: e.value.style.chart.layout.rect.stroke,
|
|
581
|
-
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
582
|
-
filter: le(r.value[a].serieIndex)
|
|
583
|
-
}, null, 8, Mt))), 256))
|
|
584
|
-
], 64)) : f("", !0),
|
|
585
|
-
(s(!0), i(T, null, M(E.value, (l, a) => (s(), i(T, null, [
|
|
586
|
-
r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (r.value[a].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[a].isAbsoluteFirst && a % e.value.style.chart.layout.grid.size === 0 && r.value[a].absoluteStartIndex) ? (s(), i("foreignObject", {
|
|
587
|
-
key: 0,
|
|
588
|
-
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
589
|
-
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
590
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
591
|
-
width: U.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : U.value * e.value.style.chart.layout.grid.size,
|
|
592
|
-
filter: le(r.value[a].serieIndex)
|
|
593
|
-
}, [
|
|
594
|
-
k("div", {
|
|
595
|
-
class: "vue-ui-waffle-caption",
|
|
596
|
-
style: Q(`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 ${U.value / 12}px;color:${h(rt)(r.value[a].color)};gap:2px`)
|
|
597
|
-
}, [
|
|
598
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), i("span", Gt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(nt)({ source: r.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[a].name) + ": ", 1)) : f("", !0),
|
|
599
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), i("span", Rt, S(h(x)({ v: r.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
600
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", Ut, " (" + S(h(D)(
|
|
601
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
602
|
-
r.value[a].value,
|
|
603
|
-
h(x)({
|
|
604
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
605
|
-
v: r.value[a].value,
|
|
606
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
607
|
-
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
608
|
-
}),
|
|
609
|
-
{ datapoint: r.value[a], position: l }
|
|
610
|
-
)) + ") ", 1)) : f("", !0),
|
|
611
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), i("span", jt, S(h(D)(
|
|
612
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
613
|
-
r.value[a].value,
|
|
614
|
-
h(x)({
|
|
615
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
616
|
-
v: r.value[a].value,
|
|
617
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
618
|
-
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
619
|
-
}),
|
|
620
|
-
{ datapoint: r.value[a], position: l }
|
|
621
|
-
)), 1)) : f("", !0)
|
|
622
|
-
], 4)
|
|
623
|
-
], 8, Dt)) : f("", !0)
|
|
624
|
-
], 64))), 256)),
|
|
625
|
-
(s(!0), i(T, null, M(E.value, (l, a) => (s(), i("rect", {
|
|
626
|
-
onMouseover: (u) => je(a),
|
|
627
|
-
onMouseleave: o[0] || (o[0] = (u) => {
|
|
628
|
-
Z.value = !1, O.value = null;
|
|
629
|
-
}),
|
|
630
|
-
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
631
|
-
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
632
|
-
height: K.value <= 0 ? 1e-4 : K.value,
|
|
633
|
-
width: U.value <= 0 ? 1e-4 : U.value,
|
|
634
|
-
fill: "transparent",
|
|
635
|
-
stroke: "none"
|
|
636
|
-
}, null, 40, Et))), 256)),
|
|
637
|
-
w(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
638
|
-
], 14, Tt)) : f("", !0),
|
|
639
|
-
t.$slots.watermark ? (s(), i("div", Wt, [
|
|
640
|
-
w(t.$slots, "watermark", q(H({ isPrinting: h(he) || h(pe) })), void 0, !0)
|
|
641
|
-
])) : f("", !0),
|
|
642
|
-
X.value ? f("", !0) : (s(), V(xt, {
|
|
643
|
-
key: 4,
|
|
644
|
-
config: {
|
|
645
|
-
type: "waffle",
|
|
646
|
-
style: {
|
|
647
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
648
|
-
waffle: {
|
|
649
|
-
color: "#CCCCCC"
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}, null, 8, ["config"])),
|
|
654
|
-
k("div", {
|
|
655
|
-
ref_key: "chartLegend",
|
|
656
|
-
ref: re
|
|
657
|
-
}, [
|
|
658
|
-
e.value.style.chart.legend.show ? (s(), V(kt, {
|
|
659
|
-
key: `legend_${ce.value}`,
|
|
660
|
-
legendSet: A.value,
|
|
661
|
-
config: Ue.value,
|
|
662
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Ce(l.uid))
|
|
663
|
-
}, {
|
|
664
|
-
item: b(({ legend: l }) => [
|
|
665
|
-
k("div", {
|
|
666
|
-
onClick: (a) => l.segregate(),
|
|
667
|
-
style: Q(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
668
|
-
}, [
|
|
669
|
-
Pe(S(l.name) + ": " + S(h(D)(
|
|
670
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
671
|
-
l.value,
|
|
672
|
-
h(x)({
|
|
673
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
674
|
-
v: l.value,
|
|
675
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
676
|
-
r: e.value.style.chart.legend.roundingValue,
|
|
677
|
-
isAnimating: N.value
|
|
678
|
-
}),
|
|
679
|
-
{ datapoint: l }
|
|
680
|
-
)) + " ", 1),
|
|
681
|
-
p.value.includes(l.uid) ? (s(), i("span", Xt, " ( - % ) ")) : (s(), i("span", Ht, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
682
|
-
], 12, qt)
|
|
683
|
-
]),
|
|
684
|
-
_: 1
|
|
685
|
-
}, 8, ["legendSet", "config"])) : w(t.$slots, "legend", {
|
|
686
|
-
key: 1,
|
|
687
|
-
legend: A.value
|
|
688
|
-
}, void 0, !0)
|
|
689
|
-
], 512),
|
|
690
|
-
Le(bt, {
|
|
691
|
-
show: I.value.showTooltip && Z.value && p.value.length < g.dataset.length,
|
|
692
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
693
|
-
color: e.value.style.chart.tooltip.color,
|
|
694
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
695
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
696
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
697
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
698
|
-
position: e.value.style.chart.tooltip.position,
|
|
699
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
700
|
-
parent: R.value,
|
|
701
|
-
content: ee.value,
|
|
702
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
703
|
-
fontSize: e.value.style.chart.tooltip.fontSize
|
|
704
|
-
}, {
|
|
705
|
-
"tooltip-before": b(() => [
|
|
706
|
-
w(t.$slots, "tooltip-before", q(H({ ...te.value })), void 0, !0)
|
|
707
|
-
]),
|
|
708
|
-
"tooltip-after": b(() => [
|
|
709
|
-
w(t.$slots, "tooltip-after", q(H({ ...te.value })), void 0, !0)
|
|
710
|
-
]),
|
|
711
|
-
_: 3
|
|
712
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
|
|
713
|
-
X.value ? (s(), V(Ct, {
|
|
714
|
-
key: 5,
|
|
715
|
-
hideDetails: "",
|
|
716
|
-
config: {
|
|
717
|
-
open: I.value.showTable,
|
|
718
|
-
maxHeight: 1e4,
|
|
719
|
-
body: {
|
|
720
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
721
|
-
color: e.value.style.chart.color
|
|
722
|
-
},
|
|
723
|
-
head: {
|
|
724
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
725
|
-
color: e.value.style.chart.color
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}, {
|
|
729
|
-
content: b(() => [
|
|
730
|
-
(s(), V(wt, {
|
|
731
|
-
key: `table_${ie.value}`,
|
|
732
|
-
colNames: J.value.colNames,
|
|
733
|
-
head: J.value.head,
|
|
734
|
-
body: J.value.body,
|
|
735
|
-
config: J.value.config,
|
|
736
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
737
|
-
onClose: o[2] || (o[2] = (l) => I.value.showTable = !1)
|
|
738
|
-
}, {
|
|
739
|
-
th: b(({ th: l }) => [
|
|
740
|
-
k("div", {
|
|
741
|
-
innerHTML: l,
|
|
742
|
-
style: { display: "flex", "align-items": "center" }
|
|
743
|
-
}, null, 8, Yt)
|
|
744
|
-
]),
|
|
745
|
-
td: b(({ td: l }) => [
|
|
746
|
-
Pe(S(l.name || l), 1)
|
|
747
|
-
]),
|
|
748
|
-
_: 1
|
|
749
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
750
|
-
]),
|
|
751
|
-
_: 1
|
|
752
|
-
}, 8, ["config"])) : f("", !0)
|
|
753
|
-
], 14, It));
|
|
754
|
-
}
|
|
755
|
-
}, cl = /* @__PURE__ */ $t(Kt, [["__scopeId", "data-v-a0574c0d"]]);
|
|
756
|
-
export {
|
|
757
|
-
cl as default
|
|
758
|
-
};
|