primereact 8.7.3 → 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 +168 -25
- 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 +22 -20
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +11 -3
- package/api/api.esm.js +22 -20
- package/api/api.esm.min.js +1 -1
- package/api/api.js +22 -20
- package/api/api.min.js +1 -1
- package/api/package.json +2 -1
- package/autocomplete/autocomplete.cjs.js +98 -76
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +385 -80
- package/autocomplete/autocomplete.esm.js +99 -77
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +98 -76
- 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 +77 -15
- 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 +33 -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 +48 -8
- 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 +71 -10
- 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 +41 -3
- 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.d.ts +67 -15
- 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 +120 -100
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +585 -112
- package/calendar/calendar.esm.js +121 -101
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +120 -100
- 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 +45 -7
- 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 +138 -22
- 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 +53 -40
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +177 -29
- package/cascadeselect/cascadeselect.esm.js +54 -41
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +53 -40
- 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 +88 -10
- 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 +43 -32
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +137 -33
- package/checkbox/checkbox.esm.js +43 -32
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +43 -32
- 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 +75 -7
- 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 +55 -45
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +188 -36
- package/chips/chips.esm.js +55 -45
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +55 -45
- package/chips/chips.min.js +1 -1
- package/chips/package.json +2 -1
- package/colorpicker/colorpicker.cjs.js +45 -33
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +148 -31
- package/colorpicker/colorpicker.esm.js +46 -34
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +45 -33
- 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 +736 -134
- 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 +30 -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 +142 -18
- 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 +44 -34
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +165 -22
- package/confirmpopup/confirmpopup.esm.js +45 -35
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +44 -34
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/package.json +2 -1
- package/contextmenu/contextmenu.cjs.js +33 -23
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +80 -12
- package/contextmenu/contextmenu.esm.js +34 -24
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +33 -23
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/package.json +2 -1
- package/core/core.js +1745 -1085
- 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 +31 -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 +102 -16
- 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 +387 -233
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1270 -227
- package/datatable/datatable.esm.js +388 -234
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +388 -234
- 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 +222 -43
- 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 +37 -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 +76 -75
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +282 -51
- package/dialog/dialog.esm.js +77 -76
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +76 -75
- package/dialog/dialog.min.css +1 -1
- 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 +47 -10
- 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 +68 -12
- 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 +103 -80
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +337 -83
- package/dropdown/dropdown.esm.js +104 -81
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +103 -80
- 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 +129 -12
- 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 +85 -7
- 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 +87 -76
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +425 -62
- package/fileupload/fileupload.esm.js +87 -76
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +87 -76
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/package.json +2 -1
- package/galleria/galleria.cjs.js +51 -42
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +198 -30
- package/galleria/galleria.esm.js +52 -43
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +51 -42
- package/galleria/galleria.min.js +1 -1
- package/galleria/package.json +2 -1
- package/hooks/hooks.cjs.js +578 -148
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +194 -6
- package/hooks/hooks.esm.js +558 -135
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +869 -439
- 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 +91 -11
- 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 +101 -9
- 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 +50 -46
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +119 -27
- package/inputmask/inputmask.esm.js +51 -47
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +50 -46
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/package.json +2 -1
- package/inputnumber/inputnumber.cjs.js +78 -93
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +265 -57
- package/inputnumber/inputnumber.esm.js +78 -93
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +78 -93
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/package.json +2 -1
- package/inputswitch/inputswitch.cjs.js +38 -28
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +118 -27
- package/inputswitch/inputswitch.esm.js +38 -28
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +38 -28
- 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 +57 -6
- 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 +52 -6
- 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/keyfilteroptions.d.ts +15 -0
- 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 +127 -20
- 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 +56 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +270 -48
- package/listbox/listbox.esm.js +56 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +56 -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 +50 -11
- 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 +74 -53
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +186 -32
- package/mention/mention.esm.js +74 -53
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +74 -53
- package/mention/mention.min.js +1 -1
- package/mention/package.json +2 -1
- package/menu/menu.cjs.js +32 -23
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +89 -12
- package/menu/menu.esm.js +33 -24
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +32 -23
- 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 +53 -8
- 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/menuitem.d.ts +114 -19
- 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 +50 -11
- 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 +91 -11
- 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 +127 -100
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +429 -82
- package/multiselect/multiselect.esm.js +127 -100
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +127 -100
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/package.json +2 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +42 -28
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +161 -22
- package/multistatecheckbox/multistatecheckbox.esm.js +42 -28
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +42 -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 +113 -16
- 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 +107 -16
- 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 +33 -23
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +89 -15
- package/overlaypanel/overlaypanel.esm.js +34 -24
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +33 -23
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlaypanel/package.json +2 -1
- package/overlayservice/overlayservice.d.ts +52 -7
- 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 +409 -44
- 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 +141 -15
- 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 +47 -5
- 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 +53 -40
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +176 -36
- package/password/password.esm.js +53 -40
- package/password/password.esm.min.js +1 -1
- package/password/password.js +53 -40
- package/password/password.min.css +1 -1
- 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 +272 -46
- 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 +4739 -3228
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4733 -3227
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4739 -3228
- 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 +60 -11
- 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 +47 -4
- 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 +37 -26
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +99 -29
- package/radiobutton/radiobutton.esm.js +37 -26
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +37 -26
- 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 +101 -24
- 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 +517 -506
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +7 -9
- package/resources/themes/arya-green/theme.css +6 -10
- package/resources/themes/arya-orange/theme.css +6 -9
- package/resources/themes/arya-purple/theme.css +6 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +7 -10
- package/resources/themes/bootstrap4-dark-purple/theme.css +7 -10
- package/resources/themes/bootstrap4-light-blue/theme.css +7 -10
- package/resources/themes/bootstrap4-light-purple/theme.css +7 -11
- package/resources/themes/fluent-light/theme.css +7 -11
- package/resources/themes/lara-dark-blue/theme.css +6 -9
- package/resources/themes/lara-dark-indigo/theme.css +6 -10
- package/resources/themes/lara-dark-purple/theme.css +6 -9
- package/resources/themes/lara-dark-teal/theme.css +6 -10
- package/resources/themes/lara-light-blue/theme.css +6 -9
- package/resources/themes/lara-light-indigo/theme.css +6 -9
- package/resources/themes/lara-light-purple/theme.css +6 -9
- package/resources/themes/lara-light-teal/theme.css +6 -9
- package/resources/themes/luna-amber/theme.css +8 -10
- package/resources/themes/luna-blue/theme.css +7 -10
- package/resources/themes/luna-green/theme.css +8 -10
- package/resources/themes/luna-pink/theme.css +7 -10
- package/resources/themes/md-dark-deeppurple/theme.css +7 -10
- package/resources/themes/md-dark-indigo/theme.css +8 -10
- package/resources/themes/md-light-deeppurple/theme.css +8 -10
- package/resources/themes/md-light-indigo/theme.css +8 -10
- package/resources/themes/mdc-dark-deeppurple/theme.css +8 -10
- package/resources/themes/mdc-dark-indigo/theme.css +7 -10
- package/resources/themes/mdc-light-deeppurple/theme.css +8 -10
- package/resources/themes/mdc-light-indigo/theme.css +7 -10
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6239 -0
- package/resources/themes/nano/theme.css +6011 -0
- package/resources/themes/nova/theme.css +7 -10
- package/resources/themes/nova-accent/theme.css +8 -10
- package/resources/themes/nova-alt/theme.css +7 -10
- package/resources/themes/rhea/theme.css +8 -10
- package/resources/themes/saga-blue/theme.css +7 -10
- package/resources/themes/saga-green/theme.css +8 -10
- package/resources/themes/saga-orange/theme.css +8 -10
- package/resources/themes/saga-purple/theme.css +8 -10
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +6004 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +6058 -0
- package/resources/themes/vela-blue/theme.css +7 -10
- package/resources/themes/vela-green/theme.css +7 -10
- package/resources/themes/vela-orange/theme.css +7 -10
- package/resources/themes/vela-purple/theme.css +8 -10
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6166 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6166 -0
- 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 +29 -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 +37 -3
- 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 +45 -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 +70 -10
- 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 +38 -28
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +111 -32
- package/selectbutton/selectbutton.esm.js +39 -29
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +38 -28
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/package.json +2 -1
- package/selectitem/selectitem.d.ts +34 -0
- package/sidebar/package.json +2 -1
- package/sidebar/sidebar.cjs.js +51 -32
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +120 -22
- package/sidebar/sidebar.esm.js +52 -33
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +51 -32
- 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 +61 -11
- 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 +132 -18
- 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 +101 -18
- 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 +149 -20
- 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 +46 -38
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +131 -23
- package/splitbutton/splitbutton.esm.js +47 -39
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +46 -38
- 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 +98 -12
- 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 +67 -6
- 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 +77 -12
- 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 +62 -5
- 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 +80 -58
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +213 -27
- package/tabview/tabview.esm.js +81 -59
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +80 -58
- 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 +50 -6
- 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 +26 -16
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +45 -3
- package/terminal/terminal.esm.js +27 -17
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +26 -16
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/package.json +2 -1
- package/terminalservice/terminalservice.d.ts +42 -4
- package/tieredmenu/package.json +2 -1
- package/tieredmenu/tieredmenu.cjs.js +32 -23
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +77 -12
- package/tieredmenu/tieredmenu.esm.js +33 -24
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +32 -23
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/package.json +2 -1
- package/timeline/timeline.cjs.js +25 -18
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +62 -13
- package/timeline/timeline.esm.js +25 -18
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +25 -18
- package/timeline/timeline.min.js +1 -1
- package/toast/package.json +2 -1
- package/toast/toast.cjs.js +38 -26
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +134 -27
- package/toast/toast.esm.js +40 -28
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +38 -26
- package/toast/toast.min.js +1 -1
- package/togglebutton/package.json +2 -1
- package/togglebutton/togglebutton.cjs.js +35 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +122 -15
- package/togglebutton/togglebutton.esm.js +36 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +35 -21
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/package.json +2 -1
- package/toolbar/toolbar.cjs.js +33 -16
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +55 -5
- package/toolbar/toolbar.esm.js +33 -16
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +33 -16
- package/toolbar/toolbar.min.css +1 -1
- 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 +73 -9
- 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 +350 -31
- 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 +435 -71
- 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/treenode/treenode.d.ts +62 -13
- package/treeselect/package.json +2 -1
- package/treeselect/treeselect.cjs.js +69 -56
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +326 -77
- package/treeselect/treeselect.esm.js +70 -57
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +69 -56
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/package.json +2 -1
- package/treetable/treetable.cjs.js +290 -152
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +558 -112
- package/treetable/treetable.esm.js +291 -153
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +291 -153
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/package.json +2 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +31 -21
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +72 -20
- package/tristatecheckbox/tristatecheckbox.esm.js +31 -21
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +31 -21
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +24 -0
- package/utils/package.json +2 -1
- package/utils/utils.cjs.js +84 -37
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +15 -1
- package/utils/utils.esm.js +84 -37
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +84 -37
- 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 +351 -59
- 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 +30 -6
- package/captcha/captcha.cjs.js +0 -141
- package/captcha/captcha.cjs.min.js +0 -1
- package/captcha/captcha.d.ts +0 -18
- package/captcha/captcha.esm.js +0 -117
- package/captcha/captcha.esm.min.js +0 -1
- package/captcha/captcha.js +0 -143
- 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 -26
- 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
|
@@ -59,9 +59,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
59
59
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
60
60
|
if (Object(_i) !== _i) return;
|
|
61
61
|
_n = !1;
|
|
62
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
63
|
-
;
|
|
64
|
-
}
|
|
62
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
65
63
|
} catch (err) {
|
|
66
64
|
_d = !0, _e = err;
|
|
67
65
|
} finally {
|
|
@@ -77,9 +75,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
77
75
|
|
|
78
76
|
function _arrayLikeToArray(arr, len) {
|
|
79
77
|
if (len == null || len > arr.length) len = arr.length;
|
|
80
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
81
|
-
arr2[i] = arr[i];
|
|
82
|
-
}
|
|
78
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
83
79
|
return arr2;
|
|
84
80
|
}
|
|
85
81
|
|
|
@@ -100,7 +96,35 @@ function _slicedToArray(arr, i) {
|
|
|
100
96
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
101
97
|
}
|
|
102
98
|
|
|
103
|
-
var
|
|
99
|
+
var RadioButtonBase = {
|
|
100
|
+
defaultProps: {
|
|
101
|
+
__TYPE: 'RadioButton',
|
|
102
|
+
id: null,
|
|
103
|
+
inputRef: null,
|
|
104
|
+
inputId: null,
|
|
105
|
+
name: null,
|
|
106
|
+
value: null,
|
|
107
|
+
checked: false,
|
|
108
|
+
style: null,
|
|
109
|
+
className: null,
|
|
110
|
+
disabled: false,
|
|
111
|
+
required: false,
|
|
112
|
+
tabIndex: null,
|
|
113
|
+
tooltip: null,
|
|
114
|
+
tooltipOptions: null,
|
|
115
|
+
onChange: null,
|
|
116
|
+
children: undefined
|
|
117
|
+
},
|
|
118
|
+
getProps: function getProps(props) {
|
|
119
|
+
return utils.ObjectUtils.getMergedProps(props, RadioButtonBase.defaultProps);
|
|
120
|
+
},
|
|
121
|
+
getOtherProps: function getOtherProps(props) {
|
|
122
|
+
return utils.ObjectUtils.getDiffProps(props, RadioButtonBase.defaultProps);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
127
|
+
var props = RadioButtonBase.getProps(inProps);
|
|
104
128
|
var _React$useState = React__namespace.useState(false),
|
|
105
129
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
106
130
|
focusedState = _React$useState2[0],
|
|
@@ -148,7 +172,8 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
148
172
|
setFocusedState(false);
|
|
149
173
|
};
|
|
150
174
|
var onKeyDown = function onKeyDown(event) {
|
|
151
|
-
if (event.code === 'Space') {
|
|
175
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
176
|
+
// event.key is for Android support
|
|
152
177
|
onClick(event);
|
|
153
178
|
}
|
|
154
179
|
};
|
|
@@ -164,6 +189,9 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
164
189
|
return {
|
|
165
190
|
props: props,
|
|
166
191
|
select: select,
|
|
192
|
+
focus: function focus() {
|
|
193
|
+
return utils.DomHandler.focus(inputRef.current);
|
|
194
|
+
},
|
|
167
195
|
getElement: function getElement() {
|
|
168
196
|
return elementRef.current;
|
|
169
197
|
},
|
|
@@ -173,7 +201,7 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
173
201
|
};
|
|
174
202
|
});
|
|
175
203
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
176
|
-
var otherProps =
|
|
204
|
+
var otherProps = RadioButtonBase.getOtherProps(props);
|
|
177
205
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
178
206
|
var className = utils.classNames('p-radiobutton p-component', {
|
|
179
207
|
'p-radiobutton-checked': props.checked,
|
|
@@ -216,22 +244,5 @@ var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namesp
|
|
|
216
244
|
}, props.tooltipOptions)));
|
|
217
245
|
}));
|
|
218
246
|
RadioButton.displayName = 'RadioButton';
|
|
219
|
-
RadioButton.defaultProps = {
|
|
220
|
-
__TYPE: 'RadioButton',
|
|
221
|
-
id: null,
|
|
222
|
-
inputRef: null,
|
|
223
|
-
inputId: null,
|
|
224
|
-
name: null,
|
|
225
|
-
value: null,
|
|
226
|
-
checked: false,
|
|
227
|
-
style: null,
|
|
228
|
-
className: null,
|
|
229
|
-
disabled: false,
|
|
230
|
-
required: false,
|
|
231
|
-
tabIndex: null,
|
|
232
|
-
tooltip: null,
|
|
233
|
-
tooltipOptions: null,
|
|
234
|
-
onChange: null
|
|
235
|
-
};
|
|
236
247
|
|
|
237
248
|
exports.RadioButton = RadioButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/tooltip"),n=require("primereact/utils");function r(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
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/tooltip"),n=require("primereact/utils");function r(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 o=r(e);function a(){return a=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},a.apply(this,arguments)}function i(e){if(Array.isArray(e))return e}function u(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(){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 d={defaultProps:{__TYPE:"RadioButton",id:null,inputRef:null,inputId:null,name:null,value:null,checked:!1,style:null,className:null,disabled:!1,required:!1,tabIndex:null,tooltip:null,tooltipOptions:null,onChange:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,d.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,d.defaultProps)}},f=o.memo(o.forwardRef((function(e,r){var c,f,p=d.getProps(e),b=o.useState(!1),m=(f=2,i(c=b)||u(c,f)||l(c,f)||s()),h=m[0],v=m[1],g=o.useRef(null),y=o.useRef(p.inputRef),O=function(e){j(e)},j=function(e){if(!p.disabled&&p.onChange){var t=p.checked,r=e.target instanceof HTMLDivElement,o=e.target===y.current&&e.target.checked!==t,a=r&&n.DomHandler.hasClass(g.current,"p-radiobutton-checked")===t&&!t;if(o||a){var i=!t;p.onChange({originalEvent:e,value:p.value,checked:i,stopPropagation:function(){},preventDefault:function(){},target:{type:"radio",name:p.name,id:p.id,value:p.value,checked:i}}),a&&(y.current.checked=i)}n.DomHandler.focus(y.current),e.preventDefault()}};o.useEffect((function(){y.current&&(y.current.checked=p.checked)}),[p.checked]),o.useEffect((function(){n.ObjectUtils.combinedRefs(y,p.inputRef)}),[y,p.inputRef]),o.useImperativeHandle(r,(function(){return{props:p,select:O,focus:function(){return n.DomHandler.focus(y.current)},getElement:function(){return g.current},getInput:function(){return y.current}}}));var k=n.ObjectUtils.isNotEmpty(p.tooltip),P=d.getOtherProps(p),E=n.ObjectUtils.reduceKeys(P,n.DomHandler.ARIA_PROPS),R=n.classNames("p-radiobutton p-component",{"p-radiobutton-checked":p.checked,"p-radiobutton-disabled":p.disabled,"p-radiobutton-focused":h},p.className),I=n.classNames("p-radiobutton-box",{"p-highlight":p.checked,"p-disabled":p.disabled,"p-focus":h});return o.createElement(o.Fragment,null,o.createElement("div",a({ref:g,id:p.id,className:R,style:p.style},P,{onClick:j}),o.createElement("div",{className:"p-hidden-accessible"},o.createElement("input",a({ref:y,id:p.inputId,type:"radio",name:p.name,defaultChecked:p.checked,onFocus:function(){v(!0)},onBlur:function(){v(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||j(e)},disabled:p.disabled,required:p.required,tabIndex:p.tabIndex},E))),o.createElement("div",{className:I},o.createElement("div",{className:"p-radiobutton-icon"}))),k&&o.createElement(t.Tooltip,a({target:g,content:p.tooltip},p.tooltipOptions)))})));f.displayName="RadioButton",exports.RadioButton=f;
|
|
@@ -1,39 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* RadioButton is an extension to standard radio button element with theming.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/radiobutton/)
|
|
6
|
+
*
|
|
7
|
+
* @module radiobutton
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
|
-
import TooltipOptions from '../tooltip/tooltipoptions';
|
|
11
|
+
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
12
|
+
import { FormEvent } from '../ts-helpers';
|
|
3
13
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface RadioButtonChangeParams {
|
|
13
|
-
originalEvent: React.SyntheticEvent;
|
|
14
|
-
value: any;
|
|
15
|
-
checked: boolean;
|
|
16
|
-
stopPropagation(): void;
|
|
17
|
-
preventDefault(): void;
|
|
18
|
-
target: RadioButtonChangeTargetOptions;
|
|
19
|
-
}
|
|
14
|
+
/**
|
|
15
|
+
* Custom change event.
|
|
16
|
+
* @see {@link RadioButtonProps.onChange}
|
|
17
|
+
* @extends {FormEvent}
|
|
18
|
+
* @event
|
|
19
|
+
*/
|
|
20
|
+
interface RadioButtonChangeEvent extends FormEvent {}
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Defines valid properties in RadioButton component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
24
|
+
* @group Properties
|
|
25
|
+
*/
|
|
21
26
|
export interface RadioButtonProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Reference of the input element.
|
|
29
|
+
*/
|
|
30
|
+
inputRef?: React.Ref<HTMLInputElement> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier of the inner native radiobutton.
|
|
33
|
+
*/
|
|
34
|
+
inputId?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Name of the checkbox element.
|
|
37
|
+
*/
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Value of the checkbox.
|
|
41
|
+
*/
|
|
42
|
+
value?: any | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies whether a checkbox should be checked or not.
|
|
45
|
+
* @defaultValue false
|
|
46
|
+
*/
|
|
47
|
+
checked?: boolean | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* When present, it specifies that the element value cannot be altered.
|
|
50
|
+
* @defaultValue false
|
|
51
|
+
*/
|
|
52
|
+
disabled?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* When present, it specifies that an input field must be filled out before submitting the form.
|
|
55
|
+
* @defaultValue false
|
|
56
|
+
*/
|
|
57
|
+
required?: boolean | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Content of the tooltip.
|
|
60
|
+
*/
|
|
61
|
+
tooltip?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Configuration of the tooltip, refer to the tooltip documentation for more information.
|
|
64
|
+
*/
|
|
65
|
+
tooltipOptions?: TooltipOptions | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Callback to invoke on value change
|
|
68
|
+
* @param {RadioButtonChangeEvent} event - Custom change event.
|
|
69
|
+
*/
|
|
70
|
+
onChange?(event: RadioButtonChangeEvent): void;
|
|
71
|
+
/**
|
|
72
|
+
* Used to get the child elements of the component.
|
|
73
|
+
* @readonly
|
|
74
|
+
*/
|
|
75
|
+
children?: React.ReactNode | undefined;
|
|
33
76
|
}
|
|
34
77
|
|
|
78
|
+
/**
|
|
79
|
+
* **PrimeReact - RadioButton**
|
|
80
|
+
*
|
|
81
|
+
* _RadioButton is an extension to standard radio button element with theming._
|
|
82
|
+
*
|
|
83
|
+
* [Live Demo](https://www.primefaces.org/primereact/radiobutton/)
|
|
84
|
+
* --- ---
|
|
85
|
+
* 
|
|
86
|
+
*
|
|
87
|
+
* @group Component
|
|
88
|
+
*/
|
|
35
89
|
export declare class RadioButton extends React.Component<RadioButtonProps, any> {
|
|
36
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Used to focus the component.
|
|
92
|
+
*/
|
|
93
|
+
public focus(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Used to select a button
|
|
96
|
+
* @param {React.SyntheticEvent} event - Browser event
|
|
97
|
+
*/
|
|
98
|
+
public select(event?: React.SyntheticEvent): void;
|
|
99
|
+
/**
|
|
100
|
+
* Used to get container element.
|
|
101
|
+
* @return {HTMLDivElement} Container element
|
|
102
|
+
*/
|
|
37
103
|
public getElement(): HTMLDivElement;
|
|
104
|
+
/**
|
|
105
|
+
* Used to get input element.
|
|
106
|
+
* @return {HTMLInputElement} Input element
|
|
107
|
+
*/
|
|
38
108
|
public getInput(): HTMLInputElement;
|
|
39
109
|
}
|
|
@@ -35,9 +35,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
35
35
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
36
36
|
if (Object(_i) !== _i) return;
|
|
37
37
|
_n = !1;
|
|
38
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
39
|
-
;
|
|
40
|
-
}
|
|
38
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
41
39
|
} catch (err) {
|
|
42
40
|
_d = !0, _e = err;
|
|
43
41
|
} finally {
|
|
@@ -53,9 +51,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
53
51
|
|
|
54
52
|
function _arrayLikeToArray(arr, len) {
|
|
55
53
|
if (len == null || len > arr.length) len = arr.length;
|
|
56
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
57
|
-
arr2[i] = arr[i];
|
|
58
|
-
}
|
|
54
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
59
55
|
return arr2;
|
|
60
56
|
}
|
|
61
57
|
|
|
@@ -76,7 +72,35 @@ function _slicedToArray(arr, i) {
|
|
|
76
72
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
77
73
|
}
|
|
78
74
|
|
|
79
|
-
var
|
|
75
|
+
var RadioButtonBase = {
|
|
76
|
+
defaultProps: {
|
|
77
|
+
__TYPE: 'RadioButton',
|
|
78
|
+
id: null,
|
|
79
|
+
inputRef: null,
|
|
80
|
+
inputId: null,
|
|
81
|
+
name: null,
|
|
82
|
+
value: null,
|
|
83
|
+
checked: false,
|
|
84
|
+
style: null,
|
|
85
|
+
className: null,
|
|
86
|
+
disabled: false,
|
|
87
|
+
required: false,
|
|
88
|
+
tabIndex: null,
|
|
89
|
+
tooltip: null,
|
|
90
|
+
tooltipOptions: null,
|
|
91
|
+
onChange: null,
|
|
92
|
+
children: undefined
|
|
93
|
+
},
|
|
94
|
+
getProps: function getProps(props) {
|
|
95
|
+
return ObjectUtils.getMergedProps(props, RadioButtonBase.defaultProps);
|
|
96
|
+
},
|
|
97
|
+
getOtherProps: function getOtherProps(props) {
|
|
98
|
+
return ObjectUtils.getDiffProps(props, RadioButtonBase.defaultProps);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
103
|
+
var props = RadioButtonBase.getProps(inProps);
|
|
80
104
|
var _React$useState = React.useState(false),
|
|
81
105
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
82
106
|
focusedState = _React$useState2[0],
|
|
@@ -124,7 +148,8 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
124
148
|
setFocusedState(false);
|
|
125
149
|
};
|
|
126
150
|
var onKeyDown = function onKeyDown(event) {
|
|
127
|
-
if (event.code === 'Space') {
|
|
151
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
152
|
+
// event.key is for Android support
|
|
128
153
|
onClick(event);
|
|
129
154
|
}
|
|
130
155
|
};
|
|
@@ -140,6 +165,9 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
140
165
|
return {
|
|
141
166
|
props: props,
|
|
142
167
|
select: select,
|
|
168
|
+
focus: function focus() {
|
|
169
|
+
return DomHandler.focus(inputRef.current);
|
|
170
|
+
},
|
|
143
171
|
getElement: function getElement() {
|
|
144
172
|
return elementRef.current;
|
|
145
173
|
},
|
|
@@ -149,7 +177,7 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
149
177
|
};
|
|
150
178
|
});
|
|
151
179
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
152
|
-
var otherProps =
|
|
180
|
+
var otherProps = RadioButtonBase.getOtherProps(props);
|
|
153
181
|
var ariaProps = ObjectUtils.reduceKeys(otherProps, DomHandler.ARIA_PROPS);
|
|
154
182
|
var className = classNames('p-radiobutton p-component', {
|
|
155
183
|
'p-radiobutton-checked': props.checked,
|
|
@@ -192,22 +220,5 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
192
220
|
}, props.tooltipOptions)));
|
|
193
221
|
}));
|
|
194
222
|
RadioButton.displayName = 'RadioButton';
|
|
195
|
-
RadioButton.defaultProps = {
|
|
196
|
-
__TYPE: 'RadioButton',
|
|
197
|
-
id: null,
|
|
198
|
-
inputRef: null,
|
|
199
|
-
inputId: null,
|
|
200
|
-
name: null,
|
|
201
|
-
value: null,
|
|
202
|
-
checked: false,
|
|
203
|
-
style: null,
|
|
204
|
-
className: null,
|
|
205
|
-
disabled: false,
|
|
206
|
-
required: false,
|
|
207
|
-
tabIndex: null,
|
|
208
|
-
tooltip: null,
|
|
209
|
-
tooltipOptions: null,
|
|
210
|
-
onChange: null
|
|
211
|
-
};
|
|
212
223
|
|
|
213
224
|
export { RadioButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Tooltip as t}from"primereact/tooltip";import{ObjectUtils as n,DomHandler as r,classNames as
|
|
1
|
+
import*as e from"react";import{Tooltip as t}from"primereact/tooltip";import{ObjectUtils as n,DomHandler as r,classNames as o}from"primereact/utils";function a(){return a=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},a.apply(this,arguments)}function i(e){if(Array.isArray(e))return e}function u(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,u=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function d(){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 s={defaultProps:{__TYPE:"RadioButton",id:null,inputRef:null,inputId:null,name:null,value:null,checked:!1,style:null,className:null,disabled:!1,required:!1,tabIndex:null,tooltip:null,tooltipOptions:null,onChange:null,children:void 0},getProps:function(e){return n.getMergedProps(e,s.defaultProps)},getOtherProps:function(e){return n.getDiffProps(e,s.defaultProps)}},f=e.memo(e.forwardRef((function(c,f){var p,m,h=s.getProps(c),b=e.useState(!1),g=(m=2,i(p=b)||u(p,m)||l(p,m)||d()),v=g[0],y=g[1],k=e.useRef(null),E=e.useRef(h.inputRef),P=function(e){O(e)},O=function(e){if(!h.disabled&&h.onChange){var t=h.checked,n=e.target instanceof HTMLDivElement,o=e.target===E.current&&e.target.checked!==t,a=n&&r.hasClass(k.current,"p-radiobutton-checked")===t&&!t;if(o||a){var i=!t;h.onChange({originalEvent:e,value:h.value,checked:i,stopPropagation:function(){},preventDefault:function(){},target:{type:"radio",name:h.name,id:h.id,value:h.value,checked:i}}),a&&(E.current.checked=i)}r.focus(E.current),e.preventDefault()}};e.useEffect((function(){E.current&&(E.current.checked=h.checked)}),[h.checked]),e.useEffect((function(){n.combinedRefs(E,h.inputRef)}),[E,h.inputRef]),e.useImperativeHandle(f,(function(){return{props:h,select:P,focus:function(){return r.focus(E.current)},getElement:function(){return k.current},getInput:function(){return E.current}}}));var R=n.isNotEmpty(h.tooltip),I=s.getOtherProps(h),j=n.reduceKeys(I,r.ARIA_PROPS),A=o("p-radiobutton p-component",{"p-radiobutton-checked":h.checked,"p-radiobutton-disabled":h.disabled,"p-radiobutton-focused":v},h.className),N=o("p-radiobutton-box",{"p-highlight":h.checked,"p-disabled":h.disabled,"p-focus":v});return e.createElement(e.Fragment,null,e.createElement("div",a({ref:k,id:h.id,className:A,style:h.style},I,{onClick:O}),e.createElement("div",{className:"p-hidden-accessible"},e.createElement("input",a({ref:E,id:h.inputId,type:"radio",name:h.name,defaultChecked:h.checked,onFocus:function(){y(!0)},onBlur:function(){y(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||O(e)},disabled:h.disabled,required:h.required,tabIndex:h.tabIndex},j))),e.createElement("div",{className:N},e.createElement("div",{className:"p-radiobutton-icon"}))),R&&e.createElement(t,a({target:k,content:h.tooltip},h.tooltipOptions)))})));f.displayName="RadioButton";export{f as RadioButton};
|
|
@@ -55,9 +55,7 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
55
55
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
56
56
|
if (Object(_i) !== _i) return;
|
|
57
57
|
_n = !1;
|
|
58
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
59
|
-
;
|
|
60
|
-
}
|
|
58
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
61
59
|
} catch (err) {
|
|
62
60
|
_d = !0, _e = err;
|
|
63
61
|
} finally {
|
|
@@ -73,9 +71,7 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
73
71
|
|
|
74
72
|
function _arrayLikeToArray(arr, len) {
|
|
75
73
|
if (len == null || len > arr.length) len = arr.length;
|
|
76
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
77
|
-
arr2[i] = arr[i];
|
|
78
|
-
}
|
|
74
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
79
75
|
return arr2;
|
|
80
76
|
}
|
|
81
77
|
|
|
@@ -96,7 +92,35 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
96
92
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
97
93
|
}
|
|
98
94
|
|
|
99
|
-
var
|
|
95
|
+
var RadioButtonBase = {
|
|
96
|
+
defaultProps: {
|
|
97
|
+
__TYPE: 'RadioButton',
|
|
98
|
+
id: null,
|
|
99
|
+
inputRef: null,
|
|
100
|
+
inputId: null,
|
|
101
|
+
name: null,
|
|
102
|
+
value: null,
|
|
103
|
+
checked: false,
|
|
104
|
+
style: null,
|
|
105
|
+
className: null,
|
|
106
|
+
disabled: false,
|
|
107
|
+
required: false,
|
|
108
|
+
tabIndex: null,
|
|
109
|
+
tooltip: null,
|
|
110
|
+
tooltipOptions: null,
|
|
111
|
+
onChange: null,
|
|
112
|
+
children: undefined
|
|
113
|
+
},
|
|
114
|
+
getProps: function getProps(props) {
|
|
115
|
+
return utils.ObjectUtils.getMergedProps(props, RadioButtonBase.defaultProps);
|
|
116
|
+
},
|
|
117
|
+
getOtherProps: function getOtherProps(props) {
|
|
118
|
+
return utils.ObjectUtils.getDiffProps(props, RadioButtonBase.defaultProps);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var RadioButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
123
|
+
var props = RadioButtonBase.getProps(inProps);
|
|
100
124
|
var _React$useState = React__namespace.useState(false),
|
|
101
125
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
102
126
|
focusedState = _React$useState2[0],
|
|
@@ -144,7 +168,8 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
144
168
|
setFocusedState(false);
|
|
145
169
|
};
|
|
146
170
|
var onKeyDown = function onKeyDown(event) {
|
|
147
|
-
if (event.code === 'Space') {
|
|
171
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
172
|
+
// event.key is for Android support
|
|
148
173
|
onClick(event);
|
|
149
174
|
}
|
|
150
175
|
};
|
|
@@ -160,6 +185,9 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
160
185
|
return {
|
|
161
186
|
props: props,
|
|
162
187
|
select: select,
|
|
188
|
+
focus: function focus() {
|
|
189
|
+
return utils.DomHandler.focus(inputRef.current);
|
|
190
|
+
},
|
|
163
191
|
getElement: function getElement() {
|
|
164
192
|
return elementRef.current;
|
|
165
193
|
},
|
|
@@ -169,7 +197,7 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
169
197
|
};
|
|
170
198
|
});
|
|
171
199
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
172
|
-
var otherProps =
|
|
200
|
+
var otherProps = RadioButtonBase.getOtherProps(props);
|
|
173
201
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
174
202
|
var className = utils.classNames('p-radiobutton p-component', {
|
|
175
203
|
'p-radiobutton-checked': props.checked,
|
|
@@ -212,23 +240,6 @@ this.primereact.radiobutton = (function (exports, React, tooltip, utils) {
|
|
|
212
240
|
}, props.tooltipOptions)));
|
|
213
241
|
}));
|
|
214
242
|
RadioButton.displayName = 'RadioButton';
|
|
215
|
-
RadioButton.defaultProps = {
|
|
216
|
-
__TYPE: 'RadioButton',
|
|
217
|
-
id: null,
|
|
218
|
-
inputRef: null,
|
|
219
|
-
inputId: null,
|
|
220
|
-
name: null,
|
|
221
|
-
value: null,
|
|
222
|
-
checked: false,
|
|
223
|
-
style: null,
|
|
224
|
-
className: null,
|
|
225
|
-
disabled: false,
|
|
226
|
-
required: false,
|
|
227
|
-
tabIndex: null,
|
|
228
|
-
tooltip: null,
|
|
229
|
-
tooltipOptions: null,
|
|
230
|
-
onChange: null
|
|
231
|
-
};
|
|
232
243
|
|
|
233
244
|
exports.RadioButton = RadioButton;
|
|
234
245
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.radiobutton=function(e,t,n,r){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.radiobutton=function(e,t,n,r){"use strict";function o(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=o(t);function i(){return i=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},i.apply(this,arguments)}function c(e){if(Array.isArray(e))return e}function u(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function d(){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 f={defaultProps:{__TYPE:"RadioButton",id:null,inputRef:null,inputId:null,name:null,value:null,checked:!1,style:null,className:null,disabled:!1,required:!1,tabIndex:null,tooltip:null,tooltipOptions:null,onChange:null,children:void 0},getProps:function(e){return r.ObjectUtils.getMergedProps(e,f.defaultProps)},getOtherProps:function(e){return r.ObjectUtils.getDiffProps(e,f.defaultProps)}},p=a.memo(a.forwardRef((function(e,t){var o,l,p=f.getProps(e),m=a.useState(!1),b=(l=2,c(o=m)||u(o,l)||s(o,l)||d()),h=b[0],v=b[1],g=a.useRef(null),y=a.useRef(p.inputRef),O=function(e){j(e)},j=function(e){if(!p.disabled&&p.onChange){var t=p.checked,n=e.target instanceof HTMLDivElement,o=e.target===y.current&&e.target.checked!==t,a=n&&r.DomHandler.hasClass(g.current,"p-radiobutton-checked")===t&&!t;if(o||a){var i=!t;p.onChange({originalEvent:e,value:p.value,checked:i,stopPropagation:function(){},preventDefault:function(){},target:{type:"radio",name:p.name,id:p.id,value:p.value,checked:i}}),a&&(y.current.checked=i)}r.DomHandler.focus(y.current),e.preventDefault()}};a.useEffect((function(){y.current&&(y.current.checked=p.checked)}),[p.checked]),a.useEffect((function(){r.ObjectUtils.combinedRefs(y,p.inputRef)}),[y,p.inputRef]),a.useImperativeHandle(t,(function(){return{props:p,select:O,focus:function(){return r.DomHandler.focus(y.current)},getElement:function(){return g.current},getInput:function(){return y.current}}}));var k=r.ObjectUtils.isNotEmpty(p.tooltip),P=f.getOtherProps(p),E=r.ObjectUtils.reduceKeys(P,r.DomHandler.ARIA_PROPS),R=r.classNames("p-radiobutton p-component",{"p-radiobutton-checked":p.checked,"p-radiobutton-disabled":p.disabled,"p-radiobutton-focused":h},p.className),I=r.classNames("p-radiobutton-box",{"p-highlight":p.checked,"p-disabled":p.disabled,"p-focus":h});return a.createElement(a.Fragment,null,a.createElement("div",i({ref:g,id:p.id,className:R,style:p.style},P,{onClick:j}),a.createElement("div",{className:"p-hidden-accessible"},a.createElement("input",i({ref:y,id:p.inputId,type:"radio",name:p.name,defaultChecked:p.checked,onFocus:function(){v(!0)},onBlur:function(){v(!1)},onKeyDown:function(e){"Space"!==e.code&&" "!==e.key||j(e)},disabled:p.disabled,required:p.required,tabIndex:p.tabIndex},E))),a.createElement("div",{className:I},a.createElement("div",{className:"p-radiobutton-icon"}))),k&&a.createElement(n.Tooltip,i({target:g,content:p.tooltip},p.tooltipOptions)))})));return p.displayName="RadioButton",e.RadioButton=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.tooltip,primereact.utils);
|
package/rating/package.json
CHANGED
package/rating/rating.cjs.js
CHANGED
|
@@ -82,9 +82,40 @@ function _defineProperty(obj, key, value) {
|
|
|
82
82
|
return obj;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
var RatingBase = {
|
|
86
|
+
defaultProps: {
|
|
87
|
+
__TYPE: 'Rating',
|
|
88
|
+
id: null,
|
|
89
|
+
value: null,
|
|
90
|
+
disabled: false,
|
|
91
|
+
readOnly: false,
|
|
92
|
+
stars: 5,
|
|
93
|
+
cancel: true,
|
|
94
|
+
style: null,
|
|
95
|
+
className: null,
|
|
96
|
+
tooltip: null,
|
|
97
|
+
tooltipOptions: null,
|
|
98
|
+
onChange: null,
|
|
99
|
+
onIcon: 'pi pi-star-fill',
|
|
100
|
+
offIcon: 'pi pi-star',
|
|
101
|
+
cancelIcon: 'pi pi-ban',
|
|
102
|
+
cancelIconProps: null,
|
|
103
|
+
onIconProps: null,
|
|
104
|
+
offIconProps: null,
|
|
105
|
+
children: undefined
|
|
106
|
+
},
|
|
107
|
+
getProps: function getProps(props) {
|
|
108
|
+
return utils.ObjectUtils.getMergedProps(props, RatingBase.defaultProps);
|
|
109
|
+
},
|
|
110
|
+
getOtherProps: function getOtherProps(props) {
|
|
111
|
+
return utils.ObjectUtils.getDiffProps(props, RatingBase.defaultProps);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
85
115
|
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; }
|
|
86
116
|
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; }
|
|
87
|
-
var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (
|
|
117
|
+
var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
118
|
+
var props = RatingBase.getProps(inProps);
|
|
88
119
|
var elementRef = React__namespace.useRef(null);
|
|
89
120
|
var enabled = !props.disabled && !props.readOnly;
|
|
90
121
|
var tabIndex = enabled ? 0 : null;
|
|
@@ -190,7 +221,7 @@ var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
190
221
|
};
|
|
191
222
|
});
|
|
192
223
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
193
|
-
var otherProps =
|
|
224
|
+
var otherProps = RatingBase.getOtherProps(props);
|
|
194
225
|
var className = utils.classNames('p-rating', {
|
|
195
226
|
'p-disabled': props.disabled,
|
|
196
227
|
'p-readonly': props.readOnly
|
|
@@ -208,25 +239,5 @@ var Rating = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
208
239
|
}, props.tooltipOptions)));
|
|
209
240
|
}));
|
|
210
241
|
Rating.displayName = 'Rating';
|
|
211
|
-
Rating.defaultProps = {
|
|
212
|
-
__TYPE: 'Rating',
|
|
213
|
-
id: null,
|
|
214
|
-
value: null,
|
|
215
|
-
disabled: false,
|
|
216
|
-
readOnly: false,
|
|
217
|
-
stars: 5,
|
|
218
|
-
cancel: true,
|
|
219
|
-
style: null,
|
|
220
|
-
className: null,
|
|
221
|
-
tooltip: null,
|
|
222
|
-
tooltipOptions: null,
|
|
223
|
-
onChange: null,
|
|
224
|
-
onIcon: 'pi pi-star-fill',
|
|
225
|
-
offIcon: 'pi pi-star',
|
|
226
|
-
cancelIcon: 'pi pi-ban',
|
|
227
|
-
cancelIconProps: null,
|
|
228
|
-
onIconProps: null,
|
|
229
|
-
offIconProps: null
|
|
230
|
-
};
|
|
231
242
|
|
|
232
243
|
exports.Rating = Rating;
|
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/tooltip"),n=require("primereact/utils");function r(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 o=r(e);function i(){return i=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},i.apply(this,arguments)}function a(e){return a="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},a(e)}function l(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=l(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(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
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/tooltip"),n=require("primereact/utils");function r(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 o=r(e);function i(){return i=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},i.apply(this,arguments)}function a(e){return a="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},a(e)}function l(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=l(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={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:"pi pi-star-fill",offIcon:"pi pi-star",cancelIcon:"pi pi-ban",cancelIconProps:null,onIconProps:null,offIconProps:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,p.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,p.defaultProps)}};function s(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=o.memo(o.forwardRef((function(e,r){var a=p.getProps(e),l=o.useRef(null),c=!a.disabled&&!a.readOnly,u=c?0:null,s=function(e,t){c&&a.onChange&&a.onChange({originalEvent:e,value:t,stopPropagation:function(){},preventDefault:function(){},target:{name:a.name,id:a.id,value:t}}),e.preventDefault()},g=function(e){c&&a.onChange&&a.onChange({originalEvent:e,value:null,stopPropagation:function(){},preventDefault:function(){},target:{name:a.name,id:a.id,value:null}}),e.preventDefault()},y=function(e,t){"Enter"===e.key&&s(e,t)},m=function(e){"Enter"===e.key&&g(e)};o.useImperativeHandle(r,(function(){return{props:a,getElement:function(){return l.current}}}));var b=n.ObjectUtils.isNotEmpty(a.tooltip),d=p.getOtherProps(a),v=n.classNames("p-rating",{"p-disabled":a.disabled,"p-readonly":a.readOnly},a.className),O=function(){if(a.cancel){var e=n.IconUtils.getJSXIcon(a.cancelIcon,f({className:"p-rating-icon p-rating-cancel"},a.cancelIconProps),{props:a});return o.createElement("div",{className:"p-rating-item p-rating-cancel-item",onClick:g,tabIndex:u,onKeyDown:m},e)}return null}(),P=Array.from({length:a.stars},(function(e,t){return t+1})).map((function(e){var t=e<=a.value,r=n.classNames("p-rating-item",{"p-rating-item-active":t}),i=t?{type:a.onIcon,props:a.onIconProps}:{type:a.offIcon,props:a.offIconProps},l=n.IconUtils.getJSXIcon(i.type,f({className:"p-rating-icon"},i.props),{props:a});return o.createElement("div",{key:e,className:r,tabIndex:u,onClick:function(t){return s(t,e)},onKeyDown:function(t){return y(t,e)}},l)}));return o.createElement(o.Fragment,null,o.createElement("div",i({ref:l,id:a.id,className:v,style:a.style},d),O,P),b&&o.createElement(t.Tooltip,i({target:l,content:a.tooltip},a.tooltipOptions)))})));g.displayName="Rating",exports.Rating=g;
|