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
package/treeselect/treeselect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primereact = this.primereact || {};
|
|
2
|
-
this.primereact.treeselect = (function (exports, React, PrimeReact, componentbase, hooks, chevrondown, search, times, overlayservice, ripple, tree, utils, csstransition, portal) {
|
|
2
|
+
this.primereact.treeselect = (function (exports, React, PrimeReact, componentbase, hooks, chevrondown, search, times, overlayservice, ripple, tooltip, tree, utils, csstransition, portal) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -40,6 +40,37 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
40
40
|
return _extends.apply(this, arguments);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
44
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
45
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
46
|
+
return arr2;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _arrayWithoutHoles(arr) {
|
|
50
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function _iterableToArray(iter) {
|
|
54
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
58
|
+
if (!o) return;
|
|
59
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
60
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
61
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
62
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
63
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function _nonIterableSpread() {
|
|
67
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function _toConsumableArray(arr) {
|
|
71
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
|
|
72
|
+
}
|
|
73
|
+
|
|
43
74
|
function _typeof(o) {
|
|
44
75
|
"@babel/helpers - typeof";
|
|
45
76
|
|
|
@@ -113,21 +144,6 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
113
144
|
}
|
|
114
145
|
}
|
|
115
146
|
|
|
116
|
-
function _arrayLikeToArray$1(arr, len) {
|
|
117
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
118
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
119
|
-
return arr2;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
function _unsupportedIterableToArray$1(o, minLen) {
|
|
123
|
-
if (!o) return;
|
|
124
|
-
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
125
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
126
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
127
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
128
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
147
|
function _nonIterableRest() {
|
|
132
148
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
133
149
|
}
|
|
@@ -184,7 +200,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
184
200
|
wrapper: 'p-treeselect-items-wrapper',
|
|
185
201
|
transition: 'p-connected-overlay'
|
|
186
202
|
};
|
|
187
|
-
var styles = "\n@layer primereact {\n .p-treeselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n }\n
|
|
203
|
+
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";
|
|
188
204
|
var TreeSelectBase = componentbase.ComponentBase.extend({
|
|
189
205
|
defaultProps: {
|
|
190
206
|
__TYPE: 'TreeSelect',
|
|
@@ -214,6 +230,8 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
214
230
|
name: null,
|
|
215
231
|
nodeTemplate: null,
|
|
216
232
|
onChange: null,
|
|
233
|
+
onFocus: null,
|
|
234
|
+
onBlur: null,
|
|
217
235
|
onFilterValueChange: null,
|
|
218
236
|
onHide: null,
|
|
219
237
|
onNodeCollapse: null,
|
|
@@ -248,6 +266,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
248
266
|
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; }
|
|
249
267
|
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; }
|
|
250
268
|
var TreeSelectPanel = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
269
|
+
var mergeProps = hooks.useMergeProps();
|
|
251
270
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
252
271
|
var ptm = props.ptm,
|
|
253
272
|
cx = props.cx;
|
|
@@ -256,23 +275,30 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
256
275
|
hostName: props.hostName
|
|
257
276
|
}, options));
|
|
258
277
|
};
|
|
278
|
+
var onKeyDown = function onKeyDown(event) {
|
|
279
|
+
if (event.key === 'Escape') {
|
|
280
|
+
event.preventDefault();
|
|
281
|
+
props.hide();
|
|
282
|
+
}
|
|
283
|
+
};
|
|
259
284
|
var createElement = function createElement() {
|
|
260
285
|
var wrapperStyle = {
|
|
261
286
|
maxHeight: props.scrollHeight || 'auto'
|
|
262
287
|
};
|
|
263
|
-
var panelProps =
|
|
288
|
+
var panelProps = mergeProps({
|
|
264
289
|
className: cx('panel', {
|
|
265
290
|
panelProps: props,
|
|
266
291
|
context: context
|
|
267
292
|
}),
|
|
268
293
|
style: props.panelStyle,
|
|
294
|
+
onKeyDown: onKeyDown,
|
|
269
295
|
onClick: props.onClick
|
|
270
296
|
}, getPTOptions('panel'));
|
|
271
|
-
var wrapperProps =
|
|
297
|
+
var wrapperProps = mergeProps({
|
|
272
298
|
className: cx('wrapper'),
|
|
273
299
|
style: wrapperStyle
|
|
274
300
|
}, getPTOptions('wrapper'));
|
|
275
|
-
var transitionProps =
|
|
301
|
+
var transitionProps = mergeProps({
|
|
276
302
|
classNames: cx('transition'),
|
|
277
303
|
"in": props["in"],
|
|
278
304
|
timeout: {
|
|
@@ -290,7 +316,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
290
316
|
nodeRef: ref
|
|
291
317
|
}, transitionProps), /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
292
318
|
ref: ref
|
|
293
|
-
}, panelProps), props.header, /*#__PURE__*/React__namespace.createElement("div", wrapperProps, props.children), props.footer));
|
|
319
|
+
}, panelProps), props.firstHiddenFocusableElementOnOverlay, props.header, /*#__PURE__*/React__namespace.createElement("div", wrapperProps, props.children), props.footer, props.lastHiddenFocusableElementOnOverlay));
|
|
294
320
|
};
|
|
295
321
|
var element = createElement();
|
|
296
322
|
return /*#__PURE__*/React__namespace.createElement(portal.Portal, {
|
|
@@ -306,6 +332,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
306
332
|
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); }
|
|
307
333
|
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; }
|
|
308
334
|
var TreeSelect = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
335
|
+
var mergeProps = hooks.useMergeProps();
|
|
309
336
|
var context = React__namespace.useContext(PrimeReact.PrimeReactContext);
|
|
310
337
|
var props = TreeSelectBase.getProps(inProps, context);
|
|
311
338
|
var _React$useState = React__namespace.useState(false),
|
|
@@ -330,12 +357,18 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
330
357
|
var focusInputRef = React__namespace.useRef(props.inputRef);
|
|
331
358
|
var triggerRef = React__namespace.useRef(null);
|
|
332
359
|
var selfChange = React__namespace.useRef(null);
|
|
360
|
+
var treeRef = React__namespace.useRef(null);
|
|
361
|
+
var firstHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
362
|
+
var lastHiddenFocusableElementOnOverlay = React__namespace.useRef(null);
|
|
363
|
+
var focusToTree = React__namespace.useRef(false);
|
|
364
|
+
var listId = React__namespace.useRef('');
|
|
333
365
|
var expandedKeys = props.onToggle ? props.expandedKeys : expandedKeysState;
|
|
334
366
|
var filteredValue = props.onFilterValueChange ? props.filterValue : filterValueState;
|
|
335
367
|
var isValueEmpty = utils.ObjectUtils.isEmpty(props.value);
|
|
336
368
|
var hasNoOptions = utils.ObjectUtils.isEmpty(props.options);
|
|
337
369
|
var isSingleSelectionMode = props.selectionMode === 'single';
|
|
338
370
|
var isCheckboxSelectionMode = props.selectionMode === 'checkbox';
|
|
371
|
+
var hasTooltip = utils.ObjectUtils.isNotEmpty(props.tooltip);
|
|
339
372
|
var metaData = {
|
|
340
373
|
props: props,
|
|
341
374
|
state: {
|
|
@@ -382,15 +415,18 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
382
415
|
};
|
|
383
416
|
var hide = function hide() {
|
|
384
417
|
setOverlayVisibleState(false);
|
|
418
|
+
focusInputRef.current && utils.DomHandler.focus(focusInputRef.current);
|
|
385
419
|
};
|
|
386
420
|
var onInputFocus = function onInputFocus() {
|
|
387
421
|
setFocusedState(true);
|
|
422
|
+
props.onFocus && props.onFocus();
|
|
388
423
|
};
|
|
389
424
|
var onInputBlur = function onInputBlur() {
|
|
390
425
|
setFocusedState(false);
|
|
426
|
+
props.onBlur && props.onBlur();
|
|
391
427
|
};
|
|
392
428
|
var onClick = function onClick(event) {
|
|
393
|
-
if (!props.disabled && (!overlayRef.current || !overlayRef.current.contains(event.target)) && !utils.DomHandler.
|
|
429
|
+
if (!props.disabled && (!overlayRef.current || !overlayRef.current.contains(event.target)) && !utils.DomHandler.isAttributeEquals(event.target, 'data-pc-section', 'closebutton')) {
|
|
394
430
|
utils.DomHandler.focus(focusInputRef.current);
|
|
395
431
|
overlayVisibleState ? hide() : show();
|
|
396
432
|
}
|
|
@@ -441,6 +477,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
441
477
|
};
|
|
442
478
|
var onNodeUnselect = function onNodeUnselect(node) {
|
|
443
479
|
props.onNodeUnselect && props.onNodeUnselect(node);
|
|
480
|
+
isCheckboxSelectionMode && node.originalEvent.stopPropagation();
|
|
444
481
|
};
|
|
445
482
|
var onNodeToggle = function onNodeToggle(e) {
|
|
446
483
|
if (props.onToggle) {
|
|
@@ -458,44 +495,88 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
458
495
|
target: elementRef.current
|
|
459
496
|
});
|
|
460
497
|
};
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
498
|
+
var onFirstHiddenFocus = function onFirstHiddenFocus(event) {
|
|
499
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getFirstFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
500
|
+
utils.DomHandler.focus(focusableEl);
|
|
501
|
+
};
|
|
502
|
+
var onLastHiddenFocus = function onLastHiddenFocus(event) {
|
|
503
|
+
var focusableEl = event.relatedTarget === focusInputRef.current ? utils.DomHandler.getLastFocusableElement(overlayRef.current, ':not([data-p-hidden-focusable="true"])') : focusInputRef.current;
|
|
504
|
+
utils.DomHandler.focus(focusableEl);
|
|
505
|
+
};
|
|
506
|
+
var onHeaderElementKeyDown = function onHeaderElementKeyDown(event, isHideButton) {
|
|
507
|
+
switch (event.code) {
|
|
508
|
+
case 'ArrowDown':
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
setFocusToFocusableFirstNode();
|
|
468
511
|
break;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
if (!overlayVisibleState) {
|
|
473
|
-
show();
|
|
474
|
-
event.preventDefault();
|
|
475
|
-
}
|
|
512
|
+
case 'ArrowUp':
|
|
513
|
+
event.preventDefault();
|
|
514
|
+
focusInputRef.current && utils.DomHandler.focus(focusInputRef.current);
|
|
476
515
|
break;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
case
|
|
480
|
-
|
|
516
|
+
case 'Space':
|
|
517
|
+
case 'Enter':
|
|
518
|
+
case 'NumpadEnter':
|
|
519
|
+
event.preventDefault();
|
|
520
|
+
if (isHideButton) hide();
|
|
521
|
+
break;
|
|
522
|
+
case 'Escape':
|
|
523
|
+
onEscapeKey(event);
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
var onKeyDown = function onKeyDown(event) {
|
|
528
|
+
switch (event.code) {
|
|
529
|
+
case 'ArrowDown':
|
|
530
|
+
onArrowDownKey(event);
|
|
531
|
+
break;
|
|
532
|
+
case 'Space':
|
|
533
|
+
case 'Enter':
|
|
534
|
+
case 'NumpadEnter':
|
|
535
|
+
onEnterKey(event);
|
|
536
|
+
break;
|
|
537
|
+
case 'Escape':
|
|
538
|
+
onEscapeKey(event);
|
|
539
|
+
break;
|
|
540
|
+
case 'Tab':
|
|
481
541
|
if (overlayVisibleState) {
|
|
482
|
-
hide();
|
|
483
542
|
event.preventDefault();
|
|
543
|
+
if (event.shiftKey) setFocusToFocusableFirstNode();else onTabKey(event);
|
|
484
544
|
}
|
|
485
545
|
break;
|
|
486
|
-
|
|
487
|
-
//tab
|
|
488
|
-
case 9:
|
|
489
|
-
hide();
|
|
490
|
-
break;
|
|
491
546
|
}
|
|
492
547
|
};
|
|
493
|
-
var
|
|
494
|
-
|
|
495
|
-
|
|
548
|
+
var onArrowDownKey = function onArrowDownKey(event) {
|
|
549
|
+
if (overlayVisibleState) return;
|
|
550
|
+
focusToTree.current = true;
|
|
551
|
+
show();
|
|
552
|
+
event.preventDefault();
|
|
553
|
+
};
|
|
554
|
+
var onEnterKey = function onEnterKey(event) {
|
|
555
|
+
if (overlayVisibleState) {
|
|
556
|
+
hide();
|
|
557
|
+
} else {
|
|
558
|
+
onArrowDownKey(event);
|
|
559
|
+
}
|
|
560
|
+
event.preventDefault();
|
|
561
|
+
};
|
|
562
|
+
var onEscapeKey = function onEscapeKey(event) {
|
|
563
|
+
if (overlayVisibleState) {
|
|
564
|
+
hide();
|
|
496
565
|
event.preventDefault();
|
|
497
566
|
}
|
|
498
567
|
};
|
|
568
|
+
var onTabKey = function onTabKey(event) {
|
|
569
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
570
|
+
if (!pressedInInputText) {
|
|
571
|
+
if (overlayVisibleState && hasFocusableElements()) {
|
|
572
|
+
utils.DomHandler.focus(firstHiddenFocusableElementOnOverlay.current);
|
|
573
|
+
event.preventDefault();
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
var hasFocusableElements = function hasFocusableElements() {
|
|
578
|
+
return utils.DomHandler.getFocusableElements(overlayRef.current, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
579
|
+
};
|
|
499
580
|
var onFilterInputChange = function onFilterInputChange(event) {
|
|
500
581
|
var value = event.target.value;
|
|
501
582
|
if (props.onFilterValueChange) {
|
|
@@ -517,6 +598,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
517
598
|
top: '0',
|
|
518
599
|
left: '0'
|
|
519
600
|
});
|
|
601
|
+
setFocusToFocusableFirstNode();
|
|
520
602
|
alignOverlay();
|
|
521
603
|
scrollInView();
|
|
522
604
|
};
|
|
@@ -541,7 +623,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
541
623
|
utils.DomHandler.alignOverlay(overlayRef.current, triggerRef.current.parentElement, props.appendTo || context && context.appendTo || PrimeReact__default["default"].appendTo);
|
|
542
624
|
};
|
|
543
625
|
var scrollInView = function scrollInView() {
|
|
544
|
-
var highlightItem = utils.DomHandler.findSingle(overlayRef.current, '
|
|
626
|
+
var highlightItem = utils.DomHandler.findSingle(overlayRef.current, '[data-pc-section="content"][data-p-highlight="true"]');
|
|
545
627
|
if (highlightItem && highlightItem.scrollIntoView) {
|
|
546
628
|
highlightItem.scrollIntoView({
|
|
547
629
|
block: 'nearest',
|
|
@@ -594,6 +676,13 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
594
676
|
updateTreeBranchState(null, null, keys);
|
|
595
677
|
}
|
|
596
678
|
};
|
|
679
|
+
var setFocusToFocusableFirstNode = function setFocusToFocusableFirstNode() {
|
|
680
|
+
var treeNodeEl = utils.DomHandler.find(treeRef.current.getElement(), '[data-pc-section="node"]');
|
|
681
|
+
var focusedElement = _toConsumableArray(treeNodeEl).find(function (item) {
|
|
682
|
+
return item.getAttribute('tabindex') === '0';
|
|
683
|
+
});
|
|
684
|
+
utils.DomHandler.focus(focusedElement);
|
|
685
|
+
};
|
|
597
686
|
var updateTreeBranchState = function updateTreeBranchState(node, path, keys) {
|
|
598
687
|
if (node) {
|
|
599
688
|
if (isSelected(node, keys)) {
|
|
@@ -675,6 +764,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
675
764
|
}, [focusInputRef, props.inputRef]);
|
|
676
765
|
hooks.useMountEffect(function () {
|
|
677
766
|
updateTreeState();
|
|
767
|
+
listId.current = utils.UniqueComponentId() + '_list';
|
|
678
768
|
if (props.autoFocus) {
|
|
679
769
|
utils.DomHandler.focus(focusInputRef.current, props.autoFocus);
|
|
680
770
|
}
|
|
@@ -688,6 +778,12 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
688
778
|
hooks.useUpdateEffect(function () {
|
|
689
779
|
updateTreeState();
|
|
690
780
|
}, [props.options]);
|
|
781
|
+
hooks.useUpdateEffect(function () {
|
|
782
|
+
if (focusToTree.current && overlayVisibleState) {
|
|
783
|
+
focusToTree.current = false;
|
|
784
|
+
setFocusToFocusableFirstNode();
|
|
785
|
+
}
|
|
786
|
+
}, [overlayVisibleState]);
|
|
691
787
|
hooks.useUpdateEffect(function () {
|
|
692
788
|
if (overlayVisibleState && expandedKeysState) {
|
|
693
789
|
alignOverlay();
|
|
@@ -705,18 +801,22 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
705
801
|
utils.ZIndexUtils.clear(overlayRef.current);
|
|
706
802
|
});
|
|
707
803
|
var createKeyboardHelper = function createKeyboardHelper() {
|
|
708
|
-
var hiddenInputWrapperProps =
|
|
804
|
+
var hiddenInputWrapperProps = mergeProps({
|
|
709
805
|
className: 'p-hidden-accessible'
|
|
710
806
|
}, ptm('hiddenInputWrapper'));
|
|
711
|
-
var hiddenInputProps =
|
|
807
|
+
var hiddenInputProps = mergeProps(_objectSpread({
|
|
712
808
|
ref: focusInputRef,
|
|
713
809
|
role: 'listbox',
|
|
714
810
|
id: props.inputId,
|
|
715
811
|
type: 'text',
|
|
716
812
|
'aria-expanded': overlayVisibleState,
|
|
813
|
+
'aria-label': props.ariaLabel,
|
|
814
|
+
'aria-labelledby': props.ariaLabelledBy,
|
|
815
|
+
'aria-haspopup': 'tree',
|
|
816
|
+
'aria-controls': listId.current,
|
|
717
817
|
onFocus: onInputFocus,
|
|
718
818
|
onBlur: onInputBlur,
|
|
719
|
-
onKeyDown:
|
|
819
|
+
onKeyDown: onKeyDown,
|
|
720
820
|
disabled: props.disabled,
|
|
721
821
|
tabIndex: props.tabIndex
|
|
722
822
|
}, ariaProps), ptm('hiddenInput'));
|
|
@@ -725,16 +825,16 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
725
825
|
})));
|
|
726
826
|
};
|
|
727
827
|
var createLabel = function createLabel() {
|
|
728
|
-
var tokenProps =
|
|
828
|
+
var tokenProps = mergeProps({
|
|
729
829
|
className: cx('token')
|
|
730
830
|
}, ptm('token'));
|
|
731
|
-
var tokenLabelProps =
|
|
831
|
+
var tokenLabelProps = mergeProps({
|
|
732
832
|
className: cx('tokenLabel')
|
|
733
833
|
}, ptm('tokenLabel'));
|
|
734
|
-
var labelContainerProps =
|
|
834
|
+
var labelContainerProps = mergeProps({
|
|
735
835
|
className: cx('labelContainer')
|
|
736
836
|
}, ptm('labelContainer'));
|
|
737
|
-
var labelProps =
|
|
837
|
+
var labelProps = mergeProps({
|
|
738
838
|
className: cx('label', {
|
|
739
839
|
isValueEmpty: isValueEmpty,
|
|
740
840
|
getLabel: getLabel
|
|
@@ -757,14 +857,14 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
757
857
|
return /*#__PURE__*/React__namespace.createElement("div", labelContainerProps, /*#__PURE__*/React__namespace.createElement("div", labelProps, content));
|
|
758
858
|
};
|
|
759
859
|
var createDropdownIcon = function createDropdownIcon() {
|
|
760
|
-
var triggerProps =
|
|
860
|
+
var triggerProps = mergeProps({
|
|
761
861
|
ref: triggerRef,
|
|
762
862
|
className: cx('trigger'),
|
|
763
863
|
role: 'button',
|
|
764
|
-
'aria-haspopup': '
|
|
864
|
+
'aria-haspopup': 'tree',
|
|
765
865
|
'aria-expanded': overlayVisibleState
|
|
766
866
|
}, ptm('trigger'));
|
|
767
|
-
var triggerIconProps =
|
|
867
|
+
var triggerIconProps = mergeProps({
|
|
768
868
|
className: cx('triggerIcon')
|
|
769
869
|
}, ptm('triggerIcon'));
|
|
770
870
|
var icon = props.dropdownIcon || /*#__PURE__*/React__namespace.createElement(chevrondown.ChevronDownIcon, triggerIconProps);
|
|
@@ -775,7 +875,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
775
875
|
};
|
|
776
876
|
var createClearIcon = function createClearIcon() {
|
|
777
877
|
if (props.value != null && props.showClear && !props.disabled) {
|
|
778
|
-
var clearIconProps =
|
|
878
|
+
var clearIconProps = mergeProps({
|
|
779
879
|
className: cx('clearIcon'),
|
|
780
880
|
onPointerUp: clear
|
|
781
881
|
}, ptm('clearIcon'));
|
|
@@ -787,10 +887,12 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
787
887
|
return null;
|
|
788
888
|
};
|
|
789
889
|
var createContent = function createContent() {
|
|
790
|
-
var emptyMessageProps =
|
|
890
|
+
var emptyMessageProps = mergeProps({
|
|
791
891
|
className: cx('emptyMessage')
|
|
792
892
|
}, ptm('emptyMessage'));
|
|
793
893
|
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(tree.Tree, {
|
|
894
|
+
ref: treeRef,
|
|
895
|
+
id: listId.current,
|
|
794
896
|
expandedKeys: expandedKeys,
|
|
795
897
|
filter: props.filter,
|
|
796
898
|
filterBy: props.filterBy,
|
|
@@ -821,21 +923,23 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
821
923
|
var createFilterElement = function createFilterElement() {
|
|
822
924
|
if (props.filter) {
|
|
823
925
|
var filterValue = utils.ObjectUtils.isNotEmpty(filteredValue) ? filteredValue : '';
|
|
824
|
-
var filterContainerProps =
|
|
926
|
+
var filterContainerProps = mergeProps({
|
|
825
927
|
className: cx('filterContainer')
|
|
826
928
|
}, ptm('filterContainer'));
|
|
827
|
-
var filterProps =
|
|
929
|
+
var filterProps = mergeProps({
|
|
828
930
|
ref: filterInputRef,
|
|
829
931
|
type: 'text',
|
|
830
932
|
value: filterValue,
|
|
831
933
|
autoComplete: 'off',
|
|
832
934
|
className: cx('filter'),
|
|
833
935
|
placeholder: props.filterPlaceholder,
|
|
834
|
-
onKeyDown:
|
|
936
|
+
onKeyDown: function onKeyDown(event) {
|
|
937
|
+
return onHeaderElementKeyDown(event, false);
|
|
938
|
+
},
|
|
835
939
|
onChange: onFilterInputChange,
|
|
836
940
|
disabled: props.disabled
|
|
837
941
|
}, ptm('filter'));
|
|
838
|
-
var filterIconProps =
|
|
942
|
+
var filterIconProps = mergeProps({
|
|
839
943
|
className: cx('filterIcon')
|
|
840
944
|
}, ptm('filterIcon'));
|
|
841
945
|
var icon = props.filterIcon || /*#__PURE__*/React__namespace.createElement(search.SearchIcon, filterIconProps);
|
|
@@ -848,7 +952,9 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
848
952
|
className: 'p-treeselect-filter-container',
|
|
849
953
|
element: filterContent,
|
|
850
954
|
filterOptions: filterOptions,
|
|
851
|
-
filterInputKeyDown:
|
|
955
|
+
filterInputKeyDown: function filterInputKeyDown(event) {
|
|
956
|
+
return onHeaderElementKeyDown(event, function () {});
|
|
957
|
+
},
|
|
852
958
|
filterInputChange: onFilterInputChange,
|
|
853
959
|
filterIconClassName: 'p-dropdown-filter-icon',
|
|
854
960
|
props: props
|
|
@@ -860,7 +966,7 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
860
966
|
};
|
|
861
967
|
var createHeader = function createHeader() {
|
|
862
968
|
var filterElement = createFilterElement();
|
|
863
|
-
var closeIconProps =
|
|
969
|
+
var closeIconProps = mergeProps({
|
|
864
970
|
className: cx('closeIcon'),
|
|
865
971
|
'aria-hidden': true
|
|
866
972
|
}, ptm('closeIcon'));
|
|
@@ -868,13 +974,16 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
868
974
|
var closeIcon = utils.IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
|
|
869
975
|
props: props
|
|
870
976
|
});
|
|
871
|
-
var closeButtonProps =
|
|
977
|
+
var closeButtonProps = mergeProps({
|
|
872
978
|
type: 'button',
|
|
873
979
|
className: cx('closeButton'),
|
|
980
|
+
onKeyDown: function onKeyDown(event) {
|
|
981
|
+
return onHeaderElementKeyDown(event, true);
|
|
982
|
+
},
|
|
874
983
|
onClick: hide,
|
|
875
984
|
'aria-label': PrimeReact.localeOption('close')
|
|
876
985
|
}, ptm('closeButton'));
|
|
877
|
-
var headerProps =
|
|
986
|
+
var headerProps = mergeProps({
|
|
878
987
|
className: cx('header')
|
|
879
988
|
}, ptm('header'));
|
|
880
989
|
var closeElement = /*#__PURE__*/React__namespace.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React__namespace.createElement(ripple.Ripple, null));
|
|
@@ -900,7 +1009,27 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
900
1009
|
var selectedNodes = getSelectedNodes();
|
|
901
1010
|
var otherProps = TreeSelectBase.getOtherProps(props);
|
|
902
1011
|
var ariaProps = utils.ObjectUtils.reduceKeys(otherProps, utils.DomHandler.ARIA_PROPS);
|
|
903
|
-
var
|
|
1012
|
+
var firstHiddenFocusableElementOnOverlayProps = mergeProps({
|
|
1013
|
+
ref: firstHiddenFocusableElementOnOverlay,
|
|
1014
|
+
role: 'presentation',
|
|
1015
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
1016
|
+
tabIndex: 0,
|
|
1017
|
+
onFocus: onFirstHiddenFocus,
|
|
1018
|
+
'aria-hidden': true,
|
|
1019
|
+
'data-p-hidden-accessible': true,
|
|
1020
|
+
'data-p-hidden-focusable': true
|
|
1021
|
+
}, ptm('firstHiddenFocusableElementOnOverlay'));
|
|
1022
|
+
var lastHiddenFocusableElementOnOverlayProps = mergeProps({
|
|
1023
|
+
ref: lastHiddenFocusableElementOnOverlay,
|
|
1024
|
+
role: 'presentation',
|
|
1025
|
+
className: 'p-hidden-accessible p-hidden-focusable',
|
|
1026
|
+
tabIndex: 0,
|
|
1027
|
+
onFocus: onLastHiddenFocus,
|
|
1028
|
+
'aria-hidden': true,
|
|
1029
|
+
'data-p-hidden-accessible': true,
|
|
1030
|
+
'data-p-hidden-focusable': true
|
|
1031
|
+
}, ptm('lastHiddenFocusableElementOnOverlay'));
|
|
1032
|
+
var rootProps = mergeProps({
|
|
904
1033
|
ref: elementRef,
|
|
905
1034
|
className: cx('root', {
|
|
906
1035
|
focusedState: focusedState,
|
|
@@ -926,7 +1055,10 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
926
1055
|
scrollHeight: props.scrollHeight,
|
|
927
1056
|
onClick: onOverlayClick,
|
|
928
1057
|
header: header,
|
|
1058
|
+
hide: hide,
|
|
929
1059
|
footer: footer,
|
|
1060
|
+
firstHiddenFocusableElementOnOverlay: /*#__PURE__*/React__namespace.createElement("span", firstHiddenFocusableElementOnOverlayProps),
|
|
1061
|
+
lastHiddenFocusableElementOnOverlay: /*#__PURE__*/React__namespace.createElement("span", lastHiddenFocusableElementOnOverlayProps),
|
|
930
1062
|
transitionOptions: props.transitionOptions,
|
|
931
1063
|
"in": overlayVisibleState,
|
|
932
1064
|
onEnter: onOverlayEnter,
|
|
@@ -935,7 +1067,12 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
935
1067
|
onExited: onOverlayExited,
|
|
936
1068
|
ptm: ptm,
|
|
937
1069
|
cx: cx
|
|
938
|
-
}, content)
|
|
1070
|
+
}, content), hasTooltip && /*#__PURE__*/React__namespace.createElement(tooltip.Tooltip, _extends({
|
|
1071
|
+
target: elementRef,
|
|
1072
|
+
content: props.tooltip
|
|
1073
|
+
}, props.tooltipOptions, {
|
|
1074
|
+
pt: ptm('tooltip')
|
|
1075
|
+
})));
|
|
939
1076
|
}));
|
|
940
1077
|
TreeSelect.displayName = 'TreeSelect';
|
|
941
1078
|
|
|
@@ -945,4 +1082,4 @@ this.primereact.treeselect = (function (exports, React, PrimeReact, componentbas
|
|
|
945
1082
|
|
|
946
1083
|
return exports;
|
|
947
1084
|
|
|
948
|
-
})({}, React, primereact.api, primereact.componentbase, primereact.hooks, primereact.icons.chevrondown, primereact.icons.search, primereact.icons.times, primereact.overlayservice, primereact.ripple, primereact.tree, primereact.utils, primereact.csstransition, primereact.portal);
|
|
1085
|
+
})({}, React, primereact.api, primereact.componentbase, primereact.hooks, primereact.icons.chevrondown, primereact.icons.search, primereact.icons.times, primereact.overlayservice, primereact.ripple, primereact.tooltip, primereact.tree, primereact.utils, primereact.csstransition, primereact.portal);
|