primereact 10.8.5 → 10.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/accordion/accordion.cjs.js +55 -43
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +55 -43
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +55 -43
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +59 -44
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +59 -44
- package/api/api.esm.min.js +1 -1
- package/api/api.js +59 -44
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +59 -47
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +59 -47
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +59 -47
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/avatar.cjs.js +49 -37
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +49 -37
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +49 -37
- package/avatar/avatar.min.js +1 -1
- package/badge/badge.cjs.js +23 -17
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +23 -17
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +23 -17
- package/badge/badge.min.js +1 -1
- package/blockui/blockui.cjs.js +49 -37
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +49 -37
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +49 -37
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/breadcrumb.cjs.js +49 -37
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +49 -37
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +49 -37
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.cjs.js +34 -23
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +34 -23
- package/button/button.esm.min.js +1 -1
- package/button/button.js +34 -23
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +67 -49
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +67 -49
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +67 -49
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +55 -43
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +55 -43
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +55 -43
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.cjs.js +52 -40
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +52 -40
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +52 -40
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.cjs.js +55 -43
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +55 -43
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +55 -43
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.cjs.js +56 -40
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +56 -40
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +56 -40
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +68 -50
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +68 -50
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +68 -50
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +49 -37
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +49 -37
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +49 -37
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +42 -35
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +42 -35
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +42 -35
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +57 -43
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +57 -43
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +57 -43
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.js +49 -37
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +49 -37
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +49 -37
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/contextmenu.cjs.js +49 -37
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +49 -37
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +49 -37
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1482 -1020
- package/core/core.min.js +68 -68
- package/csstransition/csstransition.cjs.js +23 -17
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.esm.js +23 -17
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +23 -17
- package/csstransition/csstransition.min.js +1 -1
- package/datascroller/datascroller.cjs.js +32 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.esm.js +32 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +32 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +114 -87
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +114 -87
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +114 -87
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +58 -46
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +58 -46
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +58 -46
- package/dataview/dataview.min.js +1 -1
- package/deferredcontent/deferredcontent.cjs.js +15 -14
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +15 -14
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +15 -14
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/dialog.cjs.js +62 -50
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +62 -50
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +62 -50
- package/dialog/dialog.min.js +1 -1
- package/dock/dock.cjs.js +55 -43
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +55 -43
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +55 -43
- package/dock/dock.min.js +1 -1
- package/dropdown/dropdown.cjs.js +74 -52
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +2 -2
- package/dropdown/dropdown.esm.js +74 -52
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +74 -52
- package/dropdown/dropdown.min.js +1 -1
- package/editor/editor.cjs.js +49 -37
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +49 -37
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +49 -37
- package/editor/editor.min.js +1 -1
- package/fieldset/fieldset.cjs.js +26 -20
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +26 -20
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +26 -20
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.cjs.js +60 -48
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +60 -48
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +60 -48
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/focustrap.cjs.js +30 -24
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +30 -24
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +30 -24
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/galleria.cjs.js +55 -43
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +55 -43
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +55 -43
- package/galleria/galleria.min.js +1 -1
- package/hooks/hooks.cjs.js +44 -37
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.esm.js +44 -37
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +44 -37
- package/hooks/hooks.min.js +1 -1
- package/iconbase/iconbase.cjs.js +1 -1
- package/iconbase/iconbase.cjs.min.js +1 -1
- package/iconbase/iconbase.esm.js +1 -1
- package/iconbase/iconbase.esm.min.js +1 -1
- package/iconbase/iconbase.js +1 -1
- package/iconbase/iconbase.min.js +1 -1
- package/iconfield/iconfield.cjs.js +34 -23
- package/iconfield/iconfield.cjs.min.js +1 -1
- package/iconfield/iconfield.esm.js +34 -23
- package/iconfield/iconfield.esm.min.js +1 -1
- package/iconfield/iconfield.js +34 -23
- package/iconfield/iconfield.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +11 -6
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +11 -6
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +11 -6
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +11 -6
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +11 -6
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +11 -6
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +11 -6
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +11 -6
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +11 -6
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +11 -6
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +11 -6
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +11 -6
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +11 -6
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +11 -6
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +11 -6
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +11 -6
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +11 -6
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +11 -6
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +11 -6
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +11 -6
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +11 -6
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +11 -6
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +11 -6
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +11 -6
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +11 -6
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +11 -6
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +11 -6
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowup/index.cjs.js +11 -6
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +11 -6
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +11 -6
- package/icons/arrowup/index.min.js +1 -1
- package/icons/ban/index.cjs.js +11 -6
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +11 -6
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +11 -6
- package/icons/ban/index.min.js +1 -1
- package/icons/bars/index.cjs.js +11 -6
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +11 -6
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +11 -6
- package/icons/bars/index.min.js +1 -1
- package/icons/blank/index.cjs.js +11 -6
- package/icons/blank/index.cjs.min.js +1 -1
- package/icons/blank/index.esm.js +11 -6
- package/icons/blank/index.esm.min.js +1 -1
- package/icons/blank/index.js +11 -6
- package/icons/blank/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +11 -6
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +11 -6
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +11 -6
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +11 -6
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +11 -6
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +11 -6
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +11 -6
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +11 -6
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +11 -6
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +11 -6
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +11 -6
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +11 -6
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +11 -6
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +11 -6
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +11 -6
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +11 -6
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +11 -6
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +11 -6
- package/icons/chevronup/index.min.js +1 -1
- package/icons/download/index.cjs.js +11 -6
- package/icons/download/index.cjs.min.js +1 -1
- package/icons/download/index.esm.js +11 -6
- package/icons/download/index.esm.min.js +1 -1
- package/icons/download/index.js +11 -6
- package/icons/download/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +11 -6
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +11 -6
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +11 -6
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/eye/index.cjs.js +11 -6
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +11 -6
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +11 -6
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +11 -6
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +11 -6
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +11 -6
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/filter/index.cjs.js +11 -6
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +11 -6
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +11 -6
- package/icons/filter/index.min.js +1 -1
- package/icons/filterslash/index.cjs.js +11 -6
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +11 -6
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +11 -6
- package/icons/filterslash/index.min.js +1 -1
- package/icons/infocircle/index.cjs.js +11 -6
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +11 -6
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +11 -6
- package/icons/infocircle/index.min.js +1 -1
- package/icons/minus/index.cjs.js +11 -6
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +11 -6
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +11 -6
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +11 -6
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +11 -6
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +11 -6
- package/icons/pencil/index.min.js +1 -1
- package/icons/plus/index.cjs.js +11 -6
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +11 -6
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +11 -6
- package/icons/plus/index.min.js +1 -1
- package/icons/refresh/index.cjs.js +11 -6
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +11 -6
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +11 -6
- package/icons/refresh/index.min.js +1 -1
- package/icons/search/index.cjs.js +11 -6
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +11 -6
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +11 -6
- package/icons/search/index.min.js +1 -1
- package/icons/searchminus/index.cjs.js +11 -6
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +11 -6
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +11 -6
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchplus/index.cjs.js +11 -6
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +11 -6
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +11 -6
- package/icons/searchplus/index.min.js +1 -1
- package/icons/sortalt/index.cjs.js +11 -6
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +11 -6
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +11 -6
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +11 -6
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +11 -6
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +11 -6
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountupalt/index.cjs.js +11 -6
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +11 -6
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +11 -6
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/spinner/index.cjs.js +11 -6
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +11 -6
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +11 -6
- package/icons/spinner/index.min.js +1 -1
- package/icons/star/index.cjs.js +11 -6
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +11 -6
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +11 -6
- package/icons/star/index.min.js +1 -1
- package/icons/starfill/index.cjs.js +11 -6
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +11 -6
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +11 -6
- package/icons/starfill/index.min.js +1 -1
- package/icons/thlarge/index.cjs.js +11 -6
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +11 -6
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +11 -6
- package/icons/thlarge/index.min.js +1 -1
- package/icons/times/index.cjs.js +11 -6
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +11 -6
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +11 -6
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +11 -6
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +11 -6
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +11 -6
- package/icons/timescircle/index.min.js +1 -1
- package/icons/trash/index.cjs.js +11 -6
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +11 -6
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +11 -6
- package/icons/trash/index.min.js +1 -1
- package/icons/undo/index.cjs.js +11 -6
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +11 -6
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +11 -6
- package/icons/undo/index.min.js +1 -1
- package/icons/upload/index.cjs.js +11 -6
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +11 -6
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +11 -6
- package/icons/upload/index.min.js +1 -1
- package/icons/windowmaximize/index.cjs.js +11 -6
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +11 -6
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +11 -6
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowminimize/index.cjs.js +11 -6
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +11 -6
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +11 -6
- package/icons/windowminimize/index.min.js +1 -1
- package/image/image.cjs.js +49 -37
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +49 -37
- package/image/image.esm.min.js +1 -1
- package/image/image.js +49 -37
- package/image/image.min.js +1 -1
- package/inplace/inplace.cjs.js +15 -14
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +15 -14
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +15 -14
- package/inplace/inplace.min.js +1 -1
- package/inputicon/inputicon.cjs.js +34 -23
- package/inputicon/inputicon.cjs.min.js +1 -1
- package/inputicon/inputicon.esm.js +34 -23
- package/inputicon/inputicon.esm.min.js +1 -1
- package/inputicon/inputicon.js +34 -23
- package/inputicon/inputicon.min.js +1 -1
- package/inputmask/inputmask.cjs.js +11 -6
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +11 -6
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +11 -6
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +55 -43
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +55 -43
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +55 -43
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +55 -43
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +55 -43
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +55 -43
- package/inputotp/inputotp.min.js +1 -1
- package/inputswitch/inputswitch.cjs.js +34 -23
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +34 -23
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +34 -23
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/inputtext.cjs.js +34 -23
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +34 -23
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +34 -23
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +43 -24
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +43 -24
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +43 -24
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/keyfilter/keyfilter.cjs.js +17 -16
- package/keyfilter/keyfilter.cjs.min.js +1 -1
- package/keyfilter/keyfilter.esm.js +17 -16
- package/keyfilter/keyfilter.esm.min.js +1 -1
- package/keyfilter/keyfilter.js +17 -16
- package/keyfilter/keyfilter.min.js +1 -1
- package/knob/knob.cjs.js +15 -14
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +15 -14
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -14
- package/knob/knob.min.js +1 -1
- package/listbox/listbox.cjs.js +58 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +58 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +58 -46
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +51 -39
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +51 -39
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +51 -39
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +64 -44
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +64 -44
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +64 -44
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +73 -54
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +73 -54
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +73 -54
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +49 -37
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +49 -37
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +49 -37
- package/menubar/menubar.min.js +1 -1
- package/message/message.cjs.js +34 -23
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +34 -23
- package/message/message.esm.min.js +1 -1
- package/message/message.js +34 -23
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +56 -44
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.esm.js +56 -44
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +56 -44
- package/messages/messages.min.js +1 -1
- package/metergroup/metergroup.cjs.js +34 -23
- package/metergroup/metergroup.cjs.min.js +1 -1
- package/metergroup/metergroup.esm.js +34 -23
- package/metergroup/metergroup.esm.min.js +1 -1
- package/metergroup/metergroup.js +34 -23
- package/metergroup/metergroup.min.js +1 -1
- package/multiselect/multiselect.cjs.js +67 -55
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +68 -56
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +67 -55
- package/multiselect/multiselect.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +56 -44
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +56 -44
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +56 -44
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/orderlist/orderlist.cjs.js +55 -43
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +55 -43
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +55 -43
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +55 -43
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +55 -43
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +55 -43
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.cjs.js +50 -39
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +51 -40
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +50 -39
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlayservice/overlayservice.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +56 -41
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +56 -41
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +56 -41
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.cjs.js +26 -20
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +26 -20
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +26 -20
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.cjs.js +49 -37
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +49 -37
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +49 -37
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +23 -17
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +23 -17
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +23 -17
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +15 -14
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +15 -14
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +15 -14
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.cjs.js +49 -37
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +49 -37
- package/password/password.esm.min.js +1 -1
- package/password/password.js +49 -37
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +64 -49
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +64 -49
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +64 -49
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +15 -14
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +15 -14
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +15 -14
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +348 -242
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +348 -242
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +348 -242
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.cjs.js +34 -23
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +34 -23
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +34 -23
- package/progressbar/progressbar.min.js +1 -1
- package/radiobutton/radiobutton.cjs.js +34 -23
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +34 -23
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +34 -23
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/rating.cjs.js +49 -37
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +49 -37
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +49 -37
- package/rating/rating.min.js +1 -1
- package/ripple/ripple.cjs.js +49 -37
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +49 -37
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +49 -37
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/scrollpanel.cjs.js +27 -20
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +27 -20
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +27 -20
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/scrolltop.cjs.js +49 -37
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +49 -37
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +49 -37
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/selectbutton.cjs.js +32 -26
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +32 -26
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +32 -26
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/sidebar.cjs.js +50 -39
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +51 -40
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +50 -39
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/skeleton.cjs.js +23 -17
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +23 -17
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +23 -17
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/slidemenu.cjs.js +49 -37
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.esm.js +49 -37
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +49 -37
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/slider.cjs.js +55 -43
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +55 -43
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +55 -43
- package/slider/slider.min.js +1 -1
- package/speeddial/speeddial.cjs.js +55 -43
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +55 -43
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +55 -43
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +49 -37
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +49 -37
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +49 -37
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/splitter.cjs.js +55 -43
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +55 -43
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +55 -43
- package/splitter/splitter.min.js +1 -1
- package/stepper/stepper.cjs.js +49 -37
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.esm.js +49 -37
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +49 -37
- package/stepper/stepper.min.js +1 -1
- package/steps/steps.cjs.js +49 -37
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +49 -37
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +49 -37
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +15 -14
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +15 -14
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +15 -14
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/tabmenu.cjs.js +49 -37
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +49 -37
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +49 -37
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/tabview.cjs.js +61 -38
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +61 -38
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +61 -38
- package/tabview/tabview.min.js +1 -1
- package/tag/tag.cjs.js +23 -17
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +23 -17
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +23 -17
- package/tag/tag.min.js +1 -1
- package/terminal/terminal.cjs.js +21 -20
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +21 -20
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +21 -20
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/terminalservice.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +49 -37
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +49 -37
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +49 -37
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/timeline.cjs.js +34 -23
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +34 -23
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +34 -23
- package/timeline/timeline.min.js +1 -1
- package/toast/toast.cjs.js +60 -277
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +61 -278
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +60 -277
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +34 -23
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +34 -23
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +34 -23
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/tooltip.cjs.js +59 -45
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +60 -46
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +59 -45
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +67 -55
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +67 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +67 -55
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +59 -47
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +60 -48
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +59 -47
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +111 -91
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +111 -91
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +111 -91
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +50 -38
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +50 -38
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +50 -38
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/utils.cjs.js +88 -67
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +88 -67
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +88 -67
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +63 -40
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +64 -41
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +63 -40
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +4 -4
package/inputotp/inputotp.cjs.js
CHANGED
|
@@ -15,47 +15,53 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
|
|
17
17
|
function _extends() {
|
|
18
|
-
|
|
19
|
-
for (var
|
|
20
|
-
var
|
|
21
|
-
for (var
|
|
18
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
19
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
20
|
+
var source = arguments[i];
|
|
21
|
+
for (var key in source) {
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23
|
+
target[key] = source[key];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
|
-
return
|
|
24
|
-
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
return _extends.apply(this, arguments);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
|
-
function _arrayLikeToArray(
|
|
28
|
-
(
|
|
29
|
-
for (var
|
|
30
|
-
return
|
|
32
|
+
function _arrayLikeToArray(arr, len) {
|
|
33
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
35
|
+
return arr2;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
function _arrayWithoutHoles(
|
|
34
|
-
if (Array.isArray(
|
|
38
|
+
function _arrayWithoutHoles(arr) {
|
|
39
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
35
40
|
}
|
|
36
41
|
|
|
37
|
-
function _iterableToArray(
|
|
38
|
-
if (
|
|
42
|
+
function _iterableToArray(iter) {
|
|
43
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
39
44
|
}
|
|
40
45
|
|
|
41
|
-
function _unsupportedIterableToArray(
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
47
|
+
if (!o) return;
|
|
48
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
49
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
50
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
51
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
52
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
function _nonIterableSpread() {
|
|
50
56
|
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
57
|
}
|
|
52
58
|
|
|
53
|
-
function _toConsumableArray(
|
|
54
|
-
return _arrayWithoutHoles(
|
|
59
|
+
function _toConsumableArray(arr) {
|
|
60
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
function _arrayWithHoles(
|
|
58
|
-
if (Array.isArray(
|
|
63
|
+
function _arrayWithHoles(arr) {
|
|
64
|
+
if (Array.isArray(arr)) return arr;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -90,8 +96,8 @@ function _nonIterableRest() {
|
|
|
90
96
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
97
|
}
|
|
92
98
|
|
|
93
|
-
function _slicedToArray(
|
|
94
|
-
return _arrayWithHoles(
|
|
99
|
+
function _slicedToArray(arr, i) {
|
|
100
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
function _typeof(o) {
|
|
@@ -104,29 +110,35 @@ function _typeof(o) {
|
|
|
104
110
|
}, _typeof(o);
|
|
105
111
|
}
|
|
106
112
|
|
|
107
|
-
function
|
|
108
|
-
if ("object"
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
111
|
-
var
|
|
112
|
-
if ("object"
|
|
113
|
+
function _toPrimitive(input, hint) {
|
|
114
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
115
|
+
var prim = input[Symbol.toPrimitive];
|
|
116
|
+
if (prim !== undefined) {
|
|
117
|
+
var res = prim.call(input, hint || "default");
|
|
118
|
+
if (_typeof(res) !== "object") return res;
|
|
113
119
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
114
120
|
}
|
|
115
|
-
return ("string"
|
|
121
|
+
return (hint === "string" ? String : Number)(input);
|
|
116
122
|
}
|
|
117
123
|
|
|
118
|
-
function
|
|
119
|
-
var
|
|
120
|
-
return "symbol"
|
|
124
|
+
function _toPropertyKey(arg) {
|
|
125
|
+
var key = _toPrimitive(arg, "string");
|
|
126
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
121
127
|
}
|
|
122
128
|
|
|
123
|
-
function _defineProperty(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
function _defineProperty(obj, key, value) {
|
|
130
|
+
key = _toPropertyKey(key);
|
|
131
|
+
if (key in obj) {
|
|
132
|
+
Object.defineProperty(obj, key, {
|
|
133
|
+
value: value,
|
|
134
|
+
enumerable: true,
|
|
135
|
+
configurable: true,
|
|
136
|
+
writable: true
|
|
137
|
+
});
|
|
138
|
+
} else {
|
|
139
|
+
obj[key] = value;
|
|
140
|
+
}
|
|
141
|
+
return obj;
|
|
130
142
|
}
|
|
131
143
|
|
|
132
144
|
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/hooks"),a=require("primereact/inputtext"),l=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),a=require("primereact/inputtext"),l=require("primereact/utils");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(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 c(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 s(e){if(Array.isArray(e))return c(e)}function p(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function d(){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 v(e){return s(e)||p(e)||f(e)||d()}function y(e){if(Array.isArray(e))return e}function b(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return i}}function m(){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 g(e){return g="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},g(e)}function O(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e){var t=O(e,"string");return"symbol"===g(t)?t:String(t)}var w=n.ComponentBase.extend({defaultProps:{__TYPE:"InputOtp",__parentMetadata:null,className:null,modelValue:!1,invalid:!1,disabled:!1,readOnly:!1,variant:null,tabIndex:null,length:4,mask:!1,integerOnly:!1},css:{classes:{root:"p-inputotp p-component",input:"p-inputotp-input"}}});function j(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){var r,a,l;r=e,l=n[t],(a=h(a=t))in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P=i.default.memo(i.default.forwardRef((function(o,c){var s,p,d=e.useRef(c),g=r.useMergeProps(),O=e.useContext(t.PrimeReactContext),h=w.getProps(o,O),j=w.setMetaData(S(S({props:h},h.__parentMetadata),{},{context:{disabled:h.disabled}})),P=j.ptm,x=j.cx;n.useHandleStyle(w.css.styles,j.isUnstyled,{name:"inputotp"});var E,A,D=h.value?null===(s=h.value)||void 0===s||null===(s=s.toString())||void 0===s||null===(p=s.split)||void 0===p?void 0:p.call(s,""):new Array(h.length),I=e.useState(D),T=(A=2,y(E=I)||b(E,A)||f(E,A)||m()),k=T[0],N=T[1],_=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:_(t)},C=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:C(t)},M=function(e){var t=_(e.target);t&&(t.focus(),t.select())},U=function(e){var t=C(e.target);t&&(t.focus(),t.select())},q=function(e,t){var n;null==h||null===(n=h.onChange)||void 0===n||n.call(h,{originalEvent:e,value:t.join("")})},B=function(e,t){var n=e.target.value,r=v(k);r[t]=n,r=(r=r.join(""))?r.split(""):new Array(h.length),N(r),q(e,r)},K=function(e,t){h.disabled||h.readOnly||"insertFromPaste"!==e.nativeEvent.inputType&&(B(e,t),"deleteContentBackward"===e.nativeEvent.inputType?U(e):"insertText"!==e.nativeEvent.inputType&&"deleteContentForward"!==e.nativeEvent.inputType||M(e))},R=function(e){if(!h.disabled&&!h.readOnly){var t=e.clipboardData.getData("text");if(t.length){var n=t.substring(0,h.length+1);if(!h.integerOnly||!isNaN(n)){var r=n.split("");N(r),q(e,r)}}}},F=function(e){var t;e.target.select(),null==h||null===(t=h.focus)||void 0===t||t.call(h,e)},L=function(e){var t;null==h||null===(t=h.blur)||void 0===t||t.call(h,e)},H=function(e){if(!h.disabled&&!h.readOnly&&!(e.altKey||e.ctrlKey||e.metaKey))switch(e.code){case"ArrowLeft":U(e),e.preventDefault();break;case"ArrowRight":M(e),e.preventDefault();break;case"Backspace":var t;0===(null===(t=e.target)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.length)&&(U(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"Enter":break;default:(null!=h&&h.integerOnly&&!("Space"!==e.code&&Number(e.key)>=0&&Number(e.key)<=9)||k.join("").length>=h.length&&"Delete"!==e.code)&&e.preventDefault()}};r.useUpdateEffect((function(){var e,t,n=h.value?null===(e=h.value)||void 0===e||null===(e=e.toString())||void 0===e||null===(t=e.split)||void 0===t?void 0:t.call(e,""):new Array(h.length);N(n)}),[h.value]);var J=function(e){if(e<=0)return[];var n=h.length-e,r={onInput:function(e){return K(e,n)},onKeyDown:H,onFocus:F,onBlur:L,onPaste:R},o={id:n,value:k[n]||"",inputMode:null!=h&&h.integerOnly?"numeric":"text",type:null!=h&&h.mask?"password":"text",variant:null==h?void 0:h.variant,readOnly:null==h?void 0:h.readOnly,disabled:null==h?void 0:h.disabled,invalid:null==h?void 0:h.invalid,tabIndex:null==h?void 0:h.tabIndex,unstyled:null==h?void 0:h.unstyled,"aria-label":t.ariaLabel("otpLabel",{0:n+1}),className:x("input"),pt:P("input")};return[null!=h&&h.inputTemplate?l.ObjectUtils.getJSXElement(null==h?void 0:h.inputTemplate,{events:r,props:o}):i.default.createElement(a.InputText,u({},o,r,{key:n}))].concat(v(J(e-1)))},V=g({className:x("root"),ref:d,style:null==h?void 0:h.style},P("root"));return i.default.createElement("div",V,J(h.length))})));P.displayName="InputOtp",exports.InputOtp=P;
|
package/inputotp/inputotp.esm.js
CHANGED
|
@@ -7,47 +7,53 @@ import { InputText } from 'primereact/inputtext';
|
|
|
7
7
|
import { ObjectUtils } from 'primereact/utils';
|
|
8
8
|
|
|
9
9
|
function _extends() {
|
|
10
|
-
|
|
11
|
-
for (var
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
10
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i];
|
|
13
|
+
for (var key in source) {
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
+
target[key] = source[key];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
|
-
return
|
|
16
|
-
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
return _extends.apply(this, arguments);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
|
-
function _arrayLikeToArray(
|
|
20
|
-
(
|
|
21
|
-
for (var
|
|
22
|
-
return
|
|
24
|
+
function _arrayLikeToArray(arr, len) {
|
|
25
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
26
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
27
|
+
return arr2;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
|
-
function _arrayWithoutHoles(
|
|
26
|
-
if (Array.isArray(
|
|
30
|
+
function _arrayWithoutHoles(arr) {
|
|
31
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
function _iterableToArray(
|
|
30
|
-
if (
|
|
34
|
+
function _iterableToArray(iter) {
|
|
35
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
function _unsupportedIterableToArray(
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
39
|
+
if (!o) return;
|
|
40
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
41
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
42
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
43
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
function _nonIterableSpread() {
|
|
42
48
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
function _toConsumableArray(
|
|
46
|
-
return _arrayWithoutHoles(
|
|
51
|
+
function _toConsumableArray(arr) {
|
|
52
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
function _arrayWithHoles(
|
|
50
|
-
if (Array.isArray(
|
|
55
|
+
function _arrayWithHoles(arr) {
|
|
56
|
+
if (Array.isArray(arr)) return arr;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -82,8 +88,8 @@ function _nonIterableRest() {
|
|
|
82
88
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
83
89
|
}
|
|
84
90
|
|
|
85
|
-
function _slicedToArray(
|
|
86
|
-
return _arrayWithHoles(
|
|
91
|
+
function _slicedToArray(arr, i) {
|
|
92
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
function _typeof(o) {
|
|
@@ -96,29 +102,35 @@ function _typeof(o) {
|
|
|
96
102
|
}, _typeof(o);
|
|
97
103
|
}
|
|
98
104
|
|
|
99
|
-
function
|
|
100
|
-
if ("object"
|
|
101
|
-
var
|
|
102
|
-
if (
|
|
103
|
-
var
|
|
104
|
-
if ("object"
|
|
105
|
+
function _toPrimitive(input, hint) {
|
|
106
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
107
|
+
var prim = input[Symbol.toPrimitive];
|
|
108
|
+
if (prim !== undefined) {
|
|
109
|
+
var res = prim.call(input, hint || "default");
|
|
110
|
+
if (_typeof(res) !== "object") return res;
|
|
105
111
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
106
112
|
}
|
|
107
|
-
return ("string"
|
|
113
|
+
return (hint === "string" ? String : Number)(input);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
|
-
function
|
|
111
|
-
var
|
|
112
|
-
return "symbol"
|
|
116
|
+
function _toPropertyKey(arg) {
|
|
117
|
+
var key = _toPrimitive(arg, "string");
|
|
118
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
function _defineProperty(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
function _defineProperty(obj, key, value) {
|
|
122
|
+
key = _toPropertyKey(key);
|
|
123
|
+
if (key in obj) {
|
|
124
|
+
Object.defineProperty(obj, key, {
|
|
125
|
+
value: value,
|
|
126
|
+
enumerable: true,
|
|
127
|
+
configurable: true,
|
|
128
|
+
writable: true
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
obj[key] = value;
|
|
132
|
+
}
|
|
133
|
+
return obj;
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
var classes = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useContext as n,useState as r}from"react";import{PrimeReactContext as l,ariaLabel as a}from"primereact/api";import{ComponentBase as o,useHandleStyle as i}from"primereact/componentbase";import{useMergeProps as u,useUpdateEffect as c}from"primereact/hooks";import{InputText as p}from"primereact/inputtext";import{ObjectUtils as s}from"primereact/utils";function f(){return f=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 e,{useRef as t,useContext as n,useState as r}from"react";import{PrimeReactContext as l,ariaLabel as a}from"primereact/api";import{ComponentBase as o,useHandleStyle as i}from"primereact/componentbase";import{useMergeProps as u,useUpdateEffect as c}from"primereact/hooks";import{InputText as p}from"primereact/inputtext";import{ObjectUtils as s}from"primereact/utils";function f(){return f=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},f.apply(this,arguments)}function v(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 d(e){if(Array.isArray(e))return v(e)}function y(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 v(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)?v(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 g(e){return d(e)||y(e)||b(e)||m()}function O(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,a,o,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){c=!0,l=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw l}}return i}}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 j(e){return j="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},j(e)}function S(e,t){if("object"!==j(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function P(e){var t=S(e,"string");return"symbol"===j(t)?t:String(t)}var E=o.extend({defaultProps:{__TYPE:"InputOtp",__parentMetadata:null,className:null,modelValue:!1,invalid:!1,disabled:!1,readOnly:!1,variant:null,tabIndex:null,length:4,mask:!1,integerOnly:!1},css:{classes:{root:"p-inputotp p-component",input:"p-inputotp-input"}}});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 D(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){var r,l,a;r=e,a=n[t],(l=P(l=t))in r?Object.defineProperty(r,l,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[l]=a})):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 k=e.memo(e.forwardRef((function(o,v){var d,y,m=t(v),j=u(),S=n(l),P=E.getProps(o,S),A=E.setMetaData(D(D({props:P},P.__parentMetadata),{},{context:{disabled:P.disabled}})),k=A.ptm,x=A.cx;i(E.css.styles,A.isUnstyled,{name:"inputotp"});var T,I,N=P.value?null===(d=P.value)||void 0===d||null===(d=d.toString())||void 0===d||null===(y=d.split)||void 0===y?void 0:y.call(d,""):new Array(P.length),_=r(N),M=(I=2,O(T=_)||h(T,I)||b(T,I)||w()),U=M[0],C=M[1],K=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:K(t)},B=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:B(t)},F=function(e){var t=K(e.target);t&&(t.focus(),t.select())},L=function(e){var t=B(e.target);t&&(t.focus(),t.select())},R=function(e,t){var n;null==P||null===(n=P.onChange)||void 0===n||n.call(P,{originalEvent:e,value:t.join("")})},J=function(e,t){var n=e.target.value,r=g(U);r[t]=n,r=(r=r.join(""))?r.split(""):new Array(P.length),C(r),R(e,r)},V=function(e,t){P.disabled||P.readOnly||"insertFromPaste"!==e.nativeEvent.inputType&&(J(e,t),"deleteContentBackward"===e.nativeEvent.inputType?L(e):"insertText"!==e.nativeEvent.inputType&&"deleteContentForward"!==e.nativeEvent.inputType||F(e))},X=function(e){if(!P.disabled&&!P.readOnly){var t=e.clipboardData.getData("text");if(t.length){var n=t.substring(0,P.length+1);if(!P.integerOnly||!isNaN(n)){var r=n.split("");C(r),R(e,r)}}}},Y=function(e){var t;e.target.select(),null==P||null===(t=P.focus)||void 0===t||t.call(P,e)},$=function(e){var t;null==P||null===(t=P.blur)||void 0===t||t.call(P,e)},q=function(e){if(!P.disabled&&!P.readOnly&&!(e.altKey||e.ctrlKey||e.metaKey))switch(e.code){case"ArrowLeft":L(e),e.preventDefault();break;case"ArrowRight":F(e),e.preventDefault();break;case"Backspace":var t;0===(null===(t=e.target)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.length)&&(L(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"Enter":break;default:(null!=P&&P.integerOnly&&!("Space"!==e.code&&Number(e.key)>=0&&Number(e.key)<=9)||U.join("").length>=P.length&&"Delete"!==e.code)&&e.preventDefault()}};c((function(){var e,t,n=P.value?null===(e=P.value)||void 0===e||null===(e=e.toString())||void 0===e||null===(t=e.split)||void 0===t?void 0:t.call(e,""):new Array(P.length);C(n)}),[P.value]);var z=function(t){if(t<=0)return[];var n=P.length-t,r={onInput:function(e){return V(e,n)},onKeyDown:q,onFocus:Y,onBlur:$,onPaste:X},l={id:n,value:U[n]||"",inputMode:null!=P&&P.integerOnly?"numeric":"text",type:null!=P&&P.mask?"password":"text",variant:null==P?void 0:P.variant,readOnly:null==P?void 0:P.readOnly,disabled:null==P?void 0:P.disabled,invalid:null==P?void 0:P.invalid,tabIndex:null==P?void 0:P.tabIndex,unstyled:null==P?void 0:P.unstyled,"aria-label":a("otpLabel",{0:n+1}),className:x("input"),pt:k("input")};return[null!=P&&P.inputTemplate?s.getJSXElement(null==P?void 0:P.inputTemplate,{events:r,props:l}):e.createElement(p,f({},l,r,{key:n}))].concat(g(z(t-1)))},G=j({className:x("root"),ref:m,style:null==P?void 0:P.style},k("root"));return e.createElement("div",G,z(P.length))})));k.displayName="InputOtp";export{k as InputOtp};
|
package/inputotp/inputotp.js
CHANGED
|
@@ -7,47 +7,53 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
7
7
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
8
8
|
|
|
9
9
|
function _extends() {
|
|
10
|
-
|
|
11
|
-
for (var
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
10
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i];
|
|
13
|
+
for (var key in source) {
|
|
14
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
+
target[key] = source[key];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
|
-
return
|
|
16
|
-
}
|
|
19
|
+
return target;
|
|
20
|
+
};
|
|
21
|
+
return _extends.apply(this, arguments);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
|
-
function _arrayLikeToArray(
|
|
20
|
-
(
|
|
21
|
-
for (var
|
|
22
|
-
return
|
|
24
|
+
function _arrayLikeToArray(arr, len) {
|
|
25
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
26
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
27
|
+
return arr2;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
|
-
function _arrayWithoutHoles(
|
|
26
|
-
if (Array.isArray(
|
|
30
|
+
function _arrayWithoutHoles(arr) {
|
|
31
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
function _iterableToArray(
|
|
30
|
-
if (
|
|
34
|
+
function _iterableToArray(iter) {
|
|
35
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
function _unsupportedIterableToArray(
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
39
|
+
if (!o) return;
|
|
40
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
41
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
42
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
43
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
44
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
function _nonIterableSpread() {
|
|
42
48
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
function _toConsumableArray(
|
|
46
|
-
return _arrayWithoutHoles(
|
|
51
|
+
function _toConsumableArray(arr) {
|
|
52
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
function _arrayWithHoles(
|
|
50
|
-
if (Array.isArray(
|
|
55
|
+
function _arrayWithHoles(arr) {
|
|
56
|
+
if (Array.isArray(arr)) return arr;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -82,8 +88,8 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
82
88
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
83
89
|
}
|
|
84
90
|
|
|
85
|
-
function _slicedToArray(
|
|
86
|
-
return _arrayWithHoles(
|
|
91
|
+
function _slicedToArray(arr, i) {
|
|
92
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
87
93
|
}
|
|
88
94
|
|
|
89
95
|
function _typeof(o) {
|
|
@@ -96,29 +102,35 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
96
102
|
}, _typeof(o);
|
|
97
103
|
}
|
|
98
104
|
|
|
99
|
-
function
|
|
100
|
-
if ("object"
|
|
101
|
-
var
|
|
102
|
-
if (
|
|
103
|
-
var
|
|
104
|
-
if ("object"
|
|
105
|
+
function _toPrimitive(input, hint) {
|
|
106
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
107
|
+
var prim = input[Symbol.toPrimitive];
|
|
108
|
+
if (prim !== undefined) {
|
|
109
|
+
var res = prim.call(input, hint || "default");
|
|
110
|
+
if (_typeof(res) !== "object") return res;
|
|
105
111
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
106
112
|
}
|
|
107
|
-
return ("string"
|
|
113
|
+
return (hint === "string" ? String : Number)(input);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
|
-
function
|
|
111
|
-
var
|
|
112
|
-
return "symbol"
|
|
116
|
+
function _toPropertyKey(arg) {
|
|
117
|
+
var key = _toPrimitive(arg, "string");
|
|
118
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
function _defineProperty(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
function _defineProperty(obj, key, value) {
|
|
122
|
+
key = _toPropertyKey(key);
|
|
123
|
+
if (key in obj) {
|
|
124
|
+
Object.defineProperty(obj, key, {
|
|
125
|
+
value: value,
|
|
126
|
+
enumerable: true,
|
|
127
|
+
configurable: true,
|
|
128
|
+
writable: true
|
|
129
|
+
});
|
|
130
|
+
} else {
|
|
131
|
+
obj[key] = value;
|
|
132
|
+
}
|
|
133
|
+
return obj;
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
var classes = {
|
package/inputotp/inputotp.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.inputotp=function(e,t,n,r,a,l,i){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);function c(){return c=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
|
+
this.primereact=this.primereact||{},this.primereact.inputotp=function(e,t,n,r,a,l,i){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=o(t);function c(){return c=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},c.apply(this,arguments)}function s(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 s(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,t){if(e){if("string"==typeof e)return s(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)?s(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 y(e){return p(e)||f(e)||d(e)||v()}function b(e){if(Array.isArray(e))return e}function m(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,i,o=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(o.push(r.value),o.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return o}}function g(){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 O(e){return O="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},O(e)}function h(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function w(e){var t=h(e,"string");return"symbol"===O(t)?t:String(t)}var j=r.ComponentBase.extend({defaultProps:{__TYPE:"InputOtp",__parentMetadata:null,className:null,modelValue:!1,invalid:!1,disabled:!1,readOnly:!1,variant:null,tabIndex:null,length:4,mask:!1,integerOnly:!1},css:{classes:{root:"p-inputotp p-component",input:"p-inputotp-input"}}});function S(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){var r,a,l;r=e,l=n[t],(a=w(a=t))in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=u.default.memo(u.default.forwardRef((function(e,o){var s,p,f=t.useRef(o),v=a.useMergeProps(),O=t.useContext(n.PrimeReactContext),h=j.getProps(e,O),w=j.setMetaData(P(P({props:h},h.__parentMetadata),{},{context:{disabled:h.disabled}})),S=w.ptm,E=w.cx;r.useHandleStyle(j.css.styles,w.isUnstyled,{name:"inputotp"});var x,A,D=h.value?null===(s=h.value)||void 0===s||null===(s=s.toString())||void 0===s||null===(p=s.split)||void 0===p?void 0:p.call(s,""):new Array(h.length),I=t.useState(D),T=(A=2,b(x=I)||m(x,A)||d(x,A)||g()),k=T[0],N=T[1],_=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:_(t)},C=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:C(t)},M=function(e){var t=_(e.target);t&&(t.focus(),t.select())},U=function(e){var t=C(e.target);t&&(t.focus(),t.select())},R=function(e,t){var n;null==h||null===(n=h.onChange)||void 0===n||n.call(h,{originalEvent:e,value:t.join("")})},B=function(e,t){var n=e.target.value,r=y(k);r[t]=n,r=(r=r.join(""))?r.split(""):new Array(h.length),N(r),R(e,r)},K=function(e,t){h.disabled||h.readOnly||"insertFromPaste"!==e.nativeEvent.inputType&&(B(e,t),"deleteContentBackward"===e.nativeEvent.inputType?U(e):"insertText"!==e.nativeEvent.inputType&&"deleteContentForward"!==e.nativeEvent.inputType||M(e))},F=function(e){if(!h.disabled&&!h.readOnly){var t=e.clipboardData.getData("text");if(t.length){var n=t.substring(0,h.length+1);if(!h.integerOnly||!isNaN(n)){var r=n.split("");N(r),R(e,r)}}}},L=function(e){var t;e.target.select(),null==h||null===(t=h.focus)||void 0===t||t.call(h,e)},H=function(e){var t;null==h||null===(t=h.blur)||void 0===t||t.call(h,e)},J=function(e){if(!h.disabled&&!h.readOnly&&!(e.altKey||e.ctrlKey||e.metaKey))switch(e.code){case"ArrowLeft":U(e),e.preventDefault();break;case"ArrowRight":M(e),e.preventDefault();break;case"Backspace":var t;0===(null===(t=e.target)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.length)&&(U(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"Enter":break;default:(null!=h&&h.integerOnly&&!("Space"!==e.code&&Number(e.key)>=0&&Number(e.key)<=9)||k.join("").length>=h.length&&"Delete"!==e.code)&&e.preventDefault()}};a.useUpdateEffect((function(){var e,t,n=h.value?null===(e=h.value)||void 0===e||null===(e=e.toString())||void 0===e||null===(t=e.split)||void 0===t?void 0:t.call(e,""):new Array(h.length);N(n)}),[h.value]);var V=function(e){if(e<=0)return[];var t=h.length-e,r={onInput:function(e){return K(e,t)},onKeyDown:J,onFocus:L,onBlur:H,onPaste:F},a={id:t,value:k[t]||"",inputMode:null!=h&&h.integerOnly?"numeric":"text",type:null!=h&&h.mask?"password":"text",variant:null==h?void 0:h.variant,readOnly:null==h?void 0:h.readOnly,disabled:null==h?void 0:h.disabled,invalid:null==h?void 0:h.invalid,tabIndex:null==h?void 0:h.tabIndex,unstyled:null==h?void 0:h.unstyled,"aria-label":n.ariaLabel("otpLabel",{0:t+1}),className:E("input"),pt:S("input")};return[null!=h&&h.inputTemplate?i.ObjectUtils.getJSXElement(null==h?void 0:h.inputTemplate,{events:r,props:a}):u.default.createElement(l.InputText,c({},a,r,{key:t}))].concat(y(V(e-1)))},X=v({className:E("root"),ref:f,style:null==h?void 0:h.style},S("root"));return u.default.createElement("div",X,V(h.length))})));return E.displayName="InputOtp",e.InputOtp=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.inputtext,primereact.utils);
|
|
@@ -31,13 +31,18 @@ function _interopNamespace(e) {
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
32
|
|
|
33
33
|
function _extends() {
|
|
34
|
-
|
|
35
|
-
for (var
|
|
36
|
-
var
|
|
37
|
-
for (var
|
|
34
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
35
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
36
|
+
var source = arguments[i];
|
|
37
|
+
for (var key in source) {
|
|
38
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
|
-
return
|
|
40
|
-
}
|
|
43
|
+
return target;
|
|
44
|
+
};
|
|
45
|
+
return _extends.apply(this, arguments);
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
function _typeof(o) {
|
|
@@ -50,29 +55,35 @@ function _typeof(o) {
|
|
|
50
55
|
}, _typeof(o);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
function
|
|
54
|
-
if ("object"
|
|
55
|
-
var
|
|
56
|
-
if (
|
|
57
|
-
var
|
|
58
|
-
if ("object"
|
|
58
|
+
function _toPrimitive(input, hint) {
|
|
59
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
60
|
+
var prim = input[Symbol.toPrimitive];
|
|
61
|
+
if (prim !== undefined) {
|
|
62
|
+
var res = prim.call(input, hint || "default");
|
|
63
|
+
if (_typeof(res) !== "object") return res;
|
|
59
64
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60
65
|
}
|
|
61
|
-
return ("string"
|
|
66
|
+
return (hint === "string" ? String : Number)(input);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
return "symbol"
|
|
69
|
+
function _toPropertyKey(arg) {
|
|
70
|
+
var key = _toPrimitive(arg, "string");
|
|
71
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
function _defineProperty(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
function _defineProperty(obj, key, value) {
|
|
75
|
+
key = _toPropertyKey(key);
|
|
76
|
+
if (key in obj) {
|
|
77
|
+
Object.defineProperty(obj, key, {
|
|
78
|
+
value: value,
|
|
79
|
+
enumerable: true,
|
|
80
|
+
configurable: true,
|
|
81
|
+
writable: true
|
|
82
|
+
});
|
|
83
|
+
} else {
|
|
84
|
+
obj[key] = value;
|
|
85
|
+
}
|
|
86
|
+
return obj;
|
|
76
87
|
}
|
|
77
88
|
|
|
78
89
|
var classes = {
|