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/tree/tree.d.ts
CHANGED
|
@@ -1,159 +1,523 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Tree is used to display hierarchical data.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/tree/)
|
|
6
|
+
*
|
|
7
|
+
* @module tree
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
import TreeNode from '../treenode';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type TreeSelectionKeyType = boolean | TreeCheckboxSelectionKeyType;
|
|
9
|
-
|
|
10
|
-
type TreeFilterModeType = 'lenient' | 'strict';
|
|
11
|
-
|
|
12
|
-
type TreeHeaderTemplateType = React.ReactNode | ((options: TreeHeaderTemplateOptions) => React.ReactNode);
|
|
13
|
-
|
|
14
|
-
type TreeFilterTemplateType = React.ReactNode | ((options: TreeFilterOptions) => React.ReactNode);
|
|
15
|
-
|
|
16
|
-
type TreeFooterTemplateType = React.ReactNode | ((props: TreeProps) => React.ReactNode);
|
|
17
|
-
|
|
18
|
-
type TreeNodeTemplateType = React.ReactNode | ((node: TreeNode, options: TreeNodeTemplateOptions) => React.ReactNode);
|
|
19
|
-
|
|
20
|
-
type TreeTogglerTemplateType = React.ReactNode | ((node: TreeNode, options: TreeTogglerTemplateOptions) => React.ReactNode);
|
|
21
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom tree header template options
|
|
15
|
+
* @group Misc
|
|
16
|
+
*/
|
|
22
17
|
interface TreeHeaderTemplateOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Style class of the filter container element.
|
|
20
|
+
*/
|
|
23
21
|
filterContainerClassName: string;
|
|
22
|
+
/**
|
|
23
|
+
* Style class of the filter icon element.
|
|
24
|
+
*/
|
|
24
25
|
filterIconClasssName: string;
|
|
26
|
+
/**
|
|
27
|
+
* The options for the filter input element.
|
|
28
|
+
*/
|
|
25
29
|
filterInput: TreeFilterInputOptions;
|
|
30
|
+
/**
|
|
31
|
+
* The JSX element of the filter input.
|
|
32
|
+
*/
|
|
26
33
|
filterElement: JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* The JSX element of the tree header.
|
|
36
|
+
*/
|
|
27
37
|
element: JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* The props of the tree header component.
|
|
40
|
+
*/
|
|
28
41
|
props: TreeProps;
|
|
29
42
|
}
|
|
30
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Custom tree filter input options
|
|
46
|
+
* @group Misc
|
|
47
|
+
*/
|
|
31
48
|
interface TreeFilterInputOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Style class of the tree filter input element.
|
|
51
|
+
*/
|
|
32
52
|
className: string;
|
|
53
|
+
/**
|
|
54
|
+
* Callback function to be invoked when the keydown event.
|
|
55
|
+
* @param {React.KeyboardEvent<HTMLInputElement>} event - Browser event.
|
|
56
|
+
*/
|
|
33
57
|
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
58
|
+
/**
|
|
59
|
+
* Callback function to be invoked when the change event.
|
|
60
|
+
* @param {React.KeyboardEvent<HTMLInputElement>} event - Browser event.
|
|
61
|
+
*/
|
|
34
62
|
onChange(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
35
63
|
}
|
|
36
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Custom tree node template options
|
|
67
|
+
* @group Misc
|
|
68
|
+
*/
|
|
37
69
|
interface TreeNodeTemplateOptions {
|
|
38
|
-
|
|
70
|
+
/**
|
|
71
|
+
* Callback to invoke when the toggler button is clicked.
|
|
72
|
+
* @param {React.SyntheticEvent} event - Browser event
|
|
73
|
+
*/
|
|
74
|
+
onTogglerClick(event: React.SyntheticEvent): void;
|
|
75
|
+
/**
|
|
76
|
+
* Style class of the element.
|
|
77
|
+
*/
|
|
39
78
|
className: string;
|
|
79
|
+
/**
|
|
80
|
+
* The JSX element that represents the tree node.
|
|
81
|
+
*/
|
|
40
82
|
element: JSX.Element;
|
|
83
|
+
/**
|
|
84
|
+
* The props of the Tree component.
|
|
85
|
+
*/
|
|
41
86
|
props: TreeProps;
|
|
87
|
+
/**
|
|
88
|
+
* Whether the tree node is expanded or not.
|
|
89
|
+
*/
|
|
42
90
|
expanded: boolean;
|
|
43
91
|
}
|
|
44
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Custom tree toggler template options
|
|
95
|
+
* @group Misc
|
|
96
|
+
*/
|
|
45
97
|
interface TreeTogglerTemplateOptions {
|
|
46
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Callback to invoke on click.
|
|
100
|
+
* @param {React.SyntheticEvent} event - Browser event.
|
|
101
|
+
*/
|
|
102
|
+
onClick(event: React.SyntheticEvent): void;
|
|
103
|
+
/**
|
|
104
|
+
* Style class of the panels container.
|
|
105
|
+
*/
|
|
47
106
|
containerClassName: string;
|
|
107
|
+
/**
|
|
108
|
+
* Icon classname.
|
|
109
|
+
*/
|
|
48
110
|
iconClassName: string;
|
|
111
|
+
/**
|
|
112
|
+
* JSX element to be used as the template options.
|
|
113
|
+
*/
|
|
49
114
|
element: JSX.Element;
|
|
115
|
+
/**
|
|
116
|
+
* The props of Tree component
|
|
117
|
+
*/
|
|
50
118
|
props: TreeProps;
|
|
119
|
+
/**
|
|
120
|
+
* Whether the tree node is expanded or not.
|
|
121
|
+
*/
|
|
51
122
|
expanded: boolean;
|
|
52
123
|
}
|
|
53
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Custom tree multiple selection keys
|
|
127
|
+
* @group Misc
|
|
128
|
+
*/
|
|
54
129
|
interface TreeMultipleSelectionKeys {
|
|
130
|
+
/**
|
|
131
|
+
* Extra options.
|
|
132
|
+
*/
|
|
55
133
|
[key: string]: boolean;
|
|
56
134
|
}
|
|
57
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Custom tree checkbox selection keys
|
|
138
|
+
* @group Misc
|
|
139
|
+
*/
|
|
58
140
|
interface TreeCheckboxSelectionKeys {
|
|
141
|
+
/**
|
|
142
|
+
* Extra options.
|
|
143
|
+
*/
|
|
59
144
|
[key: string]: TreeCheckboxSelectionKeyType;
|
|
60
145
|
}
|
|
61
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Custom tree checkbox selection type
|
|
149
|
+
* @group Misc
|
|
150
|
+
*/
|
|
62
151
|
interface TreeCheckboxSelectionKeyType {
|
|
152
|
+
/**
|
|
153
|
+
* Whether the checkbox is checked or not.
|
|
154
|
+
*/
|
|
63
155
|
checked?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether the checkbox is partially checked or not.
|
|
158
|
+
*/
|
|
64
159
|
partialChecked?: boolean;
|
|
65
160
|
}
|
|
66
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Custom tree expanded keys type
|
|
164
|
+
* @group Misc
|
|
165
|
+
*/
|
|
67
166
|
interface TreeExpandedKeysType {
|
|
167
|
+
/**
|
|
168
|
+
* Extra options.
|
|
169
|
+
*/
|
|
68
170
|
[key: string]: boolean;
|
|
69
171
|
}
|
|
70
172
|
|
|
71
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Custom tree event.
|
|
175
|
+
* @see {@link TreeProps.onToggle}
|
|
176
|
+
* @event
|
|
177
|
+
*/
|
|
178
|
+
interface TreeExpandedEvent {
|
|
179
|
+
/**
|
|
180
|
+
* Browser event.
|
|
181
|
+
*/
|
|
72
182
|
originalEvent: React.SyntheticEvent;
|
|
183
|
+
/**
|
|
184
|
+
* Expanded node key.
|
|
185
|
+
*/
|
|
73
186
|
value: TreeExpandedKeysType;
|
|
74
187
|
}
|
|
75
188
|
|
|
76
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Custom tree event.
|
|
191
|
+
* @see {@link TreeProps.onSelectionChange},{@link TreeProps.onContextMenuSelectionChange}
|
|
192
|
+
* @event
|
|
193
|
+
*/
|
|
194
|
+
interface TreeSelectionEvent {
|
|
195
|
+
/**
|
|
196
|
+
* Browser event.
|
|
197
|
+
*/
|
|
77
198
|
originalEvent: React.SyntheticEvent;
|
|
78
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Selected node key(s).
|
|
201
|
+
*/
|
|
202
|
+
value: string | TreeMultipleSelectionKeys | TreeCheckboxSelectionKeys | null;
|
|
79
203
|
}
|
|
80
204
|
|
|
81
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Custom tree event.
|
|
207
|
+
* @see {@link TreeProps.onSelect},{@link TreeProps.onUnselect},{@link TreeProps.onExpand},{@link TreeProps.onCollapse},{@link TreeProps.onContextMenu}
|
|
208
|
+
* @event
|
|
209
|
+
*/
|
|
210
|
+
export interface TreeEventNodeEvent {
|
|
211
|
+
/**
|
|
212
|
+
* Browser event.
|
|
213
|
+
*/
|
|
82
214
|
originalEvent: React.SyntheticEvent;
|
|
215
|
+
/**
|
|
216
|
+
* Unselected node instance.
|
|
217
|
+
*/
|
|
83
218
|
node: TreeNode;
|
|
84
219
|
}
|
|
85
220
|
|
|
86
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Custom dragdrop event.
|
|
223
|
+
* @see {@link TreeProps.onDragDrop}
|
|
224
|
+
* @event
|
|
225
|
+
*/
|
|
226
|
+
interface TreeDragDropEvent {
|
|
227
|
+
/**
|
|
228
|
+
* Browser event.
|
|
229
|
+
*/
|
|
87
230
|
originalEvent: React.SyntheticEvent;
|
|
231
|
+
/**
|
|
232
|
+
* New value after the dragdrop.
|
|
233
|
+
*/
|
|
88
234
|
value: TreeNode[];
|
|
235
|
+
/**
|
|
236
|
+
* The node that is being dragged.
|
|
237
|
+
*/
|
|
89
238
|
dragNode: TreeNode;
|
|
90
|
-
|
|
239
|
+
/**
|
|
240
|
+
* The index of the drop.
|
|
241
|
+
*/
|
|
91
242
|
dropIndex: number;
|
|
92
243
|
}
|
|
93
244
|
|
|
94
|
-
|
|
245
|
+
/**
|
|
246
|
+
* Custom filter value change event.
|
|
247
|
+
* @see {@link TreeProps.onFilterValueChange}
|
|
248
|
+
* @event
|
|
249
|
+
*/
|
|
250
|
+
interface TreeFilterValueChangeEvent {
|
|
251
|
+
/**
|
|
252
|
+
* Browser event.
|
|
253
|
+
*/
|
|
95
254
|
originalEvent: React.FormEvent<HTMLInputElement>;
|
|
255
|
+
/**
|
|
256
|
+
* The filtered value.
|
|
257
|
+
*/
|
|
96
258
|
value: string;
|
|
97
259
|
}
|
|
98
260
|
|
|
99
|
-
|
|
261
|
+
/**
|
|
262
|
+
* Custom click event
|
|
263
|
+
* @see {@link TreeProps.onNodeClick}
|
|
264
|
+
*/
|
|
265
|
+
interface TreeNodeClickEvent {
|
|
266
|
+
/**
|
|
267
|
+
* Browser event
|
|
268
|
+
*/
|
|
100
269
|
originalEvent: React.SyntheticEvent;
|
|
270
|
+
/**
|
|
271
|
+
* The current node
|
|
272
|
+
*/
|
|
101
273
|
node: TreeNode;
|
|
102
274
|
}
|
|
103
275
|
|
|
276
|
+
/**
|
|
277
|
+
* Custom tree filter options
|
|
278
|
+
* @group Misc
|
|
279
|
+
*/
|
|
104
280
|
interface TreeFilterOptions {
|
|
281
|
+
/**
|
|
282
|
+
* Used to filter options
|
|
283
|
+
* @param {KeyboardEvent} event - Browser event.
|
|
284
|
+
*/
|
|
105
285
|
filter?: (event?: KeyboardEvent) => void;
|
|
286
|
+
/**
|
|
287
|
+
* Used to reset the filtered options
|
|
288
|
+
*/
|
|
106
289
|
reset?: () => void;
|
|
107
290
|
}
|
|
108
291
|
|
|
109
|
-
|
|
292
|
+
/**
|
|
293
|
+
* Custom click event.
|
|
294
|
+
* @see {@link TreeProps.onNodeDoubleClick}
|
|
295
|
+
* @extends {TreeNodeClickEvent}
|
|
296
|
+
* @event
|
|
297
|
+
*/
|
|
298
|
+
interface TreeNodeDoubleClickEvent extends TreeNodeClickEvent {}
|
|
110
299
|
|
|
300
|
+
/**
|
|
301
|
+
* Defines valid properties in TreeProps component.
|
|
302
|
+
* @group Properties
|
|
303
|
+
*/
|
|
111
304
|
export interface TreeProps {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Unique identifier of the element.
|
|
307
|
+
*/
|
|
308
|
+
id?: string | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* An array of treenodes.
|
|
311
|
+
*/
|
|
312
|
+
value?: TreeNode[] | undefined;
|
|
313
|
+
/**
|
|
314
|
+
* When present, it specifies that the component should be disabled.
|
|
315
|
+
* @defaultValue false
|
|
316
|
+
*/
|
|
317
|
+
disabled?: boolean | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* Defines the selection mode, valid values "single", "multiple", and "checkbox".
|
|
320
|
+
*/
|
|
321
|
+
selectionMode?: 'single' | 'multiple' | 'checkbox' | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* A single or an array of keys to control the selection state.
|
|
324
|
+
*/
|
|
325
|
+
selectionKeys?: string | TreeMultipleSelectionKeys | TreeCheckboxSelectionKeys | null;
|
|
326
|
+
/**
|
|
327
|
+
* A single key to control the selection with the context menu.
|
|
328
|
+
*/
|
|
329
|
+
contextMenuSelectionKey?: string | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* An array of keys to represent the state of the tree expansion state in controlled mode.
|
|
332
|
+
*/
|
|
333
|
+
expandedKeys?: TreeExpandedKeysType | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* Inline style of the component.
|
|
336
|
+
*/
|
|
337
|
+
style?: React.CSSProperties | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* Style class of the component.
|
|
340
|
+
*/
|
|
341
|
+
className?: string | undefined;
|
|
342
|
+
/**
|
|
343
|
+
* Inline style of the tree content.
|
|
344
|
+
*/
|
|
345
|
+
contentStyle?: React.CSSProperties | undefined;
|
|
346
|
+
/**
|
|
347
|
+
* Style class of the tree content.
|
|
348
|
+
*/
|
|
349
|
+
contentClassName?: string | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
352
|
+
* @defaultValue true
|
|
353
|
+
*/
|
|
354
|
+
metaKeySelection?: boolean | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* Whether checkbox selections propagate to ancestor nodes.
|
|
357
|
+
* @defaultValue true
|
|
358
|
+
*/
|
|
359
|
+
propagateSelectionUp?: boolean | undefined;
|
|
360
|
+
/**
|
|
361
|
+
* Whether checkbox selections propagate to descendant nodes.
|
|
362
|
+
* @defaultValue true
|
|
363
|
+
*/
|
|
364
|
+
propagateSelectionDown?: boolean | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* Whether to display loading indicator.
|
|
367
|
+
* @defaultValue false
|
|
368
|
+
*/
|
|
369
|
+
loading?: boolean | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* Icon to display when tree is loading.
|
|
372
|
+
* @defaultValue pi pi-spin
|
|
373
|
+
*/
|
|
374
|
+
loadingIcon?: string | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* Unique key to enable dragdrop functionality.
|
|
377
|
+
* @defaultValue false
|
|
378
|
+
*/
|
|
379
|
+
dragdropScope?: string | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* The template of header.
|
|
382
|
+
*/
|
|
383
|
+
header?: React.ReactNode | ((options: TreeHeaderTemplateOptions) => React.ReactNode);
|
|
384
|
+
/**
|
|
385
|
+
* The template of header.
|
|
386
|
+
*/
|
|
387
|
+
footer?: React.ReactNode | ((props: TreeProps) => React.ReactNode);
|
|
388
|
+
/**
|
|
389
|
+
* Template of filter element.
|
|
390
|
+
*/
|
|
391
|
+
filterTemplate?: React.ReactNode | ((options: TreeFilterOptions) => React.ReactNode);
|
|
392
|
+
/**
|
|
393
|
+
* Whether to show the header or not.
|
|
394
|
+
* @defaultValue true
|
|
395
|
+
*/
|
|
396
|
+
showHeader?: boolean | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* When specified, displays an input field to filter the items.
|
|
399
|
+
* @defaultValue false
|
|
400
|
+
*/
|
|
401
|
+
filter?: boolean | undefined;
|
|
402
|
+
/**
|
|
403
|
+
* When filtering is enabled, the value of input field.
|
|
404
|
+
*/
|
|
405
|
+
filterValue?: string | undefined;
|
|
406
|
+
/**
|
|
407
|
+
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
408
|
+
* @defaultValue label
|
|
409
|
+
*/
|
|
410
|
+
filterBy?: string | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* Mode for filtering valid values are "lenient" and "strict". Default is lenient.
|
|
413
|
+
* @defaultValue lenient
|
|
414
|
+
*/
|
|
415
|
+
filterMode?: 'lenient' | 'strict' | undefined;
|
|
416
|
+
/**
|
|
417
|
+
* Placeholder text to show when filter input is empty.
|
|
418
|
+
*/
|
|
419
|
+
filterPlaceholder?: string | undefined;
|
|
420
|
+
/**
|
|
421
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
422
|
+
* @defaultValue undefined
|
|
423
|
+
*/
|
|
424
|
+
filterLocale?: string | undefined;
|
|
425
|
+
/**
|
|
426
|
+
* Template of toggler element.
|
|
427
|
+
*/
|
|
428
|
+
togglerTemplate?: React.ReactNode | ((node: TreeNode, options: TreeTogglerTemplateOptions) => React.ReactNode);
|
|
429
|
+
/**
|
|
430
|
+
* Template of node element.
|
|
431
|
+
* @defaultValue false
|
|
432
|
+
*/
|
|
433
|
+
nodeTemplate?: React.ReactNode | ((node: TreeNode, options: TreeNodeTemplateOptions) => React.ReactNode);
|
|
434
|
+
/**
|
|
435
|
+
* Callback to invoke when selection changes.
|
|
436
|
+
* @param {TreeSelectionEvent} event - Custom select event.
|
|
437
|
+
*/
|
|
438
|
+
onSelectionChange?(event: TreeSelectionEvent): void;
|
|
439
|
+
/**
|
|
440
|
+
* Callback to invoke when selection changes with a context menu.
|
|
441
|
+
* @param {TreeSelectionEvent} event - Custom select event.
|
|
442
|
+
*/
|
|
443
|
+
onContextMenuSelectionChange?(event: TreeSelectionEvent): void;
|
|
444
|
+
/**
|
|
445
|
+
* Callback to invoke when a node is selected.
|
|
446
|
+
* @param {TreeEventNodeEvent} event - Custom node event.
|
|
447
|
+
*/
|
|
448
|
+
onSelect?(event: TreeEventNodeEvent): void;
|
|
449
|
+
/**
|
|
450
|
+
* Callback to invoke when a node is unselected.
|
|
451
|
+
* @param {TreeEventNodeEvent} event - Custom node event.
|
|
452
|
+
*/
|
|
453
|
+
onUnselect?(event: TreeEventNodeEvent): void;
|
|
454
|
+
/**
|
|
455
|
+
* Callback to invoke when a node is expanded.
|
|
456
|
+
* @param {TreeEventNodeEvent} event - Custom node event.
|
|
457
|
+
*/
|
|
458
|
+
onExpand?(event: TreeEventNodeEvent): void;
|
|
459
|
+
/**
|
|
460
|
+
* Callback to invoke when a node is collapsed.
|
|
461
|
+
* @param {TreeEventNodeEvent} event - Custom node event.
|
|
462
|
+
*/
|
|
463
|
+
onCollapse?(event: TreeEventNodeEvent): void;
|
|
464
|
+
/**
|
|
465
|
+
* Callback to invoke when a node is toggled.
|
|
466
|
+
* @param {TreeExpandedEvent} event - Custom expand event.
|
|
467
|
+
*/
|
|
468
|
+
onToggle?(event: TreeExpandedEvent): void;
|
|
469
|
+
/**
|
|
470
|
+
* Callback to invoke when a node is selected.
|
|
471
|
+
* @param {TreeDragDropEvent} event - Custom dragdrop event.
|
|
472
|
+
*/
|
|
473
|
+
onDragDrop?(event: TreeDragDropEvent): void;
|
|
474
|
+
/**
|
|
475
|
+
* Callback to invoke when a node is selected with a context menu.
|
|
476
|
+
* @param {TreeEventNodeEvent} event - Custom node event.
|
|
477
|
+
*/
|
|
478
|
+
onContextMenu?(event: TreeEventNodeEvent): void;
|
|
479
|
+
/**
|
|
480
|
+
* Callback to invoke when filter value changes.
|
|
481
|
+
* @param {TreeFilterValueChangeEvent} event - Custom filter value change event.
|
|
482
|
+
*/
|
|
483
|
+
onFilterValueChange?(event: TreeFilterValueChangeEvent): void;
|
|
484
|
+
/**
|
|
485
|
+
* Callback to invoke when the node is clicked.
|
|
486
|
+
* @param {TreeNodeClickEvent} event - Custom click event.
|
|
487
|
+
*/
|
|
488
|
+
onNodeClick?(event: TreeNodeClickEvent): void;
|
|
489
|
+
/**
|
|
490
|
+
* Callback to invoke when the node is double-clicked.
|
|
491
|
+
* @param {TreeNodeDoubleClickEvent} event - Custom doubleclick event.
|
|
492
|
+
*/
|
|
493
|
+
onNodeDoubleClick?(event: TreeNodeDoubleClickEvent): void;
|
|
494
|
+
/**
|
|
495
|
+
* Used to get the child elements of the component.
|
|
496
|
+
* @readonly
|
|
497
|
+
*/
|
|
498
|
+
children?: React.ReactNode | undefined;
|
|
154
499
|
}
|
|
155
500
|
|
|
501
|
+
/**
|
|
502
|
+
* **PrimeReact - Tree**
|
|
503
|
+
*
|
|
504
|
+
* _Tree is used to display hierarchical data._
|
|
505
|
+
*
|
|
506
|
+
* [Live Demo](https://www.primefaces.org/primereact/tree/)
|
|
507
|
+
* --- ---
|
|
508
|
+
* 
|
|
509
|
+
*
|
|
510
|
+
* @group Component
|
|
511
|
+
*/
|
|
156
512
|
export declare class Tree extends React.Component<TreeProps, any> {
|
|
513
|
+
/**
|
|
514
|
+
* Filters the data.
|
|
515
|
+
* @param {T} value - The filter value
|
|
516
|
+
*/
|
|
157
517
|
public filter<T>(value: T): void;
|
|
518
|
+
/**
|
|
519
|
+
* Used to get container element.
|
|
520
|
+
* @return {HTMLDivElement} Container element
|
|
521
|
+
*/
|
|
158
522
|
public getElement(): HTMLDivElement;
|
|
159
523
|
}
|
package/treenode/treenode.d.ts
CHANGED
|
@@ -1,17 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* This module contains the data interface for nodes in tree components.
|
|
4
|
+
*
|
|
5
|
+
* @module treenode
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
1
8
|
import { IconType } from '../utils';
|
|
2
9
|
|
|
3
10
|
export default interface TreeNode {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of the element.
|
|
13
|
+
*/
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Unique key of the node.
|
|
17
|
+
*/
|
|
18
|
+
key?: string | number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Label of the node.
|
|
21
|
+
*/
|
|
22
|
+
label?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Data represented by the node.
|
|
25
|
+
*/
|
|
26
|
+
data?: any | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Icon of the node to display next to content.
|
|
29
|
+
*/
|
|
30
|
+
icon?: IconType<TreeNode> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Used to get the child elements of the component.
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
children?: TreeNode[] | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Inline style of the node.
|
|
38
|
+
*/
|
|
39
|
+
style?: React.CSSProperties | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Style class of the node.
|
|
42
|
+
*/
|
|
43
|
+
className?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the node is droppable when dragdrop is enabled.
|
|
46
|
+
* @defaultValue true
|
|
47
|
+
*/
|
|
48
|
+
droppable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the node is draggable when dragdrop is enabled.
|
|
51
|
+
* @defaultValue true
|
|
52
|
+
*/
|
|
53
|
+
draggable?: boolean | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the node is selectable when selection mode is enabled.
|
|
56
|
+
*/
|
|
57
|
+
selectable?: boolean | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Specifies if the node has children. Used in lazy loading.
|
|
60
|
+
*/
|
|
61
|
+
leaf?: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Visibility of node.
|
|
64
|
+
*/
|
|
65
|
+
expanded?: boolean | undefined;
|
|
17
66
|
}
|
|
@@ -155,7 +155,10 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
|
|
|
155
155
|
var wrapperStyle = {
|
|
156
156
|
maxHeight: props.scrollHeight || 'auto'
|
|
157
157
|
};
|
|
158
|
-
var className = utils.classNames('p-treeselect-panel p-component', props.panelClassName
|
|
158
|
+
var className = utils.classNames('p-treeselect-panel p-component', props.panelClassName, {
|
|
159
|
+
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
160
|
+
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
161
|
+
});
|
|
159
162
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
160
163
|
nodeRef: ref,
|
|
161
164
|
classNames: "p-connected-overlay",
|
|
@@ -501,6 +504,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
501
504
|
React__namespace.useImperativeHandle(ref, function () {
|
|
502
505
|
return {
|
|
503
506
|
props: props,
|
|
507
|
+
focus: function focus() {
|
|
508
|
+
return utils.DomHandler.focus(focusInputRef.current);
|
|
509
|
+
},
|
|
504
510
|
getElement: function getElement() {
|
|
505
511
|
return elementRef.current;
|
|
506
512
|
}
|