vue-data-ui 3.17.2 → 3.17.4
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 +228 -228
- package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
- package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
- package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
- package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
- package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
- package/dist/BaseScanner-BON3d_Sx.js +38 -0
- package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
- package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
- package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
- package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
- package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
- package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
- package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
- package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
- package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
- package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
- package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
- package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
- package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
- package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +5 -0
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
- package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
- package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
- package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
- package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
- package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
- package/dist/patternUtils-BINhU4Ky.js +615 -0
- package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
- package/dist/style.css +1 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +500 -451
- package/dist/types/vue-data-ui.d.ts +2124 -1786
- package/dist/types/vue-ui-3d-bar.d.ts +10 -7
- package/dist/types/vue-ui-accordion.d.ts +2 -4
- package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
- package/dist/types/vue-ui-annotator.d.ts +3 -3
- package/dist/types/vue-ui-bullet.d.ts +10 -7
- package/dist/types/vue-ui-bump.d.ts +9 -6
- package/dist/types/vue-ui-candlestick.d.ts +10 -7
- package/dist/types/vue-ui-carousel-table.d.ts +2 -2
- package/dist/types/vue-ui-chestnut.d.ts +9 -6
- package/dist/types/vue-ui-chord.d.ts +10 -7
- package/dist/types/vue-ui-circle-pack.d.ts +10 -7
- package/dist/types/vue-ui-cursor.d.ts +2 -2
- package/dist/types/vue-ui-dag.d.ts +10 -7
- package/dist/types/vue-ui-dashboard.d.ts +3 -3
- package/dist/types/vue-ui-digits.d.ts +2 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
- package/dist/types/vue-ui-donut.d.ts +11 -8
- package/dist/types/vue-ui-dumbbell.d.ts +11 -8
- package/dist/types/vue-ui-flow.d.ts +11 -8
- package/dist/types/vue-ui-funnel.d.ts +11 -8
- package/dist/types/vue-ui-galaxy.d.ts +11 -8
- package/dist/types/vue-ui-gauge.d.ts +11 -8
- package/dist/types/vue-ui-geo.d.ts +13 -6
- package/dist/types/vue-ui-gizmo.d.ts +2 -5
- package/dist/types/vue-ui-heatmap.d.ts +11 -8
- package/dist/types/vue-ui-history-plot.d.ts +11 -8
- package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
- package/dist/types/vue-ui-icon.d.ts +2 -4
- package/dist/types/vue-ui-kpi.d.ts +2 -4
- package/dist/types/vue-ui-mini-loader.d.ts +4 -4
- package/dist/types/vue-ui-molecule.d.ts +11 -8
- package/dist/types/vue-ui-mood-radar.d.ts +11 -8
- package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
- package/dist/types/vue-ui-onion.d.ts +11 -8
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +2 -4
- package/dist/types/vue-ui-quadrant.d.ts +11 -8
- package/dist/types/vue-ui-quick-chart.d.ts +11 -8
- package/dist/types/vue-ui-radar.d.ts +11 -8
- package/dist/types/vue-ui-rating.d.ts +4 -4
- package/dist/types/vue-ui-relation-circle.d.ts +11 -8
- package/dist/types/vue-ui-ridgeline.d.ts +11 -8
- package/dist/types/vue-ui-rings.d.ts +11 -8
- package/dist/types/vue-ui-scatter.d.ts +11 -8
- package/dist/types/vue-ui-skeleton.d.ts +2 -4
- package/dist/types/vue-ui-smiley.d.ts +2 -5
- package/dist/types/vue-ui-spark-trend.d.ts +2 -4
- package/dist/types/vue-ui-sparkbar.d.ts +4 -4
- package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
- package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
- package/dist/types/vue-ui-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
- package/dist/types/vue-ui-stackbar.d.ts +11 -8
- package/dist/types/vue-ui-stackline.d.ts +11 -8
- package/dist/types/vue-ui-strip-plot.d.ts +11 -8
- package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
- package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-table.d.ts +4 -4
- package/dist/types/vue-ui-thermometer.d.ts +11 -8
- package/dist/types/vue-ui-timer.d.ts +2 -4
- package/dist/types/vue-ui-tiremarks.d.ts +11 -8
- package/dist/types/vue-ui-treemap.d.ts +11 -8
- package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
- package/dist/types/vue-ui-waffle.d.ts +11 -8
- package/dist/types/vue-ui-wheel.d.ts +11 -8
- package/dist/types/vue-ui-word-cloud.d.ts +11 -8
- package/dist/types/vue-ui-world.d.ts +11 -8
- package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
- package/dist/types/vue-ui-xy.d.ts +9 -6
- package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
- package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
- package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
- package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
- package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
- package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
- package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
- package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
- package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
- package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
- package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
- package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
- package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
- package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
- package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +103 -99
- package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
- package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
- package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
- package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
- package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
- package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
- package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
- package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
- package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
- package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
- package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
- package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
- package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
- package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
- package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
- package/package.json +120 -119
- package/dist/BaseScanner-BhhkKVoj.js +0 -30
- package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
- package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCssVars as Gt, defineAsyncComponent as qt, ref as f, computed as x, onMounted as Qt, watch as Fe, openBlock as r, createElementBlock as i, normalizeStyle as h, createElementVNode as s, toDisplayString as d, withDirectives as le, withKeys as ve, withModifiers as de, vModelText as he, createVNode as je, createCommentVNode as b, Fragment as L, renderList as j, normalizeClass as D, createTextVNode as z, unref as V, vModelSelect as bt, withCtx as mt, createBlock as kt, nextTick as ke } from "vue";
|
|
2
|
-
import { j as el, t as tl, y as ll, x as Ve, u as wt, W as al, Y as ol, l as ae, a0 as nl, a1 as sl, p as We } from "./lib-
|
|
3
|
-
import { u as ul } from "./useConfig-
|
|
4
|
-
import Ct from "./vue-ui-xy-
|
|
5
|
-
import rl from "./vue-ui-donut-
|
|
6
|
-
import il from "./BaseIcon-
|
|
2
|
+
import { j as el, t as tl, y as ll, x as Ve, u as wt, W as al, Y as ol, l as ae, a0 as nl, a1 as sl, p as We } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { u as ul } from "./useConfig-DTHxOX6V.js";
|
|
4
|
+
import Ct from "./vue-ui-xy-Cv-50xHj.js";
|
|
5
|
+
import rl from "./vue-ui-donut-d0LLrlKG.js";
|
|
6
|
+
import il from "./BaseIcon-DX0hTWa-.js";
|
|
7
7
|
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-export-hub-options" }, gl = { class: "vue-ui-table-export-hub-option-wrapper" }, pl = { class: "label" }, fl = ["innerHTML"], yl = { class: "vue-ui-table-export-hub-option-wrapper" }, bl = { class: "label" }, ml = ["innerHTML"], kl = { class: "vue-ui-table-dialog-field" }, wl = {
|
|
9
9
|
class: "label vue-ui-table-dialog-input-label",
|
|
@@ -66,17 +66,19 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
66
66
|
emits: ["page-change"],
|
|
67
67
|
setup(m, { expose: $t, emit: Mt }) {
|
|
68
68
|
Gt((e) => ({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
a526696e: Dt.value,
|
|
70
|
+
b37e1748: Et.value,
|
|
71
|
+
v5236f612: At.value,
|
|
72
|
+
v348e0d64: De.value,
|
|
73
|
+
v54377a3e: Pt.value,
|
|
74
|
+
ee49ce48: Ht.value,
|
|
75
|
+
v1ac4574c: Ee.value,
|
|
76
|
+
v4f070ff6: It.value,
|
|
77
|
+
v725e1288: Bt.value
|
|
78
78
|
}));
|
|
79
|
-
const xt = qt(
|
|
79
|
+
const xt = qt(
|
|
80
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
81
|
+
), g = m, Tt = Mt, { vue_ui_table: Je } = ul(), G = el();
|
|
80
82
|
f(null);
|
|
81
83
|
const Oe = f(null), se = f(null), S = f({
|
|
82
84
|
height: 316,
|
|
@@ -102,30 +104,51 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
102
104
|
}), we = f(void 0), Ce = f(void 0), v = f({
|
|
103
105
|
col: void 0,
|
|
104
106
|
rows: []
|
|
105
|
-
}), k = f(0), y = f(20), ge = f(!1), $e = f(!1), U = f({}), E = f({}), pe = f({}), W = f({}), C = f({}), J = f({}), H = f({}), P = f({}), w = f({}), oe = f(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
107
|
+
}), k = f(0), y = f(20), ge = f(!1), $e = f(!1), U = f({}), E = f({}), pe = f({}), W = f({}), C = f({}), J = f({}), H = f({}), P = f({}), w = f({}), oe = f(
|
|
108
|
+
g.config.rowsPerPage ? g.config.rowsPerPage : 25
|
|
109
|
+
), Ot = f(
|
|
110
|
+
[
|
|
111
|
+
.../* @__PURE__ */ new Set([
|
|
112
|
+
10,
|
|
113
|
+
25,
|
|
114
|
+
50,
|
|
115
|
+
100,
|
|
116
|
+
250,
|
|
117
|
+
500,
|
|
118
|
+
g.config.rowsPerPage ? g.config.rowsPerPage : 25,
|
|
119
|
+
g.dataset.body.length
|
|
120
|
+
])
|
|
121
|
+
].sort((e, t) => e - t)
|
|
122
|
+
), ue = f(void 0), F = f(void 0), Lt = f(void 0), X = f(!1), Ke = f(0), Me = f(""), re = f(""), I = f(!1), N = f(
|
|
123
|
+
JSON.parse(JSON.stringify(g.dataset.body)).map((e, t) => ({
|
|
124
|
+
...e,
|
|
125
|
+
absoluteIndex: t
|
|
126
|
+
}))
|
|
127
|
+
), Le = f(
|
|
128
|
+
JSON.parse(JSON.stringify(g.dataset.body)).map((e, t) => ({
|
|
129
|
+
...e,
|
|
130
|
+
absoluteIndex: t
|
|
131
|
+
}))
|
|
132
|
+
), K = f(
|
|
133
|
+
JSON.parse(JSON.stringify(g.dataset.header)).map((e, t) => ({
|
|
134
|
+
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
135
|
+
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
136
|
+
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
137
|
+
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
138
|
+
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
139
|
+
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
140
|
+
name: e.name,
|
|
141
|
+
// this attribute is mandatory
|
|
142
|
+
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
143
|
+
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
144
|
+
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
145
|
+
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
146
|
+
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
147
|
+
type: e.type,
|
|
148
|
+
// this attribute is mandatory
|
|
149
|
+
index: t
|
|
150
|
+
}))
|
|
151
|
+
), Xe = x(() => Oe.value ? Oe.value.getBoundingClientRect().height + 3 : 3), l = x(() => {
|
|
129
152
|
if (!Object.keys(g.config || {}).length)
|
|
130
153
|
return Je;
|
|
131
154
|
const e = tl({
|
|
@@ -133,8 +156,33 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
133
156
|
userConfig: g.config
|
|
134
157
|
});
|
|
135
158
|
return ll(e);
|
|
136
|
-
}), T = x(() => l.value.useCursorPointer), Dt = x(
|
|
137
|
-
|
|
159
|
+
}), T = x(() => l.value.useCursorPointer), Dt = x(
|
|
160
|
+
() => l.value.style.th.buttons.cancel.inactive.backgroundColor
|
|
161
|
+
), Et = x(
|
|
162
|
+
() => l.value.style.th.buttons.cancel.inactive.color
|
|
163
|
+
), De = x(
|
|
164
|
+
() => l.value.style.th.buttons.cancel.active.backgroundColor
|
|
165
|
+
), Ee = x(
|
|
166
|
+
() => l.value.style.th.buttons.filter.active.backgroundColor
|
|
167
|
+
), It = x(
|
|
168
|
+
() => l.value.style.th.buttons.filter.active.color
|
|
169
|
+
), At = x(
|
|
170
|
+
() => Ve(De.value, 0.33)
|
|
171
|
+
), Pt = x(
|
|
172
|
+
() => wt(De.value, 33)
|
|
173
|
+
), Ht = x(
|
|
174
|
+
() => Ve(Ee.value, 0.33)
|
|
175
|
+
), Bt = x(
|
|
176
|
+
() => wt(Ee, 33)
|
|
177
|
+
), Ie = x(
|
|
178
|
+
() => [...K.value].filter((e) => e.type === c.value.DATE)
|
|
179
|
+
), Ye = x(() => [
|
|
180
|
+
"",
|
|
181
|
+
...Ie.value.map((e) => e.name)
|
|
182
|
+
]), Ze = x(() => {
|
|
183
|
+
const e = Ie.value.find(
|
|
184
|
+
(t) => t.name === Me.value
|
|
185
|
+
);
|
|
138
186
|
return e ? e.index : null;
|
|
139
187
|
}), $ = x(() => {
|
|
140
188
|
const e = [];
|
|
@@ -146,7 +194,11 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
146
194
|
index: e,
|
|
147
195
|
name: g.dataset.header[e].name,
|
|
148
196
|
options: C.value[e]
|
|
149
|
-
}))), Ge = x(
|
|
197
|
+
}))), Ge = x(
|
|
198
|
+
() => l.value.useChart && v.value.rows.length > 1
|
|
199
|
+
), qe = x(
|
|
200
|
+
() => g.dataset.header.map((e) => e.type).includes(c.value.NUMERIC)
|
|
201
|
+
), M = x(() => ({
|
|
150
202
|
arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" 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="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,
|
|
151
203
|
bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" 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="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,
|
|
152
204
|
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" 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="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,
|
|
@@ -167,10 +219,26 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
167
219
|
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value * 0.8}" height="${y.value * 0.8}" 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="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,
|
|
168
220
|
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`
|
|
169
221
|
})), Qe = x(() => N.value.map((e) => e.td)), Te = x(() => ({
|
|
170
|
-
sumPercentage: Number(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
222
|
+
sumPercentage: Number(
|
|
223
|
+
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(
|
|
224
|
+
g.dataset.header[v.value.col].decimals
|
|
225
|
+
)
|
|
226
|
+
).toLocaleString(),
|
|
227
|
+
sumRegular: Number(
|
|
228
|
+
v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(
|
|
229
|
+
g.dataset.header[v.value.col].decimals
|
|
230
|
+
)
|
|
231
|
+
).toLocaleString(),
|
|
232
|
+
averagePercentage: Number(
|
|
233
|
+
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / v.value.rows.length * 100).toFixed(
|
|
234
|
+
g.dataset.header[v.value.col].decimals
|
|
235
|
+
)
|
|
236
|
+
).toLocaleString(),
|
|
237
|
+
averageRegular: Number(
|
|
238
|
+
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / v.value.rows.length).toFixed(
|
|
239
|
+
g.dataset.header[v.value.col].decimals
|
|
240
|
+
)
|
|
241
|
+
).toLocaleString()
|
|
174
242
|
})), Pe = f({
|
|
175
243
|
width: 1e3,
|
|
176
244
|
height: 500
|
|
@@ -180,7 +248,11 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
180
248
|
}
|
|
181
249
|
const ie = x(() => {
|
|
182
250
|
if (!Ge.value) return [];
|
|
183
|
-
const e = Pe.value.height, t = Pe.value.width, o = v.value.rows.length, a = t / o, n = Math.max(
|
|
251
|
+
const e = Pe.value.height, t = Pe.value.width, o = v.value.rows.length, a = t / o, n = Math.max(
|
|
252
|
+
...v.value.rows.map((R) => R.value)
|
|
253
|
+
), u = Math.min(
|
|
254
|
+
...v.value.rows.map((R) => R.value)
|
|
255
|
+
), p = g.dataset.header[v.value.col].isPercentage && g.dataset.header[v.value.col].percentageTo, O = S.value.type === c.value.DONUT && F.value && F.value.name, Y = g.dataset.header[v.value.col].name + (p ? ` / ${g.dataset.header[J.value[v.value.col].referenceIndex].name}` : "") + (O ? ` ${l.value.translations.by} ${F.value.name}` : ""), Z = g.dataset.header[v.value.col].prefix, ee = g.dataset.header[v.value.col].suffix, be = [
|
|
184
256
|
{
|
|
185
257
|
name: Y,
|
|
186
258
|
series: v.value.rows.map((R) => R.value),
|
|
@@ -387,8 +459,14 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
387
459
|
const e = F.value.options.map((t, o) => ({
|
|
388
460
|
name: t,
|
|
389
461
|
color: We[o] || We[o % We.length],
|
|
390
|
-
values: [
|
|
391
|
-
|
|
462
|
+
values: [
|
|
463
|
+
ne.value.filter(
|
|
464
|
+
(a, n) => a.td[F.value.index] === t && v.value.rows.map((u) => u.index).includes(n)
|
|
465
|
+
).map((a) => a.td[v.value.col]).reduce((a, n) => Math.abs(a) + Math.abs(n), 0)
|
|
466
|
+
],
|
|
467
|
+
absoluteValue: ne.value.filter(
|
|
468
|
+
(a, n) => a.td[F.value.index] === t && v.value.rows.map((u) => u.index).includes(n)
|
|
469
|
+
).map((a) => a.td[v.value.col]).reduce((a, n) => a + n, 0)
|
|
392
470
|
})).sort((t, o) => o.value - t.value);
|
|
393
471
|
we.value = e, ke(() => {
|
|
394
472
|
S.value.type = c.value.DONUT, I.value = !1;
|
|
@@ -472,7 +550,11 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
472
550
|
};
|
|
473
551
|
}
|
|
474
552
|
function B(e) {
|
|
475
|
-
return [
|
|
553
|
+
return [
|
|
554
|
+
...new Set(
|
|
555
|
+
g.dataset.body.map((t) => t.td[e])
|
|
556
|
+
)
|
|
557
|
+
];
|
|
476
558
|
}
|
|
477
559
|
function ce(e) {
|
|
478
560
|
return Qe.value.map((t) => t[e]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, o) => t + o, 0);
|
|
@@ -557,7 +639,15 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
557
639
|
e.preventDefault();
|
|
558
640
|
const t = e.keyCode, o = 38, a = 40, n = 37, u = 39;
|
|
559
641
|
if (![o, a, n, u].includes(t)) return;
|
|
560
|
-
const p = e.target.id, O = /cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/, Y = p.match(O), Z = parseInt(Y[1]), ee = parseInt(Y[2]), be = document.getElementById(
|
|
642
|
+
const p = e.target.id, O = /cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/, Y = p.match(O), Z = parseInt(Y[1]), ee = parseInt(Y[2]), be = document.getElementById(
|
|
643
|
+
`cell_${Z}_${ee + 1}_${G}`
|
|
644
|
+
), me = document.getElementById(
|
|
645
|
+
`cell_${Z}_${ee - 1}_${G}`
|
|
646
|
+
), te = document.getElementById(
|
|
647
|
+
`cell_${Z + 1}_${ee}_${G}`
|
|
648
|
+
), _ = document.getElementById(
|
|
649
|
+
`cell_${Z - 1}_${ee}_${G}`
|
|
650
|
+
);
|
|
561
651
|
let A;
|
|
562
652
|
switch (!0) {
|
|
563
653
|
case t === u:
|
|
@@ -587,26 +677,48 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
587
677
|
return new Promise((e) => {
|
|
588
678
|
const t = [];
|
|
589
679
|
K.value.forEach((o, a) => {
|
|
590
|
-
if (o.isSearch && Object.assign(P.value, { [a]: "" }), o.isMultiselect && Object.assign(C.value, {
|
|
680
|
+
if (o.isSearch && Object.assign(P.value, { [a]: "" }), o.isMultiselect && Object.assign(C.value, {
|
|
681
|
+
[a]: B(a)
|
|
682
|
+
}), o.type === c.value.DATE && (Object.assign(U.value, { [a]: fe(a) }), Object.assign(pe.value, { [a]: !1 })), (o.isPercentage || o.percentageTo) && Object.assign(J.value, {
|
|
591
683
|
[a]: {
|
|
592
684
|
reference: o.percentageTo,
|
|
593
685
|
referenceIndex: g.dataset.header.map((n) => n.name).indexOf(o.percentageTo)
|
|
594
686
|
}
|
|
595
687
|
}), o.rangeFilter && (Object.assign(H.value, {
|
|
596
688
|
[a]: {
|
|
597
|
-
min: Math.round(
|
|
598
|
-
|
|
689
|
+
min: Math.round(
|
|
690
|
+
Math.min(
|
|
691
|
+
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
692
|
+
)
|
|
693
|
+
),
|
|
694
|
+
max: Math.round(
|
|
695
|
+
Math.max(
|
|
696
|
+
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
697
|
+
)
|
|
698
|
+
)
|
|
599
699
|
}
|
|
600
700
|
}), Object.assign(W.value, {
|
|
601
701
|
[a]: {
|
|
602
|
-
min: Math.round(
|
|
603
|
-
|
|
702
|
+
min: Math.round(
|
|
703
|
+
Math.min(
|
|
704
|
+
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
705
|
+
)
|
|
706
|
+
),
|
|
707
|
+
max: Math.round(
|
|
708
|
+
Math.max(
|
|
709
|
+
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
710
|
+
)
|
|
711
|
+
)
|
|
604
712
|
}
|
|
605
713
|
})), o.isPercentage) {
|
|
606
714
|
const n = g.dataset.header.map((p) => p.name).indexOf(o.percentageTo), u = g.dataset.body.map((p) => p.td[n]).reduce((p, O) => p + O, 0);
|
|
607
715
|
t.push([a, n, u]);
|
|
608
716
|
}
|
|
609
|
-
o.type === c.value.NUMERIC && !o.isPercentage && Object.assign(E.value, {
|
|
717
|
+
o.type === c.value.NUMERIC && !o.isPercentage && Object.assign(E.value, {
|
|
718
|
+
[a]: jt(
|
|
719
|
+
g.dataset.body.map((n) => Number(n.td[a]))
|
|
720
|
+
)
|
|
721
|
+
});
|
|
610
722
|
}), N.value.forEach((o, a) => {
|
|
611
723
|
t.map((n) => {
|
|
612
724
|
const [u, p, O] = n;
|
|
@@ -650,14 +762,18 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
650
762
|
}
|
|
651
763
|
v.value.col !== o && q();
|
|
652
764
|
const u = n.currentTarget.parentNode;
|
|
653
|
-
v.value.col = o, v.value.rows.map((p) => p.index).includes(t) ? (u.dataset.selected = "false", v.value.rows = v.value.rows.filter(
|
|
765
|
+
v.value.col = o, v.value.rows.map((p) => p.index).includes(t) ? (u.dataset.selected = "false", v.value.rows = v.value.rows.filter(
|
|
766
|
+
(p) => p.index !== t
|
|
767
|
+
), n.currentTarget.classList.remove(Nt.value.CELL), Array.from(u.children).forEach((p, O) => {
|
|
654
768
|
p.dataset.row === "even" ? (p.style.background = l.value.style.rows.even.backgroundColor, p.style.color = l.value.style.rows.even.olor) : (p.style.background = l.value.style.rows.odd.backgroundColor, p.style.color = l.value.style.rows.odd.color);
|
|
655
769
|
}), n.currentTarget.dataset.row === "even" ? (n.currentTarget.style.background = l.value.style.rows.even.backgroundColor, n.currentTarget.style.color = l.value.style.rows.even.color) : (n.currentTarget.style.background = l.value.style.rows.odd.backgroundColor, n.currentTarget.style.color = l.value.style.rows.odd.color)) : (u.dataset.selected = "true", v.value.rows.push({
|
|
656
770
|
index: t,
|
|
657
771
|
value: e
|
|
658
772
|
}), Array.from(u.children).forEach((p, O) => {
|
|
659
773
|
p.dataset.row === "even" ? (p.style.background = l.value.style.rows.even.selectedNeighbors.backgroundColor, p.style.color = l.value.style.rows.even.selectedNeighbors.color) : (p.style.background = l.value.style.rows.odd.selectedNeighbors.backgroundColor, p.style.color = l.value.style.rows.odd.selectedNeighbors.color);
|
|
660
|
-
}), n.currentTarget.dataset.row === "odd" ? (n.currentTarget.style.background = l.value.style.rows.odd.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.odd.selectedCell.color) : (n.currentTarget.style.background = l.value.style.rows.even.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.even.selectedCell.color)), v.value.rows = v.value.rows.sort(
|
|
774
|
+
}), n.currentTarget.dataset.row === "odd" ? (n.currentTarget.style.background = l.value.style.rows.odd.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.odd.selectedCell.color) : (n.currentTarget.style.background = l.value.style.rows.even.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.even.selectedCell.color)), v.value.rows = v.value.rows.sort(
|
|
775
|
+
(p, O) => p.index - O.index
|
|
776
|
+
), S.value.type === c.value.DONUT && v.value.rows.length > 0 && et();
|
|
661
777
|
}
|
|
662
778
|
function vt(e) {
|
|
663
779
|
v.value.col !== e ? (ne.value.forEach((t, o) => {
|
|
@@ -667,13 +783,17 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
667
783
|
colIndex: e,
|
|
668
784
|
headerType: c.value.NUMERIC,
|
|
669
785
|
event: {
|
|
670
|
-
currentTarget: document.getElementById(
|
|
786
|
+
currentTarget: document.getElementById(
|
|
787
|
+
`cell_${o}_${e}_${G}`
|
|
788
|
+
)
|
|
671
789
|
}
|
|
672
790
|
});
|
|
673
791
|
}), ue.value = e) : (ue.value = void 0, q());
|
|
674
792
|
}
|
|
675
793
|
async function ze(e, t) {
|
|
676
|
-
C.value[t].includes(e) ? C.value[t] = C.value[t].filter(
|
|
794
|
+
C.value[t].includes(e) ? C.value[t] = C.value[t].filter(
|
|
795
|
+
(o) => o !== e
|
|
796
|
+
) : C.value[t].push(e), await ke(), Q();
|
|
677
797
|
}
|
|
678
798
|
function dt(e) {
|
|
679
799
|
pe.value[e] = !(fe(e).from === U.value[e].from && fe(e).to === U.value[e].to);
|
|
@@ -699,7 +819,8 @@ const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-exp
|
|
|
699
819
|
const ye = f(null);
|
|
700
820
|
Qt(() => {
|
|
701
821
|
if (g.dataset.header.length === 0)
|
|
702
|
-
throw new Error(
|
|
822
|
+
throw new Error(
|
|
823
|
+
`vue-ui-table error: missing header data.
|
|
703
824
|
Provide an array of objects of type:
|
|
704
825
|
{
|
|
705
826
|
name: string;
|
|
@@ -712,7 +833,8 @@ Provide an array of objects of type:
|
|
|
712
833
|
isMultiselect: boolean;
|
|
713
834
|
isPercentage: boolean;
|
|
714
835
|
percentageTo: string; (or '')
|
|
715
|
-
}`
|
|
836
|
+
}`
|
|
837
|
+
);
|
|
716
838
|
if (g.dataset.body.length === 0)
|
|
717
839
|
throw new Error("vue-ui-table error: missing body data");
|
|
718
840
|
$e.value = !0, it(rt, async () => {
|
|
@@ -721,32 +843,42 @@ Provide an array of objects of type:
|
|
|
721
843
|
const t = document.activeElement;
|
|
722
844
|
(t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
|
|
723
845
|
}), re.value = l.value.style.exportMenu.filename, Me.value = Ie.value[0]?.name ?? "";
|
|
724
|
-
}), Fe(
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
846
|
+
}), Fe(
|
|
847
|
+
() => g.dataset,
|
|
848
|
+
(e) => {
|
|
849
|
+
$e.value = !0, N.value = JSON.parse(JSON.stringify(e.body)).map(
|
|
850
|
+
(t, o) => ({
|
|
851
|
+
...t,
|
|
852
|
+
absoluteIndex: o
|
|
853
|
+
})
|
|
854
|
+
), Le.value = JSON.parse(JSON.stringify(e.body)).map(
|
|
855
|
+
(t, o) => ({
|
|
856
|
+
...t,
|
|
857
|
+
absoluteIndex: o
|
|
858
|
+
})
|
|
859
|
+
), K.value = JSON.parse(JSON.stringify(e.header)).map(
|
|
860
|
+
(t, o) => ({
|
|
861
|
+
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
862
|
+
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
863
|
+
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
864
|
+
isPercentage: Object.hasOwn(t, "isPercentage") ? t.isPercentage : !1,
|
|
865
|
+
isSearch: Object.hasOwn(t, "isSearch") ? t.isSearch : !1,
|
|
866
|
+
isSort: Object.hasOwn(t, "isSort") ? t.isSort : !1,
|
|
867
|
+
name: t.name,
|
|
868
|
+
percentageTo: Object.hasOwn(t, "percentageTo") ? t.percentageTo : void 0,
|
|
869
|
+
prefix: Object.hasOwn(t, "prefix") ? t.prefix : "",
|
|
870
|
+
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
871
|
+
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
872
|
+
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
873
|
+
type: t.type,
|
|
874
|
+
index: o
|
|
875
|
+
})
|
|
876
|
+
), v.value = { col: void 0, rows: [] }, ue.value = void 0, oe.value = g.config.rowsPerPage ? g.config.rowsPerPage : 25, J.value = {}, U.value = {}, pe.value = {}, E.value = {}, W.value = {}, H.value = {}, C.value = {}, P.value = {}, w.value = {}, X.value = !1, we.value = void 0, F.value = void 0, Lt.value = void 0, I.value = !1, v.value.col = void 0, v.value.rows = [], it(rt, async () => {
|
|
877
|
+
pt(), await ke(), $e.value = !1;
|
|
878
|
+
});
|
|
879
|
+
},
|
|
880
|
+
{ immediate: !0, deep: !0 }
|
|
881
|
+
);
|
|
750
882
|
const Ue = f(null);
|
|
751
883
|
return Fe(ge, (e) => {
|
|
752
884
|
e && Ue.value && Ue.value.focus();
|
|
@@ -825,7 +957,9 @@ Provide an array of objects of type:
|
|
|
825
957
|
key: 0,
|
|
826
958
|
class: "vue-ui-table-dialog-field-button",
|
|
827
959
|
onClick: t[6] || (t[6] = (o) => re.value = ""),
|
|
828
|
-
style: h({
|
|
960
|
+
style: h({
|
|
961
|
+
cursor: T.value ? "pointer" : "default"
|
|
962
|
+
})
|
|
829
963
|
}, [
|
|
830
964
|
je(il, {
|
|
831
965
|
name: "close",
|
|
@@ -891,7 +1025,9 @@ Provide an array of objects of type:
|
|
|
891
1025
|
style: h(`overflow: visible;background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`),
|
|
892
1026
|
class: D({ "th-has-nan": E.value[a] })
|
|
893
1027
|
}, [
|
|
894
|
-
qe.value && ([c.value.TEXT, c.value.DATE].includes(
|
|
1028
|
+
qe.value && ([c.value.TEXT, c.value.DATE].includes(
|
|
1029
|
+
o.type
|
|
1030
|
+
) || o.isPercentage) ? (r(), i("span", Ml, [
|
|
895
1031
|
z(d(o.name) + " ", 1),
|
|
896
1032
|
o.isPercentage ? (r(), i("span", xl, " / " + d(o.percentageTo), 1)) : b("", !0)
|
|
897
1033
|
])) : (r(), i("span", Tl, d(o.name), 1))
|
|
@@ -902,7 +1038,10 @@ Provide an array of objects of type:
|
|
|
902
1038
|
t[27] || (t[27] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
903
1039
|
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
904
1040
|
key: `thead_${a}`,
|
|
905
|
-
class: D({
|
|
1041
|
+
class: D({
|
|
1042
|
+
"th-numeric": !0,
|
|
1043
|
+
"th-has-nan": E.value[a]
|
|
1044
|
+
}),
|
|
906
1045
|
style: h(`background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
907
1046
|
}, [
|
|
908
1047
|
o.sum && !E.value[a] ? (r(), i("span", _l, [
|
|
@@ -916,8 +1055,14 @@ Provide an array of objects of type:
|
|
|
916
1055
|
s: o.suffix,
|
|
917
1056
|
r: o.decimals
|
|
918
1057
|
})) + " ", 1),
|
|
919
|
-
J.value[a] && o.percentageTo && !o.isPercentage ? (r(), i("span", Nl, " (" + d(isNaN(
|
|
920
|
-
|
|
1058
|
+
J.value[a] && o.percentageTo && !o.isPercentage ? (r(), i("span", Nl, " (" + d(isNaN(
|
|
1059
|
+
ce(a) / ce(
|
|
1060
|
+
J.value[a].referenceIndex
|
|
1061
|
+
)
|
|
1062
|
+
) ? "-" : V(ae)({
|
|
1063
|
+
v: ce(a) / ce(
|
|
1064
|
+
J.value[a].referenceIndex
|
|
1065
|
+
) * 100,
|
|
921
1066
|
s: "%",
|
|
922
1067
|
r: o.decimals
|
|
923
1068
|
})) + ") ", 1)) : b("", !0)
|
|
@@ -928,7 +1073,10 @@ Provide an array of objects of type:
|
|
|
928
1073
|
t[28] || (t[28] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
929
1074
|
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
930
1075
|
key: `thead_${a}`,
|
|
931
|
-
class: D({
|
|
1076
|
+
class: D({
|
|
1077
|
+
"th-numeric": !0,
|
|
1078
|
+
"th-has-nan": E.value[a]
|
|
1079
|
+
}),
|
|
932
1080
|
style: h(`background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
933
1081
|
}, [
|
|
934
1082
|
o.average && !E.value[a] ? (r(), i("span", Ol, " ~ " + d(isNaN(ot(a)) ? "" : V(ae)({
|
|
@@ -958,7 +1106,9 @@ Provide an array of objects of type:
|
|
|
958
1106
|
type: "date",
|
|
959
1107
|
"onUpdate:modelValue": (n) => U.value[a].from = n,
|
|
960
1108
|
onInput: (n) => {
|
|
961
|
-
Q(), dt(
|
|
1109
|
+
Q(), dt(
|
|
1110
|
+
a
|
|
1111
|
+
);
|
|
962
1112
|
},
|
|
963
1113
|
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
964
1114
|
}, null, 44, Pl), [
|
|
@@ -974,7 +1124,9 @@ Provide an array of objects of type:
|
|
|
974
1124
|
type: "date",
|
|
975
1125
|
"onUpdate:modelValue": (n) => U.value[a].to = n,
|
|
976
1126
|
onInput: (n) => {
|
|
977
|
-
Q(), dt(
|
|
1127
|
+
Q(), dt(
|
|
1128
|
+
a
|
|
1129
|
+
);
|
|
978
1130
|
},
|
|
979
1131
|
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
980
1132
|
}, null, 44, Rl), [
|
|
@@ -986,15 +1138,24 @@ Provide an array of objects of type:
|
|
|
986
1138
|
o.isSort ? (r(), i("button", {
|
|
987
1139
|
key: 0,
|
|
988
1140
|
onClick: (n) => ht(a, n),
|
|
989
|
-
class: D({
|
|
1141
|
+
class: D({
|
|
1142
|
+
"th-button-active": [
|
|
1143
|
+
c.value.DESC,
|
|
1144
|
+
c.value.ASC
|
|
1145
|
+
].includes(w.value[a])
|
|
1146
|
+
}),
|
|
990
1147
|
style: h(`cursor:${T.value ? "pointer" : "default"}; background:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
991
1148
|
}, [
|
|
992
1149
|
w.value[a] === c.value.ASC ? (r(), i("span", {
|
|
993
1150
|
key: 0,
|
|
994
|
-
innerHTML: [
|
|
1151
|
+
innerHTML: [
|
|
1152
|
+
c.value.DATE
|
|
1153
|
+
].includes(o.type) ? M.value.sort09 : M.value.sortAZ
|
|
995
1154
|
}, null, 8, Fl)) : w.value[a] === c.value.DESC ? (r(), i("span", {
|
|
996
1155
|
key: 1,
|
|
997
|
-
innerHTML: [
|
|
1156
|
+
innerHTML: [
|
|
1157
|
+
c.value.DATE
|
|
1158
|
+
].includes(o.type) ? M.value.sort90 : M.value.sortZA
|
|
998
1159
|
}, null, 8, jl)) : (r(), i("span", {
|
|
999
1160
|
key: 2,
|
|
1000
1161
|
innerHTML: M.value.arrowSort
|
|
@@ -1002,11 +1163,17 @@ Provide an array of objects of type:
|
|
|
1002
1163
|
], 14, Ul)) : b("", !0),
|
|
1003
1164
|
s("button", {
|
|
1004
1165
|
onClick: (n) => {
|
|
1005
|
-
Kt(a), ct(
|
|
1166
|
+
Kt(a), ct(
|
|
1167
|
+
a,
|
|
1168
|
+
o,
|
|
1169
|
+
n
|
|
1170
|
+
);
|
|
1006
1171
|
},
|
|
1007
1172
|
disabled: !pe.value[a] && st(a, o),
|
|
1008
1173
|
class: "th-reset",
|
|
1009
|
-
style: h({
|
|
1174
|
+
style: h({
|
|
1175
|
+
cursor: T.value ? "pointer" : "default"
|
|
1176
|
+
})
|
|
1010
1177
|
}, " ✖ ", 12, Wl)
|
|
1011
1178
|
])
|
|
1012
1179
|
])) : b("", !0),
|
|
@@ -1023,15 +1190,24 @@ Provide an array of objects of type:
|
|
|
1023
1190
|
!E.value[a] && o.isSort && o.type !== c.value.DATE ? (r(), i("button", {
|
|
1024
1191
|
key: 2,
|
|
1025
1192
|
onClick: (n) => ht(a, n),
|
|
1026
|
-
class: D({
|
|
1193
|
+
class: D({
|
|
1194
|
+
"th-button-active": [
|
|
1195
|
+
c.value.DESC,
|
|
1196
|
+
c.value.ASC
|
|
1197
|
+
].includes(w.value[a])
|
|
1198
|
+
}),
|
|
1027
1199
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1028
1200
|
}, [
|
|
1029
1201
|
w.value[a] === c.value.ASC ? (r(), i("span", {
|
|
1030
1202
|
key: 0,
|
|
1031
|
-
innerHTML: [c.value.NUMERIC].includes(
|
|
1203
|
+
innerHTML: [c.value.NUMERIC].includes(
|
|
1204
|
+
o.type
|
|
1205
|
+
) ? M.value.sort09 : M.value.sortZA
|
|
1032
1206
|
}, null, 8, Xl)) : w.value[a] === c.value.DESC ? (r(), i("span", {
|
|
1033
1207
|
key: 1,
|
|
1034
|
-
innerHTML: [c.value.NUMERIC].includes(
|
|
1208
|
+
innerHTML: [c.value.NUMERIC].includes(
|
|
1209
|
+
o.type
|
|
1210
|
+
) ? M.value.sort90 : M.value.sortAZ
|
|
1035
1211
|
}, null, 8, Yl)) : (r(), i("span", {
|
|
1036
1212
|
key: 2,
|
|
1037
1213
|
innerHTML: M.value.arrowSort
|
|
@@ -1041,14 +1217,18 @@ Provide an array of objects of type:
|
|
|
1041
1217
|
key: 3,
|
|
1042
1218
|
onClick: (n) => gt(a, o, n),
|
|
1043
1219
|
innerHTML: M.value.filter,
|
|
1044
|
-
class: D({
|
|
1220
|
+
class: D({
|
|
1221
|
+
"th-button-active": C.value[a] && C.value[a].length !== B(a).length
|
|
1222
|
+
}),
|
|
1045
1223
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${C.value[a] && C.value[a].length !== B(a).length ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${C.value[a] && C.value[a].length !== B(a).length ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1046
1224
|
}, null, 14, Gl)) : b("", !0),
|
|
1047
1225
|
v.value.col === a && Ge.value ? (r(), i("button", {
|
|
1048
1226
|
key: 4,
|
|
1049
1227
|
onClick: t[8] || (t[8] = (n) => X.value = !X.value),
|
|
1050
1228
|
innerHTML: M.value.chart,
|
|
1051
|
-
class: D({
|
|
1229
|
+
class: D({
|
|
1230
|
+
"th-button-active": X.value
|
|
1231
|
+
}),
|
|
1052
1232
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${X.value ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${X.value ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1053
1233
|
}, null, 14, ql)) : b("", !0),
|
|
1054
1234
|
o.rangeFilter && H.value[a] && !E.value[a] ? (r(), i("div", Ql, [
|
|
@@ -1104,7 +1284,9 @@ Provide an array of objects of type:
|
|
|
1104
1284
|
onClick: (n) => ct(a, o, n),
|
|
1105
1285
|
disabled: st(a, o),
|
|
1106
1286
|
class: "th-reset",
|
|
1107
|
-
style: h({
|
|
1287
|
+
style: h({
|
|
1288
|
+
cursor: T.value ? "pointer" : "default"
|
|
1289
|
+
})
|
|
1108
1290
|
}, " ✖ ", 12, oa)) : b("", !0),
|
|
1109
1291
|
o.isMultiselect ? (r(), i("div", {
|
|
1110
1292
|
key: 7,
|
|
@@ -1129,7 +1311,10 @@ Provide an array of objects of type:
|
|
|
1129
1311
|
style: h(`opacity:${nt(n, a) ? 1 : 0.5}`),
|
|
1130
1312
|
tabindex: "0"
|
|
1131
1313
|
}, [
|
|
1132
|
-
nt(
|
|
1314
|
+
nt(
|
|
1315
|
+
n,
|
|
1316
|
+
a
|
|
1317
|
+
) ? (r(), i("span", {
|
|
1133
1318
|
key: 0,
|
|
1134
1319
|
style: h(`color:${l.value.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1135
1320
|
class: "th-icon-green"
|
|
@@ -1149,15 +1334,22 @@ Provide an array of objects of type:
|
|
|
1149
1334
|
t[32] || (t[32] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1150
1335
|
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1151
1336
|
key: `col_selector_${a}`,
|
|
1152
|
-
class: D({
|
|
1337
|
+
class: D({
|
|
1338
|
+
"vue-ui-table-col-selector": !E.value[a],
|
|
1339
|
+
"th-has-nan": E.value[a]
|
|
1340
|
+
}),
|
|
1153
1341
|
style: h(`background:${a === ue.value && !E.value[a] ? l.value.style.th.selected.backgroundColor : l.value.style.th.backgroundColor};color:${a === ue.value && !E.value[a] ? l.value.style.th.selected.color : l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
1154
1342
|
}, [
|
|
1155
1343
|
E.value[a] ? b("", !0) : (r(), i("div", {
|
|
1156
1344
|
key: 0,
|
|
1157
1345
|
innerHTML: K.value[a].type === c.value.NUMERIC ? M.value.chevronDown : "",
|
|
1158
|
-
class: D({
|
|
1346
|
+
class: D({
|
|
1347
|
+
"col-selector": K.value[a].type === c.value.NUMERIC
|
|
1348
|
+
}),
|
|
1159
1349
|
tabindex: "0",
|
|
1160
|
-
style: h({
|
|
1350
|
+
style: h({
|
|
1351
|
+
cursor: T.value ? "pointer" : "default"
|
|
1352
|
+
}),
|
|
1161
1353
|
onClick: de((n) => vt(a), ["stop"]),
|
|
1162
1354
|
onKeyup: ve((n) => vt(a), ["enter"])
|
|
1163
1355
|
}, null, 46, ra))
|
|
@@ -1184,7 +1376,9 @@ Provide an array of objects of type:
|
|
|
1184
1376
|
(r(!0), i(L, null, j(o.td, (n, u) => (r(), i("td", {
|
|
1185
1377
|
"data-row": a % 2 === 0 ? "odd" : "even",
|
|
1186
1378
|
key: `td_${a}_${u}`,
|
|
1187
|
-
style: h(
|
|
1379
|
+
style: h(
|
|
1380
|
+
Vt(n) || m.dataset.header[u].type === c.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${l.value.style.rows.outline}` : `outline:${l.value.style.rows.outline}`
|
|
1381
|
+
),
|
|
1188
1382
|
onClick: (p) => Se({
|
|
1189
1383
|
td: n,
|
|
1190
1384
|
rowIndex: a,
|
|
@@ -1208,7 +1402,11 @@ Provide an array of objects of type:
|
|
|
1208
1402
|
event: p
|
|
1209
1403
|
}), ["space"])
|
|
1210
1404
|
],
|
|
1211
|
-
class: D({
|
|
1405
|
+
class: D({
|
|
1406
|
+
"td-numeric": m.dataset.header[u].type === c.value.NUMERIC,
|
|
1407
|
+
"td-focusable": !0,
|
|
1408
|
+
"td-has-nan": E.value[u]
|
|
1409
|
+
}),
|
|
1212
1410
|
id: `cell_${a}_${u}_${V(G)}`,
|
|
1213
1411
|
tabindex: "0"
|
|
1214
1412
|
}, [
|
|
@@ -1230,7 +1428,11 @@ Provide an array of objects of type:
|
|
|
1230
1428
|
s: m.dataset.header[u].suffix,
|
|
1231
1429
|
r: m.dataset.header[u].decimals
|
|
1232
1430
|
})) + " (" + d(isNaN(Number(n)) ? "" : V(ae)({
|
|
1233
|
-
v: Number(
|
|
1431
|
+
v: Number(
|
|
1432
|
+
n / ce(
|
|
1433
|
+
J.value[u].referenceIndex
|
|
1434
|
+
) * 100
|
|
1435
|
+
),
|
|
1234
1436
|
s: "%",
|
|
1235
1437
|
r: m.dataset.header[u].decimals
|
|
1236
1438
|
})) + ") ", 3)) : m.dataset.header[u].type === c.value.NUMERIC ? (r(), i("span", {
|
|
@@ -1238,7 +1440,11 @@ Provide an array of objects of type:
|
|
|
1238
1440
|
class: D({ "td-nan": isNaN(Number(n)) })
|
|
1239
1441
|
}, d(isNaN(Number(n)) ? `${n} is not ${c.value.NUMERIC}` : V(ae)({
|
|
1240
1442
|
p: m.dataset.header[u].prefix,
|
|
1241
|
-
v: Number(
|
|
1443
|
+
v: Number(
|
|
1444
|
+
n.toFixed(
|
|
1445
|
+
m.dataset.header[u].decimals
|
|
1446
|
+
)
|
|
1447
|
+
),
|
|
1242
1448
|
s: m.dataset.header[u].suffix,
|
|
1243
1449
|
r: m.dataset.header[u].decimals
|
|
1244
1450
|
})), 3)) : (r(), i("span", pa, d(m.dataset.header[u].prefix) + " " + d(n) + " " + d(m.dataset.header[u].suffix), 1))
|
|
@@ -1248,7 +1454,10 @@ Provide an array of objects of type:
|
|
|
1248
1454
|
])
|
|
1249
1455
|
], 4),
|
|
1250
1456
|
s("div", {
|
|
1251
|
-
class: D({
|
|
1457
|
+
class: D({
|
|
1458
|
+
"td-selector-info": !0,
|
|
1459
|
+
"td-selector-info--active": v.value.col !== void 0 && v.value.rows.length
|
|
1460
|
+
}),
|
|
1252
1461
|
style: h(`background:${l.value.style.infoBar.backgroundColor};color:${l.value.style.infoBar.color}`)
|
|
1253
1462
|
}, [
|
|
1254
1463
|
v.value.col !== void 0 && v.value.rows.length ? (r(), i(L, { key: 0 }, [
|
|
@@ -1389,7 +1598,9 @@ Provide an array of objects of type:
|
|
|
1389
1598
|
key: 0,
|
|
1390
1599
|
onClick: t[19] || (t[19] = (o) => I.value = !0),
|
|
1391
1600
|
innerHTML: M.value.donut,
|
|
1392
|
-
class: D({
|
|
1601
|
+
class: D({
|
|
1602
|
+
"is-active-chart": S.value.type === c.value.DONUT || I.value
|
|
1603
|
+
}),
|
|
1393
1604
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.DONUT || I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.DONUT || I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1394
1605
|
}, null, 14, za)) : b("", !0),
|
|
1395
1606
|
s("button", {
|
|
@@ -1397,7 +1608,9 @@ Provide an array of objects of type:
|
|
|
1397
1608
|
S.value.type = c.value.LINE, I.value = !1;
|
|
1398
1609
|
}),
|
|
1399
1610
|
innerHTML: M.value.chart,
|
|
1400
|
-
class: D({
|
|
1611
|
+
class: D({
|
|
1612
|
+
"is-active-chart": S.value.type === c.value.LINE && !I.value
|
|
1613
|
+
}),
|
|
1401
1614
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.LINE && !I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.LINE && !I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1402
1615
|
}, null, 14, Ua),
|
|
1403
1616
|
s("button", {
|
|
@@ -1405,7 +1618,9 @@ Provide an array of objects of type:
|
|
|
1405
1618
|
S.value.type = c.value.BAR, I.value = !1;
|
|
1406
1619
|
}),
|
|
1407
1620
|
innerHTML: M.value.bar,
|
|
1408
|
-
class: D({
|
|
1621
|
+
class: D({
|
|
1622
|
+
"is-active-chart": S.value.type === c.value.BAR && !I.value
|
|
1623
|
+
}),
|
|
1409
1624
|
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.BAR && !I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.BAR && !I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1410
1625
|
}, null, 14, Fa)
|
|
1411
1626
|
])
|
|
@@ -1450,7 +1665,9 @@ Provide an array of objects of type:
|
|
|
1450
1665
|
], 12, Xa)
|
|
1451
1666
|
])
|
|
1452
1667
|
], 4)) : b("", !0),
|
|
1453
|
-
[c.value.BAR, c.value.LINE].includes(
|
|
1668
|
+
[c.value.BAR, c.value.LINE].includes(
|
|
1669
|
+
S.value.type
|
|
1670
|
+
) && !I.value ? (r(), i(L, { key: 1 }, [
|
|
1454
1671
|
Ye.value.length > 1 ? (r(), i("label", {
|
|
1455
1672
|
key: 0,
|
|
1456
1673
|
style: h({
|
|
@@ -1503,7 +1720,7 @@ Provide an array of objects of type:
|
|
|
1503
1720
|
}, 8, ["backgroundColor", "headerColor", "color", "isCursorPointer"])
|
|
1504
1721
|
], 4));
|
|
1505
1722
|
}
|
|
1506
|
-
}, uo = /* @__PURE__ */ cl(qa, [["__scopeId", "data-v-
|
|
1723
|
+
}, uo = /* @__PURE__ */ cl(qa, [["__scopeId", "data-v-5db1d7a9"]]);
|
|
1507
1724
|
export {
|
|
1508
1725
|
uo as default
|
|
1509
1726
|
};
|