primereact 9.3.1 → 9.5.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 +18 -31
- package/accordion/accordion.cjs.js +88 -90
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +90 -1
- package/accordion/accordion.esm.js +89 -91
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +89 -92
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +1 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +7 -6
- package/api/api.esm.js +1 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +33 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +4 -0
- package/autocomplete/autocomplete.esm.js +33 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +32 -10
- package/autocomplete/autocomplete.min.css +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +71 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +37 -1
- package/avatar/avatar.esm.js +72 -23
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +72 -24
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +26 -42
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +24 -0
- package/avatargroup/avatargroup.esm.js +13 -29
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +52 -69
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +12 -28
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +26 -0
- package/badge/badge.esm.js +13 -29
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +13 -30
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +12 -28
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +38 -0
- package/blockui/blockui.esm.js +13 -29
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +13 -30
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +87 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +53 -1
- package/breadcrumb/breadcrumb.esm.js +88 -50
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +88 -51
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +49 -42
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +42 -1
- package/button/button.esm.js +50 -43
- package/button/button.esm.min.js +1 -1
- package/button/button.js +49 -43
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +37 -23
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -2
- package/calendar/calendar.esm.js +37 -23
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +34 -20
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +52 -63
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +56 -0
- package/card/card.esm.js +39 -50
- package/card/card.esm.min.js +1 -1
- package/card/card.js +86 -98
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +151 -110
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +113 -1
- package/carousel/carousel.esm.js +151 -110
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +148 -108
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +27 -23
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +5 -0
- package/cascadeselect/cascadeselect.esm.js +27 -23
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +28 -24
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +31 -42
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +35 -0
- package/chart/chart.esm.js +18 -29
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +140 -152
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +40 -19
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +19 -1
- package/checkbox/checkbox.esm.js +41 -20
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +41 -20
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +45 -42
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +53 -1
- package/chip/chip.esm.js +46 -43
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +46 -44
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +37 -22
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +5 -0
- package/chips/chips.esm.js +37 -22
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +37 -23
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +11 -4
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +13 -0
- package/colorpicker/colorpicker.esm.js +11 -4
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +11 -4
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +6 -2
- package/componentbase/componentbase.cjs.js +105 -0
- package/componentbase/componentbase.cjs.min.js +1 -0
- package/componentbase/componentbase.esm.js +101 -0
- package/componentbase/componentbase.esm.min.js +1 -0
- package/componentbase/componentbase.js +109 -0
- package/componentbase/componentbase.min.js +1 -0
- package/componentbase/package.json +6 -0
- package/confirmdialog/confirmdialog.cjs.js +44 -27
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +90 -2
- package/confirmdialog/confirmdialog.esm.js +45 -28
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +45 -29
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +53 -50
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +70 -1
- package/confirmpopup/confirmpopup.esm.js +54 -51
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +54 -52
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +111 -61
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +92 -1
- package/contextmenu/contextmenu.esm.js +112 -62
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +112 -63
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +16510 -5273
- package/core/core.min.js +41 -39
- package/datatable/datatable.cjs.js +253 -210
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +20 -7
- package/datatable/datatable.esm.js +253 -210
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +246 -203
- package/datatable/datatable.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +13 -26
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +38 -0
- package/deferredcontent/deferredcontent.esm.js +14 -27
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -28
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +83 -83
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +85 -3
- package/dialog/dialog.esm.js +83 -83
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +81 -82
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +35 -51
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +30 -0
- package/divider/divider.esm.js +22 -38
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +66 -83
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +82 -45
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +66 -0
- package/dock/dock.esm.js +83 -46
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +83 -47
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -20
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +6 -1
- package/dropdown/dropdown.esm.js +46 -20
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +45 -19
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/fieldset.cjs.js +55 -54
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +77 -1
- package/fieldset/fieldset.esm.js +56 -55
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +56 -56
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +181 -151
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +150 -1
- package/fileupload/fileupload.esm.js +182 -152
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +182 -153
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +136 -118
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +156 -2
- package/galleria/galleria.esm.js +137 -119
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +135 -118
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +20 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +17 -3
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +21 -5
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +410 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +410 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +410 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +410 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +410 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +410 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +410 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +410 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +410 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +410 -2
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +410 -2
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +410 -2
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +410 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +410 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +410 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +410 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +410 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +410 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +410 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +410 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +410 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +410 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +410 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +410 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +410 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +410 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +410 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +410 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +410 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +410 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +410 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +410 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +410 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +410 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +410 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +410 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +410 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +410 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +410 -2
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +410 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +410 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +410 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +410 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +410 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +410 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +410 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +410 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +410 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +410 -2
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +410 -2
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +410 -2
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +410 -2
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +410 -2
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +410 -2
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +410 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +410 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +410 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +410 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +410 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +410 -2
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +410 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +410 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +410 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +410 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +410 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +410 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +410 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +410 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +410 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +410 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +410 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +410 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +410 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +410 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +410 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +410 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +410 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +410 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +410 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +410 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +410 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +410 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +410 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +410 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +506 -103
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +130 -3
- package/image/image.esm.js +507 -104
- package/image/image.esm.min.js +1 -1
- package/image/image.js +503 -101
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +33 -51
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +51 -1
- package/inplace/inplace.esm.js +33 -51
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +33 -52
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +24 -18
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +24 -18
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +24 -18
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +8 -6
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +8 -6
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +8 -6
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +13 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +5 -0
- package/inputswitch/inputswitch.esm.js +13 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +14 -4
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +7 -8
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +7 -8
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +7 -8
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +3 -4
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +3 -4
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +3 -4
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/listbox/listbox.cjs.js +12 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +12 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +12 -4
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +147 -96
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +142 -2
- package/megamenu/megamenu.esm.js +147 -96
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +145 -95
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +3 -4
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -4
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -4
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +94 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +71 -0
- package/menu/menu.esm.js +95 -56
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +95 -57
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +118 -110
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +94 -1
- package/menubar/menubar.esm.js +119 -111
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +119 -112
- package/menubar/menubar.min.js +1 -1
- package/menuitem/menuitem.d.ts +0 -2
- package/message/message.cjs.js +66 -46
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +35 -2
- package/message/message.esm.js +67 -47
- package/message/message.esm.min.js +1 -1
- package/message/message.js +67 -48
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +78 -74
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +51 -2
- package/messages/messages.esm.js +78 -74
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +78 -75
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +74 -47
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +9 -0
- package/multiselect/multiselect.esm.js +75 -48
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +73 -46
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +21 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -0
- package/multistatecheckbox/multistatecheckbox.esm.js +21 -13
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +21 -13
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +18 -2
- package/overlaypanel/overlaypanel.cjs.js +40 -46
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +45 -1
- package/overlaypanel/overlaypanel.esm.js +41 -47
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +41 -48
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.d.ts +3 -3
- package/panel/panel.cjs.js +78 -63
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +100 -1
- package/panel/panel.esm.js +79 -64
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +79 -65
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +145 -83
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +124 -2
- package/panelmenu/panelmenu.esm.js +145 -83
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +144 -83
- package/panelmenu/panelmenu.min.js +1 -1
- package/primereact.all.cjs.js +4240 -3058
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4240 -3059
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4240 -3058
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +45 -57
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +38 -0
- package/progressbar/progressbar.esm.js +32 -44
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +105 -118
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +37 -51
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +34 -0
- package/progressspinner/progressspinner.esm.js +24 -38
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +75 -90
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +42 -20
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +19 -1
- package/radiobutton/radiobutton.esm.js +42 -20
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +43 -22
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +15 -7
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +15 -7
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +14 -6
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +195 -187
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +16 -7
- package/resources/themes/arya-green/theme.css +16 -7
- package/resources/themes/arya-orange/theme.css +16 -7
- package/resources/themes/arya-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-dark-purple/theme.css +16 -7
- package/resources/themes/bootstrap4-light-blue/theme.css +16 -7
- package/resources/themes/bootstrap4-light-purple/theme.css +16 -7
- package/resources/themes/fluent-light/theme.css +16 -7
- package/resources/themes/lara-dark-blue/theme.css +16 -7
- package/resources/themes/lara-dark-indigo/theme.css +16 -7
- package/resources/themes/lara-dark-purple/theme.css +16 -7
- package/resources/themes/lara-dark-teal/theme.css +16 -7
- package/resources/themes/lara-light-blue/theme.css +16 -7
- package/resources/themes/lara-light-indigo/theme.css +16 -7
- package/resources/themes/lara-light-purple/theme.css +16 -7
- package/resources/themes/lara-light-teal/theme.css +16 -7
- package/resources/themes/luna-amber/theme.css +16 -7
- package/resources/themes/luna-blue/theme.css +16 -7
- package/resources/themes/luna-green/theme.css +16 -7
- package/resources/themes/luna-pink/theme.css +16 -7
- package/resources/themes/md-dark-deeppurple/theme.css +16 -7
- package/resources/themes/md-dark-indigo/theme.css +16 -7
- package/resources/themes/md-light-deeppurple/theme.css +16 -7
- package/resources/themes/md-light-indigo/theme.css +16 -7
- package/resources/themes/mdc-dark-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-dark-indigo/theme.css +16 -7
- package/resources/themes/mdc-light-deeppurple/theme.css +16 -7
- package/resources/themes/mdc-light-indigo/theme.css +16 -7
- package/resources/themes/mira/theme.css +16 -7
- package/resources/themes/nano/theme.css +16 -7
- package/resources/themes/nova/theme.css +16 -7
- package/resources/themes/nova-accent/theme.css +16 -7
- package/resources/themes/nova-alt/theme.css +16 -7
- package/resources/themes/rhea/theme.css +16 -7
- package/resources/themes/saga-blue/theme.css +16 -7
- package/resources/themes/saga-green/theme.css +16 -7
- package/resources/themes/saga-orange/theme.css +16 -7
- package/resources/themes/saga-purple/theme.css +16 -7
- package/resources/themes/soho-dark/theme.css +16 -7
- package/resources/themes/soho-light/theme.css +16 -7
- package/resources/themes/tailwind-light/theme.css +16 -7
- package/resources/themes/vela-blue/theme.css +16 -7
- package/resources/themes/vela-green/theme.css +16 -7
- package/resources/themes/vela-orange/theme.css +16 -7
- package/resources/themes/vela-purple/theme.css +16 -7
- package/resources/themes/viva-dark/theme.css +16 -7
- package/resources/themes/viva-light/theme.css +16 -7
- package/scrollpanel/scrollpanel.cjs.js +39 -52
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +42 -0
- package/scrollpanel/scrollpanel.esm.js +26 -39
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +193 -207
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +64 -36
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +42 -1
- package/scrolltop/scrolltop.esm.js +65 -37
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +65 -38
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +6 -2
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +6 -2
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +6 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +88 -52
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +58 -1
- package/sidebar/sidebar.esm.js +89 -53
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +89 -54
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +26 -42
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +26 -0
- package/skeleton/skeleton.esm.js +13 -29
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +70 -87
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +121 -111
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +98 -1
- package/slidemenu/slidemenu.esm.js +122 -112
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +122 -113
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.cjs.js +63 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +64 -1
- package/speeddial/speeddial.esm.js +64 -57
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +62 -56
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +50 -40
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +59 -1
- package/splitbutton/splitbutton.esm.js +51 -41
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +50 -41
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +68 -70
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +60 -0
- package/splitter/splitter.esm.js +69 -71
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +69 -72
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +78 -45
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +50 -0
- package/steps/steps.esm.js +79 -46
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +79 -47
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +9 -7
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +9 -7
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +9 -7
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +83 -47
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -0
- package/tabmenu/tabmenu.esm.js +84 -48
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +84 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +142 -122
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +132 -1
- package/tabview/tabview.esm.js +143 -123
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +143 -124
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +18 -30
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +34 -1
- package/tag/tag.esm.js +19 -31
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +19 -32
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +49 -52
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +73 -0
- package/terminal/terminal.esm.js +50 -53
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +50 -54
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.d.ts +1 -1
- package/tieredmenu/tieredmenu.cjs.js +104 -59
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +83 -2
- package/tieredmenu/tieredmenu.esm.js +105 -60
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +105 -61
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.d.ts +1 -1
- package/toast/toast.cjs.js +85 -81
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +124 -2
- package/toast/toast.esm.js +86 -82
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +83 -80
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +12 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +12 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +13 -4
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +35 -49
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +44 -0
- package/toolbar/toolbar.esm.js +22 -36
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +72 -87
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +31 -37
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +55 -0
- package/tooltip/tooltip.esm.js +32 -38
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +32 -39
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +5 -0
- package/tree/tree.d.ts +1 -1
- package/treenode/treenode.d.ts +5 -1
- package/treeselect/treeselect.cjs.js +12 -5
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +6 -1
- package/treeselect/treeselect.esm.js +12 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +11 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +10 -3
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +1 -1
- package/treetable/treetable.esm.js +10 -3
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +10 -3
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +22 -11
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +5 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +22 -11
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +21 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +735 -676
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +5 -1
- package/utils/utils.esm.js +732 -677
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +736 -678
- package/utils/utils.min.js +1 -1
- package/web-types.json +13 -1
|
@@ -7,27 +7,27 @@ import { ArrowUpIcon } from 'primereact/icons/arrowup';
|
|
|
7
7
|
import { SpinnerIcon } from 'primereact/icons/spinner';
|
|
8
8
|
import { Paginator } from 'primereact/paginator';
|
|
9
9
|
import { VirtualScroller } from 'primereact/virtualscroller';
|
|
10
|
-
import {
|
|
11
|
-
import { Ripple } from 'primereact/ripple';
|
|
10
|
+
import { BarsIcon } from 'primereact/icons/bars';
|
|
12
11
|
import { CheckIcon } from 'primereact/icons/check';
|
|
13
|
-
import { TimesIcon } from 'primereact/icons/times';
|
|
14
|
-
import { PencilIcon } from 'primereact/icons/pencil';
|
|
15
12
|
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
16
13
|
import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
17
|
-
import {
|
|
14
|
+
import { PencilIcon } from 'primereact/icons/pencil';
|
|
15
|
+
import { TimesIcon } from 'primereact/icons/times';
|
|
16
|
+
import { OverlayService } from 'primereact/overlayservice';
|
|
17
|
+
import { Ripple } from 'primereact/ripple';
|
|
18
18
|
import { Button } from 'primereact/button';
|
|
19
19
|
import { CSSTransition } from 'primereact/csstransition';
|
|
20
20
|
import { Dropdown } from 'primereact/dropdown';
|
|
21
|
-
import { InputText } from 'primereact/inputtext';
|
|
22
|
-
import { Portal } from 'primereact/portal';
|
|
23
21
|
import { FilterIcon } from 'primereact/icons/filter';
|
|
24
22
|
import { FilterSlashIcon } from 'primereact/icons/filterslash';
|
|
25
|
-
import { TrashIcon } from 'primereact/icons/trash';
|
|
26
23
|
import { PlusIcon } from 'primereact/icons/plus';
|
|
27
|
-
import {
|
|
24
|
+
import { TrashIcon } from 'primereact/icons/trash';
|
|
25
|
+
import { InputText } from 'primereact/inputtext';
|
|
26
|
+
import { Portal } from 'primereact/portal';
|
|
28
27
|
import { SortAltIcon } from 'primereact/icons/sortalt';
|
|
29
28
|
import { SortAmountDownIcon } from 'primereact/icons/sortamountdown';
|
|
30
29
|
import { SortAmountUpAltIcon } from 'primereact/icons/sortamountupalt';
|
|
30
|
+
import { Tooltip } from 'primereact/tooltip';
|
|
31
31
|
|
|
32
32
|
function _extends() {
|
|
33
33
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -253,9 +253,9 @@ var DataTableBase = {
|
|
|
253
253
|
__TYPE: 'DataTable',
|
|
254
254
|
alwaysShowPaginator: true,
|
|
255
255
|
breakpoint: '960px',
|
|
256
|
-
checkIcon: null,
|
|
257
256
|
cellClassName: null,
|
|
258
257
|
cellSelection: false,
|
|
258
|
+
checkIcon: null,
|
|
259
259
|
className: null,
|
|
260
260
|
collapsedRowIcon: null,
|
|
261
261
|
columnResizeMode: 'fit',
|
|
@@ -276,8 +276,10 @@ var DataTableBase = {
|
|
|
276
276
|
expandedRows: null,
|
|
277
277
|
exportFilename: 'download',
|
|
278
278
|
exportFunction: null,
|
|
279
|
+
filterClearIcon: null,
|
|
279
280
|
filterDelay: 300,
|
|
280
281
|
filterDisplay: 'menu',
|
|
282
|
+
filterIcon: null,
|
|
281
283
|
filterLocale: undefined,
|
|
282
284
|
filters: null,
|
|
283
285
|
first: 0,
|
|
@@ -312,8 +314,6 @@ var DataTableBase = {
|
|
|
312
314
|
onFilter: null,
|
|
313
315
|
onPage: null,
|
|
314
316
|
onRowClick: null,
|
|
315
|
-
onRowMouseEnter: null,
|
|
316
|
-
onRowMouseLeave: null,
|
|
317
317
|
onRowCollapse: null,
|
|
318
318
|
onRowDoubleClick: null,
|
|
319
319
|
onRowEditCancel: null,
|
|
@@ -322,6 +322,8 @@ var DataTableBase = {
|
|
|
322
322
|
onRowEditInit: null,
|
|
323
323
|
onRowEditSave: null,
|
|
324
324
|
onRowExpand: null,
|
|
325
|
+
onRowMouseEnter: null,
|
|
326
|
+
onRowMouseLeave: null,
|
|
325
327
|
onRowReorder: null,
|
|
326
328
|
onRowSelect: null,
|
|
327
329
|
onRowToggle: null,
|
|
@@ -341,10 +343,10 @@ var DataTableBase = {
|
|
|
341
343
|
paginatorRight: null,
|
|
342
344
|
paginatorTemplate: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',
|
|
343
345
|
removableSort: false,
|
|
344
|
-
reorderableColumns: false,
|
|
345
|
-
reorderableRows: false,
|
|
346
346
|
reorderIndicatorDownIcon: null,
|
|
347
347
|
reorderIndicatorUpIcon: null,
|
|
348
|
+
reorderableColumns: false,
|
|
349
|
+
reorderableRows: false,
|
|
348
350
|
resizableColumns: false,
|
|
349
351
|
responsiveLayout: 'scroll',
|
|
350
352
|
rowClassName: null,
|
|
@@ -369,6 +371,7 @@ var DataTableBase = {
|
|
|
369
371
|
selectionMode: null,
|
|
370
372
|
selectionPageOnly: false,
|
|
371
373
|
showGridlines: false,
|
|
374
|
+
showHeaders: true,
|
|
372
375
|
showRowReorderElement: null,
|
|
373
376
|
showSelectAll: true,
|
|
374
377
|
showSelectionElement: null,
|
|
@@ -769,14 +772,29 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
769
772
|
var onCellEditInit = getColumnProp('onCellEditInit');
|
|
770
773
|
var cellEditValidatorEvent = getColumnProp('cellEditValidatorEvent');
|
|
771
774
|
if (onBeforeCellEditShow) {
|
|
772
|
-
|
|
775
|
+
// if user returns false do not show the editor
|
|
776
|
+
if (onBeforeCellEditShow(params) === false) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
// if user prevents default stop the editor
|
|
781
|
+
if (event && event.defaultPrevented) {
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
773
784
|
}
|
|
774
785
|
|
|
775
786
|
// If the data is sorted using sort icon, it has been added to wait for the sort operation when any cell is wanted to be opened.
|
|
776
787
|
setTimeout(function () {
|
|
777
788
|
setEditingState(true);
|
|
778
789
|
if (onCellEditInit) {
|
|
779
|
-
onCellEditInit(params)
|
|
790
|
+
if (onCellEditInit(params) === false) {
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
// if user prevents default stop the editor
|
|
795
|
+
if (event && event.defaultPrevented) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
780
798
|
}
|
|
781
799
|
if (cellEditValidatorEvent === 'click') {
|
|
782
800
|
bindDocumentClickListener();
|
|
@@ -948,7 +966,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
948
966
|
}
|
|
949
967
|
}, [props.editingMeta]);
|
|
950
968
|
React.useEffect(function () {
|
|
951
|
-
if (props.editMode === 'row') {
|
|
969
|
+
if (props.editMode === 'cell' || props.editMode === 'row') {
|
|
952
970
|
var callbackParams = getCellCallbackParams();
|
|
953
971
|
var params = _objectSpread$8(_objectSpread$8({}, callbackParams), {}, {
|
|
954
972
|
editing: editingState,
|
|
@@ -1512,45 +1530,48 @@ var BodyRow = /*#__PURE__*/React.memo(function (props) {
|
|
|
1512
1530
|
var rowSpan = props.rowGroupMode === 'rowspan' ? calculateRowGroupSize(props.value, col, props.index) : null;
|
|
1513
1531
|
return /*#__PURE__*/React.createElement(BodyCell, {
|
|
1514
1532
|
key: key,
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1533
|
+
allowCellSelection: props.allowCellSelection,
|
|
1534
|
+
cellClassName: props.cellClassName,
|
|
1535
|
+
checkIcon: props.checkIcon,
|
|
1536
|
+
collapsedRowIcon: props.collapsedRowIcon,
|
|
1518
1537
|
column: col,
|
|
1519
|
-
|
|
1520
|
-
rowIndex: props.rowIndex,
|
|
1521
|
-
index: i,
|
|
1522
|
-
rowSpan: rowSpan,
|
|
1538
|
+
compareSelectionBy: props.compareSelectionBy,
|
|
1523
1539
|
dataKey: props.dataKey,
|
|
1540
|
+
editMode: props.editMode,
|
|
1524
1541
|
editing: editing,
|
|
1525
1542
|
editingMeta: props.editingMeta,
|
|
1526
|
-
|
|
1543
|
+
expanded: props.expanded,
|
|
1544
|
+
expandedRowIcon: props.expandedRowIcon,
|
|
1545
|
+
frozenRow: props.frozenRow,
|
|
1546
|
+
index: i,
|
|
1547
|
+
isSelectable: props.isSelectable,
|
|
1548
|
+
onCheckboxChange: props.onCheckboxChange,
|
|
1549
|
+
onClick: props.onCellClick,
|
|
1550
|
+
onEditingMetaChange: props.onEditingMetaChange,
|
|
1551
|
+
onMouseDown: props.onCellMouseDown,
|
|
1552
|
+
onMouseUp: props.onCellMouseUp,
|
|
1553
|
+
onRadioChange: props.onRadioChange,
|
|
1554
|
+
onRowEditCancel: onEditCancel,
|
|
1527
1555
|
onRowEditInit: onEditInit,
|
|
1528
1556
|
onRowEditSave: onEditSave,
|
|
1529
|
-
onRowEditCancel: onEditCancel,
|
|
1530
|
-
onEditingMetaChange: props.onEditingMetaChange,
|
|
1531
1557
|
onRowToggle: props.onRowToggle,
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1558
|
+
responsiveLayout: props.responsiveLayout,
|
|
1559
|
+
rowData: props.rowData,
|
|
1560
|
+
rowEditorCancelIcon: props.rowEditorCancelIcon,
|
|
1561
|
+
rowEditorInitIcon: props.rowEditorInitIcon,
|
|
1562
|
+
rowEditorSaveIcon: props.rowEditorSaveIcon,
|
|
1563
|
+
rowIndex: props.rowIndex,
|
|
1564
|
+
rowSpan: rowSpan,
|
|
1536
1565
|
selectOnEdit: props.selectOnEdit,
|
|
1537
1566
|
selected: props.selected,
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
onMouseUp: props.onCellMouseUp,
|
|
1541
|
-
tabIndex: props.tabIndex,
|
|
1542
|
-
cellClassName: props.cellClassName,
|
|
1543
|
-
responsiveLayout: props.responsiveLayout,
|
|
1544
|
-
frozenRow: props.frozenRow,
|
|
1545
|
-
isSelectable: props.isSelectable,
|
|
1546
|
-
showSelectionElement: props.showSelectionElement,
|
|
1567
|
+
selection: props.selection,
|
|
1568
|
+
selectionAriaLabel: props.tableProps.selectionAriaLabel,
|
|
1547
1569
|
showRowReorderElement: props.showRowReorderElement,
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
checkIcon: props.checkIcon,
|
|
1570
|
+
showSelectionElement: props.showSelectionElement,
|
|
1571
|
+
tabIndex: props.tabIndex,
|
|
1572
|
+
tableProps: props.tableProps,
|
|
1573
|
+
tableSelector: props.tableSelector,
|
|
1574
|
+
value: props.value,
|
|
1554
1575
|
virtualScrollerOptions: props.virtualScrollerOptions
|
|
1555
1576
|
});
|
|
1556
1577
|
}
|
|
@@ -1693,7 +1714,22 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
1693
1714
|
if (isSubheaderGrouping && props.expandableRowGroups) {
|
|
1694
1715
|
return isRowGroupExpanded(rowData);
|
|
1695
1716
|
} else {
|
|
1696
|
-
if (props.dataKey)
|
|
1717
|
+
if (props.dataKey) {
|
|
1718
|
+
var rowId = ObjectUtils.resolveFieldData(rowData, props.dataKey);
|
|
1719
|
+
var expanded = false;
|
|
1720
|
+
if (props.expandedRows) {
|
|
1721
|
+
if (Array.isArray(props.expandedRows)) {
|
|
1722
|
+
expanded = props.expandedRows.some(function (row) {
|
|
1723
|
+
return ObjectUtils.resolveFieldData(row, props.dataKey) === rowId;
|
|
1724
|
+
});
|
|
1725
|
+
} else {
|
|
1726
|
+
expanded = props.expandedRows[rowId] !== undefined;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
return expanded;
|
|
1730
|
+
} else {
|
|
1731
|
+
return findIndex(props.expandedRows, rowData) !== -1;
|
|
1732
|
+
}
|
|
1697
1733
|
}
|
|
1698
1734
|
}
|
|
1699
1735
|
return false;
|
|
@@ -2418,67 +2454,70 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
2418
2454
|
var _allowCellSelection = allowCellSelection();
|
|
2419
2455
|
var editing = isRowEditing(rowData);
|
|
2420
2456
|
return /*#__PURE__*/React.createElement(BodyRow, {
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2457
|
+
allowCellSelection: _allowCellSelection,
|
|
2458
|
+
allowRowSelection: _allowRowSelection,
|
|
2459
|
+
cellClassName: props.cellClassName,
|
|
2460
|
+
checkIcon: props.checkIcon,
|
|
2461
|
+
collapsedRowIcon: props.collapsedRowIcon,
|
|
2424
2462
|
columns: props.columns,
|
|
2425
|
-
|
|
2426
|
-
rowIndex: rowIndex,
|
|
2427
|
-
index: index,
|
|
2428
|
-
selected: selected,
|
|
2463
|
+
compareSelectionBy: props.compareSelectionBy,
|
|
2429
2464
|
contextMenuSelected: contextMenuSelected,
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2465
|
+
dataKey: props.dataKey,
|
|
2466
|
+
editMode: props.editMode,
|
|
2467
|
+
editing: editing,
|
|
2468
|
+
editingMeta: props.editingMeta,
|
|
2469
|
+
editingRows: props.editingRows,
|
|
2470
|
+
expanded: expanded,
|
|
2471
|
+
expandedRowIcon: props.expandedRowIcon,
|
|
2472
|
+
frozenRow: props.frozenRow,
|
|
2473
|
+
groupRowsBy: props.groupRowsBy,
|
|
2474
|
+
index: index,
|
|
2436
2475
|
isSelectable: isSelectable,
|
|
2437
|
-
onRowTouchEnd: onRowTouchEnd,
|
|
2438
|
-
onRowMouseDown: onRowMouseDown,
|
|
2439
|
-
onRowMouseUp: onRowMouseUp,
|
|
2440
|
-
onRowToggle: onRowToggle,
|
|
2441
|
-
onRowDragStart: onRowDragStart,
|
|
2442
|
-
onRowDragOver: onRowDragOver,
|
|
2443
|
-
onRowDragLeave: onRowDragLeave,
|
|
2444
|
-
onRowDragEnd: onRowDragEnd,
|
|
2445
|
-
onRowDrop: onRowDrop,
|
|
2446
|
-
onRadioChange: onRadioChange,
|
|
2447
|
-
onCheckboxChange: onCheckboxChange,
|
|
2448
2476
|
onCellClick: onCellClick,
|
|
2449
2477
|
onCellMouseDown: onCellMouseDown,
|
|
2450
2478
|
onCellMouseUp: onCellMouseUp,
|
|
2451
|
-
|
|
2452
|
-
editingRows: props.editingRows,
|
|
2453
|
-
editingMeta: props.editingMeta,
|
|
2454
|
-
editMode: props.editMode,
|
|
2455
|
-
onRowEditChange: props.onRowEditChange,
|
|
2479
|
+
onCheckboxChange: onCheckboxChange,
|
|
2456
2480
|
onEditingMetaChange: props.onEditingMetaChange,
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2481
|
+
onRadioChange: onRadioChange,
|
|
2482
|
+
onRowClick: onRowClick,
|
|
2483
|
+
onRowDoubleClick: onRowDoubleClick,
|
|
2484
|
+
onRowDragEnd: onRowDragEnd,
|
|
2485
|
+
onRowDragLeave: onRowDragLeave,
|
|
2486
|
+
onRowDragOver: onRowDragOver,
|
|
2487
|
+
onRowDragStart: onRowDragStart,
|
|
2488
|
+
onRowDrop: onRowDrop,
|
|
2489
|
+
onRowEditCancel: props.onRowEditCancel,
|
|
2490
|
+
onRowEditChange: props.onRowEditChange,
|
|
2491
|
+
onRowEditComplete: props.onRowEditComplete,
|
|
2461
2492
|
onRowEditInit: props.onRowEditInit,
|
|
2462
|
-
rowEditValidator: props.rowEditValidator,
|
|
2463
2493
|
onRowEditSave: props.onRowEditSave,
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2494
|
+
onRowMouseDown: onRowMouseDown,
|
|
2495
|
+
onRowMouseEnter: onRowMouseEnter,
|
|
2496
|
+
onRowMouseLeave: onRowMouseLeave,
|
|
2497
|
+
onRowMouseUp: onRowMouseUp,
|
|
2498
|
+
onRowRightClick: onRowRightClick,
|
|
2499
|
+
onRowToggle: onRowToggle,
|
|
2500
|
+
onRowTouchEnd: onRowTouchEnd,
|
|
2501
|
+
responsiveLayout: props.responsiveLayout,
|
|
2502
|
+
rowClassName: props.rowClassName,
|
|
2503
|
+
rowData: rowData,
|
|
2504
|
+
rowEditValidator: props.rowEditValidator,
|
|
2505
|
+
rowEditorCancelIcon: props.rowEditorCancelIcon,
|
|
2506
|
+
rowEditorInitIcon: props.rowEditorInitIcon,
|
|
2507
|
+
rowEditorSaveIcon: props.rowEditorSaveIcon,
|
|
2508
|
+
rowGroupMode: props.rowGroupMode,
|
|
2509
|
+
rowIndex: rowIndex,
|
|
2469
2510
|
selectOnEdit: props.selectOnEdit,
|
|
2511
|
+
selected: selected,
|
|
2512
|
+
selection: props.selection,
|
|
2470
2513
|
selectionMode: props.selectionMode,
|
|
2471
2514
|
selectionModeInColumn: props.selectionModeInColumn,
|
|
2472
|
-
cellClassName: props.cellClassName,
|
|
2473
|
-
responsiveLayout: props.responsiveLayout,
|
|
2474
|
-
frozenRow: props.frozenRow,
|
|
2475
|
-
showSelectionElement: props.showSelectionElement,
|
|
2476
2515
|
showRowReorderElement: props.showRowReorderElement,
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2516
|
+
showSelectionElement: props.showSelectionElement,
|
|
2517
|
+
tabIndex: props.tabIndex,
|
|
2518
|
+
tableProps: props.tableProps,
|
|
2519
|
+
tableSelector: props.tableSelector,
|
|
2520
|
+
value: props.value,
|
|
2482
2521
|
virtualScrollerOptions: props.virtualScrollerOptions
|
|
2483
2522
|
});
|
|
2484
2523
|
}
|
|
@@ -3119,7 +3158,7 @@ var ColumnFilter = /*#__PURE__*/React.memo(function (props) {
|
|
|
3119
3158
|
var iconProps = {
|
|
3120
3159
|
'aria-hidden': true
|
|
3121
3160
|
};
|
|
3122
|
-
var icon = props.
|
|
3161
|
+
var icon = props.filterIcon || /*#__PURE__*/React.createElement(FilterIcon, iconProps);
|
|
3123
3162
|
var columnFilterIcon = IconUtils.getJSXIcon(icon, _objectSpread$3({}, iconProps), {
|
|
3124
3163
|
props: props
|
|
3125
3164
|
});
|
|
@@ -3631,21 +3670,15 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
3631
3670
|
sortOrder = _ref2.sortOrder;
|
|
3632
3671
|
if (getColumnProp('sortable')) {
|
|
3633
3672
|
var iconClassName = 'p-sortable-column-icon';
|
|
3634
|
-
var icon = sorted ? sortOrder < 0 ? /*#__PURE__*/React.createElement(SortAmountDownIcon,
|
|
3635
|
-
|
|
3636
|
-
}) : /*#__PURE__*/React.createElement(SortAmountUpAltIcon, {
|
|
3637
|
-
className: iconClassName
|
|
3638
|
-
}) : /*#__PURE__*/React.createElement(SortAltIcon, {
|
|
3639
|
-
className: iconClassName
|
|
3640
|
-
});
|
|
3641
|
-
var sortIcon = IconUtils.getJSXIcon(props.sortIcon || icon, {
|
|
3642
|
-
className: iconClassName
|
|
3643
|
-
}, {
|
|
3673
|
+
var icon = sorted ? sortOrder < 0 ? /*#__PURE__*/React.createElement(SortAmountDownIcon, null) : /*#__PURE__*/React.createElement(SortAmountUpAltIcon, null) : /*#__PURE__*/React.createElement(SortAltIcon, null);
|
|
3674
|
+
var sortIcon = IconUtils.getJSXIcon(props.sortIcon || icon, undefined, {
|
|
3644
3675
|
props: props,
|
|
3645
3676
|
sorted: sorted,
|
|
3646
3677
|
sortOrder: sortOrder
|
|
3647
3678
|
});
|
|
3648
|
-
return
|
|
3679
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
3680
|
+
className: iconClassName
|
|
3681
|
+
}, sortIcon);
|
|
3649
3682
|
}
|
|
3650
3683
|
return null;
|
|
3651
3684
|
};
|
|
@@ -3678,7 +3711,9 @@ var HeaderCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
3678
3711
|
filters: props.filters,
|
|
3679
3712
|
onFilterChange: props.onFilterChange,
|
|
3680
3713
|
onFilterApply: props.onFilterApply,
|
|
3681
|
-
filtersStore: props.filtersStore
|
|
3714
|
+
filtersStore: props.filtersStore,
|
|
3715
|
+
filterIcon: props.filterIcon,
|
|
3716
|
+
filterClearIcon: props.filterClearIcon
|
|
3682
3717
|
});
|
|
3683
3718
|
}
|
|
3684
3719
|
return null;
|
|
@@ -3797,41 +3832,43 @@ var TableHeader = /*#__PURE__*/React.memo(function (props) {
|
|
|
3797
3832
|
var isVisible = col ? !getColumnProp(col, 'hidden') : true;
|
|
3798
3833
|
var key = col ? getColumnProp(col, 'columnKey') || getColumnProp(col, 'field') || i : i;
|
|
3799
3834
|
return isVisible && /*#__PURE__*/React.createElement(HeaderCell, {
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
tableProps: props.tableProps,
|
|
3835
|
+
allRowsSelected: props.allRowsSelected,
|
|
3836
|
+
allSortableDisabled: isAllSortableDisabled,
|
|
3803
3837
|
column: col,
|
|
3804
|
-
tabIndex: props.tabIndex,
|
|
3805
3838
|
empty: props.empty,
|
|
3806
|
-
|
|
3807
|
-
groupRowsBy: props.groupRowsBy,
|
|
3808
|
-
groupRowSortField: props.groupRowSortField,
|
|
3809
|
-
sortMode: props.sortMode,
|
|
3810
|
-
sortIcon: props.sortIcon,
|
|
3811
|
-
sortField: props.sortField,
|
|
3812
|
-
sortOrder: props.sortOrder,
|
|
3813
|
-
multiSortMeta: props.multiSortMeta,
|
|
3814
|
-
allSortableDisabled: isAllSortableDisabled,
|
|
3815
|
-
onSortableChange: onSortableChange,
|
|
3816
|
-
sortableDisabledFields: sortableDisabledFieldsState,
|
|
3839
|
+
filterClearIcon: props.filterClearIcon,
|
|
3817
3840
|
filterDisplay: props.filterDisplay,
|
|
3841
|
+
filterIcon: props.filterIcon,
|
|
3818
3842
|
filters: props.filters,
|
|
3819
3843
|
filtersStore: props.filtersStore,
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3844
|
+
groupRowSortField: props.groupRowSortField,
|
|
3845
|
+
groupRowsBy: props.groupRowsBy,
|
|
3846
|
+
key: key,
|
|
3847
|
+
multiSortMeta: props.multiSortMeta,
|
|
3848
|
+
onColumnCheckboxChange: onCheckboxChange,
|
|
3825
3849
|
onColumnDragLeave: props.onColumnDragLeave,
|
|
3850
|
+
onColumnDragOver: props.onColumnDragOver,
|
|
3851
|
+
onColumnDragStart: props.onColumnDragStart,
|
|
3826
3852
|
onColumnDrop: props.onColumnDrop,
|
|
3853
|
+
onColumnMouseDown: props.onColumnMouseDown,
|
|
3827
3854
|
onColumnResizeStart: props.onColumnResizeStart,
|
|
3828
3855
|
onColumnResizerClick: props.onColumnResizerClick,
|
|
3829
3856
|
onColumnResizerDoubleClick: props.onColumnResizerDoubleClick,
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3857
|
+
onFilterApply: props.onFilterApply,
|
|
3858
|
+
onFilterChange: props.onFilterChange,
|
|
3859
|
+
onSortChange: props.onSortChange,
|
|
3860
|
+
onSortableChange: onSortableChange,
|
|
3833
3861
|
reorderableColumns: props.reorderableColumns,
|
|
3834
|
-
|
|
3862
|
+
resizableColumns: props.resizableColumns,
|
|
3863
|
+
showSelectAll: props.showSelectAll,
|
|
3864
|
+
sortField: props.sortField,
|
|
3865
|
+
sortIcon: props.sortIcon,
|
|
3866
|
+
sortMode: props.sortMode,
|
|
3867
|
+
sortOrder: props.sortOrder,
|
|
3868
|
+
sortableDisabledFields: sortableDisabledFieldsState,
|
|
3869
|
+
tabIndex: props.tabIndex,
|
|
3870
|
+
tableProps: props.tableProps,
|
|
3871
|
+
value: props.value
|
|
3835
3872
|
});
|
|
3836
3873
|
});
|
|
3837
3874
|
};
|
|
@@ -3955,18 +3992,15 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
3955
3992
|
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
3956
3993
|
editingMetaState = _React$useState18[0],
|
|
3957
3994
|
setEditingMetaState = _React$useState18[1];
|
|
3958
|
-
var _React$useState19 = React.useState(
|
|
3995
|
+
var _React$useState19 = React.useState(props.rows),
|
|
3959
3996
|
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
var _React$useState21 = React.useState(
|
|
3997
|
+
d_rowsState = _React$useState20[0],
|
|
3998
|
+
setD_rowsState = _React$useState20[1];
|
|
3999
|
+
var _React$useState21 = React.useState({}),
|
|
3963
4000
|
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
var
|
|
3967
|
-
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
3968
|
-
d_filtersState = _React$useState24[0],
|
|
3969
|
-
setD_filtersState = _React$useState24[1];
|
|
4001
|
+
d_filtersState = _React$useState22[0],
|
|
4002
|
+
setD_filtersState = _React$useState22[1];
|
|
4003
|
+
var attributeSelector = React.useRef('');
|
|
3970
4004
|
var elementRef = React.useRef(null);
|
|
3971
4005
|
var tableRef = React.useRef(null);
|
|
3972
4006
|
var wrapperRef = React.useRef(null);
|
|
@@ -4254,7 +4288,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4254
4288
|
if (ObjectUtils.isNotEmpty(widths)) {
|
|
4255
4289
|
createStyleElement();
|
|
4256
4290
|
var innerHTML = '';
|
|
4257
|
-
var selector = ".p-datatable[".concat(
|
|
4291
|
+
var selector = ".p-datatable[".concat(attributeSelector.current, "] > .p-datatable-wrapper ").concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
4258
4292
|
widths.forEach(function (width, index) {
|
|
4259
4293
|
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
4260
4294
|
innerHTML += "\n ".concat(selector, " > .p-datatable-thead > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > .p-datatable-tbody > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > .p-datatable-tfoot > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
|
|
@@ -4388,6 +4422,9 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4388
4422
|
var updateTableWidth = function updateTableWidth(el) {
|
|
4389
4423
|
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
|
4390
4424
|
};
|
|
4425
|
+
|
|
4426
|
+
// https://github.com/primefaces/primereact/issues/3970 Reasoning: resize table cells before updating the table width so that it can use existing computed cell widths and adjust only the one column.
|
|
4427
|
+
resizeTableCells(newColumnWidth);
|
|
4391
4428
|
updateTableWidth(tableRef.current);
|
|
4392
4429
|
if (!isVirtualScrollerDisabled()) {
|
|
4393
4430
|
updateTableWidth(bodyRef.current);
|
|
@@ -4396,7 +4433,6 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4396
4433
|
updateTableWidth(DomHandler.findSingle(wrapperRef.current, '.p-virtualscroller-content'));
|
|
4397
4434
|
}
|
|
4398
4435
|
}
|
|
4399
|
-
resizeTableCells(newColumnWidth);
|
|
4400
4436
|
}
|
|
4401
4437
|
if (props.onColumnResizeEnd) {
|
|
4402
4438
|
props.onColumnResizeEnd({
|
|
@@ -4425,7 +4461,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4425
4461
|
destroyStyleElement();
|
|
4426
4462
|
createStyleElement();
|
|
4427
4463
|
var innerHTML = '';
|
|
4428
|
-
var selector = ".p-datatable[".concat(
|
|
4464
|
+
var selector = ".p-datatable[".concat(attributeSelector.current, "] > .p-datatable-wrapper ").concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
4429
4465
|
widths.forEach(function (width, index) {
|
|
4430
4466
|
var colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
4431
4467
|
var style = "width: ".concat(colWidth, "px !important; max-width: ").concat(colWidth, "px !important");
|
|
@@ -4593,8 +4629,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4593
4629
|
if (!responsiveStyleElement.current) {
|
|
4594
4630
|
responsiveStyleElement.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
4595
4631
|
var tableSelector = ".p-datatable-wrapper ".concat(isVirtualScrollerDisabled() ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
4596
|
-
var selector = ".p-datatable[".concat(
|
|
4597
|
-
var gridLinesSelector = ".p-datatable[".concat(
|
|
4632
|
+
var selector = ".p-datatable[".concat(attributeSelector.current, "] > ").concat(tableSelector);
|
|
4633
|
+
var gridLinesSelector = ".p-datatable[".concat(attributeSelector.current, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
4598
4634
|
var innerHTML = "\n@media screen and (max-width: ".concat(props.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
|
|
4599
4635
|
responsiveStyleElement.current.innerHTML = innerHTML;
|
|
4600
4636
|
}
|
|
@@ -4981,12 +5017,13 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
4981
5017
|
|
|
4982
5018
|
//headers
|
|
4983
5019
|
columns.forEach(function (column, i) {
|
|
4984
|
-
var _ref3 = [getColumnProp(column, 'field'), getColumnProp(column, 'header'), getColumnProp(column, 'exportable')],
|
|
5020
|
+
var _ref3 = [getColumnProp(column, 'field'), getColumnProp(column, 'header'), getColumnProp(column, 'exportHeader'), getColumnProp(column, 'exportable')],
|
|
4985
5021
|
field = _ref3[0],
|
|
4986
5022
|
header = _ref3[1],
|
|
4987
|
-
|
|
5023
|
+
exportHeader = _ref3[2],
|
|
5024
|
+
exportable = _ref3[3];
|
|
4988
5025
|
if (exportable && field) {
|
|
4989
|
-
var columnHeader = String(header || field).replace(/"/g, '""').replace(/\n/g, "\u2028");
|
|
5026
|
+
var columnHeader = String(exportHeader || header || field).replace(/"/g, '""').replace(/\n/g, "\u2028");
|
|
4990
5027
|
csv += '"' + columnHeader + '"';
|
|
4991
5028
|
if (i < columns.length - 1) {
|
|
4992
5029
|
csv += props.csvSeparator;
|
|
@@ -5075,7 +5112,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5075
5112
|
return data;
|
|
5076
5113
|
};
|
|
5077
5114
|
useMountEffect(function () {
|
|
5078
|
-
|
|
5115
|
+
attributeSelector.current = UniqueComponentId();
|
|
5079
5116
|
|
|
5080
5117
|
//setFiltersState(cloneFilters(props.filters)); // Github #4248
|
|
5081
5118
|
setD_filtersState(cloneFilters(props.filters));
|
|
@@ -5087,16 +5124,14 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5087
5124
|
}
|
|
5088
5125
|
});
|
|
5089
5126
|
useUpdateEffect(function () {
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
createResponsiveStyle();
|
|
5094
|
-
}
|
|
5127
|
+
elementRef.current.setAttribute(attributeSelector.current, '');
|
|
5128
|
+
if (props.responsiveLayout === 'stack' && !props.scrollable) {
|
|
5129
|
+
createResponsiveStyle();
|
|
5095
5130
|
}
|
|
5096
5131
|
return function () {
|
|
5097
5132
|
destroyResponsiveStyle();
|
|
5098
5133
|
};
|
|
5099
|
-
}, [
|
|
5134
|
+
}, [props.breakpoint]);
|
|
5100
5135
|
useUpdateEffect(function () {
|
|
5101
5136
|
var filters = cloneFilters(props.filters);
|
|
5102
5137
|
setFiltersState(filters);
|
|
@@ -5186,6 +5221,9 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5186
5221
|
return null;
|
|
5187
5222
|
};
|
|
5188
5223
|
var createTableHeader = function createTableHeader(options, empty, _isVirtualScrollerDisabled) {
|
|
5224
|
+
if (props.showHeaders === false) {
|
|
5225
|
+
return null;
|
|
5226
|
+
}
|
|
5189
5227
|
var sortField = getSortField();
|
|
5190
5228
|
var sortOrder = getSortOrder();
|
|
5191
5229
|
var multiSortMeta = _toConsumableArray(getMultiSortMeta());
|
|
@@ -5218,6 +5256,8 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5218
5256
|
filterDisplay: props.filterDisplay,
|
|
5219
5257
|
filters: filters,
|
|
5220
5258
|
filtersStore: filtersStore,
|
|
5259
|
+
filterIcon: props.filterIcon,
|
|
5260
|
+
filterClearIcon: props.filterClearIcon,
|
|
5221
5261
|
onFilterChange: onFilterChange,
|
|
5222
5262
|
onFilterApply: onFilterApply,
|
|
5223
5263
|
showSelectAll: props.showSelectAll,
|
|
@@ -5243,75 +5283,78 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5243
5283
|
itemSize = options.itemSize;
|
|
5244
5284
|
var frozenBody = ObjectUtils.isNotEmpty(props.frozenValue) && /*#__PURE__*/React.createElement(TableBody, {
|
|
5245
5285
|
ref: frozenBodyRef,
|
|
5246
|
-
|
|
5286
|
+
cellClassName: props.cellClassName,
|
|
5287
|
+
cellSelection: props.cellSelection,
|
|
5288
|
+
checkIcon: props.checkIcon,
|
|
5247
5289
|
className: "p-datatable-tbody p-datatable-frozen-tbody",
|
|
5248
|
-
|
|
5249
|
-
tableProps: props,
|
|
5250
|
-
tableSelector: attributeSelectorState,
|
|
5290
|
+
collapsedRowIcon: props.collapsedRowIcon,
|
|
5251
5291
|
columns: columns,
|
|
5252
|
-
|
|
5253
|
-
|
|
5292
|
+
compareSelectionBy: props.compareSelectionBy,
|
|
5293
|
+
contextMenuSelection: props.contextMenuSelection,
|
|
5294
|
+
dataKey: props.dataKey,
|
|
5295
|
+
dragSelection: props.dragSelection,
|
|
5296
|
+
editMode: props.editMode,
|
|
5254
5297
|
editingMeta: editingMetaState,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5298
|
+
editingRows: props.editingRows,
|
|
5299
|
+
emptyMessage: props.emptyMessage,
|
|
5300
|
+
expandableRowGroups: props.expandableRowGroups,
|
|
5301
|
+
expandedRowIcon: props.expandedRowIcon,
|
|
5302
|
+
expandedRows: props.expandedRows,
|
|
5303
|
+
first: first,
|
|
5304
|
+
frozenRow: true,
|
|
5305
|
+
groupRowsBy: props.groupRowsBy,
|
|
5306
|
+
isDataSelectable: props.isDataSelectable,
|
|
5307
|
+
isVirtualScrollerDisabled: true,
|
|
5264
5308
|
lazy: props.lazy,
|
|
5265
|
-
|
|
5309
|
+
loading: props.loading,
|
|
5310
|
+
metaKeySelection: props.metaKeySelection,
|
|
5311
|
+
onCellClick: props.onCellClick,
|
|
5266
5312
|
onCellSelect: props.onCellSelect,
|
|
5267
5313
|
onCellUnselect: props.onCellUnselect,
|
|
5268
|
-
onRowSelect: props.onRowSelect,
|
|
5269
|
-
onRowUnselect: props.onRowUnselect,
|
|
5270
|
-
dragSelection: props.dragSelection,
|
|
5271
5314
|
onContextMenu: props.onContextMenu,
|
|
5272
5315
|
onContextMenuSelectionChange: props.onContextMenuSelectionChange,
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
cellSelection: props.cellSelection,
|
|
5276
|
-
contextMenuSelection: props.contextMenuSelection,
|
|
5277
|
-
dataKey: props.dataKey,
|
|
5278
|
-
expandedRows: props.expandedRows,
|
|
5316
|
+
onEditingMetaChange: onEditingMetaChange,
|
|
5317
|
+
onRowClick: props.onRowClick,
|
|
5279
5318
|
onRowCollapse: props.onRowCollapse,
|
|
5319
|
+
onRowDoubleClick: props.onRowDoubleClick,
|
|
5320
|
+
onRowEditCancel: props.onRowEditCancel,
|
|
5321
|
+
onRowEditChange: props.onRowEditChange,
|
|
5322
|
+
onRowEditComplete: props.onRowEditComplete,
|
|
5323
|
+
onRowEditInit: props.onRowEditInit,
|
|
5324
|
+
onRowEditSave: props.onRowEditSave,
|
|
5280
5325
|
onRowExpand: props.onRowExpand,
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
editingRows: props.editingRows,
|
|
5326
|
+
onRowMouseEnter: props.onRowMouseEnter,
|
|
5327
|
+
onRowMouseLeave: props.onRowMouseLeave,
|
|
5284
5328
|
onRowReorder: props.onRowReorder,
|
|
5329
|
+
onRowSelect: props.onRowSelect,
|
|
5330
|
+
onRowToggle: props.onRowToggle,
|
|
5331
|
+
onRowUnselect: props.onRowUnselect,
|
|
5332
|
+
onSelectionChange: props.onSelectionChange,
|
|
5333
|
+
paginator: props.paginator,
|
|
5285
5334
|
reorderableRows: props.reorderableRows,
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
rowGroupHeaderTemplate: props.rowGroupHeaderTemplate,
|
|
5335
|
+
responsiveLayout: props.responsiveLayout,
|
|
5336
|
+
rowClassName: props.rowClassName,
|
|
5337
|
+
rowEditValidator: props.rowEditValidator,
|
|
5338
|
+
rowEditorCancelIcon: props.rowEditorCancelIcon,
|
|
5339
|
+
rowEditorInitIcon: props.rowEditorInitIcon,
|
|
5340
|
+
rowEditorSaveIcon: props.rowEditorSaveIcon,
|
|
5293
5341
|
rowExpansionTemplate: props.rowExpansionTemplate,
|
|
5294
5342
|
rowGroupFooterTemplate: props.rowGroupFooterTemplate,
|
|
5295
|
-
|
|
5296
|
-
|
|
5343
|
+
rowGroupHeaderTemplate: props.rowGroupHeaderTemplate,
|
|
5344
|
+
rowGroupMode: props.rowGroupMode,
|
|
5345
|
+
scrollable: props.scrollable,
|
|
5297
5346
|
selectOnEdit: props.selectOnEdit,
|
|
5298
|
-
|
|
5299
|
-
rowEditValidator: props.rowEditValidator,
|
|
5300
|
-
onRowEditSave: props.onRowEditSave,
|
|
5301
|
-
onRowEditComplete: props.onRowEditComplete,
|
|
5302
|
-
onRowEditCancel: props.onRowEditCancel,
|
|
5303
|
-
cellClassName: props.cellClassName,
|
|
5304
|
-
responsiveLayout: props.responsiveLayout,
|
|
5347
|
+
selection: props.selection,
|
|
5305
5348
|
selectionAutoFocus: props.selectionAutoFocus,
|
|
5306
|
-
|
|
5307
|
-
|
|
5349
|
+
selectionMode: props.selectionMode,
|
|
5350
|
+
selectionModeInColumn: selectionModeInColumn,
|
|
5308
5351
|
showRowReorderElement: props.showRowReorderElement,
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5352
|
+
showSelectionElement: props.showSelectionElement,
|
|
5353
|
+
tabIndex: props.tabIndex,
|
|
5354
|
+
tableProps: props,
|
|
5355
|
+
tableSelector: attributeSelector.current,
|
|
5356
|
+
value: props.frozenValue,
|
|
5357
|
+
virtualScrollerOptions: options
|
|
5315
5358
|
});
|
|
5316
5359
|
var body = /*#__PURE__*/React.createElement(TableBody, {
|
|
5317
5360
|
ref: bodyRef,
|
|
@@ -5321,7 +5364,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
|
5321
5364
|
empty: empty,
|
|
5322
5365
|
frozenRow: false,
|
|
5323
5366
|
tableProps: props,
|
|
5324
|
-
tableSelector:
|
|
5367
|
+
tableSelector: attributeSelector.current,
|
|
5325
5368
|
columns: columns,
|
|
5326
5369
|
selectionModeInColumn: selectionModeInColumn,
|
|
5327
5370
|
first: first,
|