primereact 9.0.0-beta.1 → 9.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +69 -50
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.esm.js +70 -51
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +69 -50
- package/accordion/accordion.min.js +1 -1
- package/accordion/package.json +2 -1
- package/api/api.cjs.js +21 -19
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +1 -1
- package/api/api.esm.js +21 -19
- package/api/api.esm.min.js +1 -1
- package/api/api.js +21 -19
- package/api/api.min.js +1 -1
- package/api/package.json +2 -1
- package/autocomplete/autocomplete.cjs.js +80 -73
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +81 -74
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +80 -73
- package/autocomplete/autocomplete.min.js +1 -1
- package/autocomplete/package.json +2 -1
- package/avatar/avatar.cjs.js +29 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +29 -22
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +29 -22
- package/avatar/avatar.min.js +1 -1
- package/avatar/package.json +2 -1
- package/avatargroup/avatargroup.cjs.js +18 -7
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +1 -1
- package/avatargroup/avatargroup.esm.js +18 -7
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +18 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/avatargroup/package.json +2 -1
- package/badge/badge.cjs.js +21 -10
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +1 -1
- package/badge/badge.esm.js +21 -10
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +21 -10
- package/badge/badge.min.js +1 -1
- package/badge/package.json +2 -1
- package/blockui/blockui.cjs.js +30 -23
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +1 -1
- package/blockui/blockui.esm.js +31 -24
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +30 -23
- package/blockui/blockui.min.js +1 -1
- package/blockui/package.json +2 -1
- package/breadcrumb/breadcrumb.cjs.js +21 -10
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +1 -1
- package/breadcrumb/breadcrumb.esm.js +21 -10
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +21 -10
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/breadcrumb/package.json +2 -1
- package/button/button.cjs.js +27 -16
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +27 -16
- package/button/button.esm.min.js +1 -1
- package/button/button.js +27 -16
- package/button/button.min.js +1 -1
- package/button/package.json +2 -1
- package/calendar/calendar.cjs.js +104 -97
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.esm.js +105 -98
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +104 -97
- package/calendar/calendar.min.js +1 -1
- package/calendar/package.json +2 -1
- package/card/card.cjs.js +23 -12
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +1 -1
- package/card/card.esm.js +23 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +23 -12
- package/card/card.min.js +1 -1
- package/card/package.json +2 -1
- package/carousel/carousel.cjs.js +39 -32
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +1 -1
- package/carousel/carousel.esm.js +40 -33
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -32
- package/carousel/carousel.min.js +1 -1
- package/carousel/package.json +2 -1
- package/cascadeselect/cascadeselect.cjs.js +46 -39
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -40
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +46 -39
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/package.json +2 -1
- package/chart/chart.cjs.js +25 -14
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +1 -1
- package/chart/chart.esm.js +25 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +25 -14
- package/chart/chart.min.js +1 -1
- package/chart/package.json +2 -1
- package/checkbox/checkbox.cjs.js +38 -31
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -2
- package/checkbox/checkbox.esm.js +39 -32
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -31
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/package.json +2 -1
- package/chip/chip.cjs.js +29 -22
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +29 -22
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +29 -22
- package/chip/chip.min.js +1 -1
- package/chip/package.json +2 -1
- package/chips/chips.cjs.js +44 -37
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +1 -1
- package/chips/chips.esm.js +44 -37
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -37
- package/chips/chips.min.js +1 -1
- package/chips/package.json +2 -1
- package/colorpicker/colorpicker.cjs.js +39 -32
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +40 -33
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +39 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/colorpicker/package.json +2 -1
- package/column/column.cjs.js +0 -79
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/column/column.esm.js +0 -79
- package/column/column.esm.min.js +1 -1
- package/column/column.js +6 -85
- package/column/column.min.js +1 -1
- package/column/package.json +2 -1
- package/columngroup/columngroup.cjs.js +0 -3
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.d.ts +1 -1
- package/columngroup/columngroup.esm.js +0 -3
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +6 -9
- package/columngroup/columngroup.min.js +1 -1
- package/columngroup/package.json +2 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -28
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +1 -1
- package/confirmdialog/confirmdialog.esm.js +36 -29
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -28
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/package.json +2 -1
- package/confirmpopup/confirmpopup.cjs.js +39 -32
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +1 -1
- package/confirmpopup/confirmpopup.esm.js +40 -33
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +39 -32
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/package.json +2 -1
- package/contextmenu/contextmenu.cjs.js +29 -22
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -2
- package/contextmenu/contextmenu.esm.js +30 -23
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +29 -22
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/package.json +2 -1
- package/core/core.js +1663 -1010
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +15 -4
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +1 -1
- package/csstransition/csstransition.esm.js +15 -4
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +15 -4
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +33 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +1 -1
- package/datascroller/datascroller.esm.js +33 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +33 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datascroller/package.json +2 -1
- package/datatable/datatable.cjs.js +360 -218
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +26 -11
- package/datatable/datatable.esm.js +361 -219
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +361 -219
- package/datatable/datatable.min.js +1 -1
- package/datatable/package.json +2 -1
- package/dataview/dataview.cjs.js +69 -52
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/dataview/dataview.esm.js +69 -52
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +69 -52
- package/dataview/dataview.min.js +1 -1
- package/dataview/package.json +2 -1
- package/deferredcontent/deferredcontent.cjs.js +19 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +1 -1
- package/deferredcontent/deferredcontent.esm.js +19 -12
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +19 -12
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/deferredcontent/package.json +2 -1
- package/dialog/dialog.cjs.js +63 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/dialog.esm.js +64 -57
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +63 -56
- package/dialog/dialog.min.js +1 -1
- package/dialog/package.json +2 -1
- package/divider/divider.cjs.js +21 -10
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +1 -1
- package/divider/divider.esm.js +21 -10
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +21 -10
- package/divider/divider.min.js +1 -1
- package/divider/package.json +2 -1
- package/dock/dock.cjs.js +26 -19
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +1 -1
- package/dock/dock.esm.js +26 -19
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +26 -19
- package/dock/dock.min.js +1 -1
- package/dock/package.json +2 -1
- package/dropdown/dropdown.cjs.js +77 -70
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +1 -1
- package/dropdown/dropdown.esm.js +78 -71
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +77 -70
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/package.json +2 -1
- package/editor/editor.cjs.js +31 -20
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -1
- package/editor/editor.esm.js +32 -21
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -20
- package/editor/editor.min.js +1 -1
- package/editor/package.json +2 -1
- package/fieldset/fieldset.cjs.js +29 -22
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +1 -1
- package/fieldset/fieldset.esm.js +30 -23
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -22
- package/fieldset/fieldset.min.js +1 -1
- package/fieldset/package.json +2 -1
- package/fileupload/fileupload.cjs.js +83 -76
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +1 -1
- package/fileupload/fileupload.esm.js +83 -76
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +83 -76
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/package.json +2 -1
- package/galleria/galleria.cjs.js +48 -41
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +1 -1
- package/galleria/galleria.esm.js +49 -42
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +48 -41
- package/galleria/galleria.min.js +1 -1
- package/galleria/package.json +2 -1
- package/hooks/hooks.cjs.js +577 -146
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +81 -0
- package/hooks/hooks.esm.js +557 -133
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +869 -438
- package/hooks/hooks.min.js +1 -1
- package/hooks/package.json +2 -1
- package/image/image.cjs.js +32 -25
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +33 -26
- package/image/image.esm.min.js +1 -1
- package/image/image.js +32 -25
- package/image/image.min.js +1 -1
- package/image/package.json +2 -1
- package/inplace/inplace.cjs.js +51 -37
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +1 -1
- package/inplace/inplace.esm.js +51 -37
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +51 -37
- package/inplace/inplace.min.js +1 -1
- package/inplace/package.json +2 -1
- package/inputmask/inputmask.cjs.js +44 -41
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +45 -42
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +44 -41
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/package.json +2 -1
- package/inputnumber/inputnumber.cjs.js +67 -60
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +68 -61
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +67 -60
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/package.json +2 -1
- package/inputswitch/inputswitch.cjs.js +34 -27
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +2 -2
- package/inputswitch/inputswitch.esm.js +35 -28
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +34 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/package.json +2 -1
- package/inputtext/inputtext.cjs.js +23 -12
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +23 -12
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +23 -12
- package/inputtext/inputtext.min.js +1 -1
- package/inputtext/package.json +2 -1
- package/inputtextarea/inputtextarea.cjs.js +27 -16
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +27 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +27 -16
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/inputtextarea/package.json +2 -1
- package/keyfilter/keyfilter.cjs.js +1 -3
- package/keyfilter/keyfilter.esm.js +1 -3
- package/keyfilter/keyfilter.js +1 -3
- package/keyfilter/package.json +2 -1
- package/knob/knob.cjs.js +36 -29
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +1 -1
- package/knob/knob.esm.js +36 -29
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +36 -29
- package/knob/knob.min.js +1 -1
- package/knob/package.json +2 -1
- package/listbox/listbox.cjs.js +53 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +1 -1
- package/listbox/listbox.esm.js +53 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +53 -46
- package/listbox/listbox.min.js +1 -1
- package/listbox/package.json +2 -1
- package/megamenu/megamenu.cjs.js +25 -18
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +1 -1
- package/megamenu/megamenu.esm.js +26 -19
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +25 -18
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/package.json +2 -1
- package/mention/mention.cjs.js +71 -53
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +71 -53
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +71 -53
- package/mention/mention.min.js +1 -1
- package/mention/package.json +2 -1
- package/menu/menu.cjs.js +29 -22
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +30 -23
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +29 -22
- package/menu/menu.min.js +1 -1
- package/menu/package.json +2 -1
- package/menubar/menubar.cjs.js +24 -17
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +1 -1
- package/menubar/menubar.esm.js +25 -18
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +24 -17
- package/menubar/menubar.min.js +1 -1
- package/menubar/package.json +2 -1
- package/menuitem/package.json +2 -1
- package/message/message.cjs.js +23 -12
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +1 -1
- package/message/message.esm.js +23 -12
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -12
- package/message/message.min.js +1 -1
- package/message/package.json +2 -1
- package/messages/messages.cjs.js +24 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +1 -1
- package/messages/messages.esm.js +25 -18
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +24 -17
- package/messages/messages.min.js +1 -1
- package/messages/package.json +2 -1
- package/multiselect/multiselect.cjs.js +116 -98
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +1 -1
- package/multiselect/multiselect.esm.js +117 -99
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +116 -98
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/package.json +2 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +39 -28
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +40 -29
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +39 -28
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/multistatecheckbox/package.json +2 -1
- package/orderlist/orderlist.cjs.js +37 -30
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +1 -1
- package/orderlist/orderlist.esm.js +37 -30
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -31
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/package.json +2 -1
- package/organizationchart/organizationchart.cjs.js +28 -21
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +1 -1
- package/organizationchart/organizationchart.esm.js +29 -22
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +28 -21
- package/organizationchart/organizationchart.min.js +1 -1
- package/organizationchart/package.json +2 -1
- package/overlaypanel/overlaypanel.cjs.js +29 -22
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +30 -23
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -22
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlaypanel/package.json +2 -1
- package/overlayservice/overlayservice.d.ts +1 -1
- package/overlayservice/package.json +2 -1
- package/package.json +2 -2
- package/paginator/package.json +2 -1
- package/paginator/paginator.cjs.js +184 -97
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +1 -1
- package/paginator/paginator.esm.js +184 -97
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +184 -97
- package/paginator/paginator.min.js +1 -1
- package/panel/package.json +2 -1
- package/panel/panel.cjs.js +32 -25
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +2 -2
- package/panel/panel.esm.js +32 -25
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +32 -25
- package/panel/panel.min.js +1 -1
- package/panelmenu/package.json +2 -1
- package/panelmenu/panelmenu.cjs.js +24 -17
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/panelmenu/panelmenu.esm.js +25 -18
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +24 -17
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/package.json +2 -1
- package/password/password.cjs.js +46 -39
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +46 -39
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -39
- package/password/password.min.js +1 -1
- package/picklist/package.json +2 -1
- package/picklist/picklist.cjs.js +57 -50
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +1 -1
- package/picklist/picklist.esm.js +58 -51
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +57 -50
- package/picklist/picklist.min.js +1 -1
- package/portal/package.json +2 -1
- package/portal/portal.cjs.js +22 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +23 -16
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +22 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4356 -2992
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4350 -2991
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4356 -2992
- package/primereact.all.min.js +1 -1
- package/progressbar/package.json +2 -1
- package/progressbar/progressbar.cjs.js +26 -15
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +1 -1
- package/progressbar/progressbar.esm.js +26 -15
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -15
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/package.json +2 -1
- package/progressspinner/progressspinner.cjs.js +22 -11
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +1 -1
- package/progressspinner/progressspinner.esm.js +22 -11
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +22 -11
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/package.json +2 -1
- package/radiobutton/radiobutton.cjs.js +32 -25
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +1 -1
- package/radiobutton/radiobutton.esm.js +32 -25
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +32 -25
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/package.json +2 -1
- package/rating/rating.cjs.js +33 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +1 -1
- package/rating/rating.esm.js +33 -22
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +33 -22
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +574 -574
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +2 -0
- package/resources/themes/arya-green/theme.css +2 -0
- package/resources/themes/arya-orange/theme.css +2 -0
- package/resources/themes/arya-purple/theme.css +2 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +3 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +3 -1
- package/resources/themes/fluent-light/theme.css +3 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -0
- package/resources/themes/lara-dark-indigo/theme.css +2 -0
- package/resources/themes/lara-dark-purple/theme.css +2 -0
- package/resources/themes/lara-dark-teal/theme.css +2 -0
- package/resources/themes/lara-light-blue/theme.css +2 -0
- package/resources/themes/lara-light-indigo/theme.css +2 -0
- package/resources/themes/lara-light-purple/theme.css +2 -0
- package/resources/themes/lara-light-teal/theme.css +2 -0
- package/resources/themes/luna-amber/theme.css +3 -1
- package/resources/themes/luna-blue/theme.css +3 -1
- package/resources/themes/luna-green/theme.css +3 -1
- package/resources/themes/luna-pink/theme.css +3 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +3 -1
- package/resources/themes/nano/theme.css +3 -1
- package/resources/themes/nova/theme.css +3 -1
- package/resources/themes/nova-accent/theme.css +3 -1
- package/resources/themes/nova-alt/theme.css +3 -1
- package/resources/themes/rhea/theme.css +3 -1
- package/resources/themes/saga-blue/theme.css +3 -1
- package/resources/themes/saga-green/theme.css +3 -1
- package/resources/themes/saga-orange/theme.css +3 -1
- package/resources/themes/saga-purple/theme.css +3 -1
- package/resources/themes/soho-dark/theme.css +3 -1
- package/resources/themes/soho-light/theme.css +3 -1
- package/resources/themes/vela-blue/theme.css +3 -1
- package/resources/themes/vela-green/theme.css +3 -1
- package/resources/themes/vela-orange/theme.css +3 -1
- package/resources/themes/vela-purple/theme.css +3 -1
- package/resources/themes/viva-dark/theme.css +3 -1
- package/resources/themes/viva-light/theme.css +3 -1
- package/ripple/package.json +2 -1
- package/ripple/ripple.cjs.js +0 -3
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.d.ts +1 -1
- package/ripple/ripple.esm.js +0 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -3
- package/ripple/ripple.min.js +1 -1
- package/row/package.json +2 -1
- package/row/row.cjs.js +21 -7
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +1 -1
- package/row/row.esm.js +21 -7
- package/row/row.esm.min.js +1 -1
- package/row/row.js +21 -7
- package/row/row.min.js +1 -1
- package/scrollpanel/package.json +2 -1
- package/scrollpanel/scrollpanel.cjs.js +19 -8
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +1 -1
- package/scrollpanel/scrollpanel.esm.js +19 -8
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +19 -8
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/package.json +2 -1
- package/scrolltop/scrolltop.cjs.js +27 -20
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +1 -1
- package/scrolltop/scrolltop.esm.js +28 -21
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +27 -20
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/package.json +2 -1
- package/selectbutton/selectbutton.cjs.js +35 -28
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +1 -1
- package/selectbutton/selectbutton.esm.js +36 -29
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +35 -28
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/package.json +2 -1
- package/sidebar/package.json +2 -1
- package/sidebar/sidebar.cjs.js +38 -31
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/sidebar/sidebar.esm.js +39 -32
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -31
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/package.json +2 -1
- package/skeleton/skeleton.cjs.js +24 -13
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +1 -1
- package/skeleton/skeleton.esm.js +24 -13
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +24 -13
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/package.json +2 -1
- package/slidemenu/slidemenu.cjs.js +35 -28
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -1
- package/slidemenu/slidemenu.esm.js +36 -29
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +35 -28
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/package.json +2 -1
- package/slider/slider.cjs.js +31 -24
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +1 -1
- package/slider/slider.esm.js +31 -24
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +31 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/package.json +2 -1
- package/speeddial/speeddial.cjs.js +43 -36
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +1 -1
- package/speeddial/speeddial.esm.js +44 -37
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -36
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/package.json +2 -1
- package/splitbutton/splitbutton.cjs.js +43 -36
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitbutton/splitbutton.esm.js +44 -37
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -36
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/package.json +2 -1
- package/splitter/splitter.cjs.js +53 -33
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +1 -1
- package/splitter/splitter.esm.js +54 -34
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +53 -33
- package/splitter/splitter.min.js +1 -1
- package/steps/package.json +2 -1
- package/steps/steps.cjs.js +23 -12
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +1 -1
- package/steps/steps.esm.js +23 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +23 -12
- package/steps/steps.min.js +1 -1
- package/styleclass/package.json +2 -1
- package/styleclass/styleclass.cjs.js +27 -20
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +1 -1
- package/styleclass/styleclass.esm.js +28 -21
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +27 -20
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/package.json +2 -1
- package/tabmenu/tabmenu.cjs.js +29 -20
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +1 -1
- package/tabmenu/tabmenu.esm.js +29 -20
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +29 -20
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/package.json +2 -1
- package/tabview/tabview.cjs.js +79 -57
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +80 -58
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +79 -57
- package/tabview/tabview.min.js +1 -1
- package/tag/package.json +2 -1
- package/tag/tag.cjs.js +22 -11
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +1 -1
- package/tag/tag.esm.js +22 -11
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +22 -11
- package/tag/tag.min.js +1 -1
- package/terminal/package.json +2 -1
- package/terminal/terminal.cjs.js +23 -16
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +1 -1
- package/terminal/terminal.esm.js +24 -17
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +23 -16
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/package.json +2 -1
- package/terminalservice/terminalservice.d.ts +1 -1
- package/tieredmenu/package.json +2 -1
- package/tieredmenu/tieredmenu.cjs.js +29 -22
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -1
- package/tieredmenu/tieredmenu.esm.js +30 -23
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +29 -22
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/package.json +2 -1
- package/timeline/timeline.cjs.js +24 -13
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +1 -1
- package/timeline/timeline.esm.js +24 -13
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/package.json +2 -1
- package/toast/toast.cjs.js +34 -25
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +36 -27
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +34 -25
- package/toast/toast.min.js +1 -1
- package/togglebutton/package.json +2 -1
- package/togglebutton/togglebutton.cjs.js +31 -20
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +1 -1
- package/togglebutton/togglebutton.esm.js +32 -21
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +31 -20
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/package.json +2 -1
- package/toolbar/toolbar.cjs.js +24 -13
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +1 -1
- package/toolbar/toolbar.esm.js +24 -13
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +24 -13
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/package.json +2 -1
- package/tooltip/tooltip.cjs.js +45 -38
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.esm.js +46 -39
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +45 -38
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +17 -17
- package/tree/package.json +2 -1
- package/tree/tree.cjs.js +61 -54
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree/tree.esm.js +62 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +61 -54
- package/tree/tree.min.js +1 -1
- package/treenode/package.json +2 -1
- package/treeselect/package.json +2 -1
- package/treeselect/treeselect.cjs.js +62 -55
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +1 -1
- package/treeselect/treeselect.esm.js +63 -56
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +62 -55
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/package.json +2 -1
- package/treetable/treetable.cjs.js +287 -151
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +58 -1
- package/treetable/treetable.esm.js +288 -152
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +288 -152
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/package.json +2 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +28 -21
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -22
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +28 -21
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/package.json +2 -1
- package/utils/utils.cjs.js +57 -26
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +7 -0
- package/utils/utils.esm.js +57 -26
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +57 -26
- package/utils/utils.min.js +1 -1
- package/virtualscroller/package.json +2 -1
- package/virtualscroller/virtualscroller.cjs.js +44 -37
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +1 -1
- package/virtualscroller/virtualscroller.esm.js +45 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +44 -37
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +9 -3
- package/captcha/captcha.cjs.js +0 -142
- package/captcha/captcha.cjs.min.js +0 -1
- package/captcha/captcha.d.ts +0 -88
- package/captcha/captcha.esm.js +0 -118
- package/captcha/captcha.esm.min.js +0 -1
- package/captcha/captcha.js +0 -144
- package/captcha/captcha.min.js +0 -1
- package/captcha/package.json +0 -6
- package/gmap/gmap.cjs.js +0 -186
- package/gmap/gmap.cjs.min.js +0 -1
- package/gmap/gmap.d.ts +0 -112
- package/gmap/gmap.esm.js +0 -162
- package/gmap/gmap.esm.min.js +0 -1
- package/gmap/gmap.js +0 -188
- package/gmap/gmap.min.js +0 -1
- package/gmap/package.json +0 -6
package/captcha/captcha.cjs.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var React = require('react');
|
|
6
|
-
var hooks = require('primereact/hooks');
|
|
7
|
-
var utils = require('primereact/utils');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
-
|
|
29
|
-
function _extends() {
|
|
30
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i];
|
|
33
|
-
for (var key in source) {
|
|
34
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
-
target[key] = source[key];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return target;
|
|
40
|
-
};
|
|
41
|
-
return _extends.apply(this, arguments);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var Captcha = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
45
|
-
var elementRef = React__namespace.useRef(null);
|
|
46
|
-
var instance = React__namespace.useRef(null);
|
|
47
|
-
var recaptchaScript = React__namespace.useRef(null);
|
|
48
|
-
var isCaptchaLoaded = React__namespace.useRef(false);
|
|
49
|
-
var init = function init() {
|
|
50
|
-
instance.current = window.grecaptcha.render(elementRef.current, {
|
|
51
|
-
sitekey: props.siteKey,
|
|
52
|
-
theme: props.theme,
|
|
53
|
-
type: props.type,
|
|
54
|
-
size: props.size,
|
|
55
|
-
tabindex: props.tabIndex,
|
|
56
|
-
hl: props.language,
|
|
57
|
-
callback: recaptchaCallback,
|
|
58
|
-
'expired-callback': recaptchaExpiredCallback
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
var reset = function reset() {
|
|
62
|
-
!!instance.current && window.grecaptcha.reset(instance.current);
|
|
63
|
-
};
|
|
64
|
-
var getResponse = function getResponse() {
|
|
65
|
-
return !!instance.current ? window.grecaptcha.getResponse(instance.current) : null;
|
|
66
|
-
};
|
|
67
|
-
var recaptchaCallback = function recaptchaCallback(response) {
|
|
68
|
-
props.onResponse && props.onResponse({
|
|
69
|
-
response: response
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
var recaptchaExpiredCallback = function recaptchaExpiredCallback() {
|
|
73
|
-
props.onExpire && props.onExpire();
|
|
74
|
-
};
|
|
75
|
-
var addRecaptchaScript = function addRecaptchaScript() {
|
|
76
|
-
recaptchaScript.current = null;
|
|
77
|
-
if (!window.grecaptcha) {
|
|
78
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
79
|
-
var script = document.createElement('script');
|
|
80
|
-
script.src = props.sourceUrl;
|
|
81
|
-
script.async = true;
|
|
82
|
-
script.defer = true;
|
|
83
|
-
script.onload = function () {
|
|
84
|
-
if (!window.grecaptcha) {
|
|
85
|
-
// eslint-disable-next-line no-console
|
|
86
|
-
console.warn('Recaptcha is not loaded');
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
window.grecaptcha.ready(function () {
|
|
90
|
-
init();
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
recaptchaScript.current = script;
|
|
94
|
-
head.appendChild(recaptchaScript.current);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
hooks.useMountEffect(function () {
|
|
98
|
-
if (!isCaptchaLoaded.current) {
|
|
99
|
-
addRecaptchaScript();
|
|
100
|
-
if (window.grecaptcha) {
|
|
101
|
-
init();
|
|
102
|
-
}
|
|
103
|
-
isCaptchaLoaded.current = true;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
hooks.useUnmountEffect(function () {
|
|
107
|
-
if (recaptchaScript.current && recaptchaScript.current.parentNode) {
|
|
108
|
-
recaptchaScript.current.parentNode.removeChild(recaptchaScript.current);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
React__namespace.useImperativeHandle(ref, function () {
|
|
112
|
-
return {
|
|
113
|
-
props: props,
|
|
114
|
-
reset: reset,
|
|
115
|
-
getResponse: getResponse,
|
|
116
|
-
getElement: function getElement() {
|
|
117
|
-
return elementRef.current;
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
});
|
|
121
|
-
var otherProps = utils.ObjectUtils.findDiffKeys(props, Captcha.defaultProps);
|
|
122
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
123
|
-
ref: elementRef,
|
|
124
|
-
id: props.id
|
|
125
|
-
}, otherProps));
|
|
126
|
-
}));
|
|
127
|
-
Captcha.displayName = 'Captcha';
|
|
128
|
-
Captcha.defaultProps = {
|
|
129
|
-
__TYPE: 'Captcha',
|
|
130
|
-
id: null,
|
|
131
|
-
language: 'en',
|
|
132
|
-
onExpire: null,
|
|
133
|
-
onResponse: null,
|
|
134
|
-
siteKey: null,
|
|
135
|
-
size: 'normal',
|
|
136
|
-
sourceUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
|
|
137
|
-
tabIndex: 0,
|
|
138
|
-
theme: 'light',
|
|
139
|
-
type: 'image'
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
exports.Captcha = Captcha;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/hooks"),t=require("primereact/utils");function n(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var c=n(e);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(this,arguments)}var u=c.memo(c.forwardRef((function(e,n){var o=c.useRef(null),i=c.useRef(null),s=c.useRef(null),l=c.useRef(!1),p=function(){i.current=window.grecaptcha.render(o.current,{sitekey:e.siteKey,theme:e.theme,type:e.type,size:e.size,tabindex:e.tabIndex,hl:e.language,callback:h,"expired-callback":g})},f=function(){i.current&&window.grecaptcha.reset(i.current)},d=function(){return i.current?window.grecaptcha.getResponse(i.current):null},h=function(r){e.onResponse&&e.onResponse({response:r})},g=function(){e.onExpire&&e.onExpire()},m=function(){if(s.current=null,!window.grecaptcha){var r=document.head||document.getElementsByTagName("head")[0],t=document.createElement("script");t.src=e.sourceUrl,t.async=!0,t.defer=!0,t.onload=function(){window.grecaptcha?window.grecaptcha.ready((function(){p()})):console.warn("Recaptcha is not loaded")},s.current=t,r.appendChild(s.current)}};r.useMountEffect((function(){l.current||(m(),window.grecaptcha&&p(),l.current=!0)})),r.useUnmountEffect((function(){s.current&&s.current.parentNode&&s.current.parentNode.removeChild(s.current)})),c.useImperativeHandle(n,(function(){return{props:e,reset:f,getResponse:d,getElement:function(){return o.current}}}));var w=t.ObjectUtils.findDiffKeys(e,u.defaultProps);return c.createElement("div",a({ref:o,id:e.id},w))})));u.displayName="Captcha",u.defaultProps={__TYPE:"Captcha",id:null,language:"en",onExpire:null,onResponse:null,siteKey:null,size:"normal",sourceUrl:"https://www.google.com/recaptcha/api.js?render=explicit",tabIndex:0,theme:"light",type:"image"},exports.Captcha=u;
|
package/captcha/captcha.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* Captcha is a form validation component based on Recaptcha.
|
|
4
|
-
*
|
|
5
|
-
* [Live Demo](https://www.primefaces.org/primereact/captcha)
|
|
6
|
-
*
|
|
7
|
-
* @module captcha
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Defines valid properties in Captcha component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
14
|
-
* @group Properties
|
|
15
|
-
*/
|
|
16
|
-
export interface CaptchaProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
17
|
-
/**
|
|
18
|
-
* Used to get the child elements of the component.
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
children?: React.ReactNode | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Language of the widget.
|
|
24
|
-
* @defaultValue en
|
|
25
|
-
*/
|
|
26
|
-
language?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The callback function to be executed when the recaptcha response expires and the user needs to solve a new CAPTCHA.
|
|
29
|
-
*/
|
|
30
|
-
onExpire?(): void;
|
|
31
|
-
/**
|
|
32
|
-
* The callback function to be executed when the user submits a successful CAPTCHA response.
|
|
33
|
-
* @param {*} response - Current response
|
|
34
|
-
*/
|
|
35
|
-
onResponse?(response: any): void;
|
|
36
|
-
/**
|
|
37
|
-
* Public sitekey.
|
|
38
|
-
*/
|
|
39
|
-
siteKey?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* The size of the widget.
|
|
42
|
-
* @defaultValue normal
|
|
43
|
-
*/
|
|
44
|
-
size?: string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Source URL of the Captcha as some countries do not allow Google access.
|
|
47
|
-
* @defaultValue https://www.google.com/recaptcha/api.js?render=explicit
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
sourceUrl?: string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* The color scheme of the widget.
|
|
53
|
-
* @defaultValue light
|
|
54
|
-
*/
|
|
55
|
-
theme?: string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* The type of CAPTCHA to serve.
|
|
58
|
-
* @defaultValue image
|
|
59
|
-
*/
|
|
60
|
-
type?: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* **PrimeReact - Captcha**
|
|
65
|
-
*
|
|
66
|
-
* _Captcha is a form validation component based on Recaptcha._
|
|
67
|
-
*
|
|
68
|
-
* [Live Demo](https://www.primefaces.org/primereact/captcha/)
|
|
69
|
-
* --- ---
|
|
70
|
-
* 
|
|
71
|
-
*
|
|
72
|
-
* @group Component
|
|
73
|
-
*/
|
|
74
|
-
export declare class Captcha extends React.Component<CaptchaProps, any> {
|
|
75
|
-
/**
|
|
76
|
-
* Resets the reCAPTCHA widget.
|
|
77
|
-
*/
|
|
78
|
-
public reset(): void;
|
|
79
|
-
/**
|
|
80
|
-
* Gets the response for the reCAPTCHA widget.
|
|
81
|
-
*/
|
|
82
|
-
public getResponse(): any;
|
|
83
|
-
/**
|
|
84
|
-
* Used to get container element.
|
|
85
|
-
* @return {HTMLDivElement} Container element
|
|
86
|
-
*/
|
|
87
|
-
public getElement(): HTMLDivElement;
|
|
88
|
-
}
|
package/captcha/captcha.esm.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useMountEffect, useUnmountEffect } from 'primereact/hooks';
|
|
3
|
-
import { ObjectUtils } from 'primereact/utils';
|
|
4
|
-
|
|
5
|
-
function _extends() {
|
|
6
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
7
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
-
var source = arguments[i];
|
|
9
|
-
for (var key in source) {
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
11
|
-
target[key] = source[key];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return target;
|
|
16
|
-
};
|
|
17
|
-
return _extends.apply(this, arguments);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
var Captcha = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
21
|
-
var elementRef = React.useRef(null);
|
|
22
|
-
var instance = React.useRef(null);
|
|
23
|
-
var recaptchaScript = React.useRef(null);
|
|
24
|
-
var isCaptchaLoaded = React.useRef(false);
|
|
25
|
-
var init = function init() {
|
|
26
|
-
instance.current = window.grecaptcha.render(elementRef.current, {
|
|
27
|
-
sitekey: props.siteKey,
|
|
28
|
-
theme: props.theme,
|
|
29
|
-
type: props.type,
|
|
30
|
-
size: props.size,
|
|
31
|
-
tabindex: props.tabIndex,
|
|
32
|
-
hl: props.language,
|
|
33
|
-
callback: recaptchaCallback,
|
|
34
|
-
'expired-callback': recaptchaExpiredCallback
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
var reset = function reset() {
|
|
38
|
-
!!instance.current && window.grecaptcha.reset(instance.current);
|
|
39
|
-
};
|
|
40
|
-
var getResponse = function getResponse() {
|
|
41
|
-
return !!instance.current ? window.grecaptcha.getResponse(instance.current) : null;
|
|
42
|
-
};
|
|
43
|
-
var recaptchaCallback = function recaptchaCallback(response) {
|
|
44
|
-
props.onResponse && props.onResponse({
|
|
45
|
-
response: response
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var recaptchaExpiredCallback = function recaptchaExpiredCallback() {
|
|
49
|
-
props.onExpire && props.onExpire();
|
|
50
|
-
};
|
|
51
|
-
var addRecaptchaScript = function addRecaptchaScript() {
|
|
52
|
-
recaptchaScript.current = null;
|
|
53
|
-
if (!window.grecaptcha) {
|
|
54
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
55
|
-
var script = document.createElement('script');
|
|
56
|
-
script.src = props.sourceUrl;
|
|
57
|
-
script.async = true;
|
|
58
|
-
script.defer = true;
|
|
59
|
-
script.onload = function () {
|
|
60
|
-
if (!window.grecaptcha) {
|
|
61
|
-
// eslint-disable-next-line no-console
|
|
62
|
-
console.warn('Recaptcha is not loaded');
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
window.grecaptcha.ready(function () {
|
|
66
|
-
init();
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
recaptchaScript.current = script;
|
|
70
|
-
head.appendChild(recaptchaScript.current);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
useMountEffect(function () {
|
|
74
|
-
if (!isCaptchaLoaded.current) {
|
|
75
|
-
addRecaptchaScript();
|
|
76
|
-
if (window.grecaptcha) {
|
|
77
|
-
init();
|
|
78
|
-
}
|
|
79
|
-
isCaptchaLoaded.current = true;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
useUnmountEffect(function () {
|
|
83
|
-
if (recaptchaScript.current && recaptchaScript.current.parentNode) {
|
|
84
|
-
recaptchaScript.current.parentNode.removeChild(recaptchaScript.current);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
React.useImperativeHandle(ref, function () {
|
|
88
|
-
return {
|
|
89
|
-
props: props,
|
|
90
|
-
reset: reset,
|
|
91
|
-
getResponse: getResponse,
|
|
92
|
-
getElement: function getElement() {
|
|
93
|
-
return elementRef.current;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
var otherProps = ObjectUtils.findDiffKeys(props, Captcha.defaultProps);
|
|
98
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
99
|
-
ref: elementRef,
|
|
100
|
-
id: props.id
|
|
101
|
-
}, otherProps));
|
|
102
|
-
}));
|
|
103
|
-
Captcha.displayName = 'Captcha';
|
|
104
|
-
Captcha.defaultProps = {
|
|
105
|
-
__TYPE: 'Captcha',
|
|
106
|
-
id: null,
|
|
107
|
-
language: 'en',
|
|
108
|
-
onExpire: null,
|
|
109
|
-
onResponse: null,
|
|
110
|
-
siteKey: null,
|
|
111
|
-
size: 'normal',
|
|
112
|
-
sourceUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
|
|
113
|
-
tabIndex: 0,
|
|
114
|
-
theme: 'light',
|
|
115
|
-
type: 'image'
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export { Captcha };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{useMountEffect as n,useUnmountEffect as r}from"primereact/hooks";import{ObjectUtils as t}from"primereact/utils";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},c.apply(this,arguments)}var a=e.memo(e.forwardRef((function(o,i){var u=e.useRef(null),l=e.useRef(null),p=e.useRef(null),s=e.useRef(!1),d=function(){l.current=window.grecaptcha.render(u.current,{sitekey:o.siteKey,theme:o.theme,type:o.type,size:o.size,tabindex:o.tabIndex,hl:o.language,callback:h,"expired-callback":g})},f=function(){l.current&&window.grecaptcha.reset(l.current)},m=function(){return l.current?window.grecaptcha.getResponse(l.current):null},h=function(e){o.onResponse&&o.onResponse({response:e})},g=function(){o.onExpire&&o.onExpire()},w=function(){if(p.current=null,!window.grecaptcha){var e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("script");n.src=o.sourceUrl,n.async=!0,n.defer=!0,n.onload=function(){window.grecaptcha?window.grecaptcha.ready((function(){d()})):console.warn("Recaptcha is not loaded")},p.current=n,e.appendChild(p.current)}};n((function(){s.current||(w(),window.grecaptcha&&d(),s.current=!0)})),r((function(){p.current&&p.current.parentNode&&p.current.parentNode.removeChild(p.current)})),e.useImperativeHandle(i,(function(){return{props:o,reset:f,getResponse:m,getElement:function(){return u.current}}}));var y=t.findDiffKeys(o,a.defaultProps);return e.createElement("div",c({ref:u,id:o.id},y))})));a.displayName="Captcha",a.defaultProps={__TYPE:"Captcha",id:null,language:"en",onExpire:null,onResponse:null,siteKey:null,size:"normal",sourceUrl:"https://www.google.com/recaptcha/api.js?render=explicit",tabIndex:0,theme:"light",type:"image"};export{a as Captcha};
|
package/captcha/captcha.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.captcha = (function (exports, React, hooks, utils) {
|
|
3
|
-
'use strict';
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n["default"] = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
|
-
|
|
25
|
-
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
28
|
-
var source = arguments[i];
|
|
29
|
-
for (var key in source) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var Captcha = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
41
|
-
var elementRef = React__namespace.useRef(null);
|
|
42
|
-
var instance = React__namespace.useRef(null);
|
|
43
|
-
var recaptchaScript = React__namespace.useRef(null);
|
|
44
|
-
var isCaptchaLoaded = React__namespace.useRef(false);
|
|
45
|
-
var init = function init() {
|
|
46
|
-
instance.current = window.grecaptcha.render(elementRef.current, {
|
|
47
|
-
sitekey: props.siteKey,
|
|
48
|
-
theme: props.theme,
|
|
49
|
-
type: props.type,
|
|
50
|
-
size: props.size,
|
|
51
|
-
tabindex: props.tabIndex,
|
|
52
|
-
hl: props.language,
|
|
53
|
-
callback: recaptchaCallback,
|
|
54
|
-
'expired-callback': recaptchaExpiredCallback
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
var reset = function reset() {
|
|
58
|
-
!!instance.current && window.grecaptcha.reset(instance.current);
|
|
59
|
-
};
|
|
60
|
-
var getResponse = function getResponse() {
|
|
61
|
-
return !!instance.current ? window.grecaptcha.getResponse(instance.current) : null;
|
|
62
|
-
};
|
|
63
|
-
var recaptchaCallback = function recaptchaCallback(response) {
|
|
64
|
-
props.onResponse && props.onResponse({
|
|
65
|
-
response: response
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
var recaptchaExpiredCallback = function recaptchaExpiredCallback() {
|
|
69
|
-
props.onExpire && props.onExpire();
|
|
70
|
-
};
|
|
71
|
-
var addRecaptchaScript = function addRecaptchaScript() {
|
|
72
|
-
recaptchaScript.current = null;
|
|
73
|
-
if (!window.grecaptcha) {
|
|
74
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
75
|
-
var script = document.createElement('script');
|
|
76
|
-
script.src = props.sourceUrl;
|
|
77
|
-
script.async = true;
|
|
78
|
-
script.defer = true;
|
|
79
|
-
script.onload = function () {
|
|
80
|
-
if (!window.grecaptcha) {
|
|
81
|
-
// eslint-disable-next-line no-console
|
|
82
|
-
console.warn('Recaptcha is not loaded');
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
window.grecaptcha.ready(function () {
|
|
86
|
-
init();
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
recaptchaScript.current = script;
|
|
90
|
-
head.appendChild(recaptchaScript.current);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
hooks.useMountEffect(function () {
|
|
94
|
-
if (!isCaptchaLoaded.current) {
|
|
95
|
-
addRecaptchaScript();
|
|
96
|
-
if (window.grecaptcha) {
|
|
97
|
-
init();
|
|
98
|
-
}
|
|
99
|
-
isCaptchaLoaded.current = true;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
hooks.useUnmountEffect(function () {
|
|
103
|
-
if (recaptchaScript.current && recaptchaScript.current.parentNode) {
|
|
104
|
-
recaptchaScript.current.parentNode.removeChild(recaptchaScript.current);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
React__namespace.useImperativeHandle(ref, function () {
|
|
108
|
-
return {
|
|
109
|
-
props: props,
|
|
110
|
-
reset: reset,
|
|
111
|
-
getResponse: getResponse,
|
|
112
|
-
getElement: function getElement() {
|
|
113
|
-
return elementRef.current;
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
});
|
|
117
|
-
var otherProps = utils.ObjectUtils.findDiffKeys(props, Captcha.defaultProps);
|
|
118
|
-
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
119
|
-
ref: elementRef,
|
|
120
|
-
id: props.id
|
|
121
|
-
}, otherProps));
|
|
122
|
-
}));
|
|
123
|
-
Captcha.displayName = 'Captcha';
|
|
124
|
-
Captcha.defaultProps = {
|
|
125
|
-
__TYPE: 'Captcha',
|
|
126
|
-
id: null,
|
|
127
|
-
language: 'en',
|
|
128
|
-
onExpire: null,
|
|
129
|
-
onResponse: null,
|
|
130
|
-
siteKey: null,
|
|
131
|
-
size: 'normal',
|
|
132
|
-
sourceUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
|
|
133
|
-
tabIndex: 0,
|
|
134
|
-
theme: 'light',
|
|
135
|
-
type: 'image'
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
exports.Captcha = Captcha;
|
|
139
|
-
|
|
140
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
141
|
-
|
|
142
|
-
return exports;
|
|
143
|
-
|
|
144
|
-
})({}, React, primereact.hooks, primereact.utils);
|
package/captcha/captcha.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.captcha=function(e,t,n,r){"use strict";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 a=c(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 o=a.memo(a.forwardRef((function(e,t){var c=a.useRef(null),i=a.useRef(null),s=a.useRef(null),l=a.useRef(!1),p=function(){i.current=window.grecaptcha.render(c.current,{sitekey:e.siteKey,theme:e.theme,type:e.type,size:e.size,tabindex:e.tabIndex,hl:e.language,callback:h,"expired-callback":g})},f=function(){i.current&&window.grecaptcha.reset(i.current)},d=function(){return i.current?window.grecaptcha.getResponse(i.current):null},h=function(t){e.onResponse&&e.onResponse({response:t})},g=function(){e.onExpire&&e.onExpire()},m=function(){if(s.current=null,!window.grecaptcha){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("script");n.src=e.sourceUrl,n.async=!0,n.defer=!0,n.onload=function(){window.grecaptcha?window.grecaptcha.ready((function(){p()})):console.warn("Recaptcha is not loaded")},s.current=n,t.appendChild(s.current)}};n.useMountEffect((function(){l.current||(m(),window.grecaptcha&&p(),l.current=!0)})),n.useUnmountEffect((function(){s.current&&s.current.parentNode&&s.current.parentNode.removeChild(s.current)})),a.useImperativeHandle(t,(function(){return{props:e,reset:f,getResponse:d,getElement:function(){return c.current}}}));var w=r.ObjectUtils.findDiffKeys(e,o.defaultProps);return a.createElement("div",u({ref:c,id:e.id},w))})));return o.displayName="Captcha",o.defaultProps={__TYPE:"Captcha",id:null,language:"en",onExpire:null,onResponse:null,siteKey:null,size:"normal",sourceUrl:"https://www.google.com/recaptcha/api.js?render=explicit",tabIndex:0,theme:"light",type:"image"},e.Captcha=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils);
|