primereact 8.7.2 → 8.7.3
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 +56 -57
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +56 -57
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +56 -57
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +30 -68
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +30 -68
- package/api/api.esm.min.js +1 -1
- package/api/api.js +30 -68
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +82 -154
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +82 -154
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +82 -154
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +86 -14
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +5 -4
- package/avatar/avatar.esm.js +86 -14
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +86 -14
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +0 -2
- package/avatargroup/avatargroup.esm.js +0 -2
- package/avatargroup/avatargroup.js +0 -2
- package/badge/badge.cjs.js +27 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +27 -3
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +27 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +40 -54
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +5 -3
- package/blockui/blockui.esm.js +40 -54
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +40 -54
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +6 -29
- package/breadcrumb/breadcrumb.esm.js +6 -29
- package/breadcrumb/breadcrumb.js +6 -29
- package/button/button.cjs.js +29 -11
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +29 -11
- package/button/button.esm.min.js +1 -1
- package/button/button.js +29 -11
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +186 -664
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -4
- package/calendar/calendar.esm.js +186 -664
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +186 -664
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +0 -15
- package/captcha/captcha.esm.js +0 -15
- package/captcha/captcha.js +0 -15
- package/card/card.cjs.js +0 -6
- package/card/card.esm.js +0 -6
- package/card/card.js +0 -6
- package/carousel/carousel.cjs.js +42 -130
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +42 -130
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +42 -130
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +47 -132
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -132
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +47 -132
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +6 -7
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +6 -7
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +6 -7
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +26 -40
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +26 -40
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +26 -40
- package/checkbox/checkbox.min.css +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +26 -41
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +26 -41
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +26 -41
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +29 -72
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +29 -72
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +29 -72
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +75 -143
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +8 -6
- package/colorpicker/colorpicker.esm.js +75 -143
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +75 -143
- package/colorpicker/colorpicker.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +60 -60
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +60 -60
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +60 -60
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +74 -94
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +74 -94
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +74 -94
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +75 -120
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +75 -120
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +75 -120
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +970 -2021
- package/core/core.min.js +15 -15
- package/csstransition/csstransition.cjs.js +27 -13
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +27 -13
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +27 -13
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +32 -64
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +32 -64
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +32 -64
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +318 -1077
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -1
- package/datatable/datatable.esm.js +318 -1077
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +318 -1077
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +56 -68
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +56 -68
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +56 -68
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +37 -46
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +37 -46
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +37 -46
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +89 -175
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +89 -175
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +89 -175
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +0 -2
- package/divider/divider.esm.js +0 -2
- package/divider/divider.js +0 -2
- package/dock/dock.cjs.js +31 -53
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +31 -53
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +31 -53
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +72 -199
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +39 -38
- package/dropdown/dropdown.esm.js +72 -199
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +72 -199
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +31 -22
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +31 -22
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -22
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +29 -51
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +29 -51
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -51
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +45 -128
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +45 -128
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +45 -128
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +54 -165
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +54 -165
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +54 -165
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +2 -23
- package/gmap/gmap.esm.js +2 -23
- package/gmap/gmap.js +2 -23
- package/hooks/hooks.cjs.js +102 -131
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +102 -131
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +102 -131
- package/hooks/hooks.min.js +1 -1
- package/image/image.cjs.js +41 -67
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +41 -67
- package/image/image.esm.min.js +1 -1
- package/image/image.js +41 -67
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +26 -45
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +26 -45
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +26 -45
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +16 -108
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +16 -108
- package/inputmask/inputmask.js +16 -108
- package/inputnumber/inputnumber.cjs.js +82 -234
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +82 -234
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +82 -234
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +26 -37
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +26 -37
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +26 -37
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +0 -11
- package/inputtext/inputtext.d.ts +1 -3
- package/inputtext/inputtext.esm.js +0 -11
- package/inputtext/inputtext.js +0 -11
- package/inputtextarea/inputtextarea.cjs.js +0 -20
- package/inputtextarea/inputtextarea.d.ts +1 -3
- package/inputtextarea/inputtextarea.esm.js +0 -20
- package/inputtextarea/inputtextarea.js +0 -20
- package/keyfilter/keyfilter.cjs.js +4 -15
- package/keyfilter/keyfilter.esm.js +4 -15
- package/keyfilter/keyfilter.js +4 -15
- package/knob/knob.cjs.js +74 -106
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +74 -106
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +74 -106
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +94 -125
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +6 -0
- package/listbox/listbox.esm.js +95 -126
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +94 -125
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +36 -99
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +36 -99
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +36 -99
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +82 -138
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +82 -138
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +82 -138
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +38 -72
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +38 -72
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +38 -72
- package/menu/menu.min.css +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -99
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +49 -99
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +49 -99
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +0 -7
- package/message/message.esm.js +0 -7
- package/message/message.js +0 -7
- package/messages/messages.cjs.js +39 -67
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +39 -67
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +39 -67
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +137 -210
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +46 -41
- package/multiselect/multiselect.esm.js +137 -210
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +137 -210
- package/multiselect/multiselect.min.css +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +58 -53
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +38 -103
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +38 -103
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -103
- package/orderlist/orderlist.min.css +1 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +26 -52
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +26 -52
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +26 -52
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +40 -79
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +40 -79
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +40 -79
- package/overlaypanel/overlaypanel.min.css +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +46 -87
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +46 -87
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +46 -87
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +29 -50
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +29 -50
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +29 -50
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +35 -81
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +35 -81
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +35 -81
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +54 -107
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +54 -107
- package/password/password.esm.min.js +1 -1
- package/password/password.js +54 -107
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +48 -159
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +48 -159
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +48 -159
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +26 -31
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +26 -31
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +26 -31
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +2246 -7336
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2246 -7336
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2246 -7336
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +0 -7
- package/progressbar/progressbar.esm.js +0 -7
- package/progressbar/progressbar.js +0 -7
- package/progressspinner/progressspinner.cjs.js +0 -2
- package/progressspinner/progressspinner.esm.js +0 -2
- package/progressspinner/progressspinner.js +0 -2
- package/radiobutton/radiobutton.cjs.js +30 -40
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +30 -40
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +30 -40
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +27 -14
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +27 -14
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +27 -14
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +47 -1
- package/resources/primereact.min.css +1 -1
- package/ripple/ripple.cjs.js +0 -12
- package/ripple/ripple.esm.js +0 -12
- package/ripple/ripple.js +0 -12
- package/row/row.cjs.js +0 -2
- package/row/row.esm.js +0 -2
- package/row/row.js +0 -2
- package/scrollpanel/scrollpanel.cjs.js +2 -16
- package/scrollpanel/scrollpanel.esm.js +2 -16
- package/scrollpanel/scrollpanel.js +2 -16
- package/scrolltop/scrolltop.cjs.js +44 -57
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +44 -57
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +44 -57
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -53
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -53
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -53
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +52 -83
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +52 -83
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +52 -83
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +0 -2
- package/skeleton/skeleton.esm.js +0 -2
- package/skeleton/skeleton.js +0 -2
- package/slidemenu/slidemenu.cjs.js +73 -87
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +73 -87
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +73 -87
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +61 -96
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +61 -96
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +61 -96
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +70 -89
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +70 -89
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +70 -89
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +46 -80
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +46 -80
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +46 -80
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +72 -85
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +72 -85
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +72 -85
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +0 -14
- package/steps/steps.esm.js +0 -14
- package/steps/steps.js +0 -14
- package/styleclass/styleclass.cjs.js +75 -111
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +75 -111
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +75 -111
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +33 -54
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +33 -54
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +33 -54
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +83 -102
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +83 -102
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +83 -102
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +27 -4
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +27 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +27 -4
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +37 -63
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +37 -63
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +37 -63
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +65 -110
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +65 -110
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +65 -110
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +27 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +27 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +27 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +81 -99
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +81 -99
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +81 -99
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +0 -7
- package/togglebutton/togglebutton.esm.js +0 -7
- package/togglebutton/togglebutton.js +0 -7
- package/toolbar/toolbar.cjs.js +0 -2
- package/toolbar/toolbar.esm.js +0 -2
- package/toolbar/toolbar.js +0 -2
- package/tooltip/tooltip.cjs.js +111 -164
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +111 -164
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +111 -164
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +13 -13
- package/tree/tree.cjs.js +68 -223
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +68 -223
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +68 -223
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +1 -0
- package/treeselect/treeselect.cjs.js +117 -167
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +30 -29
- package/treeselect/treeselect.esm.js +117 -167
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +117 -167
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +140 -460
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +140 -460
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +140 -460
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +29 -39
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +110 -328
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +110 -328
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +110 -328
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +108 -204
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +108 -204
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +108 -204
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +152 -38
package/timeline/timeline.js
CHANGED
|
@@ -26,20 +26,45 @@ this.primereact.timeline = (function (exports, React, utils) {
|
|
|
26
26
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
27
27
|
for (var i = 1; i < arguments.length; i++) {
|
|
28
28
|
var source = arguments[i];
|
|
29
|
-
|
|
30
29
|
for (var key in source) {
|
|
31
30
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32
31
|
target[key] = source[key];
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
return target;
|
|
38
36
|
};
|
|
39
37
|
return _extends.apply(this, arguments);
|
|
40
38
|
}
|
|
41
39
|
|
|
40
|
+
function _typeof(obj) {
|
|
41
|
+
"@babel/helpers - typeof";
|
|
42
|
+
|
|
43
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
44
|
+
return typeof obj;
|
|
45
|
+
} : function (obj) {
|
|
46
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
47
|
+
}, _typeof(obj);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function _toPrimitive(input, hint) {
|
|
51
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
52
|
+
var prim = input[Symbol.toPrimitive];
|
|
53
|
+
if (prim !== undefined) {
|
|
54
|
+
var res = prim.call(input, hint || "default");
|
|
55
|
+
if (_typeof(res) !== "object") return res;
|
|
56
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
57
|
+
}
|
|
58
|
+
return (hint === "string" ? String : Number)(input);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function _toPropertyKey(arg) {
|
|
62
|
+
var key = _toPrimitive(arg, "string");
|
|
63
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
64
|
+
}
|
|
65
|
+
|
|
42
66
|
function _defineProperty(obj, key, value) {
|
|
67
|
+
key = _toPropertyKey(key);
|
|
43
68
|
if (key in obj) {
|
|
44
69
|
Object.defineProperty(obj, key, {
|
|
45
70
|
value: value,
|
|
@@ -50,19 +75,15 @@ this.primereact.timeline = (function (exports, React, utils) {
|
|
|
50
75
|
} else {
|
|
51
76
|
obj[key] = value;
|
|
52
77
|
}
|
|
53
|
-
|
|
54
78
|
return obj;
|
|
55
79
|
}
|
|
56
80
|
|
|
57
81
|
var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
58
82
|
var _classNames;
|
|
59
|
-
|
|
60
83
|
var elementRef = React__namespace.useRef(null);
|
|
61
|
-
|
|
62
84
|
var getKey = function getKey(item, index) {
|
|
63
85
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(item, props.dataKey) : "pr_id__".concat(index);
|
|
64
86
|
};
|
|
65
|
-
|
|
66
87
|
var createEvents = function createEvents() {
|
|
67
88
|
return props.value && props.value.map(function (item, index) {
|
|
68
89
|
var opposite = utils.ObjectUtils.getJSXElement(props.opposite, item, index);
|
|
@@ -85,7 +106,6 @@ this.primereact.timeline = (function (exports, React, utils) {
|
|
|
85
106
|
}, content));
|
|
86
107
|
});
|
|
87
108
|
};
|
|
88
|
-
|
|
89
109
|
React__namespace.useImperativeHandle(ref, function () {
|
|
90
110
|
return {
|
|
91
111
|
props: props,
|
package/timeline/timeline.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.timeline=function(e,t,n){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.timeline=function(e,t,n){"use strict";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 i=r(t);function l(){return l=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},l.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 o(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=o(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 s=i.memo(i.forwardRef((function(e,t){var r,a=i.useRef(null),o=function(t,r){return e.dataKey?n.ObjectUtils.resolveFieldData(t,e.dataKey):"pr_id__".concat(r)};i.useImperativeHandle(t,(function(){return{props:e,getElement:function(){return a.current}}}));var c=n.ObjectUtils.findDiffKeys(e,s.defaultProps),m=n.classNames("p-timeline p-component",(u(r={},"p-timeline-".concat(e.align),!0),u(r,"p-timeline-".concat(e.layout),!0),r),e.className),f=e.value&&e.value.map((function(t,r){var l=n.ObjectUtils.getJSXElement(e.opposite,t,r),a=n.ObjectUtils.getJSXElement(e.marker,t,r)||i.createElement("div",{className:"p-timeline-event-marker"}),c=r!==e.value.length-1&&i.createElement("div",{className:"p-timeline-event-connector"}),u=n.ObjectUtils.getJSXElement(e.content,t,r);return i.createElement("div",{key:o(t,r),className:"p-timeline-event"},i.createElement("div",{className:"p-timeline-event-opposite"},l),i.createElement("div",{className:"p-timeline-event-separator"},a,c),i.createElement("div",{className:"p-timeline-event-content"},u))}));return i.createElement("div",l({id:e.id,ref:a,className:m,style:e.style},c),f)})));return s.displayName="Timeline",s.defaultProps={__TYPE:"Timeline",id:null,value:null,align:"left",layout:"vertical",dataKey:null,className:null,style:null,opposite:null,marker:null,content:null},e.Timeline=s,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
package/toast/toast.cjs.js
CHANGED
|
@@ -38,14 +38,12 @@ function _extends() {
|
|
|
38
38
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
39
39
|
for (var i = 1; i < arguments.length; i++) {
|
|
40
40
|
var source = arguments[i];
|
|
41
|
-
|
|
42
41
|
for (var key in source) {
|
|
43
42
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
44
43
|
target[key] = source[key];
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
|
-
|
|
49
47
|
return target;
|
|
50
48
|
};
|
|
51
49
|
return _extends.apply(this, arguments);
|
|
@@ -53,11 +51,9 @@ function _extends() {
|
|
|
53
51
|
|
|
54
52
|
function _arrayLikeToArray(arr, len) {
|
|
55
53
|
if (len == null || len > arr.length) len = arr.length;
|
|
56
|
-
|
|
57
54
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
58
55
|
arr2[i] = arr[i];
|
|
59
56
|
}
|
|
60
|
-
|
|
61
57
|
return arr2;
|
|
62
58
|
}
|
|
63
59
|
|
|
@@ -91,33 +87,33 @@ function _arrayWithHoles(arr) {
|
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
function _iterableToArrayLimit(arr, i) {
|
|
94
|
-
var _i =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
try {
|
|
104
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
105
|
-
_arr.push(_s.value);
|
|
106
|
-
|
|
107
|
-
if (i && _arr.length === i) break;
|
|
108
|
-
}
|
|
109
|
-
} catch (err) {
|
|
110
|
-
_d = true;
|
|
111
|
-
_e = err;
|
|
112
|
-
} finally {
|
|
90
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
91
|
+
if (null != _i) {
|
|
92
|
+
var _s,
|
|
93
|
+
_e,
|
|
94
|
+
_x,
|
|
95
|
+
_r,
|
|
96
|
+
_arr = [],
|
|
97
|
+
_n = !0,
|
|
98
|
+
_d = !1;
|
|
113
99
|
try {
|
|
114
|
-
if (
|
|
100
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
101
|
+
if (Object(_i) !== _i) return;
|
|
102
|
+
_n = !1;
|
|
103
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
} catch (err) {
|
|
107
|
+
_d = !0, _e = err;
|
|
115
108
|
} finally {
|
|
116
|
-
|
|
109
|
+
try {
|
|
110
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
111
|
+
} finally {
|
|
112
|
+
if (_d) throw _e;
|
|
113
|
+
}
|
|
117
114
|
}
|
|
115
|
+
return _arr;
|
|
118
116
|
}
|
|
119
|
-
|
|
120
|
-
return _arr;
|
|
121
117
|
}
|
|
122
118
|
|
|
123
119
|
function _nonIterableRest() {
|
|
@@ -128,7 +124,34 @@ function _slicedToArray(arr, i) {
|
|
|
128
124
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
129
125
|
}
|
|
130
126
|
|
|
127
|
+
function _typeof(obj) {
|
|
128
|
+
"@babel/helpers - typeof";
|
|
129
|
+
|
|
130
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
131
|
+
return typeof obj;
|
|
132
|
+
} : function (obj) {
|
|
133
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
134
|
+
}, _typeof(obj);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function _toPrimitive(input, hint) {
|
|
138
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
139
|
+
var prim = input[Symbol.toPrimitive];
|
|
140
|
+
if (prim !== undefined) {
|
|
141
|
+
var res = prim.call(input, hint || "default");
|
|
142
|
+
if (_typeof(res) !== "object") return res;
|
|
143
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
144
|
+
}
|
|
145
|
+
return (hint === "string" ? String : Number)(input);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function _toPropertyKey(arg) {
|
|
149
|
+
var key = _toPrimitive(arg, "string");
|
|
150
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
151
|
+
}
|
|
152
|
+
|
|
131
153
|
function _defineProperty(obj, key, value) {
|
|
154
|
+
key = _toPropertyKey(key);
|
|
132
155
|
if (key in obj) {
|
|
133
156
|
Object.defineProperty(obj, key, {
|
|
134
157
|
value: value,
|
|
@@ -139,7 +162,6 @@ function _defineProperty(obj, key, value) {
|
|
|
139
162
|
} else {
|
|
140
163
|
obj[key] = value;
|
|
141
164
|
}
|
|
142
|
-
|
|
143
165
|
return obj;
|
|
144
166
|
}
|
|
145
167
|
|
|
@@ -149,10 +171,9 @@ function _defineProperties(target, props) {
|
|
|
149
171
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
150
172
|
descriptor.configurable = true;
|
|
151
173
|
if ("value" in descriptor) descriptor.writable = true;
|
|
152
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
174
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
153
175
|
}
|
|
154
176
|
}
|
|
155
|
-
|
|
156
177
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
157
178
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
158
179
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -191,23 +212,14 @@ var FilterMatchMode = Object.freeze({
|
|
|
191
212
|
var PrimeReact = /*#__PURE__*/_createClass(function PrimeReact() {
|
|
192
213
|
_classCallCheck(this, PrimeReact);
|
|
193
214
|
});
|
|
194
|
-
|
|
195
215
|
_defineProperty(PrimeReact, "ripple", false);
|
|
196
|
-
|
|
197
216
|
_defineProperty(PrimeReact, "inputStyle", 'outlined');
|
|
198
|
-
|
|
199
217
|
_defineProperty(PrimeReact, "locale", 'en');
|
|
200
|
-
|
|
201
218
|
_defineProperty(PrimeReact, "appendTo", null);
|
|
202
|
-
|
|
203
219
|
_defineProperty(PrimeReact, "cssTransition", true);
|
|
204
|
-
|
|
205
220
|
_defineProperty(PrimeReact, "autoZIndex", true);
|
|
206
|
-
|
|
207
221
|
_defineProperty(PrimeReact, "nonce", null);
|
|
208
|
-
|
|
209
222
|
_defineProperty(PrimeReact, "nullSortOrder", 1);
|
|
210
|
-
|
|
211
223
|
_defineProperty(PrimeReact, "zIndex", {
|
|
212
224
|
modal: 1100,
|
|
213
225
|
overlay: 1000,
|
|
@@ -215,7 +227,6 @@ _defineProperty(PrimeReact, "zIndex", {
|
|
|
215
227
|
tooltip: 1100,
|
|
216
228
|
toast: 1200
|
|
217
229
|
});
|
|
218
|
-
|
|
219
230
|
_defineProperty(PrimeReact, "filterMatchModeOptions", {
|
|
220
231
|
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
|
|
221
232
|
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
|
|
@@ -284,87 +295,78 @@ var locales = {
|
|
|
284
295
|
}
|
|
285
296
|
}
|
|
286
297
|
};
|
|
287
|
-
|
|
288
298
|
function localeOption(key, locale) {
|
|
289
299
|
var _locale = locale || PrimeReact.locale;
|
|
290
|
-
|
|
291
300
|
try {
|
|
292
301
|
return localeOptions(_locale)[key];
|
|
293
302
|
} catch (error) {
|
|
294
303
|
throw new Error("The ".concat(key, " option is not found in the current locale('").concat(_locale, "')."));
|
|
295
304
|
}
|
|
296
305
|
}
|
|
297
|
-
|
|
298
306
|
function localeOptions(locale) {
|
|
299
307
|
var _locale = locale || PrimeReact.locale;
|
|
300
|
-
|
|
301
308
|
return locales[_locale];
|
|
302
309
|
}
|
|
303
310
|
|
|
304
311
|
var ToastMessage = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
305
312
|
var messageInfo = props.messageInfo;
|
|
306
313
|
var _messageInfo$message = messageInfo.message,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
314
|
+
severity = _messageInfo$message.severity,
|
|
315
|
+
content = _messageInfo$message.content,
|
|
316
|
+
summary = _messageInfo$message.summary,
|
|
317
|
+
detail = _messageInfo$message.detail,
|
|
318
|
+
closable = _messageInfo$message.closable,
|
|
319
|
+
life = _messageInfo$message.life,
|
|
320
|
+
sticky = _messageInfo$message.sticky,
|
|
321
|
+
_className = _messageInfo$message.className,
|
|
322
|
+
style = _messageInfo$message.style,
|
|
323
|
+
_contentClassName = _messageInfo$message.contentClassName,
|
|
324
|
+
contentStyle = _messageInfo$message.contentStyle;
|
|
319
325
|
var _React$useState = React__namespace.useState(false),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
327
|
+
focused = _React$useState2[0],
|
|
328
|
+
setFocused = _React$useState2[1];
|
|
324
329
|
var _useTimeout = hooks.useTimeout(function () {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
+
onClose();
|
|
331
|
+
}, life || 3000, !sticky && !focused),
|
|
332
|
+
_useTimeout2 = _slicedToArray(_useTimeout, 1),
|
|
333
|
+
clearTimer = _useTimeout2[0];
|
|
330
334
|
var onClose = function onClose() {
|
|
331
335
|
clearTimer();
|
|
332
336
|
props.onClose && props.onClose(messageInfo);
|
|
333
337
|
};
|
|
334
|
-
|
|
335
338
|
var onClick = function onClick(event) {
|
|
336
339
|
if (props.onClick && !(utils.DomHandler.hasClass(event.target, 'p-toast-icon-close') || utils.DomHandler.hasClass(event.target, 'p-toast-icon-close-icon'))) {
|
|
337
340
|
props.onClick(messageInfo.message);
|
|
338
341
|
}
|
|
339
342
|
};
|
|
340
|
-
|
|
341
343
|
var onMouseEnter = function onMouseEnter(event) {
|
|
342
|
-
props.onMouseEnter && props.onMouseEnter(event);
|
|
344
|
+
props.onMouseEnter && props.onMouseEnter(event);
|
|
343
345
|
|
|
346
|
+
// do not continue if the user has canceled the event
|
|
344
347
|
if (event.defaultPrevented) {
|
|
345
348
|
return;
|
|
346
|
-
}
|
|
347
|
-
|
|
349
|
+
}
|
|
348
350
|
|
|
351
|
+
// stop timer while user has focused message
|
|
349
352
|
if (!sticky) {
|
|
350
353
|
clearTimer();
|
|
351
354
|
setFocused(true);
|
|
352
355
|
}
|
|
353
356
|
};
|
|
354
|
-
|
|
355
357
|
var onMouseLeave = function onMouseLeave(event) {
|
|
356
|
-
props.onMouseLeave && props.onMouseLeave(event);
|
|
358
|
+
props.onMouseLeave && props.onMouseLeave(event);
|
|
357
359
|
|
|
360
|
+
// do not continue if the user has canceled the event
|
|
358
361
|
if (event.defaultPrevented) {
|
|
359
362
|
return;
|
|
360
|
-
}
|
|
361
|
-
|
|
363
|
+
}
|
|
362
364
|
|
|
365
|
+
// restart timer when user has left message
|
|
363
366
|
if (!sticky) {
|
|
364
367
|
setFocused(false);
|
|
365
368
|
}
|
|
366
369
|
};
|
|
367
|
-
|
|
368
370
|
var createCloseIcon = function createCloseIcon() {
|
|
369
371
|
if (closable !== false) {
|
|
370
372
|
return /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement("button", {
|
|
@@ -377,10 +379,8 @@ var ToastMessage = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
377
379
|
"aria-hidden": "true"
|
|
378
380
|
}), /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null)));
|
|
379
381
|
}
|
|
380
|
-
|
|
381
382
|
return null;
|
|
382
383
|
};
|
|
383
|
-
|
|
384
384
|
var createMessage = function createMessage() {
|
|
385
385
|
if (messageInfo) {
|
|
386
386
|
var contentEl = utils.ObjectUtils.getJSXElement(content, {
|
|
@@ -404,10 +404,8 @@ var ToastMessage = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
404
404
|
className: "p-toast-detail"
|
|
405
405
|
}, detail)));
|
|
406
406
|
}
|
|
407
|
-
|
|
408
407
|
return null;
|
|
409
408
|
};
|
|
410
|
-
|
|
411
409
|
var className = utils.classNames('p-toast-message', _defineProperty({}, "p-toast-message-".concat(severity), severity), _className);
|
|
412
410
|
var contentClassName = utils.classNames('p-toast-message-content', _contentClassName);
|
|
413
411
|
var message = createMessage();
|
|
@@ -432,12 +430,10 @@ ToastMessage.displayName = 'ToastMessage';
|
|
|
432
430
|
var messageIdx = 0;
|
|
433
431
|
var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
434
432
|
var _React$useState = React__namespace.useState([]),
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
433
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
434
|
+
messagesState = _React$useState2[0],
|
|
435
|
+
setMessagesState = _React$useState2[1];
|
|
439
436
|
var containerRef = React__namespace.useRef(null);
|
|
440
|
-
|
|
441
437
|
var show = function show(messageInfo) {
|
|
442
438
|
if (messageInfo) {
|
|
443
439
|
var messages = assignIdentifiers(messageInfo, true);
|
|
@@ -445,10 +441,8 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
445
441
|
setMessagesState(messages);
|
|
446
442
|
}
|
|
447
443
|
};
|
|
448
|
-
|
|
449
444
|
var assignIdentifiers = function assignIdentifiers(messageInfo, copy) {
|
|
450
445
|
var messages;
|
|
451
|
-
|
|
452
446
|
if (Array.isArray(messageInfo)) {
|
|
453
447
|
var multipleMessages = messageInfo.reduce(function (acc, message) {
|
|
454
448
|
acc.push({
|
|
@@ -457,7 +451,6 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
457
451
|
});
|
|
458
452
|
return acc;
|
|
459
453
|
}, []);
|
|
460
|
-
|
|
461
454
|
if (copy) {
|
|
462
455
|
messages = messagesState ? [].concat(_toConsumableArray(messagesState), _toConsumableArray(multipleMessages)) : multipleMessages;
|
|
463
456
|
} else {
|
|
@@ -468,27 +461,22 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
468
461
|
_pId: messageIdx++,
|
|
469
462
|
message: messageInfo
|
|
470
463
|
};
|
|
471
|
-
|
|
472
464
|
if (copy) {
|
|
473
465
|
messages = messagesState ? [].concat(_toConsumableArray(messagesState), [message]) : [message];
|
|
474
466
|
} else {
|
|
475
467
|
messages = [message];
|
|
476
468
|
}
|
|
477
469
|
}
|
|
478
|
-
|
|
479
470
|
return messages;
|
|
480
471
|
};
|
|
481
|
-
|
|
482
472
|
var clear = function clear() {
|
|
483
473
|
utils.ZIndexUtils.clear(containerRef.current);
|
|
484
474
|
setMessagesState([]);
|
|
485
475
|
};
|
|
486
|
-
|
|
487
476
|
var replace = function replace(messageInfo) {
|
|
488
477
|
var replaced = assignIdentifiers(messageInfo, false);
|
|
489
478
|
setMessagesState(replaced);
|
|
490
479
|
};
|
|
491
|
-
|
|
492
480
|
var remove = function remove(messageInfo) {
|
|
493
481
|
var messages = messagesState.filter(function (msg) {
|
|
494
482
|
return msg._pId !== messageInfo._pId;
|
|
@@ -496,20 +484,16 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
496
484
|
setMessagesState(messages);
|
|
497
485
|
props.onRemove && props.onRemove(messageInfo.message);
|
|
498
486
|
};
|
|
499
|
-
|
|
500
487
|
var onClose = function onClose(messageInfo) {
|
|
501
488
|
remove(messageInfo);
|
|
502
489
|
};
|
|
503
|
-
|
|
504
490
|
var onEntered = function onEntered() {
|
|
505
491
|
props.onShow && props.onShow();
|
|
506
492
|
};
|
|
507
|
-
|
|
508
493
|
var onExited = function onExited() {
|
|
509
494
|
messagesState.length === 1 && utils.ZIndexUtils.clear(containerRef.current);
|
|
510
495
|
props.onHide && props.onHide();
|
|
511
496
|
};
|
|
512
|
-
|
|
513
497
|
hooks.useUnmountEffect(function () {
|
|
514
498
|
utils.ZIndexUtils.clear(containerRef.current);
|
|
515
499
|
});
|
|
@@ -525,7 +509,6 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
525
509
|
}
|
|
526
510
|
};
|
|
527
511
|
});
|
|
528
|
-
|
|
529
512
|
var createElement = function createElement() {
|
|
530
513
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Toast.defaultProps);
|
|
531
514
|
var className = utils.classNames('p-toast p-component p-toast-' + props.position, props.className);
|
|
@@ -534,7 +517,7 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
534
517
|
id: props.id,
|
|
535
518
|
className: className,
|
|
536
519
|
style: props.style
|
|
537
|
-
}, otherProps), /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.TransitionGroup, null, messagesState.map(function (messageInfo) {
|
|
520
|
+
}, otherProps), /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.TransitionGroup, null, messagesState && messagesState.map(function (messageInfo) {
|
|
538
521
|
var messageRef = /*#__PURE__*/React__namespace.createRef();
|
|
539
522
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
540
523
|
nodeRef: messageRef,
|
|
@@ -558,7 +541,6 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
558
541
|
}));
|
|
559
542
|
})));
|
|
560
543
|
};
|
|
561
|
-
|
|
562
544
|
var element = createElement();
|
|
563
545
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
564
546
|
element: element,
|
package/toast/toast.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),n=require("primereact/api"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),n=require("primereact/api"),r=require("primereact/csstransition"),a=require("primereact/hooks"),o=require("primereact/portal"),l=require("primereact/utils"),s=require("primereact/ripple");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(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 c=u(e),f=i(n);function m(){return m=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},m.apply(this,arguments)}function p(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 d(e){if(Array.isArray(e))return p(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e){return d(e)||y(e)||b(e)||E()}function T(e){if(Array.isArray(e))return e}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,s=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(e,t){return T(e)||S(e,t)||b(e,t)||g()}function h(e){return h="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},h(e)}function A(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=A(e,"string");return"symbol"===h(t)?t:String(t)}function _(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var M=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),R=L((function e(){C(this,e)}));_(R,"ripple",!1),_(R,"inputStyle","outlined"),_(R,"locale","en"),_(R,"appendTo",null),_(R,"cssTransition",!0),_(R,"autoZIndex",!0),_(R,"nonce",null),_(R,"nullSortOrder",1),_(R,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),_(R,"filterMatchModeOptions",{text:[M.STARTS_WITH,M.CONTAINS,M.NOT_CONTAINS,M.ENDS_WITH,M.EQUALS,M.NOT_EQUALS],numeric:[M.EQUALS,M.NOT_EQUALS,M.LESS_THAN,M.LESS_THAN_OR_EQUAL_TO,M.GREATER_THAN,M.GREATER_THAN_OR_EQUAL_TO],date:[M.DATE_IS,M.DATE_IS_NOT,M.DATE_BEFORE,M.DATE_AFTER]});var w={en:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",filter:"Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",custom:"Custom",clear:"Clear",close:"Close",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No available options",emptyMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",pageLabel:"Page",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",previousPageLabel:"Previous Page",selectLabel:"Select",unselectLabel:"Unselect",expandLabel:"Expand",collapseLabel:"Collapse"}}};function P(e,t){var n=t||R.locale;try{return j(n)[e]}catch(t){throw new Error("The ".concat(e," option is not found in the current locale('").concat(n,"')."))}}function j(e){return w[e||R.locale]}var x=c.memo(c.forwardRef((function(e,t){var n=e.messageInfo,r=n.message,o=r.severity,i=r.content,u=r.summary,f=r.detail,m=r.closable,p=r.life,d=r.sticky,y=r.className,b=r.style,E=r.contentClassName,v=r.contentStyle,T=N(c.useState(!1),2),S=T[1],g=N(a.useTimeout((function(){h()}),p||3e3,!d&&!T[0]),1)[0],h=function(){g(),e.onClose&&e.onClose(n)},A=function(t){!e.onClick||l.DomHandler.hasClass(t.target,"p-toast-icon-close")||l.DomHandler.hasClass(t.target,"p-toast-icon-close-icon")||e.onClick(n.message)},O=l.classNames("p-toast-message",_({},"p-toast-message-".concat(o),o),y),I=l.classNames("p-toast-message-content",E),L=function(){if(n){var e=l.ObjectUtils.getJSXElement(i,{message:n.message,onClick:A,onClose:h}),t=l.classNames("p-toast-message-icon pi",{"pi-info-circle":"info"===o,"pi-exclamation-triangle":"warn"===o,"pi-times":"error"===o,"pi-check":"success"===o});return e||c.createElement(c.Fragment,null,c.createElement("span",{className:t}),c.createElement("div",{className:"p-toast-message-text"},c.createElement("span",{className:"p-toast-summary"},u),f&&c.createElement("div",{className:"p-toast-detail"},f)))}return null}(),C=!1!==m?c.createElement("div",null,c.createElement("button",{type:"button",className:"p-toast-icon-close p-link",onClick:h,"aria-label":P("close")},c.createElement("span",{className:"p-toast-icon-close-icon pi pi-times","aria-hidden":"true"}),c.createElement(s.Ripple,null))):null;return c.createElement("div",{ref:t,className:O,style:b,role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:A,onMouseEnter:function(t){e.onMouseEnter&&e.onMouseEnter(t),t.defaultPrevented||d||(g(),S(!0))},onMouseLeave:function(t){e.onMouseLeave&&e.onMouseLeave(t),t.defaultPrevented||d||S(!1)}},c.createElement("div",{className:I,style:v},L,C))})));x.displayName="ToastMessage";var D=0,U=c.memo(c.forwardRef((function(e,n){var s=N(c.useState([]),2),i=s[0],u=s[1],p=c.useRef(null),d=function(t){if(t){var n=y(t,!0);0===i.length&&l.ZIndexUtils.set("toast",p.current,f.default.autoZIndex,e.baseZIndex||f.default.zIndex.toast),u(n)}},y=function(e,t){var n;if(Array.isArray(e)){var r=e.reduce((function(e,t){return e.push({_pId:D++,message:t}),e}),[]);n=t&&i?[].concat(v(i),v(r)):r}else{var a={_pId:D++,message:e};n=t&&i?[].concat(v(i),[a]):[a]}return n},b=function(){l.ZIndexUtils.clear(p.current),u([])},E=function(e){var t=y(e,!1);u(t)},T=function(t){var n=i.filter((function(e){return e._pId!==t._pId}));u(n),e.onRemove&&e.onRemove(t.message)},S=function(e){T(e)},g=function(){e.onShow&&e.onShow()},h=function(){1===i.length&&l.ZIndexUtils.clear(p.current),e.onHide&&e.onHide()};a.useUnmountEffect((function(){l.ZIndexUtils.clear(p.current)})),c.useImperativeHandle(n,(function(){return{props:e,show:d,replace:E,remove:T,clear:b,getElement:function(){return p.current}}}));var A,O,_=(A=l.ObjectUtils.findDiffKeys(e,U.defaultProps),O=l.classNames("p-toast p-component p-toast-"+e.position,e.className),c.createElement("div",m({ref:p,id:e.id,className:O,style:e.style},A),c.createElement(t.TransitionGroup,null,i&&i.map((function(t){var n=c.createRef();return c.createElement(r.CSSTransition,{nodeRef:n,key:t._pId,classNames:"p-toast-message",unmountOnExit:!0,timeout:{enter:300,exit:300},onEntered:g,onExited:h,options:e.transitionOptions},c.createElement(x,{ref:n,messageInfo:t,onClick:e.onClick,onClose:S,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave}))})))));return c.createElement(o.Portal,{element:_,appendTo:e.appendTo})})));U.displayName="Toast",U.defaultProps={__TYPE:"Toast",id:null,className:null,style:null,baseZIndex:0,position:"top-right",transitionOptions:null,appendTo:"self",onClick:null,onRemove:null,onShow:null,onHide:null,onMouseEnter:null,onMouseLeave:null},exports.Toast=U;
|