vue-data-ui 3.17.13 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -1,1726 +0,0 @@
|
|
|
1
|
-
import { useCssVars as Gt, defineAsyncComponent as qt, ref as f, computed as x, onMounted as Qt, watch as Fe, openBlock as r, createElementBlock as i, normalizeStyle as h, createElementVNode as s, toDisplayString as d, withDirectives as le, withKeys as ve, withModifiers as de, vModelText as he, createVNode as je, createCommentVNode as b, Fragment as L, renderList as j, normalizeClass as D, createTextVNode as z, unref as V, vModelSelect as bt, withCtx as mt, createBlock as kt, nextTick as ke } from "vue";
|
|
2
|
-
import { j as el, t as tl, y as ll, x as Ve, u as wt, W as al, Y as ol, l as ae, a0 as nl, a1 as sl, p as We } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { u as ul } from "./useConfig-CG4HT3wS.js";
|
|
4
|
-
import Ct from "./vue-ui-xy-C_Q9chQe.js";
|
|
5
|
-
import rl from "./vue-ui-donut-BKegKHxj.js";
|
|
6
|
-
import il from "./BaseIcon-DX0hTWa-.js";
|
|
7
|
-
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const vl = ["innerHTML"], dl = ["data-is-open"], hl = { class: "vue-ui-table-export-hub-options" }, gl = { class: "vue-ui-table-export-hub-option-wrapper" }, pl = { class: "label" }, fl = ["innerHTML"], yl = { class: "vue-ui-table-export-hub-option-wrapper" }, bl = { class: "label" }, ml = ["innerHTML"], kl = { class: "vue-ui-table-dialog-field" }, wl = {
|
|
9
|
-
class: "label vue-ui-table-dialog-input-label",
|
|
10
|
-
style: { width: "100%" }
|
|
11
|
-
}, Cl = { style: { width: "fit-content" } }, $l = { class: "vue-ui-table" }, Ml = { key: 0 }, xl = { key: 0 }, Tl = { key: 1 }, _l = {
|
|
12
|
-
key: 0,
|
|
13
|
-
style: { display: "flex", "align-items": "center", "justify-content": "flex-end" }
|
|
14
|
-
}, Sl = ["innerHTML"], Nl = {
|
|
15
|
-
key: 0,
|
|
16
|
-
style: { "margin-left": "3px" }
|
|
17
|
-
}, Ol = { key: 0 }, Ll = { class: "th-filter" }, Dl = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "th-date"
|
|
20
|
-
}, El = { class: "date-wrapper--inputs" }, Il = { class: "date-fieldset" }, Al = ["for"], Pl = ["id", "onUpdate:modelValue", "onInput"], Hl = { class: "date-fieldset" }, Bl = ["for"], Rl = ["id", "onUpdate:modelValue", "onInput"], zl = { class: "date-wrapper--button" }, Ul = ["onClick"], Fl = ["innerHTML"], jl = ["innerHTML"], Vl = ["innerHTML"], Wl = ["onClick", "disabled"], Jl = ["placeholder", "onUpdate:modelValue", "name"], Kl = ["onClick"], Xl = ["innerHTML"], Yl = ["innerHTML"], Zl = ["innerHTML"], Gl = ["onClick", "innerHTML"], ql = ["innerHTML"], Ql = {
|
|
21
|
-
key: 5,
|
|
22
|
-
class: "th-range-filter"
|
|
23
|
-
}, ea = ["for"], ta = ["id", "max", "min", "onUpdate:modelValue"], la = ["id", "max", "min", "onUpdate:modelValue"], aa = ["for"], oa = ["onClick", "disabled"], na = ["id"], sa = ["onClick"], ua = ["onClick", "onKeyup"], ra = ["innerHTML", "onClick", "onKeyup"], ia = ["data-row"], ca = ["data-row"], va = ["data-row", "onClick", "onKeyup", "id"], da = ["innerHTML"], ha = { key: 1 }, ga = { key: 2 }, pa = { key: 5 }, fa = ["innerHTML"], ya = { key: 0 }, ba = { style: { "margin-left": "12px" } }, ma = { class: "format-num" }, ka = { style: { "margin-left": "12px" } }, wa = {
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "format-num"
|
|
26
|
-
}, Ca = {
|
|
27
|
-
key: 1,
|
|
28
|
-
class: "format-num"
|
|
29
|
-
}, $a = { key: 2 }, Ma = { style: { "margin-left": "12px" } }, xa = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "format-num"
|
|
32
|
-
}, Ta = {
|
|
33
|
-
key: 1,
|
|
34
|
-
class: "format-num"
|
|
35
|
-
}, _a = { key: 2 }, Sa = {
|
|
36
|
-
key: 1,
|
|
37
|
-
class: "vue-ui-table-paginator format-num"
|
|
38
|
-
}, Na = {
|
|
39
|
-
key: 2,
|
|
40
|
-
class: "vue-ui-table-size-warning"
|
|
41
|
-
}, Oa = ["innerHTML"], La = {
|
|
42
|
-
key: 4,
|
|
43
|
-
class: "vue-ui-table-pagination format-num"
|
|
44
|
-
}, Da = ["innerHTML", "disabled"], Ea = ["disabled"], Ia = {
|
|
45
|
-
for: "pageScroller",
|
|
46
|
-
style: { "font-size": "14px" }
|
|
47
|
-
}, Aa = ["max", "value"], Pa = { key: 1 }, Ha = ["disabled"], Ba = ["innerHTML", "disabled"], Ra = { class: "vue-ui-table-chart-modal-options" }, za = ["innerHTML"], Ua = ["innerHTML"], Fa = ["innerHTML"], ja = { style: { width: "100%", height: "fit-content" } }, Va = { class: "vue-ui-table-fieldset" }, Wa = { class: "vue-ui-table-fieldset-wrapper" }, Ja = ["name", "id", "checked", "onInput"], Ka = ["for"], Xa = ["disabled"], Ya = ["innerHTML"], Za = { style: { width: "100%", "margin-bottom": "12px" } }, Ga = {
|
|
48
|
-
key: 2,
|
|
49
|
-
style: { width: "100%", "margin-bottom": "32px" }
|
|
50
|
-
}, qa = {
|
|
51
|
-
__name: "vue-ui-table",
|
|
52
|
-
props: {
|
|
53
|
-
config: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default() {
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
dataset: {
|
|
60
|
-
type: Object,
|
|
61
|
-
default() {
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
emits: ["page-change"],
|
|
67
|
-
setup(m, { expose: $t, emit: Mt }) {
|
|
68
|
-
Gt((e) => ({
|
|
69
|
-
a526696e: Dt.value,
|
|
70
|
-
b37e1748: Et.value,
|
|
71
|
-
v5236f612: At.value,
|
|
72
|
-
v348e0d64: De.value,
|
|
73
|
-
v54377a3e: Pt.value,
|
|
74
|
-
ee49ce48: Ht.value,
|
|
75
|
-
v1ac4574c: Ee.value,
|
|
76
|
-
v4f070ff6: It.value,
|
|
77
|
-
v725e1288: Bt.value
|
|
78
|
-
}));
|
|
79
|
-
const xt = qt(
|
|
80
|
-
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
81
|
-
), g = m, Tt = Mt, { vue_ui_table: Je } = ul(), G = el();
|
|
82
|
-
f(null);
|
|
83
|
-
const Oe = f(null), se = f(null), S = f({
|
|
84
|
-
height: 316,
|
|
85
|
-
type: "bar",
|
|
86
|
-
width: 512
|
|
87
|
-
}), c = f({
|
|
88
|
-
ASC: 1,
|
|
89
|
-
BAR: "bar",
|
|
90
|
-
DATE: "date",
|
|
91
|
-
DESC: -1,
|
|
92
|
-
DONUT: "donut",
|
|
93
|
-
LINE: "line",
|
|
94
|
-
NUMERIC: "numeric",
|
|
95
|
-
PERCENTAGE: "percentage",
|
|
96
|
-
TEXT: "text"
|
|
97
|
-
}), _t = f(100), St = f(100);
|
|
98
|
-
f(0), f(0), f(400), f(200);
|
|
99
|
-
const Nt = f({
|
|
100
|
-
CELL: "smart-td-selected",
|
|
101
|
-
FIRST_TD: "smart-td-selected-first",
|
|
102
|
-
LAST_TD: "smart-td-selected-last",
|
|
103
|
-
ROW: "smart-td-selected-neighbor"
|
|
104
|
-
}), we = f(void 0), Ce = f(void 0), v = f({
|
|
105
|
-
col: void 0,
|
|
106
|
-
rows: []
|
|
107
|
-
}), k = f(0), y = f(20), ge = f(!1), $e = f(!1), U = f({}), E = f({}), pe = f({}), W = f({}), C = f({}), J = f({}), H = f({}), P = f({}), w = f({}), oe = f(
|
|
108
|
-
g.config.rowsPerPage ? g.config.rowsPerPage : 25
|
|
109
|
-
), Ot = f(
|
|
110
|
-
[
|
|
111
|
-
.../* @__PURE__ */ new Set([
|
|
112
|
-
10,
|
|
113
|
-
25,
|
|
114
|
-
50,
|
|
115
|
-
100,
|
|
116
|
-
250,
|
|
117
|
-
500,
|
|
118
|
-
g.config.rowsPerPage ? g.config.rowsPerPage : 25,
|
|
119
|
-
g.dataset.body.length
|
|
120
|
-
])
|
|
121
|
-
].sort((e, t) => e - t)
|
|
122
|
-
), ue = f(void 0), F = f(void 0), Lt = f(void 0), X = f(!1), Ke = f(0), Me = f(""), re = f(""), I = f(!1), N = f(
|
|
123
|
-
JSON.parse(JSON.stringify(g.dataset.body)).map((e, t) => ({
|
|
124
|
-
...e,
|
|
125
|
-
absoluteIndex: t
|
|
126
|
-
}))
|
|
127
|
-
), Le = f(
|
|
128
|
-
JSON.parse(JSON.stringify(g.dataset.body)).map((e, t) => ({
|
|
129
|
-
...e,
|
|
130
|
-
absoluteIndex: t
|
|
131
|
-
}))
|
|
132
|
-
), K = f(
|
|
133
|
-
JSON.parse(JSON.stringify(g.dataset.header)).map((e, t) => ({
|
|
134
|
-
average: Object.hasOwn(e, "average") ? e.average : !1,
|
|
135
|
-
decimals: Object.hasOwn(e, "decimals") ? e.decimals : 0,
|
|
136
|
-
isMultiselect: Object.hasOwn(e, "isMultiselect") ? e.isMultiselect : !1,
|
|
137
|
-
isPercentage: Object.hasOwn(e, "isPercentage") ? e.isPercentage : !1,
|
|
138
|
-
isSearch: Object.hasOwn(e, "isSearch") ? e.isSearch : !1,
|
|
139
|
-
isSort: Object.hasOwn(e, "isSort") ? e.isSort : !1,
|
|
140
|
-
name: e.name,
|
|
141
|
-
// this attribute is mandatory
|
|
142
|
-
percentageTo: Object.hasOwn(e, "percentageTo") ? e.percentageTo : void 0,
|
|
143
|
-
prefix: Object.hasOwn(e, "prefix") ? e.prefix : "",
|
|
144
|
-
rangeFilter: Object.hasOwn(e, "rangeFilter") ? e.rangeFilter : !1,
|
|
145
|
-
suffix: Object.hasOwn(e, "suffix") ? e.suffix : "",
|
|
146
|
-
sum: Object.hasOwn(e, "sum") ? e.sum : !1,
|
|
147
|
-
type: e.type,
|
|
148
|
-
// this attribute is mandatory
|
|
149
|
-
index: t
|
|
150
|
-
}))
|
|
151
|
-
), Xe = x(() => Oe.value ? Oe.value.getBoundingClientRect().height + 3 : 3), l = x(() => {
|
|
152
|
-
if (!Object.keys(g.config || {}).length)
|
|
153
|
-
return Je;
|
|
154
|
-
const e = tl({
|
|
155
|
-
defaultConfig: Je,
|
|
156
|
-
userConfig: g.config
|
|
157
|
-
});
|
|
158
|
-
return ll(e);
|
|
159
|
-
}), T = x(() => l.value.useCursorPointer), Dt = x(
|
|
160
|
-
() => l.value.style.th.buttons.cancel.inactive.backgroundColor
|
|
161
|
-
), Et = x(
|
|
162
|
-
() => l.value.style.th.buttons.cancel.inactive.color
|
|
163
|
-
), De = x(
|
|
164
|
-
() => l.value.style.th.buttons.cancel.active.backgroundColor
|
|
165
|
-
), Ee = x(
|
|
166
|
-
() => l.value.style.th.buttons.filter.active.backgroundColor
|
|
167
|
-
), It = x(
|
|
168
|
-
() => l.value.style.th.buttons.filter.active.color
|
|
169
|
-
), At = x(
|
|
170
|
-
() => Ve(De.value, 0.33)
|
|
171
|
-
), Pt = x(
|
|
172
|
-
() => wt(De.value, 33)
|
|
173
|
-
), Ht = x(
|
|
174
|
-
() => Ve(Ee.value, 0.33)
|
|
175
|
-
), Bt = x(
|
|
176
|
-
() => wt(Ee, 33)
|
|
177
|
-
), Ie = x(
|
|
178
|
-
() => [...K.value].filter((e) => e.type === c.value.DATE)
|
|
179
|
-
), Ye = x(() => [
|
|
180
|
-
"",
|
|
181
|
-
...Ie.value.map((e) => e.name)
|
|
182
|
-
]), Ze = x(() => {
|
|
183
|
-
const e = Ie.value.find(
|
|
184
|
-
(t) => t.name === Me.value
|
|
185
|
-
);
|
|
186
|
-
return e ? e.index : null;
|
|
187
|
-
}), $ = x(() => {
|
|
188
|
-
const e = [];
|
|
189
|
-
if (N.value.length)
|
|
190
|
-
for (let t = 0; t < N.value.length; t += oe.value)
|
|
191
|
-
e.push(N.value.slice(t, t + oe.value));
|
|
192
|
-
return e;
|
|
193
|
-
}), ne = x(() => $.value[k.value]), Ae = x(() => Ze.value == null ? [] : ne.value.map((e) => e.td[Ze.value])), xe = x(() => Object.keys(C.value).map((e) => ({
|
|
194
|
-
index: e,
|
|
195
|
-
name: g.dataset.header[e].name,
|
|
196
|
-
options: C.value[e]
|
|
197
|
-
}))), Ge = x(
|
|
198
|
-
() => l.value.useChart && v.value.rows.length > 1
|
|
199
|
-
), qe = x(
|
|
200
|
-
() => g.dataset.header.map((e) => e.type).includes(c.value.NUMERIC)
|
|
201
|
-
), M = x(() => ({
|
|
202
|
-
arrowSort: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,
|
|
203
|
-
bar: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,
|
|
204
|
-
chart: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,
|
|
205
|
-
chevronDown: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>`,
|
|
206
|
-
chevronLeft: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value * 1.6}" height="${y.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>`,
|
|
207
|
-
chevronRight: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value * 1.6}" height="${y.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>`,
|
|
208
|
-
donut: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value * 0.8}" height="${y.value * 0.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
209
|
-
export: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
210
|
-
fileDownload: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
211
|
-
filter: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 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>`,
|
|
212
|
-
move: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
213
|
-
sort09: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 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>`,
|
|
214
|
-
sort90: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 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>`,
|
|
215
|
-
sortAZ: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
216
|
-
sortZA: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="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>`,
|
|
217
|
-
sum: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>`,
|
|
218
|
-
table: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" 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>`,
|
|
219
|
-
warning: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value * 0.8}" height="${y.value * 0.8}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,
|
|
220
|
-
grip: `<svg xmlns="http://www.w3.org/2000/svg" width="${y.value}" height="${y.value}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`
|
|
221
|
-
})), Qe = x(() => N.value.map((e) => e.td)), Te = x(() => ({
|
|
222
|
-
sumPercentage: Number(
|
|
223
|
-
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) * 100).toFixed(
|
|
224
|
-
g.dataset.header[v.value.col].decimals
|
|
225
|
-
)
|
|
226
|
-
).toLocaleString(),
|
|
227
|
-
sumRegular: Number(
|
|
228
|
-
v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0).toFixed(
|
|
229
|
-
g.dataset.header[v.value.col].decimals
|
|
230
|
-
)
|
|
231
|
-
).toLocaleString(),
|
|
232
|
-
averagePercentage: Number(
|
|
233
|
-
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / v.value.rows.length * 100).toFixed(
|
|
234
|
-
g.dataset.header[v.value.col].decimals
|
|
235
|
-
)
|
|
236
|
-
).toLocaleString(),
|
|
237
|
-
averageRegular: Number(
|
|
238
|
-
(v.value.rows.map((e) => e.value).reduce((e, t) => e + t, 0) / v.value.rows.length).toFixed(
|
|
239
|
-
g.dataset.header[v.value.col].decimals
|
|
240
|
-
)
|
|
241
|
-
).toLocaleString()
|
|
242
|
-
})), Pe = f({
|
|
243
|
-
width: 1e3,
|
|
244
|
-
height: 500
|
|
245
|
-
});
|
|
246
|
-
function Rt({ width: e, height: t }) {
|
|
247
|
-
Pe.value = { width: e, height: t };
|
|
248
|
-
}
|
|
249
|
-
const ie = x(() => {
|
|
250
|
-
if (!Ge.value) return [];
|
|
251
|
-
const e = Pe.value.height, t = Pe.value.width, o = v.value.rows.length, a = t / o, n = Math.max(
|
|
252
|
-
...v.value.rows.map((R) => R.value)
|
|
253
|
-
), u = Math.min(
|
|
254
|
-
...v.value.rows.map((R) => R.value)
|
|
255
|
-
), p = g.dataset.header[v.value.col].isPercentage && g.dataset.header[v.value.col].percentageTo, O = S.value.type === c.value.DONUT && F.value && F.value.name, Y = g.dataset.header[v.value.col].name + (p ? ` / ${g.dataset.header[J.value[v.value.col].referenceIndex].name}` : "") + (O ? ` ${l.value.translations.by} ${F.value.name}` : ""), Z = g.dataset.header[v.value.col].prefix, ee = g.dataset.header[v.value.col].suffix, be = [
|
|
256
|
-
{
|
|
257
|
-
name: Y,
|
|
258
|
-
series: v.value.rows.map((R) => R.value),
|
|
259
|
-
type: "line",
|
|
260
|
-
useProgression: !0,
|
|
261
|
-
smooth: l.value.style.chart.layout.line.smooth,
|
|
262
|
-
color: l.value.style.chart.layout.line.stroke,
|
|
263
|
-
useArea: l.value.style.chart.layout.line.useArea
|
|
264
|
-
}
|
|
265
|
-
], me = [
|
|
266
|
-
{
|
|
267
|
-
name: Y,
|
|
268
|
-
series: v.value.rows.map((R) => R.value),
|
|
269
|
-
type: "bar",
|
|
270
|
-
useProgression: !0,
|
|
271
|
-
color: l.value.style.chart.layout.bar.fill
|
|
272
|
-
}
|
|
273
|
-
], te = l.value.style.chart.modal.backgroundColor, _ = al(te), A = g.dataset.header[v.value.col].decimals, Xt = {
|
|
274
|
-
useCssAnimation: !1,
|
|
275
|
-
chart: {
|
|
276
|
-
width: t,
|
|
277
|
-
height: e - 250,
|
|
278
|
-
backgroundColor: te,
|
|
279
|
-
color: _,
|
|
280
|
-
labels: {
|
|
281
|
-
fontSize: 18,
|
|
282
|
-
prefix: Z,
|
|
283
|
-
suffix: ee
|
|
284
|
-
},
|
|
285
|
-
grid: {
|
|
286
|
-
stroke: Ve(_, 0.5),
|
|
287
|
-
labels: {
|
|
288
|
-
color: _,
|
|
289
|
-
xAxisLabels: {
|
|
290
|
-
color: _,
|
|
291
|
-
show: Ae.value.length,
|
|
292
|
-
values: Ae.value,
|
|
293
|
-
datetimeFormatter: l.value.style.chart.layout.datetimeFormatter,
|
|
294
|
-
showOnlyAtModulo: l.value.style.chart.layout.timeLabels.showOnlyAtModulo,
|
|
295
|
-
modulo: l.value.style.chart.layout.timeLabels.modulo
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
highlighter: {
|
|
300
|
-
color: _
|
|
301
|
-
},
|
|
302
|
-
legend: {
|
|
303
|
-
color: _,
|
|
304
|
-
show: !1
|
|
305
|
-
// not necessary since we only show a single series and the title is displayed above
|
|
306
|
-
},
|
|
307
|
-
title: {
|
|
308
|
-
text: Y,
|
|
309
|
-
color: _,
|
|
310
|
-
textAlign: "center",
|
|
311
|
-
fontSize: 18
|
|
312
|
-
},
|
|
313
|
-
tooltip: {
|
|
314
|
-
showTimeLabel: Ae.value.length,
|
|
315
|
-
backgroundOpacity: 30,
|
|
316
|
-
color: _,
|
|
317
|
-
backgroundColor: te,
|
|
318
|
-
showPercentage: !1,
|
|
319
|
-
roundingValue: A
|
|
320
|
-
},
|
|
321
|
-
userOptions: {
|
|
322
|
-
buttons: {
|
|
323
|
-
pdf: !1,
|
|
324
|
-
csv: !1,
|
|
325
|
-
table: !1,
|
|
326
|
-
annotator: !1
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
zoom: {
|
|
330
|
-
show: l.value.style.chart.layout.zoom.show,
|
|
331
|
-
focusOnDrag: !0,
|
|
332
|
-
minimap: {
|
|
333
|
-
show: !0
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
line: {
|
|
338
|
-
labels: {
|
|
339
|
-
show: !0,
|
|
340
|
-
color: _,
|
|
341
|
-
rounding: A
|
|
342
|
-
},
|
|
343
|
-
dot: {
|
|
344
|
-
useSerieColor: !1,
|
|
345
|
-
fill: l.value.style.chart.layout.line.plot.fill,
|
|
346
|
-
strokeWidth: l.value.style.chart.layout.line.plot.strokeWidth
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
bar: {
|
|
350
|
-
useGradient: !1,
|
|
351
|
-
border: {
|
|
352
|
-
useSerieColor: !1,
|
|
353
|
-
stroke: l.value.style.chart.layout.bar.stroke,
|
|
354
|
-
strokeWidth: l.value.style.chart.layout.bar.strokeWidth
|
|
355
|
-
},
|
|
356
|
-
labels: {
|
|
357
|
-
show: !0,
|
|
358
|
-
color: _,
|
|
359
|
-
rounding: A
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}, ft = u >= 0 ? 0 : Math.abs(u), Yt = n + ft, Ne = g.dataset.header[v.value.col].isPercentage, yt = v.value.rows.map((R, Zt) => ({
|
|
363
|
-
x: a * Zt + a / 2,
|
|
364
|
-
y: (1 - (R.value + ft) / Yt) * e,
|
|
365
|
-
value: Ne ? R.value * 100 : R.value,
|
|
366
|
-
suffix: Ne ? "%" : g.dataset.header[v.value.col].suffix ? g.dataset.header[v.value.col].suffix : "",
|
|
367
|
-
prefix: g.dataset.header[v.value.col].prefix ? g.dataset.header[v.value.col].prefix : "",
|
|
368
|
-
index: R.index,
|
|
369
|
-
absoluteValue: Ne ? Math.abs(R.value) * 100 : Math.abs(R.value)
|
|
370
|
-
}));
|
|
371
|
-
return {
|
|
372
|
-
donutConfig: {
|
|
373
|
-
useCssAnimation: !1,
|
|
374
|
-
userOptions: {
|
|
375
|
-
position: "left",
|
|
376
|
-
buttons: {
|
|
377
|
-
pdf: !1,
|
|
378
|
-
csv: !1,
|
|
379
|
-
table: !1,
|
|
380
|
-
annotator: !1
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
style: {
|
|
384
|
-
chart: {
|
|
385
|
-
backgroundColor: te,
|
|
386
|
-
color: _,
|
|
387
|
-
layout: {
|
|
388
|
-
curvedMarkers: !0,
|
|
389
|
-
donut: {
|
|
390
|
-
strokeWidth: 64
|
|
391
|
-
},
|
|
392
|
-
labels: {
|
|
393
|
-
dataLabels: {
|
|
394
|
-
suffix: Ne ? "%" : "",
|
|
395
|
-
prefix: Z
|
|
396
|
-
},
|
|
397
|
-
value: {
|
|
398
|
-
rounding: A
|
|
399
|
-
},
|
|
400
|
-
percentage: {
|
|
401
|
-
color: _,
|
|
402
|
-
rounding: A
|
|
403
|
-
},
|
|
404
|
-
name: {
|
|
405
|
-
color: _
|
|
406
|
-
},
|
|
407
|
-
hollow: {
|
|
408
|
-
average: {
|
|
409
|
-
color: _,
|
|
410
|
-
text: l.value.translations.average,
|
|
411
|
-
value: {
|
|
412
|
-
color: _
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
total: {
|
|
416
|
-
color: _,
|
|
417
|
-
offsetY: -12,
|
|
418
|
-
text: l.value.translations.total,
|
|
419
|
-
value: {
|
|
420
|
-
color: _,
|
|
421
|
-
offsetY: -12
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
legend: {
|
|
428
|
-
backgroundColor: te,
|
|
429
|
-
color: _,
|
|
430
|
-
roundingValue: A,
|
|
431
|
-
roundingPercentage: A
|
|
432
|
-
},
|
|
433
|
-
padding: {
|
|
434
|
-
left: 12,
|
|
435
|
-
right: 12
|
|
436
|
-
},
|
|
437
|
-
title: {
|
|
438
|
-
text: Y,
|
|
439
|
-
color: _,
|
|
440
|
-
fontSize: 18
|
|
441
|
-
},
|
|
442
|
-
tooltip: {
|
|
443
|
-
backgroundOpacity: 30,
|
|
444
|
-
color: _,
|
|
445
|
-
backgroundColor: te,
|
|
446
|
-
roundingValue: A,
|
|
447
|
-
roundingValue: A
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
xyConfig: Xt,
|
|
453
|
-
xyDatasetLine: be,
|
|
454
|
-
xyDatasetBar: me,
|
|
455
|
-
progression: yt.length >= 2 ? ol(yt) : !1
|
|
456
|
-
};
|
|
457
|
-
});
|
|
458
|
-
function et() {
|
|
459
|
-
const e = F.value.options.map((t, o) => ({
|
|
460
|
-
name: t,
|
|
461
|
-
color: We[o] || We[o % We.length],
|
|
462
|
-
values: [
|
|
463
|
-
ne.value.filter(
|
|
464
|
-
(a, n) => a.td[F.value.index] === t && v.value.rows.map((u) => u.index).includes(n)
|
|
465
|
-
).map((a) => a.td[v.value.col]).reduce((a, n) => Math.abs(a) + Math.abs(n), 0)
|
|
466
|
-
],
|
|
467
|
-
absoluteValue: ne.value.filter(
|
|
468
|
-
(a, n) => a.td[F.value.index] === t && v.value.rows.map((u) => u.index).includes(n)
|
|
469
|
-
).map((a) => a.td[v.value.col]).reduce((a, n) => a + n, 0)
|
|
470
|
-
})).sort((t, o) => o.value - t.value);
|
|
471
|
-
we.value = e, ke(() => {
|
|
472
|
-
S.value.type = c.value.DONUT, I.value = !1;
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
function zt(e, t) {
|
|
476
|
-
return !E.value[e] && (t.isSort || t.isSearch || t.isMultiselect || t.rangeFilter) && ![c.value.DATE].includes(t.type);
|
|
477
|
-
}
|
|
478
|
-
function tt(e = "all") {
|
|
479
|
-
const t = g.dataset.header.map((u) => u.name), o = e === "all" ? N.value.map((u) => u.td) : ne.value.map((u) => u.td), a = [t].concat(o), n = nl(a);
|
|
480
|
-
sl({ csvContent: n, title: re.value });
|
|
481
|
-
}
|
|
482
|
-
function Ut() {
|
|
483
|
-
const e = document.getElementsByClassName("th-dropdown");
|
|
484
|
-
e.length && Array.from(e).forEach((t) => {
|
|
485
|
-
t.dataset.isOpen = !1;
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
function He(e, t) {
|
|
489
|
-
let o;
|
|
490
|
-
clearTimeout(o), o = setTimeout(e, t);
|
|
491
|
-
}
|
|
492
|
-
function q() {
|
|
493
|
-
const e = document.getElementsByClassName(`tr_${G}`);
|
|
494
|
-
Array.from(e).forEach((t) => {
|
|
495
|
-
Array.from(t.getElementsByTagName("td")).forEach((o) => {
|
|
496
|
-
o.dataset.row === "even" ? (o.style.background = l.value.style.rows.even.backgroundColor, o.style.color = l.value.style.rows.even.color) : (o.style.background = l.value.style.rows.odd.backgroundColor, o.style.color = l.value.style.rows.odd.color);
|
|
497
|
-
});
|
|
498
|
-
}), Array.from(e).forEach((t) => t.dataset.selected = "false"), k.value > $.value.length - 1 && (k.value = $.value.length - 1), X.value = !1, we.value = void 0, ue.value = void 0, S.value.type = c.value.BAR, v.value = {
|
|
499
|
-
col: void 0,
|
|
500
|
-
rows: []
|
|
501
|
-
}, _t.value = 100, St.value = 100;
|
|
502
|
-
}
|
|
503
|
-
function Ft(e, t) {
|
|
504
|
-
N.value = e.filter((o) => o.td[t] >= H.value[t].min && o[t] <= H.value[t].max);
|
|
505
|
-
}
|
|
506
|
-
function lt(e, t) {
|
|
507
|
-
if (w.value[t] === c.value.ASC && (e = e.sort((o, a) => o[t] - a[t])), w.value[t] === c.value.DESC)
|
|
508
|
-
e = e.sort((o, a) => a[t] - o[t]);
|
|
509
|
-
else
|
|
510
|
-
return 0;
|
|
511
|
-
}
|
|
512
|
-
function at() {
|
|
513
|
-
q(), Object.keys(H.value).forEach((e) => {
|
|
514
|
-
Ft(N.value, e);
|
|
515
|
-
}), Object.keys(w.value).forEach((e) => {
|
|
516
|
-
lt(N.value, e);
|
|
517
|
-
}), Ce.value !== void 0 && lt(N.value, Ce.value), g.dataset.header.forEach((e, t) => {
|
|
518
|
-
if (e.isPercentage) {
|
|
519
|
-
const o = J.value[t].referenceIndex, a = N.value.map((n) => n.td[o]).reduce((n, u) => n + u, 0);
|
|
520
|
-
N.value.forEach((n) => {
|
|
521
|
-
n.td[t] = n.td[o] / a;
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
}), k.value > $.value.length - 1 && (k.value = $.value.length - 1), [-1].includes(k.value) && (k.value = 0);
|
|
525
|
-
}
|
|
526
|
-
function Q() {
|
|
527
|
-
N.value = Le.value.filter((e) => {
|
|
528
|
-
for (const t in P.value)
|
|
529
|
-
if (!e.td[t].toUpperCase().includes(P.value[t].toUpperCase()))
|
|
530
|
-
return !1;
|
|
531
|
-
for (const t in C.value)
|
|
532
|
-
if (!C.value[t].some((a) => a === e.td[t]))
|
|
533
|
-
return !1;
|
|
534
|
-
for (const t in U.value) {
|
|
535
|
-
const o = new Date(e.td[t]), a = new Date(U.value[t].from), n = new Date(U.value[t].to);
|
|
536
|
-
if (o < a || o > n)
|
|
537
|
-
return !1;
|
|
538
|
-
}
|
|
539
|
-
return !0;
|
|
540
|
-
}), at();
|
|
541
|
-
}
|
|
542
|
-
function ot(e) {
|
|
543
|
-
return Qe.value.map((t) => t[e]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, o) => t + o, 0) / N.value.length;
|
|
544
|
-
}
|
|
545
|
-
function fe(e) {
|
|
546
|
-
const t = g.dataset.body.map((me) => new Date(me.td[e])), o = new Date(Math.min(...t)), a = new Date(Math.max(...t)), n = o.getFullYear(), u = a.getFullYear(), p = String(o.getMonth() + 1).padStart(2, "0"), O = String(a.getMonth() + 1).padStart(2, "0"), Y = String(o.getDate()).padStart(2, "0"), Z = String(a.getDate()).padStart(2, "0"), ee = `${n}-${p}-${Y}`, be = `${u}-${O}-${Z}`;
|
|
547
|
-
return {
|
|
548
|
-
from: ee,
|
|
549
|
-
to: be
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
function B(e) {
|
|
553
|
-
return [
|
|
554
|
-
...new Set(
|
|
555
|
-
g.dataset.body.map((t) => t.td[e])
|
|
556
|
-
)
|
|
557
|
-
];
|
|
558
|
-
}
|
|
559
|
-
function ce(e) {
|
|
560
|
-
return Qe.value.map((t) => t[e]).map((t) => isNaN(Number(t)) ? 0 : t).reduce((t, o) => t + o, 0);
|
|
561
|
-
}
|
|
562
|
-
function jt(e) {
|
|
563
|
-
return e.includes(NaN);
|
|
564
|
-
}
|
|
565
|
-
function nt(e, t) {
|
|
566
|
-
return C.value[t] ? C.value[t].includes(e) : !0;
|
|
567
|
-
}
|
|
568
|
-
function Vt(e) {
|
|
569
|
-
return !isNaN(Number(String(e).replaceAll("%", "")));
|
|
570
|
-
}
|
|
571
|
-
function st(e, t) {
|
|
572
|
-
const o = t.isSort, a = t.isSearch, n = t.isMultiselect && C.value[e], u = t.rangeFilter, p = (O) => {
|
|
573
|
-
if (u && H.value[O])
|
|
574
|
-
return Math.round(H.value[O].min) === W.value[O].min && Math.round(H.value[O].max) === W.value[O].max;
|
|
575
|
-
};
|
|
576
|
-
if (o && a && n && u)
|
|
577
|
-
return ["", void 0].includes(P.value[e]) && [void 0].includes(w.value[e]) && C.value[e].length === B(e).length && p(e);
|
|
578
|
-
if (o && a && n)
|
|
579
|
-
return ["", void 0].includes(P.value[e]) && [void 0].includes(w.value[e]) && C.value[e].length === B(e).length;
|
|
580
|
-
if (o && a && u)
|
|
581
|
-
return ["", void 0].includes(P.value[e]) && [void 0].includes(w.value[e]) && p(e);
|
|
582
|
-
if (o && a)
|
|
583
|
-
return ["", void 0].includes(P.value[e]) && [void 0].includes(w.value[e]);
|
|
584
|
-
if (o && n && u)
|
|
585
|
-
return [void 0].includes(w.value[e]) && C.value[e].length === B(e).length && p(e);
|
|
586
|
-
if (o && n)
|
|
587
|
-
return [void 0].includes(w.value[e]) && C.value[e].length === B(e).length;
|
|
588
|
-
if (a && n && u)
|
|
589
|
-
return ["", void 0].includes(P.value[e]) && C.value[e].length === B(e).length && p(e);
|
|
590
|
-
if (a && n)
|
|
591
|
-
return ["", void 0].includes(P.value[e]) && C.value[e].length === B(e).length;
|
|
592
|
-
if (a && u)
|
|
593
|
-
return ["", void 0].includes(P.value[e]) && p(e);
|
|
594
|
-
if (a)
|
|
595
|
-
return ["", void 0].includes(P.value[e]);
|
|
596
|
-
if (o && u)
|
|
597
|
-
return [void 0].includes(w.value[e]) && p(e);
|
|
598
|
-
if (o)
|
|
599
|
-
return [void 0].includes(w.value[e]);
|
|
600
|
-
if (n && u)
|
|
601
|
-
return C.value[e].length === B(e).length && p(e);
|
|
602
|
-
if (n)
|
|
603
|
-
return C.value[e].length === B(e).length;
|
|
604
|
-
}
|
|
605
|
-
function ut() {
|
|
606
|
-
return {
|
|
607
|
-
totalPages: $.value.length,
|
|
608
|
-
itemsPerPage: oe.value,
|
|
609
|
-
currentPage: k.value,
|
|
610
|
-
currentPageData: ne.value.map((e) => e.td)
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
$t({
|
|
614
|
-
getCurrentPageData: ut
|
|
615
|
-
});
|
|
616
|
-
function Be() {
|
|
617
|
-
Tt("page-change", ut());
|
|
618
|
-
}
|
|
619
|
-
const Re = f(null);
|
|
620
|
-
function _e(e) {
|
|
621
|
-
if (q(), e === "next" && k.value < $.value.length) {
|
|
622
|
-
if (k.value + 1 > $.value.length - 1)
|
|
623
|
-
return;
|
|
624
|
-
k.value += 1;
|
|
625
|
-
} else if (e === "previous" && k.value >= 1)
|
|
626
|
-
k.value -= 1;
|
|
627
|
-
else {
|
|
628
|
-
if (e - 1 < 0 || e > $.value.length || e === "previous")
|
|
629
|
-
return;
|
|
630
|
-
k.value = e - 1;
|
|
631
|
-
}
|
|
632
|
-
Be(), Re.value && Re.value.scrollTo({
|
|
633
|
-
top: 0,
|
|
634
|
-
left: 0,
|
|
635
|
-
behavior: "smooth"
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
function Wt(e) {
|
|
639
|
-
e.preventDefault();
|
|
640
|
-
const t = e.keyCode, o = 38, a = 40, n = 37, u = 39;
|
|
641
|
-
if (![o, a, n, u].includes(t)) return;
|
|
642
|
-
const p = e.target.id, O = /cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/, Y = p.match(O), Z = parseInt(Y[1]), ee = parseInt(Y[2]), be = document.getElementById(
|
|
643
|
-
`cell_${Z}_${ee + 1}_${G}`
|
|
644
|
-
), me = document.getElementById(
|
|
645
|
-
`cell_${Z}_${ee - 1}_${G}`
|
|
646
|
-
), te = document.getElementById(
|
|
647
|
-
`cell_${Z + 1}_${ee}_${G}`
|
|
648
|
-
), _ = document.getElementById(
|
|
649
|
-
`cell_${Z - 1}_${ee}_${G}`
|
|
650
|
-
);
|
|
651
|
-
let A;
|
|
652
|
-
switch (!0) {
|
|
653
|
-
case t === u:
|
|
654
|
-
A = be;
|
|
655
|
-
break;
|
|
656
|
-
case t === n:
|
|
657
|
-
A = me;
|
|
658
|
-
break;
|
|
659
|
-
case t === o:
|
|
660
|
-
A = _;
|
|
661
|
-
break;
|
|
662
|
-
case t === a:
|
|
663
|
-
A = te;
|
|
664
|
-
break;
|
|
665
|
-
default:
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
A && (A.focus(), A.scrollIntoView({ behavior: "smooth", block: "center" }));
|
|
669
|
-
}
|
|
670
|
-
function Jt(e) {
|
|
671
|
-
let t = 0;
|
|
672
|
-
for (let o = 0; o < e.length; o += 1)
|
|
673
|
-
t += e.charCodeAt(o);
|
|
674
|
-
return t;
|
|
675
|
-
}
|
|
676
|
-
async function rt() {
|
|
677
|
-
return new Promise((e) => {
|
|
678
|
-
const t = [];
|
|
679
|
-
K.value.forEach((o, a) => {
|
|
680
|
-
if (o.isSearch && Object.assign(P.value, { [a]: "" }), o.isMultiselect && Object.assign(C.value, {
|
|
681
|
-
[a]: B(a)
|
|
682
|
-
}), o.type === c.value.DATE && (Object.assign(U.value, { [a]: fe(a) }), Object.assign(pe.value, { [a]: !1 })), (o.isPercentage || o.percentageTo) && Object.assign(J.value, {
|
|
683
|
-
[a]: {
|
|
684
|
-
reference: o.percentageTo,
|
|
685
|
-
referenceIndex: g.dataset.header.map((n) => n.name).indexOf(o.percentageTo)
|
|
686
|
-
}
|
|
687
|
-
}), o.rangeFilter && (Object.assign(H.value, {
|
|
688
|
-
[a]: {
|
|
689
|
-
min: Math.round(
|
|
690
|
-
Math.min(
|
|
691
|
-
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
692
|
-
)
|
|
693
|
-
),
|
|
694
|
-
max: Math.round(
|
|
695
|
-
Math.max(
|
|
696
|
-
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
697
|
-
)
|
|
698
|
-
)
|
|
699
|
-
}
|
|
700
|
-
}), Object.assign(W.value, {
|
|
701
|
-
[a]: {
|
|
702
|
-
min: Math.round(
|
|
703
|
-
Math.min(
|
|
704
|
-
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
705
|
-
)
|
|
706
|
-
),
|
|
707
|
-
max: Math.round(
|
|
708
|
-
Math.max(
|
|
709
|
-
...g.dataset.body.map((n) => n.td).map((n) => n[a])
|
|
710
|
-
)
|
|
711
|
-
)
|
|
712
|
-
}
|
|
713
|
-
})), o.isPercentage) {
|
|
714
|
-
const n = g.dataset.header.map((p) => p.name).indexOf(o.percentageTo), u = g.dataset.body.map((p) => p.td[n]).reduce((p, O) => p + O, 0);
|
|
715
|
-
t.push([a, n, u]);
|
|
716
|
-
}
|
|
717
|
-
o.type === c.value.NUMERIC && !o.isPercentage && Object.assign(E.value, {
|
|
718
|
-
[a]: jt(
|
|
719
|
-
g.dataset.body.map((n) => Number(n.td[a]))
|
|
720
|
-
)
|
|
721
|
-
});
|
|
722
|
-
}), N.value.forEach((o, a) => {
|
|
723
|
-
t.map((n) => {
|
|
724
|
-
const [u, p, O] = n;
|
|
725
|
-
o.td[u] = o.td[p] / O;
|
|
726
|
-
}), o.td.forEach((n, u) => {
|
|
727
|
-
g.dataset.header[u].type === c.value.TEXT && g.dataset.header[u].isSearch && (o[u] = Jt(n)), g.dataset.header[u].type === c.value.DATE && (o[u] = new Date(n).getTime()), g.dataset.header[u].type === c.value.NUMERIC && (o[u] = isNaN(Number(n)) ? u : n), Le.value[a][u] = o[u];
|
|
728
|
-
});
|
|
729
|
-
}), e(!0);
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
function it(e, t) {
|
|
733
|
-
return new Promise((o, a) => {
|
|
734
|
-
e().then((n) => {
|
|
735
|
-
try {
|
|
736
|
-
const u = t(n);
|
|
737
|
-
o(u);
|
|
738
|
-
} catch (u) {
|
|
739
|
-
a(u);
|
|
740
|
-
}
|
|
741
|
-
}).catch((n) => {
|
|
742
|
-
a(n);
|
|
743
|
-
});
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
async function Kt(e) {
|
|
747
|
-
U.value[e] = {
|
|
748
|
-
from: fe(e).from,
|
|
749
|
-
to: fe(e).to
|
|
750
|
-
}, pe.value[e] = !1, await ke(), Q();
|
|
751
|
-
}
|
|
752
|
-
function ct(e, t, o) {
|
|
753
|
-
const a = o.currentTarget;
|
|
754
|
-
clearTimeout(se.value), a.classList.add("clicked"), se.value = setTimeout(() => {
|
|
755
|
-
a.classList.remove("clicked");
|
|
756
|
-
}, 200), Ce.value = void 0, t.rangeFilter && (H.value[e].min = W.value[e].min, H.value[e].max = W.value[e].max), t.isMultiselect ? (C.value[e] = B(e), t.type === c.value.TEXT && (w.value[e] = void 0), t.isSearch && (P.value[e] = "")) : t.type === c.value.NUMERIC ? w.value[e] = void 0 : t.type === c.value.TEXT ? (w.value[e] = void 0, P.value[e] = "") : t.type === c.value.DATE && (w.value[e] = void 0), Q();
|
|
757
|
-
}
|
|
758
|
-
function Se({ td: e, rowIndex: t, colIndex: o, headerType: a, event: n }) {
|
|
759
|
-
if (a !== c.value.NUMERIC || isNaN(Number(e))) {
|
|
760
|
-
q();
|
|
761
|
-
return;
|
|
762
|
-
}
|
|
763
|
-
v.value.col !== o && q();
|
|
764
|
-
const u = n.currentTarget.parentNode;
|
|
765
|
-
v.value.col = o, v.value.rows.map((p) => p.index).includes(t) ? (u.dataset.selected = "false", v.value.rows = v.value.rows.filter(
|
|
766
|
-
(p) => p.index !== t
|
|
767
|
-
), n.currentTarget.classList.remove(Nt.value.CELL), Array.from(u.children).forEach((p, O) => {
|
|
768
|
-
p.dataset.row === "even" ? (p.style.background = l.value.style.rows.even.backgroundColor, p.style.color = l.value.style.rows.even.olor) : (p.style.background = l.value.style.rows.odd.backgroundColor, p.style.color = l.value.style.rows.odd.color);
|
|
769
|
-
}), n.currentTarget.dataset.row === "even" ? (n.currentTarget.style.background = l.value.style.rows.even.backgroundColor, n.currentTarget.style.color = l.value.style.rows.even.color) : (n.currentTarget.style.background = l.value.style.rows.odd.backgroundColor, n.currentTarget.style.color = l.value.style.rows.odd.color)) : (u.dataset.selected = "true", v.value.rows.push({
|
|
770
|
-
index: t,
|
|
771
|
-
value: e
|
|
772
|
-
}), Array.from(u.children).forEach((p, O) => {
|
|
773
|
-
p.dataset.row === "even" ? (p.style.background = l.value.style.rows.even.selectedNeighbors.backgroundColor, p.style.color = l.value.style.rows.even.selectedNeighbors.color) : (p.style.background = l.value.style.rows.odd.selectedNeighbors.backgroundColor, p.style.color = l.value.style.rows.odd.selectedNeighbors.color);
|
|
774
|
-
}), n.currentTarget.dataset.row === "odd" ? (n.currentTarget.style.background = l.value.style.rows.odd.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.odd.selectedCell.color) : (n.currentTarget.style.background = l.value.style.rows.even.selectedCell.backgroundColor, n.currentTarget.style.color = l.value.style.rows.even.selectedCell.color)), v.value.rows = v.value.rows.sort(
|
|
775
|
-
(p, O) => p.index - O.index
|
|
776
|
-
), S.value.type === c.value.DONUT && v.value.rows.length > 0 && et();
|
|
777
|
-
}
|
|
778
|
-
function vt(e) {
|
|
779
|
-
v.value.col !== e ? (ne.value.forEach((t, o) => {
|
|
780
|
-
Se({
|
|
781
|
-
td: t.td[e],
|
|
782
|
-
rowIndex: o,
|
|
783
|
-
colIndex: e,
|
|
784
|
-
headerType: c.value.NUMERIC,
|
|
785
|
-
event: {
|
|
786
|
-
currentTarget: document.getElementById(
|
|
787
|
-
`cell_${o}_${e}_${G}`
|
|
788
|
-
)
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
}), ue.value = e) : (ue.value = void 0, q());
|
|
792
|
-
}
|
|
793
|
-
async function ze(e, t) {
|
|
794
|
-
C.value[t].includes(e) ? C.value[t] = C.value[t].filter(
|
|
795
|
-
(o) => o !== e
|
|
796
|
-
) : C.value[t].push(e), await ke(), Q();
|
|
797
|
-
}
|
|
798
|
-
function dt(e) {
|
|
799
|
-
pe.value[e] = !(fe(e).from === U.value[e].from && fe(e).to === U.value[e].to);
|
|
800
|
-
}
|
|
801
|
-
function ht(e, t) {
|
|
802
|
-
Ce.value = e;
|
|
803
|
-
const o = t.currentTarget;
|
|
804
|
-
clearTimeout(se.value), o.classList.add("clicked"), se.value = setTimeout(() => {
|
|
805
|
-
o.classList.remove("clicked");
|
|
806
|
-
}, 200), w.value[e] === 1 ? w.value[e] = c.value.DESC : w.value[e] = c.value.ASC, at();
|
|
807
|
-
}
|
|
808
|
-
function gt(e, t, o) {
|
|
809
|
-
const a = o.currentTarget;
|
|
810
|
-
clearTimeout(se.value), a.classList.add("clicked"), se.value = setTimeout(() => {
|
|
811
|
-
a.classList.remove("clicked");
|
|
812
|
-
}, 200);
|
|
813
|
-
const n = document.getElementById(`th_dropdown_${e}`);
|
|
814
|
-
n.dataset.isOpen === "false" ? n.dataset.isOpen = "true" : n.dataset.isOpen = "false";
|
|
815
|
-
}
|
|
816
|
-
function pt(e) {
|
|
817
|
-
q(), !e || !e.target.value ? k.value = 0 : k.value = Number(e.target.value), Be();
|
|
818
|
-
}
|
|
819
|
-
const ye = f(null);
|
|
820
|
-
Qt(() => {
|
|
821
|
-
if (g.dataset.header.length === 0)
|
|
822
|
-
throw new Error(
|
|
823
|
-
`vue-ui-table error: missing header data.
|
|
824
|
-
Provide an array of objects of type:
|
|
825
|
-
{
|
|
826
|
-
name: string;
|
|
827
|
-
type: string; ('text' | 'numeric' | 'date')
|
|
828
|
-
average: boolean;
|
|
829
|
-
decimals: number | undefined;
|
|
830
|
-
sum: boolean;
|
|
831
|
-
isSort:boolean;
|
|
832
|
-
isSearch: boolean;
|
|
833
|
-
isMultiselect: boolean;
|
|
834
|
-
isPercentage: boolean;
|
|
835
|
-
percentageTo: string; (or '')
|
|
836
|
-
}`
|
|
837
|
-
);
|
|
838
|
-
if (g.dataset.body.length === 0)
|
|
839
|
-
throw new Error("vue-ui-table error: missing body data");
|
|
840
|
-
$e.value = !0, it(rt, async () => {
|
|
841
|
-
await ke(), $e.value = !1;
|
|
842
|
-
}), document.addEventListener("keydown", (e) => {
|
|
843
|
-
const t = document.activeElement;
|
|
844
|
-
(t && Array.from(t.classList).includes("td-focusable") && e.key.includes("Arrow") || e.code === "Space") && e.preventDefault();
|
|
845
|
-
}), re.value = l.value.style.exportMenu.filename, Me.value = Ie.value[0]?.name ?? "";
|
|
846
|
-
}), Fe(
|
|
847
|
-
() => g.dataset,
|
|
848
|
-
(e) => {
|
|
849
|
-
$e.value = !0, N.value = JSON.parse(JSON.stringify(e.body)).map(
|
|
850
|
-
(t, o) => ({
|
|
851
|
-
...t,
|
|
852
|
-
absoluteIndex: o
|
|
853
|
-
})
|
|
854
|
-
), Le.value = JSON.parse(JSON.stringify(e.body)).map(
|
|
855
|
-
(t, o) => ({
|
|
856
|
-
...t,
|
|
857
|
-
absoluteIndex: o
|
|
858
|
-
})
|
|
859
|
-
), K.value = JSON.parse(JSON.stringify(e.header)).map(
|
|
860
|
-
(t, o) => ({
|
|
861
|
-
average: Object.hasOwn(t, "average") ? t.average : !1,
|
|
862
|
-
decimals: Object.hasOwn(t, "decimals") ? t.decimals : 0,
|
|
863
|
-
isMultiselect: Object.hasOwn(t, "isMultiselect") ? t.isMultiselect : !1,
|
|
864
|
-
isPercentage: Object.hasOwn(t, "isPercentage") ? t.isPercentage : !1,
|
|
865
|
-
isSearch: Object.hasOwn(t, "isSearch") ? t.isSearch : !1,
|
|
866
|
-
isSort: Object.hasOwn(t, "isSort") ? t.isSort : !1,
|
|
867
|
-
name: t.name,
|
|
868
|
-
percentageTo: Object.hasOwn(t, "percentageTo") ? t.percentageTo : void 0,
|
|
869
|
-
prefix: Object.hasOwn(t, "prefix") ? t.prefix : "",
|
|
870
|
-
rangeFilter: Object.hasOwn(t, "rangeFilter") ? t.rangeFilter : !1,
|
|
871
|
-
suffix: Object.hasOwn(t, "suffix") ? t.suffix : "",
|
|
872
|
-
sum: Object.hasOwn(t, "sum") ? t.sum : !1,
|
|
873
|
-
type: t.type,
|
|
874
|
-
index: o
|
|
875
|
-
})
|
|
876
|
-
), v.value = { col: void 0, rows: [] }, ue.value = void 0, oe.value = g.config.rowsPerPage ? g.config.rowsPerPage : 25, J.value = {}, U.value = {}, pe.value = {}, E.value = {}, W.value = {}, H.value = {}, C.value = {}, P.value = {}, w.value = {}, X.value = !1, we.value = void 0, F.value = void 0, Lt.value = void 0, I.value = !1, v.value.col = void 0, v.value.rows = [], it(rt, async () => {
|
|
877
|
-
pt(), await ke(), $e.value = !1;
|
|
878
|
-
});
|
|
879
|
-
},
|
|
880
|
-
{ immediate: !0, deep: !0 }
|
|
881
|
-
);
|
|
882
|
-
const Ue = f(null);
|
|
883
|
-
return Fe(ge, (e) => {
|
|
884
|
-
e && Ue.value && Ue.value.focus();
|
|
885
|
-
}), Fe(X, (e) => {
|
|
886
|
-
e ? ye.value && ye.value.open() : ye.value && ye.value.close();
|
|
887
|
-
}), (e, t) => (r(), i("div", {
|
|
888
|
-
class: "vue-data-ui-component vue-ui-table-main",
|
|
889
|
-
style: h(`font-family: ${l.value.fontFamily}`)
|
|
890
|
-
}, [
|
|
891
|
-
l.value.style.exportMenu.show ? (r(), i("div", {
|
|
892
|
-
key: 0,
|
|
893
|
-
class: "vue-ui-table-export-hub",
|
|
894
|
-
style: h({ top: Xe.value + "px" })
|
|
895
|
-
}, [
|
|
896
|
-
s("button", {
|
|
897
|
-
onClick: t[0] || (t[0] = (o) => ge.value = !ge.value),
|
|
898
|
-
innerHTML: M.value.export,
|
|
899
|
-
style: h(`background:${l.value.style.exportMenu.backgroundColor};color:${l.value.style.exportMenu.color};cursor:${T.value ? "pointer" : "default"}`)
|
|
900
|
-
}, null, 12, vl),
|
|
901
|
-
s("div", {
|
|
902
|
-
class: "vue-ui-table-export-hub-dropdown",
|
|
903
|
-
"data-is-open": ge.value || "false",
|
|
904
|
-
style: h(`background:${l.value.style.exportMenu.backgroundColor};color:${l.value.style.exportMenu.color}`)
|
|
905
|
-
}, [
|
|
906
|
-
t[24] || (t[24] = s("b", { class: "vue-ui-table-export-hub-title" }, " Export ", -1)),
|
|
907
|
-
s("button", {
|
|
908
|
-
class: "close-dropdown",
|
|
909
|
-
onClick: t[1] || (t[1] = (o) => ge.value = !1),
|
|
910
|
-
style: h(`background:${l.value.style.closeButtons.backgroundColor};color:${l.value.style.closeButtons.color};border-radius:${l.value.style.closeButtons.borderRadius}`)
|
|
911
|
-
}, " ✖ ", 4),
|
|
912
|
-
s("div", hl, [
|
|
913
|
-
s("div", gl, [
|
|
914
|
-
s("div", pl, d(l.value.translations.exportAllLabel) + " (" + d(N.value.length) + ") ", 1),
|
|
915
|
-
s("button", {
|
|
916
|
-
id: "exportAll",
|
|
917
|
-
onClick: t[2] || (t[2] = (o) => tt("all")),
|
|
918
|
-
style: h(`background:${l.value.style.exportMenu.buttons.backgroundColor};color:${l.value.style.exportMenu.buttons.color};cursor:${T.value ? "pointer" : "default"}`)
|
|
919
|
-
}, [
|
|
920
|
-
s("div", {
|
|
921
|
-
innerHTML: M.value.fileDownload
|
|
922
|
-
}, null, 8, fl),
|
|
923
|
-
s("span", null, d(l.value.translations.exportAllButton), 1)
|
|
924
|
-
], 4)
|
|
925
|
-
]),
|
|
926
|
-
s("div", yl, [
|
|
927
|
-
s("div", bl, d(l.value.translations.exportPageLabel), 1),
|
|
928
|
-
s("button", {
|
|
929
|
-
id: "exportPage",
|
|
930
|
-
onClick: t[3] || (t[3] = (o) => tt("page")),
|
|
931
|
-
style: h(`background:${l.value.style.exportMenu.buttons.backgroundColor};color:${l.value.style.exportMenu.buttons.color};cursor:${T.value ? "pointer" : "default"}`)
|
|
932
|
-
}, [
|
|
933
|
-
s("div", {
|
|
934
|
-
innerHTML: M.value.fileDownload
|
|
935
|
-
}, null, 8, ml),
|
|
936
|
-
s("span", null, d(l.value.translations.exportPageButton), 1)
|
|
937
|
-
], 4)
|
|
938
|
-
]),
|
|
939
|
-
s("div", kl, [
|
|
940
|
-
s("label", wl, [
|
|
941
|
-
s("span", Cl, d(l.value.translations.filename), 1),
|
|
942
|
-
le(s("input", {
|
|
943
|
-
name: "filename",
|
|
944
|
-
ref_key: "filenameInputRef",
|
|
945
|
-
ref: Ue,
|
|
946
|
-
onKeydown: t[4] || (t[4] = ve(de(() => {
|
|
947
|
-
}, ["stop"]), ["space"])),
|
|
948
|
-
pattern: ".*",
|
|
949
|
-
class: "vue-ui-table-dialog-input",
|
|
950
|
-
type: "text",
|
|
951
|
-
"onUpdate:modelValue": t[5] || (t[5] = (o) => re.value = o)
|
|
952
|
-
}, null, 544), [
|
|
953
|
-
[he, re.value]
|
|
954
|
-
])
|
|
955
|
-
]),
|
|
956
|
-
re.value ? (r(), i("button", {
|
|
957
|
-
key: 0,
|
|
958
|
-
class: "vue-ui-table-dialog-field-button",
|
|
959
|
-
onClick: t[6] || (t[6] = (o) => re.value = ""),
|
|
960
|
-
style: h({
|
|
961
|
-
cursor: T.value ? "pointer" : "default"
|
|
962
|
-
})
|
|
963
|
-
}, [
|
|
964
|
-
je(il, {
|
|
965
|
-
name: "close",
|
|
966
|
-
stroke: l.value.style.exportMenu.color,
|
|
967
|
-
size: 18
|
|
968
|
-
}, null, 8, ["stroke"])
|
|
969
|
-
], 4)) : b("", !0)
|
|
970
|
-
])
|
|
971
|
-
])
|
|
972
|
-
], 12, dl)
|
|
973
|
-
], 4)) : b("", !0),
|
|
974
|
-
s("div", {
|
|
975
|
-
class: "vue-ui-table__wrapper",
|
|
976
|
-
style: h(`max-height:${l.value.maxHeight}px`),
|
|
977
|
-
ref_key: "tableWrapper",
|
|
978
|
-
ref: Re
|
|
979
|
-
}, [
|
|
980
|
-
s("table", $l, [
|
|
981
|
-
l.value.style.title.text ? (r(), i("caption", {
|
|
982
|
-
key: 0,
|
|
983
|
-
class: "vue-ui-table__caption",
|
|
984
|
-
ref_key: "tableCaption",
|
|
985
|
-
ref: Oe,
|
|
986
|
-
style: h({
|
|
987
|
-
textAlign: l.value.style.title.textAlign,
|
|
988
|
-
paddingLeft: l.value.style.title.paddingLeft + "px",
|
|
989
|
-
paddingRight: l.value.style.title.paddingRight + "px",
|
|
990
|
-
backgroundColor: l.value.style.title.backgroundColor,
|
|
991
|
-
boxShadow: `${l.value.style.title.backgroundColor} -1px 0px 0px 0px`
|
|
992
|
-
})
|
|
993
|
-
}, [
|
|
994
|
-
s("span", {
|
|
995
|
-
style: h({
|
|
996
|
-
fontSize: l.value.style.title.fontSize + "px",
|
|
997
|
-
fontWeight: l.value.style.title.bold ? "bold" : "normal",
|
|
998
|
-
color: l.value.style.title.color
|
|
999
|
-
})
|
|
1000
|
-
}, d(l.value.style.title.text), 5),
|
|
1001
|
-
l.value.style.title.subtitle.text ? (r(), i(L, { key: 0 }, [
|
|
1002
|
-
t[25] || (t[25] = s("br", null, null, -1)),
|
|
1003
|
-
s("span", {
|
|
1004
|
-
style: h({
|
|
1005
|
-
fontSize: l.value.style.title.subtitle.fontSize,
|
|
1006
|
-
fontWeight: l.value.style.title.subtitle.bold ? "bold" : "normal",
|
|
1007
|
-
color: l.value.style.title.subtitle.color
|
|
1008
|
-
})
|
|
1009
|
-
}, d(l.value.style.title.subtitle.text), 5)
|
|
1010
|
-
], 64)) : b("", !0)
|
|
1011
|
-
], 4)) : b("", !0),
|
|
1012
|
-
s("thead", {
|
|
1013
|
-
id: "tableHead",
|
|
1014
|
-
class: "vue-ui-table__head",
|
|
1015
|
-
style: h({
|
|
1016
|
-
background: l.value.style.th.backgroundColor,
|
|
1017
|
-
boxShadow: `-1px 0 0 ${l.value.style.th.backgroundColor}`,
|
|
1018
|
-
top: Xe.value - 3 + "px"
|
|
1019
|
-
})
|
|
1020
|
-
}, [
|
|
1021
|
-
s("tr", null, [
|
|
1022
|
-
t[26] || (t[26] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1023
|
-
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1024
|
-
key: `thead_${a}`,
|
|
1025
|
-
style: h(`overflow: visible;background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`),
|
|
1026
|
-
class: D({ "th-has-nan": E.value[a] })
|
|
1027
|
-
}, [
|
|
1028
|
-
qe.value && ([c.value.TEXT, c.value.DATE].includes(
|
|
1029
|
-
o.type
|
|
1030
|
-
) || o.isPercentage) ? (r(), i("span", Ml, [
|
|
1031
|
-
z(d(o.name) + " ", 1),
|
|
1032
|
-
o.isPercentage ? (r(), i("span", xl, " / " + d(o.percentageTo), 1)) : b("", !0)
|
|
1033
|
-
])) : (r(), i("span", Tl, d(o.name), 1))
|
|
1034
|
-
], 6))), 128))
|
|
1035
|
-
]),
|
|
1036
|
-
qe.value ? (r(), i(L, { key: 0 }, [
|
|
1037
|
-
s("tr", null, [
|
|
1038
|
-
t[27] || (t[27] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1039
|
-
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1040
|
-
key: `thead_${a}`,
|
|
1041
|
-
class: D({
|
|
1042
|
-
"th-numeric": !0,
|
|
1043
|
-
"th-has-nan": E.value[a]
|
|
1044
|
-
}),
|
|
1045
|
-
style: h(`background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
1046
|
-
}, [
|
|
1047
|
-
o.sum && !E.value[a] ? (r(), i("span", _l, [
|
|
1048
|
-
s("span", {
|
|
1049
|
-
innerHTML: M.value.sum,
|
|
1050
|
-
style: { "margin-bottom": "-4px", "margin-right": "3px" }
|
|
1051
|
-
}, null, 8, Sl),
|
|
1052
|
-
z(" " + d(V(ae)({
|
|
1053
|
-
p: o.prefix,
|
|
1054
|
-
v: Number(ce(a)),
|
|
1055
|
-
s: o.suffix,
|
|
1056
|
-
r: o.decimals
|
|
1057
|
-
})) + " ", 1),
|
|
1058
|
-
J.value[a] && o.percentageTo && !o.isPercentage ? (r(), i("span", Nl, " (" + d(isNaN(
|
|
1059
|
-
ce(a) / ce(
|
|
1060
|
-
J.value[a].referenceIndex
|
|
1061
|
-
)
|
|
1062
|
-
) ? "-" : V(ae)({
|
|
1063
|
-
v: ce(a) / ce(
|
|
1064
|
-
J.value[a].referenceIndex
|
|
1065
|
-
) * 100,
|
|
1066
|
-
s: "%",
|
|
1067
|
-
r: o.decimals
|
|
1068
|
-
})) + ") ", 1)) : b("", !0)
|
|
1069
|
-
])) : b("", !0)
|
|
1070
|
-
], 6))), 128))
|
|
1071
|
-
]),
|
|
1072
|
-
s("tr", null, [
|
|
1073
|
-
t[28] || (t[28] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1074
|
-
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1075
|
-
key: `thead_${a}`,
|
|
1076
|
-
class: D({
|
|
1077
|
-
"th-numeric": !0,
|
|
1078
|
-
"th-has-nan": E.value[a]
|
|
1079
|
-
}),
|
|
1080
|
-
style: h(`background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
1081
|
-
}, [
|
|
1082
|
-
o.average && !E.value[a] ? (r(), i("span", Ol, " ~ " + d(isNaN(ot(a)) ? "" : V(ae)({
|
|
1083
|
-
p: o.prefix,
|
|
1084
|
-
v: Number(ot(a)),
|
|
1085
|
-
s: o.suffix,
|
|
1086
|
-
r: o.decimals
|
|
1087
|
-
})), 1)) : b("", !0)
|
|
1088
|
-
], 6))), 128))
|
|
1089
|
-
]),
|
|
1090
|
-
s("tr", null, [
|
|
1091
|
-
t[31] || (t[31] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1092
|
-
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1093
|
-
key: `thead_${a}`,
|
|
1094
|
-
class: D({ "th-has-nan": E.value[a] }),
|
|
1095
|
-
style: h(`background:${l.value.style.th.backgroundColor};color:${l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
1096
|
-
}, [
|
|
1097
|
-
s("div", Ll, [
|
|
1098
|
-
o.type === c.value.DATE && U.value[a] ? (r(), i("div", Dl, [
|
|
1099
|
-
s("div", El, [
|
|
1100
|
-
s("div", Il, [
|
|
1101
|
-
s("label", {
|
|
1102
|
-
for: `from_${a}`
|
|
1103
|
-
}, d(l.value.translations.from), 9, Al),
|
|
1104
|
-
le(s("input", {
|
|
1105
|
-
id: `from_${a}`,
|
|
1106
|
-
type: "date",
|
|
1107
|
-
"onUpdate:modelValue": (n) => U.value[a].from = n,
|
|
1108
|
-
onInput: (n) => {
|
|
1109
|
-
Q(), dt(
|
|
1110
|
-
a
|
|
1111
|
-
);
|
|
1112
|
-
},
|
|
1113
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1114
|
-
}, null, 44, Pl), [
|
|
1115
|
-
[he, U.value[a].from]
|
|
1116
|
-
])
|
|
1117
|
-
]),
|
|
1118
|
-
s("div", Hl, [
|
|
1119
|
-
s("label", {
|
|
1120
|
-
for: `to_${a}`
|
|
1121
|
-
}, d(l.value.translations.to), 9, Bl),
|
|
1122
|
-
le(s("input", {
|
|
1123
|
-
id: `to_${a}`,
|
|
1124
|
-
type: "date",
|
|
1125
|
-
"onUpdate:modelValue": (n) => U.value[a].to = n,
|
|
1126
|
-
onInput: (n) => {
|
|
1127
|
-
Q(), dt(
|
|
1128
|
-
a
|
|
1129
|
-
);
|
|
1130
|
-
},
|
|
1131
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1132
|
-
}, null, 44, Rl), [
|
|
1133
|
-
[he, U.value[a].to]
|
|
1134
|
-
])
|
|
1135
|
-
])
|
|
1136
|
-
]),
|
|
1137
|
-
s("div", zl, [
|
|
1138
|
-
o.isSort ? (r(), i("button", {
|
|
1139
|
-
key: 0,
|
|
1140
|
-
onClick: (n) => ht(a, n),
|
|
1141
|
-
class: D({
|
|
1142
|
-
"th-button-active": [
|
|
1143
|
-
c.value.DESC,
|
|
1144
|
-
c.value.ASC
|
|
1145
|
-
].includes(w.value[a])
|
|
1146
|
-
}),
|
|
1147
|
-
style: h(`cursor:${T.value ? "pointer" : "default"}; background:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1148
|
-
}, [
|
|
1149
|
-
w.value[a] === c.value.ASC ? (r(), i("span", {
|
|
1150
|
-
key: 0,
|
|
1151
|
-
innerHTML: [
|
|
1152
|
-
c.value.DATE
|
|
1153
|
-
].includes(o.type) ? M.value.sort09 : M.value.sortAZ
|
|
1154
|
-
}, null, 8, Fl)) : w.value[a] === c.value.DESC ? (r(), i("span", {
|
|
1155
|
-
key: 1,
|
|
1156
|
-
innerHTML: [
|
|
1157
|
-
c.value.DATE
|
|
1158
|
-
].includes(o.type) ? M.value.sort90 : M.value.sortZA
|
|
1159
|
-
}, null, 8, jl)) : (r(), i("span", {
|
|
1160
|
-
key: 2,
|
|
1161
|
-
innerHTML: M.value.arrowSort
|
|
1162
|
-
}, null, 8, Vl))
|
|
1163
|
-
], 14, Ul)) : b("", !0),
|
|
1164
|
-
s("button", {
|
|
1165
|
-
onClick: (n) => {
|
|
1166
|
-
Kt(a), ct(
|
|
1167
|
-
a,
|
|
1168
|
-
o,
|
|
1169
|
-
n
|
|
1170
|
-
);
|
|
1171
|
-
},
|
|
1172
|
-
disabled: !pe.value[a] && st(a, o),
|
|
1173
|
-
class: "th-reset",
|
|
1174
|
-
style: h({
|
|
1175
|
-
cursor: T.value ? "pointer" : "default"
|
|
1176
|
-
})
|
|
1177
|
-
}, " ✖ ", 12, Wl)
|
|
1178
|
-
])
|
|
1179
|
-
])) : b("", !0),
|
|
1180
|
-
o.isSearch ? le((r(), i("input", {
|
|
1181
|
-
key: 1,
|
|
1182
|
-
placeholder: l.value.translations.inputPlaceholder,
|
|
1183
|
-
"onUpdate:modelValue": (n) => P.value[a] = n,
|
|
1184
|
-
onInput: t[7] || (t[7] = (n) => He(Q, 400)),
|
|
1185
|
-
name: `search_${a}`,
|
|
1186
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1187
|
-
}, null, 44, Jl)), [
|
|
1188
|
-
[he, P.value[a]]
|
|
1189
|
-
]) : b("", !0),
|
|
1190
|
-
!E.value[a] && o.isSort && o.type !== c.value.DATE ? (r(), i("button", {
|
|
1191
|
-
key: 2,
|
|
1192
|
-
onClick: (n) => ht(a, n),
|
|
1193
|
-
class: D({
|
|
1194
|
-
"th-button-active": [
|
|
1195
|
-
c.value.DESC,
|
|
1196
|
-
c.value.ASC
|
|
1197
|
-
].includes(w.value[a])
|
|
1198
|
-
}),
|
|
1199
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${[c.value.DESC, c.value.ASC].includes(w.value[a]) ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1200
|
-
}, [
|
|
1201
|
-
w.value[a] === c.value.ASC ? (r(), i("span", {
|
|
1202
|
-
key: 0,
|
|
1203
|
-
innerHTML: [c.value.NUMERIC].includes(
|
|
1204
|
-
o.type
|
|
1205
|
-
) ? M.value.sort09 : M.value.sortZA
|
|
1206
|
-
}, null, 8, Xl)) : w.value[a] === c.value.DESC ? (r(), i("span", {
|
|
1207
|
-
key: 1,
|
|
1208
|
-
innerHTML: [c.value.NUMERIC].includes(
|
|
1209
|
-
o.type
|
|
1210
|
-
) ? M.value.sort90 : M.value.sortAZ
|
|
1211
|
-
}, null, 8, Yl)) : (r(), i("span", {
|
|
1212
|
-
key: 2,
|
|
1213
|
-
innerHTML: M.value.arrowSort
|
|
1214
|
-
}, null, 8, Zl))
|
|
1215
|
-
], 14, Kl)) : b("", !0),
|
|
1216
|
-
o.isMultiselect ? (r(), i("button", {
|
|
1217
|
-
key: 3,
|
|
1218
|
-
onClick: (n) => gt(a, o, n),
|
|
1219
|
-
innerHTML: M.value.filter,
|
|
1220
|
-
class: D({
|
|
1221
|
-
"th-button-active": C.value[a] && C.value[a].length !== B(a).length
|
|
1222
|
-
}),
|
|
1223
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${C.value[a] && C.value[a].length !== B(a).length ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${C.value[a] && C.value[a].length !== B(a).length ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1224
|
-
}, null, 14, Gl)) : b("", !0),
|
|
1225
|
-
v.value.col === a && Ge.value ? (r(), i("button", {
|
|
1226
|
-
key: 4,
|
|
1227
|
-
onClick: t[8] || (t[8] = (n) => X.value = !X.value),
|
|
1228
|
-
innerHTML: M.value.chart,
|
|
1229
|
-
class: D({
|
|
1230
|
-
"th-button-active": X.value
|
|
1231
|
-
}),
|
|
1232
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${X.value ? "" : l.value.style.th.buttons.filter.inactive.backgroundColor};color:${X.value ? "" : l.value.style.th.buttons.filter.inactive.color}`)
|
|
1233
|
-
}, null, 14, ql)) : b("", !0),
|
|
1234
|
-
o.rangeFilter && H.value[a] && !E.value[a] ? (r(), i("div", Ql, [
|
|
1235
|
-
s("label", {
|
|
1236
|
-
for: `rangeMin${a}`
|
|
1237
|
-
}, [...t[29] || (t[29] = [
|
|
1238
|
-
s("span", { style: { color: "grey" } }, "ᒥ", -1),
|
|
1239
|
-
z(" min ", -1),
|
|
1240
|
-
s("span", { style: { color: "grey" } }, "ᒣ", -1)
|
|
1241
|
-
])], 8, ea),
|
|
1242
|
-
le(s("input", {
|
|
1243
|
-
type: "number",
|
|
1244
|
-
id: `rangeMin${a}`,
|
|
1245
|
-
max: W.value[a].max,
|
|
1246
|
-
min: W.value[a].min,
|
|
1247
|
-
"onUpdate:modelValue": (n) => H.value[a].min = n,
|
|
1248
|
-
onInput: t[9] || (t[9] = (n) => He(Q, 400)),
|
|
1249
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1250
|
-
}, null, 44, ta), [
|
|
1251
|
-
[
|
|
1252
|
-
he,
|
|
1253
|
-
H.value[a].min,
|
|
1254
|
-
void 0,
|
|
1255
|
-
{ number: !0 }
|
|
1256
|
-
]
|
|
1257
|
-
]),
|
|
1258
|
-
le(s("input", {
|
|
1259
|
-
type: "number",
|
|
1260
|
-
id: `rangeMax${a}`,
|
|
1261
|
-
max: W.value[a].max,
|
|
1262
|
-
min: W.value[a].min,
|
|
1263
|
-
"onUpdate:modelValue": (n) => H.value[a].max = n,
|
|
1264
|
-
onInput: t[10] || (t[10] = (n) => He(Q, 400)),
|
|
1265
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1266
|
-
}, null, 44, la), [
|
|
1267
|
-
[
|
|
1268
|
-
he,
|
|
1269
|
-
H.value[a].max,
|
|
1270
|
-
void 0,
|
|
1271
|
-
{ number: !0 }
|
|
1272
|
-
]
|
|
1273
|
-
]),
|
|
1274
|
-
s("label", {
|
|
1275
|
-
for: `rangeMax${a}`
|
|
1276
|
-
}, [...t[30] || (t[30] = [
|
|
1277
|
-
s("span", { style: { color: "grey" } }, "ᒪ", -1),
|
|
1278
|
-
z(" max ", -1),
|
|
1279
|
-
s("span", { style: { color: "grey" } }, "ᒧ", -1)
|
|
1280
|
-
])], 8, aa)
|
|
1281
|
-
])) : b("", !0),
|
|
1282
|
-
zt(a, o) ? (r(), i("button", {
|
|
1283
|
-
key: 6,
|
|
1284
|
-
onClick: (n) => ct(a, o, n),
|
|
1285
|
-
disabled: st(a, o),
|
|
1286
|
-
class: "th-reset",
|
|
1287
|
-
style: h({
|
|
1288
|
-
cursor: T.value ? "pointer" : "default"
|
|
1289
|
-
})
|
|
1290
|
-
}, " ✖ ", 12, oa)) : b("", !0),
|
|
1291
|
-
o.isMultiselect ? (r(), i("div", {
|
|
1292
|
-
key: 7,
|
|
1293
|
-
class: "th-dropdown",
|
|
1294
|
-
"data-is-open": "false",
|
|
1295
|
-
id: `th_dropdown_${a}`,
|
|
1296
|
-
style: h(`background:${l.value.style.dropdowns.backgroundColor};color:${l.value.style.dropdowns.color}`)
|
|
1297
|
-
}, [
|
|
1298
|
-
s("button", {
|
|
1299
|
-
class: "close-dropdown",
|
|
1300
|
-
onClick: (n) => gt(a, o, n),
|
|
1301
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.closeButtons.backgroundColor};color:${l.value.style.closeButtons.color}`)
|
|
1302
|
-
}, " ✖ ", 12, sa),
|
|
1303
|
-
(r(!0), i(L, null, j(B(a), (n, u) => (r(), i("span", {
|
|
1304
|
-
class: "th-option",
|
|
1305
|
-
key: `th_option_${a}_${u}`,
|
|
1306
|
-
onClick: (p) => ze(n, a),
|
|
1307
|
-
onKeyup: [
|
|
1308
|
-
ve((p) => ze(n, a), ["enter"]),
|
|
1309
|
-
ve((p) => ze(n, a), ["space"])
|
|
1310
|
-
],
|
|
1311
|
-
style: h(`opacity:${nt(n, a) ? 1 : 0.5}`),
|
|
1312
|
-
tabindex: "0"
|
|
1313
|
-
}, [
|
|
1314
|
-
nt(
|
|
1315
|
-
n,
|
|
1316
|
-
a
|
|
1317
|
-
) ? (r(), i("span", {
|
|
1318
|
-
key: 0,
|
|
1319
|
-
style: h(`color:${l.value.style.dropdowns.icons.selected.color};margin-right:5px`),
|
|
1320
|
-
class: "th-icon-green"
|
|
1321
|
-
}, d(l.value.style.dropdowns.icons.selected.unicode), 5)) : (r(), i("span", {
|
|
1322
|
-
key: 1,
|
|
1323
|
-
style: h(`color:${l.value.style.dropdowns.icons.unselected.color};margin-right:5px`),
|
|
1324
|
-
class: "th-icon-red"
|
|
1325
|
-
}, d(l.value.style.dropdowns.icons.unselected.unicode), 5)),
|
|
1326
|
-
s("span", null, d(n), 1)
|
|
1327
|
-
], 44, ua))), 128))
|
|
1328
|
-
], 12, na)) : b("", !0)
|
|
1329
|
-
])
|
|
1330
|
-
], 6))), 128))
|
|
1331
|
-
])
|
|
1332
|
-
], 64)) : b("", !0),
|
|
1333
|
-
s("tr", null, [
|
|
1334
|
-
t[32] || (t[32] = s("th", { class: "invisible-cell" }, null, -1)),
|
|
1335
|
-
(r(!0), i(L, null, j(K.value, (o, a) => (r(), i("th", {
|
|
1336
|
-
key: `col_selector_${a}`,
|
|
1337
|
-
class: D({
|
|
1338
|
-
"vue-ui-table-col-selector": !E.value[a],
|
|
1339
|
-
"th-has-nan": E.value[a]
|
|
1340
|
-
}),
|
|
1341
|
-
style: h(`background:${a === ue.value && !E.value[a] ? l.value.style.th.selected.backgroundColor : l.value.style.th.backgroundColor};color:${a === ue.value && !E.value[a] ? l.value.style.th.selected.color : l.value.style.th.color};outline:${l.value.style.th.outline}`)
|
|
1342
|
-
}, [
|
|
1343
|
-
E.value[a] ? b("", !0) : (r(), i("div", {
|
|
1344
|
-
key: 0,
|
|
1345
|
-
innerHTML: K.value[a].type === c.value.NUMERIC ? M.value.chevronDown : "",
|
|
1346
|
-
class: D({
|
|
1347
|
-
"col-selector": K.value[a].type === c.value.NUMERIC
|
|
1348
|
-
}),
|
|
1349
|
-
tabindex: "0",
|
|
1350
|
-
style: h({
|
|
1351
|
-
cursor: T.value ? "pointer" : "default"
|
|
1352
|
-
}),
|
|
1353
|
-
onClick: de((n) => vt(a), ["stop"]),
|
|
1354
|
-
onKeyup: ve((n) => vt(a), ["enter"])
|
|
1355
|
-
}, null, 46, ra))
|
|
1356
|
-
], 6))), 128))
|
|
1357
|
-
])
|
|
1358
|
-
], 4),
|
|
1359
|
-
s("tbody", {
|
|
1360
|
-
onClick: Ut,
|
|
1361
|
-
onKeydown: t[11] || (t[11] = (o) => Wt(o))
|
|
1362
|
-
}, [
|
|
1363
|
-
(r(!0), i(L, null, j(ne.value, (o, a) => (r(), i("tr", {
|
|
1364
|
-
key: `tbody_${a}`,
|
|
1365
|
-
"data-row": a % 2 === 0 ? "odd" : "even",
|
|
1366
|
-
class: D(`tr_${V(G)}`),
|
|
1367
|
-
style: h(`${a % 2 === 0 ? `background:${l.value.style.rows.odd.backgroundColor};color:${l.value.style.rows.odd.color}` : `background:${l.value.style.rows.even.backgroundColor};color:${l.value.style.rows.even.color}`}`)
|
|
1368
|
-
}, [
|
|
1369
|
-
s("td", {
|
|
1370
|
-
class: "vue-ui-table-td-iteration",
|
|
1371
|
-
"data-row": a % 2 === 0 ? "odd" : "even",
|
|
1372
|
-
style: h({
|
|
1373
|
-
outline: l.value.style.rows.outline
|
|
1374
|
-
})
|
|
1375
|
-
}, d(o.absoluteIndex + 1), 13, ca),
|
|
1376
|
-
(r(!0), i(L, null, j(o.td, (n, u) => (r(), i("td", {
|
|
1377
|
-
"data-row": a % 2 === 0 ? "odd" : "even",
|
|
1378
|
-
key: `td_${a}_${u}`,
|
|
1379
|
-
style: h(
|
|
1380
|
-
Vt(n) || m.dataset.header[u].type === c.value.DATE ? `text-align:right;font-variant-numeric: tabular-nums;outline:${l.value.style.rows.outline}` : `outline:${l.value.style.rows.outline}`
|
|
1381
|
-
),
|
|
1382
|
-
onClick: (p) => Se({
|
|
1383
|
-
td: n,
|
|
1384
|
-
rowIndex: a,
|
|
1385
|
-
colIndex: u,
|
|
1386
|
-
headerType: m.dataset.header[u].type,
|
|
1387
|
-
event: p
|
|
1388
|
-
}),
|
|
1389
|
-
onKeyup: [
|
|
1390
|
-
ve((p) => Se({
|
|
1391
|
-
td: n,
|
|
1392
|
-
rowIndex: a,
|
|
1393
|
-
colIndex: u,
|
|
1394
|
-
headerType: m.dataset.header[u].type,
|
|
1395
|
-
event: p
|
|
1396
|
-
}), ["enter"]),
|
|
1397
|
-
ve((p) => Se({
|
|
1398
|
-
td: n,
|
|
1399
|
-
rowIndex: a,
|
|
1400
|
-
colIndex: u,
|
|
1401
|
-
headerType: m.dataset.header[u].type,
|
|
1402
|
-
event: p
|
|
1403
|
-
}), ["space"])
|
|
1404
|
-
],
|
|
1405
|
-
class: D({
|
|
1406
|
-
"td-numeric": m.dataset.header[u].type === c.value.NUMERIC,
|
|
1407
|
-
"td-focusable": !0,
|
|
1408
|
-
"td-has-nan": E.value[u]
|
|
1409
|
-
}),
|
|
1410
|
-
id: `cell_${a}_${u}_${V(G)}`,
|
|
1411
|
-
tabindex: "0"
|
|
1412
|
-
}, [
|
|
1413
|
-
o.meta && o.meta.markerIndices.includes(u) && o.meta.unicodeIcon ? (r(), i("span", {
|
|
1414
|
-
key: 0,
|
|
1415
|
-
style: h(`color:${o.meta.color};margin-right:3px`),
|
|
1416
|
-
innerHTML: o.meta.unicodeIcon
|
|
1417
|
-
}, null, 12, da)) : b("", !0),
|
|
1418
|
-
m.dataset.header[u].type === c.value.DATE ? (r(), i("span", ha, d(m.dataset.header[u].prefix) + " " + d(new Date(n).toLocaleString().slice(0, 10)) + " " + d(m.dataset.header[u].suffix), 1)) : m.dataset.header[u].isPercentage ? (r(), i("span", ga, d(V(ae)({
|
|
1419
|
-
v: Number(n * 100),
|
|
1420
|
-
s: "%",
|
|
1421
|
-
r: m.dataset.header[u].decimals
|
|
1422
|
-
})), 1)) : J.value[u] && m.dataset.header[u].percentageTo && !m.dataset.header[u].isPercentage ? (r(), i("span", {
|
|
1423
|
-
key: 3,
|
|
1424
|
-
class: D({ "td-nan": isNaN(Number(n)) })
|
|
1425
|
-
}, d(isNaN(Number(n)) ? `${n} is not ${c.value.NUMERIC}` : V(ae)({
|
|
1426
|
-
p: m.dataset.header[u].prefix,
|
|
1427
|
-
v: Number(n),
|
|
1428
|
-
s: m.dataset.header[u].suffix,
|
|
1429
|
-
r: m.dataset.header[u].decimals
|
|
1430
|
-
})) + " (" + d(isNaN(Number(n)) ? "" : V(ae)({
|
|
1431
|
-
v: Number(
|
|
1432
|
-
n / ce(
|
|
1433
|
-
J.value[u].referenceIndex
|
|
1434
|
-
) * 100
|
|
1435
|
-
),
|
|
1436
|
-
s: "%",
|
|
1437
|
-
r: m.dataset.header[u].decimals
|
|
1438
|
-
})) + ") ", 3)) : m.dataset.header[u].type === c.value.NUMERIC ? (r(), i("span", {
|
|
1439
|
-
key: 4,
|
|
1440
|
-
class: D({ "td-nan": isNaN(Number(n)) })
|
|
1441
|
-
}, d(isNaN(Number(n)) ? `${n} is not ${c.value.NUMERIC}` : V(ae)({
|
|
1442
|
-
p: m.dataset.header[u].prefix,
|
|
1443
|
-
v: Number(
|
|
1444
|
-
n.toFixed(
|
|
1445
|
-
m.dataset.header[u].decimals
|
|
1446
|
-
)
|
|
1447
|
-
),
|
|
1448
|
-
s: m.dataset.header[u].suffix,
|
|
1449
|
-
r: m.dataset.header[u].decimals
|
|
1450
|
-
})), 3)) : (r(), i("span", pa, d(m.dataset.header[u].prefix) + " " + d(n) + " " + d(m.dataset.header[u].suffix), 1))
|
|
1451
|
-
], 46, va))), 128))
|
|
1452
|
-
], 14, ia))), 128))
|
|
1453
|
-
], 32)
|
|
1454
|
-
])
|
|
1455
|
-
], 4),
|
|
1456
|
-
s("div", {
|
|
1457
|
-
class: D({
|
|
1458
|
-
"td-selector-info": !0,
|
|
1459
|
-
"td-selector-info--active": v.value.col !== void 0 && v.value.rows.length
|
|
1460
|
-
}),
|
|
1461
|
-
style: h(`background:${l.value.style.infoBar.backgroundColor};color:${l.value.style.infoBar.color}`)
|
|
1462
|
-
}, [
|
|
1463
|
-
v.value.col !== void 0 && v.value.rows.length ? (r(), i(L, { key: 0 }, [
|
|
1464
|
-
s("div", {
|
|
1465
|
-
innerHTML: M.value.table,
|
|
1466
|
-
class: "td-selector-icon"
|
|
1467
|
-
}, null, 8, fa),
|
|
1468
|
-
s("span", null, [
|
|
1469
|
-
s("b", null, [
|
|
1470
|
-
z(d(m.dataset.header[v.value.col].name) + " ", 1),
|
|
1471
|
-
m.dataset.header[v.value.col].isPercentage ? (r(), i("span", ya, " / " + d(m.dataset.header[J.value[v.value.col].referenceIndex].name), 1)) : b("", !0)
|
|
1472
|
-
]),
|
|
1473
|
-
s("span", ba, [
|
|
1474
|
-
z(d(l.value.translations.nb) + " : ", 1),
|
|
1475
|
-
s("b", ma, d(v.value.rows.length), 1)
|
|
1476
|
-
]),
|
|
1477
|
-
s("span", ka, [
|
|
1478
|
-
z(d(l.value.translations.sum) + " : ", 1),
|
|
1479
|
-
m.dataset.header[v.value.col].isPercentage ? (r(), i("b", wa, d(Te.value.sumPercentage), 1)) : (r(), i("b", Ca, d(m.dataset.header[v.value.col].prefix) + " " + d(Te.value.sumRegular) + " " + d(m.dataset.header[v.value.col].suffix), 1)),
|
|
1480
|
-
m.dataset.header[v.value.col].isPercentage ? (r(), i("b", $a, "%")) : b("", !0)
|
|
1481
|
-
]),
|
|
1482
|
-
s("span", Ma, [
|
|
1483
|
-
z(d(l.value.translations.average) + " : ", 1),
|
|
1484
|
-
m.dataset.header[v.value.col].isPercentage ? (r(), i("b", xa, d(Te.value.averagePercentage), 1)) : (r(), i("b", Ta, d(m.dataset.header[v.value.col].prefix) + " " + d(Te.value.averageRegular) + " " + d(m.dataset.header[v.value.col].suffix), 1)),
|
|
1485
|
-
m.dataset.header[v.value.col].isPercentage ? (r(), i("b", _a, "%")) : b("", !0)
|
|
1486
|
-
])
|
|
1487
|
-
]),
|
|
1488
|
-
s("button", {
|
|
1489
|
-
onClick: q,
|
|
1490
|
-
class: "td-selector-info-reset",
|
|
1491
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.closeButtons.backgroundColor};color:${l.value.style.closeButtons.color};border-radius:${l.value.style.closeButtons.borderRadius}`)
|
|
1492
|
-
}, " ✖ ", 4)
|
|
1493
|
-
], 64)) : b("", !0)
|
|
1494
|
-
], 6),
|
|
1495
|
-
N.value.length > 10 ? (r(), i("div", Sa, [
|
|
1496
|
-
z(d(l.value.translations.totalRows) + " : " + d(m.dataset.body.length) + " | " + d(l.value.translations.paginatorLabel) + " : ", 1),
|
|
1497
|
-
N.value.length > 10 ? le((r(), i("select", {
|
|
1498
|
-
key: 0,
|
|
1499
|
-
id: "paginatorSelector",
|
|
1500
|
-
"onUpdate:modelValue": t[12] || (t[12] = (o) => oe.value = o),
|
|
1501
|
-
onChange: t[13] || (t[13] = (o) => {
|
|
1502
|
-
q(), Be();
|
|
1503
|
-
}),
|
|
1504
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border}`)
|
|
1505
|
-
}, [
|
|
1506
|
-
(r(!0), i(L, null, j(Ot.value, (o, a) => (r(), i(L, null, [
|
|
1507
|
-
N.value.length > o || m.dataset.body.length === o ? (r(), i("option", {
|
|
1508
|
-
key: `paginator_option_${a}`
|
|
1509
|
-
}, d(o), 1)) : b("", !0)
|
|
1510
|
-
], 64))), 256))
|
|
1511
|
-
], 36)), [
|
|
1512
|
-
[
|
|
1513
|
-
bt,
|
|
1514
|
-
oe.value,
|
|
1515
|
-
void 0,
|
|
1516
|
-
{ number: !0 }
|
|
1517
|
-
]
|
|
1518
|
-
]) : b("", !0)
|
|
1519
|
-
])) : b("", !0),
|
|
1520
|
-
oe.value >= 250 ? (r(), i("div", Na, [
|
|
1521
|
-
s("span", {
|
|
1522
|
-
innerHTML: M.value.warning
|
|
1523
|
-
}, null, 8, Oa),
|
|
1524
|
-
z(d(l.value.translations.sizeWarning), 1)
|
|
1525
|
-
])) : b("", !0),
|
|
1526
|
-
$.value.length > 1 && $.value.length <= 10 ? (r(), i("div", {
|
|
1527
|
-
key: 3,
|
|
1528
|
-
class: "vue-ui-table-navigation-indicator",
|
|
1529
|
-
style: h(`background:${l.value.style.pagination.navigationIndicator.backgroundColor};width:calc(${k.value / ($.value.length - 1) * 100}%)`)
|
|
1530
|
-
}, null, 4)) : b("", !0),
|
|
1531
|
-
$.value.length > 1 ? (r(), i("div", La, [
|
|
1532
|
-
s("button", {
|
|
1533
|
-
class: "vue-ui-table-navigation",
|
|
1534
|
-
onClick: t[14] || (t[14] = de((o) => _e("previous"), ["stop"])),
|
|
1535
|
-
innerHTML: M.value.chevronLeft,
|
|
1536
|
-
disabled: k.value === 0,
|
|
1537
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.pagination.buttons.backgroundColor};color:${l.value.style.pagination.buttons.color};opacity:${k.value === 0 ? l.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1538
|
-
}, null, 12, Da),
|
|
1539
|
-
$.value.length > 3 ? (r(), i(L, { key: 0 }, [
|
|
1540
|
-
s("button", {
|
|
1541
|
-
class: "vue-ui-table-navigation",
|
|
1542
|
-
onClick: t[15] || (t[15] = de((o) => _e(1), ["stop"])),
|
|
1543
|
-
disabled: k.value === 0,
|
|
1544
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.pagination.buttons.backgroundColor};color:${l.value.style.pagination.buttons.color};opacity:${k.value === 0 ? l.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1545
|
-
}, " 1 ", 12, Ea),
|
|
1546
|
-
$.value.length > 10 ? (r(), i("div", {
|
|
1547
|
-
key: 0,
|
|
1548
|
-
class: "vue-ui-table-page-scroller-wrapper",
|
|
1549
|
-
style: h({ cursor: T.value ? "pointer" : "default" })
|
|
1550
|
-
}, [
|
|
1551
|
-
s("label", Ia, d(l.value.translations.page) + " " + d(k.value + 1) + " / " + d($.value.length), 1),
|
|
1552
|
-
s("input", {
|
|
1553
|
-
class: "vue-ui-table-page-scroller",
|
|
1554
|
-
id: "pageScroller",
|
|
1555
|
-
type: "range",
|
|
1556
|
-
step: "1",
|
|
1557
|
-
min: 0,
|
|
1558
|
-
max: $.value.length - 1,
|
|
1559
|
-
onInput: t[16] || (t[16] = (o) => pt(o)),
|
|
1560
|
-
value: k.value,
|
|
1561
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border};accent-color:${l.value.style.inputs.accentColor}`)
|
|
1562
|
-
}, null, 44, Aa)
|
|
1563
|
-
], 4)) : (r(), i("span", Pa, d(l.value.translations.page) + " " + d(k.value + 1) + " / " + d($.value.length), 1)),
|
|
1564
|
-
s("button", {
|
|
1565
|
-
class: "vue-ui-table-navigation",
|
|
1566
|
-
onClick: t[17] || (t[17] = de((o) => _e($.value.length), ["stop"])),
|
|
1567
|
-
disabled: k.value === $.value.length - 1,
|
|
1568
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.pagination.buttons.backgroundColor};color:${l.value.style.pagination.buttons.color};opacity:${k.value === $.value.length - 1 ? l.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1569
|
-
}, d($.value.length), 13, Ha)
|
|
1570
|
-
], 64)) : (r(), i(L, { key: 1 }, [
|
|
1571
|
-
z(d(l.value.translations.page) + " " + d(k.value + 1) + " / " + d($.value.length), 1)
|
|
1572
|
-
], 64)),
|
|
1573
|
-
s("button", {
|
|
1574
|
-
class: "vue-ui-table-navigation",
|
|
1575
|
-
onClick: t[18] || (t[18] = de((o) => _e("next"), ["stop"])),
|
|
1576
|
-
innerHTML: M.value.chevronRight,
|
|
1577
|
-
disabled: k.value === $.value.length - 1,
|
|
1578
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.pagination.buttons.backgroundColor};color:${l.value.style.pagination.buttons.color};opacity:${k.value === $.value.length - 1 ? l.value.style.pagination.buttons.opacityDisabled : 1}`)
|
|
1579
|
-
}, null, 12, Ba)
|
|
1580
|
-
])) : b("", !0),
|
|
1581
|
-
je(V(xt), {
|
|
1582
|
-
ref_key: "chartModal",
|
|
1583
|
-
ref: ye,
|
|
1584
|
-
backgroundColor: l.value.style.chart.modal.backgroundColor,
|
|
1585
|
-
headerColor: l.value.style.chart.modal.color,
|
|
1586
|
-
color: l.value.style.chart.modal.color,
|
|
1587
|
-
forcedHeight: 500,
|
|
1588
|
-
isCursorPointer: T.value,
|
|
1589
|
-
withPadding: "",
|
|
1590
|
-
withFullWidth: "",
|
|
1591
|
-
noLayerUpdate: "",
|
|
1592
|
-
onClose: t[23] || (t[23] = (o) => X.value = !1),
|
|
1593
|
-
onSize: Rt
|
|
1594
|
-
}, {
|
|
1595
|
-
before: mt(() => [
|
|
1596
|
-
s("div", Ra, [
|
|
1597
|
-
xe.value.length ? (r(), i("button", {
|
|
1598
|
-
key: 0,
|
|
1599
|
-
onClick: t[19] || (t[19] = (o) => I.value = !0),
|
|
1600
|
-
innerHTML: M.value.donut,
|
|
1601
|
-
class: D({
|
|
1602
|
-
"is-active-chart": S.value.type === c.value.DONUT || I.value
|
|
1603
|
-
}),
|
|
1604
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.DONUT || I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.DONUT || I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1605
|
-
}, null, 14, za)) : b("", !0),
|
|
1606
|
-
s("button", {
|
|
1607
|
-
onClick: t[20] || (t[20] = (o) => {
|
|
1608
|
-
S.value.type = c.value.LINE, I.value = !1;
|
|
1609
|
-
}),
|
|
1610
|
-
innerHTML: M.value.chart,
|
|
1611
|
-
class: D({
|
|
1612
|
-
"is-active-chart": S.value.type === c.value.LINE && !I.value
|
|
1613
|
-
}),
|
|
1614
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.LINE && !I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.LINE && !I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1615
|
-
}, null, 14, Ua),
|
|
1616
|
-
s("button", {
|
|
1617
|
-
onClick: t[21] || (t[21] = (o) => {
|
|
1618
|
-
S.value.type = c.value.BAR, I.value = !1;
|
|
1619
|
-
}),
|
|
1620
|
-
innerHTML: M.value.bar,
|
|
1621
|
-
class: D({
|
|
1622
|
-
"is-active-chart": S.value.type === c.value.BAR && !I.value
|
|
1623
|
-
}),
|
|
1624
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${S.value.type === c.value.BAR && !I.value ? l.value.style.chart.modal.buttons.selected.backgroundColor : l.value.style.chart.modal.buttons.unselected.backgroundColor};color:${S.value.type === c.value.BAR && !I.value ? l.value.style.chart.modal.buttons.selected.color : l.value.style.chart.modal.buttons.unselected.color}`)
|
|
1625
|
-
}, null, 14, Fa)
|
|
1626
|
-
])
|
|
1627
|
-
]),
|
|
1628
|
-
content: mt(() => [
|
|
1629
|
-
s("div", ja, [
|
|
1630
|
-
I.value && xe.value.length ? (r(), i("div", {
|
|
1631
|
-
key: 0,
|
|
1632
|
-
style: h(`background:${l.value.style.chart.modal.backgroundColor};color:${l.value.style.chart.modal.color}`)
|
|
1633
|
-
}, [
|
|
1634
|
-
s("fieldset", Va, [
|
|
1635
|
-
s("legend", null, d(l.value.translations.chooseCategoryColumn), 1),
|
|
1636
|
-
s("div", Wa, [
|
|
1637
|
-
(r(!0), i(L, null, j(xe.value, (o, a) => (r(), i("div", {
|
|
1638
|
-
key: `donut_radio_${a}`,
|
|
1639
|
-
class: "vue-ui-table-fieldset-option"
|
|
1640
|
-
}, [
|
|
1641
|
-
s("input", {
|
|
1642
|
-
type: "radio",
|
|
1643
|
-
name: o.name,
|
|
1644
|
-
id: o.name,
|
|
1645
|
-
checked: F.value && o.name === F.value.name,
|
|
1646
|
-
onInput: (n) => F.value = xe.value[a],
|
|
1647
|
-
style: h(`background:${l.value.style.inputs.backgroundColor};color:${l.value.style.inputs.color};border:${l.value.style.inputs.border};accent-color:${l.value.style.inputs.accentColor}`)
|
|
1648
|
-
}, null, 44, Ja),
|
|
1649
|
-
s("label", {
|
|
1650
|
-
for: o.name
|
|
1651
|
-
}, d(o.name), 9, Ka)
|
|
1652
|
-
]))), 128))
|
|
1653
|
-
]),
|
|
1654
|
-
s("button", {
|
|
1655
|
-
class: "vue-ui-table-generate-donut",
|
|
1656
|
-
disabled: !F.value,
|
|
1657
|
-
onClick: et,
|
|
1658
|
-
style: h(`cursor:${T.value ? "pointer" : "default"};background:${l.value.style.chart.modal.buttons.selected.backgroundColor};color:${l.value.style.chart.modal.buttons.selected.color}`)
|
|
1659
|
-
}, [
|
|
1660
|
-
s("div", {
|
|
1661
|
-
style: { "margin-bottom": "-3px" },
|
|
1662
|
-
innerHTML: M.value.donut
|
|
1663
|
-
}, null, 8, Ya),
|
|
1664
|
-
z(" " + d(l.value.translations.makeDonut), 1)
|
|
1665
|
-
], 12, Xa)
|
|
1666
|
-
])
|
|
1667
|
-
], 4)) : b("", !0),
|
|
1668
|
-
[c.value.BAR, c.value.LINE].includes(
|
|
1669
|
-
S.value.type
|
|
1670
|
-
) && !I.value ? (r(), i(L, { key: 1 }, [
|
|
1671
|
-
Ye.value.length > 1 ? (r(), i("label", {
|
|
1672
|
-
key: 0,
|
|
1673
|
-
style: h({
|
|
1674
|
-
color: l.value.style.chart.modal.color
|
|
1675
|
-
})
|
|
1676
|
-
}, [
|
|
1677
|
-
z(d(l.value.translations.xAxisLabels) + " ", 1),
|
|
1678
|
-
le(s("select", {
|
|
1679
|
-
"onUpdate:modelValue": t[22] || (t[22] = (o) => Me.value = o)
|
|
1680
|
-
}, [
|
|
1681
|
-
(r(!0), i(L, null, j(Ye.value, (o) => (r(), i("option", null, d(o), 1))), 256))
|
|
1682
|
-
], 512), [
|
|
1683
|
-
[bt, Me.value]
|
|
1684
|
-
])
|
|
1685
|
-
], 4)) : b("", !0),
|
|
1686
|
-
s("div", Za, [
|
|
1687
|
-
S.value.type === c.value.LINE ? (r(), kt(Ct, {
|
|
1688
|
-
key: `chart_line_${Ke.value}`,
|
|
1689
|
-
dataset: ie.value.xyDatasetLine,
|
|
1690
|
-
config: ie.value.xyConfig
|
|
1691
|
-
}, null, 8, ["dataset", "config"])) : b("", !0),
|
|
1692
|
-
S.value.type === c.value.BAR ? (r(), kt(Ct, {
|
|
1693
|
-
key: `chart_bar_${Ke.value}`,
|
|
1694
|
-
dataset: ie.value.xyDatasetBar,
|
|
1695
|
-
config: ie.value.xyConfig
|
|
1696
|
-
}, null, 8, ["dataset", "config"])) : b("", !0)
|
|
1697
|
-
]),
|
|
1698
|
-
v.value.rows.length >= 2 ? (r(), i("div", {
|
|
1699
|
-
key: 1,
|
|
1700
|
-
class: "chart-trend",
|
|
1701
|
-
style: h(`color:${l.value.style.chart.modal.color}`)
|
|
1702
|
-
}, [
|
|
1703
|
-
t[33] || (t[33] = s("span", null, "---", -1)),
|
|
1704
|
-
z(" Trend: " + d(V(ae)({
|
|
1705
|
-
v: ie.value.progression.trend * 100,
|
|
1706
|
-
s: "%",
|
|
1707
|
-
r: 1
|
|
1708
|
-
})), 1)
|
|
1709
|
-
], 4)) : b("", !0)
|
|
1710
|
-
], 64)) : b("", !0),
|
|
1711
|
-
[c.value.DONUT].includes(S.value.type) && !I.value ? (r(), i("div", Ga, [
|
|
1712
|
-
je(rl, {
|
|
1713
|
-
dataset: we.value,
|
|
1714
|
-
config: ie.value.donutConfig
|
|
1715
|
-
}, null, 8, ["dataset", "config"])
|
|
1716
|
-
])) : b("", !0)
|
|
1717
|
-
])
|
|
1718
|
-
]),
|
|
1719
|
-
_: 1
|
|
1720
|
-
}, 8, ["backgroundColor", "headerColor", "color", "isCursorPointer"])
|
|
1721
|
-
], 4));
|
|
1722
|
-
}
|
|
1723
|
-
}, uo = /* @__PURE__ */ cl(qa, [["__scopeId", "data-v-5db1d7a9"]]);
|
|
1724
|
-
export {
|
|
1725
|
-
uo as default
|
|
1726
|
-
};
|