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