primereact 10.9.2 → 10.9.4
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.d.ts +2 -2
- 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 +46 -60
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +5 -1
- package/api/api.esm.js +46 -60
- package/api/api.esm.min.js +1 -1
- package/api/api.js +46 -60
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.js +64 -55
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +27 -25
- package/autocomplete/autocomplete.esm.js +64 -55
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +64 -55
- 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.d.ts +2 -2
- 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/avatargroup/avatargroup.d.ts +2 -2
- package/badge/badge.cjs.js +17 -23
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/buttongroup/buttongroup.cjs.js +4 -1
- package/buttongroup/buttongroup.cjs.min.js +1 -1
- package/buttongroup/buttongroup.esm.js +4 -1
- package/buttongroup/buttongroup.esm.min.js +1 -1
- package/buttongroup/buttongroup.js +4 -1
- package/buttongroup/buttongroup.min.js +1 -1
- package/calendar/calendar.cjs.js +52 -59
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +7 -7
- package/calendar/calendar.esm.js +52 -59
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +52 -59
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.cjs.js +44 -56
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.esm.js +44 -56
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +44 -56
- 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.d.ts +8 -8
- 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/chart/chart.d.ts +2 -2
- package/checkbox/checkbox.cjs.js +37 -49
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +4 -4
- 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 +48 -51
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +15 -4
- package/chip/chip.esm.js +48 -51
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +48 -51
- package/chip/chip.min.js +1 -1
- package/chips/chips.cjs.js +43 -55
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +2 -2
- package/chips/chips.esm.js +43 -55
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +43 -55
- package/chips/chips.min.js +1 -1
- package/colorpicker/colorpicker.cjs.js +38 -49
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +6 -6
- package/colorpicker/colorpicker.esm.js +38 -49
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +38 -49
- package/colorpicker/colorpicker.min.js +1 -1
- package/componentbase/componentbase.cjs.js +47 -45
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +47 -45
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +47 -45
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.cjs.js +41 -52
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +41 -52
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +41 -52
- 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.d.ts +2 -2
- 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 +1050 -1445
- package/core/core.min.js +65 -65
- 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 +28 -32
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +2 -2
- package/datascroller/datascroller.esm.js +28 -32
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +28 -32
- package/datascroller/datascroller.min.js +1 -1
- package/datatable/datatable.cjs.js +203 -171
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +6 -5
- package/datatable/datatable.esm.js +203 -171
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +203 -171
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.cjs.js +47 -59
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +2 -2
- package/dataview/dataview.esm.js +47 -59
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +47 -59
- 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.d.ts +2 -2
- 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 +43 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +12 -12
- package/dialog/dialog.esm.js +43 -56
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +43 -56
- package/dialog/dialog.min.js +1 -1
- package/divider/divider.cjs.js +2 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +2 -2
- package/divider/divider.esm.js +2 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +2 -2
- package/divider/divider.min.js +1 -1
- package/dock/dock.cjs.js +43 -55
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +2 -2
- 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 +52 -63
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +10 -10
- package/dropdown/dropdown.esm.js +53 -64
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +52 -63
- 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.d.ts +6 -6
- 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.d.ts +4 -4
- 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 +50 -61
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +8 -4
- package/fileupload/fileupload.esm.js +50 -61
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +50 -61
- 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 +44 -56
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +2 -2
- package/galleria/galleria.esm.js +44 -56
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +44 -56
- 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.d.ts +3 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +10 -13
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +2 -2
- package/inputmask/inputmask.esm.js +10 -13
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -13
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/inputnumber.cjs.js +50 -56
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +4 -4
- package/inputnumber/inputnumber.esm.js +50 -56
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +50 -56
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputotp/inputotp.cjs.js +64 -56
- package/inputotp/inputotp.cjs.min.js +1 -1
- package/inputotp/inputotp.esm.js +64 -56
- package/inputotp/inputotp.esm.min.js +1 -1
- package/inputotp/inputotp.js +64 -56
- 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.d.ts +4 -4
- 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 +25 -35
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +25 -35
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +25 -35
- package/inputtext/inputtext.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +23 -34
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +23 -34
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +23 -34
- 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 +15 -16
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +2 -2
- package/knob/knob.esm.js +15 -16
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +15 -16
- 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.d.ts +4 -4
- 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 +41 -57
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +2 -2
- package/megamenu/megamenu.esm.js +41 -57
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +41 -57
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +43 -55
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +6 -6
- package/mention/mention.esm.js +43 -55
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +43 -55
- package/mention/mention.min.js +1 -1
- package/menu/menu.cjs.js +52 -55
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +2 -2
- package/menu/menu.esm.js +52 -55
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +52 -55
- package/menu/menu.min.js +1 -1
- package/menubar/menubar.cjs.js +39 -51
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +8 -8
- package/menubar/menubar.esm.js +39 -51
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +39 -51
- 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.d.ts +2 -2
- 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 +43 -55
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +2 -2
- package/messages/messages.esm.js +43 -55
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +43 -55
- 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 +67 -85
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +6 -6
- package/multiselect/multiselect.esm.js +67 -85
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +67 -85
- 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.d.ts +2 -2
- 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 +67 -78
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +2 -2
- package/orderlist/orderlist.esm.js +67 -78
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +67 -78
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.cjs.js +43 -55
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +2 -2
- package/organizationchart/organizationchart.esm.js +43 -55
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +43 -55
- 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.d.ts +2 -2
- 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/package.json +1 -1
- package/paginator/paginator.cjs.js +44 -58
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +2 -2
- package/paginator/paginator.esm.js +44 -58
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +44 -58
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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 +53 -67
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +2 -2
- package/picklist/picklist.esm.js +53 -67
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +53 -67
- 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 +690 -565
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +690 -565
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +690 -565
- 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.d.ts +2 -2
- 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/progressspinner/progressspinner.d.ts +2 -2
- package/radiobutton/radiobutton.cjs.js +23 -34
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +4 -4
- 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.d.ts +2 -2
- 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/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.d.ts +8 -8
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +6 -6
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +3 -2
- 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 +44 -56
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +2 -2
- package/speeddial/speeddial.esm.js +44 -56
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -56
- 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.d.ts +2 -2
- 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 +39 -50
- package/stepper/stepper.cjs.min.js +1 -1
- package/stepper/stepper.d.ts +33 -14
- package/stepper/stepper.esm.js +39 -50
- package/stepper/stepper.esm.min.js +1 -1
- package/stepper/stepper.js +39 -50
- 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.d.ts +2 -2
- 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.d.ts +4 -4
- 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.d.ts +2 -2
- 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 +38 -45
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +2 -2
- package/tabview/tabview.esm.js +38 -45
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +38 -45
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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/tieredmenu/tieredmenu.cjs.js +37 -49
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +2 -2
- 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.d.ts +4 -4
- 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 +43 -55
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +2 -2
- package/toast/toast.esm.js +43 -55
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +43 -55
- package/toast/toast.min.js +1 -1
- package/togglebutton/togglebutton.cjs.js +25 -36
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +2 -2
- package/togglebutton/togglebutton.esm.js +25 -36
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -36
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/toolbar.d.ts +2 -2
- package/tooltip/tooltip.cjs.js +51 -62
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +3 -3
- package/tooltip/tooltip.esm.js +51 -62
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -62
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.cjs.js +55 -64
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +2 -2
- package/tree/tree.esm.js +55 -64
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +55 -64
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.cjs.js +48 -65
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +2 -2
- package/treeselect/treeselect.esm.js +48 -65
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +48 -65
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.cjs.js +97 -99
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +2 -2
- package/treetable/treetable.esm.js +97 -99
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +97 -99
- 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.d.ts +2 -2
- 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 +81 -80
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +81 -80
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +81 -80
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +39 -51
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +39 -51
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +39 -51
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +29 -11
|
@@ -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 i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(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 c(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 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={}.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,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 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)||!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:t+""}function w(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=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 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){w(e,t,n[t])})):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 x=o.default.memo(o.default.forwardRef((function(i,c){var s,p,d=e.useRef(c),g=r.useMergeProps(),O=e.useContext(t.PrimeReactContext),h=j.getProps(i,O),w=j.setMetaData(P(P({props:h},h.__parentMetadata),{},{context:{disabled:h.disabled}})),S=w.ptm,x=w.cx;n.useHandleStyle(j.css.styles,w.isUnstyled,{name:"inputotp"});var E,N,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),A=e.useState(D),k=(N=2,y(E=A)||b(E,N)||f(E,N)||m()),I=k[0],T=k[1],_=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:_(t)},M=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:M(t)},U=function(e){var t=_(e.target);t&&(t.focus(),t.select())},q=function(e){var t=M(e.target);t&&(t.focus(),t.select())},C=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(I);r[t]=n,r=(r=r.join(""))?r.split(""):new Array(h.length),T(r),C(e,r)},K=function(e,t){h.disabled||h.readOnly||"insertFromPaste"!==e.nativeEvent.inputType&&(B(e,t),"deleteContentBackward"===e.nativeEvent.inputType?q(e):"insertText"===e.nativeEvent.inputType&&U(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("");T(r),C(e,r)}}}},L=function(e){var t;e.target.select(),null==h||null===(t=h.focus)||void 0===t||t.call(h,e)},F=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":q(e),e.preventDefault();break;case"ArrowRight":U(e),e.preventDefault();break;case"Delete":e.preventDefault();var t=Number(e.target.id);Number.isNaN(t)||J(I,h.length)||(B(P(P({},e),{},{target:P(P({},e.target),{},{value:""})}),t),U(e));break;case"Backspace":var n;0===(null===(n=e.target)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.length)&&(q(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"NumpadEnter":case"Enter":break;default:(null!=h&&h.integerOnly&&!("Space"!==e.code&&Number(e.key)>=0&&Number(e.key)<=9)||I.join("").length>=h.length&&"Delete"!==e.code)&&e.preventDefault()}},J=function(e,t){return e.length===t&&e.every((function(e){return""===e||null==e}))};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);T(n)}),[h.value]);var V=function(e){if(e<=0)return[];var n=h.length-e,r={onInput:function(e){return K(e,n)},onKeyDown:H,onFocus:L,onBlur:F,onPaste:R},i={id:n,value:I[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:S("input")};return[null!=h&&h.inputTemplate?l.ObjectUtils.getJSXElement(null==h?void 0:h.inputTemplate,{events:r,props:i}):o.default.createElement(a.InputText,u({},i,r,{key:n}))].concat(v(V(e-1)))},X=g({className:x("root"),ref:d,style:null==h?void 0:h.style},S("root"));return o.default.createElement("div",X,V(h.length))})));x.displayName="InputOtp",exports.InputOtp=x;
|
package/inputotp/inputotp.esm.js
CHANGED
|
@@ -7,53 +7,47 @@ import { InputText } from 'primereact/inputtext';
|
|
|
7
7
|
import { ObjectUtils } from 'primereact/utils';
|
|
8
8
|
|
|
9
9
|
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
11
|
-
for (var
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
10
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
11
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
12
|
+
var t = arguments[e];
|
|
13
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
18
14
|
}
|
|
19
|
-
return
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
15
|
+
return n;
|
|
16
|
+
}, _extends.apply(null, arguments);
|
|
22
17
|
}
|
|
23
18
|
|
|
24
|
-
function _arrayLikeToArray(
|
|
25
|
-
|
|
26
|
-
for (var
|
|
27
|
-
return
|
|
19
|
+
function _arrayLikeToArray(r, a) {
|
|
20
|
+
(null == a || a > r.length) && (a = r.length);
|
|
21
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
22
|
+
return n;
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
function _arrayWithoutHoles(
|
|
31
|
-
if (Array.isArray(
|
|
25
|
+
function _arrayWithoutHoles(r) {
|
|
26
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
32
27
|
}
|
|
33
28
|
|
|
34
|
-
function _iterableToArray(
|
|
35
|
-
if (typeof Symbol
|
|
29
|
+
function _iterableToArray(r) {
|
|
30
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
function _unsupportedIterableToArray(
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
33
|
+
function _unsupportedIterableToArray(r, a) {
|
|
34
|
+
if (r) {
|
|
35
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
36
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
37
|
+
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;
|
|
38
|
+
}
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
function _nonIterableSpread() {
|
|
48
42
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
43
|
}
|
|
50
44
|
|
|
51
|
-
function _toConsumableArray(
|
|
52
|
-
return _arrayWithoutHoles(
|
|
45
|
+
function _toConsumableArray(r) {
|
|
46
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
function _arrayWithHoles(
|
|
56
|
-
if (Array.isArray(
|
|
49
|
+
function _arrayWithHoles(r) {
|
|
50
|
+
if (Array.isArray(r)) return r;
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -88,8 +82,8 @@ function _nonIterableRest() {
|
|
|
88
82
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
83
|
}
|
|
90
84
|
|
|
91
|
-
function _slicedToArray(
|
|
92
|
-
return _arrayWithHoles(
|
|
85
|
+
function _slicedToArray(r, e) {
|
|
86
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
function _typeof(o) {
|
|
@@ -102,35 +96,29 @@ function _typeof(o) {
|
|
|
102
96
|
}, _typeof(o);
|
|
103
97
|
}
|
|
104
98
|
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
99
|
+
function toPrimitive(t, r) {
|
|
100
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
101
|
+
var e = t[Symbol.toPrimitive];
|
|
102
|
+
if (void 0 !== e) {
|
|
103
|
+
var i = e.call(t, r || "default");
|
|
104
|
+
if ("object" != _typeof(i)) return i;
|
|
111
105
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
112
106
|
}
|
|
113
|
-
return (
|
|
107
|
+
return ("string" === r ? String : Number)(t);
|
|
114
108
|
}
|
|
115
109
|
|
|
116
|
-
function
|
|
117
|
-
var
|
|
118
|
-
return _typeof(
|
|
110
|
+
function toPropertyKey(t) {
|
|
111
|
+
var i = toPrimitive(t, "string");
|
|
112
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
119
113
|
}
|
|
120
114
|
|
|
121
|
-
function _defineProperty(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
writable: true
|
|
129
|
-
});
|
|
130
|
-
} else {
|
|
131
|
-
obj[key] = value;
|
|
132
|
-
}
|
|
133
|
-
return obj;
|
|
115
|
+
function _defineProperty(e, r, t) {
|
|
116
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
+
value: t,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
configurable: !0,
|
|
120
|
+
writable: !0
|
|
121
|
+
}) : e[r] = t, e;
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
var classes = {
|
|
@@ -233,7 +221,7 @@ var InputOtp = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
233
221
|
updateTokens(event, index);
|
|
234
222
|
if (event.nativeEvent.inputType === 'deleteContentBackward') {
|
|
235
223
|
moveToPrevInput(event);
|
|
236
|
-
} else if (event.nativeEvent.inputType === 'insertText'
|
|
224
|
+
} else if (event.nativeEvent.inputType === 'insertText') {
|
|
237
225
|
moveToNextInput(event);
|
|
238
226
|
}
|
|
239
227
|
};
|
|
@@ -282,6 +270,20 @@ var InputOtp = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
282
270
|
event.preventDefault();
|
|
283
271
|
break;
|
|
284
272
|
}
|
|
273
|
+
case 'Delete':
|
|
274
|
+
{
|
|
275
|
+
event.preventDefault();
|
|
276
|
+
var idx = Number(event.target.id);
|
|
277
|
+
if (!Number.isNaN(idx) && !isAllEmpty(tokens, props.length)) {
|
|
278
|
+
updateTokens(_objectSpread(_objectSpread({}, event), {}, {
|
|
279
|
+
target: _objectSpread(_objectSpread({}, event.target), {}, {
|
|
280
|
+
value: ''
|
|
281
|
+
})
|
|
282
|
+
}), idx);
|
|
283
|
+
moveToNextInput(event);
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
285
287
|
case 'Backspace':
|
|
286
288
|
{
|
|
287
289
|
var _event$target;
|
|
@@ -298,6 +300,7 @@ var InputOtp = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
298
300
|
break;
|
|
299
301
|
}
|
|
300
302
|
case 'Tab':
|
|
303
|
+
case 'NumpadEnter':
|
|
301
304
|
case 'Enter':
|
|
302
305
|
{
|
|
303
306
|
break;
|
|
@@ -312,6 +315,11 @@ var InputOtp = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function (i
|
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
};
|
|
318
|
+
var isAllEmpty = function isAllEmpty(arr, n) {
|
|
319
|
+
return arr.length === n && arr.every(function (item) {
|
|
320
|
+
return item === '' || item == null;
|
|
321
|
+
});
|
|
322
|
+
};
|
|
315
323
|
useUpdateEffect(function () {
|
|
316
324
|
var _props$value2, _props$value2$split;
|
|
317
325
|
var value = props.value ? (_props$value2 = props.value) === null || _props$value2 === void 0 || (_props$value2 = _props$value2.toString()) === null || _props$value2 === void 0 || (_props$value2$split = _props$value2.split) === null || _props$value2$split === void 0 ? void 0 : _props$value2$split.call(_props$value2, '') : new Array(props.length);
|
|
@@ -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
|
|
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 s}from"primereact/inputtext";import{ObjectUtils as p}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function v(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 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 m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function b(){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)||m(e)||b()}function h(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,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)||!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:t+""}function N(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=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 E(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(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,b=t(v),j=u(),S=n(l),P=D.getProps(o,S),N=D.setMetaData(A(A({props:P},P.__parentMetadata),{},{context:{disabled:P.disabled}})),E=N.ptm,k=N.cx;i(D.css.styles,N.isUnstyled,{name:"inputotp"});var x,I,T=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(T),M=(I=2,h(x=_)||O(x,I)||m(x,I)||w()),U=M[0],K=M[1],B=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:B(t)},C=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:C(t)},F=function(e){var t=B(e.target);t&&(t.focus(),t.select())},L=function(e){var t=C(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),K(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&&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("");K(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"Delete":e.preventDefault();var t=Number(e.target.id);Number.isNaN(t)||z(U,P.length)||(J(A(A({},e),{},{target:A(A({},e.target),{},{value:""})}),t),F(e));break;case"Backspace":var n;0===(null===(n=e.target)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.length)&&(L(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"NumpadEnter":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()}},z=function(e,t){return e.length===t&&e.every((function(e){return""===e||null==e}))};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);K(n)}),[P.value]);var G=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:k("input"),pt:E("input")};return[null!=P&&P.inputTemplate?p.getJSXElement(null==P?void 0:P.inputTemplate,{events:r,props:l}):e.createElement(s,f({},l,r,{key:n}))].concat(g(G(t-1)))},H=j({className:k("root"),ref:b,style:null==P?void 0:P.style},E("root"));return e.createElement("div",H,G(P.length))})));k.displayName="InputOtp";export{k as InputOtp};
|
package/inputotp/inputotp.js
CHANGED
|
@@ -7,53 +7,47 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
7
7
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
8
8
|
|
|
9
9
|
function _extends() {
|
|
10
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
11
|
-
for (var
|
|
12
|
-
var
|
|
13
|
-
for (var
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
15
|
-
target[key] = source[key];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
10
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
11
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
12
|
+
var t = arguments[e];
|
|
13
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
18
14
|
}
|
|
19
|
-
return
|
|
20
|
-
};
|
|
21
|
-
return _extends.apply(this, arguments);
|
|
15
|
+
return n;
|
|
16
|
+
}, _extends.apply(null, arguments);
|
|
22
17
|
}
|
|
23
18
|
|
|
24
|
-
function _arrayLikeToArray(
|
|
25
|
-
|
|
26
|
-
for (var
|
|
27
|
-
return
|
|
19
|
+
function _arrayLikeToArray(r, a) {
|
|
20
|
+
(null == a || a > r.length) && (a = r.length);
|
|
21
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
22
|
+
return n;
|
|
28
23
|
}
|
|
29
24
|
|
|
30
|
-
function _arrayWithoutHoles(
|
|
31
|
-
if (Array.isArray(
|
|
25
|
+
function _arrayWithoutHoles(r) {
|
|
26
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
32
27
|
}
|
|
33
28
|
|
|
34
|
-
function _iterableToArray(
|
|
35
|
-
if (typeof Symbol
|
|
29
|
+
function _iterableToArray(r) {
|
|
30
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
function _unsupportedIterableToArray(
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
33
|
+
function _unsupportedIterableToArray(r, a) {
|
|
34
|
+
if (r) {
|
|
35
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
36
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
37
|
+
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;
|
|
38
|
+
}
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
function _nonIterableSpread() {
|
|
48
42
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
43
|
}
|
|
50
44
|
|
|
51
|
-
function _toConsumableArray(
|
|
52
|
-
return _arrayWithoutHoles(
|
|
45
|
+
function _toConsumableArray(r) {
|
|
46
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
function _arrayWithHoles(
|
|
56
|
-
if (Array.isArray(
|
|
49
|
+
function _arrayWithHoles(r) {
|
|
50
|
+
if (Array.isArray(r)) return r;
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -88,8 +82,8 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
88
82
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
83
|
}
|
|
90
84
|
|
|
91
|
-
function _slicedToArray(
|
|
92
|
-
return _arrayWithHoles(
|
|
85
|
+
function _slicedToArray(r, e) {
|
|
86
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
function _typeof(o) {
|
|
@@ -102,35 +96,29 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
102
96
|
}, _typeof(o);
|
|
103
97
|
}
|
|
104
98
|
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
var
|
|
110
|
-
if (
|
|
99
|
+
function toPrimitive(t, r) {
|
|
100
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
101
|
+
var e = t[Symbol.toPrimitive];
|
|
102
|
+
if (void 0 !== e) {
|
|
103
|
+
var i = e.call(t, r || "default");
|
|
104
|
+
if ("object" != _typeof(i)) return i;
|
|
111
105
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
112
106
|
}
|
|
113
|
-
return (
|
|
107
|
+
return ("string" === r ? String : Number)(t);
|
|
114
108
|
}
|
|
115
109
|
|
|
116
|
-
function
|
|
117
|
-
var
|
|
118
|
-
return _typeof(
|
|
110
|
+
function toPropertyKey(t) {
|
|
111
|
+
var i = toPrimitive(t, "string");
|
|
112
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
119
113
|
}
|
|
120
114
|
|
|
121
|
-
function _defineProperty(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
writable: true
|
|
129
|
-
});
|
|
130
|
-
} else {
|
|
131
|
-
obj[key] = value;
|
|
132
|
-
}
|
|
133
|
-
return obj;
|
|
115
|
+
function _defineProperty(e, r, t) {
|
|
116
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
+
value: t,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
configurable: !0,
|
|
120
|
+
writable: !0
|
|
121
|
+
}) : e[r] = t, e;
|
|
134
122
|
}
|
|
135
123
|
|
|
136
124
|
var classes = {
|
|
@@ -233,7 +221,7 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
233
221
|
updateTokens(event, index);
|
|
234
222
|
if (event.nativeEvent.inputType === 'deleteContentBackward') {
|
|
235
223
|
moveToPrevInput(event);
|
|
236
|
-
} else if (event.nativeEvent.inputType === 'insertText'
|
|
224
|
+
} else if (event.nativeEvent.inputType === 'insertText') {
|
|
237
225
|
moveToNextInput(event);
|
|
238
226
|
}
|
|
239
227
|
};
|
|
@@ -282,6 +270,20 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
282
270
|
event.preventDefault();
|
|
283
271
|
break;
|
|
284
272
|
}
|
|
273
|
+
case 'Delete':
|
|
274
|
+
{
|
|
275
|
+
event.preventDefault();
|
|
276
|
+
var idx = Number(event.target.id);
|
|
277
|
+
if (!Number.isNaN(idx) && !isAllEmpty(tokens, props.length)) {
|
|
278
|
+
updateTokens(_objectSpread(_objectSpread({}, event), {}, {
|
|
279
|
+
target: _objectSpread(_objectSpread({}, event.target), {}, {
|
|
280
|
+
value: ''
|
|
281
|
+
})
|
|
282
|
+
}), idx);
|
|
283
|
+
moveToNextInput(event);
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
285
287
|
case 'Backspace':
|
|
286
288
|
{
|
|
287
289
|
var _event$target;
|
|
@@ -298,6 +300,7 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
298
300
|
break;
|
|
299
301
|
}
|
|
300
302
|
case 'Tab':
|
|
303
|
+
case 'NumpadEnter':
|
|
301
304
|
case 'Enter':
|
|
302
305
|
{
|
|
303
306
|
break;
|
|
@@ -312,6 +315,11 @@ this.primereact.inputotp = (function (exports, React, api, componentbase, hooks,
|
|
|
312
315
|
}
|
|
313
316
|
}
|
|
314
317
|
};
|
|
318
|
+
var isAllEmpty = function isAllEmpty(arr, n) {
|
|
319
|
+
return arr.length === n && arr.every(function (item) {
|
|
320
|
+
return item === '' || item == null;
|
|
321
|
+
});
|
|
322
|
+
};
|
|
315
323
|
hooks.useUpdateEffect(function () {
|
|
316
324
|
var _props$value2, _props$value2$split;
|
|
317
325
|
var value = props.value ? (_props$value2 = props.value) === null || _props$value2 === void 0 || (_props$value2 = _props$value2.toString()) === null || _props$value2 === void 0 || (_props$value2$split = _props$value2.split) === null || _props$value2$split === void 0 ? void 0 : _props$value2$split.call(_props$value2, '') : new Array(props.length);
|
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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}function s(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 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={}.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 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 O(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 w(e){var t=O(e,"string");return"symbol"==h(t)?t:t+""}function j(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=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 P(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=u.default.memo(u.default.forwardRef((function(e,o){var s,p,f=t.useRef(o),v=a.useMergeProps(),h=t.useContext(n.PrimeReactContext),O=S.getProps(e,h),w=S.setMetaData(E(E({props:O},O.__parentMetadata),{},{context:{disabled:O.disabled}})),j=w.ptm,P=w.cx;r.useHandleStyle(S.css.styles,w.isUnstyled,{name:"inputotp"});var N,D,x=O.value?null===(s=O.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(O.length),A=t.useState(x),k=(D=2,b(N=A)||m(N,D)||d(N,D)||g()),I=k[0],T=k[1],_=function(e){var t=e.nextElementSibling;if(t)return"INPUT"===t.nodeName?t:_(t)},M=function(e){var t=e.previousElementSibling;if(t)return"INPUT"===t.nodeName?t:M(t)},U=function(e){var t=_(e.target);t&&(t.focus(),t.select())},C=function(e){var t=M(e.target);t&&(t.focus(),t.select())},R=function(e,t){var n;null==O||null===(n=O.onChange)||void 0===n||n.call(O,{originalEvent:e,value:t.join("")})},B=function(e,t){var n=e.target.value,r=y(I);r[t]=n,r=(r=r.join(""))?r.split(""):new Array(O.length),T(r),R(e,r)},K=function(e,t){O.disabled||O.readOnly||"insertFromPaste"!==e.nativeEvent.inputType&&(B(e,t),"deleteContentBackward"===e.nativeEvent.inputType?C(e):"insertText"===e.nativeEvent.inputType&&U(e))},L=function(e){if(!O.disabled&&!O.readOnly){var t=e.clipboardData.getData("text");if(t.length){var n=t.substring(0,O.length+1);if(!O.integerOnly||!isNaN(n)){var r=n.split("");T(r),R(e,r)}}}},F=function(e){var t;e.target.select(),null==O||null===(t=O.focus)||void 0===t||t.call(O,e)},H=function(e){var t;null==O||null===(t=O.blur)||void 0===t||t.call(O,e)},J=function(e){if(!O.disabled&&!O.readOnly&&!(e.altKey||e.ctrlKey||e.metaKey))switch(e.code){case"ArrowLeft":C(e),e.preventDefault();break;case"ArrowRight":U(e),e.preventDefault();break;case"Delete":e.preventDefault();var t=Number(e.target.id);Number.isNaN(t)||V(I,O.length)||(B(E(E({},e),{},{target:E(E({},e.target),{},{value:""})}),t),U(e));break;case"Backspace":var n;0===(null===(n=e.target)||void 0===n||null===(n=n.value)||void 0===n?void 0:n.length)&&(C(e),e.preventDefault());break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":case"NumpadEnter":case"Enter":break;default:(null!=O&&O.integerOnly&&!("Space"!==e.code&&Number(e.key)>=0&&Number(e.key)<=9)||I.join("").length>=O.length&&"Delete"!==e.code)&&e.preventDefault()}},V=function(e,t){return e.length===t&&e.every((function(e){return""===e||null==e}))};a.useUpdateEffect((function(){var e,t,n=O.value?null===(e=O.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(O.length);T(n)}),[O.value]);var X=function(e){if(e<=0)return[];var t=O.length-e,r={onInput:function(e){return K(e,t)},onKeyDown:J,onFocus:F,onBlur:H,onPaste:L},a={id:t,value:I[t]||"",inputMode:null!=O&&O.integerOnly?"numeric":"text",type:null!=O&&O.mask?"password":"text",variant:null==O?void 0:O.variant,readOnly:null==O?void 0:O.readOnly,disabled:null==O?void 0:O.disabled,invalid:null==O?void 0:O.invalid,tabIndex:null==O?void 0:O.tabIndex,unstyled:null==O?void 0:O.unstyled,"aria-label":n.ariaLabel("otpLabel",{0:t+1}),className:P("input"),pt:j("input")};return[null!=O&&O.inputTemplate?i.ObjectUtils.getJSXElement(null==O?void 0:O.inputTemplate,{events:r,props:a}):u.default.createElement(l.InputText,c({},a,r,{key:t}))].concat(y(X(e-1)))},Y=v({className:P("root"),ref:f,style:null==O?void 0:O.style},j("root"));return u.default.createElement("div",Y,X(O.length))})));return N.displayName="InputOtp",e.InputOtp=N,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.inputtext,primereact.utils);
|
|
@@ -31,18 +31,13 @@ function _interopNamespace(e) {
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
32
|
|
|
33
33
|
function _extends() {
|
|
34
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
35
|
-
for (var
|
|
36
|
-
var
|
|
37
|
-
for (var
|
|
38
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
39
|
-
target[key] = source[key];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
34
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
35
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
36
|
+
var t = arguments[e];
|
|
37
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
42
38
|
}
|
|
43
|
-
return
|
|
44
|
-
};
|
|
45
|
-
return _extends.apply(this, arguments);
|
|
39
|
+
return n;
|
|
40
|
+
}, _extends.apply(null, arguments);
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
function _typeof(o) {
|
|
@@ -55,35 +50,29 @@ function _typeof(o) {
|
|
|
55
50
|
}, _typeof(o);
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
function
|
|
59
|
-
if (
|
|
60
|
-
var
|
|
61
|
-
if (
|
|
62
|
-
var
|
|
63
|
-
if (
|
|
53
|
+
function toPrimitive(t, r) {
|
|
54
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
55
|
+
var e = t[Symbol.toPrimitive];
|
|
56
|
+
if (void 0 !== e) {
|
|
57
|
+
var i = e.call(t, r || "default");
|
|
58
|
+
if ("object" != _typeof(i)) return i;
|
|
64
59
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
65
60
|
}
|
|
66
|
-
return (
|
|
61
|
+
return ("string" === r ? String : Number)(t);
|
|
67
62
|
}
|
|
68
63
|
|
|
69
|
-
function
|
|
70
|
-
var
|
|
71
|
-
return _typeof(
|
|
64
|
+
function toPropertyKey(t) {
|
|
65
|
+
var i = toPrimitive(t, "string");
|
|
66
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
function _defineProperty(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
writable: true
|
|
82
|
-
});
|
|
83
|
-
} else {
|
|
84
|
-
obj[key] = value;
|
|
85
|
-
}
|
|
86
|
-
return obj;
|
|
69
|
+
function _defineProperty(e, r, t) {
|
|
70
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
71
|
+
value: t,
|
|
72
|
+
enumerable: !0,
|
|
73
|
+
configurable: !0,
|
|
74
|
+
writable: !0
|
|
75
|
+
}) : e[r] = t, e;
|
|
87
76
|
}
|
|
88
77
|
|
|
89
78
|
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"),o=require("primereact/tooltip"),i=require("primereact/utils");function u(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 l=u(e);function a(){return a=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
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/componentbase"),r=require("primereact/hooks"),o=require("primereact/tooltip"),i=require("primereact/utils");function u(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 l=u(e);function a(){return a=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},a.apply(null,arguments)}function c(e){return c="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},c(e)}function s(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(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"==c(t)?t:t+""}function f(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=n.ComponentBase.extend({defaultProps:{__TYPE:"InputSwitch",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,id:null,inputId:null,inputRef:null,invalid:!1,name:null,onBlur:null,onChange:null,onFocus:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,children:void 0},css:{classes:{root:function(e){var t=e.props;return i.classNames("p-inputswitch p-component",{"p-highlight":e.checked,"p-disabled":t.disabled,"p-invalid":t.invalid})},input:"p-inputswitch-input",slider:"p-inputswitch-slider"}}});function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=l.memo(l.forwardRef((function(e,u){var c=r.useMergeProps(),s=l.useContext(t.PrimeReactContext),p=d.getProps(e,s),f=d.setMetaData({props:p}),m=f.ptm,y=f.cx;n.useHandleStyle(d.css.styles,f.isUnstyled,{name:"inputswitch"});var v=l.useRef(null),h=l.useRef(p.inputRef),g=p.checked===p.trueValue;l.useImperativeHandle(u,(function(){return{props:p,focus:function(){return i.DomHandler.focus(h.current)},getElement:function(){return v.current},getInput:function(){return h.current}}})),l.useEffect((function(){i.ObjectUtils.combinedRefs(h,p.inputRef)}),[h,p.inputRef]),r.useMountEffect((function(){p.autoFocus&&i.DomHandler.focus(h.current,p.autoFocus)}));var O=i.ObjectUtils.isNotEmpty(p.tooltip),j=d.getOtherProps(p),P=i.ObjectUtils.reduceKeys(j,i.DomHandler.ARIA_PROPS),w=c({className:i.classNames(p.className,y("root",{checked:g})),style:p.style,role:"checkbox","aria-checked":g,"data-p-highlight":g,"data-p-disabled":p.disabled},j,m("root")),E=c(b({type:"checkbox",id:p.inputId,name:p.name,checked:g,onChange:function(e){if(p.onChange){var t=g?p.falseValue:p.trueValue;p.onChange({originalEvent:e,value:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{name:p.name,id:p.id,value:t}})}},onFocus:function(e){var t;null==p||null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:function(e){var t;null==p||null===(t=p.onBlur)||void 0===t||t.call(p,e)},disabled:p.disabled,role:"switch",tabIndex:p.tabIndex,"aria-checked":g,className:y("input")},P),m("input")),S=c({className:y("slider")},m("slider"));return l.createElement(l.Fragment,null,l.createElement("div",a({id:p.id,ref:v},w),l.createElement("input",a({ref:h},E)),l.createElement("span",S)),O&&l.createElement(o.Tooltip,a({target:v,content:p.tooltip,pt:m("tooltip")},p.tooltipOptions)))})));y.displayName="InputSwitch",exports.InputSwitch=y;
|