primereact 8.7.3 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +168 -25
- package/api/api.cjs.js +1 -1
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +11 -3
- package/api/api.esm.js +1 -1
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -1
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +18 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +385 -80
- package/autocomplete/autocomplete.esm.js +18 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +18 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.d.ts +77 -15
- package/avatargroup/avatargroup.d.ts +33 -1
- package/badge/badge.d.ts +48 -8
- package/blockui/blockui.d.ts +71 -10
- package/breadcrumb/breadcrumb.d.ts +41 -3
- package/button/button.d.ts +67 -15
- package/calendar/calendar.cjs.js +18 -5
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +585 -112
- package/calendar/calendar.esm.js +18 -5
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +18 -5
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +7 -6
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.d.ts +77 -7
- package/captcha/captcha.esm.js +7 -6
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +7 -6
- package/captcha/captcha.min.js +1 -1
- package/card/card.d.ts +45 -7
- package/carousel/carousel.d.ts +138 -22
- package/cascadeselect/cascadeselect.cjs.js +7 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +177 -29
- package/cascadeselect/cascadeselect.esm.js +7 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +7 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +88 -10
- package/checkbox/checkbox.cjs.js +5 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +137 -33
- package/checkbox/checkbox.esm.js +6 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +5 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.d.ts +75 -7
- package/chips/chips.cjs.js +11 -8
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +188 -36
- package/chips/chips.esm.js +11 -8
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +11 -8
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +6 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +148 -31
- package/colorpicker/colorpicker.esm.js +6 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +736 -134
- package/columngroup/columngroup.d.ts +30 -1
- package/confirmdialog/confirmdialog.d.ts +142 -18
- package/confirmpopup/confirmpopup.cjs.js +5 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +165 -22
- package/confirmpopup/confirmpopup.esm.js +5 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +4 -1
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +79 -11
- package/contextmenu/contextmenu.esm.js +4 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +4 -1
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +85 -78
- package/core/core.min.js +7 -7
- package/csstransition/csstransition.d.ts +31 -1
- package/datascroller/datascroller.d.ts +102 -16
- package/datatable/datatable.cjs.js +27 -15
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1257 -229
- package/datatable/datatable.esm.js +27 -15
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +27 -15
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +222 -43
- package/deferredcontent/deferredcontent.d.ts +37 -1
- package/dialog/dialog.cjs.js +13 -19
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +282 -51
- package/dialog/dialog.esm.js +14 -20
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +13 -19
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.d.ts +47 -10
- package/dock/dock.d.ts +68 -12
- package/dropdown/dropdown.cjs.js +27 -11
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +337 -83
- package/dropdown/dropdown.esm.js +28 -12
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +27 -11
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.d.ts +129 -12
- package/fieldset/fieldset.d.ts +85 -7
- package/fileupload/fileupload.cjs.js +4 -0
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +425 -62
- package/fileupload/fileupload.esm.js +4 -0
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +4 -0
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +3 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +198 -30
- package/galleria/galleria.esm.js +3 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +3 -1
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.d.ts +91 -5
- package/hooks/hooks.cjs.js +1 -2
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +114 -7
- package/hooks/hooks.esm.js +1 -2
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +1 -2
- package/hooks/hooks.min.js +1 -1
- package/image/image.d.ts +91 -11
- package/inplace/inplace.d.ts +101 -9
- package/inputmask/inputmask.cjs.js +6 -5
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +119 -27
- package/inputmask/inputmask.esm.js +7 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +6 -5
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +11 -33
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +265 -57
- package/inputnumber/inputnumber.esm.js +12 -34
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +11 -33
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +4 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +118 -27
- package/inputswitch/inputswitch.esm.js +5 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +4 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.d.ts +57 -6
- package/inputtextarea/inputtextarea.d.ts +52 -6
- package/keyfilter/keyfilteroptions.d.ts +15 -0
- package/knob/knob.d.ts +127 -20
- package/listbox/listbox.cjs.js +3 -0
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +270 -48
- package/listbox/listbox.esm.js +3 -0
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -0
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.d.ts +50 -11
- package/mention/mention.cjs.js +3 -0
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +186 -32
- package/mention/mention.esm.js +3 -0
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -0
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +3 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +89 -12
- package/menu/menu.esm.js +3 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.d.ts +53 -8
- package/menuitem/menuitem.d.ts +114 -19
- package/message/message.d.ts +50 -11
- package/messages/messages.d.ts +91 -11
- package/multiselect/multiselect.cjs.js +11 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +429 -82
- package/multiselect/multiselect.esm.js +12 -3
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +11 -2
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +3 -0
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +157 -22
- package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +3 -0
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.d.ts +113 -16
- package/organizationchart/organizationchart.d.ts +107 -16
- package/overlaypanel/overlaypanel.cjs.js +4 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +89 -15
- package/overlaypanel/overlaypanel.esm.js +4 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.d.ts +52 -7
- package/package.json +2 -2
- package/paginator/paginator.d.ts +409 -44
- package/panel/panel.d.ts +142 -16
- package/panelmenu/panelmenu.d.ts +46 -4
- package/password/password.cjs.js +7 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +176 -36
- package/password/password.esm.js +7 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +7 -1
- package/password/password.min.css +1 -1
- package/password/password.min.js +1 -1
- package/picklist/picklist.d.ts +272 -46
- package/primereact.all.cjs.js +305 -158
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +305 -158
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +305 -158
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.d.ts +60 -11
- package/progressspinner/progressspinner.d.ts +47 -4
- package/radiobutton/radiobutton.cjs.js +5 -1
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +99 -29
- package/radiobutton/radiobutton.esm.js +5 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +5 -1
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.d.ts +101 -24
- package/resources/primereact.css +74 -63
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +5 -9
- package/resources/themes/arya-green/theme.css +4 -10
- package/resources/themes/arya-orange/theme.css +4 -9
- package/resources/themes/arya-purple/theme.css +4 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -9
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -9
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -9
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -10
- package/resources/themes/fluent-light/theme.css +4 -10
- package/resources/themes/lara-dark-blue/theme.css +4 -9
- package/resources/themes/lara-dark-indigo/theme.css +4 -10
- package/resources/themes/lara-dark-purple/theme.css +4 -9
- package/resources/themes/lara-dark-teal/theme.css +4 -10
- package/resources/themes/lara-light-blue/theme.css +4 -9
- package/resources/themes/lara-light-indigo/theme.css +4 -9
- package/resources/themes/lara-light-purple/theme.css +4 -9
- package/resources/themes/lara-light-teal/theme.css +4 -9
- package/resources/themes/luna-amber/theme.css +5 -9
- package/resources/themes/luna-blue/theme.css +4 -9
- package/resources/themes/luna-green/theme.css +5 -9
- package/resources/themes/luna-pink/theme.css +4 -9
- package/resources/themes/md-dark-deeppurple/theme.css +4 -9
- package/resources/themes/md-dark-indigo/theme.css +5 -9
- package/resources/themes/md-light-deeppurple/theme.css +5 -9
- package/resources/themes/md-light-indigo/theme.css +5 -9
- package/resources/themes/mdc-dark-deeppurple/theme.css +5 -9
- package/resources/themes/mdc-dark-indigo/theme.css +4 -9
- package/resources/themes/mdc-light-deeppurple/theme.css +5 -9
- package/resources/themes/mdc-light-indigo/theme.css +4 -9
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6237 -0
- package/resources/themes/nano/theme.css +6009 -0
- package/resources/themes/nova/theme.css +4 -9
- package/resources/themes/nova-accent/theme.css +5 -9
- package/resources/themes/nova-alt/theme.css +4 -9
- package/resources/themes/rhea/theme.css +5 -9
- package/resources/themes/saga-blue/theme.css +4 -9
- package/resources/themes/saga-green/theme.css +5 -9
- package/resources/themes/saga-orange/theme.css +5 -9
- package/resources/themes/saga-purple/theme.css +5 -9
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +6002 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +6056 -0
- package/resources/themes/vela-blue/theme.css +4 -9
- package/resources/themes/vela-green/theme.css +4 -9
- package/resources/themes/vela-orange/theme.css +4 -9
- package/resources/themes/vela-purple/theme.css +5 -9
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6164 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6164 -0
- package/ripple/ripple.d.ts +29 -1
- package/row/row.d.ts +37 -3
- package/scrollpanel/scrollpanel.d.ts +45 -1
- package/scrolltop/scrolltop.d.ts +70 -10
- package/selectbutton/selectbutton.cjs.js +3 -0
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +111 -32
- package/selectbutton/selectbutton.esm.js +4 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +3 -0
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +34 -0
- package/sidebar/sidebar.cjs.js +13 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +120 -22
- package/sidebar/sidebar.esm.js +13 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +13 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.d.ts +61 -11
- package/slidemenu/slidemenu.d.ts +132 -18
- package/slider/slider.d.ts +101 -18
- package/speeddial/speeddial.d.ts +149 -20
- package/splitbutton/splitbutton.cjs.js +3 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +131 -23
- package/splitbutton/splitbutton.esm.js +3 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +3 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.d.ts +98 -12
- package/steps/steps.d.ts +67 -6
- package/styleclass/styleclass.d.ts +77 -12
- package/tabmenu/tabmenu.d.ts +62 -5
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +213 -27
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.d.ts +50 -6
- package/terminal/terminal.cjs.js +3 -0
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +45 -3
- package/terminal/terminal.esm.js +4 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +3 -0
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.d.ts +42 -4
- package/tieredmenu/tieredmenu.cjs.js +3 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +77 -12
- package/tieredmenu/tieredmenu.esm.js +3 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +3 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +6 -10
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +62 -13
- package/timeline/timeline.esm.js +6 -10
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +6 -10
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +4 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +134 -27
- package/toast/toast.esm.js +4 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +4 -1
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +122 -15
- package/togglebutton/togglebutton.esm.js +5 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +4 -1
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +13 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +55 -5
- package/toolbar/toolbar.esm.js +13 -7
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +13 -7
- package/toolbar/toolbar.min.css +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.d.ts +73 -9
- package/tooltip/tooltipoptions.d.ts +350 -31
- package/tree/tree.d.ts +435 -71
- package/treenode/treenode.d.ts +62 -13
- package/treeselect/treeselect.cjs.js +7 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +326 -77
- package/treeselect/treeselect.esm.js +8 -2
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +7 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +3 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +501 -112
- package/treetable/treetable.esm.js +3 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +3 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -0
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +72 -20
- package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +3 -0
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +24 -0
- package/utils/utils.cjs.js +27 -11
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +8 -1
- package/utils/utils.esm.js +27 -11
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +27 -11
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +351 -59
- package/web-types.json +22 -4
package/primereact.all.esm.js
CHANGED
|
@@ -831,6 +831,11 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
831
831
|
value: function isAndroid() {
|
|
832
832
|
return /(android)/i.test(navigator.userAgent);
|
|
833
833
|
}
|
|
834
|
+
}, {
|
|
835
|
+
key: "isChrome",
|
|
836
|
+
value: function isChrome() {
|
|
837
|
+
return /(chrome)/i.test(navigator.userAgent);
|
|
838
|
+
}
|
|
834
839
|
}, {
|
|
835
840
|
key: "isTouchDevice",
|
|
836
841
|
value: function isTouchDevice() {
|
|
@@ -946,7 +951,7 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
946
951
|
}, {
|
|
947
952
|
key: "isExist",
|
|
948
953
|
value: function isExist(element) {
|
|
949
|
-
return element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode;
|
|
954
|
+
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
|
|
950
955
|
}
|
|
951
956
|
}, {
|
|
952
957
|
key: "hasDOM",
|
|
@@ -1000,6 +1005,22 @@ var DomHandler = /*#__PURE__*/function () {
|
|
|
1000
1005
|
preventScroll: preventScroll
|
|
1001
1006
|
});
|
|
1002
1007
|
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Focus the first focusable element if it does not already have focus.
|
|
1011
|
+
*
|
|
1012
|
+
* @param {HTMLElement} el a HTML element
|
|
1013
|
+
* @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
|
|
1014
|
+
* @return {HTMLElement | undefined} the first focusable HTML element found
|
|
1015
|
+
*/
|
|
1016
|
+
}, {
|
|
1017
|
+
key: "focusFirstElement",
|
|
1018
|
+
value: function focusFirstElement(el, scrollTo) {
|
|
1019
|
+
if (!el) return;
|
|
1020
|
+
var firstFocusableElement = DomHandler.getFirstFocusableElement(el);
|
|
1021
|
+
firstFocusableElement && DomHandler.focus(firstFocusableElement, scrollTo);
|
|
1022
|
+
return firstFocusableElement;
|
|
1023
|
+
}
|
|
1003
1024
|
}, {
|
|
1004
1025
|
key: "getCursorOffset",
|
|
1005
1026
|
value: function getCursorOffset(el, prevText, nextText, currentText) {
|
|
@@ -1453,11 +1474,10 @@ function mask(el, options) {
|
|
|
1453
1474
|
pos,
|
|
1454
1475
|
begin,
|
|
1455
1476
|
end;
|
|
1456
|
-
var iPhone = /iphone/i.test(DomHandler.getUserAgent());
|
|
1457
1477
|
oldVal = el.value;
|
|
1458
1478
|
|
|
1459
1479
|
//backspace, delete, and escape get special treatment
|
|
1460
|
-
if (k === 8 || k === 46 ||
|
|
1480
|
+
if (k === 8 || k === 46 || DomHandler.isIOS() && k === 127) {
|
|
1461
1481
|
pos = caret();
|
|
1462
1482
|
begin = pos.begin;
|
|
1463
1483
|
end = pos.end;
|
|
@@ -1507,7 +1527,7 @@ function mask(el, options) {
|
|
|
1507
1527
|
buffer[p] = c;
|
|
1508
1528
|
writeBuffer();
|
|
1509
1529
|
next = seekNext(p);
|
|
1510
|
-
if (
|
|
1530
|
+
if (DomHandler.isAndroid()) {
|
|
1511
1531
|
//Path for CSP Violation on FireFox OS 1.1
|
|
1512
1532
|
var proxy = function proxy() {
|
|
1513
1533
|
caret(next);
|
|
@@ -1677,8 +1697,7 @@ function mask(el, options) {
|
|
|
1677
1697
|
a: '[A-Za-z]',
|
|
1678
1698
|
'*': '[A-Za-z0-9]'
|
|
1679
1699
|
};
|
|
1680
|
-
|
|
1681
|
-
androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
|
|
1700
|
+
androidChrome = DomHandler.isChrome() && DomHandler.isAndroid();
|
|
1682
1701
|
var maskTokens = options.mask.split('');
|
|
1683
1702
|
for (var i = 0; i < maskTokens.length; i++) {
|
|
1684
1703
|
var c = maskTokens[i];
|
|
@@ -1847,13 +1866,10 @@ var ObjectUtils = /*#__PURE__*/function () {
|
|
|
1847
1866
|
}, {
|
|
1848
1867
|
key: "reorderArray",
|
|
1849
1868
|
value: function reorderArray(value, from, to) {
|
|
1850
|
-
var target;
|
|
1851
1869
|
if (value && from !== to) {
|
|
1852
1870
|
if (to >= value.length) {
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
value.push(undefined);
|
|
1856
|
-
}
|
|
1871
|
+
to %= value.length;
|
|
1872
|
+
from %= value.length;
|
|
1857
1873
|
}
|
|
1858
1874
|
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
1859
1875
|
}
|
|
@@ -2151,7 +2167,7 @@ var FilterService = {
|
|
|
2151
2167
|
},
|
|
2152
2168
|
notEquals: function notEquals(value, filter, filterLocale) {
|
|
2153
2169
|
if (filter === undefined || filter === null || typeof filter === 'string' && filter.trim() === '') {
|
|
2154
|
-
return
|
|
2170
|
+
return true;
|
|
2155
2171
|
}
|
|
2156
2172
|
if (value === undefined || value === null) {
|
|
2157
2173
|
return true;
|
|
@@ -2826,7 +2842,7 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
2826
2842
|
bindWindowResizeListener = _useResizeListener2[0],
|
|
2827
2843
|
unbindWindowResizeListener = _useResizeListener2[1];
|
|
2828
2844
|
var _useOverlayScrollList = useOverlayScrollListener({
|
|
2829
|
-
target:
|
|
2845
|
+
target: target,
|
|
2830
2846
|
listener: function listener(event) {
|
|
2831
2847
|
_listener && _listener(event, {
|
|
2832
2848
|
type: 'scroll',
|
|
@@ -2861,7 +2877,6 @@ var useOverlayListener = function useOverlayListener(_ref) {
|
|
|
2861
2877
|
}, [target, overlay, when]);
|
|
2862
2878
|
React.useEffect(function () {
|
|
2863
2879
|
unbind();
|
|
2864
|
-
// when && bind();
|
|
2865
2880
|
}, [when]);
|
|
2866
2881
|
useUnmountEffect(function () {
|
|
2867
2882
|
unbind();
|
|
@@ -4845,11 +4860,14 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
4845
4860
|
var key = i + '_' + j;
|
|
4846
4861
|
var selected = props.selectedItem === item;
|
|
4847
4862
|
var content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, item, j) : props.field ? ObjectUtils.resolveFieldData(item, props.field) : item;
|
|
4863
|
+
var className = classNames('p-autocomplete-item', {
|
|
4864
|
+
'p-disabled': item.disabled
|
|
4865
|
+
});
|
|
4848
4866
|
return /*#__PURE__*/React.createElement("li", {
|
|
4849
4867
|
key: key,
|
|
4850
4868
|
role: "option",
|
|
4851
4869
|
"aria-selected": selected,
|
|
4852
|
-
className:
|
|
4870
|
+
className: className,
|
|
4853
4871
|
style: style,
|
|
4854
4872
|
onClick: function onClick(e) {
|
|
4855
4873
|
return props.onItemClick(e, item);
|
|
@@ -4876,11 +4894,14 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
4876
4894
|
}, content), childrenContent);
|
|
4877
4895
|
} else {
|
|
4878
4896
|
var _content = props.itemTemplate ? ObjectUtils.getJSXElement(props.itemTemplate, suggestion, index) : props.field ? ObjectUtils.resolveFieldData(suggestion, props.field) : suggestion;
|
|
4897
|
+
var className = classNames('p-autocomplete-item', {
|
|
4898
|
+
'p-disabled': suggestion.disabled
|
|
4899
|
+
});
|
|
4879
4900
|
return /*#__PURE__*/React.createElement("li", {
|
|
4880
4901
|
key: index,
|
|
4881
4902
|
role: "option",
|
|
4882
4903
|
"aria-selected": props.selectedItem === suggestion,
|
|
4883
|
-
className:
|
|
4904
|
+
className: className,
|
|
4884
4905
|
style: style,
|
|
4885
4906
|
onClick: function onClick(e) {
|
|
4886
4907
|
return props.onItemClick(e, suggestion);
|
|
@@ -4933,7 +4954,10 @@ var AutoCompletePanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(f
|
|
|
4933
4954
|
}
|
|
4934
4955
|
};
|
|
4935
4956
|
var createElement = function createElement() {
|
|
4936
|
-
var className = classNames('p-autocomplete-panel p-component', props.panelClassName
|
|
4957
|
+
var className = classNames('p-autocomplete-panel p-component', props.panelClassName, {
|
|
4958
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
4959
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
4960
|
+
});
|
|
4937
4961
|
var style = _objectSpread$u({
|
|
4938
4962
|
maxHeight: props.scrollHeight
|
|
4939
4963
|
}, props.panelStyle || {});
|
|
@@ -5346,6 +5370,9 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
5346
5370
|
if (inputRef.current && !props.multiple) {
|
|
5347
5371
|
updateInputField(props.value);
|
|
5348
5372
|
}
|
|
5373
|
+
if (overlayVisibleState) {
|
|
5374
|
+
alignOverlay();
|
|
5375
|
+
}
|
|
5349
5376
|
});
|
|
5350
5377
|
useUnmountEffect(function () {
|
|
5351
5378
|
if (timeout.current) {
|
|
@@ -5359,6 +5386,9 @@ var AutoComplete = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
5359
5386
|
search: search,
|
|
5360
5387
|
show: show,
|
|
5361
5388
|
hide: hide,
|
|
5389
|
+
focus: function focus() {
|
|
5390
|
+
return DomHandler.focus(inputRef.current);
|
|
5391
|
+
},
|
|
5362
5392
|
getElement: function getElement() {
|
|
5363
5393
|
return elementRef.current;
|
|
5364
5394
|
},
|
|
@@ -8164,6 +8194,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8164
8194
|
getCurrentDateTime: getCurrentDateTime,
|
|
8165
8195
|
getViewDate: getViewDate,
|
|
8166
8196
|
updateViewDate: updateViewDate,
|
|
8197
|
+
focus: function focus() {
|
|
8198
|
+
return DomHandler.focus(inputRef.current);
|
|
8199
|
+
},
|
|
8167
8200
|
getElement: function getElement() {
|
|
8168
8201
|
return elementRef.current;
|
|
8169
8202
|
},
|
|
@@ -8275,7 +8308,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8275
8308
|
disabled: switchViewButtonDisabled()
|
|
8276
8309
|
}, monthNames[month]);
|
|
8277
8310
|
};
|
|
8278
|
-
var createTitleYearElement = function createTitleYearElement() {
|
|
8311
|
+
var createTitleYearElement = function createTitleYearElement(metaYear) {
|
|
8279
8312
|
if (props.yearNavigator) {
|
|
8280
8313
|
var _yearOptions2 = [];
|
|
8281
8314
|
var years = props.yearRange.split(':');
|
|
@@ -8322,11 +8355,12 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8322
8355
|
}
|
|
8323
8356
|
return _content2;
|
|
8324
8357
|
}
|
|
8358
|
+
var displayYear = props.inline ? metaYear : currentYear;
|
|
8325
8359
|
return currentView !== 'year' && /*#__PURE__*/React.createElement("button", {
|
|
8326
8360
|
className: "p-datepicker-year p-link",
|
|
8327
8361
|
onClick: switchToYearView,
|
|
8328
8362
|
disabled: switchViewButtonDisabled()
|
|
8329
|
-
},
|
|
8363
|
+
}, displayYear);
|
|
8330
8364
|
};
|
|
8331
8365
|
var createTitleDecadeElement = function createTitleDecadeElement() {
|
|
8332
8366
|
var years = yearPickerValues();
|
|
@@ -8487,7 +8521,11 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8487
8521
|
};
|
|
8488
8522
|
var createHourPicker = function createHourPicker() {
|
|
8489
8523
|
var currentTime = getCurrentDateTime();
|
|
8524
|
+
var minute = doStepMinute(currentTime.getMinutes());
|
|
8490
8525
|
var hour = currentTime.getHours();
|
|
8526
|
+
|
|
8527
|
+
// #3770 account for step minutes rolling to next hour
|
|
8528
|
+
hour = minute > 59 ? hour + 1 : hour;
|
|
8491
8529
|
if (props.hourFormat === '12') {
|
|
8492
8530
|
if (hour === 0) hour = 12;else if (hour > 11 && hour !== 12) hour = hour - 12;
|
|
8493
8531
|
}
|
|
@@ -8524,7 +8562,8 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8524
8562
|
};
|
|
8525
8563
|
var createMinutePicker = function createMinutePicker() {
|
|
8526
8564
|
var currentTime = getCurrentDateTime();
|
|
8527
|
-
var minute = currentTime.getMinutes();
|
|
8565
|
+
var minute = doStepMinute(currentTime.getMinutes());
|
|
8566
|
+
minute = minute > 59 ? minute - 60 : minute;
|
|
8528
8567
|
var minuteDisplay = minute < 10 ? '0' + minute : minute;
|
|
8529
8568
|
return /*#__PURE__*/React.createElement("div", {
|
|
8530
8569
|
className: "p-minute-picker"
|
|
@@ -8783,7 +8822,7 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8783
8822
|
key: "year".concat(i + 1),
|
|
8784
8823
|
className: classNames('p-yearpicker-year', {
|
|
8785
8824
|
'p-highlight': isYearSelected(y),
|
|
8786
|
-
'p-disabled': !isSelectable(0, 0, y)
|
|
8825
|
+
'p-disabled': !(isSelectable(0, 0, y) || isSelectable(30, 11, y))
|
|
8787
8826
|
})
|
|
8788
8827
|
}, y);
|
|
8789
8828
|
}));
|
|
@@ -8798,7 +8837,9 @@ var Calendar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
8798
8837
|
'p-datepicker-timeonly': props.timeOnly,
|
|
8799
8838
|
'p-datepicker-multiple-month': props.numberOfMonths > 1,
|
|
8800
8839
|
'p-datepicker-monthpicker': currentView === 'month',
|
|
8801
|
-
'p-datepicker-touch-ui': props.touchUI
|
|
8840
|
+
'p-datepicker-touch-ui': props.touchUI,
|
|
8841
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
8842
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
8802
8843
|
});
|
|
8803
8844
|
var content = createContent();
|
|
8804
8845
|
var datePicker = createDatePicker();
|
|
@@ -8844,6 +8885,7 @@ Calendar.defaultProps = {
|
|
|
8844
8885
|
disabledDates: null,
|
|
8845
8886
|
disabledDays: null,
|
|
8846
8887
|
footerTemplate: null,
|
|
8888
|
+
formatDateTime: null,
|
|
8847
8889
|
headerTemplate: null,
|
|
8848
8890
|
hideOnDateTimeSelect: false,
|
|
8849
8891
|
hourFormat: '24',
|
|
@@ -8880,6 +8922,7 @@ Calendar.defaultProps = {
|
|
|
8880
8922
|
onVisibleChange: null,
|
|
8881
8923
|
panelClassName: null,
|
|
8882
8924
|
panelStyle: null,
|
|
8925
|
+
parseDateTime: null,
|
|
8883
8926
|
placeholder: null,
|
|
8884
8927
|
readOnlyInput: false,
|
|
8885
8928
|
required: false,
|
|
@@ -8952,7 +8995,7 @@ var Captcha = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
8952
8995
|
if (!window.grecaptcha) {
|
|
8953
8996
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8954
8997
|
var script = document.createElement('script');
|
|
8955
|
-
script.src =
|
|
8998
|
+
script.src = props.sourceUrl;
|
|
8956
8999
|
script.async = true;
|
|
8957
9000
|
script.defer = true;
|
|
8958
9001
|
script.onload = function () {
|
|
@@ -9003,14 +9046,15 @@ Captcha.displayName = 'Captcha';
|
|
|
9003
9046
|
Captcha.defaultProps = {
|
|
9004
9047
|
__TYPE: 'Captcha',
|
|
9005
9048
|
id: null,
|
|
9049
|
+
language: 'en',
|
|
9050
|
+
onExpire: null,
|
|
9051
|
+
onResponse: null,
|
|
9006
9052
|
siteKey: null,
|
|
9007
|
-
theme: 'light',
|
|
9008
|
-
type: 'image',
|
|
9009
9053
|
size: 'normal',
|
|
9054
|
+
sourceUrl: 'https://www.google.com/recaptcha/api.js?render=explicit',
|
|
9010
9055
|
tabIndex: 0,
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
onExpire: null
|
|
9056
|
+
theme: 'light',
|
|
9057
|
+
type: 'image'
|
|
9014
9058
|
};
|
|
9015
9059
|
|
|
9016
9060
|
var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -9788,7 +9832,10 @@ var CascadeSelectSub = /*#__PURE__*/React.memo(function (props) {
|
|
|
9788
9832
|
var createMenu = function createMenu() {
|
|
9789
9833
|
return props.options ? props.options.map(createOption) : null;
|
|
9790
9834
|
};
|
|
9791
|
-
var className = classNames('p-cascadeselect-panel p-cascadeselect-items', props.className
|
|
9835
|
+
var className = classNames('p-cascadeselect-panel p-cascadeselect-items', props.className, {
|
|
9836
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
9837
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
9838
|
+
});
|
|
9792
9839
|
var submenu = createMenu();
|
|
9793
9840
|
return /*#__PURE__*/React.createElement("ul", {
|
|
9794
9841
|
ref: elementRef,
|
|
@@ -9988,6 +10035,9 @@ var CascadeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
9988
10035
|
},
|
|
9989
10036
|
getLabel: function getLabel() {
|
|
9990
10037
|
return labelRef.current;
|
|
10038
|
+
},
|
|
10039
|
+
focus: function focus() {
|
|
10040
|
+
return DomHandler.focus(inputRef.current);
|
|
9991
10041
|
}
|
|
9992
10042
|
};
|
|
9993
10043
|
});
|
|
@@ -10293,7 +10343,8 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10293
10343
|
setFocusedState(false);
|
|
10294
10344
|
};
|
|
10295
10345
|
var onKeyDown = function onKeyDown(event) {
|
|
10296
|
-
if (event.code === 'Space') {
|
|
10346
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
10347
|
+
// event.key is for Android support
|
|
10297
10348
|
onClick(event);
|
|
10298
10349
|
}
|
|
10299
10350
|
};
|
|
@@ -10303,6 +10354,9 @@ var Checkbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
10303
10354
|
React.useImperativeHandle(ref, function () {
|
|
10304
10355
|
return {
|
|
10305
10356
|
props: props,
|
|
10357
|
+
focus: function focus() {
|
|
10358
|
+
return DomHandler.focus(inputRef.current);
|
|
10359
|
+
},
|
|
10306
10360
|
getElement: function getElement() {
|
|
10307
10361
|
return elementRef.current;
|
|
10308
10362
|
},
|
|
@@ -10552,16 +10606,13 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
|
|
|
10552
10606
|
if (event.defaultPrevented) {
|
|
10553
10607
|
return;
|
|
10554
10608
|
}
|
|
10555
|
-
switch (event.
|
|
10556
|
-
|
|
10557
|
-
case 8:
|
|
10609
|
+
switch (event.key) {
|
|
10610
|
+
case 'Backspace':
|
|
10558
10611
|
if (inputRef.current.value.length === 0 && values.length > 0) {
|
|
10559
10612
|
removeItem(event, values.length - 1);
|
|
10560
10613
|
}
|
|
10561
10614
|
break;
|
|
10562
|
-
|
|
10563
|
-
//enter
|
|
10564
|
-
case 13:
|
|
10615
|
+
case 'Enter':
|
|
10565
10616
|
if (inputValue && inputValue.trim().length && (!props.max || props.max > values.length)) {
|
|
10566
10617
|
addItem(event, inputValue, true);
|
|
10567
10618
|
}
|
|
@@ -10572,8 +10623,11 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
|
|
|
10572
10623
|
}
|
|
10573
10624
|
if (isMaxedOut()) {
|
|
10574
10625
|
event.preventDefault();
|
|
10575
|
-
} else if (props.separator === ','
|
|
10576
|
-
|
|
10626
|
+
} else if (props.separator === ',') {
|
|
10627
|
+
// GitHub #3885 Android Opera gives strange code 229 for comma
|
|
10628
|
+
if (event.key === props.separator || DomHandler.isAndroid() && event.which === 229) {
|
|
10629
|
+
addItem(event, inputValue, true);
|
|
10630
|
+
}
|
|
10577
10631
|
}
|
|
10578
10632
|
break;
|
|
10579
10633
|
}
|
|
@@ -10644,6 +10698,9 @@ var Chips = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
|
|
|
10644
10698
|
React.useImperativeHandle(ref, function () {
|
|
10645
10699
|
return {
|
|
10646
10700
|
props: props,
|
|
10701
|
+
focus: function focus() {
|
|
10702
|
+
return DomHandler.focus(inputRef.current);
|
|
10703
|
+
},
|
|
10647
10704
|
getElement: function getElement() {
|
|
10648
10705
|
return elementRef.current;
|
|
10649
10706
|
},
|
|
@@ -10763,7 +10820,9 @@ var ColorPickerPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
10763
10820
|
var createElement = function createElement() {
|
|
10764
10821
|
var className = classNames('p-colorpicker-panel', props.panelClassName, {
|
|
10765
10822
|
'p-colorpicker-overlay-panel': !props.inline,
|
|
10766
|
-
'p-disabled': props.disabled
|
|
10823
|
+
'p-disabled': props.disabled,
|
|
10824
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
10825
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
10767
10826
|
});
|
|
10768
10827
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
10769
10828
|
nodeRef: ref,
|
|
@@ -11181,6 +11240,9 @@ var ColorPicker = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
11181
11240
|
props: props,
|
|
11182
11241
|
show: show,
|
|
11183
11242
|
hide: hide,
|
|
11243
|
+
focus: function focus() {
|
|
11244
|
+
return DomHandler.focus(inputRef.current);
|
|
11245
|
+
},
|
|
11184
11246
|
getElement: function getElement() {
|
|
11185
11247
|
return elementRef.current;
|
|
11186
11248
|
},
|
|
@@ -11410,10 +11472,11 @@ ColumnGroup.defaultProps = {
|
|
|
11410
11472
|
};
|
|
11411
11473
|
|
|
11412
11474
|
var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11413
|
-
var
|
|
11475
|
+
var uniqueId = props.id ? props.id : UniqueComponentId();
|
|
11476
|
+
var _React$useState = React.useState(uniqueId),
|
|
11414
11477
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11415
|
-
idState = _React$useState2[0]
|
|
11416
|
-
|
|
11478
|
+
idState = _React$useState2[0];
|
|
11479
|
+
_React$useState2[1];
|
|
11417
11480
|
var _React$useState3 = React.useState(false),
|
|
11418
11481
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
11419
11482
|
maskVisibleState = _React$useState4[0],
|
|
@@ -11437,7 +11500,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
11437
11500
|
var lastPageX = React.useRef(null);
|
|
11438
11501
|
var lastPageY = React.useRef(null);
|
|
11439
11502
|
var styleElement = React.useRef(null);
|
|
11440
|
-
var attributeSelector = React.useRef(
|
|
11503
|
+
var attributeSelector = React.useRef(uniqueId);
|
|
11441
11504
|
var maximized = props.onMaximize ? props.maximized : maximizedState;
|
|
11442
11505
|
var _useEventListener = useEventListener({
|
|
11443
11506
|
type: 'keydown',
|
|
@@ -11744,14 +11807,12 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
11744
11807
|
});
|
|
11745
11808
|
};
|
|
11746
11809
|
var createStyle = function createStyle() {
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
innerHTML += "\n @media screen and (max-width: ".concat(breakpoint, ") {\n .p-dialog[").concat(attributeSelector.current, "] {\n width: ").concat(props.breakpoints[breakpoint], " !important;\n }\n }\n ");
|
|
11752
|
-
}
|
|
11753
|
-
styleElement.current.innerHTML = innerHTML;
|
|
11810
|
+
styleElement.current = DomHandler.createInlineStyle(PrimeReact.nonce);
|
|
11811
|
+
var innerHTML = '';
|
|
11812
|
+
for (var breakpoint in props.breakpoints) {
|
|
11813
|
+
innerHTML += "\n @media screen and (max-width: ".concat(breakpoint, ") {\n .p-dialog[").concat(attributeSelector.current, "] {\n width: ").concat(props.breakpoints[breakpoint], " !important;\n }\n }\n ");
|
|
11754
11814
|
}
|
|
11815
|
+
styleElement.current.innerHTML = innerHTML;
|
|
11755
11816
|
};
|
|
11756
11817
|
var changeScrollOnMaximizable = function changeScrollOnMaximizable() {
|
|
11757
11818
|
if (!props.blockScroll) {
|
|
@@ -11760,13 +11821,6 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
11760
11821
|
}
|
|
11761
11822
|
};
|
|
11762
11823
|
useMountEffect(function () {
|
|
11763
|
-
var unqiueId = UniqueComponentId();
|
|
11764
|
-
if (!idState) {
|
|
11765
|
-
setIdState(unqiueId);
|
|
11766
|
-
}
|
|
11767
|
-
if (!attributeSelector.current) {
|
|
11768
|
-
attributeSelector.current = unqiueId;
|
|
11769
|
-
}
|
|
11770
11824
|
if (props.visible) {
|
|
11771
11825
|
setMaskVisibleState(true);
|
|
11772
11826
|
}
|
|
@@ -11908,7 +11962,9 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
11908
11962
|
var className = classNames('p-dialog p-component', props.className, {
|
|
11909
11963
|
'p-dialog-rtl': props.rtl,
|
|
11910
11964
|
'p-dialog-maximized': maximized,
|
|
11911
|
-
'p-dialog-default': !maximized
|
|
11965
|
+
'p-dialog-default': !maximized,
|
|
11966
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
11967
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
11912
11968
|
});
|
|
11913
11969
|
var maskClassName = classNames('p-dialog-mask', getPositionClass(), {
|
|
11914
11970
|
'p-component-overlay p-component-overlay-enter': props.modal,
|
|
@@ -12259,7 +12315,7 @@ var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
12259
12315
|
var type = _ref.type,
|
|
12260
12316
|
valid = _ref.valid;
|
|
12261
12317
|
if (valid) {
|
|
12262
|
-
type === 'outside' ? props.dismissable && !isPanelClicked.current && hide() : hide();
|
|
12318
|
+
type === 'outside' ? props.dismissable && !isPanelClicked.current && hide('hide') : hide('hide');
|
|
12263
12319
|
}
|
|
12264
12320
|
isPanelClicked.current = false;
|
|
12265
12321
|
},
|
|
@@ -12430,7 +12486,10 @@ var ConfirmPopup = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
12430
12486
|
};
|
|
12431
12487
|
var createElement = function createElement() {
|
|
12432
12488
|
var otherProps = ObjectUtils.findDiffKeys(props, ConfirmPopup.defaultProps);
|
|
12433
|
-
var className = classNames('p-confirm-popup p-component', getPropValue('className')
|
|
12489
|
+
var className = classNames('p-confirm-popup p-component', getPropValue('className'), {
|
|
12490
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
12491
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
12492
|
+
});
|
|
12434
12493
|
var content = createContent();
|
|
12435
12494
|
var footer = createFooter();
|
|
12436
12495
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
@@ -12816,7 +12875,10 @@ var ContextMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
12816
12875
|
});
|
|
12817
12876
|
var createContextMenu = function createContextMenu() {
|
|
12818
12877
|
var otherProps = ObjectUtils.findDiffKeys(props, ContextMenu.defaultProps);
|
|
12819
|
-
var className = classNames('p-contextmenu p-component', props.className
|
|
12878
|
+
var className = classNames('p-contextmenu p-component', props.className, {
|
|
12879
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
12880
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
12881
|
+
});
|
|
12820
12882
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
12821
12883
|
nodeRef: menuRef,
|
|
12822
12884
|
classNames: "p-contextmenu",
|
|
@@ -13308,16 +13370,11 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
13308
13370
|
return;
|
|
13309
13371
|
}
|
|
13310
13372
|
|
|
13373
|
+
// #3913 onChange should be called before onValueChange
|
|
13374
|
+
handleOnChange(event, currentValue, newValue);
|
|
13311
13375
|
// touch devices trigger the keyboard to display because of setSelectionRange
|
|
13312
13376
|
!DomHandler.isTouchDevice() && updateInput(newValue, null, 'spin');
|
|
13313
13377
|
updateModel(event, newValue);
|
|
13314
|
-
handleOnChange(event, currentValue, newValue);
|
|
13315
|
-
}
|
|
13316
|
-
};
|
|
13317
|
-
var onUpButtonTouchStart = function onUpButtonTouchStart(event) {
|
|
13318
|
-
if (!props.disabled && !props.readOnly) {
|
|
13319
|
-
repeat(event, null, 1);
|
|
13320
|
-
event.preventDefault();
|
|
13321
13378
|
}
|
|
13322
13379
|
};
|
|
13323
13380
|
var onUpButtonMouseDown = function onUpButtonMouseDown(event) {
|
|
@@ -13327,11 +13384,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
13327
13384
|
event.preventDefault();
|
|
13328
13385
|
}
|
|
13329
13386
|
};
|
|
13330
|
-
var onUpButtonTouchEnd = function onUpButtonTouchEnd() {
|
|
13331
|
-
if (!props.disabled && !props.readOnly) {
|
|
13332
|
-
clearTimer();
|
|
13333
|
-
}
|
|
13334
|
-
};
|
|
13335
13387
|
var onUpButtonMouseUp = function onUpButtonMouseUp() {
|
|
13336
13388
|
if (!props.disabled && !props.readOnly) {
|
|
13337
13389
|
clearTimer();
|
|
@@ -13352,17 +13404,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
13352
13404
|
repeat(event, null, 1);
|
|
13353
13405
|
}
|
|
13354
13406
|
};
|
|
13355
|
-
var onDownButtonTouchStart = function onDownButtonTouchStart(event) {
|
|
13356
|
-
if (!props.disabled && !props.readOnly) {
|
|
13357
|
-
repeat(event, null, -1);
|
|
13358
|
-
event.preventDefault();
|
|
13359
|
-
}
|
|
13360
|
-
};
|
|
13361
|
-
var onDownButtonTouchEnd = function onDownButtonTouchEnd() {
|
|
13362
|
-
if (!props.disabled && !props.readOnly) {
|
|
13363
|
-
clearTimer();
|
|
13364
|
-
}
|
|
13365
|
-
};
|
|
13366
13407
|
var onDownButtonMouseDown = function onDownButtonMouseDown(event) {
|
|
13367
13408
|
if (!props.disabled && !props.readOnly) {
|
|
13368
13409
|
props.autoFocus && DomHandler.focus(inputRef.current, props.autoFocus);
|
|
@@ -13936,6 +13977,9 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
13936
13977
|
React.useImperativeHandle(ref, function () {
|
|
13937
13978
|
return {
|
|
13938
13979
|
props: props,
|
|
13980
|
+
focus: function focus() {
|
|
13981
|
+
return DomHandler.focus(inputRef.current);
|
|
13982
|
+
},
|
|
13939
13983
|
getFormatter: getFormatter,
|
|
13940
13984
|
getElement: function getElement() {
|
|
13941
13985
|
return elementRef.current;
|
|
@@ -14006,13 +14050,11 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
14006
14050
|
return /*#__PURE__*/React.createElement("button", {
|
|
14007
14051
|
type: "button",
|
|
14008
14052
|
className: className,
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14053
|
+
onPointerLeave: onUpButtonMouseLeave,
|
|
14054
|
+
onPointerDown: onUpButtonMouseDown,
|
|
14055
|
+
onPointerUp: onUpButtonMouseUp,
|
|
14012
14056
|
onKeyDown: onUpButtonKeyDown,
|
|
14013
14057
|
onKeyUp: onUpButtonKeyUp,
|
|
14014
|
-
onTouchStart: onUpButtonTouchStart,
|
|
14015
|
-
onTouchEnd: onUpButtonTouchEnd,
|
|
14016
14058
|
disabled: props.disabled,
|
|
14017
14059
|
tabIndex: -1
|
|
14018
14060
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -14027,13 +14069,11 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
14027
14069
|
return /*#__PURE__*/React.createElement("button", {
|
|
14028
14070
|
type: "button",
|
|
14029
14071
|
className: className,
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14072
|
+
onPointerLeave: onDownButtonMouseLeave,
|
|
14073
|
+
onPointerDown: onDownButtonMouseDown,
|
|
14074
|
+
onPointerUp: onDownButtonMouseUp,
|
|
14033
14075
|
onKeyDown: onDownButtonKeyDown,
|
|
14034
14076
|
onKeyUp: onDownButtonKeyUp,
|
|
14035
|
-
onTouchStart: onDownButtonTouchStart,
|
|
14036
|
-
onTouchEnd: onDownButtonTouchEnd,
|
|
14037
14077
|
disabled: props.disabled,
|
|
14038
14078
|
tabIndex: -1
|
|
14039
14079
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -14560,7 +14600,10 @@ var DropdownPanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(funct
|
|
|
14560
14600
|
}
|
|
14561
14601
|
};
|
|
14562
14602
|
var createElement = function createElement() {
|
|
14563
|
-
var className = classNames('p-dropdown-panel p-component', props.panelClassName
|
|
14603
|
+
var className = classNames('p-dropdown-panel p-component', props.panelClassName, {
|
|
14604
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
14605
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
14606
|
+
});
|
|
14564
14607
|
var filter = createFilter();
|
|
14565
14608
|
var content = createContent();
|
|
14566
14609
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
@@ -14674,6 +14717,12 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
14674
14717
|
if (props.disabled) {
|
|
14675
14718
|
return;
|
|
14676
14719
|
}
|
|
14720
|
+
props.onClick && props.onClick(event);
|
|
14721
|
+
|
|
14722
|
+
// do not continue if the user defined click wants to prevent it
|
|
14723
|
+
if (event.defaultPrevented) {
|
|
14724
|
+
return;
|
|
14725
|
+
}
|
|
14677
14726
|
if (DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
|
|
14678
14727
|
return;
|
|
14679
14728
|
} else if (!overlayRef.current || !(overlayRef.current && overlayRef.current.contains(event.target))) {
|
|
@@ -15100,6 +15149,9 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15100
15149
|
props: props,
|
|
15101
15150
|
show: show,
|
|
15102
15151
|
hide: hide,
|
|
15152
|
+
focus: function focus() {
|
|
15153
|
+
return DomHandler.focus(focusInputRef.current);
|
|
15154
|
+
},
|
|
15103
15155
|
getElement: function getElement() {
|
|
15104
15156
|
return elementRef.current;
|
|
15105
15157
|
},
|
|
@@ -15129,10 +15181,10 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15129
15181
|
}
|
|
15130
15182
|
}, [overlayVisibleState, props.value]);
|
|
15131
15183
|
useUpdateEffect(function () {
|
|
15132
|
-
if (overlayVisibleState && props.filter) {
|
|
15184
|
+
if (overlayVisibleState && filterState && props.filter) {
|
|
15133
15185
|
alignOverlay();
|
|
15134
15186
|
}
|
|
15135
|
-
}, [overlayVisibleState, props.filter]);
|
|
15187
|
+
}, [overlayVisibleState, filterState, props.filter]);
|
|
15136
15188
|
useUpdateEffect(function () {
|
|
15137
15189
|
if (filterState && (!props.options || props.options.length === 0)) {
|
|
15138
15190
|
setFilterState('');
|
|
@@ -15219,15 +15271,20 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15219
15271
|
};
|
|
15220
15272
|
var createClearIcon = function createClearIcon() {
|
|
15221
15273
|
if (props.value != null && props.showClear && !props.disabled) {
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15274
|
+
var iconClassName = classNames('p-dropdown-clear-icon p-clickable');
|
|
15275
|
+
var iconProps = {
|
|
15276
|
+
className: iconClassName,
|
|
15277
|
+
onPointerUp: clear
|
|
15278
|
+
};
|
|
15279
|
+
return IconUtils.getJSXIcon(props.clearIcon, iconProps);
|
|
15226
15280
|
}
|
|
15227
15281
|
return null;
|
|
15228
15282
|
};
|
|
15229
15283
|
var createDropdownIcon = function createDropdownIcon() {
|
|
15230
|
-
var iconClassName = classNames('p-dropdown-trigger-icon p-clickable'
|
|
15284
|
+
var iconClassName = classNames('p-dropdown-trigger-icon p-clickable');
|
|
15285
|
+
var icon = IconUtils.getJSXIcon(props.dropdownIcon, {
|
|
15286
|
+
className: iconClassName
|
|
15287
|
+
});
|
|
15231
15288
|
var ariaLabel = props.placeholder || props.ariaLabel;
|
|
15232
15289
|
return /*#__PURE__*/React.createElement("div", {
|
|
15233
15290
|
className: "p-dropdown-trigger",
|
|
@@ -15235,9 +15292,7 @@ var Dropdown = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
15235
15292
|
"aria-haspopup": "listbox",
|
|
15236
15293
|
"aria-expanded": overlayVisibleState,
|
|
15237
15294
|
"aria-label": ariaLabel
|
|
15238
|
-
},
|
|
15239
|
-
className: iconClassName
|
|
15240
|
-
}));
|
|
15295
|
+
}, icon);
|
|
15241
15296
|
};
|
|
15242
15297
|
var visibleOptions = getVisibleOptions();
|
|
15243
15298
|
var selectedOption = getSelectedOption();
|
|
@@ -15304,6 +15359,7 @@ Dropdown.defaultProps = {
|
|
|
15304
15359
|
ariaLabelledBy: null,
|
|
15305
15360
|
autoFocus: false,
|
|
15306
15361
|
className: null,
|
|
15362
|
+
clearIcon: 'pi pi-times',
|
|
15307
15363
|
dataKey: null,
|
|
15308
15364
|
disabled: false,
|
|
15309
15365
|
dropdownIcon: 'pi pi-chevron-down',
|
|
@@ -15692,7 +15748,8 @@ var RowCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
15692
15748
|
}
|
|
15693
15749
|
};
|
|
15694
15750
|
var onKeyDown = function onKeyDown(event) {
|
|
15695
|
-
if (event.code === 'Space') {
|
|
15751
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
15752
|
+
// event.key is for Android support
|
|
15696
15753
|
onClick(event);
|
|
15697
15754
|
event.preventDefault();
|
|
15698
15755
|
}
|
|
@@ -15746,7 +15803,8 @@ var RowRadioButton = /*#__PURE__*/React.memo(function (props) {
|
|
|
15746
15803
|
}
|
|
15747
15804
|
};
|
|
15748
15805
|
var onKeyDown = function onKeyDown(event) {
|
|
15749
|
-
if (event.code === 'Space') {
|
|
15806
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
15807
|
+
// event.key is for Android support
|
|
15750
15808
|
onClick(event);
|
|
15751
15809
|
event.preventDefault();
|
|
15752
15810
|
}
|
|
@@ -15813,7 +15871,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
15813
15871
|
return props.column ? props.column.props[prop] : null;
|
|
15814
15872
|
};
|
|
15815
15873
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
15816
|
-
var editingKey = props.dataKey ? props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
15874
|
+
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
15817
15875
|
var _useEventListener = useEventListener({
|
|
15818
15876
|
type: 'click',
|
|
15819
15877
|
listener: function listener(e) {
|
|
@@ -15840,7 +15898,7 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
15840
15898
|
return props.compareSelectionBy === 'equals' ? data === props.rowData : ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
15841
15899
|
};
|
|
15842
15900
|
var equals = function equals(selectedCell) {
|
|
15843
|
-
return (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
15901
|
+
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
15844
15902
|
};
|
|
15845
15903
|
var isOutsideClicked = function isOutsideClicked(target) {
|
|
15846
15904
|
return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
|
|
@@ -15975,14 +16033,14 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
15975
16033
|
var align = getColumnProp('alignFrozen');
|
|
15976
16034
|
if (align === 'right') {
|
|
15977
16035
|
var right = 0;
|
|
15978
|
-
var next = elementRef.current.nextElementSibling;
|
|
16036
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
15979
16037
|
if (next) {
|
|
15980
16038
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
15981
16039
|
}
|
|
15982
16040
|
styleObject['right'] = right + 'px';
|
|
15983
16041
|
} else {
|
|
15984
16042
|
var left = 0;
|
|
15985
|
-
var prev = elementRef.current.previousElementSibling;
|
|
16043
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
15986
16044
|
if (prev) {
|
|
15987
16045
|
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
15988
16046
|
}
|
|
@@ -15998,7 +16056,10 @@ var BodyCell = /*#__PURE__*/React.memo(function (props) {
|
|
|
15998
16056
|
setEditingRowDataState(editingRowData);
|
|
15999
16057
|
|
|
16000
16058
|
// update editing meta for complete methods on row mode
|
|
16001
|
-
|
|
16059
|
+
var currentData = getEditingRowData();
|
|
16060
|
+
if (currentData) {
|
|
16061
|
+
currentData[field] = val;
|
|
16062
|
+
}
|
|
16002
16063
|
};
|
|
16003
16064
|
var onClick = function onClick(event) {
|
|
16004
16065
|
var params = getCellCallbackParams(event);
|
|
@@ -16965,7 +17026,7 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
16965
17026
|
return null;
|
|
16966
17027
|
};
|
|
16967
17028
|
var getRowKey = function getRowKey(rowData, index) {
|
|
16968
|
-
return props.dataKey ? ObjectUtils.resolveFieldData(rowData, props.dataKey)
|
|
17029
|
+
return props.dataKey ? ObjectUtils.resolveFieldData(rowData, props.dataKey) : index;
|
|
16969
17030
|
};
|
|
16970
17031
|
var shouldRenderRowGroupHeader = function shouldRenderRowGroupHeader(value, rowData, i) {
|
|
16971
17032
|
var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, props.groupRowsBy);
|
|
@@ -17442,14 +17503,14 @@ var TableBody = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
17442
17503
|
var event = e.originalEvent;
|
|
17443
17504
|
if (droppedRowIndex.current != null) {
|
|
17444
17505
|
var dropIndex = draggedRowIndex.current > droppedRowIndex.current ? droppedRowIndex.current : droppedRowIndex.current === 0 ? 0 : droppedRowIndex.current - 1;
|
|
17445
|
-
var val = _toConsumableArray(props.value);
|
|
17506
|
+
var val = _toConsumableArray(props.tableProps.value);
|
|
17446
17507
|
ObjectUtils.reorderArray(val, draggedRowIndex.current, dropIndex);
|
|
17447
17508
|
if (props.onRowReorder) {
|
|
17448
17509
|
props.onRowReorder({
|
|
17449
17510
|
originalEvent: event,
|
|
17450
17511
|
value: val,
|
|
17451
17512
|
dragIndex: draggedRowIndex.current,
|
|
17452
|
-
dropIndex:
|
|
17513
|
+
dropIndex: dropIndex
|
|
17453
17514
|
});
|
|
17454
17515
|
}
|
|
17455
17516
|
}
|
|
@@ -18575,7 +18636,8 @@ var HeaderCheckbox = /*#__PURE__*/React.memo(function (props) {
|
|
|
18575
18636
|
}
|
|
18576
18637
|
};
|
|
18577
18638
|
var onKeyDown = function onKeyDown(event) {
|
|
18578
|
-
if (event.code === 'Space') {
|
|
18639
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
18640
|
+
// event.key is for Android support
|
|
18579
18641
|
onClick(event);
|
|
18580
18642
|
event.preventDefault();
|
|
18581
18643
|
}
|
|
@@ -19457,7 +19519,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
19457
19519
|
return props.selectAll;
|
|
19458
19520
|
} else {
|
|
19459
19521
|
var _data = props.selectionPageOnly ? dataToRender(processedData) : processedData;
|
|
19460
|
-
var val = props.frozenValue ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
|
|
19522
|
+
var val = ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
|
|
19461
19523
|
var selectableVal = getSelectableData(val);
|
|
19462
19524
|
return selectableVal && props.selection && selectableVal.every(function (sv) {
|
|
19463
19525
|
return props.selection.some(function (s) {
|
|
@@ -19618,7 +19680,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
19618
19680
|
});
|
|
19619
19681
|
}) : [];
|
|
19620
19682
|
if (checked) {
|
|
19621
|
-
selection = props.frozenValue ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
|
|
19683
|
+
selection = ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
|
|
19622
19684
|
selection = getSelectableData(selection);
|
|
19623
19685
|
props.onAllRowsSelect && props.onAllRowsSelect({
|
|
19624
19686
|
originalEvent: originalEvent,
|
|
@@ -19966,6 +20028,9 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
19966
20028
|
var globalMatch = false;
|
|
19967
20029
|
var localFiltered = false;
|
|
19968
20030
|
for (var prop in filters) {
|
|
20031
|
+
if (prop === 'null') {
|
|
20032
|
+
continue;
|
|
20033
|
+
}
|
|
19969
20034
|
if (Object.prototype.hasOwnProperty.call(filters, prop) && prop !== 'global') {
|
|
19970
20035
|
localFiltered = true;
|
|
19971
20036
|
var filterField = prop;
|
|
@@ -20257,8 +20322,11 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
20257
20322
|
useUpdateEffect(function () {
|
|
20258
20323
|
if (props.globalFilter) {
|
|
20259
20324
|
filter(props.globalFilter, 'global', props.globalFilterMatchMode);
|
|
20325
|
+
} else {
|
|
20326
|
+
// #3819 was filtering but now reset filter state
|
|
20327
|
+
setFiltersState(props.filters);
|
|
20260
20328
|
}
|
|
20261
|
-
}, [props.globalFilter]);
|
|
20329
|
+
}, [props.globalFilter, props.globalFilterMatchMode]);
|
|
20262
20330
|
useUnmountEffect(function () {
|
|
20263
20331
|
unbindColumnResizeEvents();
|
|
20264
20332
|
destroyStyleElement();
|
|
@@ -20362,7 +20430,7 @@ var DataTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
20362
20430
|
contentRef = options.contentRef,
|
|
20363
20431
|
className = options.className;
|
|
20364
20432
|
options.itemSize;
|
|
20365
|
-
var frozenBody = props.frozenValue && /*#__PURE__*/React.createElement(TableBody, {
|
|
20433
|
+
var frozenBody = ObjectUtils.isNotEmpty(props.frozenValue) && /*#__PURE__*/React.createElement(TableBody, {
|
|
20366
20434
|
ref: frozenBodyRef,
|
|
20367
20435
|
value: props.frozenValue,
|
|
20368
20436
|
className: "p-datatable-frozen-tbody",
|
|
@@ -22278,6 +22346,9 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
22278
22346
|
},
|
|
22279
22347
|
getFiles: function getFiles() {
|
|
22280
22348
|
return filesState;
|
|
22349
|
+
},
|
|
22350
|
+
setFiles: function setFiles(files) {
|
|
22351
|
+
return setFilesState(files || []);
|
|
22281
22352
|
}
|
|
22282
22353
|
};
|
|
22283
22354
|
});
|
|
@@ -22356,6 +22427,7 @@ var FileUpload = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
22356
22427
|
removeElement: removeButton,
|
|
22357
22428
|
formatSize: formatSize(file.size),
|
|
22358
22429
|
element: content,
|
|
22430
|
+
index: index,
|
|
22359
22431
|
props: props
|
|
22360
22432
|
};
|
|
22361
22433
|
content = ObjectUtils.getJSXElement(props.itemTemplate, file, defaultContentOptions);
|
|
@@ -23188,7 +23260,9 @@ var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
23188
23260
|
var galleriaClassName = classNames('p-galleria p-component', props.className, {
|
|
23189
23261
|
'p-galleria-fullscreen': props.fullScreen,
|
|
23190
23262
|
'p-galleria-indicator-onitem': props.showIndicatorsOnItem,
|
|
23191
|
-
'p-galleria-item-nav-onhover': props.showItemNavigatorsOnHover && !props.fullScreen
|
|
23263
|
+
'p-galleria-item-nav-onhover': props.showItemNavigatorsOnHover && !props.fullScreen,
|
|
23264
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
23265
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
23192
23266
|
}, thumbnailsPosClassName, indicatorPosClassName);
|
|
23193
23267
|
var closeIcon = props.fullScreen && /*#__PURE__*/React.createElement("button", {
|
|
23194
23268
|
type: "button",
|
|
@@ -23984,11 +24058,10 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
23984
24058
|
pos,
|
|
23985
24059
|
begin,
|
|
23986
24060
|
end;
|
|
23987
|
-
var iPhone = /iphone/i.test(DomHandler.getUserAgent());
|
|
23988
24061
|
oldVal.current = elementRef.current.value;
|
|
23989
24062
|
|
|
23990
24063
|
//backspace, delete, and escape get special treatment
|
|
23991
|
-
if (k === 8 || k === 46 ||
|
|
24064
|
+
if (k === 8 || k === 46 || DomHandler.isIOS() && k === 127) {
|
|
23992
24065
|
pos = caret();
|
|
23993
24066
|
begin = pos.begin;
|
|
23994
24067
|
end = pos.end;
|
|
@@ -24038,7 +24111,7 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
24038
24111
|
buffer.current[p] = c;
|
|
24039
24112
|
writeBuffer();
|
|
24040
24113
|
next = seekNext(p);
|
|
24041
|
-
if (
|
|
24114
|
+
if (DomHandler.isAndroid()) {
|
|
24042
24115
|
//Path for CSP Violation on FireFox OS 1.1
|
|
24043
24116
|
var proxy = function proxy() {
|
|
24044
24117
|
caret(next);
|
|
@@ -24227,8 +24300,7 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
24227
24300
|
a: '[A-Za-z]',
|
|
24228
24301
|
'*': '[A-Za-z0-9]'
|
|
24229
24302
|
};
|
|
24230
|
-
|
|
24231
|
-
androidChrome.current = /chrome/i.test(ua) && /android/i.test(ua);
|
|
24303
|
+
androidChrome.current = DomHandler.isChrome() && DomHandler.isAndroid();
|
|
24232
24304
|
var maskTokens = props.mask.split('');
|
|
24233
24305
|
for (var i = 0; i < maskTokens.length; i++) {
|
|
24234
24306
|
var c = maskTokens[i];
|
|
@@ -24260,6 +24332,9 @@ var InputMask = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
24260
24332
|
React.useImperativeHandle(ref, function () {
|
|
24261
24333
|
return {
|
|
24262
24334
|
props: props,
|
|
24335
|
+
focus: function focus() {
|
|
24336
|
+
return DomHandler.focus(elementRef.current);
|
|
24337
|
+
},
|
|
24263
24338
|
getElement: function getElement() {
|
|
24264
24339
|
return elementRef.current;
|
|
24265
24340
|
}
|
|
@@ -24382,11 +24457,14 @@ var InputSwitch = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
24382
24457
|
React.useImperativeHandle(ref, function () {
|
|
24383
24458
|
return {
|
|
24384
24459
|
props: props,
|
|
24460
|
+
focus: function focus() {
|
|
24461
|
+
return DomHandler.focus(inputRef.current);
|
|
24462
|
+
},
|
|
24385
24463
|
getElement: function getElement() {
|
|
24386
24464
|
return elementRef.current;
|
|
24387
24465
|
},
|
|
24388
24466
|
getInput: function getInput() {
|
|
24389
|
-
return
|
|
24467
|
+
return inputRef.current;
|
|
24390
24468
|
}
|
|
24391
24469
|
};
|
|
24392
24470
|
});
|
|
@@ -25126,6 +25204,9 @@ var ListBox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
25126
25204
|
React.useImperativeHandle(ref, function () {
|
|
25127
25205
|
return {
|
|
25128
25206
|
props: props,
|
|
25207
|
+
focus: function focus() {
|
|
25208
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
25209
|
+
},
|
|
25129
25210
|
getElement: function getElement() {
|
|
25130
25211
|
return elementRef.current;
|
|
25131
25212
|
},
|
|
@@ -25969,6 +26050,9 @@ var Mention = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
25969
26050
|
props: props,
|
|
25970
26051
|
show: show,
|
|
25971
26052
|
hide: hide,
|
|
26053
|
+
focus: function focus() {
|
|
26054
|
+
return DomHandler.focus(inputRef.current);
|
|
26055
|
+
},
|
|
25972
26056
|
getElement: function getElement() {
|
|
25973
26057
|
return elementRef.current;
|
|
25974
26058
|
},
|
|
@@ -26320,7 +26404,9 @@ var Menu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (prop
|
|
|
26320
26404
|
if (props.model) {
|
|
26321
26405
|
var otherProps = ObjectUtils.findDiffKeys(props, Menu.defaultProps);
|
|
26322
26406
|
var className = classNames('p-menu p-component', {
|
|
26323
|
-
'p-menu-overlay': props.popup
|
|
26407
|
+
'p-menu-overlay': props.popup,
|
|
26408
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
26409
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
26324
26410
|
}, props.className);
|
|
26325
26411
|
var menuitems = createMenu();
|
|
26326
26412
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
@@ -27126,7 +27212,9 @@ var MultiSelectPanel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
|
|
|
27126
27212
|
var panelClassName = classNames('p-multiselect-panel p-component', {
|
|
27127
27213
|
'p-multiselect-inline': props.inline,
|
|
27128
27214
|
'p-multiselect-flex': props.flex,
|
|
27129
|
-
'p-multiselect-limited': !allowOptionSelect
|
|
27215
|
+
'p-multiselect-limited': !allowOptionSelect,
|
|
27216
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
27217
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
27130
27218
|
}, props.panelClassName);
|
|
27131
27219
|
var header = createHeader();
|
|
27132
27220
|
var content = createContent();
|
|
@@ -27676,6 +27764,9 @@ var MultiSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
27676
27764
|
props: props,
|
|
27677
27765
|
show: show,
|
|
27678
27766
|
hide: hide,
|
|
27767
|
+
focus: function focus() {
|
|
27768
|
+
return DomHandler.focus(inputRef.current);
|
|
27769
|
+
},
|
|
27679
27770
|
getElement: function getElement() {
|
|
27680
27771
|
return elementRef.current;
|
|
27681
27772
|
},
|
|
@@ -27939,6 +28030,9 @@ var MultiStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
27939
28030
|
React.useImperativeHandle(ref, function () {
|
|
27940
28031
|
return {
|
|
27941
28032
|
props: props,
|
|
28033
|
+
focus: function focus() {
|
|
28034
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
28035
|
+
},
|
|
27942
28036
|
getElement: function getElement() {
|
|
27943
28037
|
return elementRef.current;
|
|
27944
28038
|
}
|
|
@@ -28927,7 +29021,10 @@ var OverlayPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
28927
29021
|
};
|
|
28928
29022
|
var createElement = function createElement() {
|
|
28929
29023
|
var otherProps = ObjectUtils.findDiffKeys(props, OverlayPanel.defaultProps);
|
|
28930
|
-
var className = classNames('p-overlaypanel p-component', props.className
|
|
29024
|
+
var className = classNames('p-overlaypanel p-component', props.className, {
|
|
29025
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
29026
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
29027
|
+
});
|
|
28931
29028
|
var closeIcon = createCloseIcon();
|
|
28932
29029
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
28933
29030
|
nodeRef: overlayRef,
|
|
@@ -29692,6 +29789,9 @@ var Password = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
29692
29789
|
React.useImperativeHandle(ref, function () {
|
|
29693
29790
|
return {
|
|
29694
29791
|
props: props,
|
|
29792
|
+
focus: function focus() {
|
|
29793
|
+
return DomHandler.focus(inputRef.current);
|
|
29794
|
+
},
|
|
29695
29795
|
getElement: function getElement() {
|
|
29696
29796
|
return elementRef.current;
|
|
29697
29797
|
},
|
|
@@ -29741,7 +29841,10 @@ var Password = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
29741
29841
|
return null;
|
|
29742
29842
|
};
|
|
29743
29843
|
var createPanel = function createPanel() {
|
|
29744
|
-
var panelClassName = classNames('p-password-panel p-component', props.panelClassName
|
|
29844
|
+
var panelClassName = classNames('p-password-panel p-component', props.panelClassName, {
|
|
29845
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
29846
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
29847
|
+
});
|
|
29745
29848
|
var _ref2 = meterState || {
|
|
29746
29849
|
strength: '',
|
|
29747
29850
|
width: '0%'
|
|
@@ -30689,7 +30792,8 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
30689
30792
|
setFocusedState(false);
|
|
30690
30793
|
};
|
|
30691
30794
|
var onKeyDown = function onKeyDown(event) {
|
|
30692
|
-
if (event.code === 'Space') {
|
|
30795
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
30796
|
+
// event.key is for Android support
|
|
30693
30797
|
onClick(event);
|
|
30694
30798
|
}
|
|
30695
30799
|
};
|
|
@@ -30705,6 +30809,9 @@ var RadioButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
30705
30809
|
return {
|
|
30706
30810
|
props: props,
|
|
30707
30811
|
select: select,
|
|
30812
|
+
focus: function focus() {
|
|
30813
|
+
return DomHandler.focus(inputRef.current);
|
|
30814
|
+
},
|
|
30708
30815
|
getElement: function getElement() {
|
|
30709
30816
|
return elementRef.current;
|
|
30710
30817
|
},
|
|
@@ -31351,6 +31458,9 @@ var SelectButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
31351
31458
|
React.useImperativeHandle(ref, function () {
|
|
31352
31459
|
return {
|
|
31353
31460
|
props: props,
|
|
31461
|
+
focus: function focus() {
|
|
31462
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
31463
|
+
},
|
|
31354
31464
|
getElement: function getElement() {
|
|
31355
31465
|
return elementRef.current;
|
|
31356
31466
|
}
|
|
@@ -31526,6 +31636,15 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
31526
31636
|
setVisibleState(true);
|
|
31527
31637
|
}
|
|
31528
31638
|
}, [maskVisibleState]);
|
|
31639
|
+
useUpdateEffect(function () {
|
|
31640
|
+
// #3811 if dismissible state is toggled while open we must unregister and re-regisetr
|
|
31641
|
+
if (visibleState) {
|
|
31642
|
+
unbindDocumentClickListener();
|
|
31643
|
+
if (props.dismissable && !props.modal) {
|
|
31644
|
+
bindDocumentClickListener();
|
|
31645
|
+
}
|
|
31646
|
+
}
|
|
31647
|
+
}, [props.dismissable, props.modal, visibleState]);
|
|
31529
31648
|
useUnmountEffect(function () {
|
|
31530
31649
|
disableDocumentSettings();
|
|
31531
31650
|
maskRef.current && ZIndexUtils.clear(maskRef.current);
|
|
@@ -31551,7 +31670,10 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
31551
31670
|
};
|
|
31552
31671
|
var createElement = function createElement() {
|
|
31553
31672
|
var otherProps = ObjectUtils.findDiffKeys(props, Sidebar.defaultProps);
|
|
31554
|
-
var className = classNames('p-sidebar p-component', props.className
|
|
31673
|
+
var className = classNames('p-sidebar p-component', props.className, {
|
|
31674
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
31675
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
31676
|
+
});
|
|
31555
31677
|
var maskClassName = classNames('p-sidebar-mask', {
|
|
31556
31678
|
'p-component-overlay p-component-overlay-enter': props.modal,
|
|
31557
31679
|
'p-sidebar-mask-scrollblocker': props.blockScroll,
|
|
@@ -32607,8 +32729,9 @@ var SplitButtonItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
32607
32729
|
_label = _props$menuitem.label,
|
|
32608
32730
|
template = _props$menuitem.template,
|
|
32609
32731
|
url = _props$menuitem.url,
|
|
32610
|
-
target = _props$menuitem.target
|
|
32611
|
-
|
|
32732
|
+
target = _props$menuitem.target,
|
|
32733
|
+
_className = _props$menuitem.className;
|
|
32734
|
+
var className = classNames('p-menuitem-link', _className, {
|
|
32612
32735
|
'p-disabled': disabled
|
|
32613
32736
|
});
|
|
32614
32737
|
var iconClassName = classNames('p-menuitem-icon', _icon);
|
|
@@ -33688,7 +33811,7 @@ var TabView = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
33688
33811
|
updateScrollBar(index);
|
|
33689
33812
|
};
|
|
33690
33813
|
var _onKeyDown = function onKeyDown(event, tab, index) {
|
|
33691
|
-
if (event.
|
|
33814
|
+
if (event.key === 'Enter') {
|
|
33692
33815
|
onTabHeaderClick(event, tab, index);
|
|
33693
33816
|
}
|
|
33694
33817
|
};
|
|
@@ -34079,6 +34202,9 @@ var Terminal = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
34079
34202
|
React.useImperativeHandle(ref, function () {
|
|
34080
34203
|
return {
|
|
34081
34204
|
props: props,
|
|
34205
|
+
focus: function focus() {
|
|
34206
|
+
return DomHandler.focus(inputRef.current);
|
|
34207
|
+
},
|
|
34082
34208
|
getElement: function getElement() {
|
|
34083
34209
|
return elementRef.current;
|
|
34084
34210
|
}
|
|
@@ -34503,7 +34629,9 @@ var TieredMenu = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
34503
34629
|
var createElement = function createElement() {
|
|
34504
34630
|
var otherProps = ObjectUtils.findDiffKeys(props, TieredMenu.defaultProps);
|
|
34505
34631
|
var className = classNames('p-tieredmenu p-component', {
|
|
34506
|
-
'p-tieredmenu-overlay': props.popup
|
|
34632
|
+
'p-tieredmenu-overlay': props.popup,
|
|
34633
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
34634
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
34507
34635
|
}, props.className);
|
|
34508
34636
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
34509
34637
|
nodeRef: menuRef,
|
|
@@ -34596,25 +34724,21 @@ var Timeline = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
34596
34724
|
var className = classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
|
|
34597
34725
|
var events = createEvents();
|
|
34598
34726
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
34599
|
-
id: props.id,
|
|
34600
34727
|
ref: elementRef,
|
|
34601
|
-
className: className
|
|
34602
|
-
style: props.style
|
|
34728
|
+
className: className
|
|
34603
34729
|
}, otherProps), events);
|
|
34604
34730
|
}));
|
|
34605
34731
|
Timeline.displayName = 'Timeline';
|
|
34606
34732
|
Timeline.defaultProps = {
|
|
34607
34733
|
__TYPE: 'Timeline',
|
|
34608
|
-
id: null,
|
|
34609
|
-
value: null,
|
|
34610
34734
|
align: 'left',
|
|
34611
|
-
layout: 'vertical',
|
|
34612
|
-
dataKey: null,
|
|
34613
34735
|
className: null,
|
|
34614
|
-
|
|
34615
|
-
|
|
34736
|
+
content: null,
|
|
34737
|
+
dataKey: null,
|
|
34738
|
+
layout: 'vertical',
|
|
34616
34739
|
marker: null,
|
|
34617
|
-
|
|
34740
|
+
opposite: null,
|
|
34741
|
+
value: null
|
|
34618
34742
|
};
|
|
34619
34743
|
|
|
34620
34744
|
var ToastMessage = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -34820,7 +34944,10 @@ var Toast = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (pro
|
|
|
34820
34944
|
});
|
|
34821
34945
|
var createElement = function createElement() {
|
|
34822
34946
|
var otherProps = ObjectUtils.findDiffKeys(props, Toast.defaultProps);
|
|
34823
|
-
var className = classNames('p-toast p-component p-toast-' + props.position, props.className
|
|
34947
|
+
var className = classNames('p-toast p-component p-toast-' + props.position, props.className, {
|
|
34948
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
34949
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
34950
|
+
});
|
|
34824
34951
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
34825
34952
|
ref: containerRef,
|
|
34826
34953
|
id: props.id,
|
|
@@ -34918,13 +35045,16 @@ var ToggleButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
34918
35045
|
React.useImperativeHandle(ref, function () {
|
|
34919
35046
|
return {
|
|
34920
35047
|
props: props,
|
|
35048
|
+
focus: function focus() {
|
|
35049
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
35050
|
+
},
|
|
34921
35051
|
getElement: function getElement() {
|
|
34922
35052
|
return elementRef.current;
|
|
34923
35053
|
}
|
|
34924
35054
|
};
|
|
34925
35055
|
});
|
|
34926
35056
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
34927
|
-
var tabIndex =
|
|
35057
|
+
var tabIndex = props.disabled ? -1 : props.tabIndex;
|
|
34928
35058
|
var otherProps = ObjectUtils.findDiffKeys(props, ToggleButton.defaultProps);
|
|
34929
35059
|
var className = classNames('p-button p-togglebutton p-component', {
|
|
34930
35060
|
'p-button-icon-only': hasIcon && !hasLabel,
|
|
@@ -34976,8 +35106,9 @@ var Toolbar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
34976
35106
|
var elementRef = React.useRef(null);
|
|
34977
35107
|
var otherProps = ObjectUtils.findDiffKeys(props, Toolbar.defaultProps);
|
|
34978
35108
|
var toolbarClass = classNames('p-toolbar p-component', props.className);
|
|
34979
|
-
var
|
|
34980
|
-
var
|
|
35109
|
+
var start = ObjectUtils.getJSXElement(props.left || props.start, props);
|
|
35110
|
+
var center = ObjectUtils.getJSXElement(props.center, props);
|
|
35111
|
+
var end = ObjectUtils.getJSXElement(props.right || props.end, props);
|
|
34981
35112
|
React.useImperativeHandle(ref, function () {
|
|
34982
35113
|
return {
|
|
34983
35114
|
props: props,
|
|
@@ -34993,10 +35124,12 @@ var Toolbar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
34993
35124
|
style: props.style,
|
|
34994
35125
|
role: "toolbar"
|
|
34995
35126
|
}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
34996
|
-
className: "p-toolbar-group-left"
|
|
34997
|
-
},
|
|
34998
|
-
className: "p-toolbar-group-
|
|
34999
|
-
},
|
|
35127
|
+
className: "p-toolbar-group-start p-toolbar-group-left"
|
|
35128
|
+
}, start), /*#__PURE__*/React.createElement("div", {
|
|
35129
|
+
className: "p-toolbar-group-center"
|
|
35130
|
+
}, center), /*#__PURE__*/React.createElement("div", {
|
|
35131
|
+
className: "p-toolbar-group-end p-toolbar-group-right"
|
|
35132
|
+
}, end));
|
|
35000
35133
|
}));
|
|
35001
35134
|
Toolbar.displayName = 'Toolbar';
|
|
35002
35135
|
Toolbar.defaultProps = {
|
|
@@ -35005,7 +35138,10 @@ Toolbar.defaultProps = {
|
|
|
35005
35138
|
style: null,
|
|
35006
35139
|
className: null,
|
|
35007
35140
|
left: null,
|
|
35008
|
-
right: null
|
|
35141
|
+
right: null,
|
|
35142
|
+
start: null,
|
|
35143
|
+
center: null,
|
|
35144
|
+
end: null
|
|
35009
35145
|
};
|
|
35010
35146
|
|
|
35011
35147
|
function _createForOfIteratorHelper$6(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
@@ -36136,7 +36272,10 @@ var TreeSelectPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
36136
36272
|
var wrapperStyle = {
|
|
36137
36273
|
maxHeight: props.scrollHeight || 'auto'
|
|
36138
36274
|
};
|
|
36139
|
-
var className = classNames('p-treeselect-panel p-component', props.panelClassName
|
|
36275
|
+
var className = classNames('p-treeselect-panel p-component', props.panelClassName, {
|
|
36276
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
36277
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
36278
|
+
});
|
|
36140
36279
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
36141
36280
|
nodeRef: ref,
|
|
36142
36281
|
classNames: "p-connected-overlay",
|
|
@@ -36482,6 +36621,9 @@ var TreeSelect = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
36482
36621
|
React.useImperativeHandle(ref, function () {
|
|
36483
36622
|
return {
|
|
36484
36623
|
props: props,
|
|
36624
|
+
focus: function focus() {
|
|
36625
|
+
return DomHandler.focus(focusInputRef.current);
|
|
36626
|
+
},
|
|
36485
36627
|
getElement: function getElement() {
|
|
36486
36628
|
return elementRef.current;
|
|
36487
36629
|
}
|
|
@@ -37979,6 +38121,7 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
37979
38121
|
columnOrderState = _React$useState16[0],
|
|
37980
38122
|
setColumnOrderState = _React$useState16[1];
|
|
37981
38123
|
var elementRef = React.useRef(null);
|
|
38124
|
+
var tableRef = React.useRef(null);
|
|
37982
38125
|
var resizerHelperRef = React.useRef(null);
|
|
37983
38126
|
var reorderIndicatorUpRef = React.useRef(null);
|
|
37984
38127
|
var reorderIndicatorDownRef = React.useRef(null);
|
|
@@ -38251,7 +38394,7 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
38251
38394
|
resizeColGroup(_scrollableBodyTable, _resizeColumnIndex, newColumnWidth, null);
|
|
38252
38395
|
resizeColGroup(_scrollableFooterTable, _resizeColumnIndex, newColumnWidth, null);
|
|
38253
38396
|
} else {
|
|
38254
|
-
|
|
38397
|
+
tableRef.current.style.width = tableRef.current.offsetWidth + delta + 'px';
|
|
38255
38398
|
resizeColumn.current.style.width = newColumnWidth + 'px';
|
|
38256
38399
|
}
|
|
38257
38400
|
}
|
|
@@ -38809,6 +38952,7 @@ var TreeTable = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
38809
38952
|
return /*#__PURE__*/React.createElement("div", {
|
|
38810
38953
|
className: "p-treetable-wrapper"
|
|
38811
38954
|
}, /*#__PURE__*/React.createElement("table", {
|
|
38955
|
+
ref: tableRef,
|
|
38812
38956
|
style: props.tableStyle,
|
|
38813
38957
|
className: props.tableClassName
|
|
38814
38958
|
}, header, footer, body));
|
|
@@ -39006,6 +39150,9 @@ var TriStateCheckbox = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(fu
|
|
|
39006
39150
|
React.useImperativeHandle(ref, function () {
|
|
39007
39151
|
return {
|
|
39008
39152
|
props: props,
|
|
39153
|
+
focus: function focus() {
|
|
39154
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
39155
|
+
},
|
|
39009
39156
|
getElement: function getElement() {
|
|
39010
39157
|
return elementRef.current;
|
|
39011
39158
|
}
|