primereact 10.3.0 → 10.3.2
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/accordion/accordion.cjs.js +24 -20
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +36 -1
- package/accordion/accordion.esm.js +16 -12
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +22 -18
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +39 -33
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +14 -3
- package/api/api.esm.js +39 -33
- package/api/api.esm.min.js +1 -1
- package/api/api.js +39 -33
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +24 -21
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +6 -1
- package/autocomplete/autocomplete.esm.js +7 -4
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +24 -21
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +6 -4
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +3 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +7 -6
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/avatargroup.cjs.js +3 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +3 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +4 -3
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/badge.cjs.js +3 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +3 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +4 -3
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +11 -7
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +11 -7
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +11 -7
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +12 -11
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +3 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +12 -11
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +9 -6
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +4 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +10 -8
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +158 -113
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +3 -5
- package/calendar/calendar.esm.js +92 -47
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +158 -113
- package/calendar/calendar.min.js +1 -1
- package/card/card.cjs.js +11 -9
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +4 -2
- package/card/card.esm.min.js +1 -1
- package/card/card.js +10 -9
- package/card/card.min.js +1 -1
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +1 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +60 -36
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +27 -4
- package/cascadeselect/cascadeselect.esm.js +46 -22
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +61 -37
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/chart.cjs.js +4 -3
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +3 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +5 -4
- package/chart/chart.min.js +1 -1
- package/checkbox/checkbox.cjs.js +31 -30
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +28 -27
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +32 -31
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +13 -7
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +17 -2
- package/chip/chip.esm.js +9 -3
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +14 -9
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +10 -8
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +5 -3
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +10 -8
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +9 -8
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +2 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +9 -8
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/componentbase/componentbase.cjs.js +62 -50
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +63 -51
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +62 -50
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +32 -22
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +19 -3
- package/confirmdialog/confirmdialog.esm.js +30 -20
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +32 -22
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +41 -128
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +12 -2
- package/confirmpopup/confirmpopup.esm.js +36 -123
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +41 -128
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +14 -12
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +1 -1
- package/contextmenu/contextmenu.esm.js +5 -3
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +14 -12
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1232 -649
- package/core/core.min.js +44 -44
- package/datascroller/datascroller.cjs.js +8 -7
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +3 -2
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +8 -7
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +166 -146
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +4 -3
- package/datatable/datatable.esm.js +72 -52
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +166 -146
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/deferredcontent/deferredcontent.cjs.js +3 -3
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +3 -3
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +4 -3
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +40 -130
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +2 -2
- package/dialog/dialog.esm.js +35 -125
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +41 -131
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +6 -4
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +4 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +5 -4
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +10 -9
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +3 -2
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +10 -9
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -36
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +1 -1
- package/dropdown/dropdown.esm.js +21 -11
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +47 -37
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +8 -7
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +4 -3
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +8 -7
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +9 -8
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -2
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +9 -8
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +25 -24
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +5 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +26 -26
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.cjs.js +13 -12
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +4 -3
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +14 -13
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +254 -94
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +12 -4
- package/hooks/hooks.esm.js +253 -96
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +254 -94
- package/hooks/hooks.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +1 -1
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +1 -1
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +1 -1
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +1 -1
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +1 -1
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +1 -1
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +1 -1
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +1 -1
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +1 -1
- package/icons/ban/index.min.js +1 -1
- package/icons/download/index.cjs.js +1 -1
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +1 -1
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +1 -1
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +1 -1
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +1 -1
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +1 -1
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +1 -1
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +1 -1
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +1 -1
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +1 -1
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +1 -1
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +1 -1
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +1 -1
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +1 -1
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +1 -1
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +1 -1
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +1 -1
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +1 -1
- package/icons/infocircle/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +1 -1
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +1 -1
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +1 -1
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +1 -1
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +1 -1
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +1 -1
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +1 -1
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +1 -1
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +1 -1
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +1 -1
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +1 -1
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +1 -1
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +1 -1
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +1 -1
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +1 -1
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +1 -1
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +1 -1
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +1 -1
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +1 -1
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +1 -1
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +1 -1
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +1 -1
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +1 -1
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +1 -1
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +1 -1
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +1 -1
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +1 -1
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +1 -1
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +1 -1
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +1 -1
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +1 -1
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +1 -1
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +1 -1
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +1 -1
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +1 -1
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +1 -1
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +1 -1
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +1 -1
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +1 -1
- package/icons/thlarge/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +1 -1
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +1 -1
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +1 -1
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +1 -1
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +1 -1
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +1 -1
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +1 -1
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +1 -1
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +1 -1
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +1 -1
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +1 -1
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +1 -1
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +1 -1
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +1 -1
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +1 -1
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +1 -1
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +1 -1
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +1 -1
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +45 -151
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +26 -132
- package/image/image.esm.min.js +1 -1
- package/image/image.js +46 -152
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +12 -4
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +9 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +13 -6
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.cjs.js +15 -6
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +15 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +15 -6
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +84 -26
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +7 -0
- package/inputnumber/inputnumber.esm.js +80 -22
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +84 -26
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +8 -7
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +6 -5
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +8 -7
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +10 -7
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +10 -7
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +11 -9
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +3 -1
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +3 -1
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +4 -3
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/knob/knob.cjs.js +7 -6
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +3 -2
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +8 -7
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +31 -14
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +8 -3
- package/listbox/listbox.esm.js +23 -6
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +31 -14
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +94 -92
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +73 -71
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +94 -92
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +133 -57
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +4 -0
- package/mention/mention.esm.js +128 -52
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +133 -57
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +22 -117
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +15 -110
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +22 -117
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +15 -13
- 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 +15 -13
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +5 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +3 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +6 -5
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +5 -4
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +3 -2
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +6 -5
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.cjs.js +89 -67
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +5 -1
- package/multiselect/multiselect.esm.js +56 -34
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +90 -68
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +5 -4
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +3 -2
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +5 -4
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +21 -18
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +11 -1
- package/orderlist/orderlist.esm.js +6 -3
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +21 -18
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +32 -19
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +15 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +31 -19
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +15 -109
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +12 -106
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +16 -110
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +271 -21
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +265 -15
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +271 -21
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +11 -10
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -2
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +11 -10
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +39 -34
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +20 -15
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +39 -34
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +5 -3
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.d.ts +1 -0
- package/passthrough/index.esm.js +5 -3
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +5 -3
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +401 -391
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +401 -391
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +401 -391
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +18 -12
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +11 -5
- package/password/password.esm.min.js +1 -1
- package/password/password.js +18 -12
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +725 -192
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +11 -1
- package/picklist/picklist.esm.js +713 -180
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +725 -192
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +7 -1
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +7 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +7 -1
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +3715 -2447
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +3711 -2447
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +3715 -2447
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +8 -6
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +3 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +9 -8
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/progressspinner.cjs.js +5 -3
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +3 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +6 -5
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +32 -31
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +29 -28
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +33 -32
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +9 -7
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +4 -2
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +9 -8
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +18 -9
- package/resources/themes/arya-green/theme.css +18 -9
- package/resources/themes/arya-orange/theme.css +18 -9
- package/resources/themes/arya-purple/theme.css +18 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +18 -9
- package/resources/themes/bootstrap4-dark-purple/theme.css +18 -9
- package/resources/themes/bootstrap4-light-blue/theme.css +18 -9
- package/resources/themes/bootstrap4-light-purple/theme.css +18 -9
- package/resources/themes/fluent-light/theme.css +18 -9
- package/resources/themes/lara-dark-amber/theme.css +18 -9
- package/resources/themes/lara-dark-blue/theme.css +18 -9
- package/resources/themes/lara-dark-cyan/theme.css +18 -9
- package/resources/themes/lara-dark-green/theme.css +18 -9
- package/resources/themes/lara-dark-indigo/theme.css +18 -9
- package/resources/themes/lara-dark-pink/theme.css +18 -9
- package/resources/themes/lara-dark-purple/theme.css +18 -9
- package/resources/themes/lara-dark-teal/theme.css +18 -9
- package/resources/themes/lara-light-amber/theme.css +18 -9
- package/resources/themes/lara-light-blue/theme.css +18 -9
- package/resources/themes/lara-light-cyan/theme.css +18 -9
- package/resources/themes/lara-light-green/theme.css +18 -9
- package/resources/themes/lara-light-indigo/theme.css +18 -9
- package/resources/themes/lara-light-pink/theme.css +18 -9
- package/resources/themes/lara-light-purple/theme.css +18 -9
- package/resources/themes/lara-light-teal/theme.css +18 -9
- package/resources/themes/luna-amber/theme.css +18 -9
- package/resources/themes/luna-blue/theme.css +18 -9
- package/resources/themes/luna-green/theme.css +18 -9
- package/resources/themes/luna-pink/theme.css +18 -9
- package/resources/themes/md-dark-deeppurple/theme.css +18 -9
- package/resources/themes/md-dark-indigo/theme.css +18 -9
- package/resources/themes/md-light-deeppurple/theme.css +18 -9
- package/resources/themes/md-light-indigo/theme.css +18 -9
- package/resources/themes/mdc-dark-deeppurple/theme.css +18 -9
- package/resources/themes/mdc-dark-indigo/theme.css +18 -9
- package/resources/themes/mdc-light-deeppurple/theme.css +18 -9
- package/resources/themes/mdc-light-indigo/theme.css +18 -9
- package/resources/themes/mira/theme.css +18 -9
- package/resources/themes/nano/theme.css +18 -9
- package/resources/themes/nova/theme.css +18 -9
- package/resources/themes/nova-accent/theme.css +18 -9
- package/resources/themes/nova-alt/theme.css +18 -9
- package/resources/themes/rhea/theme.css +18 -9
- package/resources/themes/saga-blue/theme.css +18 -9
- package/resources/themes/saga-green/theme.css +18 -9
- package/resources/themes/saga-orange/theme.css +18 -9
- package/resources/themes/saga-purple/theme.css +18 -9
- package/resources/themes/soho-dark/theme.css +18 -9
- package/resources/themes/soho-light/theme.css +18 -9
- package/resources/themes/tailwind-light/theme.css +18 -9
- package/resources/themes/vela-blue/theme.css +18 -9
- package/resources/themes/vela-green/theme.css +18 -9
- package/resources/themes/vela-orange/theme.css +18 -9
- package/resources/themes/vela-purple/theme.css +18 -9
- package/resources/themes/viva-dark/theme.css +18 -9
- package/resources/themes/viva-light/theme.css +18 -9
- package/ripple/ripple.cjs.js +8 -4
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +9 -5
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +8 -4
- package/ripple/ripple.min.js +1 -1
- package/row/row.cjs.js +4 -2
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +4 -2
- package/row/row.esm.min.js +1 -1
- package/row/row.js +4 -3
- package/row/row.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +7 -6
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +3 -2
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +8 -7
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +4 -3
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +3 -2
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +4 -3
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +6 -3
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +4 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +7 -5
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +17 -113
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +3 -3
- package/sidebar/sidebar.esm.js +12 -108
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +18 -114
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +3 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +3 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +4 -3
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +23 -116
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -1
- package/slidemenu/slidemenu.esm.js +12 -105
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +23 -116
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +6 -5
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +4 -3
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +6 -5
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +19 -10
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +14 -5
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +19 -10
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +105 -94
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitbutton/splitbutton.esm.js +94 -83
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +105 -94
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +5 -4
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +3 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +5 -4
- package/splitter/splitter.min.js +1 -1
- package/steps/steps.cjs.js +8 -7
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +3 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +8 -7
- package/steps/steps.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +17 -14
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +12 -9
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +17 -14
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +38 -22
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +35 -0
- package/tabview/tabview.esm.js +26 -10
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +38 -22
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +5 -3
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +3 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +6 -5
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +11 -9
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +12 -11
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +14 -12
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -1
- package/tieredmenu/tieredmenu.esm.js +6 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +14 -12
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +10 -8
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +3 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +10 -9
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +12 -10
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +4 -2
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +12 -10
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +78 -7
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +77 -6
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +79 -8
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.cjs.js +7 -5
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +7 -6
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +4 -3
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +27 -0
- package/tooltip/tooltip.esm.js +3 -2
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +4 -3
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +1 -1
- package/tree/tree.cjs.js +267 -150
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +8 -0
- package/tree/tree.esm.js +250 -133
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +268 -152
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +209 -71
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +26 -1
- package/treeselect/treeselect.esm.js +191 -53
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +210 -73
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +139 -107
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +3 -3
- package/treetable/treetable.esm.js +86 -54
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +139 -107
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +6 -5
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +6 -5
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +52 -9
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +3 -2
- package/utils/utils.esm.js +52 -10
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +52 -9
- package/utils/utils.min.js +1 -1
- package/web-types.json +137 -30
|
@@ -12,6 +12,7 @@ var search = require('primereact/icons/search');
|
|
|
12
12
|
var times = require('primereact/icons/times');
|
|
13
13
|
var overlayservice = require('primereact/overlayservice');
|
|
14
14
|
var ripple = require('primereact/ripple');
|
|
15
|
+
var tooltip = require('primereact/tooltip');
|
|
15
16
|
var tree = require('primereact/tree');
|
|
16
17
|
var utils = require('primereact/utils');
|
|
17
18
|
var csstransition = require('primereact/csstransition');
|
|
@@ -55,6 +56,37 @@ function _extends() {
|
|
|
55
56
|
return _extends.apply(this, arguments);
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
60
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
61
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
62
|
+
return arr2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function _arrayWithoutHoles(arr) {
|
|
66
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function _iterableToArray(iter) {
|
|
70
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
74
|
+
if (!o) return;
|
|
75
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
76
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
77
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
78
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
79
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function _nonIterableSpread() {
|
|
83
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _toConsumableArray(arr) {
|
|
87
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
|
|
88
|
+
}
|
|
89
|
+
|
|
58
90
|
function _typeof(o) {
|
|
59
91
|
"@babel/helpers - typeof";
|
|
60
92
|
|
|
@@ -128,21 +160,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
128
160
|
}
|
|
129
161
|
}
|
|
130
162
|
|
|
131
|
-
function _arrayLikeToArray$1(arr, len) {
|
|
132
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
133
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
134
|
-
return arr2;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function _unsupportedIterableToArray$1(o, minLen) {
|
|
138
|
-
if (!o) return;
|
|
139
|
-
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
140
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
141
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
142
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
143
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
163
|
function _nonIterableRest() {
|
|
147
164
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
148
165
|
}
|
|
@@ -199,7 +216,7 @@ var classes = {
|
|
|
199
216
|
wrapper: 'p-treeselect-items-wrapper',
|
|
200
217
|
transition: 'p-connected-overlay'
|
|
201
218
|
};
|
|
202
|
-
var styles = "\n@layer primereact {\n .p-treeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n
|
|
219
|
+
var styles = "\n@layer primereact {\n .p-treeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n\n .p-treeselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .p-treeselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n }\n\n .p-treeselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .p-treeselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n }\n\n .p-treeselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n }\n\n .p-treeselect .p-treeselect-panel {\n min-width: 100%;\n }\n\n .p-treeselect-items-wrapper {\n overflow: auto;\n }\n\n .p-treeselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .p-treeselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n }\n\n .p-treeselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-treeselect-filter-container .p-inputtext {\n width: 100%;\n }\n\n .p-treeselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n }\n\n .p-treeselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n }\n\n .p-fluid .p-treeselect {\n display: flex;\n}\n}\n";
|
|
203
220
|
var TreeSelectBase = componentbase.ComponentBase.extend({
|
|
204
221
|
defaultProps: {
|
|
205
222
|
__TYPE: 'TreeSelect',
|
|
@@ -229,6 +246,8 @@ var TreeSelectBase = componentbase.ComponentBase.extend({
|
|
|
229
246
|
name: null,
|
|
230
247
|
nodeTemplate: null,
|
|
231
248
|
onChange: null,
|
|
249
|
+
onFocus: null,
|
|
250
|
+
onBlur: null,
|
|
232
251
|
onFilterValueChange: null,
|
|
233
252
|
onHide: null,
|
|
234
253
|
onNodeCollapse: null,
|
|
@@ -263,6 +282,7 @@ var TreeSelectBase = componentbase.ComponentBase.extend({
|
|
|
263
282
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
264
283
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
265
284
|
var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
285
|
+
var mergeProps = hooks.useMergeProps();
|
|
266
286
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
267
287
|
var ptm = props.ptm,
|
|
268
288
|
cx = props.cx;
|
|
@@ -271,23 +291,30 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
|
|
|
271
291
|
hostName: props.hostName
|
|
272
292
|
}, options));
|
|
273
293
|
};
|
|
294
|
+
var onKeyDown = function onKeyDown(event) {
|
|
295
|
+
if (event.key === 'Escape') {
|
|
296
|
+
event.preventDefault();
|
|
297
|
+
props.hide();
|
|
298
|
+
}
|
|
299
|
+
};
|
|
274
300
|
var createElement = function createElement() {
|
|
275
301
|
var wrapperStyle = {
|
|
276
302
|
maxHeight: props.scrollHeight || 'auto'
|
|
277
303
|
};
|
|
278
|
-
var panelProps =
|
|
304
|
+
var panelProps = mergeProps({
|
|
279
305
|
className: cx('panel', {
|
|
280
306
|
panelProps: props,
|
|
281
307
|
context: context
|
|
282
308
|
}),
|
|
283
309
|
style: props.panelStyle,
|
|
310
|
+
onKeyDown: onKeyDown,
|
|
284
311
|
onClick: props.onClick
|
|
285
312
|
}, getPTOptions('panel'));
|
|
286
|
-
var wrapperProps =
|
|
313
|
+
var wrapperProps = mergeProps({
|
|
287
314
|
className: cx('wrapper'),
|
|
288
315
|
style: wrapperStyle
|
|
289
316
|
}, getPTOptions('wrapper'));
|
|
290
|
-
var transitionProps =
|
|
317
|
+
var transitionProps = mergeProps({
|
|
291
318
|
classNames: cx('transition'),
|
|
292
319
|
"in": props["in"],
|
|
293
320
|
timeout: {
|
|
@@ -305,7 +332,7 @@ var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props,
|
|
|
305
332
|
nodeRef: ref
|
|
306
333
|
}, transitionProps), /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
307
334
|
ref: ref
|
|
308
|
-
}, panelProps), props.header, /*#__PURE__*/React__namespace.createElement("div", wrapperProps, props.children), props.footer));
|
|
335
|
+
}, panelProps), props.firstHiddenFocusableElementOnOverlay, props.header, /*#__PURE__*/React__namespace.createElement("div", wrapperProps, props.children), props.footer, props.lastHiddenFocusableElementOnOverlay));
|
|
309
336
|
};
|
|
310
337
|
var element = createElement();
|
|
311
338
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
@@ -321,6 +348,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
321
348
|
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); }
|
|
322
349
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
323
350
|
var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
351
|
+
var mergeProps = hooks.useMergeProps();
|
|
324
352
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
325
353
|
var props = TreeSelectBase.getProps(inProps, context);
|
|
326
354
|
var _React$useState = React__namespace.useState(false),
|
|
@@ -345,12 +373,18 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
345
373
|
var focusInputRef = React__namespace.useRef(props.inputRef);
|
|
346
374
|
var triggerRef = React__namespace.useRef(null);
|
|
347
375
|
var selfChange = React__namespace.useRef(null);
|
|
376
|
+
var treeRef = React__namespace.useRef(null);
|
|
377
|
+
var firstHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
378
|
+
var lastHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
379
|
+
var focusToTree = React__namespace.useRef(false);
|
|
380
|
+
var listId = React__namespace.useRef('');
|
|
348
381
|
var expandedKeys = props.onToggle ? props.expandedKeys : expandedKeysState;
|
|
349
382
|
var filteredValue = props.onFilterValueChange ? props.filterValue : filterValueState;
|
|
350
383
|
var isValueEmpty = utils.ObjectUtils.isEmpty(props.value);
|
|
351
384
|
var hasNoOptions = utils.ObjectUtils.isEmpty(props.options);
|
|
352
385
|
var isSingleSelectionMode = props.selectionMode === 'single';
|
|
353
386
|
var isCheckboxSelectionMode = props.selectionMode === 'checkbox';
|
|
387
|
+
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
354
388
|
var metaData = {
|
|
355
389
|
props: props,
|
|
356
390
|
state: {
|
|
@@ -397,15 +431,18 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
397
431
|
};
|
|
398
432
|
var hide = function hide() {
|
|
399
433
|
setOverlayVisibleState(false);
|
|
434
|
+
focusInputRef.current && utils.DomHandler.focus(focusInputRef.current);
|
|
400
435
|
};
|
|
401
436
|
var onInputFocus = function onInputFocus() {
|
|
402
437
|
setFocusedState(true);
|
|
438
|
+
props.onFocus && props.onFocus();
|
|
403
439
|
};
|
|
404
440
|
var onInputBlur = function onInputBlur() {
|
|
405
441
|
setFocusedState(false);
|
|
442
|
+
props.onBlur && props.onBlur();
|
|
406
443
|
};
|
|
407
444
|
var onClick = function onClick(event) {
|
|
408
|
-
if (!props.disabled && (!overlayRef.current || !overlayRef.current.contains(event.target)) && !utils.DomHandler.
|
|
445
|
+
if (!props.disabled && (!overlayRef.current || !overlayRef.current.contains(event.target)) && !utils.DomHandler.isAttributeEquals(event.target, 'data-pc-section', 'closebutton')) {
|
|
409
446
|
utils.DomHandler.focus(focusInputRef.current);
|
|
410
447
|
overlayVisibleState ? hide() : show();
|
|
411
448
|
}
|
|
@@ -456,6 +493,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
456
493
|
};
|
|
457
494
|
var onNodeUnselect = function onNodeUnselect(node) {
|
|
458
495
|
props.onNodeUnselect && props.onNodeUnselect(node);
|
|
496
|
+
isCheckboxSelectionMode && node.originalEvent.stopPropagation();
|
|
459
497
|
};
|
|
460
498
|
var onNodeToggle = function onNodeToggle(e) {
|
|
461
499
|
if (props.onToggle) {
|
|
@@ -473,44 +511,88 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
473
511
|
target: elementRef.current
|
|
474
512
|
});
|
|
475
513
|
};
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
514
|
+
var onFirstHiddenFocus = function onFirstHiddenFocus(event) {
|
|
515
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getFirstFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
516
|
+
utils.DomHandler.focus(focusableEl);
|
|
517
|
+
};
|
|
518
|
+
var onLastHiddenFocus = function onLastHiddenFocus(event) {
|
|
519
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getLastFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
520
|
+
utils.DomHandler.focus(focusableEl);
|
|
521
|
+
};
|
|
522
|
+
var onHeaderElementKeyDown = function onHeaderElementKeyDown(event, isHideButton) {
|
|
523
|
+
switch (event.code) {
|
|
524
|
+
case 'ArrowDown':
|
|
525
|
+
event.preventDefault();
|
|
526
|
+
setFocusToFocusableFirstNode();
|
|
483
527
|
break;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
if (!overlayVisibleState) {
|
|
488
|
-
show();
|
|
489
|
-
event.preventDefault();
|
|
490
|
-
}
|
|
528
|
+
case 'ArrowUp':
|
|
529
|
+
event.preventDefault();
|
|
530
|
+
focusInputRef.current && utils.DomHandler.focus(focusInputRef.current);
|
|
491
531
|
break;
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
case
|
|
495
|
-
|
|
532
|
+
case 'Space':
|
|
533
|
+
case 'Enter':
|
|
534
|
+
case 'NumpadEnter':
|
|
535
|
+
event.preventDefault();
|
|
536
|
+
if (isHideButton) hide();
|
|
537
|
+
break;
|
|
538
|
+
case 'Escape':
|
|
539
|
+
onEscapeKey(event);
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
var onKeyDown = function onKeyDown(event) {
|
|
544
|
+
switch (event.code) {
|
|
545
|
+
case 'ArrowDown':
|
|
546
|
+
onArrowDownKey(event);
|
|
547
|
+
break;
|
|
548
|
+
case 'Space':
|
|
549
|
+
case 'Enter':
|
|
550
|
+
case 'NumpadEnter':
|
|
551
|
+
onEnterKey(event);
|
|
552
|
+
break;
|
|
553
|
+
case 'Escape':
|
|
554
|
+
onEscapeKey(event);
|
|
555
|
+
break;
|
|
556
|
+
case 'Tab':
|
|
496
557
|
if (overlayVisibleState) {
|
|
497
|
-
hide();
|
|
498
558
|
event.preventDefault();
|
|
559
|
+
if (event.shiftKey) setFocusToFocusableFirstNode();else onTabKey(event);
|
|
499
560
|
}
|
|
500
561
|
break;
|
|
501
|
-
|
|
502
|
-
//tab
|
|
503
|
-
case 9:
|
|
504
|
-
hide();
|
|
505
|
-
break;
|
|
506
562
|
}
|
|
507
563
|
};
|
|
508
|
-
var
|
|
509
|
-
|
|
510
|
-
|
|
564
|
+
var onArrowDownKey = function onArrowDownKey(event) {
|
|
565
|
+
if (overlayVisibleState) return;
|
|
566
|
+
focusToTree.current = true;
|
|
567
|
+
show();
|
|
568
|
+
event.preventDefault();
|
|
569
|
+
};
|
|
570
|
+
var onEnterKey = function onEnterKey(event) {
|
|
571
|
+
if (overlayVisibleState) {
|
|
572
|
+
hide();
|
|
573
|
+
} else {
|
|
574
|
+
onArrowDownKey(event);
|
|
575
|
+
}
|
|
576
|
+
event.preventDefault();
|
|
577
|
+
};
|
|
578
|
+
var onEscapeKey = function onEscapeKey(event) {
|
|
579
|
+
if (overlayVisibleState) {
|
|
580
|
+
hide();
|
|
511
581
|
event.preventDefault();
|
|
512
582
|
}
|
|
513
583
|
};
|
|
584
|
+
var onTabKey = function onTabKey(event) {
|
|
585
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
586
|
+
if (!pressedInInputText) {
|
|
587
|
+
if (overlayVisibleState && hasFocusableElements()) {
|
|
588
|
+
utils.DomHandler.focus(firstHiddenFocusableElementOnOverlay.current);
|
|
589
|
+
event.preventDefault();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
var hasFocusableElements = function hasFocusableElements() {
|
|
594
|
+
return utils.DomHandler.getFocusableElements(overlayRef.current, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
595
|
+
};
|
|
514
596
|
var onFilterInputChange = function onFilterInputChange(event) {
|
|
515
597
|
var value = event.target.value;
|
|
516
598
|
if (props.onFilterValueChange) {
|
|
@@ -532,6 +614,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
532
614
|
top: '0',
|
|
533
615
|
left: '0'
|
|
534
616
|
});
|
|
617
|
+
setFocusToFocusableFirstNode();
|
|
535
618
|
alignOverlay();
|
|
536
619
|
scrollInView();
|
|
537
620
|
};
|
|
@@ -556,7 +639,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
556
639
|
utils.DomHandler.alignOverlay(overlayRef.current, triggerRef.current.parentElement, props.appendTo || context && context.appendTo || PrimeReact__default["default"].appendTo);
|
|
557
640
|
};
|
|
558
641
|
var scrollInView = function scrollInView() {
|
|
559
|
-
var highlightItem = utils.DomHandler.findSingle(overlayRef.current, '
|
|
642
|
+
var highlightItem = utils.DomHandler.findSingle(overlayRef.current, '[data-pc-section="content"][data-p-highlight="true"]');
|
|
560
643
|
if (highlightItem && highlightItem.scrollIntoView) {
|
|
561
644
|
highlightItem.scrollIntoView({
|
|
562
645
|
block: 'nearest',
|
|
@@ -609,6 +692,13 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
609
692
|
updateTreeBranchState(null, null, keys);
|
|
610
693
|
}
|
|
611
694
|
};
|
|
695
|
+
var setFocusToFocusableFirstNode = function setFocusToFocusableFirstNode() {
|
|
696
|
+
var treeNodeEl = utils.DomHandler.find(treeRef.current.getElement(), '[data-pc-section="node"]');
|
|
697
|
+
var focusedElement = _toConsumableArray(treeNodeEl).find(function (item) {
|
|
698
|
+
return item.getAttribute('tabindex') === '0';
|
|
699
|
+
});
|
|
700
|
+
utils.DomHandler.focus(focusedElement);
|
|
701
|
+
};
|
|
612
702
|
var updateTreeBranchState = function updateTreeBranchState(node, path, keys) {
|
|
613
703
|
if (node) {
|
|
614
704
|
if (isSelected(node, keys)) {
|
|
@@ -690,6 +780,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
690
780
|
}, [focusInputRef, props.inputRef]);
|
|
691
781
|
hooks.useMountEffect(function () {
|
|
692
782
|
updateTreeState();
|
|
783
|
+
listId.current = utils.UniqueComponentId() + '_list';
|
|
693
784
|
if (props.autoFocus) {
|
|
694
785
|
utils.DomHandler.focus(focusInputRef.current, props.autoFocus);
|
|
695
786
|
}
|
|
@@ -703,6 +794,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
703
794
|
hooks.useUpdateEffect(function () {
|
|
704
795
|
updateTreeState();
|
|
705
796
|
}, [props.options]);
|
|
797
|
+
hooks.useUpdateEffect(function () {
|
|
798
|
+
if (focusToTree.current && overlayVisibleState) {
|
|
799
|
+
focusToTree.current = false;
|
|
800
|
+
setFocusToFocusableFirstNode();
|
|
801
|
+
}
|
|
802
|
+
}, [overlayVisibleState]);
|
|
706
803
|
hooks.useUpdateEffect(function () {
|
|
707
804
|
if (overlayVisibleState && expandedKeysState) {
|
|
708
805
|
alignOverlay();
|
|
@@ -720,18 +817,22 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
720
817
|
utils.ZIndexUtils.clear(overlayRef.current);
|
|
721
818
|
});
|
|
722
819
|
var createKeyboardHelper = function createKeyboardHelper() {
|
|
723
|
-
var hiddenInputWrapperProps =
|
|
820
|
+
var hiddenInputWrapperProps = mergeProps({
|
|
724
821
|
className: 'p-hidden-accessible'
|
|
725
822
|
}, ptm('hiddenInputWrapper'));
|
|
726
|
-
var hiddenInputProps =
|
|
823
|
+
var hiddenInputProps = mergeProps(_objectSpread({
|
|
727
824
|
ref: focusInputRef,
|
|
728
825
|
role: 'listbox',
|
|
729
826
|
id: props.inputId,
|
|
730
827
|
type: 'text',
|
|
731
828
|
'aria-expanded': overlayVisibleState,
|
|
829
|
+
'aria-label': props.ariaLabel,
|
|
830
|
+
'aria-labelledby': props.ariaLabelledBy,
|
|
831
|
+
'aria-haspopup': 'tree',
|
|
832
|
+
'aria-controls': listId.current,
|
|
732
833
|
onFocus: onInputFocus,
|
|
733
834
|
onBlur: onInputBlur,
|
|
734
|
-
onKeyDown:
|
|
835
|
+
onKeyDown: onKeyDown,
|
|
735
836
|
disabled: props.disabled,
|
|
736
837
|
tabIndex: props.tabIndex
|
|
737
838
|
}, ariaProps), ptm('hiddenInput'));
|
|
@@ -740,16 +841,16 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
740
841
|
})));
|
|
741
842
|
};
|
|
742
843
|
var createLabel = function createLabel() {
|
|
743
|
-
var tokenProps =
|
|
844
|
+
var tokenProps = mergeProps({
|
|
744
845
|
className: cx('token')
|
|
745
846
|
}, ptm('token'));
|
|
746
|
-
var tokenLabelProps =
|
|
847
|
+
var tokenLabelProps = mergeProps({
|
|
747
848
|
className: cx('tokenLabel')
|
|
748
849
|
}, ptm('tokenLabel'));
|
|
749
|
-
var labelContainerProps =
|
|
850
|
+
var labelContainerProps = mergeProps({
|
|
750
851
|
className: cx('labelContainer')
|
|
751
852
|
}, ptm('labelContainer'));
|
|
752
|
-
var labelProps =
|
|
853
|
+
var labelProps = mergeProps({
|
|
753
854
|
className: cx('label', {
|
|
754
855
|
isValueEmpty: isValueEmpty,
|
|
755
856
|
getLabel: getLabel
|
|
@@ -772,14 +873,14 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
772
873
|
return /*#__PURE__*/React__namespace.createElement("div", labelContainerProps, /*#__PURE__*/React__namespace.createElement("div", labelProps, content));
|
|
773
874
|
};
|
|
774
875
|
var createDropdownIcon = function createDropdownIcon() {
|
|
775
|
-
var triggerProps =
|
|
876
|
+
var triggerProps = mergeProps({
|
|
776
877
|
ref: triggerRef,
|
|
777
878
|
className: cx('trigger'),
|
|
778
879
|
role: 'button',
|
|
779
|
-
'aria-haspopup': '
|
|
880
|
+
'aria-haspopup': 'tree',
|
|
780
881
|
'aria-expanded': overlayVisibleState
|
|
781
882
|
}, ptm('trigger'));
|
|
782
|
-
var triggerIconProps =
|
|
883
|
+
var triggerIconProps = mergeProps({
|
|
783
884
|
className: cx('triggerIcon')
|
|
784
885
|
}, ptm('triggerIcon'));
|
|
785
886
|
var icon = props.dropdownIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, triggerIconProps);
|
|
@@ -790,7 +891,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
790
891
|
};
|
|
791
892
|
var createClearIcon = function createClearIcon() {
|
|
792
893
|
if (props.value != null && props.showClear && !props.disabled) {
|
|
793
|
-
var clearIconProps =
|
|
894
|
+
var clearIconProps = mergeProps({
|
|
794
895
|
className: cx('clearIcon'),
|
|
795
896
|
onPointerUp: clear
|
|
796
897
|
}, ptm('clearIcon'));
|
|
@@ -802,10 +903,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
802
903
|
return null;
|
|
803
904
|
};
|
|
804
905
|
var createContent = function createContent() {
|
|
805
|
-
var emptyMessageProps =
|
|
906
|
+
var emptyMessageProps = mergeProps({
|
|
806
907
|
className: cx('emptyMessage')
|
|
807
908
|
}, ptm('emptyMessage'));
|
|
808
909
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(tree.Tree, {
|
|
910
|
+
ref: treeRef,
|
|
911
|
+
id: listId.current,
|
|
809
912
|
expandedKeys: expandedKeys,
|
|
810
913
|
filter: props.filter,
|
|
811
914
|
filterBy: props.filterBy,
|
|
@@ -836,21 +939,23 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
836
939
|
var createFilterElement = function createFilterElement() {
|
|
837
940
|
if (props.filter) {
|
|
838
941
|
var filterValue = utils.ObjectUtils.isNotEmpty(filteredValue) ? filteredValue : '';
|
|
839
|
-
var filterContainerProps =
|
|
942
|
+
var filterContainerProps = mergeProps({
|
|
840
943
|
className: cx('filterContainer')
|
|
841
944
|
}, ptm('filterContainer'));
|
|
842
|
-
var filterProps =
|
|
945
|
+
var filterProps = mergeProps({
|
|
843
946
|
ref: filterInputRef,
|
|
844
947
|
type: 'text',
|
|
845
948
|
value: filterValue,
|
|
846
949
|
autoComplete: 'off',
|
|
847
950
|
className: cx('filter'),
|
|
848
951
|
placeholder: props.filterPlaceholder,
|
|
849
|
-
onKeyDown:
|
|
952
|
+
onKeyDown: function onKeyDown(event) {
|
|
953
|
+
return onHeaderElementKeyDown(event, false);
|
|
954
|
+
},
|
|
850
955
|
onChange: onFilterInputChange,
|
|
851
956
|
disabled: props.disabled
|
|
852
957
|
}, ptm('filter'));
|
|
853
|
-
var filterIconProps =
|
|
958
|
+
var filterIconProps = mergeProps({
|
|
854
959
|
className: cx('filterIcon')
|
|
855
960
|
}, ptm('filterIcon'));
|
|
856
961
|
var icon = props.filterIcon || /*#__PURE__*/React__namespace.createElement(search.SearchIcon, filterIconProps);
|
|
@@ -863,7 +968,9 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
863
968
|
className: 'p-treeselect-filter-container',
|
|
864
969
|
element: filterContent,
|
|
865
970
|
filterOptions: filterOptions,
|
|
866
|
-
filterInputKeyDown:
|
|
971
|
+
filterInputKeyDown: function filterInputKeyDown(event) {
|
|
972
|
+
return onHeaderElementKeyDown(event, function () {});
|
|
973
|
+
},
|
|
867
974
|
filterInputChange: onFilterInputChange,
|
|
868
975
|
filterIconClassName: 'p-dropdown-filter-icon',
|
|
869
976
|
props: props
|
|
@@ -875,7 +982,7 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
875
982
|
};
|
|
876
983
|
var createHeader = function createHeader() {
|
|
877
984
|
var filterElement = createFilterElement();
|
|
878
|
-
var closeIconProps =
|
|
985
|
+
var closeIconProps = mergeProps({
|
|
879
986
|
className: cx('closeIcon'),
|
|
880
987
|
'aria-hidden': true
|
|
881
988
|
}, ptm('closeIcon'));
|
|
@@ -883,13 +990,16 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
883
990
|
var closeIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
|
|
884
991
|
props: props
|
|
885
992
|
});
|
|
886
|
-
var closeButtonProps =
|
|
993
|
+
var closeButtonProps = mergeProps({
|
|
887
994
|
type: 'button',
|
|
888
995
|
className: cx('closeButton'),
|
|
996
|
+
onKeyDown: function onKeyDown(event) {
|
|
997
|
+
return onHeaderElementKeyDown(event, true);
|
|
998
|
+
},
|
|
889
999
|
onClick: hide,
|
|
890
1000
|
'aria-label': PrimeReact.localeOption('close')
|
|
891
1001
|
}, ptm('closeButton'));
|
|
892
|
-
var headerProps =
|
|
1002
|
+
var headerProps = mergeProps({
|
|
893
1003
|
className: cx('header')
|
|
894
1004
|
}, ptm('header'));
|
|
895
1005
|
var closeElement = /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
@@ -915,7 +1025,27 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
915
1025
|
var selectedNodes = getSelectedNodes();
|
|
916
1026
|
var otherProps = TreeSelectBase.getOtherProps(props);
|
|
917
1027
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
918
|
-
var
|
|
1028
|
+
var firstHiddenFocusableElementOnOverlayProps = mergeProps({
|
|
1029
|
+
ref: firstHiddenFocusableElementOnOverlay,
|
|
1030
|
+
role: 'presentation',
|
|
1031
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
1032
|
+
tabIndex: 0,
|
|
1033
|
+
onFocus: onFirstHiddenFocus,
|
|
1034
|
+
'aria-hidden': true,
|
|
1035
|
+
'data-p-hidden-accessible': true,
|
|
1036
|
+
'data-p-hidden-focusable': true
|
|
1037
|
+
}, ptm('firstHiddenFocusableElementOnOverlay'));
|
|
1038
|
+
var lastHiddenFocusableElementOnOverlayProps = mergeProps({
|
|
1039
|
+
ref: lastHiddenFocusableElementOnOverlay,
|
|
1040
|
+
role: 'presentation',
|
|
1041
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
1042
|
+
tabIndex: 0,
|
|
1043
|
+
onFocus: onLastHiddenFocus,
|
|
1044
|
+
'aria-hidden': true,
|
|
1045
|
+
'data-p-hidden-accessible': true,
|
|
1046
|
+
'data-p-hidden-focusable': true
|
|
1047
|
+
}, ptm('lastHiddenFocusableElementOnOverlay'));
|
|
1048
|
+
var rootProps = mergeProps({
|
|
919
1049
|
ref: elementRef,
|
|
920
1050
|
className: cx('root', {
|
|
921
1051
|
focusedState: focusedState,
|
|
@@ -941,7 +1071,10 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
941
1071
|
scrollHeight: props.scrollHeight,
|
|
942
1072
|
onClick: onOverlayClick,
|
|
943
1073
|
header: header,
|
|
1074
|
+
hide: hide,
|
|
944
1075
|
footer: footer,
|
|
1076
|
+
firstHiddenFocusableElementOnOverlay: /*#__PURE__*/React__namespace.createElement("span", firstHiddenFocusableElementOnOverlayProps),
|
|
1077
|
+
lastHiddenFocusableElementOnOverlay: /*#__PURE__*/React__namespace.createElement("span", lastHiddenFocusableElementOnOverlayProps),
|
|
945
1078
|
transitionOptions: props.transitionOptions,
|
|
946
1079
|
"in": overlayVisibleState,
|
|
947
1080
|
onEnter: onOverlayEnter,
|
|
@@ -950,7 +1083,12 @@ var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespa
|
|
|
950
1083
|
onExited: onOverlayExited,
|
|
951
1084
|
ptm: ptm,
|
|
952
1085
|
cx: cx
|
|
953
|
-
}, content)
|
|
1086
|
+
}, content), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
1087
|
+
target: elementRef,
|
|
1088
|
+
content: props.tooltip
|
|
1089
|
+
}, props.tooltipOptions, {
|
|
1090
|
+
pt: ptm('tooltip')
|
|
1091
|
+
})));
|
|
954
1092
|
}));
|
|
955
1093
|
TreeSelect.displayName = 'TreeSelect';
|
|
956
1094
|
|