primereact 9.5.0 → 9.6.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/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 +1165 -585
- 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 +911 -477
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +191 -3
- package/datatable/datatable.esm.js +913 -479
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +912 -479
- 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 +67 -55
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +13 -3
- package/fileupload/fileupload.esm.js +68 -56
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +64 -52
- 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 +4725 -3130
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4724 -3131
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4725 -3130
- 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 +568 -566
- 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 +6 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +6 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +6 -1
- 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
|
@@ -6,6 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var keyfilter = require('primereact/keyfilter');
|
|
7
7
|
var tooltip = require('primereact/tooltip');
|
|
8
8
|
var utils = require('primereact/utils');
|
|
9
|
+
var componentbase = require('primereact/componentbase');
|
|
10
|
+
var api = require('primereact/api');
|
|
9
11
|
|
|
10
12
|
function _interopNamespace(e) {
|
|
11
13
|
if (e && e.__esModule) return e;
|
|
@@ -42,13 +44,14 @@ function _extends() {
|
|
|
42
44
|
return _extends.apply(this, arguments);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
var InputTextareaBase = {
|
|
47
|
+
var InputTextareaBase = componentbase.ComponentBase.extend({
|
|
46
48
|
defaultProps: {
|
|
47
49
|
__TYPE: 'InputTextarea',
|
|
48
50
|
autoResize: false,
|
|
49
51
|
keyfilter: null,
|
|
50
52
|
onBlur: null,
|
|
51
53
|
onFocus: null,
|
|
54
|
+
onBeforeInput: null,
|
|
52
55
|
onInput: null,
|
|
53
56
|
onKeyDown: null,
|
|
54
57
|
onKeyUp: null,
|
|
@@ -57,19 +60,18 @@ var InputTextareaBase = {
|
|
|
57
60
|
tooltipOptions: null,
|
|
58
61
|
validateOnly: false,
|
|
59
62
|
children: undefined
|
|
60
|
-
},
|
|
61
|
-
getProps: function getProps(props) {
|
|
62
|
-
return utils.ObjectUtils.getMergedProps(props, InputTextareaBase.defaultProps);
|
|
63
|
-
},
|
|
64
|
-
getOtherProps: function getOtherProps(props) {
|
|
65
|
-
return utils.ObjectUtils.getDiffProps(props, InputTextareaBase.defaultProps);
|
|
66
63
|
}
|
|
67
|
-
};
|
|
64
|
+
});
|
|
68
65
|
|
|
69
66
|
var InputTextarea = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
70
|
-
var
|
|
67
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
68
|
+
var props = InputTextareaBase.getProps(inProps, context);
|
|
71
69
|
var elementRef = React__namespace.useRef(ref);
|
|
72
70
|
var cachedScrollHeight = React__namespace.useRef(0);
|
|
71
|
+
var _InputTextareaBase$se = InputTextareaBase.setMetaData({
|
|
72
|
+
props: props
|
|
73
|
+
}),
|
|
74
|
+
ptm = _InputTextareaBase$se.ptm;
|
|
73
75
|
var onFocus = function onFocus(event) {
|
|
74
76
|
if (props.autoResize) {
|
|
75
77
|
resize();
|
|
@@ -94,6 +96,12 @@ var InputTextarea = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
94
96
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
95
97
|
}
|
|
96
98
|
};
|
|
99
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
100
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
101
|
+
if (props.keyfilter) {
|
|
102
|
+
keyfilter.KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
97
105
|
var onPaste = function onPaste(event) {
|
|
98
106
|
props.onPaste && props.onPaste(event);
|
|
99
107
|
if (props.keyfilter) {
|
|
@@ -140,26 +148,28 @@ var InputTextarea = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__name
|
|
|
140
148
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue);
|
|
141
149
|
}, [props.value, props.defaultValue]);
|
|
142
150
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
143
|
-
var otherProps = InputTextareaBase.getOtherProps(props);
|
|
144
151
|
var className = utils.classNames('p-inputtextarea p-inputtext p-component', {
|
|
145
152
|
'p-disabled': props.disabled,
|
|
146
153
|
'p-filled': isFilled,
|
|
147
154
|
'p-inputtextarea-resizable': props.autoResize
|
|
148
155
|
}, props.className);
|
|
149
|
-
|
|
150
|
-
ref: elementRef
|
|
151
|
-
}, otherProps, {
|
|
156
|
+
var rootProps = utils.mergeProps({
|
|
157
|
+
ref: elementRef,
|
|
152
158
|
className: className,
|
|
153
159
|
onFocus: onFocus,
|
|
154
160
|
onBlur: onBlur,
|
|
155
161
|
onKeyUp: onKeyUp,
|
|
156
162
|
onKeyDown: onKeyDown,
|
|
163
|
+
onBeforeInput: onBeforeInput,
|
|
157
164
|
onInput: onInput,
|
|
158
165
|
onPaste: onPaste
|
|
159
|
-
}
|
|
166
|
+
}, InputTextareaBase.getOtherProps(props), ptm('root'));
|
|
167
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("textarea", rootProps), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
160
168
|
target: elementRef,
|
|
161
169
|
content: props.tooltip
|
|
162
|
-
}, props.tooltipOptions
|
|
170
|
+
}, props.tooltipOptions, {
|
|
171
|
+
pt: ptm('tooltip')
|
|
172
|
+
})));
|
|
163
173
|
}));
|
|
164
174
|
InputTextarea.displayName = 'InputTextarea';
|
|
165
175
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/keyfilter"),n=require("primereact/tooltip"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/keyfilter"),n=require("primereact/tooltip"),o=require("primereact/utils"),r=require("primereact/componentbase"),l=require("primereact/api");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(e);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(this,arguments)}var s=r.ComponentBase.extend({defaultProps:{__TYPE:"InputTextarea",autoResize:!1,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0}}),p=a.memo(a.forwardRef((function(e,r){var i=a.useContext(l.PrimeReactContext),p=s.getProps(e,i),c=a.useRef(r),f=a.useRef(0),y=s.setMetaData({props:p}).ptm,d=function(e){var t=c.current;t&&o.DomHandler.isVisible(t)&&(f.current||(f.current=t.scrollHeight,t.style.overflow="hidden"),(f.current!==t.scrollHeight||e)&&(t.style.height="",t.style.height=t.scrollHeight+"px",parseFloat(t.style.height)>=parseFloat(t.style.maxHeight)?(t.style.overflowY="scroll",t.style.height=t.style.maxHeight):t.style.overflow="hidden",f.current=t.scrollHeight))};a.useEffect((function(){o.ObjectUtils.combinedRefs(c,r)}),[c,r]),a.useEffect((function(){p.autoResize&&d(!0)}),[p.autoResize]);var m=a.useMemo((function(){return o.ObjectUtils.isNotEmpty(p.value)||o.ObjectUtils.isNotEmpty(p.defaultValue)}),[p.value,p.defaultValue]),v=o.ObjectUtils.isNotEmpty(p.tooltip),O=o.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":p.disabled,"p-filled":m,"p-inputtextarea-resizable":p.autoResize},p.className),b=o.mergeProps({ref:c,className:O,onFocus:function(e){p.autoResize&&d(),p.onFocus&&p.onFocus(e)},onBlur:function(e){p.autoResize&&d(),p.onBlur&&p.onBlur(e)},onKeyUp:function(e){p.autoResize&&d(),p.onKeyUp&&p.onKeyUp(e)},onKeyDown:function(e){p.onKeyDown&&p.onKeyDown(e),p.keyfilter&&t.KeyFilter.onKeyPress(e,p.keyfilter,p.validateOnly)},onBeforeInput:function(e){p.onBeforeInput&&p.onBeforeInput(e),p.keyfilter&&t.KeyFilter.onBeforeInput(e,p.keyfilter,p.validateOnly)},onInput:function(e){var t=e.target;p.autoResize&&d(o.ObjectUtils.isEmpty(t.value)),p.onInput&&p.onInput(e),o.ObjectUtils.isNotEmpty(t.value)?o.DomHandler.addClass(t,"p-filled"):o.DomHandler.removeClass(t,"p-filled")},onPaste:function(e){p.onPaste&&p.onPaste(e),p.keyfilter&&t.KeyFilter.onPaste(e,p.keyfilter,p.validateOnly)}},s.getOtherProps(p),y("root"));return a.createElement(a.Fragment,null,a.createElement("textarea",b),v&&a.createElement(n.Tooltip,u({target:c,content:p.tooltip},p.tooltipOptions,{pt:y("tooltip")})))})));p.displayName="InputTextarea",exports.InputTextarea=p;
|
|
@@ -9,13 +9,40 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import { KeyFilterType } from '../keyfilter';
|
|
12
|
+
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
|
|
12
13
|
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
14
|
+
import { PassThroughType } from '../utils/utils';
|
|
15
|
+
|
|
16
|
+
export declare type InputTextareaPassThroughType<T> = PassThroughType<T, InputTextareaPassThroughMethodOptions>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Custom passthrough(pt) option method.
|
|
20
|
+
*/
|
|
21
|
+
export interface InputTextareaPassThroughMethodOptions {
|
|
22
|
+
props: InputTextareaProps;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Custom passthrough(pt) options.
|
|
27
|
+
* @see {@link InputTextareaProps.pt}
|
|
28
|
+
*/
|
|
29
|
+
export interface InputTextareaPassThroughOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Uses to pass attributes to the root's DOM element.
|
|
32
|
+
*/
|
|
33
|
+
root?: InputTextareaPassThroughType<React.HTMLAttributes<HTMLTextAreaElement>>;
|
|
34
|
+
/**
|
|
35
|
+
* Uses to pass attributes tooltip's DOM element.
|
|
36
|
+
* @type {TooltipPassThroughOptions}
|
|
37
|
+
*/
|
|
38
|
+
tooltip?: TooltipPassThroughOptions;
|
|
39
|
+
}
|
|
13
40
|
|
|
14
41
|
/**
|
|
15
42
|
* Defines valid properties in InputTextarea component. In addition to these, all properties of HTMLTextAreaElement can be used in this component.
|
|
16
43
|
* @group Properties
|
|
17
44
|
*/
|
|
18
|
-
export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'ref' | 'value'> {
|
|
45
|
+
export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'ref' | 'value' | 'pt'> {
|
|
19
46
|
/**
|
|
20
47
|
* When present, height of textarea changes as being typed.
|
|
21
48
|
* @defaultValue false
|
|
@@ -43,6 +70,11 @@ export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.T
|
|
|
43
70
|
* @readonly
|
|
44
71
|
*/
|
|
45
72
|
children?: React.ReactNode | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
75
|
+
* @type {InputTextareaPassThroughOptions}
|
|
76
|
+
*/
|
|
77
|
+
pt?: InputTextareaPassThroughOptions;
|
|
46
78
|
}
|
|
47
79
|
|
|
48
80
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { KeyFilter } from 'primereact/keyfilter';
|
|
3
3
|
import { Tooltip } from 'primereact/tooltip';
|
|
4
|
-
import { ObjectUtils, classNames, DomHandler } from 'primereact/utils';
|
|
4
|
+
import { ObjectUtils, classNames, mergeProps, DomHandler } from 'primereact/utils';
|
|
5
|
+
import { ComponentBase } from 'primereact/componentbase';
|
|
6
|
+
import { PrimeReactContext } from 'primereact/api';
|
|
5
7
|
|
|
6
8
|
function _extends() {
|
|
7
9
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -18,13 +20,14 @@ function _extends() {
|
|
|
18
20
|
return _extends.apply(this, arguments);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
var InputTextareaBase = {
|
|
23
|
+
var InputTextareaBase = ComponentBase.extend({
|
|
22
24
|
defaultProps: {
|
|
23
25
|
__TYPE: 'InputTextarea',
|
|
24
26
|
autoResize: false,
|
|
25
27
|
keyfilter: null,
|
|
26
28
|
onBlur: null,
|
|
27
29
|
onFocus: null,
|
|
30
|
+
onBeforeInput: null,
|
|
28
31
|
onInput: null,
|
|
29
32
|
onKeyDown: null,
|
|
30
33
|
onKeyUp: null,
|
|
@@ -33,19 +36,18 @@ var InputTextareaBase = {
|
|
|
33
36
|
tooltipOptions: null,
|
|
34
37
|
validateOnly: false,
|
|
35
38
|
children: undefined
|
|
36
|
-
},
|
|
37
|
-
getProps: function getProps(props) {
|
|
38
|
-
return ObjectUtils.getMergedProps(props, InputTextareaBase.defaultProps);
|
|
39
|
-
},
|
|
40
|
-
getOtherProps: function getOtherProps(props) {
|
|
41
|
-
return ObjectUtils.getDiffProps(props, InputTextareaBase.defaultProps);
|
|
42
39
|
}
|
|
43
|
-
};
|
|
40
|
+
});
|
|
44
41
|
|
|
45
42
|
var InputTextarea = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
46
|
-
var
|
|
43
|
+
var context = React.useContext(PrimeReactContext);
|
|
44
|
+
var props = InputTextareaBase.getProps(inProps, context);
|
|
47
45
|
var elementRef = React.useRef(ref);
|
|
48
46
|
var cachedScrollHeight = React.useRef(0);
|
|
47
|
+
var _InputTextareaBase$se = InputTextareaBase.setMetaData({
|
|
48
|
+
props: props
|
|
49
|
+
}),
|
|
50
|
+
ptm = _InputTextareaBase$se.ptm;
|
|
49
51
|
var onFocus = function onFocus(event) {
|
|
50
52
|
if (props.autoResize) {
|
|
51
53
|
resize();
|
|
@@ -70,6 +72,12 @@ var InputTextarea = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
70
72
|
KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
71
73
|
}
|
|
72
74
|
};
|
|
75
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
76
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
77
|
+
if (props.keyfilter) {
|
|
78
|
+
KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
73
81
|
var onPaste = function onPaste(event) {
|
|
74
82
|
props.onPaste && props.onPaste(event);
|
|
75
83
|
if (props.keyfilter) {
|
|
@@ -116,26 +124,28 @@ var InputTextarea = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
116
124
|
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue);
|
|
117
125
|
}, [props.value, props.defaultValue]);
|
|
118
126
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
119
|
-
var otherProps = InputTextareaBase.getOtherProps(props);
|
|
120
127
|
var className = classNames('p-inputtextarea p-inputtext p-component', {
|
|
121
128
|
'p-disabled': props.disabled,
|
|
122
129
|
'p-filled': isFilled,
|
|
123
130
|
'p-inputtextarea-resizable': props.autoResize
|
|
124
131
|
}, props.className);
|
|
125
|
-
|
|
126
|
-
ref: elementRef
|
|
127
|
-
}, otherProps, {
|
|
132
|
+
var rootProps = mergeProps({
|
|
133
|
+
ref: elementRef,
|
|
128
134
|
className: className,
|
|
129
135
|
onFocus: onFocus,
|
|
130
136
|
onBlur: onBlur,
|
|
131
137
|
onKeyUp: onKeyUp,
|
|
132
138
|
onKeyDown: onKeyDown,
|
|
139
|
+
onBeforeInput: onBeforeInput,
|
|
133
140
|
onInput: onInput,
|
|
134
141
|
onPaste: onPaste
|
|
135
|
-
}
|
|
142
|
+
}, InputTextareaBase.getOtherProps(props), ptm('root'));
|
|
143
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("textarea", rootProps), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
136
144
|
target: elementRef,
|
|
137
145
|
content: props.tooltip
|
|
138
|
-
}, props.tooltipOptions
|
|
146
|
+
}, props.tooltipOptions, {
|
|
147
|
+
pt: ptm('tooltip')
|
|
148
|
+
})));
|
|
139
149
|
}));
|
|
140
150
|
InputTextarea.displayName = 'InputTextarea';
|
|
141
151
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{KeyFilter as t}from"primereact/keyfilter";import{Tooltip as o}from"primereact/tooltip";import{ObjectUtils as n,classNames as l,DomHandler as
|
|
1
|
+
import*as e from"react";import{KeyFilter as t}from"primereact/keyfilter";import{Tooltip as o}from"primereact/tooltip";import{ObjectUtils as n,classNames as l,mergeProps as r,DomHandler as i}from"primereact/utils";import{ComponentBase as a}from"primereact/componentbase";import{PrimeReactContext as u}from"primereact/api";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(this,arguments)}var p=a.extend({defaultProps:{__TYPE:"InputTextarea",autoResize:!1,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0}}),f=e.memo(e.forwardRef((function(a,f){var c=e.useContext(u),m=p.getProps(a,c),y=e.useRef(f),d=e.useRef(0),h=p.setMetaData({props:m}).ptm,v=function(e){var t=y.current;t&&i.isVisible(t)&&(d.current||(d.current=t.scrollHeight,t.style.overflow="hidden"),(d.current!==t.scrollHeight||e)&&(t.style.height="",t.style.height=t.scrollHeight+"px",parseFloat(t.style.height)>=parseFloat(t.style.maxHeight)?(t.style.overflowY="scroll",t.style.height=t.style.maxHeight):t.style.overflow="hidden",d.current=t.scrollHeight))};e.useEffect((function(){n.combinedRefs(y,f)}),[y,f]),e.useEffect((function(){m.autoResize&&v(!0)}),[m.autoResize]);var g=e.useMemo((function(){return n.isNotEmpty(m.value)||n.isNotEmpty(m.defaultValue)}),[m.value,m.defaultValue]),x=n.isNotEmpty(m.tooltip),R=l("p-inputtextarea p-inputtext p-component",{"p-disabled":m.disabled,"p-filled":g,"p-inputtextarea-resizable":m.autoResize},m.className),E=r({ref:y,className:R,onFocus:function(e){m.autoResize&&v(),m.onFocus&&m.onFocus(e)},onBlur:function(e){m.autoResize&&v(),m.onBlur&&m.onBlur(e)},onKeyUp:function(e){m.autoResize&&v(),m.onKeyUp&&m.onKeyUp(e)},onKeyDown:function(e){m.onKeyDown&&m.onKeyDown(e),m.keyfilter&&t.onKeyPress(e,m.keyfilter,m.validateOnly)},onBeforeInput:function(e){m.onBeforeInput&&m.onBeforeInput(e),m.keyfilter&&t.onBeforeInput(e,m.keyfilter,m.validateOnly)},onInput:function(e){var t=e.target;m.autoResize&&v(n.isEmpty(t.value)),m.onInput&&m.onInput(e),n.isNotEmpty(t.value)?i.addClass(t,"p-filled"):i.removeClass(t,"p-filled")},onPaste:function(e){m.onPaste&&m.onPaste(e),m.keyfilter&&t.onPaste(e,m.keyfilter,m.validateOnly)}},p.getOtherProps(m),h("root"));return e.createElement(e.Fragment,null,e.createElement("textarea",E),x&&e.createElement(o,s({target:y,content:m.tooltip},m.tooltipOptions,{pt:h("tooltip")})))})));f.displayName="InputTextarea";export{f as InputTextarea};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, utils) {
|
|
2
|
+
this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, utils, componentbase, api) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -37,13 +37,14 @@ this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, u
|
|
|
37
37
|
return _extends.apply(this, arguments);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var InputTextareaBase = {
|
|
40
|
+
var InputTextareaBase = componentbase.ComponentBase.extend({
|
|
41
41
|
defaultProps: {
|
|
42
42
|
__TYPE: 'InputTextarea',
|
|
43
43
|
autoResize: false,
|
|
44
44
|
keyfilter: null,
|
|
45
45
|
onBlur: null,
|
|
46
46
|
onFocus: null,
|
|
47
|
+
onBeforeInput: null,
|
|
47
48
|
onInput: null,
|
|
48
49
|
onKeyDown: null,
|
|
49
50
|
onKeyUp: null,
|
|
@@ -52,19 +53,18 @@ this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, u
|
|
|
52
53
|
tooltipOptions: null,
|
|
53
54
|
validateOnly: false,
|
|
54
55
|
children: undefined
|
|
55
|
-
},
|
|
56
|
-
getProps: function getProps(props) {
|
|
57
|
-
return utils.ObjectUtils.getMergedProps(props, InputTextareaBase.defaultProps);
|
|
58
|
-
},
|
|
59
|
-
getOtherProps: function getOtherProps(props) {
|
|
60
|
-
return utils.ObjectUtils.getDiffProps(props, InputTextareaBase.defaultProps);
|
|
61
56
|
}
|
|
62
|
-
};
|
|
57
|
+
});
|
|
63
58
|
|
|
64
59
|
var InputTextarea = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
65
|
-
var
|
|
60
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
61
|
+
var props = InputTextareaBase.getProps(inProps, context);
|
|
66
62
|
var elementRef = React__namespace.useRef(ref);
|
|
67
63
|
var cachedScrollHeight = React__namespace.useRef(0);
|
|
64
|
+
var _InputTextareaBase$se = InputTextareaBase.setMetaData({
|
|
65
|
+
props: props
|
|
66
|
+
}),
|
|
67
|
+
ptm = _InputTextareaBase$se.ptm;
|
|
68
68
|
var onFocus = function onFocus(event) {
|
|
69
69
|
if (props.autoResize) {
|
|
70
70
|
resize();
|
|
@@ -89,6 +89,12 @@ this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, u
|
|
|
89
89
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
93
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
94
|
+
if (props.keyfilter) {
|
|
95
|
+
keyfilter.KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
92
98
|
var onPaste = function onPaste(event) {
|
|
93
99
|
props.onPaste && props.onPaste(event);
|
|
94
100
|
if (props.keyfilter) {
|
|
@@ -135,26 +141,28 @@ this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, u
|
|
|
135
141
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue);
|
|
136
142
|
}, [props.value, props.defaultValue]);
|
|
137
143
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
138
|
-
var otherProps = InputTextareaBase.getOtherProps(props);
|
|
139
144
|
var className = utils.classNames('p-inputtextarea p-inputtext p-component', {
|
|
140
145
|
'p-disabled': props.disabled,
|
|
141
146
|
'p-filled': isFilled,
|
|
142
147
|
'p-inputtextarea-resizable': props.autoResize
|
|
143
148
|
}, props.className);
|
|
144
|
-
|
|
145
|
-
ref: elementRef
|
|
146
|
-
}, otherProps, {
|
|
149
|
+
var rootProps = utils.mergeProps({
|
|
150
|
+
ref: elementRef,
|
|
147
151
|
className: className,
|
|
148
152
|
onFocus: onFocus,
|
|
149
153
|
onBlur: onBlur,
|
|
150
154
|
onKeyUp: onKeyUp,
|
|
151
155
|
onKeyDown: onKeyDown,
|
|
156
|
+
onBeforeInput: onBeforeInput,
|
|
152
157
|
onInput: onInput,
|
|
153
158
|
onPaste: onPaste
|
|
154
|
-
}
|
|
159
|
+
}, InputTextareaBase.getOtherProps(props), ptm('root'));
|
|
160
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("textarea", rootProps), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
155
161
|
target: elementRef,
|
|
156
162
|
content: props.tooltip
|
|
157
|
-
}, props.tooltipOptions
|
|
163
|
+
}, props.tooltipOptions, {
|
|
164
|
+
pt: ptm('tooltip')
|
|
165
|
+
})));
|
|
158
166
|
}));
|
|
159
167
|
InputTextarea.displayName = 'InputTextarea';
|
|
160
168
|
|
|
@@ -164,4 +172,4 @@ this.primereact.inputtextarea = (function (exports, React, keyfilter, tooltip, u
|
|
|
164
172
|
|
|
165
173
|
return exports;
|
|
166
174
|
|
|
167
|
-
})({}, React, primereact.keyfilter, primereact.tooltip, primereact.utils);
|
|
175
|
+
})({}, React, primereact.keyfilter, primereact.tooltip, primereact.utils, primereact.componentbase, primereact.api);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inputtextarea=function(e,t,n,r,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.inputtextarea=function(e,t,n,o,r,l,i){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=a(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}var p=l.ComponentBase.extend({defaultProps:{__TYPE:"InputTextarea",autoResize:!1,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0}}),c=u.memo(u.forwardRef((function(e,t){var l=u.useContext(i.PrimeReactContext),a=p.getProps(e,l),c=u.useRef(t),f=u.useRef(0),y=p.setMetaData({props:a}).ptm,m=function(e){var t=c.current;t&&r.DomHandler.isVisible(t)&&(f.current||(f.current=t.scrollHeight,t.style.overflow="hidden"),(f.current!==t.scrollHeight||e)&&(t.style.height="",t.style.height=t.scrollHeight+"px",parseFloat(t.style.height)>=parseFloat(t.style.maxHeight)?(t.style.overflowY="scroll",t.style.height=t.style.maxHeight):t.style.overflow="hidden",f.current=t.scrollHeight))};u.useEffect((function(){r.ObjectUtils.combinedRefs(c,t)}),[c,t]),u.useEffect((function(){a.autoResize&&m(!0)}),[a.autoResize]);var d=u.useMemo((function(){return r.ObjectUtils.isNotEmpty(a.value)||r.ObjectUtils.isNotEmpty(a.defaultValue)}),[a.value,a.defaultValue]),h=r.ObjectUtils.isNotEmpty(a.tooltip),v=r.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":a.disabled,"p-filled":d,"p-inputtextarea-resizable":a.autoResize},a.className),O=r.mergeProps({ref:c,className:v,onFocus:function(e){a.autoResize&&m(),a.onFocus&&a.onFocus(e)},onBlur:function(e){a.autoResize&&m(),a.onBlur&&a.onBlur(e)},onKeyUp:function(e){a.autoResize&&m(),a.onKeyUp&&a.onKeyUp(e)},onKeyDown:function(e){a.onKeyDown&&a.onKeyDown(e),a.keyfilter&&n.KeyFilter.onKeyPress(e,a.keyfilter,a.validateOnly)},onBeforeInput:function(e){a.onBeforeInput&&a.onBeforeInput(e),a.keyfilter&&n.KeyFilter.onBeforeInput(e,a.keyfilter,a.validateOnly)},onInput:function(e){var t=e.target;a.autoResize&&m(r.ObjectUtils.isEmpty(t.value)),a.onInput&&a.onInput(e),r.ObjectUtils.isNotEmpty(t.value)?r.DomHandler.addClass(t,"p-filled"):r.DomHandler.removeClass(t,"p-filled")},onPaste:function(e){a.onPaste&&a.onPaste(e),a.keyfilter&&n.KeyFilter.onPaste(e,a.keyfilter,a.validateOnly)}},p.getOtherProps(a),y("root"));return u.createElement(u.Fragment,null,u.createElement("textarea",O),h&&u.createElement(o.Tooltip,s({target:c,content:a.tooltip},a.tooltipOptions,{pt:y("tooltip")})))})));return c.displayName="InputTextarea",e.InputTextarea=c,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.keyfilter,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.api);
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var utils = require('primereact/utils');
|
|
6
|
+
|
|
5
7
|
function _arrayLikeToArray(arr, len) {
|
|
6
8
|
if (len == null || len > arr.length) len = arr.length;
|
|
7
9
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -49,21 +51,22 @@ var KeyFilter = {
|
|
|
49
51
|
/* eslint-enable */getRegex: function getRegex(keyfilter) {
|
|
50
52
|
return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
|
|
51
53
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
onBeforeInput: function onBeforeInput(e, keyfilter, validateOnly) {
|
|
55
|
+
// android devices must use beforeinput https://stackoverflow.com/questions/36753548/keycode-on-android-is-always-229
|
|
56
|
+
if (validateOnly || !utils.DomHandler.isAndroid()) {
|
|
54
57
|
return;
|
|
55
58
|
}
|
|
56
|
-
|
|
59
|
+
this.validateKey(e, e.data, keyfilter);
|
|
60
|
+
},
|
|
61
|
+
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
62
|
+
// non android devices use keydown
|
|
63
|
+
if (validateOnly || utils.DomHandler.isAndroid()) {
|
|
57
64
|
return;
|
|
58
65
|
}
|
|
59
|
-
|
|
60
|
-
if (!isPrintableKey) {
|
|
66
|
+
if (e.ctrlKey || e.altKey) {
|
|
61
67
|
return;
|
|
62
68
|
}
|
|
63
|
-
|
|
64
|
-
if (!regex.test(e.key)) {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
}
|
|
69
|
+
this.validateKey(e, e.key, keyfilter);
|
|
67
70
|
},
|
|
68
71
|
onPaste: function onPaste(e, keyfilter, validateOnly) {
|
|
69
72
|
if (validateOnly) {
|
|
@@ -80,6 +83,19 @@ var KeyFilter = {
|
|
|
80
83
|
}
|
|
81
84
|
});
|
|
82
85
|
},
|
|
86
|
+
validateKey: function validateKey(e, key, keyfilter) {
|
|
87
|
+
if (key === null || key === undefined) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
var isPrintableKey = key.length === 1;
|
|
91
|
+
if (!isPrintableKey) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
var regex = this.getRegex(keyfilter);
|
|
95
|
+
if (!regex.test(key)) {
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
},
|
|
83
99
|
validate: function validate(e, keyfilter) {
|
|
84
100
|
var value = e.target.value,
|
|
85
101
|
validatePattern = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("primereact/utils");function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r(t){if(Array.isArray(t))return e(t)}function n(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function a(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o={DEFAULT_MASKS:{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},getRegex:function(t){return o.DEFAULT_MASKS[t]?o.DEFAULT_MASKS[t]:t},onBeforeInput:function(e,r,n){!n&&t.DomHandler.isAndroid()&&this.validateKey(e,e.data,r)},onKeyPress:function(e,r,n){n||t.DomHandler.isAndroid()||e.ctrlKey||e.altKey||this.validateKey(e,e.key,r)},onPaste:function(t,e,o){if(!o){var u,l=this.getRegex(e),s=t.clipboardData.getData("text");(u=s,r(u)||n(u)||a(u)||i()).forEach((function(e){if(!l.test(e))return t.preventDefault(),!1}))}},validateKey:function(t,e,r){null!=e&&(1===e.length&&(this.getRegex(r).test(e)||t.preventDefault()))},validate:function(t,e){var r=t.target.value,n=!0,a=this.getRegex(e);return r&&!a.test(r)&&(n=!1),n}};exports.KeyFilter=o;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DomHandler } from 'primereact/utils';
|
|
2
|
+
|
|
1
3
|
function _arrayLikeToArray(arr, len) {
|
|
2
4
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
5
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -45,21 +47,22 @@ var KeyFilter = {
|
|
|
45
47
|
/* eslint-enable */getRegex: function getRegex(keyfilter) {
|
|
46
48
|
return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
|
|
47
49
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
onBeforeInput: function onBeforeInput(e, keyfilter, validateOnly) {
|
|
51
|
+
// android devices must use beforeinput https://stackoverflow.com/questions/36753548/keycode-on-android-is-always-229
|
|
52
|
+
if (validateOnly || !DomHandler.isAndroid()) {
|
|
50
53
|
return;
|
|
51
54
|
}
|
|
52
|
-
|
|
55
|
+
this.validateKey(e, e.data, keyfilter);
|
|
56
|
+
},
|
|
57
|
+
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
58
|
+
// non android devices use keydown
|
|
59
|
+
if (validateOnly || DomHandler.isAndroid()) {
|
|
53
60
|
return;
|
|
54
61
|
}
|
|
55
|
-
|
|
56
|
-
if (!isPrintableKey) {
|
|
62
|
+
if (e.ctrlKey || e.altKey) {
|
|
57
63
|
return;
|
|
58
64
|
}
|
|
59
|
-
|
|
60
|
-
if (!regex.test(e.key)) {
|
|
61
|
-
e.preventDefault();
|
|
62
|
-
}
|
|
65
|
+
this.validateKey(e, e.key, keyfilter);
|
|
63
66
|
},
|
|
64
67
|
onPaste: function onPaste(e, keyfilter, validateOnly) {
|
|
65
68
|
if (validateOnly) {
|
|
@@ -76,6 +79,19 @@ var KeyFilter = {
|
|
|
76
79
|
}
|
|
77
80
|
});
|
|
78
81
|
},
|
|
82
|
+
validateKey: function validateKey(e, key, keyfilter) {
|
|
83
|
+
if (key === null || key === undefined) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
var isPrintableKey = key.length === 1;
|
|
87
|
+
if (!isPrintableKey) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
var regex = this.getRegex(keyfilter);
|
|
91
|
+
if (!regex.test(key)) {
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
}
|
|
94
|
+
},
|
|
79
95
|
validate: function validate(e, keyfilter) {
|
|
80
96
|
var value = e.target.value,
|
|
81
97
|
validatePattern = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
import{DomHandler as t}from"primereact/utils";function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r(t){if(Array.isArray(t))return e(t)}function n(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function a(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o={DEFAULT_MASKS:{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},getRegex:function(t){return o.DEFAULT_MASKS[t]?o.DEFAULT_MASKS[t]:t},onBeforeInput:function(e,r,n){!n&&t.isAndroid()&&this.validateKey(e,e.data,r)},onKeyPress:function(e,r,n){n||t.isAndroid()||e.ctrlKey||e.altKey||this.validateKey(e,e.key,r)},onPaste:function(t,e,o){if(!o){var u,l=this.getRegex(e),f=t.clipboardData.getData("text");(u=f,r(u)||n(u)||a(u)||i()).forEach((function(e){if(!l.test(e))return t.preventDefault(),!1}))}},validateKey:function(t,e,r){null!=e&&(1===e.length&&(this.getRegex(r).test(e)||t.preventDefault()))},validate:function(t,e){var r=t.target.value,n=!0,a=this.getRegex(e);return r&&!a.test(r)&&(n=!1),n}};export{o as KeyFilter};
|
package/keyfilter/keyfilter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.keyfilter = (function (exports) {
|
|
2
|
+
this.primereact.keyfilter = (function (exports, utils) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -49,21 +49,22 @@ this.primereact.keyfilter = (function (exports) {
|
|
|
49
49
|
/* eslint-enable */getRegex: function getRegex(keyfilter) {
|
|
50
50
|
return KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
onBeforeInput: function onBeforeInput(e, keyfilter, validateOnly) {
|
|
53
|
+
// android devices must use beforeinput https://stackoverflow.com/questions/36753548/keycode-on-android-is-always-229
|
|
54
|
+
if (validateOnly || !utils.DomHandler.isAndroid()) {
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
+
this.validateKey(e, e.data, keyfilter);
|
|
58
|
+
},
|
|
59
|
+
onKeyPress: function onKeyPress(e, keyfilter, validateOnly) {
|
|
60
|
+
// non android devices use keydown
|
|
61
|
+
if (validateOnly || utils.DomHandler.isAndroid()) {
|
|
57
62
|
return;
|
|
58
63
|
}
|
|
59
|
-
|
|
60
|
-
if (!isPrintableKey) {
|
|
64
|
+
if (e.ctrlKey || e.altKey) {
|
|
61
65
|
return;
|
|
62
66
|
}
|
|
63
|
-
|
|
64
|
-
if (!regex.test(e.key)) {
|
|
65
|
-
e.preventDefault();
|
|
66
|
-
}
|
|
67
|
+
this.validateKey(e, e.key, keyfilter);
|
|
67
68
|
},
|
|
68
69
|
onPaste: function onPaste(e, keyfilter, validateOnly) {
|
|
69
70
|
if (validateOnly) {
|
|
@@ -80,6 +81,19 @@ this.primereact.keyfilter = (function (exports) {
|
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
},
|
|
84
|
+
validateKey: function validateKey(e, key, keyfilter) {
|
|
85
|
+
if (key === null || key === undefined) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
var isPrintableKey = key.length === 1;
|
|
89
|
+
if (!isPrintableKey) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
var regex = this.getRegex(keyfilter);
|
|
93
|
+
if (!regex.test(key)) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
}
|
|
96
|
+
},
|
|
83
97
|
validate: function validate(e, keyfilter) {
|
|
84
98
|
var value = e.target.value,
|
|
85
99
|
validatePattern = true;
|
|
@@ -97,4 +111,4 @@ this.primereact.keyfilter = (function (exports) {
|
|
|
97
111
|
|
|
98
112
|
return exports;
|
|
99
113
|
|
|
100
|
-
})({});
|
|
114
|
+
})({}, primereact.utils);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.keyfilter=function(t){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.keyfilter=function(t,e){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t){if(Array.isArray(t))return r(t)}function a(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u={DEFAULT_MASKS:{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},getRegex:function(t){return u.DEFAULT_MASKS[t]?u.DEFAULT_MASKS[t]:t},onBeforeInput:function(t,r,n){!n&&e.DomHandler.isAndroid()&&this.validateKey(t,t.data,r)},onKeyPress:function(t,r,n){n||e.DomHandler.isAndroid()||t.ctrlKey||t.altKey||this.validateKey(t,t.key,r)},onPaste:function(t,e,r){if(!r){var u,l=this.getRegex(e),c=t.clipboardData.getData("text");(u=c,n(u)||a(u)||i(u)||o()).forEach((function(e){if(!l.test(e))return t.preventDefault(),!1}))}},validateKey:function(t,e,r){null!=e&&(1===e.length&&(this.getRegex(r).test(e)||t.preventDefault()))},validate:function(t,e){var r=t.target.value,n=!0,a=this.getRegex(e);return r&&!a.test(r)&&(n=!1),n}};return t.KeyFilter=u,Object.defineProperty(t,"__esModule",{value:!0}),t}({},primereact.utils);
|