primereact 6.6.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.js +1 -1
- package/button/button.cjs.js +44 -53
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +33 -42
- package/button/button.esm.min.js +1 -1
- package/button/button.js +43 -54
- 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 -1573
- 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 +34 -29
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +8 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +33 -30
- 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 +132 -118
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -2
- package/multiselect/multiselect.esm.js +47 -33
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +128 -119
- 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 +8041 -5835
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +6905 -4701
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +8040 -5832
- 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 +430 -238
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +158 -27
- package/resources/themes/arya-green/theme.css +158 -27
- package/resources/themes/arya-orange/theme.css +158 -27
- package/resources/themes/arya-purple/theme.css +158 -27
- package/resources/themes/bootstrap4-dark-blue/theme.css +162 -31
- package/resources/themes/bootstrap4-dark-purple/theme.css +162 -31
- package/resources/themes/bootstrap4-light-blue/theme.css +162 -31
- package/resources/themes/bootstrap4-light-purple/theme.css +162 -31
- package/resources/themes/fluent-light/theme.css +158 -27
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5671 -0
- 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-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5671 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/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/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5671 -0
- package/resources/themes/luna-amber/theme.css +162 -31
- package/resources/themes/luna-blue/theme.css +162 -31
- package/resources/themes/luna-green/theme.css +162 -31
- package/resources/themes/luna-pink/theme.css +162 -31
- package/resources/themes/md-dark-deeppurple/theme.css +347 -56
- package/resources/themes/md-dark-indigo/theme.css +347 -56
- package/resources/themes/md-light-deeppurple/theme.css +347 -56
- package/resources/themes/md-light-indigo/theme.css +347 -56
- package/resources/themes/mdc-dark-deeppurple/theme.css +347 -56
- package/resources/themes/mdc-dark-indigo/theme.css +347 -56
- package/resources/themes/mdc-light-deeppurple/theme.css +347 -56
- package/resources/themes/mdc-light-indigo/theme.css +347 -56
- package/resources/themes/nova/theme.css +162 -31
- package/resources/themes/nova-accent/theme.css +162 -31
- package/resources/themes/nova-alt/theme.css +162 -31
- package/resources/themes/rhea/theme.css +162 -31
- package/resources/themes/saga-blue/theme.css +158 -27
- package/resources/themes/saga-green/theme.css +158 -27
- package/resources/themes/saga-orange/theme.css +158 -27
- package/resources/themes/saga-purple/theme.css +158 -27
- package/resources/themes/tailwind-light/theme.css +162 -31
- package/resources/themes/vela-blue/theme.css +158 -27
- package/resources/themes/vela-green/theme.css +158 -27
- package/resources/themes/vela-orange/theme.css +158 -27
- package/resources/themes/vela-purple/theme.css +158 -27
- 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.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.css +1 -1
- 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 +502 -525
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +29 -20
- package/utils/utils.esm.js +501 -524
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +503 -526
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.multiselect = (function (exports, React,
|
|
2
|
+
this.primereact.multiselect = (function (exports, React, utils, tooltip, csstransition, portal, inputtext, ripple, virtualscroller, PrimeReact, overlayservice) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -133,6 +133,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
133
133
|
function _possibleConstructorReturn(self, call) {
|
|
134
134
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
135
135
|
return call;
|
|
136
|
+
} else if (call !== void 0) {
|
|
137
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
return _assertThisInitialized(self);
|
|
@@ -279,7 +281,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
279
281
|
}, {
|
|
280
282
|
key: "renderTooltip",
|
|
281
283
|
value: function renderTooltip() {
|
|
282
|
-
this.tooltip =
|
|
284
|
+
this.tooltip = tooltip.tip({
|
|
283
285
|
target: this.element,
|
|
284
286
|
content: this.props.tooltip,
|
|
285
287
|
options: this.props.tooltipOptions
|
|
@@ -295,18 +297,19 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
295
297
|
value: function render() {
|
|
296
298
|
var _this2 = this;
|
|
297
299
|
|
|
298
|
-
var
|
|
299
|
-
|
|
300
|
+
var checked = this.isChecked();
|
|
301
|
+
var containerClass = utils.classNames('p-checkbox p-component', {
|
|
302
|
+
'p-checkbox-checked': checked,
|
|
300
303
|
'p-checkbox-disabled': this.props.disabled,
|
|
301
304
|
'p-checkbox-focused': this.state.focused
|
|
302
305
|
}, this.props.className);
|
|
303
|
-
var boxClass =
|
|
304
|
-
'p-highlight':
|
|
306
|
+
var boxClass = utils.classNames('p-checkbox-box', {
|
|
307
|
+
'p-highlight': checked,
|
|
305
308
|
'p-disabled': this.props.disabled,
|
|
306
309
|
'p-focus': this.state.focused
|
|
307
310
|
});
|
|
308
|
-
var
|
|
309
|
-
return /*#__PURE__*/React__default[
|
|
311
|
+
var icon = checked && this.props.icon;
|
|
312
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
310
313
|
ref: function ref(el) {
|
|
311
314
|
return _this2.element = el;
|
|
312
315
|
},
|
|
@@ -316,31 +319,34 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
316
319
|
onClick: this.onClick,
|
|
317
320
|
onContextMenu: this.props.onContextMenu,
|
|
318
321
|
onMouseDown: this.props.onMouseDown
|
|
319
|
-
}, /*#__PURE__*/React__default[
|
|
322
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
320
323
|
className: "p-hidden-accessible"
|
|
321
|
-
}, /*#__PURE__*/React__default[
|
|
324
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
322
325
|
ref: this.inputRef,
|
|
323
326
|
type: "checkbox",
|
|
324
327
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
325
328
|
id: this.props.inputId,
|
|
326
329
|
name: this.props.name,
|
|
327
330
|
tabIndex: this.props.tabIndex,
|
|
328
|
-
defaultChecked:
|
|
331
|
+
defaultChecked: checked,
|
|
329
332
|
onKeyDown: this.onKeyDown,
|
|
330
333
|
onFocus: this.onFocus,
|
|
331
334
|
onBlur: this.onBlur,
|
|
332
335
|
disabled: this.props.disabled,
|
|
333
336
|
readOnly: this.props.readOnly,
|
|
334
337
|
required: this.props.required
|
|
335
|
-
})), /*#__PURE__*/React__default[
|
|
338
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
336
339
|
className: boxClass,
|
|
337
340
|
ref: function ref(el) {
|
|
338
341
|
return _this2.box = el;
|
|
339
342
|
},
|
|
340
343
|
role: "checkbox",
|
|
341
|
-
"aria-checked":
|
|
342
|
-
},
|
|
343
|
-
className:
|
|
344
|
+
"aria-checked": checked
|
|
345
|
+
}, utils.IconUtils.getJSXIcon(icon, {
|
|
346
|
+
className: 'p-checkbox-icon p-c'
|
|
347
|
+
}, {
|
|
348
|
+
props: this.props,
|
|
349
|
+
checked: checked
|
|
344
350
|
})));
|
|
345
351
|
}
|
|
346
352
|
}]);
|
|
@@ -415,16 +421,16 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
415
421
|
key: "renderFilterElement",
|
|
416
422
|
value: function renderFilterElement() {
|
|
417
423
|
if (this.props.filter) {
|
|
418
|
-
return /*#__PURE__*/React__default[
|
|
424
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
419
425
|
className: "p-multiselect-filter-container"
|
|
420
|
-
}, /*#__PURE__*/React__default[
|
|
426
|
+
}, /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
421
427
|
type: "text",
|
|
422
428
|
role: "textbox",
|
|
423
429
|
value: this.props.filterValue,
|
|
424
430
|
onChange: this.onFilter,
|
|
425
431
|
className: "p-multiselect-filter",
|
|
426
432
|
placeholder: this.props.filterPlaceholder
|
|
427
|
-
}), /*#__PURE__*/React__default[
|
|
433
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
428
434
|
className: "p-multiselect-filter-icon pi pi-search"
|
|
429
435
|
}));
|
|
430
436
|
}
|
|
@@ -435,20 +441,20 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
435
441
|
key: "render",
|
|
436
442
|
value: function render() {
|
|
437
443
|
var filterElement = this.renderFilterElement();
|
|
438
|
-
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default[
|
|
444
|
+
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
439
445
|
checked: this.props.selectAll,
|
|
440
446
|
onChange: this.onSelectAll,
|
|
441
447
|
role: "checkbox",
|
|
442
448
|
"aria-checked": this.props.selectAll
|
|
443
449
|
});
|
|
444
|
-
var closeElement = /*#__PURE__*/React__default[
|
|
450
|
+
var closeElement = /*#__PURE__*/React__default["default"].createElement("button", {
|
|
445
451
|
type: "button",
|
|
446
452
|
className: "p-multiselect-close p-link",
|
|
447
453
|
onClick: this.props.onClose
|
|
448
|
-
}, /*#__PURE__*/React__default[
|
|
454
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
449
455
|
className: "p-multiselect-close-icon pi pi-times"
|
|
450
|
-
}), /*#__PURE__*/React__default[
|
|
451
|
-
var element = /*#__PURE__*/React__default[
|
|
456
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
457
|
+
var element = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
452
458
|
className: "p-multiselect-header"
|
|
453
459
|
}, checkboxElement, filterElement, closeElement);
|
|
454
460
|
|
|
@@ -466,7 +472,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
466
472
|
element: element,
|
|
467
473
|
props: this.props
|
|
468
474
|
};
|
|
469
|
-
return
|
|
475
|
+
return utils.ObjectUtils.getJSXElement(this.props.template, defaultOptions);
|
|
470
476
|
}
|
|
471
477
|
|
|
472
478
|
return element;
|
|
@@ -520,32 +526,32 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
520
526
|
}, {
|
|
521
527
|
key: "render",
|
|
522
528
|
value: function render() {
|
|
523
|
-
var className =
|
|
529
|
+
var className = utils.classNames('p-multiselect-item', {
|
|
524
530
|
'p-highlight': this.props.selected,
|
|
525
531
|
'p-disabled': this.props.disabled
|
|
526
532
|
}, this.props.option.className);
|
|
527
|
-
var checkboxClassName =
|
|
533
|
+
var checkboxClassName = utils.classNames('p-checkbox-box', {
|
|
528
534
|
'p-highlight': this.props.selected
|
|
529
535
|
});
|
|
530
|
-
var checkboxIcon =
|
|
536
|
+
var checkboxIcon = utils.classNames('p-checkbox-icon p-c', {
|
|
531
537
|
'pi pi-check': this.props.selected
|
|
532
538
|
});
|
|
533
|
-
var content = this.props.template ?
|
|
539
|
+
var content = this.props.template ? utils.ObjectUtils.getJSXElement(this.props.template, this.props.option) : this.props.label;
|
|
534
540
|
var tabIndex = this.props.disabled ? null : this.props.tabIndex || 0;
|
|
535
|
-
return /*#__PURE__*/React__default[
|
|
541
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
536
542
|
className: className,
|
|
537
543
|
onClick: this.onClick,
|
|
538
544
|
tabIndex: tabIndex,
|
|
539
545
|
onKeyDown: this.onKeyDown,
|
|
540
546
|
role: "option",
|
|
541
547
|
"aria-selected": this.props.selected
|
|
542
|
-
}, /*#__PURE__*/React__default[
|
|
548
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
543
549
|
className: "p-checkbox p-component"
|
|
544
|
-
}, /*#__PURE__*/React__default[
|
|
550
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
545
551
|
className: checkboxClassName
|
|
546
|
-
}, /*#__PURE__*/React__default[
|
|
552
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
547
553
|
className: checkboxIcon
|
|
548
|
-
}))), /*#__PURE__*/React__default[
|
|
554
|
+
}))), /*#__PURE__*/React__default["default"].createElement("span", null, content), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
549
555
|
}
|
|
550
556
|
}]);
|
|
551
557
|
|
|
@@ -619,7 +625,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
619
625
|
}, {
|
|
620
626
|
key: "renderHeader",
|
|
621
627
|
value: function renderHeader() {
|
|
622
|
-
return /*#__PURE__*/React__default[
|
|
628
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectHeader, {
|
|
623
629
|
filter: this.props.filter,
|
|
624
630
|
filterValue: this.props.filterValue,
|
|
625
631
|
onFilter: this.onFilterInputChange,
|
|
@@ -635,8 +641,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
635
641
|
key: "renderFooter",
|
|
636
642
|
value: function renderFooter() {
|
|
637
643
|
if (this.props.panelFooterTemplate) {
|
|
638
|
-
var content =
|
|
639
|
-
return /*#__PURE__*/React__default[
|
|
644
|
+
var content = utils.ObjectUtils.getJSXElement(this.props.panelFooterTemplate, this.props, this.props.onOverlayHide);
|
|
645
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
640
646
|
className: "p-multiselect-footer"
|
|
641
647
|
}, content);
|
|
642
648
|
}
|
|
@@ -657,7 +663,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
657
663
|
var disabled = _this3.props.isOptionDisabled(option);
|
|
658
664
|
|
|
659
665
|
var tabIndex = disabled ? null : _this3.props.tabIndex || 0;
|
|
660
|
-
return /*#__PURE__*/React__default[
|
|
666
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
661
667
|
key: optionKey,
|
|
662
668
|
label: optionLabel,
|
|
663
669
|
option: option,
|
|
@@ -673,8 +679,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
673
679
|
}, {
|
|
674
680
|
key: "renderEmptyFilter",
|
|
675
681
|
value: function renderEmptyFilter() {
|
|
676
|
-
var emptyFilterMessage =
|
|
677
|
-
return /*#__PURE__*/React__default[
|
|
682
|
+
var emptyFilterMessage = utils.ObjectUtils.getJSXElement(this.props.emptyFilterMessage, this.props) || PrimeReact.localeOption('emptyFilterMessage');
|
|
683
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
678
684
|
className: "p-multiselect-empty-message"
|
|
679
685
|
}, emptyFilterMessage);
|
|
680
686
|
}
|
|
@@ -682,12 +688,12 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
682
688
|
key: "renderItem",
|
|
683
689
|
value: function renderItem(option, index) {
|
|
684
690
|
if (this.props.optionGroupLabel) {
|
|
685
|
-
var groupContent = this.props.optionGroupTemplate ?
|
|
691
|
+
var groupContent = this.props.optionGroupTemplate ? utils.ObjectUtils.getJSXElement(this.props.optionGroupTemplate, option, index) : this.props.getOptionGroupLabel(option);
|
|
686
692
|
var groupChildrenContent = this.renderGroupChildren(option);
|
|
687
693
|
var key = index + '_' + this.props.getOptionGroupRenderKey(option);
|
|
688
|
-
return /*#__PURE__*/React__default[
|
|
694
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
689
695
|
key: key
|
|
690
|
-
}, /*#__PURE__*/React__default[
|
|
696
|
+
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
691
697
|
className: "p-multiselect-item-group"
|
|
692
698
|
}, groupContent), groupChildrenContent);
|
|
693
699
|
} else {
|
|
@@ -695,7 +701,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
695
701
|
var optionKey = index + '_' + this.props.getOptionRenderKey(option);
|
|
696
702
|
var disabled = this.props.isOptionDisabled(option);
|
|
697
703
|
var tabIndex = disabled ? null : this.props.tabIndex || 0;
|
|
698
|
-
return /*#__PURE__*/React__default[
|
|
704
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
699
705
|
key: optionKey,
|
|
700
706
|
label: optionLabel,
|
|
701
707
|
option: option,
|
|
@@ -733,7 +739,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
733
739
|
style: _objectSpread$1(_objectSpread$1({}, this.props.virtualScrollerOptions.style), {
|
|
734
740
|
height: this.props.scrollHeight
|
|
735
741
|
}),
|
|
736
|
-
className:
|
|
742
|
+
className: utils.classNames('p-multiselect-items-wrapper', this.props.virtualScrollerOptions.className),
|
|
737
743
|
items: this.props.visibleOptions,
|
|
738
744
|
onLazyLoad: function onLazyLoad(event) {
|
|
739
745
|
return _this5.props.virtualScrollerOptions.onLazyLoad(_objectSpread$1(_objectSpread$1({}, event), {
|
|
@@ -744,10 +750,10 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
744
750
|
return item && _this5.renderItem(item, options.index);
|
|
745
751
|
},
|
|
746
752
|
contentTemplate: function contentTemplate(options) {
|
|
747
|
-
var className =
|
|
753
|
+
var className = utils.classNames('p-multiselect-items p-component', options.className);
|
|
748
754
|
var content = _this5.isEmptyFilter() ? _this5.renderEmptyFilter() : options.children;
|
|
749
|
-
return /*#__PURE__*/React__default[
|
|
750
|
-
ref: options.
|
|
755
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
756
|
+
ref: options.contentRef,
|
|
751
757
|
className: className,
|
|
752
758
|
role: "listbox",
|
|
753
759
|
"aria-multiselectable": true
|
|
@@ -755,19 +761,19 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
755
761
|
}
|
|
756
762
|
});
|
|
757
763
|
|
|
758
|
-
return /*#__PURE__*/React__default[
|
|
764
|
+
return /*#__PURE__*/React__default["default"].createElement(virtualscroller.VirtualScroller, _extends({
|
|
759
765
|
ref: function ref(el) {
|
|
760
766
|
return _this5.virtualScrollerRef = el;
|
|
761
767
|
}
|
|
762
768
|
}, virtualScrollerProps));
|
|
763
769
|
} else {
|
|
764
770
|
var items = this.renderItems();
|
|
765
|
-
return /*#__PURE__*/React__default[
|
|
771
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
766
772
|
className: "p-multiselect-items-wrapper",
|
|
767
773
|
style: {
|
|
768
774
|
maxHeight: this.props.scrollHeight
|
|
769
775
|
}
|
|
770
|
-
}, /*#__PURE__*/React__default[
|
|
776
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
771
777
|
className: "p-multiselect-items p-component",
|
|
772
778
|
role: "listbox",
|
|
773
779
|
"aria-multiselectable": true
|
|
@@ -777,13 +783,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
777
783
|
}, {
|
|
778
784
|
key: "renderElement",
|
|
779
785
|
value: function renderElement() {
|
|
780
|
-
var panelClassName =
|
|
786
|
+
var panelClassName = utils.classNames('p-multiselect-panel p-component', {
|
|
781
787
|
'p-multiselect-limited': !this.props.allowOptionSelect()
|
|
782
788
|
}, this.props.panelClassName);
|
|
783
789
|
var header = this.renderHeader();
|
|
784
790
|
var content = this.renderContent();
|
|
785
791
|
var footer = this.renderFooter();
|
|
786
|
-
return /*#__PURE__*/React__default[
|
|
792
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
787
793
|
nodeRef: this.props.forwardRef,
|
|
788
794
|
classNames: "p-connected-overlay",
|
|
789
795
|
in: this.props.in,
|
|
@@ -797,7 +803,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
797
803
|
onEntered: this.props.onEntered,
|
|
798
804
|
onExit: this.props.onExit,
|
|
799
805
|
onExited: this.props.onExited
|
|
800
|
-
}, /*#__PURE__*/React__default[
|
|
806
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
801
807
|
ref: this.props.forwardRef,
|
|
802
808
|
className: panelClassName,
|
|
803
809
|
style: this.props.panelStyle,
|
|
@@ -808,7 +814,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
808
814
|
key: "render",
|
|
809
815
|
value: function render() {
|
|
810
816
|
var element = this.renderElement();
|
|
811
|
-
return /*#__PURE__*/React__default[
|
|
817
|
+
return /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
812
818
|
element: element,
|
|
813
819
|
appendTo: this.props.appendTo
|
|
814
820
|
});
|
|
@@ -818,8 +824,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
818
824
|
return MultiSelectPanelComponent;
|
|
819
825
|
}(React.Component);
|
|
820
826
|
|
|
821
|
-
var MultiSelectPanel = /*#__PURE__*/React__default[
|
|
822
|
-
return /*#__PURE__*/React__default[
|
|
827
|
+
var MultiSelectPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
828
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectPanelComponent, _extends({
|
|
823
829
|
forwardRef: ref
|
|
824
830
|
}, props));
|
|
825
831
|
});
|
|
@@ -888,7 +894,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
888
894
|
_createClass(MultiSelect, [{
|
|
889
895
|
key: "onPanelClick",
|
|
890
896
|
value: function onPanelClick(event) {
|
|
891
|
-
|
|
897
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
892
898
|
originalEvent: event,
|
|
893
899
|
target: this.container
|
|
894
900
|
});
|
|
@@ -915,7 +921,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
915
921
|
var selected = this.isSelected(option);
|
|
916
922
|
var allowOptionSelect = this.allowOptionSelect();
|
|
917
923
|
if (selected) this.updateModel(originalEvent, this.props.value.filter(function (val) {
|
|
918
|
-
return !
|
|
924
|
+
return !utils.ObjectUtils.equals(isOptionValueUsed ? val : _this2.getOptionValue(val), optionValue, _this2.equalityKey());
|
|
919
925
|
}));else if (allowOptionSelect) this.updateModel(originalEvent, [].concat(_toConsumableArray(this.props.value || []), [optionValue]));
|
|
920
926
|
}
|
|
921
927
|
}, {
|
|
@@ -965,18 +971,18 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
965
971
|
key: "findNextItem",
|
|
966
972
|
value: function findNextItem(item) {
|
|
967
973
|
var nextItem = item.nextElementSibling;
|
|
968
|
-
if (nextItem) return
|
|
974
|
+
if (nextItem) return utils.DomHandler.hasClass(nextItem, 'p-disabled') || utils.DomHandler.hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem;else return null;
|
|
969
975
|
}
|
|
970
976
|
}, {
|
|
971
977
|
key: "findPrevItem",
|
|
972
978
|
value: function findPrevItem(item) {
|
|
973
979
|
var prevItem = item.previousElementSibling;
|
|
974
|
-
if (prevItem) return
|
|
980
|
+
if (prevItem) return utils.DomHandler.hasClass(prevItem, 'p-disabled') || utils.DomHandler.hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem;else return null;
|
|
975
981
|
}
|
|
976
982
|
}, {
|
|
977
983
|
key: "onClick",
|
|
978
984
|
value: function onClick(event) {
|
|
979
|
-
if (!this.props.disabled && !this.isPanelClicked(event) && !
|
|
985
|
+
if (!this.props.disabled && !this.isPanelClicked(event) && !utils.DomHandler.hasClass(event.target, 'p-multiselect-token-icon') && !this.isClearClicked(event)) {
|
|
980
986
|
if (this.state.overlayVisible) {
|
|
981
987
|
this.hide();
|
|
982
988
|
} else {
|
|
@@ -984,6 +990,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
984
990
|
}
|
|
985
991
|
|
|
986
992
|
this.inputRef.current.focus();
|
|
993
|
+
event.preventDefault();
|
|
987
994
|
}
|
|
988
995
|
}
|
|
989
996
|
}, {
|
|
@@ -1013,7 +1020,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1013
1020
|
|
|
1014
1021
|
case 9:
|
|
1015
1022
|
if (this.state.overlayVisible) {
|
|
1016
|
-
var firstFocusableElement =
|
|
1023
|
+
var firstFocusableElement = utils.DomHandler.getFirstFocusableElement(this.overlayRef.current);
|
|
1017
1024
|
|
|
1018
1025
|
if (firstFocusableElement) {
|
|
1019
1026
|
firstFocusableElement.focus();
|
|
@@ -1065,8 +1072,6 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1065
1072
|
return _this3.getOptionValue(option);
|
|
1066
1073
|
});
|
|
1067
1074
|
}
|
|
1068
|
-
|
|
1069
|
-
value = _toConsumableArray(new Set([].concat(_toConsumableArray(value), _toConsumableArray(this.props.value || []))));
|
|
1070
1075
|
}
|
|
1071
1076
|
|
|
1072
1077
|
this.updateModel(event.originalEvent, value);
|
|
@@ -1137,18 +1142,17 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1137
1142
|
}, {
|
|
1138
1143
|
key: "onOverlayEnter",
|
|
1139
1144
|
value: function onOverlayEnter(callback) {
|
|
1140
|
-
|
|
1145
|
+
utils.ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
|
|
1141
1146
|
this.alignOverlay();
|
|
1142
1147
|
this.scrollInView();
|
|
1143
1148
|
callback && callback();
|
|
1144
1149
|
}
|
|
1145
1150
|
}, {
|
|
1146
1151
|
key: "onOverlayEntered",
|
|
1147
|
-
value: function onOverlayEntered(
|
|
1152
|
+
value: function onOverlayEntered() {
|
|
1148
1153
|
this.bindDocumentClickListener();
|
|
1149
1154
|
this.bindScrollListener();
|
|
1150
1155
|
this.bindResizeListener();
|
|
1151
|
-
callback && callback();
|
|
1152
1156
|
this.props.onShow && this.props.onShow();
|
|
1153
1157
|
}
|
|
1154
1158
|
}, {
|
|
@@ -1165,18 +1169,18 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1165
1169
|
this.resetFilter();
|
|
1166
1170
|
}
|
|
1167
1171
|
|
|
1168
|
-
|
|
1172
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1169
1173
|
this.props.onHide && this.props.onHide();
|
|
1170
1174
|
}
|
|
1171
1175
|
}, {
|
|
1172
1176
|
key: "alignOverlay",
|
|
1173
1177
|
value: function alignOverlay() {
|
|
1174
|
-
|
|
1178
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1175
1179
|
}
|
|
1176
1180
|
}, {
|
|
1177
1181
|
key: "scrollInView",
|
|
1178
1182
|
value: function scrollInView() {
|
|
1179
|
-
var highlightItem =
|
|
1183
|
+
var highlightItem = utils.DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
1180
1184
|
|
|
1181
1185
|
if (highlightItem) {
|
|
1182
1186
|
highlightItem.scrollIntoView({
|
|
@@ -1223,7 +1227,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1223
1227
|
var key = this.equalityKey();
|
|
1224
1228
|
return list.findIndex(function (item) {
|
|
1225
1229
|
return value.some(function (val) {
|
|
1226
|
-
return
|
|
1230
|
+
return utils.ObjectUtils.equals(val, _this6.getOptionValue(item), key);
|
|
1227
1231
|
});
|
|
1228
1232
|
});
|
|
1229
1233
|
}
|
|
@@ -1239,7 +1243,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1239
1243
|
var isOptionValueUsed = this.isOptionValueUsed(option);
|
|
1240
1244
|
var key = this.equalityKey();
|
|
1241
1245
|
selected = this.props.value.some(function (val) {
|
|
1242
|
-
return
|
|
1246
|
+
return utils.ObjectUtils.equals(isOptionValueUsed ? val : _this7.getOptionValue(val), optionValue, key);
|
|
1243
1247
|
});
|
|
1244
1248
|
}
|
|
1245
1249
|
|
|
@@ -1289,7 +1293,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1289
1293
|
var option = _step2.value;
|
|
1290
1294
|
var optionValue = this.getOptionValue(option);
|
|
1291
1295
|
|
|
1292
|
-
if (
|
|
1296
|
+
if (utils.ObjectUtils.equals(optionValue, val, key)) {
|
|
1293
1297
|
return option;
|
|
1294
1298
|
}
|
|
1295
1299
|
}
|
|
@@ -1350,7 +1354,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1350
1354
|
var _this11 = this;
|
|
1351
1355
|
|
|
1352
1356
|
if (!this.scrollHandler) {
|
|
1353
|
-
this.scrollHandler = new
|
|
1357
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1354
1358
|
if (_this11.state.overlayVisible) {
|
|
1355
1359
|
_this11.hide();
|
|
1356
1360
|
}
|
|
@@ -1373,7 +1377,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1373
1377
|
|
|
1374
1378
|
if (!this.resizeListener) {
|
|
1375
1379
|
this.resizeListener = function () {
|
|
1376
|
-
if (_this12.state.overlayVisible && !
|
|
1380
|
+
if (_this12.state.overlayVisible && !utils.DomHandler.isAndroid()) {
|
|
1377
1381
|
_this12.hide();
|
|
1378
1382
|
}
|
|
1379
1383
|
};
|
|
@@ -1397,7 +1401,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1397
1401
|
}, {
|
|
1398
1402
|
key: "isClearClicked",
|
|
1399
1403
|
value: function isClearClicked(event) {
|
|
1400
|
-
return
|
|
1404
|
+
return utils.DomHandler.hasClass(event.target, 'p-multiselect-clear-icon');
|
|
1401
1405
|
}
|
|
1402
1406
|
}, {
|
|
1403
1407
|
key: "isPanelClicked",
|
|
@@ -1463,7 +1467,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1463
1467
|
this.tooltip = null;
|
|
1464
1468
|
}
|
|
1465
1469
|
|
|
1466
|
-
|
|
1470
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1467
1471
|
}
|
|
1468
1472
|
}, {
|
|
1469
1473
|
key: "hasFilter",
|
|
@@ -1546,13 +1550,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1546
1550
|
}, {
|
|
1547
1551
|
key: "getOptionLabel",
|
|
1548
1552
|
value: function getOptionLabel(option) {
|
|
1549
|
-
return this.props.optionLabel ?
|
|
1553
|
+
return this.props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;
|
|
1550
1554
|
}
|
|
1551
1555
|
}, {
|
|
1552
1556
|
key: "getOptionValue",
|
|
1553
1557
|
value: function getOptionValue(option) {
|
|
1554
1558
|
if (this.props.optionValue) {
|
|
1555
|
-
var data =
|
|
1559
|
+
var data = utils.ObjectUtils.resolveFieldData(option, this.props.optionValue);
|
|
1556
1560
|
return data !== null ? data : option;
|
|
1557
1561
|
}
|
|
1558
1562
|
|
|
@@ -1561,28 +1565,28 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1561
1565
|
}, {
|
|
1562
1566
|
key: "getOptionRenderKey",
|
|
1563
1567
|
value: function getOptionRenderKey(option) {
|
|
1564
|
-
return this.props.dataKey ?
|
|
1568
|
+
return this.props.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.props.dataKey) : this.getOptionLabel(option);
|
|
1565
1569
|
}
|
|
1566
1570
|
}, {
|
|
1567
1571
|
key: "getOptionGroupRenderKey",
|
|
1568
1572
|
value: function getOptionGroupRenderKey(optionGroup) {
|
|
1569
|
-
return
|
|
1573
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1570
1574
|
}
|
|
1571
1575
|
}, {
|
|
1572
1576
|
key: "getOptionGroupLabel",
|
|
1573
1577
|
value: function getOptionGroupLabel(optionGroup) {
|
|
1574
|
-
return
|
|
1578
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1575
1579
|
}
|
|
1576
1580
|
}, {
|
|
1577
1581
|
key: "getOptionGroupChildren",
|
|
1578
1582
|
value: function getOptionGroupChildren(optionGroup) {
|
|
1579
|
-
return
|
|
1583
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupChildren);
|
|
1580
1584
|
}
|
|
1581
1585
|
}, {
|
|
1582
1586
|
key: "isOptionDisabled",
|
|
1583
1587
|
value: function isOptionDisabled(option) {
|
|
1584
1588
|
if (this.props.optionDisabled) {
|
|
1585
|
-
return
|
|
1589
|
+
return utils.ObjectUtils.isFunction(this.props.optionDisabled) ? this.props.optionDisabled(option) : utils.ObjectUtils.resolveFieldData(option, this.props.optionDisabled);
|
|
1586
1590
|
}
|
|
1587
1591
|
|
|
1588
1592
|
return option && option['disabled'] !== undefined ? option['disabled'] : false;
|
|
@@ -1608,7 +1612,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1608
1612
|
try {
|
|
1609
1613
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
1610
1614
|
var optgroup = _step6.value;
|
|
1611
|
-
var filteredSubOptions =
|
|
1615
|
+
var filteredSubOptions = PrimeReact.FilterService.filter(this.getOptionGroupChildren(optgroup), searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);
|
|
1612
1616
|
|
|
1613
1617
|
if (filteredSubOptions && filteredSubOptions.length) {
|
|
1614
1618
|
filteredGroups.push(_objectSpread(_objectSpread({}, optgroup), {
|
|
@@ -1624,7 +1628,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1624
1628
|
|
|
1625
1629
|
return filteredGroups;
|
|
1626
1630
|
} else {
|
|
1627
|
-
return
|
|
1631
|
+
return PrimeReact.FilterService.filter(this.props.options, searchFields, filterValue, this.props.filterMatchMode, this.props.filterLocale);
|
|
1628
1632
|
}
|
|
1629
1633
|
} else {
|
|
1630
1634
|
return this.props.options;
|
|
@@ -1650,7 +1654,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1650
1654
|
value: function removeChip(event, item) {
|
|
1651
1655
|
var key = this.equalityKey();
|
|
1652
1656
|
var value = this.props.value.filter(function (val) {
|
|
1653
|
-
return !
|
|
1657
|
+
return !utils.ObjectUtils.equals(val, item, key);
|
|
1654
1658
|
});
|
|
1655
1659
|
this.updateModel(event, value);
|
|
1656
1660
|
}
|
|
@@ -1671,7 +1675,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1671
1675
|
var label;
|
|
1672
1676
|
|
|
1673
1677
|
if (!this.isEmpty() && !this.props.fixedPlaceholder) {
|
|
1674
|
-
if (this.props.value.length
|
|
1678
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1679
|
+
return this.getSelectedItemsLabel();
|
|
1680
|
+
} else {
|
|
1675
1681
|
label = '';
|
|
1676
1682
|
|
|
1677
1683
|
for (var i = 0; i < this.props.value.length; i++) {
|
|
@@ -1683,8 +1689,6 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1683
1689
|
}
|
|
1684
1690
|
|
|
1685
1691
|
return label;
|
|
1686
|
-
} else {
|
|
1687
|
-
return this.getSelectedItemsLabel();
|
|
1688
1692
|
}
|
|
1689
1693
|
}
|
|
1690
1694
|
|
|
@@ -1697,34 +1701,37 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1697
1701
|
|
|
1698
1702
|
if (this.props.selectedItemTemplate) {
|
|
1699
1703
|
if (!this.isEmpty()) {
|
|
1700
|
-
if (this.props.value.length
|
|
1704
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1705
|
+
return this.getSelectedItemsLabel();
|
|
1706
|
+
} else {
|
|
1701
1707
|
return this.props.value.map(function (val, index) {
|
|
1702
|
-
var item =
|
|
1703
|
-
return /*#__PURE__*/React__default[
|
|
1708
|
+
var item = utils.ObjectUtils.getJSXElement(_this14.props.selectedItemTemplate, val);
|
|
1709
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
1704
1710
|
key: index
|
|
1705
1711
|
}, item);
|
|
1706
1712
|
});
|
|
1707
|
-
} else {
|
|
1708
|
-
return this.getSelectedItemsLabel();
|
|
1709
1713
|
}
|
|
1710
1714
|
} else {
|
|
1711
|
-
return
|
|
1715
|
+
return utils.ObjectUtils.getJSXElement(this.props.selectedItemTemplate);
|
|
1712
1716
|
}
|
|
1713
1717
|
} else {
|
|
1714
1718
|
if (this.props.display === 'chip' && !this.isEmpty()) {
|
|
1715
|
-
|
|
1719
|
+
var value = this.props.value.slice(0, this.props.maxSelectedLabels || this.props.value.length);
|
|
1720
|
+
return value.map(function (val) {
|
|
1716
1721
|
var label = _this14.getLabelByValue(val);
|
|
1717
1722
|
|
|
1718
|
-
return /*#__PURE__*/React__default[
|
|
1723
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1719
1724
|
className: "p-multiselect-token",
|
|
1720
1725
|
key: label
|
|
1721
|
-
}, /*#__PURE__*/React__default[
|
|
1726
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1722
1727
|
className: "p-multiselect-token-label"
|
|
1723
|
-
}, label), !_this14.props.disabled &&
|
|
1724
|
-
className:
|
|
1728
|
+
}, label), !_this14.props.disabled && utils.IconUtils.getJSXIcon(_this14.props.removeIcon, {
|
|
1729
|
+
className: 'p-multiselect-token-icon',
|
|
1725
1730
|
onClick: function onClick(e) {
|
|
1726
1731
|
return _this14.removeChip(e, val);
|
|
1727
1732
|
}
|
|
1733
|
+
}, {
|
|
1734
|
+
props: _this14.props
|
|
1728
1735
|
}));
|
|
1729
1736
|
});
|
|
1730
1737
|
}
|
|
@@ -1735,7 +1742,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1735
1742
|
}, {
|
|
1736
1743
|
key: "renderTooltip",
|
|
1737
1744
|
value: function renderTooltip() {
|
|
1738
|
-
this.tooltip =
|
|
1745
|
+
this.tooltip = tooltip.tip({
|
|
1739
1746
|
target: this.container,
|
|
1740
1747
|
content: this.props.tooltip,
|
|
1741
1748
|
options: this.props.tooltipOptions
|
|
@@ -1749,7 +1756,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1749
1756
|
var empty = this.isEmpty();
|
|
1750
1757
|
|
|
1751
1758
|
if (!empty && this.props.showClear && !this.props.disabled) {
|
|
1752
|
-
return /*#__PURE__*/React__default[
|
|
1759
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1753
1760
|
className: "p-multiselect-clear-icon pi pi-times",
|
|
1754
1761
|
onClick: function onClick(e) {
|
|
1755
1762
|
return _this15.updateModel(e, null);
|
|
@@ -1766,17 +1773,17 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1766
1773
|
|
|
1767
1774
|
var empty = this.isEmpty();
|
|
1768
1775
|
var content = this.getLabelContent();
|
|
1769
|
-
var labelClassName =
|
|
1776
|
+
var labelClassName = utils.classNames('p-multiselect-label', {
|
|
1770
1777
|
'p-placeholder': empty && this.props.placeholder,
|
|
1771
1778
|
'p-multiselect-label-empty': empty && !this.props.placeholder && !this.props.selectedItemTemplate,
|
|
1772
|
-
'p-multiselect-items-label': !empty && this.props.value.length > this.props.maxSelectedLabels
|
|
1779
|
+
'p-multiselect-items-label': !empty && this.props.display !== 'chip' && this.props.value.length > this.props.maxSelectedLabels
|
|
1773
1780
|
});
|
|
1774
|
-
return /*#__PURE__*/React__default[
|
|
1781
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1775
1782
|
ref: function ref(el) {
|
|
1776
1783
|
return _this16.label = el;
|
|
1777
1784
|
},
|
|
1778
1785
|
className: "p-multiselect-label-container"
|
|
1779
|
-
}, /*#__PURE__*/React__default[
|
|
1786
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1780
1787
|
className: labelClassName
|
|
1781
1788
|
}, content || this.props.placeholder || 'empty'));
|
|
1782
1789
|
}
|
|
@@ -1785,7 +1792,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1785
1792
|
value: function render() {
|
|
1786
1793
|
var _this17 = this;
|
|
1787
1794
|
|
|
1788
|
-
var className =
|
|
1795
|
+
var className = utils.classNames('p-multiselect p-component p-inputwrapper', {
|
|
1789
1796
|
'p-multiselect-chip': this.props.display === 'chip',
|
|
1790
1797
|
'p-disabled': this.props.disabled,
|
|
1791
1798
|
'p-multiselect-clearable': this.props.showClear && !this.props.disabled,
|
|
@@ -1793,11 +1800,10 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1793
1800
|
'p-inputwrapper-filled': this.props.value && this.props.value.length > 0,
|
|
1794
1801
|
'p-inputwrapper-focus': this.state.focused || this.state.overlayVisible
|
|
1795
1802
|
}, this.props.className);
|
|
1796
|
-
var iconClassName = core.classNames('p-multiselect-trigger-icon p-c', this.props.dropdownIcon);
|
|
1797
1803
|
var visibleOptions = this.getVisibleOptions();
|
|
1798
1804
|
var label = this.renderLabel();
|
|
1799
1805
|
var clearIcon = this.renderClearIcon();
|
|
1800
|
-
return /*#__PURE__*/React__default[
|
|
1806
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1801
1807
|
id: this.props.id,
|
|
1802
1808
|
className: className,
|
|
1803
1809
|
onClick: this.onClick,
|
|
@@ -1805,9 +1811,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1805
1811
|
return _this17.container = el;
|
|
1806
1812
|
},
|
|
1807
1813
|
style: this.props.style
|
|
1808
|
-
}, /*#__PURE__*/React__default[
|
|
1814
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1809
1815
|
className: "p-hidden-accessible"
|
|
1810
|
-
}, /*#__PURE__*/React__default[
|
|
1816
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
1811
1817
|
ref: this.inputRef,
|
|
1812
1818
|
id: this.props.inputId,
|
|
1813
1819
|
name: this.props.name,
|
|
@@ -1822,11 +1828,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1822
1828
|
"aria-expanded": this.state.overlayVisible,
|
|
1823
1829
|
disabled: this.props.disabled,
|
|
1824
1830
|
tabIndex: this.props.tabIndex
|
|
1825
|
-
})), label, clearIcon, /*#__PURE__*/React__default[
|
|
1831
|
+
})), label, clearIcon, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1826
1832
|
className: "p-multiselect-trigger"
|
|
1827
|
-
},
|
|
1828
|
-
className:
|
|
1829
|
-
}
|
|
1833
|
+
}, utils.IconUtils.getJSXIcon(this.props.dropdownIcon, {
|
|
1834
|
+
className: 'p-multiselect-trigger-icon p-c'
|
|
1835
|
+
}, {
|
|
1836
|
+
props: this.props
|
|
1837
|
+
})), /*#__PURE__*/React__default["default"].createElement(MultiSelectPanel, _extends({
|
|
1830
1838
|
ref: this.overlayRef,
|
|
1831
1839
|
visibleOptions: visibleOptions
|
|
1832
1840
|
}, this.props, {
|
|
@@ -1889,7 +1897,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1889
1897
|
filterMatchMode: 'contains',
|
|
1890
1898
|
filterPlaceholder: null,
|
|
1891
1899
|
filterLocale: undefined,
|
|
1892
|
-
emptyFilterMessage:
|
|
1900
|
+
emptyFilterMessage: null,
|
|
1893
1901
|
resetFilterOnHide: false,
|
|
1894
1902
|
tabIndex: 0,
|
|
1895
1903
|
dataKey: null,
|
|
@@ -1897,7 +1905,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1897
1905
|
appendTo: null,
|
|
1898
1906
|
tooltip: null,
|
|
1899
1907
|
tooltipOptions: null,
|
|
1900
|
-
maxSelectedLabels:
|
|
1908
|
+
maxSelectedLabels: null,
|
|
1901
1909
|
selectionLimit: null,
|
|
1902
1910
|
selectedItemsLabel: '{0} items selected',
|
|
1903
1911
|
ariaLabelledBy: null,
|
|
@@ -1907,6 +1915,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1907
1915
|
panelFooterTemplate: null,
|
|
1908
1916
|
transitionOptions: null,
|
|
1909
1917
|
dropdownIcon: 'pi pi-chevron-down',
|
|
1918
|
+
removeIcon: 'pi pi-times-circle',
|
|
1910
1919
|
showSelectAll: true,
|
|
1911
1920
|
selectAll: false,
|
|
1912
1921
|
onChange: null,
|
|
@@ -1924,4 +1933,4 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1924
1933
|
|
|
1925
1934
|
return exports;
|
|
1926
1935
|
|
|
1927
|
-
}({}, React, primereact.
|
|
1936
|
+
})({}, React, primereact.utils, primereact.tooltip, primereact.csstransition, primereact.portal, primereact.inputtext, primereact.ripple, primereact.virtualscroller, primereact.api, primereact.overlayservice);
|