primereact 8.7.1 → 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 +88 -156
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -0
- package/autocomplete/autocomplete.esm.js +88 -156
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +88 -156
- 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 +205 -667
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +6 -4
- package/calendar/calendar.esm.js +205 -667
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +205 -667
- 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/column/column.d.ts +1 -0
- 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 +986 -2025
- package/core/core.min.js +18 -18
- 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 +89 -230
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +2 -1
- package/inputnumber/inputnumber.esm.js +89 -230
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +89 -230
- 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 +4 -15
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +3 -3
- package/inputtext/inputtext.esm.js +4 -15
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +4 -15
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +24 -18
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +4 -2
- package/inputtextarea/inputtextarea.esm.js +24 -18
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -20
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +6 -16
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +6 -16
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +6 -16
- package/keyfilter/keyfilter.min.js +1 -1
- 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 +106 -136
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +106 -136
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +107 -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 +2325 -7353
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2325 -7353
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +2325 -7353
- 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 -13
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +0 -13
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -13
- package/ripple/ripple.min.js +1 -1
- 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 +76 -117
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +76 -117
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +76 -117
- 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 +113 -167
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +113 -167
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +113 -167
- 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 +143 -462
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +143 -462
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +143 -462
- 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 +112 -328
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +1 -1
- package/utils/utils.esm.js +112 -328
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +112 -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 +166 -40
|
@@ -29,14 +29,12 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
29
29
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
30
|
for (var i = 1; i < arguments.length; i++) {
|
|
31
31
|
var source = arguments[i];
|
|
32
|
-
|
|
33
32
|
for (var key in source) {
|
|
34
33
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
34
|
target[key] = source[key];
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
|
|
40
38
|
return target;
|
|
41
39
|
};
|
|
42
40
|
return _extends.apply(this, arguments);
|
|
@@ -44,11 +42,9 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
44
42
|
|
|
45
43
|
function _arrayLikeToArray(arr, len) {
|
|
46
44
|
if (len == null || len > arr.length) len = arr.length;
|
|
47
|
-
|
|
48
45
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
49
46
|
arr2[i] = arr[i];
|
|
50
47
|
}
|
|
51
|
-
|
|
52
48
|
return arr2;
|
|
53
49
|
}
|
|
54
50
|
|
|
@@ -82,33 +78,33 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
function _iterableToArrayLimit(arr, i) {
|
|
85
|
-
var _i =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
try {
|
|
95
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
96
|
-
_arr.push(_s.value);
|
|
97
|
-
|
|
98
|
-
if (i && _arr.length === i) break;
|
|
99
|
-
}
|
|
100
|
-
} catch (err) {
|
|
101
|
-
_d = true;
|
|
102
|
-
_e = err;
|
|
103
|
-
} finally {
|
|
81
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
82
|
+
if (null != _i) {
|
|
83
|
+
var _s,
|
|
84
|
+
_e,
|
|
85
|
+
_x,
|
|
86
|
+
_r,
|
|
87
|
+
_arr = [],
|
|
88
|
+
_n = !0,
|
|
89
|
+
_d = !1;
|
|
104
90
|
try {
|
|
105
|
-
if (
|
|
91
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
92
|
+
if (Object(_i) !== _i) return;
|
|
93
|
+
_n = !1;
|
|
94
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
95
|
+
;
|
|
96
|
+
}
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_d = !0, _e = err;
|
|
106
99
|
} finally {
|
|
107
|
-
|
|
100
|
+
try {
|
|
101
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
102
|
+
} finally {
|
|
103
|
+
if (_d) throw _e;
|
|
104
|
+
}
|
|
108
105
|
}
|
|
106
|
+
return _arr;
|
|
109
107
|
}
|
|
110
|
-
|
|
111
|
-
return _arr;
|
|
112
108
|
}
|
|
113
109
|
|
|
114
110
|
function _nonIterableRest() {
|
|
@@ -119,7 +115,34 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
119
115
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
120
116
|
}
|
|
121
117
|
|
|
118
|
+
function _typeof(obj) {
|
|
119
|
+
"@babel/helpers - typeof";
|
|
120
|
+
|
|
121
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
122
|
+
return typeof obj;
|
|
123
|
+
} : function (obj) {
|
|
124
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
125
|
+
}, _typeof(obj);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function _toPrimitive(input, hint) {
|
|
129
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
130
|
+
var prim = input[Symbol.toPrimitive];
|
|
131
|
+
if (prim !== undefined) {
|
|
132
|
+
var res = prim.call(input, hint || "default");
|
|
133
|
+
if (_typeof(res) !== "object") return res;
|
|
134
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
135
|
+
}
|
|
136
|
+
return (hint === "string" ? String : Number)(input);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function _toPropertyKey(arg) {
|
|
140
|
+
var key = _toPrimitive(arg, "string");
|
|
141
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
142
|
+
}
|
|
143
|
+
|
|
122
144
|
function _defineProperty(obj, key, value) {
|
|
145
|
+
key = _toPropertyKey(key);
|
|
123
146
|
if (key in obj) {
|
|
124
147
|
Object.defineProperty(obj, key, {
|
|
125
148
|
value: value,
|
|
@@ -130,18 +153,15 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
130
153
|
} else {
|
|
131
154
|
obj[key] = value;
|
|
132
155
|
}
|
|
133
|
-
|
|
134
156
|
return obj;
|
|
135
157
|
}
|
|
136
158
|
|
|
137
159
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
138
|
-
|
|
139
160
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
140
161
|
var AutoCompletePanel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
141
162
|
var getOptionGroupRenderKey = function getOptionGroupRenderKey(optionGroup) {
|
|
142
163
|
return utils.ObjectUtils.resolveFieldData(optionGroup, props.optionGroupLabel);
|
|
143
164
|
};
|
|
144
|
-
|
|
145
165
|
var createGroupChildren = function createGroupChildren(optionGroup, i, style) {
|
|
146
166
|
var groupChildren = props.getOptionGroupChildren(optionGroup);
|
|
147
167
|
return groupChildren.map(function (item, j) {
|
|
@@ -162,13 +182,11 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
162
182
|
}, content, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
163
183
|
});
|
|
164
184
|
};
|
|
165
|
-
|
|
166
185
|
var createItem = function createItem(suggestion, index) {
|
|
167
186
|
var scrollerOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
168
187
|
var style = {
|
|
169
188
|
height: scrollerOptions.props ? scrollerOptions.props.itemSize : undefined
|
|
170
189
|
};
|
|
171
|
-
|
|
172
190
|
if (props.optionGroupLabel) {
|
|
173
191
|
var content = props.optionGroupTemplate ? utils.ObjectUtils.getJSXElement(props.optionGroupTemplate, suggestion, index) : props.getOptionGroupLabel(suggestion);
|
|
174
192
|
var childrenContent = createGroupChildren(suggestion, index, style);
|
|
@@ -181,7 +199,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
181
199
|
}, content), childrenContent);
|
|
182
200
|
} else {
|
|
183
201
|
var _content = props.itemTemplate ? utils.ObjectUtils.getJSXElement(props.itemTemplate, suggestion, index) : props.field ? utils.ObjectUtils.resolveFieldData(suggestion, props.field) : suggestion;
|
|
184
|
-
|
|
185
202
|
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
186
203
|
key: index,
|
|
187
204
|
role: "option",
|
|
@@ -194,11 +211,9 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
194
211
|
}, _content, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
195
212
|
}
|
|
196
213
|
};
|
|
197
|
-
|
|
198
214
|
var createItems = function createItems() {
|
|
199
215
|
return props.suggestions ? props.suggestions.map(createItem) : null;
|
|
200
216
|
};
|
|
201
|
-
|
|
202
217
|
var createContent = function createContent() {
|
|
203
218
|
if (props.showEmptyMessage && utils.ObjectUtils.isEmpty(props.suggestions)) {
|
|
204
219
|
var emptyMessage = props.emptyMessage || PrimeReact.localeOption('emptyMessage');
|
|
@@ -208,7 +223,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
208
223
|
className: "p-autocomplete-item"
|
|
209
224
|
}, emptyMessage));
|
|
210
225
|
}
|
|
211
|
-
|
|
212
226
|
if (props.virtualScrollerOptions) {
|
|
213
227
|
var virtualScrollerProps = _objectSpread(_objectSpread({}, props.virtualScrollerOptions), {
|
|
214
228
|
style: _objectSpread(_objectSpread({}, props.virtualScrollerOptions.style), {
|
|
@@ -229,7 +243,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
229
243
|
}, options.children);
|
|
230
244
|
}
|
|
231
245
|
});
|
|
232
|
-
|
|
233
246
|
return /*#__PURE__*/React__namespace.createElement(virtualscroller.VirtualScroller, _extends({
|
|
234
247
|
ref: props.virtualScrollerRef
|
|
235
248
|
}, virtualScrollerProps));
|
|
@@ -242,14 +255,11 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
242
255
|
}, items);
|
|
243
256
|
}
|
|
244
257
|
};
|
|
245
|
-
|
|
246
258
|
var createElement = function createElement() {
|
|
247
259
|
var className = utils.classNames('p-autocomplete-panel p-component', props.panelClassName);
|
|
248
|
-
|
|
249
260
|
var style = _objectSpread({
|
|
250
261
|
maxHeight: props.scrollHeight
|
|
251
262
|
}, props.panelStyle || {});
|
|
252
|
-
|
|
253
263
|
var content = createContent();
|
|
254
264
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
255
265
|
nodeRef: ref,
|
|
@@ -273,7 +283,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
273
283
|
onClick: props.onClick
|
|
274
284
|
}, content));
|
|
275
285
|
};
|
|
276
|
-
|
|
277
286
|
var element = createElement();
|
|
278
287
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
279
288
|
element: element,
|
|
@@ -284,25 +293,21 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
284
293
|
|
|
285
294
|
var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
286
295
|
var _React$useState = React__namespace.useState(props.id),
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
296
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
297
|
+
idState = _React$useState2[0],
|
|
298
|
+
setIdState = _React$useState2[1];
|
|
291
299
|
var _React$useState3 = React__namespace.useState(false),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
300
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
301
|
+
searchingState = _React$useState4[0],
|
|
302
|
+
setSearchingState = _React$useState4[1];
|
|
296
303
|
var _React$useState5 = React__namespace.useState(false),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
304
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
305
|
+
focusedState = _React$useState6[0],
|
|
306
|
+
setFocusedState = _React$useState6[1];
|
|
301
307
|
var _React$useState7 = React__namespace.useState(false),
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
308
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
309
|
+
overlayVisibleState = _React$useState8[0],
|
|
310
|
+
setOverlayVisibleState = _React$useState8[1];
|
|
306
311
|
var elementRef = React__namespace.useRef(null);
|
|
307
312
|
var overlayRef = React__namespace.useRef(null);
|
|
308
313
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
@@ -310,40 +315,33 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
310
315
|
var virtualScrollerRef = React__namespace.useRef(null);
|
|
311
316
|
var timeout = React__namespace.useRef(null);
|
|
312
317
|
var selectedItem = React__namespace.useRef(null);
|
|
313
|
-
|
|
314
318
|
var _useOverlayListener = hooks.useOverlayListener({
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
+
target: elementRef,
|
|
320
|
+
overlay: overlayRef,
|
|
321
|
+
listener: function listener(event, _ref) {
|
|
322
|
+
var type = _ref.type,
|
|
319
323
|
valid = _ref.valid;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
unbindOverlayListener = _useOverlayListener2[1];
|
|
330
|
-
|
|
324
|
+
if (valid) {
|
|
325
|
+
type === 'outside' ? !isInputClicked(event) && hide() : hide();
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
when: overlayVisibleState
|
|
329
|
+
}),
|
|
330
|
+
_useOverlayListener2 = _slicedToArray(_useOverlayListener, 2),
|
|
331
|
+
bindOverlayListener = _useOverlayListener2[0],
|
|
332
|
+
unbindOverlayListener = _useOverlayListener2[1];
|
|
331
333
|
var isInputClicked = function isInputClicked(event) {
|
|
332
334
|
return props.multiple ? event.target === multiContainerRef.current || multiContainerRef.current.contains(event.target) : event.target === inputRef.current;
|
|
333
335
|
};
|
|
334
|
-
|
|
335
336
|
var onInputChange = function onInputChange(event) {
|
|
336
337
|
//Cancel the search request if user types within the timeout
|
|
337
338
|
if (timeout.current) {
|
|
338
339
|
clearTimeout(timeout.current);
|
|
339
340
|
}
|
|
340
|
-
|
|
341
341
|
var query = event.target.value;
|
|
342
|
-
|
|
343
342
|
if (!props.multiple) {
|
|
344
343
|
updateModel(event, query);
|
|
345
344
|
}
|
|
346
|
-
|
|
347
345
|
if (utils.ObjectUtils.isEmpty(query)) {
|
|
348
346
|
hide();
|
|
349
347
|
props.onClear && props.onClear(event);
|
|
@@ -357,18 +355,16 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
357
355
|
}
|
|
358
356
|
}
|
|
359
357
|
};
|
|
360
|
-
|
|
361
358
|
var search = function search(event, query, source) {
|
|
362
359
|
//allow empty string but not undefined or null
|
|
363
360
|
if (query === undefined || query === null) {
|
|
364
361
|
return;
|
|
365
|
-
}
|
|
366
|
-
|
|
362
|
+
}
|
|
367
363
|
|
|
364
|
+
//do not search blank values on input change
|
|
368
365
|
if (source === 'input' && query.trim().length === 0) {
|
|
369
366
|
return;
|
|
370
367
|
}
|
|
371
|
-
|
|
372
368
|
if (props.completeMethod) {
|
|
373
369
|
setSearchingState(true);
|
|
374
370
|
props.completeMethod({
|
|
@@ -377,39 +373,36 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
377
373
|
});
|
|
378
374
|
}
|
|
379
375
|
};
|
|
380
|
-
|
|
381
376
|
var selectItem = function selectItem(event, option, preventInputFocus) {
|
|
382
377
|
if (props.multiple) {
|
|
383
378
|
inputRef.current.value = '';
|
|
384
|
-
|
|
385
379
|
if (!isSelected(option)) {
|
|
386
|
-
|
|
387
|
-
|
|
380
|
+
// allows empty value/selectionlimit and within sectionlimit
|
|
381
|
+
if (!props.value || !props.selectionLimit || props.value.length < props.selectionLimit) {
|
|
382
|
+
var newValue = props.value ? [].concat(_toConsumableArray(props.value), [option]) : [option];
|
|
383
|
+
updateModel(event, newValue);
|
|
384
|
+
}
|
|
388
385
|
}
|
|
389
386
|
} else {
|
|
390
387
|
updateInputField(option);
|
|
391
388
|
updateModel(event, option);
|
|
392
389
|
}
|
|
393
|
-
|
|
394
390
|
if (props.onSelect) {
|
|
395
391
|
props.onSelect({
|
|
396
392
|
originalEvent: event,
|
|
397
393
|
value: option
|
|
398
394
|
});
|
|
399
395
|
}
|
|
400
|
-
|
|
401
396
|
if (!preventInputFocus) {
|
|
402
397
|
utils.DomHandler.focus(inputRef.current);
|
|
403
398
|
hide();
|
|
404
399
|
}
|
|
405
400
|
};
|
|
406
|
-
|
|
407
401
|
var updateModel = function updateModel(event, value) {
|
|
408
402
|
// #2176 only call change if value actually changed
|
|
409
|
-
if (selectedItem && selectedItem.current
|
|
403
|
+
if (selectedItem && utils.ObjectUtils.deepEquals(selectedItem.current, value)) {
|
|
410
404
|
return;
|
|
411
405
|
}
|
|
412
|
-
|
|
413
406
|
if (props.onChange) {
|
|
414
407
|
props.onChange({
|
|
415
408
|
originalEvent: event,
|
|
@@ -423,10 +416,8 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
423
416
|
}
|
|
424
417
|
});
|
|
425
418
|
}
|
|
426
|
-
|
|
427
419
|
selectedItem.current = value;
|
|
428
420
|
};
|
|
429
|
-
|
|
430
421
|
var formatValue = function formatValue(value) {
|
|
431
422
|
if (value) {
|
|
432
423
|
if (typeof value === 'string') {
|
|
@@ -436,74 +427,59 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
436
427
|
return resolvedFieldData ? resolvedFieldData : value;
|
|
437
428
|
} else if (props.field) {
|
|
438
429
|
var _resolvedFieldData = utils.ObjectUtils.resolveFieldData(value, props.field);
|
|
439
|
-
|
|
440
430
|
return _resolvedFieldData !== null && _resolvedFieldData !== undefined ? _resolvedFieldData : value;
|
|
441
431
|
} else {
|
|
442
432
|
return value;
|
|
443
433
|
}
|
|
444
434
|
}
|
|
445
|
-
|
|
446
435
|
return '';
|
|
447
436
|
};
|
|
448
|
-
|
|
449
437
|
var updateInputField = function updateInputField(value) {
|
|
450
438
|
inputRef.current.value = formatValue(value);
|
|
451
439
|
};
|
|
452
|
-
|
|
453
440
|
var show = function show() {
|
|
454
441
|
setOverlayVisibleState(true);
|
|
455
442
|
};
|
|
456
|
-
|
|
457
443
|
var hide = function hide() {
|
|
458
444
|
setOverlayVisibleState(false);
|
|
459
445
|
setSearchingState(false);
|
|
460
446
|
};
|
|
461
|
-
|
|
462
447
|
var onOverlayEnter = function onOverlayEnter() {
|
|
463
448
|
utils.ZIndexUtils.set('overlay', overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
|
|
464
449
|
alignOverlay();
|
|
465
450
|
};
|
|
466
|
-
|
|
467
451
|
var onOverlayEntering = function onOverlayEntering() {
|
|
468
452
|
if (props.autoHighlight && props.suggestions && props.suggestions.length) {
|
|
469
453
|
var element = getScrollableElement().firstChild.firstChild;
|
|
470
454
|
utils.DomHandler.addClass(element, 'p-highlight');
|
|
471
455
|
}
|
|
472
456
|
};
|
|
473
|
-
|
|
474
457
|
var onOverlayEntered = function onOverlayEntered() {
|
|
475
458
|
bindOverlayListener();
|
|
476
459
|
props.onShow && props.onShow();
|
|
477
460
|
};
|
|
478
|
-
|
|
479
461
|
var onOverlayExit = function onOverlayExit() {
|
|
480
462
|
unbindOverlayListener();
|
|
481
463
|
};
|
|
482
|
-
|
|
483
464
|
var onOverlayExited = function onOverlayExited() {
|
|
484
465
|
utils.ZIndexUtils.clear(overlayRef.current);
|
|
485
466
|
props.onHide && props.onHide();
|
|
486
467
|
};
|
|
487
|
-
|
|
488
468
|
var alignOverlay = function alignOverlay() {
|
|
489
469
|
var target = props.multiple ? multiContainerRef.current : inputRef.current;
|
|
490
470
|
utils.DomHandler.alignOverlay(overlayRef.current, target, props.appendTo || PrimeReact__default["default"].appendTo);
|
|
491
471
|
};
|
|
492
|
-
|
|
493
472
|
var onPanelClick = function onPanelClick(event) {
|
|
494
473
|
overlayservice.OverlayService.emit('overlay-click', {
|
|
495
474
|
originalEvent: event,
|
|
496
475
|
target: elementRef.current
|
|
497
476
|
});
|
|
498
477
|
};
|
|
499
|
-
|
|
500
478
|
var onDropdownClick = function onDropdownClick(event) {
|
|
501
479
|
if (props.dropdownAutoFocus) {
|
|
502
480
|
utils.DomHandler.focus(inputRef.current, props.dropdownAutoFocus);
|
|
503
481
|
}
|
|
504
|
-
|
|
505
482
|
if (props.dropdownMode === 'blank') search(event, '', 'dropdown');else if (props.dropdownMode === 'current') search(event, inputRef.current.value, 'dropdown');
|
|
506
|
-
|
|
507
483
|
if (props.onDropdownClick) {
|
|
508
484
|
props.onDropdownClick({
|
|
509
485
|
originalEvent: event,
|
|
@@ -511,14 +487,12 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
511
487
|
});
|
|
512
488
|
}
|
|
513
489
|
};
|
|
514
|
-
|
|
515
490
|
var removeItem = function removeItem(event, index) {
|
|
516
491
|
var removedValue = props.value[index];
|
|
517
492
|
var newValue = props.value.filter(function (_, i) {
|
|
518
493
|
return index !== i;
|
|
519
494
|
});
|
|
520
495
|
updateModel(event, newValue);
|
|
521
|
-
|
|
522
496
|
if (props.onUnselect) {
|
|
523
497
|
props.onUnselect({
|
|
524
498
|
originalEvent: event,
|
|
@@ -526,17 +500,14 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
526
500
|
});
|
|
527
501
|
}
|
|
528
502
|
};
|
|
529
|
-
|
|
530
503
|
var onInputKeyDown = function onInputKeyDown(event) {
|
|
531
504
|
if (overlayVisibleState) {
|
|
532
505
|
var highlightItem = utils.DomHandler.findSingle(overlayRef.current, 'li.p-highlight');
|
|
533
|
-
|
|
534
506
|
switch (event.which) {
|
|
535
507
|
//down
|
|
536
508
|
case 40:
|
|
537
509
|
if (highlightItem) {
|
|
538
510
|
var nextElement = findNextItem(highlightItem);
|
|
539
|
-
|
|
540
511
|
if (nextElement) {
|
|
541
512
|
utils.DomHandler.addClass(nextElement, 'p-highlight');
|
|
542
513
|
utils.DomHandler.removeClass(highlightItem, 'p-highlight');
|
|
@@ -544,61 +515,53 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
544
515
|
}
|
|
545
516
|
} else {
|
|
546
517
|
highlightItem = utils.DomHandler.findSingle(overlayRef.current, 'li');
|
|
547
|
-
|
|
548
518
|
if (utils.DomHandler.hasClass(highlightItem, 'p-autocomplete-item-group')) {
|
|
549
519
|
highlightItem = findNextItem(highlightItem);
|
|
550
520
|
}
|
|
551
|
-
|
|
552
521
|
if (highlightItem) {
|
|
553
522
|
utils.DomHandler.addClass(highlightItem, 'p-highlight');
|
|
554
523
|
}
|
|
555
524
|
}
|
|
556
|
-
|
|
557
525
|
event.preventDefault();
|
|
558
526
|
break;
|
|
559
|
-
//up
|
|
560
527
|
|
|
528
|
+
//up
|
|
561
529
|
case 38:
|
|
562
530
|
if (highlightItem) {
|
|
563
531
|
var previousElement = findPrevItem(highlightItem);
|
|
564
|
-
|
|
565
532
|
if (previousElement) {
|
|
566
533
|
utils.DomHandler.addClass(previousElement, 'p-highlight');
|
|
567
534
|
utils.DomHandler.removeClass(highlightItem, 'p-highlight');
|
|
568
535
|
utils.DomHandler.scrollInView(getScrollableElement(), previousElement);
|
|
569
536
|
}
|
|
570
537
|
}
|
|
571
|
-
|
|
572
538
|
event.preventDefault();
|
|
573
539
|
break;
|
|
574
|
-
//enter
|
|
575
540
|
|
|
541
|
+
//enter
|
|
576
542
|
case 13:
|
|
577
543
|
if (highlightItem) {
|
|
578
544
|
selectHighlightItem(event, highlightItem);
|
|
579
545
|
hide();
|
|
580
546
|
event.preventDefault();
|
|
581
547
|
}
|
|
582
|
-
|
|
583
548
|
break;
|
|
584
|
-
//escape
|
|
585
549
|
|
|
550
|
+
//escape
|
|
586
551
|
case 27:
|
|
587
552
|
hide();
|
|
588
553
|
event.preventDefault();
|
|
589
554
|
break;
|
|
590
|
-
//tab
|
|
591
555
|
|
|
556
|
+
//tab
|
|
592
557
|
case 9:
|
|
593
558
|
if (highlightItem) {
|
|
594
559
|
selectHighlightItem(event, highlightItem);
|
|
595
560
|
}
|
|
596
|
-
|
|
597
561
|
hide();
|
|
598
562
|
break;
|
|
599
563
|
}
|
|
600
564
|
}
|
|
601
|
-
|
|
602
565
|
if (props.multiple) {
|
|
603
566
|
switch (event.which) {
|
|
604
567
|
//backspace
|
|
@@ -607,7 +570,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
607
570
|
var removedValue = props.value[props.value.length - 1];
|
|
608
571
|
var newValue = props.value.slice(0, -1);
|
|
609
572
|
updateModel(event, newValue);
|
|
610
|
-
|
|
611
573
|
if (props.onUnselect) {
|
|
612
574
|
props.onUnselect({
|
|
613
575
|
originalEvent: event,
|
|
@@ -615,12 +577,10 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
615
577
|
});
|
|
616
578
|
}
|
|
617
579
|
}
|
|
618
|
-
|
|
619
580
|
break;
|
|
620
581
|
}
|
|
621
582
|
}
|
|
622
583
|
};
|
|
623
|
-
|
|
624
584
|
var selectHighlightItem = function selectHighlightItem(event, item) {
|
|
625
585
|
if (props.optionGroupLabel) {
|
|
626
586
|
var optionGroup = props.suggestions[item.dataset.group];
|
|
@@ -629,29 +589,24 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
629
589
|
selectItem(event, props.suggestions[utils.DomHandler.index(item)]);
|
|
630
590
|
}
|
|
631
591
|
};
|
|
632
|
-
|
|
633
592
|
var findNextItem = function findNextItem(item) {
|
|
634
593
|
var nextItem = item.nextElementSibling;
|
|
635
594
|
return nextItem ? utils.DomHandler.hasClass(nextItem, 'p-autocomplete-item-group') ? findNextItem(nextItem) : nextItem : null;
|
|
636
595
|
};
|
|
637
|
-
|
|
638
596
|
var findPrevItem = function findPrevItem(item) {
|
|
639
597
|
var prevItem = item.previousElementSibling;
|
|
640
598
|
return prevItem ? utils.DomHandler.hasClass(prevItem, 'p-autocomplete-item-group') ? findPrevItem(prevItem) : prevItem : null;
|
|
641
599
|
};
|
|
642
|
-
|
|
643
600
|
var onInputFocus = function onInputFocus(event) {
|
|
644
601
|
setFocusedState(true);
|
|
645
602
|
props.onFocus && props.onFocus(event);
|
|
646
603
|
};
|
|
647
|
-
|
|
648
604
|
var forceItemSelection = function forceItemSelection(event) {
|
|
649
605
|
var inputValue = event.target.value.trim();
|
|
650
606
|
var item = (props.suggestions || []).find(function (it) {
|
|
651
607
|
var value = props.field ? utils.ObjectUtils.resolveFieldData(it, props.field) : it;
|
|
652
608
|
return value && inputValue === value.trim();
|
|
653
609
|
});
|
|
654
|
-
|
|
655
610
|
if (item) {
|
|
656
611
|
selectItem(event, item, true);
|
|
657
612
|
} else {
|
|
@@ -660,50 +615,39 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
660
615
|
props.onClear && props.onClear(event);
|
|
661
616
|
}
|
|
662
617
|
};
|
|
663
|
-
|
|
664
618
|
var onInputBlur = function onInputBlur(event) {
|
|
665
619
|
setFocusedState(false);
|
|
666
|
-
|
|
667
620
|
if (props.forceSelection) {
|
|
668
621
|
forceItemSelection(event);
|
|
669
622
|
}
|
|
670
|
-
|
|
671
623
|
props.onBlur && props.onBlur(event);
|
|
672
624
|
};
|
|
673
|
-
|
|
674
625
|
var onMultiContainerClick = function onMultiContainerClick(event) {
|
|
675
626
|
utils.DomHandler.focus(inputRef.current);
|
|
676
627
|
props.onClick && props.onClick(event);
|
|
677
628
|
};
|
|
678
|
-
|
|
679
629
|
var onMultiInputFocus = function onMultiInputFocus(event) {
|
|
680
630
|
onInputFocus(event);
|
|
681
631
|
utils.DomHandler.addClass(multiContainerRef.current, 'p-focus');
|
|
682
632
|
};
|
|
683
|
-
|
|
684
633
|
var onMultiInputBlur = function onMultiInputBlur(event) {
|
|
685
634
|
onInputBlur(event);
|
|
686
635
|
utils.DomHandler.removeClass(multiContainerRef.current, 'p-focus');
|
|
687
636
|
};
|
|
688
|
-
|
|
689
637
|
var isSelected = function isSelected(val) {
|
|
690
638
|
return props.value ? props.value.some(function (v) {
|
|
691
639
|
return utils.ObjectUtils.equals(v, val);
|
|
692
640
|
}) : false;
|
|
693
641
|
};
|
|
694
|
-
|
|
695
642
|
var getScrollableElement = function getScrollableElement() {
|
|
696
643
|
return virtualScrollerRef.current ? overlayRef.current.firstChild : overlayRef.current;
|
|
697
644
|
};
|
|
698
|
-
|
|
699
645
|
var getOptionGroupLabel = function getOptionGroupLabel(optionGroup) {
|
|
700
646
|
return props.optionGroupLabel ? utils.ObjectUtils.resolveFieldData(optionGroup, props.optionGroupLabel) : optionGroup;
|
|
701
647
|
};
|
|
702
|
-
|
|
703
648
|
var getOptionGroupChildren = function getOptionGroupChildren(optionGroup) {
|
|
704
649
|
return utils.ObjectUtils.resolveFieldData(optionGroup, props.optionGroupChildren);
|
|
705
650
|
};
|
|
706
|
-
|
|
707
651
|
React__namespace.useEffect(function () {
|
|
708
652
|
utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
709
653
|
}, [inputRef, props.inputRef]);
|
|
@@ -711,7 +655,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
711
655
|
if (!idState) {
|
|
712
656
|
setIdState(utils.UniqueComponentId());
|
|
713
657
|
}
|
|
714
|
-
|
|
715
658
|
if (props.autoFocus) {
|
|
716
659
|
utils.DomHandler.focus(inputRef.current, props.autoFocus);
|
|
717
660
|
}
|
|
@@ -731,7 +674,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
731
674
|
if (timeout.current) {
|
|
732
675
|
clearTimeout(timeout.current);
|
|
733
676
|
}
|
|
734
|
-
|
|
735
677
|
utils.ZIndexUtils.clear(overlayRef.current);
|
|
736
678
|
});
|
|
737
679
|
React__namespace.useImperativeHandle(ref, function () {
|
|
@@ -754,7 +696,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
754
696
|
}
|
|
755
697
|
};
|
|
756
698
|
});
|
|
757
|
-
|
|
758
699
|
var createSimpleAutoComplete = function createSimpleAutoComplete() {
|
|
759
700
|
var value = formatValue(props.value);
|
|
760
701
|
var ariaControls = overlayVisibleState ? idState + '_list' : null;
|
|
@@ -793,7 +734,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
793
734
|
onDoubleClick: props.onDblClick
|
|
794
735
|
}, ariaProps));
|
|
795
736
|
};
|
|
796
|
-
|
|
797
737
|
var createChips = function createChips() {
|
|
798
738
|
if (utils.ObjectUtils.isNotEmpty(props.value)) {
|
|
799
739
|
return props.value.map(function (val, index) {
|
|
@@ -813,10 +753,8 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
813
753
|
}));
|
|
814
754
|
});
|
|
815
755
|
}
|
|
816
|
-
|
|
817
756
|
return null;
|
|
818
757
|
};
|
|
819
|
-
|
|
820
758
|
var createMultiInput = function createMultiInput() {
|
|
821
759
|
var ariaControls = overlayVisibleState ? idState + '_list' : null;
|
|
822
760
|
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
@@ -847,7 +785,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
847
785
|
onBlur: onMultiInputBlur
|
|
848
786
|
}, ariaProps)));
|
|
849
787
|
};
|
|
850
|
-
|
|
851
788
|
var createMultipleAutoComplete = function createMultipleAutoComplete() {
|
|
852
789
|
var className = utils.classNames('p-autocomplete-multiple-container p-component p-inputtext', {
|
|
853
790
|
'p-disabled': props.disabled
|
|
@@ -863,7 +800,6 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
863
800
|
onDoubleClick: props.onDblClick
|
|
864
801
|
}, tokens, input);
|
|
865
802
|
};
|
|
866
|
-
|
|
867
803
|
var createDropdown = function createDropdown() {
|
|
868
804
|
if (props.dropdown) {
|
|
869
805
|
var ariaLabel = props.dropdownAriaLabel || props.placeholder || PrimeReact.localeOption('choose');
|
|
@@ -876,24 +812,19 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
876
812
|
"aria-label": ariaLabel
|
|
877
813
|
});
|
|
878
814
|
}
|
|
879
|
-
|
|
880
815
|
return null;
|
|
881
816
|
};
|
|
882
|
-
|
|
883
817
|
var createLoader = function createLoader() {
|
|
884
818
|
if (searchingState) {
|
|
885
819
|
return /*#__PURE__*/React__namespace.createElement("i", {
|
|
886
820
|
className: "p-autocomplete-loader pi pi-spinner pi-spin"
|
|
887
821
|
});
|
|
888
822
|
}
|
|
889
|
-
|
|
890
823
|
return null;
|
|
891
824
|
};
|
|
892
|
-
|
|
893
825
|
var createInput = function createInput() {
|
|
894
826
|
return props.multiple ? createMultipleAutoComplete() : createSimpleAutoComplete();
|
|
895
827
|
};
|
|
896
|
-
|
|
897
828
|
var listId = idState + '_list';
|
|
898
829
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
899
830
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, AutoComplete.defaultProps);
|
|
@@ -986,6 +917,7 @@ this.primereact.autocomplete = (function (exports, React, PrimeReact, button, ho
|
|
|
986
917
|
removeIcon: 'pi pi-times-circle',
|
|
987
918
|
scrollHeight: '200px',
|
|
988
919
|
selectedItemTemplate: null,
|
|
920
|
+
selectionLimit: null,
|
|
989
921
|
showEmptyMessage: false,
|
|
990
922
|
size: null,
|
|
991
923
|
style: null,
|