primereact 7.0.0-rc.1 → 7.1.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 +35 -10
- package/accordion/accordion.cjs.js +40 -27
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +7 -3
- package/accordion/accordion.esm.js +27 -14
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +40 -28
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +82 -46
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +95 -61
- package/api/api.esm.js +69 -33
- package/api/api.esm.min.js +1 -1
- package/api/api.js +83 -47
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +79 -71
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +11 -4
- package/autocomplete/autocomplete.esm.js +16 -8
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +75 -72
- 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 +27 -16
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +17 -7
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +26 -17
- 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 +42 -53
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +31 -42
- package/button/button.esm.min.js +1 -1
- package/button/button.js +41 -54
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +193 -154
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -2
- package/calendar/calendar.esm.js +68 -29
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +189 -155
- 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 +45 -45
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +10 -10
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +45 -46
- 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.d.ts +2 -1
- package/cascadeselect/cascadeselect.esm.js +7 -3
- 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 +20 -6
- package/colorpicker/colorpicker.esm.js +7 -3
- 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 +24 -2
- 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 +46 -41
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +6 -4
- package/confirmpopup/confirmpopup.esm.js +12 -8
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +43 -41
- 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.d.ts +2 -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 +11228 -846
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +49 -19
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +8 -0
- package/csstransition/csstransition.esm.js +48 -19
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +49 -21
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -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 +600 -519
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +30 -14
- package/datatable/datatable.esm.js +321 -240
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +597 -520
- 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 +60 -59
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +3 -1
- package/dialog/dialog.esm.js +13 -13
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +57 -60
- 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 +99 -77
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -1
- package/dropdown/dropdown.esm.js +37 -15
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +95 -78
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +44 -42
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -0
- package/editor/editor.esm.js +8 -4
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +43 -39
- 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.d.ts +2 -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 +71 -67
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -1
- package/galleria/galleria.esm.js +7 -4
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +68 -68
- 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 +11 -10
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +4 -3
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +11 -11
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +58 -34
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +41 -17
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +57 -35
- 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.d.ts +2 -1
- package/mention/mention.esm.js +9 -3
- 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 +4 -1
- package/menu/menu.esm.js +7 -3
- 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.css +1 -1
- 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.d.ts +2 -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 +128 -116
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -2
- package/multiselect/multiselect.esm.js +44 -32
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +124 -117
- 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.css +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +33 -30
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +3 -2
- package/overlaypanel/overlaypanel.esm.js +11 -9
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -31
- 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 +11 -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 +21 -18
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +5 -3
- package/panel/panel.esm.js +6 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -19
- 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.d.ts +2 -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 +3 -2
- package/password/password.esm.js +7 -3
- 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 +4 -8
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +2 -6
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +5 -10
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +3168 -2524
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +1939 -1294
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +3167 -2521
- 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 +484 -431
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +38 -18
- package/resources/themes/arya-green/theme.css +38 -18
- package/resources/themes/arya-orange/theme.css +38 -18
- package/resources/themes/arya-purple/theme.css +38 -18
- package/resources/themes/bootstrap4-dark-blue/theme.css +42 -22
- package/resources/themes/bootstrap4-dark-purple/theme.css +42 -22
- package/resources/themes/bootstrap4-light-blue/theme.css +42 -22
- package/resources/themes/bootstrap4-light-purple/theme.css +42 -22
- package/resources/themes/fluent-light/theme.css +38 -18
- 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 +5675 -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 +5675 -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 +5675 -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 +5675 -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 +5675 -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 +5675 -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 +5675 -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 +5675 -0
- package/resources/themes/luna-amber/theme.css +42 -22
- package/resources/themes/luna-blue/theme.css +42 -22
- package/resources/themes/luna-green/theme.css +42 -22
- package/resources/themes/luna-pink/theme.css +42 -22
- package/resources/themes/md-dark-deeppurple/theme.css +227 -47
- package/resources/themes/md-dark-indigo/theme.css +227 -47
- package/resources/themes/md-light-deeppurple/theme.css +227 -47
- package/resources/themes/md-light-indigo/theme.css +227 -47
- package/resources/themes/mdc-dark-deeppurple/theme.css +227 -47
- package/resources/themes/mdc-dark-indigo/theme.css +227 -47
- package/resources/themes/mdc-light-deeppurple/theme.css +227 -47
- package/resources/themes/mdc-light-indigo/theme.css +227 -47
- package/resources/themes/nova/theme.css +42 -22
- package/resources/themes/nova-accent/theme.css +42 -22
- package/resources/themes/nova-alt/theme.css +42 -22
- package/resources/themes/rhea/theme.css +42 -22
- package/resources/themes/saga-blue/theme.css +38 -18
- package/resources/themes/saga-green/theme.css +38 -18
- package/resources/themes/saga-orange/theme.css +38 -18
- package/resources/themes/saga-purple/theme.css +38 -18
- package/resources/themes/tailwind-light/theme.css +42 -22
- package/resources/themes/vela-blue/theme.css +38 -18
- package/resources/themes/vela-green/theme.css +38 -18
- package/resources/themes/vela-orange/theme.css +38 -18
- package/resources/themes/vela-purple/theme.css +38 -18
- 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 +4 -2
- 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 +4 -1
- 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.d.ts +2 -1
- package/slidemenu/slidemenu.esm.js +7 -3
- 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 +43 -35
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +8 -6
- package/splitbutton/splitbutton.esm.js +13 -5
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +40 -36
- 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 +195 -57
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +12 -1
- package/tabview/tabview.esm.js +165 -27
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +195 -58
- 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.d.ts +2 -1
- package/tieredmenu/tieredmenu.esm.js +8 -3
- 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.d.ts +2 -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 +65 -36
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +0 -1
- package/tooltip/tooltip.esm.js +36 -8
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +64 -37
- package/tooltip/tooltip.min.css +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +2 -0
- package/tree/tree.cjs.js +52 -51
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +14 -3
- 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 +11 -3
- package/treeselect/treeselect.esm.js +10 -6
- 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 +1363 -312
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +10 -3
- package/treetable/treetable.esm.js +1267 -216
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1362 -313
- 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 +154 -33
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +17 -0
- package/utils/utils.esm.js +153 -33
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +155 -34
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +44 -34
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +29 -19
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +45 -35
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +2 -2
- 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
- package/util.d.ts +0 -1
|
@@ -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 }; }
|
|
@@ -281,7 +281,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
281
281
|
}, {
|
|
282
282
|
key: "renderTooltip",
|
|
283
283
|
value: function renderTooltip() {
|
|
284
|
-
this.tooltip =
|
|
284
|
+
this.tooltip = tooltip.tip({
|
|
285
285
|
target: this.element,
|
|
286
286
|
content: this.props.tooltip,
|
|
287
287
|
options: this.props.tooltipOptions
|
|
@@ -297,18 +297,19 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
297
297
|
value: function render() {
|
|
298
298
|
var _this2 = this;
|
|
299
299
|
|
|
300
|
-
var
|
|
301
|
-
|
|
300
|
+
var checked = this.isChecked();
|
|
301
|
+
var containerClass = utils.classNames('p-checkbox p-component', {
|
|
302
|
+
'p-checkbox-checked': checked,
|
|
302
303
|
'p-checkbox-disabled': this.props.disabled,
|
|
303
304
|
'p-checkbox-focused': this.state.focused
|
|
304
305
|
}, this.props.className);
|
|
305
|
-
var boxClass =
|
|
306
|
-
'p-highlight':
|
|
306
|
+
var boxClass = utils.classNames('p-checkbox-box', {
|
|
307
|
+
'p-highlight': checked,
|
|
307
308
|
'p-disabled': this.props.disabled,
|
|
308
309
|
'p-focus': this.state.focused
|
|
309
310
|
});
|
|
310
|
-
var
|
|
311
|
-
return /*#__PURE__*/React__default[
|
|
311
|
+
var icon = checked && this.props.icon;
|
|
312
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
312
313
|
ref: function ref(el) {
|
|
313
314
|
return _this2.element = el;
|
|
314
315
|
},
|
|
@@ -318,31 +319,34 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
318
319
|
onClick: this.onClick,
|
|
319
320
|
onContextMenu: this.props.onContextMenu,
|
|
320
321
|
onMouseDown: this.props.onMouseDown
|
|
321
|
-
}, /*#__PURE__*/React__default[
|
|
322
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
322
323
|
className: "p-hidden-accessible"
|
|
323
|
-
}, /*#__PURE__*/React__default[
|
|
324
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
324
325
|
ref: this.inputRef,
|
|
325
326
|
type: "checkbox",
|
|
326
327
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
327
328
|
id: this.props.inputId,
|
|
328
329
|
name: this.props.name,
|
|
329
330
|
tabIndex: this.props.tabIndex,
|
|
330
|
-
defaultChecked:
|
|
331
|
+
defaultChecked: checked,
|
|
331
332
|
onKeyDown: this.onKeyDown,
|
|
332
333
|
onFocus: this.onFocus,
|
|
333
334
|
onBlur: this.onBlur,
|
|
334
335
|
disabled: this.props.disabled,
|
|
335
336
|
readOnly: this.props.readOnly,
|
|
336
337
|
required: this.props.required
|
|
337
|
-
})), /*#__PURE__*/React__default[
|
|
338
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
338
339
|
className: boxClass,
|
|
339
340
|
ref: function ref(el) {
|
|
340
341
|
return _this2.box = el;
|
|
341
342
|
},
|
|
342
343
|
role: "checkbox",
|
|
343
|
-
"aria-checked":
|
|
344
|
-
},
|
|
345
|
-
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
|
|
346
350
|
})));
|
|
347
351
|
}
|
|
348
352
|
}]);
|
|
@@ -417,16 +421,16 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
417
421
|
key: "renderFilterElement",
|
|
418
422
|
value: function renderFilterElement() {
|
|
419
423
|
if (this.props.filter) {
|
|
420
|
-
return /*#__PURE__*/React__default[
|
|
424
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
421
425
|
className: "p-multiselect-filter-container"
|
|
422
|
-
}, /*#__PURE__*/React__default[
|
|
426
|
+
}, /*#__PURE__*/React__default["default"].createElement(inputtext.InputText, {
|
|
423
427
|
type: "text",
|
|
424
428
|
role: "textbox",
|
|
425
429
|
value: this.props.filterValue,
|
|
426
430
|
onChange: this.onFilter,
|
|
427
431
|
className: "p-multiselect-filter",
|
|
428
432
|
placeholder: this.props.filterPlaceholder
|
|
429
|
-
}), /*#__PURE__*/React__default[
|
|
433
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
430
434
|
className: "p-multiselect-filter-icon pi pi-search"
|
|
431
435
|
}));
|
|
432
436
|
}
|
|
@@ -437,20 +441,20 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
437
441
|
key: "render",
|
|
438
442
|
value: function render() {
|
|
439
443
|
var filterElement = this.renderFilterElement();
|
|
440
|
-
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default[
|
|
444
|
+
var checkboxElement = this.props.showSelectAll && /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
441
445
|
checked: this.props.selectAll,
|
|
442
446
|
onChange: this.onSelectAll,
|
|
443
447
|
role: "checkbox",
|
|
444
448
|
"aria-checked": this.props.selectAll
|
|
445
449
|
});
|
|
446
|
-
var closeElement = /*#__PURE__*/React__default[
|
|
450
|
+
var closeElement = /*#__PURE__*/React__default["default"].createElement("button", {
|
|
447
451
|
type: "button",
|
|
448
452
|
className: "p-multiselect-close p-link",
|
|
449
453
|
onClick: this.props.onClose
|
|
450
|
-
}, /*#__PURE__*/React__default[
|
|
454
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
451
455
|
className: "p-multiselect-close-icon pi pi-times"
|
|
452
|
-
}), /*#__PURE__*/React__default[
|
|
453
|
-
var element = /*#__PURE__*/React__default[
|
|
456
|
+
}), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
457
|
+
var element = /*#__PURE__*/React__default["default"].createElement("div", {
|
|
454
458
|
className: "p-multiselect-header"
|
|
455
459
|
}, checkboxElement, filterElement, closeElement);
|
|
456
460
|
|
|
@@ -468,7 +472,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
468
472
|
element: element,
|
|
469
473
|
props: this.props
|
|
470
474
|
};
|
|
471
|
-
return
|
|
475
|
+
return utils.ObjectUtils.getJSXElement(this.props.template, defaultOptions);
|
|
472
476
|
}
|
|
473
477
|
|
|
474
478
|
return element;
|
|
@@ -522,32 +526,32 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
522
526
|
}, {
|
|
523
527
|
key: "render",
|
|
524
528
|
value: function render() {
|
|
525
|
-
var className =
|
|
529
|
+
var className = utils.classNames('p-multiselect-item', {
|
|
526
530
|
'p-highlight': this.props.selected,
|
|
527
531
|
'p-disabled': this.props.disabled
|
|
528
532
|
}, this.props.option.className);
|
|
529
|
-
var checkboxClassName =
|
|
533
|
+
var checkboxClassName = utils.classNames('p-checkbox-box', {
|
|
530
534
|
'p-highlight': this.props.selected
|
|
531
535
|
});
|
|
532
|
-
var checkboxIcon =
|
|
536
|
+
var checkboxIcon = utils.classNames('p-checkbox-icon p-c', {
|
|
533
537
|
'pi pi-check': this.props.selected
|
|
534
538
|
});
|
|
535
|
-
var content = this.props.template ?
|
|
539
|
+
var content = this.props.template ? utils.ObjectUtils.getJSXElement(this.props.template, this.props.option) : this.props.label;
|
|
536
540
|
var tabIndex = this.props.disabled ? null : this.props.tabIndex || 0;
|
|
537
|
-
return /*#__PURE__*/React__default[
|
|
541
|
+
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
538
542
|
className: className,
|
|
539
543
|
onClick: this.onClick,
|
|
540
544
|
tabIndex: tabIndex,
|
|
541
545
|
onKeyDown: this.onKeyDown,
|
|
542
546
|
role: "option",
|
|
543
547
|
"aria-selected": this.props.selected
|
|
544
|
-
}, /*#__PURE__*/React__default[
|
|
548
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
545
549
|
className: "p-checkbox p-component"
|
|
546
|
-
}, /*#__PURE__*/React__default[
|
|
550
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
547
551
|
className: checkboxClassName
|
|
548
|
-
}, /*#__PURE__*/React__default[
|
|
552
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
549
553
|
className: checkboxIcon
|
|
550
|
-
}))), /*#__PURE__*/React__default[
|
|
554
|
+
}))), /*#__PURE__*/React__default["default"].createElement("span", null, content), /*#__PURE__*/React__default["default"].createElement(ripple.Ripple, null));
|
|
551
555
|
}
|
|
552
556
|
}]);
|
|
553
557
|
|
|
@@ -621,7 +625,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
621
625
|
}, {
|
|
622
626
|
key: "renderHeader",
|
|
623
627
|
value: function renderHeader() {
|
|
624
|
-
return /*#__PURE__*/React__default[
|
|
628
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectHeader, {
|
|
625
629
|
filter: this.props.filter,
|
|
626
630
|
filterValue: this.props.filterValue,
|
|
627
631
|
onFilter: this.onFilterInputChange,
|
|
@@ -637,8 +641,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
637
641
|
key: "renderFooter",
|
|
638
642
|
value: function renderFooter() {
|
|
639
643
|
if (this.props.panelFooterTemplate) {
|
|
640
|
-
var content =
|
|
641
|
-
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", {
|
|
642
646
|
className: "p-multiselect-footer"
|
|
643
647
|
}, content);
|
|
644
648
|
}
|
|
@@ -659,7 +663,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
659
663
|
var disabled = _this3.props.isOptionDisabled(option);
|
|
660
664
|
|
|
661
665
|
var tabIndex = disabled ? null : _this3.props.tabIndex || 0;
|
|
662
|
-
return /*#__PURE__*/React__default[
|
|
666
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
663
667
|
key: optionKey,
|
|
664
668
|
label: optionLabel,
|
|
665
669
|
option: option,
|
|
@@ -675,8 +679,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
675
679
|
}, {
|
|
676
680
|
key: "renderEmptyFilter",
|
|
677
681
|
value: function renderEmptyFilter() {
|
|
678
|
-
var emptyFilterMessage =
|
|
679
|
-
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", {
|
|
680
684
|
className: "p-multiselect-empty-message"
|
|
681
685
|
}, emptyFilterMessage);
|
|
682
686
|
}
|
|
@@ -684,12 +688,12 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
684
688
|
key: "renderItem",
|
|
685
689
|
value: function renderItem(option, index) {
|
|
686
690
|
if (this.props.optionGroupLabel) {
|
|
687
|
-
var groupContent = this.props.optionGroupTemplate ?
|
|
691
|
+
var groupContent = this.props.optionGroupTemplate ? utils.ObjectUtils.getJSXElement(this.props.optionGroupTemplate, option, index) : this.props.getOptionGroupLabel(option);
|
|
688
692
|
var groupChildrenContent = this.renderGroupChildren(option);
|
|
689
693
|
var key = index + '_' + this.props.getOptionGroupRenderKey(option);
|
|
690
|
-
return /*#__PURE__*/React__default[
|
|
694
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
691
695
|
key: key
|
|
692
|
-
}, /*#__PURE__*/React__default[
|
|
696
|
+
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
693
697
|
className: "p-multiselect-item-group"
|
|
694
698
|
}, groupContent), groupChildrenContent);
|
|
695
699
|
} else {
|
|
@@ -697,7 +701,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
697
701
|
var optionKey = index + '_' + this.props.getOptionRenderKey(option);
|
|
698
702
|
var disabled = this.props.isOptionDisabled(option);
|
|
699
703
|
var tabIndex = disabled ? null : this.props.tabIndex || 0;
|
|
700
|
-
return /*#__PURE__*/React__default[
|
|
704
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectItem, {
|
|
701
705
|
key: optionKey,
|
|
702
706
|
label: optionLabel,
|
|
703
707
|
option: option,
|
|
@@ -735,7 +739,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
735
739
|
style: _objectSpread$1(_objectSpread$1({}, this.props.virtualScrollerOptions.style), {
|
|
736
740
|
height: this.props.scrollHeight
|
|
737
741
|
}),
|
|
738
|
-
className:
|
|
742
|
+
className: utils.classNames('p-multiselect-items-wrapper', this.props.virtualScrollerOptions.className),
|
|
739
743
|
items: this.props.visibleOptions,
|
|
740
744
|
onLazyLoad: function onLazyLoad(event) {
|
|
741
745
|
return _this5.props.virtualScrollerOptions.onLazyLoad(_objectSpread$1(_objectSpread$1({}, event), {
|
|
@@ -746,9 +750,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
746
750
|
return item && _this5.renderItem(item, options.index);
|
|
747
751
|
},
|
|
748
752
|
contentTemplate: function contentTemplate(options) {
|
|
749
|
-
var className =
|
|
753
|
+
var className = utils.classNames('p-multiselect-items p-component', options.className);
|
|
750
754
|
var content = _this5.isEmptyFilter() ? _this5.renderEmptyFilter() : options.children;
|
|
751
|
-
return /*#__PURE__*/React__default[
|
|
755
|
+
return /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
752
756
|
ref: options.contentRef,
|
|
753
757
|
className: className,
|
|
754
758
|
role: "listbox",
|
|
@@ -757,19 +761,19 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
757
761
|
}
|
|
758
762
|
});
|
|
759
763
|
|
|
760
|
-
return /*#__PURE__*/React__default[
|
|
764
|
+
return /*#__PURE__*/React__default["default"].createElement(virtualscroller.VirtualScroller, _extends({
|
|
761
765
|
ref: function ref(el) {
|
|
762
766
|
return _this5.virtualScrollerRef = el;
|
|
763
767
|
}
|
|
764
768
|
}, virtualScrollerProps));
|
|
765
769
|
} else {
|
|
766
770
|
var items = this.renderItems();
|
|
767
|
-
return /*#__PURE__*/React__default[
|
|
771
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
768
772
|
className: "p-multiselect-items-wrapper",
|
|
769
773
|
style: {
|
|
770
774
|
maxHeight: this.props.scrollHeight
|
|
771
775
|
}
|
|
772
|
-
}, /*#__PURE__*/React__default[
|
|
776
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
773
777
|
className: "p-multiselect-items p-component",
|
|
774
778
|
role: "listbox",
|
|
775
779
|
"aria-multiselectable": true
|
|
@@ -779,13 +783,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
779
783
|
}, {
|
|
780
784
|
key: "renderElement",
|
|
781
785
|
value: function renderElement() {
|
|
782
|
-
var panelClassName =
|
|
786
|
+
var panelClassName = utils.classNames('p-multiselect-panel p-component', {
|
|
783
787
|
'p-multiselect-limited': !this.props.allowOptionSelect()
|
|
784
788
|
}, this.props.panelClassName);
|
|
785
789
|
var header = this.renderHeader();
|
|
786
790
|
var content = this.renderContent();
|
|
787
791
|
var footer = this.renderFooter();
|
|
788
|
-
return /*#__PURE__*/React__default[
|
|
792
|
+
return /*#__PURE__*/React__default["default"].createElement(csstransition.CSSTransition, {
|
|
789
793
|
nodeRef: this.props.forwardRef,
|
|
790
794
|
classNames: "p-connected-overlay",
|
|
791
795
|
in: this.props.in,
|
|
@@ -799,7 +803,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
799
803
|
onEntered: this.props.onEntered,
|
|
800
804
|
onExit: this.props.onExit,
|
|
801
805
|
onExited: this.props.onExited
|
|
802
|
-
}, /*#__PURE__*/React__default[
|
|
806
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
803
807
|
ref: this.props.forwardRef,
|
|
804
808
|
className: panelClassName,
|
|
805
809
|
style: this.props.panelStyle,
|
|
@@ -810,7 +814,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
810
814
|
key: "render",
|
|
811
815
|
value: function render() {
|
|
812
816
|
var element = this.renderElement();
|
|
813
|
-
return /*#__PURE__*/React__default[
|
|
817
|
+
return /*#__PURE__*/React__default["default"].createElement(portal.Portal, {
|
|
814
818
|
element: element,
|
|
815
819
|
appendTo: this.props.appendTo
|
|
816
820
|
});
|
|
@@ -820,8 +824,8 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
820
824
|
return MultiSelectPanelComponent;
|
|
821
825
|
}(React.Component);
|
|
822
826
|
|
|
823
|
-
var MultiSelectPanel = /*#__PURE__*/React__default[
|
|
824
|
-
return /*#__PURE__*/React__default[
|
|
827
|
+
var MultiSelectPanel = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
|
|
828
|
+
return /*#__PURE__*/React__default["default"].createElement(MultiSelectPanelComponent, _extends({
|
|
825
829
|
forwardRef: ref
|
|
826
830
|
}, props));
|
|
827
831
|
});
|
|
@@ -890,7 +894,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
890
894
|
_createClass(MultiSelect, [{
|
|
891
895
|
key: "onPanelClick",
|
|
892
896
|
value: function onPanelClick(event) {
|
|
893
|
-
|
|
897
|
+
overlayservice.OverlayService.emit('overlay-click', {
|
|
894
898
|
originalEvent: event,
|
|
895
899
|
target: this.container
|
|
896
900
|
});
|
|
@@ -917,7 +921,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
917
921
|
var selected = this.isSelected(option);
|
|
918
922
|
var allowOptionSelect = this.allowOptionSelect();
|
|
919
923
|
if (selected) this.updateModel(originalEvent, this.props.value.filter(function (val) {
|
|
920
|
-
return !
|
|
924
|
+
return !utils.ObjectUtils.equals(isOptionValueUsed ? val : _this2.getOptionValue(val), optionValue, _this2.equalityKey());
|
|
921
925
|
}));else if (allowOptionSelect) this.updateModel(originalEvent, [].concat(_toConsumableArray(this.props.value || []), [optionValue]));
|
|
922
926
|
}
|
|
923
927
|
}, {
|
|
@@ -967,18 +971,18 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
967
971
|
key: "findNextItem",
|
|
968
972
|
value: function findNextItem(item) {
|
|
969
973
|
var nextItem = item.nextElementSibling;
|
|
970
|
-
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;
|
|
971
975
|
}
|
|
972
976
|
}, {
|
|
973
977
|
key: "findPrevItem",
|
|
974
978
|
value: function findPrevItem(item) {
|
|
975
979
|
var prevItem = item.previousElementSibling;
|
|
976
|
-
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;
|
|
977
981
|
}
|
|
978
982
|
}, {
|
|
979
983
|
key: "onClick",
|
|
980
984
|
value: function onClick(event) {
|
|
981
|
-
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)) {
|
|
982
986
|
if (this.state.overlayVisible) {
|
|
983
987
|
this.hide();
|
|
984
988
|
} else {
|
|
@@ -986,6 +990,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
986
990
|
}
|
|
987
991
|
|
|
988
992
|
this.inputRef.current.focus();
|
|
993
|
+
event.preventDefault();
|
|
989
994
|
}
|
|
990
995
|
}
|
|
991
996
|
}, {
|
|
@@ -1015,7 +1020,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1015
1020
|
|
|
1016
1021
|
case 9:
|
|
1017
1022
|
if (this.state.overlayVisible) {
|
|
1018
|
-
var firstFocusableElement =
|
|
1023
|
+
var firstFocusableElement = utils.DomHandler.getFirstFocusableElement(this.overlayRef.current);
|
|
1019
1024
|
|
|
1020
1025
|
if (firstFocusableElement) {
|
|
1021
1026
|
firstFocusableElement.focus();
|
|
@@ -1067,8 +1072,6 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1067
1072
|
return _this3.getOptionValue(option);
|
|
1068
1073
|
});
|
|
1069
1074
|
}
|
|
1070
|
-
|
|
1071
|
-
value = _toConsumableArray(new Set([].concat(_toConsumableArray(value), _toConsumableArray(this.props.value || []))));
|
|
1072
1075
|
}
|
|
1073
1076
|
|
|
1074
1077
|
this.updateModel(event.originalEvent, value);
|
|
@@ -1139,18 +1142,17 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1139
1142
|
}, {
|
|
1140
1143
|
key: "onOverlayEnter",
|
|
1141
1144
|
value: function onOverlayEnter(callback) {
|
|
1142
|
-
|
|
1145
|
+
utils.ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact__default["default"].autoZIndex, PrimeReact__default["default"].zIndex['overlay']);
|
|
1143
1146
|
this.alignOverlay();
|
|
1144
1147
|
this.scrollInView();
|
|
1145
1148
|
callback && callback();
|
|
1146
1149
|
}
|
|
1147
1150
|
}, {
|
|
1148
1151
|
key: "onOverlayEntered",
|
|
1149
|
-
value: function onOverlayEntered(
|
|
1152
|
+
value: function onOverlayEntered() {
|
|
1150
1153
|
this.bindDocumentClickListener();
|
|
1151
1154
|
this.bindScrollListener();
|
|
1152
1155
|
this.bindResizeListener();
|
|
1153
|
-
callback && callback();
|
|
1154
1156
|
this.props.onShow && this.props.onShow();
|
|
1155
1157
|
}
|
|
1156
1158
|
}, {
|
|
@@ -1167,18 +1169,18 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1167
1169
|
this.resetFilter();
|
|
1168
1170
|
}
|
|
1169
1171
|
|
|
1170
|
-
|
|
1172
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1171
1173
|
this.props.onHide && this.props.onHide();
|
|
1172
1174
|
}
|
|
1173
1175
|
}, {
|
|
1174
1176
|
key: "alignOverlay",
|
|
1175
1177
|
value: function alignOverlay() {
|
|
1176
|
-
|
|
1178
|
+
utils.DomHandler.alignOverlay(this.overlayRef.current, this.label.parentElement, this.props.appendTo || PrimeReact__default["default"].appendTo);
|
|
1177
1179
|
}
|
|
1178
1180
|
}, {
|
|
1179
1181
|
key: "scrollInView",
|
|
1180
1182
|
value: function scrollInView() {
|
|
1181
|
-
var highlightItem =
|
|
1183
|
+
var highlightItem = utils.DomHandler.findSingle(this.overlayRef.current, 'li.p-highlight');
|
|
1182
1184
|
|
|
1183
1185
|
if (highlightItem) {
|
|
1184
1186
|
highlightItem.scrollIntoView({
|
|
@@ -1225,7 +1227,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1225
1227
|
var key = this.equalityKey();
|
|
1226
1228
|
return list.findIndex(function (item) {
|
|
1227
1229
|
return value.some(function (val) {
|
|
1228
|
-
return
|
|
1230
|
+
return utils.ObjectUtils.equals(val, _this6.getOptionValue(item), key);
|
|
1229
1231
|
});
|
|
1230
1232
|
});
|
|
1231
1233
|
}
|
|
@@ -1241,7 +1243,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1241
1243
|
var isOptionValueUsed = this.isOptionValueUsed(option);
|
|
1242
1244
|
var key = this.equalityKey();
|
|
1243
1245
|
selected = this.props.value.some(function (val) {
|
|
1244
|
-
return
|
|
1246
|
+
return utils.ObjectUtils.equals(isOptionValueUsed ? val : _this7.getOptionValue(val), optionValue, key);
|
|
1245
1247
|
});
|
|
1246
1248
|
}
|
|
1247
1249
|
|
|
@@ -1291,7 +1293,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1291
1293
|
var option = _step2.value;
|
|
1292
1294
|
var optionValue = this.getOptionValue(option);
|
|
1293
1295
|
|
|
1294
|
-
if (
|
|
1296
|
+
if (utils.ObjectUtils.equals(optionValue, val, key)) {
|
|
1295
1297
|
return option;
|
|
1296
1298
|
}
|
|
1297
1299
|
}
|
|
@@ -1352,7 +1354,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1352
1354
|
var _this11 = this;
|
|
1353
1355
|
|
|
1354
1356
|
if (!this.scrollHandler) {
|
|
1355
|
-
this.scrollHandler = new
|
|
1357
|
+
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.container, function () {
|
|
1356
1358
|
if (_this11.state.overlayVisible) {
|
|
1357
1359
|
_this11.hide();
|
|
1358
1360
|
}
|
|
@@ -1375,7 +1377,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1375
1377
|
|
|
1376
1378
|
if (!this.resizeListener) {
|
|
1377
1379
|
this.resizeListener = function () {
|
|
1378
|
-
if (_this12.state.overlayVisible && !
|
|
1380
|
+
if (_this12.state.overlayVisible && !utils.DomHandler.isTouchDevice()) {
|
|
1379
1381
|
_this12.hide();
|
|
1380
1382
|
}
|
|
1381
1383
|
};
|
|
@@ -1399,7 +1401,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1399
1401
|
}, {
|
|
1400
1402
|
key: "isClearClicked",
|
|
1401
1403
|
value: function isClearClicked(event) {
|
|
1402
|
-
return
|
|
1404
|
+
return utils.DomHandler.hasClass(event.target, 'p-multiselect-clear-icon');
|
|
1403
1405
|
}
|
|
1404
1406
|
}, {
|
|
1405
1407
|
key: "isPanelClicked",
|
|
@@ -1465,7 +1467,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1465
1467
|
this.tooltip = null;
|
|
1466
1468
|
}
|
|
1467
1469
|
|
|
1468
|
-
|
|
1470
|
+
utils.ZIndexUtils.clear(this.overlayRef.current);
|
|
1469
1471
|
}
|
|
1470
1472
|
}, {
|
|
1471
1473
|
key: "hasFilter",
|
|
@@ -1482,7 +1484,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1482
1484
|
} else {
|
|
1483
1485
|
var visibleOptions = this.getVisibleOptions();
|
|
1484
1486
|
|
|
1485
|
-
if (visibleOptions
|
|
1487
|
+
if (utils.ObjectUtils.isEmpty(visibleOptions)) {
|
|
1486
1488
|
return false;
|
|
1487
1489
|
}
|
|
1488
1490
|
|
|
@@ -1548,13 +1550,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1548
1550
|
}, {
|
|
1549
1551
|
key: "getOptionLabel",
|
|
1550
1552
|
value: function getOptionLabel(option) {
|
|
1551
|
-
return this.props.optionLabel ?
|
|
1553
|
+
return this.props.optionLabel ? utils.ObjectUtils.resolveFieldData(option, this.props.optionLabel) : option && option['label'] !== undefined ? option['label'] : option;
|
|
1552
1554
|
}
|
|
1553
1555
|
}, {
|
|
1554
1556
|
key: "getOptionValue",
|
|
1555
1557
|
value: function getOptionValue(option) {
|
|
1556
1558
|
if (this.props.optionValue) {
|
|
1557
|
-
var data =
|
|
1559
|
+
var data = utils.ObjectUtils.resolveFieldData(option, this.props.optionValue);
|
|
1558
1560
|
return data !== null ? data : option;
|
|
1559
1561
|
}
|
|
1560
1562
|
|
|
@@ -1563,28 +1565,28 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1563
1565
|
}, {
|
|
1564
1566
|
key: "getOptionRenderKey",
|
|
1565
1567
|
value: function getOptionRenderKey(option) {
|
|
1566
|
-
return this.props.dataKey ?
|
|
1568
|
+
return this.props.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.props.dataKey) : this.getOptionLabel(option);
|
|
1567
1569
|
}
|
|
1568
1570
|
}, {
|
|
1569
1571
|
key: "getOptionGroupRenderKey",
|
|
1570
1572
|
value: function getOptionGroupRenderKey(optionGroup) {
|
|
1571
|
-
return
|
|
1573
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1572
1574
|
}
|
|
1573
1575
|
}, {
|
|
1574
1576
|
key: "getOptionGroupLabel",
|
|
1575
1577
|
value: function getOptionGroupLabel(optionGroup) {
|
|
1576
|
-
return
|
|
1578
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupLabel);
|
|
1577
1579
|
}
|
|
1578
1580
|
}, {
|
|
1579
1581
|
key: "getOptionGroupChildren",
|
|
1580
1582
|
value: function getOptionGroupChildren(optionGroup) {
|
|
1581
|
-
return
|
|
1583
|
+
return utils.ObjectUtils.resolveFieldData(optionGroup, this.props.optionGroupChildren);
|
|
1582
1584
|
}
|
|
1583
1585
|
}, {
|
|
1584
1586
|
key: "isOptionDisabled",
|
|
1585
1587
|
value: function isOptionDisabled(option) {
|
|
1586
1588
|
if (this.props.optionDisabled) {
|
|
1587
|
-
return
|
|
1589
|
+
return utils.ObjectUtils.isFunction(this.props.optionDisabled) ? this.props.optionDisabled(option) : utils.ObjectUtils.resolveFieldData(option, this.props.optionDisabled);
|
|
1588
1590
|
}
|
|
1589
1591
|
|
|
1590
1592
|
return option && option['disabled'] !== undefined ? option['disabled'] : false;
|
|
@@ -1652,7 +1654,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1652
1654
|
value: function removeChip(event, item) {
|
|
1653
1655
|
var key = this.equalityKey();
|
|
1654
1656
|
var value = this.props.value.filter(function (val) {
|
|
1655
|
-
return !
|
|
1657
|
+
return !utils.ObjectUtils.equals(val, item, key);
|
|
1656
1658
|
});
|
|
1657
1659
|
this.updateModel(event, value);
|
|
1658
1660
|
}
|
|
@@ -1673,7 +1675,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1673
1675
|
var label;
|
|
1674
1676
|
|
|
1675
1677
|
if (!this.isEmpty() && !this.props.fixedPlaceholder) {
|
|
1676
|
-
if (this.props.value.length
|
|
1678
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1679
|
+
return this.getSelectedItemsLabel();
|
|
1680
|
+
} else {
|
|
1677
1681
|
label = '';
|
|
1678
1682
|
|
|
1679
1683
|
for (var i = 0; i < this.props.value.length; i++) {
|
|
@@ -1685,8 +1689,6 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1685
1689
|
}
|
|
1686
1690
|
|
|
1687
1691
|
return label;
|
|
1688
|
-
} else {
|
|
1689
|
-
return this.getSelectedItemsLabel();
|
|
1690
1692
|
}
|
|
1691
1693
|
}
|
|
1692
1694
|
|
|
@@ -1699,34 +1701,37 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1699
1701
|
|
|
1700
1702
|
if (this.props.selectedItemTemplate) {
|
|
1701
1703
|
if (!this.isEmpty()) {
|
|
1702
|
-
if (this.props.value.length
|
|
1704
|
+
if (this.props.maxSelectedLabels && this.props.value.length > this.props.maxSelectedLabels) {
|
|
1705
|
+
return this.getSelectedItemsLabel();
|
|
1706
|
+
} else {
|
|
1703
1707
|
return this.props.value.map(function (val, index) {
|
|
1704
|
-
var item =
|
|
1705
|
-
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, {
|
|
1706
1710
|
key: index
|
|
1707
1711
|
}, item);
|
|
1708
1712
|
});
|
|
1709
|
-
} else {
|
|
1710
|
-
return this.getSelectedItemsLabel();
|
|
1711
1713
|
}
|
|
1712
1714
|
} else {
|
|
1713
|
-
return
|
|
1715
|
+
return utils.ObjectUtils.getJSXElement(this.props.selectedItemTemplate);
|
|
1714
1716
|
}
|
|
1715
1717
|
} else {
|
|
1716
1718
|
if (this.props.display === 'chip' && !this.isEmpty()) {
|
|
1717
|
-
|
|
1719
|
+
var value = this.props.value.slice(0, this.props.maxSelectedLabels || this.props.value.length);
|
|
1720
|
+
return value.map(function (val) {
|
|
1718
1721
|
var label = _this14.getLabelByValue(val);
|
|
1719
1722
|
|
|
1720
|
-
return /*#__PURE__*/React__default[
|
|
1723
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1721
1724
|
className: "p-multiselect-token",
|
|
1722
1725
|
key: label
|
|
1723
|
-
}, /*#__PURE__*/React__default[
|
|
1726
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1724
1727
|
className: "p-multiselect-token-label"
|
|
1725
|
-
}, label), !_this14.props.disabled &&
|
|
1726
|
-
className:
|
|
1728
|
+
}, label), !_this14.props.disabled && utils.IconUtils.getJSXIcon(_this14.props.removeIcon, {
|
|
1729
|
+
className: 'p-multiselect-token-icon',
|
|
1727
1730
|
onClick: function onClick(e) {
|
|
1728
1731
|
return _this14.removeChip(e, val);
|
|
1729
1732
|
}
|
|
1733
|
+
}, {
|
|
1734
|
+
props: _this14.props
|
|
1730
1735
|
}));
|
|
1731
1736
|
});
|
|
1732
1737
|
}
|
|
@@ -1737,7 +1742,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1737
1742
|
}, {
|
|
1738
1743
|
key: "renderTooltip",
|
|
1739
1744
|
value: function renderTooltip() {
|
|
1740
|
-
this.tooltip =
|
|
1745
|
+
this.tooltip = tooltip.tip({
|
|
1741
1746
|
target: this.container,
|
|
1742
1747
|
content: this.props.tooltip,
|
|
1743
1748
|
options: this.props.tooltipOptions
|
|
@@ -1751,7 +1756,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1751
1756
|
var empty = this.isEmpty();
|
|
1752
1757
|
|
|
1753
1758
|
if (!empty && this.props.showClear && !this.props.disabled) {
|
|
1754
|
-
return /*#__PURE__*/React__default[
|
|
1759
|
+
return /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1755
1760
|
className: "p-multiselect-clear-icon pi pi-times",
|
|
1756
1761
|
onClick: function onClick(e) {
|
|
1757
1762
|
return _this15.updateModel(e, null);
|
|
@@ -1768,17 +1773,17 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1768
1773
|
|
|
1769
1774
|
var empty = this.isEmpty();
|
|
1770
1775
|
var content = this.getLabelContent();
|
|
1771
|
-
var labelClassName =
|
|
1776
|
+
var labelClassName = utils.classNames('p-multiselect-label', {
|
|
1772
1777
|
'p-placeholder': empty && this.props.placeholder,
|
|
1773
1778
|
'p-multiselect-label-empty': empty && !this.props.placeholder && !this.props.selectedItemTemplate,
|
|
1774
|
-
'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
|
|
1775
1780
|
});
|
|
1776
|
-
return /*#__PURE__*/React__default[
|
|
1781
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1777
1782
|
ref: function ref(el) {
|
|
1778
1783
|
return _this16.label = el;
|
|
1779
1784
|
},
|
|
1780
1785
|
className: "p-multiselect-label-container"
|
|
1781
|
-
}, /*#__PURE__*/React__default[
|
|
1786
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1782
1787
|
className: labelClassName
|
|
1783
1788
|
}, content || this.props.placeholder || 'empty'));
|
|
1784
1789
|
}
|
|
@@ -1787,7 +1792,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1787
1792
|
value: function render() {
|
|
1788
1793
|
var _this17 = this;
|
|
1789
1794
|
|
|
1790
|
-
var className =
|
|
1795
|
+
var className = utils.classNames('p-multiselect p-component p-inputwrapper', {
|
|
1791
1796
|
'p-multiselect-chip': this.props.display === 'chip',
|
|
1792
1797
|
'p-disabled': this.props.disabled,
|
|
1793
1798
|
'p-multiselect-clearable': this.props.showClear && !this.props.disabled,
|
|
@@ -1795,11 +1800,10 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1795
1800
|
'p-inputwrapper-filled': this.props.value && this.props.value.length > 0,
|
|
1796
1801
|
'p-inputwrapper-focus': this.state.focused || this.state.overlayVisible
|
|
1797
1802
|
}, this.props.className);
|
|
1798
|
-
var iconClassName = core.classNames('p-multiselect-trigger-icon p-c', this.props.dropdownIcon);
|
|
1799
1803
|
var visibleOptions = this.getVisibleOptions();
|
|
1800
1804
|
var label = this.renderLabel();
|
|
1801
1805
|
var clearIcon = this.renderClearIcon();
|
|
1802
|
-
return /*#__PURE__*/React__default[
|
|
1806
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1803
1807
|
id: this.props.id,
|
|
1804
1808
|
className: className,
|
|
1805
1809
|
onClick: this.onClick,
|
|
@@ -1807,9 +1811,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1807
1811
|
return _this17.container = el;
|
|
1808
1812
|
},
|
|
1809
1813
|
style: this.props.style
|
|
1810
|
-
}, /*#__PURE__*/React__default[
|
|
1814
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1811
1815
|
className: "p-hidden-accessible"
|
|
1812
|
-
}, /*#__PURE__*/React__default[
|
|
1816
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
1813
1817
|
ref: this.inputRef,
|
|
1814
1818
|
id: this.props.inputId,
|
|
1815
1819
|
name: this.props.name,
|
|
@@ -1824,11 +1828,13 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1824
1828
|
"aria-expanded": this.state.overlayVisible,
|
|
1825
1829
|
disabled: this.props.disabled,
|
|
1826
1830
|
tabIndex: this.props.tabIndex
|
|
1827
|
-
})), label, clearIcon, /*#__PURE__*/React__default[
|
|
1831
|
+
})), label, clearIcon, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1828
1832
|
className: "p-multiselect-trigger"
|
|
1829
|
-
},
|
|
1830
|
-
className:
|
|
1831
|
-
}
|
|
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({
|
|
1832
1838
|
ref: this.overlayRef,
|
|
1833
1839
|
visibleOptions: visibleOptions
|
|
1834
1840
|
}, this.props, {
|
|
@@ -1891,7 +1897,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1891
1897
|
filterMatchMode: 'contains',
|
|
1892
1898
|
filterPlaceholder: null,
|
|
1893
1899
|
filterLocale: undefined,
|
|
1894
|
-
emptyFilterMessage:
|
|
1900
|
+
emptyFilterMessage: null,
|
|
1895
1901
|
resetFilterOnHide: false,
|
|
1896
1902
|
tabIndex: 0,
|
|
1897
1903
|
dataKey: null,
|
|
@@ -1899,7 +1905,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1899
1905
|
appendTo: null,
|
|
1900
1906
|
tooltip: null,
|
|
1901
1907
|
tooltipOptions: null,
|
|
1902
|
-
maxSelectedLabels:
|
|
1908
|
+
maxSelectedLabels: null,
|
|
1903
1909
|
selectionLimit: null,
|
|
1904
1910
|
selectedItemsLabel: '{0} items selected',
|
|
1905
1911
|
ariaLabelledBy: null,
|
|
@@ -1909,6 +1915,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1909
1915
|
panelFooterTemplate: null,
|
|
1910
1916
|
transitionOptions: null,
|
|
1911
1917
|
dropdownIcon: 'pi pi-chevron-down',
|
|
1918
|
+
removeIcon: 'pi pi-times-circle',
|
|
1912
1919
|
showSelectAll: true,
|
|
1913
1920
|
selectAll: false,
|
|
1914
1921
|
onChange: null,
|
|
@@ -1926,4 +1933,4 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1926
1933
|
|
|
1927
1934
|
return exports;
|
|
1928
1935
|
|
|
1929
|
-
}({}, React, primereact.
|
|
1936
|
+
})({}, React, primereact.utils, primereact.tooltip, primereact.csstransition, primereact.portal, primereact.inputtext, primereact.ripple, primereact.virtualscroller, primereact.api, primereact.overlayservice);
|