primereact 10.8.4 → 10.8.5
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 +43 -55
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +43 -55
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +43 -55
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +61 -75
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +61 -75
- package/api/api.esm.min.js +1 -1
- package/api/api.js +61 -75
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +72 -71
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +72 -71
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +72 -71
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +37 -49
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +37 -49
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -49
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +17 -23
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +17 -23
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +37 -49
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +37 -49
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +37 -49
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +37 -49
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +37 -49
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +37 -49
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +23 -34
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +23 -34
- package/button/button.esm.min.js +1 -1
- package/button/button.js +23 -34
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +48 -60
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +48 -60
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +48 -60
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +43 -55
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +43 -55
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +43 -55
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +40 -52
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +40 -52
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +40 -52
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +37 -49
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +37 -49
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +37 -49
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +37 -49
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +37 -49
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +46 -56
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +46 -56
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +46 -56
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +37 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +37 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +37 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +33 -40
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +33 -40
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +33 -40
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +37 -49
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +37 -49
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +37 -49
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +37 -49
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +37 -49
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +37 -49
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +37 -49
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +37 -49
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +37 -49
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1008 -1436
- package/core/core.min.js +67 -67
- package/csstransition/csstransition.cjs.js +17 -23
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +17 -23
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +17 -23
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +26 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +26 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +26 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +94 -113
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +94 -113
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +94 -113
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +46 -58
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +46 -58
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +46 -58
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +14 -15
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +14 -15
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +14 -15
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +44 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +44 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +44 -56
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +43 -55
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +43 -55
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +46 -58
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +46 -58
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +46 -58
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +37 -49
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +37 -49
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +37 -49
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +20 -26
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +20 -26
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +20 -26
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +48 -60
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +48 -60
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +48 -60
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +17 -23
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +17 -23
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +17 -23
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +43 -55
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +43 -55
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +43 -55
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +37 -44
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +37 -44
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +37 -44
- package/hooks/hooks.min.js +1 -1
- package/iconfield/iconfield.cjs.js +23 -34
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +23 -34
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +23 -34
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -11
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -11
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -11
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -11
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -11
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -11
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -11
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -11
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -11
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -11
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -11
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -11
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -11
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -11
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -11
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -11
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -11
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -11
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -11
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -11
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -11
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -11
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -11
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -11
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +6 -11
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +6 -11
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +6 -11
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +6 -11
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +6 -11
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +6 -11
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +6 -11
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +6 -11
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +6 -11
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +6 -11
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -11
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -11
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +6 -11
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +6 -11
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +6 -11
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -11
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -11
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -11
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -11
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -11
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -11
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -11
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -11
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -11
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -11
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -11
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -11
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -11
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -11
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -11
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -11
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -11
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -11
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +6 -11
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +6 -11
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +6 -11
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +6 -11
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +6 -11
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +6 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +6 -11
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -11
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -11
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +6 -11
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +6 -11
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +6 -11
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +6 -11
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +6 -11
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +6 -11
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +6 -11
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +6 -11
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +6 -11
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +6 -11
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +6 -11
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +6 -11
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +6 -11
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -11
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -11
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +6 -11
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +6 -11
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +6 -11
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +6 -11
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +6 -11
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +6 -11
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +6 -11
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +6 -11
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +6 -11
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +6 -11
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +6 -11
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +6 -11
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +6 -11
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +6 -11
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +6 -11
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +6 -11
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +6 -11
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +6 -11
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +6 -11
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +6 -11
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +6 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +6 -11
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +6 -11
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +6 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +6 -11
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +6 -11
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +6 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +6 -11
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +6 -11
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +6 -11
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +6 -11
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +6 -11
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +6 -11
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +6 -11
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +6 -11
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +6 -11
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +6 -11
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +6 -11
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +6 -11
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +6 -11
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -11
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -11
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +6 -11
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +6 -11
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +6 -11
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +6 -11
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +6 -11
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +6 -11
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +6 -11
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +6 -11
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +6 -11
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +6 -11
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +6 -11
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +6 -11
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +6 -11
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +6 -11
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +6 -11
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +6 -11
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +6 -11
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +6 -11
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +37 -49
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +37 -49
- package/image/image.esm.min.js +1 -1
- package/image/image.js +37 -49
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +14 -15
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +14 -15
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +14 -15
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +23 -34
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +23 -34
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +23 -34
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +8 -12
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +8 -12
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +8 -12
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +46 -55
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +47 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +46 -55
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +43 -55
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +43 -55
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +43 -55
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +23 -34
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +23 -34
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -34
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +30 -34
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +30 -34
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +30 -34
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +25 -35
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +25 -35
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +25 -35
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +16 -17
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +16 -17
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +16 -17
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +14 -15
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -15
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +14 -15
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +46 -58
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +46 -58
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +46 -58
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +39 -51
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +39 -51
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +39 -51
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +46 -56
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +46 -56
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +46 -56
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +43 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +43 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +43 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +37 -49
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +37 -49
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +37 -49
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +23 -34
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +23 -34
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -34
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +44 -57
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +45 -58
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +44 -57
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +23 -34
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +23 -34
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +23 -34
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +138 -155
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +138 -155
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +138 -155
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +37 -49
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +37 -49
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +37 -49
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +43 -55
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +43 -55
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +43 -55
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +45 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +45 -61
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +45 -61
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +37 -49
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +37 -49
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +37 -49
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +41 -56
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +41 -56
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -56
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +20 -26
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +20 -26
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +20 -26
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +37 -49
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +37 -49
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +37 -49
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +17 -23
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +17 -23
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +17 -23
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +14 -15
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +14 -15
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +14 -15
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +37 -49
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +37 -49
- package/password/password.esm.min.js +1 -1
- package/password/password.js +37 -49
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +49 -64
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +49 -64
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +49 -64
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +14 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +14 -15
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +14 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +324 -320
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +324 -320
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +324 -320
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +23 -34
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +23 -34
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +23 -34
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +23 -34
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +23 -34
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +37 -49
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +37 -49
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +37 -49
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +4 -1
- package/resources/themes/arya-green/theme.css +4 -1
- package/resources/themes/arya-orange/theme.css +4 -1
- package/resources/themes/arya-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -1
- package/resources/themes/fluent-light/theme.css +4 -1
- package/resources/themes/lara-dark-amber/theme.css +2 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -1
- package/resources/themes/lara-dark-cyan/theme.css +2 -1
- package/resources/themes/lara-dark-green/theme.css +2 -1
- package/resources/themes/lara-dark-indigo/theme.css +2 -1
- package/resources/themes/lara-dark-pink/theme.css +2 -1
- package/resources/themes/lara-dark-purple/theme.css +2 -1
- package/resources/themes/lara-dark-teal/theme.css +2 -1
- package/resources/themes/lara-light-amber/theme.css +2 -1
- package/resources/themes/lara-light-blue/theme.css +2 -1
- package/resources/themes/lara-light-cyan/theme.css +2 -1
- package/resources/themes/lara-light-green/theme.css +2 -1
- package/resources/themes/lara-light-indigo/theme.css +2 -1
- package/resources/themes/lara-light-pink/theme.css +2 -1
- package/resources/themes/lara-light-purple/theme.css +2 -1
- package/resources/themes/lara-light-teal/theme.css +2 -1
- package/resources/themes/luna-amber/theme.css +4 -1
- package/resources/themes/luna-blue/theme.css +4 -1
- package/resources/themes/luna-green/theme.css +4 -1
- package/resources/themes/luna-pink/theme.css +4 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +2 -1
- package/resources/themes/nano/theme.css +4 -1
- package/resources/themes/nova/theme.css +4 -1
- package/resources/themes/nova-accent/theme.css +4 -1
- package/resources/themes/nova-alt/theme.css +4 -1
- package/resources/themes/rhea/theme.css +4 -1
- package/resources/themes/saga-blue/theme.css +4 -1
- package/resources/themes/saga-green/theme.css +4 -1
- package/resources/themes/saga-orange/theme.css +4 -1
- package/resources/themes/saga-purple/theme.css +4 -1
- package/resources/themes/soho-dark/theme.css +1 -0
- package/resources/themes/soho-light/theme.css +1 -0
- package/resources/themes/tailwind-light/theme.css +2 -1
- package/resources/themes/vela-blue/theme.css +4 -1
- package/resources/themes/vela-green/theme.css +4 -1
- package/resources/themes/vela-orange/theme.css +4 -1
- package/resources/themes/vela-purple/theme.css +4 -1
- package/resources/themes/viva-dark/theme.css +1 -0
- package/resources/themes/viva-light/theme.css +1 -0
- package/ripple/ripple.cjs.js +37 -49
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +37 -49
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +37 -49
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +20 -26
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +20 -26
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +20 -26
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +37 -49
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +37 -49
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +37 -49
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +26 -32
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +26 -32
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +26 -32
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +38 -50
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +38 -50
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -50
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +17 -23
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +17 -23
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +17 -23
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +37 -49
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +37 -49
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +37 -49
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +43 -55
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +43 -55
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +43 -55
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +43 -55
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +43 -55
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -55
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +37 -49
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +2 -2
- package/splitbutton/splitbutton.esm.js +37 -49
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +37 -49
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +43 -55
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +43 -55
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +43 -55
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +37 -49
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +37 -49
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +37 -49
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +37 -49
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +37 -49
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +37 -49
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +14 -15
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +14 -15
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +14 -15
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +37 -49
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +37 -49
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +37 -49
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +37 -44
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +37 -44
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +37 -44
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +17 -23
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +17 -23
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +17 -23
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +20 -21
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +20 -21
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +20 -21
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +37 -49
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +37 -49
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +23 -34
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +23 -34
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +23 -34
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +53 -73
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +53 -73
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +53 -73
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +24 -35
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +24 -35
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +24 -35
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +43 -55
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +43 -55
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +43 -55
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +50 -62
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +50 -62
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +50 -62
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -59
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +48 -59
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -59
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +61 -70
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +61 -70
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +61 -70
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +37 -49
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +37 -49
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +37 -49
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +59 -79
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +59 -79
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +59 -79
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +37 -49
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +37 -49
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +37 -49
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +3 -3
|
@@ -33,49 +33,43 @@ function _interopNamespace(e) {
|
|
|
33
33
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
34
|
|
|
35
35
|
function _extends() {
|
|
36
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
37
|
-
for (var
|
|
38
|
-
var
|
|
39
|
-
for (var
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
41
|
-
target[key] = source[key];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
36
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
37
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
38
|
+
var t = arguments[e];
|
|
39
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
44
40
|
}
|
|
45
|
-
return
|
|
46
|
-
};
|
|
47
|
-
return _extends.apply(this, arguments);
|
|
41
|
+
return n;
|
|
42
|
+
}, _extends.apply(null, arguments);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
function _arrayLikeToArray(
|
|
51
|
-
|
|
52
|
-
for (var
|
|
53
|
-
return
|
|
45
|
+
function _arrayLikeToArray(r, a) {
|
|
46
|
+
(null == a || a > r.length) && (a = r.length);
|
|
47
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
48
|
+
return n;
|
|
54
49
|
}
|
|
55
50
|
|
|
56
|
-
function _arrayWithoutHoles(
|
|
57
|
-
if (Array.isArray(
|
|
51
|
+
function _arrayWithoutHoles(r) {
|
|
52
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
function _iterableToArray(
|
|
61
|
-
if (typeof Symbol
|
|
55
|
+
function _iterableToArray(r) {
|
|
56
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
function _unsupportedIterableToArray(
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
59
|
+
function _unsupportedIterableToArray(r, a) {
|
|
60
|
+
if (r) {
|
|
61
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
62
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
63
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
64
|
+
}
|
|
71
65
|
}
|
|
72
66
|
|
|
73
67
|
function _nonIterableSpread() {
|
|
74
68
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
69
|
}
|
|
76
70
|
|
|
77
|
-
function _toConsumableArray(
|
|
78
|
-
return _arrayWithoutHoles(
|
|
71
|
+
function _toConsumableArray(r) {
|
|
72
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
function _typeof(o) {
|
|
@@ -88,39 +82,33 @@ function _typeof(o) {
|
|
|
88
82
|
}, _typeof(o);
|
|
89
83
|
}
|
|
90
84
|
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
var
|
|
94
|
-
if (
|
|
95
|
-
var
|
|
96
|
-
if (
|
|
85
|
+
function toPrimitive(t, r) {
|
|
86
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
87
|
+
var e = t[Symbol.toPrimitive];
|
|
88
|
+
if (void 0 !== e) {
|
|
89
|
+
var i = e.call(t, r || "default");
|
|
90
|
+
if ("object" != _typeof(i)) return i;
|
|
97
91
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
98
92
|
}
|
|
99
|
-
return (
|
|
93
|
+
return ("string" === r ? String : Number)(t);
|
|
100
94
|
}
|
|
101
95
|
|
|
102
|
-
function
|
|
103
|
-
var
|
|
104
|
-
return _typeof(
|
|
96
|
+
function toPropertyKey(t) {
|
|
97
|
+
var i = toPrimitive(t, "string");
|
|
98
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
105
99
|
}
|
|
106
100
|
|
|
107
|
-
function _defineProperty(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
writable: true
|
|
115
|
-
});
|
|
116
|
-
} else {
|
|
117
|
-
obj[key] = value;
|
|
118
|
-
}
|
|
119
|
-
return obj;
|
|
101
|
+
function _defineProperty(e, r, t) {
|
|
102
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
103
|
+
value: t,
|
|
104
|
+
enumerable: !0,
|
|
105
|
+
configurable: !0,
|
|
106
|
+
writable: !0
|
|
107
|
+
}) : e[r] = t, e;
|
|
120
108
|
}
|
|
121
109
|
|
|
122
|
-
function _arrayWithHoles(
|
|
123
|
-
if (Array.isArray(
|
|
110
|
+
function _arrayWithHoles(r) {
|
|
111
|
+
if (Array.isArray(r)) return r;
|
|
124
112
|
}
|
|
125
113
|
|
|
126
114
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -155,8 +143,8 @@ function _nonIterableRest() {
|
|
|
155
143
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
144
|
}
|
|
157
145
|
|
|
158
|
-
function _slicedToArray(
|
|
159
|
-
return _arrayWithHoles(
|
|
146
|
+
function _slicedToArray(r, e) {
|
|
147
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
160
148
|
}
|
|
161
149
|
|
|
162
150
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/csstransition"),a=require("primereact/hooks"),o=require("primereact/icons/chevrondown"),i=require("primereact/icons/chevronright"),c=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=l(e);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if(Array.isArray(e))return d(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){var t=y(e,"string");return"symbol"===h(t)?t:String(t)}function v(e){if(Array.isArray(e))return e}function O(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){return v(e)||O(e,t)||b(e,t)||E()}var S=n.ComponentBase.extend({defaultProps:{__TYPE:"Accordion",id:null,activeIndex:null,className:null,style:null,multiple:!1,expandIcon:null,collapseIcon:null,transitionOptions:null,onTabOpen:null,onTabClose:null,onTabChange:null,children:void 0},css:{classes:{root:"p-accordion p-component",accordiontab:{root:function(e){return c.classNames("p-accordion-tab",{"p-accordion-tab-active":e.selected})},content:"p-accordion-content",header:function(e){return c.classNames("p-accordion-header",{"p-highlight":e.selected,"p-disabled":(0,e.getTabProp)(e.tab,"disabled")})},headeraction:"p-accordion-header-link",headericon:"p-accordion-toggle-icon",headertitle:"p-accordion-header-text",toggleablecontent:"p-toggleable-content",transition:"p-toggleable-content"}},styles:"\n@layer primereact {\n .p-accordion-header-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n text-decoration: none;\n }\n \n .p-accordion-header-link:focus {\n z-index: 1;\n }\n \n .p-accordion-header-text {\n line-height: 1;\n width: 100%;\n }\n}\n"}}),j=n.ComponentBase.extend({defaultProps:{__TYPE:"AccordionTab",className:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,style:null,tabIndex:0,children:void 0},getCProp:function(e,t){return c.ObjectUtils.getComponentProp(e,t,j.defaultProps)},getCProps:function(e){return c.ObjectUtils.getComponentProps(e,j.defaultProps)},getCOtherProps:function(e){return c.ObjectUtils.getComponentDiffProps(e,j.defaultProps)}});function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){var r,a,o;r=e,o=n[t],(a=g(a=t))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(){},w=s.forwardRef((function(e,l){var d=a.useMergeProps(),h=s.useContext(t.PrimeReactContext),y=S.getProps(e,h),g=P(s.useState(y.id),2),v=g[0],O=g[1],E=P(s.useState(y.activeIndex),2),C=E[0],N=E[1],w=s.useRef(null),D=y.onTabChange?y.activeIndex:C,T=s.Children.count(y.children),A={props:y,state:{id:v,activeIndex:C}},I=S.setMetaData(x({},A)),_=I.ptm,k=I.ptmo,U=I.cx;n.useHandleStyle(S.css.styles,I.isUnstyled,{name:"accordion"});var H=function(e,t){return j.getCProp(e,t)},q=function(e,t,n){var r={parent:A,context:{index:n,count:T,first:0===n,last:n===T-1,selected:Q(n),disabled:H(e,"disabled")}};return d(_("tab.".concat(t),{tab:r}),_("accordiontab.".concat(t),{accordiontab:r}),_("accordiontab.".concat(t),r),k(H(e,"pt"),t,r))},M=function(e,t,n){R(e,t,n)},R=function(e,t,n){if(!H(t,"disabled")){var r=Q(n),a=null;if(y.multiple){var o=D||[];a=r?o.filter((function(e){return e!==n})):[].concat(p(c=o)||f(c)||b(c)||m(),[n])}else a=r?null:n;var i=r?y.onTabClose:y.onTabOpen;i&&i({originalEvent:e,index:n}),y.onTabChange?y.onTabChange({originalEvent:e,index:a}):N(a)}var c;e.preventDefault()},J=function(e,t,n){switch(e.code){case"ArrowDown":X(e);break;case"ArrowUp":z(e);break;case"Home":B(e);break;case"End":Y(e);break;case"Enter":case"NumpadEnter":case"Space":K(e,t,n)}},X=function(e){var t=V(e.target.parentElement.parentElement);t?L(t):B(e),e.preventDefault()},z=function(e){var t=$(e.target.parentElement.parentElement);t?L(t):Y(e),e.preventDefault()},B=function(e){var t=F();L(t),e.preventDefault()},Y=function(e){var t=G();L(t),e.preventDefault()},K=function(e,t,n){R(e,t,n),e.preventDefault()},V=function(e){var t=c.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?c.DomHandler.getAttribute(t,"data-p-disabled")?V(t.parentElement):c.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},$=function(e){var t=c.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?c.DomHandler.getAttribute(t,"data-p-disabled")?$(t.parentElement):c.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},F=function(){return V(w.current.firstElementChild,!0)},G=function(){return $(w.current.lastElementChild,!0)},L=function(e){e&&c.DomHandler.focus(e)},Q=function(e){return y.multiple&&Array.isArray(D)?D&&D.some((function(t){return t===e})):D===e};if(s.useImperativeHandle(l,(function(){return{props:y,getElement:function(){return w.current}}})),a.useMountEffect((function(){v||O(c.UniqueComponentId())})),!v)return null;var W=function(e,t,n){var r=x(x({},H(e,"style")||{}),H(e,"headerStyle")||{}),a=v+"_header_"+n,l=v+"_content_"+n,u=H(e,"disabled")?-1:H(e,"tabIndex"),p=d({className:U("accordiontab.headertitle")},q(e,"headertitle",n)),f=j.getCProps(e),b=H(e,"headerTemplate")?c.ObjectUtils.getJSXElement(H(e,"headerTemplate"),f):s.createElement("span",p,c.ObjectUtils.getJSXElement(H(e,"header"),f)),m=d({"aria-hidden":"true",className:U("accordiontab.headericon")},q(e,"headericon",n)),h=c.IconUtils.getJSXIcon(t?y.collapseIcon||s.createElement(o.ChevronDownIcon,m):y.expandIcon||s.createElement(i.ChevronRightIcon,m),x({},m),{props:y,selected:t}),g=d({className:c.classNames(H(e,"headerClassName"),H(e,"className"),U("accordiontab.header",{selected:t,getTabProp:H,tab:e})),style:r,"data-p-highlight":t,"data-p-disabled":H(e,"disabled")},q(e,"header",n)),O=d({id:a,href:"#"+l,className:U("accordiontab.headeraction"),role:"button",tabIndex:u,onClick:function(t){return M(t,e,n)},onKeyDown:function(t){return J(t,e,n)},"aria-disabled":H(e,"disabled"),"aria-controls":l,"aria-expanded":t},q(e,"headeraction",n));return s.createElement("div",g,s.createElement("a",O,h,b))},Z=function(e,t,n){var a=x(x({},H(e,"style")||{}),H(e,"contentStyle")||{}),o=v+"_content_"+n,i=v+"_header_"+n,l=s.createRef(),p=d({id:o,ref:l,className:c.classNames(H(e,"contentClassName"),H(e,"className"),U("accordiontab.toggleablecontent")),style:a,role:"region","aria-labelledby":i},q(e,"toggleablecontent",n)),f=d({className:U("accordiontab.content")},q(e,"content",n)),b=d({classNames:U("accordiontab.transition"),timeout:{enter:1e3,exit:450},in:t,unmountOnExit:!0,options:y.transitionOptions},q(e,"transition",n));return s.createElement(r.CSSTransition,u({nodeRef:l},b),s.createElement("div",p,s.createElement("div",f,H(e,"children"))))},ee=s.Children.map(y.children,(function(e,t){if(c.ObjectUtils.isValidChild(e,"AccordionTab")){var n=v+"_"+t,r=Q(t),a=W(e,r,t),o=Z(e,r,t),i=d({key:n,className:U("accordiontab.root",{selected:r})},j.getCOtherProps(e),q(e,"root",t));return s.createElement("div",i,a,o)}return null})),te=d({className:c.classNames(y.className,U("root")),style:y.style},S.getOtherProps(y),_("root"));return s.createElement("div",u({id:v,ref:w},te),ee)}));N.displayName="AccordionTab",w.displayName="Accordion",exports.Accordion=w,exports.AccordionTab=N;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/csstransition"),a=require("primereact/hooks"),o=require("primereact/icons/chevrondown"),i=require("primereact/icons/chevronright"),c=require("primereact/utils");function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s=l(e);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if(Array.isArray(e))return d(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){var t=y(e,"string");return"symbol"==h(t)?t:t+""}function v(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){return O(e)||E(e,t)||b(e,t)||P()}var C=n.ComponentBase.extend({defaultProps:{__TYPE:"Accordion",id:null,activeIndex:null,className:null,style:null,multiple:!1,expandIcon:null,collapseIcon:null,transitionOptions:null,onTabOpen:null,onTabClose:null,onTabChange:null,children:void 0},css:{classes:{root:"p-accordion p-component",accordiontab:{root:function(e){return c.classNames("p-accordion-tab",{"p-accordion-tab-active":e.selected})},content:"p-accordion-content",header:function(e){return c.classNames("p-accordion-header",{"p-highlight":e.selected,"p-disabled":(0,e.getTabProp)(e.tab,"disabled")})},headeraction:"p-accordion-header-link",headericon:"p-accordion-toggle-icon",headertitle:"p-accordion-header-text",toggleablecontent:"p-toggleable-content",transition:"p-toggleable-content"}},styles:"\n@layer primereact {\n .p-accordion-header-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n text-decoration: none;\n }\n \n .p-accordion-header-link:focus {\n z-index: 1;\n }\n \n .p-accordion-header-text {\n line-height: 1;\n width: 100%;\n }\n}\n"}}),j=n.ComponentBase.extend({defaultProps:{__TYPE:"AccordionTab",className:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,style:null,tabIndex:0,children:void 0},getCProp:function(e,t){return c.ObjectUtils.getComponentProp(e,t,j.defaultProps)},getCProps:function(e){return c.ObjectUtils.getComponentProps(e,j.defaultProps)},getCOtherProps:function(e){return c.ObjectUtils.getComponentDiffProps(e,j.defaultProps)}});function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=function(){},D=s.forwardRef((function(e,l){var d=a.useMergeProps(),h=s.useContext(t.PrimeReactContext),y=C.getProps(e,h),g=S(s.useState(y.id),2),v=g[0],O=g[1],E=S(s.useState(y.activeIndex),2),P=E[0],x=E[1],w=s.useRef(null),D=y.onTabChange?y.activeIndex:P,T=s.Children.count(y.children),A={props:y,state:{id:v,activeIndex:P}},I=C.setMetaData(N({},A)),_=I.ptm,k=I.ptmo,U=I.cx;n.useHandleStyle(C.css.styles,I.isUnstyled,{name:"accordion"});var H=function(e,t){return j.getCProp(e,t)},q=function(e,t,n){var r={parent:A,context:{index:n,count:T,first:0===n,last:n===T-1,selected:Q(n),disabled:H(e,"disabled")}};return d(_("tab.".concat(t),{tab:r}),_("accordiontab.".concat(t),{accordiontab:r}),_("accordiontab.".concat(t),r),k(H(e,"pt"),t,r))},M=function(e,t,n){R(e,t,n)},R=function(e,t,n){if(!H(t,"disabled")){var r=Q(n),a=null;if(y.multiple){var o=D||[];a=r?o.filter((function(e){return e!==n})):[].concat(p(c=o)||f(c)||b(c)||m(),[n])}else a=r?null:n;var i=r?y.onTabClose:y.onTabOpen;i&&i({originalEvent:e,index:n}),y.onTabChange?y.onTabChange({originalEvent:e,index:a}):x(a)}var c;e.preventDefault()},J=function(e,t,n){switch(e.code){case"ArrowDown":X(e);break;case"ArrowUp":z(e);break;case"Home":B(e);break;case"End":Y(e);break;case"Enter":case"NumpadEnter":case"Space":K(e,t,n)}},X=function(e){var t=V(e.target.parentElement.parentElement);t?L(t):B(e),e.preventDefault()},z=function(e){var t=$(e.target.parentElement.parentElement);t?L(t):Y(e),e.preventDefault()},B=function(e){var t=F();L(t),e.preventDefault()},Y=function(e){var t=G();L(t),e.preventDefault()},K=function(e,t,n){R(e,t,n),e.preventDefault()},V=function(e){var t=c.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?c.DomHandler.getAttribute(t,"data-p-disabled")?V(t.parentElement):c.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},$=function(e){var t=c.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?c.DomHandler.getAttribute(t,"data-p-disabled")?$(t.parentElement):c.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},F=function(){return V(w.current.firstElementChild,!0)},G=function(){return $(w.current.lastElementChild,!0)},L=function(e){e&&c.DomHandler.focus(e)},Q=function(e){return y.multiple&&Array.isArray(D)?D&&D.some((function(t){return t===e})):D===e};if(s.useImperativeHandle(l,(function(){return{props:y,getElement:function(){return w.current}}})),a.useMountEffect((function(){v||O(c.UniqueComponentId())})),!v)return null;var W=function(e,t,n){var r=N(N({},H(e,"style")||{}),H(e,"headerStyle")||{}),a=v+"_header_"+n,l=v+"_content_"+n,u=H(e,"disabled")?-1:H(e,"tabIndex"),p=d({className:U("accordiontab.headertitle")},q(e,"headertitle",n)),f=j.getCProps(e),b=H(e,"headerTemplate")?c.ObjectUtils.getJSXElement(H(e,"headerTemplate"),f):s.createElement("span",p,c.ObjectUtils.getJSXElement(H(e,"header"),f)),m=d({"aria-hidden":"true",className:U("accordiontab.headericon")},q(e,"headericon",n)),h=c.IconUtils.getJSXIcon(t?y.collapseIcon||s.createElement(o.ChevronDownIcon,m):y.expandIcon||s.createElement(i.ChevronRightIcon,m),N({},m),{props:y,selected:t}),g=d({className:c.classNames(H(e,"headerClassName"),H(e,"className"),U("accordiontab.header",{selected:t,getTabProp:H,tab:e})),style:r,"data-p-highlight":t,"data-p-disabled":H(e,"disabled")},q(e,"header",n)),O=d({id:a,href:"#"+l,className:U("accordiontab.headeraction"),role:"button",tabIndex:u,onClick:function(t){return M(t,e,n)},onKeyDown:function(t){return J(t,e,n)},"aria-disabled":H(e,"disabled"),"aria-controls":l,"aria-expanded":t},q(e,"headeraction",n));return s.createElement("div",g,s.createElement("a",O,h,b))},Z=function(e,t,n){var a=N(N({},H(e,"style")||{}),H(e,"contentStyle")||{}),o=v+"_content_"+n,i=v+"_header_"+n,l=s.createRef(),p=d({id:o,ref:l,className:c.classNames(H(e,"contentClassName"),H(e,"className"),U("accordiontab.toggleablecontent")),style:a,role:"region","aria-labelledby":i},q(e,"toggleablecontent",n)),f=d({className:U("accordiontab.content")},q(e,"content",n)),b=d({classNames:U("accordiontab.transition"),timeout:{enter:1e3,exit:450},in:t,unmountOnExit:!0,options:y.transitionOptions},q(e,"transition",n));return s.createElement(r.CSSTransition,u({nodeRef:l},b),s.createElement("div",p,s.createElement("div",f,H(e,"children"))))},ee=s.Children.map(y.children,(function(e,t){if(c.ObjectUtils.isValidChild(e,"AccordionTab")){var n=v+"_"+t,r=Q(t),a=W(e,r,t),o=Z(e,r,t),i=d({key:n,className:U("accordiontab.root",{selected:r})},j.getCOtherProps(e),q(e,"root",t));return s.createElement("div",i,a,o)}return null})),te=d({className:c.classNames(y.className,U("root")),style:y.style},C.getOtherProps(y),_("root"));return s.createElement("div",u({id:v,ref:w},te),ee)}));w.displayName="AccordionTab",D.displayName="Accordion",exports.Accordion=D,exports.AccordionTab=w;
|
|
@@ -9,49 +9,43 @@ import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
|
9
9
|
import { ObjectUtils, classNames, UniqueComponentId, IconUtils, DomHandler } from 'primereact/utils';
|
|
10
10
|
|
|
11
11
|
function _extends() {
|
|
12
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
13
|
-
for (var
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
-
target[key] = source[key];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
12
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
13
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
14
|
+
var t = arguments[e];
|
|
15
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
20
16
|
}
|
|
21
|
-
return
|
|
22
|
-
};
|
|
23
|
-
return _extends.apply(this, arguments);
|
|
17
|
+
return n;
|
|
18
|
+
}, _extends.apply(null, arguments);
|
|
24
19
|
}
|
|
25
20
|
|
|
26
|
-
function _arrayLikeToArray(
|
|
27
|
-
|
|
28
|
-
for (var
|
|
29
|
-
return
|
|
21
|
+
function _arrayLikeToArray(r, a) {
|
|
22
|
+
(null == a || a > r.length) && (a = r.length);
|
|
23
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
24
|
+
return n;
|
|
30
25
|
}
|
|
31
26
|
|
|
32
|
-
function _arrayWithoutHoles(
|
|
33
|
-
if (Array.isArray(
|
|
27
|
+
function _arrayWithoutHoles(r) {
|
|
28
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
34
29
|
}
|
|
35
30
|
|
|
36
|
-
function _iterableToArray(
|
|
37
|
-
if (typeof Symbol
|
|
31
|
+
function _iterableToArray(r) {
|
|
32
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
function _unsupportedIterableToArray(
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
35
|
+
function _unsupportedIterableToArray(r, a) {
|
|
36
|
+
if (r) {
|
|
37
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
38
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
39
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
40
|
+
}
|
|
47
41
|
}
|
|
48
42
|
|
|
49
43
|
function _nonIterableSpread() {
|
|
50
44
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
function _toConsumableArray(
|
|
54
|
-
return _arrayWithoutHoles(
|
|
47
|
+
function _toConsumableArray(r) {
|
|
48
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
55
49
|
}
|
|
56
50
|
|
|
57
51
|
function _typeof(o) {
|
|
@@ -64,39 +58,33 @@ function _typeof(o) {
|
|
|
64
58
|
}, _typeof(o);
|
|
65
59
|
}
|
|
66
60
|
|
|
67
|
-
function
|
|
68
|
-
if (
|
|
69
|
-
var
|
|
70
|
-
if (
|
|
71
|
-
var
|
|
72
|
-
if (
|
|
61
|
+
function toPrimitive(t, r) {
|
|
62
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
63
|
+
var e = t[Symbol.toPrimitive];
|
|
64
|
+
if (void 0 !== e) {
|
|
65
|
+
var i = e.call(t, r || "default");
|
|
66
|
+
if ("object" != _typeof(i)) return i;
|
|
73
67
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
74
68
|
}
|
|
75
|
-
return (
|
|
69
|
+
return ("string" === r ? String : Number)(t);
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
return _typeof(
|
|
72
|
+
function toPropertyKey(t) {
|
|
73
|
+
var i = toPrimitive(t, "string");
|
|
74
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
81
75
|
}
|
|
82
76
|
|
|
83
|
-
function _defineProperty(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
writable: true
|
|
91
|
-
});
|
|
92
|
-
} else {
|
|
93
|
-
obj[key] = value;
|
|
94
|
-
}
|
|
95
|
-
return obj;
|
|
77
|
+
function _defineProperty(e, r, t) {
|
|
78
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
79
|
+
value: t,
|
|
80
|
+
enumerable: !0,
|
|
81
|
+
configurable: !0,
|
|
82
|
+
writable: !0
|
|
83
|
+
}) : e[r] = t, e;
|
|
96
84
|
}
|
|
97
85
|
|
|
98
|
-
function _arrayWithHoles(
|
|
99
|
-
if (Array.isArray(
|
|
86
|
+
function _arrayWithHoles(r) {
|
|
87
|
+
if (Array.isArray(r)) return r;
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -131,8 +119,8 @@ function _nonIterableRest() {
|
|
|
131
119
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
132
120
|
}
|
|
133
121
|
|
|
134
|
-
function _slicedToArray(
|
|
135
|
-
return _arrayWithHoles(
|
|
122
|
+
function _slicedToArray(r, e) {
|
|
123
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
136
124
|
}
|
|
137
125
|
|
|
138
126
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{CSSTransition as a}from"primereact/csstransition";import{useMergeProps as o,useMountEffect as i}from"primereact/hooks";import{ChevronDownIcon as c}from"primereact/icons/chevrondown";import{ChevronRightIcon as l}from"primereact/icons/chevronright";import{ObjectUtils as u,classNames as s,UniqueComponentId as d,IconUtils as p,DomHandler as f}from"primereact/utils";function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{CSSTransition as a}from"primereact/csstransition";import{useMergeProps as o,useMountEffect as i}from"primereact/hooks";import{ChevronDownIcon as c}from"primereact/icons/chevrondown";import{ChevronRightIcon as l}from"primereact/icons/chevronright";import{ObjectUtils as u,classNames as s,UniqueComponentId as d,IconUtils as p,DomHandler as f}from"primereact/utils";function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e){if(Array.isArray(e))return b(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=S(e,"string");return"symbol"==E(t)?t:t+""}function P(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){if(Array.isArray(e))return e}function C(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(e,t){return x(e)||C(e,t)||g(e,t)||w()}var j=n.extend({defaultProps:{__TYPE:"Accordion",id:null,activeIndex:null,className:null,style:null,multiple:!1,expandIcon:null,collapseIcon:null,transitionOptions:null,onTabOpen:null,onTabClose:null,onTabChange:null,children:void 0},css:{classes:{root:"p-accordion p-component",accordiontab:{root:function(e){return s("p-accordion-tab",{"p-accordion-tab-active":e.selected})},content:"p-accordion-content",header:function(e){return s("p-accordion-header",{"p-highlight":e.selected,"p-disabled":(0,e.getTabProp)(e.tab,"disabled")})},headeraction:"p-accordion-header-link",headericon:"p-accordion-toggle-icon",headertitle:"p-accordion-header-text",toggleablecontent:"p-toggleable-content",transition:"p-toggleable-content"}},styles:"\n@layer primereact {\n .p-accordion-header-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n text-decoration: none;\n }\n \n .p-accordion-header-link:focus {\n z-index: 1;\n }\n \n .p-accordion-header-text {\n line-height: 1;\n width: 100%;\n }\n}\n"}}),T=n.extend({defaultProps:{__TYPE:"AccordionTab",className:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,style:null,tabIndex:0,children:void 0},getCProp:function(e,t){return u.getComponentProp(e,t,T.defaultProps)},getCProps:function(e){return u.getComponentProps(e,T.defaultProps)},getCOtherProps:function(e){return u.getComponentDiffProps(e,T.defaultProps)}});function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=function(){},_=e.forwardRef((function(n,b){var E=o(),S=e.useContext(t),O=j.getProps(n,S),P=N(e.useState(O.id),2),x=P[0],C=P[1],w=N(e.useState(O.activeIndex),2),A=w[0],D=w[1],_=e.useRef(null),k=O.onTabChange?O.activeIndex:A,R=e.Children.count(O.children),J={props:O,state:{id:x,activeIndex:A}},U=j.setMetaData(I({},J)),X=U.ptm,H=U.ptmo,M=U.cx;r(j.css.styles,U.isUnstyled,{name:"accordion"});var Y=function(e,t){return T.getCProp(e,t)},z=function(e,t,n){var r={parent:J,context:{index:n,count:R,first:0===n,last:n===R-1,selected:ne(n),disabled:Y(e,"disabled")}};return E(X("tab.".concat(t),{tab:r}),X("accordiontab.".concat(t),{accordiontab:r}),X("accordiontab.".concat(t),r),H(Y(e,"pt"),t,r))},K=function(e,t,n){V(e,t,n)},V=function(e,t,n){if(!Y(t,"disabled")){var r=ne(n),a=null;if(O.multiple){var o=k||[];a=r?o.filter((function(e){return e!==n})):[].concat(h(c=o)||y(c)||g(c)||v(),[n])}else a=r?null:n;var i=r?O.onTabClose:O.onTabOpen;i&&i({originalEvent:e,index:n}),O.onTabChange?O.onTabChange({originalEvent:e,index:a}):D(a)}var c;e.preventDefault()},$=function(e,t,n){switch(e.code){case"ArrowDown":q(e);break;case"ArrowUp":B(e);break;case"Home":F(e);break;case"End":G(e);break;case"Enter":case"NumpadEnter":case"Space":L(e,t,n)}},q=function(e){var t=Q(e.target.parentElement.parentElement);t?te(t):F(e),e.preventDefault()},B=function(e){var t=W(e.target.parentElement.parentElement);t?te(t):G(e),e.preventDefault()},F=function(e){var t=Z();te(t),e.preventDefault()},G=function(e){var t=ee();te(t),e.preventDefault()},L=function(e,t,n){V(e,t,n),e.preventDefault()},Q=function(e){var t=f.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?f.getAttribute(t,"data-p-disabled")?Q(t.parentElement):f.findSingle(t,'[data-pc-section="headeraction"]'):null},W=function(e){var t=f.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?f.getAttribute(t,"data-p-disabled")?W(t.parentElement):f.findSingle(t,'[data-pc-section="headeraction"]'):null},Z=function(){return Q(_.current.firstElementChild,!0)},ee=function(){return W(_.current.lastElementChild,!0)},te=function(e){e&&f.focus(e)},ne=function(e){return O.multiple&&Array.isArray(k)?k&&k.some((function(t){return t===e})):k===e};if(e.useImperativeHandle(b,(function(){return{props:O,getElement:function(){return _.current}}})),i((function(){x||C(d())})),!x)return null;var re=function(t,n,r){var a=I(I({},Y(t,"style")||{}),Y(t,"headerStyle")||{}),o=x+"_header_"+r,i=x+"_content_"+r,d=Y(t,"disabled")?-1:Y(t,"tabIndex"),f=E({className:M("accordiontab.headertitle")},z(t,"headertitle",r)),m=T.getCProps(t),b=Y(t,"headerTemplate")?u.getJSXElement(Y(t,"headerTemplate"),m):e.createElement("span",f,u.getJSXElement(Y(t,"header"),m)),h=E({"aria-hidden":"true",className:M("accordiontab.headericon")},z(t,"headericon",r)),y=p.getJSXIcon(n?O.collapseIcon||e.createElement(c,h):O.expandIcon||e.createElement(l,h),I({},h),{props:O,selected:n}),g=E({className:s(Y(t,"headerClassName"),Y(t,"className"),M("accordiontab.header",{selected:n,getTabProp:Y,tab:t})),style:a,"data-p-highlight":n,"data-p-disabled":Y(t,"disabled")},z(t,"header",r)),v=E({id:o,href:"#"+i,className:M("accordiontab.headeraction"),role:"button",tabIndex:d,onClick:function(e){return K(e,t,r)},onKeyDown:function(e){return $(e,t,r)},"aria-disabled":Y(t,"disabled"),"aria-controls":i,"aria-expanded":n},z(t,"headeraction",r));return e.createElement("div",g,e.createElement("a",v,y,b))},ae=function(t,n,r){var o=I(I({},Y(t,"style")||{}),Y(t,"contentStyle")||{}),i=x+"_content_"+r,c=x+"_header_"+r,l=e.createRef(),u=E({id:i,ref:l,className:s(Y(t,"contentClassName"),Y(t,"className"),M("accordiontab.toggleablecontent")),style:o,role:"region","aria-labelledby":c},z(t,"toggleablecontent",r)),d=E({className:M("accordiontab.content")},z(t,"content",r)),p=E({classNames:M("accordiontab.transition"),timeout:{enter:1e3,exit:450},in:n,unmountOnExit:!0,options:O.transitionOptions},z(t,"transition",r));return e.createElement(a,m({nodeRef:l},p),e.createElement("div",u,e.createElement("div",d,Y(t,"children"))))},oe=e.Children.map(O.children,(function(t,n){if(u.isValidChild(t,"AccordionTab")){var r=x+"_"+n,a=ne(n),o=re(t,a,n),i=ae(t,a,n),c=E({key:r,className:M("accordiontab.root",{selected:a})},T.getCOtherProps(t),z(t,"root",n));return e.createElement("div",c,o,i)}return null})),ie=E({className:s(O.className,M("root")),style:O.style},j.getOtherProps(O),X("root"));return e.createElement("div",m({id:x,ref:_},ie),oe)}));D.displayName="AccordionTab",_.displayName="Accordion";export{_ as Accordion,D as AccordionTab};
|
package/accordion/accordion.js
CHANGED
|
@@ -23,49 +23,43 @@ this.primereact.accordion = (function (exports, React, api, componentbase, csstr
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
27
|
-
for (var
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
26
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var t = arguments[e];
|
|
29
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
34
30
|
}
|
|
35
|
-
return
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
31
|
+
return n;
|
|
32
|
+
}, _extends.apply(null, arguments);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
function _arrayLikeToArray(
|
|
41
|
-
|
|
42
|
-
for (var
|
|
43
|
-
return
|
|
35
|
+
function _arrayLikeToArray(r, a) {
|
|
36
|
+
(null == a || a > r.length) && (a = r.length);
|
|
37
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
+
return n;
|
|
44
39
|
}
|
|
45
40
|
|
|
46
|
-
function _arrayWithoutHoles(
|
|
47
|
-
if (Array.isArray(
|
|
41
|
+
function _arrayWithoutHoles(r) {
|
|
42
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
function _iterableToArray(
|
|
51
|
-
if (typeof Symbol
|
|
45
|
+
function _iterableToArray(r) {
|
|
46
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
52
47
|
}
|
|
53
48
|
|
|
54
|
-
function _unsupportedIterableToArray(
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
49
|
+
function _unsupportedIterableToArray(r, a) {
|
|
50
|
+
if (r) {
|
|
51
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
52
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
53
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
54
|
+
}
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
function _nonIterableSpread() {
|
|
64
58
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
59
|
}
|
|
66
60
|
|
|
67
|
-
function _toConsumableArray(
|
|
68
|
-
return _arrayWithoutHoles(
|
|
61
|
+
function _toConsumableArray(r) {
|
|
62
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
function _typeof(o) {
|
|
@@ -78,39 +72,33 @@ this.primereact.accordion = (function (exports, React, api, componentbase, csstr
|
|
|
78
72
|
}, _typeof(o);
|
|
79
73
|
}
|
|
80
74
|
|
|
81
|
-
function
|
|
82
|
-
if (
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
var
|
|
86
|
-
if (
|
|
75
|
+
function toPrimitive(t, r) {
|
|
76
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
77
|
+
var e = t[Symbol.toPrimitive];
|
|
78
|
+
if (void 0 !== e) {
|
|
79
|
+
var i = e.call(t, r || "default");
|
|
80
|
+
if ("object" != _typeof(i)) return i;
|
|
87
81
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
88
82
|
}
|
|
89
|
-
return (
|
|
83
|
+
return ("string" === r ? String : Number)(t);
|
|
90
84
|
}
|
|
91
85
|
|
|
92
|
-
function
|
|
93
|
-
var
|
|
94
|
-
return _typeof(
|
|
86
|
+
function toPropertyKey(t) {
|
|
87
|
+
var i = toPrimitive(t, "string");
|
|
88
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
95
89
|
}
|
|
96
90
|
|
|
97
|
-
function _defineProperty(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
writable: true
|
|
105
|
-
});
|
|
106
|
-
} else {
|
|
107
|
-
obj[key] = value;
|
|
108
|
-
}
|
|
109
|
-
return obj;
|
|
91
|
+
function _defineProperty(e, r, t) {
|
|
92
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
+
value: t,
|
|
94
|
+
enumerable: !0,
|
|
95
|
+
configurable: !0,
|
|
96
|
+
writable: !0
|
|
97
|
+
}) : e[r] = t, e;
|
|
110
98
|
}
|
|
111
99
|
|
|
112
|
-
function _arrayWithHoles(
|
|
113
|
-
if (Array.isArray(
|
|
100
|
+
function _arrayWithHoles(r) {
|
|
101
|
+
if (Array.isArray(r)) return r;
|
|
114
102
|
}
|
|
115
103
|
|
|
116
104
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -145,8 +133,8 @@ this.primereact.accordion = (function (exports, React, api, componentbase, csstr
|
|
|
145
133
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
146
134
|
}
|
|
147
135
|
|
|
148
|
-
function _slicedToArray(
|
|
149
|
-
return _arrayWithHoles(
|
|
136
|
+
function _slicedToArray(r, e) {
|
|
137
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
150
138
|
}
|
|
151
139
|
|
|
152
140
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.accordion=function(e,t,n,r,a,o,i,c,l){"use strict";function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=s(t);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){if(Array.isArray(e))return p(e)}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e){var t=g(e,"string");return"symbol"===y(t)?t:String(t)}function O(e){if(Array.isArray(e))return e}function E(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){return O(e)||E(e,t)||m(e,t)||P()}var j=r.ComponentBase.extend({defaultProps:{__TYPE:"Accordion",id:null,activeIndex:null,className:null,style:null,multiple:!1,expandIcon:null,collapseIcon:null,transitionOptions:null,onTabOpen:null,onTabClose:null,onTabChange:null,children:void 0},css:{classes:{root:"p-accordion p-component",accordiontab:{root:function(e){return l.classNames("p-accordion-tab",{"p-accordion-tab-active":e.selected})},content:"p-accordion-content",header:function(e){return l.classNames("p-accordion-header",{"p-highlight":e.selected,"p-disabled":(0,e.getTabProp)(e.tab,"disabled")})},headeraction:"p-accordion-header-link",headericon:"p-accordion-toggle-icon",headertitle:"p-accordion-header-text",toggleablecontent:"p-toggleable-content",transition:"p-toggleable-content"}},styles:"\n@layer primereact {\n .p-accordion-header-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n text-decoration: none;\n }\n \n .p-accordion-header-link:focus {\n z-index: 1;\n }\n \n .p-accordion-header-text {\n line-height: 1;\n width: 100%;\n }\n}\n"}}),C=r.ComponentBase.extend({defaultProps:{__TYPE:"AccordionTab",className:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,style:null,tabIndex:0,children:void 0},getCProp:function(e,t){return l.ObjectUtils.getComponentProp(e,t,C.defaultProps)},getCProps:function(e){return l.ObjectUtils.getComponentProps(e,C.defaultProps)},getCOtherProps:function(e){return l.ObjectUtils.getComponentDiffProps(e,C.defaultProps)}});function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){var r,a,o;r=e,o=n[t],(a=v(a=t))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=function(){},D=u.forwardRef((function(e,t){var s=o.useMergeProps(),p=u.useContext(n.PrimeReactContext),y=j.getProps(e,p),g=S(u.useState(y.id),2),v=g[0],O=g[1],E=S(u.useState(y.activeIndex),2),P=E[0],x=E[1],w=u.useRef(null),D=y.onTabChange?y.activeIndex:P,T=u.Children.count(y.children),A={props:y,state:{id:v,activeIndex:P}},I=j.setMetaData(N({},A)),_=I.ptm,k=I.ptmo,U=I.cx;r.useHandleStyle(j.css.styles,I.isUnstyled,{name:"accordion"});var H=function(e,t){return C.getCProp(e,t)},R=function(e,t,n){var r={parent:A,context:{index:n,count:T,first:0===n,last:n===T-1,selected:Q(n),disabled:H(e,"disabled")}};return s(_("tab.".concat(t),{tab:r}),_("accordiontab.".concat(t),{accordiontab:r}),_("accordiontab.".concat(t),r),k(H(e,"pt"),t,r))},M=function(e,t,n){J(e,t,n)},J=function(e,t,n){if(!H(t,"disabled")){var r=Q(n),a=null;if(y.multiple){var o=D||[];a=r?o.filter((function(e){return e!==n})):[].concat(f(c=o)||b(c)||m(c)||h(),[n])}else a=r?null:n;var i=r?y.onTabClose:y.onTabOpen;i&&i({originalEvent:e,index:n}),y.onTabChange?y.onTabChange({originalEvent:e,index:a}):x(a)}var c;e.preventDefault()},X=function(e,t,n){switch(e.code){case"ArrowDown":z(e);break;case"ArrowUp":B(e);break;case"Home":Y(e);break;case"End":q(e);break;case"Enter":case"NumpadEnter":case"Space":K(e,t,n)}},z=function(e){var t=V(e.target.parentElement.parentElement);t?L(t):Y(e),e.preventDefault()},B=function(e){var t=$(e.target.parentElement.parentElement);t?L(t):q(e),e.preventDefault()},Y=function(e){var t=F();L(t),e.preventDefault()},q=function(e){var t=G();L(t),e.preventDefault()},K=function(e,t,n){J(e,t,n),e.preventDefault()},V=function(e){var t=l.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?l.DomHandler.getAttribute(t,"data-p-disabled")?V(t.parentElement):l.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},$=function(e){var t=l.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?l.DomHandler.getAttribute(t,"data-p-disabled")?$(t.parentElement):l.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},F=function(){return V(w.current.firstElementChild,!0)},G=function(){return $(w.current.lastElementChild,!0)},L=function(e){e&&l.DomHandler.focus(e)},Q=function(e){return y.multiple&&Array.isArray(D)?D&&D.some((function(t){return t===e})):D===e};if(u.useImperativeHandle(t,(function(){return{props:y,getElement:function(){return w.current}}})),o.useMountEffect((function(){v||O(l.UniqueComponentId())})),!v)return null;var W=function(e,t,n){var r=N(N({},H(e,"style")||{}),H(e,"headerStyle")||{}),a=v+"_header_"+n,o=v+"_content_"+n,d=H(e,"disabled")?-1:H(e,"tabIndex"),p=s({className:U("accordiontab.headertitle")},R(e,"headertitle",n)),f=C.getCProps(e),b=H(e,"headerTemplate")?l.ObjectUtils.getJSXElement(H(e,"headerTemplate"),f):u.createElement("span",p,l.ObjectUtils.getJSXElement(H(e,"header"),f)),m=s({"aria-hidden":"true",className:U("accordiontab.headericon")},R(e,"headericon",n)),h=l.IconUtils.getJSXIcon(t?y.collapseIcon||u.createElement(i.ChevronDownIcon,m):y.expandIcon||u.createElement(c.ChevronRightIcon,m),N({},m),{props:y,selected:t}),g=s({className:l.classNames(H(e,"headerClassName"),H(e,"className"),U("accordiontab.header",{selected:t,getTabProp:H,tab:e})),style:r,"data-p-highlight":t,"data-p-disabled":H(e,"disabled")},R(e,"header",n)),O=s({id:a,href:"#"+o,className:U("accordiontab.headeraction"),role:"button",tabIndex:d,onClick:function(t){return M(t,e,n)},onKeyDown:function(t){return X(t,e,n)},"aria-disabled":H(e,"disabled"),"aria-controls":o,"aria-expanded":t},R(e,"headeraction",n));return u.createElement("div",g,u.createElement("a",O,h,b))},Z=function(e,t,n){var r=N(N({},H(e,"style")||{}),H(e,"contentStyle")||{}),o=v+"_content_"+n,i=v+"_header_"+n,c=u.createRef(),p=s({id:o,ref:c,className:l.classNames(H(e,"contentClassName"),H(e,"className"),U("accordiontab.toggleablecontent")),style:r,role:"region","aria-labelledby":i},R(e,"toggleablecontent",n)),f=s({className:U("accordiontab.content")},R(e,"content",n)),b=s({classNames:U("accordiontab.transition"),timeout:{enter:1e3,exit:450},in:t,unmountOnExit:!0,options:y.transitionOptions},R(e,"transition",n));return u.createElement(a.CSSTransition,d({nodeRef:c},b),u.createElement("div",p,u.createElement("div",f,H(e,"children"))))},ee=u.Children.map(y.children,(function(e,t){if(l.ObjectUtils.isValidChild(e,"AccordionTab")){var n=v+"_"+t,r=Q(t),a=W(e,r,t),o=Z(e,r,t),i=s({key:n,className:U("accordiontab.root",{selected:r})},C.getCOtherProps(e),R(e,"root",t));return u.createElement("div",i,a,o)}return null})),te=s({className:l.classNames(y.className,U("root")),style:y.style},j.getOtherProps(y),_("root"));return u.createElement("div",d({id:v,ref:w},te),ee)}));return w.displayName="AccordionTab",D.displayName="Accordion",e.Accordion=D,e.AccordionTab=w,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.icons.chevrondown,primereact.icons.chevronright,primereact.utils);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.accordion=function(e,t,n,r,a,o,i,c,l){"use strict";function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=s(t);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(null,arguments)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){if(Array.isArray(e))return p(e)}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function m(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e){var t=g(e,"string");return"symbol"==y(t)?t:t+""}function O(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){if(Array.isArray(e))return e}function P(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){return E(e)||P(e,t)||m(e,t)||S()}var j=r.ComponentBase.extend({defaultProps:{__TYPE:"Accordion",id:null,activeIndex:null,className:null,style:null,multiple:!1,expandIcon:null,collapseIcon:null,transitionOptions:null,onTabOpen:null,onTabClose:null,onTabChange:null,children:void 0},css:{classes:{root:"p-accordion p-component",accordiontab:{root:function(e){return l.classNames("p-accordion-tab",{"p-accordion-tab-active":e.selected})},content:"p-accordion-content",header:function(e){return l.classNames("p-accordion-header",{"p-highlight":e.selected,"p-disabled":(0,e.getTabProp)(e.tab,"disabled")})},headeraction:"p-accordion-header-link",headericon:"p-accordion-toggle-icon",headertitle:"p-accordion-header-text",toggleablecontent:"p-toggleable-content",transition:"p-toggleable-content"}},styles:"\n@layer primereact {\n .p-accordion-header-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n user-select: none;\n position: relative;\n text-decoration: none;\n }\n \n .p-accordion-header-link:focus {\n z-index: 1;\n }\n \n .p-accordion-header-text {\n line-height: 1;\n width: 100%;\n }\n}\n"}}),x=r.ComponentBase.extend({defaultProps:{__TYPE:"AccordionTab",className:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,style:null,tabIndex:0,children:void 0},getCProp:function(e,t){return l.ObjectUtils.getComponentProp(e,t,x.defaultProps)},getCProps:function(e){return l.ObjectUtils.getComponentProps(e,x.defaultProps)},getCOtherProps:function(e){return l.ObjectUtils.getComponentDiffProps(e,x.defaultProps)}});function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=function(){},T=u.forwardRef((function(e,t){var s=o.useMergeProps(),p=u.useContext(n.PrimeReactContext),y=j.getProps(e,p),g=C(u.useState(y.id),2),v=g[0],O=g[1],E=C(u.useState(y.activeIndex),2),P=E[0],S=E[1],N=u.useRef(null),D=y.onTabChange?y.activeIndex:P,T=u.Children.count(y.children),A={props:y,state:{id:v,activeIndex:P}},I=j.setMetaData(w({},A)),_=I.ptm,k=I.ptmo,U=I.cx;r.useHandleStyle(j.css.styles,I.isUnstyled,{name:"accordion"});var H=function(e,t){return x.getCProp(e,t)},R=function(e,t,n){var r={parent:A,context:{index:n,count:T,first:0===n,last:n===T-1,selected:Q(n),disabled:H(e,"disabled")}};return s(_("tab.".concat(t),{tab:r}),_("accordiontab.".concat(t),{accordiontab:r}),_("accordiontab.".concat(t),r),k(H(e,"pt"),t,r))},M=function(e,t,n){J(e,t,n)},J=function(e,t,n){if(!H(t,"disabled")){var r=Q(n),a=null;if(y.multiple){var o=D||[];a=r?o.filter((function(e){return e!==n})):[].concat(f(c=o)||b(c)||m(c)||h(),[n])}else a=r?null:n;var i=r?y.onTabClose:y.onTabOpen;i&&i({originalEvent:e,index:n}),y.onTabChange?y.onTabChange({originalEvent:e,index:a}):S(a)}var c;e.preventDefault()},X=function(e,t,n){switch(e.code){case"ArrowDown":z(e);break;case"ArrowUp":B(e);break;case"Home":Y(e);break;case"End":q(e);break;case"Enter":case"NumpadEnter":case"Space":K(e,t,n)}},z=function(e){var t=V(e.target.parentElement.parentElement);t?L(t):Y(e),e.preventDefault()},B=function(e){var t=$(e.target.parentElement.parentElement);t?L(t):q(e),e.preventDefault()},Y=function(e){var t=F();L(t),e.preventDefault()},q=function(e){var t=G();L(t),e.preventDefault()},K=function(e,t,n){J(e,t,n),e.preventDefault()},V=function(e){var t=l.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.nextElementSibling,'[data-pc-section="header"]');return t?l.DomHandler.getAttribute(t,"data-p-disabled")?V(t.parentElement):l.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},$=function(e){var t=l.DomHandler.findSingle(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e:e.previousElementSibling,'[data-pc-section="header"]');return t?l.DomHandler.getAttribute(t,"data-p-disabled")?$(t.parentElement):l.DomHandler.findSingle(t,'[data-pc-section="headeraction"]'):null},F=function(){return V(N.current.firstElementChild,!0)},G=function(){return $(N.current.lastElementChild,!0)},L=function(e){e&&l.DomHandler.focus(e)},Q=function(e){return y.multiple&&Array.isArray(D)?D&&D.some((function(t){return t===e})):D===e};if(u.useImperativeHandle(t,(function(){return{props:y,getElement:function(){return N.current}}})),o.useMountEffect((function(){v||O(l.UniqueComponentId())})),!v)return null;var W=function(e,t,n){var r=w(w({},H(e,"style")||{}),H(e,"headerStyle")||{}),a=v+"_header_"+n,o=v+"_content_"+n,d=H(e,"disabled")?-1:H(e,"tabIndex"),p=s({className:U("accordiontab.headertitle")},R(e,"headertitle",n)),f=x.getCProps(e),b=H(e,"headerTemplate")?l.ObjectUtils.getJSXElement(H(e,"headerTemplate"),f):u.createElement("span",p,l.ObjectUtils.getJSXElement(H(e,"header"),f)),m=s({"aria-hidden":"true",className:U("accordiontab.headericon")},R(e,"headericon",n)),h=l.IconUtils.getJSXIcon(t?y.collapseIcon||u.createElement(i.ChevronDownIcon,m):y.expandIcon||u.createElement(c.ChevronRightIcon,m),w({},m),{props:y,selected:t}),g=s({className:l.classNames(H(e,"headerClassName"),H(e,"className"),U("accordiontab.header",{selected:t,getTabProp:H,tab:e})),style:r,"data-p-highlight":t,"data-p-disabled":H(e,"disabled")},R(e,"header",n)),O=s({id:a,href:"#"+o,className:U("accordiontab.headeraction"),role:"button",tabIndex:d,onClick:function(t){return M(t,e,n)},onKeyDown:function(t){return X(t,e,n)},"aria-disabled":H(e,"disabled"),"aria-controls":o,"aria-expanded":t},R(e,"headeraction",n));return u.createElement("div",g,u.createElement("a",O,h,b))},Z=function(e,t,n){var r=w(w({},H(e,"style")||{}),H(e,"contentStyle")||{}),o=v+"_content_"+n,i=v+"_header_"+n,c=u.createRef(),p=s({id:o,ref:c,className:l.classNames(H(e,"contentClassName"),H(e,"className"),U("accordiontab.toggleablecontent")),style:r,role:"region","aria-labelledby":i},R(e,"toggleablecontent",n)),f=s({className:U("accordiontab.content")},R(e,"content",n)),b=s({classNames:U("accordiontab.transition"),timeout:{enter:1e3,exit:450},in:t,unmountOnExit:!0,options:y.transitionOptions},R(e,"transition",n));return u.createElement(a.CSSTransition,d({nodeRef:c},b),u.createElement("div",p,u.createElement("div",f,H(e,"children"))))},ee=u.Children.map(y.children,(function(e,t){if(l.ObjectUtils.isValidChild(e,"AccordionTab")){var n=v+"_"+t,r=Q(t),a=W(e,r,t),o=Z(e,r,t),i=s({key:n,className:U("accordiontab.root",{selected:r})},x.getCOtherProps(e),R(e,"root",t));return u.createElement("div",i,a,o)}return null})),te=s({className:l.classNames(y.className,U("root")),style:y.style},j.getOtherProps(y),_("root"));return u.createElement("div",d({id:v,ref:N},te),ee)}));return D.displayName="AccordionTab",T.displayName="Accordion",e.Accordion=T,e.AccordionTab=D,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.csstransition,primereact.hooks,primereact.icons.chevrondown,primereact.icons.chevronright,primereact.utils);
|