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
|
@@ -86,13 +86,16 @@ var ToggleButton = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
86
86
|
React__namespace.useImperativeHandle(ref, function () {
|
|
87
87
|
return {
|
|
88
88
|
props: props,
|
|
89
|
+
focus: function focus() {
|
|
90
|
+
return utils.DomHandler.focusFirstElement(elementRef.current);
|
|
91
|
+
},
|
|
89
92
|
getElement: function getElement() {
|
|
90
93
|
return elementRef.current;
|
|
91
94
|
}
|
|
92
95
|
};
|
|
93
96
|
});
|
|
94
97
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
95
|
-
var tabIndex =
|
|
98
|
+
var tabIndex = props.disabled ? -1 : props.tabIndex;
|
|
96
99
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, ToggleButton.defaultProps);
|
|
97
100
|
var className = utils.classNames('p-button p-togglebutton p-component', {
|
|
98
101
|
'p-button-icon-only': hasIcon && !hasLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/ripple"),n=require("primereact/tooltip"),o=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=l(e);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/ripple"),n=require("primereact/tooltip"),o=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=l(e);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}var a=r.memo(r.forwardRef((function(e,l){var u=r.useRef(null),i=e.onLabel&&e.onLabel.length>0&&e.offLabel&&e.offLabel.length>0,s=e.onIcon&&e.onIcon.length>0&&e.offIcon&&e.offIcon.length>0,f=i?e.checked?e.onLabel:e.offLabel:" ",p=e.checked?e.onIcon:e.offIcon,d=function(t){!e.disabled&&e.onChange&&e.onChange({originalEvent:t,value:!e.checked,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:!e.checked}})};r.useImperativeHandle(l,(function(){return{props:e,focus:function(){return o.DomHandler.focusFirstElement(u.current)},getElement:function(){return u.current}}}));var b=o.ObjectUtils.isNotEmpty(e.tooltip),g=e.disabled?-1:e.tabIndex,m=o.ObjectUtils.findDiffKeys(e,a.defaultProps),h=o.classNames("p-button p-togglebutton p-component",{"p-button-icon-only":s&&!i,"p-highlight":e.checked,"p-disabled":e.disabled},e.className),v=function(){if(s){var t=o.classNames("p-button-icon p-c",{"p-button-icon-left":"left"===e.iconPos&&f,"p-button-icon-right":"right"===e.iconPos&&f});return o.IconUtils.getJSXIcon(p,{className:t},{props:e})}return null}();return r.createElement(r.Fragment,null,r.createElement("div",c({ref:u,id:e.id,className:h,style:e.style},m,{onClick:d,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(e){32===e.keyCode&&(d(e),e.preventDefault())},tabIndex:g,role:"button","aria-pressed":e.checked}),v,r.createElement("span",{className:"p-button-label"},f),r.createElement(t.Ripple,null)),b&&r.createElement(n.Tooltip,c({target:u,content:e.tooltip},e.tooltipOptions)))})));a.displayName="ToggleButton",a.defaultProps={__TYPE:"ToggleButton",id:null,onIcon:null,offIcon:null,onLabel:"Yes",offLabel:"No",iconPos:"left",style:null,className:null,checked:!1,tabIndex:0,tooltip:null,tooltipOptions:null,onChange:null,onFocus:null,onBlur:null},exports.ToggleButton=a;
|
|
@@ -1,38 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* ToggleButton is used to select a boolean value using a button.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/togglebutton/)
|
|
6
|
+
*
|
|
7
|
+
* @module togglebutton
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
|
-
import TooltipOptions from '../tooltip/tooltipoptions';
|
|
11
|
+
import { TooltipOptions } from '../tooltip/tooltipoptions';
|
|
3
12
|
import { IconType } from '../utils';
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Custom toggle button change target options
|
|
16
|
+
* @group Misc
|
|
17
|
+
*/
|
|
7
18
|
interface ToggleButtonChangeTargetOptions {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the element.
|
|
21
|
+
*/
|
|
8
22
|
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the element.
|
|
25
|
+
*/
|
|
9
26
|
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Collapsed state as a boolean.
|
|
29
|
+
*/
|
|
10
30
|
value: boolean;
|
|
11
31
|
}
|
|
12
32
|
|
|
13
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Custom change event.
|
|
35
|
+
* @see {@link ToggleButtonProps.onChange}
|
|
36
|
+
* @event
|
|
37
|
+
*/
|
|
38
|
+
interface ToggleButtonChangeEvent {
|
|
39
|
+
/**
|
|
40
|
+
* Browser event
|
|
41
|
+
*/
|
|
14
42
|
originalEvent: React.SyntheticEvent;
|
|
43
|
+
/**
|
|
44
|
+
* Value as the checked state.
|
|
45
|
+
*/
|
|
15
46
|
value: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Stops the event from propagating.
|
|
49
|
+
*/
|
|
16
50
|
stopPropagation(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Prevents the default action of the event.
|
|
53
|
+
*/
|
|
17
54
|
preventDefault(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Target element.
|
|
57
|
+
*/
|
|
18
58
|
target: ToggleButtonChangeTargetOptions;
|
|
19
59
|
}
|
|
20
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Defines valid properties in ToggleButton component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
63
|
+
* @group Properties
|
|
64
|
+
*/
|
|
21
65
|
export interface ToggleButtonProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the on/off state of the button.
|
|
68
|
+
* @defaultValue false
|
|
69
|
+
*/
|
|
70
|
+
checked?: boolean | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Used to get the child elements of the component.
|
|
73
|
+
* @readonly
|
|
74
|
+
*/
|
|
75
|
+
children?: React.ReactNode | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Position of the icon, valid values are "left" and "right".
|
|
78
|
+
* @defaultValue left
|
|
79
|
+
*/
|
|
80
|
+
iconPos?: 'left' | 'right' | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Icon for the off state.
|
|
83
|
+
*/
|
|
84
|
+
offIcon?: IconType<ToggleButtonProps> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Label for the off state.
|
|
87
|
+
* @defaultValue no
|
|
88
|
+
*/
|
|
89
|
+
offLabel?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Icon for the on state.
|
|
92
|
+
*/
|
|
93
|
+
onIcon?: IconType<ToggleButtonProps> | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Label for the on state.
|
|
96
|
+
* @defaultValue yes
|
|
97
|
+
*/
|
|
98
|
+
onLabel?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Content of the tooltip.
|
|
101
|
+
*/
|
|
102
|
+
tooltip?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Configuration of the tooltip, refer to the tooltip documentation for more information.
|
|
105
|
+
*/
|
|
106
|
+
tooltipOptions?: TooltipOptions | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Callback to invoke when autocomplete loses focus.
|
|
109
|
+
* @param {React.FocusEvent<HTMLElement>} event - Browser event.
|
|
110
|
+
*/
|
|
32
111
|
onBlur?(event: React.FocusEvent<HTMLElement>): void;
|
|
33
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Callback to invoke on value change.
|
|
114
|
+
* @param {ToggleButtonChangeEvent} event - Browser event.
|
|
115
|
+
*/
|
|
116
|
+
onChange?(event: ToggleButtonChangeEvent): void;
|
|
117
|
+
/**
|
|
118
|
+
* Callback to invoke when autocomplete gets focus.
|
|
119
|
+
* @param {React.FocusEvent<HTMLElement>} event - Browser event.
|
|
120
|
+
*/
|
|
121
|
+
onFocus?(event: React.FocusEvent<HTMLElement>): void;
|
|
34
122
|
}
|
|
35
123
|
|
|
124
|
+
/**
|
|
125
|
+
* **PrimeReact - ToggleButton**
|
|
126
|
+
*
|
|
127
|
+
* _ToggleButton is used to select a boolean value using a button._
|
|
128
|
+
*
|
|
129
|
+
* [Live Demo](https://www.primefaces.org/primereact/togglebutton/)
|
|
130
|
+
* --- ---
|
|
131
|
+
* 
|
|
132
|
+
*
|
|
133
|
+
* @group Component
|
|
134
|
+
*/
|
|
36
135
|
export declare class ToggleButton extends React.Component<ToggleButtonProps, any> {
|
|
136
|
+
/**
|
|
137
|
+
* Used to focus the component.
|
|
138
|
+
*/
|
|
139
|
+
public focus(): void;
|
|
140
|
+
/**
|
|
141
|
+
* Used to get container element.
|
|
142
|
+
* @return {HTMLDivElement} Container element
|
|
143
|
+
*/
|
|
37
144
|
public getElement(): HTMLDivElement;
|
|
38
145
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Ripple } from 'primereact/ripple';
|
|
3
3
|
import { Tooltip } from 'primereact/tooltip';
|
|
4
|
-
import { ObjectUtils, classNames, IconUtils } from 'primereact/utils';
|
|
4
|
+
import { DomHandler, ObjectUtils, classNames, IconUtils } from 'primereact/utils';
|
|
5
5
|
|
|
6
6
|
function _extends() {
|
|
7
7
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -62,13 +62,16 @@ var ToggleButton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functi
|
|
|
62
62
|
React.useImperativeHandle(ref, function () {
|
|
63
63
|
return {
|
|
64
64
|
props: props,
|
|
65
|
+
focus: function focus() {
|
|
66
|
+
return DomHandler.focusFirstElement(elementRef.current);
|
|
67
|
+
},
|
|
65
68
|
getElement: function getElement() {
|
|
66
69
|
return elementRef.current;
|
|
67
70
|
}
|
|
68
71
|
};
|
|
69
72
|
});
|
|
70
73
|
var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
|
|
71
|
-
var tabIndex =
|
|
74
|
+
var tabIndex = props.disabled ? -1 : props.tabIndex;
|
|
72
75
|
var otherProps = ObjectUtils.findDiffKeys(props, ToggleButton.defaultProps);
|
|
73
76
|
var className = classNames('p-button p-togglebutton p-component', {
|
|
74
77
|
'p-button-icon-only': hasIcon && !hasLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{Ripple as n}from"primereact/ripple";import{Tooltip as t}from"primereact/tooltip";import{
|
|
1
|
+
import*as e from"react";import{Ripple as n}from"primereact/ripple";import{Tooltip as t}from"primereact/tooltip";import{DomHandler as o,ObjectUtils as l,classNames as r,IconUtils as a}from"primereact/utils";function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c.apply(this,arguments)}var i=e.memo(e.forwardRef((function(u,p){var s=e.useRef(null),f=u.onLabel&&u.onLabel.length>0&&u.offLabel&&u.offLabel.length>0,d=u.onIcon&&u.onIcon.length>0&&u.offIcon&&u.offIcon.length>0,m=f?u.checked?u.onLabel:u.offLabel:" ",b=u.checked?u.onIcon:u.offIcon,g=function(e){!u.disabled&&u.onChange&&u.onChange({originalEvent:e,value:!u.checked,stopPropagation:function(){},preventDefault:function(){},target:{name:u.name,id:u.id,value:!u.checked}})};e.useImperativeHandle(p,(function(){return{props:u,focus:function(){return o.focusFirstElement(s.current)},getElement:function(){return s.current}}}));var h=l.isNotEmpty(u.tooltip),v=u.disabled?-1:u.tabIndex,I=l.findDiffKeys(u,i.defaultProps),y=r("p-button p-togglebutton p-component",{"p-button-icon-only":d&&!f,"p-highlight":u.checked,"p-disabled":u.disabled},u.className),E=function(){if(d){var e=r("p-button-icon p-c",{"p-button-icon-left":"left"===u.iconPos&&m,"p-button-icon-right":"right"===u.iconPos&&m});return a.getJSXIcon(b,{className:e},{props:u})}return null}();return e.createElement(e.Fragment,null,e.createElement("div",c({ref:s,id:u.id,className:y,style:u.style},I,{onClick:g,onFocus:u.onFocus,onBlur:u.onBlur,onKeyDown:function(e){32===e.keyCode&&(g(e),e.preventDefault())},tabIndex:v,role:"button","aria-pressed":u.checked}),E,e.createElement("span",{className:"p-button-label"},m),e.createElement(n,null)),h&&e.createElement(t,c({target:s,content:u.tooltip},u.tooltipOptions)))})));i.displayName="ToggleButton",i.defaultProps={__TYPE:"ToggleButton",id:null,onIcon:null,offIcon:null,onLabel:"Yes",offLabel:"No",iconPos:"left",style:null,className:null,checked:!1,tabIndex:0,tooltip:null,tooltipOptions:null,onChange:null,onFocus:null,onBlur:null};export{i as ToggleButton};
|
|
@@ -81,13 +81,16 @@ this.primereact.togglebutton = (function (exports, React, ripple, tooltip, utils
|
|
|
81
81
|
React__namespace.useImperativeHandle(ref, function () {
|
|
82
82
|
return {
|
|
83
83
|
props: props,
|
|
84
|
+
focus: function focus() {
|
|
85
|
+
return utils.DomHandler.focusFirstElement(elementRef.current);
|
|
86
|
+
},
|
|
84
87
|
getElement: function getElement() {
|
|
85
88
|
return elementRef.current;
|
|
86
89
|
}
|
|
87
90
|
};
|
|
88
91
|
});
|
|
89
92
|
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
90
|
-
var tabIndex =
|
|
93
|
+
var tabIndex = props.disabled ? -1 : props.tabIndex;
|
|
91
94
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, ToggleButton.defaultProps);
|
|
92
95
|
var className = utils.classNames('p-button p-togglebutton p-component', {
|
|
93
96
|
'p-button-icon-only': hasIcon && !hasLabel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.togglebutton=function(e,t,n,o,l){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.togglebutton=function(e,t,n,o,l){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=r(t);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}var i=c.memo(c.forwardRef((function(e,t){var r=c.useRef(null),u=e.onLabel&&e.onLabel.length>0&&e.offLabel&&e.offLabel.length>0,s=e.onIcon&&e.onIcon.length>0&&e.offIcon&&e.offIcon.length>0,f=u?e.checked?e.onLabel:e.offLabel:" ",p=e.checked?e.onIcon:e.offIcon,d=function(t){!e.disabled&&e.onChange&&e.onChange({originalEvent:t,value:!e.checked,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:!e.checked}})};c.useImperativeHandle(t,(function(){return{props:e,focus:function(){return l.DomHandler.focusFirstElement(r.current)},getElement:function(){return r.current}}}));var b=l.ObjectUtils.isNotEmpty(e.tooltip),g=e.disabled?-1:e.tabIndex,m=l.ObjectUtils.findDiffKeys(e,i.defaultProps),h=l.classNames("p-button p-togglebutton p-component",{"p-button-icon-only":s&&!u,"p-highlight":e.checked,"p-disabled":e.disabled},e.className),v=function(){if(s){var t=l.classNames("p-button-icon p-c",{"p-button-icon-left":"left"===e.iconPos&&f,"p-button-icon-right":"right"===e.iconPos&&f});return l.IconUtils.getJSXIcon(p,{className:t},{props:e})}return null}();return c.createElement(c.Fragment,null,c.createElement("div",a({ref:r,id:e.id,className:h,style:e.style},m,{onClick:d,onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(e){32===e.keyCode&&(d(e),e.preventDefault())},tabIndex:g,role:"button","aria-pressed":e.checked}),v,c.createElement("span",{className:"p-button-label"},f),c.createElement(n.Ripple,null)),b&&c.createElement(o.Tooltip,a({target:r,content:e.tooltip},e.tooltipOptions)))})));return i.displayName="ToggleButton",i.defaultProps={__TYPE:"ToggleButton",id:null,onIcon:null,offIcon:null,onLabel:"Yes",offLabel:"No",iconPos:"left",style:null,className:null,checked:!1,tabIndex:0,tooltip:null,tooltipOptions:null,onChange:null,onFocus:null,onBlur:null},e.ToggleButton=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.ripple,primereact.tooltip,primereact.utils);
|
package/toolbar/toolbar.cjs.js
CHANGED
|
@@ -44,8 +44,9 @@ var Toolbar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
44
44
|
var elementRef = React__namespace.useRef(null);
|
|
45
45
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Toolbar.defaultProps);
|
|
46
46
|
var toolbarClass = utils.classNames('p-toolbar p-component', props.className);
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var start = utils.ObjectUtils.getJSXElement(props.left || props.start, props);
|
|
48
|
+
var center = utils.ObjectUtils.getJSXElement(props.center, props);
|
|
49
|
+
var end = utils.ObjectUtils.getJSXElement(props.right || props.end, props);
|
|
49
50
|
React__namespace.useImperativeHandle(ref, function () {
|
|
50
51
|
return {
|
|
51
52
|
props: props,
|
|
@@ -61,10 +62,12 @@ var Toolbar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.
|
|
|
61
62
|
style: props.style,
|
|
62
63
|
role: "toolbar"
|
|
63
64
|
}, otherProps), /*#__PURE__*/React__namespace.createElement("div", {
|
|
64
|
-
className: "p-toolbar-group-left"
|
|
65
|
-
},
|
|
66
|
-
className: "p-toolbar-group-
|
|
67
|
-
},
|
|
65
|
+
className: "p-toolbar-group-start p-toolbar-group-left"
|
|
66
|
+
}, start), /*#__PURE__*/React__namespace.createElement("div", {
|
|
67
|
+
className: "p-toolbar-group-center"
|
|
68
|
+
}, center), /*#__PURE__*/React__namespace.createElement("div", {
|
|
69
|
+
className: "p-toolbar-group-end p-toolbar-group-right"
|
|
70
|
+
}, end));
|
|
68
71
|
}));
|
|
69
72
|
Toolbar.displayName = 'Toolbar';
|
|
70
73
|
Toolbar.defaultProps = {
|
|
@@ -73,7 +76,10 @@ Toolbar.defaultProps = {
|
|
|
73
76
|
style: null,
|
|
74
77
|
className: null,
|
|
75
78
|
left: null,
|
|
76
|
-
right: null
|
|
79
|
+
right: null,
|
|
80
|
+
start: null,
|
|
81
|
+
center: null,
|
|
82
|
+
end: null
|
|
77
83
|
};
|
|
78
84
|
|
|
79
85
|
exports.Toolbar = Toolbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=r(e);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},n.apply(this,arguments)}var a=l.memo(l.forwardRef((function(e,r){var o=l.useRef(null),s=t.ObjectUtils.findDiffKeys(e,a.defaultProps),u=t.classNames("p-toolbar p-component",e.className),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=r(e);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},n.apply(this,arguments)}var a=l.memo(l.forwardRef((function(e,r){var o=l.useRef(null),s=t.ObjectUtils.findDiffKeys(e,a.defaultProps),u=t.classNames("p-toolbar p-component",e.className),c=t.ObjectUtils.getJSXElement(e.left||e.start,e),i=t.ObjectUtils.getJSXElement(e.center,e),p=t.ObjectUtils.getJSXElement(e.right||e.end,e);return l.useImperativeHandle(r,(function(){return{props:e,getElement:function(){return o.current}}})),l.createElement("div",n({id:e.id,ref:o,className:u,style:e.style,role:"toolbar"},s),l.createElement("div",{className:"p-toolbar-group-start p-toolbar-group-left"},c),l.createElement("div",{className:"p-toolbar-group-center"},i),l.createElement("div",{className:"p-toolbar-group-end p-toolbar-group-right"},p))})));a.displayName="Toolbar",a.defaultProps={__TYPE:"Toolbar",id:null,style:null,className:null,left:null,right:null,start:null,center:null,end:null},exports.Toolbar=a;
|
package/toolbar/toolbar.d.ts
CHANGED
|
@@ -1,13 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Toolbar is a grouping component for buttons and other content.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/toolbar/)
|
|
6
|
+
*
|
|
7
|
+
* @module toolbar
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Defines valid properties in Toolbar component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
14
|
+
* @group Properties
|
|
15
|
+
*/
|
|
5
16
|
export interface ToolbarProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The template of left section.
|
|
19
|
+
* @deprecated use start instead
|
|
20
|
+
*/
|
|
21
|
+
left?: React.ReactNode | ((props: ToolbarProps) => React.ReactNode);
|
|
22
|
+
/**
|
|
23
|
+
* The template of right section.
|
|
24
|
+
* @deprecated use end instead
|
|
25
|
+
*/
|
|
26
|
+
right?: React.ReactNode | ((props: ToolbarProps) => React.ReactNode);
|
|
27
|
+
/**
|
|
28
|
+
* The template of start section.
|
|
29
|
+
*/
|
|
30
|
+
start?: React.ReactNode | ((props: ToolbarProps) => React.ReactNode);
|
|
31
|
+
/**
|
|
32
|
+
* The template of center section.
|
|
33
|
+
*/
|
|
34
|
+
center?: React.ReactNode | ((props: ToolbarProps) => React.ReactNode);
|
|
35
|
+
/**
|
|
36
|
+
* The template of end section.
|
|
37
|
+
*/
|
|
38
|
+
end?: React.ReactNode | ((props: ToolbarProps) => React.ReactNode);
|
|
39
|
+
/**
|
|
40
|
+
* Used to get the child elements of the component.
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
children?: React.ReactNode | undefined;
|
|
9
44
|
}
|
|
10
45
|
|
|
46
|
+
/**
|
|
47
|
+
* **PrimeReact - Toolbar**
|
|
48
|
+
*
|
|
49
|
+
* _Toolbar is a grouping component for buttons and other content._
|
|
50
|
+
*
|
|
51
|
+
* [Live Demo](https://www.primefaces.org/primereact/toolbar/)
|
|
52
|
+
* --- ---
|
|
53
|
+
* 
|
|
54
|
+
*
|
|
55
|
+
* @group Component
|
|
56
|
+
*/
|
|
11
57
|
export declare class Toolbar extends React.Component<ToolbarProps, any> {
|
|
58
|
+
/**
|
|
59
|
+
* Used to get container element.
|
|
60
|
+
* @return {HTMLDivElement} Container element
|
|
61
|
+
*/
|
|
12
62
|
public getElement(): HTMLDivElement;
|
|
13
63
|
}
|
package/toolbar/toolbar.esm.js
CHANGED
|
@@ -20,8 +20,9 @@ var Toolbar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
20
20
|
var elementRef = React.useRef(null);
|
|
21
21
|
var otherProps = ObjectUtils.findDiffKeys(props, Toolbar.defaultProps);
|
|
22
22
|
var toolbarClass = classNames('p-toolbar p-component', props.className);
|
|
23
|
-
var
|
|
24
|
-
var
|
|
23
|
+
var start = ObjectUtils.getJSXElement(props.left || props.start, props);
|
|
24
|
+
var center = ObjectUtils.getJSXElement(props.center, props);
|
|
25
|
+
var end = ObjectUtils.getJSXElement(props.right || props.end, props);
|
|
25
26
|
React.useImperativeHandle(ref, function () {
|
|
26
27
|
return {
|
|
27
28
|
props: props,
|
|
@@ -37,10 +38,12 @@ var Toolbar = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (p
|
|
|
37
38
|
style: props.style,
|
|
38
39
|
role: "toolbar"
|
|
39
40
|
}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "p-toolbar-group-left"
|
|
41
|
-
},
|
|
42
|
-
className: "p-toolbar-group-
|
|
43
|
-
},
|
|
41
|
+
className: "p-toolbar-group-start p-toolbar-group-left"
|
|
42
|
+
}, start), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "p-toolbar-group-center"
|
|
44
|
+
}, center), /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "p-toolbar-group-end p-toolbar-group-right"
|
|
46
|
+
}, end));
|
|
44
47
|
}));
|
|
45
48
|
Toolbar.displayName = 'Toolbar';
|
|
46
49
|
Toolbar.defaultProps = {
|
|
@@ -49,7 +52,10 @@ Toolbar.defaultProps = {
|
|
|
49
52
|
style: null,
|
|
50
53
|
className: null,
|
|
51
54
|
left: null,
|
|
52
|
-
right: null
|
|
55
|
+
right: null,
|
|
56
|
+
start: null,
|
|
57
|
+
center: null,
|
|
58
|
+
end: null
|
|
53
59
|
};
|
|
54
60
|
|
|
55
61
|
export { Toolbar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{ObjectUtils as t,classNames as r}from"primereact/utils";function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},l.apply(this,arguments)}var
|
|
1
|
+
import*as e from"react";import{ObjectUtils as t,classNames as r}from"primereact/utils";function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},l.apply(this,arguments)}var n=e.memo(e.forwardRef((function(a,o){var s=e.useRef(null),u=t.findDiffKeys(a,n.defaultProps),i=r("p-toolbar p-component",a.className),p=t.getJSXElement(a.left||a.start,a),c=t.getJSXElement(a.center,a),m=t.getJSXElement(a.right||a.end,a);return e.useImperativeHandle(o,(function(){return{props:a,getElement:function(){return s.current}}})),e.createElement("div",l({id:a.id,ref:s,className:i,style:a.style,role:"toolbar"},u),e.createElement("div",{className:"p-toolbar-group-start p-toolbar-group-left"},p),e.createElement("div",{className:"p-toolbar-group-center"},c),e.createElement("div",{className:"p-toolbar-group-end p-toolbar-group-right"},m))})));n.displayName="Toolbar",n.defaultProps={__TYPE:"Toolbar",id:null,style:null,className:null,left:null,right:null,start:null,center:null,end:null};export{n as Toolbar};
|
package/toolbar/toolbar.js
CHANGED
|
@@ -41,8 +41,9 @@ this.primereact.toolbar = (function (exports, React, utils) {
|
|
|
41
41
|
var elementRef = React__namespace.useRef(null);
|
|
42
42
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, Toolbar.defaultProps);
|
|
43
43
|
var toolbarClass = utils.classNames('p-toolbar p-component', props.className);
|
|
44
|
-
var
|
|
45
|
-
var
|
|
44
|
+
var start = utils.ObjectUtils.getJSXElement(props.left || props.start, props);
|
|
45
|
+
var center = utils.ObjectUtils.getJSXElement(props.center, props);
|
|
46
|
+
var end = utils.ObjectUtils.getJSXElement(props.right || props.end, props);
|
|
46
47
|
React__namespace.useImperativeHandle(ref, function () {
|
|
47
48
|
return {
|
|
48
49
|
props: props,
|
|
@@ -58,10 +59,12 @@ this.primereact.toolbar = (function (exports, React, utils) {
|
|
|
58
59
|
style: props.style,
|
|
59
60
|
role: "toolbar"
|
|
60
61
|
}, otherProps), /*#__PURE__*/React__namespace.createElement("div", {
|
|
61
|
-
className: "p-toolbar-group-left"
|
|
62
|
-
},
|
|
63
|
-
className: "p-toolbar-group-
|
|
64
|
-
},
|
|
62
|
+
className: "p-toolbar-group-start p-toolbar-group-left"
|
|
63
|
+
}, start), /*#__PURE__*/React__namespace.createElement("div", {
|
|
64
|
+
className: "p-toolbar-group-center"
|
|
65
|
+
}, center), /*#__PURE__*/React__namespace.createElement("div", {
|
|
66
|
+
className: "p-toolbar-group-end p-toolbar-group-right"
|
|
67
|
+
}, end));
|
|
65
68
|
}));
|
|
66
69
|
Toolbar.displayName = 'Toolbar';
|
|
67
70
|
Toolbar.defaultProps = {
|
|
@@ -70,7 +73,10 @@ this.primereact.toolbar = (function (exports, React, utils) {
|
|
|
70
73
|
style: null,
|
|
71
74
|
className: null,
|
|
72
75
|
left: null,
|
|
73
|
-
right: null
|
|
76
|
+
right: null,
|
|
77
|
+
start: null,
|
|
78
|
+
center: null,
|
|
79
|
+
end: null
|
|
74
80
|
};
|
|
75
81
|
|
|
76
82
|
exports.Toolbar = Toolbar;
|
package/toolbar/toolbar.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.p-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.p-toolbar-group-left,.p-toolbar-group-right{display:flex;align-items:center}
|
|
1
|
+
.p-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.p-toolbar-group-start,.p-toolbar-group-center,.p-toolbar-group-end{display:flex;align-items:center}.p-toolbar-group-left,.p-toolbar-group-right{display:flex;align-items:center}
|
package/toolbar/toolbar.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.toolbar=function(e,t,r){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=l(t);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},a.apply(this,arguments)}var o=n.memo(n.forwardRef((function(e,t){var l=n.useRef(null),
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.toolbar=function(e,t,r){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=l(t);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},a.apply(this,arguments)}var o=n.memo(n.forwardRef((function(e,t){var l=n.useRef(null),c=r.ObjectUtils.findDiffKeys(e,o.defaultProps),s=r.classNames("p-toolbar p-component",e.className),i=r.ObjectUtils.getJSXElement(e.left||e.start,e),u=r.ObjectUtils.getJSXElement(e.center,e),p=r.ObjectUtils.getJSXElement(e.right||e.end,e);return n.useImperativeHandle(t,(function(){return{props:e,getElement:function(){return l.current}}})),n.createElement("div",a({id:e.id,ref:l,className:s,style:e.style,role:"toolbar"},c),n.createElement("div",{className:"p-toolbar-group-start p-toolbar-group-left"},i),n.createElement("div",{className:"p-toolbar-group-center"},u),n.createElement("div",{className:"p-toolbar-group-end p-toolbar-group-right"},p))})));return o.displayName="Toolbar",o.defaultProps={__TYPE:"Toolbar",id:null,style:null,className:null,left:null,right:null,start:null,center:null,end:null},e.Toolbar=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
package/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,21 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Tooltip functionality is integrated within various PrimeReact components.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/tooltip/)
|
|
6
|
+
*
|
|
7
|
+
* @module tooltip
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
type TooltipTargetType = string | string[] | HTMLElement;
|
|
11
|
+
import { TooltipEvent, TooltipOptions } from './tooltipoptions';
|
|
5
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Defines valid properties in Tooltip component. In addition to these, all properties of TooltipOptions can be used in this component.
|
|
15
|
+
* @extends {TooltipOptions}
|
|
16
|
+
* @group Properties
|
|
17
|
+
*/
|
|
6
18
|
export interface TooltipProps extends TooltipOptions {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier of the element.
|
|
21
|
+
*/
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Target element on global tooltip option.
|
|
25
|
+
*/
|
|
26
|
+
target?: string | string[] | HTMLElement | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Content to be displayed in tooltip.
|
|
29
|
+
*/
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Used to get the child elements of the component.
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
children?: React.ReactNode | undefined;
|
|
11
36
|
}
|
|
12
37
|
|
|
38
|
+
/**
|
|
39
|
+
* **PrimeReact - Tooltip**
|
|
40
|
+
*
|
|
41
|
+
* _Tooltip functionality is integrated within various PrimeReact components._
|
|
42
|
+
*
|
|
43
|
+
* [Live Demo](https://www.primefaces.org/primereact/tooltip/)
|
|
44
|
+
* --- ---
|
|
45
|
+
* 
|
|
46
|
+
*
|
|
47
|
+
* @group Component
|
|
48
|
+
*/
|
|
13
49
|
export declare class Tooltip extends React.Component<TooltipProps, any> {
|
|
50
|
+
/**
|
|
51
|
+
* Used to reload target events. In some cases, the target element can be hidden initially. Later, when this element becomes visible, it will be necessary to bind tooltip events to this element.
|
|
52
|
+
* @param {HTMLElement} target - Target element.
|
|
53
|
+
*/
|
|
14
54
|
public updateTargetEvents(target: HTMLElement): void;
|
|
55
|
+
/**
|
|
56
|
+
* Used to load target events.
|
|
57
|
+
* @param {HTMLElement} target - Target element.
|
|
58
|
+
*/
|
|
15
59
|
public loadTargetEvents(target: HTMLElement): void;
|
|
60
|
+
/**
|
|
61
|
+
* Used to unload target events.
|
|
62
|
+
* @param {HTMLElement} target - Target element.
|
|
63
|
+
*/
|
|
16
64
|
public unloadTargetEvents(target: HTMLElement): void;
|
|
65
|
+
/**
|
|
66
|
+
* Used to get container element.
|
|
67
|
+
* @return {HTMLElement} Container element
|
|
68
|
+
*/
|
|
17
69
|
public getElement(): HTMLElement;
|
|
70
|
+
/**
|
|
71
|
+
* Used to get target element.
|
|
72
|
+
* @return {HTMLElement} Target element
|
|
73
|
+
*/
|
|
18
74
|
public getTarget(): HTMLElement | null;
|
|
19
|
-
|
|
20
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Used to show the tooltip.
|
|
77
|
+
* @param {TooltipEvent} event - Browser event.
|
|
78
|
+
*/
|
|
79
|
+
public show(event?: TooltipEvent): null;
|
|
80
|
+
/**
|
|
81
|
+
* Used to hide the tooltip.
|
|
82
|
+
* @param {TooltipEvent} event - Browser event.
|
|
83
|
+
*/
|
|
84
|
+
public hide(event?: TooltipEvent): null;
|
|
21
85
|
}
|