primereact 6.6.0-rc.1 → 7.0.0
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/README.md +34 -9
- package/accordion/accordion.cjs.js +32 -23
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +3 -2
- package/accordion/accordion.esm.js +17 -8
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +32 -24
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +374 -42
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +126 -32
- package/api/api.esm.js +371 -43
- package/api/api.esm.min.js +1 -1
- package/api/api.js +374 -44
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +79 -69
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +3 -1
- package/autocomplete/autocomplete.esm.js +15 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +75 -70
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +12 -9
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -1
- package/avatar/avatar.esm.js +7 -4
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +13 -10
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +5 -3
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +6 -4
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +5 -3
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +6 -4
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +19 -13
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +7 -2
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +18 -14
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +18 -16
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +3 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +19 -17
- package/breadcrumb/breadcrumb.min.css +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +28 -36
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +17 -25
- package/button/button.esm.min.js +1 -1
- package/button/button.js +27 -37
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +183 -153
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +5 -1
- package/calendar/calendar.esm.js +57 -27
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +179 -154
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +3 -1
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.js +2 -0
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +4 -2
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +15 -13
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +3 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +16 -14
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +39 -36
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +4 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -37
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +53 -47
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +8 -2
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +50 -48
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +8 -8
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +7 -5
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +22 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -1
- package/checkbox/checkbox.esm.js +15 -8
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +22 -16
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +18 -14
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +3 -4
- package/chip/chip.esm.js +13 -9
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +19 -15
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +48 -20
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +10 -0
- package/chips/chips.esm.js +39 -11
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +48 -21
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -31
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +8 -2
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +34 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +34 -9
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +168 -13
- package/column/column.esm.js +34 -9
- package/column/column.esm.min.js +1 -1
- package/column/column.js +35 -10
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.js +2 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +2 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +3 -1
- package/columngroup/columngroup.min.js +1 -1
- package/common/common.min.css +1 -1
- package/confirmdialog/confirmdialog.cjs.js +24 -20
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +4 -3
- package/confirmdialog/confirmdialog.esm.js +8 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +24 -21
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +47 -40
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +4 -3
- package/confirmpopup/confirmpopup.esm.js +12 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +44 -40
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +70 -63
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -31
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +67 -64
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +11745 -1572
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +3 -1
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +2 -0
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +4 -2
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +14 -11
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +6 -3
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +14 -12
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +4784 -3277
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +100 -29
- package/datatable/datatable.esm.js +4859 -3353
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +4777 -3278
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +36 -31
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +10 -5
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +35 -32
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -1
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +2 -0
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -2
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +68 -51
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -0
- package/dialog/dialog.esm.js +22 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +65 -52
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +6 -4
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +3 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +7 -5
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +53 -17
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +13 -0
- package/dock/dock.esm.js +41 -5
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +53 -18
- package/dock/dock.min.css +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +90 -76
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +28 -14
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +86 -77
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +40 -40
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +4 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +39 -37
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +19 -15
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +5 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +18 -16
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +65 -56
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +2 -1
- package/fileupload/fileupload.esm.js +26 -17
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +65 -57
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +8 -8
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +3 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +7 -5
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +72 -65
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +8 -2
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +69 -66
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +3 -1
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.js +2 -0
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +4 -2
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +33 -27
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +5 -5
- package/image/image.esm.js +7 -2
- package/image/image.esm.min.js +1 -1
- package/image/image.js +31 -28
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +10 -8
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +3 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +11 -9
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +11 -8
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +4 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +11 -9
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +50 -29
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +33 -12
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +49 -30
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +17 -12
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +10 -5
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +17 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +14 -10
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +5 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +13 -11
- package/inputtext/inputtext.min.css +1 -1
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +12 -9
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +4 -1
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +12 -10
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +5 -5
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +1 -1
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +6 -6
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +9 -7
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +3 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +10 -8
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +44 -39
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +9 -4
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +42 -40
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +38 -35
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +4 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +38 -36
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +55 -46
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +10 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +50 -47
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +35 -28
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -0
- package/menu/menu.esm.js +8 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +32 -29
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +40 -35
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +6 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +39 -36
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +11 -8
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +3 -1
- package/message/message.esm.js +5 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +12 -9
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +21 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +5 -1
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +20 -18
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +131 -116
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -2
- package/multiselect/multiselect.esm.js +46 -31
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +127 -117
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +16 -13
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +16 -14
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +37 -34
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +37 -35
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +28 -26
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +3 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +29 -27
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +33 -24
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +10 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -25
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.cjs.js +2 -2
- package/overlayservice/overlayservice.cjs.min.js +1 -1
- package/overlayservice/overlayservice.esm.js +1 -1
- package/overlayservice/overlayservice.esm.min.js +1 -1
- package/overlayservice/overlayservice.js +3 -3
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +10 -4
- package/paginator/paginator.cjs.js +51 -48
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +5 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +51 -49
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +21 -17
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +5 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -18
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +42 -39
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +4 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +42 -40
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +35 -29
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +8 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +32 -30
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +60 -54
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +16 -10
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +60 -55
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +7 -3
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +6 -2
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +8 -4
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +8713 -6221
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +7582 -5093
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +8712 -6218
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +11 -9
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +12 -10
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +7 -5
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +8 -6
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +12 -9
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +4 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +12 -10
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +12 -9
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +6 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +12 -10
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +375 -174
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +214 -868
- package/resources/themes/arya-green/theme.css +214 -868
- package/resources/themes/arya-orange/theme.css +214 -868
- package/resources/themes/arya-purple/theme.css +214 -868
- package/resources/themes/bootstrap4-dark-blue/theme.css +225 -879
- package/resources/themes/bootstrap4-dark-purple/theme.css +225 -879
- package/resources/themes/bootstrap4-light-blue/theme.css +226 -880
- package/resources/themes/bootstrap4-light-purple/theme.css +225 -879
- package/resources/themes/fluent-light/theme.css +214 -868
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5671 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5671 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5671 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5671 -0
- package/resources/themes/luna-amber/theme.css +225 -879
- package/resources/themes/luna-blue/theme.css +225 -879
- package/resources/themes/luna-green/theme.css +225 -879
- package/resources/themes/luna-pink/theme.css +225 -879
- package/resources/themes/md-dark-deeppurple/theme.css +479 -1234
- package/resources/themes/md-dark-indigo/theme.css +479 -1234
- package/resources/themes/md-light-deeppurple/theme.css +445 -1206
- package/resources/themes/md-light-indigo/theme.css +479 -1234
- package/resources/themes/mdc-dark-deeppurple/theme.css +479 -1234
- package/resources/themes/mdc-dark-indigo/theme.css +479 -1234
- package/resources/themes/mdc-light-deeppurple/theme.css +479 -1234
- package/resources/themes/mdc-light-indigo/theme.css +479 -1234
- package/resources/themes/nova/theme.css +226 -880
- package/resources/themes/nova-accent/theme.css +226 -880
- package/resources/themes/nova-alt/theme.css +226 -880
- package/resources/themes/rhea/theme.css +225 -879
- package/resources/themes/saga-blue/theme.css +214 -868
- package/resources/themes/saga-green/theme.css +214 -868
- package/resources/themes/saga-orange/theme.css +214 -868
- package/resources/themes/saga-purple/theme.css +214 -868
- package/resources/themes/tailwind-light/theme.css +225 -880
- package/resources/themes/vela-blue/theme.css +214 -868
- package/resources/themes/vela-green/theme.css +214 -868
- package/resources/themes/vela-orange/theme.css +214 -868
- package/resources/themes/vela-purple/theme.css +214 -868
- package/ripple/ripple.cjs.js +13 -11
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +5 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +14 -12
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +3 -1
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +2 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +4 -2
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +21 -19
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +22 -20
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +20 -13
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +2 -1
- package/scrolltop/scrolltop.esm.js +11 -5
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +18 -14
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +19 -15
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +5 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +18 -16
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +3 -1
- package/sidebar/sidebar.cjs.js +144 -116
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +2 -0
- package/sidebar/sidebar.esm.js +135 -108
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +141 -117
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +5 -3
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +3 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +6 -4
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +39 -32
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +8 -2
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +36 -33
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +40 -23
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +32 -15
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +41 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +22 -19
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +3 -2
- package/speeddial/speeddial.esm.js +4 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +22 -20
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +39 -33
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +4 -5
- package/splitbutton/splitbutton.esm.js +8 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +36 -34
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +21 -19
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +4 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +22 -20
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +12 -10
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +13 -11
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +35 -39
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +20 -24
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +36 -40
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +18 -15
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +4 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +18 -16
- package/tabmenu/tabmenu.min.css +1 -1
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +177 -54
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +4 -1
- package/tabview/tabview.esm.js +146 -23
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +177 -55
- package/tabview/tabview.min.css +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +11 -8
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -1
- package/tag/tag.esm.js +7 -4
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +12 -9
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +14 -12
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +15 -13
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.cjs.js +2 -2
- package/terminalservice/terminalservice.cjs.min.js +1 -1
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +3 -3
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +44 -36
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +9 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +40 -37
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +14 -12
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +3 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +15 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +48 -40
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +22 -15
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +46 -41
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +16 -9
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +3 -2
- package/togglebutton/togglebutton.esm.js +10 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +15 -10
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +9 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +10 -8
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +36 -31
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +6 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +35 -32
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +54 -51
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +9 -2
- package/tree/tree.esm.js +4 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +54 -52
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +3 -1
- package/treeselect/treeselect.cjs.js +52 -46
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +9 -2
- package/treeselect/treeselect.esm.js +11 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +49 -47
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1290 -272
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +9 -2
- package/treetable/treetable.esm.js +1213 -195
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1288 -273
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +13 -10
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +13 -11
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +499 -522
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +35 -26
- package/utils/utils.esm.js +498 -521
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +500 -523
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +285 -168
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +21 -9
- package/virtualscroller/virtualscroller.esm.js +278 -161
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +286 -169
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +17 -27
- package/core/core.cjs.js +0 -3080
- package/core/core.cjs.min.js +0 -1
- package/core/core.esm.js +0 -3055
- package/core/core.esm.min.js +0 -1
- package/core/package.json +0 -5
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var utils = require('primereact/utils');
|
|
7
|
+
var tooltip = require('primereact/tooltip');
|
|
8
|
+
var csstransition = require('primereact/csstransition');
|
|
9
|
+
var portal = require('primereact/portal');
|
|
7
10
|
var inputtext = require('primereact/inputtext');
|
|
11
|
+
var ripple = require('primereact/ripple');
|
|
8
12
|
var virtualscroller = require('primereact/virtualscroller');
|
|
9
13
|
var PrimeReact = require('primereact/api');
|
|
14
|
+
var overlayservice = require('primereact/overlayservice');
|
|
10
15
|
|
|
11
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
17
|
|
|
@@ -139,6 +144,8 @@ function _typeof(obj) {
|
|
|
139
144
|
function _possibleConstructorReturn(self, call) {
|
|
140
145
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
141
146
|
return call;
|
|
147
|
+
} else if (call !== void 0) {
|
|
148
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
return _assertThisInitialized(self);
|
|
@@ -285,7 +292,7 @@ var Checkbox = /*#__PURE__*/function (_Component) {
|
|
|
285
292
|
}, {
|
|
286
293
|
key: "renderTooltip",
|
|
287
294
|
value: function renderTooltip() {
|
|
288
|
-
this.tooltip =
|
|
295
|
+
this.tooltip = tooltip.tip({
|
|
289
296
|
target: this.element,
|
|
290
297
|
content: this.props.tooltip,
|
|
291
298
|
options: this.props.tooltipOptions
|
|
@@ -301,18 +308,19 @@ var Checkbox = /*#__PURE__*/function (_Component) {
|
|
|
301
308
|
value: function render() {
|
|
302
309
|
var _this2 = this;
|
|
303
310
|
|
|
304
|
-
var
|
|
305
|
-
|
|
311
|
+
var checked = this.isChecked();
|
|
312
|
+
var containerClass = utils.classNames('p-checkbox p-component', {
|
|
313
|
+
'p-checkbox-checked': checked,
|
|
306
314
|
'p-checkbox-disabled': this.props.disabled,
|
|
307
315
|
'p-checkbox-focused': this.state.focused
|
|
308
316
|
}, this.props.className);
|
|
309
|
-
var boxClass =
|
|
310
|
-
'p-highlight':
|
|
317
|
+
var boxClass = utils.classNames('p-checkbox-box', {
|
|
318
|
+
'p-highlight': checked,
|
|
311
319
|
'p-disabled': this.props.disabled,
|
|
312
320
|
'p-focus': this.state.focused
|
|
313
321
|
});
|
|
314
|
-
var
|
|
315
|
-
return /*#__PURE__*/React__default[
|
|
322
|
+
var icon = checked && this.props.icon;
|
|
323
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
316
324
|
ref: function ref(el) {
|
|
317
325
|
return _this2.element = el;
|
|
318
326
|
},
|
|
@@ -322,31 +330,34 @@ var Checkbox = /*#__PURE__*/function (_Component) {
|
|
|
322
330
|
onClick: this.onClick,
|
|
323
331
|
onContextMenu: this.props.onContextMenu,
|
|
324
332
|
onMouseDown: this.props.onMouseDown
|
|
325
|
-
}, /*#__PURE__*/React__default[
|
|
333
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
326
334
|
className: "p-hidden-accessible"
|
|
327
|
-
}, /*#__PURE__*/React__default[
|
|
335
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
328
336
|
ref: this.inputRef,
|
|
329
337
|
type: "checkbox",
|
|
330
338
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
331
339
|
id: this.props.inputId,
|
|
332
340
|
name: this.props.name,
|
|
333
341
|
tabIndex: this.props.tabIndex,
|
|
334
|
-
defaultChecked:
|
|
342
|
+
defaultChecked: checked,
|
|
335
343
|
onKeyDown: this.onKeyDown,
|
|
336
344
|
onFocus: this.onFocus,
|
|
337
345
|
onBlur: this.onBlur,
|
|
338
346
|
disabled: this.props.disabled,
|
|
339
347
|
readOnly: this.props.readOnly,
|
|
340
348
|
required: this.props.required
|
|
341
|
-
})), /*#__PURE__*/React__default[
|
|
349
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
342
350
|
className: boxClass,
|
|
343
351
|
ref: function ref(el) {
|
|
344
352
|
return _this2.box = el;
|
|
345
353
|
},
|
|
346
354
|
role: "checkbox",
|
|
347
|
-
"aria-checked":
|
|
348
|
-
},
|
|
349
|
-
className:
|
|
355
|
+
"aria-checked": checked
|
|
356
|
+
}, utils.IconUtils.getJSXIcon(icon, {
|
|
357
|
+
className: 'p-checkbox-icon p-c'
|
|
358
|
+
}, {
|
|
359
|
+
props: this.props,
|
|
360
|
+
checked: checked
|
|
350
361
|
})));
|
|
351
362
|
}
|
|
352
363
|
}]);
|
|
@@ -421,16 +432,16 @@ var MultiSelectHeader = /*#__PURE__*/function (_Component) {
|
|
|
421
432
|
key: "renderFilterElement",
|
|
422
433
|
value: function renderFilterElement() {
|
|
423
434
|
if (this.props.filter) {
|
|
424
|
-
return /*#__PURE__*/React__default[
|
|
435
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
425
436
|
className: "p-multiselect-filter-container"
|
|
426
|
-
}, /*#__PURE__*/React__default[
|
|
437
|
+
}, /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
427
438
|
type: "text",
|
|
428
439
|
role: "textbox",
|
|
429
440
|
value: this.props.filterValue,
|
|
430
441
|
onChange: this.onFilter,
|
|
431
442
|
className: "p-multiselect-filter",
|
|
432
443
|
placeholder: this.props.filterPlaceholder
|
|
433
|
-
}), /*#__PURE__*/React__default[
|
|
444
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
434
445
|
className: "p-multiselect-filter-icon pi pi-search"
|
|
435
446
|
}));
|
|
436
447
|
}
|
|
@@ -441,20 +452,20 @@ var MultiSelectHeader = /*#__PURE__*/function (_Component) {
|
|
|
441
452
|
key: "render",
|
|
442
453
|
value: function render() {
|
|
443
454
|
var filterElement = this.renderFilterElement();
|
|
444
|
-
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default[
|
|
455
|
+
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
445
456
|
checked: this.props.selectAll,
|
|
446
457
|
onChange: this.onSelectAll,
|
|
447
458
|
role: "checkbox",
|
|
448
459
|
"aria-checked": this.props.selectAll
|
|
449
460
|
});
|
|
450
|
-
var closeElement = /*#__PURE__*/React__default[
|
|
461
|
+
var closeElement = /*#__PURE__*/React__default["default"].createElement("button", {
|
|
451
462
|
type: "button",
|
|
452
463
|
className: "p-multiselect-close p-link",
|
|
453
464
|
onClick: this.props.onClose
|
|
454
|
-
}, /*#__PURE__*/React__default[
|
|
465
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
455
466
|
className: "p-multiselect-close-icon pi pi-times"
|
|
456
|
-
}), /*#__PURE__*/React__default[
|
|
457
|
-
var element = /*#__PURE__*/React__default[
|
|
467
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
468
|
+
var element = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
458
469
|
className: "p-multiselect-header"
|
|
459
470
|
}, checkboxElement, filterElement, closeElement);
|
|
460
471
|
|
|
@@ -472,7 +483,7 @@ var MultiSelectHeader = /*#__PURE__*/function (_Component) {
|
|
|
472
483
|
element: element,
|
|
473
484
|
props: this.props
|
|
474
485
|
};
|
|
475
|
-
return
|
|
486
|
+
return utils.ObjectUtils.getJSXElement(this.props.template, defaultOptions);
|
|
476
487
|
}
|
|
477
488
|
|
|
478
489
|
return element;
|
|
@@ -526,32 +537,32 @@ var MultiSelectItem = /*#__PURE__*/function (_Component) {
|
|
|
526
537
|
}, {
|
|
527
538
|
key: "render",
|
|
528
539
|
value: function render() {
|
|
529
|
-
var className =
|
|
540
|
+
var className = utils.classNames('p-multiselect-item', {
|
|
530
541
|
'p-highlight': this.props.selected,
|
|
531
542
|
'p-disabled': this.props.disabled
|
|
532
543
|
}, this.props.option.className);
|
|
533
|
-
var checkboxClassName =
|
|
544
|
+
var checkboxClassName = utils.classNames('p-checkbox-box', {
|
|
534
545
|
'p-highlight': this.props.selected
|
|
535
546
|
});
|
|
536
|
-
var checkboxIcon =
|
|
547
|
+
var checkboxIcon = utils.classNames('p-checkbox-icon p-c', {
|
|
537
548
|
'pi pi-check': this.props.selected
|
|
538
549
|
});
|
|
539
|
-
var content = this.props.template ?
|
|
550
|
+
var content = this.props.template ? utils.ObjectUtils.getJSXElement(this.props.template, this.props.option) : this.props.label;
|
|
540
551
|
var tabIndex = this.props.disabled ? null : this.props.tabIndex || 0;
|
|
541
|
-
return /*#__PURE__*/React__default[
|
|
552
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
542
553
|
className: className,
|
|
543
554
|
onClick: this.onClick,
|
|
544
555
|
tabIndex: tabIndex,
|
|
545
556
|
onKeyDown: this.onKeyDown,
|
|
546
557
|
role: "option",
|
|
547
558
|
"aria-selected": this.props.selected
|
|
548
|
-
}, /*#__PURE__*/React__default[
|
|
559
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
549
560
|
className: "p-checkbox p-component"
|
|
550
|
-
}, /*#__PURE__*/React__default[
|
|
561
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
551
562
|
className: checkboxClassName
|
|
552
|
-
}, /*#__PURE__*/React__default[
|
|
563
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
553
564
|
className: checkboxIcon
|
|
554
|
-
}))), /*#__PURE__*/React__default[
|
|
565
|
+
}))), /*#__PURE__*/React__default["default"].createElement("span", null, content), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
555
566
|
}
|
|
556
567
|
}]);
|
|
557
568
|
|
|
@@ -625,7 +636,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
625
636
|
}, {
|
|
626
637
|
key: "renderHeader",
|
|
627
638
|
value: function renderHeader() {
|
|
628
|
-
return /*#__PURE__*/React__default[
|
|
639
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectHeader, {
|
|
629
640
|
filter: this.props.filter,
|
|
630
641
|
filterValue: this.props.filterValue,
|
|
631
642
|
onFilter: this.onFilterInputChange,
|
|
@@ -641,8 +652,8 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
641
652
|
key: "renderFooter",
|
|
642
653
|
value: function renderFooter() {
|
|
643
654
|
if (this.props.panelFooterTemplate) {
|
|
644
|
-
var content =
|
|
645
|
-
return /*#__PURE__*/React__default[
|
|
655
|
+
var content = utils.ObjectUtils.getJSXElement(this.props.panelFooterTemplate, this.props, this.props.onOverlayHide);
|
|
656
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
646
657
|
className: "p-multiselect-footer"
|
|
647
658
|
}, content);
|
|
648
659
|
}
|
|
@@ -663,7 +674,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
663
674
|
var disabled = _this3.props.isOptionDisabled(option);
|
|
664
675
|
|
|
665
676
|
var tabIndex = disabled ? null : _this3.props.tabIndex || 0;
|
|
666
|
-
return /*#__PURE__*/React__default[
|
|
677
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
667
678
|
key: optionKey,
|
|
668
679
|
label: optionLabel,
|
|
669
680
|
option: option,
|
|
@@ -679,8 +690,8 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
679
690
|
}, {
|
|
680
691
|
key: "renderEmptyFilter",
|
|
681
692
|
value: function renderEmptyFilter() {
|
|
682
|
-
var emptyFilterMessage =
|
|
683
|
-
return /*#__PURE__*/React__default[
|
|
693
|
+
var emptyFilterMessage = utils.ObjectUtils.getJSXElement(this.props.emptyFilterMessage, this.props) || PrimeReact.localeOption('emptyFilterMessage');
|
|
694
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
684
695
|
className: "p-multiselect-empty-message"
|
|
685
696
|
}, emptyFilterMessage);
|
|
686
697
|
}
|
|
@@ -688,12 +699,12 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
688
699
|
key: "renderItem",
|
|
689
700
|
value: function renderItem(option, index) {
|
|
690
701
|
if (this.props.optionGroupLabel) {
|
|
691
|
-
var groupContent = this.props.optionGroupTemplate ?
|
|
702
|
+
var groupContent = this.props.optionGroupTemplate ? utils.ObjectUtils.getJSXElement(this.props.optionGroupTemplate, option, index) : this.props.getOptionGroupLabel(option);
|
|
692
703
|
var groupChildrenContent = this.renderGroupChildren(option);
|
|
693
704
|
var key = index + '_' + this.props.getOptionGroupRenderKey(option);
|
|
694
|
-
return /*#__PURE__*/React__default[
|
|
705
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
695
706
|
key: key
|
|
696
|
-
}, /*#__PURE__*/React__default[
|
|
707
|
+
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
697
708
|
className: "p-multiselect-item-group"
|
|
698
709
|
}, groupContent), groupChildrenContent);
|
|
699
710
|
} else {
|
|
@@ -701,7 +712,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
701
712
|
var optionKey = index + '_' + this.props.getOptionRenderKey(option);
|
|
702
713
|
var disabled = this.props.isOptionDisabled(option);
|
|
703
714
|
var tabIndex = disabled ? null : this.props.tabIndex || 0;
|
|
704
|
-
return /*#__PURE__*/React__default[
|
|
715
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
705
716
|
key: optionKey,
|
|
706
717
|
label: optionLabel,
|
|
707
718
|
option: option,
|
|
@@ -739,7 +750,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
739
750
|
style: _objectSpread$1(_objectSpread$1({}, this.props.virtualScrollerOptions.style), {
|
|
740
751
|
height: this.props.scrollHeight
|
|
741
752
|
}),
|
|
742
|
-
className:
|
|
753
|
+
className: utils.classNames('p-multiselect-items-wrapper', this.props.virtualScrollerOptions.className),
|
|
743
754
|
items: this.props.visibleOptions,
|
|
744
755
|
onLazyLoad: function onLazyLoad(event) {
|
|
745
756
|
return _this5.props.virtualScrollerOptions.onLazyLoad(_objectSpread$1(_objectSpread$1({}, event), {
|
|
@@ -750,10 +761,10 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
750
761
|
return item && _this5.renderItem(item, options.index);
|
|
751
762
|
},
|
|
752
763
|
contentTemplate: function contentTemplate(options) {
|
|
753
|
-
var className =
|
|
764
|
+
var className = utils.classNames('p-multiselect-items p-component', options.className);
|
|
754
765
|
var content = _this5.isEmptyFilter() ? _this5.renderEmptyFilter() : options.children;
|
|
755
|
-
return /*#__PURE__*/React__default[
|
|
756
|
-
ref: options.
|
|
766
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
767
|
+
ref: options.contentRef,
|
|
757
768
|
className: className,
|
|
758
769
|
role: "listbox",
|
|
759
770
|
"aria-multiselectable": true
|
|
@@ -761,19 +772,19 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
761
772
|
}
|
|
762
773
|
});
|
|
763
774
|
|
|
764
|
-
return /*#__PURE__*/React__default[
|
|
775
|
+
return /*#__PURE__*/React__default["default"].createElement(virtualscroller.VirtualScroller, _extends({
|
|
765
776
|
ref: function ref(el) {
|
|
766
777
|
return _this5.virtualScrollerRef = el;
|
|
767
778
|
}
|
|
768
779
|
}, virtualScrollerProps));
|
|
769
780
|
} else {
|
|
770
781
|
var items = this.renderItems();
|
|
771
|
-
return /*#__PURE__*/React__default[
|
|
782
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
772
783
|
className: "p-multiselect-items-wrapper",
|
|
773
784
|
style: {
|
|
774
785
|
maxHeight: this.props.scrollHeight
|
|
775
786
|
}
|
|
776
|
-
}, /*#__PURE__*/React__default[
|
|
787
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
777
788
|
className: "p-multiselect-items p-component",
|
|
778
789
|
role: "listbox",
|
|
779
790
|
"aria-multiselectable": true
|
|
@@ -783,13 +794,13 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
783
794
|
}, {
|
|
784
795
|
key: "renderElement",
|
|
785
796
|
value: function renderElement() {
|
|
786
|
-
var panelClassName =
|
|
797
|
+
var panelClassName = utils.classNames('p-multiselect-panel p-component', {
|
|
787
798
|
'p-multiselect-limited': !this.props.allowOptionSelect()
|
|
788
799
|
}, this.props.panelClassName);
|
|
789
800
|
var header = this.renderHeader();
|
|
790
801
|
var content = this.renderContent();
|
|
791
802
|
var footer = this.renderFooter();
|
|
792
|
-
return /*#__PURE__*/React__default[
|
|
803
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
793
804
|
nodeRef: this.props.forwardRef,
|
|
794
805
|
classNames: "p-connected-overlay",
|
|
795
806
|
in: this.props.in,
|
|
@@ -803,7 +814,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
803
814
|
onEntered: this.props.onEntered,
|
|
804
815
|
onExit: this.props.onExit,
|
|
805
816
|
onExited: this.props.onExited
|
|
806
|
-
}, /*#__PURE__*/React__default[
|
|
817
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
807
818
|
ref: this.props.forwardRef,
|
|
808
819
|
className: panelClassName,
|
|
809
820
|
style: this.props.panelStyle,
|
|
@@ -814,7 +825,7 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
814
825
|
key: "render",
|
|
815
826
|
value: function render() {
|
|
816
827
|
var element = this.renderElement();
|
|
817
|
-
return /*#__PURE__*/React__default[
|
|
828
|
+
return /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
818
829
|
element: element,
|
|
819
830
|
appendTo: this.props.appendTo
|
|
820
831
|
});
|
|
@@ -824,8 +835,8 @@ var MultiSelectPanelComponent = /*#__PURE__*/function (_Component) {
|
|
|
824
835
|
return MultiSelectPanelComponent;
|
|
825
836
|
}(React.Component);
|
|
826
837
|
|
|
827
|
-
var MultiSelectPanel = /*#__PURE__*/React__default[
|
|
828
|
-
return /*#__PURE__*/React__default[
|
|
838
|
+
var MultiSelectPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
839
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectPanelComponent, _extends({
|
|
829
840
|
forwardRef: ref
|
|
830
841
|
}, props));
|
|
831
842
|
});
|
|
@@ -894,7 +905,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
894
905
|
_createClass(MultiSelect, [{
|
|
895
906
|
key: "onPanelClick",
|
|
896
907
|
value: function onPanelClick(event) {
|
|
897
|
-
|
|
908
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
898
909
|
originalEvent: event,
|
|
899
910
|
target: this.container
|
|
900
911
|
});
|
|
@@ -921,7 +932,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
921
932
|
var selected = this.isSelected(option);
|
|
922
933
|
var allowOptionSelect = this.allowOptionSelect();
|
|
923
934
|
if (selected) this.updateModel(originalEvent, this.props.value.filter(function (val) {
|
|
924
|
-
return !
|
|
935
|
+
return !utils.ObjectUtils.equals(isOptionValueUsed ? val : _this2.getOptionValue(val), optionValue, _this2.equalityKey());
|
|
925
936
|
}));else if (allowOptionSelect) this.updateModel(originalEvent, [].concat(_toConsumableArray(this.props.value || []), [optionValue]));
|
|
926
937
|
}
|
|
927
938
|
}, {
|
|
@@ -971,18 +982,18 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
971
982
|
key: "findNextItem",
|
|
972
983
|
value: function findNextItem(item) {
|
|
973
984
|
var nextItem = item.nextElementSibling;
|
|
974
|
-
if (nextItem) return
|
|
985
|
+
if (nextItem) return utils.DomHandler.hasClass(nextItem, 'p-disabled') || utils.DomHandler.hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem;else return null;
|
|
975
986
|
}
|
|
976
987
|
}, {
|
|
977
988
|
key: "findPrevItem",
|
|
978
989
|
value: function findPrevItem(item) {
|
|
979
990
|
var prevItem = item.previousElementSibling;
|
|
980
|
-
if (prevItem) return
|
|
991
|
+
if (prevItem) return utils.DomHandler.hasClass(prevItem, 'p-disabled') || utils.DomHandler.hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem;else return null;
|
|
981
992
|
}
|
|
982
993
|
}, {
|
|
983
994
|
key: "onClick",
|
|
984
995
|
value: function onClick(event) {
|
|
985
|
-
if (!this.props.disabled && !this.isPanelClicked(event) && !
|
|
996
|
+
if (!this.props.disabled && !this.isPanelClicked(event) && !utils.DomHandler.hasClass(event.target, 'p-multiselect-token-icon') && !this.isClearClicked(event)) {
|
|
986
997
|
if (this.state.overlayVisible) {
|
|
987
998
|
this.hide();
|
|
988
999
|
} else {
|
|
@@ -990,6 +1001,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
990
1001
|
}
|
|
991
1002
|
|
|
992
1003
|
this.inputRef.current.focus();
|
|
1004
|
+
event.preventDefault();
|
|
993
1005
|
}
|
|
994
1006
|
}
|
|
995
1007
|
}, {
|
|
@@ -1019,7 +1031,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1019
1031
|
|
|
1020
1032
|
case 9:
|
|
1021
1033
|
if (this.state.overlayVisible) {
|
|
1022
|
-
var firstFocusableElement =
|
|
1034
|
+
var firstFocusableElement = utils.DomHandler.getFirstFocusableElement(this.overlayRef.current);
|
|
1023
1035
|
|
|
1024
1036
|
if (firstFocusableElement) {
|
|
1025
1037
|
firstFocusableElement.focus();
|
|
@@ -1071,8 +1083,6 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1071
1083
|
return _this3.getOptionValue(option);
|
|
1072
1084
|
});
|
|
1073
1085
|
}
|
|
1074
|
-
|
|
1075
|
-
value = _toConsumableArray(new Set([].concat(_toConsumableArray(value), _toConsumableArray(this.props.value || []))));
|
|
1076
1086
|
}
|
|
1077
1087
|
|
|
1078
1088
|
this.updateModel(event.originalEvent, value);
|
|
@@ -1143,7 +1153,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1143
1153
|
}, {
|
|
1144
1154
|
key: "onOverlayEnter",
|
|
1145
1155
|
value: function onOverlayEnter(callback) {
|
|
1146
|
-
|
|
1156
|
+
utils.ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
|
|
1147
1157
|
this.alignOverlay();
|
|
1148
1158
|
this.scrollInView();
|
|
1149
1159
|
callback && callback();
|
|
@@ -1171,18 +1181,18 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1171
1181
|
this.resetFilter();
|
|
1172
1182
|
}
|
|
1173
1183
|
|
|
1174
|
-
|
|
1184
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1175
1185
|
this.props.onHide && this.props.onHide();
|
|
1176
1186
|
}
|
|
1177
1187
|
}, {
|
|
1178
1188
|
key: "alignOverlay",
|
|
1179
1189
|
value: function alignOverlay() {
|
|
1180
|
-
|
|
1190
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1181
1191
|
}
|
|
1182
1192
|
}, {
|
|
1183
1193
|
key: "scrollInView",
|
|
1184
1194
|
value: function scrollInView() {
|
|
1185
|
-
var highlightItem =
|
|
1195
|
+
var highlightItem = utils.DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
1186
1196
|
|
|
1187
1197
|
if (highlightItem) {
|
|
1188
1198
|
highlightItem.scrollIntoView({
|
|
@@ -1229,7 +1239,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1229
1239
|
var key = this.equalityKey();
|
|
1230
1240
|
return list.findIndex(function (item) {
|
|
1231
1241
|
return value.some(function (val) {
|
|
1232
|
-
return
|
|
1242
|
+
return utils.ObjectUtils.equals(val, _this6.getOptionValue(item), key);
|
|
1233
1243
|
});
|
|
1234
1244
|
});
|
|
1235
1245
|
}
|
|
@@ -1245,7 +1255,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1245
1255
|
var isOptionValueUsed = this.isOptionValueUsed(option);
|
|
1246
1256
|
var key = this.equalityKey();
|
|
1247
1257
|
selected = this.props.value.some(function (val) {
|
|
1248
|
-
return
|
|
1258
|
+
return utils.ObjectUtils.equals(isOptionValueUsed ? val : _this7.getOptionValue(val), optionValue, key);
|
|
1249
1259
|
});
|
|
1250
1260
|
}
|
|
1251
1261
|
|
|
@@ -1295,7 +1305,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1295
1305
|
var option = _step2.value;
|
|
1296
1306
|
var optionValue = this.getOptionValue(option);
|
|
1297
1307
|
|
|
1298
|
-
if (
|
|
1308
|
+
if (utils.ObjectUtils.equals(optionValue, val, key)) {
|
|
1299
1309
|
return option;
|
|
1300
1310
|
}
|
|
1301
1311
|
}
|
|
@@ -1356,7 +1366,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1356
1366
|
var _this11 = this;
|
|
1357
1367
|
|
|
1358
1368
|
if (!this.scrollHandler) {
|
|
1359
|
-
this.scrollHandler = new
|
|
1369
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1360
1370
|
if (_this11.state.overlayVisible) {
|
|
1361
1371
|
_this11.hide();
|
|
1362
1372
|
}
|
|
@@ -1379,7 +1389,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1379
1389
|
|
|
1380
1390
|
if (!this.resizeListener) {
|
|
1381
1391
|
this.resizeListener = function () {
|
|
1382
|
-
if (_this12.state.overlayVisible && !
|
|
1392
|
+
if (_this12.state.overlayVisible && !utils.DomHandler.isAndroid()) {
|
|
1383
1393
|
_this12.hide();
|
|
1384
1394
|
}
|
|
1385
1395
|
};
|
|
@@ -1403,7 +1413,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1403
1413
|
}, {
|
|
1404
1414
|
key: "isClearClicked",
|
|
1405
1415
|
value: function isClearClicked(event) {
|
|
1406
|
-
return
|
|
1416
|
+
return utils.DomHandler.hasClass(event.target, 'p-multiselect-clear-icon');
|
|
1407
1417
|
}
|
|
1408
1418
|
}, {
|
|
1409
1419
|
key: "isPanelClicked",
|
|
@@ -1469,7 +1479,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1469
1479
|
this.tooltip = null;
|
|
1470
1480
|
}
|
|
1471
1481
|
|
|
1472
|
-
|
|
1482
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1473
1483
|
}
|
|
1474
1484
|
}, {
|
|
1475
1485
|
key: "hasFilter",
|
|
@@ -1552,13 +1562,13 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1552
1562
|
}, {
|
|
1553
1563
|
key: "getOptionLabel",
|
|
1554
1564
|
value: function getOptionLabel(option) {
|
|
1555
|
-
return this.props.optionLabel ?
|
|
1565
|
+
return this.props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;
|
|
1556
1566
|
}
|
|
1557
1567
|
}, {
|
|
1558
1568
|
key: "getOptionValue",
|
|
1559
1569
|
value: function getOptionValue(option) {
|
|
1560
1570
|
if (this.props.optionValue) {
|
|
1561
|
-
var data =
|
|
1571
|
+
var data = utils.ObjectUtils.resolveFieldData(option, this.props.optionValue);
|
|
1562
1572
|
return data !== null ? data : option;
|
|
1563
1573
|
}
|
|
1564
1574
|
|
|
@@ -1567,28 +1577,28 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1567
1577
|
}, {
|
|
1568
1578
|
key: "getOptionRenderKey",
|
|
1569
1579
|
value: function getOptionRenderKey(option) {
|
|
1570
|
-
return this.props.dataKey ?
|
|
1580
|
+
return this.props.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.props.dataKey) : this.getOptionLabel(option);
|
|
1571
1581
|
}
|
|
1572
1582
|
}, {
|
|
1573
1583
|
key: "getOptionGroupRenderKey",
|
|
1574
1584
|
value: function getOptionGroupRenderKey(optionGroup) {
|
|
1575
|
-
return
|
|
1585
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1576
1586
|
}
|
|
1577
1587
|
}, {
|
|
1578
1588
|
key: "getOptionGroupLabel",
|
|
1579
1589
|
value: function getOptionGroupLabel(optionGroup) {
|
|
1580
|
-
return
|
|
1590
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1581
1591
|
}
|
|
1582
1592
|
}, {
|
|
1583
1593
|
key: "getOptionGroupChildren",
|
|
1584
1594
|
value: function getOptionGroupChildren(optionGroup) {
|
|
1585
|
-
return
|
|
1595
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupChildren);
|
|
1586
1596
|
}
|
|
1587
1597
|
}, {
|
|
1588
1598
|
key: "isOptionDisabled",
|
|
1589
1599
|
value: function isOptionDisabled(option) {
|
|
1590
1600
|
if (this.props.optionDisabled) {
|
|
1591
|
-
return
|
|
1601
|
+
return utils.ObjectUtils.isFunction(this.props.optionDisabled) ? this.props.optionDisabled(option) : utils.ObjectUtils.resolveFieldData(option, this.props.optionDisabled);
|
|
1592
1602
|
}
|
|
1593
1603
|
|
|
1594
1604
|
return option && option['disabled'] !== undefined ? option['disabled'] : false;
|
|
@@ -1614,7 +1624,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1614
1624
|
try {
|
|
1615
1625
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
1616
1626
|
var optgroup = _step6.value;
|
|
1617
|
-
var filteredSubOptions =
|
|
1627
|
+
var filteredSubOptions = PrimeReact.FilterService.filter(this.getOptionGroupChildren(optgroup), searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);
|
|
1618
1628
|
|
|
1619
1629
|
if (filteredSubOptions && filteredSubOptions.length) {
|
|
1620
1630
|
filteredGroups.push(_objectSpread(_objectSpread({}, optgroup), {
|
|
@@ -1630,7 +1640,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1630
1640
|
|
|
1631
1641
|
return filteredGroups;
|
|
1632
1642
|
} else {
|
|
1633
|
-
return
|
|
1643
|
+
return PrimeReact.FilterService.filter(this.props.options, searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);
|
|
1634
1644
|
}
|
|
1635
1645
|
} else {
|
|
1636
1646
|
return this.props.options;
|
|
@@ -1656,7 +1666,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1656
1666
|
value: function removeChip(event, item) {
|
|
1657
1667
|
var key = this.equalityKey();
|
|
1658
1668
|
var value = this.props.value.filter(function (val) {
|
|
1659
|
-
return !
|
|
1669
|
+
return !utils.ObjectUtils.equals(val, item, key);
|
|
1660
1670
|
});
|
|
1661
1671
|
this.updateModel(event, value);
|
|
1662
1672
|
}
|
|
@@ -1677,7 +1687,9 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1677
1687
|
var label;
|
|
1678
1688
|
|
|
1679
1689
|
if (!this.isEmpty() && !this.props.fixedPlaceholder) {
|
|
1680
|
-
if (this.props.value.length
|
|
1690
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1691
|
+
return this.getSelectedItemsLabel();
|
|
1692
|
+
} else {
|
|
1681
1693
|
label = '';
|
|
1682
1694
|
|
|
1683
1695
|
for (var i = 0; i < this.props.value.length; i++) {
|
|
@@ -1689,8 +1701,6 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1689
1701
|
}
|
|
1690
1702
|
|
|
1691
1703
|
return label;
|
|
1692
|
-
} else {
|
|
1693
|
-
return this.getSelectedItemsLabel();
|
|
1694
1704
|
}
|
|
1695
1705
|
}
|
|
1696
1706
|
|
|
@@ -1703,34 +1713,37 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1703
1713
|
|
|
1704
1714
|
if (this.props.selectedItemTemplate) {
|
|
1705
1715
|
if (!this.isEmpty()) {
|
|
1706
|
-
if (this.props.value.length
|
|
1716
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1717
|
+
return this.getSelectedItemsLabel();
|
|
1718
|
+
} else {
|
|
1707
1719
|
return this.props.value.map(function (val, index) {
|
|
1708
|
-
var item =
|
|
1709
|
-
return /*#__PURE__*/React__default[
|
|
1720
|
+
var item = utils.ObjectUtils.getJSXElement(_this14.props.selectedItemTemplate, val);
|
|
1721
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
1710
1722
|
key: index
|
|
1711
1723
|
}, item);
|
|
1712
1724
|
});
|
|
1713
|
-
} else {
|
|
1714
|
-
return this.getSelectedItemsLabel();
|
|
1715
1725
|
}
|
|
1716
1726
|
} else {
|
|
1717
|
-
return
|
|
1727
|
+
return utils.ObjectUtils.getJSXElement(this.props.selectedItemTemplate);
|
|
1718
1728
|
}
|
|
1719
1729
|
} else {
|
|
1720
1730
|
if (this.props.display === 'chip' && !this.isEmpty()) {
|
|
1721
|
-
|
|
1731
|
+
var value = this.props.value.slice(0, this.props.maxSelectedLabels || this.props.value.length);
|
|
1732
|
+
return value.map(function (val) {
|
|
1722
1733
|
var label = _this14.getLabelByValue(val);
|
|
1723
1734
|
|
|
1724
|
-
return /*#__PURE__*/React__default[
|
|
1735
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1725
1736
|
className: "p-multiselect-token",
|
|
1726
1737
|
key: label
|
|
1727
|
-
}, /*#__PURE__*/React__default[
|
|
1738
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1728
1739
|
className: "p-multiselect-token-label"
|
|
1729
|
-
}, label), !_this14.props.disabled &&
|
|
1730
|
-
className:
|
|
1740
|
+
}, label), !_this14.props.disabled && utils.IconUtils.getJSXIcon(_this14.props.removeIcon, {
|
|
1741
|
+
className: 'p-multiselect-token-icon',
|
|
1731
1742
|
onClick: function onClick(e) {
|
|
1732
1743
|
return _this14.removeChip(e, val);
|
|
1733
1744
|
}
|
|
1745
|
+
}, {
|
|
1746
|
+
props: _this14.props
|
|
1734
1747
|
}));
|
|
1735
1748
|
});
|
|
1736
1749
|
}
|
|
@@ -1741,7 +1754,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1741
1754
|
}, {
|
|
1742
1755
|
key: "renderTooltip",
|
|
1743
1756
|
value: function renderTooltip() {
|
|
1744
|
-
this.tooltip =
|
|
1757
|
+
this.tooltip = tooltip.tip({
|
|
1745
1758
|
target: this.container,
|
|
1746
1759
|
content: this.props.tooltip,
|
|
1747
1760
|
options: this.props.tooltipOptions
|
|
@@ -1755,7 +1768,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1755
1768
|
var empty = this.isEmpty();
|
|
1756
1769
|
|
|
1757
1770
|
if (!empty && this.props.showClear && !this.props.disabled) {
|
|
1758
|
-
return /*#__PURE__*/React__default[
|
|
1771
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1759
1772
|
className: "p-multiselect-clear-icon pi pi-times",
|
|
1760
1773
|
onClick: function onClick(e) {
|
|
1761
1774
|
return _this15.updateModel(e, null);
|
|
@@ -1772,17 +1785,17 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1772
1785
|
|
|
1773
1786
|
var empty = this.isEmpty();
|
|
1774
1787
|
var content = this.getLabelContent();
|
|
1775
|
-
var labelClassName =
|
|
1788
|
+
var labelClassName = utils.classNames('p-multiselect-label', {
|
|
1776
1789
|
'p-placeholder': empty && this.props.placeholder,
|
|
1777
1790
|
'p-multiselect-label-empty': empty && !this.props.placeholder && !this.props.selectedItemTemplate,
|
|
1778
|
-
'p-multiselect-items-label': !empty && this.props.value.length > this.props.maxSelectedLabels
|
|
1791
|
+
'p-multiselect-items-label': !empty && this.props.display !== 'chip' && this.props.value.length > this.props.maxSelectedLabels
|
|
1779
1792
|
});
|
|
1780
|
-
return /*#__PURE__*/React__default[
|
|
1793
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1781
1794
|
ref: function ref(el) {
|
|
1782
1795
|
return _this16.label = el;
|
|
1783
1796
|
},
|
|
1784
1797
|
className: "p-multiselect-label-container"
|
|
1785
|
-
}, /*#__PURE__*/React__default[
|
|
1798
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1786
1799
|
className: labelClassName
|
|
1787
1800
|
}, content || this.props.placeholder || 'empty'));
|
|
1788
1801
|
}
|
|
@@ -1791,7 +1804,7 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1791
1804
|
value: function render() {
|
|
1792
1805
|
var _this17 = this;
|
|
1793
1806
|
|
|
1794
|
-
var className =
|
|
1807
|
+
var className = utils.classNames('p-multiselect p-component p-inputwrapper', {
|
|
1795
1808
|
'p-multiselect-chip': this.props.display === 'chip',
|
|
1796
1809
|
'p-disabled': this.props.disabled,
|
|
1797
1810
|
'p-multiselect-clearable': this.props.showClear && !this.props.disabled,
|
|
@@ -1799,11 +1812,10 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1799
1812
|
'p-inputwrapper-filled': this.props.value && this.props.value.length > 0,
|
|
1800
1813
|
'p-inputwrapper-focus': this.state.focused || this.state.overlayVisible
|
|
1801
1814
|
}, this.props.className);
|
|
1802
|
-
var iconClassName = core.classNames('p-multiselect-trigger-icon p-c', this.props.dropdownIcon);
|
|
1803
1815
|
var visibleOptions = this.getVisibleOptions();
|
|
1804
1816
|
var label = this.renderLabel();
|
|
1805
1817
|
var clearIcon = this.renderClearIcon();
|
|
1806
|
-
return /*#__PURE__*/React__default[
|
|
1818
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1807
1819
|
id: this.props.id,
|
|
1808
1820
|
className: className,
|
|
1809
1821
|
onClick: this.onClick,
|
|
@@ -1811,9 +1823,9 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1811
1823
|
return _this17.container = el;
|
|
1812
1824
|
},
|
|
1813
1825
|
style: this.props.style
|
|
1814
|
-
}, /*#__PURE__*/React__default[
|
|
1826
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1815
1827
|
className: "p-hidden-accessible"
|
|
1816
|
-
}, /*#__PURE__*/React__default[
|
|
1828
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
1817
1829
|
ref: this.inputRef,
|
|
1818
1830
|
id: this.props.inputId,
|
|
1819
1831
|
name: this.props.name,
|
|
@@ -1828,11 +1840,13 @@ var MultiSelect = /*#__PURE__*/function (_Component) {
|
|
|
1828
1840
|
"aria-expanded": this.state.overlayVisible,
|
|
1829
1841
|
disabled: this.props.disabled,
|
|
1830
1842
|
tabIndex: this.props.tabIndex
|
|
1831
|
-
})), label, clearIcon, /*#__PURE__*/React__default[
|
|
1843
|
+
})), label, clearIcon, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1832
1844
|
className: "p-multiselect-trigger"
|
|
1833
|
-
},
|
|
1834
|
-
className:
|
|
1835
|
-
}
|
|
1845
|
+
}, utils.IconUtils.getJSXIcon(this.props.dropdownIcon, {
|
|
1846
|
+
className: 'p-multiselect-trigger-icon p-c'
|
|
1847
|
+
}, {
|
|
1848
|
+
props: this.props
|
|
1849
|
+
})), /*#__PURE__*/React__default["default"].createElement(MultiSelectPanel, _extends({
|
|
1836
1850
|
ref: this.overlayRef,
|
|
1837
1851
|
visibleOptions: visibleOptions
|
|
1838
1852
|
}, this.props, {
|
|
@@ -1895,7 +1909,7 @@ _defineProperty(MultiSelect, "defaultProps", {
|
|
|
1895
1909
|
filterMatchMode: 'contains',
|
|
1896
1910
|
filterPlaceholder: null,
|
|
1897
1911
|
filterLocale: undefined,
|
|
1898
|
-
emptyFilterMessage:
|
|
1912
|
+
emptyFilterMessage: null,
|
|
1899
1913
|
resetFilterOnHide: false,
|
|
1900
1914
|
tabIndex: 0,
|
|
1901
1915
|
dataKey: null,
|
|
@@ -1903,7 +1917,7 @@ _defineProperty(MultiSelect, "defaultProps", {
|
|
|
1903
1917
|
appendTo: null,
|
|
1904
1918
|
tooltip: null,
|
|
1905
1919
|
tooltipOptions: null,
|
|
1906
|
-
maxSelectedLabels:
|
|
1920
|
+
maxSelectedLabels: null,
|
|
1907
1921
|
selectionLimit: null,
|
|
1908
1922
|
selectedItemsLabel: '{0} items selected',
|
|
1909
1923
|
ariaLabelledBy: null,
|
|
@@ -1913,6 +1927,7 @@ _defineProperty(MultiSelect, "defaultProps", {
|
|
|
1913
1927
|
panelFooterTemplate: null,
|
|
1914
1928
|
transitionOptions: null,
|
|
1915
1929
|
dropdownIcon: 'pi pi-chevron-down',
|
|
1930
|
+
removeIcon: 'pi pi-times-circle',
|
|
1916
1931
|
showSelectAll: true,
|
|
1917
1932
|
selectAll: false,
|
|
1918
1933
|
onChange: null,
|