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
|
@@ -1,8 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* CSSTransition component wraps [ReactCSSTransition](https://reactcommunity.org/react-transition-group/css-transition) API.
|
|
4
|
+
* It allows us to easily manage animations. All PrimeReact components use this component.
|
|
5
|
+
*
|
|
6
|
+
* [Live Demo](https://www.primefaces.org/primereact/dropdown/)
|
|
7
|
+
*
|
|
8
|
+
* @module csstransition
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
1
11
|
import * as React from 'react';
|
|
2
12
|
import { CSSTransitionProps as ReactCSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
3
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Defines valid properties in [ReactCSSTransition](https://reactcommunity.org/react-transition-group/css-transition) API. In addition to these, all properties of HTMLElement can be used in this component.
|
|
16
|
+
* @group Properties
|
|
17
|
+
*/
|
|
4
18
|
export type CSSTransitionProps<Ref extends undefined | HTMLElement = undefined> = ReactCSSTransitionProps<Ref> & {
|
|
5
|
-
|
|
19
|
+
/**
|
|
20
|
+
* When present, it specifies that the component should be disabled.
|
|
21
|
+
* @defaultValue false
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean | undefined;
|
|
6
24
|
};
|
|
7
25
|
|
|
26
|
+
/**
|
|
27
|
+
* **PrimeReact - CSSTransition**
|
|
28
|
+
*
|
|
29
|
+
* _CSSTransition component wraps [ReactCSSTransition](https://reactcommunity.org/react-transition-group/css-transition) API.
|
|
30
|
+
* It allows us to easily manage animations. All PrimeReact components use this component._
|
|
31
|
+
*
|
|
32
|
+
* [Live Demo](https://www.primefaces.org/primereact/dropdown/)
|
|
33
|
+
* --- ---
|
|
34
|
+
* 
|
|
35
|
+
*
|
|
36
|
+
* @group Component
|
|
37
|
+
*/
|
|
8
38
|
export declare class CSSTransition<Ref extends undefined | HTMLElement> extends React.Component<CSSTransitionProps<Ref>, any> {}
|
|
@@ -1,29 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* DataScroller displays data with on demand loading using scroll.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/datascroller/)
|
|
6
|
+
*
|
|
7
|
+
* @module datascroller
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom lazy event.
|
|
14
|
+
* @see {@link DataScrollerProps.onLazyLoad}
|
|
15
|
+
* @event
|
|
16
|
+
*/
|
|
17
|
+
interface DataScrollerLazyLoadEvents {
|
|
18
|
+
/**
|
|
19
|
+
* First row offset
|
|
20
|
+
*/
|
|
6
21
|
first: number;
|
|
22
|
+
/**
|
|
23
|
+
* Number of rows per page
|
|
24
|
+
*/
|
|
7
25
|
rows: number;
|
|
8
26
|
}
|
|
9
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Defines valid properties in DataScroller component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
30
|
+
* @group Properties
|
|
31
|
+
*/
|
|
10
32
|
export interface DataScrollerProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Number of buffer size.
|
|
35
|
+
* @defaultValue 0.9
|
|
36
|
+
*/
|
|
37
|
+
buffer?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Used to get the child elements of the component.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
children?: React.ReactNode | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Text to display when there is no data.
|
|
45
|
+
* @defaultValue No records found
|
|
46
|
+
*/
|
|
47
|
+
emptyMessage?: React.ReactNode | ((props: DataScrollerProps) => React.ReactNode);
|
|
48
|
+
/**
|
|
49
|
+
* Label of footer.
|
|
50
|
+
*/
|
|
51
|
+
footer?: React.ReactNode | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Label of header.
|
|
54
|
+
*/
|
|
55
|
+
header?: React.ReactNode | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Defines if the event target to listen the scroll event is the element itself.
|
|
58
|
+
* @defaultValue false
|
|
59
|
+
*/
|
|
60
|
+
inline?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Defines if data is loaded and interacted with in lazy manner.
|
|
63
|
+
* @defaultValue false
|
|
64
|
+
*/
|
|
65
|
+
lazy?: boolean | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Determines whether data is loaded by a target element.
|
|
68
|
+
*/
|
|
69
|
+
loader?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Number of rows to fetch in a load event.
|
|
72
|
+
*/
|
|
73
|
+
rows?: number | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Max height of the content area in inline mode.
|
|
76
|
+
*/
|
|
77
|
+
scrollHeight?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* An array of objects to display.
|
|
80
|
+
*/
|
|
81
|
+
value?: any[] | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Function that gets an item in the value and returns the content for it.
|
|
84
|
+
* @param {*} item - Current item
|
|
85
|
+
*/
|
|
86
|
+
itemTemplate?(item: any): React.ReactNode | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Callback to invoke in lazy mode to load new data.
|
|
89
|
+
* @param {DataScrollerLazyLoadEvents} event - Custom lazy event
|
|
90
|
+
*/
|
|
91
|
+
onLazyLoad?(event: DataScrollerLazyLoadEvents): void;
|
|
24
92
|
}
|
|
25
93
|
|
|
94
|
+
/**
|
|
95
|
+
* **PrimeReact - DataScroller**
|
|
96
|
+
*
|
|
97
|
+
* _DataScroller displays data with on demand loading using scroll._
|
|
98
|
+
*
|
|
99
|
+
* [Live Demo](https://www.primefaces.org/primereact/datascroller/)
|
|
100
|
+
* --- ---
|
|
101
|
+
* 
|
|
102
|
+
*
|
|
103
|
+
* @group Component
|
|
104
|
+
*/
|
|
26
105
|
export declare class DataScroller extends React.Component<DataScrollerProps, any> {
|
|
106
|
+
/**
|
|
107
|
+
* Used to load data manually
|
|
108
|
+
*/
|
|
27
109
|
public load(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Used to get container element.
|
|
112
|
+
* @return {HTMLDivElement} Container element
|
|
113
|
+
*/
|
|
28
114
|
public getElement(): HTMLDivElement;
|
|
29
115
|
}
|
|
@@ -218,7 +218,8 @@ var RowCheckbox = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
var onKeyDown = function onKeyDown(event) {
|
|
221
|
-
if (event.code === 'Space') {
|
|
221
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
222
|
+
// event.key is for Android support
|
|
222
223
|
onClick(event);
|
|
223
224
|
event.preventDefault();
|
|
224
225
|
}
|
|
@@ -272,7 +273,8 @@ var RowRadioButton = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
272
273
|
}
|
|
273
274
|
};
|
|
274
275
|
var onKeyDown = function onKeyDown(event) {
|
|
275
|
-
if (event.code === 'Space') {
|
|
276
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
277
|
+
// event.key is for Android support
|
|
276
278
|
onClick(event);
|
|
277
279
|
event.preventDefault();
|
|
278
280
|
}
|
|
@@ -339,7 +341,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
339
341
|
return props.column ? props.column.props[prop] : null;
|
|
340
342
|
};
|
|
341
343
|
var field = getColumnProp('field') || "field_".concat(props.index);
|
|
342
|
-
var editingKey = props.dataKey ? props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
344
|
+
var editingKey = props.dataKey ? props.rowData && props.rowData[props.dataKey] || props.rowIndex : props.rowIndex;
|
|
343
345
|
var _useEventListener = hooks.useEventListener({
|
|
344
346
|
type: 'click',
|
|
345
347
|
listener: function listener(e) {
|
|
@@ -366,7 +368,7 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
366
368
|
return props.compareSelectionBy === 'equals' ? data === props.rowData : utils.ObjectUtils.equals(data, props.rowData, props.dataKey);
|
|
367
369
|
};
|
|
368
370
|
var equals = function equals(selectedCell) {
|
|
369
|
-
return (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
371
|
+
return selectedCell && (selectedCell.rowIndex === props.rowIndex || equalsData(selectedCell.rowData)) && (selectedCell.field === field || selectedCell.cellIndex === props.index);
|
|
370
372
|
};
|
|
371
373
|
var isOutsideClicked = function isOutsideClicked(target) {
|
|
372
374
|
return elementRef.current && !(elementRef.current.isSameNode(target) || elementRef.current.contains(target));
|
|
@@ -501,14 +503,14 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
501
503
|
var align = getColumnProp('alignFrozen');
|
|
502
504
|
if (align === 'right') {
|
|
503
505
|
var right = 0;
|
|
504
|
-
var next = elementRef.current.nextElementSibling;
|
|
506
|
+
var next = elementRef.current && elementRef.current.nextElementSibling;
|
|
505
507
|
if (next) {
|
|
506
508
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
507
509
|
}
|
|
508
510
|
styleObject['right'] = right + 'px';
|
|
509
511
|
} else {
|
|
510
512
|
var left = 0;
|
|
511
|
-
var prev = elementRef.current.previousElementSibling;
|
|
513
|
+
var prev = elementRef.current && elementRef.current.previousElementSibling;
|
|
512
514
|
if (prev) {
|
|
513
515
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
514
516
|
}
|
|
@@ -524,7 +526,10 @@ var BodyCell = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
524
526
|
setEditingRowDataState(editingRowData);
|
|
525
527
|
|
|
526
528
|
// update editing meta for complete methods on row mode
|
|
527
|
-
|
|
529
|
+
var currentData = getEditingRowData();
|
|
530
|
+
if (currentData) {
|
|
531
|
+
currentData[field] = val;
|
|
532
|
+
}
|
|
528
533
|
};
|
|
529
534
|
var onClick = function onClick(event) {
|
|
530
535
|
var params = getCellCallbackParams(event);
|
|
@@ -1491,7 +1496,7 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
1491
1496
|
return null;
|
|
1492
1497
|
};
|
|
1493
1498
|
var getRowKey = function getRowKey(rowData, index) {
|
|
1494
|
-
return props.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, props.dataKey)
|
|
1499
|
+
return props.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, props.dataKey) : index;
|
|
1495
1500
|
};
|
|
1496
1501
|
var shouldRenderRowGroupHeader = function shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1497
1502
|
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, props.groupRowsBy);
|
|
@@ -1968,14 +1973,14 @@ var TableBody = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespac
|
|
|
1968
1973
|
var event = e.originalEvent;
|
|
1969
1974
|
if (droppedRowIndex.current != null) {
|
|
1970
1975
|
var dropIndex = draggedRowIndex.current > droppedRowIndex.current ? droppedRowIndex.current : droppedRowIndex.current === 0 ? 0 : droppedRowIndex.current - 1;
|
|
1971
|
-
var val = _toConsumableArray(props.value);
|
|
1976
|
+
var val = _toConsumableArray(props.tableProps.value);
|
|
1972
1977
|
utils.ObjectUtils.reorderArray(val, draggedRowIndex.current, dropIndex);
|
|
1973
1978
|
if (props.onRowReorder) {
|
|
1974
1979
|
props.onRowReorder({
|
|
1975
1980
|
originalEvent: event,
|
|
1976
1981
|
value: val,
|
|
1977
1982
|
dragIndex: draggedRowIndex.current,
|
|
1978
|
-
dropIndex:
|
|
1983
|
+
dropIndex: dropIndex
|
|
1979
1984
|
});
|
|
1980
1985
|
}
|
|
1981
1986
|
}
|
|
@@ -3101,7 +3106,8 @@ var HeaderCheckbox = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
3101
3106
|
}
|
|
3102
3107
|
};
|
|
3103
3108
|
var onKeyDown = function onKeyDown(event) {
|
|
3104
|
-
if (event.code === 'Space') {
|
|
3109
|
+
if (event.code === 'Space' || event.key === ' ') {
|
|
3110
|
+
// event.key is for Android support
|
|
3105
3111
|
onClick(event);
|
|
3106
3112
|
event.preventDefault();
|
|
3107
3113
|
}
|
|
@@ -3983,7 +3989,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
|
3983
3989
|
return props.selectAll;
|
|
3984
3990
|
} else {
|
|
3985
3991
|
var _data = props.selectionPageOnly ? dataToRender(processedData) : processedData;
|
|
3986
|
-
var val = props.frozenValue ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
|
|
3992
|
+
var val = utils.ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(props.frozenValue), _toConsumableArray(_data)) : _data;
|
|
3987
3993
|
var selectableVal = getSelectableData(val);
|
|
3988
3994
|
return selectableVal && props.selection && selectableVal.every(function (sv) {
|
|
3989
3995
|
return props.selection.some(function (s) {
|
|
@@ -4144,7 +4150,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
|
4144
4150
|
});
|
|
4145
4151
|
}) : [];
|
|
4146
4152
|
if (checked) {
|
|
4147
|
-
selection = props.frozenValue ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
|
|
4153
|
+
selection = utils.ObjectUtils.isNotEmpty(props.frozenValue) ? [].concat(_toConsumableArray(selection), _toConsumableArray(props.frozenValue), _toConsumableArray(_data2)) : [].concat(_toConsumableArray(selection), _toConsumableArray(_data2));
|
|
4148
4154
|
selection = getSelectableData(selection);
|
|
4149
4155
|
props.onAllRowsSelect && props.onAllRowsSelect({
|
|
4150
4156
|
originalEvent: originalEvent,
|
|
@@ -4492,6 +4498,9 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
|
4492
4498
|
var globalMatch = false;
|
|
4493
4499
|
var localFiltered = false;
|
|
4494
4500
|
for (var prop in filters) {
|
|
4501
|
+
if (prop === 'null') {
|
|
4502
|
+
continue;
|
|
4503
|
+
}
|
|
4495
4504
|
if (Object.prototype.hasOwnProperty.call(filters, prop) && prop !== 'global') {
|
|
4496
4505
|
localFiltered = true;
|
|
4497
4506
|
var filterField = prop;
|
|
@@ -4783,8 +4792,11 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
|
4783
4792
|
hooks.useUpdateEffect(function () {
|
|
4784
4793
|
if (props.globalFilter) {
|
|
4785
4794
|
filter(props.globalFilter, 'global', props.globalFilterMatchMode);
|
|
4795
|
+
} else {
|
|
4796
|
+
// #3819 was filtering but now reset filter state
|
|
4797
|
+
setFiltersState(props.filters);
|
|
4786
4798
|
}
|
|
4787
|
-
}, [props.globalFilter]);
|
|
4799
|
+
}, [props.globalFilter, props.globalFilterMatchMode]);
|
|
4788
4800
|
hooks.useUnmountEffect(function () {
|
|
4789
4801
|
unbindColumnResizeEvents();
|
|
4790
4802
|
destroyStyleElement();
|
|
@@ -4888,7 +4900,7 @@ var DataTable = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
|
4888
4900
|
contentRef = options.contentRef,
|
|
4889
4901
|
className = options.className;
|
|
4890
4902
|
options.itemSize;
|
|
4891
|
-
var frozenBody = props.frozenValue && /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
4903
|
+
var frozenBody = utils.ObjectUtils.isNotEmpty(props.frozenValue) && /*#__PURE__*/React__namespace.createElement(TableBody, {
|
|
4892
4904
|
ref: frozenBodyRef,
|
|
4893
4905
|
value: props.frozenValue,
|
|
4894
4906
|
className: "p-datatable-frozen-tbody",
|