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,14 +1,18 @@
|
|
|
1
|
-
import { useCssVars as ve, ref as
|
|
2
|
-
import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Q, g as Ce, d as Ie, Y as Se, i as P, f as z, q as we, r as Ae } from "./index-
|
|
3
|
-
import { u as Z } from "./useNestedProp-
|
|
4
|
-
import $e from "./vue-ui-sparkline-
|
|
5
|
-
import Pe from "./BaseIcon-
|
|
6
|
-
import { u as ze, U as Fe } from "./usePrinter-
|
|
1
|
+
import { useCssVars as ve, ref as v, computed as h, watch as K, onMounted as ce, openBlock as s, createElementBlock as i, normalizeClass as D, createElementVNode as c, normalizeStyle as r, toDisplayString as p, createCommentVNode as m, Fragment as T, renderList as M, createBlock as V, unref as d, createSlots as fe, withCtx as A, renderSlot as C, normalizeProps as pe, guardReactiveProps as me, nextTick as be } from "vue";
|
|
2
|
+
import { u as ge, c as he, t as ye, a as _e, p as $, b as ke, o as xe, e as Q, g as Ce, d as Ie, Y as Se, i as P, f as z, q as we, r as Ae } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { u as Z } from "./useNestedProp-B33hazbH.js";
|
|
4
|
+
import $e from "./vue-ui-sparkline-Cxtzdlhi.js";
|
|
5
|
+
import Pe from "./BaseIcon-BbvG1AlW.js";
|
|
6
|
+
import { u as ze, U as Fe } from "./usePrinter-CiHd1FwD.js";
|
|
7
7
|
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } }, De = ["onClick"], Te = { style: { display: "flex", "flex-direction": "row", gap: "3px", "align-items": "center" } }, Me = ["data-cell"], Ve = {
|
|
9
9
|
dir: "auto",
|
|
10
10
|
style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "6px" }
|
|
11
11
|
}, Ee = ["data-cell", "onPointerenter"], Ge = ["data-cell"], Le = ["data-cell"], Be = ["data-cell"], Re = ["data-cell"], Ue = {
|
|
12
|
+
key: 0,
|
|
13
|
+
ref: "source",
|
|
14
|
+
dir: "auto"
|
|
15
|
+
}, He = {
|
|
12
16
|
__name: "vue-ui-table-sparkline",
|
|
13
17
|
props: {
|
|
14
18
|
config: {
|
|
@@ -27,9 +31,9 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
27
31
|
setup(j, { expose: ee }) {
|
|
28
32
|
const b = j;
|
|
29
33
|
ve((t) => ({
|
|
30
|
-
"
|
|
34
|
+
"588e7231": t.tdo
|
|
31
35
|
}));
|
|
32
|
-
const { vue_ui_table_sparkline: te } = ge(), F =
|
|
36
|
+
const { vue_ui_table_sparkline: te } = ge(), F = v(he()), E = v(0), I = v(0), e = h({
|
|
33
37
|
get: () => G(),
|
|
34
38
|
set: (t) => t
|
|
35
39
|
});
|
|
@@ -47,14 +51,14 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
47
51
|
} : t;
|
|
48
52
|
}
|
|
49
53
|
K(() => b.config, (t) => {
|
|
50
|
-
e.value = G(), q(),
|
|
54
|
+
e.value = G(), q(), I.value += 1;
|
|
51
55
|
}, { deep: !0 }), K(() => b.dataset, (t) => {
|
|
52
|
-
x.value = y.value,
|
|
56
|
+
x.value = y.value, I.value += 1;
|
|
53
57
|
}, { deep: !0 });
|
|
54
58
|
const { isPrinting: L, isImaging: B, generatePdf: R, generateImage: U } = ze({
|
|
55
59
|
elementId: `table_${F.value}`,
|
|
56
60
|
fileName: e.value.title.text || "vue-ui-table-sparkline"
|
|
57
|
-
}), ae =
|
|
61
|
+
}), ae = h(() => ke(e.value.customPalette)), S = v(null), H = v(!1), le = h(() => e.value.responsiveBreakpoint);
|
|
58
62
|
ce(() => {
|
|
59
63
|
q();
|
|
60
64
|
});
|
|
@@ -68,9 +72,9 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
68
72
|
H.value = a.contentRect.width < le.value;
|
|
69
73
|
});
|
|
70
74
|
});
|
|
71
|
-
|
|
75
|
+
S.value && t.observe(S.value);
|
|
72
76
|
}
|
|
73
|
-
const X =
|
|
77
|
+
const X = h(() => (b.dataset.forEach((t, u) => {
|
|
74
78
|
Ce({
|
|
75
79
|
datasetObject: t,
|
|
76
80
|
requiredAttributes: ["name", "values"]
|
|
@@ -99,9 +103,9 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
99
103
|
})));
|
|
100
104
|
function oe(t) {
|
|
101
105
|
const a = (t[0].values || []).map(
|
|
102
|
-
(n, l) => t.map((
|
|
106
|
+
(n, l) => t.map((f) => f.values[l] || [])
|
|
103
107
|
).map(
|
|
104
|
-
(n) => n.map((l,
|
|
108
|
+
(n) => n.map((l, f) => [l, f]).sort((l, f) => f[0] - l[0]).map((l) => l[1])
|
|
105
109
|
);
|
|
106
110
|
return t.map((n, l) => ({
|
|
107
111
|
...n,
|
|
@@ -109,18 +113,18 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
109
113
|
orders: a[l]
|
|
110
114
|
}));
|
|
111
115
|
}
|
|
112
|
-
const y =
|
|
116
|
+
const y = h(() => oe(X.value)), x = v(y.value), ne = h(() => Math.max(...x.value.map((t) => (t.values || []).length))), w = v(void 0), O = v(!1), N = v(void 0), W = v(-1);
|
|
113
117
|
function ue() {
|
|
114
118
|
O.value = !1, N.value = void 0, W.value = -1, x.value = y.value;
|
|
115
119
|
}
|
|
116
120
|
function se(t) {
|
|
117
121
|
O.value = !0, N.value = t;
|
|
118
|
-
const u = y.value.map((l) => l.values[t] || []), a =
|
|
119
|
-
W.value = a, t ===
|
|
120
|
-
const n = u.map((l,
|
|
121
|
-
x.value = n,
|
|
122
|
+
const u = y.value.map((l) => l.values[t] || []), a = w.value === t ? 1 : -1;
|
|
123
|
+
W.value = a, t === w.value ? w.value = void 0 : w.value = t;
|
|
124
|
+
const n = u.map((l, f) => [f, l]).sort((l, f) => a * (f[1] - l[1])).map((l) => l[0]).map((l) => y.value[l]);
|
|
125
|
+
x.value = n, I.value += 1;
|
|
122
126
|
}
|
|
123
|
-
const re =
|
|
127
|
+
const re = h(() => Math.max(...b.dataset.map((t) => (t.values || []).length))), k = h(() => {
|
|
124
128
|
let t = e.value.colNames;
|
|
125
129
|
if (!t.length)
|
|
126
130
|
for (let a = 0; a < re.value; a += 1)
|
|
@@ -132,16 +136,16 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
132
136
|
e.value.translations.average,
|
|
133
137
|
e.value.translations.median
|
|
134
138
|
] : e.value.showAverage && !e.value.showMedian ? u = [...t, e.value.translations.average] : !e.value.showAverage && e.value.showMedian ? u = [...t, e.value.translations.median] : u = t, e.value.showSparklines ? [...u, e.value.translations.chart] : u;
|
|
135
|
-
}),
|
|
139
|
+
}), g = v(void 0), _ = v(void 0);
|
|
136
140
|
function ie({ dataIndex: t, serieIndex: u }) {
|
|
137
|
-
|
|
141
|
+
g.value = t, _.value = u;
|
|
138
142
|
}
|
|
139
|
-
const Y =
|
|
143
|
+
const Y = v(!1);
|
|
140
144
|
function de(t) {
|
|
141
145
|
Y.value = t, E.value += 1;
|
|
142
146
|
}
|
|
143
147
|
function J() {
|
|
144
|
-
|
|
148
|
+
be(() => {
|
|
145
149
|
const t = [e.value.translations.serie].concat(k.value), u = X.value.map((n, l) => [
|
|
146
150
|
[n.name],
|
|
147
151
|
n.values,
|
|
@@ -160,9 +164,9 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
160
164
|
generateImage: U,
|
|
161
165
|
generateCsv: J,
|
|
162
166
|
restoreOrder: ue
|
|
163
|
-
}), (t, u) => (s(),
|
|
167
|
+
}), (t, u) => (s(), i("div", {
|
|
164
168
|
ref_key: "tableContainer",
|
|
165
|
-
ref:
|
|
169
|
+
ref: S,
|
|
166
170
|
class: D({ "vue-ui-responsive": H.value }),
|
|
167
171
|
style: { overflow: "hidden" },
|
|
168
172
|
id: `table_${F.value}`
|
|
@@ -170,14 +174,14 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
170
174
|
c("div", {
|
|
171
175
|
style: { overflow: "auto" },
|
|
172
176
|
onPointerleave: u[0] || (u[0] = (a) => {
|
|
173
|
-
_.value = void 0,
|
|
177
|
+
_.value = void 0, g.value = void 0;
|
|
174
178
|
})
|
|
175
179
|
}, [
|
|
176
180
|
c("table", {
|
|
177
181
|
class: "vue-ui-data-table",
|
|
178
182
|
style: r({ fontFamily: e.value.fontFamily, position: "relative" })
|
|
179
183
|
}, [
|
|
180
|
-
e.value.title.text ? (s(),
|
|
184
|
+
e.value.title.text ? (s(), i("caption", {
|
|
181
185
|
key: 0,
|
|
182
186
|
style: r({ backgroundColor: e.value.title.backgroundColor })
|
|
183
187
|
}, [
|
|
@@ -188,8 +192,8 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
188
192
|
color: e.value.title.color,
|
|
189
193
|
textAlign: e.value.title.textAlign
|
|
190
194
|
})
|
|
191
|
-
},
|
|
192
|
-
e.value.title.subtitle.text ? (s(),
|
|
195
|
+
}, p(e.value.title.text), 5),
|
|
196
|
+
e.value.title.subtitle.text ? (s(), i("div", {
|
|
193
197
|
key: 0,
|
|
194
198
|
style: r({
|
|
195
199
|
fontSize: `${e.value.title.subtitle.fontSize}px`,
|
|
@@ -197,8 +201,8 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
197
201
|
color: e.value.title.subtitle.color,
|
|
198
202
|
textAlign: e.value.title.textAlign
|
|
199
203
|
})
|
|
200
|
-
},
|
|
201
|
-
], 4)) :
|
|
204
|
+
}, p(e.value.title.subtitle.text), 5)) : m("", !0)
|
|
205
|
+
], 4)) : m("", !0),
|
|
202
206
|
c("thead", We, [
|
|
203
207
|
c("tr", {
|
|
204
208
|
role: "row",
|
|
@@ -217,8 +221,8 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
217
221
|
fontWeight: e.value.thead.bold ? "bold" : "normal"
|
|
218
222
|
}),
|
|
219
223
|
class: "sticky-col-first"
|
|
220
|
-
},
|
|
221
|
-
(s(!0),
|
|
224
|
+
}, p(e.value.translations.serie), 5),
|
|
225
|
+
(s(!0), i(T, null, M(k.value, (a, o) => (s(), i("th", {
|
|
222
226
|
role: "cell",
|
|
223
227
|
style: r({
|
|
224
228
|
background: e.value.thead.backgroundColor,
|
|
@@ -232,13 +236,13 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
232
236
|
class: D({ "sticky-col": o === k.value.length - 1 && e.value.showSparklines })
|
|
233
237
|
}, [
|
|
234
238
|
c("div", Te, [
|
|
235
|
-
c("span", null,
|
|
239
|
+
c("span", null, p(a), 1),
|
|
236
240
|
O.value && o === N.value && y.value[0].values[o] !== void 0 ? (s(), V(Pe, {
|
|
237
241
|
key: 0,
|
|
238
242
|
size: 18,
|
|
239
243
|
name: W.value === 1 ? "sort" : "sortReverse",
|
|
240
244
|
stroke: e.value.thead.color
|
|
241
|
-
}, null, 8, ["name", "stroke"])) :
|
|
245
|
+
}, null, 8, ["name", "stroke"])) : m("", !0)
|
|
242
246
|
]),
|
|
243
247
|
e.value.userOptions.show && o === k.value.length - 1 ? (s(), V(Fe, {
|
|
244
248
|
ref_for: !0,
|
|
@@ -246,8 +250,8 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
246
250
|
key: `user_option_${E.value}`,
|
|
247
251
|
backgroundColor: e.value.thead.backgroundColor,
|
|
248
252
|
color: e.value.thead.color,
|
|
249
|
-
isPrinting:
|
|
250
|
-
isImaging:
|
|
253
|
+
isPrinting: d(L),
|
|
254
|
+
isImaging: d(B),
|
|
251
255
|
uid: F.value,
|
|
252
256
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
253
257
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -255,47 +259,47 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
255
259
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
256
260
|
isFullscreen: Y.value,
|
|
257
261
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
258
|
-
chartElement:
|
|
262
|
+
chartElement: S.value,
|
|
259
263
|
position: e.value.userOptions.position,
|
|
260
264
|
onToggleFullscreen: de,
|
|
261
|
-
onGeneratePdf:
|
|
262
|
-
onGenerateImage:
|
|
265
|
+
onGeneratePdf: d(R),
|
|
266
|
+
onGenerateImage: d(U),
|
|
263
267
|
onGenerateCsv: J
|
|
264
|
-
},
|
|
268
|
+
}, fe({ _: 2 }, [
|
|
265
269
|
t.$slots.optionPdf ? {
|
|
266
270
|
name: "optionPdf",
|
|
267
|
-
fn:
|
|
268
|
-
|
|
271
|
+
fn: A(() => [
|
|
272
|
+
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
269
273
|
]),
|
|
270
274
|
key: "0"
|
|
271
275
|
} : void 0,
|
|
272
276
|
t.$slots.optionCsv ? {
|
|
273
277
|
name: "optionCsv",
|
|
274
|
-
fn:
|
|
275
|
-
|
|
278
|
+
fn: A(() => [
|
|
279
|
+
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
276
280
|
]),
|
|
277
281
|
key: "1"
|
|
278
282
|
} : void 0,
|
|
279
283
|
t.$slots.optionImg ? {
|
|
280
284
|
name: "optionImg",
|
|
281
|
-
fn:
|
|
282
|
-
|
|
285
|
+
fn: A(() => [
|
|
286
|
+
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
283
287
|
]),
|
|
284
288
|
key: "2"
|
|
285
289
|
} : void 0,
|
|
286
290
|
t.$slots.optionFullscreen ? {
|
|
287
291
|
name: "optionFullscreen",
|
|
288
|
-
fn:
|
|
289
|
-
|
|
292
|
+
fn: A(({ toggleFullscreen: n, isFullscreen: l }) => [
|
|
293
|
+
C(t.$slots, "optionFullscreen", pe(me({ toggleFullscreen: n, isFullscreen: l })), void 0, !0)
|
|
290
294
|
]),
|
|
291
295
|
key: "3"
|
|
292
296
|
} : void 0
|
|
293
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
297
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : m("", !0)
|
|
294
298
|
], 14, De))), 256))
|
|
295
299
|
], 4)
|
|
296
300
|
]),
|
|
297
301
|
c("tbody", null, [
|
|
298
|
-
(s(!0),
|
|
302
|
+
(s(!0), i(T, null, M(x.value, (a, o) => (s(), i("tr", {
|
|
299
303
|
role: "row",
|
|
300
304
|
style: r({
|
|
301
305
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
@@ -319,10 +323,10 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
319
323
|
c("span", {
|
|
320
324
|
style: r({ color: a.color })
|
|
321
325
|
}, "⬤", 4),
|
|
322
|
-
c("span", null,
|
|
326
|
+
c("span", null, p(a.name ?? "-"), 1)
|
|
323
327
|
])
|
|
324
328
|
], 12, Me),
|
|
325
|
-
(s(!0),
|
|
329
|
+
(s(!0), i(T, null, M(ne.value, (n, l) => (s(), i("td", {
|
|
326
330
|
dir: "auto",
|
|
327
331
|
role: "cell",
|
|
328
332
|
style: r({
|
|
@@ -330,18 +334,18 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
330
334
|
fontSize: `${e.value.tbody.fontSize}px`,
|
|
331
335
|
fontWeight: e.value.tbody.bold ? "bold" : "normal",
|
|
332
336
|
textAlign: e.value.tbody.textAlign,
|
|
333
|
-
backgroundColor:
|
|
334
|
-
borderRadius:
|
|
337
|
+
backgroundColor: g.value !== void 0 && _.value !== void 0 && l === g.value && _.value === o ? `${a.color}33` : "",
|
|
338
|
+
borderRadius: g.value !== void 0 && _.value !== void 0 && l === g.value && _.value === o ? "3px" : ""
|
|
335
339
|
}),
|
|
336
340
|
"data-cell": k.value[l],
|
|
337
341
|
class: "vue-ui-data-table__tbody__td",
|
|
338
|
-
onPointerenter: (
|
|
339
|
-
_.value = o,
|
|
342
|
+
onPointerenter: (f) => {
|
|
343
|
+
_.value = o, g.value = l;
|
|
340
344
|
}
|
|
341
|
-
},
|
|
345
|
+
}, p([null, void 0].includes(a.values[l]) ? "-" : d(P)(
|
|
342
346
|
e.value.formatter,
|
|
343
347
|
Number(a.values[l]),
|
|
344
|
-
|
|
348
|
+
d(z)({
|
|
345
349
|
p: e.value.prefix,
|
|
346
350
|
v: Number(a.values[l]),
|
|
347
351
|
s: e.value.suffix,
|
|
@@ -349,7 +353,7 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
349
353
|
}),
|
|
350
354
|
{ datapoint: a, seriesIndex: o, datapointIndex: l }
|
|
351
355
|
)), 45, Ee))), 256)),
|
|
352
|
-
e.value.showTotal ? (s(),
|
|
356
|
+
e.value.showTotal ? (s(), i("td", {
|
|
353
357
|
key: 0,
|
|
354
358
|
dir: "auto",
|
|
355
359
|
role: "cell",
|
|
@@ -361,18 +365,18 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
361
365
|
}),
|
|
362
366
|
"data-cell": e.value.translations.total,
|
|
363
367
|
class: "vue-ui-data-table__tbody__td"
|
|
364
|
-
},
|
|
368
|
+
}, p(d(P)(
|
|
365
369
|
e.value.formatter,
|
|
366
370
|
a.sum,
|
|
367
|
-
|
|
371
|
+
d(z)({
|
|
368
372
|
p: e.value.prefix,
|
|
369
373
|
v: a.sum,
|
|
370
374
|
s: e.value.suffix,
|
|
371
375
|
r: e.value.roundingTotal
|
|
372
376
|
}),
|
|
373
377
|
{ datapoint: a.sum, seriesIndex: o }
|
|
374
|
-
)), 13, Ge)) :
|
|
375
|
-
e.value.showAverage ? (s(),
|
|
378
|
+
)), 13, Ge)) : m("", !0),
|
|
379
|
+
e.value.showAverage ? (s(), i("td", {
|
|
376
380
|
key: 1,
|
|
377
381
|
dir: "auto",
|
|
378
382
|
role: "cell",
|
|
@@ -384,18 +388,18 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
384
388
|
}),
|
|
385
389
|
"data-cell": e.value.translations.average,
|
|
386
390
|
class: "vue-ui-data-table__tbody__td"
|
|
387
|
-
},
|
|
391
|
+
}, p(d(P)(
|
|
388
392
|
e.value.formatter,
|
|
389
393
|
a.average,
|
|
390
|
-
|
|
394
|
+
d(z)({
|
|
391
395
|
p: e.value.prefix,
|
|
392
396
|
v: a.average,
|
|
393
397
|
s: e.value.suffix,
|
|
394
398
|
r: e.value.roundingAverage
|
|
395
399
|
}),
|
|
396
400
|
{ datapoint: a.average, seriesIndex: o }
|
|
397
|
-
)), 13, Le)) :
|
|
398
|
-
e.value.showMedian ? (s(),
|
|
401
|
+
)), 13, Le)) : m("", !0),
|
|
402
|
+
e.value.showMedian ? (s(), i("td", {
|
|
399
403
|
key: 2,
|
|
400
404
|
dir: "auto",
|
|
401
405
|
role: "cell",
|
|
@@ -407,18 +411,18 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
407
411
|
}),
|
|
408
412
|
"data-cell": e.value.translations.median,
|
|
409
413
|
class: "vue-ui-data-table__tbody__td"
|
|
410
|
-
},
|
|
414
|
+
}, p(d(P)(
|
|
411
415
|
e.value.formatter,
|
|
412
416
|
a.median,
|
|
413
|
-
|
|
417
|
+
d(z)({
|
|
414
418
|
p: e.value.prefix,
|
|
415
419
|
v: a.median,
|
|
416
420
|
s: e.value.suffix,
|
|
417
421
|
r: e.value.roundingMedian
|
|
418
422
|
}),
|
|
419
423
|
{ datapoint: a.median, seriesIndex: o }
|
|
420
|
-
)), 13, Be)) :
|
|
421
|
-
e.value.showSparklines ? (s(),
|
|
424
|
+
)), 13, Be)) : m("", !0),
|
|
425
|
+
e.value.showSparklines ? (s(), i("td", {
|
|
422
426
|
key: 3,
|
|
423
427
|
role: "cell",
|
|
424
428
|
"data-cell": e.value.translations.chart,
|
|
@@ -431,17 +435,17 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
431
435
|
class: "vue-ui-data-table__tbody__td sticky-col"
|
|
432
436
|
}, [
|
|
433
437
|
(s(), V($e, {
|
|
434
|
-
key: `sparkline_${o}_${
|
|
438
|
+
key: `sparkline_${o}_${I.value}`,
|
|
435
439
|
onHoverIndex: ({ index: n }) => ie({ dataIndex: n, serieIndex: o }),
|
|
436
440
|
dataset: a.sparklineDataset,
|
|
437
441
|
showInfo: !1,
|
|
438
|
-
selectedIndex:
|
|
442
|
+
selectedIndex: g.value,
|
|
439
443
|
config: {
|
|
440
444
|
type: e.value.sparkline.type,
|
|
441
445
|
style: {
|
|
442
446
|
backgroundColor: e.value.tbody.backgroundColor,
|
|
443
447
|
animation: {
|
|
444
|
-
show: e.value.sparkline.animation.show && !
|
|
448
|
+
show: e.value.sparkline.animation.show && !d(L) && !d(B),
|
|
445
449
|
animationFrames: e.value.sparkline.animation.animationFrames
|
|
446
450
|
},
|
|
447
451
|
line: {
|
|
@@ -468,14 +472,17 @@ const Ne = ["id"], We = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
468
472
|
}
|
|
469
473
|
}
|
|
470
474
|
}, null, 8, ["onHoverIndex", "dataset", "selectedIndex", "config"]))
|
|
471
|
-
], 12, Re)) :
|
|
475
|
+
], 12, Re)) : m("", !0)
|
|
472
476
|
], 6))), 256))
|
|
473
477
|
])
|
|
474
478
|
], 4)
|
|
475
|
-
], 32)
|
|
479
|
+
], 32),
|
|
480
|
+
t.$slots.source ? (s(), i("div", Ue, [
|
|
481
|
+
C(t.$slots, "source", {}, void 0, !0)
|
|
482
|
+
], 512)) : m("", !0)
|
|
476
483
|
], 10, Ne));
|
|
477
484
|
}
|
|
478
|
-
},
|
|
485
|
+
}, je = /* @__PURE__ */ Oe(He, [["__scopeId", "data-v-1516623f"]]);
|
|
479
486
|
export {
|
|
480
|
-
|
|
487
|
+
je as default
|
|
481
488
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-eFox7weK.cjs"),P=require("./useNestedProp-BkgEhTQY.cjs"),J=require("./vue-ui-sparkline-CAEs-gtK.cjs"),K=require("./BaseIcon-uALK38Ov.cjs"),D=require("./usePrinter-CSRFnDBU.cjs"),Q=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y=["id"],Z={style:{"z-index":"1","padding-right":"24px"}},j=["onClick"],ee={style:{display:"flex","flex-direction":"row",gap:"3px","align-items":"center"}},te=["data-cell"],le={dir:"auto",style:{display:"flex","flex-direction":"row","align-items":"center",gap:"6px"}},ae=["data-cell","onPointerenter"],oe=["data-cell"],ne=["data-cell"],re=["data-cell"],ue=["data-cell"],se={key:0,ref:"source",dir:"auto"},ie={__name:"vue-ui-table-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(F,{expose:O}){const d=F;e.useCssVars(l=>({"588e7231":l.tdo}));const{vue_ui_table_sparkline:W}=u.useConfig(),h=e.ref(u.createUid()),S=e.ref(0),b=e.ref(0),t=e.computed({get:()=>C(),set:l=>l});function C(){const l=P.useNestedProp({userConfig:d.config,defaultConfig:W});return l.theme?{...P.useNestedProp({userConfig:u.themes.vue_ui_table_sparkline[l.theme]||d.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>d.config,l=>{t.value=C(),E(),b.value+=1},{deep:!0}),e.watch(()=>d.dataset,l=>{f.value=v.value,b.value+=1},{deep:!0});const{isPrinting:w,isImaging:z,generatePdf:I,generateImage:N}=D.usePrinter({elementId:`table_${h.value}`,fileName:t.value.title.text||"vue-ui-table-sparkline"}),L=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),g=e.ref(null),B=e.ref(!1),T=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{E()});function E(){u.objectIsEmpty(d.dataset)&&u.error({componentName:"VueUiTableSparkline",type:"dataset"});const l=new ResizeObserver(s=>{s.forEach(a=>{B.value=a.contentRect.width<T.value})});g.value&&l.observe(g.value)}const A=e.computed(()=>(d.dataset.forEach((l,s)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{u.error({componentName:"VueUiTableSparkline",type:"datasetSerieAttribute",property:a,index:s})})}),d.dataset.map((l,s)=>{const a=(l.values||[]).map(r=>isNaN(r)?0:r??0),n=a.reduce((r,o)=>r+o,0);return{...l,values:l.values||[],color:u.convertColorToHex(l.color)||L.value[s]||u.palette[s]||u.palette[s%u.palette.length],sum:n,average:n/a.length,median:u.calcMedian(a),sparklineDataset:a.map((r,o)=>({period:t.value.colNames[o]||`col ${o}`,value:r||0}))}})));function M(l){const a=(l[0].values||[]).map((r,o)=>l.map(i=>i.values[o]||[])).map(r=>r.map((o,i)=>[o,i]).sort((o,i)=>i[0]-o[0]).map(o=>o[1]));return l.map((r,o)=>({...r,values:r.values||[],orders:a[o]}))}const v=e.computed(()=>M(A.value)),f=e.ref(v.value),G=e.computed(()=>Math.max(...f.value.map(l=>(l.values||[]).length))),y=e.ref(void 0),k=e.ref(!1),_=e.ref(void 0),x=e.ref(-1);function q(){k.value=!1,_.value=void 0,x.value=-1,f.value=v.value}function R(l){k.value=!0,_.value=l;const s=v.value.map(o=>o.values[l]||[]),a=y.value===l?1:-1;x.value=a,l===y.value?y.value=void 0:y.value=l;const r=s.map((o,i)=>[i,o]).sort((o,i)=>a*(i[1]-o[1])).map(o=>o[0]).map(o=>v.value[o]);f.value=r,b.value+=1}const U=e.computed(()=>Math.max(...d.dataset.map(l=>(l.values||[]).length))),m=e.computed(()=>{let l=t.value.colNames;if(!l.length)for(let a=0;a<U.value;a+=1)l.push(`col ${a+1}`);t.value.showTotal&&(l=[...l,t.value.translations.total]);let s;return t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.average,t.value.translations.median]:t.value.showAverage&&!t.value.showMedian?s=[...l,t.value.translations.average]:!t.value.showAverage&&t.value.showMedian?s=[...l,t.value.translations.median]:s=l,t.value.showSparklines?[...s,t.value.translations.chart]:s}),c=e.ref(void 0),p=e.ref(void 0);function H({dataIndex:l,serieIndex:s}){c.value=l,p.value=s}const V=e.ref(!1);function X(l){V.value=l,S.value+=1}function $(){e.nextTick(()=>{const l=[t.value.translations.serie].concat(m.value),s=A.value.map((r,o)=>[[r.name],r.values,[r.sum],[r.average],[r.median]]),a=[l].concat(s),n=u.createCsvContent(a);u.downloadCsv({csvContent:n,title:t.value.title.text||"vue-ui-table-sparkline"})})}return O({generatePdf:I,generateImage:N,generateCsv:$,restoreOrder:q}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:g,class:e.normalizeClass({"vue-ui-responsive":B.value}),style:{overflow:"hidden"},id:`table_${h.value}`},[e.createElementVNode("div",{style:{overflow:"auto"},onPointerleave:s[0]||(s[0]=a=>{p.value=void 0,c.value=void 0})},[e.createElementVNode("table",{class:"vue-ui-data-table",style:e.normalizeStyle({fontFamily:t.value.fontFamily,position:"relative"})},[t.value.title.text?(e.openBlock(),e.createElementBlock("caption",{key:0,style:e.normalizeStyle({backgroundColor:t.value.title.backgroundColor})},[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:`${t.value.title.fontSize}px`,fontWeight:t.value.title.bold?"bold":"normal",color:t.value.title.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.text),5),t.value.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({fontSize:`${t.value.title.subtitle.fontSize}px`,fontWeight:t.value.title.subtitle.bold?"bold":"normal",color:t.value.title.subtitle.color,textAlign:t.value.title.textAlign})},e.toDisplayString(t.value.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("thead",Z,[e.createElementVNode("tr",{role:"row",class:"vue-ui-data-table__thead-row",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color})},[e.createElementVNode("th",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal"}),class:"sticky-col-first"},e.toDisplayString(t.value.translations.serie),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(a,n)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",style:e.normalizeStyle({background:t.value.thead.backgroundColor,outline:t.value.thead.outline,textAlign:t.value.thead.textAlign,fontWeight:t.value.thead.bold?"bold":"normal",minWidth:n===m.value.length-1?"150px":"",cursor:v.value[0].values[n]!==void 0?"pointer":"default"}),onClick:()=>R(n),class:e.normalizeClass({"sticky-col":n===m.value.length-1&&t.value.showSparklines})},[e.createElementVNode("div",ee,[e.createElementVNode("span",null,e.toDisplayString(a),1),k.value&&n===_.value&&v.value[0].values[n]!==void 0?(e.openBlock(),e.createBlock(K.default,{key:0,size:18,name:x.value===1?"sort":"sortReverse",stroke:t.value.thead.color},null,8,["name","stroke"])):e.createCommentVNode("",!0)]),t.value.userOptions.show&&n===m.value.length-1?(e.openBlock(),e.createBlock(D.UserOptions,{ref_for:!0,ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.thead.backgroundColor,color:t.value.thead.color,isPrinting:e.unref(w),isImaging:e.unref(z),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:X,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(N),onGenerateCsv:$},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:r,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:r,isFullscreen:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0)],14,j))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(a,n)=>(e.openBlock(),e.createElementBlock("tr",{role:"row",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,color:t.value.tbody.color}),class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0})},[e.createElementVNode("td",{role:"cell",style:e.normalizeStyle({backgroundColor:t.value.tbody.backgroundColor,outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.serie,class:"vue-ui-data-table__tbody__td sticky-col-first"},[e.createElementVNode("div",le,[e.createElementVNode("span",{style:e.normalizeStyle({color:a.color})},"⬤",4),e.createElementVNode("span",null,e.toDisplayString(a.name??"-"),1)])],12,te),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(r,o)=>(e.openBlock(),e.createElementBlock("td",{dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign,backgroundColor:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?`${a.color}33`:"",borderRadius:c.value!==void 0&&p.value!==void 0&&o===c.value&&p.value===n?"3px":""}),"data-cell":m.value[o],class:"vue-ui-data-table__tbody__td",onPointerenter:i=>{p.value=n,c.value=o}},e.toDisplayString([null,void 0].includes(a.values[o])?"-":e.unref(u.applyDataLabel)(t.value.formatter,Number(a.values[o]),e.unref(u.dataLabel)({p:t.value.prefix,v:Number(a.values[o]),s:t.value.suffix,r:t.value.roundingValues}),{datapoint:a,seriesIndex:n,datapointIndex:o})),45,ae))),256)),t.value.showTotal?(e.openBlock(),e.createElementBlock("td",{key:0,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.total,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.sum,e.unref(u.dataLabel)({p:t.value.prefix,v:a.sum,s:t.value.suffix,r:t.value.roundingTotal}),{datapoint:a.sum,seriesIndex:n})),13,oe)):e.createCommentVNode("",!0),t.value.showAverage?(e.openBlock(),e.createElementBlock("td",{key:1,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.average,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.average,e.unref(u.dataLabel)({p:t.value.prefix,v:a.average,s:t.value.suffix,r:t.value.roundingAverage}),{datapoint:a.average,seriesIndex:n})),13,ne)):e.createCommentVNode("",!0),t.value.showMedian?(e.openBlock(),e.createElementBlock("td",{key:2,dir:"auto",role:"cell",style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),"data-cell":t.value.translations.median,class:"vue-ui-data-table__tbody__td"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,a.median,e.unref(u.dataLabel)({p:t.value.prefix,v:a.median,s:t.value.suffix,r:t.value.roundingMedian}),{datapoint:a.median,seriesIndex:n})),13,re)):e.createCommentVNode("",!0),t.value.showSparklines?(e.openBlock(),e.createElementBlock("td",{key:3,role:"cell","data-cell":t.value.translations.chart,style:e.normalizeStyle({outline:t.value.tbody.outline,fontSize:`${t.value.tbody.fontSize}px`,fontWeight:t.value.tbody.bold?"bold":"normal",textAlign:t.value.tbody.textAlign}),class:"vue-ui-data-table__tbody__td sticky-col"},[(e.openBlock(),e.createBlock(J.default,{key:`sparkline_${n}_${b.value}`,onHoverIndex:({index:r})=>H({dataIndex:r,serieIndex:n}),dataset:a.sparklineDataset,showInfo:!1,selectedIndex:c.value,config:{type:t.value.sparkline.type,style:{backgroundColor:t.value.tbody.backgroundColor,animation:{show:t.value.sparkline.animation.show&&!e.unref(w)&&!e.unref(z),animationFrames:t.value.sparkline.animation.animationFrames},line:{color:a.color,smooth:t.value.sparkline.smooth,strokeWidth:t.value.sparkline.strokeWidth},bar:{color:a.color},area:{color:a.color,opacity:t.value.sparkline.showArea?16:0,useGradient:t.value.sparkline.useGradient},verticalIndicator:{color:a.color},plot:{radius:9,stroke:t.value.tbody.backgroundColor,strokeWidth:3}}}},null,8,["onHoverIndex","dataset","selectedIndex","config"]))],12,ue)):e.createCommentVNode("",!0)],6))),256))])],4)],32),l.$slots.source?(e.openBlock(),e.createElementBlock("div",se,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],10,Y))}},de=Q._export_sfc(ie,[["__scopeId","data-v-1516623f"]]);exports.default=de;
|