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
|
@@ -34,22 +34,17 @@ function _interopNamespace(e) {
|
|
|
34
34
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
35
35
|
|
|
36
36
|
function _extends() {
|
|
37
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
38
|
-
for (var
|
|
39
|
-
var
|
|
40
|
-
for (var
|
|
41
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
42
|
-
target[key] = source[key];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
37
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
38
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
39
|
+
var t = arguments[e];
|
|
40
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
45
41
|
}
|
|
46
|
-
return
|
|
47
|
-
};
|
|
48
|
-
return _extends.apply(this, arguments);
|
|
42
|
+
return n;
|
|
43
|
+
}, _extends.apply(null, arguments);
|
|
49
44
|
}
|
|
50
45
|
|
|
51
|
-
function _arrayWithHoles(
|
|
52
|
-
if (Array.isArray(
|
|
46
|
+
function _arrayWithHoles(r) {
|
|
47
|
+
if (Array.isArray(r)) return r;
|
|
53
48
|
}
|
|
54
49
|
|
|
55
50
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -80,27 +75,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
80
75
|
}
|
|
81
76
|
}
|
|
82
77
|
|
|
83
|
-
function _arrayLikeToArray(
|
|
84
|
-
|
|
85
|
-
for (var
|
|
86
|
-
return
|
|
78
|
+
function _arrayLikeToArray(r, a) {
|
|
79
|
+
(null == a || a > r.length) && (a = r.length);
|
|
80
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
81
|
+
return n;
|
|
87
82
|
}
|
|
88
83
|
|
|
89
|
-
function _unsupportedIterableToArray(
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
84
|
+
function _unsupportedIterableToArray(r, a) {
|
|
85
|
+
if (r) {
|
|
86
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
87
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
88
|
+
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;
|
|
89
|
+
}
|
|
96
90
|
}
|
|
97
91
|
|
|
98
92
|
function _nonIterableRest() {
|
|
99
93
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
100
94
|
}
|
|
101
95
|
|
|
102
|
-
function _slicedToArray(
|
|
103
|
-
return _arrayWithHoles(
|
|
96
|
+
function _slicedToArray(r, e) {
|
|
97
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
104
98
|
}
|
|
105
99
|
|
|
106
100
|
function _typeof(o) {
|
|
@@ -113,35 +107,29 @@ function _typeof(o) {
|
|
|
113
107
|
}, _typeof(o);
|
|
114
108
|
}
|
|
115
109
|
|
|
116
|
-
function
|
|
117
|
-
if (
|
|
118
|
-
var
|
|
119
|
-
if (
|
|
120
|
-
var
|
|
121
|
-
if (
|
|
110
|
+
function toPrimitive(t, r) {
|
|
111
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
112
|
+
var e = t[Symbol.toPrimitive];
|
|
113
|
+
if (void 0 !== e) {
|
|
114
|
+
var i = e.call(t, r || "default");
|
|
115
|
+
if ("object" != _typeof(i)) return i;
|
|
122
116
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
123
117
|
}
|
|
124
|
-
return (
|
|
118
|
+
return ("string" === r ? String : Number)(t);
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
function
|
|
128
|
-
var
|
|
129
|
-
return _typeof(
|
|
121
|
+
function toPropertyKey(t) {
|
|
122
|
+
var i = toPrimitive(t, "string");
|
|
123
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
130
124
|
}
|
|
131
125
|
|
|
132
|
-
function _defineProperty(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
writable: true
|
|
140
|
-
});
|
|
141
|
-
} else {
|
|
142
|
-
obj[key] = value;
|
|
143
|
-
}
|
|
144
|
-
return obj;
|
|
126
|
+
function _defineProperty(e, r, t) {
|
|
127
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
128
|
+
value: t,
|
|
129
|
+
enumerable: !0,
|
|
130
|
+
configurable: !0,
|
|
131
|
+
writable: !0
|
|
132
|
+
}) : e[r] = t, e;
|
|
145
133
|
}
|
|
146
134
|
|
|
147
135
|
var classes = {
|
|
@@ -285,10 +273,11 @@ var ConfirmDialog = /*#__PURE__*/React__namespace.memo(/*#__PURE__*/React__names
|
|
|
285
273
|
var hide = function hide() {
|
|
286
274
|
var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
|
|
287
275
|
if (visibleState) {
|
|
276
|
+
if (typeof result !== 'string') {
|
|
277
|
+
result = 'cancel';
|
|
278
|
+
}
|
|
288
279
|
setVisibleState(false);
|
|
289
|
-
callbackFromProp('onHide',
|
|
290
|
-
result: result
|
|
291
|
-
});
|
|
280
|
+
callbackFromProp('onHide', result);
|
|
292
281
|
utils.DomHandler.focus(focusElementOnHide.current);
|
|
293
282
|
focusElementOnHide.current = null;
|
|
294
283
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/button"),n=require("primereact/componentbase"),o=require("primereact/dialog"),a=require("primereact/hooks"),c=require("primereact/overlayservice"),i=require("primereact/portal"),l=require("primereact/utils");function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var s=u(e);function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/button"),n=require("primereact/componentbase"),o=require("primereact/dialog"),a=require("primereact/hooks"),c=require("primereact/overlayservice"),i=require("primereact/portal"),l=require("primereact/utils");function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var s=u(e);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}function p(e){if(Array.isArray(e))return e}function m(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,c,i=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(u)throw o}}return i}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}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 d(e,t){return p(e)||m(e,t)||v(e,t)||g()}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function j(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=j(e,"string");return"symbol"==y(t)?t:t+""}function h(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=n.ComponentBase.extend({defaultProps:{__TYPE:"ConfirmDialog",accept:null,acceptClassName:null,acceptIcon:null,acceptLabel:null,appendTo:null,breakpoints:null,children:void 0,className:null,content:null,defaultFocus:"accept",footer:null,icon:null,message:null,onHide:null,reject:null,rejectClassName:null,rejectIcon:null,rejectLabel:null,tagKey:void 0,visible:void 0},css:{classes:{root:"p-confirm-dialog",message:"p-confirm-dialog-message",icon:"p-confirm-dialog-icon",acceptButton:"p-confirm-dialog-accept",rejectButton:function(e){return l.classNames("p-confirm-dialog-reject",{"p-button-text":!(0,e.getPropValue)("rejectClassName")})}}}});function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var C=s.memo(s.forwardRef((function(e,u){var p=a.useMergeProps(),m=s.useContext(t.PrimeReactContext),b=S.getProps(e,m),v=d(s.useState(b.visible),2),g=v[0],y=v[1],j=d(s.useState(!1),2),O=j[0],h=j[1],N=s.useRef(null),C=s.useRef(!1),E=s.useRef(null),w=function(){var e=b.group;return N.current&&(e=N.current.group),Object.assign({},b,N.current,{group:e})},D=function(e){return w()[e]},_=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return l.ObjectUtils.getPropValue(D(e),r)},B=D("acceptLabel")||t.localeOption("accept"),x=D("rejectLabel")||t.localeOption("reject"),I={props:b,state:{visible:g}},q=S.setMetaData(I),k=q.ptm,M=q.cx;n.useHandleStyle(S.css.styles,q.isUnstyled,{name:"confirmdialog"});var T=function(){C.current||(C.current=!0,_("accept"),H("accept"))},U=function(){C.current||(C.current=!0,_("reject"),H("reject"))},A=function(){w().group===b.group&&(y(!0),C.current=!1,E.current=document.activeElement)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cancel";g&&("string"!=typeof e&&(e="cancel"),y(!1),_("onHide",e),l.DomHandler.focus(E.current),E.current=null)},L=function(e){if(e.tagKey===b.tagKey){var t=g!==e.visible;D("target")!==e.target&&!b.target?(H(),N.current=e,h(!0)):t&&(N.current=e,e.visible?A():H())}};s.useEffect((function(){b.visible?A():H()}),[b.visible]),s.useEffect((function(){return b.target||b.message||c.OverlayService.on("confirm-dialog",L),function(){c.OverlayService.off("confirm-dialog",L)}}),[b.target]),a.useUpdateEffect((function(){O&&A()}),[O]),a.useUnmountEffect((function(){c.OverlayService.off("confirm-dialog",L)})),s.useImperativeHandle(u,(function(){return{props:b,confirm:L}}));var F,R,J,K,V,X,z,Y=function(){var e=D("defaultFocus"),t=l.classNames("p-confirm-dialog-accept",D("acceptClassName")),n=l.classNames("p-confirm-dialog-reject",{"p-button-text":!D("rejectClassName")},D("rejectClassName")),o=p({label:x,autoFocus:"reject"===e,icon:D("rejectIcon"),className:l.classNames(D("rejectClassName"),M("rejectButton",{getPropValue:D})),onClick:U,pt:k("rejectButton"),unstyled:b.unstyled,__parentMetadata:{parent:I}},k("rejectButton")),a=p({label:B,autoFocus:void 0===e||"accept"===e,icon:D("acceptIcon"),className:l.classNames(D("acceptClassName"),M("acceptButton")),onClick:T,pt:k("acceptButton"),unstyled:b.unstyled,__parentMetadata:{parent:I}},k("acceptButton")),c=s.createElement(s.Fragment,null,s.createElement(r.Button,o),s.createElement(r.Button,a));if(D("footer")){var i={accept:T,reject:U,acceptClassName:t,rejectClassName:n,acceptLabel:B,rejectLabel:x,element:c,props:w()};return l.ObjectUtils.getJSXElement(D("footer"),i)}return c},$=(F=w(),R=l.ObjectUtils.getJSXElement(D("message"),F),J=p({className:M("icon")},k("icon")),K=l.IconUtils.getJSXIcon(D("icon"),P({},J),{props:F}),V=Y(),X=p({className:M("message")},k("message")),z=p({visible:g,className:l.classNames(D("className"),M("root")),footer:V,onHide:H,breakpoints:D("breakpoints"),pt:F.pt,unstyled:b.unstyled,appendTo:D("appendTo"),__parentMetadata:{parent:I}},S.getOtherProps(F)),s.createElement(o.Dialog,f({},z,{content:null==e?void 0:e.content}),K,s.createElement("span",X,R)));return s.createElement(i.Portal,{element:$,appendTo:D("appendTo")})})));C.displayName="ConfirmDialog",exports.ConfirmDialog=C,exports.confirmDialog=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=P(P({},e),{visible:void 0===e.visible||e.visible})).visible&&c.OverlayService.emit("confirm-dialog",e);return{show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c.OverlayService.emit("confirm-dialog",P(P(P({},e),t),{visible:!0}))},hide:function(){c.OverlayService.emit("confirm-dialog",{visible:!1})}}};
|
|
@@ -10,22 +10,17 @@ import { Portal } from 'primereact/portal';
|
|
|
10
10
|
import { classNames, DomHandler, ObjectUtils, IconUtils } from 'primereact/utils';
|
|
11
11
|
|
|
12
12
|
function _extends() {
|
|
13
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
14
|
-
for (var
|
|
15
|
-
var
|
|
16
|
-
for (var
|
|
17
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
18
|
-
target[key] = source[key];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
13
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
14
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
15
|
+
var t = arguments[e];
|
|
16
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
21
17
|
}
|
|
22
|
-
return
|
|
23
|
-
};
|
|
24
|
-
return _extends.apply(this, arguments);
|
|
18
|
+
return n;
|
|
19
|
+
}, _extends.apply(null, arguments);
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
function _arrayWithHoles(
|
|
28
|
-
if (Array.isArray(
|
|
22
|
+
function _arrayWithHoles(r) {
|
|
23
|
+
if (Array.isArray(r)) return r;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -56,27 +51,26 @@ function _iterableToArrayLimit(r, l) {
|
|
|
56
51
|
}
|
|
57
52
|
}
|
|
58
53
|
|
|
59
|
-
function _arrayLikeToArray(
|
|
60
|
-
|
|
61
|
-
for (var
|
|
62
|
-
return
|
|
54
|
+
function _arrayLikeToArray(r, a) {
|
|
55
|
+
(null == a || a > r.length) && (a = r.length);
|
|
56
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
57
|
+
return n;
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
function _unsupportedIterableToArray(
|
|
66
|
-
if (
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
60
|
+
function _unsupportedIterableToArray(r, a) {
|
|
61
|
+
if (r) {
|
|
62
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
63
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
64
|
+
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;
|
|
65
|
+
}
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
function _nonIterableRest() {
|
|
75
69
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
function _slicedToArray(
|
|
79
|
-
return _arrayWithHoles(
|
|
72
|
+
function _slicedToArray(r, e) {
|
|
73
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
80
74
|
}
|
|
81
75
|
|
|
82
76
|
function _typeof(o) {
|
|
@@ -89,35 +83,29 @@ function _typeof(o) {
|
|
|
89
83
|
}, _typeof(o);
|
|
90
84
|
}
|
|
91
85
|
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
94
|
-
var
|
|
95
|
-
if (
|
|
96
|
-
var
|
|
97
|
-
if (
|
|
86
|
+
function toPrimitive(t, r) {
|
|
87
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
88
|
+
var e = t[Symbol.toPrimitive];
|
|
89
|
+
if (void 0 !== e) {
|
|
90
|
+
var i = e.call(t, r || "default");
|
|
91
|
+
if ("object" != _typeof(i)) return i;
|
|
98
92
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
99
93
|
}
|
|
100
|
-
return (
|
|
94
|
+
return ("string" === r ? String : Number)(t);
|
|
101
95
|
}
|
|
102
96
|
|
|
103
|
-
function
|
|
104
|
-
var
|
|
105
|
-
return _typeof(
|
|
97
|
+
function toPropertyKey(t) {
|
|
98
|
+
var i = toPrimitive(t, "string");
|
|
99
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
106
100
|
}
|
|
107
101
|
|
|
108
|
-
function _defineProperty(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
writable: true
|
|
116
|
-
});
|
|
117
|
-
} else {
|
|
118
|
-
obj[key] = value;
|
|
119
|
-
}
|
|
120
|
-
return obj;
|
|
102
|
+
function _defineProperty(e, r, t) {
|
|
103
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
104
|
+
value: t,
|
|
105
|
+
enumerable: !0,
|
|
106
|
+
configurable: !0,
|
|
107
|
+
writable: !0
|
|
108
|
+
}) : e[r] = t, e;
|
|
121
109
|
}
|
|
122
110
|
|
|
123
111
|
var classes = {
|
|
@@ -261,10 +249,11 @@ var ConfirmDialog = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(functi
|
|
|
261
249
|
var hide = function hide() {
|
|
262
250
|
var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
|
|
263
251
|
if (visibleState) {
|
|
252
|
+
if (typeof result !== 'string') {
|
|
253
|
+
result = 'cancel';
|
|
254
|
+
}
|
|
264
255
|
setVisibleState(false);
|
|
265
|
-
callbackFromProp('onHide',
|
|
266
|
-
result: result
|
|
267
|
-
});
|
|
256
|
+
callbackFromProp('onHide', result);
|
|
268
257
|
DomHandler.focus(focusElementOnHide.current);
|
|
269
258
|
focusElementOnHide.current = null;
|
|
270
259
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as t,localeOption as r}from"primereact/api";import{Button as n}from"primereact/button";import{ComponentBase as o,useHandleStyle as
|
|
1
|
+
import*as e from"react";import{PrimeReactContext as t,localeOption as r}from"primereact/api";import{Button as n}from"primereact/button";import{ComponentBase as o,useHandleStyle as c}from"primereact/componentbase";import{Dialog as a}from"primereact/dialog";import{useMergeProps as i,useUpdateEffect as l,useUnmountEffect as u}from"primereact/hooks";import{OverlayService as s}from"primereact/overlayservice";import{Portal as p}from"primereact/portal";import{classNames as f,DomHandler as m,ObjectUtils as b,IconUtils as g}from"primereact/utils";function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}function v(e){if(Array.isArray(e))return e}function y(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,c,a,i=[],l=!0,u=!1;try{if(c=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=c.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return i}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function N(e,t){return v(e)||y(e,t)||O(e,t)||h()}function P(e){return P="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},P(e)}function S(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function w(e){var t=S(e,"string");return"symbol"==P(t)?t:t+""}function C(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=o.extend({defaultProps:{__TYPE:"ConfirmDialog",accept:null,acceptClassName:null,acceptIcon:null,acceptLabel:null,appendTo:null,breakpoints:null,children:void 0,className:null,content:null,defaultFocus:"accept",footer:null,icon:null,message:null,onHide:null,reject:null,rejectClassName:null,rejectIcon:null,rejectLabel:null,tagKey:void 0,visible:void 0},css:{classes:{root:"p-confirm-dialog",message:"p-confirm-dialog-message",icon:"p-confirm-dialog-icon",acceptButton:"p-confirm-dialog-accept",rejectButton:function(e){return f("p-confirm-dialog-reject",{"p-button-text":!(0,e.getPropValue)("rejectClassName")})}}}});function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=B(B({},e),{visible:void 0===e.visible||e.visible})).visible&&s.emit("confirm-dialog",e);return{show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.emit("confirm-dialog",B(B(B({},e),t),{visible:!0}))},hide:function(){s.emit("confirm-dialog",{visible:!1})}}},_=e.memo(e.forwardRef((function(o,v){var y=i(),j=e.useContext(t),O=E.getProps(o,j),h=N(e.useState(O.visible),2),P=h[0],S=h[1],w=N(e.useState(!1),2),C=w[0],I=w[1],T=e.useRef(null),_=e.useRef(!1),k=e.useRef(null),x=function(){var e=O.group;return T.current&&(e=T.current.group),Object.assign({},O,T.current,{group:e})},A=function(e){return x()[e]},D=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return b.getPropValue(A(e),r)},L=A("acceptLabel")||r("accept"),F=A("rejectLabel")||r("reject"),M={props:O,state:{visible:P}},H=E.setMetaData(M),R=H.ptm,J=H.cx;c(E.css.styles,H.isUnstyled,{name:"confirmdialog"});var K=function(){_.current||(_.current=!0,D("accept"),U("accept"))},V=function(){_.current||(_.current=!0,D("reject"),U("reject"))},X=function(){x().group===O.group&&(S(!0),_.current=!1,k.current=document.activeElement)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cancel";P&&("string"!=typeof e&&(e="cancel"),S(!1),D("onHide",e),m.focus(k.current),k.current=null)},Y=function(e){if(e.tagKey===O.tagKey){var t=P!==e.visible;A("target")!==e.target&&!O.target?(U(),T.current=e,I(!0)):t&&(T.current=e,e.visible?X():U())}};e.useEffect((function(){O.visible?X():U()}),[O.visible]),e.useEffect((function(){return O.target||O.message||s.on("confirm-dialog",Y),function(){s.off("confirm-dialog",Y)}}),[O.target]),l((function(){C&&X()}),[C]),u((function(){s.off("confirm-dialog",Y)})),e.useImperativeHandle(v,(function(){return{props:O,confirm:Y}}));var $,q,z,G,Q,W,Z,ee=function(){var t=A("defaultFocus"),r=f("p-confirm-dialog-accept",A("acceptClassName")),o=f("p-confirm-dialog-reject",{"p-button-text":!A("rejectClassName")},A("rejectClassName")),c=y({label:F,autoFocus:"reject"===t,icon:A("rejectIcon"),className:f(A("rejectClassName"),J("rejectButton",{getPropValue:A})),onClick:V,pt:R("rejectButton"),unstyled:O.unstyled,__parentMetadata:{parent:M}},R("rejectButton")),a=y({label:L,autoFocus:void 0===t||"accept"===t,icon:A("acceptIcon"),className:f(A("acceptClassName"),J("acceptButton")),onClick:K,pt:R("acceptButton"),unstyled:O.unstyled,__parentMetadata:{parent:M}},R("acceptButton")),i=e.createElement(e.Fragment,null,e.createElement(n,c),e.createElement(n,a));if(A("footer")){var l={accept:K,reject:V,acceptClassName:r,rejectClassName:o,acceptLabel:L,rejectLabel:F,element:i,props:x()};return b.getJSXElement(A("footer"),l)}return i},te=($=x(),q=b.getJSXElement(A("message"),$),z=y({className:J("icon")},R("icon")),G=g.getJSXIcon(A("icon"),B({},z),{props:$}),Q=ee(),W=y({className:J("message")},R("message")),Z=y({visible:P,className:f(A("className"),J("root")),footer:Q,onHide:U,breakpoints:A("breakpoints"),pt:$.pt,unstyled:O.unstyled,appendTo:A("appendTo"),__parentMetadata:{parent:M}},E.getOtherProps($)),e.createElement(a,d({},Z,{content:null==o?void 0:o.content}),G,e.createElement("span",W,q)));return e.createElement(p,{element:te,appendTo:A("appendTo")})})));_.displayName="ConfirmDialog";export{_ as ConfirmDialog,T as confirmDialog};
|
|
@@ -23,22 +23,17 @@ this.primereact.confirmdialog = (function (exports, React, api, button, componen
|
|
|
23
23
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
24
24
|
|
|
25
25
|
function _extends() {
|
|
26
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
27
|
-
for (var
|
|
28
|
-
var
|
|
29
|
-
for (var
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
31
|
-
target[key] = source[key];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
26
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
27
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
28
|
+
var t = arguments[e];
|
|
29
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
34
30
|
}
|
|
35
|
-
return
|
|
36
|
-
};
|
|
37
|
-
return _extends.apply(this, arguments);
|
|
31
|
+
return n;
|
|
32
|
+
}, _extends.apply(null, arguments);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
function _arrayWithHoles(
|
|
41
|
-
if (Array.isArray(
|
|
35
|
+
function _arrayWithHoles(r) {
|
|
36
|
+
if (Array.isArray(r)) return r;
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
function _iterableToArrayLimit(r, l) {
|
|
@@ -69,27 +64,26 @@ this.primereact.confirmdialog = (function (exports, React, api, button, componen
|
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
|
|
72
|
-
function _arrayLikeToArray(
|
|
73
|
-
|
|
74
|
-
for (var
|
|
75
|
-
return
|
|
67
|
+
function _arrayLikeToArray(r, a) {
|
|
68
|
+
(null == a || a > r.length) && (a = r.length);
|
|
69
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
70
|
+
return n;
|
|
76
71
|
}
|
|
77
72
|
|
|
78
|
-
function _unsupportedIterableToArray(
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
73
|
+
function _unsupportedIterableToArray(r, a) {
|
|
74
|
+
if (r) {
|
|
75
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
76
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
77
|
+
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;
|
|
78
|
+
}
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
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 @@ this.primereact.confirmdialog = (function (exports, React, api, button, componen
|
|
|
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 = {
|
|
@@ -274,10 +262,11 @@ this.primereact.confirmdialog = (function (exports, React, api, button, componen
|
|
|
274
262
|
var hide = function hide() {
|
|
275
263
|
var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'cancel';
|
|
276
264
|
if (visibleState) {
|
|
265
|
+
if (typeof result !== 'string') {
|
|
266
|
+
result = 'cancel';
|
|
267
|
+
}
|
|
277
268
|
setVisibleState(false);
|
|
278
|
-
callbackFromProp('onHide',
|
|
279
|
-
result: result
|
|
280
|
-
});
|
|
269
|
+
callbackFromProp('onHide', result);
|
|
281
270
|
utils.DomHandler.focus(focusElementOnHide.current);
|
|
282
271
|
focusElementOnHide.current = null;
|
|
283
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.confirmdialog=function(e,t,r,n,o,a,c,i,l,u){"use strict";function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.confirmdialog=function(e,t,r,n,o,a,c,i,l,u){"use strict";function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var f=s(t);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}function m(e){if(Array.isArray(e))return e}function b(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,c,i=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(u)throw o}}return i}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function d(){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 y(e,t){return m(e)||b(e,t)||v(e,t)||d()}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 O(e,t){if("object"!=j(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=j(n))return n;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"==j(t)?t:t+""}function S(e,t,r){return(t=h(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N=o.ComponentBase.extend({defaultProps:{__TYPE:"ConfirmDialog",accept:null,acceptClassName:null,acceptIcon:null,acceptLabel:null,appendTo:null,breakpoints:null,children:void 0,className:null,content:null,defaultFocus:"accept",footer:null,icon:null,message:null,onHide:null,reject:null,rejectClassName:null,rejectIcon:null,rejectLabel:null,tagKey:void 0,visible:void 0},css:{classes:{root:"p-confirm-dialog",message:"p-confirm-dialog-message",icon:"p-confirm-dialog-icon",acceptButton:"p-confirm-dialog-accept",rejectButton:function(e){return u.classNames("p-confirm-dialog-reject",{"p-button-text":!(0,e.getPropValue)("rejectClassName")})}}}});function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var E=f.memo(f.forwardRef((function(e,t){var s=c.useMergeProps(),m=f.useContext(r.PrimeReactContext),b=N.getProps(e,m),g=y(f.useState(b.visible),2),v=g[0],d=g[1],j=y(f.useState(!1),2),O=j[0],h=j[1],S=f.useRef(null),P=f.useRef(!1),E=f.useRef(null),w=function(){var e=b.group;return S.current&&(e=S.current.group),Object.assign({},b,S.current,{group:e})},D=function(e){return w()[e]},_=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return u.ObjectUtils.getPropValue(D(e),r)},B=D("acceptLabel")||r.localeOption("accept"),I=D("rejectLabel")||r.localeOption("reject"),k={props:b,state:{visible:v}},M=N.setMetaData(k),T=M.ptm,U=M.cx;o.useHandleStyle(N.css.styles,M.isUnstyled,{name:"confirmdialog"});var x=function(){P.current||(P.current=!0,_("accept"),L("accept"))},A=function(){P.current||(P.current=!0,_("reject"),L("reject"))},H=function(){w().group===b.group&&(d(!0),P.current=!1,E.current=document.activeElement)},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cancel";v&&("string"!=typeof e&&(e="cancel"),d(!1),_("onHide",e),u.DomHandler.focus(E.current),E.current=null)},R=function(e){if(e.tagKey===b.tagKey){var t=v!==e.visible;D("target")!==e.target&&!b.target?(L(),S.current=e,h(!0)):t&&(S.current=e,e.visible?H():L())}};f.useEffect((function(){b.visible?H():L()}),[b.visible]),f.useEffect((function(){return b.target||b.message||i.OverlayService.on("confirm-dialog",R),function(){i.OverlayService.off("confirm-dialog",R)}}),[b.target]),c.useUpdateEffect((function(){O&&H()}),[O]),c.useUnmountEffect((function(){i.OverlayService.off("confirm-dialog",R)})),f.useImperativeHandle(t,(function(){return{props:b,confirm:R}}));var F,J,K,V,X,z,Y,$=function(){var e=D("defaultFocus"),t=u.classNames("p-confirm-dialog-accept",D("acceptClassName")),r=u.classNames("p-confirm-dialog-reject",{"p-button-text":!D("rejectClassName")},D("rejectClassName")),o=s({label:I,autoFocus:"reject"===e,icon:D("rejectIcon"),className:u.classNames(D("rejectClassName"),U("rejectButton",{getPropValue:D})),onClick:A,pt:T("rejectButton"),unstyled:b.unstyled,__parentMetadata:{parent:k}},T("rejectButton")),a=s({label:B,autoFocus:void 0===e||"accept"===e,icon:D("acceptIcon"),className:u.classNames(D("acceptClassName"),U("acceptButton")),onClick:x,pt:T("acceptButton"),unstyled:b.unstyled,__parentMetadata:{parent:k}},T("acceptButton")),c=f.createElement(f.Fragment,null,f.createElement(n.Button,o),f.createElement(n.Button,a));if(D("footer")){var i={accept:x,reject:A,acceptClassName:t,rejectClassName:r,acceptLabel:B,rejectLabel:I,element:c,props:w()};return u.ObjectUtils.getJSXElement(D("footer"),i)}return c},q=(F=w(),J=u.ObjectUtils.getJSXElement(D("message"),F),K=s({className:U("icon")},T("icon")),V=u.IconUtils.getJSXIcon(D("icon"),C({},K),{props:F}),X=$(),z=s({className:U("message")},T("message")),Y=s({visible:v,className:u.classNames(D("className"),U("root")),footer:X,onHide:L,breakpoints:D("breakpoints"),pt:F.pt,unstyled:b.unstyled,appendTo:D("appendTo"),__parentMetadata:{parent:k}},N.getOtherProps(F)),f.createElement(a.Dialog,p({},Y,{content:null==e?void 0:e.content}),V,f.createElement("span",z,J)));return f.createElement(l.Portal,{element:q,appendTo:D("appendTo")})})));return E.displayName="ConfirmDialog",e.ConfirmDialog=E,e.confirmDialog=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=C(C({},e),{visible:void 0===e.visible||e.visible})).visible&&i.OverlayService.emit("confirm-dialog",e);return{show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.OverlayService.emit("confirm-dialog",C(C(C({},e),t),{visible:!0}))},hide:function(){i.OverlayService.emit("confirm-dialog",{visible:!1})}}},Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.button,primereact.componentbase,primereact.dialog,primereact.hooks,primereact.overlayservice,primereact.portal,primereact.utils);
|