primereact 8.7.3 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +168 -25
- package/api/api.cjs.js +1 -1
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +11 -3
- package/api/api.esm.js +1 -1
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -1
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +18 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +385 -80
- package/autocomplete/autocomplete.esm.js +18 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +18 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.d.ts +77 -15
- package/avatargroup/avatargroup.d.ts +33 -1
- package/badge/badge.d.ts +48 -8
- package/blockui/blockui.d.ts +71 -10
- package/breadcrumb/breadcrumb.d.ts +41 -3
- package/button/button.d.ts +67 -15
- package/calendar/calendar.cjs.js +18 -5
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +585 -112
- package/calendar/calendar.esm.js +18 -5
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +18 -5
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +7 -6
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.d.ts +77 -7
- package/captcha/captcha.esm.js +7 -6
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +7 -6
- package/captcha/captcha.min.js +1 -1
- package/card/card.d.ts +45 -7
- package/carousel/carousel.d.ts +138 -22
- package/cascadeselect/cascadeselect.cjs.js +7 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +177 -29
- package/cascadeselect/cascadeselect.esm.js +7 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +7 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.d.ts +88 -10
- package/checkbox/checkbox.cjs.js +5 -1
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +137 -33
- package/checkbox/checkbox.esm.js +6 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +5 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.d.ts +75 -7
- package/chips/chips.cjs.js +11 -8
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +188 -36
- package/chips/chips.esm.js +11 -8
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +11 -8
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +6 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +148 -31
- package/colorpicker/colorpicker.esm.js +6 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +736 -134
- package/columngroup/columngroup.d.ts +30 -1
- package/confirmdialog/confirmdialog.d.ts +142 -18
- package/confirmpopup/confirmpopup.cjs.js +5 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +165 -22
- package/confirmpopup/confirmpopup.esm.js +5 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +5 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +4 -1
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +79 -11
- package/contextmenu/contextmenu.esm.js +4 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +4 -1
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +85 -78
- package/core/core.min.js +7 -7
- package/csstransition/csstransition.d.ts +31 -1
- package/datascroller/datascroller.d.ts +102 -16
- package/datatable/datatable.cjs.js +27 -15
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1257 -229
- package/datatable/datatable.esm.js +27 -15
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +27 -15
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +222 -43
- package/deferredcontent/deferredcontent.d.ts +37 -1
- package/dialog/dialog.cjs.js +13 -19
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +282 -51
- package/dialog/dialog.esm.js +14 -20
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +13 -19
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.d.ts +47 -10
- package/dock/dock.d.ts +68 -12
- package/dropdown/dropdown.cjs.js +27 -11
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +337 -83
- package/dropdown/dropdown.esm.js +28 -12
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +27 -11
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.d.ts +129 -12
- package/fieldset/fieldset.d.ts +85 -7
- package/fileupload/fileupload.cjs.js +4 -0
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +425 -62
- package/fileupload/fileupload.esm.js +4 -0
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +4 -0
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +3 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +198 -30
- package/galleria/galleria.esm.js +3 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +3 -1
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.d.ts +91 -5
- package/hooks/hooks.cjs.js +1 -2
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +114 -7
- package/hooks/hooks.esm.js +1 -2
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +1 -2
- package/hooks/hooks.min.js +1 -1
- package/image/image.d.ts +91 -11
- package/inplace/inplace.d.ts +101 -9
- package/inputmask/inputmask.cjs.js +6 -5
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +119 -27
- package/inputmask/inputmask.esm.js +7 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +6 -5
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +11 -33
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +265 -57
- package/inputnumber/inputnumber.esm.js +12 -34
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +11 -33
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +4 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +118 -27
- package/inputswitch/inputswitch.esm.js +5 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +4 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.d.ts +57 -6
- package/inputtextarea/inputtextarea.d.ts +52 -6
- package/keyfilter/keyfilteroptions.d.ts +15 -0
- package/knob/knob.d.ts +127 -20
- package/listbox/listbox.cjs.js +3 -0
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +270 -48
- package/listbox/listbox.esm.js +3 -0
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -0
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.d.ts +50 -11
- package/mention/mention.cjs.js +3 -0
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +186 -32
- package/mention/mention.esm.js +3 -0
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -0
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +3 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +89 -12
- package/menu/menu.esm.js +3 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -1
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.d.ts +53 -8
- package/menuitem/menuitem.d.ts +114 -19
- package/message/message.d.ts +50 -11
- package/messages/messages.d.ts +91 -11
- package/multiselect/multiselect.cjs.js +11 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +429 -82
- package/multiselect/multiselect.esm.js +12 -3
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +11 -2
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +3 -0
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +157 -22
- package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +3 -0
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.d.ts +113 -16
- package/organizationchart/organizationchart.d.ts +107 -16
- package/overlaypanel/overlaypanel.cjs.js +4 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +89 -15
- package/overlaypanel/overlaypanel.esm.js +4 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +4 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.d.ts +52 -7
- package/package.json +2 -2
- package/paginator/paginator.d.ts +409 -44
- package/panel/panel.d.ts +142 -16
- package/panelmenu/panelmenu.d.ts +46 -4
- package/password/password.cjs.js +7 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +176 -36
- package/password/password.esm.js +7 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +7 -1
- package/password/password.min.css +1 -1
- package/password/password.min.js +1 -1
- package/picklist/picklist.d.ts +272 -46
- package/primereact.all.cjs.js +305 -158
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +305 -158
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +305 -158
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.d.ts +60 -11
- package/progressspinner/progressspinner.d.ts +47 -4
- package/radiobutton/radiobutton.cjs.js +5 -1
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +99 -29
- package/radiobutton/radiobutton.esm.js +5 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +5 -1
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.d.ts +101 -24
- package/resources/primereact.css +74 -63
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +5 -9
- package/resources/themes/arya-green/theme.css +4 -10
- package/resources/themes/arya-orange/theme.css +4 -9
- package/resources/themes/arya-purple/theme.css +4 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -9
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -9
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -9
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -10
- package/resources/themes/fluent-light/theme.css +4 -10
- package/resources/themes/lara-dark-blue/theme.css +4 -9
- package/resources/themes/lara-dark-indigo/theme.css +4 -10
- package/resources/themes/lara-dark-purple/theme.css +4 -9
- package/resources/themes/lara-dark-teal/theme.css +4 -10
- package/resources/themes/lara-light-blue/theme.css +4 -9
- package/resources/themes/lara-light-indigo/theme.css +4 -9
- package/resources/themes/lara-light-purple/theme.css +4 -9
- package/resources/themes/lara-light-teal/theme.css +4 -9
- package/resources/themes/luna-amber/theme.css +5 -9
- package/resources/themes/luna-blue/theme.css +4 -9
- package/resources/themes/luna-green/theme.css +5 -9
- package/resources/themes/luna-pink/theme.css +4 -9
- package/resources/themes/md-dark-deeppurple/theme.css +4 -9
- package/resources/themes/md-dark-indigo/theme.css +5 -9
- package/resources/themes/md-light-deeppurple/theme.css +5 -9
- package/resources/themes/md-light-indigo/theme.css +5 -9
- package/resources/themes/mdc-dark-deeppurple/theme.css +5 -9
- package/resources/themes/mdc-dark-indigo/theme.css +4 -9
- package/resources/themes/mdc-light-deeppurple/theme.css +5 -9
- package/resources/themes/mdc-light-indigo/theme.css +4 -9
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6237 -0
- package/resources/themes/nano/theme.css +6009 -0
- package/resources/themes/nova/theme.css +4 -9
- package/resources/themes/nova-accent/theme.css +5 -9
- package/resources/themes/nova-alt/theme.css +4 -9
- package/resources/themes/rhea/theme.css +5 -9
- package/resources/themes/saga-blue/theme.css +4 -9
- package/resources/themes/saga-green/theme.css +5 -9
- package/resources/themes/saga-orange/theme.css +5 -9
- package/resources/themes/saga-purple/theme.css +5 -9
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +6002 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +6056 -0
- package/resources/themes/vela-blue/theme.css +4 -9
- package/resources/themes/vela-green/theme.css +4 -9
- package/resources/themes/vela-orange/theme.css +4 -9
- package/resources/themes/vela-purple/theme.css +5 -9
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6164 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6164 -0
- package/ripple/ripple.d.ts +29 -1
- package/row/row.d.ts +37 -3
- package/scrollpanel/scrollpanel.d.ts +45 -1
- package/scrolltop/scrolltop.d.ts +70 -10
- package/selectbutton/selectbutton.cjs.js +3 -0
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +111 -32
- package/selectbutton/selectbutton.esm.js +4 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +3 -0
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +34 -0
- package/sidebar/sidebar.cjs.js +13 -1
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +120 -22
- package/sidebar/sidebar.esm.js +13 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +13 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.d.ts +61 -11
- package/slidemenu/slidemenu.d.ts +132 -18
- package/slider/slider.d.ts +101 -18
- package/speeddial/speeddial.d.ts +149 -20
- package/splitbutton/splitbutton.cjs.js +3 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +131 -23
- package/splitbutton/splitbutton.esm.js +3 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +3 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.d.ts +98 -12
- package/steps/steps.d.ts +67 -6
- package/styleclass/styleclass.d.ts +77 -12
- package/tabmenu/tabmenu.d.ts +62 -5
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +213 -27
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.d.ts +50 -6
- package/terminal/terminal.cjs.js +3 -0
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +45 -3
- package/terminal/terminal.esm.js +4 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +3 -0
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.d.ts +42 -4
- package/tieredmenu/tieredmenu.cjs.js +3 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +77 -12
- package/tieredmenu/tieredmenu.esm.js +3 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +3 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +6 -10
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +62 -13
- package/timeline/timeline.esm.js +6 -10
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +6 -10
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +4 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +134 -27
- package/toast/toast.esm.js +4 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +4 -1
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +122 -15
- package/togglebutton/togglebutton.esm.js +5 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +4 -1
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +13 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +55 -5
- package/toolbar/toolbar.esm.js +13 -7
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +13 -7
- package/toolbar/toolbar.min.css +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.d.ts +73 -9
- package/tooltip/tooltipoptions.d.ts +350 -31
- package/tree/tree.d.ts +435 -71
- package/treenode/treenode.d.ts +62 -13
- package/treeselect/treeselect.cjs.js +7 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +326 -77
- package/treeselect/treeselect.esm.js +8 -2
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +7 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +3 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +501 -112
- package/treetable/treetable.esm.js +3 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +3 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -0
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +72 -20
- package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +3 -0
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +24 -0
- package/utils/utils.cjs.js +27 -11
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +8 -1
- package/utils/utils.esm.js +27 -11
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +27 -11
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +351 -59
- package/web-types.json +22 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.multistatecheckbox=function(e,t,n,r,o,l){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e){var t=s(e,"string");return"symbol"===c(t)?t:String(t)}function f(e){if(Array.isArray(e))return e}function m(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=a.memo(a.forwardRef((function(e,t){var i,c,s=a.useState(!1),b=(c=2,f(i=s)||m(i,c)||d(i,c)||y()),h=b[0],g=b[1],O=a.useRef(null),j=e.optionValue?null:e.dataKey,S=function(t){return e.optionValue?l.ObjectUtils.resolveFieldData(t,e.optionValue):t},x=function(t){if(e.onChange){var n=S(e.options?w===e.options.length-1?e.empty?null:e.options[0]:e.options[w+1]:null);e.onChange({originalEvent:t,value:n,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:n}})}};a.useImperativeHandle(t,(function(){return{props:e,getElement:function(){return O.current}}})),r.useMountEffect((function(){e.empty||null!==e.value||x()}));var k,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.multistatecheckbox=function(e,t,n,r,o,l){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function p(e){var t=s(e,"string");return"symbol"===c(t)?t:String(t)}function f(e){if(Array.isArray(e))return e}function m(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var v=a.memo(a.forwardRef((function(e,t){var i,c,s=a.useState(!1),b=(c=2,f(i=s)||m(i,c)||d(i,c)||y()),h=b[0],g=b[1],O=a.useRef(null),j=e.optionValue?null:e.dataKey,S=function(t){return e.optionValue?l.ObjectUtils.resolveFieldData(t,e.optionValue):t},x=function(t){if(e.onChange){var n=S(e.options?w===e.options.length-1?e.empty?null:e.options[0]:e.options[w+1]:null);e.onChange({originalEvent:t,value:n,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:n}})}};a.useImperativeHandle(t,(function(){return{props:e,focus:function(){return l.DomHandler.focusFirstElement(O.current)},getElement:function(){return O.current}}})),r.useMountEffect((function(){e.empty||null!==e.value||x()}));var E,k,N=(e.options&&(k=e.options.findIndex((function(t){return l.ObjectUtils.equals(e.value,S(t),j)})),E=e.options[k]),{option:E,index:k}),P=N.option,w=N.index,C=l.ObjectUtils.isNotEmpty(e.tooltip),D=l.ObjectUtils.findDiffKeys(e,v.defaultProps),I=l.ObjectUtils.reduceKeys(D,l.DomHandler.ARIA_PROPS),A=l.classNames("p-multistatecheckbox p-checkbox p-component",e.className,{"p-checkbox-disabled":e.disabled}),U=l.classNames("p-checkbox-box",{"p-highlight":!!P,"p-disabled":e.disabled,"p-focus":h},P&&P.className),M=function(){var t,n,r,o=l.classNames("p-checkbox-icon p-c",(t={},n="".concat(P&&P.icon||""),r=!0,(n=p(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t)),i=a.createElement("span",{className:o});return e.iconTemplate?l.ObjectUtils.getJSXElement(e.iconTemplate,{option:P,className:o,element:i,props:e}):i}(),T=P?function(t){var n=e.optionLabel||e.optionValue;return n?l.ObjectUtils.resolveFieldData(t,n):t}(P):n.ariaLabel("nullLabel"),_=P?"true":"false";return a.createElement(a.Fragment,null,a.createElement("div",u({ref:O,id:e.id,className:A,style:e.style},D,{onClick:function(t){e.disabled||e.readOnly||x(t)}}),a.createElement("div",u({className:U,style:P&&P.style,tabIndex:e.tabIndex,onFocus:function(){g(!0)},onBlur:function(){g(!1)},onKeyDown:function(e){32===e.keyCode&&(x(e),e.preventDefault())},role:"checkbox","aria-checked":_},I),M),h&&a.createElement("span",{className:"p-sr-only","aria-live":"polite"},T)),C&&a.createElement(o.Tooltip,u({target:O,content:e.tooltip},e.tooltipOptions)))})));return v.displayName="MultiStateCheckbox",v.defaultProps={__TYPE:"MultiStateCheckbox",id:null,value:null,options:null,optionValue:null,optionLabel:null,iconTemplate:null,dataKey:null,style:null,className:null,disabled:!1,readOnly:!1,empty:!0,tabIndex:"0",tooltip:null,tooltipOptions:null,onChange:null},e.MultiStateCheckbox=v,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.tooltip,primereact.utils);
|
package/orderlist/orderlist.d.ts
CHANGED
|
@@ -1,34 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* OrderList is used to sort a collection.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/orderlist/)
|
|
6
|
+
*
|
|
7
|
+
* @module orderlist
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom change event.
|
|
14
|
+
* @see {@link OrderListProps.onChange}
|
|
15
|
+
* @event
|
|
16
|
+
*/
|
|
17
|
+
interface OrderListChangeEvent {
|
|
18
|
+
/**
|
|
19
|
+
* Browser event
|
|
20
|
+
*/
|
|
6
21
|
originalEvent: React.SyntheticEvent;
|
|
22
|
+
/**
|
|
23
|
+
* Reordered list
|
|
24
|
+
*/
|
|
7
25
|
value: any;
|
|
8
26
|
}
|
|
9
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Custom filter options.
|
|
30
|
+
* @group Misc
|
|
31
|
+
*/
|
|
10
32
|
interface OrderListFilterOptions {
|
|
33
|
+
/**
|
|
34
|
+
* Browser keyboard event for the filter orderlist element.
|
|
35
|
+
*/
|
|
11
36
|
filter?: (event?: KeyboardEvent) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Used to reset the filter.
|
|
39
|
+
*/
|
|
12
40
|
reset?: () => void;
|
|
13
41
|
}
|
|
14
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Defines valid properties in OrderList component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
45
|
+
* @group Properties
|
|
46
|
+
*/
|
|
15
47
|
export interface OrderListProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
/**
|
|
49
|
+
* An array of objects to reorder.
|
|
50
|
+
*/
|
|
51
|
+
value?: any[] | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Text for the caption.
|
|
54
|
+
*/
|
|
55
|
+
header?: React.ReactNode | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Inline style of the list element.
|
|
58
|
+
*/
|
|
59
|
+
listStyle?: React.CSSProperties | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to enable dragdrop based reordering.
|
|
62
|
+
* @defaultValue false
|
|
63
|
+
*/
|
|
64
|
+
dragdrop?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Name of the field that uniquely identifies the a record in the data.
|
|
67
|
+
*/
|
|
68
|
+
dataKey?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* When specified, displays an input field to filter the items on keyup.
|
|
71
|
+
* @defaultValue false
|
|
72
|
+
*/
|
|
73
|
+
filter?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
76
|
+
* @defaultValue label
|
|
77
|
+
*/
|
|
78
|
+
filterBy?: string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Defines how the items are filtered, valid values are "contains" (default), "startsWith", "endsWith", "equals" and "notEquals".
|
|
81
|
+
* @defaultValue contains
|
|
82
|
+
*/
|
|
83
|
+
filterMatchMode?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Placeholder text to show when filter input is empty.
|
|
86
|
+
*/
|
|
87
|
+
filterPlaceholder?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
90
|
+
* @defaultValue undefined
|
|
91
|
+
*/
|
|
92
|
+
filterLocale?: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Custom template of filter element.
|
|
95
|
+
*/
|
|
96
|
+
filterTemplate?: React.ReactNode | ((options: OrderListFilterOptions) => React.ReactNode);
|
|
97
|
+
/**
|
|
98
|
+
* Callback to invoke to when a mouse button is pressed.
|
|
99
|
+
* @param {OrderListChangeEvent} event - Browser event.
|
|
100
|
+
*/
|
|
101
|
+
onChange?(event: OrderListChangeEvent): void;
|
|
102
|
+
/**
|
|
103
|
+
* The template of each item
|
|
104
|
+
* @param {*} item - Current item
|
|
105
|
+
*/
|
|
28
106
|
itemTemplate?(item: any): React.ReactNode;
|
|
29
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Used to get the child elements of the component.
|
|
109
|
+
* @readonly
|
|
110
|
+
*/
|
|
111
|
+
children?: React.ReactNode | undefined;
|
|
30
112
|
}
|
|
31
113
|
|
|
114
|
+
/**
|
|
115
|
+
* **PrimeReact - OrderList**
|
|
116
|
+
*
|
|
117
|
+
* _OrderList is used to sort a collection._
|
|
118
|
+
*
|
|
119
|
+
* [Live Demo](https://www.primefaces.org/primereact/orderlist/)
|
|
120
|
+
* --- ---
|
|
121
|
+
* 
|
|
122
|
+
*
|
|
123
|
+
* @group Component
|
|
124
|
+
*/
|
|
32
125
|
export declare class OrderList extends React.Component<OrderListProps, any> {
|
|
126
|
+
/**
|
|
127
|
+
* Used to get container element.
|
|
128
|
+
* @return {HTMLDivElement} Container element
|
|
129
|
+
*/
|
|
33
130
|
public getElement(): HTMLDivElement;
|
|
34
131
|
}
|
|
@@ -1,37 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* OrganizationChart visualizes hierarchical organization data.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/organizationchart/)
|
|
6
|
+
*
|
|
7
|
+
* @module organizationchart
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom node select event.
|
|
14
|
+
* @see {@link OrganizationChartProps.onNodeSelect}
|
|
15
|
+
* @event
|
|
16
|
+
*/
|
|
17
|
+
interface OrganizationChartNodeSelectEvent {
|
|
18
|
+
/**
|
|
19
|
+
* Browser event.
|
|
20
|
+
*/
|
|
10
21
|
originalEvent: React.SyntheticEvent;
|
|
11
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Selected node instance.
|
|
24
|
+
*/
|
|
25
|
+
node: OrganizationChartNodeData | null | undefined;
|
|
12
26
|
}
|
|
13
27
|
|
|
14
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Custom node unselect event.
|
|
30
|
+
* @see {@link OrganizationChartProps.onNodeUnselect}
|
|
31
|
+
* @event
|
|
32
|
+
*/
|
|
33
|
+
interface OrganizationChartNodeUnselectEvent {
|
|
34
|
+
/**
|
|
35
|
+
* Browser event.
|
|
36
|
+
*/
|
|
37
|
+
originalEvent: React.SyntheticEvent;
|
|
38
|
+
/**
|
|
39
|
+
* Unselected node instance.
|
|
40
|
+
*/
|
|
41
|
+
node: OrganizationChartNodeData | null | undefined;
|
|
42
|
+
}
|
|
15
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Custom organizationchart node data.
|
|
46
|
+
*/
|
|
16
47
|
interface OrganizationChartNodeData {
|
|
48
|
+
/**
|
|
49
|
+
* Style class of the node.
|
|
50
|
+
*/
|
|
17
51
|
className?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Visibility of node.
|
|
54
|
+
*/
|
|
18
55
|
expanded?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The child elements of the component.
|
|
58
|
+
* @readonly
|
|
59
|
+
*/
|
|
19
60
|
children?: OrganizationChartNodeData[];
|
|
61
|
+
/**
|
|
62
|
+
* Whether the node is selectable when selection mode is enabled.
|
|
63
|
+
*/
|
|
20
64
|
selectable?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Label of node.
|
|
67
|
+
*/
|
|
21
68
|
label?: string;
|
|
22
69
|
}
|
|
23
70
|
|
|
24
71
|
export interface OrganizationChartProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
72
|
+
/**
|
|
73
|
+
* An array of nested TreeNodes.
|
|
74
|
+
*/
|
|
75
|
+
value?: OrganizationChartNodeData[] | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Defines the selection mode, valid values "single" and "multiple".
|
|
78
|
+
*/
|
|
79
|
+
selectionMode?: 'single' | 'multiple' | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* A single treenode instance or an array to refer to the selections.
|
|
82
|
+
*/
|
|
83
|
+
selection?: OrganizationChartNodeData | OrganizationChartNodeData[] | null | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Template function that gets a node as a parameter and returns a content.
|
|
86
|
+
* @param {OrganizationChartNodeData} node - A node instance.
|
|
87
|
+
*/
|
|
28
88
|
nodeTemplate?(node: OrganizationChartNodeData): React.ReactNode;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Callback to invoke when node selection changes.
|
|
91
|
+
* @param {OrganizationChartNodeData | OrganizationChartNodeData[] | null | undefined} node - A node instance.
|
|
92
|
+
*/
|
|
93
|
+
selectionChange?(node: OrganizationChartNodeData | OrganizationChartNodeData[] | null | undefined): void;
|
|
94
|
+
/**
|
|
95
|
+
* Callback to invoke when a node is selected.
|
|
96
|
+
* @param {OrganizationChartNodeSelectEvent} event - Custom node select event.
|
|
97
|
+
*/
|
|
98
|
+
onNodeSelect?(event: OrganizationChartNodeSelectEvent): void;
|
|
99
|
+
/**
|
|
100
|
+
* Callback to invoke when a node is unselected.
|
|
101
|
+
* @param {OrganizationChartNodeUnselectEvent} event - Custom node unselect event.
|
|
102
|
+
*/
|
|
103
|
+
onNodeUnselect?(event: OrganizationChartNodeUnselectEvent): void;
|
|
104
|
+
/**
|
|
105
|
+
* Used to get the child elements of the component.
|
|
106
|
+
* @readonly
|
|
107
|
+
*/
|
|
108
|
+
children?: React.ReactNode | undefined;
|
|
33
109
|
}
|
|
34
110
|
|
|
111
|
+
/**
|
|
112
|
+
* **PrimeReact - OrganizationChart**
|
|
113
|
+
*
|
|
114
|
+
* _OrganizationChart visualizes hierarchical organization data._
|
|
115
|
+
*
|
|
116
|
+
* [Live Demo](https://www.primefaces.org/primereact/organizationchart/)
|
|
117
|
+
* --- ---
|
|
118
|
+
* 
|
|
119
|
+
*
|
|
120
|
+
* @group Component
|
|
121
|
+
*/
|
|
35
122
|
export declare class OrganizationChart extends React.Component<OrganizationChartProps, any> {
|
|
123
|
+
/**
|
|
124
|
+
* Used to get container element.
|
|
125
|
+
* @return {HTMLDivElement} Container element
|
|
126
|
+
*/
|
|
36
127
|
public getElement(): HTMLDivElement;
|
|
37
128
|
}
|
|
@@ -268,7 +268,10 @@ var OverlayPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref
|
|
|
268
268
|
};
|
|
269
269
|
var createElement = function createElement() {
|
|
270
270
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, OverlayPanel.defaultProps);
|
|
271
|
-
var className = utils.classNames('p-overlaypanel p-component', props.className
|
|
271
|
+
var className = utils.classNames('p-overlaypanel p-component', props.className, {
|
|
272
|
+
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
273
|
+
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
274
|
+
});
|
|
272
275
|
var closeIcon = createCloseIcon();
|
|
273
276
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
274
277
|
nodeRef: overlayRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/csstransition"),n=require("primereact/hooks"),l=require("primereact/overlayservice"),a=require("primereact/portal"),o=require("primereact/ripple"),u=require("primereact/utils");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var s=c(e),f=i(r);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}function d(e){if(Array.isArray(e))return e}function y(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,a,o,u=[],i=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);i=!0);}catch(e){c=!0,l=e}finally{try{if(!i&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw l}}return u}}function v(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function m(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,r){return d(e)||y(e,r)||m(e,r)||b()}var g=s.forwardRef((function(e,i){var c=O(s.useState(!1),2),d=c[0],y=c[1],v=s.useRef(""),m=s.useRef(null),b=s.useRef(null),h=s.useRef(!1),E=s.useRef(null),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("primereact/api"),t=require("primereact/csstransition"),n=require("primereact/hooks"),l=require("primereact/overlayservice"),a=require("primereact/portal"),o=require("primereact/ripple"),u=require("primereact/utils");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var s=c(e),f=i(r);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},p.apply(this,arguments)}function d(e){if(Array.isArray(e))return e}function y(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,a,o,u=[],i=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);i=!0);}catch(e){c=!0,l=e}finally{try{if(!i&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw l}}return u}}function v(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function m(e,r){if(e){if("string"==typeof e)return v(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,r):void 0}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,r){return d(e)||y(e,r)||m(e,r)||b()}var g=s.forwardRef((function(e,i){var c=O(s.useState(!1),2),d=c[0],y=c[1],v=s.useRef(""),m=s.useRef(null),b=s.useRef(null),h=s.useRef(!1),E=s.useRef(null),S=s.useRef(null),w=O(n.useOverlayListener({target:b,overlay:m,listener:function(r,t){t.valid&&("outside"===t.type?e.dismissable&&!h.current&&N():N()),h.current=!1},when:d}),2),j=w[0],k=w[1],x=function(e){return m&&m.current&&!(m.current.isSameNode(e)||m.current.contains(e))},I=function(e,r){return null!=b.current&&b.current!==(r||e.currentTarget||e.target)},P=function(e){N(),e.preventDefault()},C=function(e){h.current=!0,l.OverlayService.emit("overlay-click",{originalEvent:e,target:b.current})},H=function(){h.current=!0},T=function(e,r){d?(N(),I(e,r)&&(b.current=r||e.currentTarget||e.target,setTimeout((function(){D(e,b.current)}),200))):D(e,r)},D=function(e,r){b.current=r||e.currentTarget||e.target,d?M():(y(!0),S.current=function(e){!x(e.target)&&(h.current=!0)},l.OverlayService.on("overlay-click",S.current))},N=function(){y(!1),l.OverlayService.off("overlay-click",S.current),S.current=null},q=function(){m.current.setAttribute(v.current,""),u.ZIndexUtils.set("overlay",m.current,f.default.autoZIndex,f.default.zIndex.overlay),M()},R=function(){j(),e.onShow&&e.onShow()},A=function(){k()},U=function(){u.ZIndexUtils.clear(m.current),e.onHide&&e.onHide()},M=function(){if(b.current&&m.current){u.DomHandler.absolutePosition(m.current,b.current);var e=u.DomHandler.getOffset(m.current),r=u.DomHandler.getOffset(b.current),t=0;e.left<r.left&&(t=r.left-e.left),m.current.style.setProperty("--overlayArrowLeft","".concat(t,"px")),e.top<r.top&&u.DomHandler.addClass(m.current,"p-overlaypanel-flipped")}},_=function(){if(!E.current){E.current=u.DomHandler.createInlineStyle(f.default.nonce);var r="";for(var t in e.breakpoints)r+="\n @media screen and (max-width: ".concat(t,") {\n .p-overlaypanel[").concat(v.current,"] {\n width: ").concat(e.breakpoints[t]," !important;\n }\n }\n ");E.current.innerHTML=r}};n.useMountEffect((function(){v.current=u.UniqueComponentId(),e.breakpoints&&_()})),n.useUnmountEffect((function(){E.current=u.DomHandler.removeInlineStyle(E.current),S.current&&(l.OverlayService.off("overlay-click",S.current),S.current=null),u.ZIndexUtils.clear(m.current)})),s.useImperativeHandle(i,(function(){return{props:e,toggle:T,show:D,hide:N,getElement:function(){return m.current}}}));var L,Z,z,K=function(){if(e.showCloseIcon){var t=e.ariaCloseLabel||r.localeOption("close");return s.createElement("button",{type:"button",className:"p-overlaypanel-close p-link",onClick:P,"aria-label":t},s.createElement("span",{className:"p-overlaypanel-close-icon pi pi-times","aria-hidden":"true"}),s.createElement(o.Ripple,null))}return null},Y=(L=u.ObjectUtils.findDiffKeys(e,g.defaultProps),Z=u.classNames("p-overlaypanel p-component",e.className,{"p-input-filled":"filled"===f.default.inputStyle,"p-ripple-disabled":!1===f.default.ripple}),z=K(),s.createElement(t.CSSTransition,{nodeRef:m,classNames:"p-overlaypanel",in:d,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:q,onEntered:R,onExit:A,onExited:U},s.createElement("div",p({ref:m,id:e.id,className:Z,style:e.style},L,{onClick:C}),s.createElement("div",{className:"p-overlaypanel-content",onClick:H,onMouseDown:H},e.children),z)));return s.createElement(a.Portal,{element:Y,appendTo:e.appendTo})}));g.displayName="OverlayPanel",g.defaultProps={__TYPE:"OverlayPanel",id:null,dismissable:!0,showCloseIcon:!1,style:null,className:null,appendTo:null,breakpoints:null,ariaCloseLabel:null,transitionOptions:null,onShow:null,onHide:null},exports.OverlayPanel=g;
|
|
@@ -1,31 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* OverlayPanel, also known as Popover, is a container component that can overlay other components on page.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/overlaypanel)
|
|
6
|
+
*
|
|
7
|
+
* @module overlaypanel
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
import { CSSTransitionProps } from '../csstransition';
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type OverlayPanelAppendToType = 'self' | HTMLElement | undefined | null;
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Custom overlay panel breakpoints
|
|
15
|
+
* @group Misc
|
|
16
|
+
*/
|
|
10
17
|
interface OverlayPanelBreakpoints {
|
|
18
|
+
/**
|
|
19
|
+
* A key-value pair representing a breakpoint and its associated value.
|
|
20
|
+
*/
|
|
11
21
|
[key: string]: string;
|
|
12
22
|
}
|
|
13
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Defines valid properties in OverlayPanel component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
26
|
+
* @group Properties
|
|
27
|
+
*/
|
|
14
28
|
export interface OverlayPanelProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Enables to hide the overlay when outside is clicked.
|
|
31
|
+
* @defaultValue true
|
|
32
|
+
*/
|
|
33
|
+
dismissable?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* When enabled, displays a close icon at top right corner.
|
|
36
|
+
* @defaultValue false
|
|
37
|
+
*/
|
|
38
|
+
showCloseIcon?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* DOM element instance where the overlay panel should be mounted. Valid values are any DOM Element and 'self'. The self value is used to render a component where it is located.
|
|
41
|
+
* @defaultValue document.body
|
|
42
|
+
*/
|
|
43
|
+
appendTo?: 'self' | HTMLElement | undefined | null;
|
|
44
|
+
/**
|
|
45
|
+
* Aria label of the close icon.
|
|
46
|
+
* @defaultValue close
|
|
47
|
+
*/
|
|
48
|
+
ariaCloseLabel?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Object literal to define widths per screen size.
|
|
51
|
+
*/
|
|
52
|
+
breakpoints?: OverlayPanelBreakpoints | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The properties of CSSTransition can be customized, except for "nodeRef" and "in" properties.
|
|
55
|
+
*/
|
|
56
|
+
transitionOptions?: CSSTransitionProps | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Callback to invoke when overlay becomes visible.
|
|
59
|
+
*/
|
|
21
60
|
onShow?(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback to invoke when overlay becomes hidden.
|
|
63
|
+
*/
|
|
22
64
|
onHide?(): void;
|
|
23
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Used to get the child elements of the component.
|
|
67
|
+
* @readonly
|
|
68
|
+
*/
|
|
69
|
+
children?: React.ReactNode | undefined;
|
|
24
70
|
}
|
|
25
71
|
|
|
72
|
+
/**
|
|
73
|
+
* **PrimeReact - OverlayPanel**
|
|
74
|
+
*
|
|
75
|
+
* _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
|
|
76
|
+
*
|
|
77
|
+
* [Live Demo](https://www.primefaces.org/primereact/overlaypanel/)
|
|
78
|
+
* --- ---
|
|
79
|
+
* 
|
|
80
|
+
*
|
|
81
|
+
* @group Component
|
|
82
|
+
*/
|
|
26
83
|
export declare class OverlayPanel extends React.Component<OverlayPanelProps, any> {
|
|
27
|
-
|
|
28
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Toggles the visiblity of the overlay.
|
|
86
|
+
* @param {React.SyntheticEvent | undefined | null} event - Browser event.
|
|
87
|
+
* @param {HTMLElement | EventTarget | undefined | null} target - Browser event.
|
|
88
|
+
*/
|
|
89
|
+
public toggle(event: React.SyntheticEvent | undefined | null, target?: HTMLElement | EventTarget | undefined | null): void;
|
|
90
|
+
/**
|
|
91
|
+
* Shows the overlay.
|
|
92
|
+
* @param {React.SyntheticEvent | undefined | null} event - Browser event.
|
|
93
|
+
* @param {HTMLElement | EventTarget | undefined | null} target - Browser event.
|
|
94
|
+
*/
|
|
95
|
+
public show(event: React.SyntheticEvent | undefined | null, target: HTMLElement | EventTarget | undefined | null): void;
|
|
96
|
+
/**
|
|
97
|
+
* Hides the overlay.
|
|
98
|
+
*/
|
|
29
99
|
public hide(): void;
|
|
100
|
+
/**
|
|
101
|
+
* Used to get container element.
|
|
102
|
+
* @return {HTMLDivElement} Container element
|
|
103
|
+
*/
|
|
30
104
|
public getElement(): HTMLDivElement;
|
|
31
105
|
}
|
|
@@ -241,7 +241,10 @@ var OverlayPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
241
241
|
};
|
|
242
242
|
var createElement = function createElement() {
|
|
243
243
|
var otherProps = ObjectUtils.findDiffKeys(props, OverlayPanel.defaultProps);
|
|
244
|
-
var className = classNames('p-overlaypanel p-component', props.className
|
|
244
|
+
var className = classNames('p-overlaypanel p-component', props.className, {
|
|
245
|
+
'p-input-filled': PrimeReact.inputStyle === 'filled',
|
|
246
|
+
'p-ripple-disabled': PrimeReact.ripple === false
|
|
247
|
+
});
|
|
245
248
|
var closeIcon = createCloseIcon();
|
|
246
249
|
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
247
250
|
nodeRef: overlayRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import r,{localeOption as
|
|
1
|
+
import*as e from"react";import r,{localeOption as t}from"primereact/api";import{CSSTransition as n}from"primereact/csstransition";import{useOverlayListener as o,useMountEffect as l,useUnmountEffect as a}from"primereact/hooks";import{OverlayService as i}from"primereact/overlayservice";import{Portal as c}from"primereact/portal";import{Ripple as u}from"primereact/ripple";import{UniqueComponentId as s,DomHandler as f,ZIndexUtils as p,ObjectUtils as m,classNames as d}from"primereact/utils";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},y.apply(this,arguments)}function v(e){if(Array.isArray(e))return e}function b(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,l,a,i=[],c=!0,u=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=l.call(t)).done)&&(i.push(n.value),i.length!==r);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return i}}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function g(e,r){if(e){if("string"==typeof e)return h(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,r){return v(e)||b(e,r)||g(e,r)||w()}var O=e.forwardRef((function(v,b){var h=E(e.useState(!1),2),g=h[0],w=h[1],k=e.useRef(""),S=e.useRef(null),x=e.useRef(null),I=e.useRef(!1),T=e.useRef(null),C=e.useRef(null),N=E(o({target:x,overlay:S,listener:function(e,r){r.valid&&("outside"===r.type?v.dismissable&&!I.current&&z():z()),I.current=!1},when:g}),2),j=N[0],A=N[1],P=function(e){return S&&S.current&&!(S.current.isSameNode(e)||S.current.contains(e))},R=function(e,r){return null!=x.current&&x.current!==(r||e.currentTarget||e.target)},H=function(e){z(),e.preventDefault()},L=function(e){I.current=!0,i.emit("overlay-click",{originalEvent:e,target:x.current})},D=function(){I.current=!0},M=function(e,r){g?(z(),R(e,r)&&(x.current=r||e.currentTarget||e.target,setTimeout((function(){_(e,x.current)}),200))):_(e,r)},_=function(e,r){x.current=r||e.currentTarget||e.target,g?$():(w(!0),C.current=function(e){!P(e.target)&&(I.current=!0)},i.on("overlay-click",C.current))},z=function(){w(!1),i.off("overlay-click",C.current),C.current=null},K=function(){S.current.setAttribute(k.current,""),p.set("overlay",S.current,r.autoZIndex,r.zIndex.overlay),$()},U=function(){j(),v.onShow&&v.onShow()},Y=function(){A()},Z=function(){p.clear(S.current),v.onHide&&v.onHide()},$=function(){if(x.current&&S.current){f.absolutePosition(S.current,x.current);var e=f.getOffset(S.current),r=f.getOffset(x.current),t=0;e.left<r.left&&(t=r.left-e.left),S.current.style.setProperty("--overlayArrowLeft","".concat(t,"px")),e.top<r.top&&f.addClass(S.current,"p-overlaypanel-flipped")}},q=function(){if(!T.current){T.current=f.createInlineStyle(r.nonce);var e="";for(var t in v.breakpoints)e+="\n @media screen and (max-width: ".concat(t,") {\n .p-overlaypanel[").concat(k.current,"] {\n width: ").concat(v.breakpoints[t]," !important;\n }\n }\n ");T.current.innerHTML=e}};l((function(){k.current=s(),v.breakpoints&&q()})),a((function(){T.current=f.removeInlineStyle(T.current),C.current&&(i.off("overlay-click",C.current),C.current=null),p.clear(S.current)})),e.useImperativeHandle(b,(function(){return{props:v,toggle:M,show:_,hide:z,getElement:function(){return S.current}}}));var B,F,G,J=function(){if(v.showCloseIcon){var r=v.ariaCloseLabel||t("close");return e.createElement("button",{type:"button",className:"p-overlaypanel-close p-link",onClick:H,"aria-label":r},e.createElement("span",{className:"p-overlaypanel-close-icon pi pi-times","aria-hidden":"true"}),e.createElement(u,null))}return null},Q=(B=m.findDiffKeys(v,O.defaultProps),F=d("p-overlaypanel p-component",v.className,{"p-input-filled":"filled"===r.inputStyle,"p-ripple-disabled":!1===r.ripple}),G=J(),e.createElement(n,{nodeRef:S,classNames:"p-overlaypanel",in:g,timeout:{enter:120,exit:100},options:v.transitionOptions,unmountOnExit:!0,onEnter:K,onEntered:U,onExit:Y,onExited:Z},e.createElement("div",y({ref:S,id:v.id,className:F,style:v.style},B,{onClick:L}),e.createElement("div",{className:"p-overlaypanel-content",onClick:D,onMouseDown:D},v.children),G)));return e.createElement(c,{element:Q,appendTo:v.appendTo})}));O.displayName="OverlayPanel",O.defaultProps={__TYPE:"OverlayPanel",id:null,dismissable:!0,showCloseIcon:!1,style:null,className:null,appendTo:null,breakpoints:null,ariaCloseLabel:null,transitionOptions:null,onShow:null,onHide:null};export{O as OverlayPanel};
|
|
@@ -259,7 +259,10 @@ this.primereact.overlaypanel = (function (exports, React, PrimeReact, csstransit
|
|
|
259
259
|
};
|
|
260
260
|
var createElement = function createElement() {
|
|
261
261
|
var otherProps = utils.ObjectUtils.findDiffKeys(props, OverlayPanel.defaultProps);
|
|
262
|
-
var className = utils.classNames('p-overlaypanel p-component', props.className
|
|
262
|
+
var className = utils.classNames('p-overlaypanel p-component', props.className, {
|
|
263
|
+
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
264
|
+
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
265
|
+
});
|
|
263
266
|
var closeIcon = createCloseIcon();
|
|
264
267
|
return /*#__PURE__*/React__namespace.createElement(csstransition.CSSTransition, {
|
|
265
268
|
nodeRef: overlayRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.overlaypanel=function(e,t,r,n,l,a,o,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.overlaypanel=function(e,t,r,n,l,a,o,i,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var f=s(t),p=c(r);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function y(e){if(Array.isArray(e))return e}function m(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,l,a,o,i=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);u=!0);}catch(e){c=!0,l=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw l}}return i}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e,t){return y(e)||m(e,t)||b(e,t)||O()}var g=f.forwardRef((function(e,t){var c=h(f.useState(!1),2),s=c[0],y=c[1],m=f.useRef(""),v=f.useRef(null),b=f.useRef(null),O=f.useRef(!1),E=f.useRef(null),S=f.useRef(null),w=h(l.useOverlayListener({target:b,overlay:v,listener:function(t,r){r.valid&&("outside"===r.type?e.dismissable&&!O.current&&N():N()),O.current=!1},when:s}),2),j=w[0],k=w[1],I=function(e){return v&&v.current&&!(v.current.isSameNode(e)||v.current.contains(e))},P=function(e,t){return null!=b.current&&b.current!==(t||e.currentTarget||e.target)},x=function(e){N(),e.preventDefault()},C=function(e){O.current=!0,a.OverlayService.emit("overlay-click",{originalEvent:e,target:b.current})},H=function(){O.current=!0},T=function(e,t){s?(N(),P(e,t)&&(b.current=t||e.currentTarget||e.target,setTimeout((function(){D(e,b.current)}),200))):D(e,t)},D=function(e,t){b.current=t||e.currentTarget||e.target,s?_():(y(!0),S.current=function(e){!I(e.target)&&(O.current=!0)},a.OverlayService.on("overlay-click",S.current))},N=function(){y(!1),a.OverlayService.off("overlay-click",S.current),S.current=null},R=function(){v.current.setAttribute(m.current,""),u.ZIndexUtils.set("overlay",v.current,p.default.autoZIndex,p.default.zIndex.overlay),_()},A=function(){j(),e.onShow&&e.onShow()},U=function(){k()},M=function(){u.ZIndexUtils.clear(v.current),e.onHide&&e.onHide()},_=function(){if(b.current&&v.current){u.DomHandler.absolutePosition(v.current,b.current);var e=u.DomHandler.getOffset(v.current),t=u.DomHandler.getOffset(b.current),r=0;e.left<t.left&&(r=t.left-e.left),v.current.style.setProperty("--overlayArrowLeft","".concat(r,"px")),e.top<t.top&&u.DomHandler.addClass(v.current,"p-overlaypanel-flipped")}},L=function(){if(!E.current){E.current=u.DomHandler.createInlineStyle(p.default.nonce);var t="";for(var r in e.breakpoints)t+="\n @media screen and (max-width: ".concat(r,") {\n .p-overlaypanel[").concat(m.current,"] {\n width: ").concat(e.breakpoints[r]," !important;\n }\n }\n ");E.current.innerHTML=t}};l.useMountEffect((function(){m.current=u.UniqueComponentId(),e.breakpoints&&L()})),l.useUnmountEffect((function(){E.current=u.DomHandler.removeInlineStyle(E.current),S.current&&(a.OverlayService.off("overlay-click",S.current),S.current=null),u.ZIndexUtils.clear(v.current)})),f.useImperativeHandle(t,(function(){return{props:e,toggle:T,show:D,hide:N,getElement:function(){return v.current}}}));var Z,z,q,K=function(){if(e.showCloseIcon){var t=e.ariaCloseLabel||r.localeOption("close");return f.createElement("button",{type:"button",className:"p-overlaypanel-close p-link",onClick:x,"aria-label":t},f.createElement("span",{className:"p-overlaypanel-close-icon pi pi-times","aria-hidden":"true"}),f.createElement(i.Ripple,null))}return null},Y=(Z=u.ObjectUtils.findDiffKeys(e,g.defaultProps),z=u.classNames("p-overlaypanel p-component",e.className,{"p-input-filled":"filled"===p.default.inputStyle,"p-ripple-disabled":!1===p.default.ripple}),q=K(),f.createElement(n.CSSTransition,{nodeRef:v,classNames:"p-overlaypanel",in:s,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:R,onEntered:A,onExit:U,onExited:M},f.createElement("div",d({ref:v,id:e.id,className:z,style:e.style},Z,{onClick:C}),f.createElement("div",{className:"p-overlaypanel-content",onClick:H,onMouseDown:H},e.children),q)));return f.createElement(o.Portal,{element:Y,appendTo:e.appendTo})}));return g.displayName="OverlayPanel",g.defaultProps={__TYPE:"OverlayPanel",id:null,dismissable:!0,showCloseIcon:!1,style:null,className:null,appendTo:null,breakpoints:null,ariaCloseLabel:null,transitionOptions:null,onShow:null,onHide:null},e.OverlayPanel=g,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.csstransition,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.ripple,primereact.utils);
|
|
@@ -1,16 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* OverlayService allows all overlay components to communicate with each other.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/dropdown/)
|
|
6
|
+
*
|
|
7
|
+
* @module overlayservice
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Overlay service event.
|
|
14
|
+
*/
|
|
15
|
+
export interface OverlayServiceEvent {
|
|
16
|
+
/**
|
|
17
|
+
* Original event that triggered the overlay.
|
|
18
|
+
*/
|
|
6
19
|
originalEvent: React.SyntheticEvent;
|
|
20
|
+
/**
|
|
21
|
+
* Target element that the overlay is bound to.
|
|
22
|
+
*/
|
|
7
23
|
target: HTMLElement;
|
|
8
24
|
}
|
|
9
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @group Misc
|
|
28
|
+
*/
|
|
10
29
|
export interface OverlayServiceOptions {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Add event listener for overlay click.
|
|
32
|
+
* @param {string} action - Custom listener.
|
|
33
|
+
* @param {*} fn - Custom listener.
|
|
34
|
+
*/
|
|
35
|
+
on(action: 'overlay-click', fn: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* Trigger overlay click event.
|
|
38
|
+
* @param {string} action - Custom listener.
|
|
39
|
+
* @param {*} params - Custom listener.
|
|
40
|
+
*/
|
|
41
|
+
emit(action: 'overlay-click', params?: OverlayServiceEvent): void;
|
|
42
|
+
/**
|
|
43
|
+
* Remove event listener for overlay click.
|
|
44
|
+
* @param {string} action - Custom listener.
|
|
45
|
+
* @param {*} fn - Custom listener.
|
|
46
|
+
*/
|
|
47
|
+
off(action: 'overlay-click', fn: any): void;
|
|
14
48
|
}
|
|
15
49
|
|
|
50
|
+
/**
|
|
51
|
+
* **PrimeReact - OverlayService**
|
|
52
|
+
*
|
|
53
|
+
* _OverlayService allows all overlay components to communicate with each other._
|
|
54
|
+
*
|
|
55
|
+
* [Live Demo](https://www.primefaces.org/primereact/dropdown/)
|
|
56
|
+
* --- ---
|
|
57
|
+
* 
|
|
58
|
+
*
|
|
59
|
+
* @group Service
|
|
60
|
+
*/
|
|
16
61
|
export declare const OverlayService: OverlayServiceOptions;
|