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/chips/chips.js
CHANGED
|
@@ -26,14 +26,12 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, 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);
|
|
@@ -41,11 +39,9 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
41
39
|
|
|
42
40
|
function _arrayLikeToArray(arr, len) {
|
|
43
41
|
if (len == null || len > arr.length) len = arr.length;
|
|
44
|
-
|
|
45
42
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
46
43
|
arr2[i] = arr[i];
|
|
47
44
|
}
|
|
48
|
-
|
|
49
45
|
return arr2;
|
|
50
46
|
}
|
|
51
47
|
|
|
@@ -79,33 +75,33 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
function _iterableToArrayLimit(arr, i) {
|
|
82
|
-
var _i =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
try {
|
|
92
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
93
|
-
_arr.push(_s.value);
|
|
94
|
-
|
|
95
|
-
if (i && _arr.length === i) break;
|
|
96
|
-
}
|
|
97
|
-
} catch (err) {
|
|
98
|
-
_d = true;
|
|
99
|
-
_e = err;
|
|
100
|
-
} finally {
|
|
78
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
79
|
+
if (null != _i) {
|
|
80
|
+
var _s,
|
|
81
|
+
_e,
|
|
82
|
+
_x,
|
|
83
|
+
_r,
|
|
84
|
+
_arr = [],
|
|
85
|
+
_n = !0,
|
|
86
|
+
_d = !1;
|
|
101
87
|
try {
|
|
102
|
-
if (
|
|
88
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
89
|
+
if (Object(_i) !== _i) return;
|
|
90
|
+
_n = !1;
|
|
91
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
|
|
92
|
+
;
|
|
93
|
+
}
|
|
94
|
+
} catch (err) {
|
|
95
|
+
_d = !0, _e = err;
|
|
103
96
|
} finally {
|
|
104
|
-
|
|
97
|
+
try {
|
|
98
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
99
|
+
} finally {
|
|
100
|
+
if (_d) throw _e;
|
|
101
|
+
}
|
|
105
102
|
}
|
|
103
|
+
return _arr;
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
return _arr;
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
function _nonIterableRest() {
|
|
@@ -118,34 +114,27 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
118
114
|
|
|
119
115
|
var Chips = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
120
116
|
var _React$useState = React__namespace.useState(false),
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
118
|
+
focusedState = _React$useState2[0],
|
|
119
|
+
setFocusedState = _React$useState2[1];
|
|
125
120
|
var elementRef = React__namespace.useRef(null);
|
|
126
121
|
var listRef = React__namespace.useRef(null);
|
|
127
122
|
var inputRef = React__namespace.useRef(props.inputRef);
|
|
128
|
-
|
|
129
123
|
var removeItem = function removeItem(event, index) {
|
|
130
124
|
if (props.disabled && props.readOnly) {
|
|
131
125
|
return;
|
|
132
126
|
}
|
|
133
|
-
|
|
134
127
|
var values = _toConsumableArray(props.value);
|
|
135
|
-
|
|
136
128
|
var removedItem = values.splice(index, 1);
|
|
137
|
-
|
|
138
129
|
if (!isRemovable(removedItem, index)) {
|
|
139
130
|
return;
|
|
140
131
|
}
|
|
141
|
-
|
|
142
132
|
if (props.onRemove) {
|
|
143
133
|
props.onRemove({
|
|
144
134
|
originalEvent: event,
|
|
145
135
|
value: removedItem
|
|
146
136
|
});
|
|
147
137
|
}
|
|
148
|
-
|
|
149
138
|
if (props.onChange) {
|
|
150
139
|
props.onChange({
|
|
151
140
|
originalEvent: event,
|
|
@@ -160,75 +149,62 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
160
149
|
});
|
|
161
150
|
}
|
|
162
151
|
};
|
|
163
|
-
|
|
164
152
|
var addItem = function addItem(event, item, preventDefault) {
|
|
165
153
|
if (item && item.trim().length) {
|
|
166
154
|
var values = props.value ? _toConsumableArray(props.value) : [];
|
|
167
|
-
|
|
168
155
|
if (props.allowDuplicate || values.indexOf(item) === -1) {
|
|
169
156
|
var allowAddition = true;
|
|
170
|
-
|
|
171
157
|
if (props.onAdd) {
|
|
172
158
|
allowAddition = props.onAdd({
|
|
173
159
|
originalEvent: event,
|
|
174
160
|
value: item
|
|
175
161
|
});
|
|
176
162
|
}
|
|
177
|
-
|
|
178
163
|
if (allowAddition !== false) {
|
|
179
164
|
values.push(item);
|
|
180
165
|
}
|
|
181
166
|
}
|
|
182
|
-
|
|
183
167
|
updateInput(event, values, preventDefault);
|
|
184
168
|
}
|
|
185
169
|
};
|
|
186
|
-
|
|
187
170
|
var onWrapperClick = function onWrapperClick() {
|
|
188
171
|
utils.DomHandler.focus(inputRef.current);
|
|
189
172
|
};
|
|
190
|
-
|
|
191
173
|
var onKeyDown = function onKeyDown(event) {
|
|
192
174
|
var inputValue = event.target.value;
|
|
193
175
|
var values = props.value || [];
|
|
194
|
-
props.onKeyDown && props.onKeyDown(event);
|
|
176
|
+
props.onKeyDown && props.onKeyDown(event);
|
|
195
177
|
|
|
178
|
+
// do not continue if the user defined keydown wants to prevent
|
|
196
179
|
if (event.defaultPrevented) {
|
|
197
180
|
return;
|
|
198
181
|
}
|
|
199
|
-
|
|
200
182
|
switch (event.which) {
|
|
201
183
|
//backspace
|
|
202
184
|
case 8:
|
|
203
185
|
if (inputRef.current.value.length === 0 && values.length > 0) {
|
|
204
186
|
removeItem(event, values.length - 1);
|
|
205
187
|
}
|
|
206
|
-
|
|
207
188
|
break;
|
|
208
|
-
//enter
|
|
209
189
|
|
|
190
|
+
//enter
|
|
210
191
|
case 13:
|
|
211
192
|
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
212
193
|
addItem(event, inputValue, true);
|
|
213
194
|
}
|
|
214
|
-
|
|
215
195
|
break;
|
|
216
|
-
|
|
217
196
|
default:
|
|
218
197
|
if (props.keyfilter) {
|
|
219
198
|
keyfilter.KeyFilter.onKeyPress(event, props.keyfilter);
|
|
220
199
|
}
|
|
221
|
-
|
|
222
200
|
if (isMaxedOut()) {
|
|
223
201
|
event.preventDefault();
|
|
224
202
|
} else if (props.separator === ',' && event.which === 188) {
|
|
225
203
|
addItem(event, inputValue, true);
|
|
226
204
|
}
|
|
227
|
-
|
|
228
205
|
break;
|
|
229
206
|
}
|
|
230
207
|
};
|
|
231
|
-
|
|
232
208
|
var updateInput = function updateInput(event, items, preventDefault) {
|
|
233
209
|
if (props.onChange) {
|
|
234
210
|
props.onChange({
|
|
@@ -243,19 +219,15 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
243
219
|
}
|
|
244
220
|
});
|
|
245
221
|
}
|
|
246
|
-
|
|
247
222
|
inputRef.current.value = '';
|
|
248
223
|
preventDefault && event.preventDefault();
|
|
249
224
|
};
|
|
250
|
-
|
|
251
225
|
var onPaste = function onPaste(event) {
|
|
252
226
|
if (props.separator) {
|
|
253
227
|
var pastedData = (event.clipboardData || window['clipboardData']).getData('Text');
|
|
254
|
-
|
|
255
228
|
if (props.keyfilter) {
|
|
256
229
|
keyfilter.KeyFilter.onPaste(event, props.keyfilter);
|
|
257
230
|
}
|
|
258
|
-
|
|
259
231
|
if (pastedData) {
|
|
260
232
|
var values = props.value || [];
|
|
261
233
|
var pastedValues = pastedData.split(props.separator);
|
|
@@ -267,35 +239,28 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
267
239
|
}
|
|
268
240
|
}
|
|
269
241
|
};
|
|
270
|
-
|
|
271
242
|
var onFocus = function onFocus(event) {
|
|
272
243
|
setFocusedState(true);
|
|
273
244
|
props.onFocus && props.onFocus(event);
|
|
274
245
|
};
|
|
275
|
-
|
|
276
246
|
var onBlur = function onBlur(event) {
|
|
277
247
|
if (props.addOnBlur) {
|
|
278
248
|
var inputValue = event.target.value;
|
|
279
249
|
var values = props.value || [];
|
|
280
|
-
|
|
281
250
|
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
282
251
|
addItem(event, inputValue, true);
|
|
283
252
|
}
|
|
284
253
|
}
|
|
285
|
-
|
|
286
254
|
setFocusedState(false);
|
|
287
255
|
props.onBlur && props.onBlur(event);
|
|
288
256
|
};
|
|
289
|
-
|
|
290
257
|
var isMaxedOut = function isMaxedOut() {
|
|
291
258
|
return props.max && props.value && props.max === props.value.length;
|
|
292
259
|
};
|
|
293
|
-
|
|
294
260
|
var currentValue = inputRef.current && inputRef.current.value;
|
|
295
261
|
var isFilled = React__namespace.useMemo(function () {
|
|
296
262
|
return utils.ObjectUtils.isNotEmpty(props.value) || utils.ObjectUtils.isNotEmpty(currentValue);
|
|
297
263
|
}, [props.value, currentValue]);
|
|
298
|
-
|
|
299
264
|
var isRemovable = function isRemovable(value, index) {
|
|
300
265
|
return utils.ObjectUtils.getPropValue(props.removable, {
|
|
301
266
|
value: value,
|
|
@@ -303,7 +268,6 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
303
268
|
props: props
|
|
304
269
|
});
|
|
305
270
|
};
|
|
306
|
-
|
|
307
271
|
React__namespace.useImperativeHandle(ref, function () {
|
|
308
272
|
return {
|
|
309
273
|
props: props,
|
|
@@ -318,7 +282,6 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
318
282
|
React__namespace.useEffect(function () {
|
|
319
283
|
utils.ObjectUtils.combinedRefs(inputRef, props.inputRef);
|
|
320
284
|
}, [inputRef, props.inputRef]);
|
|
321
|
-
|
|
322
285
|
var createRemoveIcon = function createRemoveIcon(value, index) {
|
|
323
286
|
if (!props.disabled && !props.readOnly && isRemovable(value, index)) {
|
|
324
287
|
return /*#__PURE__*/React__namespace.createElement("span", {
|
|
@@ -328,10 +291,8 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
328
291
|
}
|
|
329
292
|
});
|
|
330
293
|
}
|
|
331
|
-
|
|
332
294
|
return null;
|
|
333
295
|
};
|
|
334
|
-
|
|
335
296
|
var createItem = function createItem(value, index) {
|
|
336
297
|
var content = props.itemTemplate ? props.itemTemplate(value) : value;
|
|
337
298
|
var label = /*#__PURE__*/React__namespace.createElement("span", {
|
|
@@ -343,7 +304,6 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
343
304
|
className: "p-chips-token p-highlight"
|
|
344
305
|
}, label, icon);
|
|
345
306
|
};
|
|
346
|
-
|
|
347
307
|
var createInput = function createInput() {
|
|
348
308
|
return /*#__PURE__*/React__namespace.createElement("li", {
|
|
349
309
|
className: "p-chips-input-token"
|
|
@@ -361,11 +321,9 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
361
321
|
readOnly: props.readOnly
|
|
362
322
|
}, ariaProps)));
|
|
363
323
|
};
|
|
364
|
-
|
|
365
324
|
var createItems = function createItems() {
|
|
366
325
|
return props.value ? props.value.map(createItem) : null;
|
|
367
326
|
};
|
|
368
|
-
|
|
369
327
|
var createList = function createList() {
|
|
370
328
|
var className = utils.classNames('p-inputtext p-chips-multiple-container', {
|
|
371
329
|
'p-disabled': props.disabled,
|
|
@@ -379,7 +337,6 @@ this.primereact.chips = (function (exports, React, keyfilter, tooltip, utils) {
|
|
|
379
337
|
onClick: onWrapperClick
|
|
380
338
|
}, items, input);
|
|
381
339
|
};
|
|
382
|
-
|
|
383
340
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
384
341
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Chips.defaultProps);
|
|
385
342
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
package/chips/chips.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.chips=function(e,t,n,r,l){"use strict";function a(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=a(t);function o(){return o=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},o.apply(this,arguments)}function u(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 c(e){if(Array.isArray(e))return u(e)}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function f(){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 m(e){return c(e)||s(e)||p(e)||f()}function d(e){if(Array.isArray(e))return e}function v(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,a=[],
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.chips=function(e,t,n,r,l){"use strict";function a(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=a(t);function o(){return o=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},o.apply(this,arguments)}function u(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 c(e){if(Array.isArray(e))return u(e)}function s(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}function f(){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 m(e){return c(e)||s(e)||p(e)||f()}function d(e){if(Array.isArray(e))return e}function v(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,a,i,o=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(e){c=!0,l=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw l}}return o}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=i.memo(i.forwardRef((function(e,t){var a,u,c=i.useState(!1),s=(u=2,d(a=c)||v(a,u)||p(a,u)||y()),f=s[0],b=s[1],g=i.useRef(null),O=i.useRef(null),w=i.useRef(e.inputRef),j=function(t,n){if(!e.disabled||!e.readOnly){var r=m(e.value),l=r.splice(n,1);S(l,n)&&(e.onRemove&&e.onRemove({originalEvent:t,value:l}),e.onChange&&e.onChange({originalEvent:t,value:r,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:r}}))}},E=function(t,n,r){if(n&&n.trim().length){var l=e.value?m(e.value):[];if(e.allowDuplicate||-1===l.indexOf(n)){var a=!0;e.onAdd&&(a=e.onAdd({originalEvent:t,value:n})),!1!==a&&l.push(n)}P(t,l,r)}},D=function(){l.DomHandler.focus(w.current)},k=function(t){var r=t.target.value,l=e.value||[];if(e.onKeyDown&&e.onKeyDown(t),!t.defaultPrevented)switch(t.which){case 8:0===w.current.value.length&&l.length>0&&j(t,l.length-1);break;case 13:r&&r.trim().length&&(!e.max||e.max>l.length)&&E(t,r,!0);break;default:e.keyfilter&&n.KeyFilter.onKeyPress(t,e.keyfilter),N()?t.preventDefault():","===e.separator&&188===t.which&&E(t,r,!0)}},P=function(t,n,r){e.onChange&&e.onChange({originalEvent:t,value:n,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:n}}),w.current.value="",r&&t.preventDefault()},R=function(t){if(e.separator){var r=(t.clipboardData||window.clipboardData).getData("Text");if(e.keyfilter&&n.KeyFilter.onPaste(t,e.keyfilter),r){var l=e.value||[],a=r.split(e.separator);a=a.filter((function(t){return(e.allowDuplicate||-1===l.indexOf(t))&&t.trim().length})),l=[].concat(m(l),m(a)),P(t,l,!0)}}},x=function(t){b(!0),e.onFocus&&e.onFocus(t)},A=function(t){if(e.addOnBlur){var n=t.target.value,r=e.value||[];n&&n.trim().length&&(!e.max||e.max>r.length)&&E(t,n,!0)}b(!1),e.onBlur&&e.onBlur(t)},N=function(){return e.max&&e.value&&e.max===e.value.length},C=w.current&&w.current.value,I=i.useMemo((function(){return l.ObjectUtils.isNotEmpty(e.value)||l.ObjectUtils.isNotEmpty(C)}),[e.value,C]),S=function(t,n){return l.ObjectUtils.getPropValue(e.removable,{value:t,index:n,props:e})};i.useImperativeHandle(t,(function(){return{props:e,getElement:function(){return g.current},getInput:function(){return w.current}}})),i.useEffect((function(){l.ObjectUtils.combinedRefs(w,e.inputRef)}),[w,e.inputRef]);var K=function(t,n){return e.disabled||e.readOnly||!S(t,n)?null:i.createElement("span",{className:"p-chips-token-icon pi pi-times-circle",onClick:function(e){return j(e,n)}})},T=function(t,n){var r=e.itemTemplate?e.itemTemplate(t):t,l=i.createElement("span",{className:"p-chips-token-label"},r),a=K(t,n);return i.createElement("li",{key:n,className:"p-chips-token p-highlight"},l,a)},U=l.ObjectUtils.isNotEmpty(e.tooltip),B=l.ObjectUtils.findDiffKeys(e,h.defaultProps),F=l.ObjectUtils.reduceKeys(B,l.DomHandler.ARIA_PROPS),_=l.classNames("p-chips p-component p-inputwrapper",{"p-inputwrapper-filled":I,"p-inputwrapper-focus":f},e.className),M=function(){var t=l.classNames("p-inputtext p-chips-multiple-container",{"p-disabled":e.disabled,"p-focus":f}),n=e.value?e.value.map(T):null,r=i.createElement("li",{className:"p-chips-input-token"},i.createElement("input",o({ref:w,id:e.inputId,placeholder:e.placeholder,type:"text",name:e.name,disabled:e.disabled||N(),onKeyDown:k,onPaste:R,onFocus:x,onBlur:A,readOnly:e.readOnly},F)));return i.createElement("ul",{ref:O,className:t,onClick:D},n,r)}();return i.createElement(i.Fragment,null,i.createElement("div",o({ref:g,id:e.id,className:_,style:e.style},B),M),U&&i.createElement(r.Tooltip,o({target:w,content:e.tooltip},e.tooltipOptions)))})));return h.displayName="Chips",h.defaultProps={__TYPE:"Chips",id:null,inputRef:null,inputId:null,name:null,placeholder:null,value:null,max:null,disabled:null,readOnly:!1,removable:!0,style:null,className:null,tooltip:null,tooltipOptions:null,ariaLabelledBy:null,separator:null,allowDuplicate:!0,itemTemplate:null,keyfilter:null,addOnBlur:null,onAdd:null,onRemove:null,onChange:null,onFocus:null,onBlur:null,onKeyDown:null},e.Chips=h,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.keyfilter,primereact.tooltip,primereact.utils);
|