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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils) {
|
|
2
|
+
this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils, componentbase, api) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -37,6 +37,47 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
37
37
|
return _extends.apply(this, arguments);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function _typeof(obj) {
|
|
41
|
+
"@babel/helpers - typeof";
|
|
42
|
+
|
|
43
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44
|
+
return typeof obj;
|
|
45
|
+
} : function (obj) {
|
|
46
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
47
|
+
}, _typeof(obj);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function _toPrimitive(input, hint) {
|
|
51
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
52
|
+
var prim = input[Symbol.toPrimitive];
|
|
53
|
+
if (prim !== undefined) {
|
|
54
|
+
var res = prim.call(input, hint || "default");
|
|
55
|
+
if (_typeof(res) !== "object") return res;
|
|
56
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
57
|
+
}
|
|
58
|
+
return (hint === "string" ? String : Number)(input);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function _toPropertyKey(arg) {
|
|
62
|
+
var key = _toPrimitive(arg, "string");
|
|
63
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function _defineProperty(obj, key, value) {
|
|
67
|
+
key = _toPropertyKey(key);
|
|
68
|
+
if (key in obj) {
|
|
69
|
+
Object.defineProperty(obj, key, {
|
|
70
|
+
value: value,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
74
|
+
});
|
|
75
|
+
} else {
|
|
76
|
+
obj[key] = value;
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
40
81
|
function _arrayWithHoles(arr) {
|
|
41
82
|
if (Array.isArray(arr)) return arr;
|
|
42
83
|
}
|
|
@@ -92,7 +133,7 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
92
133
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
93
134
|
}
|
|
94
135
|
|
|
95
|
-
var InputSwitchBase = {
|
|
136
|
+
var InputSwitchBase = componentbase.ComponentBase.extend({
|
|
96
137
|
defaultProps: {
|
|
97
138
|
__TYPE: 'InputSwitch',
|
|
98
139
|
autoFocus: false,
|
|
@@ -113,21 +154,25 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
113
154
|
tooltipOptions: null,
|
|
114
155
|
trueValue: true,
|
|
115
156
|
children: undefined
|
|
116
|
-
},
|
|
117
|
-
getProps: function getProps(props) {
|
|
118
|
-
return utils.ObjectUtils.getMergedProps(props, InputSwitchBase.defaultProps);
|
|
119
|
-
},
|
|
120
|
-
getOtherProps: function getOtherProps(props) {
|
|
121
|
-
return utils.ObjectUtils.getDiffProps(props, InputSwitchBase.defaultProps);
|
|
122
157
|
}
|
|
123
|
-
};
|
|
158
|
+
});
|
|
124
159
|
|
|
160
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
161
|
+
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; }
|
|
125
162
|
var InputSwitch = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
126
|
-
var
|
|
163
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
164
|
+
var props = InputSwitchBase.getProps(inProps, context);
|
|
127
165
|
var _React$useState = React__namespace.useState(false),
|
|
128
166
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
129
167
|
focusedState = _React$useState2[0],
|
|
130
168
|
setFocusedState = _React$useState2[1];
|
|
169
|
+
var _InputSwitchBase$setM = InputSwitchBase.setMetaData({
|
|
170
|
+
props: props,
|
|
171
|
+
state: {
|
|
172
|
+
focused: focusedState
|
|
173
|
+
}
|
|
174
|
+
}),
|
|
175
|
+
ptm = _InputSwitchBase$setM.ptm;
|
|
131
176
|
var elementRef = React__namespace.useRef(null);
|
|
132
177
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
133
178
|
var checked = props.checked === props.trueValue;
|
|
@@ -197,20 +242,21 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
197
242
|
'p-disabled': props.disabled,
|
|
198
243
|
'p-focus': focusedState
|
|
199
244
|
}, props.className);
|
|
200
|
-
|
|
201
|
-
ref: elementRef,
|
|
245
|
+
var rootProps = utils.mergeProps({
|
|
202
246
|
id: props.id,
|
|
247
|
+
ref: elementRef,
|
|
203
248
|
className: className,
|
|
204
|
-
style: props.style
|
|
205
|
-
}, otherProps, {
|
|
249
|
+
style: props.style,
|
|
206
250
|
onClick: onClick,
|
|
207
|
-
role:
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
251
|
+
role: 'checkbox',
|
|
252
|
+
'aria-checked': checked
|
|
253
|
+
}, ptm('root'));
|
|
254
|
+
var hiddenInputWrapperProps = utils.mergeProps({
|
|
255
|
+
className: 'p-hidden-accessible'
|
|
256
|
+
}, ptm('hiddenInputWrapper'));
|
|
257
|
+
var hiddenInputProps = utils.mergeProps(_objectSpread({
|
|
212
258
|
ref: inputRef,
|
|
213
|
-
type:
|
|
259
|
+
type: 'checkbox',
|
|
214
260
|
id: props.inputId,
|
|
215
261
|
name: props.name,
|
|
216
262
|
checked: checked,
|
|
@@ -218,15 +264,19 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
218
264
|
onFocus: onFocus,
|
|
219
265
|
onBlur: onBlur,
|
|
220
266
|
disabled: props.disabled,
|
|
221
|
-
role:
|
|
267
|
+
role: 'switch',
|
|
222
268
|
tabIndex: props.tabIndex,
|
|
223
|
-
|
|
224
|
-
}, ariaProps)
|
|
225
|
-
|
|
226
|
-
|
|
269
|
+
'aria-checked': checked
|
|
270
|
+
}, ariaProps), ptm('hiddenInput'));
|
|
271
|
+
var sliderProps = utils.mergeProps({
|
|
272
|
+
className: 'p-inputswitch-slider'
|
|
273
|
+
}, ptm('slider'));
|
|
274
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, /*#__PURE__*/React__namespace.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React__namespace.createElement("input", hiddenInputProps)), /*#__PURE__*/React__namespace.createElement("span", sliderProps)), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
227
275
|
target: elementRef,
|
|
228
276
|
content: props.tooltip
|
|
229
|
-
}, props.tooltipOptions
|
|
277
|
+
}, props.tooltipOptions, {
|
|
278
|
+
pt: ptm('tooltip')
|
|
279
|
+
})));
|
|
230
280
|
}));
|
|
231
281
|
InputSwitch.displayName = 'InputSwitch';
|
|
232
282
|
|
|
@@ -236,4 +286,4 @@ this.primereact.inputswitch = (function (exports, React, hooks, tooltip, utils)
|
|
|
236
286
|
|
|
237
287
|
return exports;
|
|
238
288
|
|
|
239
|
-
})({}, React, primereact.hooks, primereact.tooltip, primereact.utils);
|
|
289
|
+
})({}, React, primereact.hooks, primereact.tooltip, primereact.utils, primereact.componentbase, primereact.api);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inputswitch=function(e,t,n,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.inputswitch=function(e,t,r,n,o,i,u){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=c(t);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function p(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function f(e){var t=p(e,"string");return"symbol"===s(t)?t:String(t)}function m(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e){if(Array.isArray(e))return e}function b(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,u,c=[],a=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{if(!a&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}function v(){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 g=i.ComponentBase.extend({defaultProps:{__TYPE:"InputSwitch",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,id:null,inputId:null,inputRef:null,name:null,onBlur:null,onChange:null,onFocus:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,children:void 0}});function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=a.memo(a.forwardRef((function(e,t){var i,c,s=a.useContext(u.PrimeReactContext),p=g.getProps(e,s),f=a.useState(!1),m=(c=2,d(i=f)||b(i,c)||h(i,c)||v()),y=m[0],O=m[1],P=g.setMetaData({props:p,state:{focused:y}}).ptm,w=a.useRef(null),S=a.useRef(p.inputRef),E=p.checked===p.trueValue,I=function(e){if(p.onChange){var t=E?p.falseValue:p.trueValue;p.onChange({originalEvent:e,value:t,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:p.name,id:p.id,value:t}})}};a.useImperativeHandle(t,(function(){return{props:p,focus:function(){return o.DomHandler.focus(S.current)},getElement:function(){return w.current},getInput:function(){return S.current}}})),a.useEffect((function(){o.ObjectUtils.combinedRefs(S,p.inputRef)}),[S,p.inputRef]),r.useMountEffect((function(){p.autoFocus&&o.DomHandler.focus(S.current,p.autoFocus)}));var D=o.ObjectUtils.isNotEmpty(p.tooltip),k=g.getOtherProps(p),R=o.ObjectUtils.reduceKeys(k,o.DomHandler.ARIA_PROPS),x=o.classNames("p-inputswitch p-component",{"p-inputswitch-checked":E,"p-disabled":p.disabled,"p-focus":y},p.className),C=o.mergeProps({id:p.id,ref:w,className:x,style:p.style,onClick:function(e){p.disabled||(I(e),o.DomHandler.focus(S.current),e.preventDefault())},role:"checkbox","aria-checked":E},P("root")),N=o.mergeProps({className:"p-hidden-accessible"},P("hiddenInputWrapper")),A=o.mergeProps(j({ref:S,type:"checkbox",id:p.inputId,name:p.name,checked:E,onChange:I,onFocus:function(e){O(!0),p.onFocus&&p.onFocus(e)},onBlur:function(e){O(!1),p.onBlur&&p.onBlur(e)},disabled:p.disabled,role:"switch",tabIndex:p.tabIndex,"aria-checked":E},R),P("hiddenInput")),F=o.mergeProps({className:"p-inputswitch-slider"},P("slider"));return a.createElement(a.Fragment,null,a.createElement("div",C,a.createElement("div",N,a.createElement("input",A)),a.createElement("span",F)),D&&a.createElement(n.Tooltip,l({target:w,content:p.tooltip},p.tooltipOptions,{pt:P("tooltip")})))})));return P.displayName="InputSwitch",e.InputSwitch=P,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.api);
|
|
@@ -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,28 +44,28 @@ function _extends() {
|
|
|
42
44
|
return _extends.apply(this, arguments);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
var InputTextBase = {
|
|
47
|
+
var InputTextBase = componentbase.ComponentBase.extend({
|
|
46
48
|
defaultProps: {
|
|
47
49
|
__TYPE: 'InputText',
|
|
48
50
|
keyfilter: null,
|
|
49
51
|
validateOnly: false,
|
|
50
52
|
tooltip: null,
|
|
51
53
|
tooltipOptions: null,
|
|
54
|
+
onBeforeInput: null,
|
|
52
55
|
onInput: null,
|
|
53
56
|
onKeyDown: null,
|
|
54
57
|
onPaste: null,
|
|
55
58
|
children: undefined
|
|
56
|
-
},
|
|
57
|
-
getProps: function getProps(props) {
|
|
58
|
-
return utils.ObjectUtils.getMergedProps(props, InputTextBase.defaultProps);
|
|
59
|
-
},
|
|
60
|
-
getOtherProps: function getOtherProps(props) {
|
|
61
|
-
return utils.ObjectUtils.getDiffProps(props, InputTextBase.defaultProps);
|
|
62
59
|
}
|
|
63
|
-
};
|
|
60
|
+
});
|
|
64
61
|
|
|
65
62
|
var InputText = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
66
|
-
var
|
|
63
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
64
|
+
var props = InputTextBase.getProps(inProps, context);
|
|
65
|
+
var _InputTextBase$setMet = InputTextBase.setMetaData({
|
|
66
|
+
props: props
|
|
67
|
+
}),
|
|
68
|
+
ptm = _InputTextBase$setMet.ptm;
|
|
67
69
|
var elementRef = React__namespace.useRef(ref);
|
|
68
70
|
var onKeyDown = function onKeyDown(event) {
|
|
69
71
|
props.onKeyDown && props.onKeyDown(event);
|
|
@@ -71,6 +73,12 @@ var InputText = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
71
73
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
72
74
|
}
|
|
73
75
|
};
|
|
76
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
77
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
78
|
+
if (props.keyfilter) {
|
|
79
|
+
keyfilter.KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
74
82
|
var onInput = function onInput(event) {
|
|
75
83
|
var target = event.target;
|
|
76
84
|
var validatePattern = true;
|
|
@@ -95,22 +103,24 @@ var InputText = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
95
103
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue);
|
|
96
104
|
}, [props.value, props.defaultValue]);
|
|
97
105
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
98
|
-
var otherProps = InputTextBase.getOtherProps(props);
|
|
99
106
|
var className = utils.classNames('p-inputtext p-component', {
|
|
100
107
|
'p-disabled': props.disabled,
|
|
101
108
|
'p-filled': isFilled
|
|
102
109
|
}, props.className);
|
|
103
|
-
|
|
104
|
-
ref: elementRef
|
|
105
|
-
}, otherProps, {
|
|
110
|
+
var rootProps = utils.mergeProps({
|
|
111
|
+
ref: elementRef,
|
|
106
112
|
className: className,
|
|
113
|
+
onBeforeInput: onBeforeInput,
|
|
107
114
|
onInput: onInput,
|
|
108
115
|
onKeyDown: onKeyDown,
|
|
109
116
|
onPaste: onPaste
|
|
110
|
-
}
|
|
117
|
+
}, InputTextBase.getOtherProps(props), ptm('root'));
|
|
118
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("input", rootProps), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
111
119
|
target: elementRef,
|
|
112
120
|
content: props.tooltip
|
|
113
|
-
}, props.tooltipOptions
|
|
121
|
+
}, props.tooltipOptions, {
|
|
122
|
+
pt: ptm('tooltip')
|
|
123
|
+
})));
|
|
114
124
|
}));
|
|
115
125
|
InputText.displayName = 'InputText';
|
|
116
126
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/keyfilter"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/keyfilter"),n=require("primereact/tooltip"),r=require("primereact/utils"),o=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 r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var p=o.ComponentBase.extend({defaultProps:{__TYPE:"InputText",keyfilter:null,validateOnly:!1,tooltip:null,tooltipOptions:null,onBeforeInput:null,onInput:null,onKeyDown:null,onPaste:null,children:void 0}}),s=a.memo(a.forwardRef((function(e,o){var i=a.useContext(l.PrimeReactContext),s=p.getProps(e,i),c=p.setMetaData({props:s}).ptm,f=a.useRef(o);a.useEffect((function(){r.ObjectUtils.combinedRefs(f,o)}),[f,o]);var y=a.useMemo((function(){return r.ObjectUtils.isNotEmpty(s.value)||r.ObjectUtils.isNotEmpty(s.defaultValue)}),[s.value,s.defaultValue]),d=r.ObjectUtils.isNotEmpty(s.tooltip),m=r.classNames("p-inputtext p-component",{"p-disabled":s.disabled,"p-filled":y},s.className),O=r.mergeProps({ref:f,className:m,onBeforeInput:function(e){s.onBeforeInput&&s.onBeforeInput(e),s.keyfilter&&t.KeyFilter.onBeforeInput(e,s.keyfilter,s.validateOnly)},onInput:function(e){var n=e.target,o=!0;s.keyfilter&&s.validateOnly&&(o=t.KeyFilter.validate(e,s.keyfilter)),s.onInput&&s.onInput(e,o),r.ObjectUtils.isNotEmpty(n.value)?r.DomHandler.addClass(n,"p-filled"):r.DomHandler.removeClass(n,"p-filled")},onKeyDown:function(e){s.onKeyDown&&s.onKeyDown(e),s.keyfilter&&t.KeyFilter.onKeyPress(e,s.keyfilter,s.validateOnly)},onPaste:function(e){s.onPaste&&s.onPaste(e),s.keyfilter&&t.KeyFilter.onPaste(e,s.keyfilter,s.validateOnly)}},p.getOtherProps(s),c("root"));return a.createElement(a.Fragment,null,a.createElement("input",O),d&&a.createElement(n.Tooltip,u({target:f,content:s.tooltip},s.tooltipOptions,{pt:c("tooltip")})))})));s.displayName="InputText",exports.InputText=s;
|
package/inputtext/inputtext.d.ts
CHANGED
|
@@ -10,6 +10,33 @@
|
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import { KeyFilterType } from '../keyfilter';
|
|
12
12
|
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
13
|
+
import { PassThroughType } from '../utils/utils';
|
|
14
|
+
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
|
|
15
|
+
|
|
16
|
+
export declare type InputTextPassThroughType<T> = PassThroughType<T, InputTextPassThroughMethodOptions>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Custom passthrough(pt) option method.
|
|
20
|
+
*/
|
|
21
|
+
export interface InputTextPassThroughMethodOptions {
|
|
22
|
+
props: InputTextProps;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Custom passthrough(pt) options.
|
|
27
|
+
* @see {@link InputTextProps.pt}
|
|
28
|
+
*/
|
|
29
|
+
export interface InputTextPassThroughOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Uses to pass attributes to the root's DOM element.
|
|
32
|
+
*/
|
|
33
|
+
root?: InputTextPassThroughType<React.HTMLAttributes<HTMLInputElement>>;
|
|
34
|
+
/**
|
|
35
|
+
* Uses to pass attributes to the Tooltip component.
|
|
36
|
+
* @see {@link TooltipPassThroughOptions}
|
|
37
|
+
*/
|
|
38
|
+
tooltip?: TooltipPassThroughOptions;
|
|
39
|
+
}
|
|
13
40
|
|
|
14
41
|
/**
|
|
15
42
|
* Defines valid properties in InputText component. In addition to these, all properties of HTMLInputElement can be used in this component.
|
|
@@ -49,6 +76,11 @@ export interface InputTextProps extends Omit<React.DetailedHTMLProps<React.Input
|
|
|
49
76
|
* @readonly
|
|
50
77
|
*/
|
|
51
78
|
children?: React.ReactNode | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
81
|
+
* @type {InputTextPassThroughOptions}
|
|
82
|
+
*/
|
|
83
|
+
pt?: InputTextPassThroughOptions;
|
|
52
84
|
}
|
|
53
85
|
|
|
54
86
|
/**
|
|
@@ -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,28 +20,28 @@ function _extends() {
|
|
|
18
20
|
return _extends.apply(this, arguments);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
var InputTextBase = {
|
|
23
|
+
var InputTextBase = ComponentBase.extend({
|
|
22
24
|
defaultProps: {
|
|
23
25
|
__TYPE: 'InputText',
|
|
24
26
|
keyfilter: null,
|
|
25
27
|
validateOnly: false,
|
|
26
28
|
tooltip: null,
|
|
27
29
|
tooltipOptions: null,
|
|
30
|
+
onBeforeInput: null,
|
|
28
31
|
onInput: null,
|
|
29
32
|
onKeyDown: null,
|
|
30
33
|
onPaste: null,
|
|
31
34
|
children: undefined
|
|
32
|
-
},
|
|
33
|
-
getProps: function getProps(props) {
|
|
34
|
-
return ObjectUtils.getMergedProps(props, InputTextBase.defaultProps);
|
|
35
|
-
},
|
|
36
|
-
getOtherProps: function getOtherProps(props) {
|
|
37
|
-
return ObjectUtils.getDiffProps(props, InputTextBase.defaultProps);
|
|
38
35
|
}
|
|
39
|
-
};
|
|
36
|
+
});
|
|
40
37
|
|
|
41
38
|
var InputText = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
42
|
-
var
|
|
39
|
+
var context = React.useContext(PrimeReactContext);
|
|
40
|
+
var props = InputTextBase.getProps(inProps, context);
|
|
41
|
+
var _InputTextBase$setMet = InputTextBase.setMetaData({
|
|
42
|
+
props: props
|
|
43
|
+
}),
|
|
44
|
+
ptm = _InputTextBase$setMet.ptm;
|
|
43
45
|
var elementRef = React.useRef(ref);
|
|
44
46
|
var onKeyDown = function onKeyDown(event) {
|
|
45
47
|
props.onKeyDown && props.onKeyDown(event);
|
|
@@ -47,6 +49,12 @@ var InputText = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
47
49
|
KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
48
50
|
}
|
|
49
51
|
};
|
|
52
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
53
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
54
|
+
if (props.keyfilter) {
|
|
55
|
+
KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
50
58
|
var onInput = function onInput(event) {
|
|
51
59
|
var target = event.target;
|
|
52
60
|
var validatePattern = true;
|
|
@@ -71,22 +79,24 @@ var InputText = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
71
79
|
return ObjectUtils.isNotEmpty(props.value) || ObjectUtils.isNotEmpty(props.defaultValue);
|
|
72
80
|
}, [props.value, props.defaultValue]);
|
|
73
81
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
74
|
-
var otherProps = InputTextBase.getOtherProps(props);
|
|
75
82
|
var className = classNames('p-inputtext p-component', {
|
|
76
83
|
'p-disabled': props.disabled,
|
|
77
84
|
'p-filled': isFilled
|
|
78
85
|
}, props.className);
|
|
79
|
-
|
|
80
|
-
ref: elementRef
|
|
81
|
-
}, otherProps, {
|
|
86
|
+
var rootProps = mergeProps({
|
|
87
|
+
ref: elementRef,
|
|
82
88
|
className: className,
|
|
89
|
+
onBeforeInput: onBeforeInput,
|
|
83
90
|
onInput: onInput,
|
|
84
91
|
onKeyDown: onKeyDown,
|
|
85
92
|
onPaste: onPaste
|
|
86
|
-
}
|
|
93
|
+
}, InputTextBase.getOtherProps(props), ptm('root'));
|
|
94
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", rootProps), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
87
95
|
target: elementRef,
|
|
88
96
|
content: props.tooltip
|
|
89
|
-
}, props.tooltipOptions
|
|
97
|
+
}, props.tooltipOptions, {
|
|
98
|
+
pt: ptm('tooltip')
|
|
99
|
+
})));
|
|
90
100
|
}));
|
|
91
101
|
InputText.displayName = 'InputText';
|
|
92
102
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{KeyFilter as t}from"primereact/keyfilter";import{Tooltip as n}from"primereact/tooltip";import{ObjectUtils as o,classNames as r,DomHandler as
|
|
1
|
+
import*as e from"react";import{KeyFilter as t}from"primereact/keyfilter";import{Tooltip as n}from"primereact/tooltip";import{ObjectUtils as o,classNames as r,mergeProps as l,DomHandler as a}from"primereact/utils";import{ComponentBase as i}from"primereact/componentbase";import{PrimeReactContext as p}from"primereact/api";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 f=i.extend({defaultProps:{__TYPE:"InputText",keyfilter:null,validateOnly:!1,tooltip:null,tooltipOptions:null,onBeforeInput:null,onInput:null,onKeyDown:null,onPaste:null,children:void 0}}),s=e.memo(e.forwardRef((function(i,s){var m=e.useContext(p),c=f.getProps(i,m),y=f.setMetaData({props:c}).ptm,d=e.useRef(s);e.useEffect((function(){o.combinedRefs(d,s)}),[d,s]);var v=e.useMemo((function(){return o.isNotEmpty(c.value)||o.isNotEmpty(c.defaultValue)}),[c.value,c.defaultValue]),O=o.isNotEmpty(c.tooltip),I=r("p-inputtext p-component",{"p-disabled":c.disabled,"p-filled":v},c.className),P=l({ref:d,className:I,onBeforeInput:function(e){c.onBeforeInput&&c.onBeforeInput(e),c.keyfilter&&t.onBeforeInput(e,c.keyfilter,c.validateOnly)},onInput:function(e){var n=e.target,r=!0;c.keyfilter&&c.validateOnly&&(r=t.validate(e,c.keyfilter)),c.onInput&&c.onInput(e,r),o.isNotEmpty(n.value)?a.addClass(n,"p-filled"):a.removeClass(n,"p-filled")},onKeyDown:function(e){c.onKeyDown&&c.onKeyDown(e),c.keyfilter&&t.onKeyPress(e,c.keyfilter,c.validateOnly)},onPaste:function(e){c.onPaste&&c.onPaste(e),c.keyfilter&&t.onPaste(e,c.keyfilter,c.validateOnly)}},f.getOtherProps(c),y("root"));return e.createElement(e.Fragment,null,e.createElement("input",P),O&&e.createElement(n,u({target:d,content:c.tooltip},c.tooltipOptions,{pt:y("tooltip")})))})));s.displayName="InputText";export{s as InputText};
|
package/inputtext/inputtext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils) {
|
|
2
|
+
this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils, componentbase, api) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopNamespace(e) {
|
|
@@ -37,28 +37,28 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
37
37
|
return _extends.apply(this, arguments);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var InputTextBase = {
|
|
40
|
+
var InputTextBase = componentbase.ComponentBase.extend({
|
|
41
41
|
defaultProps: {
|
|
42
42
|
__TYPE: 'InputText',
|
|
43
43
|
keyfilter: null,
|
|
44
44
|
validateOnly: false,
|
|
45
45
|
tooltip: null,
|
|
46
46
|
tooltipOptions: null,
|
|
47
|
+
onBeforeInput: null,
|
|
47
48
|
onInput: null,
|
|
48
49
|
onKeyDown: null,
|
|
49
50
|
onPaste: null,
|
|
50
51
|
children: undefined
|
|
51
|
-
},
|
|
52
|
-
getProps: function getProps(props) {
|
|
53
|
-
return utils.ObjectUtils.getMergedProps(props, InputTextBase.defaultProps);
|
|
54
|
-
},
|
|
55
|
-
getOtherProps: function getOtherProps(props) {
|
|
56
|
-
return utils.ObjectUtils.getDiffProps(props, InputTextBase.defaultProps);
|
|
57
52
|
}
|
|
58
|
-
};
|
|
53
|
+
});
|
|
59
54
|
|
|
60
55
|
var InputText = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
61
|
-
var
|
|
56
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
57
|
+
var props = InputTextBase.getProps(inProps, context);
|
|
58
|
+
var _InputTextBase$setMet = InputTextBase.setMetaData({
|
|
59
|
+
props: props
|
|
60
|
+
}),
|
|
61
|
+
ptm = _InputTextBase$setMet.ptm;
|
|
62
62
|
var elementRef = React__namespace.useRef(ref);
|
|
63
63
|
var onKeyDown = function onKeyDown(event) {
|
|
64
64
|
props.onKeyDown && props.onKeyDown(event);
|
|
@@ -66,6 +66,12 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
66
66
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter, props.validateOnly);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
+
var onBeforeInput = function onBeforeInput(event) {
|
|
70
|
+
props.onBeforeInput && props.onBeforeInput(event);
|
|
71
|
+
if (props.keyfilter) {
|
|
72
|
+
keyfilter.KeyFilter.onBeforeInput(event, props.keyfilter, props.validateOnly);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
69
75
|
var onInput = function onInput(event) {
|
|
70
76
|
var target = event.target;
|
|
71
77
|
var validatePattern = true;
|
|
@@ -90,22 +96,24 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
90
96
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(props.defaultValue);
|
|
91
97
|
}, [props.value, props.defaultValue]);
|
|
92
98
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
93
|
-
var otherProps = InputTextBase.getOtherProps(props);
|
|
94
99
|
var className = utils.classNames('p-inputtext p-component', {
|
|
95
100
|
'p-disabled': props.disabled,
|
|
96
101
|
'p-filled': isFilled
|
|
97
102
|
}, props.className);
|
|
98
|
-
|
|
99
|
-
ref: elementRef
|
|
100
|
-
}, otherProps, {
|
|
103
|
+
var rootProps = utils.mergeProps({
|
|
104
|
+
ref: elementRef,
|
|
101
105
|
className: className,
|
|
106
|
+
onBeforeInput: onBeforeInput,
|
|
102
107
|
onInput: onInput,
|
|
103
108
|
onKeyDown: onKeyDown,
|
|
104
109
|
onPaste: onPaste
|
|
105
|
-
}
|
|
110
|
+
}, InputTextBase.getOtherProps(props), ptm('root'));
|
|
111
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("input", rootProps), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
106
112
|
target: elementRef,
|
|
107
113
|
content: props.tooltip
|
|
108
|
-
}, props.tooltipOptions
|
|
114
|
+
}, props.tooltipOptions, {
|
|
115
|
+
pt: ptm('tooltip')
|
|
116
|
+
})));
|
|
109
117
|
}));
|
|
110
118
|
InputText.displayName = 'InputText';
|
|
111
119
|
|
|
@@ -115,4 +123,4 @@ this.primereact.inputtext = (function (exports, React, keyfilter, tooltip, utils
|
|
|
115
123
|
|
|
116
124
|
return exports;
|
|
117
125
|
|
|
118
|
-
})({}, React, primereact.keyfilter, primereact.tooltip, primereact.utils);
|
|
126
|
+
})({}, React, primereact.keyfilter, primereact.tooltip, primereact.utils, primereact.componentbase, primereact.api);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inputtext=function(e,t,n,r,l){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.inputtext=function(e,t,n,r,o,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 r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var p=a(t);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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var s=l.ComponentBase.extend({defaultProps:{__TYPE:"InputText",keyfilter:null,validateOnly:!1,tooltip:null,tooltipOptions:null,onBeforeInput:null,onInput:null,onKeyDown:null,onPaste:null,children:void 0}}),c=p.memo(p.forwardRef((function(e,t){var l=p.useContext(i.PrimeReactContext),a=s.getProps(e,l),c=s.setMetaData({props:a}).ptm,f=p.useRef(t);p.useEffect((function(){o.ObjectUtils.combinedRefs(f,t)}),[f,t]);var y=p.useMemo((function(){return o.ObjectUtils.isNotEmpty(a.value)||o.ObjectUtils.isNotEmpty(a.defaultValue)}),[a.value,a.defaultValue]),m=o.ObjectUtils.isNotEmpty(a.tooltip),d=o.classNames("p-inputtext p-component",{"p-disabled":a.disabled,"p-filled":y},a.className),O=o.mergeProps({ref:f,className:d,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,r=!0;a.keyfilter&&a.validateOnly&&(r=n.KeyFilter.validate(e,a.keyfilter)),a.onInput&&a.onInput(e,r),o.ObjectUtils.isNotEmpty(t.value)?o.DomHandler.addClass(t,"p-filled"):o.DomHandler.removeClass(t,"p-filled")},onKeyDown:function(e){a.onKeyDown&&a.onKeyDown(e),a.keyfilter&&n.KeyFilter.onKeyPress(e,a.keyfilter,a.validateOnly)},onPaste:function(e){a.onPaste&&a.onPaste(e),a.keyfilter&&n.KeyFilter.onPaste(e,a.keyfilter,a.validateOnly)}},s.getOtherProps(a),c("root"));return p.createElement(p.Fragment,null,p.createElement("input",O),m&&p.createElement(r.Tooltip,u({target:f,content:a.tooltip},a.tooltipOptions,{pt:c("tooltip")})))})));return c.displayName="InputText",e.InputText=c,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.keyfilter,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.api);
|