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,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useMountEffect } from 'primereact/hooks';
|
|
3
3
|
import { Tooltip } from 'primereact/tooltip';
|
|
4
|
-
import { ObjectUtils, DomHandler, classNames } from 'primereact/utils';
|
|
4
|
+
import { ObjectUtils, DomHandler, classNames, mergeProps } 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,6 +20,47 @@ function _extends() {
|
|
|
18
20
|
return _extends.apply(this, arguments);
|
|
19
21
|
}
|
|
20
22
|
|
|
23
|
+
function _typeof(obj) {
|
|
24
|
+
"@babel/helpers - typeof";
|
|
25
|
+
|
|
26
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
27
|
+
return typeof obj;
|
|
28
|
+
} : function (obj) {
|
|
29
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
30
|
+
}, _typeof(obj);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _toPrimitive(input, hint) {
|
|
34
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
35
|
+
var prim = input[Symbol.toPrimitive];
|
|
36
|
+
if (prim !== undefined) {
|
|
37
|
+
var res = prim.call(input, hint || "default");
|
|
38
|
+
if (_typeof(res) !== "object") return res;
|
|
39
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
|
+
}
|
|
41
|
+
return (hint === "string" ? String : Number)(input);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _toPropertyKey(arg) {
|
|
45
|
+
var key = _toPrimitive(arg, "string");
|
|
46
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _defineProperty(obj, key, value) {
|
|
50
|
+
key = _toPropertyKey(key);
|
|
51
|
+
if (key in obj) {
|
|
52
|
+
Object.defineProperty(obj, key, {
|
|
53
|
+
value: value,
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true,
|
|
56
|
+
writable: true
|
|
57
|
+
});
|
|
58
|
+
} else {
|
|
59
|
+
obj[key] = value;
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
21
64
|
function _arrayWithHoles(arr) {
|
|
22
65
|
if (Array.isArray(arr)) return arr;
|
|
23
66
|
}
|
|
@@ -73,7 +116,7 @@ function _slicedToArray(arr, i) {
|
|
|
73
116
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
74
117
|
}
|
|
75
118
|
|
|
76
|
-
var RadioButtonBase = {
|
|
119
|
+
var RadioButtonBase = ComponentBase.extend({
|
|
77
120
|
defaultProps: {
|
|
78
121
|
__TYPE: 'RadioButton',
|
|
79
122
|
autoFocus: false,
|
|
@@ -93,23 +136,27 @@ var RadioButtonBase = {
|
|
|
93
136
|
tooltipOptions: null,
|
|
94
137
|
value: null,
|
|
95
138
|
children: undefined
|
|
96
|
-
},
|
|
97
|
-
getProps: function getProps(props) {
|
|
98
|
-
return ObjectUtils.getMergedProps(props, RadioButtonBase.defaultProps);
|
|
99
|
-
},
|
|
100
|
-
getOtherProps: function getOtherProps(props) {
|
|
101
|
-
return ObjectUtils.getDiffProps(props, RadioButtonBase.defaultProps);
|
|
102
139
|
}
|
|
103
|
-
};
|
|
140
|
+
});
|
|
104
141
|
|
|
142
|
+
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; }
|
|
143
|
+
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; }
|
|
105
144
|
var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
106
|
-
var
|
|
145
|
+
var context = React.useContext(PrimeReactContext);
|
|
146
|
+
var props = RadioButtonBase.getProps(inProps, context);
|
|
107
147
|
var _React$useState = React.useState(false),
|
|
108
148
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
109
149
|
focusedState = _React$useState2[0],
|
|
110
150
|
setFocusedState = _React$useState2[1];
|
|
111
151
|
var elementRef = React.useRef(null);
|
|
112
152
|
var inputRef = React.useRef(props.inputRef);
|
|
153
|
+
var _RadioButtonBase$setM = RadioButtonBase.setMetaData({
|
|
154
|
+
props: props,
|
|
155
|
+
state: {
|
|
156
|
+
focused: focusedState
|
|
157
|
+
}
|
|
158
|
+
}),
|
|
159
|
+
ptm = _RadioButtonBase$setM.ptm;
|
|
113
160
|
var select = function select(event) {
|
|
114
161
|
onClick(event);
|
|
115
162
|
};
|
|
@@ -211,19 +258,20 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
211
258
|
'p-disabled': props.disabled,
|
|
212
259
|
'p-focus': focusedState
|
|
213
260
|
});
|
|
214
|
-
|
|
261
|
+
var rootProps = mergeProps({
|
|
215
262
|
ref: elementRef,
|
|
216
263
|
id: props.id,
|
|
217
264
|
className: className,
|
|
218
|
-
style: props.style
|
|
219
|
-
}, otherProps, {
|
|
265
|
+
style: props.style,
|
|
220
266
|
onClick: onClick
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
267
|
+
}, RadioButtonBase.getOtherProps(props), ptm('root'));
|
|
268
|
+
var hiddenInputWrapperProps = mergeProps({
|
|
269
|
+
className: 'p-hidden-accessible'
|
|
270
|
+
}, ptm('hiddenInputWrapper'));
|
|
271
|
+
var hiddenInputProps = mergeProps(_objectSpread({
|
|
224
272
|
ref: inputRef,
|
|
225
273
|
id: props.inputId,
|
|
226
|
-
type:
|
|
274
|
+
type: 'radio',
|
|
227
275
|
name: props.name,
|
|
228
276
|
defaultChecked: props.checked,
|
|
229
277
|
onFocus: onFocus,
|
|
@@ -232,14 +280,19 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
232
280
|
disabled: props.disabled,
|
|
233
281
|
required: props.required,
|
|
234
282
|
tabIndex: props.tabIndex
|
|
235
|
-
}, ariaProps)
|
|
283
|
+
}, ariaProps), ptm('hiddenInput'));
|
|
284
|
+
var inputProps = mergeProps({
|
|
236
285
|
className: boxClassName
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
|
|
286
|
+
}, ptm('input'));
|
|
287
|
+
var iconProps = mergeProps({
|
|
288
|
+
className: 'p-radiobutton-icon'
|
|
289
|
+
}, ptm('icon'));
|
|
290
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, /*#__PURE__*/React.createElement("div", hiddenInputWrapperProps, /*#__PURE__*/React.createElement("input", hiddenInputProps)), /*#__PURE__*/React.createElement("div", inputProps, /*#__PURE__*/React.createElement("div", iconProps))), hasTooltip && /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
240
291
|
target: elementRef,
|
|
241
292
|
content: props.tooltip
|
|
242
|
-
}, props.tooltipOptions
|
|
293
|
+
}, props.tooltipOptions, {
|
|
294
|
+
pt: ptm('tooltip')
|
|
295
|
+
})));
|
|
243
296
|
}));
|
|
244
297
|
RadioButton.displayName = 'RadioButton';
|
|
245
298
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useMountEffect as t}from"primereact/hooks";import{Tooltip as
|
|
1
|
+
import*as e from"react";import{useMountEffect as t}from"primereact/hooks";import{Tooltip as r}from"primereact/tooltip";import{ObjectUtils as n,DomHandler as o,classNames as i,mergeProps as u}from"primereact/utils";import{ComponentBase as c}from"primereact/componentbase";import{PrimeReactContext as a}from"primereact/api";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 p(e){return p="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},p(e)}function f(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function s(e){var t=f(e,"string");return"symbol"===p(t)?t:String(t)}function d(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(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=c.extend({defaultProps:{__TYPE:"RadioButton",autoFocus:!1,checked:!1,className:null,disabled:!1,id:null,inputId:null,inputRef:null,name:null,onChange:null,onClick:null,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,value:null,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 k(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){d(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 j=e.memo(e.forwardRef((function(c,p){var f,s,d=e.useContext(a),y=g.getProps(c,d),O=e.useState(!1),j=(s=2,m(f=O)||b(f,s)||h(f,s)||v()),P=j[0],E=j[1],S=e.useRef(null),w=e.useRef(y.inputRef),C=g.setMetaData({props:y,state:{focused:P}}).ptm,I=function(e){R(e)},R=function(e){if(!y.disabled&&(y.onChange||y.onClick)){var t=y.checked,r=e.target instanceof HTMLDivElement,n=e.target===w.current&&e.target.checked!==t,i=r&&o.hasClass(S.current,"p-radiobutton-checked")===t&&!t;if(n||i){var u=!t,c={originalEvent:e,value:y.value,checked:u,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{type:"radio",name:y.name,id:y.id,value:y.value,checked:u}};if(y.onClick&&y.onClick(c),e.defaultPrevented)return;y.onChange&&y.onChange(c),i&&(w.current.checked=u)}o.focus(w.current),e.preventDefault()}};e.useEffect((function(){w.current&&(w.current.checked=y.checked)}),[y.checked]),e.useEffect((function(){n.combinedRefs(w,y.inputRef)}),[w,y.inputRef]),t((function(){y.autoFocus&&o.focus(w.current,y.autoFocus)})),e.useImperativeHandle(p,(function(){return{props:y,select:I,focus:function(){return o.focus(w.current)},getElement:function(){return S.current},getInput:function(){return w.current}}}));var D=n.isNotEmpty(y.tooltip),N=g.getOtherProps(y),x=n.reduceKeys(N,o.ARIA_PROPS),A=i("p-radiobutton p-component",{"p-radiobutton-checked":y.checked,"p-radiobutton-disabled":y.disabled,"p-radiobutton-focused":P},y.className),F=i("p-radiobutton-box",{"p-highlight":y.checked,"p-disabled":y.disabled,"p-focus":P}),T=u({ref:S,id:y.id,className:A,style:y.style,onClick:R},g.getOtherProps(y),C("root")),q=u({className:"p-hidden-accessible"},C("hiddenInputWrapper")),B=u(k({ref:w,id:y.inputId,type:"radio",name:y.name,defaultChecked:y.checked,onFocus:function(){E(!0)},onBlur:function(){E(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||R(e)},disabled:y.disabled,required:y.required,tabIndex:y.tabIndex},x),C("hiddenInput")),M=u({className:F},C("input")),_=u({className:"p-radiobutton-icon"},C("icon"));return e.createElement(e.Fragment,null,e.createElement("div",T,e.createElement("div",q,e.createElement("input",B)),e.createElement("div",M,e.createElement("div",_))),D&&e.createElement(r,l({target:S,content:y.tooltip},y.tooltipOptions,{pt:C("tooltip")})))})));j.displayName="RadioButton";export{j as RadioButton};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.radiobutton = (function (exports, React, hooks, tooltip, utils) {
|
|
2
|
+
this.primereact.radiobutton = (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.radiobutton = (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.radiobutton = (function (exports, React, hooks, tooltip, utils)
|
|
|
92
133
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
93
134
|
}
|
|
94
135
|
|
|
95
|
-
var RadioButtonBase = {
|
|
136
|
+
var RadioButtonBase = componentbase.ComponentBase.extend({
|
|
96
137
|
defaultProps: {
|
|
97
138
|
__TYPE: 'RadioButton',
|
|
98
139
|
autoFocus: false,
|
|
@@ -112,23 +153,27 @@ this.primereact.radiobutton = (function (exports, React, hooks, tooltip, utils)
|
|
|
112
153
|
tooltipOptions: null,
|
|
113
154
|
value: null,
|
|
114
155
|
children: undefined
|
|
115
|
-
},
|
|
116
|
-
getProps: function getProps(props) {
|
|
117
|
-
return utils.ObjectUtils.getMergedProps(props, RadioButtonBase.defaultProps);
|
|
118
|
-
},
|
|
119
|
-
getOtherProps: function getOtherProps(props) {
|
|
120
|
-
return utils.ObjectUtils.getDiffProps(props, RadioButtonBase.defaultProps);
|
|
121
156
|
}
|
|
122
|
-
};
|
|
157
|
+
});
|
|
123
158
|
|
|
159
|
+
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; }
|
|
160
|
+
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; }
|
|
124
161
|
var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
125
|
-
var
|
|
162
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
163
|
+
var props = RadioButtonBase.getProps(inProps, context);
|
|
126
164
|
var _React$useState = React__namespace.useState(false),
|
|
127
165
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
128
166
|
focusedState = _React$useState2[0],
|
|
129
167
|
setFocusedState = _React$useState2[1];
|
|
130
168
|
var elementRef = React__namespace.useRef(null);
|
|
131
169
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
170
|
+
var _RadioButtonBase$setM = RadioButtonBase.setMetaData({
|
|
171
|
+
props: props,
|
|
172
|
+
state: {
|
|
173
|
+
focused: focusedState
|
|
174
|
+
}
|
|
175
|
+
}),
|
|
176
|
+
ptm = _RadioButtonBase$setM.ptm;
|
|
132
177
|
var select = function select(event) {
|
|
133
178
|
onClick(event);
|
|
134
179
|
};
|
|
@@ -230,19 +275,20 @@ this.primereact.radiobutton = (function (exports, React, hooks, tooltip, utils)
|
|
|
230
275
|
'p-disabled': props.disabled,
|
|
231
276
|
'p-focus': focusedState
|
|
232
277
|
});
|
|
233
|
-
|
|
278
|
+
var rootProps = utils.mergeProps({
|
|
234
279
|
ref: elementRef,
|
|
235
280
|
id: props.id,
|
|
236
281
|
className: className,
|
|
237
|
-
style: props.style
|
|
238
|
-
}, otherProps, {
|
|
282
|
+
style: props.style,
|
|
239
283
|
onClick: onClick
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
284
|
+
}, RadioButtonBase.getOtherProps(props), ptm('root'));
|
|
285
|
+
var hiddenInputWrapperProps = utils.mergeProps({
|
|
286
|
+
className: 'p-hidden-accessible'
|
|
287
|
+
}, ptm('hiddenInputWrapper'));
|
|
288
|
+
var hiddenInputProps = utils.mergeProps(_objectSpread({
|
|
243
289
|
ref: inputRef,
|
|
244
290
|
id: props.inputId,
|
|
245
|
-
type:
|
|
291
|
+
type: 'radio',
|
|
246
292
|
name: props.name,
|
|
247
293
|
defaultChecked: props.checked,
|
|
248
294
|
onFocus: onFocus,
|
|
@@ -251,14 +297,19 @@ this.primereact.radiobutton = (function (exports, React, hooks, tooltip, utils)
|
|
|
251
297
|
disabled: props.disabled,
|
|
252
298
|
required: props.required,
|
|
253
299
|
tabIndex: props.tabIndex
|
|
254
|
-
}, ariaProps)
|
|
300
|
+
}, ariaProps), ptm('hiddenInput'));
|
|
301
|
+
var inputProps = utils.mergeProps({
|
|
255
302
|
className: boxClassName
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
|
|
303
|
+
}, ptm('input'));
|
|
304
|
+
var iconProps = utils.mergeProps({
|
|
305
|
+
className: 'p-radiobutton-icon'
|
|
306
|
+
}, ptm('icon'));
|
|
307
|
+
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("div", inputProps, /*#__PURE__*/React__namespace.createElement("div", iconProps))), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
259
308
|
target: elementRef,
|
|
260
309
|
content: props.tooltip
|
|
261
|
-
}, props.tooltipOptions
|
|
310
|
+
}, props.tooltipOptions, {
|
|
311
|
+
pt: ptm('tooltip')
|
|
312
|
+
})));
|
|
262
313
|
}));
|
|
263
314
|
RadioButton.displayName = 'RadioButton';
|
|
264
315
|
|
|
@@ -268,4 +319,4 @@ this.primereact.radiobutton = (function (exports, React, hooks, tooltip, utils)
|
|
|
268
319
|
|
|
269
320
|
return exports;
|
|
270
321
|
|
|
271
|
-
})({}, React, primereact.hooks, primereact.tooltip, primereact.utils);
|
|
322
|
+
})({}, React, primereact.hooks, primereact.tooltip, primereact.utils, primereact.componentbase, primereact.api);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.radiobutton=function(e,t,n,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.radiobutton=function(e,t,r,n,o,i,c){"use strict";function u(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=u(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 d(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 m(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,c,u=[],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)&&(u.push(n.value),u.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{if(!a&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return u}}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:"RadioButton",autoFocus:!1,checked:!1,className:null,disabled:!1,id:null,inputId:null,inputRef:null,name:null,onChange:null,onClick:null,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,value:null,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){d(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,u,s=a.useContext(c.PrimeReactContext),p=g.getProps(e,s),f=a.useState(!1),d=(u=2,m(i=f)||b(i,u)||h(i,u)||v()),y=d[0],O=d[1],P=a.useRef(null),k=a.useRef(p.inputRef),E=g.setMetaData({props:p,state:{focused:y}}).ptm,S=function(e){w(e)},w=function(e){if(!p.disabled&&(p.onChange||p.onClick)){var t=p.checked,r=e.target instanceof HTMLDivElement,n=e.target===k.current&&e.target.checked!==t,i=r&&o.DomHandler.hasClass(P.current,"p-radiobutton-checked")===t&&!t;if(n||i){var c=!t,u={originalEvent:e,value:p.value,checked:c,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{type:"radio",name:p.name,id:p.id,value:p.value,checked:c}};if(p.onClick&&p.onClick(u),e.defaultPrevented)return;p.onChange&&p.onChange(u),i&&(k.current.checked=c)}o.DomHandler.focus(k.current),e.preventDefault()}};a.useEffect((function(){k.current&&(k.current.checked=p.checked)}),[p.checked]),a.useEffect((function(){o.ObjectUtils.combinedRefs(k,p.inputRef)}),[k,p.inputRef]),r.useMountEffect((function(){p.autoFocus&&o.DomHandler.focus(k.current,p.autoFocus)})),a.useImperativeHandle(t,(function(){return{props:p,select:S,focus:function(){return o.DomHandler.focus(k.current)},getElement:function(){return P.current},getInput:function(){return k.current}}}));var D=o.ObjectUtils.isNotEmpty(p.tooltip),C=g.getOtherProps(p),R=o.ObjectUtils.reduceKeys(C,o.DomHandler.ARIA_PROPS),I=o.classNames("p-radiobutton p-component",{"p-radiobutton-checked":p.checked,"p-radiobutton-disabled":p.disabled,"p-radiobutton-focused":y},p.className),N=o.classNames("p-radiobutton-box",{"p-highlight":p.checked,"p-disabled":p.disabled,"p-focus":y}),x=o.mergeProps({ref:P,id:p.id,className:I,style:p.style,onClick:w},g.getOtherProps(p),E("root")),A=o.mergeProps({className:"p-hidden-accessible"},E("hiddenInputWrapper")),H=o.mergeProps(j({ref:k,id:p.inputId,type:"radio",name:p.name,defaultChecked:p.checked,onFocus:function(){O(!0)},onBlur:function(){O(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||w(e)},disabled:p.disabled,required:p.required,tabIndex:p.tabIndex},R),E("hiddenInput")),_=o.mergeProps({className:N},E("input")),M=o.mergeProps({className:"p-radiobutton-icon"},E("icon"));return a.createElement(a.Fragment,null,a.createElement("div",x,a.createElement("div",A,a.createElement("input",H)),a.createElement("div",_,a.createElement("div",M))),D&&a.createElement(n.Tooltip,l({target:P,content:p.tooltip},p.tooltipOptions,{pt:E("tooltip")})))})));return P.displayName="RadioButton",e.RadioButton=P,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.tooltip,primereact.utils,primereact.componentbase,primereact.api);
|
package/rating/rating.cjs.js
CHANGED
|
@@ -8,6 +8,8 @@ var star = require('primereact/icons/star');
|
|
|
8
8
|
var starfill = require('primereact/icons/starfill');
|
|
9
9
|
var tooltip = require('primereact/tooltip');
|
|
10
10
|
var utils = require('primereact/utils');
|
|
11
|
+
var componentbase = require('primereact/componentbase');
|
|
12
|
+
var api = require('primereact/api');
|
|
11
13
|
|
|
12
14
|
function _interopNamespace(e) {
|
|
13
15
|
if (e && e.__esModule) return e;
|
|
@@ -85,7 +87,7 @@ function _defineProperty(obj, key, value) {
|
|
|
85
87
|
return obj;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
var RatingBase = {
|
|
90
|
+
var RatingBase = componentbase.ComponentBase.extend({
|
|
89
91
|
defaultProps: {
|
|
90
92
|
__TYPE: 'Rating',
|
|
91
93
|
id: null,
|
|
@@ -106,20 +108,26 @@ var RatingBase = {
|
|
|
106
108
|
onIconProps: null,
|
|
107
109
|
offIconProps: null,
|
|
108
110
|
children: undefined
|
|
109
|
-
},
|
|
110
|
-
getProps: function getProps(props) {
|
|
111
|
-
return utils.ObjectUtils.getMergedProps(props, RatingBase.defaultProps);
|
|
112
|
-
},
|
|
113
|
-
getOtherProps: function getOtherProps(props) {
|
|
114
|
-
return utils.ObjectUtils.getDiffProps(props, RatingBase.defaultProps);
|
|
115
111
|
}
|
|
116
|
-
};
|
|
112
|
+
});
|
|
117
113
|
|
|
118
114
|
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; }
|
|
119
115
|
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; }
|
|
120
116
|
var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
121
|
-
var
|
|
117
|
+
var context = React__namespace.useContext(api.PrimeReactContext);
|
|
118
|
+
var props = RatingBase.getProps(inProps, context);
|
|
122
119
|
var elementRef = React__namespace.useRef(null);
|
|
120
|
+
var _RatingBase$setMetaDa = RatingBase.setMetaData({
|
|
121
|
+
props: props
|
|
122
|
+
}),
|
|
123
|
+
ptm = _RatingBase$setMetaDa.ptm;
|
|
124
|
+
var getPTOptions = function getPTOptions(value, key) {
|
|
125
|
+
return ptm(key, {
|
|
126
|
+
context: {
|
|
127
|
+
active: value <= props.value
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
};
|
|
123
131
|
var enabled = !props.disabled && !props.readOnly;
|
|
124
132
|
var tabIndex = enabled ? 0 : null;
|
|
125
133
|
var rate = function rate(event, i) {
|
|
@@ -183,21 +191,21 @@ var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
183
191
|
'p-rating-item-active': active
|
|
184
192
|
});
|
|
185
193
|
var iconClassName = 'p-rating-icon';
|
|
194
|
+
var onIconProps = utils.mergeProps({
|
|
195
|
+
className: iconClassName
|
|
196
|
+
}, getPTOptions(props.value, 'onIcon'));
|
|
197
|
+
var offIconProps = utils.mergeProps({
|
|
198
|
+
className: iconClassName
|
|
199
|
+
}, getPTOptions(props.value, 'offIcon'));
|
|
186
200
|
var icon = active ? {
|
|
187
|
-
type: props.onIcon || /*#__PURE__*/React__namespace.createElement(starfill.StarFillIcon,
|
|
188
|
-
className: iconClassName
|
|
189
|
-
})
|
|
201
|
+
type: props.onIcon || /*#__PURE__*/React__namespace.createElement(starfill.StarFillIcon, onIconProps)
|
|
190
202
|
} : {
|
|
191
|
-
type: props.offIcon || /*#__PURE__*/React__namespace.createElement(star.StarIcon,
|
|
192
|
-
className: iconClassName
|
|
193
|
-
})
|
|
203
|
+
type: props.offIcon || /*#__PURE__*/React__namespace.createElement(star.StarIcon, offIconProps)
|
|
194
204
|
};
|
|
195
|
-
var content = utils.IconUtils.getJSXIcon(icon.type, _objectSpread({
|
|
196
|
-
className: iconClassName
|
|
197
|
-
}, icon.props), {
|
|
205
|
+
var content = utils.IconUtils.getJSXIcon(icon.type, active ? _objectSpread({}, onIconProps) : _objectSpread({}, offIconProps), {
|
|
198
206
|
props: props
|
|
199
207
|
});
|
|
200
|
-
|
|
208
|
+
var itemProps = utils.mergeProps({
|
|
201
209
|
key: value,
|
|
202
210
|
className: className,
|
|
203
211
|
tabIndex: tabIndex,
|
|
@@ -207,28 +215,29 @@ var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
207
215
|
onKeyDown: function onKeyDown(e) {
|
|
208
216
|
return onStarKeyDown(e, value);
|
|
209
217
|
}
|
|
210
|
-
},
|
|
218
|
+
}, getPTOptions(props.value, 'item'));
|
|
219
|
+
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
220
|
+
key: value
|
|
221
|
+
}, itemProps), content);
|
|
211
222
|
});
|
|
212
223
|
};
|
|
213
224
|
var createCancelIcon = function createCancelIcon() {
|
|
214
225
|
if (props.cancel) {
|
|
215
226
|
var iconClassName = 'p-rating-icon p-rating-cancel';
|
|
216
|
-
var
|
|
227
|
+
var cancelIconProps = utils.mergeProps({
|
|
217
228
|
className: iconClassName
|
|
218
|
-
});
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
iconClassName: iconClassName
|
|
222
|
-
}
|
|
223
|
-
}, props.cancelIconProps), {
|
|
229
|
+
}, ptm('cancelIcon'));
|
|
230
|
+
var icon = props.cancelIcon || /*#__PURE__*/React__namespace.createElement(ban.BanIcon, cancelIconProps);
|
|
231
|
+
var content = utils.IconUtils.getJSXIcon(icon, _objectSpread(_objectSpread({}, cancelIconProps), props.cancelIconProps), {
|
|
224
232
|
props: props
|
|
225
233
|
});
|
|
226
|
-
|
|
227
|
-
className:
|
|
234
|
+
var cancelItemProps = utils.mergeProps({
|
|
235
|
+
className: 'p-rating-item p-rating-cancel-item',
|
|
228
236
|
onClick: clear,
|
|
229
237
|
tabIndex: tabIndex,
|
|
230
238
|
onKeyDown: onCancelKeyDown
|
|
231
|
-
},
|
|
239
|
+
}, ptm('cancelItem'));
|
|
240
|
+
return /*#__PURE__*/React__namespace.createElement("div", cancelItemProps, content);
|
|
232
241
|
}
|
|
233
242
|
return null;
|
|
234
243
|
};
|
|
@@ -241,22 +250,24 @@ var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
241
250
|
};
|
|
242
251
|
});
|
|
243
252
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
244
|
-
var otherProps = RatingBase.getOtherProps(props);
|
|
245
253
|
var className = utils.classNames('p-rating', {
|
|
246
254
|
'p-disabled': props.disabled,
|
|
247
255
|
'p-readonly': props.readOnly
|
|
248
256
|
}, props.className);
|
|
249
|
-
var
|
|
250
|
-
var icons = createIcons();
|
|
251
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
257
|
+
var rootProps = utils.mergeProps({
|
|
252
258
|
ref: elementRef,
|
|
253
259
|
id: props.id,
|
|
254
260
|
className: className,
|
|
255
261
|
style: props.style
|
|
256
|
-
},
|
|
262
|
+
}, RatingBase.getOtherProps(props), ptm('root'));
|
|
263
|
+
var cancelIcon = createCancelIcon();
|
|
264
|
+
var icons = createIcons();
|
|
265
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement("div", rootProps, cancelIcon, icons), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
257
266
|
target: elementRef,
|
|
258
267
|
content: props.tooltip
|
|
259
|
-
}, props.tooltipOptions
|
|
268
|
+
}, props.tooltipOptions, {
|
|
269
|
+
pt: ptm('tooltip')
|
|
270
|
+
})));
|
|
260
271
|
}));
|
|
261
272
|
Rating.displayName = 'Rating';
|
|
262
273
|
|
package/rating/rating.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/icons/ban"),n=require("primereact/icons/star"),r=require("primereact/icons/starfill"),o=require("primereact/tooltip"),a=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/icons/ban"),n=require("primereact/icons/star"),r=require("primereact/icons/starfill"),o=require("primereact/tooltip"),a=require("primereact/utils"),i=require("primereact/componentbase"),l=require("primereact/api");function c(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 u=c(e);function p(){return p=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},p.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 f(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e){var t=f(e,"string");return"symbol"===s(t)?t:String(t)}function g(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=i.ComponentBase.extend({defaultProps:{__TYPE:"Rating",id:null,value:null,disabled:!1,readOnly:!1,stars:5,cancel:!0,style:null,className:null,tooltip:null,tooltipOptions:null,onChange:null,onIcon:null,offIcon:null,cancelIcon:null,cancelIconProps:null,onIconProps:null,offIconProps:null,children:void 0}});function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=u.memo(u.forwardRef((function(e,i){var c=u.useContext(l.PrimeReactContext),s=y.getProps(e,c),f=u.useRef(null),m=y.setMetaData({props:s}).ptm,g=function(e,t){return m(t,{context:{active:e<=s.value}})},v=!s.disabled&&!s.readOnly,d=v?0:null,O=function(e,t){v&&s.onChange&&s.onChange({originalEvent:e,value:t,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:s.name,id:s.id,value:t}}),e.preventDefault()},P=function(e){v&&s.onChange&&s.onChange({originalEvent:e,value:null,stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{name:s.name,id:s.id,value:null}}),e.preventDefault()},j=function(e,t){"Enter"===e.key&&O(e,t)},I=function(e){"Enter"===e.key&&P(e)};u.useImperativeHandle(i,(function(){return{props:s,getElement:function(){return f.current}}}));var E=a.ObjectUtils.isNotEmpty(s.tooltip),h=a.classNames("p-rating",{"p-disabled":s.disabled,"p-readonly":s.readOnly},s.className),w=a.mergeProps({ref:f,id:s.id,className:h,style:s.style},y.getOtherProps(s),m("root")),D=function(){if(s.cancel){var e=a.mergeProps({className:"p-rating-icon p-rating-cancel"},m("cancelIcon")),n=a.IconUtils.getJSXIcon(s.cancelIcon||u.createElement(t.BanIcon,e),b(b({},e),s.cancelIconProps),{props:s}),r=a.mergeProps({className:"p-rating-item p-rating-cancel-item",onClick:P,tabIndex:d,onKeyDown:I},m("cancelItem"));return u.createElement("div",r,n)}return null}(),S=Array.from({length:s.stars},(function(e,t){return t+1})).map((function(e){var t=e<=s.value,o=a.classNames("p-rating-item",{"p-rating-item-active":t}),i="p-rating-icon",l=a.mergeProps({className:i},g(s.value,"onIcon")),c=a.mergeProps({className:i},g(s.value,"offIcon")),f=a.IconUtils.getJSXIcon((t?{type:s.onIcon||u.createElement(r.StarFillIcon,l)}:{type:s.offIcon||u.createElement(n.StarIcon,c)}).type,b({},t?l:c),{props:s}),m=a.mergeProps({key:e,className:o,tabIndex:d,onClick:function(t){return O(t,e)},onKeyDown:function(t){return j(t,e)}},g(s.value,"item"));return u.createElement("div",p({key:e},m),f)}));return u.createElement(u.Fragment,null,u.createElement("div",w,D,S),E&&u.createElement(o.Tooltip,p({target:f,content:s.tooltip},s.tooltipOptions,{pt:m("tooltip")})))})));d.displayName="Rating",exports.Rating=d;
|