primereact 7.0.0-rc.2 → 7.2.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/LICENSE.md +1 -1
- package/README.md +35 -10
- package/accordion/accordion.cjs.js +55 -42
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +7 -3
- package/accordion/accordion.esm.js +42 -29
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +55 -43
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +109 -52
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +96 -61
- package/api/api.esm.js +96 -39
- package/api/api.esm.min.js +1 -1
- package/api/api.js +110 -53
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +97 -89
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +11 -4
- package/autocomplete/autocomplete.esm.js +34 -26
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +93 -90
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +21 -20
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +2 -1
- package/avatar/avatar.esm.js +16 -15
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +22 -21
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +14 -14
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +12 -12
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +15 -15
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +14 -14
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +12 -12
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +15 -15
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +38 -27
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +28 -18
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -28
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +27 -27
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +12 -12
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +28 -28
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +44 -55
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +4 -11
- package/button/button.esm.js +33 -44
- package/button/button.esm.min.js +1 -1
- package/button/button.js +43 -56
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +209 -170
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -2
- package/calendar/calendar.esm.js +84 -45
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +205 -171
- package/calendar/calendar.min.css +1 -1
- package/calendar/calendar.min.js +1 -1
- package/captcha/captcha.cjs.js +12 -12
- package/captcha/captcha.cjs.min.js +1 -1
- package/captcha/captcha.esm.js +11 -11
- package/captcha/captcha.esm.min.js +1 -1
- package/captcha/captcha.js +13 -13
- package/captcha/captcha.min.js +1 -1
- package/card/card.cjs.js +24 -24
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +12 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +25 -25
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +60 -58
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +24 -23
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +59 -59
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +65 -61
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +2 -1
- package/cascadeselect/cascadeselect.esm.js +21 -17
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +62 -62
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +19 -21
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +14 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +18 -18
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +33 -28
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -1
- package/checkbox/checkbox.esm.js +26 -21
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +33 -29
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +27 -25
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +3 -4
- package/chip/chip.esm.js +22 -20
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +28 -26
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +59 -33
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +10 -0
- package/chips/chips.esm.js +50 -24
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +59 -34
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +50 -46
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +20 -6
- package/colorpicker/colorpicker.esm.js +22 -18
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +47 -47
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.cjs.js +31 -12
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +28 -2
- package/column/column.esm.js +31 -12
- package/column/column.esm.min.js +1 -1
- package/column/column.js +32 -13
- package/column/column.min.js +1 -1
- package/columngroup/columngroup.cjs.js +28 -12
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +28 -12
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +29 -13
- package/columngroup/columngroup.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -33
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +4 -3
- package/confirmdialog/confirmdialog.esm.js +19 -17
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -34
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +60 -55
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +6 -4
- package/confirmpopup/confirmpopup.esm.js +26 -22
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +57 -55
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +81 -76
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -1
- package/contextmenu/contextmenu.esm.js +48 -44
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +78 -77
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +11284 -852
- package/core/core.min.js +40 -1
- package/csstransition/csstransition.cjs.js +62 -32
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +8 -0
- package/csstransition/csstransition.esm.js +61 -32
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +62 -34
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +23 -22
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +15 -14
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +23 -23
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +838 -632
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +38 -14
- package/datatable/datatable.esm.js +575 -369
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +835 -633
- package/datatable/datatable.min.css +1 -1
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +43 -40
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +17 -14
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +42 -41
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +12 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +11 -11
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +13 -13
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +78 -73
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +3 -1
- package/dialog/dialog.esm.js +31 -27
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +75 -74
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +15 -15
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +12 -12
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +16 -16
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +62 -28
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +13 -0
- package/dock/dock.esm.js +50 -16
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +62 -29
- package/dock/dock.min.css +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +120 -98
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -1
- package/dropdown/dropdown.esm.js +58 -36
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +116 -99
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +58 -56
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -0
- package/editor/editor.esm.js +22 -18
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +57 -53
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +31 -29
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +2 -1
- package/fieldset/fieldset.esm.js +17 -15
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +30 -30
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +79 -69
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +4 -1
- package/fileupload/fileupload.esm.js +40 -30
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +79 -70
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/fullcalendar.cjs.js +17 -19
- package/fullcalendar/fullcalendar.cjs.min.js +1 -1
- package/fullcalendar/fullcalendar.esm.js +12 -12
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +16 -16
- package/fullcalendar/fullcalendar.min.js +1 -1
- package/galleria/galleria.cjs.js +85 -81
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -1
- package/galleria/galleria.esm.js +21 -18
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +82 -82
- package/galleria/galleria.min.js +1 -1
- package/gmap/gmap.cjs.js +13 -13
- package/gmap/gmap.cjs.min.js +1 -1
- package/gmap/gmap.esm.js +12 -12
- package/gmap/gmap.esm.min.js +1 -1
- package/gmap/gmap.js +14 -14
- package/gmap/gmap.min.js +1 -1
- package/image/image.cjs.js +69 -44
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +6 -5
- package/image/image.esm.js +44 -20
- package/image/image.esm.min.js +1 -1
- package/image/image.js +67 -45
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +19 -19
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +12 -12
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +20 -20
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +24 -23
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +17 -16
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +24 -24
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +90 -63
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +73 -46
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +89 -64
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +28 -25
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +21 -18
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +28 -26
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +25 -23
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +16 -14
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +24 -24
- package/inputtext/inputtext.min.css +1 -1
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -22
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +15 -14
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -23
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +9 -6
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +5 -2
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +10 -7
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +18 -18
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +12 -12
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +19 -19
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +52 -50
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +17 -15
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +51 -51
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +47 -46
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +13 -12
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +47 -47
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +69 -62
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +2 -1
- package/mention/mention.esm.js +25 -19
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +64 -63
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +45 -40
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +4 -1
- package/menu/menu.esm.js +19 -15
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +42 -41
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -46
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +15 -13
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +48 -47
- package/menubar/menubar.min.css +1 -1
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +20 -19
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +3 -1
- package/message/message.esm.js +14 -13
- package/message/message.esm.min.js +1 -1
- package/message/message.js +21 -20
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +30 -28
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -1
- package/messages/messages.esm.js +14 -12
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +29 -29
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +148 -136
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -2
- package/multiselect/multiselect.esm.js +64 -52
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +144 -137
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +27 -26
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +15 -14
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +27 -27
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +46 -45
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +13 -12
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +46 -46
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +37 -37
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +12 -12
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +38 -38
- package/organizationchart/organizationchart.min.css +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +45 -42
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +3 -2
- package/overlaypanel/overlaypanel.esm.js +23 -21
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +41 -43
- 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 +61 -60
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +15 -14
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +61 -61
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +35 -32
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +5 -3
- package/panel/panel.esm.js +20 -17
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +34 -33
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +53 -52
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -1
- package/panelmenu/panelmenu.esm.js +15 -14
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +53 -53
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +47 -43
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +3 -2
- package/password/password.esm.js +21 -17
- package/password/password.esm.min.js +1 -1
- package/password/password.js +44 -44
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +69 -65
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +25 -21
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +69 -66
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +17 -20
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +15 -18
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +18 -22
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +3793 -2921
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +2567 -1694
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +3792 -2918
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +20 -20
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +12 -12
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +21 -21
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +16 -16
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +12 -12
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +17 -17
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -22
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +15 -14
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +23 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +17 -16
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +23 -23
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +216 -140
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +94 -42
- package/resources/themes/arya-green/theme.css +94 -42
- package/resources/themes/arya-orange/theme.css +94 -42
- package/resources/themes/arya-purple/theme.css +94 -42
- package/resources/themes/bootstrap4-dark-blue/theme.css +75 -30
- package/resources/themes/bootstrap4-dark-purple/theme.css +75 -30
- package/resources/themes/bootstrap4-light-blue/theme.css +74 -29
- package/resources/themes/bootstrap4-light-purple/theme.css +74 -29
- package/resources/themes/fluent-light/theme.css +94 -42
- 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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -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 +5707 -0
- package/resources/themes/luna-amber/theme.css +91 -46
- package/resources/themes/luna-blue/theme.css +91 -46
- package/resources/themes/luna-green/theme.css +91 -46
- package/resources/themes/luna-pink/theme.css +91 -46
- package/resources/themes/md-dark-deeppurple/theme.css +265 -53
- package/resources/themes/md-dark-indigo/theme.css +265 -53
- package/resources/themes/md-light-deeppurple/theme.css +265 -53
- package/resources/themes/md-light-indigo/theme.css +265 -53
- package/resources/themes/mdc-dark-deeppurple/theme.css +265 -53
- package/resources/themes/mdc-dark-indigo/theme.css +265 -53
- package/resources/themes/mdc-light-deeppurple/theme.css +265 -53
- package/resources/themes/mdc-light-indigo/theme.css +265 -53
- package/resources/themes/nova/theme.css +91 -46
- package/resources/themes/nova-accent/theme.css +91 -46
- package/resources/themes/nova-alt/theme.css +91 -46
- package/resources/themes/rhea/theme.css +91 -46
- package/resources/themes/saga-blue/theme.css +77 -25
- package/resources/themes/saga-green/theme.css +77 -25
- package/resources/themes/saga-orange/theme.css +77 -25
- package/resources/themes/saga-purple/theme.css +77 -25
- package/resources/themes/tailwind-light/theme.css +101 -49
- package/resources/themes/vela-blue/theme.css +94 -42
- package/resources/themes/vela-green/theme.css +94 -42
- package/resources/themes/vela-orange/theme.css +94 -42
- package/resources/themes/vela-purple/theme.css +94 -42
- package/ripple/ripple.cjs.js +22 -22
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +14 -14
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +23 -23
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +12 -12
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +11 -11
- package/row/row.esm.min.js +1 -1
- package/row/row.js +13 -13
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +30 -30
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +12 -12
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +31 -31
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +30 -25
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +4 -2
- package/scrolltop/scrolltop.esm.js +21 -17
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +28 -26
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +31 -29
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +17 -15
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +30 -30
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/selectitem.d.ts +3 -1
- package/sidebar/sidebar.cjs.js +154 -127
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +4 -1
- package/sidebar/sidebar.esm.js +145 -119
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +151 -128
- package/sidebar/sidebar.min.css +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +14 -14
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +12 -12
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +15 -15
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +49 -44
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +2 -1
- package/slidemenu/slidemenu.esm.js +19 -15
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +46 -45
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +40 -30
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +32 -22
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +41 -31
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +33 -32
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +3 -2
- package/speeddial/speeddial.esm.js +15 -14
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +33 -33
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +58 -50
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +8 -6
- package/splitbutton/splitbutton.esm.js +28 -20
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +55 -51
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +31 -31
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +14 -14
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +32 -32
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +21 -21
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +12 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +22 -22
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +28 -28
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +12 -12
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +29 -29
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +27 -26
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +13 -12
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +27 -27
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +224 -79
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +12 -1
- package/tabview/tabview.esm.js +194 -49
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +224 -80
- package/tabview/tabview.min.css +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +20 -19
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +2 -1
- package/tag/tag.esm.js +16 -15
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +21 -20
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +23 -23
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +12 -12
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +24 -24
- 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 +54 -48
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -1
- package/tieredmenu/tieredmenu.esm.js +20 -15
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +50 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -23
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +12 -12
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -24
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +72 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +5 -1
- package/toast/toast.esm.js +46 -30
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +69 -56
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +27 -22
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +3 -2
- package/togglebutton/togglebutton.esm.js +21 -16
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +26 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +18 -18
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +12 -12
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +19 -19
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +78 -49
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +0 -1
- package/tooltip/tooltip.esm.js +49 -21
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +77 -50
- 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 +69 -68
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +14 -3
- package/tree/tree.esm.js +19 -18
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +69 -69
- package/tree/tree.min.js +1 -1
- package/treenode/treenode.d.ts +4 -1
- package/treeselect/treeselect.cjs.js +66 -62
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +11 -3
- package/treeselect/treeselect.esm.js +26 -22
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +63 -63
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +1393 -330
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +11 -3
- package/treetable/treetable.esm.js +1303 -240
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1392 -331
- package/treetable/treetable.min.css +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +24 -23
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +15 -14
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +24 -24
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +174 -51
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +18 -0
- package/utils/utils.esm.js +173 -51
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +175 -52
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +79 -53
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +64 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +80 -54
- package/virtualscroller/virtualscroller.min.css +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +45 -8
- 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 }; }
|
|
@@ -79,6 +79,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
79
79
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
80
80
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
81
81
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
82
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
83
|
+
writable: false
|
|
84
|
+
});
|
|
82
85
|
return Constructor;
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -111,23 +114,20 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
111
114
|
configurable: true
|
|
112
115
|
}
|
|
113
116
|
});
|
|
117
|
+
Object.defineProperty(subClass, "prototype", {
|
|
118
|
+
writable: false
|
|
119
|
+
});
|
|
114
120
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
function _typeof(obj) {
|
|
118
124
|
"@babel/helpers - typeof";
|
|
119
125
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
_typeof = function _typeof(obj) {
|
|
126
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return _typeof(obj);
|
|
126
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
127
|
+
return typeof obj;
|
|
128
|
+
} : function (obj) {
|
|
129
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
130
|
+
}, _typeof(obj);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function _possibleConstructorReturn(self, call) {
|
|
@@ -162,9 +162,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
162
162
|
return obj;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
165
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
166
166
|
|
|
167
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
167
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
168
168
|
|
|
169
169
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
170
170
|
|
|
@@ -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
|
|
|
@@ -565,9 +569,9 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
565
569
|
onKeyDown: null
|
|
566
570
|
});
|
|
567
571
|
|
|
568
|
-
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
572
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
569
573
|
|
|
570
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
574
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
571
575
|
|
|
572
576
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
573
577
|
|
|
@@ -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,16 +783,16 @@ 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
|
-
in: this.props
|
|
795
|
+
"in": this.props["in"],
|
|
792
796
|
timeout: {
|
|
793
797
|
enter: 120,
|
|
794
798
|
exit: 100
|
|
@@ -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,17 +824,17 @@ 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
|
});
|
|
828
832
|
|
|
829
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
833
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
830
834
|
|
|
831
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
835
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
832
836
|
|
|
833
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it
|
|
837
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
834
838
|
|
|
835
839
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
836
840
|
|
|
@@ -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, {
|
|
@@ -1851,7 +1857,7 @@ this.primereact.multiselect = (function (exports, React, core, inputtext, virtua
|
|
|
1851
1857
|
onOptionSelect: this.onOptionSelect,
|
|
1852
1858
|
allowOptionSelect: this.allowOptionSelect,
|
|
1853
1859
|
onOptionKeyDown: this.onOptionKeyDown,
|
|
1854
|
-
in: this.state.overlayVisible,
|
|
1860
|
+
"in": this.state.overlayVisible,
|
|
1855
1861
|
onEnter: this.onOverlayEnter,
|
|
1856
1862
|
onEntered: this.onOverlayEntered,
|
|
1857
1863
|
onExit: this.onOverlayExit,
|
|
@@ -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);
|