primereact 9.5.0 → 9.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +2 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +2 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +214 -3
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +876 -3
- package/api/api.esm.js +209 -4
- package/api/api.esm.min.js +1 -1
- package/api/api.js +215 -5
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +132 -91
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +134 -2
- package/autocomplete/autocomplete.esm.js +134 -93
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +133 -93
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +3 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -3
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +4 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +4 -3
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -4
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +11 -4
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +11 -4
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +11 -5
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +6 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +6 -0
- package/button/button.esm.js +6 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +7 -4
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +320 -228
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +267 -1
- package/calendar/calendar.esm.js +322 -230
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +321 -230
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +3 -1
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +5 -11
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +4 -3
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +19 -10
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +8 -0
- package/carousel/carousel.esm.js +20 -11
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +19 -10
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +154 -85
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +95 -1
- package/cascadeselect/cascadeselect.esm.js +156 -87
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +154 -86
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +3 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +4 -3
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +93 -34
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +60 -1
- package/checkbox/checkbox.esm.js +94 -35
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +93 -36
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +3 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +3 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +4 -3
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +60 -38
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +73 -6
- package/chips/chips.esm.js +61 -39
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +60 -40
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +119 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +76 -0
- package/colorpicker/colorpicker.esm.js +121 -51
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +120 -51
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +2 -0
- package/column/column.d.ts +298 -1
- package/column/column.esm.js +2 -0
- package/column/column.js +2 -0
- package/columngroup/columngroup.d.ts +28 -0
- package/componentbase/componentbase.cjs.js +29 -5
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +25 -5
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +30 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +2 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +3 -2
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +2 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +5 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +6 -5
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +10 -8
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +11 -9
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +10 -8
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1172 -595
- package/core/core.min.js +47 -47
- package/csstransition/csstransition.cjs.js +3 -2
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +3 -2
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -3
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +34 -43
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +51 -1
- package/datascroller/datascroller.esm.js +36 -45
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +35 -45
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +931 -486
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +933 -488
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +932 -488
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +125 -109
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +105 -2
- package/dataview/dataview.esm.js +127 -111
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +123 -108
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +6 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +7 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +6 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +3 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +4 -3
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +3 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +3 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +4 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +169 -119
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +154 -2
- package/dropdown/dropdown.esm.js +171 -121
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +170 -121
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +95 -116
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +50 -0
- package/editor/editor.esm.js +96 -117
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +95 -118
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +3 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +4 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +69 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +13 -3
- package/fileupload/fileupload.esm.js +70 -61
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +66 -57
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +8 -6
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +9 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +8 -6
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +6 -3
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +7 -4
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +6 -3
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +9 -3
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +2 -2
- package/image/image.esm.js +10 -4
- package/image/image.esm.min.js +1 -1
- package/image/image.js +9 -3
- package/image/image.min.css +1 -1
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +2 -1
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -10
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +7 -2
- package/inputmask/inputmask.esm.js +9 -11
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +68 -46
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +62 -1
- package/inputnumber/inputnumber.esm.js +66 -47
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +68 -48
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +77 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +56 -0
- package/inputswitch/inputswitch.esm.js +78 -26
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +77 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +32 -0
- package/inputtext/inputtext.esm.js +26 -16
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -17
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -15
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +33 -1
- package/inputtextarea/inputtextarea.esm.js +26 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -17
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +25 -9
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +25 -9
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +25 -11
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +44 -43
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +42 -0
- package/knob/knob.esm.js +45 -44
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +44 -45
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +86 -56
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +103 -3
- package/listbox/listbox.esm.js +88 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +86 -57
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +4 -3
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +5 -4
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +4 -3
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +87 -61
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +80 -1
- package/mention/mention.esm.js +89 -63
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +88 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +5 -4
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +5 -4
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +4 -4
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +5 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +5 -5
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +3 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +3 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +4 -3
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +2 -1
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -2
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +2 -1
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +220 -167
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +180 -3
- package/multiselect/multiselect.esm.js +222 -169
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +220 -168
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +32 -22
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +56 -2
- package/multistatecheckbox/multistatecheckbox.esm.js +34 -24
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +33 -24
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +188 -110
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +118 -2
- package/orderlist/orderlist.esm.js +190 -112
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +186 -109
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +139 -73
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +89 -2
- package/organizationchart/organizationchart.esm.js +140 -74
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +139 -75
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +7 -6
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +5 -0
- package/overlaypanel/overlaypanel.esm.js +8 -7
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +8 -7
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +172 -166
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +108 -2
- package/paginator/paginator.esm.js +174 -168
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +172 -167
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +3 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +3 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +3 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +4 -3
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +89 -46
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +98 -2
- package/password/password.esm.js +91 -48
- package/password/password.esm.min.js +1 -1
- package/password/password.js +88 -46
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +146 -82
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +133 -1
- package/picklist/picklist.esm.js +148 -84
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +143 -80
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +3 -2
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +3 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +4 -3
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4754 -3154
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4753 -3155
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4754 -3154
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +3 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +4 -3
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +3 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +4 -3
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +74 -21
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +61 -1
- package/radiobutton/radiobutton.esm.js +75 -22
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +74 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +47 -36
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +64 -1
- package/rating/rating.esm.js +48 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +47 -38
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +586 -584
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +20 -1
- package/resources/themes/arya-green/theme.css +20 -1
- package/resources/themes/arya-orange/theme.css +20 -1
- package/resources/themes/arya-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +20 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +20 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +20 -1
- package/resources/themes/fluent-light/theme.css +20 -1
- package/resources/themes/lara-dark-blue/theme.css +20 -1
- package/resources/themes/lara-dark-indigo/theme.css +20 -1
- package/resources/themes/lara-dark-purple/theme.css +20 -1
- package/resources/themes/lara-dark-teal/theme.css +20 -1
- package/resources/themes/lara-light-blue/theme.css +20 -1
- package/resources/themes/lara-light-indigo/theme.css +20 -1
- package/resources/themes/lara-light-purple/theme.css +20 -1
- package/resources/themes/lara-light-teal/theme.css +20 -1
- package/resources/themes/luna-amber/theme.css +20 -1
- package/resources/themes/luna-blue/theme.css +20 -1
- package/resources/themes/luna-green/theme.css +20 -1
- package/resources/themes/luna-pink/theme.css +20 -1
- package/resources/themes/md-dark-deeppurple/theme.css +20 -1
- package/resources/themes/md-dark-indigo/theme.css +20 -1
- package/resources/themes/md-light-deeppurple/theme.css +20 -1
- package/resources/themes/md-light-indigo/theme.css +20 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-dark-indigo/theme.css +20 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +20 -1
- package/resources/themes/mdc-light-indigo/theme.css +20 -1
- package/resources/themes/mira/theme.css +20 -1
- package/resources/themes/nano/theme.css +20 -1
- package/resources/themes/nova/theme.css +20 -1
- package/resources/themes/nova-accent/theme.css +20 -1
- package/resources/themes/nova-alt/theme.css +20 -1
- package/resources/themes/rhea/theme.css +20 -1
- package/resources/themes/saga-blue/theme.css +20 -1
- package/resources/themes/saga-green/theme.css +20 -1
- package/resources/themes/saga-orange/theme.css +20 -1
- package/resources/themes/saga-purple/theme.css +20 -1
- package/resources/themes/soho-dark/theme.css +20 -1
- package/resources/themes/soho-light/theme.css +20 -1
- package/resources/themes/tailwind-light/theme.css +32 -13
- package/resources/themes/vela-blue/theme.css +20 -1
- package/resources/themes/vela-green/theme.css +20 -1
- package/resources/themes/vela-orange/theme.css +20 -1
- package/resources/themes/vela-purple/theme.css +20 -1
- package/resources/themes/viva-dark/theme.css +20 -1
- package/resources/themes/viva-light/theme.css +20 -1
- package/ripple/ripple.cjs.js +3 -2
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +3 -2
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +4 -3
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +28 -41
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +28 -0
- package/row/row.esm.js +15 -28
- package/row/row.esm.min.js +1 -1
- package/row/row.js +49 -64
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +3 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +4 -3
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +9 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +11 -9
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +10 -8
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +37 -25
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +52 -1
- package/selectbutton/selectbutton.esm.js +38 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +37 -27
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +7 -6
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +8 -7
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +8 -7
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +4 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +4 -3
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +5 -5
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +5 -4
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +5 -0
- package/slidemenu/slidemenu.esm.js +6 -5
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +6 -5
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +71 -39
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +34 -1
- package/slider/slider.esm.js +72 -40
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +71 -41
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +3 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +4 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +74 -63
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +39 -11
- package/splitbutton/splitbutton.esm.js +76 -65
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +74 -63
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +3 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +10 -0
- package/splitter/splitter.esm.js +3 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -3
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +3 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +4 -3
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +3 -1
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +3 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +4 -3
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +3 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +3 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +4 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +8 -5
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +9 -6
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +7 -4
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +3 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +4 -3
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +3 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -3
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +6 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -6
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -5
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +51 -43
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +51 -1
- package/timeline/timeline.esm.js +52 -44
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +51 -45
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +46 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +47 -5
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +46 -4
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +68 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +40 -2
- package/togglebutton/togglebutton.esm.js +69 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +68 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +3 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +5 -11
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +4 -3
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +3 -2
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +7 -7
- package/tooltip/tooltip.esm.js +4 -3
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +3 -2
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +118 -88
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +139 -1
- package/tree/tree.esm.js +120 -90
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +116 -87
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +132 -102
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +138 -2
- package/treeselect/treeselect.esm.js +134 -104
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +133 -104
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +385 -198
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +305 -2
- package/treetable/treetable.esm.js +387 -200
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +383 -197
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +83 -33
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +59 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +85 -35
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +84 -35
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +13 -11
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +13 -11
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +13 -11
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +43 -29
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +78 -1
- package/virtualscroller/virtualscroller.esm.js +44 -30
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +43 -31
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactTransitionGroup = require('react-transition-group');
|
|
7
|
-
var PrimeReact = require('primereact/api');
|
|
8
7
|
var hooks = require('primereact/hooks');
|
|
9
8
|
var utils = require('primereact/utils');
|
|
9
|
+
var PrimeReact = require('primereact/api');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
@@ -89,7 +89,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
89
89
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
90
90
|
var CSSTransition = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
91
91
|
var props = CSSTransitionBase.getProps(inProps);
|
|
92
|
-
var
|
|
92
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
93
|
+
var disabled = props.disabled || props.options && props.options.disabled || context && !context.cssTransition || !PrimeReact__default["default"].cssTransition;
|
|
93
94
|
var onEnter = function onEnter(node, isAppearing) {
|
|
94
95
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
95
96
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("react-transition-group"),n=require("primereact/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("react-transition-group"),n=require("primereact/hooks"),o=require("primereact/utils"),r=require("primereact/api");function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var s=u(t),c=i(r);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function a(t){var e=p(t,"string");return"symbol"===f(e)?e:String(e)}function l(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(t){return o.ObjectUtils.getMergedProps(t,b.defaultProps)},getOtherProps:function(t){return o.ObjectUtils.getDiffProps(t,b.defaultProps)}};function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y=s.forwardRef((function(t,i){var u=b.getProps(t),f=s.useContext(r.PrimeReactContext),p=u.disabled||u.options&&u.options.disabled||f&&!f.cssTransition||!c.default.cssTransition,a=function(t,e){u.onEnter&&u.onEnter(t,e),u.options&&u.options.onEnter&&u.options.onEnter(t,e)},l=function(t,e){u.onEntering&&u.onEntering(t,e),u.options&&u.options.onEntering&&u.options.onEntering(t,e)},d=function(t,e){u.onEntered&&u.onEntered(t,e),u.options&&u.options.onEntered&&u.options.onEntered(t,e)},y=function(t){u.onExit&&u.onExit(t),u.options&&u.options.onExit&&u.options.onExit(t)},g=function(t){u.onExiting&&u.onExiting(t),u.options&&u.options.onExiting&&u.options.onExiting(t)},m=function(t){u.onExited&&u.onExited(t),u.options&&u.options.onExited&&u.options.onExited(t)};if(n.useUpdateEffect((function(){if(p){var t=o.ObjectUtils.getRefElement(u.nodeRef);u.in?(a(t,!0),l(t,!0),d(t,!0)):(y(t),g(t),m(t))}}),[u.in]),p)return u.in?u.children:null;var O={nodeRef:u.nodeRef,in:u.in,onEnter:a,onEntering:l,onEntered:d,onExit:y,onExiting:g,onExited:m},j=E(E(E({},{classNames:u.classNames,timeout:u.timeout,unmountOnExit:u.unmountOnExit}),u.options||{}),O);return s.createElement(e.CSSTransition,j,u.children)}));y.displayName="CSSTransition",exports.CSSTransition=y;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSSTransition as CSSTransition$1 } from 'react-transition-group';
|
|
3
|
-
import PrimeReact from 'primereact/api';
|
|
4
3
|
import { useUpdateEffect } from 'primereact/hooks';
|
|
5
4
|
import { ObjectUtils } from 'primereact/utils';
|
|
5
|
+
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
6
6
|
|
|
7
7
|
function _typeof(obj) {
|
|
8
8
|
"@babel/helpers - typeof";
|
|
@@ -62,7 +62,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
62
62
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
63
63
|
var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
64
64
|
var props = CSSTransitionBase.getProps(inProps);
|
|
65
|
-
var
|
|
65
|
+
var context = React.useContext(PrimeReactContext);
|
|
66
|
+
var disabled = props.disabled || props.options && props.options.disabled || context && !context.cssTransition || !PrimeReact.cssTransition;
|
|
66
67
|
var onEnter = function onEnter(node, isAppearing) {
|
|
67
68
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
68
69
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as n from"react";import{CSSTransition as t}from"react-transition-group";import o
|
|
1
|
+
import*as n from"react";import{CSSTransition as t}from"react-transition-group";import{useUpdateEffect as o}from"primereact/hooks";import{ObjectUtils as e}from"primereact/utils";import r,{PrimeReactContext as i}from"primereact/api";function s(n){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},s(n)}function p(n,t){if("object"!==s(n)||null===n)return n;var o=n[Symbol.toPrimitive];if(void 0!==o){var e=o.call(n,t||"default");if("object"!==s(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}function u(n){var t=p(n,"string");return"symbol"===s(t)?t:String(t)}function c(n,t,o){return(t=u(t))in n?Object.defineProperty(n,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[t]=o,n}var f={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(n){return e.getMergedProps(n,f.defaultProps)},getOtherProps:function(n){return e.getDiffProps(n,f.defaultProps)}};function a(n,t){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.push.apply(o,e)}return o}function l(n){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){c(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}))}return n}var m=n.forwardRef((function(s,p){var u=f.getProps(s),c=n.useContext(i),a=u.disabled||u.options&&u.options.disabled||c&&!c.cssTransition||!r.cssTransition,m=function(n,t){u.onEnter&&u.onEnter(n,t),u.options&&u.options.onEnter&&u.options.onEnter(n,t)},E=function(n,t){u.onEntering&&u.onEntering(n,t),u.options&&u.options.onEntering&&u.options.onEntering(n,t)},b=function(n,t){u.onEntered&&u.onEntered(n,t),u.options&&u.options.onEntered&&u.options.onEntered(n,t)},d=function(n){u.onExit&&u.onExit(n),u.options&&u.options.onExit&&u.options.onExit(n)},g=function(n){u.onExiting&&u.onExiting(n),u.options&&u.options.onExiting&&u.options.onExiting(n)},y=function(n){u.onExited&&u.onExited(n),u.options&&u.options.onExited&&u.options.onExited(n)};if(o((function(){if(a){var n=e.getRefElement(u.nodeRef);u.in?(m(n,!0),E(n,!0),b(n,!0)):(d(n),g(n),y(n))}}),[u.in]),a)return u.in?u.children:null;var O={nodeRef:u.nodeRef,in:u.in,onEnter:m,onEntering:E,onEntered:b,onExit:d,onExiting:g,onExited:y},P=l(l(l({},{classNames:u.classNames,timeout:u.timeout,unmountOnExit:u.unmountOnExit}),u.options||{}),O);return n.createElement(t,P,u.children)}));m.displayName="CSSTransition";export{m as CSSTransition};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
2
|
+
this.primereact.csstransition = (function (exports, React, reactTransitionGroup, hooks, utils, PrimeReact) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -83,7 +83,8 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
|
83
83
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
84
84
|
var CSSTransition = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
85
85
|
var props = CSSTransitionBase.getProps(inProps);
|
|
86
|
-
var
|
|
86
|
+
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
87
|
+
var disabled = props.disabled || props.options && props.options.disabled || context && !context.cssTransition || !PrimeReact__default["default"].cssTransition;
|
|
87
88
|
var onEnter = function onEnter(node, isAppearing) {
|
|
88
89
|
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
89
90
|
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
@@ -159,4 +160,4 @@ this.primereact.csstransition = (function (exports, React, reactTransitionGroup,
|
|
|
159
160
|
|
|
160
161
|
return exports;
|
|
161
162
|
|
|
162
|
-
})({}, React, ReactTransitionGroup, primereact.
|
|
163
|
+
})({}, React, ReactTransitionGroup, primereact.hooks, primereact.utils, primereact.api);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.csstransition=function(t,n,e,o,r,i){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.csstransition=function(t,n,e,o,r,i){"use strict";function s(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var n=Object.create(null);return t&&Object.keys(t).forEach((function(e){if("default"!==e){var o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:function(){return t[e]}})}})),n.default=t,Object.freeze(n)}var c=u(n),f=s(i);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function p(t,n){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!==a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}function l(t){var n=p(t,"string");return"symbol"===a(n)?n:String(n)}function b(t,n,e){return(n=l(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var d={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(t){return r.ObjectUtils.getMergedProps(t,d.defaultProps)},getOtherProps:function(t){return r.ObjectUtils.getDiffProps(t,d.defaultProps)}};function E(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function m(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?E(Object(e),!0).forEach((function(n){b(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var y=c.forwardRef((function(t,n){var s=d.getProps(t),u=c.useContext(i.PrimeReactContext),a=s.disabled||s.options&&s.options.disabled||u&&!u.cssTransition||!f.default.cssTransition,p=function(t,n){s.onEnter&&s.onEnter(t,n),s.options&&s.options.onEnter&&s.options.onEnter(t,n)},l=function(t,n){s.onEntering&&s.onEntering(t,n),s.options&&s.options.onEntering&&s.options.onEntering(t,n)},b=function(t,n){s.onEntered&&s.onEntered(t,n),s.options&&s.options.onEntered&&s.options.onEntered(t,n)},E=function(t){s.onExit&&s.onExit(t),s.options&&s.options.onExit&&s.options.onExit(t)},y=function(t){s.onExiting&&s.onExiting(t),s.options&&s.options.onExiting&&s.options.onExiting(t)},g=function(t){s.onExited&&s.onExited(t),s.options&&s.options.onExited&&s.options.onExited(t)};if(o.useUpdateEffect((function(){if(a){var t=r.ObjectUtils.getRefElement(s.nodeRef);s.in?(p(t,!0),l(t,!0),b(t,!0)):(E(t),y(t),g(t))}}),[s.in]),a)return s.in?s.children:null;var O={nodeRef:s.nodeRef,in:s.in,onEnter:p,onEntering:l,onEntered:b,onExit:E,onExiting:y,onExited:g},j=m(m(m({},{classNames:s.classNames,timeout:s.timeout,unmountOnExit:s.unmountOnExit}),s.options||{}),O);return c.createElement(e.CSSTransition,j,s.children)}));return y.displayName="CSSTransition",t.CSSTransition=y,Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,ReactTransitionGroup,primereact.hooks,primereact.utils,primereact.api);
|
|
@@ -6,6 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var api = require('primereact/api');
|
|
7
7
|
var hooks = require('primereact/hooks');
|
|
8
8
|
var utils = require('primereact/utils');
|
|
9
|
+
var componentbase = require('primereact/componentbase');
|
|
9
10
|
|
|
10
11
|
function _interopNamespace(e) {
|
|
11
12
|
if (e && e.__esModule) return e;
|
|
@@ -27,21 +28,6 @@ function _interopNamespace(e) {
|
|
|
27
28
|
|
|
28
29
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
30
|
|
|
30
|
-
function _extends() {
|
|
31
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
32
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33
|
-
var source = arguments[i];
|
|
34
|
-
for (var key in source) {
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
36
|
-
target[key] = source[key];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return target;
|
|
41
|
-
};
|
|
42
|
-
return _extends.apply(this, arguments);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
31
|
function _arrayLikeToArray(arr, len) {
|
|
46
32
|
if (len == null || len > arr.length) len = arr.length;
|
|
47
33
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -113,7 +99,7 @@ function _slicedToArray(arr, i) {
|
|
|
113
99
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
114
100
|
}
|
|
115
101
|
|
|
116
|
-
var DataScrollerBase = {
|
|
102
|
+
var DataScrollerBase = componentbase.ComponentBase.extend({
|
|
117
103
|
defaultProps: {
|
|
118
104
|
__TYPE: 'DataScroller',
|
|
119
105
|
id: null,
|
|
@@ -132,21 +118,20 @@ var DataScrollerBase = {
|
|
|
132
118
|
footer: null,
|
|
133
119
|
lazy: false,
|
|
134
120
|
children: undefined
|
|
135
|
-
},
|
|
136
|
-
getProps: function getProps(props) {
|
|
137
|
-
return utils.ObjectUtils.getMergedProps(props, DataScrollerBase.defaultProps);
|
|
138
|
-
},
|
|
139
|
-
getOtherProps: function getOtherProps(props) {
|
|
140
|
-
return utils.ObjectUtils.getDiffProps(props, DataScrollerBase.defaultProps);
|
|
141
121
|
}
|
|
142
|
-
};
|
|
122
|
+
});
|
|
143
123
|
|
|
144
124
|
var DataScroller = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
145
|
-
var
|
|
125
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
126
|
+
var props = DataScrollerBase.getProps(inProps, context);
|
|
146
127
|
var _React$useState = React__namespace.useState([]),
|
|
147
128
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
148
129
|
dataToRenderState = _React$useState2[0],
|
|
149
130
|
setDataToRenderState = _React$useState2[1];
|
|
131
|
+
var _DataScrollerBase$set = DataScrollerBase.setMetaData({
|
|
132
|
+
props: props
|
|
133
|
+
}),
|
|
134
|
+
ptm = _DataScrollerBase$set.ptm;
|
|
150
135
|
var elementRef = React__namespace.useRef(null);
|
|
151
136
|
var contentRef = React__namespace.useRef(null);
|
|
152
137
|
var value = React__namespace.useRef(props.value);
|
|
@@ -269,55 +254,61 @@ var DataScroller = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
269
254
|
};
|
|
270
255
|
});
|
|
271
256
|
var createHeader = function createHeader() {
|
|
257
|
+
var headerProps = utils.mergeProps({
|
|
258
|
+
className: 'p-datascroller-header'
|
|
259
|
+
}, ptm('header'));
|
|
272
260
|
if (props.header) {
|
|
273
|
-
return /*#__PURE__*/React__namespace.createElement("div",
|
|
274
|
-
className: "p-datascroller-header"
|
|
275
|
-
}, props.header);
|
|
261
|
+
return /*#__PURE__*/React__namespace.createElement("div", headerProps, props.header);
|
|
276
262
|
}
|
|
277
263
|
return null;
|
|
278
264
|
};
|
|
279
265
|
var createFooter = function createFooter() {
|
|
266
|
+
var footerProps = utils.mergeProps({
|
|
267
|
+
className: 'p-datascroller-footer'
|
|
268
|
+
}, ptm('footer'));
|
|
280
269
|
if (props.footer) {
|
|
281
|
-
return /*#__PURE__*/React__namespace.createElement("div",
|
|
282
|
-
className: "p-datascroller-footer"
|
|
283
|
-
}, props.footer);
|
|
270
|
+
return /*#__PURE__*/React__namespace.createElement("div", footerProps, props.footer);
|
|
284
271
|
}
|
|
285
272
|
return null;
|
|
286
273
|
};
|
|
287
274
|
var createItem = function createItem(_value, index) {
|
|
288
|
-
var
|
|
289
|
-
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
275
|
+
var itemProps = utils.mergeProps({
|
|
290
276
|
key: index + '_datascrollitem'
|
|
291
|
-
},
|
|
277
|
+
}, ptm('item'));
|
|
278
|
+
var content = props.itemTemplate ? props.itemTemplate(_value) : _value;
|
|
279
|
+
return /*#__PURE__*/React__namespace.createElement("li", itemProps, content);
|
|
292
280
|
};
|
|
293
281
|
var createEmptyMessage = function createEmptyMessage() {
|
|
282
|
+
var emptyMessageProps = utils.mergeProps(ptm('emptyMessage'));
|
|
294
283
|
var content = utils.ObjectUtils.getJSXElement(props.emptyMessage, props) || api.localeOption('emptyMessage');
|
|
295
|
-
return /*#__PURE__*/React__namespace.createElement("li",
|
|
284
|
+
return /*#__PURE__*/React__namespace.createElement("li", emptyMessageProps, content);
|
|
296
285
|
};
|
|
297
286
|
var createContent = function createContent() {
|
|
298
|
-
var
|
|
299
|
-
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
287
|
+
var contentProps = utils.mergeProps({
|
|
300
288
|
ref: contentRef,
|
|
301
|
-
className:
|
|
289
|
+
className: 'p-datascroller-content',
|
|
302
290
|
style: {
|
|
303
291
|
maxHeight: props.scrollHeight
|
|
304
292
|
}
|
|
305
|
-
},
|
|
306
|
-
|
|
307
|
-
|
|
293
|
+
}, ptm('content'));
|
|
294
|
+
var listProps = utils.mergeProps({
|
|
295
|
+
className: 'p-datascroller-list'
|
|
296
|
+
}, ptm('list'));
|
|
297
|
+
var content = utils.ObjectUtils.isNotEmpty(dataToRenderState) ? dataToRenderState.map(createItem) : createEmptyMessage();
|
|
298
|
+
return /*#__PURE__*/React__namespace.createElement("div", contentProps, /*#__PURE__*/React__namespace.createElement("ul", listProps, content));
|
|
308
299
|
};
|
|
309
|
-
var otherProps = DataScrollerBase.getOtherProps(props);
|
|
310
300
|
var className = utils.classNames('p-datascroller p-component', props.className, {
|
|
311
301
|
'p-datascroller-inline': props.inline
|
|
312
302
|
});
|
|
313
303
|
var header = createHeader();
|
|
314
304
|
var footer = createFooter();
|
|
315
305
|
var content = createContent();
|
|
316
|
-
|
|
306
|
+
var rootProps = utils.mergeProps({
|
|
317
307
|
id: props.id,
|
|
318
308
|
ref: elementRef,
|
|
319
309
|
className: className
|
|
320
|
-
},
|
|
310
|
+
}, DataScrollerBase.getOtherProps(props), ptm('root'));
|
|
311
|
+
return /*#__PURE__*/React__namespace.createElement("div", rootProps, header, content, footer);
|
|
321
312
|
}));
|
|
322
313
|
DataScroller.displayName = 'DataScroller';
|
|
323
314
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/hooks"),n=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/hooks"),n=require("primereact/utils"),l=require("primereact/componentbase");function o(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=o(e);function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e){if(Array.isArray(e))return u(e)}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,r){if(e){if("string"==typeof e)return u(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e){return c(e)||i(e)||s(e)||f()}function d(e){if(Array.isArray(e))return e}function p(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,o,a,u=[],c=!0,i=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){i=!0,l=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(i)throw l}}return u}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=l.ComponentBase.extend({defaultProps:{__TYPE:"DataScroller",id:null,value:null,rows:0,inline:!1,scrollHeight:null,loader:!1,buffer:.9,style:null,className:null,onLazyLoad:null,emptyMessage:null,itemTemplate:null,header:null,footer:null,lazy:!1,children:void 0}}),g=a.memo(a.forwardRef((function(e,l){var o,u,c=a.useContext(r.PrimeReactContext),i=v.getProps(e,c),f=a.useState([]),g=(u=2,d(o=f)||p(o,u)||s(o,u)||y()),h=g[0],b=g[1],E=v.setMetaData({props:i}).ptm,w=a.useRef(null),O=a.useRef(null),P=a.useRef(i.value),j=a.useRef([]),S=a.useRef(0),H=a.useRef(null),L=function(){if(i.lazy)i.onLazyLoad&&i.onLazyLoad(N()),S.current+=i.rows;else if(P.current){for(var e=S.current;e<S.current+i.rows&&!(e>=P.current.length);e++)j.current.push(P.current[e]);0!==P.current.length&&(S.current+=i.rows),b(m(j.current))}},M=function(){S.current=0,j.current=[],b(m(j.current)),L()},N=function(){return{first:S.current,rows:i.rows}},A=function(){H.current&&(i.inline&&O.current?O.current.removeEventListener("scroll",H.current):i.loader||window.removeEventListener("scroll",H.current)),H.current=null};t.useMountEffect((function(){L(),i.loader||(i.inline?(H.current=function(){O.current.scrollTop>=O.current.scrollHeight*i.buffer-O.current.clientHeight&&L()},O.current.addEventListener("scroll",H.current)):(H.current=function(){var e=document.body,r=document.documentElement,t=window.pageYOffset||document.documentElement.scrollTop,n=r.clientHeight;t>=Math.max(e.scrollHeight,e.offsetHeight,n,r.scrollHeight,r.offsetHeight)*i.buffer-n&&L()},window.addEventListener("scroll",H.current)))})),t.useUpdateEffect((function(){i.value&&(P.current=i.value,i.lazy||(S.current=0),j.current=[],i.lazy?(j.current=P.current,b(m(j.current))):L())}),[i.value]),t.useUpdateEffect((function(){i.loader&&A()}),[i.loader]),t.useUnmountEffect((function(){H.current&&A()})),a.useImperativeHandle(l,(function(){return{props:i,load:L,reset:M,getElement:function(){return w.current},getContent:function(){return O.current}}}));var x,z,R=function(e,r){var t=n.mergeProps({key:r+"_datascrollitem"},E("item")),l=i.itemTemplate?i.itemTemplate(e):e;return a.createElement("li",t,l)},T=function(){var e=n.mergeProps(E("emptyMessage")),t=n.ObjectUtils.getJSXElement(i.emptyMessage,i)||r.localeOption("emptyMessage");return a.createElement("li",e,t)},_=n.classNames("p-datascroller p-component",i.className,{"p-datascroller-inline":i.inline}),I=(x=n.mergeProps({className:"p-datascroller-header"},E("header")),i.header?a.createElement("div",x,i.header):null),U=(z=n.mergeProps({className:"p-datascroller-footer"},E("footer")),i.footer?a.createElement("div",z,i.footer):null),q=function(){var e=n.mergeProps({ref:O,className:"p-datascroller-content",style:{maxHeight:i.scrollHeight}},E("content")),r=n.mergeProps({className:"p-datascroller-list"},E("list")),t=n.ObjectUtils.isNotEmpty(h)?h.map(R):T();return a.createElement("div",e,a.createElement("ul",r,t))}(),C=n.mergeProps({id:i.id,ref:w,className:_},v.getOtherProps(i),E("root"));return a.createElement("div",C,I,q,U)})));g.displayName="DataScroller",exports.DataScroller=g;
|
|
@@ -8,6 +8,51 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
|
+
import { PassThroughType } from '../utils';
|
|
12
|
+
|
|
13
|
+
export declare type DataScrollerPassThroughType<T> = PassThroughType<T, DataScrollerPassThroughMethodOptions>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface DataScrollerPassThroughMethodOptions {
|
|
19
|
+
props: DataScrollerProps;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough(pt) options.
|
|
24
|
+
* @see {@link DataScrollerProps.pt}
|
|
25
|
+
*/
|
|
26
|
+
export interface DataScrollerPassThroughOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Uses to pass attributes to the root's DOM element.
|
|
29
|
+
*/
|
|
30
|
+
root?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the header's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
header?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the footer's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
footer?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
39
|
+
/**
|
|
40
|
+
* Uses to pass attributes to the item's DOM element.
|
|
41
|
+
*/
|
|
42
|
+
item?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
43
|
+
/**
|
|
44
|
+
* Uses to pass attributes to the emptyMessage's DOM element.
|
|
45
|
+
*/
|
|
46
|
+
emptyMessage?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLLIElement>>;
|
|
47
|
+
/**
|
|
48
|
+
* Uses to pass attributes to the list's DOM element.
|
|
49
|
+
*/
|
|
50
|
+
list?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
|
|
51
|
+
/**
|
|
52
|
+
* Uses to pass attributes to the list's DOM element.
|
|
53
|
+
*/
|
|
54
|
+
content?: DataScrollerPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
|
|
55
|
+
}
|
|
11
56
|
|
|
12
57
|
/**
|
|
13
58
|
* Custom lazy event.
|
|
@@ -29,7 +74,7 @@ interface DataScrollerLazyLoadEvents {
|
|
|
29
74
|
* Defines valid properties in DataScroller component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
30
75
|
* @group Properties
|
|
31
76
|
*/
|
|
32
|
-
export interface DataScrollerProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
77
|
+
export interface DataScrollerProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'pt'> {
|
|
33
78
|
/**
|
|
34
79
|
* Number of buffer size.
|
|
35
80
|
* @defaultValue 0.9
|
|
@@ -89,6 +134,11 @@ export interface DataScrollerProps extends Omit<React.DetailedHTMLProps<React.HT
|
|
|
89
134
|
* @param {DataScrollerLazyLoadEvents} event - Custom lazy event
|
|
90
135
|
*/
|
|
91
136
|
onLazyLoad?(event: DataScrollerLazyLoadEvents): void;
|
|
137
|
+
/**
|
|
138
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
139
|
+
* @type {DataScrollerPassThroughOptions}
|
|
140
|
+
*/
|
|
141
|
+
pt?: DataScrollerPassThroughOptions;
|
|
92
142
|
}
|
|
93
143
|
|
|
94
144
|
/**
|
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { localeOption } from 'primereact/api';
|
|
2
|
+
import { PrimeReactContext, localeOption } from 'primereact/api';
|
|
3
3
|
import { useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
function _extends() {
|
|
7
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
8
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
-
var source = arguments[i];
|
|
10
|
-
for (var key in source) {
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
-
target[key] = source[key];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
return _extends.apply(this, arguments);
|
|
19
|
-
}
|
|
4
|
+
import { classNames, mergeProps, ObjectUtils } from 'primereact/utils';
|
|
5
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
20
6
|
|
|
21
7
|
function _arrayLikeToArray(arr, len) {
|
|
22
8
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -89,7 +75,7 @@ function _slicedToArray(arr, i) {
|
|
|
89
75
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
90
76
|
}
|
|
91
77
|
|
|
92
|
-
var DataScrollerBase = {
|
|
78
|
+
var DataScrollerBase = ComponentBase.extend({
|
|
93
79
|
defaultProps: {
|
|
94
80
|
__TYPE: 'DataScroller',
|
|
95
81
|
id: null,
|
|
@@ -108,21 +94,20 @@ var DataScrollerBase = {
|
|
|
108
94
|
footer: null,
|
|
109
95
|
lazy: false,
|
|
110
96
|
children: undefined
|
|
111
|
-
},
|
|
112
|
-
getProps: function getProps(props) {
|
|
113
|
-
return ObjectUtils.getMergedProps(props, DataScrollerBase.defaultProps);
|
|
114
|
-
},
|
|
115
|
-
getOtherProps: function getOtherProps(props) {
|
|
116
|
-
return ObjectUtils.getDiffProps(props, DataScrollerBase.defaultProps);
|
|
117
97
|
}
|
|
118
|
-
};
|
|
98
|
+
});
|
|
119
99
|
|
|
120
100
|
var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
121
|
-
var
|
|
101
|
+
var context = React.useContext(PrimeReactContext);
|
|
102
|
+
var props = DataScrollerBase.getProps(inProps, context);
|
|
122
103
|
var _React$useState = React.useState([]),
|
|
123
104
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
124
105
|
dataToRenderState = _React$useState2[0],
|
|
125
106
|
setDataToRenderState = _React$useState2[1];
|
|
107
|
+
var _DataScrollerBase$set = DataScrollerBase.setMetaData({
|
|
108
|
+
props: props
|
|
109
|
+
}),
|
|
110
|
+
ptm = _DataScrollerBase$set.ptm;
|
|
126
111
|
var elementRef = React.useRef(null);
|
|
127
112
|
var contentRef = React.useRef(null);
|
|
128
113
|
var value = React.useRef(props.value);
|
|
@@ -245,55 +230,61 @@ var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
245
230
|
};
|
|
246
231
|
});
|
|
247
232
|
var createHeader = function createHeader() {
|
|
233
|
+
var headerProps = mergeProps({
|
|
234
|
+
className: 'p-datascroller-header'
|
|
235
|
+
}, ptm('header'));
|
|
248
236
|
if (props.header) {
|
|
249
|
-
return /*#__PURE__*/React.createElement("div",
|
|
250
|
-
className: "p-datascroller-header"
|
|
251
|
-
}, props.header);
|
|
237
|
+
return /*#__PURE__*/React.createElement("div", headerProps, props.header);
|
|
252
238
|
}
|
|
253
239
|
return null;
|
|
254
240
|
};
|
|
255
241
|
var createFooter = function createFooter() {
|
|
242
|
+
var footerProps = mergeProps({
|
|
243
|
+
className: 'p-datascroller-footer'
|
|
244
|
+
}, ptm('footer'));
|
|
256
245
|
if (props.footer) {
|
|
257
|
-
return /*#__PURE__*/React.createElement("div",
|
|
258
|
-
className: "p-datascroller-footer"
|
|
259
|
-
}, props.footer);
|
|
246
|
+
return /*#__PURE__*/React.createElement("div", footerProps, props.footer);
|
|
260
247
|
}
|
|
261
248
|
return null;
|
|
262
249
|
};
|
|
263
250
|
var createItem = function createItem(_value, index) {
|
|
264
|
-
var
|
|
265
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
251
|
+
var itemProps = mergeProps({
|
|
266
252
|
key: index + '_datascrollitem'
|
|
267
|
-
},
|
|
253
|
+
}, ptm('item'));
|
|
254
|
+
var content = props.itemTemplate ? props.itemTemplate(_value) : _value;
|
|
255
|
+
return /*#__PURE__*/React.createElement("li", itemProps, content);
|
|
268
256
|
};
|
|
269
257
|
var createEmptyMessage = function createEmptyMessage() {
|
|
258
|
+
var emptyMessageProps = mergeProps(ptm('emptyMessage'));
|
|
270
259
|
var content = ObjectUtils.getJSXElement(props.emptyMessage, props) || localeOption('emptyMessage');
|
|
271
|
-
return /*#__PURE__*/React.createElement("li",
|
|
260
|
+
return /*#__PURE__*/React.createElement("li", emptyMessageProps, content);
|
|
272
261
|
};
|
|
273
262
|
var createContent = function createContent() {
|
|
274
|
-
var
|
|
275
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
263
|
+
var contentProps = mergeProps({
|
|
276
264
|
ref: contentRef,
|
|
277
|
-
className:
|
|
265
|
+
className: 'p-datascroller-content',
|
|
278
266
|
style: {
|
|
279
267
|
maxHeight: props.scrollHeight
|
|
280
268
|
}
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
|
|
269
|
+
}, ptm('content'));
|
|
270
|
+
var listProps = mergeProps({
|
|
271
|
+
className: 'p-datascroller-list'
|
|
272
|
+
}, ptm('list'));
|
|
273
|
+
var content = ObjectUtils.isNotEmpty(dataToRenderState) ? dataToRenderState.map(createItem) : createEmptyMessage();
|
|
274
|
+
return /*#__PURE__*/React.createElement("div", contentProps, /*#__PURE__*/React.createElement("ul", listProps, content));
|
|
284
275
|
};
|
|
285
|
-
var otherProps = DataScrollerBase.getOtherProps(props);
|
|
286
276
|
var className = classNames('p-datascroller p-component', props.className, {
|
|
287
277
|
'p-datascroller-inline': props.inline
|
|
288
278
|
});
|
|
289
279
|
var header = createHeader();
|
|
290
280
|
var footer = createFooter();
|
|
291
281
|
var content = createContent();
|
|
292
|
-
|
|
282
|
+
var rootProps = mergeProps({
|
|
293
283
|
id: props.id,
|
|
294
284
|
ref: elementRef,
|
|
295
285
|
className: className
|
|
296
|
-
},
|
|
286
|
+
}, DataScrollerBase.getOtherProps(props), ptm('root'));
|
|
287
|
+
return /*#__PURE__*/React.createElement("div", rootProps, header, content, footer);
|
|
297
288
|
}));
|
|
298
289
|
DataScroller.displayName = 'DataScroller';
|
|
299
290
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{localeOption as
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as r,localeOption as t}from"primereact/api";import{useMountEffect as n,useUpdateEffect as l,useUnmountEffect as o}from"primereact/hooks";import{classNames as a,mergeProps as u,ObjectUtils as c}from"primereact/utils";import{ComponentBase as i}from"primereact/componentbase";function s(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function f(e){if(Array.isArray(e))return s(e)}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,r){if(e){if("string"==typeof e)return s(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,r):void 0}}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return f(e)||m(e)||d(e)||p()}function v(e){if(Array.isArray(e))return e}function h(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,o,a,u=[],c=!0,i=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){i=!0,l=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(i)throw l}}return u}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b=i.extend({defaultProps:{__TYPE:"DataScroller",id:null,value:null,rows:0,inline:!1,scrollHeight:null,loader:!1,buffer:.9,style:null,className:null,onLazyLoad:null,emptyMessage:null,itemTemplate:null,header:null,footer:null,lazy:!1,children:void 0}}),w=e.memo(e.forwardRef((function(i,s){var f,m,p=e.useContext(r),w=b.getProps(i,p),E=e.useState([]),S=(m=2,v(f=E)||h(f,m)||d(f,m)||g()),H=S[0],L=S[1],A=b.setMetaData({props:w}).ptm,N=e.useRef(null),T=e.useRef(null),z=e.useRef(w.value),M=e.useRef([]),R=e.useRef(0),j=e.useRef(null),x=function(){if(w.lazy)w.onLazyLoad&&w.onLazyLoad(O()),R.current+=w.rows;else if(z.current){for(var e=R.current;e<R.current+w.rows&&!(e>=z.current.length);e++)M.current.push(z.current[e]);0!==z.current.length&&(R.current+=w.rows),L(y(M.current))}},I=function(){R.current=0,M.current=[],L(y(M.current)),x()},O=function(){return{first:R.current,rows:w.rows}},P=function(){j.current&&(w.inline&&T.current?T.current.removeEventListener("scroll",j.current):w.loader||window.removeEventListener("scroll",j.current)),j.current=null};n((function(){x(),w.loader||(w.inline?(j.current=function(){T.current.scrollTop>=T.current.scrollHeight*w.buffer-T.current.clientHeight&&x()},T.current.addEventListener("scroll",j.current)):(j.current=function(){var e=document.body,r=document.documentElement,t=window.pageYOffset||document.documentElement.scrollTop,n=r.clientHeight;t>=Math.max(e.scrollHeight,e.offsetHeight,n,r.scrollHeight,r.offsetHeight)*w.buffer-n&&x()},window.addEventListener("scroll",j.current)))})),l((function(){w.value&&(z.current=w.value,w.lazy||(R.current=0),M.current=[],w.lazy?(M.current=z.current,L(y(M.current))):x())}),[w.value]),l((function(){w.loader&&P()}),[w.loader]),o((function(){j.current&&P()})),e.useImperativeHandle(s,(function(){return{props:w,load:x,reset:I,getElement:function(){return N.current},getContent:function(){return T.current}}}));var C,D,_=function(r,t){var n=u({key:t+"_datascrollitem"},A("item")),l=w.itemTemplate?w.itemTemplate(r):r;return e.createElement("li",n,l)},k=function(){var r=u(A("emptyMessage")),n=c.getJSXElement(w.emptyMessage,w)||t("emptyMessage");return e.createElement("li",r,n)},Y=a("p-datascroller p-component",w.className,{"p-datascroller-inline":w.inline}),J=(C=u({className:"p-datascroller-header"},A("header")),w.header?e.createElement("div",C,w.header):null),U=(D=u({className:"p-datascroller-footer"},A("footer")),w.footer?e.createElement("div",D,w.footer):null),X=function(){var r=u({ref:T,className:"p-datascroller-content",style:{maxHeight:w.scrollHeight}},A("content")),t=u({className:"p-datascroller-list"},A("list")),n=c.isNotEmpty(H)?H.map(_):k();return e.createElement("div",r,e.createElement("ul",t,n))}(),$=u({id:w.id,ref:N,className:Y},b.getOtherProps(w),A("root"));return e.createElement("div",$,J,X,U)})));w.displayName="DataScroller";export{w as DataScroller};
|