vue-data-ui 3.27.0 → 3.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/A11yDataTable-DWNlWXzs.js +1 -0
- package/dist/Arrow-C2W0uGrq.js +1 -0
- package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
- package/dist/BaseIcon-DdIyewwY.js +1 -0
- package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-DoYifY2y.js +1 -0
- package/dist/ColorPicker-MLwiwxl5.js +1 -0
- package/dist/DataTable-WNecJMcY.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-CHg1AQ3p.js +1 -0
- package/dist/Legend-D8YoT1RJ.js +1 -0
- package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
- package/dist/PackageVersion-CdkxOy58.js +1 -0
- package/dist/PenAndPaper-IMw576MC.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-Bp9YNtPc.js +1 -0
- package/dist/SlicerPreview-CNUciSbY.js +1 -0
- package/dist/SparkTooltip-C5JMcBXT.js +1 -0
- package/dist/Title-BGYFqulv.js +1 -0
- package/dist/Tooltip-Cus2-XNQ.js +1 -0
- package/dist/UserOptions-DTxMeZv3.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-CIvU_04o.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-D8t3Bm7s.js +3 -0
- package/dist/exposedLib-DHtyEc_G.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-DiT4ivZ5.js +1 -0
- package/dist/labelUtils-CG3uVXoZ.js +1 -0
- package/dist/lib-CV_IANZ6.js +12 -0
- package/dist/package-DE5cU1Rg.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-BQSB1V3H.js +1 -0
- package/dist/render-common-BdZ5aRyn.js +1 -0
- package/dist/resolveChartConfig-DZg-korK.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17961 -17958
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -130
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CB186vF2.js +1 -0
- package/dist/useObjectBindings-Dse7YyAf.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-hLW3cv4N.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-DyYgLIZN.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
- package/dist/vue-ui-accordion-BNvevckx.js +1 -0
- package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
- package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
- package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
- package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
- package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
- package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
- package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
- package/dist/vue-ui-chord-B6_veyvO.js +21 -0
- package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
- package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
- package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
- package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
- package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
- package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
- package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
- package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
- package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
- package/dist/vue-ui-flow-Dru76A2O.js +3 -0
- package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
- package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
- package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
- package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
- package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
- package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
- package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
- package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
- package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
- package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
- package/dist/vue-ui-label-B4pkXBxc.js +7 -0
- package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
- package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
- package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
- package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
- package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
- package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
- package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
- package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
- package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
- package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
- package/dist/vue-ui-rings-BOti0NGb.js +1 -0
- package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
- package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
- package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
- package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
- package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
- package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
- package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
- package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
- package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
- package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
- package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
- package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
- package/dist/vue-ui-table-CaFVLHxE.js +14 -0
- package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
- package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
- package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
- package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
- package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
- package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
- package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
- package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
- package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
- package/dist/vue-ui-world-DjMy_utm.js +19 -0
- package/dist/vue-ui-xy-DaozHMfg.js +31 -0
- package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
- package/dist/vue-ui-xy-rGHSI1am.js +24 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-DKO1l8oR.js +0 -116
- package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
- package/dist/BaseIcon-Cx9FD751.js +0 -484
- package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-vNi8YykO.js +0 -111
- package/dist/ColorPicker-hmC2bvwS.js +0 -257
- package/dist/DataTable-CjF_An2h.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-DqqGB33u.js +0 -187
- package/dist/Legend-CulFgjUY.js +0 -156
- package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
- package/dist/PackageVersion-D7H9nfK0.js +0 -12
- package/dist/PenAndPaper-CNiuGw6k.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-DSwamtmO.js +0 -143
- package/dist/SlicerPreview-k5YerMA9.js +0 -1730
- package/dist/SparkTooltip-D35KVv6N.js +0 -93
- package/dist/Title-BMCuINbv.js +0 -87
- package/dist/Tooltip-C4ZTwkLF.js +0 -312
- package/dist/UserOptions-CORYQiif.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-CBusMkua.js +0 -237
- package/dist/exposedLib-UNxZlnAS.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-Bb5rHcpO.js +0 -129
- package/dist/labelUtils-Ccn9kK7T.js +0 -19
- package/dist/lib-D4wK6ljP.js +0 -2146
- package/dist/package-DmQufM0G.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-BzIQHx-F.js +0 -90
- package/dist/render-common-BtfjXdkJ.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-D_6ZrPMD.js +0 -8090
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-DR_8JPol.js +0 -12
- package/dist/useObjectBindings-DvasYMGu.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-DdW2GSm0.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-Df7WV80w.js +0 -191
- package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
- package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
- package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
- package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
- package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
- package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
- package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
- package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
- package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
- package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
- package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
- package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
- package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
- package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
- package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
- package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
- package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
- package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
- package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
- package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
- package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
- package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
- package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
- package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
- package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
- package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
- package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
- package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
- package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
- package/dist/vue-ui-label-r3-QloJL.js +0 -1451
- package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
- package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
- package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
- package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
- package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
- package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
- package/dist/vue-ui-rating-C_iTttXB.js +0 -359
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
- package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
- package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
- package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
- package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
- package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
- package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
- package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
- package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
- package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
- package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
- package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
- package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
- package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
- package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
- package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
- package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
- package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
- package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
- package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
- package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
- package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
- package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
- package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
- package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,1352 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, C as n, D as r, Ft as i, Ht as a, Jt as o, X as ee, d as te, nn as s, nt as ne, r as re } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { t as ie } from "./vue-ui-xy-jemv5dsf.js";
|
|
4
|
-
import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
|
|
5
|
-
import { t as se } from "./useConfig-D_6ZrPMD.js";
|
|
6
|
-
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as l } from "./BaseIcon-Cx9FD751.js";
|
|
8
|
-
import { t as ce } from "./vue-ui-donut-nLDLZwig.js";
|
|
9
|
-
import { Fragment as u, computed as d, createBlock as le, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as ue, defineAsyncComponent as de, nextTick as fe, normalizeClass as g, normalizeStyle as _, onMounted as pe, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, useCssVars as me, vModelSelect as he, vModelText as ge, watch as _e, withCtx as ve, withDirectives as ye, withKeys as be, withModifiers as xe } from "vue";
|
|
10
|
-
//#region src/components/vue-ui-table.vue
|
|
11
|
-
var Se = /* @__PURE__ */ e({ default: () => dn }), Ce = ["innerHTML"], we = ["data-is-open"], Te = { class: "vue-ui-table-export-hub-options" }, Ee = { class: "vue-ui-table-export-hub-option-wrapper" }, De = { class: "label" }, Oe = ["innerHTML"], ke = { class: "vue-ui-table-export-hub-option-wrapper" }, Ae = { class: "label" }, je = ["innerHTML"], Me = { class: "vue-ui-table-dialog-field" }, Ne = {
|
|
12
|
-
class: "label vue-ui-table-dialog-input-label",
|
|
13
|
-
style: { width: "100%" }
|
|
14
|
-
}, Pe = { style: { width: "fit-content" } }, Fe = { class: "vue-ui-table" }, Ie = { key: 0 }, Le = { key: 0 }, Re = { key: 1 }, ze = {
|
|
15
|
-
key: 0,
|
|
16
|
-
style: {
|
|
17
|
-
display: "flex",
|
|
18
|
-
"align-items": "center",
|
|
19
|
-
"justify-content": "flex-end"
|
|
20
|
-
}
|
|
21
|
-
}, Be = ["innerHTML"], Ve = {
|
|
22
|
-
key: 0,
|
|
23
|
-
style: { "margin-left": "3px" }
|
|
24
|
-
}, He = { key: 0 }, Ue = { class: "th-filter" }, We = {
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "th-date"
|
|
27
|
-
}, Ge = { class: "date-wrapper--inputs" }, Ke = { class: "date-fieldset" }, qe = ["for"], Je = [
|
|
28
|
-
"id",
|
|
29
|
-
"onUpdate:modelValue",
|
|
30
|
-
"onInput"
|
|
31
|
-
], Ye = { class: "date-fieldset" }, Xe = ["for"], Ze = [
|
|
32
|
-
"id",
|
|
33
|
-
"onUpdate:modelValue",
|
|
34
|
-
"onInput"
|
|
35
|
-
], Qe = { class: "date-wrapper--button" }, $e = ["onClick"], et = ["innerHTML"], tt = ["innerHTML"], nt = ["innerHTML"], rt = ["onClick", "disabled"], it = [
|
|
36
|
-
"placeholder",
|
|
37
|
-
"onUpdate:modelValue",
|
|
38
|
-
"name"
|
|
39
|
-
], at = ["onClick"], ot = ["innerHTML"], st = ["innerHTML"], ct = ["innerHTML"], lt = ["onClick", "innerHTML"], ut = ["innerHTML"], dt = {
|
|
40
|
-
key: 5,
|
|
41
|
-
class: "th-range-filter"
|
|
42
|
-
}, ft = ["for"], pt = [
|
|
43
|
-
"id",
|
|
44
|
-
"max",
|
|
45
|
-
"min",
|
|
46
|
-
"onUpdate:modelValue"
|
|
47
|
-
], mt = [
|
|
48
|
-
"id",
|
|
49
|
-
"max",
|
|
50
|
-
"min",
|
|
51
|
-
"onUpdate:modelValue"
|
|
52
|
-
], ht = ["for"], gt = ["onClick", "disabled"], _t = ["id"], vt = ["onClick"], yt = ["onClick", "onKeyup"], bt = [
|
|
53
|
-
"innerHTML",
|
|
54
|
-
"onClick",
|
|
55
|
-
"onKeyup"
|
|
56
|
-
], xt = ["data-row"], St = ["data-row"], Ct = [
|
|
57
|
-
"data-row",
|
|
58
|
-
"onClick",
|
|
59
|
-
"onKeyup",
|
|
60
|
-
"id"
|
|
61
|
-
], wt = ["innerHTML"], Tt = { key: 1 }, Et = { key: 2 }, Dt = { key: 5 }, Ot = ["innerHTML"], kt = { key: 0 }, At = { style: { "margin-left": "12px" } }, jt = { class: "format-num" }, Mt = { style: { "margin-left": "12px" } }, Nt = {
|
|
62
|
-
key: 0,
|
|
63
|
-
class: "format-num"
|
|
64
|
-
}, Pt = {
|
|
65
|
-
key: 1,
|
|
66
|
-
class: "format-num"
|
|
67
|
-
}, Ft = { key: 2 }, It = { style: { "margin-left": "12px" } }, Lt = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "format-num"
|
|
70
|
-
}, Rt = {
|
|
71
|
-
key: 1,
|
|
72
|
-
class: "format-num"
|
|
73
|
-
}, zt = { key: 2 }, Bt = {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: "vue-ui-table-paginator format-num"
|
|
76
|
-
}, Vt = {
|
|
77
|
-
key: 2,
|
|
78
|
-
class: "vue-ui-table-size-warning"
|
|
79
|
-
}, Ht = ["innerHTML"], Ut = {
|
|
80
|
-
key: 4,
|
|
81
|
-
class: "vue-ui-table-pagination format-num"
|
|
82
|
-
}, Wt = ["innerHTML", "disabled"], Gt = ["disabled"], Kt = {
|
|
83
|
-
for: "pageScroller",
|
|
84
|
-
style: { "font-size": "14px" }
|
|
85
|
-
}, qt = ["max", "value"], Jt = { key: 1 }, Yt = ["disabled"], Xt = ["innerHTML", "disabled"], Zt = { class: "vue-ui-table-chart-modal-options" }, Qt = ["innerHTML"], $t = ["innerHTML"], en = ["innerHTML"], tn = { style: {
|
|
86
|
-
width: "100%",
|
|
87
|
-
height: "fit-content"
|
|
88
|
-
} }, nn = { class: "vue-ui-table-fieldset" }, rn = { class: "vue-ui-table-fieldset-wrapper" }, an = [
|
|
89
|
-
"name",
|
|
90
|
-
"id",
|
|
91
|
-
"checked",
|
|
92
|
-
"onInput"
|
|
93
|
-
], on = ["for"], sn = ["disabled"], cn = ["innerHTML"], ln = { style: {
|
|
94
|
-
width: "100%",
|
|
95
|
-
"margin-bottom": "12px"
|
|
96
|
-
} }, un = {
|
|
97
|
-
key: 2,
|
|
98
|
-
style: {
|
|
99
|
-
width: "100%",
|
|
100
|
-
"margin-bottom": "32px"
|
|
101
|
-
}
|
|
102
|
-
}, dn = /*#__PURE__*/ c({
|
|
103
|
-
__name: "vue-ui-table",
|
|
104
|
-
props: {
|
|
105
|
-
config: {
|
|
106
|
-
type: Object,
|
|
107
|
-
default() {
|
|
108
|
-
return {};
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
dataset: {
|
|
112
|
-
type: Object,
|
|
113
|
-
default() {
|
|
114
|
-
return {};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
emits: ["page-change"],
|
|
119
|
-
setup(e, { expose: c, emit: Se }) {
|
|
120
|
-
me((e) => ({
|
|
121
|
-
v6b779b9d: Ln.value,
|
|
122
|
-
v71f90aa0: Rn.value,
|
|
123
|
-
v82bf5584: Hn.value,
|
|
124
|
-
bc0e3a90: zn.value,
|
|
125
|
-
v4bc5be6a: Un.value,
|
|
126
|
-
v542dfbf0: Wn.value,
|
|
127
|
-
v5935dfae: Bn.value,
|
|
128
|
-
v23648322: Vn.value,
|
|
129
|
-
v98d33e98: Gn.value
|
|
130
|
-
}));
|
|
131
|
-
let dn = de(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), C = e, fn = Se, { vue_ui_table: pn } = se(), mn = ee();
|
|
132
|
-
y(null);
|
|
133
|
-
let hn = y(null), gn = y(null), w = y({
|
|
134
|
-
height: 316,
|
|
135
|
-
type: "bar",
|
|
136
|
-
width: 512
|
|
137
|
-
}), T = y({
|
|
138
|
-
ASC: 1,
|
|
139
|
-
BAR: "bar",
|
|
140
|
-
DATE: "date",
|
|
141
|
-
DESC: -1,
|
|
142
|
-
DONUT: "donut",
|
|
143
|
-
LINE: "line",
|
|
144
|
-
NUMERIC: "numeric",
|
|
145
|
-
PERCENTAGE: "percentage",
|
|
146
|
-
TEXT: "text"
|
|
147
|
-
}), _n = y(100), vn = y(100);
|
|
148
|
-
y(0), y(0), y(400), y(200);
|
|
149
|
-
let yn = y({
|
|
150
|
-
CELL: "smart-td-selected",
|
|
151
|
-
FIRST_TD: "smart-td-selected-first",
|
|
152
|
-
LAST_TD: "smart-td-selected-last",
|
|
153
|
-
ROW: "smart-td-selected-neighbor"
|
|
154
|
-
}), bn = y(void 0), xn = y(void 0), E = y({
|
|
155
|
-
col: void 0,
|
|
156
|
-
rows: []
|
|
157
|
-
}), D = y(0), O = y(20), Sn = y(!1), Cn = y(!1), k = y({}), A = y({}), wn = y({}), j = y({}), M = y({}), N = y({}), P = y({}), F = y({}), I = y({}), Tn = y(C.config.rowsPerPage ? C.config.rowsPerPage : 25), En = y([.../* @__PURE__ */ new Set([
|
|
158
|
-
10,
|
|
159
|
-
25,
|
|
160
|
-
50,
|
|
161
|
-
100,
|
|
162
|
-
250,
|
|
163
|
-
500,
|
|
164
|
-
C.config.rowsPerPage ? C.config.rowsPerPage : 25,
|
|
165
|
-
C.dataset.body.length
|
|
166
|
-
])].sort((e, t) => e - t)), Dn = y(void 0), L = y(void 0), On = y(void 0), R = y(!1), kn = y(0), An = y(""), jn = y(""), z = y(!1), B = y(JSON.parse(JSON.stringify(C.dataset.body)).map((e, t) => ({
|
|
167
|
-
...e,
|
|
168
|
-
absoluteIndex: t
|
|
169
|
-
}))), Mn = y(JSON.parse(JSON.stringify(C.dataset.body)).map((e, t) => ({
|
|
170
|
-
...e,
|
|
171
|
-
absoluteIndex: t
|
|
172
|
-
}))), V = y(JSON.parse(JSON.stringify(C.dataset.header)).map((e, t) => ({
|
|
173
|
-
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
174
|
-
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
175
|
-
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
176
|
-
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
177
|
-
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
178
|
-
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
179
|
-
name: e.name,
|
|
180
|
-
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
181
|
-
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
182
|
-
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
183
|
-
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
184
|
-
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
185
|
-
type: e.type,
|
|
186
|
-
index: t
|
|
187
|
-
}))), Nn = d(() => hn.value ? hn.value.getBoundingClientRect().height + 3 : 3), H = d(() => {
|
|
188
|
-
if (!Object.keys(C.config || {}).length) return pn;
|
|
189
|
-
let e = s({
|
|
190
|
-
defaultConfig: pn,
|
|
191
|
-
userConfig: C.config
|
|
192
|
-
});
|
|
193
|
-
return n(e);
|
|
194
|
-
}), U = d(() => H.value.style.exportMenu), W = d(() => H.value.style.title), G = d(() => H.value.style.th), K = d(() => H.value.style.inputs), Pn = d(() => H.value.style.dropdowns), Fn = d(() => H.value.style.closeButtons), q = d(() => H.value.style.rows), J = d(() => H.value.style.pagination), Y = d(() => H.value.style.chart), In = d(() => H.value.style);
|
|
195
|
-
ae({
|
|
196
|
-
config: () => H.value,
|
|
197
|
-
dataset: () => C.dataset,
|
|
198
|
-
component: "VueUiTable",
|
|
199
|
-
rules: [oe.noHint]
|
|
200
|
-
});
|
|
201
|
-
let X = d(() => H.value.useCursorPointer), Ln = d(() => G.value.buttons.cancel.inactive.backgroundColor), Rn = d(() => G.value.buttons.cancel.inactive.color), zn = d(() => G.value.buttons.cancel.active.backgroundColor), Bn = d(() => G.value.buttons.filter.active.backgroundColor), Vn = d(() => G.value.buttons.filter.active.color), Hn = d(() => i(zn.value, .33)), Un = d(() => o(zn.value, 33)), Wn = d(() => i(Bn.value, .33)), Gn = d(() => o(Bn, 33)), Kn = d(() => [...V.value].filter((e) => e.type === T.value.DATE)), qn = d(() => ["", ...Kn.value.map((e) => e.name)]), Jn = d(() => {
|
|
202
|
-
let e = Kn.value.find((e) => e.name === An.value);
|
|
203
|
-
return e ? e.index : null;
|
|
204
|
-
}), Z = d(() => {
|
|
205
|
-
let e = [];
|
|
206
|
-
if (B.value.length) for (let t = 0; t < B.value.length; t += Tn.value) e.push(B.value.slice(t, t + Tn.value));
|
|
207
|
-
return e;
|
|
208
|
-
}), Yn = d(() => Z.value[D.value]), Xn = d(() => Jn.value == null ? [] : Yn.value.map((e) => e.td[Jn.value])), Zn = d(() => Object.keys(M.value).map((e) => ({
|
|
209
|
-
index: e,
|
|
210
|
-
name: C.dataset.header[e].name,
|
|
211
|
-
options: M.value[e]
|
|
212
|
-
}))), Qn = d(() => H.value.useChart && E.value.rows.length > 1), $n = d(() => C.dataset.header.map((e) => e.type).includes(T.value.NUMERIC)), Q = d(() => ({
|
|
213
|
-
arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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>`,
|
|
214
|
-
bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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>`,
|
|
215
|
-
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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>`,
|
|
216
|
-
chevronDown: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M6 9l6 6l6 -6" /></svg>`,
|
|
217
|
-
chevronLeft: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * 1.6}" height="${O.value * 1.6}" 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="M15 6l-6 6l6 6" /></svg>`,
|
|
218
|
-
chevronRight: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * 1.6}" height="${O.value * 1.6}" 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="M9 6l6 6l-6 6" /></svg>`,
|
|
219
|
-
donut: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * .8}" height="${O.value * .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="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,
|
|
220
|
-
export: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,
|
|
221
|
-
fileDownload: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,
|
|
222
|
-
filter: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,
|
|
223
|
-
move: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M18 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,
|
|
224
|
-
sort09: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
|
|
225
|
-
sort90: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,
|
|
226
|
-
sortAZ: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
|
|
227
|
-
sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,
|
|
228
|
-
sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,
|
|
229
|
-
table: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,
|
|
230
|
-
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value * .8}" height="${O.value * .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>`,
|
|
231
|
-
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${O.value}" height="${O.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>`
|
|
232
|
-
})), er = d(() => B.value.map((e) => e.td)), tr = d(() => ({
|
|
233
|
-
sumPercentage: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
|
|
234
|
-
sumRegular: Number(E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
|
|
235
|
-
averagePercentage: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / E.value.rows.length * 100).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString(),
|
|
236
|
-
averageRegular: Number((E.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / E.value.rows.length).toFixed(C.dataset.header[E.value.col].decimals)).toLocaleString()
|
|
237
|
-
})), nr = y({
|
|
238
|
-
width: 1e3,
|
|
239
|
-
height: 500
|
|
240
|
-
});
|
|
241
|
-
function rr({ width: e, height: t }) {
|
|
242
|
-
nr.value = {
|
|
243
|
-
width: e,
|
|
244
|
-
height: t
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
let ir = d(() => {
|
|
248
|
-
if (!Qn.value) return [];
|
|
249
|
-
let e = nr.value.height, t = nr.value.width, n = t / E.value.rows.length, r = Math.max(...E.value.rows.map((e) => e.value)), a = Math.min(...E.value.rows.map((e) => e.value)), o = C.dataset.header[E.value.col].isPercentage && C.dataset.header[E.value.col].percentageTo, ee = w.value.type === T.value.DONUT && L.value && L.value.name, s = C.dataset.header[E.value.col].name + (o ? ` / ${C.dataset.header[N.value[E.value.col].referenceIndex].name}` : "") + (ee ? ` ${H.value.translations.by} ${L.value.name}` : ""), ne = C.dataset.header[E.value.col].prefix, ie = C.dataset.header[E.value.col].suffix, ae = [{
|
|
250
|
-
name: s,
|
|
251
|
-
series: E.value.rows.map((e) => e.value),
|
|
252
|
-
type: "line",
|
|
253
|
-
useProgression: !0,
|
|
254
|
-
smooth: Y.value.layout.line.smooth,
|
|
255
|
-
color: Y.value.layout.line.stroke,
|
|
256
|
-
useArea: Y.value.layout.line.useArea
|
|
257
|
-
}], oe = [{
|
|
258
|
-
name: s,
|
|
259
|
-
series: E.value.rows.map((e) => e.value),
|
|
260
|
-
type: "bar",
|
|
261
|
-
useProgression: !0,
|
|
262
|
-
color: Y.value.layout.bar.fill
|
|
263
|
-
}], se = Y.value.modal.backgroundColor, c = re(se), l = C.dataset.header[E.value.col].decimals, ce = {
|
|
264
|
-
useCssAnimation: !1,
|
|
265
|
-
chart: {
|
|
266
|
-
width: t,
|
|
267
|
-
height: e - 250,
|
|
268
|
-
backgroundColor: se,
|
|
269
|
-
color: c,
|
|
270
|
-
labels: {
|
|
271
|
-
fontSize: 18,
|
|
272
|
-
prefix: ne,
|
|
273
|
-
suffix: ie
|
|
274
|
-
},
|
|
275
|
-
grid: {
|
|
276
|
-
stroke: i(c, .5),
|
|
277
|
-
labels: {
|
|
278
|
-
color: c,
|
|
279
|
-
xAxisLabels: {
|
|
280
|
-
color: c,
|
|
281
|
-
show: Xn.value.length,
|
|
282
|
-
values: Xn.value,
|
|
283
|
-
datetimeFormatter: Y.value.layout.datetimeFormatter,
|
|
284
|
-
showOnlyAtModulo: Y.value.layout.timeLabels.showOnlyAtModulo,
|
|
285
|
-
modulo: Y.value.layout.timeLabels.modulo
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
highlighter: { color: c },
|
|
290
|
-
legend: {
|
|
291
|
-
color: c,
|
|
292
|
-
show: !1
|
|
293
|
-
},
|
|
294
|
-
title: {
|
|
295
|
-
text: s,
|
|
296
|
-
color: c,
|
|
297
|
-
textAlign: "center",
|
|
298
|
-
fontSize: 18
|
|
299
|
-
},
|
|
300
|
-
tooltip: {
|
|
301
|
-
showTimeLabel: Xn.value.length,
|
|
302
|
-
backgroundOpacity: 30,
|
|
303
|
-
color: c,
|
|
304
|
-
backgroundColor: se,
|
|
305
|
-
showPercentage: !1,
|
|
306
|
-
roundingValue: l
|
|
307
|
-
},
|
|
308
|
-
userOptions: { buttons: {
|
|
309
|
-
pdf: !1,
|
|
310
|
-
csv: !1,
|
|
311
|
-
table: !1,
|
|
312
|
-
annotator: !1
|
|
313
|
-
} },
|
|
314
|
-
zoom: {
|
|
315
|
-
show: Y.value.layout.zoom.show,
|
|
316
|
-
autoFit: Y.value.layout.zoom.autoFit,
|
|
317
|
-
focusOnDrag: !0,
|
|
318
|
-
minimap: { show: !0 }
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
line: {
|
|
322
|
-
labels: {
|
|
323
|
-
show: !0,
|
|
324
|
-
color: c,
|
|
325
|
-
rounding: l
|
|
326
|
-
},
|
|
327
|
-
dot: {
|
|
328
|
-
useSerieColor: !1,
|
|
329
|
-
fill: Y.value.layout.line.plot.fill,
|
|
330
|
-
strokeWidth: Y.value.layout.line.plot.strokeWidth
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
bar: {
|
|
334
|
-
useGradient: !1,
|
|
335
|
-
border: {
|
|
336
|
-
useSerieColor: !1,
|
|
337
|
-
stroke: Y.value.layout.bar.stroke,
|
|
338
|
-
strokeWidth: Y.value.layout.bar.strokeWidth
|
|
339
|
-
},
|
|
340
|
-
labels: {
|
|
341
|
-
show: !0,
|
|
342
|
-
color: c,
|
|
343
|
-
rounding: l
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}, u = a >= 0 ? 0 : Math.abs(a), d = r + u, le = C.dataset.header[E.value.col].isPercentage, f = E.value.rows.map((t, r) => ({
|
|
347
|
-
x: n * r + n / 2,
|
|
348
|
-
y: (1 - (t.value + u) / d) * e,
|
|
349
|
-
value: le ? t.value * 100 : t.value,
|
|
350
|
-
suffix: le ? "%" : C.dataset.header[E.value.col].suffix ? C.dataset.header[E.value.col].suffix : "",
|
|
351
|
-
prefix: C.dataset.header[E.value.col].prefix ? C.dataset.header[E.value.col].prefix : "",
|
|
352
|
-
index: t.index,
|
|
353
|
-
absoluteValue: le ? Math.abs(t.value) * 100 : Math.abs(t.value)
|
|
354
|
-
}));
|
|
355
|
-
return {
|
|
356
|
-
donutConfig: {
|
|
357
|
-
useCssAnimation: !1,
|
|
358
|
-
userOptions: {
|
|
359
|
-
position: "left",
|
|
360
|
-
buttons: {
|
|
361
|
-
pdf: !1,
|
|
362
|
-
csv: !1,
|
|
363
|
-
table: !1,
|
|
364
|
-
annotator: !1
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
style: { chart: {
|
|
368
|
-
backgroundColor: se,
|
|
369
|
-
color: c,
|
|
370
|
-
layout: {
|
|
371
|
-
curvedMarkers: !0,
|
|
372
|
-
donut: { strokeWidth: 64 },
|
|
373
|
-
labels: {
|
|
374
|
-
dataLabels: {
|
|
375
|
-
suffix: le ? "%" : "",
|
|
376
|
-
prefix: ne
|
|
377
|
-
},
|
|
378
|
-
value: { rounding: l },
|
|
379
|
-
percentage: {
|
|
380
|
-
color: c,
|
|
381
|
-
rounding: l
|
|
382
|
-
},
|
|
383
|
-
name: { color: c },
|
|
384
|
-
hollow: {
|
|
385
|
-
average: {
|
|
386
|
-
color: c,
|
|
387
|
-
text: H.value.translations.average,
|
|
388
|
-
value: { color: c }
|
|
389
|
-
},
|
|
390
|
-
total: {
|
|
391
|
-
color: c,
|
|
392
|
-
offsetY: -12,
|
|
393
|
-
text: H.value.translations.total,
|
|
394
|
-
value: {
|
|
395
|
-
color: c,
|
|
396
|
-
offsetY: -12
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
legend: {
|
|
403
|
-
backgroundColor: se,
|
|
404
|
-
color: c,
|
|
405
|
-
roundingValue: l,
|
|
406
|
-
roundingPercentage: l
|
|
407
|
-
},
|
|
408
|
-
padding: {
|
|
409
|
-
left: 12,
|
|
410
|
-
right: 12
|
|
411
|
-
},
|
|
412
|
-
title: {
|
|
413
|
-
text: s,
|
|
414
|
-
color: c,
|
|
415
|
-
fontSize: 18
|
|
416
|
-
},
|
|
417
|
-
tooltip: {
|
|
418
|
-
backgroundOpacity: 30,
|
|
419
|
-
color: c,
|
|
420
|
-
backgroundColor: se,
|
|
421
|
-
roundingValue: l,
|
|
422
|
-
roundingValue: l
|
|
423
|
-
}
|
|
424
|
-
} }
|
|
425
|
-
},
|
|
426
|
-
xyConfig: ce,
|
|
427
|
-
xyDatasetLine: ae,
|
|
428
|
-
xyDatasetBar: oe,
|
|
429
|
-
progression: f.length >= 2 && te(f)
|
|
430
|
-
};
|
|
431
|
-
});
|
|
432
|
-
function ar() {
|
|
433
|
-
let e = L.value.options.map((e, t) => ({
|
|
434
|
-
name: e,
|
|
435
|
-
color: a[t] || a[t % a.length],
|
|
436
|
-
values: [Yn.value.filter((t, n) => t.td[L.value.index] === e && E.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[E.value.col]).reduce((e, t) => Math.abs(e) + Math.abs(t), 0)],
|
|
437
|
-
absoluteValue: Yn.value.filter((t, n) => t.td[L.value.index] === e && E.value.rows.map((e) => e.index).includes(n)).map((e) => e.td[E.value.col]).reduce((e, t) => e + t, 0)
|
|
438
|
-
})).sort((e, t) => t.value - e.value);
|
|
439
|
-
bn.value = e, fe(() => {
|
|
440
|
-
w.value.type = T.value.DONUT, z.value = !1;
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
function or(e, t) {
|
|
444
|
-
return !A.value[e] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![T.value.DATE].includes(t.type);
|
|
445
|
-
}
|
|
446
|
-
function sr(e = "all") {
|
|
447
|
-
let t = C.dataset.header.map((e) => e.name), n = e === "all" ? B.value.map((e) => e.td) : Yn.value.map((e) => e.td), i = [t].concat(n), a = r(i);
|
|
448
|
-
ne({
|
|
449
|
-
csvContent: a,
|
|
450
|
-
title: jn.value
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
function cr() {
|
|
454
|
-
let e = document.getElementsByClassName("th-dropdown");
|
|
455
|
-
e.length && Array.from(e).forEach((e) => {
|
|
456
|
-
e.dataset.isOpen = !1;
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
function lr(e, t) {
|
|
460
|
-
let n;
|
|
461
|
-
clearTimeout(n), n = setTimeout(e, t);
|
|
462
|
-
}
|
|
463
|
-
function ur() {
|
|
464
|
-
let e = document.getElementsByClassName(`tr_${mn}`);
|
|
465
|
-
Array.from(e).forEach((e) => {
|
|
466
|
-
Array.from(e.getElementsByTagName("td")).forEach((e) => {
|
|
467
|
-
e.dataset.row === "even" ? (e.style.background = q.value.even.backgroundColor, e.style.color = q.value.even.color) : (e.style.background = q.value.odd.backgroundColor, e.style.color = q.value.odd.color);
|
|
468
|
-
});
|
|
469
|
-
}), Array.from(e).forEach((e) => e.dataset.selected = "false"), D.value > Z.value.length - 1 && (D.value = Z.value.length - 1), R.value = !1, bn.value = void 0, Dn.value = void 0, w.value.type = T.value.BAR, E.value = {
|
|
470
|
-
col: void 0,
|
|
471
|
-
rows: []
|
|
472
|
-
}, _n.value = 100, vn.value = 100;
|
|
473
|
-
}
|
|
474
|
-
function dr(e, t) {
|
|
475
|
-
B.value = e.filter((e) => e.td[t] >= P.value[t].min && e[t] <= P.value[t].max);
|
|
476
|
-
}
|
|
477
|
-
function fr(e, t) {
|
|
478
|
-
if (I.value[t] === T.value.ASC && (e = e.sort((e, n) => e[t] - n[t])), I.value[t] === T.value.DESC) e = e.sort((e, n) => n[t] - e[t]);
|
|
479
|
-
else return 0;
|
|
480
|
-
}
|
|
481
|
-
function pr() {
|
|
482
|
-
ur(), Object.keys(P.value).forEach((e) => {
|
|
483
|
-
dr(B.value, e);
|
|
484
|
-
}), Object.keys(I.value).forEach((e) => {
|
|
485
|
-
fr(B.value, e);
|
|
486
|
-
}), xn.value !== void 0 && fr(B.value, xn.value), C.dataset.header.forEach((e, t) => {
|
|
487
|
-
if (e.isPercentage) {
|
|
488
|
-
let e = N.value[t].referenceIndex, n = B.value.map((t) => t.td[e]).reduce((e, t) => e + t, 0);
|
|
489
|
-
B.value.forEach((r) => {
|
|
490
|
-
r.td[t] = r.td[e] / n;
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
}), D.value > Z.value.length - 1 && (D.value = Z.value.length - 1), [-1].includes(D.value) && (D.value = 0);
|
|
494
|
-
}
|
|
495
|
-
function mr() {
|
|
496
|
-
B.value = Mn.value.filter((e) => {
|
|
497
|
-
for (let t in F.value) if (!e.td[t].toUpperCase().includes(F.value[t].toUpperCase())) return !1;
|
|
498
|
-
for (let t in M.value) if (!M.value[t].some((n) => n === e.td[t])) return !1;
|
|
499
|
-
for (let t in k.value) {
|
|
500
|
-
let n = new Date(e.td[t]), r = new Date(k.value[t].from), i = new Date(k.value[t].to);
|
|
501
|
-
if (n < r || n > i) return !1;
|
|
502
|
-
}
|
|
503
|
-
return !0;
|
|
504
|
-
}), pr();
|
|
505
|
-
}
|
|
506
|
-
function hr(e) {
|
|
507
|
-
return er.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0) / B.value.length;
|
|
508
|
-
}
|
|
509
|
-
function gr(e) {
|
|
510
|
-
let t = C.dataset.body.map((t) => new Date(t.td[e])), n = new Date(Math.min(...t)), r = new Date(Math.max(...t)), i = n.getFullYear(), a = r.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), ee = String(r.getMonth() + 1).padStart(2, "0"), te = String(n.getDate()).padStart(2, "0"), s = String(r.getDate()).padStart(2, "0");
|
|
511
|
-
return {
|
|
512
|
-
from: `${i}-${o}-${te}`,
|
|
513
|
-
to: `${a}-${ee}-${s}`
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
function $(e) {
|
|
517
|
-
return [...new Set(C.dataset.body.map((t) => t.td[e]))];
|
|
518
|
-
}
|
|
519
|
-
function _r(e) {
|
|
520
|
-
return er.value.map((t) => t[e]).map((e) => isNaN(Number(e)) ? 0 : e).reduce((e, t) => e + t, 0);
|
|
521
|
-
}
|
|
522
|
-
function vr(e) {
|
|
523
|
-
return e.includes(NaN);
|
|
524
|
-
}
|
|
525
|
-
function yr(e, t) {
|
|
526
|
-
return !M.value[t] || M.value[t].includes(e);
|
|
527
|
-
}
|
|
528
|
-
function br(e) {
|
|
529
|
-
return !isNaN(Number(String(e).replaceAll("%", "")));
|
|
530
|
-
}
|
|
531
|
-
function xr(e, t) {
|
|
532
|
-
let n = t.isSort, r = t.isSearch, i = t.isMultiselect && M.value[e], a = t.rangeFilter, o = (e) => {
|
|
533
|
-
if (a && P.value[e]) return Math.round(P.value[e].min) === j.value[e].min && Math.round(P.value[e].max) === j.value[e].max;
|
|
534
|
-
};
|
|
535
|
-
if (n && r && i && a) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && M.value[e].length === $(e).length && o(e);
|
|
536
|
-
if (n && r && i) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && M.value[e].length === $(e).length;
|
|
537
|
-
if (n && r && a) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]) && o(e);
|
|
538
|
-
if (n && r) return ["", void 0].includes(F.value[e]) && [void 0].includes(I.value[e]);
|
|
539
|
-
if (n && i && a) return [void 0].includes(I.value[e]) && M.value[e].length === $(e).length && o(e);
|
|
540
|
-
if (n && i) return [void 0].includes(I.value[e]) && M.value[e].length === $(e).length;
|
|
541
|
-
if (r && i && a) return ["", void 0].includes(F.value[e]) && M.value[e].length === $(e).length && o(e);
|
|
542
|
-
if (r && i) return ["", void 0].includes(F.value[e]) && M.value[e].length === $(e).length;
|
|
543
|
-
if (r && a) return ["", void 0].includes(F.value[e]) && o(e);
|
|
544
|
-
if (r) return ["", void 0].includes(F.value[e]);
|
|
545
|
-
if (n && a) return [void 0].includes(I.value[e]) && o(e);
|
|
546
|
-
if (n) return [void 0].includes(I.value[e]);
|
|
547
|
-
if (i && a) return M.value[e].length === $(e).length && o(e);
|
|
548
|
-
if (i) return M.value[e].length === $(e).length;
|
|
549
|
-
}
|
|
550
|
-
function Sr() {
|
|
551
|
-
return {
|
|
552
|
-
totalPages: Z.value.length,
|
|
553
|
-
itemsPerPage: Tn.value,
|
|
554
|
-
currentPage: D.value,
|
|
555
|
-
currentPageData: Yn.value.map((e) => e.td)
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
c({ getCurrentPageData: Sr });
|
|
559
|
-
function Cr() {
|
|
560
|
-
fn("page-change", Sr());
|
|
561
|
-
}
|
|
562
|
-
let wr = y(null);
|
|
563
|
-
function Tr(e) {
|
|
564
|
-
if (ur(), e === "next" && D.value < Z.value.length) {
|
|
565
|
-
if (D.value + 1 > Z.value.length - 1) return;
|
|
566
|
-
D.value += 1;
|
|
567
|
-
} else if (e === "previous" && D.value >= 1) --D.value;
|
|
568
|
-
else {
|
|
569
|
-
if (e - 1 < 0 || e > Z.value.length || e === "previous") return;
|
|
570
|
-
D.value = e - 1;
|
|
571
|
-
}
|
|
572
|
-
Cr(), wr.value && wr.value.scrollTo({
|
|
573
|
-
top: 0,
|
|
574
|
-
left: 0,
|
|
575
|
-
behavior: "smooth"
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
function Er(e) {
|
|
579
|
-
e.preventDefault();
|
|
580
|
-
let t = e.keyCode;
|
|
581
|
-
if (![
|
|
582
|
-
38,
|
|
583
|
-
40,
|
|
584
|
-
37,
|
|
585
|
-
39
|
|
586
|
-
].includes(t)) return;
|
|
587
|
-
let n = e.target.id.match(/cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/), r = parseInt(n[1]), i = parseInt(n[2]), a = document.getElementById(`cell_${r}_${i + 1}_${mn}`), o = document.getElementById(`cell_${r}_${i - 1}_${mn}`), ee = document.getElementById(`cell_${r + 1}_${i}_${mn}`), te = document.getElementById(`cell_${r - 1}_${i}_${mn}`), s;
|
|
588
|
-
switch (!0) {
|
|
589
|
-
case t === 39:
|
|
590
|
-
s = a;
|
|
591
|
-
break;
|
|
592
|
-
case t === 37:
|
|
593
|
-
s = o;
|
|
594
|
-
break;
|
|
595
|
-
case t === 38:
|
|
596
|
-
s = te;
|
|
597
|
-
break;
|
|
598
|
-
case t === 40:
|
|
599
|
-
s = ee;
|
|
600
|
-
break;
|
|
601
|
-
default: return;
|
|
602
|
-
}
|
|
603
|
-
s && (s.focus(), s.scrollIntoView({
|
|
604
|
-
behavior: "smooth",
|
|
605
|
-
block: "center"
|
|
606
|
-
}));
|
|
607
|
-
}
|
|
608
|
-
function Dr(e) {
|
|
609
|
-
let t = 0;
|
|
610
|
-
for (let n = 0; n < e.length; n += 1) t += e.charCodeAt(n);
|
|
611
|
-
return t;
|
|
612
|
-
}
|
|
613
|
-
async function Or() {
|
|
614
|
-
return new Promise((e) => {
|
|
615
|
-
let t = [];
|
|
616
|
-
V.value.forEach((e, n) => {
|
|
617
|
-
if (e.isSearch && Object.assign(F.value, { [n]: "" }), e.isMultiselect && Object.assign(M.value, { [n]: $(n) }), e.type === T.value.DATE && (Object.assign(k.value, { [n]: gr(n) }), Object.assign(wn.value, { [n]: !1 })), (e.isPercentage || e.percentageTo) && Object.assign(N.value, { [n]: {
|
|
618
|
-
reference: e.percentageTo,
|
|
619
|
-
referenceIndex: C.dataset.header.map((e) => e.name).indexOf(e.percentageTo)
|
|
620
|
-
} }), e.rangeFilter && (Object.assign(P.value, { [n]: {
|
|
621
|
-
min: Math.round(Math.min(...C.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
622
|
-
max: Math.round(Math.max(...C.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
623
|
-
} }), Object.assign(j.value, { [n]: {
|
|
624
|
-
min: Math.round(Math.min(...C.dataset.body.map((e) => e.td).map((e) => e[n]))),
|
|
625
|
-
max: Math.round(Math.max(...C.dataset.body.map((e) => e.td).map((e) => e[n])))
|
|
626
|
-
} })), e.isPercentage) {
|
|
627
|
-
let r = C.dataset.header.map((e) => e.name).indexOf(e.percentageTo), i = C.dataset.body.map((e) => e.td[r]).reduce((e, t) => e + t, 0);
|
|
628
|
-
t.push([
|
|
629
|
-
n,
|
|
630
|
-
r,
|
|
631
|
-
i
|
|
632
|
-
]);
|
|
633
|
-
}
|
|
634
|
-
e.type === T.value.NUMERIC && !e.isPercentage && Object.assign(A.value, { [n]: vr(C.dataset.body.map((e) => Number(e.td[n]))) });
|
|
635
|
-
}), B.value.forEach((e, n) => {
|
|
636
|
-
t.map((t) => {
|
|
637
|
-
let [n, r, i] = t;
|
|
638
|
-
e.td[n] = e.td[r] / i;
|
|
639
|
-
}), e.td.forEach((t, r) => {
|
|
640
|
-
C.dataset.header[r].type === T.value.TEXT && C.dataset.header[r].isSearch && (e[r] = Dr(t)), C.dataset.header[r].type === T.value.DATE && (e[r] = new Date(t).getTime()), C.dataset.header[r].type === T.value.NUMERIC && (e[r] = isNaN(Number(t)) ? r : t), Mn.value[n][r] = e[r];
|
|
641
|
-
});
|
|
642
|
-
}), e(!0);
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
function kr(e, t) {
|
|
646
|
-
return new Promise((n, r) => {
|
|
647
|
-
e().then((e) => {
|
|
648
|
-
try {
|
|
649
|
-
n(t(e));
|
|
650
|
-
} catch (e) {
|
|
651
|
-
r(e);
|
|
652
|
-
}
|
|
653
|
-
}).catch((e) => {
|
|
654
|
-
r(e);
|
|
655
|
-
});
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
async function Ar(e) {
|
|
659
|
-
k.value[e] = {
|
|
660
|
-
from: gr(e).from,
|
|
661
|
-
to: gr(e).to
|
|
662
|
-
}, wn.value[e] = !1, await fe(), mr();
|
|
663
|
-
}
|
|
664
|
-
function jr(e, t, n) {
|
|
665
|
-
let r = n.currentTarget;
|
|
666
|
-
clearTimeout(gn.value), r.classList.add("clicked"), gn.value = setTimeout(() => {
|
|
667
|
-
r.classList.remove("clicked");
|
|
668
|
-
}, 200), xn.value = void 0, t.rangeFilter && (P.value[e].min = j.value[e].min, P.value[e].max = j.value[e].max), t.isMultiselect ? (M.value[e] = $(e), t.type === T.value.TEXT && (I.value[e] = void 0), t.isSearch && (F.value[e] = "")) : t.type === T.value.NUMERIC ? I.value[e] = void 0 : t.type === T.value.TEXT ? (I.value[e] = void 0, F.value[e] = "") : t.type === T.value.DATE && (I.value[e] = void 0), mr();
|
|
669
|
-
}
|
|
670
|
-
function Mr({ td: e, rowIndex: t, colIndex: n, headerType: r, event: i }) {
|
|
671
|
-
if (r !== T.value.NUMERIC || isNaN(Number(e))) {
|
|
672
|
-
ur();
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
E.value.col !== n && ur();
|
|
676
|
-
let a = i.currentTarget.parentNode;
|
|
677
|
-
E.value.col = n, E.value.rows.map((e) => e.index).includes(t) ? (a.dataset.selected = "false", E.value.rows = E.value.rows.filter((e) => e.index !== t), i.currentTarget.classList.remove(yn.value.CELL), Array.from(a.children).forEach((e, t) => {
|
|
678
|
-
e.dataset.row === "even" ? (e.style.background = q.value.even.backgroundColor, e.style.color = q.value.even.olor) : (e.style.background = q.value.odd.backgroundColor, e.style.color = q.value.odd.color);
|
|
679
|
-
}), i.currentTarget.dataset.row === "even" ? (i.currentTarget.style.background = q.value.even.backgroundColor, i.currentTarget.style.color = q.value.even.color) : (i.currentTarget.style.background = q.value.odd.backgroundColor, i.currentTarget.style.color = q.value.odd.color)) : (a.dataset.selected = "true", E.value.rows.push({
|
|
680
|
-
index: t,
|
|
681
|
-
value: e
|
|
682
|
-
}), Array.from(a.children).forEach((e, t) => {
|
|
683
|
-
e.dataset.row === "even" ? (e.style.background = q.value.even.selectedNeighbors.backgroundColor, e.style.color = q.value.even.selectedNeighbors.color) : (e.style.background = q.value.odd.selectedNeighbors.backgroundColor, e.style.color = q.value.odd.selectedNeighbors.color);
|
|
684
|
-
}), i.currentTarget.dataset.row === "odd" ? (i.currentTarget.style.background = q.value.odd.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.odd.selectedCell.color) : (i.currentTarget.style.background = q.value.even.selectedCell.backgroundColor, i.currentTarget.style.color = q.value.even.selectedCell.color)), E.value.rows = E.value.rows.sort((e, t) => e.index - t.index), w.value.type === T.value.DONUT && E.value.rows.length > 0 && ar();
|
|
685
|
-
}
|
|
686
|
-
function Nr(e) {
|
|
687
|
-
E.value.col === e ? (Dn.value = void 0, ur()) : (Yn.value.forEach((t, n) => {
|
|
688
|
-
Mr({
|
|
689
|
-
td: t.td[e],
|
|
690
|
-
rowIndex: n,
|
|
691
|
-
colIndex: e,
|
|
692
|
-
headerType: T.value.NUMERIC,
|
|
693
|
-
event: { currentTarget: document.getElementById(`cell_${n}_${e}_${mn}`) }
|
|
694
|
-
});
|
|
695
|
-
}), Dn.value = e);
|
|
696
|
-
}
|
|
697
|
-
async function Pr(e, t) {
|
|
698
|
-
M.value[t].includes(e) ? M.value[t] = M.value[t].filter((t) => t !== e) : M.value[t].push(e), await fe(), mr();
|
|
699
|
-
}
|
|
700
|
-
function Fr(e) {
|
|
701
|
-
wn.value[e] = gr(e).from !== k.value[e].from || gr(e).to !== k.value[e].to;
|
|
702
|
-
}
|
|
703
|
-
function Ir(e, t) {
|
|
704
|
-
xn.value = e;
|
|
705
|
-
let n = t.currentTarget;
|
|
706
|
-
clearTimeout(gn.value), n.classList.add("clicked"), gn.value = setTimeout(() => {
|
|
707
|
-
n.classList.remove("clicked");
|
|
708
|
-
}, 200), I.value[e] === 1 ? I.value[e] = T.value.DESC : I.value[e] = T.value.ASC, pr();
|
|
709
|
-
}
|
|
710
|
-
function Lr(e, t, n) {
|
|
711
|
-
let r = n.currentTarget;
|
|
712
|
-
clearTimeout(gn.value), r.classList.add("clicked"), gn.value = setTimeout(() => {
|
|
713
|
-
r.classList.remove("clicked");
|
|
714
|
-
}, 200);
|
|
715
|
-
let i = document.getElementById(`th_dropdown_${e}`);
|
|
716
|
-
i.dataset.isOpen === "false" ? i.dataset.isOpen = "true" : i.dataset.isOpen = "false";
|
|
717
|
-
}
|
|
718
|
-
function Rr(e) {
|
|
719
|
-
ur(), !e || !e.target.value ? D.value = 0 : D.value = Number(e.target.value), Cr();
|
|
720
|
-
}
|
|
721
|
-
let zr = y(null);
|
|
722
|
-
pe(() => {
|
|
723
|
-
if (C.dataset.header.length === 0) throw Error("vue-ui-table error: missing header data.\nProvide an array of objects of type:\n{\n name: string;\n type: string; ('text' | 'numeric' | 'date')\n average: boolean;\n decimals: number | undefined;\n sum: boolean;\n isSort:boolean;\n isSearch: boolean;\n isMultiselect: boolean;\n isPercentage: boolean;\n percentageTo: string; (or '')\n}");
|
|
724
|
-
if (C.dataset.body.length === 0) throw Error("vue-ui-table error: missing body data");
|
|
725
|
-
Cn.value = !0, kr(Or, async () => {
|
|
726
|
-
await fe(), Cn.value = !1;
|
|
727
|
-
}), document.addEventListener("keydown", (e) => {
|
|
728
|
-
let t = document.activeElement;
|
|
729
|
-
(t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
|
|
730
|
-
}), jn.value = U.value.filename, An.value = Kn.value[0]?.name ?? "";
|
|
731
|
-
}), _e(() => C.dataset, (e) => {
|
|
732
|
-
Cn.value = !0, B.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
733
|
-
...e,
|
|
734
|
-
absoluteIndex: t
|
|
735
|
-
})), Mn.value = JSON.parse(JSON.stringify(e.body)).map((e, t) => ({
|
|
736
|
-
...e,
|
|
737
|
-
absoluteIndex: t
|
|
738
|
-
})), V.value = JSON.parse(JSON.stringify(e.header)).map((e, t) => ({
|
|
739
|
-
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
740
|
-
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
741
|
-
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
742
|
-
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
743
|
-
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
744
|
-
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
745
|
-
name: e.name,
|
|
746
|
-
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
747
|
-
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
748
|
-
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
749
|
-
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
750
|
-
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
751
|
-
type: e.type,
|
|
752
|
-
index: t
|
|
753
|
-
})), E.value = {
|
|
754
|
-
col: void 0,
|
|
755
|
-
rows: []
|
|
756
|
-
}, Dn.value = void 0, Tn.value = C.config.rowsPerPage ? C.config.rowsPerPage : 25, N.value = {}, k.value = {}, wn.value = {}, A.value = {}, j.value = {}, P.value = {}, M.value = {}, F.value = {}, I.value = {}, R.value = !1, bn.value = void 0, L.value = void 0, On.value = void 0, z.value = !1, E.value.col = void 0, E.value.rows = [], kr(Or, async () => {
|
|
757
|
-
Rr(), await fe(), Cn.value = !1;
|
|
758
|
-
});
|
|
759
|
-
}, {
|
|
760
|
-
immediate: !0,
|
|
761
|
-
deep: !0
|
|
762
|
-
});
|
|
763
|
-
let Br = y(null);
|
|
764
|
-
return _e(Sn, (e) => {
|
|
765
|
-
e && Br.value && Br.value.focus();
|
|
766
|
-
}), _e(R, (e) => {
|
|
767
|
-
e ? zr.value && zr.value.open() : zr.value && zr.value.close();
|
|
768
|
-
}), (n, r) => (v(), p("div", {
|
|
769
|
-
class: "vue-data-ui-component vue-ui-table-main",
|
|
770
|
-
style: _(`font-family: ${H.value.fontFamily}`)
|
|
771
|
-
}, [
|
|
772
|
-
U.value.show ? (v(), p("div", {
|
|
773
|
-
key: 0,
|
|
774
|
-
class: "vue-ui-table-export-hub",
|
|
775
|
-
style: _({ top: Nn.value + "px" })
|
|
776
|
-
}, [m("button", {
|
|
777
|
-
onClick: r[0] ||= (e) => Sn.value = !Sn.value,
|
|
778
|
-
innerHTML: Q.value.export,
|
|
779
|
-
style: _(`background:${U.value.backgroundColor};color:${U.value.color};cursor:${X.value ? "pointer" : "default"}`)
|
|
780
|
-
}, null, 12, Ce), m("div", {
|
|
781
|
-
class: "vue-ui-table-export-hub-dropdown",
|
|
782
|
-
"data-is-open": Sn.value || "false",
|
|
783
|
-
style: _(`background:${U.value.backgroundColor};color:${U.value.color}`)
|
|
784
|
-
}, [
|
|
785
|
-
r[24] ||= m("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1),
|
|
786
|
-
m("button", {
|
|
787
|
-
class: "close-dropdown",
|
|
788
|
-
onClick: r[1] ||= (e) => Sn.value = !1,
|
|
789
|
-
style: _(`background:${Fn.value.backgroundColor};color:${Fn.value.color};border-radius:${Fn.value.borderRadius}`)
|
|
790
|
-
}, " ✖ ", 4),
|
|
791
|
-
m("div", Te, [
|
|
792
|
-
m("div", Ee, [m("div", De, x(H.value.translations.exportAllLabel) + " (" + x(B.value.length) + ") ", 1), m("button", {
|
|
793
|
-
id: "exportAll",
|
|
794
|
-
onClick: r[2] ||= (e) => sr("all"),
|
|
795
|
-
style: _(`background:${U.value.buttons.backgroundColor};color:${U.value.buttons.color};cursor:${X.value ? "pointer" : "default"}`)
|
|
796
|
-
}, [m("div", { innerHTML: Q.value.fileDownload }, null, 8, Oe), m("span", null, x(H.value.translations.exportAllButton), 1)], 4)]),
|
|
797
|
-
m("div", ke, [m("div", Ae, x(H.value.translations.exportPageLabel), 1), m("button", {
|
|
798
|
-
id: "exportPage",
|
|
799
|
-
onClick: r[3] ||= (e) => sr("page"),
|
|
800
|
-
style: _(`background:${U.value.buttons.backgroundColor};color:${U.value.buttons.color};cursor:${X.value ? "pointer" : "default"}`)
|
|
801
|
-
}, [m("div", { innerHTML: Q.value.fileDownload }, null, 8, je), m("span", null, x(H.value.translations.exportPageButton), 1)], 4)]),
|
|
802
|
-
m("div", Me, [m("label", Ne, [m("span", Pe, x(H.value.translations.filename), 1), ye(m("input", {
|
|
803
|
-
name: "filename",
|
|
804
|
-
ref_key: "filenameInputRef",
|
|
805
|
-
ref: Br,
|
|
806
|
-
onKeydown: r[4] ||= be(xe(() => {}, ["stop"]), ["space"]),
|
|
807
|
-
pattern: ".*",
|
|
808
|
-
class: "vue-ui-table-dialog-input",
|
|
809
|
-
type: "text",
|
|
810
|
-
"onUpdate:modelValue": r[5] ||= (e) => jn.value = e
|
|
811
|
-
}, null, 544), [[ge, jn.value]])]), jn.value ? (v(), p("button", {
|
|
812
|
-
key: 0,
|
|
813
|
-
class: "vue-ui-table-dialog-field-button",
|
|
814
|
-
onClick: r[6] ||= (e) => jn.value = "",
|
|
815
|
-
style: _({ cursor: X.value ? "pointer" : "default" })
|
|
816
|
-
}, [ue(l, {
|
|
817
|
-
name: "close",
|
|
818
|
-
stroke: U.value.color,
|
|
819
|
-
size: 18
|
|
820
|
-
}, null, 8, ["stroke"])], 4)) : f("", !0)])
|
|
821
|
-
])
|
|
822
|
-
], 12, we)], 4)) : f("", !0),
|
|
823
|
-
m("div", {
|
|
824
|
-
class: "vue-ui-table__wrapper",
|
|
825
|
-
style: _(`max-height:${H.value.maxHeight}px`),
|
|
826
|
-
ref_key: "tableWrapper",
|
|
827
|
-
ref: wr
|
|
828
|
-
}, [m("table", Fe, [
|
|
829
|
-
W.value.text ? (v(), p("caption", {
|
|
830
|
-
key: 0,
|
|
831
|
-
class: "vue-ui-table__caption",
|
|
832
|
-
ref_key: "tableCaption",
|
|
833
|
-
ref: hn,
|
|
834
|
-
style: _({
|
|
835
|
-
textAlign: W.value.textAlign,
|
|
836
|
-
paddingLeft: W.value.paddingLeft + "px",
|
|
837
|
-
paddingRight: W.value.paddingRight + "px",
|
|
838
|
-
backgroundColor: W.value.backgroundColor,
|
|
839
|
-
boxShadow: `${W.value.backgroundColor} -1px 0px 0px 0px`
|
|
840
|
-
})
|
|
841
|
-
}, [m("span", { style: _({
|
|
842
|
-
fontSize: W.value.fontSize + "px",
|
|
843
|
-
fontWeight: W.value.bold ? "bold" : "normal",
|
|
844
|
-
color: W.value.color
|
|
845
|
-
}) }, x(W.value.text), 5), W.value.subtitle.text ? (v(), p(u, { key: 0 }, [r[25] ||= m("br", null, null, -1), m("span", { style: _({
|
|
846
|
-
fontSize: W.value.subtitle.fontSize,
|
|
847
|
-
fontWeight: W.value.subtitle.bold ? "bold" : "normal",
|
|
848
|
-
color: W.value.subtitle.color
|
|
849
|
-
}) }, x(W.value.subtitle.text), 5)], 64)) : f("", !0)], 4)) : f("", !0),
|
|
850
|
-
m("thead", {
|
|
851
|
-
id: "tableHead",
|
|
852
|
-
class: "vue-ui-table__head",
|
|
853
|
-
style: _({
|
|
854
|
-
background: G.value.backgroundColor,
|
|
855
|
-
boxShadow: `-1px 0 0 ${G.value.backgroundColor}`,
|
|
856
|
-
top: Nn.value - 3 + "px"
|
|
857
|
-
})
|
|
858
|
-
}, [
|
|
859
|
-
m("tr", null, [r[26] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
|
|
860
|
-
key: `thead_${t}`,
|
|
861
|
-
style: _(`overflow: visible;background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`),
|
|
862
|
-
class: g({ "th-has-nan": A.value[t] })
|
|
863
|
-
}, [$n.value && ([T.value.TEXT, T.value.DATE].includes(e.type) || e.isPercentage) ? (v(), p("span", Ie, [h(x(e.name) + " ", 1), e.isPercentage ? (v(), p("span", Le, " / " + x(e.percentageTo), 1)) : f("", !0)])) : (v(), p("span", Re, x(e.name), 1))], 6))), 128))]),
|
|
864
|
-
$n.value ? (v(), p(u, { key: 0 }, [
|
|
865
|
-
m("tr", null, [r[27] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, n) => (v(), p("th", {
|
|
866
|
-
key: `thead_${n}`,
|
|
867
|
-
class: g({
|
|
868
|
-
"th-numeric": !0,
|
|
869
|
-
"th-has-nan": A.value[n]
|
|
870
|
-
}),
|
|
871
|
-
style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
|
|
872
|
-
}, [e.sum && !A.value[n] ? (v(), p("span", ze, [
|
|
873
|
-
m("span", {
|
|
874
|
-
innerHTML: Q.value.sum,
|
|
875
|
-
style: {
|
|
876
|
-
"margin-bottom": "-4px",
|
|
877
|
-
"margin-right": "3px"
|
|
878
|
-
}
|
|
879
|
-
}, null, 8, Be),
|
|
880
|
-
h(" " + x(S(t)({
|
|
881
|
-
p: e.prefix,
|
|
882
|
-
v: Number(_r(n)),
|
|
883
|
-
s: e.suffix,
|
|
884
|
-
r: e.decimals
|
|
885
|
-
})) + " ", 1),
|
|
886
|
-
N.value[n] && e.percentageTo && !e.isPercentage ? (v(), p("span", Ve, " (" + x(isNaN(_r(n) / _r(N.value[n].referenceIndex)) ? "-" : S(t)({
|
|
887
|
-
v: _r(n) / _r(N.value[n].referenceIndex) * 100,
|
|
888
|
-
s: "%",
|
|
889
|
-
r: e.decimals
|
|
890
|
-
})) + ") ", 1)) : f("", !0)
|
|
891
|
-
])) : f("", !0)], 6))), 128))]),
|
|
892
|
-
m("tr", null, [r[28] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, n) => (v(), p("th", {
|
|
893
|
-
key: `thead_${n}`,
|
|
894
|
-
class: g({
|
|
895
|
-
"th-numeric": !0,
|
|
896
|
-
"th-has-nan": A.value[n]
|
|
897
|
-
}),
|
|
898
|
-
style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
|
|
899
|
-
}, [e.average && !A.value[n] ? (v(), p("span", He, " ~ " + x(isNaN(hr(n)) ? "" : S(t)({
|
|
900
|
-
p: e.prefix,
|
|
901
|
-
v: Number(hr(n)),
|
|
902
|
-
s: e.suffix,
|
|
903
|
-
r: e.decimals
|
|
904
|
-
})), 1)) : f("", !0)], 6))), 128))]),
|
|
905
|
-
m("tr", null, [r[31] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
|
|
906
|
-
key: `thead_${t}`,
|
|
907
|
-
class: g({ "th-has-nan": A.value[t] }),
|
|
908
|
-
style: _(`background:${G.value.backgroundColor};color:${G.value.color};outline:${G.value.outline}`)
|
|
909
|
-
}, [m("div", Ue, [
|
|
910
|
-
e.type === T.value.DATE && k.value[t] ? (v(), p("div", We, [m("div", Ge, [m("div", Ke, [m("label", { for: `from_${t}` }, x(H.value.translations.from), 9, qe), ye(m("input", {
|
|
911
|
-
id: `from_${t}`,
|
|
912
|
-
type: "date",
|
|
913
|
-
"onUpdate:modelValue": (e) => k.value[t].from = e,
|
|
914
|
-
onInput: (e) => {
|
|
915
|
-
mr(), Fr(t);
|
|
916
|
-
},
|
|
917
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
918
|
-
}, null, 44, Je), [[ge, k.value[t].from]])]), m("div", Ye, [m("label", { for: `to_${t}` }, x(H.value.translations.to), 9, Xe), ye(m("input", {
|
|
919
|
-
id: `to_${t}`,
|
|
920
|
-
type: "date",
|
|
921
|
-
"onUpdate:modelValue": (e) => k.value[t].to = e,
|
|
922
|
-
onInput: (e) => {
|
|
923
|
-
mr(), Fr(t);
|
|
924
|
-
},
|
|
925
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
926
|
-
}, null, 44, Ze), [[ge, k.value[t].to]])])]), m("div", Qe, [e.isSort ? (v(), p("button", {
|
|
927
|
-
key: 0,
|
|
928
|
-
onClick: (e) => Ir(t, e),
|
|
929
|
-
class: g({ "th-button-active": [T.value.DESC, T.value.ASC].includes(I.value[t]) }),
|
|
930
|
-
style: _(`cursor:${X.value ? "pointer" : "default"}; background:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.color}`)
|
|
931
|
-
}, [I.value[t] === T.value.ASC ? (v(), p("span", {
|
|
932
|
-
key: 0,
|
|
933
|
-
innerHTML: [T.value.DATE].includes(e.type) ? Q.value.sort09 : Q.value.sortAZ
|
|
934
|
-
}, null, 8, et)) : I.value[t] === T.value.DESC ? (v(), p("span", {
|
|
935
|
-
key: 1,
|
|
936
|
-
innerHTML: [T.value.DATE].includes(e.type) ? Q.value.sort90 : Q.value.sortZA
|
|
937
|
-
}, null, 8, tt)) : (v(), p("span", {
|
|
938
|
-
key: 2,
|
|
939
|
-
innerHTML: Q.value.arrowSort
|
|
940
|
-
}, null, 8, nt))], 14, $e)) : f("", !0), m("button", {
|
|
941
|
-
onClick: (n) => {
|
|
942
|
-
Ar(t), jr(t, e, n);
|
|
943
|
-
},
|
|
944
|
-
disabled: !wn.value[t] && xr(t, e),
|
|
945
|
-
class: "th-reset",
|
|
946
|
-
style: _({ cursor: X.value ? "pointer" : "default" })
|
|
947
|
-
}, " ✖ ", 12, rt)])])) : f("", !0),
|
|
948
|
-
e.isSearch ? ye((v(), p("input", {
|
|
949
|
-
key: 1,
|
|
950
|
-
placeholder: H.value.translations.inputPlaceholder,
|
|
951
|
-
"onUpdate:modelValue": (e) => F.value[t] = e,
|
|
952
|
-
onInput: r[7] ||= (e) => lr(mr, 400),
|
|
953
|
-
name: `search_${t}`,
|
|
954
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
955
|
-
}, null, 44, it)), [[ge, F.value[t]]]) : f("", !0),
|
|
956
|
-
!A.value[t] && e.isSort && e.type !== T.value.DATE ? (v(), p("button", {
|
|
957
|
-
key: 2,
|
|
958
|
-
onClick: (e) => Ir(t, e),
|
|
959
|
-
class: g({ "th-button-active": [T.value.DESC, T.value.ASC].includes(I.value[t]) }),
|
|
960
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${[T.value.DESC, T.value.ASC].includes(I.value[t]) ? "" : G.value.buttons.filter.inactive.color}`)
|
|
961
|
-
}, [I.value[t] === T.value.ASC ? (v(), p("span", {
|
|
962
|
-
key: 0,
|
|
963
|
-
innerHTML: [T.value.NUMERIC].includes(e.type) ? Q.value.sort09 : Q.value.sortZA
|
|
964
|
-
}, null, 8, ot)) : I.value[t] === T.value.DESC ? (v(), p("span", {
|
|
965
|
-
key: 1,
|
|
966
|
-
innerHTML: [T.value.NUMERIC].includes(e.type) ? Q.value.sort90 : Q.value.sortAZ
|
|
967
|
-
}, null, 8, st)) : (v(), p("span", {
|
|
968
|
-
key: 2,
|
|
969
|
-
innerHTML: Q.value.arrowSort
|
|
970
|
-
}, null, 8, ct))], 14, at)) : f("", !0),
|
|
971
|
-
e.isMultiselect ? (v(), p("button", {
|
|
972
|
-
key: 3,
|
|
973
|
-
onClick: (n) => Lr(t, e, n),
|
|
974
|
-
innerHTML: Q.value.filter,
|
|
975
|
-
class: g({ "th-button-active": M.value[t] && M.value[t].length !== $(t).length }),
|
|
976
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${M.value[t] && M.value[t].length !== $(t).length ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${M.value[t] && M.value[t].length !== $(t).length ? "" : G.value.buttons.filter.inactive.color}`)
|
|
977
|
-
}, null, 14, lt)) : f("", !0),
|
|
978
|
-
E.value.col === t && Qn.value ? (v(), p("button", {
|
|
979
|
-
key: 4,
|
|
980
|
-
onClick: r[8] ||= (e) => R.value = !R.value,
|
|
981
|
-
innerHTML: Q.value.chart,
|
|
982
|
-
class: g({ "th-button-active": R.value }),
|
|
983
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${R.value ? "" : G.value.buttons.filter.inactive.backgroundColor};color:${R.value ? "" : G.value.buttons.filter.inactive.color}`)
|
|
984
|
-
}, null, 14, ut)) : f("", !0),
|
|
985
|
-
e.rangeFilter && P.value[t] && !A.value[t] ? (v(), p("div", dt, [
|
|
986
|
-
m("label", { for: `rangeMin${t}` }, [...r[29] ||= [
|
|
987
|
-
m("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
988
|
-
h(" min ", -1),
|
|
989
|
-
m("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
990
|
-
]], 8, ft),
|
|
991
|
-
ye(m("input", {
|
|
992
|
-
type: "number",
|
|
993
|
-
id: `rangeMin${t}`,
|
|
994
|
-
max: j.value[t].max,
|
|
995
|
-
min: j.value[t].min,
|
|
996
|
-
"onUpdate:modelValue": (e) => P.value[t].min = e,
|
|
997
|
-
onInput: r[9] ||= (e) => lr(mr, 400),
|
|
998
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
999
|
-
}, null, 44, pt), [[
|
|
1000
|
-
ge,
|
|
1001
|
-
P.value[t].min,
|
|
1002
|
-
void 0,
|
|
1003
|
-
{ number: !0 }
|
|
1004
|
-
]]),
|
|
1005
|
-
ye(m("input", {
|
|
1006
|
-
type: "number",
|
|
1007
|
-
id: `rangeMax${t}`,
|
|
1008
|
-
max: j.value[t].max,
|
|
1009
|
-
min: j.value[t].min,
|
|
1010
|
-
"onUpdate:modelValue": (e) => P.value[t].max = e,
|
|
1011
|
-
onInput: r[10] ||= (e) => lr(mr, 400),
|
|
1012
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
1013
|
-
}, null, 44, mt), [[
|
|
1014
|
-
ge,
|
|
1015
|
-
P.value[t].max,
|
|
1016
|
-
void 0,
|
|
1017
|
-
{ number: !0 }
|
|
1018
|
-
]]),
|
|
1019
|
-
m("label", { for: `rangeMax${t}` }, [...r[30] ||= [
|
|
1020
|
-
m("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1021
|
-
h(" max ", -1),
|
|
1022
|
-
m("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1023
|
-
]], 8, ht)
|
|
1024
|
-
])) : f("", !0),
|
|
1025
|
-
or(t, e) ? (v(), p("button", {
|
|
1026
|
-
key: 6,
|
|
1027
|
-
onClick: (n) => jr(t, e, n),
|
|
1028
|
-
disabled: xr(t, e),
|
|
1029
|
-
class: "th-reset",
|
|
1030
|
-
style: _({ cursor: X.value ? "pointer" : "default" })
|
|
1031
|
-
}, " ✖ ", 12, gt)) : f("", !0),
|
|
1032
|
-
e.isMultiselect ? (v(), p("div", {
|
|
1033
|
-
key: 7,
|
|
1034
|
-
class: "th-dropdown",
|
|
1035
|
-
"data-is-open": "false",
|
|
1036
|
-
id: `th_dropdown_${t}`,
|
|
1037
|
-
style: _(`background:${Pn.value.backgroundColor};color:${Pn.value.color}`)
|
|
1038
|
-
}, [m("button", {
|
|
1039
|
-
class: "close-dropdown",
|
|
1040
|
-
onClick: (n) => Lr(t, e, n),
|
|
1041
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${Fn.value.backgroundColor};color:${Fn.value.color}`)
|
|
1042
|
-
}, " ✖ ", 12, vt), (v(!0), p(u, null, b($(t), (e, n) => (v(), p("span", {
|
|
1043
|
-
class: "th-option",
|
|
1044
|
-
key: `th_option_${t}_${n}`,
|
|
1045
|
-
onClick: (n) => Pr(e, t),
|
|
1046
|
-
onKeyup: [be((n) => Pr(e, t), ["enter"]), be((n) => Pr(e, t), ["space"])],
|
|
1047
|
-
style: _(`opacity:${yr(e, t) ? 1 : .5}`),
|
|
1048
|
-
tabindex: "0"
|
|
1049
|
-
}, [yr(e, t) ? (v(), p("span", {
|
|
1050
|
-
key: 0,
|
|
1051
|
-
style: _(`color:${Pn.value.icons.selected.color};margin-right:5px`),
|
|
1052
|
-
class: "th-icon-green"
|
|
1053
|
-
}, x(Pn.value.icons.selected.unicode), 5)) : (v(), p("span", {
|
|
1054
|
-
key: 1,
|
|
1055
|
-
style: _(`color:${Pn.value.icons.unselected.color};margin-right:5px`),
|
|
1056
|
-
class: "th-icon-red"
|
|
1057
|
-
}, x(Pn.value.icons.unselected.unicode), 5)), m("span", null, x(e), 1)], 44, yt))), 128))], 12, _t)) : f("", !0)
|
|
1058
|
-
])], 6))), 128))])
|
|
1059
|
-
], 64)) : f("", !0),
|
|
1060
|
-
m("tr", null, [r[32] ||= m("th", { class: "invisible-cell" }, null, -1), (v(!0), p(u, null, b(V.value, (e, t) => (v(), p("th", {
|
|
1061
|
-
key: `col_selector_${t}`,
|
|
1062
|
-
class: g({
|
|
1063
|
-
"vue-ui-table-col-selector": !A.value[t],
|
|
1064
|
-
"th-has-nan": A.value[t]
|
|
1065
|
-
}),
|
|
1066
|
-
style: _(`background:${t === Dn.value && !A.value[t] ? G.value.selected.backgroundColor : G.value.backgroundColor};color:${t === Dn.value && !A.value[t] ? G.value.selected.color : G.value.color};outline:${G.value.outline}`)
|
|
1067
|
-
}, [A.value[t] ? f("", !0) : (v(), p("div", {
|
|
1068
|
-
key: 0,
|
|
1069
|
-
innerHTML: V.value[t].type === T.value.NUMERIC ? Q.value.chevronDown : "",
|
|
1070
|
-
class: g({ "col-selector": V.value[t].type === T.value.NUMERIC }),
|
|
1071
|
-
tabindex: "0",
|
|
1072
|
-
style: _({ cursor: X.value ? "pointer" : "default" }),
|
|
1073
|
-
onClick: xe((e) => Nr(t), ["stop"]),
|
|
1074
|
-
onKeyup: be((e) => Nr(t), ["enter"])
|
|
1075
|
-
}, null, 46, bt))], 6))), 128))])
|
|
1076
|
-
], 4),
|
|
1077
|
-
m("tbody", {
|
|
1078
|
-
onClick: cr,
|
|
1079
|
-
onKeydown: r[11] ||= (e) => Er(e)
|
|
1080
|
-
}, [(v(!0), p(u, null, b(Yn.value, (n, r) => (v(), p("tr", {
|
|
1081
|
-
key: `tbody_${r}`,
|
|
1082
|
-
"data-row": r % 2 == 0 ? "odd" : "even",
|
|
1083
|
-
class: g(`tr_${S(mn)}`),
|
|
1084
|
-
style: _(`${r % 2 == 0 ? `background:${q.value.odd.backgroundColor};color:${q.value.odd.color}` : `background:${q.value.even.backgroundColor};color:${q.value.even.color}`}`)
|
|
1085
|
-
}, [m("td", {
|
|
1086
|
-
class: "vue-ui-table-td-iteration",
|
|
1087
|
-
"data-row": r % 2 == 0 ? "odd" : "even",
|
|
1088
|
-
style: _({ outline: q.value.outline })
|
|
1089
|
-
}, x(n.absoluteIndex + 1), 13, St), (v(!0), p(u, null, b(n.td, (i, a) => (v(), p("td", {
|
|
1090
|
-
"data-row": r % 2 == 0 ? "odd" : "even",
|
|
1091
|
-
key: `td_${r}_${a}`,
|
|
1092
|
-
style: _(br(i) || e.dataset.header[a].type === T.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${q.value.outline}` : `outline:${q.value.outline}`),
|
|
1093
|
-
onClick: (t) => Mr({
|
|
1094
|
-
td: i,
|
|
1095
|
-
rowIndex: r,
|
|
1096
|
-
colIndex: a,
|
|
1097
|
-
headerType: e.dataset.header[a].type,
|
|
1098
|
-
event: t
|
|
1099
|
-
}),
|
|
1100
|
-
onKeyup: [be((t) => Mr({
|
|
1101
|
-
td: i,
|
|
1102
|
-
rowIndex: r,
|
|
1103
|
-
colIndex: a,
|
|
1104
|
-
headerType: e.dataset.header[a].type,
|
|
1105
|
-
event: t
|
|
1106
|
-
}), ["enter"]), be((t) => Mr({
|
|
1107
|
-
td: i,
|
|
1108
|
-
rowIndex: r,
|
|
1109
|
-
colIndex: a,
|
|
1110
|
-
headerType: e.dataset.header[a].type,
|
|
1111
|
-
event: t
|
|
1112
|
-
}), ["space"])],
|
|
1113
|
-
class: g({
|
|
1114
|
-
"td-numeric": e.dataset.header[a].type === T.value.NUMERIC,
|
|
1115
|
-
"td-focusable": !0,
|
|
1116
|
-
"td-has-nan": A.value[a]
|
|
1117
|
-
}),
|
|
1118
|
-
id: `cell_${r}_${a}_${S(mn)}`,
|
|
1119
|
-
tabindex: "0"
|
|
1120
|
-
}, [n.meta && n.meta.markerIndices.includes(a) && n.meta.unicodeIcon ? (v(), p("span", {
|
|
1121
|
-
key: 0,
|
|
1122
|
-
style: _(`color:${n.meta.color};margin-right:3px`),
|
|
1123
|
-
innerHTML: n.meta.unicodeIcon
|
|
1124
|
-
}, null, 12, wt)) : f("", !0), e.dataset.header[a].type === T.value.DATE ? (v(), p("span", Tt, x(e.dataset.header[a].prefix) + " " + x(new Date(i).toLocaleString().slice(0, 10)) + " " + x(e.dataset.header[a].suffix), 1)) : e.dataset.header[a].isPercentage ? (v(), p("span", Et, x(S(t)({
|
|
1125
|
-
v: Number(i * 100),
|
|
1126
|
-
s: "%",
|
|
1127
|
-
r: e.dataset.header[a].decimals
|
|
1128
|
-
})), 1)) : N.value[a] && e.dataset.header[a].percentageTo && !e.dataset.header[a].isPercentage ? (v(), p("span", {
|
|
1129
|
-
key: 3,
|
|
1130
|
-
class: g({ "td-nan": isNaN(Number(i)) })
|
|
1131
|
-
}, x(isNaN(Number(i)) ? `${i} is not ${T.value.NUMERIC}` : S(t)({
|
|
1132
|
-
p: e.dataset.header[a].prefix,
|
|
1133
|
-
v: Number(i),
|
|
1134
|
-
s: e.dataset.header[a].suffix,
|
|
1135
|
-
r: e.dataset.header[a].decimals
|
|
1136
|
-
})) + " (" + x(isNaN(Number(i)) ? "" : S(t)({
|
|
1137
|
-
v: Number(i / _r(N.value[a].referenceIndex) * 100),
|
|
1138
|
-
s: "%",
|
|
1139
|
-
r: e.dataset.header[a].decimals
|
|
1140
|
-
})) + ") ", 3)) : e.dataset.header[a].type === T.value.NUMERIC ? (v(), p("span", {
|
|
1141
|
-
key: 4,
|
|
1142
|
-
class: g({ "td-nan": isNaN(Number(i)) })
|
|
1143
|
-
}, x(isNaN(Number(i)) ? `${i} is not ${T.value.NUMERIC}` : S(t)({
|
|
1144
|
-
p: e.dataset.header[a].prefix,
|
|
1145
|
-
v: Number(i.toFixed(e.dataset.header[a].decimals)),
|
|
1146
|
-
s: e.dataset.header[a].suffix,
|
|
1147
|
-
r: e.dataset.header[a].decimals
|
|
1148
|
-
})), 3)) : (v(), p("span", Dt, x(e.dataset.header[a].prefix) + " " + x(i) + " " + x(e.dataset.header[a].suffix), 1))], 46, Ct))), 128))], 14, xt))), 128))], 32)
|
|
1149
|
-
])], 4),
|
|
1150
|
-
m("div", {
|
|
1151
|
-
class: g({
|
|
1152
|
-
"td-selector-info": !0,
|
|
1153
|
-
"td-selector-info--active": E.value.col !== void 0 && E.value.rows.length
|
|
1154
|
-
}),
|
|
1155
|
-
style: _(`background:${In.value.infoBar.backgroundColor};color:${In.value.infoBar.color}`)
|
|
1156
|
-
}, [E.value.col !== void 0 && E.value.rows.length ? (v(), p(u, { key: 0 }, [
|
|
1157
|
-
m("div", {
|
|
1158
|
-
innerHTML: Q.value.table,
|
|
1159
|
-
class: "td-selector-icon"
|
|
1160
|
-
}, null, 8, Ot),
|
|
1161
|
-
m("span", null, [
|
|
1162
|
-
m("b", null, [h(x(e.dataset.header[E.value.col].name) + " ", 1), e.dataset.header[E.value.col].isPercentage ? (v(), p("span", kt, " / " + x(e.dataset.header[N.value[E.value.col].referenceIndex].name), 1)) : f("", !0)]),
|
|
1163
|
-
m("span", At, [h(x(H.value.translations.nb) + " : ", 1), m("b", jt, x(E.value.rows.length), 1)]),
|
|
1164
|
-
m("span", Mt, [
|
|
1165
|
-
h(x(H.value.translations.sum) + " : ", 1),
|
|
1166
|
-
e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Nt, x(tr.value.sumPercentage), 1)) : (v(), p("b", Pt, x(e.dataset.header[E.value.col].prefix) + " " + x(tr.value.sumRegular) + " " + x(e.dataset.header[E.value.col].suffix), 1)),
|
|
1167
|
-
e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Ft, "%")) : f("", !0)
|
|
1168
|
-
]),
|
|
1169
|
-
m("span", It, [
|
|
1170
|
-
h(x(H.value.translations.average) + " : ", 1),
|
|
1171
|
-
e.dataset.header[E.value.col].isPercentage ? (v(), p("b", Lt, x(tr.value.averagePercentage), 1)) : (v(), p("b", Rt, x(e.dataset.header[E.value.col].prefix) + " " + x(tr.value.averageRegular) + " " + x(e.dataset.header[E.value.col].suffix), 1)),
|
|
1172
|
-
e.dataset.header[E.value.col].isPercentage ? (v(), p("b", zt, "%")) : f("", !0)
|
|
1173
|
-
])
|
|
1174
|
-
]),
|
|
1175
|
-
m("button", {
|
|
1176
|
-
onClick: ur,
|
|
1177
|
-
class: "td-selector-info-reset",
|
|
1178
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${Fn.value.backgroundColor};color:${Fn.value.color};border-radius:${Fn.value.borderRadius}`)
|
|
1179
|
-
}, " ✖ ", 4)
|
|
1180
|
-
], 64)) : f("", !0)], 6),
|
|
1181
|
-
B.value.length > 10 ? (v(), p("div", Bt, [h(x(H.value.translations.totalRows) + " : " + x(e.dataset.body.length) + " | " + x(H.value.translations.paginatorLabel) + " : ", 1), B.value.length > 10 ? ye((v(), p("select", {
|
|
1182
|
-
key: 0,
|
|
1183
|
-
id: "paginatorSelector",
|
|
1184
|
-
"onUpdate:modelValue": r[12] ||= (e) => Tn.value = e,
|
|
1185
|
-
onChange: r[13] ||= (e) => {
|
|
1186
|
-
ur(), Cr();
|
|
1187
|
-
},
|
|
1188
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border}`)
|
|
1189
|
-
}, [(v(!0), p(u, null, b(En.value, (t, n) => (v(), p(u, null, [B.value.length > t || e.dataset.body.length === t ? (v(), p("option", { key: `paginator_option_${n}` }, x(t), 1)) : f("", !0)], 64))), 256))], 36)), [[
|
|
1190
|
-
he,
|
|
1191
|
-
Tn.value,
|
|
1192
|
-
void 0,
|
|
1193
|
-
{ number: !0 }
|
|
1194
|
-
]]) : f("", !0)])) : f("", !0),
|
|
1195
|
-
Tn.value >= 250 ? (v(), p("div", Vt, [m("span", { innerHTML: Q.value.warning }, null, 8, Ht), h(x(H.value.translations.sizeWarning), 1)])) : f("", !0),
|
|
1196
|
-
Z.value.length > 1 && Z.value.length <= 10 ? (v(), p("div", {
|
|
1197
|
-
key: 3,
|
|
1198
|
-
class: "vue-ui-table-navigation-indicator",
|
|
1199
|
-
style: _(`background:${J.value.navigationIndicator.backgroundColor};width:calc(${D.value / (Z.value.length - 1) * 100}%)`)
|
|
1200
|
-
}, null, 4)) : f("", !0),
|
|
1201
|
-
Z.value.length > 1 ? (v(), p("div", Ut, [
|
|
1202
|
-
m("button", {
|
|
1203
|
-
class: "vue-ui-table-navigation",
|
|
1204
|
-
onClick: r[14] ||= xe((e) => Tr("previous"), ["stop"]),
|
|
1205
|
-
innerHTML: Q.value.chevronLeft,
|
|
1206
|
-
disabled: D.value === 0,
|
|
1207
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === 0 ? J.value.buttons.opacityDisabled : 1}`)
|
|
1208
|
-
}, null, 12, Wt),
|
|
1209
|
-
Z.value.length > 3 ? (v(), p(u, { key: 0 }, [
|
|
1210
|
-
m("button", {
|
|
1211
|
-
class: "vue-ui-table-navigation",
|
|
1212
|
-
onClick: r[15] ||= xe((e) => Tr(1), ["stop"]),
|
|
1213
|
-
disabled: D.value === 0,
|
|
1214
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === 0 ? J.value.buttons.opacityDisabled : 1}`)
|
|
1215
|
-
}, " 1 ", 12, Gt),
|
|
1216
|
-
Z.value.length > 10 ? (v(), p("div", {
|
|
1217
|
-
key: 0,
|
|
1218
|
-
class: "vue-ui-table-page-scroller-wrapper",
|
|
1219
|
-
style: _({ cursor: X.value ? "pointer" : "default" })
|
|
1220
|
-
}, [m("label", Kt, x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1), m("input", {
|
|
1221
|
-
class: "vue-ui-table-page-scroller",
|
|
1222
|
-
id: "pageScroller",
|
|
1223
|
-
type: "range",
|
|
1224
|
-
step: "1",
|
|
1225
|
-
min: 0,
|
|
1226
|
-
max: Z.value.length - 1,
|
|
1227
|
-
onInput: r[16] ||= (e) => Rr(e),
|
|
1228
|
-
value: D.value,
|
|
1229
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border};accent-color:${K.value.accentColor}`)
|
|
1230
|
-
}, null, 44, qt)], 4)) : (v(), p("span", Jt, x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1)),
|
|
1231
|
-
m("button", {
|
|
1232
|
-
class: "vue-ui-table-navigation",
|
|
1233
|
-
onClick: r[17] ||= xe((e) => Tr(Z.value.length), ["stop"]),
|
|
1234
|
-
disabled: D.value === Z.value.length - 1,
|
|
1235
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === Z.value.length - 1 ? J.value.buttons.opacityDisabled : 1}`)
|
|
1236
|
-
}, x(Z.value.length), 13, Yt)
|
|
1237
|
-
], 64)) : (v(), p(u, { key: 1 }, [h(x(H.value.translations.page) + " " + x(D.value + 1) + " / " + x(Z.value.length), 1)], 64)),
|
|
1238
|
-
m("button", {
|
|
1239
|
-
class: "vue-ui-table-navigation",
|
|
1240
|
-
onClick: r[18] ||= xe((e) => Tr("next"), ["stop"]),
|
|
1241
|
-
innerHTML: Q.value.chevronRight,
|
|
1242
|
-
disabled: D.value === Z.value.length - 1,
|
|
1243
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${J.value.buttons.backgroundColor};color:${J.value.buttons.color};opacity:${D.value === Z.value.length - 1 ? J.value.buttons.opacityDisabled : 1}`)
|
|
1244
|
-
}, null, 12, Xt)
|
|
1245
|
-
])) : f("", !0),
|
|
1246
|
-
ue(S(dn), {
|
|
1247
|
-
ref_key: "chartModal",
|
|
1248
|
-
ref: zr,
|
|
1249
|
-
backgroundColor: Y.value.modal.backgroundColor,
|
|
1250
|
-
headerColor: Y.value.modal.color,
|
|
1251
|
-
color: Y.value.modal.color,
|
|
1252
|
-
forcedHeight: 500,
|
|
1253
|
-
isCursorPointer: X.value,
|
|
1254
|
-
withPadding: "",
|
|
1255
|
-
withFullWidth: "",
|
|
1256
|
-
noLayerUpdate: "",
|
|
1257
|
-
onClose: r[23] ||= (e) => R.value = !1,
|
|
1258
|
-
onSize: rr
|
|
1259
|
-
}, {
|
|
1260
|
-
before: ve(() => [m("div", Zt, [
|
|
1261
|
-
Zn.value.length ? (v(), p("button", {
|
|
1262
|
-
key: 0,
|
|
1263
|
-
onClick: r[19] ||= (e) => z.value = !0,
|
|
1264
|
-
innerHTML: Q.value.donut,
|
|
1265
|
-
class: g({ "is-active-chart": w.value.type === T.value.DONUT || z.value }),
|
|
1266
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.DONUT || z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.DONUT || z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
|
|
1267
|
-
}, null, 14, Qt)) : f("", !0),
|
|
1268
|
-
m("button", {
|
|
1269
|
-
onClick: r[20] ||= (e) => {
|
|
1270
|
-
w.value.type = T.value.LINE, z.value = !1;
|
|
1271
|
-
},
|
|
1272
|
-
innerHTML: Q.value.chart,
|
|
1273
|
-
class: g({ "is-active-chart": w.value.type === T.value.LINE && !z.value }),
|
|
1274
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.LINE && !z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.LINE && !z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
|
|
1275
|
-
}, null, 14, $t),
|
|
1276
|
-
m("button", {
|
|
1277
|
-
onClick: r[21] ||= (e) => {
|
|
1278
|
-
w.value.type = T.value.BAR, z.value = !1;
|
|
1279
|
-
},
|
|
1280
|
-
innerHTML: Q.value.bar,
|
|
1281
|
-
class: g({ "is-active-chart": w.value.type === T.value.BAR && !z.value }),
|
|
1282
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${w.value.type === T.value.BAR && !z.value ? Y.value.modal.buttons.selected.backgroundColor : Y.value.modal.buttons.unselected.backgroundColor};color:${w.value.type === T.value.BAR && !z.value ? Y.value.modal.buttons.selected.color : Y.value.modal.buttons.unselected.color}`)
|
|
1283
|
-
}, null, 14, en)
|
|
1284
|
-
])]),
|
|
1285
|
-
content: ve(() => [m("div", tn, [
|
|
1286
|
-
z.value && Zn.value.length ? (v(), p("div", {
|
|
1287
|
-
key: 0,
|
|
1288
|
-
style: _(`background:${Y.value.modal.backgroundColor};color:${Y.value.modal.color}`)
|
|
1289
|
-
}, [m("fieldset", nn, [
|
|
1290
|
-
m("legend", null, x(H.value.translations.chooseCategoryColumn), 1),
|
|
1291
|
-
m("div", rn, [(v(!0), p(u, null, b(Zn.value, (e, t) => (v(), p("div", {
|
|
1292
|
-
key: `donut_radio_${t}`,
|
|
1293
|
-
class: "vue-ui-table-fieldset-option"
|
|
1294
|
-
}, [m("input", {
|
|
1295
|
-
type: "radio",
|
|
1296
|
-
name: e.name,
|
|
1297
|
-
id: e.name,
|
|
1298
|
-
checked: L.value && e.name === L.value.name,
|
|
1299
|
-
onInput: (e) => L.value = Zn.value[t],
|
|
1300
|
-
style: _(`background:${K.value.backgroundColor};color:${K.value.color};border:${K.value.border};accent-color:${K.value.accentColor}`)
|
|
1301
|
-
}, null, 44, an), m("label", { for: e.name }, x(e.name), 9, on)]))), 128))]),
|
|
1302
|
-
m("button", {
|
|
1303
|
-
class: "vue-ui-table-generate-donut",
|
|
1304
|
-
disabled: !L.value,
|
|
1305
|
-
onClick: ar,
|
|
1306
|
-
style: _(`cursor:${X.value ? "pointer" : "default"};background:${Y.value.modal.buttons.selected.backgroundColor};color:${Y.value.modal.buttons.selected.color}`)
|
|
1307
|
-
}, [m("div", {
|
|
1308
|
-
style: { "margin-bottom": "-3px" },
|
|
1309
|
-
innerHTML: Q.value.donut
|
|
1310
|
-
}, null, 8, cn), h(" " + x(H.value.translations.makeDonut), 1)], 12, sn)
|
|
1311
|
-
])], 4)) : f("", !0),
|
|
1312
|
-
[T.value.BAR, T.value.LINE].includes(w.value.type) && !z.value ? (v(), p(u, { key: 1 }, [
|
|
1313
|
-
qn.value.length > 1 ? (v(), p("label", {
|
|
1314
|
-
key: 0,
|
|
1315
|
-
style: _({ color: Y.value.modal.color })
|
|
1316
|
-
}, [h(x(H.value.translations.xAxisLabels) + " ", 1), ye(m("select", { "onUpdate:modelValue": r[22] ||= (e) => An.value = e }, [(v(!0), p(u, null, b(qn.value, (e) => (v(), p("option", null, x(e), 1))), 256))], 512), [[he, An.value]])], 4)) : f("", !0),
|
|
1317
|
-
m("div", ln, [w.value.type === T.value.LINE ? (v(), le(ie, {
|
|
1318
|
-
key: `chart_line_${kn.value}`,
|
|
1319
|
-
dataset: ir.value.xyDatasetLine,
|
|
1320
|
-
config: ir.value.xyConfig
|
|
1321
|
-
}, null, 8, ["dataset", "config"])) : f("", !0), w.value.type === T.value.BAR ? (v(), le(ie, {
|
|
1322
|
-
key: `chart_bar_${kn.value}`,
|
|
1323
|
-
dataset: ir.value.xyDatasetBar,
|
|
1324
|
-
config: ir.value.xyConfig
|
|
1325
|
-
}, null, 8, ["dataset", "config"])) : f("", !0)]),
|
|
1326
|
-
E.value.rows.length >= 2 ? (v(), p("div", {
|
|
1327
|
-
key: 1,
|
|
1328
|
-
class: "chart-trend",
|
|
1329
|
-
style: _(`color:${Y.value.modal.color}`)
|
|
1330
|
-
}, [r[33] ||= m("span", null, "---", -1), h(" Trend: " + x(S(t)({
|
|
1331
|
-
v: ir.value.progression.trend * 100,
|
|
1332
|
-
s: "%",
|
|
1333
|
-
r: 1
|
|
1334
|
-
})), 1)], 4)) : f("", !0)
|
|
1335
|
-
], 64)) : f("", !0),
|
|
1336
|
-
[T.value.DONUT].includes(w.value.type) && !z.value ? (v(), p("div", un, [ue(ce, {
|
|
1337
|
-
dataset: bn.value,
|
|
1338
|
-
config: ir.value.donutConfig
|
|
1339
|
-
}, null, 8, ["dataset", "config"])])) : f("", !0)
|
|
1340
|
-
])]),
|
|
1341
|
-
_: 1
|
|
1342
|
-
}, 8, [
|
|
1343
|
-
"backgroundColor",
|
|
1344
|
-
"headerColor",
|
|
1345
|
-
"color",
|
|
1346
|
-
"isCursorPointer"
|
|
1347
|
-
])
|
|
1348
|
-
], 4));
|
|
1349
|
-
}
|
|
1350
|
-
}, [["__scopeId", "data-v-f35b07e9"]]);
|
|
1351
|
-
//#endregion
|
|
1352
|
-
export { Se as n, dn as t };
|